Version Description
Download this release
Release Info
Developer | brainstormworg |
Plugin | Astra Starter Sites |
Version | 2.6.21 |
Comparing to | |
See all releases |
Code changes from version 2.6.20 to 2.6.21
astra-sites.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Starter Templates
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: Starter Templates is all in one solution for complete starter sites, single page templates, blocks & images. This plugin offers the premium library of ready templates & provides quick access to beautiful Pixabay images that can be imported in your website easily.
|
6 |
-
* Version: 2.6.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
@@ -19,7 +19,7 @@ if ( ! defined( 'ASTRA_SITES_NAME' ) ) {
|
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'ASTRA_SITES_VER' ) ) {
|
22 |
-
define( 'ASTRA_SITES_VER', '2.6.
|
23 |
}
|
24 |
|
25 |
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
|
3 |
* Plugin Name: Starter Templates
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: Starter Templates is all in one solution for complete starter sites, single page templates, blocks & images. This plugin offers the premium library of ready templates & provides quick access to beautiful Pixabay images that can be imported in your website easily.
|
6 |
+
* Version: 2.6.21
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'ASTRA_SITES_VER' ) ) {
|
22 |
+
define( 'ASTRA_SITES_VER', '2.6.21' );
|
23 |
}
|
24 |
|
25 |
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
|
inc/lib/gutenberg-templates/ast-block-templates.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Gutenberg Starter Templates
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: Gutenberg single page templates, and blocks library to imported your website easily.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: ast-block-templates
|
@@ -21,7 +21,7 @@ if ( apply_filters( 'ast_block_templates_disable', false ) ) {
|
|
21 |
|
22 |
// Set constants.
|
23 |
define( 'AST_BLOCK_TEMPLATES_LIBRARY_URL', 'https://websitedemos.net/' );
|
24 |
-
define( 'AST_BLOCK_TEMPLATES_VER', '1.0.
|
25 |
define( 'AST_BLOCK_TEMPLATES_FILE', __FILE__ );
|
26 |
define( 'AST_BLOCK_TEMPLATES_BASE', plugin_basename( AST_BLOCK_TEMPLATES_FILE ) );
|
27 |
define( 'AST_BLOCK_TEMPLATES_DIR', plugin_dir_path( AST_BLOCK_TEMPLATES_FILE ) );
|
3 |
* Plugin Name: Gutenberg Starter Templates
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: Gutenberg single page templates, and blocks library to imported your website easily.
|
6 |
+
* Version: 1.0.10
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: ast-block-templates
|
21 |
|
22 |
// Set constants.
|
23 |
define( 'AST_BLOCK_TEMPLATES_LIBRARY_URL', 'https://websitedemos.net/' );
|
24 |
+
define( 'AST_BLOCK_TEMPLATES_VER', '1.0.10' );
|
25 |
define( 'AST_BLOCK_TEMPLATES_FILE', __FILE__ );
|
26 |
define( 'AST_BLOCK_TEMPLATES_BASE', plugin_basename( AST_BLOCK_TEMPLATES_FILE ) );
|
27 |
define( 'AST_BLOCK_TEMPLATES_DIR', plugin_dir_path( AST_BLOCK_TEMPLATES_FILE ) );
|
inc/lib/gutenberg-templates/classes/class-ast-block-templates.php
CHANGED
@@ -365,8 +365,9 @@ if ( ! class_exists( 'Ast_Block_Templates' ) ) :
|
|
365 |
*/
|
366 |
public function template_assets() {
|
367 |
|
368 |
-
|
369 |
-
|
|
|
370 |
return;
|
371 |
}
|
372 |
|
365 |
*/
|
366 |
public function template_assets() {
|
367 |
|
368 |
+
$post_types = get_post_types( array( 'public' => true ), 'names' );
|
369 |
+
|
370 |
+
if ( ! array_key_exists( get_current_screen()->post_type, $post_types ) ) {
|
371 |
return;
|
372 |
}
|
373 |
|
inc/lib/gutenberg-templates/dist/main.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=49)}([function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,c,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],l=t.base?i[0]+t.base:i[0],
|
2 |
/**
|
3 |
* @license
|
4 |
* Lodash <https://lodash.com/>
|
@@ -6,4 +6,4 @@
|
|
6 |
* Released under MIT license <https://lodash.com/license>
|
7 |
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
8 |
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
9 |
-
*/(function(){var i="Expected a function",a="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",s="[object Array]",u="[object Boolean]",f="[object Date]",p="[object Error]",d="[object Function]",m="[object GeneratorFunction]",h="[object Map]",v="[object Number]",g="[object Object]",b="[object RegExp]",y="[object Set]",w="[object String]",_="[object Symbol]",k="[object WeakMap]",x="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",P="[object Float64Array]",R="[object Int8Array]",I="[object Int16Array]",B="[object Int32Array]",T="[object Uint8Array]",A="[object Uint16Array]",j="[object Uint32Array]",C=/\b__p \+= '';/g,O=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,D=RegExp(F.source),z=RegExp(L.source),W=/<%-([\s\S]+?)%>/g,M=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(G.source),H=/^\s+/,K=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\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",me="[\\ud800-\\udfff]",he="["+de+"]",ve="["+pe+"]",ge="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+de+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_e="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Pe="(?:"+ye+"|"+we+")",Re="(?:"+Se+"|"+we+")",Ie="(?:"+ve+"|"+_e+")"+"?",Be="[\\ufe0e\\ufe0f]?"+Ie+("(?:\\u200d(?:"+[ke,xe,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+Ie+")*"),Te="(?:"+[be,xe,Ee].join("|")+")"+Be,Ae="(?:"+[ke+ve+"?",ve,xe,Ee,me].join("|")+")",je=RegExp("['’]","g"),Ce=RegExp(ve,"g"),Oe=RegExp(_e+"(?="+_e+")|"+Ae+Be,"g"),Ne=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Se,"$"].join("|")+")",Re+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Se+Pe,"$"].join("|")+")",Se+"?"+Pe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ge,Te].join("|"),"g"),Fe=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,De=["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"],ze=-1,We={};We[S]=We[P]=We[R]=We[I]=We[B]=We[T]=We["[object Uint8ClampedArray]"]=We[A]=We[j]=!0,We[l]=We[s]=We[x]=We[u]=We[E]=We[f]=We[p]=We[d]=We[h]=We[v]=We[g]=We[b]=We[y]=We[w]=We[k]=!1;var Me={};Me[l]=Me[s]=Me[x]=Me[E]=Me[u]=Me[f]=Me[S]=Me[P]=Me[R]=Me[I]=Me[B]=Me[h]=Me[v]=Me[g]=Me[b]=Me[y]=Me[w]=Me[_]=Me[T]=Me["[object Uint8ClampedArray]"]=Me[A]=Me[j]=!0,Me[p]=Me[d]=Me[k]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,$e=parseInt,qe="object"==typeof e&&e&&e.Object===Object&&e,Ge="object"==typeof self&&self&&self.Object===Object&&self,Ye=qe||Ge||Function("return this")(),He=t&&!t.nodeType&&t,Ke=He&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Ke&&Ke.exports===He,Xe=Ze&&qe.process,Je=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Qe=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,ot=Je&&Je.isTypedArray;function it(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function ft(e,t){return!!(null==e?0:e.length)&&_t(e,t,0)>-1}function pt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function dt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function mt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function ht(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function vt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bt=St("length");function yt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function wt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function _t(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,xt,n)}function kt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function xt(e){return e!=e}function Et(e,t){var n=null==e?0:e.length;return n?It(e,t)/n:NaN}function St(e){return function(t){return null==t?void 0:t[e]}}function Pt(e){return function(t){return null==e?void 0:e[t]}}function Rt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function It(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Bt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Tt(e){return e?e.slice(0,Ht(e)+1).replace(H,""):e}function At(e){return function(t){return e(t)}}function jt(e,t){return dt(t,(function(t){return e[t]}))}function Ct(e,t){return e.has(t)}function Ot(e,t){for(var n=-1,r=e.length;++n<r&&_t(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length;n--&&_t(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=Pt({"À":"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"}),Dt=Pt({"&":"&","<":"<",">":">",'"':""","'":"'"});function zt(e){return"\\"+Ve[e]}function Wt(e){return Fe.test(e)}function Mt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Vt(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var c=e[n];c!==t&&c!==a||(e[n]=a,i[o++]=n)}return i}function $t(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Gt(e){return Wt(e)?function(e){var t=Oe.lastIndex=0;for(;Oe.test(e);)++t;return t}(e):bt(e)}function Yt(e){return Wt(e)?function(e){return e.match(Oe)||[]}(e):function(e){return e.split("")}(e)}function Ht(e){for(var t=e.length;t--&&K.test(e.charAt(t)););return t}var Kt=Pt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Zt=function e(t){var n,r=(t=null==t?Ye:Zt.defaults(Ye.Object(),t,Zt.pick(Ye,De))).Array,o=t.Date,K=t.Error,pe=t.Function,de=t.Math,me=t.Object,he=t.RegExp,ve=t.String,ge=t.TypeError,be=r.prototype,ye=pe.prototype,we=me.prototype,_e=t["__core-js_shared__"],ke=ye.toString,xe=we.hasOwnProperty,Ee=0,Se=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Pe=we.toString,Re=ke.call(me),Ie=Ye._,Be=he("^"+ke.call(xe).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=Ze?t.Buffer:void 0,Ae=t.Symbol,Oe=t.Uint8Array,Fe=Te?Te.allocUnsafe:void 0,Ve=Vt(me.getPrototypeOf,me),qe=me.create,Ge=we.propertyIsEnumerable,He=be.splice,Ke=Ae?Ae.isConcatSpreadable:void 0,Xe=Ae?Ae.iterator:void 0,Je=Ae?Ae.toStringTag:void 0,bt=function(){try{var e=ti(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Xt=o&&o.now!==Ye.Date.now&&o.now,Jt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Qt=de.ceil,en=de.floor,tn=me.getOwnPropertySymbols,nn=Te?Te.isBuffer:void 0,rn=t.isFinite,on=be.join,an=Vt(me.keys,me),cn=de.max,ln=de.min,sn=o.now,un=t.parseInt,fn=de.random,pn=be.reverse,dn=ti(t,"DataView"),mn=ti(t,"Map"),hn=ti(t,"Promise"),vn=ti(t,"Set"),gn=ti(t,"WeakMap"),bn=ti(me,"create"),yn=gn&&new gn,wn={},_n=Ii(dn),kn=Ii(mn),xn=Ii(hn),En=Ii(vn),Sn=Ii(gn),Pn=Ae?Ae.prototype:void 0,Rn=Pn?Pn.valueOf:void 0,In=Pn?Pn.toString:void 0;function Bn(e){if(qa(e)&&!Oa(e)&&!(e instanceof Cn)){if(e instanceof jn)return e;if(xe.call(e,"__wrapped__"))return Bi(e)}return new jn(e)}var Tn=function(){function e(){}return function(t){if(!$a(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function An(){}function jn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Cn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function On(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Fn;++t<n;)this.add(e[t])}function Dn(e){var t=this.__data__=new Nn(e);this.size=t.size}function zn(e,t){var n=Oa(e),r=!n&&Ca(e),o=!n&&!r&&Da(e),i=!n&&!r&&!o&&Qa(e),a=n||r||o||i,c=a?Bt(e.length,ve):[],l=c.length;for(var s in e)!t&&!xe.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||li(s,l))||c.push(s);return c}function Wn(e){var t=e.length;return t?e[Lr(0,t-1)]:void 0}function Mn(e,t){return Si(yo(e),Zn(t,0,e.length))}function Vn(e){return Si(yo(e))}function Un(e,t,n){(void 0!==n&&!Ta(e[t],n)||void 0===n&&!(t in e))&&Hn(e,t,n)}function $n(e,t,n){var r=e[t];xe.call(e,t)&&Ta(r,n)&&(void 0!==n||t in e)||Hn(e,t,n)}function qn(e,t){for(var n=e.length;n--;)if(Ta(e[n][0],t))return n;return-1}function Gn(e,t,n,r){return tr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Yn(e,t){return e&&wo(t,_c(t),e)}function Hn(e,t,n){"__proto__"==t&&bt?bt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kn(e,t){for(var n=-1,o=t.length,i=r(o),a=null==e;++n<o;)i[n]=a?void 0:vc(e,t[n]);return i}function Zn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Xn(e,t,n,r,o,i){var a,c=1&t,s=2&t,p=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!$a(e))return e;var k=Oa(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return yo(e,a)}else{var C=oi(e),O=C==d||C==m;if(Da(e))return po(e,c);if(C==g||C==l||O&&!o){if(a=s||O?{}:ai(e),!c)return s?function(e,t){return wo(e,ri(e),t)}(e,function(e,t){return e&&wo(t,kc(t),e)}(a,e)):function(e,t){return wo(e,ni(e),t)}(e,Yn(a,e))}else{if(!Me[C])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case x:return mo(e);case u:case f:return new r(+e);case E:return function(e,t){var n=t?mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case P:case R:case I:case B:case T:case"[object Uint8ClampedArray]":case A:case j:return ho(e,n);case h:return new r;case v:case w:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case _:return o=e,Rn?me(Rn.call(o)):{}}var o}(e,C,c)}}i||(i=new Dn);var N=i.get(e);if(N)return N;i.set(e,a),Za(e)?e.forEach((function(r){a.add(Xn(r,t,n,r,e,i))})):Ga(e)&&e.forEach((function(r,o){a.set(o,Xn(r,t,n,o,e,i))}));var F=k?void 0:(p?s?Ho:Yo:s?kc:_c)(e);return ct(F||e,(function(r,o){F&&(r=e[o=r]),$n(a,o,Xn(r,t,n,o,e,i))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ge(i);return _i((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=ft,a=!0,c=e.length,l=[],s=t.length;if(!c)return l;n&&(t=dt(t,At(n))),r?(i=pt,a=!1):t.length>=200&&(i=Ct,a=!1,t=new Ln(t));e:for(;++o<c;){var u=e[o],f=null==n?u:n(u);if(u=r||0!==u?u:0,a&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;l.push(u)}else i(t,f,r)||l.push(u)}return l}Bn.templateSettings={escape:W,evaluate:M,interpolate:V,variable:"",imports:{_:Bn}},Bn.prototype=An.prototype,Bn.prototype.constructor=Bn,jn.prototype=Tn(An.prototype),jn.prototype.constructor=jn,Cn.prototype=Tn(An.prototype),Cn.prototype.constructor=Cn,On.prototype.clear=function(){this.__data__=bn?bn(null):{},this.size=0},On.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},On.prototype.get=function(e){var t=this.__data__;if(bn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(t,e)?t[e]:void 0},On.prototype.has=function(e){var t=this.__data__;return bn?void 0!==t[e]:xe.call(t,e)},On.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bn&&void 0===t?"__lodash_hash_undefined__":t,this},Nn.prototype.clear=function(){this.__data__=[],this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=qn(t,e);return!(n<0)&&(n==t.length-1?t.pop():He.call(t,n,1),--this.size,!0)},Nn.prototype.get=function(e){var t=this.__data__,n=qn(t,e);return n<0?void 0:t[n][1]},Nn.prototype.has=function(e){return qn(this.__data__,e)>-1},Nn.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new On,map:new(mn||Nn),string:new On}},Fn.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Fn.prototype.get=function(e){return Qo(this,e).get(e)},Fn.prototype.has=function(e){return Qo(this,e).has(e)},Fn.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},Dn.prototype.clear=function(){this.__data__=new Nn,this.size=0},Dn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Dn.prototype.get=function(e){return this.__data__.get(e)},Dn.prototype.has=function(e){return this.__data__.has(e)},Dn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!mn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fn(r)}return n.set(e,t),this.size=n.size,this};var tr=xo(sr),nr=xo(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===c?a==a&&!Ja(a):n(a,c)))var c=a,l=i}return l}function ir(e,t){var n=[];return tr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function ar(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=ci),o||(o=[]);++i<a;){var c=e[i];t>0&&n(c)?t>1?ar(c,t-1,n,r,o):mt(o,c):r||(o[o.length]=c)}return o}var cr=Eo(),lr=Eo(!0);function sr(e,t){return e&&cr(e,t,_c)}function ur(e,t){return e&&lr(e,t,_c)}function fr(e,t){return ut(t,(function(t){return Ma(e[t])}))}function pr(e,t){for(var n=0,r=(t=lo(t,e)).length;null!=e&&n<r;)e=e[Ri(t[n++])];return n&&n==r?e:void 0}function dr(e,t,n){var r=t(e);return Oa(e)?r:mt(r,n(e))}function mr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Je&&Je in me(e)?function(e){var t=xe.call(e,Je),n=e[Je];try{e[Je]=void 0;var r=!0}catch(e){}var o=Pe.call(e);r&&(t?e[Je]=n:delete e[Je]);return o}(e):function(e){return Pe.call(e)}(e)}function hr(e,t){return e>t}function vr(e,t){return null!=e&&xe.call(e,t)}function gr(e,t){return null!=e&&t in me(e)}function br(e,t,n){for(var o=n?pt:ft,i=e[0].length,a=e.length,c=a,l=r(a),s=1/0,u=[];c--;){var f=e[c];c&&t&&(f=dt(f,At(t))),s=ln(f.length,s),l[c]=!n&&(t||i>=120&&f.length>=120)?new Ln(c&&f):void 0}f=e[0];var p=-1,d=l[0];e:for(;++p<i&&u.length<s;){var m=f[p],h=t?t(m):m;if(m=n||0!==m?m:0,!(d?Ct(d,h):o(u,h,n))){for(c=a;--c;){var v=l[c];if(!(v?Ct(v,h):o(e[c],h,n)))continue e}d&&d.push(h),u.push(m)}}return u}function yr(e,t,n){var r=null==(e=gi(e,t=lo(t,e)))?e:e[Ri(Wi(t))];return null==r?void 0:it(r,e,n)}function wr(e){return qa(e)&&mr(e)==l}function _r(e,t,n,r,o){return e===t||(null==e||null==t||!qa(e)&&!qa(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Oa(e),c=Oa(t),d=a?s:oi(e),m=c?s:oi(t),k=(d=d==l?g:d)==g,S=(m=m==l?g:m)==g,P=d==m;if(P&&Da(e)){if(!Da(t))return!1;a=!0,k=!1}if(P&&!k)return i||(i=new Dn),a||Qa(e)?qo(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!i(new Oe(e),new Oe(t)));case u:case f:case v:return Ta(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case w:return e==t+"";case h:var c=Mt;case y:var l=1&r;if(c||(c=$t),e.size!=t.size&&!l)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var d=qo(c(e),c(t),r,o,i,a);return a.delete(e),d;case _:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,d,n,r,o,i);if(!(1&n)){var R=k&&xe.call(e,"__wrapped__"),I=S&&xe.call(t,"__wrapped__");if(R||I){var B=R?e.value():e,T=I?t.value():t;return i||(i=new Dn),o(B,T,n,r,i)}}if(!P)return!1;return i||(i=new Dn),function(e,t,n,r,o,i){var a=1&n,c=Yo(e),l=c.length,s=Yo(t).length;if(l!=s&&!a)return!1;var u=l;for(;u--;){var f=c[u];if(!(a?f in t:xe.call(t,f)))return!1}var p=i.get(e),d=i.get(t);if(p&&d)return p==t&&d==e;var m=!0;i.set(e,t),i.set(t,e);var h=a;for(;++u<l;){f=c[u];var v=e[f],g=t[f];if(r)var b=a?r(g,v,f,t,e,i):r(v,g,f,e,t,i);if(!(void 0===b?v===g||o(v,g,n,r,i):b)){m=!1;break}h||(h="constructor"==f)}if(m&&!h){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(m=!1)}return i.delete(e),i.delete(t),m}(e,t,n,r,o,i)}(e,t,n,r,_r,o))}function kr(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=me(e);o--;){var c=n[o];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<i;){var l=(c=n[o])[0],s=e[l],u=c[1];if(a&&c[2]){if(void 0===s&&!(l in e))return!1}else{var f=new Dn;if(r)var p=r(s,u,l,e,t,f);if(!(void 0===p?_r(u,s,3,r,f):p))return!1}}return!0}function xr(e){return!(!$a(e)||(t=e,Se&&Se in t))&&(Ma(e)?Be:ae).test(Ii(e));var t}function Er(e){return"function"==typeof e?e:null==e?Yc:"object"==typeof e?Oa(e)?Tr(e[0],e[1]):Br(e):nl(e)}function Sr(e){if(!di(e))return an(e);var t=[];for(var n in me(e))xe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Pr(e){if(!$a(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=di(e),n=[];for(var r in e)("constructor"!=r||!t&&xe.call(e,r))&&n.push(r);return n}function Rr(e,t){return e<t}function Ir(e,t){var n=-1,o=Fa(e)?r(e.length):[];return tr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Br(e){var t=ei(e);return 1==t.length&&t[0][2]?hi(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Tr(e,t){return ui(e)&&mi(t)?hi(Ri(e),t):function(n){var r=vc(n,e);return void 0===r&&r===t?gc(n,e):_r(t,r,3)}}function Ar(e,t,n,r,o){e!==t&&cr(t,(function(i,a){if(o||(o=new Dn),$a(i))!function(e,t,n,r,o,i,a){var c=yi(e,n),l=yi(t,n),s=a.get(l);if(s)return void Un(e,n,s);var u=i?i(c,l,n+"",e,t,a):void 0,f=void 0===u;if(f){var p=Oa(l),d=!p&&Da(l),m=!p&&!d&&Qa(l);u=l,p||d||m?Oa(c)?u=c:La(c)?u=yo(c):d?(f=!1,u=po(l,!0)):m?(f=!1,u=ho(l,!0)):u=[]:Ha(l)||Ca(l)?(u=c,Ca(c)?u=cc(c):$a(c)&&!Ma(c)||(u=ai(l))):f=!1}f&&(a.set(l,u),o(u,l,r,i,a),a.delete(l));Un(e,n,u)}(e,t,a,n,Ar,r,o);else{var c=r?r(yi(e,a),i,a+"",e,t,o):void 0;void 0===c&&(c=i),Un(e,a,c)}}),kc)}function jr(e,t){var n=e.length;if(n)return li(t+=t<0?n:0,n)?e[t]:void 0}function Cr(e,t,n){t=t.length?dt(t,(function(e){return Oa(e)?function(t){return pr(t,1===e.length?e[0]:e)}:e})):[Yc];var r=-1;return t=dt(t,At(Jo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ir(e,(function(e,n,o){return{criteria:dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,c=n.length;for(;++r<a;){var l=vo(o[r],i[r]);if(l){if(r>=c)return l;var s=n[r];return l*("desc"==s?-1:1)}}return e.index-t.index}(e,t,n)}))}function Or(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],c=pr(e,a);n(c,a)&&Vr(i,lo(a,e),c)}return i}function Nr(e,t,n,r){var o=r?kt:_t,i=-1,a=t.length,c=e;for(e===t&&(t=yo(t)),n&&(c=dt(e,At(n)));++i<a;)for(var l=0,s=t[i],u=n?n(s):s;(l=o(c,u,l,r))>-1;)c!==e&&He.call(c,l,1),He.call(e,l,1);return e}function Fr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;li(o)?He.call(e,o,1):eo(e,o)}}return e}function Lr(e,t){return e+en(fn()*(t-e+1))}function Dr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return ki(vi(e,t,Yc),e+"")}function Wr(e){return Wn(Tc(e))}function Mr(e,t){var n=Tc(e);return Si(n,Zn(t,0,n.length))}function Vr(e,t,n,r){if(!$a(e))return e;for(var o=-1,i=(t=lo(t,e)).length,a=i-1,c=e;null!=c&&++o<i;){var l=Ri(t[o]),s=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var u=c[l];void 0===(s=r?r(u,l,c):void 0)&&(s=$a(u)?u:li(t[o+1])?[]:{})}$n(c,l,s),c=c[l]}return e}var Ur=yn?function(e,t){return yn.set(e,t),e}:Yc,$r=bt?function(e,t){return bt(e,"toString",{configurable:!0,enumerable:!1,value:$c(t),writable:!0})}:Yc;function qr(e){return Si(Tc(e))}function Gr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function Yr(e,t){var n;return tr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Hr(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Ja(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Kr(e,t,Yc,n)}function Kr(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,c=null===t,l=Ja(t),s=void 0===t;o<i;){var u=en((o+i)/2),f=n(e[u]),p=void 0!==f,d=null===f,m=f==f,h=Ja(f);if(a)var v=r||m;else v=s?m&&(r||p):c?m&&p&&(r||!d):l?m&&p&&!d&&(r||!h):!d&&!h&&(r?f<=t:f<t);v?o=u+1:i=u}return ln(i,4294967294)}function Zr(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],c=t?t(a):a;if(!n||!Ta(c,l)){var l=c;i[o++]=0===a?0:a}}return i}function Xr(e){return"number"==typeof e?e:Ja(e)?NaN:+e}function Jr(e){if("string"==typeof e)return e;if(Oa(e))return dt(e,Jr)+"";if(Ja(e))return In?In.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,o=ft,i=e.length,a=!0,c=[],l=c;if(n)a=!1,o=pt;else if(i>=200){var s=t?null:zo(e);if(s)return $t(s);a=!1,o=Ct,l=new Ln}else l=t?[]:c;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),c.push(u)}else o(l,f,n)||(l!==c&&l.push(f),c.push(u))}return c}function eo(e,t){return null==(e=gi(e,t=lo(t,e)))||delete e[Ri(Wi(t))]}function to(e,t,n,r){return Vr(e,t,n(pr(e,t)),r)}function no(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Gr(e,r?0:i,r?i+1:o):Gr(e,r?i+1:0,r?o:i)}function ro(e,t){var n=e;return n instanceof Cn&&(n=n.value()),ht(t,(function(e,t){return t.func.apply(t.thisArg,mt([e],t.args))}),n)}function oo(e,t,n){var o=e.length;if(o<2)return o?Qr(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var c=e[i],l=-1;++l<o;)l!=i&&(a[i]=er(a[i]||c,e[l],t,n));return Qr(ar(a,1),t,n)}function io(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var c=r<i?t[r]:void 0;n(a,e[r],c)}return a}function ao(e){return La(e)?e:[]}function co(e){return"function"==typeof e?e:Yc}function lo(e,t){return Oa(e)?e:ui(e,t)?[e]:Pi(lc(e))}var so=zr;function uo(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Gr(e,t,n)}var fo=Pt||function(e){return Ye.clearTimeout(e)};function po(e,t){if(t)return e.slice();var n=e.length,r=Fe?Fe(n):new e.constructor(n);return e.copy(r),r}function mo(e){var t=new e.constructor(e.byteLength);return new Oe(t).set(new Oe(e)),t}function ho(e,t){var n=t?mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function vo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Ja(e),a=void 0!==t,c=null===t,l=t==t,s=Ja(t);if(!c&&!s&&!i&&e>t||i&&a&&l&&!c&&!s||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!s&&e<t||s&&n&&o&&!r&&!i||c&&n&&o||!a&&o||!l)return-1}return 0}function go(e,t,n,o){for(var i=-1,a=e.length,c=n.length,l=-1,s=t.length,u=cn(a-c,0),f=r(s+u),p=!o;++l<s;)f[l]=t[l];for(;++i<c;)(p||i<a)&&(f[n[i]]=e[i]);for(;u--;)f[l++]=e[i++];return f}function bo(e,t,n,o){for(var i=-1,a=e.length,c=-1,l=n.length,s=-1,u=t.length,f=cn(a-l,0),p=r(f+u),d=!o;++i<f;)p[i]=e[i];for(var m=i;++s<u;)p[m+s]=t[s];for(;++c<l;)(d||i<a)&&(p[m+n[c]]=e[i++]);return p}function yo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function wo(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],l=r?r(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),o?Hn(n,c,l):$n(n,c,l)}return n}function _o(e,t){return function(n,r){var o=Oa(n)?at:Gn,i=t?t():{};return o(n,e,Jo(r,2),i)}}function ko(e){return zr((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&si(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=me(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t}))}function xo(e,t){return function(n,r){if(null==n)return n;if(!Fa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=me(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Eo(e){return function(t,n,r){for(var o=-1,i=me(t),a=r(t),c=a.length;c--;){var l=a[e?c:++o];if(!1===n(i[l],l,i))break}return t}}function So(e){return function(t){var n=Wt(t=lc(t))?Yt(t):void 0,r=n?n[0]:t.charAt(0),o=n?uo(n,1).join(""):t.slice(1);return r[e]()+o}}function Po(e){return function(t){return ht(Mc(Cc(t).replace(je,"")),e,"")}}function Ro(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Tn(e.prototype),r=e.apply(n,t);return $a(r)?r:n}}function Io(e){return function(t,n,r){var o=me(t);if(!Fa(t)){var i=Jo(n,3);t=_c(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}function Bo(e){return Go((function(t){var n=t.length,r=n,o=jn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ge(i);if(o&&!c&&"wrapper"==Zo(a))var c=new jn([],!0)}for(r=c?r:n;++r<n;){var l=Zo(a=t[r]),s="wrapper"==l?Ko(a):void 0;c=s&&fi(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?c[Zo(s[0])].apply(c,s[3]):1==a.length&&fi(a)?c[l]():c.thru(a)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Oa(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function To(e,t,n,o,i,a,c,l,s,u){var f=128&t,p=1&t,d=2&t,m=24&t,h=512&t,v=d?void 0:Ro(e);return function g(){for(var b=arguments.length,y=r(b),w=b;w--;)y[w]=arguments[w];if(m)var _=Xo(g),k=Ft(y,_);if(o&&(y=go(y,o,i,m)),a&&(y=bo(y,a,c,m)),b-=k,m&&b<u){var x=Ut(y,_);return Lo(e,t,To,g.placeholder,n,y,x,l,s,u-b)}var E=p?n:this,S=d?E[e]:e;return b=y.length,l?y=bi(y,l):h&&b>1&&y.reverse(),f&&s<b&&(y.length=s),this&&this!==Ye&&this instanceof g&&(S=v||Ro(S)),S.apply(E,y)}}function Ao(e,t){return function(n,r){return function(e,t,n,r){return sr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function jo(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Xr(n),r=Xr(r)),o=e(n,r)}return o}}function Co(e){return Go((function(t){return t=dt(t,At(Jo())),zr((function(n){var r=this;return e(t,(function(e){return it(e,r,n)}))}))}))}function Oo(e,t){var n=(t=void 0===t?" ":Jr(t)).length;if(n<2)return n?Dr(t,e):t;var r=Dr(t,Qt(e/Gt(t)));return Wt(t)?uo(Yt(r),0,e).join(""):r.slice(0,e)}function No(e){return function(t,n,o){return o&&"number"!=typeof o&&si(t,n,o)&&(n=o=void 0),t=rc(t),void 0===n?(n=t,t=0):n=rc(n),function(e,t,n,o){for(var i=-1,a=cn(Qt((t-e)/(n||1)),0),c=r(a);a--;)c[o?a:++i]=e,e+=n;return c}(t,n,o=void 0===o?t<n?1:-1:rc(o),e)}}function Fo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ac(t),n=ac(n)),e(t,n)}}function Lo(e,t,n,r,o,i,a,c,l,s){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var f=[e,t,o,u?i:void 0,u?a:void 0,u?void 0:i,u?void 0:a,c,l,s],p=n.apply(void 0,f);return fi(e)&&wi(p,f),p.placeholder=r,xi(p,e,t)}function Do(e){var t=de[e];return function(e,n){if(e=ac(e),(n=null==n?0:ln(oc(n),292))&&rn(e)){var r=(lc(e)+"e").split("e");return+((r=(lc(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var zo=vn&&1/$t(new vn([,-0]))[1]==1/0?function(e){return new vn(e)}:Jc;function Wo(e){return function(t){var n=oi(t);return n==h?Mt(t):n==y?qt(t):function(e,t){return dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Mo(e,t,n,o,c,l,s,u){var f=2&t;if(!f&&"function"!=typeof e)throw new ge(i);var p=o?o.length:0;if(p||(t&=-97,o=c=void 0),s=void 0===s?s:cn(oc(s),0),u=void 0===u?u:oc(u),p-=c?c.length:0,64&t){var d=o,m=c;o=c=void 0}var h=f?void 0:Ko(e),v=[e,t,n,o,c,d,m,l,s,u];if(h&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,c=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!c)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var s=e[3];e[3]=s?go(s,l,t[4]):l,e[4]=s?Ut(e[3],a):t[4]}(l=t[5])&&(s=e[5],e[5]=s?bo(s,l,t[6]):l,e[6]=s?Ut(e[5],a):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:ln(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(v,h),e=v[0],t=v[1],n=v[2],o=v[3],c=v[4],!(u=v[9]=void 0===v[9]?f?0:e.length:cn(v[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var o=Ro(e);return function i(){for(var a=arguments.length,c=r(a),l=a,s=Xo(i);l--;)c[l]=arguments[l];var u=a<3&&c[0]!==s&&c[a-1]!==s?[]:Ut(c,s);if((a-=u.length)<n)return Lo(e,t,To,i.placeholder,void 0,c,u,void 0,void 0,n-a);var f=this&&this!==Ye&&this instanceof i?o:e;return it(f,this,c)}}(e,t,u):32!=t&&33!=t||c.length?To.apply(void 0,v):function(e,t,n,o){var i=1&t,a=Ro(e);return function t(){for(var c=-1,l=arguments.length,s=-1,u=o.length,f=r(u+l),p=this&&this!==Ye&&this instanceof t?a:e;++s<u;)f[s]=o[s];for(;l--;)f[s++]=arguments[++c];return it(p,i?n:this,f)}}(e,t,n,o);else var g=function(e,t,n){var r=1&t,o=Ro(e);return function t(){var i=this&&this!==Ye&&this instanceof t?o:e;return i.apply(r?n:this,arguments)}}(e,t,n);return xi((h?Ur:wi)(g,v),e,t)}function Vo(e,t,n,r){return void 0===e||Ta(e,we[n])&&!xe.call(r,n)?t:e}function Uo(e,t,n,r,o,i){return $a(e)&&$a(t)&&(i.set(t,e),Ar(e,t,void 0,Uo,i),i.delete(t)),e}function $o(e){return Ha(e)?void 0:e}function qo(e,t,n,r,o,i){var a=1&n,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==t&&u==e;var f=-1,p=!0,d=2&n?new Ln:void 0;for(i.set(e,t),i.set(t,e);++f<c;){var m=e[f],h=t[f];if(r)var v=a?r(h,m,f,t,e,i):r(m,h,f,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(d){if(!gt(t,(function(e,t){if(!Ct(d,t)&&(m===e||o(m,e,n,r,i)))return d.push(t)}))){p=!1;break}}else if(m!==h&&!o(m,h,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Go(e){return ki(vi(e,void 0,Ni),e+"")}function Yo(e){return dr(e,_c,ni)}function Ho(e){return dr(e,kc,ri)}var Ko=yn?function(e){return yn.get(e)}:Jc;function Zo(e){for(var t=e.name+"",n=wn[t],r=xe.call(wn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Xo(e){return(xe.call(Bn,"placeholder")?Bn:e).placeholder}function Jo(){var e=Bn.iteratee||Hc;return e=e===Hc?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Qo(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ei(e){for(var t=_c(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,mi(o)]}return t}function ti(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xr(n)?n:void 0}var ni=tn?function(e){return null==e?[]:(e=me(e),ut(tn(e),(function(t){return Ge.call(e,t)})))}:il,ri=tn?function(e){for(var t=[];e;)mt(t,ni(e)),e=Ve(e);return t}:il,oi=mr;function ii(e,t,n){for(var r=-1,o=(t=lo(t,e)).length,i=!1;++r<o;){var a=Ri(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ua(o)&&li(a,o)&&(Oa(e)||Ca(e))}function ai(e){return"function"!=typeof e.constructor||di(e)?{}:Tn(Ve(e))}function ci(e){return Oa(e)||Ca(e)||!!(Ke&&e&&e[Ke])}function li(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function si(e,t,n){if(!$a(n))return!1;var r=typeof t;return!!("number"==r?Fa(n)&&li(t,n.length):"string"==r&&t in n)&&Ta(n[t],e)}function ui(e,t){if(Oa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ja(e))||($.test(e)||!U.test(e)||null!=t&&e in me(t))}function fi(e){var t=Zo(e),n=Bn[t];if("function"!=typeof n||!(t in Cn.prototype))return!1;if(e===n)return!0;var r=Ko(n);return!!r&&e===r[0]}(dn&&oi(new dn(new ArrayBuffer(1)))!=E||mn&&oi(new mn)!=h||hn&&"[object Promise]"!=oi(hn.resolve())||vn&&oi(new vn)!=y||gn&&oi(new gn)!=k)&&(oi=function(e){var t=mr(e),n=t==g?e.constructor:void 0,r=n?Ii(n):"";if(r)switch(r){case _n:return E;case kn:return h;case xn:return"[object Promise]";case En:return y;case Sn:return k}return t});var pi=_e?Ma:al;function di(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function mi(e){return e==e&&!$a(e)}function hi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function vi(e,t,n){return t=cn(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=cn(o.length-t,0),c=r(a);++i<a;)c[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(c),it(e,this,l)}}function gi(e,t){return t.length<2?e:pr(e,Gr(t,0,-1))}function bi(e,t){for(var n=e.length,r=ln(t.length,n),o=yo(e);r--;){var i=t[r];e[r]=li(i,n)?o[i]:void 0}return e}function yi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var wi=Ei(Ur),_i=Jt||function(e,t){return Ye.setTimeout(e,t)},ki=Ei($r);function xi(e,t,n){var r=t+"";return ki(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return ct(c,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(J):[]}(r),n)))}function Ei(e){var t=0,n=0;return function(){var r=sn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Si(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Lr(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}var Pi=function(e){var t=Ea(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(q,(function(e,n,r,o){t.push(r?o.replace(te,"$1"):n||e)})),t}));function Ri(e){if("string"==typeof e||Ja(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ii(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bi(e){if(e instanceof Cn)return e.clone();var t=new jn(e.__wrapped__,e.__chain__);return t.__actions__=yo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ti=zr((function(e,t){return La(e)?er(e,ar(t,1,La,!0)):[]})),Ai=zr((function(e,t){var n=Wi(t);return La(n)&&(n=void 0),La(e)?er(e,ar(t,1,La,!0),Jo(n,2)):[]})),ji=zr((function(e,t){var n=Wi(t);return La(n)&&(n=void 0),La(e)?er(e,ar(t,1,La,!0),void 0,n):[]}));function Ci(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:oc(n);return o<0&&(o=cn(r+o,0)),wt(e,Jo(t,3),o)}function Oi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=oc(n),o=n<0?cn(r+o,0):ln(o,r-1)),wt(e,Jo(t,3),o,!0)}function Ni(e){return(null==e?0:e.length)?ar(e,1):[]}function Fi(e){return e&&e.length?e[0]:void 0}var Li=zr((function(e){var t=dt(e,ao);return t.length&&t[0]===e[0]?br(t):[]})),Di=zr((function(e){var t=Wi(e),n=dt(e,ao);return t===Wi(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?br(n,Jo(t,2)):[]})),zi=zr((function(e){var t=Wi(e),n=dt(e,ao);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?br(n,void 0,t):[]}));function Wi(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Mi=zr(Vi);function Vi(e,t){return e&&e.length&&t&&t.length?Nr(e,t):e}var Ui=Go((function(e,t){var n=null==e?0:e.length,r=Kn(e,t);return Fr(e,dt(t,(function(e){return li(e,n)?+e:e})).sort(vo)),r}));function $i(e){return null==e?e:pn.call(e)}var qi=zr((function(e){return Qr(ar(e,1,La,!0))})),Gi=zr((function(e){var t=Wi(e);return La(t)&&(t=void 0),Qr(ar(e,1,La,!0),Jo(t,2))})),Yi=zr((function(e){var t=Wi(e);return t="function"==typeof t?t:void 0,Qr(ar(e,1,La,!0),void 0,t)}));function Hi(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(La(e))return t=cn(e.length,t),!0})),Bt(t,(function(t){return dt(e,St(t))}))}function Ki(e,t){if(!e||!e.length)return[];var n=Hi(e);return null==t?n:dt(n,(function(e){return it(t,void 0,e)}))}var Zi=zr((function(e,t){return La(e)?er(e,t):[]})),Xi=zr((function(e){return oo(ut(e,La))})),Ji=zr((function(e){var t=Wi(e);return La(t)&&(t=void 0),oo(ut(e,La),Jo(t,2))})),Qi=zr((function(e){var t=Wi(e);return t="function"==typeof t?t:void 0,oo(ut(e,La),void 0,t)})),ea=zr(Hi);var ta=zr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ki(e,n)}));function na(e){var t=Bn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var oa=Go((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Kn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Cn&&li(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new jn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=_o((function(e,t,n){xe.call(e,n)?++e[n]:Hn(e,n,1)}));var aa=Io(Ci),ca=Io(Oi);function la(e,t){return(Oa(e)?ct:tr)(e,Jo(t,3))}function sa(e,t){return(Oa(e)?lt:nr)(e,Jo(t,3))}var ua=_o((function(e,t,n){xe.call(e,n)?e[n].push(t):Hn(e,n,[t])}));var fa=zr((function(e,t,n){var o=-1,i="function"==typeof t,a=Fa(e)?r(e.length):[];return tr(e,(function(e){a[++o]=i?it(t,e,n):yr(e,t,n)})),a})),pa=_o((function(e,t,n){Hn(e,n,t)}));function da(e,t){return(Oa(e)?dt:Ir)(e,Jo(t,3))}var ma=_o((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ha=zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&si(e,t[0],t[1])?t=[]:n>2&&si(t[0],t[1],t[2])&&(t=[t[0]]),Cr(e,ar(t,1),[])})),va=Xt||function(){return Ye.Date.now()};function ga(e,t,n){return t=n?void 0:t,Mo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ba(e,t){var n;if("function"!=typeof t)throw new ge(i);return e=oc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=zr((function(e,t,n){var r=1;if(n.length){var o=Ut(n,Xo(ya));r|=32}return Mo(e,r,t,n,o)})),wa=zr((function(e,t,n){var r=3;if(n.length){var o=Ut(n,Xo(wa));r|=32}return Mo(t,r,e,n,o)}));function _a(e,t,n){var r,o,a,c,l,s,u=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new ge(i);function m(t){var n=r,i=o;return r=o=void 0,u=t,c=e.apply(i,n)}function h(e){return u=e,l=_i(g,t),f?m(e):c}function v(e){var n=e-s;return void 0===s||n>=t||n<0||p&&e-u>=a}function g(){var e=va();if(v(e))return b(e);l=_i(g,function(e){var n=t-(e-s);return p?ln(n,a-(e-u)):n}(e))}function b(e){return l=void 0,d&&r?m(e):(r=o=void 0,c)}function y(){var e=va(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return h(s);if(p)return fo(l),l=_i(g,t),m(s)}return void 0===l&&(l=_i(g,t)),c}return t=ac(t)||0,$a(n)&&(f=!!n.leading,a=(p="maxWait"in n)?cn(ac(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==l&&fo(l),u=0,r=s=o=l=void 0},y.flush=function(){return void 0===l?c:b(va())},y}var ka=zr((function(e,t){return Qn(e,1,t)})),xa=zr((function(e,t,n){return Qn(e,ac(t)||0,n)}));function Ea(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ea.Cache||Fn),n}function Sa(e){if("function"!=typeof e)throw new ge(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ea.Cache=Fn;var Pa=so((function(e,t){var n=(t=1==t.length&&Oa(t[0])?dt(t[0],At(Jo())):dt(ar(t,1),At(Jo()))).length;return zr((function(r){for(var o=-1,i=ln(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return it(e,this,r)}))})),Ra=zr((function(e,t){return Mo(e,32,void 0,t,Ut(t,Xo(Ra)))})),Ia=zr((function(e,t){return Mo(e,64,void 0,t,Ut(t,Xo(Ia)))})),Ba=Go((function(e,t){return Mo(e,256,void 0,void 0,void 0,t)}));function Ta(e,t){return e===t||e!=e&&t!=t}var Aa=Fo(hr),ja=Fo((function(e,t){return e>=t})),Ca=wr(function(){return arguments}())?wr:function(e){return qa(e)&&xe.call(e,"callee")&&!Ge.call(e,"callee")},Oa=r.isArray,Na=Qe?At(Qe):function(e){return qa(e)&&mr(e)==x};function Fa(e){return null!=e&&Ua(e.length)&&!Ma(e)}function La(e){return qa(e)&&Fa(e)}var Da=nn||al,za=et?At(et):function(e){return qa(e)&&mr(e)==f};function Wa(e){if(!qa(e))return!1;var t=mr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ha(e)}function Ma(e){if(!$a(e))return!1;var t=mr(e);return t==d||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==oc(e)}function Ua(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function $a(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Ga=tt?At(tt):function(e){return qa(e)&&oi(e)==h};function Ya(e){return"number"==typeof e||qa(e)&&mr(e)==v}function Ha(e){if(!qa(e)||mr(e)!=g)return!1;var t=Ve(e);if(null===t)return!0;var n=xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Re}var Ka=nt?At(nt):function(e){return qa(e)&&mr(e)==b};var Za=rt?At(rt):function(e){return qa(e)&&oi(e)==y};function Xa(e){return"string"==typeof e||!Oa(e)&&qa(e)&&mr(e)==w}function Ja(e){return"symbol"==typeof e||qa(e)&&mr(e)==_}var Qa=ot?At(ot):function(e){return qa(e)&&Ua(e.length)&&!!We[mr(e)]};var ec=Fo(Rr),tc=Fo((function(e,t){return e<=t}));function nc(e){if(!e)return[];if(Fa(e))return Xa(e)?Yt(e):yo(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=oi(e);return(t==h?Mt:t==y?$t:Tc)(e)}function rc(e){return e?(e=ac(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function oc(e){var t=rc(e),n=t%1;return t==t?n?t-n:t:0}function ic(e){return e?Zn(oc(e),0,4294967295):0}function ac(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if($a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=ie.test(e);return n||ce.test(e)?$e(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function cc(e){return wo(e,kc(e))}function lc(e){return null==e?"":Jr(e)}var sc=ko((function(e,t){if(di(t)||Fa(t))wo(t,_c(t),e);else for(var n in t)xe.call(t,n)&&$n(e,n,t[n])})),uc=ko((function(e,t){wo(t,kc(t),e)})),fc=ko((function(e,t,n,r){wo(t,kc(t),e,r)})),pc=ko((function(e,t,n,r){wo(t,_c(t),e,r)})),dc=Go(Kn);var mc=zr((function(e,t){e=me(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&si(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=kc(i),c=-1,l=a.length;++c<l;){var s=a[c],u=e[s];(void 0===u||Ta(u,we[s])&&!xe.call(e,s))&&(e[s]=i[s])}return e})),hc=zr((function(e){return e.push(void 0,Uo),it(Ec,void 0,e)}));function vc(e,t,n){var r=null==e?void 0:pr(e,t);return void 0===r?n:r}function gc(e,t){return null!=e&&ii(e,t,gr)}var bc=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),e[t]=n}),$c(Yc)),yc=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),xe.call(e,t)?e[t].push(n):e[t]=[n]}),Jo),wc=zr(yr);function _c(e){return Fa(e)?zn(e):Sr(e)}function kc(e){return Fa(e)?zn(e,!0):Pr(e)}var xc=ko((function(e,t,n){Ar(e,t,n)})),Ec=ko((function(e,t,n,r){Ar(e,t,n,r)})),Sc=Go((function(e,t){var n={};if(null==e)return n;var r=!1;t=dt(t,(function(t){return t=lo(t,e),r||(r=t.length>1),t})),wo(e,Ho(e),n),r&&(n=Xn(n,7,$o));for(var o=t.length;o--;)eo(n,t[o]);return n}));var Pc=Go((function(e,t){return null==e?{}:function(e,t){return Or(e,t,(function(t,n){return gc(e,n)}))}(e,t)}));function Rc(e,t){if(null==e)return{};var n=dt(Ho(e),(function(e){return[e]}));return t=Jo(t),Or(e,n,(function(e,n){return t(e,n[0])}))}var Ic=Wo(_c),Bc=Wo(kc);function Tc(e){return null==e?[]:jt(e,_c(e))}var Ac=Po((function(e,t,n){return t=t.toLowerCase(),e+(n?jc(t):t)}));function jc(e){return Wc(lc(e).toLowerCase())}function Cc(e){return(e=lc(e))&&e.replace(se,Lt).replace(Ce,"")}var Oc=Po((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Nc=Po((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fc=So("toLowerCase");var Lc=Po((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Dc=Po((function(e,t,n){return e+(n?" ":"")+Wc(t)}));var zc=Po((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Wc=So("toUpperCase");function Mc(e,t,n){return e=lc(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var Vc=zr((function(e,t){try{return it(e,void 0,t)}catch(e){return Wa(e)?e:new K(e)}})),Uc=Go((function(e,t){return ct(t,(function(t){t=Ri(t),Hn(e,t,ya(e[t],e))})),e}));function $c(e){return function(){return e}}var qc=Bo(),Gc=Bo(!0);function Yc(e){return e}function Hc(e){return Er("function"==typeof e?e:Xn(e,1))}var Kc=zr((function(e,t){return function(n){return yr(n,e,t)}})),Zc=zr((function(e,t){return function(n){return yr(e,n,t)}}));function Xc(e,t,n){var r=_c(t),o=fr(t,r);null!=n||$a(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,_c(t)));var i=!($a(n)&&"chain"in n&&!n.chain),a=Ma(e);return ct(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=yo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,mt([this.value()],arguments))})})),e}function Jc(){}var Qc=Co(dt),el=Co(st),tl=Co(gt);function nl(e){return ui(e)?St(Ri(e)):function(e){return function(t){return pr(t,e)}}(e)}var rl=No(),ol=No(!0);function il(){return[]}function al(){return!1}var cl=jo((function(e,t){return e+t}),0),ll=Do("ceil"),sl=jo((function(e,t){return e/t}),1),ul=Do("floor");var fl,pl=jo((function(e,t){return e*t}),1),dl=Do("round"),ml=jo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new ge(i);return e=oc(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=ga,Bn.assign=sc,Bn.assignIn=uc,Bn.assignInWith=fc,Bn.assignWith=pc,Bn.at=dc,Bn.before=ba,Bn.bind=ya,Bn.bindAll=Uc,Bn.bindKey=wa,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Oa(e)?e:[e]},Bn.chain=na,Bn.chunk=function(e,t,n){t=(n?si(e,t,n):void 0===t)?1:cn(oc(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,c=r(Qt(o/t));i<o;)c[a++]=Gr(e,i,i+=t);return c},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return mt(Oa(n)?yo(n):[n],ar(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=Jo();return e=t?dt(e,(function(e){if("function"!=typeof e[1])throw new ge(i);return[n(e[0]),e[1]]})):[],zr((function(n){for(var r=-1;++r<t;){var o=e[r];if(it(o[0],this,n))return it(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=_c(e);return function(n){return Jn(n,e,t)}}(Xn(e,1))},Bn.constant=$c,Bn.countBy=ia,Bn.create=function(e,t){var n=Tn(e);return null==t?n:Yn(n,t)},Bn.curry=function e(t,n,r){var o=Mo(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},Bn.curryRight=function e(t,n,r){var o=Mo(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},Bn.debounce=_a,Bn.defaults=mc,Bn.defaultsDeep=hc,Bn.defer=ka,Bn.delay=xa,Bn.difference=Ti,Bn.differenceBy=Ai,Bn.differenceWith=ji,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=n||void 0===t?1:oc(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,0,(t=r-(t=n||void 0===t?1:oc(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?no(e,Jo(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?no(e,Jo(t,3),!0):[]},Bn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&si(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=oc(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:oc(r))<0&&(r+=o),r=n>r?0:ic(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Oa(e)?ut:ir)(e,Jo(t,3))},Bn.flatMap=function(e,t){return ar(da(e,t),1)},Bn.flatMapDeep=function(e,t){return ar(da(e,t),1/0)},Bn.flatMapDepth=function(e,t,n){return n=void 0===n?1:oc(n),ar(da(e,t),n)},Bn.flatten=Ni,Bn.flattenDeep=function(e){return(null==e?0:e.length)?ar(e,1/0):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?ar(e,t=void 0===t?1:oc(t)):[]},Bn.flip=function(e){return Mo(e,512)},Bn.flow=qc,Bn.flowRight=Gc,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:fr(e,_c(e))},Bn.functionsIn=function(e){return null==e?[]:fr(e,kc(e))},Bn.groupBy=ua,Bn.initial=function(e){return(null==e?0:e.length)?Gr(e,0,-1):[]},Bn.intersection=Li,Bn.intersectionBy=Di,Bn.intersectionWith=zi,Bn.invert=bc,Bn.invertBy=yc,Bn.invokeMap=fa,Bn.iteratee=Hc,Bn.keyBy=pa,Bn.keys=_c,Bn.keysIn=kc,Bn.map=da,Bn.mapKeys=function(e,t){var n={};return t=Jo(t,3),sr(e,(function(e,r,o){Hn(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=Jo(t,3),sr(e,(function(e,r,o){Hn(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(Xn(e,1))},Bn.matchesProperty=function(e,t){return Tr(e,Xn(t,1))},Bn.memoize=Ea,Bn.merge=xc,Bn.mergeWith=Ec,Bn.method=Kc,Bn.methodOf=Zc,Bn.mixin=Xc,Bn.negate=Sa,Bn.nthArg=function(e){return e=oc(e),zr((function(t){return jr(t,e)}))},Bn.omit=Sc,Bn.omitBy=function(e,t){return Rc(e,Sa(Jo(t)))},Bn.once=function(e){return ba(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Oa(t)||(t=null==t?[]:[t]),Oa(n=r?void 0:n)||(n=null==n?[]:[n]),Cr(e,t,n))},Bn.over=Qc,Bn.overArgs=Pa,Bn.overEvery=el,Bn.overSome=tl,Bn.partial=Ra,Bn.partialRight=Ia,Bn.partition=ma,Bn.pick=Pc,Bn.pickBy=Rc,Bn.property=nl,Bn.propertyOf=function(e){return function(t){return null==e?void 0:pr(e,t)}},Bn.pull=Mi,Bn.pullAll=Vi,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,Jo(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,void 0,n):e},Bn.pullAt=Ui,Bn.range=rl,Bn.rangeRight=ol,Bn.rearg=Ba,Bn.reject=function(e,t){return(Oa(e)?ut:ir)(e,Sa(Jo(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Jo(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Fr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new ge(i);return zr(e,t=void 0===t?t:oc(t))},Bn.reverse=$i,Bn.sampleSize=function(e,t,n){return t=(n?si(e,t,n):void 0===t)?1:oc(t),(Oa(e)?Mn:Mr)(e,t)},Bn.set=function(e,t,n){return null==e?e:Vr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Vr(e,t,n,r)},Bn.shuffle=function(e){return(Oa(e)?Vn:qr)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&si(e,t,n)?(t=0,n=r):(t=null==t?0:oc(t),n=void 0===n?r:oc(n)),Gr(e,t,n)):[]},Bn.sortBy=ha,Bn.sortedUniq=function(e){return e&&e.length?Zr(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?Zr(e,Jo(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&si(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=lc(e))&&("string"==typeof t||null!=t&&!Ka(t))&&!(t=Jr(t))&&Wt(e)?uo(Yt(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new ge(i);return t=null==t?0:cn(oc(t),0),zr((function(n){var r=n[t],o=uo(n,0,t);return r&&mt(o,r),it(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:oc(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:oc(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?no(e,Jo(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?no(e,Jo(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ge(i);return $a(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_a(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=ra,Bn.toArray=nc,Bn.toPairs=Ic,Bn.toPairsIn=Bc,Bn.toPath=function(e){return Oa(e)?dt(e,Ri):Ja(e)?[e]:yo(Pi(lc(e)))},Bn.toPlainObject=cc,Bn.transform=function(e,t,n){var r=Oa(e),o=r||Da(e)||Qa(e);if(t=Jo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:$a(e)&&Ma(i)?Tn(Ve(e)):{}}return(o?ct:sr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return ga(e,1)},Bn.union=qi,Bn.unionBy=Gi,Bn.unionWith=Yi,Bn.uniq=function(e){return e&&e.length?Qr(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?Qr(e,Jo(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Bn.unset=function(e,t){return null==e||eo(e,t)},Bn.unzip=Hi,Bn.unzipWith=Ki,Bn.update=function(e,t,n){return null==e?e:to(e,t,co(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,co(n),r)},Bn.values=Tc,Bn.valuesIn=function(e){return null==e?[]:jt(e,kc(e))},Bn.without=Zi,Bn.words=Mc,Bn.wrap=function(e,t){return Ra(co(t),e)},Bn.xor=Xi,Bn.xorBy=Ji,Bn.xorWith=Qi,Bn.zip=ea,Bn.zipObject=function(e,t){return io(e||[],t||[],$n)},Bn.zipObjectDeep=function(e,t){return io(e||[],t||[],Vr)},Bn.zipWith=ta,Bn.entries=Ic,Bn.entriesIn=Bc,Bn.extend=uc,Bn.extendWith=fc,Xc(Bn,Bn),Bn.add=cl,Bn.attempt=Vc,Bn.camelCase=Ac,Bn.capitalize=jc,Bn.ceil=ll,Bn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=ac(n))==n?n:0),void 0!==t&&(t=(t=ac(t))==t?t:0),Zn(ac(e),t,n)},Bn.clone=function(e){return Xn(e,4)},Bn.cloneDeep=function(e){return Xn(e,5)},Bn.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},Bn.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},Bn.conformsTo=function(e,t){return null==t||Jn(e,t,_c(t))},Bn.deburr=Cc,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=sl,Bn.endsWith=function(e,t,n){e=lc(e),t=Jr(t);var r=e.length,o=n=void 0===n?r:Zn(oc(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Bn.eq=Ta,Bn.escape=function(e){return(e=lc(e))&&z.test(e)?e.replace(L,Dt):e},Bn.escapeRegExp=function(e){return(e=lc(e))&&Y.test(e)?e.replace(G,"\\$&"):e},Bn.every=function(e,t,n){var r=Oa(e)?st:rr;return n&&si(e,t,n)&&(t=void 0),r(e,Jo(t,3))},Bn.find=aa,Bn.findIndex=Ci,Bn.findKey=function(e,t){return yt(e,Jo(t,3),sr)},Bn.findLast=ca,Bn.findLastIndex=Oi,Bn.findLastKey=function(e,t){return yt(e,Jo(t,3),ur)},Bn.floor=ul,Bn.forEach=la,Bn.forEachRight=sa,Bn.forIn=function(e,t){return null==e?e:cr(e,Jo(t,3),kc)},Bn.forInRight=function(e,t){return null==e?e:lr(e,Jo(t,3),kc)},Bn.forOwn=function(e,t){return e&&sr(e,Jo(t,3))},Bn.forOwnRight=function(e,t){return e&&ur(e,Jo(t,3))},Bn.get=vc,Bn.gt=Aa,Bn.gte=ja,Bn.has=function(e,t){return null!=e&&ii(e,t,vr)},Bn.hasIn=gc,Bn.head=Fi,Bn.identity=Yc,Bn.includes=function(e,t,n,r){e=Fa(e)?e:Tc(e),n=n&&!r?oc(n):0;var o=e.length;return n<0&&(n=cn(o+n,0)),Xa(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&_t(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:oc(n);return o<0&&(o=cn(r+o,0)),_t(e,t,o)},Bn.inRange=function(e,t,n){return t=rc(t),void 0===n?(n=t,t=0):n=rc(n),function(e,t,n){return e>=ln(t,n)&&e<cn(t,n)}(e=ac(e),t,n)},Bn.invoke=wc,Bn.isArguments=Ca,Bn.isArray=Oa,Bn.isArrayBuffer=Na,Bn.isArrayLike=Fa,Bn.isArrayLikeObject=La,Bn.isBoolean=function(e){return!0===e||!1===e||qa(e)&&mr(e)==u},Bn.isBuffer=Da,Bn.isDate=za,Bn.isElement=function(e){return qa(e)&&1===e.nodeType&&!Ha(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Fa(e)&&(Oa(e)||"string"==typeof e||"function"==typeof e.splice||Da(e)||Qa(e)||Ca(e)))return!e.length;var t=oi(e);if(t==h||t==y)return!e.size;if(di(e))return!Sr(e).length;for(var n in e)if(xe.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return _r(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},Bn.isError=Wa,Bn.isFinite=function(e){return"number"==typeof e&&rn(e)},Bn.isFunction=Ma,Bn.isInteger=Va,Bn.isLength=Ua,Bn.isMap=Ga,Bn.isMatch=function(e,t){return e===t||kr(e,t,ei(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,kr(e,t,ei(t),n)},Bn.isNaN=function(e){return Ya(e)&&e!=+e},Bn.isNative=function(e){if(pi(e))throw new K("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=Ya,Bn.isObject=$a,Bn.isObjectLike=qa,Bn.isPlainObject=Ha,Bn.isRegExp=Ka,Bn.isSafeInteger=function(e){return Va(e)&&e>=-9007199254740991&&e<=9007199254740991},Bn.isSet=Za,Bn.isString=Xa,Bn.isSymbol=Ja,Bn.isTypedArray=Qa,Bn.isUndefined=function(e){return void 0===e},Bn.isWeakMap=function(e){return qa(e)&&oi(e)==k},Bn.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==mr(e)},Bn.join=function(e,t){return null==e?"":on.call(e,t)},Bn.kebabCase=Oc,Bn.last=Wi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=oc(n))<0?cn(r+o,0):ln(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):wt(e,xt,o,!0)},Bn.lowerCase=Nc,Bn.lowerFirst=Fc,Bn.lt=ec,Bn.lte=tc,Bn.max=function(e){return e&&e.length?or(e,Yc,hr):void 0},Bn.maxBy=function(e,t){return e&&e.length?or(e,Jo(t,2),hr):void 0},Bn.mean=function(e){return Et(e,Yc)},Bn.meanBy=function(e,t){return Et(e,Jo(t,2))},Bn.min=function(e){return e&&e.length?or(e,Yc,Rr):void 0},Bn.minBy=function(e,t){return e&&e.length?or(e,Jo(t,2),Rr):void 0},Bn.stubArray=il,Bn.stubFalse=al,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=pl,Bn.nth=function(e,t){return e&&e.length?jr(e,oc(t)):void 0},Bn.noConflict=function(){return Ye._===this&&(Ye._=Ie),this},Bn.noop=Jc,Bn.now=va,Bn.pad=function(e,t,n){e=lc(e);var r=(t=oc(t))?Gt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Oo(en(o),n)+e+Oo(Qt(o),n)},Bn.padEnd=function(e,t,n){e=lc(e);var r=(t=oc(t))?Gt(e):0;return t&&r<t?e+Oo(t-r,n):e},Bn.padStart=function(e,t,n){e=lc(e);var r=(t=oc(t))?Gt(e):0;return t&&r<t?Oo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(lc(e).replace(H,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&si(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=rc(e),void 0===t?(t=e,e=0):t=rc(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return ln(e+o*(t-e+Ue("1e-"+((o+"").length-1))),t)}return Lr(e,t)},Bn.reduce=function(e,t,n){var r=Oa(e)?ht:Rt,o=arguments.length<3;return r(e,Jo(t,4),n,o,tr)},Bn.reduceRight=function(e,t,n){var r=Oa(e)?vt:Rt,o=arguments.length<3;return r(e,Jo(t,4),n,o,nr)},Bn.repeat=function(e,t,n){return t=(n?si(e,t,n):void 0===t)?1:oc(t),Dr(lc(e),t)},Bn.replace=function(){var e=arguments,t=lc(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,o=(t=lo(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Ri(t[r])];void 0===i&&(r=o,i=n),e=Ma(i)?i.call(e):i}return e},Bn.round=dl,Bn.runInContext=e,Bn.sample=function(e){return(Oa(e)?Wn:Wr)(e)},Bn.size=function(e){if(null==e)return 0;if(Fa(e))return Xa(e)?Gt(e):e.length;var t=oi(e);return t==h||t==y?e.size:Sr(e).length},Bn.snakeCase=Lc,Bn.some=function(e,t,n){var r=Oa(e)?gt:Yr;return n&&si(e,t,n)&&(t=void 0),r(e,Jo(t,3))},Bn.sortedIndex=function(e,t){return Hr(e,t)},Bn.sortedIndexBy=function(e,t,n){return Kr(e,t,Jo(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Hr(e,t);if(r<n&&Ta(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return Hr(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return Kr(e,t,Jo(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Hr(e,t,!0)-1;if(Ta(e[n],t))return n}return-1},Bn.startCase=Dc,Bn.startsWith=function(e,t,n){return e=lc(e),n=null==n?0:Zn(oc(n),0,e.length),t=Jr(t),e.slice(n,n+t.length)==t},Bn.subtract=ml,Bn.sum=function(e){return e&&e.length?It(e,Yc):0},Bn.sumBy=function(e,t){return e&&e.length?It(e,Jo(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&si(e,t,n)&&(t=void 0),e=lc(e),t=fc({},t,r,Vo);var o,i,a=fc({},t.imports,r.imports,Vo),c=_c(a),l=jt(a,c),s=0,u=t.interpolate||ue,f="__p += '",p=he((t.escape||ue).source+"|"+u.source+"|"+(u===V?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),d="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ze+"]")+"\n";e.replace(p,(function(t,n,r,a,c,l){return r||(r=a),f+=e.slice(s,l).replace(fe,zt),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),c&&(i=!0,f+="';\n"+c+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=l+t.length,t})),f+="';\n";var m=xe.call(t,"variable")&&t.variable;if(m){if(ee.test(m))throw new K("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(C,""):f).replace(O,"$1").replace(N,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var h=Vc((function(){return pe(c,d+"return "+f).apply(void 0,l)}));if(h.source=f,Wa(h))throw h;return h},Bn.times=function(e,t){if((e=oc(e))<1||e>9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var o=Bt(r,t=Jo(t));++n<e;)t(n);return o},Bn.toFinite=rc,Bn.toInteger=oc,Bn.toLength=ic,Bn.toLower=function(e){return lc(e).toLowerCase()},Bn.toNumber=ac,Bn.toSafeInteger=function(e){return e?Zn(oc(e),-9007199254740991,9007199254740991):0===e?e:0},Bn.toString=lc,Bn.toUpper=function(e){return lc(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=lc(e))&&(n||void 0===t))return Tt(e);if(!e||!(t=Jr(t)))return e;var r=Yt(e),o=Yt(t);return uo(r,Ot(r,o),Nt(r,o)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=lc(e))&&(n||void 0===t))return e.slice(0,Ht(e)+1);if(!e||!(t=Jr(t)))return e;var r=Yt(e);return uo(r,0,Nt(r,Yt(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=lc(e))&&(n||void 0===t))return e.replace(H,"");if(!e||!(t=Jr(t)))return e;var r=Yt(e);return uo(r,Ot(r,Yt(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if($a(t)){var o="separator"in t?t.separator:o;n="length"in t?oc(t.length):n,r="omission"in t?Jr(t.omission):r}var i=(e=lc(e)).length;if(Wt(e)){var a=Yt(e);i=a.length}if(n>=i)return e;var c=n-Gt(r);if(c<1)return r;var l=a?uo(a,0,c).join(""):e.slice(0,c);if(void 0===o)return l+r;if(a&&(c+=l.length-c),Ka(o)){if(e.slice(c).search(o)){var s,u=l;for(o.global||(o=he(o.source,lc(re.exec(o))+"g")),o.lastIndex=0;s=o.exec(u);)var f=s.index;l=l.slice(0,void 0===f?c:f)}}else if(e.indexOf(Jr(o),c)!=c){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},Bn.unescape=function(e){return(e=lc(e))&&D.test(e)?e.replace(F,Kt):e},Bn.uniqueId=function(e){var t=++Ee;return lc(e)+t},Bn.upperCase=zc,Bn.upperFirst=Wc,Bn.each=la,Bn.eachRight=sa,Bn.first=Fi,Xc(Bn,(fl={},sr(Bn,(function(e,t){xe.call(Bn.prototype,t)||(fl[t]=e)})),fl),{chain:!1}),Bn.VERSION="4.17.21",ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),ct(["drop","take"],(function(e,t){Cn.prototype[e]=function(n){n=void 0===n?1:cn(oc(n),0);var r=this.__filtered__&&!t?new Cn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Cn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Cn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Jo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Cn.prototype[e]=function(){return this[n](1).value()[0]}})),ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Cn.prototype[e]=function(){return this.__filtered__?new Cn(this):this[n](1)}})),Cn.prototype.compact=function(){return this.filter(Yc)},Cn.prototype.find=function(e){return this.filter(e).head()},Cn.prototype.findLast=function(e){return this.reverse().find(e)},Cn.prototype.invokeMap=zr((function(e,t){return"function"==typeof e?new Cn(this):this.map((function(n){return yr(n,e,t)}))})),Cn.prototype.reject=function(e){return this.filter(Sa(Jo(e)))},Cn.prototype.slice=function(e,t){e=oc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Cn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=oc(t))<0?n.dropRight(-t):n.take(t-e)),n)},Cn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Cn.prototype.toArray=function(){return this.take(4294967295)},sr(Cn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Bn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Bn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Cn,l=a[0],s=c||Oa(t),u=function(e){var t=o.apply(Bn,mt([e],a));return r&&f?t[0]:t};s&&n&&"function"==typeof l&&1!=l.length&&(c=s=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,m=c&&!p;if(!i&&s){t=m?t:new Cn(this);var h=e.apply(t,a);return h.__actions__.push({func:ra,args:[u],thisArg:void 0}),new jn(h,f)}return d&&m?e.apply(this,a):(h=this.thru(u),d?r?h.value()[0]:h.value():h)})})),ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Oa(o)?o:[],e)}return this[n]((function(n){return t.apply(Oa(n)?n:[],e)}))}})),sr(Cn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";xe.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[To(void 0,2).name]=[{name:"wrapper",func:void 0}],Cn.prototype.clone=function(){var e=new Cn(this.__wrapped__);return e.__actions__=yo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yo(this.__views__),e},Cn.prototype.reverse=function(){if(this.__filtered__){var e=new Cn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Cn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Oa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=ln(t,e+a);break;case"takeRight":e=cn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,c=i.end,l=c-a,s=r?c:a-1,u=this.__iteratees__,f=u.length,p=0,d=ln(l,this.__takeCount__);if(!n||!r&&o==l&&d==l)return ro(e,this.__actions__);var m=[];e:for(;l--&&p<d;){for(var h=-1,v=e[s+=t];++h<f;){var g=u[h],b=g.iteratee,y=g.type,w=b(v);if(2==y)v=w;else if(!w){if(1==y)continue e;break e}}m[p++]=v}return m},Bn.prototype.at=oa,Bn.prototype.chain=function(){return na(this)},Bn.prototype.commit=function(){return new jn(this.value(),this.__chain__)},Bn.prototype.next=function(){void 0===this.__values__&&(this.__values__=nc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof An;){var r=Bi(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Cn){var t=e;return this.__actions__.length&&(t=new Cn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[$i],thisArg:void 0}),new jn(t,this.__chain__)}return this.thru($i)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Xe&&(Bn.prototype[Xe]=function(){return this}),Bn}();Ye._=Zt,void 0===(o=function(){return Zt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(7),n(8)(e))},function(e,t,n){var r;!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 i(e){return c(s(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}function c(e,t){var n,r,a,c,l,s,u,f,p,d=1,m=e.length,h="";for(r=0;r<m;r++)if("string"==typeof e[r])h+=e[r];else if("object"==typeof e[r]){if((c=e[r]).keys)for(n=t[d],a=0;a<c.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',c.keys[a],c.keys[a-1]));n=n[c.keys[a]]}else n=c.param_no?t[c.param_no]:t[d++];if(o.not_type.test(c.type)&&o.not_primitive.test(c.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(c.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(c.type)&&(f=n>=0),c.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,c.width?parseInt(c.width):0);break;case"e":n=c.precision?parseFloat(n).toExponential(c.precision):parseFloat(n).toExponential();break;case"f":n=c.precision?parseFloat(n).toFixed(c.precision):parseFloat(n);break;case"g":n=c.precision?String(Number(n.toPrecision(c.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=c.precision?n.substring(0,c.precision):n;break;case"t":n=String(!!n),n=c.precision?n.substring(0,c.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=c.precision?n.substring(0,c.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=c.precision?n.substring(0,c.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(c.type)?h+=n:(!o.number.test(c.type)||f&&!c.sign?p="":(p=f?"+":"-",n=n.toString().replace(o.sign,"")),s=c.pad_char?"0"===c.pad_char?"0":c.pad_char.charAt(1):" ",u=c.width-(p+n).length,l=c.width&&u>0?s.repeat(u):"",h+=c.align?p+n+l:"0"===s?p+l+n:l+p+n)}return h}var l=Object.create(null);function s(e){if(l[e])return l[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],c=t[2],s=[];if(null===(s=o.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(s[1]);""!==(c=c.substring(s[0].length));)if(null!==(s=o.key_access.exec(c)))a.push(s[1]);else{if(null===(s=o.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(s[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return l[e]=r}t.sprintf=i,t.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(r=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,a,c=n,l=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(a=0;a<l;a++)if(c.args[a]!==arguments[a]){c=c.next;continue e}return c!==n&&(c===r&&(r=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n,c.prev=null,n.prev=c,n=c),c.val}c=c.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return c={args:i,val:e.apply(null,i)},n?(n.prev=c,c.next=n):r=c,o===t.maxSize?(r=r.prev).next=null:o++,n=c,c.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}},function(e,t,n){var r=n(1),o=n(6);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,'*,: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:22px;width:22px;margin-left:-2px}.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{margin:0 3% 3.6% 0;border:none;position:relative;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;overflow:hidden;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:normal;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, #ffffff1c, rgba(255, 255, 255, 0.2), #ffffff2b);-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;overflow-y:auto;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}',""]),t.default=o},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(1),o=n(10);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,'.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:transparent;border-right-color:transparent;border-top:none;margin-left:0px}',""]),t.default=o},function(e,t,n){var r=n(1),o=n(12);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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:0px;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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(14);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".logo-wrap{align-self:center;margin-left:18px;width:250px}.logo-wrap .logo{display:flex;align-items:center;cursor:pointer}.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:bold}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(16);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(18);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,'.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;width:108px;padding:18px 0;display:inline-block;text-align:center;font-weight:600;color:#444;font-size:13px;border-bottom:3px solid transparent;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}',""]),t.default=o},function(e,t,n){var r=n(1),o=n(20);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}.header .search-form .button{border:none;padding:0px 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:transparent;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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(22);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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 0px 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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(24);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".no-search-result{padding:7em 0;text-align:center;color:#6d7882;flex:1;right:0;top:0em !important}.no-search-result h3{margin-bottom:1.2em;font-size:1.3rem;font-weight:normal;color:#666;margin-top:0}.no-search-result p{font-size:13px;margin:0}.no-search-result-description a{text-decoration:none}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(26);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(28);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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%}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(30);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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 0px 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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(32);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(34);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(36);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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%}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(38);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".ast-block-templates-full-preview{text-align:center}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(40);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(42);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(44);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,"",""]),t.default=o},function(e,t,n){var r=n(1),o=n(46);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,'.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:transparent;border-right-color:transparent;border-bottom:none;margin-left:0px}.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}',""]),t.default=o},function(e,t,n){var r=n(1),o=n(48);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,"",""]),t.default=o},function(e,t,n){"use strict";n.r(t);n(5);var r=n(2),o=n.n(r),i=function(e,t,n,o){var i=AstBlockTemplatesVars.allBlocks,a=[];e&&(a=i.filter((function(t){return t.title.toLowerCase().includes(e.toLowerCase())})));var c=[];return n&&(c=i.filter((function(e){var t=Object.values(e.tag);if(t.length){for(var r in t)if(t[r].toLowerCase().includes(n.toLowerCase()))return!0;return!1}return!0}))),(e||n)&&(i=Object(r.unionBy)(a,c,"ID")),t&&(i=i.filter((function(e){return parseInt(t)===parseInt(e.category)}))),o&&(i=i.filter((function(e){return o===e.filter}))),i},a=function(e){var t=[];for(var n in AstBlockTemplatesVars.allSites){var o=AstBlockTemplatesVars.allSites[n],i=o.pages||{};if(Object.values(i).length)for(var a in i)i[a]["site-ID"]=o.ID,i[a]["site-title"]=o.title,t.push(i[a])}var c=[];e&&(c=t.filter((function(t){return t.title.toLowerCase().includes(e.toLowerCase())})));var l=[];e&&(l=t.filter((function(t){return t["site-title"].toLowerCase().includes(e.toLowerCase())})));var s=[];return e&&(s=t.filter((function(t){if("tag"in t){var n=Object.values(t.tag)||[];if(n.length)for(var r in n)if(n[r].toLowerCase().includes(e.toLowerCase()))return!0;return!1}return!0}))),e&&(t=Object(r.unionBy)(c,s,l,"ID")),t};function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={togglePopup:!1,allBlocks:AstBlockTemplatesVars.allBlocks,allSites:AstBlockTemplatesVars.allSites,allPages:[],currentScreen:"all-sites-grid",previousScreen:"",filterBlocksByCategory:"",filterBlocksByColor:"dark",filterBlocksBySearchTerm:"",filterPagesByPageType:"",filterPagesBySearchTerm:"",pagePreview:{},sitePreview:{},fullWidthPagePreview:{},fullWidthBlockPreview:{},notice:{},importItemInfo:{},displayDynamicPopup:!1},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;if("SET_DISPLAY_DYNAMIC_POPUP"===t.type)return l(l({},e),{},{displayDynamicPopup:t.displayDynamicPopup});if("SET_STATE"===t.type)return l(l({},e),t.state);if("FULL_WIDTH_PAGE_PREVIEW"===t.type)return l(l({},e),{},{fullWidthPagePreview:t.fullWidthPagePreview});if("FULL_WIDTH_BLOCK_PREVIEW"===t.type)return l(l({},e),{},{fullWidthBlockPreview:t.fullWidthBlockPreview});if("SET_IMPORT_ITEM_INFO"===t.type)return l(l({},e),{},{importItemInfo:t.importItemInfo});if("SET_NOTICE"===t.type)return l(l({},e),{},{notice:t.notice});if("SET_SEARCH_PAGE_PREVIEW"===t.type){var n=[],r=t.item["site-ID"]||"";return r&&(n=e.allSites.filter((function(e){return r===e.ID})))&&(n=n[0]),l(l({},e),{},{sitePreview:n,pagePreview:t.item})}if("SET_CURRENT_SCREEN"===t.type){var o="all-sites-grid"===t.currentScreen||"all-blocks-grid"===t.currentScree?"":e.currentScreen;return l(l({},e),{},{currentScreen:t.currentScreen,previousScreen:o})}return"SET_PREVIOUS_SCREEN"===t.type?l(l({},e),{},{previousScreen:t.previousScreen}):"TOGGLE_POPUP"===t.type?l(l({},u),{},{togglePopup:!e.togglePopup}):"SET_SITE_PREVIEW"===t.type?l(l({},e),{},{sitePreview:t.sitePreview}):"SET_PAGE_PREVIEW"===t.type?l(l({},e),{},{pagePreview:t.pagePreview}):"SET_FULL_PREVIEW"===t.type?l(l({},e),{},{fullWidthPreview:t.fullWidthPreview}):"SET_FILTER_BLOCKS_BY_CATEGORY"===t.type?l(l({},e),{},{allBlocks:i("",t.filterBlocksByCategory,"",e.filterBlocksByColor),filterBlocksBySearchTerm:"",filterBlocksByCategory:t.filterBlocksByCategory}):"SET_FILTER_BLOCKS_BY_COLOR"===t.type?l(l({},e),{},{allBlocks:i("",e.filterBlocksByCategory,"",t.filterBlocksByColor),filterBlocksBySearchTerm:"",filterBlocksByColor:t.filterBlocksByColor}):"SET_FILTER_BLOCKS_BY_SEARCH_TERM"===t.type?l(l({},e),{},{allBlocks:i(t.filterBlocksBySearchTerm,"",t.filterBlocksBySearchTerm,""),filterBlocksByColor:"",filterBlocksByCategory:"",filterBlocksBySearchTerm:t.filterBlocksBySearchTerm}):"SET_FILTER_PAGES_BY_SEARCH_TERM"===t.type?t.filterPagesBySearchTerm.length?l(l({},e),{},{allPages:a(t.filterPagesBySearchTerm),filterPagesBySearchTerm:t.filterPagesBySearchTerm}):l(l({},e),{},{allPages:[],filterPagesBySearchTerm:t.filterPagesBySearchTerm}):"SET_ALL_PAGES"===t.type?l(l({},e),{},{allPages:t.allPages}):e};function p(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m={getTogglePopup:function(e){return e.togglePopup},getAllBlocks:function(e){return e.allBlocks},getAllSites:function(e){return e.allSites},getCount:function(e){return e.count},getCurrentScreen:function(e){return e.currentScreen},getPreviousScreen:function(e){return e.previousScreen},getSearchTerm:function(e){return e.searchTerm},getSitePreview:function(e){return e.sitePreview},getNotice:function(e){return e.notice},getImportItemInfo:function(e){return e.importItemInfo},getPagePreview:function(e){return e.pagePreview},getFullWidthPreview:function(e){return e.fullWidthPreview},getFilterBlocksByCategory:function(e){return e.filterBlocksByCategory},getFilterBlocksByColor:function(e){return e.filterBlocksByColor},getFilterBlocksBySearchTerm:function(e){return e.filterBlocksBySearchTerm},getFilterPagesByPageType:function(e){return e.filterPagesByPageType},getFilterPagesBySearchTerm:function(e){return e.filterPagesBySearchTerm},getFullWidthPagePreview:function(e){return e.fullWidthPagePreview},getFullWidthBlockPreview:function(e){return e.fullWidthBlockPreview},getAllPages:function(e){return e.allPages},getBlockSearchInput:function(e){return e.blockSearchInput},getDisplayDynamicPopup:function(e){return e.displayDynamicPopup}},h={setTogglePopup:function(){return{type:"TOGGLE_POPUP"}},setFullWidthPagePreview:function(e){return{type:"FULL_WIDTH_PAGE_PREVIEW",fullWidthPagePreview:e}},setFullWidthBlockPreview:function(e){return{type:"FULL_WIDTH_BLOCK_PREVIEW",fullWidthBlockPreview:e}},setCurrentScreen:function(e){return{type:"SET_CURRENT_SCREEN",currentScreen:e}},setPreviousScreen:function(e){return{type:"SET_PREVIOUS_SCREEN",previousScreen:e}},setSitePreview:function(e){return{type:"SET_SITE_PREVIEW",sitePreview:e}},setSearchPagePreview:function(e){return{type:"SET_SEARCH_PAGE_PREVIEW",item:e}},setNotice:function(e){return{type:"SET_NOTICE",notice:e}},setPagePreview:function(e){return{type:"SET_PAGE_PREVIEW",pagePreview:e}},setFullWidthPreview:function(e){return{type:"SET_FULL_PREVIEW",fullWidthPreview:e}},setSearchTerm:function(e){return{type:"SEARCH_TERM",searchTerm:e}},setFilterBlocksByCategory:function(e){return{type:"SET_FILTER_BLOCKS_BY_CATEGORY",filterBlocksByCategory:e}},setFilterBlocksByColor:function(e){return{type:"SET_FILTER_BLOCKS_BY_COLOR",filterBlocksByColor:e}},setImportItemInfo:function(e){return{type:"SET_IMPORT_ITEM_INFO",importItemInfo:e}},setFilterBlocksBySearchTerm:function(e){return{type:"SET_FILTER_BLOCKS_BY_SEARCH_TERM",filterBlocksBySearchTerm:e}},setFilterPagesByPageType:function(e){return{type:"SET_FILTER_PAGES_BY_PAGE_TYPE",filterPagesByPageType:e}},setFilterPagesBySearchTerm:function(e){return{type:"SET_FILTER_PAGES_BY_SEARCH_TERM",filterPagesBySearchTerm:e}},setAllPages:function(e){return{type:"SET_ALL_PAGES",allPages:e}},setState:function(e){return{type:"SET_STATE",state:e}},setDisplayDynamicPopup:function(e){return{type:"SET_DISPLAY_DYNAMIC_POPUP",displayDynamicPopup:e}}};(function(e){var t,n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return n.apply(void 0,arguments)}};t=[].map((function(e){return e(o)})),n=r.flowRight.apply(void 0,p(t))(e.dispatch),e.dispatch=n})((0,wp.data.registerStore)("ast-block-templates",{reducer:f,actions:h,selectors:m}));var v,g,b,y,w=n(4),_=n.n(w),k=n(3),x=n.n(k),E=_()(console.error);function S(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return x.a.sprintf.apply(x.a,[e].concat(n))}catch(t){return E("sprintf error: \n\n"+t.toString()),e}}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}v={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},g=["(","?"],b={")":["("],":":["?","?:"]},y=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var R={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function I(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(y);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(b[n]){if(b[n][0]===o){n=b[n][1]||n;break}}else if(g.indexOf(o)>=0||v[o]<v[n]){a.push(o);break}i.push(o)}b[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,c,l=[];for(n=0;n<e.length;n++){if(a=e[n],i=R[a]){for(r=i.length,o=Array(r);r--;)o[r]=l.pop();try{c=i.apply(null,o)}catch(e){return e}}else c=t.hasOwnProperty(a)?t[a]:+a;l.push(c)}return l[0]}(t,e)}}var B={contextDelimiter:"",onMissingKey:null};function T(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},B)this.options[n]=void 0!==t&&n in t?t[n]:B[n]}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}T.prototype.getPluralForm=function(e,t){var n,r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=I(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},T.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,c;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[i]?c[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var C={"":{plural_forms:function(e){return 1===e?0:1}}},O=/^i18n\.(n?gettext|has_translation)(_|$)/;var N=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var F=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var L=function(e,t){return function(n,r,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if(F(n)&&N(r))if("function"==typeof o)if("number"==typeof i){var c={callback:o,priority:i,namespace:r};if(a[n]){var l,s=a[n].handlers;for(l=s.length;l>0&&!(i>=s[l-1].priority);l--);l===s.length?s[l]=c:s.splice(l,0,c),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++}))}else a[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,i)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,o){var i=e[t];if(F(r)&&(n||N(o))){if(!i[r])return 0;var a=0;if(n)a=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else for(var c=i[r].handlers,l=function(e){c[e].namespace===o&&(c.splice(e,1),a++,i.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},s=c.length-1;s>=0;s--)l(s);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),a}}};var z=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,c=new Array(a>1?a-1:0),l=1;l<a;l++)c[l-1]=arguments[l];if(!i||!i.length)return n?c[0]:void 0;var s={name:r,currentIndex:0};for(o.__current.push(s);s.currentIndex<i.length;){var u=i[s.currentIndex],f=u.callback.apply(null,c);n&&(c[0]=f),s.currentIndex++}return o.__current.pop(),n?c[0]:void 0}};var M=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}};var V=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};var U=function(e,t){return function(n){var r=e[t];if(F(n))return r[n]&&r[n].runs?r[n].runs:0}},$=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=L(this,"actions"),this.addFilter=L(this,"filters"),this.removeAction=D(this,"actions"),this.removeFilter=D(this,"filters"),this.hasAction=z(this,"actions"),this.hasFilter=z(this,"filters"),this.removeAllActions=D(this,"actions",!0),this.removeAllFilters=D(this,"filters",!0),this.doAction=W(this,"actions"),this.applyFilters=W(this,"filters",!0),this.currentAction=M(this,"actions"),this.currentFilter=M(this,"filters"),this.doingAction=V(this,"actions"),this.doingFilter=V(this,"filters"),this.didAction=U(this,"actions"),this.didFilter=U(this,"filters")};var q=function(){return new $}(),G=(q.addAction,q.addFilter,q.removeAction,q.removeFilter,q.hasAction,q.hasFilter,q.removeAllActions,q.removeAllFilters,q.doAction,q.applyFilters,q.currentAction,q.currentFilter,q.doingAction,q.doingFilter,q.didAction,q.didFilter,q.actions,q.filters,function(e,t,n){var r=new T({}),o=new Set,i=function(){o.forEach((function(e){return e()}))},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=j(j(j({},C),r.data[t]),e),r.data[t][""]=j(j({},C[""]),r.data[t][""])},c=function(e,t){a(e,t),i()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,o,i)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return e},u=function(e,t,r){var o=l(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+s(r),o,e,t,r)):o};if(e&&c(e,t),n){var f=function(e){O.test(e)&&i()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:c,resetLocaleData:function(e,t){r.data={},r.pluralForms={},c(e,t)},subscribe:function(e){return o.add(e),function(){return o.delete(e)}},__:function(e,t){var r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+s(t),r,e,t)):r},_x:u,_n:function(e,t,r,o){var i=l(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+s(o),i,e,t,r,o)):i},_nx:function(e,t,r,o,i){var a=l(i,o,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+s(i),a,e,t,r,o,i)):a},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,o){var i,a,c=t?t+""+e:e,l=!(null===(i=r.data)||void 0===i||null===(a=i[null!=o?o:"default"])||void 0===a||!a[c]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,o),l=n.applyFilters("i18n.has_translation_"+s(o),l,e,t,o)),l}}}(void 0,void 0,q)),Y=(G.getLocaleData.bind(G),G.setLocaleData.bind(G),G.resetLocaleData.bind(G),G.subscribe.bind(G),G.__.bind(G)),H=(G._x.bind(G),G._n.bind(G),G._nx.bind(G),G.isRTL.bind(G),G.hasTranslation.bind(G),wp.element),K=H.createPortal,Z=H.memo,X=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(e){return{onSetTogglePopup:e("ast-block-templates").setTogglePopup}})))(Z((function(e){var t=e.onSetTogglePopup;return K(React.createElement("button",{onClick:t,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"))}))),J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#9E9E9E";e&&console.log("%c ".concat(e," "),"color: ".concat(n,"; font-weight: lighter;"),t)},Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return J(e,t,"#F20404")},ee=(n(9),function(e){var t=e.message;return React.createElement("div",{className:"ast-block-templates-tooltip"},t)});n(11);function te(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function ne(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){te(i,r,o,a,c,"next",e)}function c(e){te(i,r,o,a,c,"throw",e)}a(void 0)}))}}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ie=wp.compose.compose,ae=wp.data,ce=ae.withSelect,le=ae.withDispatch,se=wp.element,ue=se.useState,fe=se.memo,pe=wp.ajax.post,de=ie(le((function(e){return{setNotice:e("ast-block-templates").setNotice}})),ce((function(e){return{notice:(0,e("ast-block-templates").getNotice)()}})))(fe((function(e){var t=e.setNotice,n=re(ue({isProcessing:"",buttonText:"Sync Library"}),2),r=n[0],o=n[1],i=r.isProcessing,a=r.buttonText,c=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-update-sync-library-status",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){t({type:"success",message:"Template library refreshed!"}),o({isProcessing:"complete",buttonText:"Sync Complete"})}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(){var e=ne(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-import-sites",page_no:t,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){e.status?(o({isProcessing:"process",buttonText:"Imported ".concat(t," of ").concat(n," site..")}),t===n&&c()):o({isProcessing:"error",buttonText:"Error ".concat(e.data)})}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),s=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-get-sites-request-count",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){if(e.status){o({isProcessing:"process",buttonText:"Importing Sites.."});for(var t=e.data,n=1;n<=t;n++)l(n,t)}else o({isProcessing:"complete",buttonText:"Importing Sites Failed"})})).fail((function(e){Q("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=ne(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-import-blocks",page_no:t,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){e.status?(o({isProcessing:"process",buttonText:"Imported ".concat(t," of ").concat(n," block..")}),t===n&&s()):o({isProcessing:"error",buttonText:"Error ".concat(e.data)})}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-get-blocks-request-count",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){if(e.status)for(var t=e.data,n=1;n<=t;n++)u(n,t);else o({isProcessing:"complete",buttonText:"Importing Pages Failed"})})).fail((function(e){Q("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-import-categories",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){f()})).fail((function(e){Q("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,pe({action:"ast-block-templates-check-sync-library-status",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){e.status?"updated"===e.data?(o({isProcessing:"complete",buttonText:"Library is up-to date!"}),t({type:"success",message:"Template library refreshed!"})):p():(t({type:"error",message:"Error! ".concat(e.message)}),o({isProcessing:"complete",buttonText:"Error! ".concat(e.message)}))})).fail((function(e){Q("fail",e)}));case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),Q("Complete: Failed",e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}();return React.createElement("span",{className:"ast-block-templates-sync ".concat("process"===i?"ast-block-templates-sync--processing":""),onClick:function(e){e.preventDefault(),t({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.."}),d()}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-refresh"}),React.createElement("span",{className:"ast-block-templates-sync__title"},a),React.createElement(ee,{message:"Sync Library"}))}))),me=(n(13),wp.compose.compose),he=wp.data.withDispatch,ve=wp.element.memo,ge=me(he((function(e){return{setCurrentScreen:e("ast-block-templates").setCurrentScreen}})))(ve((function(e){var t=e.setCurrentScreen;return React.createElement("div",{className:"logo-wrap ".concat(""!==AstBlockTemplatesVars.white_label_name?"white-label":"")},React.createElement("div",{className:"logo",onClick:function(){return t("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))))}))),be=wp.compose.compose,ye=wp.data,we=ye.withSelect,_e=ye.withDispatch,ke=wp.element.memo,xe=be(we((function(e){var t=e("ast-block-templates"),n=t.getSitePreview,r=t.getCurrentScreen;return{preview:n(),currentScreen:r()}})),_e((function(e){var t=e("ast-block-templates"),n=t.setAllPages,r=t.setSitePreview,o=t.setTogglePopup,i=t.setCurrentScreen,a=t.setFilterPagesBySearchTerm,c=t.setFilterBlocksBySearchTerm;return{updateCurrentScreen:function(e){n([]),r({}),a(""),c(""),i(e)},onSetSitePreview:r,onSetTogglePopup:o}})))(ke((function(e){var t=e.currentScreen,n=e.updateCurrentScreen;return React.createElement("div",{className:"header-menu"},React.createElement("div",{className:"header-menu-item ".concat("all-sites-grid"===t||"all-single-site-pages"===t||"full-width-page-preview"===t||"all-single-pages"===t?"active":""),onClick:function(){return n("all-sites-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-file"}),Y("Pages")),React.createElement("div",{className:"header-menu-item ".concat("all-blocks-grid"===t||"full-width-block-preview"===t?"active":""),onClick:function(){return n("all-blocks-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-layers"}),Y("Patterns")))}))),Ee=wp.compose.compose,Se=wp.data,Pe=Se.withSelect,Re=Se.withDispatch,Ie=wp.element.memo,Be=Ee(Pe((function(e){var t=e("ast-block-templates"),n=t.getSitePreview,r=t.getCurrentScreen;return{sitePreview:n(),currentScreen:r()}})),Re((function(e){var t=e("ast-block-templates"),n=t.setSitePreview,r=t.setTogglePopup;t.setCurrentScreen;return{setSitePreview:n,onSetTogglePopup:r}})))(Ie((function(e){var t=e.onSetTogglePopup;return React.createElement("div",{className:"close",onClick:function(e){t(),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"}))}))),Te=(n(15),wp.compose.compose),Ae=wp.data,je=Ae.withSelect,Ce=Ae.withDispatch,Oe=wp.element.memo,Ne=Te(je((function(e){var t=e("ast-block-templates"),n=t.getCurrentScreen,r=t.getPreviousScreen;return{currentScreen:n(),previousScreen:r()}})),Ce((function(e){return{setCurrentScreen:e("ast-block-templates").setCurrentScreen}})))(Oe((function(e){var t=e.currentScreen,n=e.previousScreen,r=e.setCurrentScreen,o="full-width-block-preview"===t||"full-width-page-preview"===t||"all-single-site-pages"===t?"show":"",i="full-width-block-preview"===t?"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(){r("full-width-page-preview"===t||"full-width-block-preview"===t?"all-single-site-pages"===n?"all-single-site-pages":"all-blocks-grid":"all-sites-grid")}},React.createElement(ee,{message:i}),React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-chevron-left"}),React.createElement("span",{className:"ast-block-templates-back-heading"}," Back ")))})));n(17),n(19);function Fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var De=wp.element,ze=De.memo,We=De.useState,Me=De.useEffect,Ve=ze((function(e){var t=e.onSearch,n=e.value,r=e.searchInputRef,o=e.placeholder,i=Fe(We(""),2),a=i[0],c=i[1],l=o||Y("Search..","ast-block-templates");return Me((function(){c(n)})),React.createElement("div",{className:"search-form ".concat(a?"have-input":"")},React.createElement("input",{ref:r,type:"search",name:"search",value:n,placeholder:l,onChange:function(e){t(e)}}),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)"}))))))})),Ue=wp.element.memo,$e=wp.compose.compose,qe=wp.data,Ge=qe.withSelect,Ye=qe.withDispatch,He=$e(Ge((function(e){var t=e("ast-block-templates"),n=t.getCurrentScreen,r=t.getFilterPagesBySearchTerm,o=t.getFilterBlocksBySearchTerm;return{currentScreen:n(),filterPagesBySearchTerm:r(),filterBlocksBySearchTerm:o()}})),Ye((function(e){var t=e("ast-block-templates"),n=t.setFilterBlocksBySearchTerm,r=t.setFilterPagesBySearchTerm,o=t.setCurrentScreen,i=t.setPagePreview,a=t.setSitePreview,c=t.setFullWidthBlockPreview;return{setFilterBlocksBySearchTerm:function(e){o("all-blocks-grid"),c({}),n(e)},insertBlocks:e("core/block-editor").insertBlocks,setFilterPagesBySearchTerm:function(e){o("all-sites-grid"),r(e),i({}),a({})}}})))(Ue((function(e){var t=e.currentScreen,n=e.filterPagesBySearchTerm,r=e.filterBlocksBySearchTerm,o=e.setFilterBlocksBySearchTerm,i=e.setFilterPagesBySearchTerm;return React.createElement("div",{className:"header"},"all-single-site-pages"===t?React.createElement(Ne,null):React.createElement(ge,null),React.createElement(xe,null),"all-sites-grid"===t||"all-single-site-pages"===t||"full-width-page-preview"===t||"all-single-pages"===t?React.createElement(Ve,{placeholder:"Search Templates..",value:n,onSearch:function(e){i(e.target.value)}}):React.createElement(Ve,{placeholder:"Search Patterns..",value:r,onSearch:function(e){o(e.target.value)}}),React.createElement(de,null),React.createElement(Be,null))}))),Ke=wp.ajax.post,Ze=wp.blocks.parse;var Xe=function(e,t,n,r,o){Ke({action:"ast_block_templates_importer",api_uri:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){!function(e,t,n,r,o){Ke({action:"ast_block_templates_import_block",content:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){r(Ze(e),t,n),o(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open")})).fail((function(e){}))}(e,r,o,t,n)})).fail((function(e){Q("fail",e)}))},Je=function(e){return new Promise((function(t,n){var r=new window.FormData;r.append("action","ast_block_templates_activate_plugin"),r.append("init",e.init),r.append("security",AstBlockTemplatesVars._ajax_nonce),wp.apiFetch({url:AstBlockTemplatesVars.ajax_url,method:"POST",body:r}).then((function(e){e.success?t(e):n(e)}))}))},Qe=function(e){return new Promise((function(t,n){wp.updates.queue.push({action:"install-plugin",data:{slug:e.slug,init:e.init,name:e.name,success:function(n){t(n,e)},error:function(t){n(t,e)}}}),wp.updates.queueChecker()}))};function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var nt={stdClass:function(){},stringify:function(e){var t=new Map([[1/0,"d:INF;"],[-1/0,"d:-INF;"],[NaN,"d:NAN;"],[null,"N;"],[void 0,"N;"]]),n=function(e){return e?encodeURI(e).match(/(%.)?./g).length:0},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"".concat(n(e),":").concat(t[0]).concat(e).concat(t[t.length-1])},o=0;return function e(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.has(n))return t.get(n);if(o+=i,"string"==typeof n)return"s:".concat(r(n),";");if("number"==typeof n)return"".concat(Math.round(n)===n?"i":"d",":").concat((""+n).toUpperCase().replace(/(-?\d)E/,"$1.0E"),";");if("boolean"==typeof n)return"b:".concat(+n,";");var a=Array.isArray(n)||n.constructor===Object;if(t.set(n,"".concat("rR"[+a],":").concat(o,";")),"function"==typeof n.serialize)return"C:".concat(r(n.constructor.name),":").concat(r(n.serialize(),"{}"));var c=Object.entries(n).filter((function(e){var t=tt(e,2);t[0];return"function"!=typeof t[1]}));return(a?"a":"O:".concat(r(n.constructor.name)))+":".concat(c.length,":{").concat(c.map((function(t){var n=tt(t,2),r=n[0],o=n[1];return e(a&&/^\d{1,16}$/.test(r)?+r:r,!1)+e(o)})).join(""),"}")}(e)},parse:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.stdClass=nt.stdClass;var n=0,r=[null],o={INF:1/0,"-INF":-1/0,NAN:NaN},i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;throw new Error("Error at ".concat(r,": ").concat(t,"\n").concat(e,"\n").concat(" ".repeat(r),"^"))},a=function(t,r){return t===e.slice(n,n+=t.length)?r:i("Expected '".concat(t,"'"),n-t.length)};function c(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:";";a(":");var c=t.exec(e.slice(n));return c||i("Exected ".concat(r,", but got '").concat(e.slice(n).match(/^[:;{}]|[^:;{}]*/)[0],"'")),n+=c[0].length,a(o,c[0])}function l(t){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=n;t>0;){var c=e.charCodeAt(n++);t-=c<128?1:c<2048||c>>11==27?2:3}return t?i("Invalid string length",o-2):a(r,e.slice(o,n))}var s=function(e){return e?t[e]?Object.create(t[e].prototype):new(et({},e,(function(){}))[e]):{}},u=function(){return c(/^[01]/,"a '0' or '1'",";")},f=function(){return+c(/^-?\d+/,"an integer",";")},p=function(e){return+c(/^\d+/,"an unsigned integer",e)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return l(p(':"'),'"'+e)};function m(){var e=c(/^-?(\d+(\.\d+)?(E[+-]\d+)?|INF)|NAN/,"a decimal number",";");return e in o?o[e]:+e}function h(){var t=e[n++];return"s"===t?d(";"):"i"===t?p(";"):i("Expected 's' or 'i' as type for a key, but got ${str[offset-1]}",n-1)}function v(e){for(var t=0,n=p(":{");t<n;t++)e[h()]=y();return a("}",e)}function g(){var e=v({});return Object.keys(e).some((function(e,t){return e!=t}))?e:Object.values(e)}function b(e){return"function"!=typeof e.unserialize&&i("Instance of ".concat(e.constructor.name,' does not have an "unserialize" method')),e.unserialize(l(p(":{"))),a("}",e)}function y(){var t=e[n++].toLowerCase(),o=r.push(null)-1,c="n"===t?a(";",null):"s"===t?d(";"):"b"===t?u():"i"===t?f():"d"===t?m():"a"===t?g():"o"===t?v(s(d())):"c"===t?b(s(d())):"r"===t?r[f()]:i("Unexpected type ".concat(t),n-1);return"r"!==t&&(r[o]=c),c}var w=y();return n!==e.length&&i("Unexpected trailing character"),w}},rt=function(e,t){return fetch("https://websitedemos.net/wp-json/wp/v2/".concat(t,"/").concat(e)).then((function(e){return e.json()}))};n(21);function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return it(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return it(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var at=wp.compose.compose,ct=wp.data,lt=ct.useSelect,st=ct.withSelect,ut=ct.withDispatch,ft=wp.ajax.post,pt=wp.blocks.parse,dt=wp.element,mt=dt.useState,ht=dt.memo,vt=(dt.useEffect,dt.useCallback,wp.components.Spinner),gt=at(st((function(e){var t=e("ast-block-templates"),n=t.getImportItemInfo,r=t.getCurrentScreen,o=t.getSitePreview;return{importItemInfo:n(),sitePreview:o(),currentScreen:r()}})),ut((function(e){var t=e("ast-block-templates"),n=t.setImportItemInfo,r=(t.setFullWidthBlockPreview,t.setCurrentScreen,t.setTogglePopup);t.setFullWidthPreview;return{setImportItemInfo:n,onSetTogglePopup:r,insertBlocks:e("core/block-editor").insertBlocks}})))(ht((function(e){var t=e.setImportItemInfo,n=(e.liveRequest,e.requiredPlugins,e.importItemInfo),r=e.title,o=e.btnClass,i=e.currentScreen,a=e.insertBlocks,c=e.onSetTogglePopup,l=e.item,s=e.onClick,u=ot(mt(n),2),f=u[0],p=(u[1],o||""),d=ot(mt(r||"Import"),2),m=d[0],h=d[1],v="full-width-block-preview"===i?"show":"",g=ot(mt(!1),2),b=g[0],y=g[1],w=lt((function(e){var t=e("core/block-editor").getBlockInsertionPoint();return{insertIndex:t.index,insertClientID:t.rootClientId}}),[]),_=w.insertIndex,k=w.insertClientID,x=function(){Je({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){S()})).catch((function(e){y(!1),h("Activation failed!")}))},E=function(){var e=f.original_content;ft({action:"ast_block_templates_import_block",content:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){b=!1,a(pt(e),_,k),c(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open")})).fail((function(e){}))},S=function(){var e=f["post-meta"]["astra-site-wpforms-path"]||"";e?function(e){ft({action:"ast_block_templates_import_wpforms",wpforms_url:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){E()})).fail((function(e){y(!1),h("WPForms import failed!")}))}(e):E()};return React.createElement("div",{className:"ast-template-import-block-button ".concat(v," ").concat(p),onClick:function(e){"function"==typeof s&&s(e),y(!0),rt(l.ID,"astra-blocks").then((function(e){t(e),f=e,(e["post-meta"]["astra-blocks-required-plugins"]?nt.parse(e["post-meta"]["astra-blocks-required-plugins"]):[]).length?"not-installed"===AstBlockTemplatesVars.wpforms_status?Qe({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){x()})).catch((function(e){y(!1),h("Installtion failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?x():S():S()})).catch((function(e){}))}},b?React.createElement(React.Fragment,null,React.createElement(vt,null)," Importing.."):React.createElement(React.Fragment,null,m))}))),bt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=e.replace("&","&")).replace("&","&"),(e=o()(e)).__wrapped__};function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Et=wp.compose.compose,St=wp.data.withDispatch,Pt=wp.element,Rt=Pt.memo,It=Pt.useEffect,Bt=Pt.useState,Tt=(wp.ajax.post,Et(St((function(e){var t=e("ast-block-templates"),n=t.setImportItemInfo,r=t.setFullWidthBlockPreview,o=t.setCurrentScreen;return{setImportItemInfo:n,updateFullWidthBlockPreview:function(e){r(e),o("full-width-block-preview")}}})))(Rt((function(e){e.setImportItemInfo,e.updateFullWidthBlockPreview;var t=e.item,n=e.InitMasonry,r=t["thumbnail-image-url"]||"",o=t["featured-image-url"]||"",i=kt(Bt({importing:!1}),2),a=i[0],c=i[1],l=kt(Bt("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),s=l[0],u=l[1],f=kt(Bt("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),p=f[0],d=f[1];return It((function(){var e=!0,t=new Image;t.src=r;var i=new Image;return i.src=o,t.onload=function(){e&&(u(t.src),n())},i.onload=function(){e&&(d(i.src),n())},function(){e=!1}}),[]),React.createElement("div",{className:"item single-block ".concat(!0===a.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(gt,{btnClass:"button button-primary gt-btn-import",title:"Import",liveRequest:!0,item:t,onClick:function(e){c(wt(wt({},a),{},{importing:!0}))}})))))})))),At=wp.compose.compose,jt=wp.element,Ct=jt.memo,Ot=(jt.useEffect,jt.useState,wp.data),Nt=Ot.withSelect,Ft=Ot.withDispatch,Lt=At(Nt((function(e){var t=e("ast-block-templates"),n=t.getFilterBlocksByCategory,r=t.getFilterBlocksByColor,o=t.getFilterBlocksBySearchTerm;return{filterBlocksByCategory:n(),filterBlocksByColor:r(),filterBlocksBySearchTerm:o()}})),Ft((function(e){return{setFilterBlocksByCategory:e("ast-block-templates").setFilterBlocksByCategory}})))(Ct((function(e){var t=e.filterBlocksByCategory,n=e.setFilterBlocksByCategory,r=e.filterBlocksByColor,o=e.filterBlocksBySearchTerm,i=[],a=0,c=function(e){var t=parseInt(AstBlockTemplatesVars.allBlocks[e].category),n=AstBlockTemplatesVars.allBlocks[e].filter||"";if(!i[t]){var o=AstBlockTemplatesVars.allCategories.filter((function(e){return e.id===t}))[0];o.id=t,o.count=0,i[t]=o}(!r||r&&n==r)&&(i[t].count=parseInt(i[t].count)+1,a+=1)};for(var l in AstBlockTemplatesVars.allBlocks)c(l);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(o||""!==t?"":"active"),onClick:function(e){n("")}},React.createElement("span",{className:"st-block-category-title"},"All"),React.createElement("span",{className:"st-block-category-count"},a)),Object.values(i).map((function(e){return React.createElement("div",{key:e.id,className:"st-block-category ".concat(t===e.id?"active":""),onClick:function(t){n(e.id)}},React.createElement("span",{className:"st-block-category-title"},e.name),React.createElement("span",{className:"st-block-category-count"},e.count))}))))}))),Dt=wp.compose.compose,zt=wp.element.memo,Wt=wp.data,Mt=Wt.withSelect,Vt=Wt.withDispatch,Ut=Dt(Mt((function(e){return{filterBlocksByColor:(0,e("ast-block-templates").getFilterBlocksByColor)()}})),Vt((function(e){return{setFilterBlocksByColor:e("ast-block-templates").setFilterBlocksByColor}})))(zt((function(e){var t=e.filterBlocksByColor,n=e.setFilterBlocksByColor;if(AstBlockTemplatesVars.allBlocks){var r=[];return AstBlockTemplatesVars.allBlocks.map((function(e){e.filter&&!r.includes(e.filter)&&r.push(e.filter)})),r.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(t?"":"active"),onClick:function(e){return n("")}},"All"),r.map((function(e){return React.createElement("div",{key:e,className:"block-color-item ".concat(t===e?"active":""),onClick:function(t){return n(e)}},e)}))))}}))),$t=(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(Ut,null),React.createElement(Lt,null)))})),qt=(n(23),function(e){var t=e.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!"))),t)}),Gt=(n(25),function(e){var t=e.afterClick;return React.createElement("span",null,React.createElement("span",{className:"back-to-templates",onClick:function(e){t&&t(e)}},Y("Back to Templates","ast-block-templates")))}),Yt=(n(27),wp.compose.compose),Ht=wp.data,Kt=Ht.withSelect,Zt=Ht.withDispatch,Xt=wp.element.memo,Jt=Yt(Zt((function(e){return{setNotice:e("ast-block-templates").setNotice}})),Kt((function(e){return{notice:(0,e("ast-block-templates").getNotice)()}})))(Xt((function(e){var t=e.notice,n=e.setNotice;if(Object.keys(t).length){var r=t.type,o=t.message;return React.createElement("div",{className:"ast-block-templates-notice notice notice-".concat(r)},React.createElement("div",{className:"ast-block-templates-notice-message"},o),React.createElement("button",{type:"button",className:"notice-dismiss",onClick:function(){return n({})}},React.createElement("span",{className:"screen-reader-text"},"Dismiss")))}}))),Qt=wp.compose.compose,en=wp.data,tn=en.withSelect,nn=en.withDispatch,rn=wp.element,on=rn.memo,an=rn.useEffect,cn=(rn.useState,Qt(nn((function(e){return{setFilterBlocksBySearchTerm:e("ast-block-templates").setFilterBlocksBySearchTerm}})),tn((function(e){return{allBlocks:(0,e("ast-block-templates").getAllBlocks)()}})))(on((function(e){var t=e.setFilterBlocksBySearchTerm,n=e.allBlocks,r=(e.imagesLoad,e.setImagesLoaded,Object.values(n));an((function(){var e=document.getElementById("ast-block-templates-grid-blocks");e&&imagesLoaded(e,(function(){new Masonry(e)}))}));var o=function(){var e=document.getElementById("ast-block-templates-grid-blocks");e&&new Masonry(e)};return React.createElement("div",{className:"ast-block-templates-grid-blocks active"},React.createElement($t,null),React.createElement("div",{className:"ast-block-templates-pattern-grid"},React.createElement(Jt,null),React.createElement("div",{className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},r.length?r.map((function(e){return React.createElement(Tt,{key:e.ID,item:e,InitMasonry:o})})):React.createElement(qt,null,React.createElement(Gt,{afterClick:function(e){t("")}})))))}))));n(29);function ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var un=wp.compose.compose,fn=wp.data,pn=fn.useSelect,dn=fn.withSelect,mn=fn.withDispatch,hn=wp.element,vn=hn.useState,gn=hn.memo,bn=wp.components.Spinner,yn=wp.ajax.post,wn=un(dn((function(e){var t=e("ast-block-templates"),n=t.getPagePreview,r=t.getImportItemInfo,o=t.getCurrentScreen,i=t.getSitePreview;return{pagePreview:n(),importItemInfo:r(),sitePreview:i(),currentScreen:o()}})),mn((function(e){var t=e("ast-block-templates"),n=(t.setFullWidthBlockPreview,t.setCurrentScreen,t.setTogglePopup);t.setFullWidthPreview;return{onSetTogglePopup:n,insertBlocks:e("core/block-editor").insertBlocks}})))(gn((function(e){var t=e.title,n=e.currentScreen,r=e.insertBlocks,o=e.onSetTogglePopup,i=e.item,a=(e.importItemInfo,e.pagePreview),c=ln(vn(t||"Import"),2),l=c[0],s=c[1],u=[],f="full-width-page-preview"===n?"show":"",p=ln(vn(!1),2),d=p[0],m=p[1],h=a["required-plugins"]?a["required-plugins"].filter((function(e){return"wpforms-lite"===e.slug})):[],v=pn((function(e){var t=e("core/block-editor").getBlockInsertionPoint();return{insertIndex:t.index,insertClientID:t.rootClientId}}),[]),g=v.insertIndex,b=v.insertClientID,y=function(){Je({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){w()})).catch((function(e){m(!1),s("Error! WP Forms plugin activation failed!")}))},w=function(){var e=u["astra-site-wpforms-path"]||"";e?_(e):Xe(i["astra-page-api-url"],r,o,g,b)},_=function(e){yn({action:"ast_block_templates_import_wpforms",wpforms_url:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){Xe(i["astra-page-api-url"],r,o,g,b)})).fail((function(e){m(!1),s("Error! "+e.status+e.statusText)}))};return React.createElement("button",{className:"button button-primary ast-template-import-page-button ".concat(f),onClick:function(){m(!0),rt(i.ID,"site-pages").then((function(e){u=e,h.length?"not-installed"===AstBlockTemplatesVars.wpforms_status?Qe({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){y()})).catch((function(e){m(!1),s("Error! WP Forms plugin installation failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?y():w():w()}))}},d?React.createElement(React.Fragment,null,React.createElement(bn,null)," Importing.."):React.createElement(React.Fragment,null,l))}))),_n=(n(31),wp.compose.compose),kn=wp.data,xn=kn.withSelect,En=kn.withDispatch,Sn=wp.element,Pn=Sn.Fragment,Rn=Sn.memo,In=Sn.useEffect,Bn=_n(xn((function(e){var t=e("ast-block-templates"),n=t.getDisplayDynamicPopup;return{pagePreview:(0,t.getPagePreview)(),displayDynamicPopup:n()}})),En((function(e){return{setDisplayDynamicPopup:e("ast-block-templates").setDisplayDynamicPopup}})))(Rn((function(e){var t=e.pagePreview,n=e.displayDynamicPopup,r=e.setDisplayDynamicPopup,o=!1===n?"hide":"",i=function(){r(!1)},a=function(e){e.target===document.querySelector(".ast-block-templates-popup-wrap")&&i()};return In((function(){return document.addEventListener("click",a),function(){document.removeEventListener("click",a)}})),React.createElement(Pn,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"},Y("Heads Up!","ast-block-templates")),React.createElement("span",{className:"ast-block-templates-popup-close-icon",onClick:i},React.createElement("span",{className:"dashicons close dashicons-no-alt"}))),React.createElement("div",{className:"ast-block-templates-popup-content"},React.createElement("p",null,Y("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,Y("You will need to add it manually on the page.","ast-block-templates"))),React.createElement("div",{className:"ast-block-templates-popup-footer"},React.createElement(wn,{title:S(Y('Skip & Import "%s" Page',"ast-block-templates"),t.title),item:t}),React.createElement("div",{className:"button",onClick:i},Y("Cancel","ast-block-templates"))))))}))),Tn=wp.compose.compose,An=wp.data,jn=An.withSelect,Cn=An.withDispatch,On=wp.element.memo,Nn=Tn(jn((function(e){return{pagePreview:(0,e("ast-block-templates").getPagePreview)()}})),Cn((function(e){var t=e("ast-block-templates"),n=t.setPagePreview,r=t.setFullWidthPagePreview,o=t.setCurrentScreen;return{setImportItemInfo:t.setImportItemInfo,setPagePreview:n,updateFullWidthPagePreview:function(e){r(e),o("full-width-page-preview")}}})))(On((function(e){e.updateFullWidthPagePreview;var t=e.item,n=e.pagePreview,r=e.setPagePreview,o=e.setImportItemInfo,i=t["thumbnail-image-url"]||"";return React.createElement("div",{className:"item single-site ".concat(n.ID===t.ID?"active":"")},React.createElement("div",{className:"inner"},React.createElement("div",{className:"screenshot",onClick:function(e){o(t),r(t)},style:{backgroundImage:"url('".concat(i,"')")}},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"},bt(t.title)))))}))),Fn=(n(33),wp.element),Ln=Fn.memo,Dn=Fn.Fragment;var zn=(0,wp.compose.compose)((0,wp.data.withSelect)((function(e){var t=e("ast-block-templates"),n=t.getPagePreview;return{sitePreview:(0,t.getSitePreview)(),pagePreview:n()}})))(Ln((function(e){var t=e.sitePreview,n=e.pagePreview,r=Object.values(t.pages)||[],o=n["featured-image-url"];return React.createElement(Dn,null,React.createElement(Bn,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"},bt(t.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"},Y("Page Templates","ast-block-templates")),React.createElement("div",{className:"ast-block-templates-grid"},r.length?r.map((function(e){return React.createElement(Nn,{key:e.ID,item:e})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,Y("No Result Found","ast-block-templates")),React.createElement("p",null,Y("The search result not found. Try another search.","ast-block-templates")))))))})));function Wn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Vn=wp.compose.compose,Un=wp.data,$n=Un.withSelect,qn=Un.withDispatch,Gn=wp.element,Yn=Gn.memo,Hn=Gn.useState,Kn=Gn.useEffect,Zn=Vn($n((function(e){return{preview:e("ast-block-templates").getSitePreview}})),qn((function(e){var t=e("ast-block-templates"),n=t.setSitePreview,r=t.setPagePreview,o=t.setCurrentScreen;return{setSitePreview:function(e){var t=Object.values(e.pages).length?Object.values(e.pages)[0]:[];r(t),n(e),o("all-single-site-pages")},setImportItemInfo:t.setImportItemInfo}})))(Yn((function(e){var t=e.setSitePreview,n=e.item,r=e.setImportItemInfo,o=n["thumbnail-image-url"]||"",i=n.pages?n.pages.length:0,a=i<=1?"Template":"Templates",c=Wn(Hn("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),l=c[0],s=c[1];return Kn((function(){var e=!0,t=new Image;return t.src=o,t.onload=function(){e&&s(t.src)},function(){e=!1}}),[l]),React.createElement("div",{className:"item single-site",onClick:function(e){t(n),r(n)}},React.createElement("div",{className:"inner"},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"},bt(n.title)),i?React.createElement("div",{className:"sub-title"},"".concat(i," ").concat(a)):"")))}))),Xn=wp.compose.compose,Jn=wp.data,Qn=Jn.withSelect,er=(Jn.withDispatch,wp.element),tr=(er.useEffect,er.useState,er.memo),nr=er.Fragment,rr=Xn(Qn((function(e){var t=e("ast-block-templates"),n=t.getAllPages,r=t.getCurrentScreen,o=t.getAllSites;return{currentScreen:r(),allSites:o(),allPages:n()}})))(tr((function(e){e.allPages;var t=e.allSites,n=(e.currentScreen,Object.values(t));return React.createElement(nr,null,n.length?n.map((function(e){return React.createElement(Zn,{key:e.ID,item:e})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,Y("No Sites Result Found")," "),React.createElement("p",null,Y("The search result not found. Try another search."))))}))),or=wp.compose.compose,ir=wp.data,ar=ir.withSelect,cr=ir.withDispatch,lr=wp.element.memo,sr=or(ar((function(e){return{preview:e("ast-block-templates").getSitePreview}})),cr((function(e){var t=e("ast-block-templates"),n=t.setSearchPagePreview,r=t.setCurrentScreen;return{setSearchPagePreview:function(e){n(e),r("all-single-site-pages")},setImportItemInfo:t.setImportItemInfo}})))(lr((function(e){var t=e.setSearchPagePreview,n=e.item,r=e.setImportItemInfo,o=n["thumbnail-image-url"]||"";return React.createElement("div",{className:"item single-site"},React.createElement("div",{className:"inner"},React.createElement("div",{className:"screenshot",onClick:function(e){t(n),r(n)},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"},bt(n["site-title"])),React.createElement("div",{className:"sub-title"},bt(n.title)))))}))),ur=wp.compose.compose,fr=wp.data,pr=fr.withSelect,dr=fr.withDispatch,mr=wp.element,hr=mr.memo,vr=mr.Fragment,gr=ur(dr((function(e){var t=e("ast-block-templates");return{setPagePreview:t.setPagePreview,setFilterPagesBySearchTerm:t.setFilterPagesBySearchTerm}})),pr((function(e){var t=e("ast-block-templates"),n=t.getAllPages,r=t.getFilterPagesBySearchTerm;return{allPages:n(),filterPagesBySearchTerm:r()}})))(hr((function(e){var t=e.setPagePreview,n=e.setFilterPagesBySearchTerm,r=e.allPages,o=Object.values(r);return React.createElement(vr,null,o.length?o.map((function(e){return React.createElement(sr,{key:e.ID,item:e})})):React.createElement(qt,null,React.createElement(Gt,{afterClick:function(e){t({}),n("")}})))}))),br=wp.compose.compose,yr=wp.data,wr=yr.withSelect,_r=yr.withDispatch,kr=wp.element,xr=kr.memo;kr.useEffect;var Er=br(_r((function(e){return{setFilterPagesBySearchTerm:e("ast-block-templates").setFilterPagesBySearchTerm}})),wr((function(e){return{filterPagesBySearchTerm:(0,e("ast-block-templates").getFilterPagesBySearchTerm)()}})))(xr((function(e){var t=e.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(t.length?"ast-block-templates-pages-grid":"ast-block-templates-sites-grid")},t.length?React.createElement(gr,null):React.createElement(rr,null)))}))),Sr=(n(35),wp.compose.compose),Pr=wp.element.memo,Rr=wp.data,Ir=Rr.withSelect,Br=(Rr.withDispatch,Sr(Ir((function(e){return{blockPreview:(0,e("ast-block-templates").getFullWidthBlockPreview)()}})))(Pr((function(e){var t=e.blockPreview["featured-image-url"]||"".concat(AstBlockTemplatesVars.uri,"dist/placeholder.png");return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:t}))})))),Tr=(n(37),wp.compose.compose),Ar=wp.element.memo,jr=wp.data,Cr=jr.withSelect,Or=(jr.withDispatch,Tr(Cr((function(e){return{pagePreview:(0,e("ast-block-templates").getFullWidthPagePreview)()}})))(Ar((function(e){var t=e.pagePreview["featured-image-url"]||"";return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:t}))})))),Nr=function(){return React.createElement("div",null,"All signle pages")},Fr=(n(39),wp.element),Lr=Fr.useEffect,Dr=Fr.memo,zr=wp.compose.compose,Wr=wp.data.withSelect,Mr=function(e){var t=e.filterPagesBySearchTerm,n=e.currentScreen;return"all-single-pages"===n?React.createElement(Nr,null):"all-blocks-grid"===n?React.createElement(cn,null):t||"all-single-site-pages"!==n?"all-sites-grid"===n?React.createElement(Er,null):"full-width-block-preview"===n?React.createElement(Br,null):"full-width-page-preview"===n?React.createElement(Or,null):void 0:React.createElement(zn,null)},Vr=zr(Wr((function(e){var t=e("ast-block-templates"),n=t.getFilterPagesBySearchTerm,r=t.getSitePreview,o=t.getCurrentScreen,i=t.getTogglePopup;return{filterPagesBySearchTerm:n(),sitePreview:r(),currentScreen:o(),togglePopup:i()}})))(Dr((function(e){var t=e.sitePreview,n=e.currentScreen,r=e.togglePopup;return Lr((function(){!0===r&&(document.body.classList.add("ast-block-templates-modal-open"),document.getElementById("ast-block-templates-modal-wrap").classList.add("open"))}),[r,n,t]),React.createElement("div",{className:"ast-block-templates-content"},"all-sites-grid"===n||"all-single-site-pages"===n||"full-width-page-preview"===n||"all-single-pages"===n?React.createElement(Jt,null):null,React.createElement(Mr,{currentScreen:n}))})));n(41),n(43),n(45);function Ur(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qr=wp.compose.compose,Gr=wp.data,Yr=Gr.withSelect,Hr=Gr.withDispatch,Kr=wp.element,Zr=Kr.memo,Xr=Kr.useState,Jr=qr(Yr((function(e){return{importItemInfo:(0,e("ast-block-templates").getImportItemInfo)()}})),Hr((function(e){return{setImportItemInfo:e("ast-block-templates").setImportItemInfo}})))(Zr((function(e){var t=e.requiredPlugins;if(t.length){var n=Ur(Xr(!1),2),r=n[0],o=n[1];return React.createElement("div",{className:"used-blocks"},React.createElement("div",{className:"used-blocks-info ".concat(r?"show":"")},React.createElement("h3",null,"Install Required Plugins"),React.createElement("ul",null,t.map((function(e,t){return React.createElement("li",{key:t},e.name)})))),React.createElement("span",{className:"used-blocks-icon dashicons dashicons-editor-help",onClick:function(){return o(!r)}}))}}))),Qr=wp.compose.compose,eo=wp.data,to=eo.withSelect,no=eo.withDispatch,ro=wp.element,oo=ro.memo,io=ro.Fragment,ao=Qr(to((function(e){var t=e("ast-block-templates"),n=t.getImportItemInfo,r=t.getCurrentScreen,o=t.getPagePreview;return{importItemInfo:n(),pagePreview:o(),currentScreen:r()}})),no((function(e){var t=e("ast-block-templates"),n=t.setPagePreview,r=t.setFullWidthPagePreview,o=t.setCurrentScreen;return{setDisplayDynamicPopup:t.setDisplayDynamicPopup,setPagePreview:n,updateFullWidthPagePreview:function(e){r(e),o("full-width-page-preview")}}})))(oo((function(e){e.importItemInfo;var t=e.pagePreview,n=e.setDisplayDynamicPopup,r=t["astra-page-url"]?t["astra-page-url"]:"",o=!(!t["dynamic-page"]||"yes"!==t["dynamic-page"]);return React.createElement(io,null,React.createElement("a",{className:"button",href:r,target:"_blank"},"Preview Site",React.createElement("i",{className:"dashicons dashicons-external"})),o?React.createElement("button",{className:"button button-primary",onClick:function(e){n(!0)}},'Import "'.concat(t.title,'" Template')):React.createElement(wn,{title:'Import "'.concat(t.title,'" Template'),item:t}))}))),co=(n(47),wp.compose.compose),lo=wp.data,so=lo.withSelect,uo=lo.withDispatch,fo=wp.element,po=fo.memo,mo=fo.Fragment,ho=co(so((function(e){var t=e("ast-block-templates"),n=t.getImportItemInfo,r=t.getFullWidthBlockPreview;return{importItemInfo:n(),fullWidthBlockPreview:r()}})),uo((function(e){var t=e("ast-block-templates"),n=t.setPagePreview,r=t.setFullWidthPagePreview,o=t.setCurrentScreen;return{setPagePreview:n,updateFullWidthPagePreview:function(e){r(e),o("full-width-page-preview")}}})))(po((function(e){var t,n=e.importItemInfo,r=e.fullWidthBlockPreview,o=r.url?r.url:"";return t=n["required-plugins"]?n["required-plugins"]:[],React.createElement(mo,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(Jr,{requiredPlugins:t}),React.createElement(gt,{btnClass:"button button-primary",title:"Import Pattern",item:r,requiredPlugins:t})))}))),vo=wp.compose.compose,go=wp.data.withSelect,bo=wp.element.memo,yo=vo(go((function(e){return{currentScreen:(0,e("ast-block-templates").getCurrentScreen)()}})))(bo((function(e){var t=e.currentScreen;if("all-single-site-pages"===t||"full-width-block-preview"===t)return React.createElement("div",{className:"footer"},"all-single-site-pages"===t?React.createElement(ao,null):React.createElement(ho,null))}))),wo=wp.element,_o=wo.Fragment,ko=wo.useEffect,xo=wo.memo,Eo=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(e){return{onSetTogglePopup:e("ast-block-templates").setTogglePopup}})))(xo((function(e){var t=e.onSetTogglePopup,n=function(e){e.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"),t())};return ko((function(){return document.addEventListener("click",n),function(){document.removeEventListener("click",n)}})),React.createElement(_o,null,React.createElement(X,null),React.createElement("div",{className:"inner"},React.createElement(He,null),React.createElement(Vr,null),React.createElement(yo,null)))})));function So(){wp.data.subscribe((function(){setTimeout((function(){!function(){if(!document.querySelector("#editor .edit-post-header__toolbar"))return;if(document.querySelector("#ast-block-templates-button-wrap"))return;var e=document.createElement("div");e.id="ast-block-templates-button-wrap",document.querySelector("#editor .edit-post-header__toolbar").appendChild(e)}(),function(){if(document.getElementById("ast-block-templates-modal-wrap"))return;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>',document.body.appendChild(e),wp.element.render(React.createElement(Eo,null),document.getElementById("ast-block-templates-modal"))}()}),500)}))}document.addEventListener("load",So),document.addEventListener("DOMContentLoaded",So)}]);
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=49)}([function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,c,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],l=t.base?i[0]+t.base:i[0],u=n[l]||0,s="".concat(l," ").concat(u);n[l]=u+1;var f=c(s),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:s,updater:v(p,t),references:1}),r.push(s)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var s,f=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,h=0;function v(e,t){var n,r,o;if(t.singleton){var i=h++;n=m||(m=u(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=u(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=l(e,t),u=0;u<n.length;u++){var s=c(n[u]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}n=i}}}},function(e,t,n){(function(e,r){var o;
|
2 |
/**
|
3 |
* @license
|
4 |
* Lodash <https://lodash.com/>
|
6 |
* Released under MIT license <https://lodash.com/license>
|
7 |
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
8 |
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
9 |
+
*/(function(){var i="Expected a function",a="__lodash_placeholder__",c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",s="[object Boolean]",f="[object Date]",p="[object Error]",d="[object Function]",m="[object GeneratorFunction]",h="[object Map]",v="[object Number]",g="[object Object]",b="[object RegExp]",y="[object Set]",w="[object String]",_="[object Symbol]",k="[object WeakMap]",x="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",P="[object Float64Array]",R="[object Int8Array]",I="[object Int16Array]",B="[object Int32Array]",T="[object Uint8Array]",A="[object Uint16Array]",j="[object Uint32Array]",C=/\b__p \+= '';/g,O=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,D=RegExp(F.source),z=RegExp(L.source),W=/<%-([\s\S]+?)%>/g,M=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(G.source),H=/^\s+/,K=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,se=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\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",me="[\\ud800-\\udfff]",he="["+de+"]",ve="["+pe+"]",ge="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+de+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_e="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Pe="(?:"+ye+"|"+we+")",Re="(?:"+Se+"|"+we+")",Ie="(?:"+ve+"|"+_e+")"+"?",Be="[\\ufe0e\\ufe0f]?"+Ie+("(?:\\u200d(?:"+[ke,xe,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+Ie+")*"),Te="(?:"+[be,xe,Ee].join("|")+")"+Be,Ae="(?:"+[ke+ve+"?",ve,xe,Ee,me].join("|")+")",je=RegExp("['’]","g"),Ce=RegExp(ve,"g"),Oe=RegExp(_e+"(?="+_e+")|"+Ae+Be,"g"),Ne=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Se,"$"].join("|")+")",Re+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Se+Pe,"$"].join("|")+")",Se+"?"+Pe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ge,Te].join("|"),"g"),Fe=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,De=["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"],ze=-1,We={};We[S]=We[P]=We[R]=We[I]=We[B]=We[T]=We["[object Uint8ClampedArray]"]=We[A]=We[j]=!0,We[l]=We[u]=We[x]=We[s]=We[E]=We[f]=We[p]=We[d]=We[h]=We[v]=We[g]=We[b]=We[y]=We[w]=We[k]=!1;var Me={};Me[l]=Me[u]=Me[x]=Me[E]=Me[s]=Me[f]=Me[S]=Me[P]=Me[R]=Me[I]=Me[B]=Me[h]=Me[v]=Me[g]=Me[b]=Me[y]=Me[w]=Me[_]=Me[T]=Me["[object Uint8ClampedArray]"]=Me[A]=Me[j]=!0,Me[p]=Me[d]=Me[k]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,$e=parseInt,qe="object"==typeof e&&e&&e.Object===Object&&e,Ge="object"==typeof self&&self&&self.Object===Object&&self,Ye=qe||Ge||Function("return this")(),He=t&&!t.nodeType&&t,Ke=He&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Ke&&Ke.exports===He,Xe=Ze&&qe.process,Je=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Qe=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,ot=Je&&Je.isTypedArray;function it(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function st(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function ft(e,t){return!!(null==e?0:e.length)&&_t(e,t,0)>-1}function pt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function dt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function mt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function ht(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function vt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bt=St("length");function yt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function wt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function _t(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,xt,n)}function kt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function xt(e){return e!=e}function Et(e,t){var n=null==e?0:e.length;return n?It(e,t)/n:NaN}function St(e){return function(t){return null==t?void 0:t[e]}}function Pt(e){return function(t){return null==e?void 0:e[t]}}function Rt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function It(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Bt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Tt(e){return e?e.slice(0,Ht(e)+1).replace(H,""):e}function At(e){return function(t){return e(t)}}function jt(e,t){return dt(t,(function(t){return e[t]}))}function Ct(e,t){return e.has(t)}function Ot(e,t){for(var n=-1,r=e.length;++n<r&&_t(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length;n--&&_t(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=Pt({"À":"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"}),Dt=Pt({"&":"&","<":"<",">":">",'"':""","'":"'"});function zt(e){return"\\"+Ve[e]}function Wt(e){return Fe.test(e)}function Mt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Vt(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var c=e[n];c!==t&&c!==a||(e[n]=a,i[o++]=n)}return i}function $t(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Gt(e){return Wt(e)?function(e){var t=Oe.lastIndex=0;for(;Oe.test(e);)++t;return t}(e):bt(e)}function Yt(e){return Wt(e)?function(e){return e.match(Oe)||[]}(e):function(e){return e.split("")}(e)}function Ht(e){for(var t=e.length;t--&&K.test(e.charAt(t)););return t}var Kt=Pt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Zt=function e(t){var n,r=(t=null==t?Ye:Zt.defaults(Ye.Object(),t,Zt.pick(Ye,De))).Array,o=t.Date,K=t.Error,pe=t.Function,de=t.Math,me=t.Object,he=t.RegExp,ve=t.String,ge=t.TypeError,be=r.prototype,ye=pe.prototype,we=me.prototype,_e=t["__core-js_shared__"],ke=ye.toString,xe=we.hasOwnProperty,Ee=0,Se=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Pe=we.toString,Re=ke.call(me),Ie=Ye._,Be=he("^"+ke.call(xe).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=Ze?t.Buffer:void 0,Ae=t.Symbol,Oe=t.Uint8Array,Fe=Te?Te.allocUnsafe:void 0,Ve=Vt(me.getPrototypeOf,me),qe=me.create,Ge=we.propertyIsEnumerable,He=be.splice,Ke=Ae?Ae.isConcatSpreadable:void 0,Xe=Ae?Ae.iterator:void 0,Je=Ae?Ae.toStringTag:void 0,bt=function(){try{var e=ti(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Xt=o&&o.now!==Ye.Date.now&&o.now,Jt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Qt=de.ceil,en=de.floor,tn=me.getOwnPropertySymbols,nn=Te?Te.isBuffer:void 0,rn=t.isFinite,on=be.join,an=Vt(me.keys,me),cn=de.max,ln=de.min,un=o.now,sn=t.parseInt,fn=de.random,pn=be.reverse,dn=ti(t,"DataView"),mn=ti(t,"Map"),hn=ti(t,"Promise"),vn=ti(t,"Set"),gn=ti(t,"WeakMap"),bn=ti(me,"create"),yn=gn&&new gn,wn={},_n=Ii(dn),kn=Ii(mn),xn=Ii(hn),En=Ii(vn),Sn=Ii(gn),Pn=Ae?Ae.prototype:void 0,Rn=Pn?Pn.valueOf:void 0,In=Pn?Pn.toString:void 0;function Bn(e){if(qa(e)&&!Oa(e)&&!(e instanceof Cn)){if(e instanceof jn)return e;if(xe.call(e,"__wrapped__"))return Bi(e)}return new jn(e)}var Tn=function(){function e(){}return function(t){if(!$a(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function An(){}function jn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Cn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function On(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Fn;++t<n;)this.add(e[t])}function Dn(e){var t=this.__data__=new Nn(e);this.size=t.size}function zn(e,t){var n=Oa(e),r=!n&&Ca(e),o=!n&&!r&&Da(e),i=!n&&!r&&!o&&Qa(e),a=n||r||o||i,c=a?Bt(e.length,ve):[],l=c.length;for(var u in e)!t&&!xe.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||li(u,l))||c.push(u);return c}function Wn(e){var t=e.length;return t?e[Lr(0,t-1)]:void 0}function Mn(e,t){return Si(yo(e),Zn(t,0,e.length))}function Vn(e){return Si(yo(e))}function Un(e,t,n){(void 0!==n&&!Ta(e[t],n)||void 0===n&&!(t in e))&&Hn(e,t,n)}function $n(e,t,n){var r=e[t];xe.call(e,t)&&Ta(r,n)&&(void 0!==n||t in e)||Hn(e,t,n)}function qn(e,t){for(var n=e.length;n--;)if(Ta(e[n][0],t))return n;return-1}function Gn(e,t,n,r){return tr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Yn(e,t){return e&&wo(t,_c(t),e)}function Hn(e,t,n){"__proto__"==t&&bt?bt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kn(e,t){for(var n=-1,o=t.length,i=r(o),a=null==e;++n<o;)i[n]=a?void 0:vc(e,t[n]);return i}function Zn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Xn(e,t,n,r,o,i){var a,c=1&t,u=2&t,p=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!$a(e))return e;var k=Oa(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return yo(e,a)}else{var C=oi(e),O=C==d||C==m;if(Da(e))return po(e,c);if(C==g||C==l||O&&!o){if(a=u||O?{}:ai(e),!c)return u?function(e,t){return wo(e,ri(e),t)}(e,function(e,t){return e&&wo(t,kc(t),e)}(a,e)):function(e,t){return wo(e,ni(e),t)}(e,Yn(a,e))}else{if(!Me[C])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case x:return mo(e);case s:case f:return new r(+e);case E:return function(e,t){var n=t?mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case P:case R:case I:case B:case T:case"[object Uint8ClampedArray]":case A:case j:return ho(e,n);case h:return new r;case v:case w:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case _:return o=e,Rn?me(Rn.call(o)):{}}var o}(e,C,c)}}i||(i=new Dn);var N=i.get(e);if(N)return N;i.set(e,a),Za(e)?e.forEach((function(r){a.add(Xn(r,t,n,r,e,i))})):Ga(e)&&e.forEach((function(r,o){a.set(o,Xn(r,t,n,o,e,i))}));var F=k?void 0:(p?u?Ho:Yo:u?kc:_c)(e);return ct(F||e,(function(r,o){F&&(r=e[o=r]),$n(a,o,Xn(r,t,n,o,e,i))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ge(i);return _i((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=ft,a=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=dt(t,At(n))),r?(i=pt,a=!1):t.length>=200&&(i=Ct,a=!1,t=new Ln(t));e:for(;++o<c;){var s=e[o],f=null==n?s:n(s);if(s=r||0!==s?s:0,a&&f==f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(s)}else i(t,f,r)||l.push(s)}return l}Bn.templateSettings={escape:W,evaluate:M,interpolate:V,variable:"",imports:{_:Bn}},Bn.prototype=An.prototype,Bn.prototype.constructor=Bn,jn.prototype=Tn(An.prototype),jn.prototype.constructor=jn,Cn.prototype=Tn(An.prototype),Cn.prototype.constructor=Cn,On.prototype.clear=function(){this.__data__=bn?bn(null):{},this.size=0},On.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},On.prototype.get=function(e){var t=this.__data__;if(bn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(t,e)?t[e]:void 0},On.prototype.has=function(e){var t=this.__data__;return bn?void 0!==t[e]:xe.call(t,e)},On.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bn&&void 0===t?"__lodash_hash_undefined__":t,this},Nn.prototype.clear=function(){this.__data__=[],this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=qn(t,e);return!(n<0)&&(n==t.length-1?t.pop():He.call(t,n,1),--this.size,!0)},Nn.prototype.get=function(e){var t=this.__data__,n=qn(t,e);return n<0?void 0:t[n][1]},Nn.prototype.has=function(e){return qn(this.__data__,e)>-1},Nn.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new On,map:new(mn||Nn),string:new On}},Fn.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Fn.prototype.get=function(e){return Qo(this,e).get(e)},Fn.prototype.has=function(e){return Qo(this,e).has(e)},Fn.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},Dn.prototype.clear=function(){this.__data__=new Nn,this.size=0},Dn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Dn.prototype.get=function(e){return this.__data__.get(e)},Dn.prototype.has=function(e){return this.__data__.has(e)},Dn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!mn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fn(r)}return n.set(e,t),this.size=n.size,this};var tr=xo(ur),nr=xo(sr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===c?a==a&&!Ja(a):n(a,c)))var c=a,l=i}return l}function ir(e,t){var n=[];return tr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function ar(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=ci),o||(o=[]);++i<a;){var c=e[i];t>0&&n(c)?t>1?ar(c,t-1,n,r,o):mt(o,c):r||(o[o.length]=c)}return o}var cr=Eo(),lr=Eo(!0);function ur(e,t){return e&&cr(e,t,_c)}function sr(e,t){return e&&lr(e,t,_c)}function fr(e,t){return st(t,(function(t){return Ma(e[t])}))}function pr(e,t){for(var n=0,r=(t=lo(t,e)).length;null!=e&&n<r;)e=e[Ri(t[n++])];return n&&n==r?e:void 0}function dr(e,t,n){var r=t(e);return Oa(e)?r:mt(r,n(e))}function mr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Je&&Je in me(e)?function(e){var t=xe.call(e,Je),n=e[Je];try{e[Je]=void 0;var r=!0}catch(e){}var o=Pe.call(e);r&&(t?e[Je]=n:delete e[Je]);return o}(e):function(e){return Pe.call(e)}(e)}function hr(e,t){return e>t}function vr(e,t){return null!=e&&xe.call(e,t)}function gr(e,t){return null!=e&&t in me(e)}function br(e,t,n){for(var o=n?pt:ft,i=e[0].length,a=e.length,c=a,l=r(a),u=1/0,s=[];c--;){var f=e[c];c&&t&&(f=dt(f,At(t))),u=ln(f.length,u),l[c]=!n&&(t||i>=120&&f.length>=120)?new Ln(c&&f):void 0}f=e[0];var p=-1,d=l[0];e:for(;++p<i&&s.length<u;){var m=f[p],h=t?t(m):m;if(m=n||0!==m?m:0,!(d?Ct(d,h):o(s,h,n))){for(c=a;--c;){var v=l[c];if(!(v?Ct(v,h):o(e[c],h,n)))continue e}d&&d.push(h),s.push(m)}}return s}function yr(e,t,n){var r=null==(e=gi(e,t=lo(t,e)))?e:e[Ri(Wi(t))];return null==r?void 0:it(r,e,n)}function wr(e){return qa(e)&&mr(e)==l}function _r(e,t,n,r,o){return e===t||(null==e||null==t||!qa(e)&&!qa(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Oa(e),c=Oa(t),d=a?u:oi(e),m=c?u:oi(t),k=(d=d==l?g:d)==g,S=(m=m==l?g:m)==g,P=d==m;if(P&&Da(e)){if(!Da(t))return!1;a=!0,k=!1}if(P&&!k)return i||(i=new Dn),a||Qa(e)?qo(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!i(new Oe(e),new Oe(t)));case s:case f:case v:return Ta(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case w:return e==t+"";case h:var c=Mt;case y:var l=1&r;if(c||(c=$t),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var d=qo(c(e),c(t),r,o,i,a);return a.delete(e),d;case _:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,d,n,r,o,i);if(!(1&n)){var R=k&&xe.call(e,"__wrapped__"),I=S&&xe.call(t,"__wrapped__");if(R||I){var B=R?e.value():e,T=I?t.value():t;return i||(i=new Dn),o(B,T,n,r,i)}}if(!P)return!1;return i||(i=new Dn),function(e,t,n,r,o,i){var a=1&n,c=Yo(e),l=c.length,u=Yo(t).length;if(l!=u&&!a)return!1;var s=l;for(;s--;){var f=c[s];if(!(a?f in t:xe.call(t,f)))return!1}var p=i.get(e),d=i.get(t);if(p&&d)return p==t&&d==e;var m=!0;i.set(e,t),i.set(t,e);var h=a;for(;++s<l;){f=c[s];var v=e[f],g=t[f];if(r)var b=a?r(g,v,f,t,e,i):r(v,g,f,e,t,i);if(!(void 0===b?v===g||o(v,g,n,r,i):b)){m=!1;break}h||(h="constructor"==f)}if(m&&!h){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(m=!1)}return i.delete(e),i.delete(t),m}(e,t,n,r,o,i)}(e,t,n,r,_r,o))}function kr(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=me(e);o--;){var c=n[o];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<i;){var l=(c=n[o])[0],u=e[l],s=c[1];if(a&&c[2]){if(void 0===u&&!(l in e))return!1}else{var f=new Dn;if(r)var p=r(u,s,l,e,t,f);if(!(void 0===p?_r(s,u,3,r,f):p))return!1}}return!0}function xr(e){return!(!$a(e)||(t=e,Se&&Se in t))&&(Ma(e)?Be:ae).test(Ii(e));var t}function Er(e){return"function"==typeof e?e:null==e?Yc:"object"==typeof e?Oa(e)?Tr(e[0],e[1]):Br(e):nl(e)}function Sr(e){if(!di(e))return an(e);var t=[];for(var n in me(e))xe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Pr(e){if(!$a(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=di(e),n=[];for(var r in e)("constructor"!=r||!t&&xe.call(e,r))&&n.push(r);return n}function Rr(e,t){return e<t}function Ir(e,t){var n=-1,o=Fa(e)?r(e.length):[];return tr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Br(e){var t=ei(e);return 1==t.length&&t[0][2]?hi(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Tr(e,t){return si(e)&&mi(t)?hi(Ri(e),t):function(n){var r=vc(n,e);return void 0===r&&r===t?gc(n,e):_r(t,r,3)}}function Ar(e,t,n,r,o){e!==t&&cr(t,(function(i,a){if(o||(o=new Dn),$a(i))!function(e,t,n,r,o,i,a){var c=yi(e,n),l=yi(t,n),u=a.get(l);if(u)return void Un(e,n,u);var s=i?i(c,l,n+"",e,t,a):void 0,f=void 0===s;if(f){var p=Oa(l),d=!p&&Da(l),m=!p&&!d&&Qa(l);s=l,p||d||m?Oa(c)?s=c:La(c)?s=yo(c):d?(f=!1,s=po(l,!0)):m?(f=!1,s=ho(l,!0)):s=[]:Ha(l)||Ca(l)?(s=c,Ca(c)?s=cc(c):$a(c)&&!Ma(c)||(s=ai(l))):f=!1}f&&(a.set(l,s),o(s,l,r,i,a),a.delete(l));Un(e,n,s)}(e,t,a,n,Ar,r,o);else{var c=r?r(yi(e,a),i,a+"",e,t,o):void 0;void 0===c&&(c=i),Un(e,a,c)}}),kc)}function jr(e,t){var n=e.length;if(n)return li(t+=t<0?n:0,n)?e[t]:void 0}function Cr(e,t,n){t=t.length?dt(t,(function(e){return Oa(e)?function(t){return pr(t,1===e.length?e[0]:e)}:e})):[Yc];var r=-1;return t=dt(t,At(Jo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ir(e,(function(e,n,o){return{criteria:dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,c=n.length;for(;++r<a;){var l=vo(o[r],i[r]);if(l){if(r>=c)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Or(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],c=pr(e,a);n(c,a)&&Vr(i,lo(a,e),c)}return i}function Nr(e,t,n,r){var o=r?kt:_t,i=-1,a=t.length,c=e;for(e===t&&(t=yo(t)),n&&(c=dt(e,At(n)));++i<a;)for(var l=0,u=t[i],s=n?n(u):u;(l=o(c,s,l,r))>-1;)c!==e&&He.call(c,l,1),He.call(e,l,1);return e}function Fr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;li(o)?He.call(e,o,1):eo(e,o)}}return e}function Lr(e,t){return e+en(fn()*(t-e+1))}function Dr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return ki(vi(e,t,Yc),e+"")}function Wr(e){return Wn(Tc(e))}function Mr(e,t){var n=Tc(e);return Si(n,Zn(t,0,n.length))}function Vr(e,t,n,r){if(!$a(e))return e;for(var o=-1,i=(t=lo(t,e)).length,a=i-1,c=e;null!=c&&++o<i;){var l=Ri(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var s=c[l];void 0===(u=r?r(s,l,c):void 0)&&(u=$a(s)?s:li(t[o+1])?[]:{})}$n(c,l,u),c=c[l]}return e}var Ur=yn?function(e,t){return yn.set(e,t),e}:Yc,$r=bt?function(e,t){return bt(e,"toString",{configurable:!0,enumerable:!1,value:$c(t),writable:!0})}:Yc;function qr(e){return Si(Tc(e))}function Gr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function Yr(e,t){var n;return tr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Hr(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Ja(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Kr(e,t,Yc,n)}function Kr(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,c=null===t,l=Ja(t),u=void 0===t;o<i;){var s=en((o+i)/2),f=n(e[s]),p=void 0!==f,d=null===f,m=f==f,h=Ja(f);if(a)var v=r||m;else v=u?m&&(r||p):c?m&&p&&(r||!d):l?m&&p&&!d&&(r||!h):!d&&!h&&(r?f<=t:f<t);v?o=s+1:i=s}return ln(i,4294967294)}function Zr(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],c=t?t(a):a;if(!n||!Ta(c,l)){var l=c;i[o++]=0===a?0:a}}return i}function Xr(e){return"number"==typeof e?e:Ja(e)?NaN:+e}function Jr(e){if("string"==typeof e)return e;if(Oa(e))return dt(e,Jr)+"";if(Ja(e))return In?In.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,o=ft,i=e.length,a=!0,c=[],l=c;if(n)a=!1,o=pt;else if(i>=200){var u=t?null:zo(e);if(u)return $t(u);a=!1,o=Ct,l=new Ln}else l=t?[]:c;e:for(;++r<i;){var s=e[r],f=t?t(s):s;if(s=n||0!==s?s:0,a&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),c.push(s)}else o(l,f,n)||(l!==c&&l.push(f),c.push(s))}return c}function eo(e,t){return null==(e=gi(e,t=lo(t,e)))||delete e[Ri(Wi(t))]}function to(e,t,n,r){return Vr(e,t,n(pr(e,t)),r)}function no(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Gr(e,r?0:i,r?i+1:o):Gr(e,r?i+1:0,r?o:i)}function ro(e,t){var n=e;return n instanceof Cn&&(n=n.value()),ht(t,(function(e,t){return t.func.apply(t.thisArg,mt([e],t.args))}),n)}function oo(e,t,n){var o=e.length;if(o<2)return o?Qr(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var c=e[i],l=-1;++l<o;)l!=i&&(a[i]=er(a[i]||c,e[l],t,n));return Qr(ar(a,1),t,n)}function io(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var c=r<i?t[r]:void 0;n(a,e[r],c)}return a}function ao(e){return La(e)?e:[]}function co(e){return"function"==typeof e?e:Yc}function lo(e,t){return Oa(e)?e:si(e,t)?[e]:Pi(lc(e))}var uo=zr;function so(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Gr(e,t,n)}var fo=Pt||function(e){return Ye.clearTimeout(e)};function po(e,t){if(t)return e.slice();var n=e.length,r=Fe?Fe(n):new e.constructor(n);return e.copy(r),r}function mo(e){var t=new e.constructor(e.byteLength);return new Oe(t).set(new Oe(e)),t}function ho(e,t){var n=t?mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function vo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Ja(e),a=void 0!==t,c=null===t,l=t==t,u=Ja(t);if(!c&&!u&&!i&&e>t||i&&a&&l&&!c&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||c&&n&&o||!a&&o||!l)return-1}return 0}function go(e,t,n,o){for(var i=-1,a=e.length,c=n.length,l=-1,u=t.length,s=cn(a-c,0),f=r(u+s),p=!o;++l<u;)f[l]=t[l];for(;++i<c;)(p||i<a)&&(f[n[i]]=e[i]);for(;s--;)f[l++]=e[i++];return f}function bo(e,t,n,o){for(var i=-1,a=e.length,c=-1,l=n.length,u=-1,s=t.length,f=cn(a-l,0),p=r(f+s),d=!o;++i<f;)p[i]=e[i];for(var m=i;++u<s;)p[m+u]=t[u];for(;++c<l;)(d||i<a)&&(p[m+n[c]]=e[i++]);return p}function yo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function wo(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var c=t[i],l=r?r(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),o?Hn(n,c,l):$n(n,c,l)}return n}function _o(e,t){return function(n,r){var o=Oa(n)?at:Gn,i=t?t():{};return o(n,e,Jo(r,2),i)}}function ko(e){return zr((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&ui(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=me(t);++r<o;){var c=n[r];c&&e(t,c,r,i)}return t}))}function xo(e,t){return function(n,r){if(null==n)return n;if(!Fa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=me(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Eo(e){return function(t,n,r){for(var o=-1,i=me(t),a=r(t),c=a.length;c--;){var l=a[e?c:++o];if(!1===n(i[l],l,i))break}return t}}function So(e){return function(t){var n=Wt(t=lc(t))?Yt(t):void 0,r=n?n[0]:t.charAt(0),o=n?so(n,1).join(""):t.slice(1);return r[e]()+o}}function Po(e){return function(t){return ht(Mc(Cc(t).replace(je,"")),e,"")}}function Ro(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Tn(e.prototype),r=e.apply(n,t);return $a(r)?r:n}}function Io(e){return function(t,n,r){var o=me(t);if(!Fa(t)){var i=Jo(n,3);t=_c(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}function Bo(e){return Go((function(t){var n=t.length,r=n,o=jn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ge(i);if(o&&!c&&"wrapper"==Zo(a))var c=new jn([],!0)}for(r=c?r:n;++r<n;){var l=Zo(a=t[r]),u="wrapper"==l?Ko(a):void 0;c=u&&fi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[Zo(u[0])].apply(c,u[3]):1==a.length&&fi(a)?c[l]():c.thru(a)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Oa(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function To(e,t,n,o,i,a,c,l,u,s){var f=128&t,p=1&t,d=2&t,m=24&t,h=512&t,v=d?void 0:Ro(e);return function g(){for(var b=arguments.length,y=r(b),w=b;w--;)y[w]=arguments[w];if(m)var _=Xo(g),k=Ft(y,_);if(o&&(y=go(y,o,i,m)),a&&(y=bo(y,a,c,m)),b-=k,m&&b<s){var x=Ut(y,_);return Lo(e,t,To,g.placeholder,n,y,x,l,u,s-b)}var E=p?n:this,S=d?E[e]:e;return b=y.length,l?y=bi(y,l):h&&b>1&&y.reverse(),f&&u<b&&(y.length=u),this&&this!==Ye&&this instanceof g&&(S=v||Ro(S)),S.apply(E,y)}}function Ao(e,t){return function(n,r){return function(e,t,n,r){return ur(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function jo(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Xr(n),r=Xr(r)),o=e(n,r)}return o}}function Co(e){return Go((function(t){return t=dt(t,At(Jo())),zr((function(n){var r=this;return e(t,(function(e){return it(e,r,n)}))}))}))}function Oo(e,t){var n=(t=void 0===t?" ":Jr(t)).length;if(n<2)return n?Dr(t,e):t;var r=Dr(t,Qt(e/Gt(t)));return Wt(t)?so(Yt(r),0,e).join(""):r.slice(0,e)}function No(e){return function(t,n,o){return o&&"number"!=typeof o&&ui(t,n,o)&&(n=o=void 0),t=rc(t),void 0===n?(n=t,t=0):n=rc(n),function(e,t,n,o){for(var i=-1,a=cn(Qt((t-e)/(n||1)),0),c=r(a);a--;)c[o?a:++i]=e,e+=n;return c}(t,n,o=void 0===o?t<n?1:-1:rc(o),e)}}function Fo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ac(t),n=ac(n)),e(t,n)}}function Lo(e,t,n,r,o,i,a,c,l,u){var s=8&t;t|=s?32:64,4&(t&=~(s?64:32))||(t&=-4);var f=[e,t,o,s?i:void 0,s?a:void 0,s?void 0:i,s?void 0:a,c,l,u],p=n.apply(void 0,f);return fi(e)&&wi(p,f),p.placeholder=r,xi(p,e,t)}function Do(e){var t=de[e];return function(e,n){if(e=ac(e),(n=null==n?0:ln(oc(n),292))&&rn(e)){var r=(lc(e)+"e").split("e");return+((r=(lc(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var zo=vn&&1/$t(new vn([,-0]))[1]==1/0?function(e){return new vn(e)}:Jc;function Wo(e){return function(t){var n=oi(t);return n==h?Mt(t):n==y?qt(t):function(e,t){return dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Mo(e,t,n,o,c,l,u,s){var f=2&t;if(!f&&"function"!=typeof e)throw new ge(i);var p=o?o.length:0;if(p||(t&=-97,o=c=void 0),u=void 0===u?u:cn(oc(u),0),s=void 0===s?s:oc(s),p-=c?c.length:0,64&t){var d=o,m=c;o=c=void 0}var h=f?void 0:Ko(e),v=[e,t,n,o,c,d,m,l,u,s];if(h&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,c=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!c)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?go(u,l,t[4]):l,e[4]=u?Ut(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?bo(u,l,t[6]):l,e[6]=u?Ut(e[5],a):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:ln(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(v,h),e=v[0],t=v[1],n=v[2],o=v[3],c=v[4],!(s=v[9]=void 0===v[9]?f?0:e.length:cn(v[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var o=Ro(e);return function i(){for(var a=arguments.length,c=r(a),l=a,u=Xo(i);l--;)c[l]=arguments[l];var s=a<3&&c[0]!==u&&c[a-1]!==u?[]:Ut(c,u);if((a-=s.length)<n)return Lo(e,t,To,i.placeholder,void 0,c,s,void 0,void 0,n-a);var f=this&&this!==Ye&&this instanceof i?o:e;return it(f,this,c)}}(e,t,s):32!=t&&33!=t||c.length?To.apply(void 0,v):function(e,t,n,o){var i=1&t,a=Ro(e);return function t(){for(var c=-1,l=arguments.length,u=-1,s=o.length,f=r(s+l),p=this&&this!==Ye&&this instanceof t?a:e;++u<s;)f[u]=o[u];for(;l--;)f[u++]=arguments[++c];return it(p,i?n:this,f)}}(e,t,n,o);else var g=function(e,t,n){var r=1&t,o=Ro(e);return function t(){var i=this&&this!==Ye&&this instanceof t?o:e;return i.apply(r?n:this,arguments)}}(e,t,n);return xi((h?Ur:wi)(g,v),e,t)}function Vo(e,t,n,r){return void 0===e||Ta(e,we[n])&&!xe.call(r,n)?t:e}function Uo(e,t,n,r,o,i){return $a(e)&&$a(t)&&(i.set(t,e),Ar(e,t,void 0,Uo,i),i.delete(t)),e}function $o(e){return Ha(e)?void 0:e}function qo(e,t,n,r,o,i){var a=1&n,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var u=i.get(e),s=i.get(t);if(u&&s)return u==t&&s==e;var f=-1,p=!0,d=2&n?new Ln:void 0;for(i.set(e,t),i.set(t,e);++f<c;){var m=e[f],h=t[f];if(r)var v=a?r(h,m,f,t,e,i):r(m,h,f,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(d){if(!gt(t,(function(e,t){if(!Ct(d,t)&&(m===e||o(m,e,n,r,i)))return d.push(t)}))){p=!1;break}}else if(m!==h&&!o(m,h,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Go(e){return ki(vi(e,void 0,Ni),e+"")}function Yo(e){return dr(e,_c,ni)}function Ho(e){return dr(e,kc,ri)}var Ko=yn?function(e){return yn.get(e)}:Jc;function Zo(e){for(var t=e.name+"",n=wn[t],r=xe.call(wn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Xo(e){return(xe.call(Bn,"placeholder")?Bn:e).placeholder}function Jo(){var e=Bn.iteratee||Hc;return e=e===Hc?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Qo(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ei(e){for(var t=_c(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,mi(o)]}return t}function ti(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xr(n)?n:void 0}var ni=tn?function(e){return null==e?[]:(e=me(e),st(tn(e),(function(t){return Ge.call(e,t)})))}:il,ri=tn?function(e){for(var t=[];e;)mt(t,ni(e)),e=Ve(e);return t}:il,oi=mr;function ii(e,t,n){for(var r=-1,o=(t=lo(t,e)).length,i=!1;++r<o;){var a=Ri(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ua(o)&&li(a,o)&&(Oa(e)||Ca(e))}function ai(e){return"function"!=typeof e.constructor||di(e)?{}:Tn(Ve(e))}function ci(e){return Oa(e)||Ca(e)||!!(Ke&&e&&e[Ke])}function li(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function ui(e,t,n){if(!$a(n))return!1;var r=typeof t;return!!("number"==r?Fa(n)&&li(t,n.length):"string"==r&&t in n)&&Ta(n[t],e)}function si(e,t){if(Oa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ja(e))||($.test(e)||!U.test(e)||null!=t&&e in me(t))}function fi(e){var t=Zo(e),n=Bn[t];if("function"!=typeof n||!(t in Cn.prototype))return!1;if(e===n)return!0;var r=Ko(n);return!!r&&e===r[0]}(dn&&oi(new dn(new ArrayBuffer(1)))!=E||mn&&oi(new mn)!=h||hn&&"[object Promise]"!=oi(hn.resolve())||vn&&oi(new vn)!=y||gn&&oi(new gn)!=k)&&(oi=function(e){var t=mr(e),n=t==g?e.constructor:void 0,r=n?Ii(n):"";if(r)switch(r){case _n:return E;case kn:return h;case xn:return"[object Promise]";case En:return y;case Sn:return k}return t});var pi=_e?Ma:al;function di(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function mi(e){return e==e&&!$a(e)}function hi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function vi(e,t,n){return t=cn(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=cn(o.length-t,0),c=r(a);++i<a;)c[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(c),it(e,this,l)}}function gi(e,t){return t.length<2?e:pr(e,Gr(t,0,-1))}function bi(e,t){for(var n=e.length,r=ln(t.length,n),o=yo(e);r--;){var i=t[r];e[r]=li(i,n)?o[i]:void 0}return e}function yi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var wi=Ei(Ur),_i=Jt||function(e,t){return Ye.setTimeout(e,t)},ki=Ei($r);function xi(e,t,n){var r=t+"";return ki(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return ct(c,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(J):[]}(r),n)))}function Ei(e){var t=0,n=0;return function(){var r=un(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Si(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Lr(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}var Pi=function(e){var t=Ea(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(q,(function(e,n,r,o){t.push(r?o.replace(te,"$1"):n||e)})),t}));function Ri(e){if("string"==typeof e||Ja(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ii(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bi(e){if(e instanceof Cn)return e.clone();var t=new jn(e.__wrapped__,e.__chain__);return t.__actions__=yo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ti=zr((function(e,t){return La(e)?er(e,ar(t,1,La,!0)):[]})),Ai=zr((function(e,t){var n=Wi(t);return La(n)&&(n=void 0),La(e)?er(e,ar(t,1,La,!0),Jo(n,2)):[]})),ji=zr((function(e,t){var n=Wi(t);return La(n)&&(n=void 0),La(e)?er(e,ar(t,1,La,!0),void 0,n):[]}));function Ci(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:oc(n);return o<0&&(o=cn(r+o,0)),wt(e,Jo(t,3),o)}function Oi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=oc(n),o=n<0?cn(r+o,0):ln(o,r-1)),wt(e,Jo(t,3),o,!0)}function Ni(e){return(null==e?0:e.length)?ar(e,1):[]}function Fi(e){return e&&e.length?e[0]:void 0}var Li=zr((function(e){var t=dt(e,ao);return t.length&&t[0]===e[0]?br(t):[]})),Di=zr((function(e){var t=Wi(e),n=dt(e,ao);return t===Wi(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?br(n,Jo(t,2)):[]})),zi=zr((function(e){var t=Wi(e),n=dt(e,ao);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?br(n,void 0,t):[]}));function Wi(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Mi=zr(Vi);function Vi(e,t){return e&&e.length&&t&&t.length?Nr(e,t):e}var Ui=Go((function(e,t){var n=null==e?0:e.length,r=Kn(e,t);return Fr(e,dt(t,(function(e){return li(e,n)?+e:e})).sort(vo)),r}));function $i(e){return null==e?e:pn.call(e)}var qi=zr((function(e){return Qr(ar(e,1,La,!0))})),Gi=zr((function(e){var t=Wi(e);return La(t)&&(t=void 0),Qr(ar(e,1,La,!0),Jo(t,2))})),Yi=zr((function(e){var t=Wi(e);return t="function"==typeof t?t:void 0,Qr(ar(e,1,La,!0),void 0,t)}));function Hi(e){if(!e||!e.length)return[];var t=0;return e=st(e,(function(e){if(La(e))return t=cn(e.length,t),!0})),Bt(t,(function(t){return dt(e,St(t))}))}function Ki(e,t){if(!e||!e.length)return[];var n=Hi(e);return null==t?n:dt(n,(function(e){return it(t,void 0,e)}))}var Zi=zr((function(e,t){return La(e)?er(e,t):[]})),Xi=zr((function(e){return oo(st(e,La))})),Ji=zr((function(e){var t=Wi(e);return La(t)&&(t=void 0),oo(st(e,La),Jo(t,2))})),Qi=zr((function(e){var t=Wi(e);return t="function"==typeof t?t:void 0,oo(st(e,La),void 0,t)})),ea=zr(Hi);var ta=zr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ki(e,n)}));function na(e){var t=Bn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var oa=Go((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Kn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Cn&&li(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new jn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=_o((function(e,t,n){xe.call(e,n)?++e[n]:Hn(e,n,1)}));var aa=Io(Ci),ca=Io(Oi);function la(e,t){return(Oa(e)?ct:tr)(e,Jo(t,3))}function ua(e,t){return(Oa(e)?lt:nr)(e,Jo(t,3))}var sa=_o((function(e,t,n){xe.call(e,n)?e[n].push(t):Hn(e,n,[t])}));var fa=zr((function(e,t,n){var o=-1,i="function"==typeof t,a=Fa(e)?r(e.length):[];return tr(e,(function(e){a[++o]=i?it(t,e,n):yr(e,t,n)})),a})),pa=_o((function(e,t,n){Hn(e,n,t)}));function da(e,t){return(Oa(e)?dt:Ir)(e,Jo(t,3))}var ma=_o((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ha=zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ui(e,t[0],t[1])?t=[]:n>2&&ui(t[0],t[1],t[2])&&(t=[t[0]]),Cr(e,ar(t,1),[])})),va=Xt||function(){return Ye.Date.now()};function ga(e,t,n){return t=n?void 0:t,Mo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ba(e,t){var n;if("function"!=typeof t)throw new ge(i);return e=oc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=zr((function(e,t,n){var r=1;if(n.length){var o=Ut(n,Xo(ya));r|=32}return Mo(e,r,t,n,o)})),wa=zr((function(e,t,n){var r=3;if(n.length){var o=Ut(n,Xo(wa));r|=32}return Mo(t,r,e,n,o)}));function _a(e,t,n){var r,o,a,c,l,u,s=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new ge(i);function m(t){var n=r,i=o;return r=o=void 0,s=t,c=e.apply(i,n)}function h(e){return s=e,l=_i(g,t),f?m(e):c}function v(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-s>=a}function g(){var e=va();if(v(e))return b(e);l=_i(g,function(e){var n=t-(e-u);return p?ln(n,a-(e-s)):n}(e))}function b(e){return l=void 0,d&&r?m(e):(r=o=void 0,c)}function y(){var e=va(),n=v(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return h(u);if(p)return fo(l),l=_i(g,t),m(u)}return void 0===l&&(l=_i(g,t)),c}return t=ac(t)||0,$a(n)&&(f=!!n.leading,a=(p="maxWait"in n)?cn(ac(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==l&&fo(l),s=0,r=u=o=l=void 0},y.flush=function(){return void 0===l?c:b(va())},y}var ka=zr((function(e,t){return Qn(e,1,t)})),xa=zr((function(e,t,n){return Qn(e,ac(t)||0,n)}));function Ea(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ea.Cache||Fn),n}function Sa(e){if("function"!=typeof e)throw new ge(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ea.Cache=Fn;var Pa=uo((function(e,t){var n=(t=1==t.length&&Oa(t[0])?dt(t[0],At(Jo())):dt(ar(t,1),At(Jo()))).length;return zr((function(r){for(var o=-1,i=ln(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return it(e,this,r)}))})),Ra=zr((function(e,t){return Mo(e,32,void 0,t,Ut(t,Xo(Ra)))})),Ia=zr((function(e,t){return Mo(e,64,void 0,t,Ut(t,Xo(Ia)))})),Ba=Go((function(e,t){return Mo(e,256,void 0,void 0,void 0,t)}));function Ta(e,t){return e===t||e!=e&&t!=t}var Aa=Fo(hr),ja=Fo((function(e,t){return e>=t})),Ca=wr(function(){return arguments}())?wr:function(e){return qa(e)&&xe.call(e,"callee")&&!Ge.call(e,"callee")},Oa=r.isArray,Na=Qe?At(Qe):function(e){return qa(e)&&mr(e)==x};function Fa(e){return null!=e&&Ua(e.length)&&!Ma(e)}function La(e){return qa(e)&&Fa(e)}var Da=nn||al,za=et?At(et):function(e){return qa(e)&&mr(e)==f};function Wa(e){if(!qa(e))return!1;var t=mr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ha(e)}function Ma(e){if(!$a(e))return!1;var t=mr(e);return t==d||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==oc(e)}function Ua(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function $a(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Ga=tt?At(tt):function(e){return qa(e)&&oi(e)==h};function Ya(e){return"number"==typeof e||qa(e)&&mr(e)==v}function Ha(e){if(!qa(e)||mr(e)!=g)return!1;var t=Ve(e);if(null===t)return!0;var n=xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Re}var Ka=nt?At(nt):function(e){return qa(e)&&mr(e)==b};var Za=rt?At(rt):function(e){return qa(e)&&oi(e)==y};function Xa(e){return"string"==typeof e||!Oa(e)&&qa(e)&&mr(e)==w}function Ja(e){return"symbol"==typeof e||qa(e)&&mr(e)==_}var Qa=ot?At(ot):function(e){return qa(e)&&Ua(e.length)&&!!We[mr(e)]};var ec=Fo(Rr),tc=Fo((function(e,t){return e<=t}));function nc(e){if(!e)return[];if(Fa(e))return Xa(e)?Yt(e):yo(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=oi(e);return(t==h?Mt:t==y?$t:Tc)(e)}function rc(e){return e?(e=ac(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function oc(e){var t=rc(e),n=t%1;return t==t?n?t-n:t:0}function ic(e){return e?Zn(oc(e),0,4294967295):0}function ac(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if($a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=ie.test(e);return n||ce.test(e)?$e(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function cc(e){return wo(e,kc(e))}function lc(e){return null==e?"":Jr(e)}var uc=ko((function(e,t){if(di(t)||Fa(t))wo(t,_c(t),e);else for(var n in t)xe.call(t,n)&&$n(e,n,t[n])})),sc=ko((function(e,t){wo(t,kc(t),e)})),fc=ko((function(e,t,n,r){wo(t,kc(t),e,r)})),pc=ko((function(e,t,n,r){wo(t,_c(t),e,r)})),dc=Go(Kn);var mc=zr((function(e,t){e=me(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ui(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=kc(i),c=-1,l=a.length;++c<l;){var u=a[c],s=e[u];(void 0===s||Ta(s,we[u])&&!xe.call(e,u))&&(e[u]=i[u])}return e})),hc=zr((function(e){return e.push(void 0,Uo),it(Ec,void 0,e)}));function vc(e,t,n){var r=null==e?void 0:pr(e,t);return void 0===r?n:r}function gc(e,t){return null!=e&&ii(e,t,gr)}var bc=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),e[t]=n}),$c(Yc)),yc=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),xe.call(e,t)?e[t].push(n):e[t]=[n]}),Jo),wc=zr(yr);function _c(e){return Fa(e)?zn(e):Sr(e)}function kc(e){return Fa(e)?zn(e,!0):Pr(e)}var xc=ko((function(e,t,n){Ar(e,t,n)})),Ec=ko((function(e,t,n,r){Ar(e,t,n,r)})),Sc=Go((function(e,t){var n={};if(null==e)return n;var r=!1;t=dt(t,(function(t){return t=lo(t,e),r||(r=t.length>1),t})),wo(e,Ho(e),n),r&&(n=Xn(n,7,$o));for(var o=t.length;o--;)eo(n,t[o]);return n}));var Pc=Go((function(e,t){return null==e?{}:function(e,t){return Or(e,t,(function(t,n){return gc(e,n)}))}(e,t)}));function Rc(e,t){if(null==e)return{};var n=dt(Ho(e),(function(e){return[e]}));return t=Jo(t),Or(e,n,(function(e,n){return t(e,n[0])}))}var Ic=Wo(_c),Bc=Wo(kc);function Tc(e){return null==e?[]:jt(e,_c(e))}var Ac=Po((function(e,t,n){return t=t.toLowerCase(),e+(n?jc(t):t)}));function jc(e){return Wc(lc(e).toLowerCase())}function Cc(e){return(e=lc(e))&&e.replace(ue,Lt).replace(Ce,"")}var Oc=Po((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Nc=Po((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fc=So("toLowerCase");var Lc=Po((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Dc=Po((function(e,t,n){return e+(n?" ":"")+Wc(t)}));var zc=Po((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Wc=So("toUpperCase");function Mc(e,t,n){return e=lc(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var Vc=zr((function(e,t){try{return it(e,void 0,t)}catch(e){return Wa(e)?e:new K(e)}})),Uc=Go((function(e,t){return ct(t,(function(t){t=Ri(t),Hn(e,t,ya(e[t],e))})),e}));function $c(e){return function(){return e}}var qc=Bo(),Gc=Bo(!0);function Yc(e){return e}function Hc(e){return Er("function"==typeof e?e:Xn(e,1))}var Kc=zr((function(e,t){return function(n){return yr(n,e,t)}})),Zc=zr((function(e,t){return function(n){return yr(e,n,t)}}));function Xc(e,t,n){var r=_c(t),o=fr(t,r);null!=n||$a(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,_c(t)));var i=!($a(n)&&"chain"in n&&!n.chain),a=Ma(e);return ct(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=yo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,mt([this.value()],arguments))})})),e}function Jc(){}var Qc=Co(dt),el=Co(ut),tl=Co(gt);function nl(e){return si(e)?St(Ri(e)):function(e){return function(t){return pr(t,e)}}(e)}var rl=No(),ol=No(!0);function il(){return[]}function al(){return!1}var cl=jo((function(e,t){return e+t}),0),ll=Do("ceil"),ul=jo((function(e,t){return e/t}),1),sl=Do("floor");var fl,pl=jo((function(e,t){return e*t}),1),dl=Do("round"),ml=jo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new ge(i);return e=oc(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=ga,Bn.assign=uc,Bn.assignIn=sc,Bn.assignInWith=fc,Bn.assignWith=pc,Bn.at=dc,Bn.before=ba,Bn.bind=ya,Bn.bindAll=Uc,Bn.bindKey=wa,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Oa(e)?e:[e]},Bn.chain=na,Bn.chunk=function(e,t,n){t=(n?ui(e,t,n):void 0===t)?1:cn(oc(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,c=r(Qt(o/t));i<o;)c[a++]=Gr(e,i,i+=t);return c},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return mt(Oa(n)?yo(n):[n],ar(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=Jo();return e=t?dt(e,(function(e){if("function"!=typeof e[1])throw new ge(i);return[n(e[0]),e[1]]})):[],zr((function(n){for(var r=-1;++r<t;){var o=e[r];if(it(o[0],this,n))return it(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=_c(e);return function(n){return Jn(n,e,t)}}(Xn(e,1))},Bn.constant=$c,Bn.countBy=ia,Bn.create=function(e,t){var n=Tn(e);return null==t?n:Yn(n,t)},Bn.curry=function e(t,n,r){var o=Mo(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},Bn.curryRight=function e(t,n,r){var o=Mo(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},Bn.debounce=_a,Bn.defaults=mc,Bn.defaultsDeep=hc,Bn.defer=ka,Bn.delay=xa,Bn.difference=Ti,Bn.differenceBy=Ai,Bn.differenceWith=ji,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=n||void 0===t?1:oc(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,0,(t=r-(t=n||void 0===t?1:oc(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?no(e,Jo(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?no(e,Jo(t,3),!0):[]},Bn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ui(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=oc(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:oc(r))<0&&(r+=o),r=n>r?0:ic(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Oa(e)?st:ir)(e,Jo(t,3))},Bn.flatMap=function(e,t){return ar(da(e,t),1)},Bn.flatMapDeep=function(e,t){return ar(da(e,t),1/0)},Bn.flatMapDepth=function(e,t,n){return n=void 0===n?1:oc(n),ar(da(e,t),n)},Bn.flatten=Ni,Bn.flattenDeep=function(e){return(null==e?0:e.length)?ar(e,1/0):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?ar(e,t=void 0===t?1:oc(t)):[]},Bn.flip=function(e){return Mo(e,512)},Bn.flow=qc,Bn.flowRight=Gc,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:fr(e,_c(e))},Bn.functionsIn=function(e){return null==e?[]:fr(e,kc(e))},Bn.groupBy=sa,Bn.initial=function(e){return(null==e?0:e.length)?Gr(e,0,-1):[]},Bn.intersection=Li,Bn.intersectionBy=Di,Bn.intersectionWith=zi,Bn.invert=bc,Bn.invertBy=yc,Bn.invokeMap=fa,Bn.iteratee=Hc,Bn.keyBy=pa,Bn.keys=_c,Bn.keysIn=kc,Bn.map=da,Bn.mapKeys=function(e,t){var n={};return t=Jo(t,3),ur(e,(function(e,r,o){Hn(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=Jo(t,3),ur(e,(function(e,r,o){Hn(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(Xn(e,1))},Bn.matchesProperty=function(e,t){return Tr(e,Xn(t,1))},Bn.memoize=Ea,Bn.merge=xc,Bn.mergeWith=Ec,Bn.method=Kc,Bn.methodOf=Zc,Bn.mixin=Xc,Bn.negate=Sa,Bn.nthArg=function(e){return e=oc(e),zr((function(t){return jr(t,e)}))},Bn.omit=Sc,Bn.omitBy=function(e,t){return Rc(e,Sa(Jo(t)))},Bn.once=function(e){return ba(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Oa(t)||(t=null==t?[]:[t]),Oa(n=r?void 0:n)||(n=null==n?[]:[n]),Cr(e,t,n))},Bn.over=Qc,Bn.overArgs=Pa,Bn.overEvery=el,Bn.overSome=tl,Bn.partial=Ra,Bn.partialRight=Ia,Bn.partition=ma,Bn.pick=Pc,Bn.pickBy=Rc,Bn.property=nl,Bn.propertyOf=function(e){return function(t){return null==e?void 0:pr(e,t)}},Bn.pull=Mi,Bn.pullAll=Vi,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,Jo(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,void 0,n):e},Bn.pullAt=Ui,Bn.range=rl,Bn.rangeRight=ol,Bn.rearg=Ba,Bn.reject=function(e,t){return(Oa(e)?st:ir)(e,Sa(Jo(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Jo(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Fr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new ge(i);return zr(e,t=void 0===t?t:oc(t))},Bn.reverse=$i,Bn.sampleSize=function(e,t,n){return t=(n?ui(e,t,n):void 0===t)?1:oc(t),(Oa(e)?Mn:Mr)(e,t)},Bn.set=function(e,t,n){return null==e?e:Vr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Vr(e,t,n,r)},Bn.shuffle=function(e){return(Oa(e)?Vn:qr)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ui(e,t,n)?(t=0,n=r):(t=null==t?0:oc(t),n=void 0===n?r:oc(n)),Gr(e,t,n)):[]},Bn.sortBy=ha,Bn.sortedUniq=function(e){return e&&e.length?Zr(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?Zr(e,Jo(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&ui(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=lc(e))&&("string"==typeof t||null!=t&&!Ka(t))&&!(t=Jr(t))&&Wt(e)?so(Yt(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new ge(i);return t=null==t?0:cn(oc(t),0),zr((function(n){var r=n[t],o=so(n,0,t);return r&&mt(o,r),it(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:oc(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:oc(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?no(e,Jo(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?no(e,Jo(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ge(i);return $a(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_a(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=ra,Bn.toArray=nc,Bn.toPairs=Ic,Bn.toPairsIn=Bc,Bn.toPath=function(e){return Oa(e)?dt(e,Ri):Ja(e)?[e]:yo(Pi(lc(e)))},Bn.toPlainObject=cc,Bn.transform=function(e,t,n){var r=Oa(e),o=r||Da(e)||Qa(e);if(t=Jo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:$a(e)&&Ma(i)?Tn(Ve(e)):{}}return(o?ct:ur)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return ga(e,1)},Bn.union=qi,Bn.unionBy=Gi,Bn.unionWith=Yi,Bn.uniq=function(e){return e&&e.length?Qr(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?Qr(e,Jo(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Bn.unset=function(e,t){return null==e||eo(e,t)},Bn.unzip=Hi,Bn.unzipWith=Ki,Bn.update=function(e,t,n){return null==e?e:to(e,t,co(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,co(n),r)},Bn.values=Tc,Bn.valuesIn=function(e){return null==e?[]:jt(e,kc(e))},Bn.without=Zi,Bn.words=Mc,Bn.wrap=function(e,t){return Ra(co(t),e)},Bn.xor=Xi,Bn.xorBy=Ji,Bn.xorWith=Qi,Bn.zip=ea,Bn.zipObject=function(e,t){return io(e||[],t||[],$n)},Bn.zipObjectDeep=function(e,t){return io(e||[],t||[],Vr)},Bn.zipWith=ta,Bn.entries=Ic,Bn.entriesIn=Bc,Bn.extend=sc,Bn.extendWith=fc,Xc(Bn,Bn),Bn.add=cl,Bn.attempt=Vc,Bn.camelCase=Ac,Bn.capitalize=jc,Bn.ceil=ll,Bn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=ac(n))==n?n:0),void 0!==t&&(t=(t=ac(t))==t?t:0),Zn(ac(e),t,n)},Bn.clone=function(e){return Xn(e,4)},Bn.cloneDeep=function(e){return Xn(e,5)},Bn.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},Bn.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},Bn.conformsTo=function(e,t){return null==t||Jn(e,t,_c(t))},Bn.deburr=Cc,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=ul,Bn.endsWith=function(e,t,n){e=lc(e),t=Jr(t);var r=e.length,o=n=void 0===n?r:Zn(oc(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Bn.eq=Ta,Bn.escape=function(e){return(e=lc(e))&&z.test(e)?e.replace(L,Dt):e},Bn.escapeRegExp=function(e){return(e=lc(e))&&Y.test(e)?e.replace(G,"\\$&"):e},Bn.every=function(e,t,n){var r=Oa(e)?ut:rr;return n&&ui(e,t,n)&&(t=void 0),r(e,Jo(t,3))},Bn.find=aa,Bn.findIndex=Ci,Bn.findKey=function(e,t){return yt(e,Jo(t,3),ur)},Bn.findLast=ca,Bn.findLastIndex=Oi,Bn.findLastKey=function(e,t){return yt(e,Jo(t,3),sr)},Bn.floor=sl,Bn.forEach=la,Bn.forEachRight=ua,Bn.forIn=function(e,t){return null==e?e:cr(e,Jo(t,3),kc)},Bn.forInRight=function(e,t){return null==e?e:lr(e,Jo(t,3),kc)},Bn.forOwn=function(e,t){return e&&ur(e,Jo(t,3))},Bn.forOwnRight=function(e,t){return e&&sr(e,Jo(t,3))},Bn.get=vc,Bn.gt=Aa,Bn.gte=ja,Bn.has=function(e,t){return null!=e&&ii(e,t,vr)},Bn.hasIn=gc,Bn.head=Fi,Bn.identity=Yc,Bn.includes=function(e,t,n,r){e=Fa(e)?e:Tc(e),n=n&&!r?oc(n):0;var o=e.length;return n<0&&(n=cn(o+n,0)),Xa(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&_t(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:oc(n);return o<0&&(o=cn(r+o,0)),_t(e,t,o)},Bn.inRange=function(e,t,n){return t=rc(t),void 0===n?(n=t,t=0):n=rc(n),function(e,t,n){return e>=ln(t,n)&&e<cn(t,n)}(e=ac(e),t,n)},Bn.invoke=wc,Bn.isArguments=Ca,Bn.isArray=Oa,Bn.isArrayBuffer=Na,Bn.isArrayLike=Fa,Bn.isArrayLikeObject=La,Bn.isBoolean=function(e){return!0===e||!1===e||qa(e)&&mr(e)==s},Bn.isBuffer=Da,Bn.isDate=za,Bn.isElement=function(e){return qa(e)&&1===e.nodeType&&!Ha(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Fa(e)&&(Oa(e)||"string"==typeof e||"function"==typeof e.splice||Da(e)||Qa(e)||Ca(e)))return!e.length;var t=oi(e);if(t==h||t==y)return!e.size;if(di(e))return!Sr(e).length;for(var n in e)if(xe.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return _r(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},Bn.isError=Wa,Bn.isFinite=function(e){return"number"==typeof e&&rn(e)},Bn.isFunction=Ma,Bn.isInteger=Va,Bn.isLength=Ua,Bn.isMap=Ga,Bn.isMatch=function(e,t){return e===t||kr(e,t,ei(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,kr(e,t,ei(t),n)},Bn.isNaN=function(e){return Ya(e)&&e!=+e},Bn.isNative=function(e){if(pi(e))throw new K("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=Ya,Bn.isObject=$a,Bn.isObjectLike=qa,Bn.isPlainObject=Ha,Bn.isRegExp=Ka,Bn.isSafeInteger=function(e){return Va(e)&&e>=-9007199254740991&&e<=9007199254740991},Bn.isSet=Za,Bn.isString=Xa,Bn.isSymbol=Ja,Bn.isTypedArray=Qa,Bn.isUndefined=function(e){return void 0===e},Bn.isWeakMap=function(e){return qa(e)&&oi(e)==k},Bn.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==mr(e)},Bn.join=function(e,t){return null==e?"":on.call(e,t)},Bn.kebabCase=Oc,Bn.last=Wi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=oc(n))<0?cn(r+o,0):ln(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):wt(e,xt,o,!0)},Bn.lowerCase=Nc,Bn.lowerFirst=Fc,Bn.lt=ec,Bn.lte=tc,Bn.max=function(e){return e&&e.length?or(e,Yc,hr):void 0},Bn.maxBy=function(e,t){return e&&e.length?or(e,Jo(t,2),hr):void 0},Bn.mean=function(e){return Et(e,Yc)},Bn.meanBy=function(e,t){return Et(e,Jo(t,2))},Bn.min=function(e){return e&&e.length?or(e,Yc,Rr):void 0},Bn.minBy=function(e,t){return e&&e.length?or(e,Jo(t,2),Rr):void 0},Bn.stubArray=il,Bn.stubFalse=al,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=pl,Bn.nth=function(e,t){return e&&e.length?jr(e,oc(t)):void 0},Bn.noConflict=function(){return Ye._===this&&(Ye._=Ie),this},Bn.noop=Jc,Bn.now=va,Bn.pad=function(e,t,n){e=lc(e);var r=(t=oc(t))?Gt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Oo(en(o),n)+e+Oo(Qt(o),n)},Bn.padEnd=function(e,t,n){e=lc(e);var r=(t=oc(t))?Gt(e):0;return t&&r<t?e+Oo(t-r,n):e},Bn.padStart=function(e,t,n){e=lc(e);var r=(t=oc(t))?Gt(e):0;return t&&r<t?Oo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),sn(lc(e).replace(H,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ui(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=rc(e),void 0===t?(t=e,e=0):t=rc(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return ln(e+o*(t-e+Ue("1e-"+((o+"").length-1))),t)}return Lr(e,t)},Bn.reduce=function(e,t,n){var r=Oa(e)?ht:Rt,o=arguments.length<3;return r(e,Jo(t,4),n,o,tr)},Bn.reduceRight=function(e,t,n){var r=Oa(e)?vt:Rt,o=arguments.length<3;return r(e,Jo(t,4),n,o,nr)},Bn.repeat=function(e,t,n){return t=(n?ui(e,t,n):void 0===t)?1:oc(t),Dr(lc(e),t)},Bn.replace=function(){var e=arguments,t=lc(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,o=(t=lo(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Ri(t[r])];void 0===i&&(r=o,i=n),e=Ma(i)?i.call(e):i}return e},Bn.round=dl,Bn.runInContext=e,Bn.sample=function(e){return(Oa(e)?Wn:Wr)(e)},Bn.size=function(e){if(null==e)return 0;if(Fa(e))return Xa(e)?Gt(e):e.length;var t=oi(e);return t==h||t==y?e.size:Sr(e).length},Bn.snakeCase=Lc,Bn.some=function(e,t,n){var r=Oa(e)?gt:Yr;return n&&ui(e,t,n)&&(t=void 0),r(e,Jo(t,3))},Bn.sortedIndex=function(e,t){return Hr(e,t)},Bn.sortedIndexBy=function(e,t,n){return Kr(e,t,Jo(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Hr(e,t);if(r<n&&Ta(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return Hr(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return Kr(e,t,Jo(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Hr(e,t,!0)-1;if(Ta(e[n],t))return n}return-1},Bn.startCase=Dc,Bn.startsWith=function(e,t,n){return e=lc(e),n=null==n?0:Zn(oc(n),0,e.length),t=Jr(t),e.slice(n,n+t.length)==t},Bn.subtract=ml,Bn.sum=function(e){return e&&e.length?It(e,Yc):0},Bn.sumBy=function(e,t){return e&&e.length?It(e,Jo(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&ui(e,t,n)&&(t=void 0),e=lc(e),t=fc({},t,r,Vo);var o,i,a=fc({},t.imports,r.imports,Vo),c=_c(a),l=jt(a,c),u=0,s=t.interpolate||se,f="__p += '",p=he((t.escape||se).source+"|"+s.source+"|"+(s===V?ne:se).source+"|"+(t.evaluate||se).source+"|$","g"),d="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ze+"]")+"\n";e.replace(p,(function(t,n,r,a,c,l){return r||(r=a),f+=e.slice(u,l).replace(fe,zt),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),c&&(i=!0,f+="';\n"+c+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),f+="';\n";var m=xe.call(t,"variable")&&t.variable;if(m){if(ee.test(m))throw new K("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(C,""):f).replace(O,"$1").replace(N,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var h=Vc((function(){return pe(c,d+"return "+f).apply(void 0,l)}));if(h.source=f,Wa(h))throw h;return h},Bn.times=function(e,t){if((e=oc(e))<1||e>9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var o=Bt(r,t=Jo(t));++n<e;)t(n);return o},Bn.toFinite=rc,Bn.toInteger=oc,Bn.toLength=ic,Bn.toLower=function(e){return lc(e).toLowerCase()},Bn.toNumber=ac,Bn.toSafeInteger=function(e){return e?Zn(oc(e),-9007199254740991,9007199254740991):0===e?e:0},Bn.toString=lc,Bn.toUpper=function(e){return lc(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=lc(e))&&(n||void 0===t))return Tt(e);if(!e||!(t=Jr(t)))return e;var r=Yt(e),o=Yt(t);return so(r,Ot(r,o),Nt(r,o)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=lc(e))&&(n||void 0===t))return e.slice(0,Ht(e)+1);if(!e||!(t=Jr(t)))return e;var r=Yt(e);return so(r,0,Nt(r,Yt(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=lc(e))&&(n||void 0===t))return e.replace(H,"");if(!e||!(t=Jr(t)))return e;var r=Yt(e);return so(r,Ot(r,Yt(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if($a(t)){var o="separator"in t?t.separator:o;n="length"in t?oc(t.length):n,r="omission"in t?Jr(t.omission):r}var i=(e=lc(e)).length;if(Wt(e)){var a=Yt(e);i=a.length}if(n>=i)return e;var c=n-Gt(r);if(c<1)return r;var l=a?so(a,0,c).join(""):e.slice(0,c);if(void 0===o)return l+r;if(a&&(c+=l.length-c),Ka(o)){if(e.slice(c).search(o)){var u,s=l;for(o.global||(o=he(o.source,lc(re.exec(o))+"g")),o.lastIndex=0;u=o.exec(s);)var f=u.index;l=l.slice(0,void 0===f?c:f)}}else if(e.indexOf(Jr(o),c)!=c){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},Bn.unescape=function(e){return(e=lc(e))&&D.test(e)?e.replace(F,Kt):e},Bn.uniqueId=function(e){var t=++Ee;return lc(e)+t},Bn.upperCase=zc,Bn.upperFirst=Wc,Bn.each=la,Bn.eachRight=ua,Bn.first=Fi,Xc(Bn,(fl={},ur(Bn,(function(e,t){xe.call(Bn.prototype,t)||(fl[t]=e)})),fl),{chain:!1}),Bn.VERSION="4.17.21",ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),ct(["drop","take"],(function(e,t){Cn.prototype[e]=function(n){n=void 0===n?1:cn(oc(n),0);var r=this.__filtered__&&!t?new Cn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Cn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Cn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Jo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Cn.prototype[e]=function(){return this[n](1).value()[0]}})),ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Cn.prototype[e]=function(){return this.__filtered__?new Cn(this):this[n](1)}})),Cn.prototype.compact=function(){return this.filter(Yc)},Cn.prototype.find=function(e){return this.filter(e).head()},Cn.prototype.findLast=function(e){return this.reverse().find(e)},Cn.prototype.invokeMap=zr((function(e,t){return"function"==typeof e?new Cn(this):this.map((function(n){return yr(n,e,t)}))})),Cn.prototype.reject=function(e){return this.filter(Sa(Jo(e)))},Cn.prototype.slice=function(e,t){e=oc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Cn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=oc(t))<0?n.dropRight(-t):n.take(t-e)),n)},Cn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Cn.prototype.toArray=function(){return this.take(4294967295)},ur(Cn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Bn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Bn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Cn,l=a[0],u=c||Oa(t),s=function(e){var t=o.apply(Bn,mt([e],a));return r&&f?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,m=c&&!p;if(!i&&u){t=m?t:new Cn(this);var h=e.apply(t,a);return h.__actions__.push({func:ra,args:[s],thisArg:void 0}),new jn(h,f)}return d&&m?e.apply(this,a):(h=this.thru(s),d?r?h.value()[0]:h.value():h)})})),ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Oa(o)?o:[],e)}return this[n]((function(n){return t.apply(Oa(n)?n:[],e)}))}})),ur(Cn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";xe.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[To(void 0,2).name]=[{name:"wrapper",func:void 0}],Cn.prototype.clone=function(){var e=new Cn(this.__wrapped__);return e.__actions__=yo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yo(this.__views__),e},Cn.prototype.reverse=function(){if(this.__filtered__){var e=new Cn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Cn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Oa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=ln(t,e+a);break;case"takeRight":e=cn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,c=i.end,l=c-a,u=r?c:a-1,s=this.__iteratees__,f=s.length,p=0,d=ln(l,this.__takeCount__);if(!n||!r&&o==l&&d==l)return ro(e,this.__actions__);var m=[];e:for(;l--&&p<d;){for(var h=-1,v=e[u+=t];++h<f;){var g=s[h],b=g.iteratee,y=g.type,w=b(v);if(2==y)v=w;else if(!w){if(1==y)continue e;break e}}m[p++]=v}return m},Bn.prototype.at=oa,Bn.prototype.chain=function(){return na(this)},Bn.prototype.commit=function(){return new jn(this.value(),this.__chain__)},Bn.prototype.next=function(){void 0===this.__values__&&(this.__values__=nc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof An;){var r=Bi(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Cn){var t=e;return this.__actions__.length&&(t=new Cn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[$i],thisArg:void 0}),new jn(t,this.__chain__)}return this.thru($i)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Xe&&(Bn.prototype[Xe]=function(){return this}),Bn}();Ye._=Zt,void 0===(o=function(){return Zt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(7),n(8)(e))},function(e,t,n){var r;!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 i(e){return c(u(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}function c(e,t){var n,r,a,c,l,u,s,f,p,d=1,m=e.length,h="";for(r=0;r<m;r++)if("string"==typeof e[r])h+=e[r];else if("object"==typeof e[r]){if((c=e[r]).keys)for(n=t[d],a=0;a<c.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',c.keys[a],c.keys[a-1]));n=n[c.keys[a]]}else n=c.param_no?t[c.param_no]:t[d++];if(o.not_type.test(c.type)&&o.not_primitive.test(c.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(c.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(c.type)&&(f=n>=0),c.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,c.width?parseInt(c.width):0);break;case"e":n=c.precision?parseFloat(n).toExponential(c.precision):parseFloat(n).toExponential();break;case"f":n=c.precision?parseFloat(n).toFixed(c.precision):parseFloat(n);break;case"g":n=c.precision?String(Number(n.toPrecision(c.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=c.precision?n.substring(0,c.precision):n;break;case"t":n=String(!!n),n=c.precision?n.substring(0,c.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=c.precision?n.substring(0,c.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=c.precision?n.substring(0,c.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(c.type)?h+=n:(!o.number.test(c.type)||f&&!c.sign?p="":(p=f?"+":"-",n=n.toString().replace(o.sign,"")),u=c.pad_char?"0"===c.pad_char?"0":c.pad_char.charAt(1):" ",s=c.width-(p+n).length,l=c.width&&s>0?u.repeat(s):"",h+=c.align?p+n+l:"0"===u?p+l+n:l+p+n)}return h}var l=Object.create(null);function u(e){if(l[e])return l[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],c=t[2],u=[];if(null===(u=o.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(c=c.substring(u[0].length));)if(null!==(u=o.key_access.exec(c)))a.push(u[1]);else{if(null===(u=o.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return l[e]=r}t.sprintf=i,t.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(r=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,a,c=n,l=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(a=0;a<l;a++)if(c.args[a]!==arguments[a]){c=c.next;continue e}return c!==n&&(c===r&&(r=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n,c.prev=null,n.prev=c,n=c),c.val}c=c.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return c={args:i,val:e.apply(null,i)},n?(n.prev=c,c.next=n):r=c,o===t.maxSize?(r=r.prev).next=null:o++,n=c,c.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}},function(e,t,n){var r=n(1),o=n(6);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,'*,: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:22px;width:22px;margin-left:-2px}.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{margin:0 3% 3.6% 0;border:none;position:relative;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;overflow:hidden;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:normal;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, #ffffff1c, rgba(255, 255, 255, 0.2), #ffffff2b);-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;overflow-y:auto;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}',""]),t.default=o},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(1),o=n(10);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,'.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:transparent;border-right-color:transparent;border-top:none;margin-left:0px}',""]),t.default=o},function(e,t,n){var r=n(1),o=n(12);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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:0px;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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(14);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".logo-wrap{align-self:center;margin-left:18px;width:250px}.logo-wrap .logo{display:flex;align-items:center;cursor:pointer}.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:bold}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(16);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(18);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,'.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;width:108px;padding:18px 0;display:inline-block;text-align:center;font-weight:600;color:#444;font-size:13px;border-bottom:3px solid transparent;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}',""]),t.default=o},function(e,t,n){var r=n(1),o=n(20);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}.header .search-form .button{border:none;padding:0px 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:transparent;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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(22);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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 0px 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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(24);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".no-search-result{padding:7em 0;text-align:center;color:#6d7882;flex:1;right:0;top:0em !important}.no-search-result h3{margin-bottom:1.2em;font-size:1.3rem;font-weight:normal;color:#666;margin-top:0}.no-search-result p{font-size:13px;margin:0}.no-search-result-description a{text-decoration:none}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(26);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(28);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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%}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(30);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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 0px 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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(32);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(34);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(36);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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%}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(38);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".ast-block-templates-full-preview{text-align:center}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(40);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(42);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,".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}",""]),t.default=o},function(e,t,n){var r=n(1),o=n(44);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,"",""]),t.default=o},function(e,t,n){var r=n(1),o=n(46);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,'.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:transparent;border-right-color:transparent;border-bottom:none;margin-left:0px}.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}',""]),t.default=o},function(e,t,n){var r=n(1),o=n(48);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r)()(!1);o.push([e.i,"",""]),t.default=o},function(e,t,n){"use strict";n.r(t);n(5);var r=n(2),o=n.n(r),i=function(e,t,n,o){var i=AstBlockTemplatesVars.allBlocks,a=[];e&&(a=i.filter((function(t){return t.title.toLowerCase().includes(e.toLowerCase())})));var c=[];return n&&(c=i.filter((function(e){var t=Object.values(e.tag);if(t.length){for(var r in t)if(t[r].toLowerCase().includes(n.toLowerCase()))return!0;return!1}return!0}))),(e||n)&&(i=Object(r.unionBy)(a,c,"ID")),t&&(i=i.filter((function(e){return parseInt(t)===parseInt(e.category)}))),o&&(i=i.filter((function(e){return o===e.filter}))),i},a=function(e){var t=[];for(var n in AstBlockTemplatesVars.allSites){var o=AstBlockTemplatesVars.allSites[n],i=o.pages||{};if(Object.values(i).length)for(var a in i)i[a]["site-ID"]=o.ID,i[a]["site-title"]=o.title,t.push(i[a])}var c=[];e&&(c=t.filter((function(t){return t.title.toLowerCase().includes(e.toLowerCase())})));var l=[];e&&(l=t.filter((function(t){return t["site-title"].toLowerCase().includes(e.toLowerCase())})));var u=[];return e&&(u=t.filter((function(t){if("tag"in t){var n=Object.values(t.tag)||[];if(n.length)for(var r in n)if(n[r].toLowerCase().includes(e.toLowerCase()))return!0;return!1}return!0}))),e&&(t=Object(r.unionBy)(c,u,l,"ID")),t};function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={togglePopup:!1,allBlocks:AstBlockTemplatesVars.allBlocks,allSites:AstBlockTemplatesVars.allSites,allPages:[],currentScreen:"all-sites-grid",previousScreen:"",filterBlocksByCategory:"",filterBlocksByColor:"dark",filterBlocksBySearchTerm:"",filterPagesByPageType:"",filterPagesBySearchTerm:"",pagePreview:{},sitePreview:{},fullWidthPagePreview:{},fullWidthBlockPreview:{},notice:{},importItemInfo:{},displayDynamicPopup:!1},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;if("SET_DISPLAY_DYNAMIC_POPUP"===t.type)return l(l({},e),{},{displayDynamicPopup:t.displayDynamicPopup});if("SET_STATE"===t.type)return l(l({},e),t.state);if("FULL_WIDTH_PAGE_PREVIEW"===t.type)return l(l({},e),{},{fullWidthPagePreview:t.fullWidthPagePreview});if("FULL_WIDTH_BLOCK_PREVIEW"===t.type)return l(l({},e),{},{fullWidthBlockPreview:t.fullWidthBlockPreview});if("SET_IMPORT_ITEM_INFO"===t.type)return l(l({},e),{},{importItemInfo:t.importItemInfo});if("SET_NOTICE"===t.type)return l(l({},e),{},{notice:t.notice});if("SET_SEARCH_PAGE_PREVIEW"===t.type){var n=[],r=t.item["site-ID"]||"";return r&&(n=e.allSites.filter((function(e){return r===e.ID})))&&(n=n[0]),l(l({},e),{},{sitePreview:n,pagePreview:t.item})}if("SET_CURRENT_SCREEN"===t.type){var o="all-sites-grid"===t.currentScreen||"all-blocks-grid"===t.currentScree?"":e.currentScreen;return l(l({},e),{},{currentScreen:t.currentScreen,previousScreen:o})}return"SET_PREVIOUS_SCREEN"===t.type?l(l({},e),{},{previousScreen:t.previousScreen}):"TOGGLE_POPUP"===t.type?l(l({},s),{},{togglePopup:!e.togglePopup}):"SET_SITE_PREVIEW"===t.type?l(l({},e),{},{sitePreview:t.sitePreview}):"SET_PAGE_PREVIEW"===t.type?l(l({},e),{},{pagePreview:t.pagePreview}):"SET_FULL_PREVIEW"===t.type?l(l({},e),{},{fullWidthPreview:t.fullWidthPreview}):"SET_FILTER_BLOCKS_BY_CATEGORY"===t.type?l(l({},e),{},{allBlocks:i("",t.filterBlocksByCategory,"",e.filterBlocksByColor),filterBlocksBySearchTerm:"",filterBlocksByCategory:t.filterBlocksByCategory}):"SET_FILTER_BLOCKS_BY_COLOR"===t.type?l(l({},e),{},{allBlocks:i("",e.filterBlocksByCategory,"",t.filterBlocksByColor),filterBlocksBySearchTerm:"",filterBlocksByColor:t.filterBlocksByColor}):"SET_FILTER_BLOCKS_BY_SEARCH_TERM"===t.type?l(l({},e),{},{allBlocks:i(t.filterBlocksBySearchTerm,"",t.filterBlocksBySearchTerm,""),filterBlocksByColor:"",filterBlocksByCategory:"",filterBlocksBySearchTerm:t.filterBlocksBySearchTerm}):"SET_FILTER_PAGES_BY_SEARCH_TERM"===t.type?t.filterPagesBySearchTerm.length?l(l({},e),{},{allPages:a(t.filterPagesBySearchTerm),filterPagesBySearchTerm:t.filterPagesBySearchTerm}):l(l({},e),{},{allPages:[],filterPagesBySearchTerm:t.filterPagesBySearchTerm}):"SET_ALL_PAGES"===t.type?l(l({},e),{},{allPages:t.allPages}):e};function p(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m={getTogglePopup:function(e){return e.togglePopup},getAllBlocks:function(e){return e.allBlocks},getAllSites:function(e){return e.allSites},getCount:function(e){return e.count},getCurrentScreen:function(e){return e.currentScreen},getPreviousScreen:function(e){return e.previousScreen},getSearchTerm:function(e){return e.searchTerm},getSitePreview:function(e){return e.sitePreview},getNotice:function(e){return e.notice},getImportItemInfo:function(e){return e.importItemInfo},getPagePreview:function(e){return e.pagePreview},getFullWidthPreview:function(e){return e.fullWidthPreview},getFilterBlocksByCategory:function(e){return e.filterBlocksByCategory},getFilterBlocksByColor:function(e){return e.filterBlocksByColor},getFilterBlocksBySearchTerm:function(e){return e.filterBlocksBySearchTerm},getFilterPagesByPageType:function(e){return e.filterPagesByPageType},getFilterPagesBySearchTerm:function(e){return e.filterPagesBySearchTerm},getFullWidthPagePreview:function(e){return e.fullWidthPagePreview},getFullWidthBlockPreview:function(e){return e.fullWidthBlockPreview},getAllPages:function(e){return e.allPages},getBlockSearchInput:function(e){return e.blockSearchInput},getDisplayDynamicPopup:function(e){return e.displayDynamicPopup}},h={setTogglePopup:function(){return{type:"TOGGLE_POPUP"}},setFullWidthPagePreview:function(e){return{type:"FULL_WIDTH_PAGE_PREVIEW",fullWidthPagePreview:e}},setFullWidthBlockPreview:function(e){return{type:"FULL_WIDTH_BLOCK_PREVIEW",fullWidthBlockPreview:e}},setCurrentScreen:function(e){return{type:"SET_CURRENT_SCREEN",currentScreen:e}},setPreviousScreen:function(e){return{type:"SET_PREVIOUS_SCREEN",previousScreen:e}},setSitePreview:function(e){return{type:"SET_SITE_PREVIEW",sitePreview:e}},setSearchPagePreview:function(e){return{type:"SET_SEARCH_PAGE_PREVIEW",item:e}},setNotice:function(e){return{type:"SET_NOTICE",notice:e}},setPagePreview:function(e){return{type:"SET_PAGE_PREVIEW",pagePreview:e}},setFullWidthPreview:function(e){return{type:"SET_FULL_PREVIEW",fullWidthPreview:e}},setSearchTerm:function(e){return{type:"SEARCH_TERM",searchTerm:e}},setFilterBlocksByCategory:function(e){return{type:"SET_FILTER_BLOCKS_BY_CATEGORY",filterBlocksByCategory:e}},setFilterBlocksByColor:function(e){return{type:"SET_FILTER_BLOCKS_BY_COLOR",filterBlocksByColor:e}},setImportItemInfo:function(e){return{type:"SET_IMPORT_ITEM_INFO",importItemInfo:e}},setFilterBlocksBySearchTerm:function(e){return{type:"SET_FILTER_BLOCKS_BY_SEARCH_TERM",filterBlocksBySearchTerm:e}},setFilterPagesByPageType:function(e){return{type:"SET_FILTER_PAGES_BY_PAGE_TYPE",filterPagesByPageType:e}},setFilterPagesBySearchTerm:function(e){return{type:"SET_FILTER_PAGES_BY_SEARCH_TERM",filterPagesBySearchTerm:e}},setAllPages:function(e){return{type:"SET_ALL_PAGES",allPages:e}},setState:function(e){return{type:"SET_STATE",state:e}},setDisplayDynamicPopup:function(e){return{type:"SET_DISPLAY_DYNAMIC_POPUP",displayDynamicPopup:e}}};(function(e){var t,n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return n.apply(void 0,arguments)}};t=[].map((function(e){return e(o)})),n=r.flowRight.apply(void 0,p(t))(e.dispatch),e.dispatch=n})((0,wp.data.registerStore)("ast-block-templates",{reducer:f,actions:h,selectors:m}));var v,g,b,y,w=n(4),_=n.n(w),k=n(3),x=n.n(k),E=_()(console.error);function S(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return x.a.sprintf.apply(x.a,[e].concat(n))}catch(t){return E("sprintf error: \n\n"+t.toString()),e}}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}v={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},g=["(","?"],b={")":["("],":":["?","?:"]},y=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var R={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function I(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(y);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(b[n]){if(b[n][0]===o){n=b[n][1]||n;break}}else if(g.indexOf(o)>=0||v[o]<v[n]){a.push(o);break}i.push(o)}b[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,c,l=[];for(n=0;n<e.length;n++){if(a=e[n],i=R[a]){for(r=i.length,o=Array(r);r--;)o[r]=l.pop();try{c=i.apply(null,o)}catch(e){return e}}else c=t.hasOwnProperty(a)?t[a]:+a;l.push(c)}return l[0]}(t,e)}}var B={contextDelimiter:"",onMissingKey:null};function T(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},B)this.options[n]=void 0!==t&&n in t?t[n]:B[n]}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}T.prototype.getPluralForm=function(e,t){var n,r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=I(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},T.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,c;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[i]?c[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var C={"":{plural_forms:function(e){return 1===e?0:1}}},O=/^i18n\.(n?gettext|has_translation)(_|$)/;var N=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var F=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var L=function(e,t){return function(n,r,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if(F(n)&&N(r))if("function"==typeof o)if("number"==typeof i){var c={callback:o,priority:i,namespace:r};if(a[n]){var l,u=a[n].handlers;for(l=u.length;l>0&&!(i>=u[l-1].priority);l--);l===u.length?u[l]=c:u.splice(l,0,c),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++}))}else a[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,i)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,o){var i=e[t];if(F(r)&&(n||N(o))){if(!i[r])return 0;var a=0;if(n)a=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else for(var c=i[r].handlers,l=function(e){c[e].namespace===o&&(c.splice(e,1),a++,i.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},u=c.length-1;u>=0;u--)l(u);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),a}}};var z=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var W=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,c=new Array(a>1?a-1:0),l=1;l<a;l++)c[l-1]=arguments[l];if(!i||!i.length)return n?c[0]:void 0;var u={name:r,currentIndex:0};for(o.__current.push(u);u.currentIndex<i.length;){var s=i[u.currentIndex],f=s.callback.apply(null,c);n&&(c[0]=f),u.currentIndex++}return o.__current.pop(),n?c[0]:void 0}};var M=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}};var V=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};var U=function(e,t){return function(n){var r=e[t];if(F(n))return r[n]&&r[n].runs?r[n].runs:0}},$=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=L(this,"actions"),this.addFilter=L(this,"filters"),this.removeAction=D(this,"actions"),this.removeFilter=D(this,"filters"),this.hasAction=z(this,"actions"),this.hasFilter=z(this,"filters"),this.removeAllActions=D(this,"actions",!0),this.removeAllFilters=D(this,"filters",!0),this.doAction=W(this,"actions"),this.applyFilters=W(this,"filters",!0),this.currentAction=M(this,"actions"),this.currentFilter=M(this,"filters"),this.doingAction=V(this,"actions"),this.doingFilter=V(this,"filters"),this.didAction=U(this,"actions"),this.didFilter=U(this,"filters")};var q=function(){return new $}(),G=(q.addAction,q.addFilter,q.removeAction,q.removeFilter,q.hasAction,q.hasFilter,q.removeAllActions,q.removeAllFilters,q.doAction,q.applyFilters,q.currentAction,q.currentFilter,q.doingAction,q.doingFilter,q.didAction,q.didFilter,q.actions,q.filters,function(e,t,n){var r=new T({}),o=new Set,i=function(){o.forEach((function(e){return e()}))},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=j(j(j({},C),r.data[t]),e),r.data[t][""]=j(j({},C[""]),r.data[t][""])},c=function(e,t){a(e,t),i()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,o,i)},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return e},s=function(e,t,r){var o=l(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+u(r),o,e,t,r)):o};if(e&&c(e,t),n){var f=function(e){O.test(e)&&i()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:c,resetLocaleData:function(e,t){r.data={},r.pluralForms={},c(e,t)},subscribe:function(e){return o.add(e),function(){return o.delete(e)}},__:function(e,t){var r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+u(t),r,e,t)):r},_x:s,_n:function(e,t,r,o){var i=l(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+u(o),i,e,t,r,o)):i},_nx:function(e,t,r,o,i){var a=l(i,o,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+u(i),a,e,t,r,o,i)):a},isRTL:function(){return"rtl"===s("ltr","text direction")},hasTranslation:function(e,t,o){var i,a,c=t?t+""+e:e,l=!(null===(i=r.data)||void 0===i||null===(a=i[null!=o?o:"default"])||void 0===a||!a[c]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,o),l=n.applyFilters("i18n.has_translation_"+u(o),l,e,t,o)),l}}}(void 0,void 0,q)),Y=(G.getLocaleData.bind(G),G.setLocaleData.bind(G),G.resetLocaleData.bind(G),G.subscribe.bind(G),G.__.bind(G)),H=(G._x.bind(G),G._n.bind(G),G._nx.bind(G),G.isRTL.bind(G),G.hasTranslation.bind(G),wp.element),K=H.createPortal,Z=H.memo,X=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(e){return{onSetTogglePopup:e("ast-block-templates").setTogglePopup}})))(Z((function(e){var t=e.onSetTogglePopup;return K(React.createElement("button",{onClick:t,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"))}))),J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#9E9E9E";e&&console.log("%c ".concat(e," "),"color: ".concat(n,"; font-weight: lighter;"),t)},Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return J(e,t,"#F20404")},ee=(n(9),function(e){var t=e.message;return React.createElement("div",{className:"ast-block-templates-tooltip"},t)});n(11);function te(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function ne(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){te(i,r,o,a,c,"next",e)}function c(e){te(i,r,o,a,c,"throw",e)}a(void 0)}))}}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ie=wp.compose.compose,ae=wp.data,ce=ae.withSelect,le=ae.withDispatch,ue=wp.element,se=ue.useState,fe=ue.memo,pe=wp.ajax.post,de=ie(le((function(e){return{setNotice:e("ast-block-templates").setNotice}})),ce((function(e){return{notice:(0,e("ast-block-templates").getNotice)()}})))(fe((function(e){var t=e.setNotice,n=re(se({isProcessing:"",buttonText:"Sync Library"}),2),r=n[0],o=n[1],i=r.isProcessing,a=r.buttonText,c=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-update-sync-library-status",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){t({type:"success",message:"Template library refreshed!"}),o({isProcessing:"complete",buttonText:"Sync Complete"})}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(){var e=ne(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-import-sites",page_no:t,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){e.status?(o({isProcessing:"process",buttonText:"Imported ".concat(t," of ").concat(n," site..")}),t===n&&c()):o({isProcessing:"error",buttonText:"Error ".concat(e.data)})}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),u=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-get-sites-request-count",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){if(e.status){o({isProcessing:"process",buttonText:"Importing Sites.."});for(var t=e.data,n=1;n<=t;n++)l(n,t)}else o({isProcessing:"complete",buttonText:"Importing Sites Failed"})})).fail((function(e){Q("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=ne(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-import-blocks",page_no:t,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){e.status?(o({isProcessing:"process",buttonText:"Imported ".concat(t," of ").concat(n," block..")}),t===n&&u()):o({isProcessing:"error",buttonText:"Error ".concat(e.data)})}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-get-blocks-request-count",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){if(e.status)for(var t=e.data,n=1;n<=t;n++)s(n,t);else o({isProcessing:"complete",buttonText:"Importing Pages Failed"})})).fail((function(e){Q("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({action:"ast-block-templates-import-categories",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){f()})).fail((function(e){Q("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=ne(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,pe({action:"ast-block-templates-check-sync-library-status",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){e.status?"updated"===e.data?(o({isProcessing:"complete",buttonText:"Library is up-to date!"}),t({type:"success",message:"Template library refreshed!"})):p():(t({type:"error",message:"Error! ".concat(e.message)}),o({isProcessing:"complete",buttonText:"Error! ".concat(e.message)}))})).fail((function(e){Q("fail",e)}));case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),Q("Complete: Failed",e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}();return React.createElement("span",{className:"ast-block-templates-sync ".concat("process"===i?"ast-block-templates-sync--processing":""),onClick:function(e){e.preventDefault(),t({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.."}),d()}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-refresh"}),React.createElement("span",{className:"ast-block-templates-sync__title"},a),React.createElement(ee,{message:"Sync Library"}))}))),me=(n(13),wp.compose.compose),he=wp.data.withDispatch,ve=wp.element.memo,ge=me(he((function(e){return{setCurrentScreen:e("ast-block-templates").setCurrentScreen}})))(ve((function(e){var t=e.setCurrentScreen;return React.createElement("div",{className:"logo-wrap ".concat(""!==AstBlockTemplatesVars.white_label_name?"white-label":"")},React.createElement("div",{className:"logo",onClick:function(){return t("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))))}))),be=wp.compose.compose,ye=wp.data,we=ye.withSelect,_e=ye.withDispatch,ke=wp.element.memo,xe=be(we((function(e){var t=e("ast-block-templates"),n=t.getSitePreview,r=t.getCurrentScreen;return{preview:n(),currentScreen:r()}})),_e((function(e){var t=e("ast-block-templates"),n=t.setAllPages,r=t.setSitePreview,o=t.setTogglePopup,i=t.setCurrentScreen,a=t.setFilterPagesBySearchTerm,c=t.setFilterBlocksBySearchTerm;return{updateCurrentScreen:function(e){n([]),r({}),a(""),c(""),i(e)},onSetSitePreview:r,onSetTogglePopup:o}})))(ke((function(e){var t=e.currentScreen,n=e.updateCurrentScreen;return React.createElement("div",{className:"header-menu"},React.createElement("div",{className:"header-menu-item ".concat("all-sites-grid"===t||"all-single-site-pages"===t||"full-width-page-preview"===t||"all-single-pages"===t?"active":""),onClick:function(){return n("all-sites-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-file"}),Y("Pages")),React.createElement("div",{className:"header-menu-item ".concat("all-blocks-grid"===t||"full-width-block-preview"===t?"active":""),onClick:function(){return n("all-blocks-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-layers"}),Y("Patterns")))}))),Ee=wp.compose.compose,Se=wp.data,Pe=Se.withSelect,Re=Se.withDispatch,Ie=wp.element.memo,Be=Ee(Pe((function(e){var t=e("ast-block-templates"),n=t.getSitePreview,r=t.getCurrentScreen;return{sitePreview:n(),currentScreen:r()}})),Re((function(e){var t=e("ast-block-templates"),n=t.setSitePreview,r=t.setTogglePopup;t.setCurrentScreen;return{setSitePreview:n,onSetTogglePopup:r}})))(Ie((function(e){var t=e.onSetTogglePopup;return React.createElement("div",{className:"close",onClick:function(e){t(),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"}))}))),Te=(n(15),wp.compose.compose),Ae=wp.data,je=Ae.withSelect,Ce=Ae.withDispatch,Oe=wp.element.memo,Ne=Te(je((function(e){var t=e("ast-block-templates"),n=t.getCurrentScreen,r=t.getPreviousScreen;return{currentScreen:n(),previousScreen:r()}})),Ce((function(e){return{setCurrentScreen:e("ast-block-templates").setCurrentScreen}})))(Oe((function(e){var t=e.currentScreen,n=e.previousScreen,r=e.setCurrentScreen,o="full-width-block-preview"===t||"full-width-page-preview"===t||"all-single-site-pages"===t?"show":"",i="full-width-block-preview"===t?"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(){r("full-width-page-preview"===t||"full-width-block-preview"===t?"all-single-site-pages"===n?"all-single-site-pages":"all-blocks-grid":"all-sites-grid")}},React.createElement(ee,{message:i}),React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-chevron-left"}),React.createElement("span",{className:"ast-block-templates-back-heading"}," Back ")))})));n(17),n(19);function Fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var De=wp.element,ze=De.memo,We=De.useState,Me=De.useEffect,Ve=ze((function(e){var t=e.onSearch,n=e.value,r=e.searchInputRef,o=e.placeholder,i=Fe(We(""),2),a=i[0],c=i[1],l=o||Y("Search..","ast-block-templates");return Me((function(){c(n)})),React.createElement("div",{className:"search-form ".concat(a?"have-input":"")},React.createElement("input",{ref:r,type:"search",name:"search",value:n,placeholder:l,onChange:function(e){t(e)}}),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)"}))))))})),Ue=wp.element.memo,$e=wp.compose.compose,qe=wp.data,Ge=qe.withSelect,Ye=qe.withDispatch,He=$e(Ge((function(e){var t=e("ast-block-templates"),n=t.getCurrentScreen,r=t.getFilterPagesBySearchTerm,o=t.getFilterBlocksBySearchTerm;return{currentScreen:n(),filterPagesBySearchTerm:r(),filterBlocksBySearchTerm:o()}})),Ye((function(e){var t=e("ast-block-templates"),n=t.setFilterBlocksBySearchTerm,r=t.setFilterPagesBySearchTerm,o=t.setCurrentScreen,i=t.setPagePreview,a=t.setSitePreview,c=t.setFullWidthBlockPreview;return{setFilterBlocksBySearchTerm:function(e){o("all-blocks-grid"),c({}),n(e)},insertBlocks:e("core/block-editor").insertBlocks,setFilterPagesBySearchTerm:function(e){o("all-sites-grid"),r(e),i({}),a({})}}})))(Ue((function(e){var t=e.currentScreen,n=e.filterPagesBySearchTerm,r=e.filterBlocksBySearchTerm,o=e.setFilterBlocksBySearchTerm,i=e.setFilterPagesBySearchTerm;return React.createElement("div",{className:"header"},"all-single-site-pages"===t?React.createElement(Ne,null):React.createElement(ge,null),React.createElement(xe,null),"all-sites-grid"===t||"all-single-site-pages"===t||"full-width-page-preview"===t||"all-single-pages"===t?React.createElement(Ve,{placeholder:"Search Templates..",value:n,onSearch:function(e){i(e.target.value)}}):React.createElement(Ve,{placeholder:"Search Patterns..",value:r,onSearch:function(e){o(e.target.value)}}),React.createElement(de,null),React.createElement(Be,null))}))),Ke=wp.ajax.post,Ze=wp.blocks.parse;var Xe=function(e,t,n,r,o){Ke({action:"ast_block_templates_importer",api_uri:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){!function(e,t,n,r,o){Ke({action:"ast_block_templates_import_block",content:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){r(Ze(e),t,n),o(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open")})).fail((function(e){}))}(e,r,o,t,n)})).fail((function(e){Q("fail",e)}))},Je=function(e){return new Promise((function(t,n){var r=new window.FormData;r.append("action","ast_block_templates_activate_plugin"),r.append("init",e.init),r.append("security",AstBlockTemplatesVars._ajax_nonce),wp.apiFetch({url:AstBlockTemplatesVars.ajax_url,method:"POST",body:r}).then((function(e){e.success?t(e):n(e)}))}))},Qe=function(e){return new Promise((function(t,n){wp.updates.queue.push({action:"install-plugin",data:{slug:e.slug,init:e.init,name:e.name,success:function(n){t(n,e)},error:function(t){n(t,e)}}}),wp.updates.queueChecker()}))};function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var nt={stdClass:function(){},stringify:function(e){var t=new Map([[1/0,"d:INF;"],[-1/0,"d:-INF;"],[NaN,"d:NAN;"],[null,"N;"],[void 0,"N;"]]),n=function(e){return e?encodeURI(e).match(/(%.)?./g).length:0},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"".concat(n(e),":").concat(t[0]).concat(e).concat(t[t.length-1])},o=0;return function e(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.has(n))return t.get(n);if(o+=i,"string"==typeof n)return"s:".concat(r(n),";");if("number"==typeof n)return"".concat(Math.round(n)===n?"i":"d",":").concat((""+n).toUpperCase().replace(/(-?\d)E/,"$1.0E"),";");if("boolean"==typeof n)return"b:".concat(+n,";");var a=Array.isArray(n)||n.constructor===Object;if(t.set(n,"".concat("rR"[+a],":").concat(o,";")),"function"==typeof n.serialize)return"C:".concat(r(n.constructor.name),":").concat(r(n.serialize(),"{}"));var c=Object.entries(n).filter((function(e){var t=tt(e,2);t[0];return"function"!=typeof t[1]}));return(a?"a":"O:".concat(r(n.constructor.name)))+":".concat(c.length,":{").concat(c.map((function(t){var n=tt(t,2),r=n[0],o=n[1];return e(a&&/^\d{1,16}$/.test(r)?+r:r,!1)+e(o)})).join(""),"}")}(e)},parse:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.stdClass=nt.stdClass;var n=0,r=[null],o={INF:1/0,"-INF":-1/0,NAN:NaN},i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;throw new Error("Error at ".concat(r,": ").concat(t,"\n").concat(e,"\n").concat(" ".repeat(r),"^"))},a=function(t,r){return t===e.slice(n,n+=t.length)?r:i("Expected '".concat(t,"'"),n-t.length)};function c(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:";";a(":");var c=t.exec(e.slice(n));return c||i("Exected ".concat(r,", but got '").concat(e.slice(n).match(/^[:;{}]|[^:;{}]*/)[0],"'")),n+=c[0].length,a(o,c[0])}function l(t){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=n;t>0;){var c=e.charCodeAt(n++);t-=c<128?1:c<2048||c>>11==27?2:3}return t?i("Invalid string length",o-2):a(r,e.slice(o,n))}var u=function(e){return e?t[e]?Object.create(t[e].prototype):new(et({},e,(function(){}))[e]):{}},s=function(){return c(/^[01]/,"a '0' or '1'",";")},f=function(){return+c(/^-?\d+/,"an integer",";")},p=function(e){return+c(/^\d+/,"an unsigned integer",e)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return l(p(':"'),'"'+e)};function m(){var e=c(/^-?(\d+(\.\d+)?(E[+-]\d+)?|INF)|NAN/,"a decimal number",";");return e in o?o[e]:+e}function h(){var t=e[n++];return"s"===t?d(";"):"i"===t?p(";"):i("Expected 's' or 'i' as type for a key, but got ${str[offset-1]}",n-1)}function v(e){for(var t=0,n=p(":{");t<n;t++)e[h()]=y();return a("}",e)}function g(){var e=v({});return Object.keys(e).some((function(e,t){return e!=t}))?e:Object.values(e)}function b(e){return"function"!=typeof e.unserialize&&i("Instance of ".concat(e.constructor.name,' does not have an "unserialize" method')),e.unserialize(l(p(":{"))),a("}",e)}function y(){var t=e[n++].toLowerCase(),o=r.push(null)-1,c="n"===t?a(";",null):"s"===t?d(";"):"b"===t?s():"i"===t?f():"d"===t?m():"a"===t?g():"o"===t?v(u(d())):"c"===t?b(u(d())):"r"===t?r[f()]:i("Unexpected type ".concat(t),n-1);return"r"!==t&&(r[o]=c),c}var w=y();return n!==e.length&&i("Unexpected trailing character"),w}},rt=function(e,t){return fetch("https://websitedemos.net/wp-json/wp/v2/".concat(t,"/").concat(e)).then((function(e){return e.json()}))};n(21);function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return it(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return it(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var at=wp.compose.compose,ct=wp.data,lt=ct.useSelect,ut=ct.withSelect,st=ct.withDispatch,ft=wp.ajax.post,pt=wp.blocks.parse,dt=wp.element,mt=dt.useState,ht=dt.memo,vt=(dt.useEffect,dt.useCallback,wp.components.Spinner),gt=at(ut((function(e){var t=e("ast-block-templates"),n=t.getImportItemInfo,r=t.getCurrentScreen,o=t.getSitePreview;return{importItemInfo:n(),sitePreview:o(),currentScreen:r()}})),st((function(e){var t=e("ast-block-templates"),n=t.setImportItemInfo,r=(t.setFullWidthBlockPreview,t.setCurrentScreen,t.setTogglePopup);t.setFullWidthPreview;return{setImportItemInfo:n,onSetTogglePopup:r,insertBlocks:e("core/block-editor").insertBlocks}})))(ht((function(e){var t=e.setImportItemInfo,n=(e.liveRequest,e.requiredPlugins,e.importItemInfo),r=e.title,o=e.btnClass,i=e.currentScreen,a=e.insertBlocks,c=e.onSetTogglePopup,l=e.item,u=e.onClick,s=ot(mt(n),2),f=s[0],p=(s[1],o||""),d=ot(mt(r||"Import"),2),m=d[0],h=d[1],v="full-width-block-preview"===i?"show":"",g=ot(mt(!1),2),b=g[0],y=g[1],w=lt((function(e){var t=e("core/block-editor").getBlockInsertionPoint();return{insertIndex:t.index,insertClientID:t.rootClientId}}),[]),_=w.insertIndex,k=w.insertClientID,x=function(){Je({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){S()})).catch((function(e){y(!1),h("Activation failed!")}))},E=function(){var e=f.original_content;ft({action:"ast_block_templates_import_block",content:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){b=!1,a(pt(e),_,k),c(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open")})).fail((function(e){}))},S=function(){var e=f["post-meta"]["astra-site-wpforms-path"]||"";e?function(e){ft({action:"ast_block_templates_import_wpforms",wpforms_url:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){E()})).fail((function(e){y(!1),h("WPForms import failed!")}))}(e):E()};return React.createElement("div",{className:"ast-template-import-block-button ".concat(v," ").concat(p),onClick:function(e){"function"==typeof u&&u(e),y(!0),rt(l.ID,"astra-blocks").then((function(e){t(e),f=e,(e["post-meta"]["astra-blocks-required-plugins"]?nt.parse(e["post-meta"]["astra-blocks-required-plugins"]):[]).length?"not-installed"===AstBlockTemplatesVars.wpforms_status?Qe({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){x()})).catch((function(e){y(!1),h("Installtion failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?x():S():S()})).catch((function(e){}))}},b?React.createElement(React.Fragment,null,React.createElement(vt,null)," Importing.."):React.createElement(React.Fragment,null,m))}))),bt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=e.replace("&","&")).replace("&","&"),(e=o()(e)).__wrapped__};function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Et=wp.compose.compose,St=wp.data.withDispatch,Pt=wp.element,Rt=Pt.memo,It=Pt.useEffect,Bt=Pt.useState,Tt=(wp.ajax.post,Et(St((function(e){var t=e("ast-block-templates"),n=t.setImportItemInfo,r=t.setFullWidthBlockPreview,o=t.setCurrentScreen;return{setImportItemInfo:n,updateFullWidthBlockPreview:function(e){r(e),o("full-width-block-preview")}}})))(Rt((function(e){e.setImportItemInfo,e.updateFullWidthBlockPreview;var t=e.item,n=e.InitMasonry,r=t["thumbnail-image-url"]||"",o=t["featured-image-url"]||"",i=kt(Bt({importing:!1}),2),a=i[0],c=i[1],l=kt(Bt("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),u=l[0],s=l[1],f=kt(Bt("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),p=f[0],d=f[1];return It((function(){var e=!0,t=new Image;t.src=r;var i=new Image;return i.src=o,t.onload=function(){e&&(s(t.src),n())},i.onload=function(){e&&(d(i.src),n())},function(){e=!1}}),[]),React.createElement("div",{className:"item single-block ".concat(!0===a.importing?"importing":"")},React.createElement("div",{className:"inner"},React.createElement("div",{className:"thumbnail"},React.createElement("img",{srcSet:"".concat(p,", ").concat(u),src:u}),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(gt,{btnClass:"button button-primary gt-btn-import",title:"Import",liveRequest:!0,item:t,onClick:function(e){c(wt(wt({},a),{},{importing:!0}))}})))))})))),At=wp.compose.compose,jt=wp.element,Ct=jt.memo,Ot=(jt.useEffect,jt.useState,wp.data),Nt=Ot.withSelect,Ft=Ot.withDispatch,Lt=At(Nt((function(e){var t=e("ast-block-templates"),n=t.getFilterBlocksByCategory,r=t.getFilterBlocksByColor,o=t.getFilterBlocksBySearchTerm;return{filterBlocksByCategory:n(),filterBlocksByColor:r(),filterBlocksBySearchTerm:o()}})),Ft((function(e){return{setFilterBlocksByCategory:e("ast-block-templates").setFilterBlocksByCategory}})))(Ct((function(e){var t=e.filterBlocksByCategory,n=e.setFilterBlocksByCategory,r=e.filterBlocksByColor,o=e.filterBlocksBySearchTerm,i=[],a=0,c=function(e){var t=parseInt(AstBlockTemplatesVars.allBlocks[e].category),n=AstBlockTemplatesVars.allBlocks[e].filter||"";if(!i[t]){var o=AstBlockTemplatesVars.allCategories.filter((function(e){return e.id===t}))[0];o.id=t,o.count=0,i[t]=o}(!r||r&&n==r)&&(i[t].count=parseInt(i[t].count)+1,a+=1)};for(var l in AstBlockTemplatesVars.allBlocks)c(l);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(o||""!==t?"":"active"),onClick:function(e){n("")}},React.createElement("span",{className:"st-block-category-title"},"All"),React.createElement("span",{className:"st-block-category-count"},a)),Object.values(i).map((function(e){return React.createElement("div",{key:e.id,className:"st-block-category ".concat(t===e.id?"active":""),onClick:function(t){n(e.id)}},React.createElement("span",{className:"st-block-category-title"},e.name),React.createElement("span",{className:"st-block-category-count"},e.count))}))))}))),Dt=wp.compose.compose,zt=wp.element.memo,Wt=wp.data,Mt=Wt.withSelect,Vt=Wt.withDispatch,Ut=Dt(Mt((function(e){return{filterBlocksByColor:(0,e("ast-block-templates").getFilterBlocksByColor)()}})),Vt((function(e){return{setFilterBlocksByColor:e("ast-block-templates").setFilterBlocksByColor}})))(zt((function(e){var t=e.filterBlocksByColor,n=e.setFilterBlocksByColor;if(!AstBlockTemplatesVars.allBlocks)return null;var r=[];return AstBlockTemplatesVars.allBlocks.map((function(e){e.filter&&!r.includes(e.filter)&&r.push(e.filter)})),r.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(t?"":"active"),onClick:function(e){return n("")}},"All"),r.map((function(e){return React.createElement("div",{key:e,className:"block-color-item ".concat(t===e?"active":""),onClick:function(t){return n(e)}},e)}))))}))),$t=(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(Ut,null),React.createElement(Lt,null)))})),qt=(n(23),function(e){var t=e.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!"))),t)}),Gt=(n(25),function(e){var t=e.afterClick;return React.createElement("span",null,React.createElement("span",{className:"back-to-templates",onClick:function(e){t&&t(e)}},Y("Back to Templates","ast-block-templates")))}),Yt=(n(27),wp.compose.compose),Ht=wp.data,Kt=Ht.withSelect,Zt=Ht.withDispatch,Xt=wp.element.memo,Jt=Yt(Zt((function(e){return{setNotice:e("ast-block-templates").setNotice}})),Kt((function(e){return{notice:(0,e("ast-block-templates").getNotice)()}})))(Xt((function(e){var t=e.notice,n=e.setNotice;if(!Object.keys(t).length)return null;var r=t.type,o=t.message;return React.createElement("div",{className:"ast-block-templates-notice notice notice-".concat(r)},React.createElement("div",{className:"ast-block-templates-notice-message"},o),React.createElement("button",{type:"button",className:"notice-dismiss",onClick:function(){return n({})}},React.createElement("span",{className:"screen-reader-text"},"Dismiss")))}))),Qt=wp.compose.compose,en=wp.data,tn=en.withSelect,nn=en.withDispatch,rn=wp.element,on=rn.memo,an=rn.useEffect,cn=(rn.useState,Qt(nn((function(e){return{setFilterBlocksBySearchTerm:e("ast-block-templates").setFilterBlocksBySearchTerm}})),tn((function(e){return{allBlocks:(0,e("ast-block-templates").getAllBlocks)()}})))(on((function(e){var t=e.setFilterBlocksBySearchTerm,n=e.allBlocks,r=(e.imagesLoad,e.setImagesLoaded,Object.values(n));an((function(){var e=document.getElementById("ast-block-templates-grid-blocks");e&&imagesLoaded(e,(function(){new Masonry(e)}))}));var o=function(){var e=document.getElementById("ast-block-templates-grid-blocks");e&&new Masonry(e)};return React.createElement("div",{className:"ast-block-templates-grid-blocks active"},React.createElement($t,null),React.createElement("div",{className:"ast-block-templates-pattern-grid"},React.createElement(Jt,null),React.createElement("div",{className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},r.length?r.map((function(e){return React.createElement(Tt,{key:e.ID,item:e,InitMasonry:o})})):React.createElement(qt,null,React.createElement(Gt,{afterClick:function(e){t("")}})))))}))));n(29);function ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return un(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sn=wp.compose.compose,fn=wp.data,pn=fn.useSelect,dn=fn.withSelect,mn=fn.withDispatch,hn=wp.element,vn=hn.useState,gn=hn.memo,bn=wp.components.Spinner,yn=wp.ajax.post,wn=sn(dn((function(e){var t=e("ast-block-templates"),n=t.getPagePreview,r=t.getImportItemInfo,o=t.getCurrentScreen,i=t.getSitePreview;return{pagePreview:n(),importItemInfo:r(),sitePreview:i(),currentScreen:o()}})),mn((function(e){var t=e("ast-block-templates"),n=(t.setFullWidthBlockPreview,t.setCurrentScreen,t.setTogglePopup);t.setFullWidthPreview;return{onSetTogglePopup:n,insertBlocks:e("core/block-editor").insertBlocks}})))(gn((function(e){var t=e.title,n=e.currentScreen,r=e.insertBlocks,o=e.onSetTogglePopup,i=e.item,a=(e.importItemInfo,e.pagePreview),c=ln(vn(t||"Import"),2),l=c[0],u=c[1],s=[],f="full-width-page-preview"===n?"show":"",p=ln(vn(!1),2),d=p[0],m=p[1],h=a["required-plugins"]?a["required-plugins"].filter((function(e){return"wpforms-lite"===e.slug})):[],v=pn((function(e){var t=e("core/block-editor").getBlockInsertionPoint();return{insertIndex:t.index,insertClientID:t.rootClientId}}),[]),g=v.insertIndex,b=v.insertClientID,y=function(){Je({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){w()})).catch((function(e){m(!1),u("Error! WP Forms plugin activation failed!")}))},w=function(){var e=s["astra-site-wpforms-path"]||"";e?_(e):Xe(i["astra-page-api-url"],r,o,g,b)},_=function(e){yn({action:"ast_block_templates_import_wpforms",wpforms_url:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){Xe(i["astra-page-api-url"],r,o,g,b)})).fail((function(e){m(!1),u("Error! "+e.status+e.statusText)}))};return React.createElement("button",{className:"button button-primary ast-template-import-page-button ".concat(f),onClick:function(){m(!0),rt(i.ID,"site-pages").then((function(e){s=e,h.length?"not-installed"===AstBlockTemplatesVars.wpforms_status?Qe({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){y()})).catch((function(e){m(!1),u("Error! WP Forms plugin installation failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?y():w():w()}))}},d?React.createElement(React.Fragment,null,React.createElement(bn,null)," Importing.."):React.createElement(React.Fragment,null,l))}))),_n=(n(31),wp.compose.compose),kn=wp.data,xn=kn.withSelect,En=kn.withDispatch,Sn=wp.element,Pn=Sn.Fragment,Rn=Sn.memo,In=Sn.useEffect,Bn=_n(xn((function(e){var t=e("ast-block-templates"),n=t.getDisplayDynamicPopup;return{pagePreview:(0,t.getPagePreview)(),displayDynamicPopup:n()}})),En((function(e){return{setDisplayDynamicPopup:e("ast-block-templates").setDisplayDynamicPopup}})))(Rn((function(e){var t=e.pagePreview,n=e.displayDynamicPopup,r=e.setDisplayDynamicPopup,o=!1===n?"hide":"",i=function(){r(!1)},a=function(e){e.target===document.querySelector(".ast-block-templates-popup-wrap")&&i()};return In((function(){return document.addEventListener("click",a),function(){document.removeEventListener("click",a)}})),React.createElement(Pn,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"},Y("Heads Up!","ast-block-templates")),React.createElement("span",{className:"ast-block-templates-popup-close-icon",onClick:i},React.createElement("span",{className:"dashicons close dashicons-no-alt"}))),React.createElement("div",{className:"ast-block-templates-popup-content"},React.createElement("p",null,Y("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,Y("You will need to add it manually on the page.","ast-block-templates"))),React.createElement("div",{className:"ast-block-templates-popup-footer"},React.createElement(wn,{title:S(Y('Skip & Import "%s" Page',"ast-block-templates"),t.title),item:t}),React.createElement("div",{className:"button",onClick:i},Y("Cancel","ast-block-templates"))))))}))),Tn=wp.compose.compose,An=wp.data,jn=An.withSelect,Cn=An.withDispatch,On=wp.element.memo,Nn=Tn(jn((function(e){return{pagePreview:(0,e("ast-block-templates").getPagePreview)()}})),Cn((function(e){var t=e("ast-block-templates"),n=t.setPagePreview,r=t.setFullWidthPagePreview,o=t.setCurrentScreen;return{setImportItemInfo:t.setImportItemInfo,setPagePreview:n,updateFullWidthPagePreview:function(e){r(e),o("full-width-page-preview")}}})))(On((function(e){e.updateFullWidthPagePreview;var t=e.item,n=e.pagePreview,r=e.setPagePreview,o=e.setImportItemInfo,i=t["thumbnail-image-url"]||"";return React.createElement("div",{className:"item single-site ".concat(n.ID===t.ID?"active":"")},React.createElement("div",{className:"inner"},React.createElement("div",{className:"screenshot",onClick:function(e){o(t),r(t)},style:{backgroundImage:"url('".concat(i,"')")}},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"},bt(t.title)))))}))),Fn=(n(33),wp.element),Ln=Fn.memo,Dn=Fn.Fragment;var zn=(0,wp.compose.compose)((0,wp.data.withSelect)((function(e){var t=e("ast-block-templates"),n=t.getPagePreview;return{sitePreview:(0,t.getSitePreview)(),pagePreview:n()}})))(Ln((function(e){var t=e.sitePreview,n=e.pagePreview,r=Object.values(t.pages)||[],o=n["featured-image-url"];return React.createElement(Dn,null,React.createElement(Bn,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"},bt(t.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"},Y("Page Templates","ast-block-templates")),React.createElement("div",{className:"ast-block-templates-grid"},r.length?r.map((function(e){return React.createElement(Nn,{key:e.ID,item:e})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,Y("No Result Found","ast-block-templates")),React.createElement("p",null,Y("The search result not found. Try another search.","ast-block-templates")))))))})));function Wn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Vn=wp.compose.compose,Un=wp.data,$n=Un.withSelect,qn=Un.withDispatch,Gn=wp.element,Yn=Gn.memo,Hn=Gn.useState,Kn=Gn.useEffect,Zn=Vn($n((function(e){return{preview:e("ast-block-templates").getSitePreview}})),qn((function(e){var t=e("ast-block-templates"),n=t.setSitePreview,r=t.setPagePreview,o=t.setCurrentScreen;return{setSitePreview:function(e){var t=Object.values(e.pages).length?Object.values(e.pages)[0]:[];r(t),n(e),o("all-single-site-pages")},setImportItemInfo:t.setImportItemInfo}})))(Yn((function(e){var t=e.setSitePreview,n=e.item,r=e.setImportItemInfo,o=n["thumbnail-image-url"]||"",i=n.pages?n.pages.length:0,a=i<=1?"Template":"Templates",c=Wn(Hn("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),l=c[0],u=c[1];return Kn((function(){var e=!0,t=new Image;return t.src=o,t.onload=function(){e&&u(t.src)},function(){e=!1}}),[l]),React.createElement("div",{className:"item single-site",onClick:function(e){t(n),r(n)}},React.createElement("div",{className:"inner"},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"},bt(n.title)),i?React.createElement("div",{className:"sub-title"},"".concat(i," ").concat(a)):"")))}))),Xn=wp.compose.compose,Jn=wp.data,Qn=Jn.withSelect,er=(Jn.withDispatch,wp.element),tr=(er.useEffect,er.useState,er.memo),nr=er.Fragment,rr=Xn(Qn((function(e){var t=e("ast-block-templates"),n=t.getAllPages,r=t.getCurrentScreen,o=t.getAllSites;return{currentScreen:r(),allSites:o(),allPages:n()}})))(tr((function(e){e.allPages;var t=e.allSites,n=(e.currentScreen,Object.values(t));return React.createElement(nr,null,n.length?n.map((function(e){return React.createElement(Zn,{key:e.ID,item:e})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,Y("No Sites Result Found")," "),React.createElement("p",null,Y("The search result not found. Try another search."))))}))),or=wp.compose.compose,ir=wp.data,ar=ir.withSelect,cr=ir.withDispatch,lr=wp.element.memo,ur=or(ar((function(e){return{preview:e("ast-block-templates").getSitePreview}})),cr((function(e){var t=e("ast-block-templates"),n=t.setSearchPagePreview,r=t.setCurrentScreen;return{setSearchPagePreview:function(e){n(e),r("all-single-site-pages")},setImportItemInfo:t.setImportItemInfo}})))(lr((function(e){var t=e.setSearchPagePreview,n=e.item,r=e.setImportItemInfo,o=n["thumbnail-image-url"]||"";return React.createElement("div",{className:"item single-site"},React.createElement("div",{className:"inner"},React.createElement("div",{className:"screenshot",onClick:function(e){t(n),r(n)},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"},bt(n["site-title"])),React.createElement("div",{className:"sub-title"},bt(n.title)))))}))),sr=wp.compose.compose,fr=wp.data,pr=fr.withSelect,dr=fr.withDispatch,mr=wp.element,hr=mr.memo,vr=mr.Fragment,gr=sr(dr((function(e){var t=e("ast-block-templates");return{setPagePreview:t.setPagePreview,setFilterPagesBySearchTerm:t.setFilterPagesBySearchTerm}})),pr((function(e){var t=e("ast-block-templates"),n=t.getAllPages,r=t.getFilterPagesBySearchTerm;return{allPages:n(),filterPagesBySearchTerm:r()}})))(hr((function(e){var t=e.setPagePreview,n=e.setFilterPagesBySearchTerm,r=e.allPages,o=Object.values(r);return React.createElement(vr,null,o.length?o.map((function(e){return React.createElement(ur,{key:e.ID,item:e})})):React.createElement(qt,null,React.createElement(Gt,{afterClick:function(e){t({}),n("")}})))}))),br=wp.compose.compose,yr=wp.data,wr=yr.withSelect,_r=yr.withDispatch,kr=wp.element,xr=kr.memo;kr.useEffect;var Er=br(_r((function(e){return{setFilterPagesBySearchTerm:e("ast-block-templates").setFilterPagesBySearchTerm}})),wr((function(e){return{filterPagesBySearchTerm:(0,e("ast-block-templates").getFilterPagesBySearchTerm)()}})))(xr((function(e){var t=e.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(t.length?"ast-block-templates-pages-grid":"ast-block-templates-sites-grid")},t.length?React.createElement(gr,null):React.createElement(rr,null)))}))),Sr=(n(35),wp.compose.compose),Pr=wp.element.memo,Rr=wp.data,Ir=Rr.withSelect,Br=(Rr.withDispatch,Sr(Ir((function(e){return{blockPreview:(0,e("ast-block-templates").getFullWidthBlockPreview)()}})))(Pr((function(e){var t=e.blockPreview["featured-image-url"]||"".concat(AstBlockTemplatesVars.uri,"dist/placeholder.png");return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:t}))})))),Tr=(n(37),wp.compose.compose),Ar=wp.element.memo,jr=wp.data,Cr=jr.withSelect,Or=(jr.withDispatch,Tr(Cr((function(e){return{pagePreview:(0,e("ast-block-templates").getFullWidthPagePreview)()}})))(Ar((function(e){var t=e.pagePreview["featured-image-url"]||"";return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:t}))})))),Nr=function(){return React.createElement("div",null,"All signle pages")},Fr=(n(39),wp.element),Lr=Fr.useEffect,Dr=Fr.memo,zr=wp.compose.compose,Wr=wp.data.withSelect,Mr=function(e){var t=e.filterPagesBySearchTerm,n=e.currentScreen;return"all-single-pages"===n?React.createElement(Nr,null):"all-blocks-grid"===n?React.createElement(cn,null):t||"all-single-site-pages"!==n?"all-sites-grid"===n?React.createElement(Er,null):"full-width-block-preview"===n?React.createElement(Br,null):"full-width-page-preview"===n?React.createElement(Or,null):void 0:React.createElement(zn,null)},Vr=function(e){var t=e.currentScreen;return"all-sites-grid"===t||"all-single-site-pages"===t||"full-width-page-preview"===t||"all-single-pages"===t?React.createElement(Jt,null):null},Ur=zr(Wr((function(e){var t=e("ast-block-templates"),n=t.getFilterPagesBySearchTerm,r=t.getSitePreview,o=t.getCurrentScreen,i=t.getTogglePopup;return{filterPagesBySearchTerm:n(),sitePreview:r(),currentScreen:o(),togglePopup:i()}})))(Dr((function(e){var t=e.sitePreview,n=e.currentScreen,r=e.togglePopup;return Lr((function(){!0===r&&(document.body.classList.add("ast-block-templates-modal-open"),document.getElementById("ast-block-templates-modal-wrap").classList.add("open"))}),[r,n,t]),React.createElement("div",{className:"ast-block-templates-content"},React.createElement(Vr,{currentScreen:n}),React.createElement(Mr,{currentScreen:n}))})));n(41),n(43),n(45);function $r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Gr=wp.compose.compose,Yr=wp.data,Hr=Yr.withSelect,Kr=Yr.withDispatch,Zr=wp.element,Xr=Zr.memo,Jr=Zr.useState,Qr=Gr(Hr((function(e){return{importItemInfo:(0,e("ast-block-templates").getImportItemInfo)()}})),Kr((function(e){return{setImportItemInfo:e("ast-block-templates").setImportItemInfo}})))(Xr((function(e){var t=e.requiredPlugins;if(!t.length)return null;var n=$r(Jr(!1),2),r=n[0],o=n[1];return React.createElement("div",{className:"used-blocks"},React.createElement("div",{className:"used-blocks-info ".concat(r?"show":"")},React.createElement("h3",null,"Install Required Plugins"),React.createElement("ul",null,t.map((function(e,t){return React.createElement("li",{key:t},e.name)})))),React.createElement("span",{className:"used-blocks-icon dashicons dashicons-editor-help",onClick:function(){return o(!r)}}))}))),eo=wp.compose.compose,to=wp.data,no=to.withSelect,ro=to.withDispatch,oo=wp.element,io=oo.memo,ao=oo.Fragment,co=eo(no((function(e){var t=e("ast-block-templates"),n=t.getImportItemInfo,r=t.getCurrentScreen,o=t.getPagePreview;return{importItemInfo:n(),pagePreview:o(),currentScreen:r()}})),ro((function(e){var t=e("ast-block-templates"),n=t.setPagePreview,r=t.setFullWidthPagePreview,o=t.setCurrentScreen;return{setDisplayDynamicPopup:t.setDisplayDynamicPopup,setPagePreview:n,updateFullWidthPagePreview:function(e){r(e),o("full-width-page-preview")}}})))(io((function(e){e.importItemInfo;var t=e.pagePreview,n=e.setDisplayDynamicPopup,r=t["astra-page-url"]?t["astra-page-url"]:"",o=!(!t["dynamic-page"]||"yes"!==t["dynamic-page"]);return React.createElement(ao,null,React.createElement("a",{className:"button",href:r,target:"_blank"},"Preview Site",React.createElement("i",{className:"dashicons dashicons-external"})),o?React.createElement("button",{className:"button button-primary",onClick:function(e){n(!0)}},'Import "'.concat(t.title,'" Template')):React.createElement(wn,{title:'Import "'.concat(t.title,'" Template'),item:t}))}))),lo=(n(47),wp.compose.compose),uo=wp.data,so=uo.withSelect,fo=uo.withDispatch,po=wp.element,mo=po.memo,ho=po.Fragment,vo=lo(so((function(e){var t=e("ast-block-templates"),n=t.getImportItemInfo,r=t.getFullWidthBlockPreview;return{importItemInfo:n(),fullWidthBlockPreview:r()}})),fo((function(e){var t=e("ast-block-templates"),n=t.setPagePreview,r=t.setFullWidthPagePreview,o=t.setCurrentScreen;return{setPagePreview:n,updateFullWidthPagePreview:function(e){r(e),o("full-width-page-preview")}}})))(mo((function(e){var t,n=e.importItemInfo,r=e.fullWidthBlockPreview,o=r.url?r.url:"";return t=n["required-plugins"]?n["required-plugins"]:[],React.createElement(ho,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(Qr,{requiredPlugins:t}),React.createElement(gt,{btnClass:"button button-primary",title:"Import Pattern",item:r,requiredPlugins:t})))}))),go=wp.compose.compose,bo=wp.data.withSelect,yo=wp.element.memo,wo=go(bo((function(e){return{currentScreen:(0,e("ast-block-templates").getCurrentScreen)()}})))(yo((function(e){var t=e.currentScreen;return"all-single-site-pages"!==t&&"full-width-block-preview"!==t?null:React.createElement("div",{className:"footer"},"all-single-site-pages"===t?React.createElement(co,null):React.createElement(vo,null))}))),_o=wp.element,ko=_o.Fragment,xo=_o.useEffect,Eo=_o.memo,So=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(e){return{onSetTogglePopup:e("ast-block-templates").setTogglePopup}})))(Eo((function(e){var t=e.onSetTogglePopup,n=function(e){e.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"),t())};return xo((function(){return document.addEventListener("click",n),function(){document.removeEventListener("click",n)}})),React.createElement(ko,null,React.createElement(X,null),React.createElement("div",{className:"inner"},React.createElement(He,null),React.createElement(Ur,null),React.createElement(wo,null)))})));function Po(){wp.data.subscribe((function(){setTimeout((function(){!function(){if(!document.querySelector("#editor .edit-post-header__toolbar"))return null;if(document.querySelector("#ast-block-templates-button-wrap"))return null;var e=document.createElement("div");e.id="ast-block-templates-button-wrap",document.querySelector("#editor .edit-post-header__toolbar").appendChild(e)}(),function(){if(document.getElementById("ast-block-templates-modal-wrap"))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>',document.body.appendChild(e),wp.element.render(React.createElement(So,null),document.getElementById("ast-block-templates-modal"))}()}),500)}))}document.addEventListener("load",Po),document.addEventListener("DOMContentLoaded",Po)}]);
|
inc/lib/gutenberg-templates/version.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
{
|
2 |
-
"ast-block-templates": "1.0.
|
3 |
}
|
1 |
{
|
2 |
+
"ast-block-templates": "1.0.10"
|
3 |
}
|
languages/astra-sites.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Starter Templates package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Starter Templates 2.6.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
-
"POT-Creation-Date: 2021-08-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the Starter Templates package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Starter Templates 2.6.21\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
+
"POT-Creation-Date: 2021-08-12 13:28:34+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: Elementor,Beaver Builder,Templates,Gutenberg,Astra Starter Sites
|
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.8
|
8 |
-
Stable tag: 2.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -149,8 +149,12 @@ We are open to suggestions and would love to work on topics that our users are l
|
|
149 |
|
150 |
== Changelog ==
|
151 |
|
|
|
|
|
|
|
|
|
152 |
v2.6.20 - 8-August-2021
|
153 |
-
Improvement: Better handling of 500 errors on the import screen.
|
154 |
|
155 |
v2.6.19 - 2-August-2021
|
156 |
- Fix: Fixed the "Customizer data is empty!" AJAX failed request while importing.
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.8
|
8 |
+
Stable tag: 2.6.21
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
v2.6.21 - 13-August-2021
|
153 |
+
- Improvement: Rectified the condition to load the scripts in other screens.
|
154 |
+
- Fix: Starter template button not visible when gutenberg plugin is activated.
|
155 |
+
|
156 |
v2.6.20 - 8-August-2021
|
157 |
+
- Improvement: Better handling of 500 errors on the import screen.
|
158 |
|
159 |
v2.6.19 - 2-August-2021
|
160 |
- Fix: Fixed the "Customizer data is empty!" AJAX failed request while importing.
|