OwlCyberSecurity - MANAGER
Edit File: main.js
/*! For license information please see main.js.LICENSE.txt */ (()=>{var t={574:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".ast-block-templates-single-site-preview .ast-block-templates-grid .item{width:47%;padding:0;margin:0 6% 6% 0}.ast-block-templates-single-site-preview .ast-block-templates-grid .item:nth-child(even){margin-right:0}.ast-block-templates-single-site-preview .ast-block-templates-grid .item .heading-wrap{padding:8px 14px}.ast-block-templates-single-site-preview .ast-block-templates-grid .item .title{font-weight:500;font-size:13px;background:#fff}.ast-block-templates-single-site-preview .ast-block-templates-grid .item.active .inner{border-color:#5b9dd9;border-radius:2px}.ast-block-templates-single-site-preview{display:flex;position:fixed;left:30px;right:30px;height:80vh;padding-top:40px;margin:0 auto}.ast-block-templates-single-page-preview{width:65%;flex:1;margin-bottom:3em}.ast-block-templates-single-page-preview img{width:100%;transition:all .4s}.ast-block-templates-single-page-preview .screenshot{margin-right:4em;max-height:calc(100vh - 220px);overflow-y:auto;border-radius:2px;box-shadow:0 0 16px 0 rgba(0,0,0,.12);height:100vh}.ast-block-templates-grid-preview{width:35%}.ast-block-templates-grid-preview .ast-block-templates-grid{overflow-y:auto;max-height:calc(100vh - 220px);padding-right:30px;margin-right:-35px;margin-left:0}.ast-block-templates-grid-preview .ast-block-templates-grid .item .inner{border:1px solid #e2e2e2}.ast-block-templates-grid-preview .ast-block-templates-grid .item .inner:hover{box-shadow:0 3px 12px rgba(0,0,0,.14)}.ast-block-templates-grid-preview .ast-block-templates-grid .item .screenshot::after{padding-top:114%}.ast-block-templates-pages-title{color:#9e9e9e;text-decoration:none;font-weight:500;position:relative;font-size:13px;margin:0 0 32px 0}.ast-block-templates-site-title-wrap{display:flex;align-items:center;margin:0 0 32px 0}.ast-block-templates-site-title{font-size:22px;margin:0}",""]);const a=o},677:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".ast-block-templates-content{height:calc(100vh - 55px);overflow-y:auto;color:#444}.ast-block-templates-content img{max-width:100%;vertical-align:middle}.ast-block-templates-content .title{margin:0;font-size:14px;color:#444;margin-bottom:5px}.ast-block-templates-content .title b{font-weight:900}.ast-block-templates-content .sub-title{font-weight:300;font-size:13px}#ast-block-templates-modal ::-webkit-scrollbar,.ast-block-templates-full-preview::-webkit-scrollbar,.ast-block-templates-content::-webkit-scrollbar,.ast-block-templates-grid-preview .ast-block-templates-grid::-webkit-scrollbar,.ast-block-templates-single-page-preview .screenshot::-webkit-scrollbar{width:5px;background-color:#f1f1f1}#ast-block-templates-modal ::-webkit-scrollbar-thumb,.ast-block-templates-full-preview::-webkit-scrollbar-thumb,.ast-block-templates-content::-webkit-scrollbar-thumb,.ast-block-templates-grid-preview .ast-block-templates-grid::-webkit-scrollbar-thumb,.ast-block-templates-single-page-preview .screenshot::-webkit-scrollbar-thumb{border-radius:0;background-color:#d8d8d8}#ast-block-templates-modal ::-webkit-scrollbar-track,.ast-block-templates-full-preview::-webkit-scrollbar-track,.ast-block-templates-content::-webkit-scrollbar-track,.ast-block-templates-grid-preview .ast-block-templates-grid::-webkit-scrollbar-track,.ast-block-templates-single-page-preview .screenshot::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 0 rgba(0,0,0,.3);width:20px}",""]);const a=o},26:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".ast-block-templates-full-preview{max-height:calc(100vh - 210px);overflow-y:auto;box-shadow:0 0 16px 0 rgba(0,0,0,.12);margin:1.1%}",""]);const a=o},698:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".ast-block-templates-full-preview{text-align:center}",""]);const a=o},227:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,"",""]);const a=o},453:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".footer{background:#fff;border-top:1px solid #ebebeb;display:flex;padding:0 30px;position:absolute;bottom:0;right:0;left:0;justify-content:center;box-shadow:0 -2px 8px rgba(0,0,0,.05)}.footer .dashicons{vertical-align:middle;font-size:initial}.footer .left,.footer .right{display:flex;justify-content:center;align-items:center}.footer .button{margin:10px 5px}",""]);const a=o},644:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,"",""]);const a=o},427:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,'.header-menu{display:flex;flex:1;align-items:center;justify-content:center;padding-right:175px}.uag-block-templates-lightbox .header-menu{padding-right:180px}.header-menu-item{line-height:1em;padding:18px 12px;display:inline-block;text-align:center;font-weight:600;color:#444;font-size:13px;border-bottom:3px solid rgba(0,0,0,0);cursor:pointer}.header-menu-item:hover{color:#0073aa}.header-menu-item.active{border-color:#0073aa;background-image:linear-gradient(to bottom, #f1f3f5, #fff);color:#0073aa}.header-menu-item .dashicons{width:auto;height:auto;font-size:initial;margin-right:8px}.header-menu-item .ast-block-templates-icon{margin-right:10px;font-size:16px}.header{display:flex;background-color:#fff;align-items:stretch;position:relative;z-index:3;box-shadow:0 4px 10px rgba(0,0,0,.05);border-radius:3px 3px 0 0;height:55px}.header h2{padding:10px 15px}.header .close{padding:0 14px;cursor:pointer;color:#a4afb7;line-height:normal;display:flex;justify-content:center;align-items:center}.header .close::before{content:"";position:absolute;height:18px;width:18px;border-left:1px solid #a4afb7;margin-right:35px}.header .close:hover{color:#6d7882}.header .close .dashicons{line-height:normal;height:auto;width:auto;vertical-align:middle;font-size:24px}',""]);const a=o},879:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".back-to-layout-wrap{width:268px;display:flex;align-items:center}.back-to-layout{padding:0 15px 0 0;text-align:center;cursor:pointer;display:flex;align-items:center;opacity:0;visibility:hidden;position:relative;margin-left:18px;color:#a4afb7}.back-to-layout .ast-block-templates-back-heading{font-size:14px}.back-to-layout:hover{color:#6d7882}.back-to-layout.show{opacity:1;visibility:visible}.back-to-layout .ast-block-templates-icon{font-size:24px}.back-to-layout:hover .ast-block-templates-tooltip{display:block;left:-6px}",""]);const a=o},398:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".back-to-templates{display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box;background:#fafafa;border-color:#999;color:#23282d;margin-top:25px}",""]);const a=o},592:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".ast-block-templates-popup-wrap{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(49,49,49,.5);z-index:9}.ast-block-templates-popup-wrap.hide{display:none;opacity:0}.ast-block-templates-popup{background:#f2f2f2;margin:0 auto;width:660px;max-height:420px;transform:translate(-50%, -40%);box-sizing:border-box;position:fixed;background-color:#f1f3f5;z-index:100059;text-align:left;top:40%;left:50%;box-shadow:0 3px 6px rgba(0,0,0,.3);border-radius:2px}.ast-block-templates-popup-header{background:#fff;margin-top:0;box-shadow:0 0 8px rgba(0,0,0,.1);margin-bottom:.5em;display:flex;justify-content:space-between}.ast-block-templates-popup-footer{padding:1em 1em 1em 2em;z-index:30;box-sizing:border-box;border-top:1px solid #dcdcdc}.ast-block-templates-popup-footer .button{margin-right:10px}.ast-block-templates-popup-content{display:block;padding:1em 1em 1em 2em;background:#f1f3f5;min-height:200px;overflow:auto;position:relative}.ast-block-templates-popup-heading{font-size:1.3em;margin:0;font-weight:600;padding:1em 1em 1em 2em}.ast-block-templates-popup-close-icon{width:53px;cursor:pointer;border-left:1px solid #eee;color:#aaa;display:flex;align-items:center;justify-content:center;padding:1em 1em 1em 1em}",""]);const a=o},442:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".ast-template-import-block-button{color:#6d7882;font-size:13px;line-height:normal;vertical-align:middle;cursor:pointer}.ast-template-import-block-button .components-spinner,.ast-template-import-block-button .dashicons{margin:0 5px 0 0;font-size:16px;line-height:normal;vertical-align:sub;width:16px;height:16px}.header .ast-template-import-block-button{padding:15px 20px;border-right:1px solid #e6e9ec;opacity:0;visibility:hidden}.header .ast-template-import-block-button.show{opacity:1;visibility:visible}",""]);const a=o},22:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,'.used-blocks-info{width:250px;position:absolute;bottom:60px;background:#fff;box-shadow:0 -3px 10px rgba(25,30,35,.12);padding:15px 18px;border-radius:2px;right:38px;display:none}.used-blocks-info.show{display:block}.used-blocks-info::after{border:8px solid #fff;content:"";position:absolute;height:0;width:0;line-height:0;bottom:-8px;left:40%;border-top-style:solid;border-left-color:rgba(0,0,0,0);border-right-color:rgba(0,0,0,0);border-bottom:none;margin-left:0}.used-blocks-info h3{margin:15px 0 8px 0;font-size:14px;font-weight:500;border-bottom:1px solid #e4e7ea;padding-bottom:8px}.used-blocks-info h3:first-child{margin-top:0}.used-blocks-info ol{margin-left:15px}.used-blocks-info ol li:last-child{margin-bottom:0}.footer .used-blocks-icon{border-left:1px solid #e6e9ec;border-right:1px solid #e6e9ec;margin-right:20px;padding:25px;display:flex;justify-content:center;align-items:center;cursor:pointer;font-size:20px;color:#555d66}',""]);const a=o},124:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".ast-template-import-page-button{color:#6d7882;font-size:13px;line-height:normal;vertical-align:middle;cursor:pointer}.ast-template-import-page-button .components-spinner,.ast-template-import-page-button .dashicons{margin:0 5px 0 0;font-size:16px;line-height:normal;vertical-align:sub;width:16px;height:16px}.header .ast-template-import-page-button{padding:15px 20px;border-right:1px solid #e6e9ec;opacity:0;visibility:hidden}.header .ast-template-import-page-button.show{opacity:1;visibility:visible}",""]);const a=o},392:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".logo-wrap{align-self:center;margin-left:18px;width:250px}.logo-wrap .logo{display:flex;align-items:center;cursor:pointer}.logo-wrap .logo.uagb-template-popup-logo img{width:120px}.logo-wrap .logo-text{margin-left:8px;font-weight:500;font-size:15px;line-height:18px;color:rgba(30,30,30,.9)}.logo-wrap img{height:34px;width:34px}.logo-wrap.white-label{width:auto}.logo-wrap.white-label .logo{width:auto;height:auto;padding:0 10px;font-weight:700}",""]);const a=o},213:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".no-search-result{padding:7em 0;text-align:center;color:#6d7882;flex:1;right:0;top:0 !important}.no-search-result h3{margin-bottom:1.2em;font-size:1.3rem;font-weight:400;color:#666;margin-top:0}.no-search-result p{font-size:13px;margin:0}.no-search-result-description a{text-decoration:none;color:#0073aa}",""]);const a=o},119:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".ast-block-templates-content .ast-block-templates-notice-message{margin:.5em 0;padding:2px}.ast-block-templates-content .ast-block-templates-notice{position:relative;margin:25px 50px;margin-bottom:0}.ast-block-templates-grid-blocks .ast-block-templates-notice{margin:0 1.4%}",""]);const a=o},796:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".header .search-form{position:absolute;right:122px;top:9px}.header .search-form input::-webkit-input-placeholder{color:#a4afb7}.header .search-form input::-webkit-search-cancel-button{margin-top:-5px;cursor:pointer}.header .search-form .button{border:none;padding:0 5px;line-height:0;background:0 0;position:absolute;right:15px;bottom:0;color:#a4afb7;top:0}.header .search-form .button:focus,.header .search-form .button:hover{background:rgba(0,0,0,0);box-shadow:none}.header .search-form.have-input input:focus+.button,.header .search-form.have-input input:hover+.button{opacity:0;visibility:hidden}.header .search-form input{border-left:none;border-right:none;border-top:none;border-bottom:1px solid #f1f3f5;font-weight:300;width:350px;opacity:1;background:#fff;border-radius:3px;font-size:13px;padding:5px 20px 5px 15px;border:1px solid #d2d7db;box-shadow:none}.header .search-form input:hover{border-color:#a4afb7}.header .search-form input:focus{outline:none;box-shadow:none;border-color:#a4afb7}.header .search-form svg{fill:#a9a9a9;width:18px}",""]);const a=o},699:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,".ast-block-templates-sync{position:relative;padding:0 18px;cursor:pointer;color:#6d7882;display:flex;justify-content:center;align-items:center}.ast-block-templates-sync:hover .ast-block-templates-icon{color:#6d7882}.ast-block-templates-sync .ast-block-templates-icon{font-size:16px;color:#a4afb7}.ast-block-templates-sync .ast-block-templates-tooltip{text-align:center;width:100px}.ast-block-templates-sync:hover .ast-block-templates-tooltip{display:block}.ast-block-templates-sync__title{position:absolute;bottom:-15px;left:-139px;background:#fff;width:200px;border-radius:0;padding:3px 8px;text-align:left;border:1px solid #e6e9ec;opacity:0;visibility:hidden}.ast-block-templates-sync--processing .ast-block-templates-icon{animation:rotation 2s infinite linear}",""]);const a=o},24:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,'.ast-block-templates-tooltip{width:105px;font-size:12px;position:absolute;bottom:-33px;background:#fff;box-shadow:0 3px 10px rgba(25,30,35,.12);padding:4px;border-radius:2px;display:none;z-index:999}.ast-block-templates-tooltip::before{border:5px solid #fff;content:"";position:absolute;height:0;width:0;line-height:0;top:-5px;left:45%;left:calc(50% - 5px);border-bottom-style:solid;border-left-color:rgba(0,0,0,0);border-right-color:rgba(0,0,0,0);border-top:none;margin-left:0}',""]);const a=o},192:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>a});var n=r(645),o=r.n(n)()(!1);o.push([t.id,'*,::before,::after{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}#ast-block-templates-button-wrap{flex-basis:100%}#ast-block-templates-button{margin:2px;height:33px;font-size:13px;align-items:center;display:flex}#ast-block-templates-button .logo{width:16px;height:16px;margin-right:8px;padding:0}#ast-block-templates-button .uagb-template-button-logo{height:16px;width:16px;align-self:center}.ast-block-templates-button{padding:10px}#ast-block-templates-modal{border-radius:3px;box-shadow:2px 8px 23px 3px rgba(0,0,0,.2);overflow:hidden;background-color:#f1f3f5;max-width:85%;height:calc(100vh - 4em);z-index:9999;margin:2em auto}#ast-block-templates-modal>.inner{position:relative}@media screen and (max-width: 782px){#ast-block-templates-modal{padding:0 20px}}.ast-block-templates-grid-blocks .button-actions.import-action-start{opacity:1;visibility:visible}.ast-block-templates-grid-blocks .importing .inner .button-actions,.ast-block-templates-grid-blocks .inner:hover .button-actions{opacity:1;visibility:visible}.ast-block-templates-grid-blocks .button-actions{opacity:0;visibility:hidden;margin:0 auto}.ast-block-templates-grid-blocks .thumbnail{cursor:pointer;position:relative;text-align:center;overflow:hidden}.ast-block-templates-grid-blocks .heading-wrap .title{margin-bottom:0}.ast-block-templates-grid-blocks .ast-block-templates-grid .item.importing .inner img,.ast-block-templates-grid-blocks .ast-block-templates-grid .item .inner:hover img{filter:blur(1px)}.ast-block-templates-grid-blocks .ast-block-templates-grid .item.importing .inner .heading-wrap,.ast-block-templates-grid-blocks .ast-block-templates-grid .item .inner:hover .heading-wrap{opacity:1;visibility:visible}.ast-block-templates-grid-blocks .ast-block-templates-grid .item .heading-wrap{padding:5px 0;flex-direction:row;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;visibility:hidden;transition:transform .5s}@media only screen and (min-width: 768px){.ast-block-templates-grid-blocks .ast-block-templates-grid .item{width:33.33%}}.ast-block-templates-grid-pages{padding:35px 25px 0 25px}.ast-block-templates-grid-pages .heading-wrap{cursor:pointer}.ast-block-templates-grid-pages,.ast-block-templates-grid-blocks{display:none}.ast-block-templates-grid-pages.active,.ast-block-templates-grid-blocks.active{display:block}@media only screen and (min-width: 768px){.ast-block-templates-single-site-preview .ast-block-templates-grid .item,.ast-block-templates-grid-pages .ast-block-templates-grid .item{width:25%}}.ast-block-templates-grid .item{border:none;margin:0 4% 4% 0;position:relative;width:30.6%;box-sizing:border-box;align-content:flex-start}.ast-block-templates-grid .item.importing .inner,.ast-block-templates-grid .item:hover .inner{box-shadow:0 6px 14px 0 rgba(0,0,0,.12)}.ast-block-templates-grid .item .inner{margin:0;background:#fff;box-shadow:0 4px 10px 0 rgba(0,0,0,.07);position:relative;border-radius:3px;transition:all .4s;padding:5px}.ast-block-templates-grid .item .screenshot{background-position:center top;background-size:100%;background-repeat:no-repeat;border-top-left-radius:2px;border-top-right-radius:2px;overflow:hidden;background-color:#e5e5e5;position:relative;display:block}.ast-block-templates-grid .item .screenshot::after{content:"";display:block;padding-top:118%}.ast-block-templates-grid .item .heading-wrap{display:flex;justify-content:space-between;line-height:1;padding:12px 15px;font-weight:400;border:none;border-bottom-left-radius:2px;border-bottom-right-radius:2px;flex-direction:column}.ast-block-templates-grid .item .heading-wrap .ast-template-import-block-button{padding:6px 14px;min-height:auto;line-height:normal;border-radius:2px}.ast-block-templates-grid .item.importing .preview,.ast-block-templates-grid .item .inner:hover .preview{opacity:1;visibility:visible}.ast-block-templates-grid .item .preview{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;opacity:0;visibility:hidden;float:none;transition:all .3s;background:rgba(0,0,0,.5)}.ast-block-templates-grid .item .preview .preview-inner{position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);font-size:20px;color:#d5dadf}.ast-block-templates-grid .item .import{cursor:pointer;position:relative}.ast-block-templates-grid .item .import .components-spinner{position:absolute;left:-25px;margin:0;top:-2px}.ast-block-templates-grid .item .import .dashicons{height:auto;width:auto;font-size:initial;padding-right:3px}.ast-block-templates-grid-pages .ast-block-templates-grid .item .preview{background:unset}.image-loading{animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:image-placeholder;animation-timing-function:linear;background:#f6f7f8;background:linear-gradient(to right, #fafafa 8%, #f4f4f4 38%, #fafafa 54%);position:relative}@keyframes image-placeholder{0%{background-position:-150px 0}100%{background-position:150px 0}}.ast-block-templates-grid{display:flex;flex-wrap:wrap}@media only screen and (min-width: 768px){.ast-block-templates-grid{margin:0}.ast-block-templates-grid .item{width:25%;padding:1.4%;margin:0;box-shadow:none}}.blocks-color{width:100%}.block-color-item{padding:6px 18px;display:inline-block;border:1px solid #c8cfd6;cursor:pointer;text-transform:capitalize}.block-color-item:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.block-color-item:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.block-color-item.active,.block-color-item:hover{background:#2271b1;border-color:#2271b1;color:#fff}.block-color-item:nth-child(2){border-right:none;border-left:none}.block-color-list{display:inline-flex}#ast-block-templates-modal-wrap{opacity:0;visibility:hidden;position:fixed;height:100%;width:100%;bottom:0;left:0;background-color:rgba(0,0,0,.8);z-index:99999999;user-select:none}#ast-block-templates-modal-wrap .ast-block-templates-grid>.components-spinner{margin:8em auto auto}#ast-block-templates-modal-wrap.open{opacity:1;visibility:visible}#ast-block-templates-modal-wrap .filter-wrap{display:flex;justify-content:space-between;align-items:center;margin:0 0 15px 0;padding-left:12.55px}#ast-block-templates-modal-wrap .filter-wrap select{margin-right:10px;position:relative;background-size:12px 12px;height:28px;color:#6d7882;border-radius:3px;border-color:#d5dadf;font-size:12px;padding:0 20px 0 10px;appearance:none;-webkit-appearance:none;-moz-appearance:none}#ast-block-templates-modal-wrap .loading{position:relative;background-color:#e2e2e2}#ast-block-templates-modal-wrap .loading::after{display:block;content:"";position:absolute;width:100%;height:100%;-webkit-transform:translateX(-100%);transform:translateX(-100%);background:-webkit-gradient(linear, left top, right top, from(transparent), color-stop(rgba(255, 255, 255, 0.2)), to(transparent));background:linear-gradient(90deg, rgba(255, 255, 255, 0.1098039216), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.168627451));-webkit-animation:loading 1.5s infinite;animation:loading 1.5s infinite}@-webkit-keyframes loading{100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes loading{100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}#ast-block-templates-modal{width:100%;max-width:100%;box-shadow:none;border-radius:0;height:100%;margin:0}.st-block-category{display:flex;align-items:center;justify-content:space-between;cursor:pointer;margin-bottom:12px;color:#6d7882}.st-block-category:hover,.st-block-category.active{color:#2271b1}#ast-block-templates-modal .ast-block-templates-grid-blocks{display:flex;align-items:flex-start}#ast-block-templates-modal .ast-block-templates-grid-blocks .filter-wrap{align-items:flex-start;width:250px;padding:10px 30px 30px 30px;position:fixed;height:calc(100vh - 55px);background-color:rgba(255,255,255,.5);flex-grow:0;overflow-y:auto;box-shadow:2px 8px 23px 3px rgba(0,0,0,.05);z-index:2}#ast-block-templates-modal .ast-block-templates-pattern-grid{width:calc(100% - 250px);margin-left:auto;padding:3em}#ast-block-templates-modal .ast-block-templates-pattern-grid .notice{margin-bottom:1.5em}#ast-block-templates-modal .blocks-color{margin-bottom:40px}#ast-block-templates-modal .filters{margin-top:2em;width:100%}#ast-block-templates-modal .filters h3{color:#1e1e1e;font-size:14px;margin-bottom:20px;margin-top:0}.ast-block-templates-content .single-site .grid-item-badge{background:#ffc107;color:#000;padding:4px 12px;font-size:11px;top:0;right:-5px;text-transform:uppercase;position:absolute;z-index:999;border-radius:2px;font-weight:600;letter-spacing:.3px;transform:translateY(-30%)}',""]);const a=o},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r,n,o,a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"==typeof btoa){var c=(r=i,n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(o," */")),l=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[a].concat(l).concat([c]).join("\n")}return[a].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<t.length;c++){var l=[].concat(t[c]);n&&o[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},486:function(t,e,r){var n;t=r.nmd(t),function(){var o,a="Expected a function",i="__lodash_hash_undefined__",c="__lodash_placeholder__",l=32,s=128,u=1/0,f=9007199254740991,p=NaN,m=4294967295,d=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],h="[object Arguments]",g="[object Array]",v="[object Boolean]",b="[object Date]",y="[object Error]",w="[object Function]",k="[object GeneratorFunction]",_="[object Map]",x="[object Number]",E="[object Object]",S="[object Promise]",P="[object RegExp]",B="[object Set]",R="[object String]",I="[object Symbol]",T="[object WeakMap]",A="[object ArrayBuffer]",j="[object DataView]",C="[object Float32Array]",O="[object Float64Array]",N="[object Int8Array]",F="[object Int16Array]",L="[object Int32Array]",D="[object Uint8Array]",z="[object Uint8ClampedArray]",W="[object Uint16Array]",V="[object Uint32Array]",M=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Y=RegExp(G.source),H=RegExp(q.source),K=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),nt=/^\s+/,ot=/\s/,at=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,st=/[()=,{}\[\]\/\s]/,ut=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,mt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,wt=/['\n\r\u2028\u2029\\]/g,kt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xt="\\u2700-\\u27bf",Et="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Pt="\\ufe0e\\ufe0f",Bt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rt="["+kt+"]",It="["+Bt+"]",Tt="["+_t+"]",At="\\d+",jt="["+xt+"]",Ct="["+Et+"]",Ot="[^"+kt+Bt+At+xt+Et+St+"]",Nt="\\ud83c[\\udffb-\\udfff]",Ft="[^"+kt+"]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",Dt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+St+"]",Wt="\\u200d",Vt="(?:"+Ct+"|"+Ot+")",Mt="(?:"+zt+"|"+Ot+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Nt+")?",qt="["+Pt+"]?",Yt=qt+Gt+"(?:"+Wt+"(?:"+[Ft,Lt,Dt].join("|")+")"+qt+Gt+")*",Ht="(?:"+[jt,Lt,Dt].join("|")+")"+Yt,Kt="(?:"+[Ft+Tt+"?",Tt,Lt,Dt,Rt].join("|")+")",Zt=RegExp("['’]","g"),Xt=RegExp(Tt,"g"),Jt=RegExp(Nt+"(?="+Nt+")|"+Kt+Yt,"g"),Qt=RegExp([zt+"?"+Ct+"+"+Ut+"(?="+[It,zt,"$"].join("|")+")",Mt+"+"+$t+"(?="+[It,zt+Vt,"$"].join("|")+")",zt+"?"+Vt+"+"+Ut,zt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",At,Ht].join("|"),"g"),te=RegExp("["+Wt+kt+_t+Pt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,oe={};oe[C]=oe[O]=oe[N]=oe[F]=oe[L]=oe[D]=oe[z]=oe[W]=oe[V]=!0,oe[h]=oe[g]=oe[A]=oe[v]=oe[j]=oe[b]=oe[y]=oe[w]=oe[_]=oe[x]=oe[E]=oe[P]=oe[B]=oe[R]=oe[T]=!1;var ae={};ae[h]=ae[g]=ae[A]=ae[j]=ae[v]=ae[b]=ae[C]=ae[O]=ae[N]=ae[F]=ae[L]=ae[_]=ae[x]=ae[E]=ae[P]=ae[B]=ae[R]=ae[I]=ae[D]=ae[z]=ae[W]=ae[V]=!0,ae[y]=ae[w]=ae[T]=!1;var ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ce=parseFloat,le=parseInt,se="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ue="object"==typeof self&&self&&self.Object===Object&&self,fe=se||ue||Function("return this")(),pe=e&&!e.nodeType&&e,me=pe&&t&&!t.nodeType&&t,de=me&&me.exports===pe,he=de&&se.process,ge=function(){try{return me&&me.require&&me.require("util").types||he&&he.binding&&he.binding("util")}catch(t){}}(),ve=ge&&ge.isArrayBuffer,be=ge&&ge.isDate,ye=ge&&ge.isMap,we=ge&&ge.isRegExp,ke=ge&&ge.isSet,_e=ge&&ge.isTypedArray;function xe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ee(t,e,r,n){for(var o=-1,a=null==t?0:t.length;++o<a;){var i=t[o];e(n,i,r(i),t)}return n}function Se(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Pe(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function Be(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function Re(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}function Ie(t,e){return!(null==t||!t.length)&&ze(t,e,0)>-1}function Te(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}function Ae(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function je(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function Ce(t,e,r,n){var o=-1,a=null==t?0:t.length;for(n&&a&&(r=t[++o]);++o<a;)r=e(r,t[o],o,t);return r}function Oe(t,e,r,n){var o=null==t?0:t.length;for(n&&o&&(r=t[--o]);o--;)r=e(r,t[o],o,t);return r}function Ne(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Fe=Ue("length");function Le(t,e,r){var n;return r(t,(function(t,r,o){if(e(t,r,o))return n=r,!1})),n}function De(t,e,r,n){for(var o=t.length,a=r+(n?1:-1);n?a--:++a<o;)if(e(t[a],a,t))return a;return-1}function ze(t,e,r){return e==e?function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r):De(t,Ve,r)}function We(t,e,r,n){for(var o=r-1,a=t.length;++o<a;)if(n(t[o],e))return o;return-1}function Ve(t){return t!=t}function Me(t,e){var r=null==t?0:t.length;return r?qe(t,e)/r:p}function Ue(t){return function(e){return null==e?o:e[t]}}function $e(t){return function(e){return null==t?o:t[e]}}function Ge(t,e,r,n,o){return o(t,(function(t,o,a){r=n?(n=!1,t):e(r,t,o,a)})),r}function qe(t,e){for(var r,n=-1,a=t.length;++n<a;){var i=e(t[n]);i!==o&&(r=r===o?i:r+i)}return r}function Ye(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function He(t){return t?t.slice(0,fr(t)+1).replace(nt,""):t}function Ke(t){return function(e){return t(e)}}function Ze(t,e){return Ae(e,(function(e){return t[e]}))}function Xe(t,e){return t.has(e)}function Je(t,e){for(var r=-1,n=t.length;++r<n&&ze(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length;r--&&ze(e,t[r],0)>-1;);return r}var tr=$e({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+ie[t]}function nr(t){return te.test(t)}function or(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function ar(t,e){return function(r){return t(e(r))}}function ir(t,e){for(var r=-1,n=t.length,o=0,a=[];++r<n;){var i=t[r];i!==e&&i!==c||(t[r]=c,a[o++]=r)}return a}function cr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function lr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function sr(t){return nr(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):Fe(t)}function ur(t){return nr(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fr(t){for(var e=t.length;e--&&ot.test(t.charAt(e)););return e}var pr=$e({"&":"&","<":"<",">":">",""":'"',"'":"'"}),mr=function t(e){var r,n=(e=null==e?fe:mr.defaults(fe.Object(),e,mr.pick(fe,re))).Array,ot=e.Date,kt=e.Error,_t=e.Function,xt=e.Math,Et=e.Object,St=e.RegExp,Pt=e.String,Bt=e.TypeError,Rt=n.prototype,It=_t.prototype,Tt=Et.prototype,At=e["__core-js_shared__"],jt=It.toString,Ct=Tt.hasOwnProperty,Ot=0,Nt=(r=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ft=Tt.toString,Lt=jt.call(Et),Dt=fe._,zt=St("^"+jt.call(Ct).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wt=de?e.Buffer:o,Vt=e.Symbol,Mt=e.Uint8Array,Ut=Wt?Wt.allocUnsafe:o,$t=ar(Et.getPrototypeOf,Et),Gt=Et.create,qt=Tt.propertyIsEnumerable,Yt=Rt.splice,Ht=Vt?Vt.isConcatSpreadable:o,Kt=Vt?Vt.iterator:o,Jt=Vt?Vt.toStringTag:o,te=function(){try{var t=sa(Et,"defineProperty");return t({},"",{}),t}catch(t){}}(),ie=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,se=ot&&ot.now!==fe.Date.now&&ot.now,ue=e.setTimeout!==fe.setTimeout&&e.setTimeout,pe=xt.ceil,me=xt.floor,he=Et.getOwnPropertySymbols,ge=Wt?Wt.isBuffer:o,Fe=e.isFinite,$e=Rt.join,dr=ar(Et.keys,Et),hr=xt.max,gr=xt.min,vr=ot.now,br=e.parseInt,yr=xt.random,wr=Rt.reverse,kr=sa(e,"DataView"),_r=sa(e,"Map"),xr=sa(e,"Promise"),Er=sa(e,"Set"),Sr=sa(e,"WeakMap"),Pr=sa(Et,"create"),Br=Sr&&new Sr,Rr={},Ir=La(kr),Tr=La(_r),Ar=La(xr),jr=La(Er),Cr=La(Sr),Or=Vt?Vt.prototype:o,Nr=Or?Or.valueOf:o,Fr=Or?Or.toString:o;function Lr(t){if(tc(t)&&!Ui(t)&&!(t instanceof Vr)){if(t instanceof Wr)return t;if(Ct.call(t,"__wrapped__"))return Da(t)}return new Wr(t)}var Dr=function(){function t(){}return function(e){if(!Qi(e))return{};if(Gt)return Gt(e);t.prototype=e;var r=new t;return t.prototype=o,r}}();function zr(){}function Wr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function Vr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Mr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ur(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function $r(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Gr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new $r;++e<r;)this.add(t[e])}function qr(t){var e=this.__data__=new Ur(t);this.size=e.size}function Yr(t,e){var r=Ui(t),n=!r&&Mi(t),o=!r&&!n&&Yi(t),a=!r&&!n&&!o&&lc(t),i=r||n||o||a,c=i?Ye(t.length,Pt):[],l=c.length;for(var s in t)!e&&!Ct.call(t,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ga(s,l))||c.push(s);return c}function Hr(t){var e=t.length;return e?t[Gn(0,e-1)]:o}function Kr(t,e){return ja(Bo(t),on(e,0,t.length))}function Zr(t){return ja(Bo(t))}function Xr(t,e,r){(r!==o&&!zi(t[e],r)||r===o&&!(e in t))&&rn(t,e,r)}function Jr(t,e,r){var n=t[e];Ct.call(t,e)&&zi(n,r)&&(r!==o||e in t)||rn(t,e,r)}function Qr(t,e){for(var r=t.length;r--;)if(zi(t[r][0],e))return r;return-1}function tn(t,e,r,n){return un(t,(function(t,o,a){e(n,t,r(t),a)})),n}function en(t,e){return t&&Ro(e,Tc(e),t)}function rn(t,e,r){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function nn(t,e){for(var r=-1,a=e.length,i=n(a),c=null==t;++r<a;)i[r]=c?o:Sc(t,e[r]);return i}function on(t,e,r){return t==t&&(r!==o&&(t=t<=r?t:r),e!==o&&(t=t>=e?t:e)),t}function an(t,e,r,n,a,i){var c,l=1&e,s=2&e,u=4&e;if(r&&(c=a?r(t,n,a,i):r(t)),c!==o)return c;if(!Qi(t))return t;var f=Ui(t);if(f){if(c=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Ct.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!l)return Bo(t,c)}else{var p=pa(t),m=p==w||p==k;if(Yi(t))return ko(t,l);if(p==E||p==h||m&&!a){if(c=s||m?{}:da(t),!l)return s?function(t,e){return Ro(t,fa(t),e)}(t,function(t,e){return t&&Ro(e,Ac(e),t)}(c,t)):function(t,e){return Ro(t,ua(t),e)}(t,en(c,t))}else{if(!ae[p])return a?t:{};c=function(t,e,r){var n,o=t.constructor;switch(e){case A:return _o(t);case v:case b:return new o(+t);case j:return function(t,e){var r=e?_o(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case C:case O:case N:case F:case L:case D:case z:case W:case V:return xo(t,r);case _:return new o;case x:case R:return new o(t);case P:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case B:return new o;case I:return n=t,Nr?Et(Nr.call(n)):{}}}(t,p,l)}}i||(i=new qr);var d=i.get(t);if(d)return d;i.set(t,c),ac(t)?t.forEach((function(n){c.add(an(n,e,r,n,t,i))})):ec(t)&&t.forEach((function(n,o){c.set(o,an(n,e,r,o,t,i))}));var g=f?o:(u?s?ra:ea:s?Ac:Tc)(t);return Se(g||t,(function(n,o){g&&(n=t[o=n]),Jr(c,o,an(n,e,r,o,t,i))})),c}function cn(t,e,r){var n=r.length;if(null==t)return!n;for(t=Et(t);n--;){var a=r[n],i=e[a],c=t[a];if(c===o&&!(a in t)||!i(c))return!1}return!0}function ln(t,e,r){if("function"!=typeof t)throw new Bt(a);return Ra((function(){t.apply(o,r)}),e)}function sn(t,e,r,n){var o=-1,a=Ie,i=!0,c=t.length,l=[],s=e.length;if(!c)return l;r&&(e=Ae(e,Ke(r))),n?(a=Te,i=!1):e.length>=200&&(a=Xe,i=!1,e=new Gr(e));t:for(;++o<c;){var u=t[o],f=null==r?u:r(u);if(u=n||0!==u?u:0,i&&f==f){for(var p=s;p--;)if(e[p]===f)continue t;l.push(u)}else a(e,f,n)||l.push(u)}return l}Lr.templateSettings={escape:K,evaluate:Z,interpolate:X,variable:"",imports:{_:Lr}},Lr.prototype=zr.prototype,Lr.prototype.constructor=Lr,Wr.prototype=Dr(zr.prototype),Wr.prototype.constructor=Wr,Vr.prototype=Dr(zr.prototype),Vr.prototype.constructor=Vr,Mr.prototype.clear=function(){this.__data__=Pr?Pr(null):{},this.size=0},Mr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Mr.prototype.get=function(t){var e=this.__data__;if(Pr){var r=e[t];return r===i?o:r}return Ct.call(e,t)?e[t]:o},Mr.prototype.has=function(t){var e=this.__data__;return Pr?e[t]!==o:Ct.call(e,t)},Mr.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Pr&&e===o?i:e,this},Ur.prototype.clear=function(){this.__data__=[],this.size=0},Ur.prototype.delete=function(t){var e=this.__data__,r=Qr(e,t);return!(r<0||(r==e.length-1?e.pop():Yt.call(e,r,1),--this.size,0))},Ur.prototype.get=function(t){var e=this.__data__,r=Qr(e,t);return r<0?o:e[r][1]},Ur.prototype.has=function(t){return Qr(this.__data__,t)>-1},Ur.prototype.set=function(t,e){var r=this.__data__,n=Qr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},$r.prototype.clear=function(){this.size=0,this.__data__={hash:new Mr,map:new(_r||Ur),string:new Mr}},$r.prototype.delete=function(t){var e=ca(this,t).delete(t);return this.size-=e?1:0,e},$r.prototype.get=function(t){return ca(this,t).get(t)},$r.prototype.has=function(t){return ca(this,t).has(t)},$r.prototype.set=function(t,e){var r=ca(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(t){return this.__data__.set(t,i),this},Gr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new Ur,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ur){var n=r.__data__;if(!_r||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new $r(n)}return r.set(t,e),this.size=r.size,this};var un=Ao(bn),fn=Ao(yn,!0);function pn(t,e){var r=!0;return un(t,(function(t,n,o){return r=!!e(t,n,o)})),r}function mn(t,e,r){for(var n=-1,a=t.length;++n<a;){var i=t[n],c=e(i);if(null!=c&&(l===o?c==c&&!cc(c):r(c,l)))var l=c,s=i}return s}function dn(t,e){var r=[];return un(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}function hn(t,e,r,n,o){var a=-1,i=t.length;for(r||(r=ha),o||(o=[]);++a<i;){var c=t[a];e>0&&r(c)?e>1?hn(c,e-1,r,n,o):je(o,c):n||(o[o.length]=c)}return o}var gn=jo(),vn=jo(!0);function bn(t,e){return t&&gn(t,e,Tc)}function yn(t,e){return t&&vn(t,e,Tc)}function wn(t,e){return Re(e,(function(e){return Zi(t[e])}))}function kn(t,e){for(var r=0,n=(e=vo(e,t)).length;null!=t&&r<n;)t=t[Fa(e[r++])];return r&&r==n?t:o}function _n(t,e,r){var n=e(t);return Ui(t)?n:je(n,r(t))}function xn(t){return null==t?t===o?"[object Undefined]":"[object Null]":Jt&&Jt in Et(t)?function(t){var e=Ct.call(t,Jt),r=t[Jt];try{t[Jt]=o;var n=!0}catch(t){}var a=Ft.call(t);return n&&(e?t[Jt]=r:delete t[Jt]),a}(t):function(t){return Ft.call(t)}(t)}function En(t,e){return t>e}function Sn(t,e){return null!=t&&Ct.call(t,e)}function Pn(t,e){return null!=t&&e in Et(t)}function Bn(t,e,r){for(var a=r?Te:Ie,i=t[0].length,c=t.length,l=c,s=n(c),u=1/0,f=[];l--;){var p=t[l];l&&e&&(p=Ae(p,Ke(e))),u=gr(p.length,u),s[l]=!r&&(e||i>=120&&p.length>=120)?new Gr(l&&p):o}p=t[0];var m=-1,d=s[0];t:for(;++m<i&&f.length<u;){var h=p[m],g=e?e(h):h;if(h=r||0!==h?h:0,!(d?Xe(d,g):a(f,g,r))){for(l=c;--l;){var v=s[l];if(!(v?Xe(v,g):a(t[l],g,r)))continue t}d&&d.push(g),f.push(h)}}return f}function Rn(t,e,r){var n=null==(t=Sa(t,e=vo(e,t)))?t:t[Fa(Ka(e))];return null==n?o:xe(n,t,r)}function In(t){return tc(t)&&xn(t)==h}function Tn(t,e,r,n,a){return t===e||(null==t||null==e||!tc(t)&&!tc(e)?t!=t&&e!=e:function(t,e,r,n,a,i){var c=Ui(t),l=Ui(e),s=c?g:pa(t),u=l?g:pa(e),f=(s=s==h?E:s)==E,p=(u=u==h?E:u)==E,m=s==u;if(m&&Yi(t)){if(!Yi(e))return!1;c=!0,f=!1}if(m&&!f)return i||(i=new qr),c||lc(t)?Qo(t,e,r,n,a,i):function(t,e,r,n,o,a,i){switch(r){case j:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case A:return!(t.byteLength!=e.byteLength||!a(new Mt(t),new Mt(e)));case v:case b:case x:return zi(+t,+e);case y:return t.name==e.name&&t.message==e.message;case P:case R:return t==e+"";case _:var c=or;case B:var l=1&n;if(c||(c=cr),t.size!=e.size&&!l)return!1;var s=i.get(t);if(s)return s==e;n|=2,i.set(t,e);var u=Qo(c(t),c(e),n,o,a,i);return i.delete(t),u;case I:if(Nr)return Nr.call(t)==Nr.call(e)}return!1}(t,e,s,r,n,a,i);if(!(1&r)){var d=f&&Ct.call(t,"__wrapped__"),w=p&&Ct.call(e,"__wrapped__");if(d||w){var k=d?t.value():t,S=w?e.value():e;return i||(i=new qr),a(k,S,r,n,i)}}return!!m&&(i||(i=new qr),function(t,e,r,n,a,i){var c=1&r,l=ea(t),s=l.length;if(s!=ea(e).length&&!c)return!1;for(var u=s;u--;){var f=l[u];if(!(c?f in e:Ct.call(e,f)))return!1}var p=i.get(t),m=i.get(e);if(p&&m)return p==e&&m==t;var d=!0;i.set(t,e),i.set(e,t);for(var h=c;++u<s;){var g=t[f=l[u]],v=e[f];if(n)var b=c?n(v,g,f,e,t,i):n(g,v,f,t,e,i);if(!(b===o?g===v||a(g,v,r,n,i):b)){d=!1;break}h||(h="constructor"==f)}if(d&&!h){var y=t.constructor,w=e.constructor;y==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(d=!1)}return i.delete(t),i.delete(e),d}(t,e,r,n,a,i))}(t,e,r,n,Tn,a))}function An(t,e,r,n){var a=r.length,i=a,c=!n;if(null==t)return!i;for(t=Et(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<i;){var s=(l=r[a])[0],u=t[s],f=l[1];if(c&&l[2]){if(u===o&&!(s in t))return!1}else{var p=new qr;if(n)var m=n(u,f,s,t,e,p);if(!(m===o?Tn(f,u,3,n,p):m))return!1}}return!0}function jn(t){return!(!Qi(t)||(e=t,Nt&&Nt in e))&&(Zi(t)?zt:ht).test(La(t));var e}function Cn(t){return"function"==typeof t?t:null==t?rl:"object"==typeof t?Ui(t)?Dn(t[0],t[1]):Ln(t):fl(t)}function On(t){if(!ka(t))return dr(t);var e=[];for(var r in Et(t))Ct.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Nn(t,e){return t<e}function Fn(t,e){var r=-1,o=Gi(t)?n(t.length):[];return un(t,(function(t,n,a){o[++r]=e(t,n,a)})),o}function Ln(t){var e=la(t);return 1==e.length&&e[0][2]?xa(e[0][0],e[0][1]):function(r){return r===t||An(r,t,e)}}function Dn(t,e){return ba(t)&&_a(e)?xa(Fa(t),e):function(r){var n=Sc(r,t);return n===o&&n===e?Pc(r,t):Tn(e,n,3)}}function zn(t,e,r,n,a){t!==e&&gn(e,(function(i,c){if(a||(a=new qr),Qi(i))!function(t,e,r,n,a,i,c){var l=Pa(t,r),s=Pa(e,r),u=c.get(s);if(u)Xr(t,r,u);else{var f=i?i(l,s,r+"",t,e,c):o,p=f===o;if(p){var m=Ui(s),d=!m&&Yi(s),h=!m&&!d&&lc(s);f=s,m||d||h?Ui(l)?f=l:qi(l)?f=Bo(l):d?(p=!1,f=ko(s,!0)):h?(p=!1,f=xo(s,!0)):f=[]:nc(s)||Mi(s)?(f=l,Mi(l)?f=gc(l):Qi(l)&&!Zi(l)||(f=da(s))):p=!1}p&&(c.set(s,f),a(f,s,n,i,c),c.delete(s)),Xr(t,r,f)}}(t,e,c,r,zn,n,a);else{var l=n?n(Pa(t,c),i,c+"",t,e,a):o;l===o&&(l=i),Xr(t,c,l)}}),Ac)}function Wn(t,e){var r=t.length;if(r)return ga(e+=e<0?r:0,r)?t[e]:o}function Vn(t,e,r){e=e.length?Ae(e,(function(t){return Ui(t)?function(e){return kn(e,1===t.length?t[0]:t)}:t})):[rl];var n=-1;e=Ae(e,Ke(ia()));var o=Fn(t,(function(t,r,o){var a=Ae(e,(function(e){return e(t)}));return{criteria:a,index:++n,value:t}}));return function(t,e){var n=t.length;for(t.sort((function(t,e){return function(t,e,r){for(var n=-1,o=t.criteria,a=e.criteria,i=o.length,c=r.length;++n<i;){var l=Eo(o[n],a[n]);if(l)return n>=c?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(o)}function Mn(t,e,r){for(var n=-1,o=e.length,a={};++n<o;){var i=e[n],c=kn(t,i);r(c,i)&&Zn(a,vo(i,t),c)}return a}function Un(t,e,r,n){var o=n?We:ze,a=-1,i=e.length,c=t;for(t===e&&(e=Bo(e)),r&&(c=Ae(t,Ke(r)));++a<i;)for(var l=0,s=e[a],u=r?r(s):s;(l=o(c,u,l,n))>-1;)c!==t&&Yt.call(c,l,1),Yt.call(t,l,1);return t}function $n(t,e){for(var r=t?e.length:0,n=r-1;r--;){var o=e[r];if(r==n||o!==a){var a=o;ga(o)?Yt.call(t,o,1):lo(t,o)}}return t}function Gn(t,e){return t+me(yr()*(e-t+1))}function qn(t,e){var r="";if(!t||e<1||e>f)return r;do{e%2&&(r+=t),(e=me(e/2))&&(t+=t)}while(e);return r}function Yn(t,e){return Ia(Ea(t,e,rl),t+"")}function Hn(t){return Hr(zc(t))}function Kn(t,e){var r=zc(t);return ja(r,on(e,0,r.length))}function Zn(t,e,r,n){if(!Qi(t))return t;for(var a=-1,i=(e=vo(e,t)).length,c=i-1,l=t;null!=l&&++a<i;){var s=Fa(e[a]),u=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(a!=c){var f=l[s];(u=n?n(f,s,l):o)===o&&(u=Qi(f)?f:ga(e[a+1])?[]:{})}Jr(l,s,u),l=l[s]}return t}var Xn=Br?function(t,e){return Br.set(t,e),t}:rl,Jn=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Qc(e),writable:!0})}:rl;function Qn(t){return ja(zc(t))}function to(t,e,r){var o=-1,a=t.length;e<0&&(e=-e>a?0:a+e),(r=r>a?a:r)<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var i=n(a);++o<a;)i[o]=t[o+e];return i}function eo(t,e){var r;return un(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}function ro(t,e,r){var n=0,o=null==t?n:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;n<o;){var a=n+o>>>1,i=t[a];null!==i&&!cc(i)&&(r?i<=e:i<e)?n=a+1:o=a}return o}return no(t,e,rl,r)}function no(t,e,r,n){var a=0,i=null==t?0:t.length;if(0===i)return 0;for(var c=(e=r(e))!=e,l=null===e,s=cc(e),u=e===o;a<i;){var f=me((a+i)/2),p=r(t[f]),m=p!==o,d=null===p,h=p==p,g=cc(p);if(c)var v=n||h;else v=u?h&&(n||m):l?h&&m&&(n||!d):s?h&&m&&!d&&(n||!g):!d&&!g&&(n?p<=e:p<e);v?a=f+1:i=f}return gr(i,4294967294)}function oo(t,e){for(var r=-1,n=t.length,o=0,a=[];++r<n;){var i=t[r],c=e?e(i):i;if(!r||!zi(c,l)){var l=c;a[o++]=0===i?0:i}}return a}function ao(t){return"number"==typeof t?t:cc(t)?p:+t}function io(t){if("string"==typeof t)return t;if(Ui(t))return Ae(t,io)+"";if(cc(t))return Fr?Fr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function co(t,e,r){var n=-1,o=Ie,a=t.length,i=!0,c=[],l=c;if(r)i=!1,o=Te;else if(a>=200){var s=e?null:Yo(t);if(s)return cr(s);i=!1,o=Xe,l=new Gr}else l=e?[]:c;t:for(;++n<a;){var u=t[n],f=e?e(u):u;if(u=r||0!==u?u:0,i&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue t;e&&l.push(f),c.push(u)}else o(l,f,r)||(l!==c&&l.push(f),c.push(u))}return c}function lo(t,e){return null==(t=Sa(t,e=vo(e,t)))||delete t[Fa(Ka(e))]}function so(t,e,r,n){return Zn(t,e,r(kn(t,e)),n)}function uo(t,e,r,n){for(var o=t.length,a=n?o:-1;(n?a--:++a<o)&&e(t[a],a,t););return r?to(t,n?0:a,n?a+1:o):to(t,n?a+1:0,n?o:a)}function fo(t,e){var r=t;return r instanceof Vr&&(r=r.value()),Ce(e,(function(t,e){return e.func.apply(e.thisArg,je([t],e.args))}),r)}function po(t,e,r){var o=t.length;if(o<2)return o?co(t[0]):[];for(var a=-1,i=n(o);++a<o;)for(var c=t[a],l=-1;++l<o;)l!=a&&(i[a]=sn(i[a]||c,t[l],e,r));return co(hn(i,1),e,r)}function mo(t,e,r){for(var n=-1,a=t.length,i=e.length,c={};++n<a;){var l=n<i?e[n]:o;r(c,t[n],l)}return c}function ho(t){return qi(t)?t:[]}function go(t){return"function"==typeof t?t:rl}function vo(t,e){return Ui(t)?t:ba(t,e)?[t]:Na(vc(t))}var bo=Yn;function yo(t,e,r){var n=t.length;return r=r===o?n:r,!e&&r>=n?t:to(t,e,r)}var wo=ie||function(t){return fe.clearTimeout(t)};function ko(t,e){if(e)return t.slice();var r=t.length,n=Ut?Ut(r):new t.constructor(r);return t.copy(n),n}function _o(t){var e=new t.constructor(t.byteLength);return new Mt(e).set(new Mt(t)),e}function xo(t,e){var r=e?_o(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Eo(t,e){if(t!==e){var r=t!==o,n=null===t,a=t==t,i=cc(t),c=e!==o,l=null===e,s=e==e,u=cc(e);if(!l&&!u&&!i&&t>e||i&&c&&s&&!l&&!u||n&&c&&s||!r&&s||!a)return 1;if(!n&&!i&&!u&&t<e||u&&r&&a&&!n&&!i||l&&r&&a||!c&&a||!s)return-1}return 0}function So(t,e,r,o){for(var a=-1,i=t.length,c=r.length,l=-1,s=e.length,u=hr(i-c,0),f=n(s+u),p=!o;++l<s;)f[l]=e[l];for(;++a<c;)(p||a<i)&&(f[r[a]]=t[a]);for(;u--;)f[l++]=t[a++];return f}function Po(t,e,r,o){for(var a=-1,i=t.length,c=-1,l=r.length,s=-1,u=e.length,f=hr(i-l,0),p=n(f+u),m=!o;++a<f;)p[a]=t[a];for(var d=a;++s<u;)p[d+s]=e[s];for(;++c<l;)(m||a<i)&&(p[d+r[c]]=t[a++]);return p}function Bo(t,e){var r=-1,o=t.length;for(e||(e=n(o));++r<o;)e[r]=t[r];return e}function Ro(t,e,r,n){var a=!r;r||(r={});for(var i=-1,c=e.length;++i<c;){var l=e[i],s=n?n(r[l],t[l],l,r,t):o;s===o&&(s=t[l]),a?rn(r,l,s):Jr(r,l,s)}return r}function Io(t,e){return function(r,n){var o=Ui(r)?Ee:tn,a=e?e():{};return o(r,t,ia(n,2),a)}}function To(t){return Yn((function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:o,c=a>2?r[2]:o;for(i=t.length>3&&"function"==typeof i?(a--,i):o,c&&va(r[0],r[1],c)&&(i=a<3?o:i,a=1),e=Et(e);++n<a;){var l=r[n];l&&t(e,l,n,i)}return e}))}function Ao(t,e){return function(r,n){if(null==r)return r;if(!Gi(r))return t(r,n);for(var o=r.length,a=e?o:-1,i=Et(r);(e?a--:++a<o)&&!1!==n(i[a],a,i););return r}}function jo(t){return function(e,r,n){for(var o=-1,a=Et(e),i=n(e),c=i.length;c--;){var l=i[t?c:++o];if(!1===r(a[l],l,a))break}return e}}function Co(t){return function(e){var r=nr(e=vc(e))?ur(e):o,n=r?r[0]:e.charAt(0),a=r?yo(r,1).join(""):e.slice(1);return n[t]()+a}}function Oo(t){return function(e){return Ce(Zc(Mc(e).replace(Zt,"")),t,"")}}function No(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=Dr(t.prototype),n=t.apply(r,e);return Qi(n)?n:r}}function Fo(t){return function(e,r,n){var a=Et(e);if(!Gi(e)){var i=ia(r,3);e=Tc(e),r=function(t){return i(a[t],t,a)}}var c=t(e,r,n);return c>-1?a[i?e[c]:c]:o}}function Lo(t){return ta((function(e){var r=e.length,n=r,i=Wr.prototype.thru;for(t&&e.reverse();n--;){var c=e[n];if("function"!=typeof c)throw new Bt(a);if(i&&!l&&"wrapper"==oa(c))var l=new Wr([],!0)}for(n=l?n:r;++n<r;){var s=oa(c=e[n]),u="wrapper"==s?na(c):o;l=u&&ya(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[oa(u[0])].apply(l,u[3]):1==c.length&&ya(c)?l[s]():l.thru(c)}return function(){var t=arguments,n=t[0];if(l&&1==t.length&&Ui(n))return l.plant(n).value();for(var o=0,a=r?e[o].apply(this,t):n;++o<r;)a=e[o].call(this,a);return a}}))}function Do(t,e,r,a,i,c,l,u,f,p){var m=e&s,d=1&e,h=2&e,g=24&e,v=512&e,b=h?o:No(t);return function s(){for(var y=arguments.length,w=n(y),k=y;k--;)w[k]=arguments[k];if(g)var _=aa(s),x=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}(w,_);if(a&&(w=So(w,a,i,g)),c&&(w=Po(w,c,l,g)),y-=x,g&&y<p){var E=ir(w,_);return Go(t,e,Do,s.placeholder,r,w,E,u,f,p-y)}var S=d?r:this,P=h?S[t]:t;return y=w.length,u?w=function(t,e){for(var r=t.length,n=gr(e.length,r),a=Bo(t);n--;){var i=e[n];t[n]=ga(i,r)?a[i]:o}return t}(w,u):v&&y>1&&w.reverse(),m&&f<y&&(w.length=f),this&&this!==fe&&this instanceof s&&(P=b||No(P)),P.apply(S,w)}}function zo(t,e){return function(r,n){return function(t,e,r,n){return bn(t,(function(t,o,a){e(n,r(t),o,a)})),n}(r,t,e(n),{})}}function Wo(t,e){return function(r,n){var a;if(r===o&&n===o)return e;if(r!==o&&(a=r),n!==o){if(a===o)return n;"string"==typeof r||"string"==typeof n?(r=io(r),n=io(n)):(r=ao(r),n=ao(n)),a=t(r,n)}return a}}function Vo(t){return ta((function(e){return e=Ae(e,Ke(ia())),Yn((function(r){var n=this;return t(e,(function(t){return xe(t,n,r)}))}))}))}function Mo(t,e){var r=(e=e===o?" ":io(e)).length;if(r<2)return r?qn(e,t):e;var n=qn(e,pe(t/sr(e)));return nr(e)?yo(ur(n),0,t).join(""):n.slice(0,t)}function Uo(t){return function(e,r,a){return a&&"number"!=typeof a&&va(e,r,a)&&(r=a=o),e=pc(e),r===o?(r=e,e=0):r=pc(r),function(t,e,r,o){for(var a=-1,i=hr(pe((e-t)/(r||1)),0),c=n(i);i--;)c[o?i:++a]=t,t+=r;return c}(e,r,a=a===o?e<r?1:-1:pc(a),t)}}function $o(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=hc(e),r=hc(r)),t(e,r)}}function Go(t,e,r,n,a,i,c,s,u,f){var p=8&e;e|=p?l:64,4&(e&=~(p?64:l))||(e&=-4);var m=[t,e,a,p?i:o,p?c:o,p?o:i,p?o:c,s,u,f],d=r.apply(o,m);return ya(t)&&Ba(d,m),d.placeholder=n,Ta(d,t,e)}function qo(t){var e=xt[t];return function(t,r){if(t=hc(t),(r=null==r?0:gr(mc(r),292))&&Fe(t)){var n=(vc(t)+"e").split("e");return+((n=(vc(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Yo=Er&&1/cr(new Er([,-0]))[1]==u?function(t){return new Er(t)}:cl;function Ho(t){return function(e){var r=pa(e);return r==_?or(e):r==B?lr(e):function(t,e){return Ae(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Ko(t,e,r,i,u,f,p,m){var d=2&e;if(!d&&"function"!=typeof t)throw new Bt(a);var h=i?i.length:0;if(h||(e&=-97,i=u=o),p=p===o?p:hr(mc(p),0),m=m===o?m:mc(m),h-=u?u.length:0,64&e){var g=i,v=u;i=u=o}var b=d?o:na(t),y=[t,e,r,i,u,g,v,f,p,m];if(b&&function(t,e){var r=t[1],n=e[1],o=r|n,a=o<131,i=n==s&&8==r||n==s&&256==r&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!a&&!i)return t;1&n&&(t[2]=e[2],o|=1&r?0:4);var l=e[3];if(l){var u=t[3];t[3]=u?So(u,l,e[4]):l,t[4]=u?ir(t[3],c):e[4]}(l=e[5])&&(u=t[5],t[5]=u?Po(u,l,e[6]):l,t[6]=u?ir(t[5],c):e[6]),(l=e[7])&&(t[7]=l),n&s&&(t[8]=null==t[8]?e[8]:gr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(y,b),t=y[0],e=y[1],r=y[2],i=y[3],u=y[4],!(m=y[9]=y[9]===o?d?0:t.length:hr(y[9]-h,0))&&24&e&&(e&=-25),e&&1!=e)w=8==e||16==e?function(t,e,r){var a=No(t);return function i(){for(var c=arguments.length,l=n(c),s=c,u=aa(i);s--;)l[s]=arguments[s];var f=c<3&&l[0]!==u&&l[c-1]!==u?[]:ir(l,u);return(c-=f.length)<r?Go(t,e,Do,i.placeholder,o,l,f,o,o,r-c):xe(this&&this!==fe&&this instanceof i?a:t,this,l)}}(t,e,m):e!=l&&33!=e||u.length?Do.apply(o,y):function(t,e,r,o){var a=1&e,i=No(t);return function e(){for(var c=-1,l=arguments.length,s=-1,u=o.length,f=n(u+l),p=this&&this!==fe&&this instanceof e?i:t;++s<u;)f[s]=o[s];for(;l--;)f[s++]=arguments[++c];return xe(p,a?r:this,f)}}(t,e,r,i);else var w=function(t,e,r){var n=1&e,o=No(t);return function e(){return(this&&this!==fe&&this instanceof e?o:t).apply(n?r:this,arguments)}}(t,e,r);return Ta((b?Xn:Ba)(w,y),t,e)}function Zo(t,e,r,n){return t===o||zi(t,Tt[r])&&!Ct.call(n,r)?e:t}function Xo(t,e,r,n,a,i){return Qi(t)&&Qi(e)&&(i.set(e,t),zn(t,e,o,Xo,i),i.delete(e)),t}function Jo(t){return nc(t)?o:t}function Qo(t,e,r,n,a,i){var c=1&r,l=t.length,s=e.length;if(l!=s&&!(c&&s>l))return!1;var u=i.get(t),f=i.get(e);if(u&&f)return u==e&&f==t;var p=-1,m=!0,d=2&r?new Gr:o;for(i.set(t,e),i.set(e,t);++p<l;){var h=t[p],g=e[p];if(n)var v=c?n(g,h,p,e,t,i):n(h,g,p,t,e,i);if(v!==o){if(v)continue;m=!1;break}if(d){if(!Ne(e,(function(t,e){if(!Xe(d,e)&&(h===t||a(h,t,r,n,i)))return d.push(e)}))){m=!1;break}}else if(h!==g&&!a(h,g,r,n,i)){m=!1;break}}return i.delete(t),i.delete(e),m}function ta(t){return Ia(Ea(t,o,$a),t+"")}function ea(t){return _n(t,Tc,ua)}function ra(t){return _n(t,Ac,fa)}var na=Br?function(t){return Br.get(t)}:cl;function oa(t){for(var e=t.name+"",r=Rr[e],n=Ct.call(Rr,e)?r.length:0;n--;){var o=r[n],a=o.func;if(null==a||a==t)return o.name}return e}function aa(t){return(Ct.call(Lr,"placeholder")?Lr:t).placeholder}function ia(){var t=Lr.iteratee||nl;return t=t===nl?Cn:t,arguments.length?t(arguments[0],arguments[1]):t}function ca(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function la(t){for(var e=Tc(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,_a(o)]}return e}function sa(t,e){var r=function(t,e){return null==t?o:t[e]}(t,e);return jn(r)?r:o}var ua=he?function(t){return null==t?[]:(t=Et(t),Re(he(t),(function(e){return qt.call(t,e)})))}:dl,fa=he?function(t){for(var e=[];t;)je(e,ua(t)),t=$t(t);return e}:dl,pa=xn;function ma(t,e,r){for(var n=-1,o=(e=vo(e,t)).length,a=!1;++n<o;){var i=Fa(e[n]);if(!(a=null!=t&&r(t,i)))break;t=t[i]}return a||++n!=o?a:!!(o=null==t?0:t.length)&&Ji(o)&&ga(i,o)&&(Ui(t)||Mi(t))}function da(t){return"function"!=typeof t.constructor||ka(t)?{}:Dr($t(t))}function ha(t){return Ui(t)||Mi(t)||!!(Ht&&t&&t[Ht])}function ga(t,e){var r=typeof t;return!!(e=null==e?f:e)&&("number"==r||"symbol"!=r&&vt.test(t))&&t>-1&&t%1==0&&t<e}function va(t,e,r){if(!Qi(r))return!1;var n=typeof e;return!!("number"==n?Gi(r)&&ga(e,r.length):"string"==n&&e in r)&&zi(r[e],t)}function ba(t,e){if(Ui(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!cc(t))||Q.test(t)||!J.test(t)||null!=e&&t in Et(e)}function ya(t){var e=oa(t),r=Lr[e];if("function"!=typeof r||!(e in Vr.prototype))return!1;if(t===r)return!0;var n=na(r);return!!n&&t===n[0]}(kr&&pa(new kr(new ArrayBuffer(1)))!=j||_r&&pa(new _r)!=_||xr&&pa(xr.resolve())!=S||Er&&pa(new Er)!=B||Sr&&pa(new Sr)!=T)&&(pa=function(t){var e=xn(t),r=e==E?t.constructor:o,n=r?La(r):"";if(n)switch(n){case Ir:return j;case Tr:return _;case Ar:return S;case jr:return B;case Cr:return T}return e});var wa=At?Zi:hl;function ka(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function _a(t){return t==t&&!Qi(t)}function xa(t,e){return function(r){return null!=r&&r[t]===e&&(e!==o||t in Et(r))}}function Ea(t,e,r){return e=hr(e===o?t.length-1:e,0),function(){for(var o=arguments,a=-1,i=hr(o.length-e,0),c=n(i);++a<i;)c[a]=o[e+a];a=-1;for(var l=n(e+1);++a<e;)l[a]=o[a];return l[e]=r(c),xe(t,this,l)}}function Sa(t,e){return e.length<2?t:kn(t,to(e,0,-1))}function Pa(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ba=Aa(Xn),Ra=ue||function(t,e){return fe.setTimeout(t,e)},Ia=Aa(Jn);function Ta(t,e,r){var n=e+"";return Ia(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(at,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return Se(d,(function(r){var n="_."+r[0];e&r[1]&&!Ie(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(ct):[]}(n),r)))}function Aa(t){var e=0,r=0;return function(){var n=vr(),a=16-(n-r);if(r=n,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(o,arguments)}}function ja(t,e){var r=-1,n=t.length,a=n-1;for(e=e===o?n:e;++r<e;){var i=Gn(r,a),c=t[i];t[i]=t[r],t[r]=c}return t.length=e,t}var Ca,Oa,Na=(Ca=Ci((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,r,n,o){e.push(n?o.replace(ut,"$1"):r||t)})),e}),(function(t){return 500===Oa.size&&Oa.clear(),t})),Oa=Ca.cache,Ca);function Fa(t){if("string"==typeof t||cc(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function La(t){if(null!=t){try{return jt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Da(t){if(t instanceof Vr)return t.clone();var e=new Wr(t.__wrapped__,t.__chain__);return e.__actions__=Bo(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var za=Yn((function(t,e){return qi(t)?sn(t,hn(e,1,qi,!0)):[]})),Wa=Yn((function(t,e){var r=Ka(e);return qi(r)&&(r=o),qi(t)?sn(t,hn(e,1,qi,!0),ia(r,2)):[]})),Va=Yn((function(t,e){var r=Ka(e);return qi(r)&&(r=o),qi(t)?sn(t,hn(e,1,qi,!0),o,r):[]}));function Ma(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:mc(r);return o<0&&(o=hr(n+o,0)),De(t,ia(e,3),o)}function Ua(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var a=n-1;return r!==o&&(a=mc(r),a=r<0?hr(n+a,0):gr(a,n-1)),De(t,ia(e,3),a,!0)}function $a(t){return null!=t&&t.length?hn(t,1):[]}function Ga(t){return t&&t.length?t[0]:o}var qa=Yn((function(t){var e=Ae(t,ho);return e.length&&e[0]===t[0]?Bn(e):[]})),Ya=Yn((function(t){var e=Ka(t),r=Ae(t,ho);return e===Ka(r)?e=o:r.pop(),r.length&&r[0]===t[0]?Bn(r,ia(e,2)):[]})),Ha=Yn((function(t){var e=Ka(t),r=Ae(t,ho);return(e="function"==typeof e?e:o)&&r.pop(),r.length&&r[0]===t[0]?Bn(r,o,e):[]}));function Ka(t){var e=null==t?0:t.length;return e?t[e-1]:o}var Za=Yn(Xa);function Xa(t,e){return t&&t.length&&e&&e.length?Un(t,e):t}var Ja=ta((function(t,e){var r=null==t?0:t.length,n=nn(t,e);return $n(t,Ae(e,(function(t){return ga(t,r)?+t:t})).sort(Eo)),n}));function Qa(t){return null==t?t:wr.call(t)}var ti=Yn((function(t){return co(hn(t,1,qi,!0))})),ei=Yn((function(t){var e=Ka(t);return qi(e)&&(e=o),co(hn(t,1,qi,!0),ia(e,2))})),ri=Yn((function(t){var e=Ka(t);return e="function"==typeof e?e:o,co(hn(t,1,qi,!0),o,e)}));function ni(t){if(!t||!t.length)return[];var e=0;return t=Re(t,(function(t){if(qi(t))return e=hr(t.length,e),!0})),Ye(e,(function(e){return Ae(t,Ue(e))}))}function oi(t,e){if(!t||!t.length)return[];var r=ni(t);return null==e?r:Ae(r,(function(t){return xe(e,o,t)}))}var ai=Yn((function(t,e){return qi(t)?sn(t,e):[]})),ii=Yn((function(t){return po(Re(t,qi))})),ci=Yn((function(t){var e=Ka(t);return qi(e)&&(e=o),po(Re(t,qi),ia(e,2))})),li=Yn((function(t){var e=Ka(t);return e="function"==typeof e?e:o,po(Re(t,qi),o,e)})),si=Yn(ni),ui=Yn((function(t){var e=t.length,r=e>1?t[e-1]:o;return r="function"==typeof r?(t.pop(),r):o,oi(t,r)}));function fi(t){var e=Lr(t);return e.__chain__=!0,e}function pi(t,e){return e(t)}var mi=ta((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,a=function(e){return nn(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Vr&&ga(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:pi,args:[a],thisArg:o}),new Wr(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(a)})),di=Io((function(t,e,r){Ct.call(t,r)?++t[r]:rn(t,r,1)})),hi=Fo(Ma),gi=Fo(Ua);function vi(t,e){return(Ui(t)?Se:un)(t,ia(e,3))}function bi(t,e){return(Ui(t)?Pe:fn)(t,ia(e,3))}var yi=Io((function(t,e,r){Ct.call(t,r)?t[r].push(e):rn(t,r,[e])})),wi=Yn((function(t,e,r){var o=-1,a="function"==typeof e,i=Gi(t)?n(t.length):[];return un(t,(function(t){i[++o]=a?xe(e,t,r):Rn(t,e,r)})),i})),ki=Io((function(t,e,r){rn(t,r,e)}));function _i(t,e){return(Ui(t)?Ae:Fn)(t,ia(e,3))}var xi=Io((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Ei=Yn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&va(t,e[0],e[1])?e=[]:r>2&&va(e[0],e[1],e[2])&&(e=[e[0]]),Vn(t,hn(e,1),[])})),Si=se||function(){return fe.Date.now()};function Pi(t,e,r){return e=r?o:e,e=t&&null==e?t.length:e,Ko(t,s,o,o,o,o,e)}function Bi(t,e){var r;if("function"!=typeof e)throw new Bt(a);return t=mc(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=o),r}}var Ri=Yn((function(t,e,r){var n=1;if(r.length){var o=ir(r,aa(Ri));n|=l}return Ko(t,n,e,r,o)})),Ii=Yn((function(t,e,r){var n=3;if(r.length){var o=ir(r,aa(Ii));n|=l}return Ko(e,n,t,r,o)}));function Ti(t,e,r){var n,i,c,l,s,u,f=0,p=!1,m=!1,d=!0;if("function"!=typeof t)throw new Bt(a);function h(e){var r=n,a=i;return n=i=o,f=e,l=t.apply(a,r)}function g(t){var r=t-u;return u===o||r>=e||r<0||m&&t-f>=c}function v(){var t=Si();if(g(t))return b(t);s=Ra(v,function(t){var r=e-(t-u);return m?gr(r,c-(t-f)):r}(t))}function b(t){return s=o,d&&n?h(t):(n=i=o,l)}function y(){var t=Si(),r=g(t);if(n=arguments,i=this,u=t,r){if(s===o)return function(t){return f=t,s=Ra(v,e),p?h(t):l}(u);if(m)return wo(s),s=Ra(v,e),h(u)}return s===o&&(s=Ra(v,e)),l}return e=hc(e)||0,Qi(r)&&(p=!!r.leading,c=(m="maxWait"in r)?hr(hc(r.maxWait)||0,e):c,d="trailing"in r?!!r.trailing:d),y.cancel=function(){s!==o&&wo(s),f=0,n=u=i=s=o},y.flush=function(){return s===o?l:b(Si())},y}var Ai=Yn((function(t,e){return ln(t,1,e)})),ji=Yn((function(t,e,r){return ln(t,hc(e)||0,r)}));function Ci(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Bt(a);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ci.Cache||$r),r}function Oi(t){if("function"!=typeof t)throw new Bt(a);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ci.Cache=$r;var Ni=bo((function(t,e){var r=(e=1==e.length&&Ui(e[0])?Ae(e[0],Ke(ia())):Ae(hn(e,1),Ke(ia()))).length;return Yn((function(n){for(var o=-1,a=gr(n.length,r);++o<a;)n[o]=e[o].call(this,n[o]);return xe(t,this,n)}))})),Fi=Yn((function(t,e){var r=ir(e,aa(Fi));return Ko(t,l,o,e,r)})),Li=Yn((function(t,e){var r=ir(e,aa(Li));return Ko(t,64,o,e,r)})),Di=ta((function(t,e){return Ko(t,256,o,o,o,e)}));function zi(t,e){return t===e||t!=t&&e!=e}var Wi=$o(En),Vi=$o((function(t,e){return t>=e})),Mi=In(function(){return arguments}())?In:function(t){return tc(t)&&Ct.call(t,"callee")&&!qt.call(t,"callee")},Ui=n.isArray,$i=ve?Ke(ve):function(t){return tc(t)&&xn(t)==A};function Gi(t){return null!=t&&Ji(t.length)&&!Zi(t)}function qi(t){return tc(t)&&Gi(t)}var Yi=ge||hl,Hi=be?Ke(be):function(t){return tc(t)&&xn(t)==b};function Ki(t){if(!tc(t))return!1;var e=xn(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!nc(t)}function Zi(t){if(!Qi(t))return!1;var e=xn(t);return e==w||e==k||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Xi(t){return"number"==typeof t&&t==mc(t)}function Ji(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=f}function Qi(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tc(t){return null!=t&&"object"==typeof t}var ec=ye?Ke(ye):function(t){return tc(t)&&pa(t)==_};function rc(t){return"number"==typeof t||tc(t)&&xn(t)==x}function nc(t){if(!tc(t)||xn(t)!=E)return!1;var e=$t(t);if(null===e)return!0;var r=Ct.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&jt.call(r)==Lt}var oc=we?Ke(we):function(t){return tc(t)&&xn(t)==P},ac=ke?Ke(ke):function(t){return tc(t)&&pa(t)==B};function ic(t){return"string"==typeof t||!Ui(t)&&tc(t)&&xn(t)==R}function cc(t){return"symbol"==typeof t||tc(t)&&xn(t)==I}var lc=_e?Ke(_e):function(t){return tc(t)&&Ji(t.length)&&!!oe[xn(t)]},sc=$o(Nn),uc=$o((function(t,e){return t<=e}));function fc(t){if(!t)return[];if(Gi(t))return ic(t)?ur(t):Bo(t);if(Kt&&t[Kt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Kt]());var e=pa(t);return(e==_?or:e==B?cr:zc)(t)}function pc(t){return t?(t=hc(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function mc(t){var e=pc(t),r=e%1;return e==e?r?e-r:e:0}function dc(t){return t?on(mc(t),0,m):0}function hc(t){if("number"==typeof t)return t;if(cc(t))return p;if(Qi(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qi(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=He(t);var r=dt.test(t);return r||gt.test(t)?le(t.slice(2),r?2:8):mt.test(t)?p:+t}function gc(t){return Ro(t,Ac(t))}function vc(t){return null==t?"":io(t)}var bc=To((function(t,e){if(ka(e)||Gi(e))Ro(e,Tc(e),t);else for(var r in e)Ct.call(e,r)&&Jr(t,r,e[r])})),yc=To((function(t,e){Ro(e,Ac(e),t)})),wc=To((function(t,e,r,n){Ro(e,Ac(e),t,n)})),kc=To((function(t,e,r,n){Ro(e,Tc(e),t,n)})),_c=ta(nn),xc=Yn((function(t,e){t=Et(t);var r=-1,n=e.length,a=n>2?e[2]:o;for(a&&va(e[0],e[1],a)&&(n=1);++r<n;)for(var i=e[r],c=Ac(i),l=-1,s=c.length;++l<s;){var u=c[l],f=t[u];(f===o||zi(f,Tt[u])&&!Ct.call(t,u))&&(t[u]=i[u])}return t})),Ec=Yn((function(t){return t.push(o,Xo),xe(Cc,o,t)}));function Sc(t,e,r){var n=null==t?o:kn(t,e);return n===o?r:n}function Pc(t,e){return null!=t&&ma(t,e,Pn)}var Bc=zo((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=r}),Qc(rl)),Rc=zo((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),Ct.call(t,e)?t[e].push(r):t[e]=[r]}),ia),Ic=Yn(Rn);function Tc(t){return Gi(t)?Yr(t):On(t)}function Ac(t){return Gi(t)?Yr(t,!0):function(t){if(!Qi(t))return function(t){var e=[];if(null!=t)for(var r in Et(t))e.push(r);return e}(t);var e=ka(t),r=[];for(var n in t)("constructor"!=n||!e&&Ct.call(t,n))&&r.push(n);return r}(t)}var jc=To((function(t,e,r){zn(t,e,r)})),Cc=To((function(t,e,r,n){zn(t,e,r,n)})),Oc=ta((function(t,e){var r={};if(null==t)return r;var n=!1;e=Ae(e,(function(e){return e=vo(e,t),n||(n=e.length>1),e})),Ro(t,ra(t),r),n&&(r=an(r,7,Jo));for(var o=e.length;o--;)lo(r,e[o]);return r})),Nc=ta((function(t,e){return null==t?{}:function(t,e){return Mn(t,e,(function(e,r){return Pc(t,r)}))}(t,e)}));function Fc(t,e){if(null==t)return{};var r=Ae(ra(t),(function(t){return[t]}));return e=ia(e),Mn(t,r,(function(t,r){return e(t,r[0])}))}var Lc=Ho(Tc),Dc=Ho(Ac);function zc(t){return null==t?[]:Ze(t,Tc(t))}var Wc=Oo((function(t,e,r){return e=e.toLowerCase(),t+(r?Vc(e):e)}));function Vc(t){return Kc(vc(t).toLowerCase())}function Mc(t){return(t=vc(t))&&t.replace(bt,tr).replace(Xt,"")}var Uc=Oo((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),$c=Oo((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Gc=Co("toLowerCase"),qc=Oo((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Yc=Oo((function(t,e,r){return t+(r?" ":"")+Kc(e)})),Hc=Oo((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Kc=Co("toUpperCase");function Zc(t,e,r){return t=vc(t),(e=r?o:e)===o?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var Xc=Yn((function(t,e){try{return xe(t,o,e)}catch(t){return Ki(t)?t:new kt(t)}})),Jc=ta((function(t,e){return Se(e,(function(e){e=Fa(e),rn(t,e,Ri(t[e],t))})),t}));function Qc(t){return function(){return t}}var tl=Lo(),el=Lo(!0);function rl(t){return t}function nl(t){return Cn("function"==typeof t?t:an(t,1))}var ol=Yn((function(t,e){return function(r){return Rn(r,t,e)}})),al=Yn((function(t,e){return function(r){return Rn(t,r,e)}}));function il(t,e,r){var n=Tc(e),o=wn(e,n);null!=r||Qi(e)&&(o.length||!n.length)||(r=e,e=t,t=this,o=wn(e,Tc(e)));var a=!(Qi(r)&&"chain"in r&&!r.chain),i=Zi(t);return Se(o,(function(r){var n=e[r];t[r]=n,i&&(t.prototype[r]=function(){var e=this.__chain__;if(a||e){var r=t(this.__wrapped__);return(r.__actions__=Bo(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,je([this.value()],arguments))})})),t}function cl(){}var ll=Vo(Ae),sl=Vo(Be),ul=Vo(Ne);function fl(t){return ba(t)?Ue(Fa(t)):function(t){return function(e){return kn(e,t)}}(t)}var pl=Uo(),ml=Uo(!0);function dl(){return[]}function hl(){return!1}var gl,vl=Wo((function(t,e){return t+e}),0),bl=qo("ceil"),yl=Wo((function(t,e){return t/e}),1),wl=qo("floor"),kl=Wo((function(t,e){return t*e}),1),_l=qo("round"),xl=Wo((function(t,e){return t-e}),0);return Lr.after=function(t,e){if("function"!=typeof e)throw new Bt(a);return t=mc(t),function(){if(--t<1)return e.apply(this,arguments)}},Lr.ary=Pi,Lr.assign=bc,Lr.assignIn=yc,Lr.assignInWith=wc,Lr.assignWith=kc,Lr.at=_c,Lr.before=Bi,Lr.bind=Ri,Lr.bindAll=Jc,Lr.bindKey=Ii,Lr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ui(t)?t:[t]},Lr.chain=fi,Lr.chunk=function(t,e,r){e=(r?va(t,e,r):e===o)?1:hr(mc(e),0);var a=null==t?0:t.length;if(!a||e<1)return[];for(var i=0,c=0,l=n(pe(a/e));i<a;)l[c++]=to(t,i,i+=e);return l},Lr.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,o=[];++e<r;){var a=t[e];a&&(o[n++]=a)}return o},Lr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],o=t;o--;)e[o-1]=arguments[o];return je(Ui(r)?Bo(r):[r],hn(e,1))},Lr.cond=function(t){var e=null==t?0:t.length,r=ia();return t=e?Ae(t,(function(t){if("function"!=typeof t[1])throw new Bt(a);return[r(t[0]),t[1]]})):[],Yn((function(r){for(var n=-1;++n<e;){var o=t[n];if(xe(o[0],this,r))return xe(o[1],this,r)}}))},Lr.conforms=function(t){return function(t){var e=Tc(t);return function(r){return cn(r,t,e)}}(an(t,1))},Lr.constant=Qc,Lr.countBy=di,Lr.create=function(t,e){var r=Dr(t);return null==e?r:en(r,e)},Lr.curry=function t(e,r,n){var a=Ko(e,8,o,o,o,o,o,r=n?o:r);return a.placeholder=t.placeholder,a},Lr.curryRight=function t(e,r,n){var a=Ko(e,16,o,o,o,o,o,r=n?o:r);return a.placeholder=t.placeholder,a},Lr.debounce=Ti,Lr.defaults=xc,Lr.defaultsDeep=Ec,Lr.defer=Ai,Lr.delay=ji,Lr.difference=za,Lr.differenceBy=Wa,Lr.differenceWith=Va,Lr.drop=function(t,e,r){var n=null==t?0:t.length;return n?to(t,(e=r||e===o?1:mc(e))<0?0:e,n):[]},Lr.dropRight=function(t,e,r){var n=null==t?0:t.length;return n?to(t,0,(e=n-(e=r||e===o?1:mc(e)))<0?0:e):[]},Lr.dropRightWhile=function(t,e){return t&&t.length?uo(t,ia(e,3),!0,!0):[]},Lr.dropWhile=function(t,e){return t&&t.length?uo(t,ia(e,3),!0):[]},Lr.fill=function(t,e,r,n){var a=null==t?0:t.length;return a?(r&&"number"!=typeof r&&va(t,e,r)&&(r=0,n=a),function(t,e,r,n){var a=t.length;for((r=mc(r))<0&&(r=-r>a?0:a+r),(n=n===o||n>a?a:mc(n))<0&&(n+=a),n=r>n?0:dc(n);r<n;)t[r++]=e;return t}(t,e,r,n)):[]},Lr.filter=function(t,e){return(Ui(t)?Re:dn)(t,ia(e,3))},Lr.flatMap=function(t,e){return hn(_i(t,e),1)},Lr.flatMapDeep=function(t,e){return hn(_i(t,e),u)},Lr.flatMapDepth=function(t,e,r){return r=r===o?1:mc(r),hn(_i(t,e),r)},Lr.flatten=$a,Lr.flattenDeep=function(t){return null!=t&&t.length?hn(t,u):[]},Lr.flattenDepth=function(t,e){return null!=t&&t.length?hn(t,e=e===o?1:mc(e)):[]},Lr.flip=function(t){return Ko(t,512)},Lr.flow=tl,Lr.flowRight=el,Lr.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var o=t[e];n[o[0]]=o[1]}return n},Lr.functions=function(t){return null==t?[]:wn(t,Tc(t))},Lr.functionsIn=function(t){return null==t?[]:wn(t,Ac(t))},Lr.groupBy=yi,Lr.initial=function(t){return null!=t&&t.length?to(t,0,-1):[]},Lr.intersection=qa,Lr.intersectionBy=Ya,Lr.intersectionWith=Ha,Lr.invert=Bc,Lr.invertBy=Rc,Lr.invokeMap=wi,Lr.iteratee=nl,Lr.keyBy=ki,Lr.keys=Tc,Lr.keysIn=Ac,Lr.map=_i,Lr.mapKeys=function(t,e){var r={};return e=ia(e,3),bn(t,(function(t,n,o){rn(r,e(t,n,o),t)})),r},Lr.mapValues=function(t,e){var r={};return e=ia(e,3),bn(t,(function(t,n,o){rn(r,n,e(t,n,o))})),r},Lr.matches=function(t){return Ln(an(t,1))},Lr.matchesProperty=function(t,e){return Dn(t,an(e,1))},Lr.memoize=Ci,Lr.merge=jc,Lr.mergeWith=Cc,Lr.method=ol,Lr.methodOf=al,Lr.mixin=il,Lr.negate=Oi,Lr.nthArg=function(t){return t=mc(t),Yn((function(e){return Wn(e,t)}))},Lr.omit=Oc,Lr.omitBy=function(t,e){return Fc(t,Oi(ia(e)))},Lr.once=function(t){return Bi(2,t)},Lr.orderBy=function(t,e,r,n){return null==t?[]:(Ui(e)||(e=null==e?[]:[e]),Ui(r=n?o:r)||(r=null==r?[]:[r]),Vn(t,e,r))},Lr.over=ll,Lr.overArgs=Ni,Lr.overEvery=sl,Lr.overSome=ul,Lr.partial=Fi,Lr.partialRight=Li,Lr.partition=xi,Lr.pick=Nc,Lr.pickBy=Fc,Lr.property=fl,Lr.propertyOf=function(t){return function(e){return null==t?o:kn(t,e)}},Lr.pull=Za,Lr.pullAll=Xa,Lr.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Un(t,e,ia(r,2)):t},Lr.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Un(t,e,o,r):t},Lr.pullAt=Ja,Lr.range=pl,Lr.rangeRight=ml,Lr.rearg=Di,Lr.reject=function(t,e){return(Ui(t)?Re:dn)(t,Oi(ia(e,3)))},Lr.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,o=[],a=t.length;for(e=ia(e,3);++n<a;){var i=t[n];e(i,n,t)&&(r.push(i),o.push(n))}return $n(t,o),r},Lr.rest=function(t,e){if("function"!=typeof t)throw new Bt(a);return Yn(t,e=e===o?e:mc(e))},Lr.reverse=Qa,Lr.sampleSize=function(t,e,r){return e=(r?va(t,e,r):e===o)?1:mc(e),(Ui(t)?Kr:Kn)(t,e)},Lr.set=function(t,e,r){return null==t?t:Zn(t,e,r)},Lr.setWith=function(t,e,r,n){return n="function"==typeof n?n:o,null==t?t:Zn(t,e,r,n)},Lr.shuffle=function(t){return(Ui(t)?Zr:Qn)(t)},Lr.slice=function(t,e,r){var n=null==t?0:t.length;return n?(r&&"number"!=typeof r&&va(t,e,r)?(e=0,r=n):(e=null==e?0:mc(e),r=r===o?n:mc(r)),to(t,e,r)):[]},Lr.sortBy=Ei,Lr.sortedUniq=function(t){return t&&t.length?oo(t):[]},Lr.sortedUniqBy=function(t,e){return t&&t.length?oo(t,ia(e,2)):[]},Lr.split=function(t,e,r){return r&&"number"!=typeof r&&va(t,e,r)&&(e=r=o),(r=r===o?m:r>>>0)?(t=vc(t))&&("string"==typeof e||null!=e&&!oc(e))&&!(e=io(e))&&nr(t)?yo(ur(t),0,r):t.split(e,r):[]},Lr.spread=function(t,e){if("function"!=typeof t)throw new Bt(a);return e=null==e?0:hr(mc(e),0),Yn((function(r){var n=r[e],o=yo(r,0,e);return n&&je(o,n),xe(t,this,o)}))},Lr.tail=function(t){var e=null==t?0:t.length;return e?to(t,1,e):[]},Lr.take=function(t,e,r){return t&&t.length?to(t,0,(e=r||e===o?1:mc(e))<0?0:e):[]},Lr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?to(t,(e=n-(e=r||e===o?1:mc(e)))<0?0:e,n):[]},Lr.takeRightWhile=function(t,e){return t&&t.length?uo(t,ia(e,3),!1,!0):[]},Lr.takeWhile=function(t,e){return t&&t.length?uo(t,ia(e,3)):[]},Lr.tap=function(t,e){return e(t),t},Lr.throttle=function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new Bt(a);return Qi(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ti(t,e,{leading:n,maxWait:e,trailing:o})},Lr.thru=pi,Lr.toArray=fc,Lr.toPairs=Lc,Lr.toPairsIn=Dc,Lr.toPath=function(t){return Ui(t)?Ae(t,Fa):cc(t)?[t]:Bo(Na(vc(t)))},Lr.toPlainObject=gc,Lr.transform=function(t,e,r){var n=Ui(t),o=n||Yi(t)||lc(t);if(e=ia(e,4),null==r){var a=t&&t.constructor;r=o?n?new a:[]:Qi(t)&&Zi(a)?Dr($t(t)):{}}return(o?Se:bn)(t,(function(t,n,o){return e(r,t,n,o)})),r},Lr.unary=function(t){return Pi(t,1)},Lr.union=ti,Lr.unionBy=ei,Lr.unionWith=ri,Lr.uniq=function(t){return t&&t.length?co(t):[]},Lr.uniqBy=function(t,e){return t&&t.length?co(t,ia(e,2)):[]},Lr.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?co(t,o,e):[]},Lr.unset=function(t,e){return null==t||lo(t,e)},Lr.unzip=ni,Lr.unzipWith=oi,Lr.update=function(t,e,r){return null==t?t:so(t,e,go(r))},Lr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:o,null==t?t:so(t,e,go(r),n)},Lr.values=zc,Lr.valuesIn=function(t){return null==t?[]:Ze(t,Ac(t))},Lr.without=ai,Lr.words=Zc,Lr.wrap=function(t,e){return Fi(go(e),t)},Lr.xor=ii,Lr.xorBy=ci,Lr.xorWith=li,Lr.zip=si,Lr.zipObject=function(t,e){return mo(t||[],e||[],Jr)},Lr.zipObjectDeep=function(t,e){return mo(t||[],e||[],Zn)},Lr.zipWith=ui,Lr.entries=Lc,Lr.entriesIn=Dc,Lr.extend=yc,Lr.extendWith=wc,il(Lr,Lr),Lr.add=vl,Lr.attempt=Xc,Lr.camelCase=Wc,Lr.capitalize=Vc,Lr.ceil=bl,Lr.clamp=function(t,e,r){return r===o&&(r=e,e=o),r!==o&&(r=(r=hc(r))==r?r:0),e!==o&&(e=(e=hc(e))==e?e:0),on(hc(t),e,r)},Lr.clone=function(t){return an(t,4)},Lr.cloneDeep=function(t){return an(t,5)},Lr.cloneDeepWith=function(t,e){return an(t,5,e="function"==typeof e?e:o)},Lr.cloneWith=function(t,e){return an(t,4,e="function"==typeof e?e:o)},Lr.conformsTo=function(t,e){return null==e||cn(t,e,Tc(e))},Lr.deburr=Mc,Lr.defaultTo=function(t,e){return null==t||t!=t?e:t},Lr.divide=yl,Lr.endsWith=function(t,e,r){t=vc(t),e=io(e);var n=t.length,a=r=r===o?n:on(mc(r),0,n);return(r-=e.length)>=0&&t.slice(r,a)==e},Lr.eq=zi,Lr.escape=function(t){return(t=vc(t))&&H.test(t)?t.replace(q,er):t},Lr.escapeRegExp=function(t){return(t=vc(t))&&rt.test(t)?t.replace(et,"\\$&"):t},Lr.every=function(t,e,r){var n=Ui(t)?Be:pn;return r&&va(t,e,r)&&(e=o),n(t,ia(e,3))},Lr.find=hi,Lr.findIndex=Ma,Lr.findKey=function(t,e){return Le(t,ia(e,3),bn)},Lr.findLast=gi,Lr.findLastIndex=Ua,Lr.findLastKey=function(t,e){return Le(t,ia(e,3),yn)},Lr.floor=wl,Lr.forEach=vi,Lr.forEachRight=bi,Lr.forIn=function(t,e){return null==t?t:gn(t,ia(e,3),Ac)},Lr.forInRight=function(t,e){return null==t?t:vn(t,ia(e,3),Ac)},Lr.forOwn=function(t,e){return t&&bn(t,ia(e,3))},Lr.forOwnRight=function(t,e){return t&&yn(t,ia(e,3))},Lr.get=Sc,Lr.gt=Wi,Lr.gte=Vi,Lr.has=function(t,e){return null!=t&&ma(t,e,Sn)},Lr.hasIn=Pc,Lr.head=Ga,Lr.identity=rl,Lr.includes=function(t,e,r,n){t=Gi(t)?t:zc(t),r=r&&!n?mc(r):0;var o=t.length;return r<0&&(r=hr(o+r,0)),ic(t)?r<=o&&t.indexOf(e,r)>-1:!!o&&ze(t,e,r)>-1},Lr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:mc(r);return o<0&&(o=hr(n+o,0)),ze(t,e,o)},Lr.inRange=function(t,e,r){return e=pc(e),r===o?(r=e,e=0):r=pc(r),function(t,e,r){return t>=gr(e,r)&&t<hr(e,r)}(t=hc(t),e,r)},Lr.invoke=Ic,Lr.isArguments=Mi,Lr.isArray=Ui,Lr.isArrayBuffer=$i,Lr.isArrayLike=Gi,Lr.isArrayLikeObject=qi,Lr.isBoolean=function(t){return!0===t||!1===t||tc(t)&&xn(t)==v},Lr.isBuffer=Yi,Lr.isDate=Hi,Lr.isElement=function(t){return tc(t)&&1===t.nodeType&&!nc(t)},Lr.isEmpty=function(t){if(null==t)return!0;if(Gi(t)&&(Ui(t)||"string"==typeof t||"function"==typeof t.splice||Yi(t)||lc(t)||Mi(t)))return!t.length;var e=pa(t);if(e==_||e==B)return!t.size;if(ka(t))return!On(t).length;for(var r in t)if(Ct.call(t,r))return!1;return!0},Lr.isEqual=function(t,e){return Tn(t,e)},Lr.isEqualWith=function(t,e,r){var n=(r="function"==typeof r?r:o)?r(t,e):o;return n===o?Tn(t,e,o,r):!!n},Lr.isError=Ki,Lr.isFinite=function(t){return"number"==typeof t&&Fe(t)},Lr.isFunction=Zi,Lr.isInteger=Xi,Lr.isLength=Ji,Lr.isMap=ec,Lr.isMatch=function(t,e){return t===e||An(t,e,la(e))},Lr.isMatchWith=function(t,e,r){return r="function"==typeof r?r:o,An(t,e,la(e),r)},Lr.isNaN=function(t){return rc(t)&&t!=+t},Lr.isNative=function(t){if(wa(t))throw new kt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jn(t)},Lr.isNil=function(t){return null==t},Lr.isNull=function(t){return null===t},Lr.isNumber=rc,Lr.isObject=Qi,Lr.isObjectLike=tc,Lr.isPlainObject=nc,Lr.isRegExp=oc,Lr.isSafeInteger=function(t){return Xi(t)&&t>=-9007199254740991&&t<=f},Lr.isSet=ac,Lr.isString=ic,Lr.isSymbol=cc,Lr.isTypedArray=lc,Lr.isUndefined=function(t){return t===o},Lr.isWeakMap=function(t){return tc(t)&&pa(t)==T},Lr.isWeakSet=function(t){return tc(t)&&"[object WeakSet]"==xn(t)},Lr.join=function(t,e){return null==t?"":$e.call(t,e)},Lr.kebabCase=Uc,Lr.last=Ka,Lr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var a=n;return r!==o&&(a=(a=mc(r))<0?hr(n+a,0):gr(a,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,a):De(t,Ve,a,!0)},Lr.lowerCase=$c,Lr.lowerFirst=Gc,Lr.lt=sc,Lr.lte=uc,Lr.max=function(t){return t&&t.length?mn(t,rl,En):o},Lr.maxBy=function(t,e){return t&&t.length?mn(t,ia(e,2),En):o},Lr.mean=function(t){return Me(t,rl)},Lr.meanBy=function(t,e){return Me(t,ia(e,2))},Lr.min=function(t){return t&&t.length?mn(t,rl,Nn):o},Lr.minBy=function(t,e){return t&&t.length?mn(t,ia(e,2),Nn):o},Lr.stubArray=dl,Lr.stubFalse=hl,Lr.stubObject=function(){return{}},Lr.stubString=function(){return""},Lr.stubTrue=function(){return!0},Lr.multiply=kl,Lr.nth=function(t,e){return t&&t.length?Wn(t,mc(e)):o},Lr.noConflict=function(){return fe._===this&&(fe._=Dt),this},Lr.noop=cl,Lr.now=Si,Lr.pad=function(t,e,r){t=vc(t);var n=(e=mc(e))?sr(t):0;if(!e||n>=e)return t;var o=(e-n)/2;return Mo(me(o),r)+t+Mo(pe(o),r)},Lr.padEnd=function(t,e,r){t=vc(t);var n=(e=mc(e))?sr(t):0;return e&&n<e?t+Mo(e-n,r):t},Lr.padStart=function(t,e,r){t=vc(t);var n=(e=mc(e))?sr(t):0;return e&&n<e?Mo(e-n,r)+t:t},Lr.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),br(vc(t).replace(nt,""),e||0)},Lr.random=function(t,e,r){if(r&&"boolean"!=typeof r&&va(t,e,r)&&(e=r=o),r===o&&("boolean"==typeof e?(r=e,e=o):"boolean"==typeof t&&(r=t,t=o)),t===o&&e===o?(t=0,e=1):(t=pc(t),e===o?(e=t,t=0):e=pc(e)),t>e){var n=t;t=e,e=n}if(r||t%1||e%1){var a=yr();return gr(t+a*(e-t+ce("1e-"+((a+"").length-1))),e)}return Gn(t,e)},Lr.reduce=function(t,e,r){var n=Ui(t)?Ce:Ge,o=arguments.length<3;return n(t,ia(e,4),r,o,un)},Lr.reduceRight=function(t,e,r){var n=Ui(t)?Oe:Ge,o=arguments.length<3;return n(t,ia(e,4),r,o,fn)},Lr.repeat=function(t,e,r){return e=(r?va(t,e,r):e===o)?1:mc(e),qn(vc(t),e)},Lr.replace=function(){var t=arguments,e=vc(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Lr.result=function(t,e,r){var n=-1,a=(e=vo(e,t)).length;for(a||(a=1,t=o);++n<a;){var i=null==t?o:t[Fa(e[n])];i===o&&(n=a,i=r),t=Zi(i)?i.call(t):i}return t},Lr.round=_l,Lr.runInContext=t,Lr.sample=function(t){return(Ui(t)?Hr:Hn)(t)},Lr.size=function(t){if(null==t)return 0;if(Gi(t))return ic(t)?sr(t):t.length;var e=pa(t);return e==_||e==B?t.size:On(t).length},Lr.snakeCase=qc,Lr.some=function(t,e,r){var n=Ui(t)?Ne:eo;return r&&va(t,e,r)&&(e=o),n(t,ia(e,3))},Lr.sortedIndex=function(t,e){return ro(t,e)},Lr.sortedIndexBy=function(t,e,r){return no(t,e,ia(r,2))},Lr.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=ro(t,e);if(n<r&&zi(t[n],e))return n}return-1},Lr.sortedLastIndex=function(t,e){return ro(t,e,!0)},Lr.sortedLastIndexBy=function(t,e,r){return no(t,e,ia(r,2),!0)},Lr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=ro(t,e,!0)-1;if(zi(t[r],e))return r}return-1},Lr.startCase=Yc,Lr.startsWith=function(t,e,r){return t=vc(t),r=null==r?0:on(mc(r),0,t.length),e=io(e),t.slice(r,r+e.length)==e},Lr.subtract=xl,Lr.sum=function(t){return t&&t.length?qe(t,rl):0},Lr.sumBy=function(t,e){return t&&t.length?qe(t,ia(e,2)):0},Lr.template=function(t,e,r){var n=Lr.templateSettings;r&&va(t,e,r)&&(e=o),t=vc(t),e=wc({},e,n,Zo);var a,i,c=wc({},e.imports,n.imports,Zo),l=Tc(c),s=Ze(c,l),u=0,f=e.interpolate||yt,p="__p += '",m=St((e.escape||yt).source+"|"+f.source+"|"+(f===X?ft:yt).source+"|"+(e.evaluate||yt).source+"|$","g"),d="//# sourceURL="+(Ct.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";t.replace(m,(function(e,r,n,o,c,l){return n||(n=o),p+=t.slice(u,l).replace(wt,rr),r&&(a=!0,p+="' +\n__e("+r+") +\n'"),c&&(i=!0,p+="';\n"+c+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=l+e.length,e})),p+="';\n";var h=Ct.call(e,"variable")&&e.variable;if(h){if(st.test(h))throw new kt("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(i?p.replace(M,""):p).replace(U,"$1").replace($,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xc((function(){return _t(l,d+"return "+p).apply(o,s)}));if(g.source=p,Ki(g))throw g;return g},Lr.times=function(t,e){if((t=mc(t))<1||t>f)return[];var r=m,n=gr(t,m);e=ia(e),t-=m;for(var o=Ye(n,e);++r<t;)e(r);return o},Lr.toFinite=pc,Lr.toInteger=mc,Lr.toLength=dc,Lr.toLower=function(t){return vc(t).toLowerCase()},Lr.toNumber=hc,Lr.toSafeInteger=function(t){return t?on(mc(t),-9007199254740991,f):0===t?t:0},Lr.toString=vc,Lr.toUpper=function(t){return vc(t).toUpperCase()},Lr.trim=function(t,e,r){if((t=vc(t))&&(r||e===o))return He(t);if(!t||!(e=io(e)))return t;var n=ur(t),a=ur(e);return yo(n,Je(n,a),Qe(n,a)+1).join("")},Lr.trimEnd=function(t,e,r){if((t=vc(t))&&(r||e===o))return t.slice(0,fr(t)+1);if(!t||!(e=io(e)))return t;var n=ur(t);return yo(n,0,Qe(n,ur(e))+1).join("")},Lr.trimStart=function(t,e,r){if((t=vc(t))&&(r||e===o))return t.replace(nt,"");if(!t||!(e=io(e)))return t;var n=ur(t);return yo(n,Je(n,ur(e))).join("")},Lr.truncate=function(t,e){var r=30,n="...";if(Qi(e)){var a="separator"in e?e.separator:a;r="length"in e?mc(e.length):r,n="omission"in e?io(e.omission):n}var i=(t=vc(t)).length;if(nr(t)){var c=ur(t);i=c.length}if(r>=i)return t;var l=r-sr(n);if(l<1)return n;var s=c?yo(c,0,l).join(""):t.slice(0,l);if(a===o)return s+n;if(c&&(l+=s.length-l),oc(a)){if(t.slice(l).search(a)){var u,f=s;for(a.global||(a=St(a.source,vc(pt.exec(a))+"g")),a.lastIndex=0;u=a.exec(f);)var p=u.index;s=s.slice(0,p===o?l:p)}}else if(t.indexOf(io(a),l)!=l){var m=s.lastIndexOf(a);m>-1&&(s=s.slice(0,m))}return s+n},Lr.unescape=function(t){return(t=vc(t))&&Y.test(t)?t.replace(G,pr):t},Lr.uniqueId=function(t){var e=++Ot;return vc(t)+e},Lr.upperCase=Hc,Lr.upperFirst=Kc,Lr.each=vi,Lr.eachRight=bi,Lr.first=Ga,il(Lr,(gl={},bn(Lr,(function(t,e){Ct.call(Lr.prototype,e)||(gl[e]=t)})),gl),{chain:!1}),Lr.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Lr[t].placeholder=Lr})),Se(["drop","take"],(function(t,e){Vr.prototype[t]=function(r){r=r===o?1:hr(mc(r),0);var n=this.__filtered__&&!e?new Vr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,m),type:t+(n.__dir__<0?"Right":"")}),n},Vr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Vr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ia(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),Se(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Vr.prototype[t]=function(){return this[r](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Vr.prototype[t]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(rl)},Vr.prototype.find=function(t){return this.filter(t).head()},Vr.prototype.findLast=function(t){return this.reverse().find(t)},Vr.prototype.invokeMap=Yn((function(t,e){return"function"==typeof t?new Vr(this):this.map((function(r){return Rn(r,t,e)}))})),Vr.prototype.reject=function(t){return this.filter(Oi(ia(t)))},Vr.prototype.slice=function(t,e){t=mc(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Vr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==o&&(r=(e=mc(e))<0?r.dropRight(-e):r.take(e-t)),r)},Vr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Vr.prototype.toArray=function(){return this.take(m)},bn(Vr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),a=Lr[n?"take"+("last"==e?"Right":""):e],i=n||/^find/.test(e);a&&(Lr.prototype[e]=function(){var e=this.__wrapped__,c=n?[1]:arguments,l=e instanceof Vr,s=c[0],u=l||Ui(e),f=function(t){var e=a.apply(Lr,je([t],c));return n&&p?e[0]:e};u&&r&&"function"==typeof s&&1!=s.length&&(l=u=!1);var p=this.__chain__,m=!!this.__actions__.length,d=i&&!p,h=l&&!m;if(!i&&u){e=h?e:new Vr(this);var g=t.apply(e,c);return g.__actions__.push({func:pi,args:[f],thisArg:o}),new Wr(g,p)}return d&&h?t.apply(this,c):(g=this.thru(f),d?n?g.value()[0]:g.value():g)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Rt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Lr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var o=this.value();return e.apply(Ui(o)?o:[],t)}return this[r]((function(r){return e.apply(Ui(r)?r:[],t)}))}})),bn(Vr.prototype,(function(t,e){var r=Lr[e];if(r){var n=r.name+"";Ct.call(Rr,n)||(Rr[n]=[]),Rr[n].push({name:e,func:r})}})),Rr[Do(o,2).name]=[{name:"wrapper",func:o}],Vr.prototype.clone=function(){var t=new Vr(this.__wrapped__);return t.__actions__=Bo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Bo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Bo(this.__views__),t},Vr.prototype.reverse=function(){if(this.__filtered__){var t=new Vr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Vr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ui(t),n=e<0,o=r?t.length:0,a=function(t,e,r){for(var n=-1,o=r.length;++n<o;){var a=r[n],i=a.size;switch(a.type){case"drop":t+=i;break;case"dropRight":e-=i;break;case"take":e=gr(e,t+i);break;case"takeRight":t=hr(t,e-i)}}return{start:t,end:e}}(0,o,this.__views__),i=a.start,c=a.end,l=c-i,s=n?c:i-1,u=this.__iteratees__,f=u.length,p=0,m=gr(l,this.__takeCount__);if(!r||!n&&o==l&&m==l)return fo(t,this.__actions__);var d=[];t:for(;l--&&p<m;){for(var h=-1,g=t[s+=e];++h<f;){var v=u[h],b=v.iteratee,y=v.type,w=b(g);if(2==y)g=w;else if(!w){if(1==y)continue t;break t}}d[p++]=g}return d},Lr.prototype.at=mi,Lr.prototype.chain=function(){return fi(this)},Lr.prototype.commit=function(){return new Wr(this.value(),this.__chain__)},Lr.prototype.next=function(){this.__values__===o&&(this.__values__=fc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},Lr.prototype.plant=function(t){for(var e,r=this;r instanceof zr;){var n=Da(r);n.__index__=0,n.__values__=o,e?a.__wrapped__=n:e=n;var a=n;r=r.__wrapped__}return a.__wrapped__=t,e},Lr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Vr){var e=t;return this.__actions__.length&&(e=new Vr(this)),(e=e.reverse()).__actions__.push({func:pi,args:[Qa],thisArg:o}),new Wr(e,this.__chain__)}return this.thru(Qa)},Lr.prototype.toJSON=Lr.prototype.valueOf=Lr.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Lr.prototype.first=Lr.prototype.head,Kt&&(Lr.prototype[Kt]=function(){return this}),Lr}();fe._=mr,(n=function(){return mr}.call(e,r,e,t))===o||(t.exports=n)}.call(this)},588:t=>{t.exports=function(t,e){var r,n,o=0;function a(){var a,i,c=r,l=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(i=0;i<l;i++)if(c.args[i]!==arguments[i]){c=c.next;continue t}return c!==r&&(c===n&&(n=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=r,c.prev=null,r.prev=c,r=c),c.val}c=c.next}for(a=new Array(l),i=0;i<l;i++)a[i]=arguments[i];return c={args:a,val:t.apply(null,a)},r?(r.prev=c,c.next=r):n=c,o===e.maxSize?(n=n.prev).next=null:o++,r=c,c.val}return e=e||{},a.clear=function(){r=null,n=null,o=0},a}},975:(t,e,r)=>{var n;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(t){return function(t,e){var r,n,i,c,l,s,u,f,p,m=1,d=t.length,h="";for(n=0;n<d;n++)if("string"==typeof t[n])h+=t[n];else if("object"==typeof t[n]){if((c=t[n]).keys)for(r=e[m],i=0;i<c.keys.length;i++){if(null==r)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',c.keys[i],c.keys[i-1]));r=r[c.keys[i]]}else r=c.param_no?e[c.param_no]:e[m++];if(o.not_type.test(c.type)&&o.not_primitive.test(c.type)&&r instanceof Function&&(r=r()),o.numeric_arg.test(c.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(a("[sprintf] expecting number but found %T",r));switch(o.number.test(c.type)&&(f=r>=0),c.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,c.width?parseInt(c.width):0);break;case"e":r=c.precision?parseFloat(r).toExponential(c.precision):parseFloat(r).toExponential();break;case"f":r=c.precision?parseFloat(r).toFixed(c.precision):parseFloat(r);break;case"g":r=c.precision?String(Number(r.toPrecision(c.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=c.precision?r.substring(0,c.precision):r;break;case"t":r=String(!!r),r=c.precision?r.substring(0,c.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=c.precision?r.substring(0,c.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=c.precision?r.substring(0,c.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}o.json.test(c.type)?h+=r:(!o.number.test(c.type)||f&&!c.sign?p="":(p=f?"+":"-",r=r.toString().replace(o.sign,"")),s=c.pad_char?"0"===c.pad_char?"0":c.pad_char.charAt(1):" ",u=c.width-(p+r).length,l=c.width&&u>0?s.repeat(u):"",h+=c.align?p+r+l:"0"===s?p+l+r:l+p+r)}return h}(function(t){if(c[t])return c[t];for(var e,r=t,n=[],a=0;r;){if(null!==(e=o.text.exec(r)))n.push(e[0]);else if(null!==(e=o.modulo.exec(r)))n.push("%");else{if(null===(e=o.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){a|=1;var i=[],l=e[2],s=[];if(null===(s=o.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(i.push(s[1]);""!==(l=l.substring(s[0].length));)if(null!==(s=o.key_access.exec(l)))i.push(s[1]);else{if(null===(s=o.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");i.push(s[1])}e[2]=i}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return c[t]=n}(t),arguments)}function i(t,e){return a.apply(null,[t].concat(e||[]))}var c=Object.create(null);e.sprintf=a,e.vsprintf=i,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=i,void 0===(n=function(){return{sprintf:a,vsprintf:i}}.call(e,r,e,t))||(t.exports=n))}()},782:(t,e,r)=>{var n=r(379),o=r(574);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},781:(t,e,r)=>{var n=r(379),o=r(677);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},27:(t,e,r)=>{var n=r(379),o=r(26);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},984:(t,e,r)=>{var n=r(379),o=r(698);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},955:(t,e,r)=>{var n=r(379),o=r(227);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},455:(t,e,r)=>{var n=r(379),o=r(453);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},403:(t,e,r)=>{var n=r(379),o=r(644);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},131:(t,e,r)=>{var n=r(379),o=r(427);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},524:(t,e,r)=>{var n=r(379),o=r(879);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},472:(t,e,r)=>{var n=r(379),o=r(398);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},169:(t,e,r)=>{var n=r(379),o=r(592);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},439:(t,e,r)=>{var n=r(379),o=r(442);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},265:(t,e,r)=>{var n=r(379),o=r(22);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},656:(t,e,r)=>{var n=r(379),o=r(124);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},563:(t,e,r)=>{var n=r(379),o=r(392);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},70:(t,e,r)=>{var n=r(379),o=r(213);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},766:(t,e,r)=>{var n=r(379),o=r(119);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},647:(t,e,r)=>{var n=r(379),o=r(796);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},775:(t,e,r)=>{var n=r(379),o=r(699);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},481:(t,e,r)=>{var n=r(379),o=r(24);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},404:(t,e,r)=>{var n=r(379),o=r(192);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);n(o,{insert:"head",singleton:!1}),t.exports=o.locals||{}},379:(t,e,r)=>{"use strict";var n,o=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),a=[];function i(t){for(var e=-1,r=0;r<a.length;r++)if(a[r].identifier===t){e=r;break}return e}function c(t,e){for(var r={},n=[],o=0;o<t.length;o++){var c=t[o],l=e.base?c[0]+e.base:c[0],s=r[l]||0,u="".concat(l," ").concat(s);r[l]=s+1;var f=i(u),p={css:c[1],media:c[2],sourceMap:c[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:u,updater:h(p,e),references:1}),n.push(u)}return n}function l(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var a=r.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var i=o(t.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(e)}return e}var s,u=(s=[],function(t,e){return s[t]=e,s.filter(Boolean).join("\n")});function f(t,e,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=u(e,o);else{var a=document.createTextNode(o),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(a,i[e]):t.appendChild(a)}}function p(t,e,r){var n=r.css,o=r.media,a=r.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var m=null,d=0;function h(t,e){var r,n,o;if(e.singleton){var a=d++;r=m||(m=l(e)),n=f.bind(null,r,a,!1),o=f.bind(null,r,a,!0)}else r=l(e),n=p.bind(null,r,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n));var r=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<r.length;n++){var o=i(r[n]);a[o].references--}for(var l=c(t,e),s=0;s<r.length;s++){var u=i(r[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}r=l}}}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var a=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.nc=void 0,(()=>{"use strict";r(404);var t,e,n,o,a=r(486),i=r.n(a),c=r(588),l=r.n(c),s=r(975),u=r.n(s),f=l()(console.error);function p(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return u().sprintf.apply(u(),[t].concat(r))}catch(e){return f("sprintf error: \n\n"+e.toString()),t}}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==m(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===m(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},e=["(","?"],n={")":["("],":":["?","?:"]},o=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var h={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};var g={contextDelimiter:"",onMissingKey:null};function v(t,e){var r;for(r in this.data=t,this.pluralForms={},this.options={},g)this.options[r]=void 0!==e&&r in e?e[r]:g[r]}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}v.prototype.getPluralForm=function(r,a){var i,c,l,s,u=this.pluralForms[r];return u||("function"!=typeof(l=(i=this.data[r][""])["Plural-Forms"]||i["plural-forms"]||i.plural_forms)&&(c=function(t){var e,r,n;for(e=t.split(";"),r=0;r<e.length;r++)if(0===(n=e[r].trim()).indexOf("plural="))return n.substr(7)}(i["Plural-Forms"]||i["plural-forms"]||i.plural_forms),s=function(r){var a=function(r){for(var a,i,c,l,s=[],u=[];a=r.match(o);){for(i=a[0],(c=r.substr(0,a.index).trim())&&s.push(c);l=u.pop();){if(n[i]){if(n[i][0]===l){i=n[i][1]||i;break}}else if(e.indexOf(l)>=0||t[l]<t[i]){u.push(l);break}s.push(l)}n[i]||u.push(i),r=r.substr(a.index+i.length)}return(r=r.trim())&&s.push(r),s.concat(u.reverse())}(r);return function(t){return function(t,e){var r,n,o,a,i,c,l=[];for(r=0;r<t.length;r++){if(i=t[r],a=h[i]){for(n=a.length,o=Array(n);n--;)o[n]=l.pop();try{c=a.apply(null,o)}catch(t){return t}}else c=e.hasOwnProperty(i)?e[i]:+i;l.push(c)}return l[0]}(a,t)}}(c),l=function(t){return+s({n:t})}),u=this.pluralForms[r]=l),u(a)},v.prototype.dcnpgettext=function(t,e,r,n,o){var a,i,c;return a=void 0===o?0:this.getPluralForm(t,o),i=r,e&&(i=e+this.options.contextDelimiter+r),(c=this.data[t][i])&&c[a]?c[a]:(this.options.onMissingKey&&this.options.onMissingKey(r,t),0===a?r:n)};var w={"":{plural_forms:function(t){return 1===t?0:1}}},k=/^i18n\.(n?gettext|has_translation)(_|$)/;const _=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},x=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},E=function(t,e){return function(r,n,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,i=t[e];if(x(r)&&_(n))if("function"==typeof o)if("number"==typeof a){var c={callback:o,priority:a,namespace:n};if(i[r]){var l,s=i[r].handlers;for(l=s.length;l>0&&!(a>=s[l-1].priority);l--);l===s.length?s[l]=c:s.splice(l,0,c),i.__current.forEach((function(t){t.name===r&&t.currentIndex>=l&&t.currentIndex++}))}else i[r]={handlers:[c],runs:0};"hookAdded"!==r&&t.doAction("hookAdded",r,n,o,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},S=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n,o){var a=t[e];if(x(n)&&(r||_(o))){if(!a[n])return 0;var i=0;if(r)i=a[n].handlers.length,a[n]={runs:a[n].runs,handlers:[]};else for(var c=a[n].handlers,l=function(t){c[t].namespace===o&&(c.splice(t,1),i++,a.__current.forEach((function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--})))},s=c.length-1;s>=0;s--)l(s);return"hookRemoved"!==n&&t.doAction("hookRemoved",n,o),i}}},P=function(t,e){return function(r,n){var o=t[e];return void 0!==n?r in o&&o[r].handlers.some((function(t){return t.namespace===n})):r in o}},B=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n){var o=t[e];o[n]||(o[n]={handlers:[],runs:0}),o[n].runs++;for(var a=o[n].handlers,i=arguments.length,c=new Array(i>1?i-1:0),l=1;l<i;l++)c[l-1]=arguments[l];if(!a||!a.length)return r?c[0]:void 0;var s={name:n,currentIndex:0};for(o.__current.push(s);s.currentIndex<a.length;){var u=a[s.currentIndex].callback.apply(null,c);r&&(c[0]=u),s.currentIndex++}return o.__current.pop(),r?c[0]:void 0}},R=function(t,e){return function(){var r,n,o=t[e];return null!==(r=null===(n=o.__current[o.__current.length-1])||void 0===n?void 0:n.name)&&void 0!==r?r:null}},I=function(t,e){return function(r){var n=t[e];return void 0===r?void 0!==n.__current[0]:!!n.__current[0]&&r===n.__current[0].name}},T=function(t,e){return function(r){var n=t[e];if(x(r))return n[r]&&n[r].runs?n[r].runs:0}};var A=new function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=E(this,"actions"),this.addFilter=E(this,"filters"),this.removeAction=S(this,"actions"),this.removeFilter=S(this,"filters"),this.hasAction=P(this,"actions"),this.hasFilter=P(this,"filters"),this.removeAllActions=S(this,"actions",!0),this.removeAllFilters=S(this,"filters",!0),this.doAction=B(this,"actions"),this.applyFilters=B(this,"filters",!0),this.currentAction=R(this,"actions"),this.currentFilter=R(this,"filters"),this.doingAction=I(this,"actions"),this.doingFilter=I(this,"filters"),this.didAction=T(this,"actions"),this.didFilter=T(this,"filters")},j=(A.addAction,A.addFilter,A.removeAction,A.removeFilter,A.hasAction,A.hasFilter,A.removeAllActions,A.removeAllFilters,A.doAction,A.applyFilters,A.currentAction,A.currentFilter,A.doingAction,A.doingFilter,A.didAction,A.didFilter,A.actions,A.filters,function(t,e,r){var n=new v({}),o=new Set,a=function(){o.forEach((function(t){return t()}))},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";n.data[e]=y(y(y({},w),n.data[e]),t),n.data[e][""]=y(y({},w[""]),n.data[e][""])},c=function(t,e){i(t,e),a()},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return n.data[t]||i(void 0,t),n.dcnpgettext(t,e,r,o,a)},s=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},u=function(t,e,n){var o=l(n,e,t);return r?(o=r.applyFilters("i18n.gettext_with_context",o,t,e,n),r.applyFilters("i18n.gettext_with_context_"+s(n),o,t,e,n)):o};if(r){var f=function(t){k.test(t)&&a()};r.addAction("hookAdded","core/i18n",f),r.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[t]},setLocaleData:c,resetLocaleData:function(t,e){n.data={},n.pluralForms={},c(t,e)},subscribe:function(t){return o.add(t),function(){return o.delete(t)}},__:function(t,e){var n=l(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+s(e),n,t,e)):n},_x:u,_n:function(t,e,n,o){var a=l(o,void 0,t,e,n);return r?(a=r.applyFilters("i18n.ngettext",a,t,e,n,o),r.applyFilters("i18n.ngettext_"+s(o),a,t,e,n,o)):a},_nx:function(t,e,n,o,a){var i=l(a,o,t,e,n);return r?(i=r.applyFilters("i18n.ngettext_with_context",i,t,e,n,o,a),r.applyFilters("i18n.ngettext_with_context_"+s(a),i,t,e,n,o,a)):i},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(t,e,o){var a,i,c=e?e+""+t:t,l=!(null===(a=n.data)||void 0===a||null===(i=a[null!=o?o:"default"])||void 0===i||!i[c]);return r&&(l=r.applyFilters("i18n.has_translation",l,t,e,o),l=r.applyFilters("i18n.has_translation_"+s(o),l,t,e,o)),l}}}(0,0,A));j.getLocaleData.bind(j),j.setLocaleData.bind(j),j.resetLocaleData.bind(j),j.subscribe.bind(j);var C=j.__.bind(j);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function N(){N=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new T(n||[]);return o(i,"_invoke",{value:P(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",m="suspendedYield",d="executing",h="completed",g={};function v(){}function b(){}function y(){}var w={};s(w,i,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(A([])));_&&_!==r&&n.call(_,i)&&(w=_);var x=y.prototype=v.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==O(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(u).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function P(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=B(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?h:m,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function B(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,B(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(O(e)+" is not iterable")}return b.prototype=y,o(x,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(S.prototype),s(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(u(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),s(x,l,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function F(t,e,r,n,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}j._x.bind(j),j._n.bind(j),j._nx.bind(j),j.isRTL.bind(j),j.hasTranslation.bind(j);var L=wp.data,D=L.select,z=L.dispatch,W=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=(t=t.replace("&","&")).replace("&","&"),(t=i()(t)).__wrapped__},V=function(){var t={patterns:[],wireframes:[]},e=AstBlockTemplatesVars.allBlocks;for(var r in e){var n=e[r].wireframe||{};Object.keys(n).length?t.wireframes.push(e[r]):t.patterns.push(e[r])}return t},M=function(){return V().patterns},U=function(){return V().wireframes},$=function(){var t,e=(t=N().mark((function t(){var e,r,n;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=null===(e=D("core/editor"))||void 0===e?void 0:e.getCurrentPostId())){t.next=14;break}return t.prev=2,n=C("Installed the required plugin. The page will be saved and refreshed.","ast-block-templates"),G("success",n),t.next=7,z("core/editor").savePost(r);case 7:window.location.reload(),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(2),n=C("Error saving the page: ".concat(t.t0),"ast-block-templates"),G("error",n);case 14:case"end":return t.stop()}}),t,null,[[2,10]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){F(a,n,o,i,c,"next",t)}function c(t){F(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(){return e.apply(this,arguments)}}(),G=function(t,e){window.wp.data.dispatch("core/notices").createNotice(t,e,{isDismissible:!0})},q=function(t,e,r,n){return H(t,e,r,n,M())},Y=function(t,e,r,n){return H(t,e,r,n,U())},H=function(t,e,r,n,o){o||(o=AstBlockTemplatesVars.allBlocks);var i=[];t&&(i=o.filter((function(e){return e.title.toLowerCase().includes(t.toLowerCase())})));var c=[];return r&&(c=o.filter((function(t){var e=Object.values(t.tag);if(e.length){for(var n in e)if(e[n].toLowerCase().includes(r.toLowerCase()))return!0;return!1}return!1}))),(t||r)&&(o=(0,a.unionBy)(i,c,"ID")),e&&(o=o.filter((function(t){return parseInt(e)===parseInt(t.category)}))),n&&(o=o.filter((function(t){return n===t.filter}))),o},K=function(t){var e=[];for(var r in AstBlockTemplatesVars.allSites){var n=AstBlockTemplatesVars.allSites[r],o=n.pages||{};if(Object.values(o).length)for(var i in o)o[i]["site-ID"]=n.ID,o[i]["site-title"]=n.title,e.push(o[i])}var c=[];t&&(c=e.filter((function(e){return e.title.toLowerCase().includes(t.toLowerCase())})));var l=[];t&&(l=e.filter((function(e){return e["site-title"].toLowerCase().includes(t.toLowerCase())})));var s=[];return t&&(s=e.filter((function(e){if("tag"in e){var r=Object.values(e.tag)||[];if(r.length)for(var n in r)if(r[n].toLowerCase().includes(t.toLowerCase()))return!0;return!1}return!0}))),t&&(e=(0,a.unionBy)(c,s,l,"ID")),e};function Z(t){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(t)}function X(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function J(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?X(Object(r),!0).forEach((function(e){var n,o,a;n=t,o=e,a=r[e],(o=function(t){var e=function(t,e){if("object"!==Z(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Z(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Q={togglePopup:!1,allBlocks:AstBlockTemplatesVars.allBlocks,allPatterns:M(),allWireframes:U(),allSites:AstBlockTemplatesVars.allSites,allPages:[],currentScreen:"all-sites-grid",previousScreen:"",filterBlocksByCategory:"",filterBlocksByColor:"",filterBlocksBySearchTerm:"",filterPagesByPageType:"",filterPagesBySearchTerm:"",pagePreview:{},sitePreview:{},fullWidthPagePreview:{},fullWidthBlockPreview:{},notice:{},importItemInfo:{},displayDynamicPopup:!1};function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var et,rt,nt,ot,at;et=(0,wp.data.registerStore)("ast-block-templates",{reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,e=arguments.length>1?arguments[1]:void 0;if("SET_DISPLAY_DYNAMIC_POPUP"===e.type)return J(J({},t),{},{displayDynamicPopup:e.displayDynamicPopup});if("SET_STATE"===e.type)return J(J({},t),e.state);if("FULL_WIDTH_PAGE_PREVIEW"===e.type)return J(J({},t),{},{fullWidthPagePreview:e.fullWidthPagePreview});if("FULL_WIDTH_BLOCK_PREVIEW"===e.type)return J(J({},t),{},{fullWidthBlockPreview:e.fullWidthBlockPreview});if("SET_IMPORT_ITEM_INFO"===e.type)return J(J({},t),{},{importItemInfo:e.importItemInfo});if("SET_NOTICE"===e.type)return J(J({},t),{},{notice:e.notice});if("SET_SEARCH_PAGE_PREVIEW"===e.type){var r=[],n=e.item["site-ID"]||"";return n&&(r=t.allSites.filter((function(t){return n===t.ID})))&&(r=r[0]),J(J({},t),{},{sitePreview:r,pagePreview:e.item})}if("SET_CURRENT_SCREEN"===e.type){var o="all-sites-grid"===e.currentScreen||"all-blocks-grid"===e.currentScree?"":t.currentScreen;return J(J({},t),{},{currentScreen:e.currentScreen,previousScreen:o})}if("SET_PREVIOUS_SCREEN"===e.type)return J(J({},t),{},{previousScreen:e.previousScreen});if("TOGGLE_POPUP"===e.type){var a="all-single-site-pages"!==localStorage.getItem("gt-current-screen")?localStorage.getItem("gt-current-screen"):"";return J(J({},Q),{},{currentScreen:a||Q.currentScreen,togglePopup:!t.togglePopup,filterBlocksByCategory:t.filterBlocksByCategory,filterBlocksByColor:t.filterBlocksByColor,allPatterns:t.allPatterns,allWireframes:t.allWireframes,filterBlocksBySearchTerm:t.filterBlocksBySearchTerm})}if("SET_SITE_PREVIEW"===e.type)return J(J({},t),{},{sitePreview:e.sitePreview});if("SET_PAGE_PREVIEW"===e.type)return J(J({},t),{},{pagePreview:e.pagePreview});if("SET_FULL_PREVIEW"===e.type)return J(J({},t),{},{fullWidthPreview:e.fullWidthPreview});if("SET_FILTER_BLOCKS_BY_CATEGORY"===e.type){var i=J(J({},t),{},{filterBlocksBySearchTerm:"",filterBlocksByCategory:e.filterBlocksByCategory});return"all-wireframe-grid"===t.currentScreen?i.allWireframes=Y("",e.filterBlocksByCategory,"",t.filterBlocksByColor):i.allPatterns=q("",e.filterBlocksByCategory,"",t.filterBlocksByColor),i}if("SET_FILTER_BLOCKS_BY_COLOR"===e.type){var c=J(J({},t),{},{filterBlocksBySearchTerm:"",filterBlocksByColor:e.filterBlocksByColor});return"all-wireframe-grid"===t.currentScreen?c.allWireframes=Y("",t.filterBlocksByCategory,"",e.filterBlocksByColor):c.allPatterns=q("",t.filterBlocksByCategory,"",e.filterBlocksByColor),c}if("SET_FILTER_BLOCKS_BY_SEARCH_TERM"===e.type){var l=J(J({},t),{},{filterBlocksByColor:"",filterBlocksByCategory:"",filterBlocksBySearchTerm:e.filterBlocksBySearchTerm});return"all-wireframe-grid"===t.currentScreen?l.allWireframes=Y(e.filterBlocksBySearchTerm,"",e.filterBlocksBySearchTerm,""):l.allPatterns=q(e.filterBlocksBySearchTerm,"",e.filterBlocksBySearchTerm,""),l}return"SET_FILTER_PAGES_BY_SEARCH_TERM"===e.type?e.filterPagesBySearchTerm.length?J(J({},t),{},{allPages:K(e.filterPagesBySearchTerm),filterPagesBySearchTerm:e.filterPagesBySearchTerm}):J(J({},t),{},{allPages:[],filterPagesBySearchTerm:e.filterPagesBySearchTerm}):"SET_ALL_PAGES"===e.type?J(J({},t),{},{allPages:e.allPages}):t},actions:{setTogglePopup:function(){return{type:"TOGGLE_POPUP"}},setFullWidthPagePreview:function(t){return{type:"FULL_WIDTH_PAGE_PREVIEW",fullWidthPagePreview:t}},setFullWidthBlockPreview:function(t){return{type:"FULL_WIDTH_BLOCK_PREVIEW",fullWidthBlockPreview:t}},setCurrentScreen:function(t){return{type:"SET_CURRENT_SCREEN",currentScreen:t}},setPreviousScreen:function(t){return{type:"SET_PREVIOUS_SCREEN",previousScreen:t}},setSitePreview:function(t){return{type:"SET_SITE_PREVIEW",sitePreview:t}},setSearchPagePreview:function(t){return{type:"SET_SEARCH_PAGE_PREVIEW",item:t}},setNotice:function(t){return{type:"SET_NOTICE",notice:t}},setPagePreview:function(t){return{type:"SET_PAGE_PREVIEW",pagePreview:t}},setFullWidthPreview:function(t){return{type:"SET_FULL_PREVIEW",fullWidthPreview:t}},setSearchTerm:function(t){return{type:"SEARCH_TERM",searchTerm:t}},setFilterBlocksByCategory:function(t){return{type:"SET_FILTER_BLOCKS_BY_CATEGORY",filterBlocksByCategory:t}},setFilterBlocksByColor:function(t){return{type:"SET_FILTER_BLOCKS_BY_COLOR",filterBlocksByColor:t}},setImportItemInfo:function(t){return{type:"SET_IMPORT_ITEM_INFO",importItemInfo:t}},setFilterBlocksBySearchTerm:function(t){return{type:"SET_FILTER_BLOCKS_BY_SEARCH_TERM",filterBlocksBySearchTerm:t}},setFilterPagesByPageType:function(t){return{type:"SET_FILTER_PAGES_BY_PAGE_TYPE",filterPagesByPageType:t}},setFilterPagesBySearchTerm:function(t){return{type:"SET_FILTER_PAGES_BY_SEARCH_TERM",filterPagesBySearchTerm:t}},setAllPages:function(t){return{type:"SET_ALL_PAGES",allPages:t}},setState:function(t){return{type:"SET_STATE",state:t}},setDisplayDynamicPopup:function(t){return{type:"SET_DISPLAY_DYNAMIC_POPUP",displayDynamicPopup:t}}},selectors:{getTogglePopup:function(t){return t.togglePopup},getAllWireframes:function(t){return t.allWireframes},getAllPatterns:function(t){return t.allPatterns},getAllBlocks:function(t){return t.allBlocks},getAllSites:function(t){return t.allSites},getCount:function(t){return t.count},getCurrentScreen:function(t){return t.currentScreen},getPreviousScreen:function(t){return t.previousScreen},getSearchTerm:function(t){return t.searchTerm},getSitePreview:function(t){return t.sitePreview},getNotice:function(t){return t.notice},getImportItemInfo:function(t){return t.importItemInfo},getPagePreview:function(t){return t.pagePreview},getFullWidthPreview:function(t){return t.fullWidthPreview},getFilterBlocksByCategory:function(t){return t.filterBlocksByCategory},getFilterBlocksByColor:function(t){return t.filterBlocksByColor},getFilterBlocksBySearchTerm:function(t){return t.filterBlocksBySearchTerm},getFilterPagesByPageType:function(t){return t.filterPagesByPageType},getFilterPagesBySearchTerm:function(t){return t.filterPagesBySearchTerm},getFullWidthPagePreview:function(t){return t.fullWidthPagePreview},getFullWidthBlockPreview:function(t){return t.fullWidthBlockPreview},getAllPages:function(t){return t.allPages},getBlockSearchInput:function(t){return t.blockSearchInput},getDisplayDynamicPopup:function(t){return t.displayDynamicPopup}}}),ot=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},at={getState:et.getState,dispatch:function(){return ot.apply(void 0,arguments)}},rt=[].map((function(t){return t(at)})),ot=a.flowRight.apply(void 0,function(t){if(Array.isArray(t))return tt(t)}(nt=rt)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(nt)||function(t,e){if(t){if("string"==typeof t)return tt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tt(t,e):void 0}}(nt)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())(et.dispatch),et.dispatch=ot;var it=wp.element,ct=it.createPortal,lt=it.memo;const st=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(t){return{onSetTogglePopup:t("ast-block-templates").setTogglePopup}})))(lt((function(t){var e=t.onSetTogglePopup;return ct(React.createElement("button",{onClick:e,id:"ast-block-templates-button",className:"button button-primary"},AstBlockTemplatesVars.display_button_logo&&""===AstBlockTemplatesVars.white_label_name?React.createElement("img",{src:AstBlockTemplatesVars.button_logo,className:"logo ".concat(AstBlockTemplatesVars.button_class)}):"",AstBlockTemplatesVars.white_label_name?AstBlockTemplatesVars.white_label_name:AstBlockTemplatesVars.button_text),document.getElementById("ast-block-templates-button-wrap"))})));var ut=function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#9E9E9E";t&&console.log("%c ".concat(t," "),"color: ".concat(r,"; font-weight: lighter;"),e)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:"","#F20404")};r(481);const ft=function(t){var e=t.message;return React.createElement("div",{className:"ast-block-templates-tooltip"},e)};function pt(t){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(t)}function mt(){mt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new T(n||[]);return o(i,"_invoke",{value:P(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",m="suspendedYield",d="executing",h="completed",g={};function v(){}function b(){}function y(){}var w={};s(w,i,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(A([])));_&&_!==r&&n.call(_,i)&&(w=_);var x=y.prototype=v.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==pt(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(u).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function P(e,r,n){var o=p;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=B(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?h:m,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function B(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,B(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(pt(e)+" is not iterable")}return b.prototype=y,o(x,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},E(S.prototype),s(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new S(u(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),s(x,l,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function dt(t,e,r,n,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function ht(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){dt(a,n,o,i,c,"next",t)}function c(t){dt(a,n,o,i,c,"throw",t)}i(void 0)}))}}function gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(775);var vt=wp.compose.compose,bt=wp.data,yt=bt.withSelect,wt=bt.withDispatch,kt=wp.element,_t=kt.useState,xt=kt.memo,Et=wp.ajax.post;const St=vt(wt((function(t){return{setNotice:t("ast-block-templates").setNotice}})),yt((function(t){return{notice:(0,t("ast-block-templates").getNotice)()}})))(xt((function(t){var e=t.setNotice,r=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return gt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(_t({isProcessing:"",buttonText:"Sync Library"}),2),n=r[0],o=r[1],a=n.isProcessing,i=n.buttonText,c=function(){var t=ht(mt().mark((function t(){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Et({action:"ast-block-templates-update-sync-library-status",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){e({type:"success",message:"Template library refreshed!"}),o({isProcessing:"complete",buttonText:"Sync Complete"})}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),l=function(){var t=ht(mt().mark((function t(e,r){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Et({action:"ast-block-templates-import-sites",page_no:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){t.status?(o({isProcessing:"process",buttonText:"Imported ".concat(e," of ").concat(r," site..")}),e===r&&c()):o({isProcessing:"error",buttonText:"Error ".concat(t.data)})}));case 2:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),s=function(){var t=ht(mt().mark((function t(){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Et({action:"ast-block-templates-get-sites-request-count",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){if(t.status){o({isProcessing:"process",buttonText:"Importing Sites.."});for(var e=t.data,r=1;r<=e;r++)l(r,e)}else o({isProcessing:"complete",buttonText:"Importing Sites Failed"})})).fail((function(t){ut("fail",t)}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),u=function(){var t=ht(mt().mark((function t(e,r){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Et({action:"ast-block-templates-import-blocks",page_no:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){t.status?(o({isProcessing:"process",buttonText:"Imported ".concat(e," of ").concat(r," block..")}),e===r&&s()):o({isProcessing:"error",buttonText:"Error ".concat(t.data)})}));case 2:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),f=function(){var t=ht(mt().mark((function t(){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Et({action:"ast-block-templates-get-blocks-request-count",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){if(t.status)for(var e=t.data,r=1;r<=e;r++)u(r,e);else o({isProcessing:"complete",buttonText:"Importing Pages Failed"})})).fail((function(t){ut("fail",t)}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),p=function(){var t=ht(mt().mark((function t(){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Et({action:"ast-block-templates-import-categories",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){f()})).fail((function(t){ut("fail",t)}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){var t=ht(mt().mark((function t(){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Et({action:"ast-block-templates-check-sync-library-status",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){t.status?"updated"===t.data?(o({isProcessing:"complete",buttonText:"Library is up-to date!"}),e({type:"success",message:"Template library refreshed!"})):p():(e({type:"error",message:"Error! ".concat(t.message)}),o({isProcessing:"complete",buttonText:"Error! ".concat(t.message)}))})).fail((function(t){ut("fail",t)}));case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),ut("Complete: Failed",t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(){return t.apply(this,arguments)}}();return React.createElement("span",{className:"ast-block-templates-sync ".concat("process"===a?"ast-block-templates-sync--processing":""),onClick:function(t){t.preventDefault(),e({type:"info",message:"Syncing template library in the background. The process can take anywhere between 2 to 3 minutes. We will notify you once done."}),o({isProcessing:"process",buttonText:"Syncing libray.."}),m()}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-refresh"}),React.createElement("span",{className:"ast-block-templates-sync__title"},i),React.createElement(ft,{message:"Sync Library"}))})));r(563);var Pt=wp.compose.compose,Bt=wp.data.withDispatch,Rt=wp.element.memo;const It=Pt(Bt((function(t){return{setCurrentScreen:t("ast-block-templates").setCurrentScreen}})))(Rt((function(t){var e=t.setCurrentScreen;return React.createElement("div",{className:"logo-wrap ".concat(""!==AstBlockTemplatesVars.white_label_name?"white-label":"")},React.createElement("div",{className:"logo ".concat(""!==AstBlockTemplatesVars.popup_logo_class?AstBlockTemplatesVars.popup_logo_class:""),onClick:function(){return e("all-sites-grid")}},""!==AstBlockTemplatesVars.white_label_name?React.createElement(React.Fragment,null,AstBlockTemplatesVars.white_label_name):React.createElement(React.Fragment,null,React.createElement("img",{src:AstBlockTemplatesVars.popup_logo_uri}),React.createElement("div",{className:"logo-text"},AstBlockTemplatesVars.button_text))))})));var Tt=wp.compose.compose,At=wp.data,jt=At.withSelect,Ct=At.withDispatch,Ot=wp.element.memo;const Nt=Tt(jt((function(t){var e=t("ast-block-templates"),r=e.getSitePreview,n=e.getCurrentScreen;return{preview:r(),currentScreen:n()}})),Ct((function(t){var e=t("ast-block-templates"),r=e.setAllPages,n=e.setSitePreview,o=e.setTogglePopup,a=e.setCurrentScreen,i=e.setFilterPagesBySearchTerm,c=e.setFilterBlocksBySearchTerm;return{updateCurrentScreen:function(t){r([]),n({}),i(""),c(""),a(t)},onSetSitePreview:n,onSetTogglePopup:o}})))(Ot((function(t){var e=t.currentScreen,r=t.updateCurrentScreen;return React.createElement("div",{className:"header-menu"},React.createElement("div",{className:"header-menu-item ".concat("all-sites-grid"===e||"all-single-site-pages"===e||"full-width-page-preview"===e||"all-single-pages"===e?"active":""),onClick:function(){return r("all-sites-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-pages"}),C("Pages")),React.createElement("div",{className:"header-menu-item ".concat("all-blocks-grid"===e||"full-width-block-preview"===e?"active":""),onClick:function(){return r("all-blocks-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-patterns"}),C("Patterns")),React.createElement("div",{className:"header-menu-item ".concat("all-wireframe-grid"===e?"active":""),onClick:function(){return r("all-wireframe-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-wireframe"}),C("Wireframes")))})));var Ft=wp.compose.compose,Lt=wp.data,Dt=Lt.withSelect,zt=Lt.withDispatch,Wt=wp.element.memo;const Vt=Ft(Dt((function(t){var e=t("ast-block-templates"),r=e.getSitePreview,n=e.getCurrentScreen;return{sitePreview:r(),currentScreen:n()}})),zt((function(t){var e=t("ast-block-templates"),r=e.setSitePreview,n=e.setTogglePopup;return e.setCurrentScreen,{setSitePreview:r,onSetTogglePopup:n}})))(Wt((function(t){var e=t.onSetTogglePopup;return React.createElement("div",{className:"close",onClick:function(t){e(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open")}},React.createElement("i",{className:"dashicons dashicons-no-alt"}))})));r(524);var Mt=wp.compose.compose,Ut=wp.data,$t=Ut.withSelect,Gt=Ut.withDispatch,qt=wp.element.memo;const Yt=Mt($t((function(t){var e=t("ast-block-templates"),r=e.getCurrentScreen,n=e.getPreviousScreen;return{currentScreen:r(),previousScreen:n()}})),Gt((function(t){return{setCurrentScreen:t("ast-block-templates").setCurrentScreen}})))(qt((function(t){var e=t.currentScreen,r=t.previousScreen,n=t.setCurrentScreen,o="full-width-block-preview"===e||"full-width-page-preview"===e||"all-single-site-pages"===e?"show":"",a="full-width-block-preview"===e?"Back to Patterns":"Back to Pages";return React.createElement("div",{className:"back-to-layout-wrap"},React.createElement("div",{className:"back-to-layout ".concat(o),onClick:function(){n("full-width-page-preview"===e||"full-width-block-preview"===e?"all-single-site-pages"===r?"all-single-site-pages":"all-blocks-grid":"all-sites-grid")}},React.createElement(ft,{message:a}),React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-chevron-left"}),React.createElement("span",{className:"ast-block-templates-back-heading"}," Back ")))})));function Ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(131),r(647);var Kt=wp.element,Zt=Kt.memo,Xt=Kt.useState,Jt=Kt.useEffect;const Qt=Zt((function(t){var e=t.onSearch,r=t.value,n=t.searchInputRef,o=t.placeholder,a=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ht(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ht(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Xt(""),2),i=a[0],c=a[1],l=o||C("Search..","ast-block-templates");return Jt((function(){c(r)})),React.createElement("div",{className:"search-form ".concat(i?"have-input":"")},React.createElement("input",{ref:n,type:"search",name:"search",value:r,placeholder:l,onChange:function(t){e(t)}}),React.createElement("button",{className:"button"},React.createElement("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#clip0)"},React.createElement("path",{d:"M7.33853 6.71932C7.83062 6.02464 8.12496 5.17135 8.12496 4.24633C8.12496 1.93072 6.30245 0.0466766 4.06247 0.0466766C1.82249 0.0466766 0 1.93072 0 4.24633C0 6.56193 1.82251 8.44598 4.06249 8.44598C4.95731 8.44598 5.7828 8.14166 6.45479 7.63296L9.11622 10.3842L10 9.47062C10 9.4706 7.33853 6.71932 7.33853 6.71932ZM4.06249 7.15377C2.51159 7.15377 1.25 5.84959 1.25 4.24633C1.25 2.64306 2.51159 1.33888 4.06249 1.33888C5.61339 1.33888 6.87498 2.64306 6.87498 4.24633C6.87498 5.84959 5.61337 7.15377 4.06249 7.15377Z",fill:"#C6CCD2"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0"},React.createElement("rect",{width:"10",height:"10.3376",fill:"white",transform:"translate(0 0.0466309)"}))))))}));var te=wp.element.memo,ee=wp.compose.compose,re=wp.data,ne=re.withSelect,oe=re.withDispatch;const ae=ee(ne((function(t){var e=t("ast-block-templates"),r=e.getCurrentScreen,n=e.getFilterPagesBySearchTerm,o=e.getFilterBlocksBySearchTerm;return{currentScreen:r(),filterPagesBySearchTerm:n(),filterBlocksBySearchTerm:o()}})),oe((function(t){var e=t("ast-block-templates"),r=e.setFilterBlocksBySearchTerm,n=e.setFilterPagesBySearchTerm,o=e.setCurrentScreen,a=e.setPagePreview,i=e.setSitePreview,c=e.setFullWidthBlockPreview;return{setFilterBlocksBySearchTerm:function(t,e){o(e),c({}),r(t)},insertBlocks:t("core/block-editor").insertBlocks,setFilterPagesBySearchTerm:function(t){o("all-sites-grid"),n(t),a({}),i({})}}})))(te((function(t){var e=t.currentScreen,r=t.filterPagesBySearchTerm,n=t.filterBlocksBySearchTerm,o=t.setFilterBlocksBySearchTerm,a=t.setFilterPagesBySearchTerm;return React.createElement("div",{className:"header"},"all-single-site-pages"===e?React.createElement(Yt,null):React.createElement(It,null),React.createElement(Nt,null),"all-sites-grid"===e||"all-single-site-pages"===e||"full-width-page-preview"===e||"all-single-pages"===e?React.createElement(Qt,{placeholder:"Search Templates..",value:r,onSearch:function(t){a(t.target.value)}}):React.createElement(Qt,{placeholder:"".concat("all-wireframe-grid"===e?"Search Wireframes..":"Search Patterns.."),value:n,onSearch:function(t){o(t.target.value,e)}}),React.createElement(St,null),React.createElement(Vt,null))})));var ie=function(t){return new Promise((function(e,r){var n=new window.FormData;n.append("action","ast_block_templates_activate_plugin"),n.append("init",t.init),n.append("security",AstBlockTemplatesVars._ajax_nonce),wp.apiFetch({url:AstBlockTemplatesVars.ajax_url,method:"POST",body:n}).then((function(t){t.success?e(t):r(t)}))}))},ce=function(t){return new Promise((function(e,r){wp.updates.queue.push({action:"install-plugin",data:{slug:t.slug,init:t.init,name:t.name,success:function(r){e(r,t)},error:function(e){r(e,t)}}}),wp.updates.queueChecker()}))};function le(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r,n=[],o=!0,a=!1;try{for(var i,c=t[Symbol.iterator]();!(o=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==c.return||c.return()}finally{if(a)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var se={stdClass:function(){},stringify:function(t){var e=new Map([[1/0,"d:INF;"],[-1/0,"d:-INF;"],[NaN,"d:NAN;"],[null,"N;"],[void 0,"N;"]]),r=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"".concat((e=t,e?encodeURI(e).match(/(%.)?./g).length:0),":").concat(r[0]).concat(t).concat(r[r.length-1])},n=0;return function t(o){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.has(o))return e.get(o);if(n+=a,"string"==typeof o)return"s:".concat(r(o),";");if("number"==typeof o)return"".concat(Math.round(o)===o?"i":"d",":").concat("".concat(o).toUpperCase().replace(/(-?\d)E/,"$1.0E"),";");if("boolean"==typeof o)return"b:".concat(+o,";");var i=Array.isArray(o)||o.constructor===Object;if(e.set(o,"".concat("rR"[+i],":").concat(n,";")),"function"==typeof o.serialize)return"C:".concat(r(o.constructor.name),":").concat(r(o.serialize(),"{}"));var c=Object.entries(o).filter((function(t){var e=le(t,2);return e[0],"function"!=typeof e[1]}));return(i?"a":"O:".concat(r(o.constructor.name)))+":".concat(c.length,":{").concat(c.map((function(e){var r=le(e,2),n=r[0],o=r[1];return t(i&&/^\d{1,16}$/.test(n)?+n:n,!1)+t(o)})).join(""),"}")}(t)},parse:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stdClass=se.stdClass;var r=0,n=[null],o={INF:1/0,"-INF":-1/0,NAN:NaN},a=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;throw new Error("Error at ".concat(n,": ").concat(e,"\n").concat(t,"\n").concat(" ".repeat(n),"^"))},i=function(e,n){return e===t.slice(r,r+=e.length)?n:a("Expected '".concat(e,"'"),r-e.length)};function c(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:";";i(":");var c=e.exec(t.slice(r));return c||a("Exected ".concat(n,", but got '").concat(t.slice(r).match(/^[:;{}]|[^:;{}]*/)[0],"'")),r+=c[0].length,i(o,c[0])}function l(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=r;e>0;){var c=t.charCodeAt(r++);e-=c<128?1:c<2048||c>>11==27?2:3}return e?a("Invalid string length",o-2):i(n,t.slice(o,r))}var s=function(t){return t?e[t]?Object.create(e[t].prototype):new((r={},n=t,o=function(){},n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r)[t]):{};var r,n,o},u=function(){return c(/^[01]/,"a '0' or '1'",";")},f=function(){return+c(/^-?\d+/,"an integer",";")},p=function(t){return+c(/^\d+/,"an unsigned integer",t)},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return l(p(':"'),'"'.concat(t))};function d(e){for(var n=0,o=p(":{");n<o;n++)e[(void 0,c=t[r++],"s"===c?m(";"):"i"===c?p(";"):a("Expected 's' or 'i' as type for a key, but got ${str[offset-1]}",r-1))]=h();var c;return i("}",e)}function h(){var e,h,g=t[r++].toLowerCase(),v=n.push(null)-1,b="n"===g?i(";",null):"s"===g?m(";"):"b"===g?u():"i"===g?f():"d"===g?(h=c(/^-?(\d+(\.\d+)?(E[+-]\d+)?|INF)|NAN/,"a decimal number",";"))in o?o[h]:+h:"a"===g?(e=d({}),Object.keys(e).some((function(t,e){return t!=e}))?e:Object.values(e)):"o"===g?d(s(m())):"c"===g?function(t){return"function"!=typeof t.unserialize&&a("Instance of ".concat(t.constructor.name,' does not have an "unserialize" method')),t.unserialize(l(p(":{"))),i("}",t)}(s(m())):"r"===g?n[f()]:a("Unexpected type ".concat(g),r-1);return"r"!==g&&(n[v]=b),b}var g=h();return r!==t.length&&a("Unexpected trailing character"),g}},ue=wp.ajax.post,fe=function(t,e){return ue({action:"ast_block_templates_data_option",id:t,type:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){return t}))};function pe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?me(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(439);var de=wp.compose.compose,he=wp.data,ge=he.useSelect,ve=he.withSelect,be=he.withDispatch,ye=wp.ajax.post,we=wp.blocks.parse,ke=wp.element,_e=ke.useState,xe=ke.memo,Ee=(ke.useEffect,ke.useCallback,wp.components.Spinner);const Se=de(ve((function(t){var e=t("ast-block-templates"),r=e.getImportItemInfo,n=e.getCurrentScreen,o=e.getSitePreview;return{importItemInfo:r(),sitePreview:o(),currentScreen:n()}})),be((function(t){var e=t("ast-block-templates"),r=e.setImportItemInfo,n=(e.setFullWidthBlockPreview,e.setCurrentScreen,e.setTogglePopup);return e.setFullWidthPreview,{setImportItemInfo:r,onSetTogglePopup:n,insertBlocks:t("core/block-editor").insertBlocks}})))(xe((function(t){var e=t.setImportItemInfo,r=(t.liveRequest,t.requiredPlugins,t.importItemInfo),n=t.title,o=t.btnClass,a=t.currentScreen,i=t.insertBlocks,c=t.onSetTogglePopup,l=t.item,s=t.onClick,u=t.onBlockImport,f=pe(_e(r),2),p=f[0],m=(f[1],o||""),d=pe(_e(n||"Import"),2),h=d[0],g=d[1],v="full-width-block-preview"===a?"show":"",b=pe(_e(!1),2),y=b[0],w=b[1],k=ge((function(t){return{insertIndex:t("core/block-editor").getBlockInsertionPoint().index}}),[]).insertIndex,_=function(){ie({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"}).then((function(t){})).catch((function(t){w(!1),g("Activation failed!")}))},x=function(){ie({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(t){S()})).catch((function(t){w(!1),g("Activation failed!")}))},E=function(){var t=p.original_content;ye({action:"ast_block_templates_import_block",content:t,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){w(!1),i(we(t),k,"",!1),c(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open"),"function"==typeof u&&u(t,k),"active"===AstBlockTemplatesVars.spectra_status&&"active"===AstBlockTemplatesVars.wpforms_status||$()})).fail((function(t){}))},S=function(){p["post-meta"]["astra-site-wpforms-path"]||""?ye({action:"ast_block_templates_import_wpforms",id:p.id,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){E()})).fail((function(t){w(!1),g("WPForms import failed!")})):E()};return React.createElement("div",{className:"ast-template-import-block-button ".concat(v," ").concat(m),onClick:function(t){"function"==typeof s&&s(t),w(!0),"not-installed"===AstBlockTemplatesVars.spectra_status?ce({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"}).then((function(t){_()})).catch((function(t){w(!1),g("Installation failed!")})):"inactive"===AstBlockTemplatesVars.spectra_status&&_(),fe(l.ID,"astra-blocks").then((function(t){e(t),p=t,(t["post-meta"]["astra-blocks-required-plugins"]?se.parse(t["post-meta"]["astra-blocks-required-plugins"]):[]).length?"not-installed"===AstBlockTemplatesVars.wpforms_status?ce({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(t){x()})).catch((function(t){w(!1),g("Installation failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?x():S():S()})).catch((function(t){}))}},y?React.createElement(React.Fragment,null,React.createElement(Ee,null)," Importing.."):React.createElement(React.Fragment,null,h))})));function Pe(t){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(t)}function Be(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Re(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(r),!0).forEach((function(e){var n,o,a;n=t,o=e,a=r[e],(o=function(t){var e=function(t,e){if("object"!==Pe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Pe(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ie(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Te(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Te(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ae=wp.compose.compose,je=wp.data.withDispatch,Ce=wp.element,Oe=Ce.memo,Ne=Ce.useEffect,Fe=Ce.useState;wp.ajax.post;const Le=Ae(je((function(t){var e=t("ast-block-templates"),r=e.setImportItemInfo,n=e.setFullWidthBlockPreview,o=e.setCurrentScreen;return{setImportItemInfo:r,updateFullWidthBlockPreview:function(t){n(t),o("full-width-block-preview")}}})))(Oe((function(t){t.setImportItemInfo,t.updateFullWidthBlockPreview;var e=t.item,r=t.InitMasonry,n=e["thumbnail-image-url"]||"",o=e["featured-image-url"]||"",a=Ie(Fe({importing:!1}),2),i=a[0],c=a[1],l=Ie(Fe("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),s=l[0],u=l[1],f=Ie(Fe("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),p=f[0],m=f[1];return Ne((function(){var t=!0,e=new Image;e.src=n;var a=new Image;return a.src=o,e.onload=function(){t&&(u(e.src),r())},a.onload=function(){t&&(m(a.src),r())},function(){t=!1}}),[]),React.createElement("div",{className:"item single-block ".concat(!0===i.importing?"importing":"")},React.createElement("div",{className:"inner"},React.createElement("div",{className:"thumbnail"},React.createElement("img",{srcSet:"".concat(p,", ").concat(s),src:s}),React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"}))),React.createElement("div",{className:"heading-wrap"},React.createElement("div",{className:"button-actions"},React.createElement(Se,{btnClass:"button button-primary gt-btn-import",title:"Import",liveRequest:!0,item:e,onClick:function(t){c(Re(Re({},i),{},{importing:!0}))},onBlockImport:function(t){c(Re(Re({},i),{},{importing:!1}))}})))))})));var De=wp.compose.compose,ze=wp.element,We=ze.memo,Ve=(ze.useEffect,ze.useState,wp.data),Me=Ve.withSelect;Ve.withDispatch;const Ue=De(Me((function(t){return{filterBlocksBySearchTerm:(0,t("ast-block-templates").getFilterBlocksBySearchTerm)()}})))(We((function(t){var e=t.value,r=t.options,n=t.allCount,o=t.onChange,a=t.filterBlocksBySearchTerm;return React.createElement("div",{className:"st-block-categories-wrap"},React.createElement("h3",null,"Categories"),React.createElement("div",{className:"st-block-categories-list"},React.createElement("div",{className:"st-block-category ".concat(a||""!==e?"":"active"),onClick:function(t){"function"==typeof o&&o(t,"")}},React.createElement("span",{className:"st-block-category-title"},"All"),React.createElement("span",{className:"st-block-category-count"},n)),Object.values(r).map((function(t){return React.createElement("div",{key:t.id,className:"st-block-category ".concat(e===t.id?"active":""),onClick:function(e){"function"==typeof o&&o(e,t)}},React.createElement("span",{className:"st-block-category-title"},t.name),React.createElement("span",{className:"st-block-category-count"},t.count))}))))})));function $e(t){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(t)}var Ge=wp.compose.compose,qe=wp.element,Ye=qe.memo,He=(qe.useEffect,qe.useState,wp.data),Ke=He.withSelect,Ze=He.withDispatch;const Xe=Ge(Ke((function(t){var e=t("ast-block-templates"),r=e.getFilterBlocksByCategory,n=e.getFilterBlocksByColor;return{filterBlocksByCategory:r(),filterBlocksByColor:n()}})),Ze((function(t){return{setFilterBlocksByCategory:t("ast-block-templates").setFilterBlocksByCategory}})))(Ye((function(t){var e=t.filterBlocksByCategory,r=t.setFilterBlocksByCategory,n=t.filterBlocksByColor,o=[],a=0,i=function(){var t=AstBlockTemplatesVars.allBlocks[c].filter||"",e=AstBlockTemplatesVars.allBlocks[c].wireframe||{};if(Object.keys(e).length){var r="object"===$e(AstBlockTemplatesVars.allBlocks[c].category)?0:parseInt(AstBlockTemplatesVars.allBlocks[c].category);if(!o[r]){var i=AstBlockTemplatesVars.allCategories.filter((function(t){return t.id===r})),l=i.length?i[0]:{};l.id=r,l.count=0,o[r]=l}(!n||n&&t==n)&&(o[r].count=parseInt(o[r].count)+1,a+=1)}};for(var c in AstBlockTemplatesVars.allBlocks)i();return o.sort((function(t,e){var r=t.name.toUpperCase()||"",n=e.name.toUpperCase()||"";return r<n?-1:r>n?1:0})),React.createElement(Ue,{value:e,allCount:a,options:o,onChange:function(t,e){r(e?e.id:"")}})})));var Je=wp.compose.compose,Qe=wp.element.memo,tr=wp.data,er=tr.withSelect,rr=tr.withDispatch;const nr=Je(er((function(t){return{filterBlocksByColor:(0,t("ast-block-templates").getFilterBlocksByColor)()}})),rr((function(t){return{setFilterBlocksByColor:t("ast-block-templates").setFilterBlocksByColor}})))(Qe((function(t){var e=t.filterBlocksByColor,r=t.setFilterBlocksByColor;if(AstBlockTemplatesVars.allBlocks){var n=[];return AstBlockTemplatesVars.allBlocks.map((function(t){t.filter&&!n.includes(t.filter)&&n.push(t.filter)})),n.length<=1?"":React.createElement("div",{className:"blocks-color"},React.createElement("h3",null,"Filter by Color"),React.createElement("div",{className:"block-color-list"},React.createElement("div",{className:"block-color-item ".concat(e?"":"active"),onClick:function(t){return r("")}},"All"),n.map((function(t){return React.createElement("div",{key:t,className:"block-color-item ".concat(e===t?"active":""),onClick:function(e){return r(t)}},t)}))))}}))),or=(0,wp.element.memo)((function(){return React.createElement("div",{className:"filter-wrap ast-block-templates-block-grid-filters"},React.createElement("div",{className:"filters"},React.createElement(nr,null),React.createElement(Xe,null)))}));r(70);const ar=function(t){var e=t.children;return React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,"Sorry No Results Found."),React.createElement("div",{className:"no-search-result-description"},React.createElement("p",null,"Don't see a template you would like to import?",React.createElement("br",null),AstBlockTemplatesVars.display_suggestion_link&&React.createElement("a",{target:"_blank",href:AstBlockTemplatesVars.suggestion_link},"Make a Template Suggestion!"))),e)};r(472);const ir=function(t){var e=t.afterClick;return React.createElement("span",null,React.createElement("span",{className:"back-to-templates",onClick:function(t){e&&e(t)}},C("Back to Templates","ast-block-templates")))};r(766);var cr=wp.compose.compose,lr=wp.data,sr=lr.withSelect,ur=lr.withDispatch,fr=wp.element.memo;const pr=cr(ur((function(t){return{setNotice:t("ast-block-templates").setNotice}})),sr((function(t){return{notice:(0,t("ast-block-templates").getNotice)()}})))(fr((function(t){var e=t.notice,r=t.setNotice;if(!Object.keys(e).length)return null;var n=e.type,o=e.message;return React.createElement("div",{className:"ast-block-templates-notice notice notice-".concat(n)},React.createElement("div",{className:"ast-block-templates-notice-message"},o),React.createElement("button",{type:"button",className:"notice-dismiss",onClick:function(){return r({})}},React.createElement("span",{className:"screen-reader-text"},"Dismiss")))})));function mr(t){return mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(t)}var dr=wp.compose.compose,hr=wp.data,gr=hr.withSelect,vr=hr.withDispatch,br=wp.element,yr=br.memo,wr=br.useEffect;br.useState;const kr=dr(vr((function(t){var e=t("ast-block-templates"),r=e.setFilterBlocksBySearchTerm;return{setFilterBlocksByCategory:e.setFilterBlocksByCategory,setFilterBlocksBySearchTerm:r}})),gr((function(t){var e=t("ast-block-templates"),r=e.getAllWireframes,n=e.getFilterBlocksByCategory,o=e.getFilterBlocksByColor;return{filterBlocksByCategory:n(),filterBlocksByColor:o(),allWireframes:r()}})))(yr((function(t){t.filterBlocksByCategory,t.setFilterBlocksByCategory;var e=t.filterBlocksByColor,r=t.setFilterBlocksBySearchTerm,n=t.allWireframes,o=(t.imagesLoad,t.setImagesLoaded,[]),a=[],i=function(){var t=n[c].filter||"",r="object"===mr(n[c].category)?0:parseInt(n[c].category);if(!a[r]){var i=AstBlockTemplatesVars.allCategories.filter((function(t){return t.id===r})),l=i.length?i[0]:{};l.id=r,l.count=0,a[r]=l}(!e||e&&t==e)&&(a[r].count=parseInt(a[r].count)+1,o.push(n[c]))};for(var c in n)i();wr((function(){var t=document.getElementById("ast-block-templates-grid-blocks");t&&imagesLoaded(t,(function(){new Masonry(t)}))}));var l=function(){var t=document.getElementById("ast-block-templates-grid-blocks");t&&new Masonry(t)};return React.createElement("div",{className:"ast-block-templates-grid-blocks active"},React.createElement(or,null),React.createElement("div",{className:"ast-block-templates-pattern-grid"},React.createElement(pr,null),React.createElement("div",{className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},o.length?o.map((function(t){return React.createElement(Le,{key:t.ID,item:t,InitMasonry:l})})):React.createElement(ar,null,React.createElement(ir,{afterClick:function(t){r("")}})))))})));function _r(t){return _r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(t)}var xr=wp.compose.compose,Er=wp.element,Sr=Er.memo,Pr=(Er.useEffect,Er.useState,wp.data),Br=Pr.withSelect,Rr=Pr.withDispatch;const Ir=xr(Br((function(t){var e=t("ast-block-templates"),r=e.getFilterBlocksByCategory,n=e.getFilterBlocksByColor;return{filterBlocksByCategory:r(),filterBlocksByColor:n()}})),Rr((function(t){return{setFilterBlocksByCategory:t("ast-block-templates").setFilterBlocksByCategory}})))(Sr((function(t){var e=t.filterBlocksByCategory,r=t.setFilterBlocksByCategory,n=t.filterBlocksByColor,o=[],a=0,i=function(){var t=AstBlockTemplatesVars.allBlocks[c].filter||"",e=AstBlockTemplatesVars.allBlocks[c].wireframe||{};if(!Object.keys(e).length){var r="object"===_r(AstBlockTemplatesVars.allBlocks[c].category)?0:parseInt(AstBlockTemplatesVars.allBlocks[c].category);if(!o[r]){var i=AstBlockTemplatesVars.allCategories.filter((function(t){return t.id===r})),l=i.length?i[0]:{};l.id=r,l.count=0,o[r]=l}(!n||n&&t==n)&&(o[r].count=parseInt(o[r].count)+1,a+=1)}};for(var c in AstBlockTemplatesVars.allBlocks)i();return o.sort((function(t,e){var r=t.name.toUpperCase()||"",n=e.name.toUpperCase()||"";return r<n?-1:r>n?1:0})),React.createElement(Ue,{value:e,allCount:a,options:o,onChange:function(t,e){r(e?e.id:"")}})}))),Tr=(0,wp.element.memo)((function(){return React.createElement("div",{className:"filter-wrap ast-block-templates-block-grid-filters"},React.createElement("div",{className:"filters"},React.createElement(nr,null),React.createElement(Ir,null)))}));function Ar(t){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(t)}var jr=wp.compose.compose,Cr=wp.data,Or=Cr.withSelect,Nr=Cr.withDispatch,Fr=wp.element,Lr=Fr.memo,Dr=Fr.useEffect;Fr.useState;const zr=jr(Nr((function(t){var e=t("ast-block-templates"),r=e.setFilterBlocksBySearchTerm;return{setFilterBlocksByCategory:e.setFilterBlocksByCategory,setFilterBlocksBySearchTerm:r}})),Or((function(t){var e=t("ast-block-templates"),r=e.getAllPatterns,n=e.getFilterBlocksByCategory,o=e.getFilterBlocksByColor;return{filterBlocksByCategory:n(),filterBlocksByColor:o(),allPatterns:r()}})))(Lr((function(t){t.filterBlocksByCategory,t.setFilterBlocksByCategory;var e=t.filterBlocksByColor,r=t.setFilterBlocksBySearchTerm,n=t.allPatterns,o=(t.imagesLoad,t.setImagesLoaded,[]),a=[],i=function(){var t=n[c].filter||"",r="object"===Ar(n[c].category)?0:parseInt(n[c].category);if(!a[r]){var i=AstBlockTemplatesVars.allCategories.filter((function(t){return t.id===r})),l=i.length?i[0]:{};l.id=r,l.count=0,a[r]=l}(!e||e&&t==e)&&(a[r].count=parseInt(a[r].count)+1,o.push(n[c]))};for(var c in n)i();Dr((function(){var t=document.getElementById("ast-block-templates-grid-blocks");t&&imagesLoaded(t,(function(){new Masonry(t)}))}));var l=function(){var t=document.getElementById("ast-block-templates-grid-blocks");t&&new Masonry(t)};return React.createElement("div",{className:"ast-block-templates-grid-blocks active"},React.createElement(Tr,null),React.createElement("div",{className:"ast-block-templates-pattern-grid"},React.createElement(pr,null),React.createElement("div",{className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},o.length?o.map((function(t){return React.createElement(Le,{key:t.ID,item:t,InitMasonry:l})})):React.createElement(ar,null,React.createElement(ir,{afterClick:function(t){r("")}})))))})));var Wr=wp.ajax.post,Vr=wp.blocks.parse;const Mr=function(t,e,r,n,o){Wr({action:"ast_block_templates_importer",id:t,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){!function(t,e,r,n,o){Wr({action:"ast_block_templates_import_block",content:t,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){n(Vr(t),e,"",!1),o(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open"),"active"===AstBlockTemplatesVars.spectra_status&&"active"===AstBlockTemplatesVars.wpforms_status||$()})).fail((function(t){}))}(t,n,0,e,r)})).fail((function(t){ut("fail",t)}))};function Ur(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $r(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(656);var Gr=wp.compose.compose,qr=wp.data,Yr=qr.useSelect,Hr=qr.withSelect,Kr=qr.withDispatch,Zr=wp.element,Xr=Zr.useState,Jr=Zr.memo,Qr=Zr.useEffect,tn=wp.components.Spinner,en=wp.ajax.post;const rn=Gr(Hr((function(t){var e=t("ast-block-templates"),r=e.getPagePreview,n=e.getImportItemInfo,o=e.getCurrentScreen,a=e.getSitePreview;return{pagePreview:r(),importItemInfo:n(),sitePreview:a(),currentScreen:o()}})),Kr((function(t){var e=t("ast-block-templates"),r=(e.setFullWidthBlockPreview,e.setCurrentScreen,e.setTogglePopup);return e.setFullWidthPreview,{onSetTogglePopup:r,insertBlocks:t("core/block-editor").insertBlocks}})))(Jr((function(t){var e=t.title,r=t.currentScreen,n=t.insertBlocks,o=t.onSetTogglePopup,a=t.item,i=(t.importItemInfo,t.pagePreview),c=Ur(Xr(e||"Import"),2),l=c[0],s=c[1];Qr((function(){s(e||"Import")}),[e]);var u=[],f="full-width-page-preview"===r?"show":"",p=Ur(Xr(!1),2),m=p[0],d=p[1],h=i["required-plugins"]?i["required-plugins"].filter((function(t){return"wpforms-lite"===t.slug})):[],g=Yr((function(t){var e=t("core/block-editor").getBlockInsertionPoint();return{insertIndex:e.index,insertClientID:e.rootClientId}}),[]),v=g.insertIndex,b=(g.insertClientID,function(){ie({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"}).then((function(t){})).catch((function(t){d(!1),s(t.data)}))}),y=function(){ie({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(t){w()})).catch((function(t){d(!1),s(t.data)}))},w=function(){u["astra-site-wpforms-path"]?k():Mr(a.ID,n,o,v)},k=function(){en({action:"ast_block_templates_import_wpforms",id:a.ID,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(t){Mr(a.ID,n,o,v)})).fail((function(t){d(!1),s("Error! "+t.status+t.statusText)}))};return React.createElement("button",{className:"button button-primary ast-template-import-page-button ".concat(f),onClick:function(){d(!0),"not-installed"===AstBlockTemplatesVars.spectra_status?ce({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"}).then((function(t){b()})).catch((function(t){d(!1),s("Installation failed!")})):"inactive"===AstBlockTemplatesVars.spectra_status&&b(),fe(a.ID,"site-pages").then((function(t){u=t,h.length?"not-installed"===AstBlockTemplatesVars.wpforms_status?ce({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(t){y()})).catch((function(t){d(!1),s("Error! WP Forms plugin installation failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?y():w():w()}))}},m?React.createElement(React.Fragment,null,React.createElement(tn,null)," Importing.."):React.createElement(React.Fragment,null,l))})));r(169);var nn=wp.compose.compose,on=wp.data,an=on.withSelect,cn=on.withDispatch,ln=wp.element,sn=ln.Fragment,un=ln.memo,fn=ln.useEffect;const pn=nn(an((function(t){var e=t("ast-block-templates"),r=e.getDisplayDynamicPopup;return{pagePreview:(0,e.getPagePreview)(),displayDynamicPopup:r()}})),cn((function(t){return{setDisplayDynamicPopup:t("ast-block-templates").setDisplayDynamicPopup}})))(un((function(t){var e=t.pagePreview,r=t.displayDynamicPopup,n=t.setDisplayDynamicPopup,o=!1===r?"hide":"",a=function(){n(!1)},i=function(t){t.target===document.querySelector(".ast-block-templates-popup-wrap")&&a()};return fn((function(){return document.addEventListener("click",i),function(){document.removeEventListener("click",i)}})),React.createElement(sn,null,React.createElement("div",{className:"ast-block-templates-popup-wrap ".concat(o)},React.createElement("div",{className:"ast-block-templates-popup"},React.createElement("div",{className:"ast-block-templates-popup-header"},React.createElement("h3",{className:"ast-block-templates-popup-heading"},C("Heads Up!","ast-block-templates")),React.createElement("span",{className:"ast-block-templates-popup-close-icon",onClick:a},React.createElement("span",{className:"dashicons close dashicons-no-alt"}))),React.createElement("div",{className:"ast-block-templates-popup-content"},React.createElement("p",null,C("The page template you are about to import contains a dynamic widget/module. Please note this dynamic data will not be available with the imported page.","ast-block-templates")),React.createElement("p",null,C("You will need to add it manually on the page.","ast-block-templates"))),React.createElement("div",{className:"ast-block-templates-popup-footer"},React.createElement(rn,{title:p(C('Skip & Import "%s" Page',"ast-block-templates"),e.title),item:e}),React.createElement("div",{className:"button",onClick:a},C("Cancel","ast-block-templates"))))))})));var mn=wp.compose.compose,dn=wp.data,hn=dn.withSelect,gn=dn.withDispatch,vn=wp.element.memo;const bn=mn(hn((function(t){return{pagePreview:(0,t("ast-block-templates").getPagePreview)()}})),gn((function(t){var e=t("ast-block-templates"),r=e.setPagePreview,n=e.setFullWidthPagePreview,o=e.setCurrentScreen;return{setImportItemInfo:e.setImportItemInfo,setPagePreview:r,updateFullWidthPagePreview:function(t){n(t),o("full-width-page-preview")}}})))(vn((function(t){t.updateFullWidthPagePreview;var e=t.item,r=t.pagePreview,n=t.setPagePreview,o=t.setImportItemInfo,a=e["thumbnail-image-url"]||"";return React.createElement("div",{className:"item single-site ".concat(r.ID===e.ID?"active":"")},React.createElement("div",{className:"inner"},React.createElement("div",{className:"screenshot",onClick:function(t){o(e),n(e)},style:{backgroundImage:"url('".concat(a,"')")}},React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"}))),React.createElement("div",{className:"heading-wrap"},React.createElement("h3",{className:"title"},W(e.title)))))})));r(782);var yn=wp.element,wn=yn.memo,kn=yn.Fragment;const _n=(0,wp.compose.compose)((0,wp.data.withSelect)((function(t){var e=t("ast-block-templates"),r=e.getPagePreview;return{sitePreview:(0,e.getSitePreview)(),pagePreview:r()}})))(wn((function(t){var e=t.sitePreview,r=t.pagePreview;if(!Object.keys(e).length)return"";var n=Object.values(e.pages)||[],o=r["featured-image-url"];return React.createElement(kn,null,React.createElement(pn,null),React.createElement("div",{className:"ast-block-templates-single-site-preview"},React.createElement("div",{className:"ast-block-templates-single-page-preview"},React.createElement("div",{className:"ast-block-templates-site-title-wrap"},React.createElement("h2",{className:"ast-block-templates-site-title"},W(e.title))),React.createElement("div",{className:"screenshot"},React.createElement("img",{src:o}))),React.createElement("div",{className:"ast-block-templates-grid-preview"},React.createElement("h2",{className:"ast-block-templates-pages-title"},C("Page Templates","ast-block-templates")),React.createElement("div",{className:"ast-block-templates-grid"},n.length?n.map((function(t){return React.createElement(bn,{key:t.ID,item:t})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,C("No Result Found","ast-block-templates")),React.createElement("p",null,C("The search result not found. Try another search.","ast-block-templates")))))))})));function xn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var En=wp.compose.compose,Sn=wp.data,Pn=Sn.withSelect,Bn=Sn.withDispatch,Rn=wp.element,In=Rn.memo,Tn=Rn.useState,An=Rn.useEffect;const jn=En(Pn((function(t){return{preview:t("ast-block-templates").getSitePreview}})),Bn((function(t){var e=t("ast-block-templates"),r=e.setSitePreview,n=e.setPagePreview,o=e.setCurrentScreen;return{setSitePreview:function(t){var e=Object.values(t.pages).length?Object.values(t.pages)[0]:[];n(e),r(t),o("all-single-site-pages")},setImportItemInfo:e.setImportItemInfo}})))(In((function(t){var e=t.setSitePreview,r=t.item,n=t.setImportItemInfo,o=r["thumbnail-image-url"]||"",a=r.pages?r.pages.length:0,i=a<=1?"Template":"Templates",c=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return xn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Tn("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),l=c[0],s=c[1],u=r["astra-sites-type"];return An((function(){var t=!0,e=new Image;return e.src=o,e.onload=function(){t&&s(e.src)},function(){t=!1}}),[l]),React.createElement("div",{className:"item single-site",onClick:function(t){e(r),n(r)}},React.createElement("div",{className:"inner"},"free"!==u&&React.createElement("span",{className:"grid-item-badge"},"Premium"),React.createElement("div",{className:"screenshot",style:{backgroundImage:"url('".concat(l,"')")}},React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"}))),React.createElement("div",{className:"heading-wrap"},React.createElement("h3",{className:"title"},W(r.title)),a?React.createElement("div",{className:"sub-title"},"".concat(a," ").concat(i)):"")))})));var Cn=wp.compose.compose,On=wp.data,Nn=On.withSelect,Fn=(On.withDispatch,wp.element),Ln=(Fn.useEffect,Fn.useState,Fn.memo),Dn=Fn.Fragment;const zn=Cn(Nn((function(t){var e=t("ast-block-templates"),r=e.getAllPages,n=e.getCurrentScreen,o=e.getAllSites;return{currentScreen:n(),allSites:o(),allPages:r()}})))(Ln((function(t){t.allPages;var e=t.allSites,r=(t.currentScreen,Object.values(e));return React.createElement(Dn,null,r.length?r.map((function(t){return React.createElement(jn,{key:t.ID,item:t})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,C("No Sites Result Found")," "),React.createElement("p",null,C("The search result not found. Try another search."))))})));var Wn=wp.compose.compose,Vn=wp.data,Mn=Vn.withSelect,Un=Vn.withDispatch,$n=wp.element.memo;const Gn=Wn(Mn((function(t){return{preview:t("ast-block-templates").getSitePreview}})),Un((function(t){var e=t("ast-block-templates"),r=e.setSearchPagePreview,n=e.setCurrentScreen;return{setSearchPagePreview:function(t){r(t),n("all-single-site-pages")},setImportItemInfo:e.setImportItemInfo}})))($n((function(t){var e=t.setSearchPagePreview,r=t.item,n=t.setImportItemInfo,o=r["thumbnail-image-url"]||"",a=r["site-pages-type"];return React.createElement("div",{className:"item single-site"},React.createElement("div",{className:"inner"},"free"!==a&&React.createElement("span",{className:"grid-item-badge"},"Premium"),React.createElement("div",{className:"screenshot",onClick:function(t){e(r),n(r)},style:{backgroundImage:"url('".concat(o,"')")}},React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"}))),React.createElement("div",{className:"heading-wrap"},React.createElement("h3",{className:"title"},W(r["site-title"])),React.createElement("div",{className:"sub-title"},W(r.title)))))})));var qn=wp.compose.compose,Yn=wp.data,Hn=Yn.withSelect,Kn=Yn.withDispatch,Zn=wp.element,Xn=Zn.memo,Jn=Zn.Fragment;const Qn=qn(Kn((function(t){var e=t("ast-block-templates");return{setPagePreview:e.setPagePreview,setFilterPagesBySearchTerm:e.setFilterPagesBySearchTerm}})),Hn((function(t){var e=t("ast-block-templates"),r=e.getAllPages,n=e.getFilterPagesBySearchTerm;return{allPages:r(),filterPagesBySearchTerm:n()}})))(Xn((function(t){var e=t.setPagePreview,r=t.setFilterPagesBySearchTerm,n=t.allPages,o=Object.values(n);return React.createElement(Jn,null,o.length?o.map((function(t){return React.createElement(Gn,{key:t.ID,item:t})})):React.createElement(ar,null,React.createElement(ir,{afterClick:function(t){e({}),r("")}})))})));var to=wp.compose.compose,eo=wp.data,ro=eo.withSelect,no=eo.withDispatch,oo=wp.element,ao=oo.memo;oo.useEffect;const io=to(no((function(t){return{setFilterPagesBySearchTerm:t("ast-block-templates").setFilterPagesBySearchTerm}})),ro((function(t){return{filterPagesBySearchTerm:(0,t("ast-block-templates").getFilterPagesBySearchTerm)()}})))(ao((function(t){var e=t.filterPagesBySearchTerm;return React.createElement("div",{className:"ast-block-templates-grid-pages active"},React.createElement("div",{id:"ast-block-templates-sites",className:"ast-block-templates-grid ".concat(e.length?"ast-block-templates-pages-grid":"ast-block-templates-sites-grid")},e.length?React.createElement(Qn,null):React.createElement(zn,null)))})));r(27);var co=wp.compose.compose,lo=wp.element.memo,so=wp.data,uo=so.withSelect;so.withDispatch;const fo=co(uo((function(t){return{blockPreview:(0,t("ast-block-templates").getFullWidthBlockPreview)()}})))(lo((function(t){var e=t.blockPreview["featured-image-url"]||"".concat(AstBlockTemplatesVars.uri,"dist/placeholder.png");return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:e}))})));r(984);var po=wp.compose.compose,mo=wp.element.memo,ho=wp.data,go=ho.withSelect;ho.withDispatch;const vo=po(go((function(t){return{pagePreview:(0,t("ast-block-templates").getFullWidthPagePreview)()}})))(mo((function(t){var e=t.pagePreview["featured-image-url"]||"";return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:e}))}))),bo=function(){return React.createElement("div",null,"All signle pages")};r(781);var yo=wp.element,wo=yo.useEffect,ko=yo.memo,_o=wp.compose.compose,xo=wp.data.withSelect,Eo=function(t){var e=t.filterPagesBySearchTerm,r=t.currentScreen;return wo((function(){localStorage.setItem("gt-current-screen",r)}),[r]),"all-single-pages"===r?React.createElement(bo,null):"all-wireframe-grid"===r?React.createElement(kr,null):"all-blocks-grid"===r?React.createElement(zr,null):e||"all-single-site-pages"!==r?"all-sites-grid"===r?React.createElement(io,null):"full-width-block-preview"===r?React.createElement(fo,null):"full-width-page-preview"===r?React.createElement(vo,null):void 0:React.createElement(_n,null)},So=function(t){var e=t.currentScreen;return"all-sites-grid"===e||"all-single-site-pages"===e||"full-width-page-preview"===e||"all-single-pages"===e?React.createElement(pr,null):null};const Po=_o(xo((function(t){var e=t("ast-block-templates"),r=e.getFilterPagesBySearchTerm,n=e.getSitePreview,o=e.getCurrentScreen,a=e.getTogglePopup;return{filterPagesBySearchTerm:r(),sitePreview:n(),currentScreen:o(),togglePopup:a()}})))(ko((function(t){var e=t.sitePreview,r=t.currentScreen,n=t.togglePopup;return wo((function(){!0===n&&(document.body.classList.add("ast-block-templates-modal-open"),document.getElementById("ast-block-templates-modal-wrap").classList.add("open"))}),[n,r,e]),React.createElement("div",{className:"ast-block-templates-content"},React.createElement(So,{currentScreen:r}),React.createElement(Eo,{currentScreen:r}))})));function Bo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(455),r(403),r(265);var Ro=wp.compose.compose,Io=wp.data,To=Io.withSelect,Ao=Io.withDispatch,jo=wp.element,Co=jo.memo,Oo=jo.useState;const No=Ro(To((function(t){return{importItemInfo:(0,t("ast-block-templates").getImportItemInfo)()}})),Ao((function(t){return{setImportItemInfo:t("ast-block-templates").setImportItemInfo}})))(Co((function(t){var e=t.requiredPlugins;if(!e.length)return null;var r=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Bo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bo(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Oo(!1),2),n=r[0],o=r[1];return React.createElement("div",{className:"used-blocks"},React.createElement("div",{className:"used-blocks-info ".concat(n?"show":"")},React.createElement("h3",null,"Install Required Plugins"),React.createElement("ul",null,e.map((function(t,e){return React.createElement("li",{key:e},t.name)})))),React.createElement("span",{className:"used-blocks-icon dashicons dashicons-editor-help",onClick:function(){return o(!n)}}))})));var Fo=wp.compose.compose,Lo=wp.data,Do=Lo.withSelect,zo=Lo.withDispatch,Wo=wp.element,Vo=Wo.memo,Mo=Wo.Fragment;const Uo=Fo(Do((function(t){var e=t("ast-block-templates"),r=e.getImportItemInfo,n=e.getCurrentScreen,o=e.getPagePreview;return{importItemInfo:r(),pagePreview:o(),currentScreen:n()}})),zo((function(t){var e=t("ast-block-templates"),r=e.setPagePreview,n=e.setFullWidthPagePreview,o=e.setCurrentScreen;return{setDisplayDynamicPopup:e.setDisplayDynamicPopup,setPagePreview:r,updateFullWidthPagePreview:function(t){n(t),o("full-width-page-preview")}}})))(Vo((function(t){t.importItemInfo;var e=t.pagePreview,r=t.setDisplayDynamicPopup,n=e["astra-page-url"]?e["astra-page-url"]:"",o=!(!e["dynamic-page"]||"yes"!==e["dynamic-page"]),a="free"!==e["site-pages-type"],i="",c=!1,l="";return a&&AstBlockTemplatesVars.isPro?AstBlockTemplatesVars.license_status?c=!0:(i=AstBlockTemplatesVars.getProURL,l=C("Unlock Access","ast-block-templates")):a?(i=AstBlockTemplatesVars.getProURL,l=C("Get Access","ast-block-templates")):c=!0,React.createElement(Mo,null,React.createElement("a",{className:"button",href:n,target:"_blank"},C("Preview Site","ast-block-templates"),React.createElement("i",{className:"dashicons dashicons-external"})),c?o?React.createElement("button",{className:"button button-primary",onClick:function(t){r(!0)}},'Import "'.concat(e.title,'" Template')):React.createElement(rn,{title:'Import "'.concat(e.title,'" Template'),item:e}):React.createElement("a",{className:"button button-primary",href:i,target:"_blank"},l,React.createElement("i",{className:"dashicons dashicons-admin-network"})))})));r(955);var $o=wp.compose.compose,Go=wp.data,qo=Go.withSelect,Yo=Go.withDispatch,Ho=wp.element,Ko=Ho.memo,Zo=Ho.Fragment;const Xo=$o(qo((function(t){var e=t("ast-block-templates"),r=e.getImportItemInfo,n=e.getFullWidthBlockPreview;return{importItemInfo:r(),fullWidthBlockPreview:n()}})),Yo((function(t){var e=t("ast-block-templates"),r=e.setPagePreview,n=e.setFullWidthPagePreview,o=e.setCurrentScreen;return{setPagePreview:r,updateFullWidthPagePreview:function(t){n(t),o("full-width-page-preview")}}})))(Ko((function(t){var e,r=t.importItemInfo,n=t.fullWidthBlockPreview,o=n.url?n.url:"";return e=r["required-plugins"]?r["required-plugins"]:[],React.createElement(Zo,null,React.createElement("div",{className:"left"},React.createElement("a",{className:"button",href:o,target:"_blank"},"Preview Pattern",React.createElement("i",{className:"dashicons dashicons-external"}))),React.createElement("div",{className:"right"},React.createElement(No,{requiredPlugins:e}),React.createElement(Se,{btnClass:"button button-primary",title:"Import Pattern",item:n,requiredPlugins:e})))})));var Jo=wp.compose.compose,Qo=wp.data.withSelect,ta=wp.element.memo;const ea=Jo(Qo((function(t){return{currentScreen:(0,t("ast-block-templates").getCurrentScreen)()}})))(ta((function(t){var e=t.currentScreen;return"all-single-site-pages"!==e&&"full-width-block-preview"!==e?null:React.createElement("div",{className:"footer"},"all-single-site-pages"===e?React.createElement(Uo,null):React.createElement(Xo,null))})));var ra=wp.element,na=ra.Fragment,oa=ra.useEffect,aa=ra.memo;const ia=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(t){return{onSetTogglePopup:t("ast-block-templates").setTogglePopup}})))(aa((function(t){var e=t.onSetTogglePopup,r=function(t){t.target===document.getElementById("ast-block-templates-modal-wrap")&&(document.body.classList.remove("ast-block-templates-modal-open"),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),e())};return oa((function(){return document.addEventListener("click",r),function(){document.removeEventListener("click",r)}})),React.createElement(na,null,React.createElement(st,null),React.createElement("div",{className:"inner"},React.createElement(ae,null),React.createElement(Po,null),React.createElement(ea,null)))})));document.addEventListener("load",la),document.addEventListener("DOMContentLoaded",la);var ca=document.getElementById("site-editor");function la(){wp.data.subscribe((function(){setTimeout((function(){!function(){if(!ca&&!document.querySelector("#editor .edit-post-header__toolbar"))return null;if(document.querySelector("#ast-block-templates-button-wrap"))return null;var t,e,r=document.createElement("div");r.id="ast-block-templates-button-wrap",ca?null===(t=document.querySelector(".edit-site-header-edit-mode__toolbar"))||void 0===t||t.appendChild(r):null===(e=document.querySelector("#editor .edit-post-header__toolbar"))||void 0===e||e.appendChild(r)}(),function(){if(ca&&!document.getElementsByClassName("is-edit-mode")[0])return null;if(ca&&!document.getElementById("ast-block-templates-button-wrap"))return null;var t=document.getElementById("ast-block-templates-modal-wrap");if(document.getElementById("ast-block-templates-button")&&t)return null;var e=document.createElement("div");e.id="ast-block-templates-modal-wrap",e.classList.add(AstBlockTemplatesVars.popup_class),e.innerHTML='<div id="ast-block-templates-modal"></div>',t?t.parentNode.removeChild(t):document.body.appendChild(e),wp.element.render(React.createElement(ia,null),document.getElementById("ast-block-templates-modal"))}()}),100)}))}})()})();