Version Description
- TUESDAY, 31ST MAY 2022 =
- Improvement: Updated Gutenberg Templates Library.
- Improvement: Escaped URLs wherever required.
Download this release
Release Info
Developer | brainstormworg |
Plugin | Gutenberg Blocks – Ultimate Addons for Gutenberg |
Version | 1.25.6 |
Comparing to | |
See all releases |
Code changes from version 1.25.5 to 1.25.6
- admin/bsf-analytics/class-bsf-analytics.php +6 -6
- blocks-config/forms/class-uagb-forms.php +9 -7
- classes/class-uagb-block-js.php +1 -1
- classes/class-uagb-loader.php +1 -1
- lib/gutenberg-templates/ast-block-templates.php +3 -2
- lib/gutenberg-templates/classes/class-ast-block-templates-sync-library-wp-cli.php +27 -9
- lib/gutenberg-templates/classes/class-ast-block-templates-sync-library.php +6 -6
- lib/gutenberg-templates/classes/class-ast-block-templates.php +5 -5
- lib/gutenberg-templates/dist/main.js +0 -9
- lib/gutenberg-templates/dist/null.js +9 -0
- lib/gutenberg-templates/dist/spectra-logo.svg +9 -0
- lib/gutenberg-templates/dist/spectra.svg +3 -0
- lib/gutenberg-templates/version.json +1 -1
- readme.txt +5 -1
- ultimate-addons-for-gutenberg.php +1 -1
admin/bsf-analytics/class-bsf-analytics.php
CHANGED
@@ -241,21 +241,21 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
|
|
241 |
</div>',
|
242 |
/* translators: %s usage doc link */
|
243 |
sprintf( $notice_string . '<span dir="%2s"><a href="%3s" target="_blank" rel="noreferrer noopener">%4s</a><span>', esc_html( $data['product_name'] ), $language_dir, esc_url( $usage_doc_link ), __( ' Know More.', 'ultimate-addons-for-gutenberg' ) ),
|
244 |
-
add_query_arg(
|
245 |
array(
|
246 |
$key . '_analytics_optin' => 'yes',
|
247 |
$key . '_analytics_nonce' => wp_create_nonce( $key . '_analytics_optin' ),
|
248 |
'bsf_analytics_source' => $key,
|
249 |
)
|
250 |
-
),
|
251 |
__( 'Yes! Allow it', 'ultimate-addons-for-gutenberg' ),
|
252 |
-
add_query_arg(
|
253 |
array(
|
254 |
$key . '_analytics_optin' => 'no',
|
255 |
$key . '_analytics_nonce' => wp_create_nonce( $key . '_analytics_optin' ),
|
256 |
'bsf_analytics_source' => $key,
|
257 |
)
|
258 |
-
),
|
259 |
MONTH_IN_SECONDS,
|
260 |
__( 'No Thanks', 'ultimate-addons-for-gutenberg' )
|
261 |
),
|
@@ -298,13 +298,13 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
|
|
298 |
}
|
299 |
|
300 |
wp_safe_redirect(
|
301 |
-
remove_query_arg(
|
302 |
array(
|
303 |
$source . '_analytics_optin',
|
304 |
$source . '_analytics_nonce',
|
305 |
'bsf_analytics_source',
|
306 |
)
|
307 |
-
)
|
308 |
);
|
309 |
}
|
310 |
|
241 |
</div>',
|
242 |
/* translators: %s usage doc link */
|
243 |
sprintf( $notice_string . '<span dir="%2s"><a href="%3s" target="_blank" rel="noreferrer noopener">%4s</a><span>', esc_html( $data['product_name'] ), $language_dir, esc_url( $usage_doc_link ), __( ' Know More.', 'ultimate-addons-for-gutenberg' ) ),
|
244 |
+
esc_url( add_query_arg(
|
245 |
array(
|
246 |
$key . '_analytics_optin' => 'yes',
|
247 |
$key . '_analytics_nonce' => wp_create_nonce( $key . '_analytics_optin' ),
|
248 |
'bsf_analytics_source' => $key,
|
249 |
)
|
250 |
+
) ),
|
251 |
__( 'Yes! Allow it', 'ultimate-addons-for-gutenberg' ),
|
252 |
+
esc_url( add_query_arg(
|
253 |
array(
|
254 |
$key . '_analytics_optin' => 'no',
|
255 |
$key . '_analytics_nonce' => wp_create_nonce( $key . '_analytics_optin' ),
|
256 |
'bsf_analytics_source' => $key,
|
257 |
)
|
258 |
+
) ),
|
259 |
MONTH_IN_SECONDS,
|
260 |
__( 'No Thanks', 'ultimate-addons-for-gutenberg' )
|
261 |
),
|
298 |
}
|
299 |
|
300 |
wp_safe_redirect(
|
301 |
+
esc_url_raw(remove_query_arg(
|
302 |
array(
|
303 |
$source . '_analytics_optin',
|
304 |
$source . '_analytics_nonce',
|
305 |
'bsf_analytics_source',
|
306 |
)
|
307 |
+
))
|
308 |
);
|
309 |
}
|
310 |
|
blocks-config/forms/class-uagb-forms.php
CHANGED
@@ -77,13 +77,15 @@ if ( ! class_exists( 'UAGB_Forms' ) ) {
|
|
77 |
|
78 |
// calling google recaptcha api.
|
79 |
$google_url = 'https://www.google.com/recaptcha/api/siteverify';
|
80 |
-
$google_response =
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
|
|
87 |
);
|
88 |
$google_response = wp_remote_get( $google_response );
|
89 |
$decode_google_response = json_decode( $google_response['body'] );
|
77 |
|
78 |
// calling google recaptcha api.
|
79 |
$google_url = 'https://www.google.com/recaptcha/api/siteverify';
|
80 |
+
$google_response = esc_url_raw(
|
81 |
+
add_query_arg(
|
82 |
+
array(
|
83 |
+
'secret' => $google_recaptcha_secret_key,
|
84 |
+
'response' => $google_recaptcha,
|
85 |
+
'remoteip' => $_SERVER['REMOTE_ADDR'],
|
86 |
+
),
|
87 |
+
$google_url
|
88 |
+
)
|
89 |
);
|
90 |
$google_response = wp_remote_get( $google_response );
|
91 |
$decode_google_response = json_decode( $google_response['body'] );
|
classes/class-uagb-block-js.php
CHANGED
@@ -120,7 +120,7 @@ if ( ! class_exists( 'UAGB_Block_JS' ) ) {
|
|
120 |
|
121 |
blockquote__tweet[0].addEventListener("click",function(){
|
122 |
var request_url = "https://twitter.com/share?url="+ encodeURIComponent("<?php echo esc_url( $url ); ?>")+"&text="+("<?php echo esc_html( $attr['descriptionText'] ); ?>")+"&via="+("<?php echo esc_html( $via ); ?>");
|
123 |
-
window.open( request_url );
|
124 |
});
|
125 |
}
|
126 |
}
|
120 |
|
121 |
blockquote__tweet[0].addEventListener("click",function(){
|
122 |
var request_url = "https://twitter.com/share?url="+ encodeURIComponent("<?php echo esc_url( $url ); ?>")+"&text="+("<?php echo esc_html( $attr['descriptionText'] ); ?>")+"&via="+("<?php echo esc_html( $via ); ?>");
|
123 |
+
window.open( request_url );
|
124 |
});
|
125 |
}
|
126 |
}
|
classes/class-uagb-loader.php
CHANGED
@@ -66,7 +66,7 @@ if ( ! class_exists( 'UAGB_Loader' ) ) {
|
|
66 |
define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
|
67 |
define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
|
68 |
define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
|
69 |
-
define( 'UAGB_VER', '1.25.
|
70 |
define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
|
71 |
define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
|
72 |
define( 'UAGB_SLUG', 'uag' );
|
66 |
define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
|
67 |
define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
|
68 |
define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
|
69 |
+
define( 'UAGB_VER', '1.25.6' );
|
70 |
define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
|
71 |
define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
|
72 |
define( 'UAGB_SLUG', 'uag' );
|
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.1.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: ast-block-templates
|
@@ -23,7 +23,8 @@ if ( apply_filters( 'ast_block_templates_disable', false ) ) {
|
|
23 |
if ( ! defined( 'AST_BLOCK_TEMPLATES_LIBRARY_URL' ) ) {
|
24 |
define( 'AST_BLOCK_TEMPLATES_LIBRARY_URL', apply_filters( 'ast_block_templates_library_url', 'https://websitedemos.net/' ) );
|
25 |
}
|
26 |
-
|
|
|
27 |
define( 'AST_BLOCK_TEMPLATES_FILE', __FILE__ );
|
28 |
define( 'AST_BLOCK_TEMPLATES_BASE', plugin_basename( AST_BLOCK_TEMPLATES_FILE ) );
|
29 |
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.1.5
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: ast-block-templates
|
23 |
if ( ! defined( 'AST_BLOCK_TEMPLATES_LIBRARY_URL' ) ) {
|
24 |
define( 'AST_BLOCK_TEMPLATES_LIBRARY_URL', apply_filters( 'ast_block_templates_library_url', 'https://websitedemos.net/' ) );
|
25 |
}
|
26 |
+
|
27 |
+
define( 'AST_BLOCK_TEMPLATES_VER', '1.1.5' );
|
28 |
define( 'AST_BLOCK_TEMPLATES_FILE', __FILE__ );
|
29 |
define( 'AST_BLOCK_TEMPLATES_BASE', plugin_basename( AST_BLOCK_TEMPLATES_FILE ) );
|
30 |
define( 'AST_BLOCK_TEMPLATES_DIR', plugin_dir_path( AST_BLOCK_TEMPLATES_FILE ) );
|
lib/gutenberg-templates/classes/class-ast-block-templates-sync-library-wp-cli.php
CHANGED
@@ -29,7 +29,9 @@ if ( ! class_exists( 'Ast_Block_Templates_Sync_Library_WP_CLI' ) && class_exists
|
|
29 |
public function sync( $args = array(), $assoc_args = array() ) {
|
30 |
|
31 |
// Start Sync.
|
32 |
-
|
|
|
|
|
33 |
|
34 |
$force = isset( $assoc_args['force'] ) ? true : false;
|
35 |
|
@@ -48,11 +50,17 @@ if ( ! class_exists( 'Ast_Block_Templates_Sync_Library_WP_CLI' ) && class_exists
|
|
48 |
|
49 |
// Import Blocks.
|
50 |
Ast_Block_Templates_Sync_Library::get_instance()->import_blocks( $page_no );
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
-
WP_CLI::line( 'BLOCK: Importd blocks from ' . $total_blocks_requests . ' pages.' );
|
54 |
} else {
|
55 |
-
|
|
|
|
|
56 |
}
|
57 |
|
58 |
// Get Sites Count.
|
@@ -62,24 +70,34 @@ if ( ! class_exists( 'Ast_Block_Templates_Sync_Library_WP_CLI' ) && class_exists
|
|
62 |
|
63 |
// Import Sites.
|
64 |
Ast_Block_Templates_Sync_Library::get_instance()->import_sites( $page_no );
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
66 |
}
|
67 |
-
WP_CLI::line( 'SITE: Importd sites from ' . $total_sites_requests . ' pages.' );
|
68 |
} else {
|
69 |
-
|
|
|
|
|
70 |
}
|
71 |
|
72 |
// Sync Complete.
|
73 |
Ast_Block_Templates_Sync_Library::get_instance()->update_library_complete();
|
74 |
|
75 |
// Start Sync.
|
76 |
-
|
|
|
|
|
77 |
}
|
78 |
}
|
79 |
|
80 |
/**
|
81 |
* Add Command
|
82 |
*/
|
83 |
-
|
|
|
|
|
84 |
|
85 |
endif;
|
29 |
public function sync( $args = array(), $assoc_args = array() ) {
|
30 |
|
31 |
// Start Sync.
|
32 |
+
if ( ast_block_templates_doing_wp_cli() ) {
|
33 |
+
WP_CLI::line( 'Sync Started' );
|
34 |
+
}
|
35 |
|
36 |
$force = isset( $assoc_args['force'] ) ? true : false;
|
37 |
|
50 |
|
51 |
// Import Blocks.
|
52 |
Ast_Block_Templates_Sync_Library::get_instance()->import_blocks( $page_no );
|
53 |
+
if ( ast_block_templates_doing_wp_cli() ) {
|
54 |
+
WP_CLI::line( 'BLOCK: Importing blocks from page ' . $page_no );
|
55 |
+
}
|
56 |
+
}
|
57 |
+
if ( ast_block_templates_doing_wp_cli() ) {
|
58 |
+
WP_CLI::line( 'BLOCK: Importd blocks from ' . $total_blocks_requests . ' pages.' );
|
59 |
}
|
|
|
60 |
} else {
|
61 |
+
if ( ast_block_templates_doing_wp_cli() ) {
|
62 |
+
WP_CLI::line( 'BLOCK: No block requests found' );
|
63 |
+
}
|
64 |
}
|
65 |
|
66 |
// Get Sites Count.
|
70 |
|
71 |
// Import Sites.
|
72 |
Ast_Block_Templates_Sync_Library::get_instance()->import_sites( $page_no );
|
73 |
+
if ( ast_block_templates_doing_wp_cli() ) {
|
74 |
+
WP_CLI::line( 'SITE: Importing sites from page ' . $page_no );
|
75 |
+
}
|
76 |
+
}
|
77 |
+
if ( ast_block_templates_doing_wp_cli() ) {
|
78 |
+
WP_CLI::line( 'SITE: Importd sites from ' . $total_sites_requests . ' pages.' );
|
79 |
}
|
|
|
80 |
} else {
|
81 |
+
if ( ast_block_templates_doing_wp_cli() ) {
|
82 |
+
WP_CLI::line( 'SITE: No sites requests found' );
|
83 |
+
}
|
84 |
}
|
85 |
|
86 |
// Sync Complete.
|
87 |
Ast_Block_Templates_Sync_Library::get_instance()->update_library_complete();
|
88 |
|
89 |
// Start Sync.
|
90 |
+
if ( ast_block_templates_doing_wp_cli() ) {
|
91 |
+
WP_CLI::line( 'Sync Completed' );
|
92 |
+
}
|
93 |
}
|
94 |
}
|
95 |
|
96 |
/**
|
97 |
* Add Command
|
98 |
*/
|
99 |
+
if ( ast_block_templates_doing_wp_cli() ) {
|
100 |
+
WP_CLI::add_command( 'ast-block-templates', 'Ast_Block_Templates_Sync_Library_WP_CLI' );
|
101 |
+
}
|
102 |
|
103 |
endif;
|
lib/gutenberg-templates/classes/class-ast-block-templates-sync-library.php
CHANGED
@@ -300,7 +300,7 @@ if ( ! class_exists( 'Ast_Block_Templates_Sync_Library' ) ) :
|
|
300 |
|
301 |
$query_args = array();
|
302 |
|
303 |
-
$api_url = add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-sites/v1/get-last-export-checksums/' );
|
304 |
|
305 |
$response = wp_remote_get( $api_url, $api_args );
|
306 |
|
@@ -502,7 +502,7 @@ if ( ! class_exists( 'Ast_Block_Templates_Sync_Library' ) ) :
|
|
502 |
)
|
503 |
);
|
504 |
|
505 |
-
$api_url = add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-sites/v1/get-total-pages/' );
|
506 |
|
507 |
ast_block_templates_log( 'SITE: ' . $api_url );
|
508 |
|
@@ -546,7 +546,7 @@ if ( ! class_exists( 'Ast_Block_Templates_Sync_Library' ) ) :
|
|
546 |
)
|
547 |
);
|
548 |
|
549 |
-
$api_url = add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-blocks/v1/get-blocks-count/' );
|
550 |
|
551 |
ast_block_templates_log( 'BLOCK: ' . $api_url );
|
552 |
|
@@ -591,7 +591,7 @@ if ( ! class_exists( 'Ast_Block_Templates_Sync_Library' ) ) :
|
|
591 |
)
|
592 |
);
|
593 |
|
594 |
-
$api_url = add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-sites/v1/sites-and-pages/' );
|
595 |
|
596 |
ast_block_templates_log( 'SITE: ' . $api_url );
|
597 |
|
@@ -649,7 +649,7 @@ if ( ! class_exists( 'Ast_Block_Templates_Sync_Library' ) ) :
|
|
649 |
)
|
650 |
);
|
651 |
|
652 |
-
$api_url = add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/wp/v2/blocks-category/' );
|
653 |
|
654 |
$response = wp_remote_get( $api_url, $api_args );
|
655 |
|
@@ -708,7 +708,7 @@ if ( ! class_exists( 'Ast_Block_Templates_Sync_Library' ) ) :
|
|
708 |
)
|
709 |
);
|
710 |
|
711 |
-
$api_url = add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-blocks/v1/blocks/' );
|
712 |
|
713 |
ast_block_templates_log( 'BLOCK: ' . $api_url );
|
714 |
|
300 |
|
301 |
$query_args = array();
|
302 |
|
303 |
+
$api_url = esc_url_raw( add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-sites/v1/get-last-export-checksums/' ) );
|
304 |
|
305 |
$response = wp_remote_get( $api_url, $api_args );
|
306 |
|
502 |
)
|
503 |
);
|
504 |
|
505 |
+
$api_url = esc_url_raw( add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-sites/v1/get-total-pages/' ) );
|
506 |
|
507 |
ast_block_templates_log( 'SITE: ' . $api_url );
|
508 |
|
546 |
)
|
547 |
);
|
548 |
|
549 |
+
$api_url = esc_url_raw( add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-blocks/v1/get-blocks-count/' ) );
|
550 |
|
551 |
ast_block_templates_log( 'BLOCK: ' . $api_url );
|
552 |
|
591 |
)
|
592 |
);
|
593 |
|
594 |
+
$api_url = esc_url_raw( add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-sites/v1/sites-and-pages/' ) );
|
595 |
|
596 |
ast_block_templates_log( 'SITE: ' . $api_url );
|
597 |
|
649 |
)
|
650 |
);
|
651 |
|
652 |
+
$api_url = esc_url_raw( add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/wp/v2/blocks-category/' ) );
|
653 |
|
654 |
$response = wp_remote_get( $api_url, $api_args );
|
655 |
|
708 |
)
|
709 |
);
|
710 |
|
711 |
+
$api_url = esc_url_raw( add_query_arg( $query_args, trailingslashit( AST_BLOCK_TEMPLATES_LIBRARY_URL ) . 'wp-json/astra-blocks/v1/blocks/' ) );
|
712 |
|
713 |
ast_block_templates_log( 'BLOCK: ' . $api_url );
|
714 |
|
lib/gutenberg-templates/classes/class-ast-block-templates.php
CHANGED
@@ -336,7 +336,7 @@ if ( ! class_exists( 'Ast_Block_Templates' ) ) :
|
|
336 |
)
|
337 |
);
|
338 |
|
339 |
-
$demo_api_uri = add_query_arg( $request_params, $api_uri );
|
340 |
|
341 |
// API Call.
|
342 |
$response = wp_remote_get( $demo_api_uri, $api_args );
|
@@ -377,7 +377,7 @@ if ( ! class_exists( 'Ast_Block_Templates' ) ) :
|
|
377 |
return;
|
378 |
}
|
379 |
|
380 |
-
wp_enqueue_script( 'ast-block-templates', AST_BLOCK_TEMPLATES_URI . 'dist/
|
381 |
wp_add_inline_script( 'ast-block-templates', 'window.lodash = _.noConflict();', 'after' );
|
382 |
|
383 |
wp_enqueue_style( 'ast-block-templates', AST_BLOCK_TEMPLATES_URI . 'dist/style.css', array(), AST_BLOCK_TEMPLATES_VER, 'all' );
|
@@ -400,10 +400,10 @@ if ( ! class_exists( 'Ast_Block_Templates' ) ) :
|
|
400 |
'wpforms_status' => $this->get_plugin_status( 'wpforms-lite/wpforms.php' ),
|
401 |
'gutenberg_status' => $this->get_plugin_status( 'gutenberg/gutenberg.php' ),
|
402 |
'_ajax_nonce' => wp_create_nonce( 'ast-block-templates-ajax-nonce' ),
|
403 |
-
'button_text' => esc_html__( '
|
404 |
'display_button_logo' => true,
|
405 |
-
'popup_logo_uri' => AST_BLOCK_TEMPLATES_URI . 'dist/logo.svg',
|
406 |
-
'button_logo' => AST_BLOCK_TEMPLATES_URI . 'dist/
|
407 |
'button_class' => '',
|
408 |
'display_suggestion_link' => true,
|
409 |
'suggestion_link' => 'https://wpastra.com/sites-suggestions/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=suggestions',
|
336 |
)
|
337 |
);
|
338 |
|
339 |
+
$demo_api_uri = esc_url_raw( add_query_arg( $request_params, $api_uri ) );
|
340 |
|
341 |
// API Call.
|
342 |
$response = wp_remote_get( $demo_api_uri, $api_args );
|
377 |
return;
|
378 |
}
|
379 |
|
380 |
+
wp_enqueue_script( 'ast-block-templates', AST_BLOCK_TEMPLATES_URI . 'dist/null.js', array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'masonry', 'imagesloaded', 'updates' ), AST_BLOCK_TEMPLATES_VER, true );
|
381 |
wp_add_inline_script( 'ast-block-templates', 'window.lodash = _.noConflict();', 'after' );
|
382 |
|
383 |
wp_enqueue_style( 'ast-block-templates', AST_BLOCK_TEMPLATES_URI . 'dist/style.css', array(), AST_BLOCK_TEMPLATES_VER, 'all' );
|
400 |
'wpforms_status' => $this->get_plugin_status( 'wpforms-lite/wpforms.php' ),
|
401 |
'gutenberg_status' => $this->get_plugin_status( 'gutenberg/gutenberg.php' ),
|
402 |
'_ajax_nonce' => wp_create_nonce( 'ast-block-templates-ajax-nonce' ),
|
403 |
+
'button_text' => esc_html__( 'Template Kits', 'ast-block-templates' ),
|
404 |
'display_button_logo' => true,
|
405 |
+
'popup_logo_uri' => AST_BLOCK_TEMPLATES_URI . 'dist/spectra-logo.svg',
|
406 |
+
'button_logo' => AST_BLOCK_TEMPLATES_URI . 'dist/spectra.svg',
|
407 |
'button_class' => '',
|
408 |
'display_suggestion_link' => true,
|
409 |
'suggestion_link' => 'https://wpastra.com/sites-suggestions/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=suggestions',
|
lib/gutenberg-templates/dist/main.js
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=49)}([function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var o=(i=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(a).concat([o]).join("\n")}var i,l,c;return[r].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);n&&o[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),t.push(c))}},t}},function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),i=[];function l(e){for(var t=-1,r=0;r<i.length;r++)if(i[r].identifier===e){t=r;break}return t}function c(e,t){for(var r={},n=[],o=0;o<e.length;o++){var a=e[o],c=t.base?a[0]+t.base:a[0],s=r[c]||0,u="".concat(c," ").concat(s);r[c]=s+1;var f=l(u),p={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(p)):i.push({identifier:u,updater:g(p,t),references:1}),n.push(u)}return n}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var u,f=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function m(e,t,r){var n=r.css,o=r.media,a=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var d=null,h=0;function g(e,t){var r,n,o;if(t.singleton){var a=h++;r=d||(d=s(t)),n=p.bind(null,r,a,!1),o=p.bind(null,r,a,!0)}else r=s(t),n=m.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=l(r[n]);i[o].references--}for(var a=c(e,t),s=0;s<r.length;s++){var u=l(r[s]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}r=a}}}},function(e,t,r){(function(e,n){var o;
|
2 |
-
/**
|
3 |
-
* @license
|
4 |
-
* Lodash <https://lodash.com/>
|
5 |
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
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 a="Expected a function",i="__lodash_placeholder__",l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",s="[object Array]",u="[object Boolean]",f="[object Date]",p="[object Error]",m="[object Function]",d="[object GeneratorFunction]",h="[object Map]",g="[object Number]",v="[object Object]",b="[object RegExp]",y="[object Set]",w="[object String]",k="[object Symbol]",_="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",E="[object Float32Array]",B="[object Float64Array]",P="[object Int8Array]",R="[object Int16Array]",I="[object Int32Array]",T="[object Uint8Array]",A="[object Uint16Array]",C="[object Uint32Array]",j=/\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),W=RegExp(L.source),z=/<%-([\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,re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,le=/^0o[0-7]+$/i,ce=/^(?: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",me="\\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",de="[\\ud800-\\udfff]",he="["+me+"]",ge="["+pe+"]",ve="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+me+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ke="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Be="(?:"+ye+"|"+we+")",Pe="(?:"+Ee+"|"+we+")",Re="(?:"+ge+"|"+ke+")"+"?",Ie="[\\ufe0e\\ufe0f]?"+Re+("(?:\\u200d(?:"+[_e,xe,Se].join("|")+")[\\ufe0e\\ufe0f]?"+Re+")*"),Te="(?:"+[be,xe,Se].join("|")+")"+Ie,Ae="(?:"+[_e+ge+"?",ge,xe,Se,de].join("|")+")",Ce=RegExp("['’]","g"),je=RegExp(ge,"g"),Oe=RegExp(ke+"(?="+ke+")|"+Ae+Ie,"g"),Ne=RegExp([Ee+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Ee,"$"].join("|")+")",Pe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Ee+Be,"$"].join("|")+")",Ee+"?"+Be+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ee+"+(?:['’](?: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_])",ve,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"],We=-1,ze={};ze[E]=ze[B]=ze[P]=ze[R]=ze[I]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[A]=ze[C]=!0,ze[c]=ze[s]=ze[x]=ze[u]=ze[S]=ze[f]=ze[p]=ze[m]=ze[h]=ze[g]=ze[v]=ze[b]=ze[y]=ze[w]=ze[_]=!1;var Me={};Me[c]=Me[s]=Me[x]=Me[S]=Me[u]=Me[f]=Me[E]=Me[B]=Me[P]=Me[R]=Me[I]=Me[h]=Me[g]=Me[v]=Me[b]=Me[y]=Me[w]=Me[k]=Me[T]=Me["[object Uint8ClampedArray]"]=Me[A]=Me[C]=!0,Me[p]=Me[m]=Me[_]=!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 n&&n&&!n.nodeType&&n,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,rt=Je&&Je.isRegExp,nt=Je&&Je.isSet,ot=Je&&Je.isTypedArray;function at(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function it(e,t,r,n){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function lt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function ct(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function st(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function ut(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function ft(e,t){return!!(null==e?0:e.length)&&kt(e,t,0)>-1}function pt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function mt(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function dt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function ht(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}function gt(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function vt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var bt=Et("length");function yt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function wt(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function kt(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):wt(e,xt,r)}function _t(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1}function xt(e){return e!=e}function St(e,t){var r=null==e?0:e.length;return r?Rt(e,t)/r:NaN}function Et(e){return function(t){return null==t?void 0:t[e]}}function Bt(e){return function(t){return null==e?void 0:e[t]}}function Pt(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}function Rt(e,t){for(var r,n=-1,o=e.length;++n<o;){var a=t(e[n]);void 0!==a&&(r=void 0===r?a:r+a)}return r}function It(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Tt(e){return e?e.slice(0,Ht(e)+1).replace(H,""):e}function At(e){return function(t){return e(t)}}function Ct(e,t){return mt(t,(function(t){return e[t]}))}function jt(e,t){return e.has(t)}function Ot(e,t){for(var r=-1,n=e.length;++r<n&&kt(t,e[r],0)>-1;);return r}function Nt(e,t){for(var r=e.length;r--&&kt(t,e[r],0)>-1;);return r}function Ft(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Lt=Bt({"À":"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=Bt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Wt(e){return"\\"+Ve[e]}function zt(e){return Fe.test(e)}function Mt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Vt(e,t){return function(r){return e(t(r))}}function Ut(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var l=e[r];l!==t&&l!==i||(e[r]=i,a[o++]=r)}return a}function $t(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function qt(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function Gt(e){return zt(e)?function(e){var t=Oe.lastIndex=0;for(;Oe.test(e);)++t;return t}(e):bt(e)}function Yt(e){return zt(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=Bt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Zt=function e(t){var r,n=(t=null==t?Ye:Zt.defaults(Ye.Object(),t,Zt.pick(Ye,De))).Array,o=t.Date,K=t.Error,pe=t.Function,me=t.Math,de=t.Object,he=t.RegExp,ge=t.String,ve=t.TypeError,be=n.prototype,ye=pe.prototype,we=de.prototype,ke=t["__core-js_shared__"],_e=ye.toString,xe=we.hasOwnProperty,Se=0,Ee=(r=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Be=we.toString,Pe=_e.call(de),Re=Ye._,Ie=he("^"+_e.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(de.getPrototypeOf,de),qe=de.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=ta(de,"defineProperty");return e({},"",{}),e}catch(e){}}(),Bt=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Xt=o&&o.now!==Ye.Date.now&&o.now,Jt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Qt=me.ceil,er=me.floor,tr=de.getOwnPropertySymbols,rr=Te?Te.isBuffer:void 0,nr=t.isFinite,or=be.join,ar=Vt(de.keys,de),ir=me.max,lr=me.min,cr=o.now,sr=t.parseInt,ur=me.random,fr=be.reverse,pr=ta(t,"DataView"),mr=ta(t,"Map"),dr=ta(t,"Promise"),hr=ta(t,"Set"),gr=ta(t,"WeakMap"),vr=ta(de,"create"),br=gr&&new gr,yr={},wr=Ra(pr),kr=Ra(mr),_r=Ra(dr),xr=Ra(hr),Sr=Ra(gr),Er=Ae?Ae.prototype:void 0,Br=Er?Er.valueOf:void 0,Pr=Er?Er.toString:void 0;function Rr(e){if(qi(e)&&!Oi(e)&&!(e instanceof Cr)){if(e instanceof Ar)return e;if(xe.call(e,"__wrapped__"))return Ia(e)}return new Ar(e)}var Ir=function(){function e(){}return function(t){if(!$i(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Tr(){}function Ar(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Cr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function jr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Or(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Nr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Fr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Nr;++t<r;)this.add(e[t])}function Lr(e){var t=this.__data__=new Or(e);this.size=t.size}function Dr(e,t){var r=Oi(e),n=!r&&ji(e),o=!r&&!n&&Di(e),a=!r&&!n&&!o&&Qi(e),i=r||n||o||a,l=i?It(e.length,ge):[],c=l.length;for(var s in e)!t&&!xe.call(e,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ca(s,c))||l.push(s);return l}function Wr(e){var t=e.length;return t?e[Ln(0,t-1)]:void 0}function zr(e,t){return Ea(yo(e),Kr(t,0,e.length))}function Mr(e){return Ea(yo(e))}function Vr(e,t,r){(void 0!==r&&!Ti(e[t],r)||void 0===r&&!(t in e))&&Yr(e,t,r)}function Ur(e,t,r){var n=e[t];xe.call(e,t)&&Ti(n,r)&&(void 0!==r||t in e)||Yr(e,t,r)}function $r(e,t){for(var r=e.length;r--;)if(Ti(e[r][0],t))return r;return-1}function qr(e,t,r,n){return en(e,(function(e,o,a){t(n,e,r(e),a)})),n}function Gr(e,t){return e&&wo(t,kl(t),e)}function Yr(e,t,r){"__proto__"==t&&bt?bt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Hr(e,t){for(var r=-1,o=t.length,a=n(o),i=null==e;++r<o;)a[r]=i?void 0:gl(e,t[r]);return a}function Kr(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}function Zr(e,t,r,n,o,a){var i,l=1&t,s=2&t,p=4&t;if(r&&(i=o?r(e,n,o,a):r(e)),void 0!==i)return i;if(!$i(e))return e;var _=Oi(e);if(_){if(i=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!l)return yo(e,i)}else{var j=oa(e),O=j==m||j==d;if(Di(e))return po(e,l);if(j==v||j==c||O&&!o){if(i=s||O?{}:ia(e),!l)return s?function(e,t){return wo(e,na(e),t)}(e,function(e,t){return e&&wo(t,_l(t),e)}(i,e)):function(e,t){return wo(e,ra(e),t)}(e,Gr(i,e))}else{if(!Me[j])return o?e:{};i=function(e,t,r){var n=e.constructor;switch(t){case x:return mo(e);case u:case f:return new n(+e);case S:return function(e,t){var r=t?mo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case E:case B:case P:case R:case I:case T:case"[object Uint8ClampedArray]":case A:case C:return ho(e,r);case h:return new n;case g:case w:return new n(e);case b:return function(e){var t=new e.constructor(e.source,ne.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new n;case k:return o=e,Br?de(Br.call(o)):{}}var o}(e,j,l)}}a||(a=new Lr);var N=a.get(e);if(N)return N;a.set(e,i),Zi(e)?e.forEach((function(n){i.add(Zr(n,t,r,n,e,a))})):Gi(e)&&e.forEach((function(n,o){i.set(o,Zr(n,t,r,o,e,a))}));var F=_?void 0:(p?s?Ho:Yo:s?_l:kl)(e);return lt(F||e,(function(n,o){F&&(n=e[o=n]),Ur(i,o,Zr(n,t,r,o,e,a))})),i}function Xr(e,t,r){var n=r.length;if(null==e)return!n;for(e=de(e);n--;){var o=r[n],a=t[o],i=e[o];if(void 0===i&&!(o in e)||!a(i))return!1}return!0}function Jr(e,t,r){if("function"!=typeof e)throw new ve(a);return ka((function(){e.apply(void 0,r)}),t)}function Qr(e,t,r,n){var o=-1,a=ft,i=!0,l=e.length,c=[],s=t.length;if(!l)return c;r&&(t=mt(t,At(r))),n?(a=pt,i=!1):t.length>=200&&(a=jt,i=!1,t=new Fr(t));e:for(;++o<l;){var u=e[o],f=null==r?u:r(u);if(u=n||0!==u?u:0,i&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;c.push(u)}else a(t,f,n)||c.push(u)}return c}Rr.templateSettings={escape:z,evaluate:M,interpolate:V,variable:"",imports:{_:Rr}},Rr.prototype=Tr.prototype,Rr.prototype.constructor=Rr,Ar.prototype=Ir(Tr.prototype),Ar.prototype.constructor=Ar,Cr.prototype=Ir(Tr.prototype),Cr.prototype.constructor=Cr,jr.prototype.clear=function(){this.__data__=vr?vr(null):{},this.size=0},jr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},jr.prototype.get=function(e){var t=this.__data__;if(vr){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return xe.call(t,e)?t[e]:void 0},jr.prototype.has=function(e){var t=this.__data__;return vr?void 0!==t[e]:xe.call(t,e)},jr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=vr&&void 0===t?"__lodash_hash_undefined__":t,this},Or.prototype.clear=function(){this.__data__=[],this.size=0},Or.prototype.delete=function(e){var t=this.__data__,r=$r(t,e);return!(r<0)&&(r==t.length-1?t.pop():He.call(t,r,1),--this.size,!0)},Or.prototype.get=function(e){var t=this.__data__,r=$r(t,e);return r<0?void 0:t[r][1]},Or.prototype.has=function(e){return $r(this.__data__,e)>-1},Or.prototype.set=function(e,t){var r=this.__data__,n=$r(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Nr.prototype.clear=function(){this.size=0,this.__data__={hash:new jr,map:new(mr||Or),string:new jr}},Nr.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Nr.prototype.get=function(e){return Qo(this,e).get(e)},Nr.prototype.has=function(e){return Qo(this,e).has(e)},Nr.prototype.set=function(e,t){var r=Qo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Fr.prototype.add=Fr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Fr.prototype.has=function(e){return this.__data__.has(e)},Lr.prototype.clear=function(){this.__data__=new Or,this.size=0},Lr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Lr.prototype.get=function(e){return this.__data__.get(e)},Lr.prototype.has=function(e){return this.__data__.has(e)},Lr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Or){var n=r.__data__;if(!mr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Nr(n)}return r.set(e,t),this.size=r.size,this};var en=xo(sn),tn=xo(un,!0);function rn(e,t){var r=!0;return en(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function nn(e,t,r){for(var n=-1,o=e.length;++n<o;){var a=e[n],i=t(a);if(null!=i&&(void 0===l?i==i&&!Ji(i):r(i,l)))var l=i,c=a}return c}function on(e,t){var r=[];return en(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function an(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=la),o||(o=[]);++a<i;){var l=e[a];t>0&&r(l)?t>1?an(l,t-1,r,n,o):dt(o,l):n||(o[o.length]=l)}return o}var ln=So(),cn=So(!0);function sn(e,t){return e&&ln(e,t,kl)}function un(e,t){return e&&cn(e,t,kl)}function fn(e,t){return ut(t,(function(t){return Mi(e[t])}))}function pn(e,t){for(var r=0,n=(t=co(t,e)).length;null!=e&&r<n;)e=e[Pa(t[r++])];return r&&r==n?e:void 0}function mn(e,t,r){var n=t(e);return Oi(e)?n:dt(n,r(e))}function dn(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Je&&Je in de(e)?function(e){var t=xe.call(e,Je),r=e[Je];try{e[Je]=void 0;var n=!0}catch(e){}var o=Be.call(e);n&&(t?e[Je]=r:delete e[Je]);return o}(e):function(e){return Be.call(e)}(e)}function hn(e,t){return e>t}function gn(e,t){return null!=e&&xe.call(e,t)}function vn(e,t){return null!=e&&t in de(e)}function bn(e,t,r){for(var o=r?pt:ft,a=e[0].length,i=e.length,l=i,c=n(i),s=1/0,u=[];l--;){var f=e[l];l&&t&&(f=mt(f,At(t))),s=lr(f.length,s),c[l]=!r&&(t||a>=120&&f.length>=120)?new Fr(l&&f):void 0}f=e[0];var p=-1,m=c[0];e:for(;++p<a&&u.length<s;){var d=f[p],h=t?t(d):d;if(d=r||0!==d?d:0,!(m?jt(m,h):o(u,h,r))){for(l=i;--l;){var g=c[l];if(!(g?jt(g,h):o(e[l],h,r)))continue e}m&&m.push(h),u.push(d)}}return u}function yn(e,t,r){var n=null==(e=va(e,t=co(t,e)))?e:e[Pa(za(t))];return null==n?void 0:at(n,e,r)}function wn(e){return qi(e)&&dn(e)==c}function kn(e,t,r,n,o){return e===t||(null==e||null==t||!qi(e)&&!qi(t)?e!=e&&t!=t:function(e,t,r,n,o,a){var i=Oi(e),l=Oi(t),m=i?s:oa(e),d=l?s:oa(t),_=(m=m==c?v:m)==v,E=(d=d==c?v:d)==v,B=m==d;if(B&&Di(e)){if(!Di(t))return!1;i=!0,_=!1}if(B&&!_)return a||(a=new Lr),i||Qi(e)?qo(e,t,r,n,o,a):function(e,t,r,n,o,a,i){switch(r){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!a(new Oe(e),new Oe(t)));case u:case f:case g:return Ti(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case w:return e==t+"";case h:var l=Mt;case y:var c=1&n;if(l||(l=$t),e.size!=t.size&&!c)return!1;var s=i.get(e);if(s)return s==t;n|=2,i.set(e,t);var m=qo(l(e),l(t),n,o,a,i);return i.delete(e),m;case k:if(Br)return Br.call(e)==Br.call(t)}return!1}(e,t,m,r,n,o,a);if(!(1&r)){var P=_&&xe.call(e,"__wrapped__"),R=E&&xe.call(t,"__wrapped__");if(P||R){var I=P?e.value():e,T=R?t.value():t;return a||(a=new Lr),o(I,T,r,n,a)}}if(!B)return!1;return a||(a=new Lr),function(e,t,r,n,o,a){var i=1&r,l=Yo(e),c=l.length,s=Yo(t).length;if(c!=s&&!i)return!1;var u=c;for(;u--;){var f=l[u];if(!(i?f in t:xe.call(t,f)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var d=!0;a.set(e,t),a.set(t,e);var h=i;for(;++u<c;){f=l[u];var g=e[f],v=t[f];if(n)var b=i?n(v,g,f,t,e,a):n(g,v,f,e,t,a);if(!(void 0===b?g===v||o(g,v,r,n,a):b)){d=!1;break}h||(h="constructor"==f)}if(d&&!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||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,r,n,o,a)}(e,t,r,n,kn,o))}function _n(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=de(e);o--;){var l=r[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=r[o])[0],s=e[c],u=l[1];if(i&&l[2]){if(void 0===s&&!(c in e))return!1}else{var f=new Lr;if(n)var p=n(s,u,c,e,t,f);if(!(void 0===p?kn(u,s,3,n,f):p))return!1}}return!0}function xn(e){return!(!$i(e)||(t=e,Ee&&Ee in t))&&(Mi(e)?Ie:ie).test(Ra(e));var t}function Sn(e){return"function"==typeof e?e:null==e?Yl:"object"==typeof e?Oi(e)?Tn(e[0],e[1]):In(e):rc(e)}function En(e){if(!ma(e))return ar(e);var t=[];for(var r in de(e))xe.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Bn(e){if(!$i(e))return function(e){var t=[];if(null!=e)for(var r in de(e))t.push(r);return t}(e);var t=ma(e),r=[];for(var n in e)("constructor"!=n||!t&&xe.call(e,n))&&r.push(n);return r}function Pn(e,t){return e<t}function Rn(e,t){var r=-1,o=Fi(e)?n(e.length):[];return en(e,(function(e,n,a){o[++r]=t(e,n,a)})),o}function In(e){var t=ea(e);return 1==t.length&&t[0][2]?ha(t[0][0],t[0][1]):function(r){return r===e||_n(r,e,t)}}function Tn(e,t){return ua(e)&&da(t)?ha(Pa(e),t):function(r){var n=gl(r,e);return void 0===n&&n===t?vl(r,e):kn(t,n,3)}}function An(e,t,r,n,o){e!==t&&ln(t,(function(a,i){if(o||(o=new Lr),$i(a))!function(e,t,r,n,o,a,i){var l=ya(e,r),c=ya(t,r),s=i.get(c);if(s)return void Vr(e,r,s);var u=a?a(l,c,r+"",e,t,i):void 0,f=void 0===u;if(f){var p=Oi(c),m=!p&&Di(c),d=!p&&!m&&Qi(c);u=c,p||m||d?Oi(l)?u=l:Li(l)?u=yo(l):m?(f=!1,u=po(c,!0)):d?(f=!1,u=ho(c,!0)):u=[]:Hi(c)||ji(c)?(u=l,ji(l)?u=ll(l):$i(l)&&!Mi(l)||(u=ia(c))):f=!1}f&&(i.set(c,u),o(u,c,n,a,i),i.delete(c));Vr(e,r,u)}(e,t,i,r,An,n,o);else{var l=n?n(ya(e,i),a,i+"",e,t,o):void 0;void 0===l&&(l=a),Vr(e,i,l)}}),_l)}function Cn(e,t){var r=e.length;if(r)return ca(t+=t<0?r:0,r)?e[t]:void 0}function jn(e,t,r){t=t.length?mt(t,(function(e){return Oi(e)?function(t){return pn(t,1===e.length?e[0]:e)}:e})):[Yl];var n=-1;return t=mt(t,At(Jo())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(Rn(e,(function(e,r,o){return{criteria:mt(t,(function(t){return t(e)})),index:++n,value:e}})),(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,a=t.criteria,i=o.length,l=r.length;for(;++n<i;){var c=go(o[n],a[n]);if(c){if(n>=l)return c;var s=r[n];return c*("desc"==s?-1:1)}}return e.index-t.index}(e,t,r)}))}function On(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],l=pn(e,i);r(l,i)&&Vn(a,co(i,e),l)}return a}function Nn(e,t,r,n){var o=n?_t:kt,a=-1,i=t.length,l=e;for(e===t&&(t=yo(t)),r&&(l=mt(e,At(r)));++a<i;)for(var c=0,s=t[a],u=r?r(s):s;(c=o(l,u,c,n))>-1;)l!==e&&He.call(l,c,1),He.call(e,c,1);return e}function Fn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==a){var a=o;ca(o)?He.call(e,o,1):eo(e,o)}}return e}function Ln(e,t){return e+er(ur()*(t-e+1))}function Dn(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=er(t/2))&&(e+=e)}while(t);return r}function Wn(e,t){return _a(ga(e,t,Yl),e+"")}function zn(e){return Wr(Tl(e))}function Mn(e,t){var r=Tl(e);return Ea(r,Kr(t,0,r.length))}function Vn(e,t,r,n){if(!$i(e))return e;for(var o=-1,a=(t=co(t,e)).length,i=a-1,l=e;null!=l&&++o<a;){var c=Pa(t[o]),s=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=i){var u=l[c];void 0===(s=n?n(u,c,l):void 0)&&(s=$i(u)?u:ca(t[o+1])?[]:{})}Ur(l,c,s),l=l[c]}return e}var Un=br?function(e,t){return br.set(e,t),e}:Yl,$n=bt?function(e,t){return bt(e,"toString",{configurable:!0,enumerable:!1,value:$l(t),writable:!0})}:Yl;function qn(e){return Ea(Tl(e))}function Gn(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=n(a);++o<a;)i[o]=e[o+t];return i}function Yn(e,t){var r;return en(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function Hn(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var a=n+o>>>1,i=e[a];null!==i&&!Ji(i)&&(r?i<=t:i<t)?n=a+1:o=a}return o}return Kn(e,t,Yl,r)}function Kn(e,t,r,n){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var i=(t=r(t))!=t,l=null===t,c=Ji(t),s=void 0===t;o<a;){var u=er((o+a)/2),f=r(e[u]),p=void 0!==f,m=null===f,d=f==f,h=Ji(f);if(i)var g=n||d;else g=s?d&&(n||p):l?d&&p&&(n||!m):c?d&&p&&!m&&(n||!h):!m&&!h&&(n?f<=t:f<t);g?o=u+1:a=u}return lr(a,4294967294)}function Zn(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var i=e[r],l=t?t(i):i;if(!r||!Ti(l,c)){var c=l;a[o++]=0===i?0:i}}return a}function Xn(e){return"number"==typeof e?e:Ji(e)?NaN:+e}function Jn(e){if("string"==typeof e)return e;if(Oi(e))return mt(e,Jn)+"";if(Ji(e))return Pr?Pr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qn(e,t,r){var n=-1,o=ft,a=e.length,i=!0,l=[],c=l;if(r)i=!1,o=pt;else if(a>=200){var s=t?null:Wo(e);if(s)return $t(s);i=!1,o=jt,c=new Fr}else c=t?[]:l;e:for(;++n<a;){var u=e[n],f=t?t(u):u;if(u=r||0!==u?u:0,i&&f==f){for(var p=c.length;p--;)if(c[p]===f)continue e;t&&c.push(f),l.push(u)}else o(c,f,r)||(c!==l&&c.push(f),l.push(u))}return l}function eo(e,t){return null==(e=va(e,t=co(t,e)))||delete e[Pa(za(t))]}function to(e,t,r,n){return Vn(e,t,r(pn(e,t)),n)}function ro(e,t,r,n){for(var o=e.length,a=n?o:-1;(n?a--:++a<o)&&t(e[a],a,e););return r?Gn(e,n?0:a,n?a+1:o):Gn(e,n?a+1:0,n?o:a)}function no(e,t){var r=e;return r instanceof Cr&&(r=r.value()),ht(t,(function(e,t){return t.func.apply(t.thisArg,dt([e],t.args))}),r)}function oo(e,t,r){var o=e.length;if(o<2)return o?Qn(e[0]):[];for(var a=-1,i=n(o);++a<o;)for(var l=e[a],c=-1;++c<o;)c!=a&&(i[a]=Qr(i[a]||l,e[c],t,r));return Qn(an(i,1),t,r)}function ao(e,t,r){for(var n=-1,o=e.length,a=t.length,i={};++n<o;){var l=n<a?t[n]:void 0;r(i,e[n],l)}return i}function io(e){return Li(e)?e:[]}function lo(e){return"function"==typeof e?e:Yl}function co(e,t){return Oi(e)?e:ua(e,t)?[e]:Ba(cl(e))}var so=Wn;function uo(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:Gn(e,t,r)}var fo=Bt||function(e){return Ye.clearTimeout(e)};function po(e,t){if(t)return e.slice();var r=e.length,n=Fe?Fe(r):new e.constructor(r);return e.copy(n),n}function mo(e){var t=new e.constructor(e.byteLength);return new Oe(t).set(new Oe(e)),t}function ho(e,t){var r=t?mo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function go(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=Ji(e),i=void 0!==t,l=null===t,c=t==t,s=Ji(t);if(!l&&!s&&!a&&e>t||a&&i&&c&&!l&&!s||n&&i&&c||!r&&c||!o)return 1;if(!n&&!a&&!s&&e<t||s&&r&&o&&!n&&!a||l&&r&&o||!i&&o||!c)return-1}return 0}function vo(e,t,r,o){for(var a=-1,i=e.length,l=r.length,c=-1,s=t.length,u=ir(i-l,0),f=n(s+u),p=!o;++c<s;)f[c]=t[c];for(;++a<l;)(p||a<i)&&(f[r[a]]=e[a]);for(;u--;)f[c++]=e[a++];return f}function bo(e,t,r,o){for(var a=-1,i=e.length,l=-1,c=r.length,s=-1,u=t.length,f=ir(i-c,0),p=n(f+u),m=!o;++a<f;)p[a]=e[a];for(var d=a;++s<u;)p[d+s]=t[s];for(;++l<c;)(m||a<i)&&(p[d+r[l]]=e[a++]);return p}function yo(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function wo(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var l=t[a],c=n?n(r[l],e[l],l,r,e):void 0;void 0===c&&(c=e[l]),o?Yr(r,l,c):Ur(r,l,c)}return r}function ko(e,t){return function(r,n){var o=Oi(r)?it:qr,a=t?t():{};return o(r,e,Jo(n,2),a)}}function _o(e){return Wn((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&sa(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=de(t);++n<o;){var l=r[n];l&&e(t,l,n,a)}return t}))}function xo(e,t){return function(r,n){if(null==r)return r;if(!Fi(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=de(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}}function So(e){return function(t,r,n){for(var o=-1,a=de(t),i=n(t),l=i.length;l--;){var c=i[e?l:++o];if(!1===r(a[c],c,a))break}return t}}function Eo(e){return function(t){var r=zt(t=cl(t))?Yt(t):void 0,n=r?r[0]:t.charAt(0),o=r?uo(r,1).join(""):t.slice(1);return n[e]()+o}}function Bo(e){return function(t){return ht(Ml(jl(t).replace(Ce,"")),e,"")}}function Po(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 r=Ir(e.prototype),n=e.apply(r,t);return $i(n)?n:r}}function Ro(e){return function(t,r,n){var o=de(t);if(!Fi(t)){var a=Jo(r,3);t=kl(t),r=function(e){return a(o[e],e,o)}}var i=e(t,r,n);return i>-1?o[a?t[i]:i]:void 0}}function Io(e){return Go((function(t){var r=t.length,n=r,o=Ar.prototype.thru;for(e&&t.reverse();n--;){var i=t[n];if("function"!=typeof i)throw new ve(a);if(o&&!l&&"wrapper"==Zo(i))var l=new Ar([],!0)}for(n=l?n:r;++n<r;){var c=Zo(i=t[n]),s="wrapper"==c?Ko(i):void 0;l=s&&fa(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?l[Zo(s[0])].apply(l,s[3]):1==i.length&&fa(i)?l[c]():l.thru(i)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Oi(n))return l.plant(n).value();for(var o=0,a=r?t[o].apply(this,e):n;++o<r;)a=t[o].call(this,a);return a}}))}function To(e,t,r,o,a,i,l,c,s,u){var f=128&t,p=1&t,m=2&t,d=24&t,h=512&t,g=m?void 0:Po(e);return function v(){for(var b=arguments.length,y=n(b),w=b;w--;)y[w]=arguments[w];if(d)var k=Xo(v),_=Ft(y,k);if(o&&(y=vo(y,o,a,d)),i&&(y=bo(y,i,l,d)),b-=_,d&&b<u){var x=Ut(y,k);return Lo(e,t,To,v.placeholder,r,y,x,c,s,u-b)}var S=p?r:this,E=m?S[e]:e;return b=y.length,c?y=ba(y,c):h&&b>1&&y.reverse(),f&&s<b&&(y.length=s),this&&this!==Ye&&this instanceof v&&(E=g||Po(E)),E.apply(S,y)}}function Ao(e,t){return function(r,n){return function(e,t,r,n){return sn(e,(function(e,o,a){t(n,r(e),o,a)})),n}(r,e,t(n),{})}}function Co(e,t){return function(r,n){var o;if(void 0===r&&void 0===n)return t;if(void 0!==r&&(o=r),void 0!==n){if(void 0===o)return n;"string"==typeof r||"string"==typeof n?(r=Jn(r),n=Jn(n)):(r=Xn(r),n=Xn(n)),o=e(r,n)}return o}}function jo(e){return Go((function(t){return t=mt(t,At(Jo())),Wn((function(r){var n=this;return e(t,(function(e){return at(e,n,r)}))}))}))}function Oo(e,t){var r=(t=void 0===t?" ":Jn(t)).length;if(r<2)return r?Dn(t,e):t;var n=Dn(t,Qt(e/Gt(t)));return zt(t)?uo(Yt(n),0,e).join(""):n.slice(0,e)}function No(e){return function(t,r,o){return o&&"number"!=typeof o&&sa(t,r,o)&&(r=o=void 0),t=nl(t),void 0===r?(r=t,t=0):r=nl(r),function(e,t,r,o){for(var a=-1,i=ir(Qt((t-e)/(r||1)),0),l=n(i);i--;)l[o?i:++a]=e,e+=r;return l}(t,r,o=void 0===o?t<r?1:-1:nl(o),e)}}function Fo(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=il(t),r=il(r)),e(t,r)}}function Lo(e,t,r,n,o,a,i,l,c,s){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var f=[e,t,o,u?a:void 0,u?i:void 0,u?void 0:a,u?void 0:i,l,c,s],p=r.apply(void 0,f);return fa(e)&&wa(p,f),p.placeholder=n,xa(p,e,t)}function Do(e){var t=me[e];return function(e,r){if(e=il(e),(r=null==r?0:lr(ol(r),292))&&nr(e)){var n=(cl(e)+"e").split("e");return+((n=(cl(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Wo=hr&&1/$t(new hr([,-0]))[1]==1/0?function(e){return new hr(e)}:Jl;function zo(e){return function(t){var r=oa(t);return r==h?Mt(t):r==y?qt(t):function(e,t){return mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Mo(e,t,r,o,l,c,s,u){var f=2&t;if(!f&&"function"!=typeof e)throw new ve(a);var p=o?o.length:0;if(p||(t&=-97,o=l=void 0),s=void 0===s?s:ir(ol(s),0),u=void 0===u?u:ol(u),p-=l?l.length:0,64&t){var m=o,d=l;o=l=void 0}var h=f?void 0:Ko(e),g=[e,t,r,o,l,m,d,c,s,u];if(h&&function(e,t){var r=e[1],n=t[1],o=r|n,a=o<131,l=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!l)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var c=t[3];if(c){var s=e[3];e[3]=s?vo(s,c,t[4]):c,e[4]=s?Ut(e[3],i):t[4]}(c=t[5])&&(s=e[5],e[5]=s?bo(s,c,t[6]):c,e[6]=s?Ut(e[5],i):t[6]);(c=t[7])&&(e[7]=c);128&n&&(e[8]=null==e[8]?t[8]:lr(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(g,h),e=g[0],t=g[1],r=g[2],o=g[3],l=g[4],!(u=g[9]=void 0===g[9]?f?0:e.length:ir(g[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,r){var o=Po(e);return function a(){for(var i=arguments.length,l=n(i),c=i,s=Xo(a);c--;)l[c]=arguments[c];var u=i<3&&l[0]!==s&&l[i-1]!==s?[]:Ut(l,s);if((i-=u.length)<r)return Lo(e,t,To,a.placeholder,void 0,l,u,void 0,void 0,r-i);var f=this&&this!==Ye&&this instanceof a?o:e;return at(f,this,l)}}(e,t,u):32!=t&&33!=t||l.length?To.apply(void 0,g):function(e,t,r,o){var a=1&t,i=Po(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=o.length,f=n(u+c),p=this&&this!==Ye&&this instanceof t?i:e;++s<u;)f[s]=o[s];for(;c--;)f[s++]=arguments[++l];return at(p,a?r:this,f)}}(e,t,r,o);else var v=function(e,t,r){var n=1&t,o=Po(e);return function t(){var a=this&&this!==Ye&&this instanceof t?o:e;return a.apply(n?r:this,arguments)}}(e,t,r);return xa((h?Un:wa)(v,g),e,t)}function Vo(e,t,r,n){return void 0===e||Ti(e,we[r])&&!xe.call(n,r)?t:e}function Uo(e,t,r,n,o,a){return $i(e)&&$i(t)&&(a.set(t,e),An(e,t,void 0,Uo,a),a.delete(t)),e}function $o(e){return Hi(e)?void 0:e}function qo(e,t,r,n,o,a){var i=1&r,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var s=a.get(e),u=a.get(t);if(s&&u)return s==t&&u==e;var f=-1,p=!0,m=2&r?new Fr:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var d=e[f],h=t[f];if(n)var g=i?n(h,d,f,t,e,a):n(d,h,f,e,t,a);if(void 0!==g){if(g)continue;p=!1;break}if(m){if(!vt(t,(function(e,t){if(!jt(m,t)&&(d===e||o(d,e,r,n,a)))return m.push(t)}))){p=!1;break}}else if(d!==h&&!o(d,h,r,n,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Go(e){return _a(ga(e,void 0,Na),e+"")}function Yo(e){return mn(e,kl,ra)}function Ho(e){return mn(e,_l,na)}var Ko=br?function(e){return br.get(e)}:Jl;function Zo(e){for(var t=e.name+"",r=yr[t],n=xe.call(yr,t)?r.length:0;n--;){var o=r[n],a=o.func;if(null==a||a==e)return o.name}return t}function Xo(e){return(xe.call(Rr,"placeholder")?Rr:e).placeholder}function Jo(){var e=Rr.iteratee||Hl;return e=e===Hl?Sn:e,arguments.length?e(arguments[0],arguments[1]):e}function Qo(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ea(e){for(var t=kl(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,da(o)]}return t}function ta(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return xn(r)?r:void 0}var ra=tr?function(e){return null==e?[]:(e=de(e),ut(tr(e),(function(t){return Ge.call(e,t)})))}:ac,na=tr?function(e){for(var t=[];e;)dt(t,ra(e)),e=Ve(e);return t}:ac,oa=dn;function aa(e,t,r){for(var n=-1,o=(t=co(t,e)).length,a=!1;++n<o;){var i=Pa(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Ui(o)&&ca(i,o)&&(Oi(e)||ji(e))}function ia(e){return"function"!=typeof e.constructor||ma(e)?{}:Ir(Ve(e))}function la(e){return Oi(e)||ji(e)||!!(Ke&&e&&e[Ke])}function ca(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ce.test(e))&&e>-1&&e%1==0&&e<t}function sa(e,t,r){if(!$i(r))return!1;var n=typeof t;return!!("number"==n?Fi(r)&&ca(t,r.length):"string"==n&&t in r)&&Ti(r[t],e)}function ua(e,t){if(Oi(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Ji(e))||($.test(e)||!U.test(e)||null!=t&&e in de(t))}function fa(e){var t=Zo(e),r=Rr[t];if("function"!=typeof r||!(t in Cr.prototype))return!1;if(e===r)return!0;var n=Ko(r);return!!n&&e===n[0]}(pr&&oa(new pr(new ArrayBuffer(1)))!=S||mr&&oa(new mr)!=h||dr&&"[object Promise]"!=oa(dr.resolve())||hr&&oa(new hr)!=y||gr&&oa(new gr)!=_)&&(oa=function(e){var t=dn(e),r=t==v?e.constructor:void 0,n=r?Ra(r):"";if(n)switch(n){case wr:return S;case kr:return h;case _r:return"[object Promise]";case xr:return y;case Sr:return _}return t});var pa=ke?Mi:ic;function ma(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function da(e){return e==e&&!$i(e)}function ha(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in de(r)))}}function ga(e,t,r){return t=ir(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,i=ir(o.length-t,0),l=n(i);++a<i;)l[a]=o[t+a];a=-1;for(var c=n(t+1);++a<t;)c[a]=o[a];return c[t]=r(l),at(e,this,c)}}function va(e,t){return t.length<2?e:pn(e,Gn(t,0,-1))}function ba(e,t){for(var r=e.length,n=lr(t.length,r),o=yo(e);n--;){var a=t[n];e[n]=ca(a,r)?o[a]:void 0}return e}function ya(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var wa=Sa(Un),ka=Jt||function(e,t){return Ye.setTimeout(e,t)},_a=Sa($n);function xa(e,t,r){var n=t+"";return _a(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return lt(l,(function(r){var n="_."+r[0];t&r[1]&&!ft(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(J):[]}(n),r)))}function Sa(e){var t=0,r=0;return function(){var n=cr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ea(e,t){var r=-1,n=e.length,o=n-1;for(t=void 0===t?n:t;++r<t;){var a=Ln(r,o),i=e[a];e[a]=e[r],e[r]=i}return e.length=t,e}var Ba=function(e){var t=Si(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(q,(function(e,r,n,o){t.push(n?o.replace(te,"$1"):r||e)})),t}));function Pa(e){if("string"==typeof e||Ji(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ra(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ia(e){if(e instanceof Cr)return e.clone();var t=new Ar(e.__wrapped__,e.__chain__);return t.__actions__=yo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ta=Wn((function(e,t){return Li(e)?Qr(e,an(t,1,Li,!0)):[]})),Aa=Wn((function(e,t){var r=za(t);return Li(r)&&(r=void 0),Li(e)?Qr(e,an(t,1,Li,!0),Jo(r,2)):[]})),Ca=Wn((function(e,t){var r=za(t);return Li(r)&&(r=void 0),Li(e)?Qr(e,an(t,1,Li,!0),void 0,r):[]}));function ja(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ol(r);return o<0&&(o=ir(n+o,0)),wt(e,Jo(t,3),o)}function Oa(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return void 0!==r&&(o=ol(r),o=r<0?ir(n+o,0):lr(o,n-1)),wt(e,Jo(t,3),o,!0)}function Na(e){return(null==e?0:e.length)?an(e,1):[]}function Fa(e){return e&&e.length?e[0]:void 0}var La=Wn((function(e){var t=mt(e,io);return t.length&&t[0]===e[0]?bn(t):[]})),Da=Wn((function(e){var t=za(e),r=mt(e,io);return t===za(r)?t=void 0:r.pop(),r.length&&r[0]===e[0]?bn(r,Jo(t,2)):[]})),Wa=Wn((function(e){var t=za(e),r=mt(e,io);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?bn(r,void 0,t):[]}));function za(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ma=Wn(Va);function Va(e,t){return e&&e.length&&t&&t.length?Nn(e,t):e}var Ua=Go((function(e,t){var r=null==e?0:e.length,n=Hr(e,t);return Fn(e,mt(t,(function(e){return ca(e,r)?+e:e})).sort(go)),n}));function $a(e){return null==e?e:fr.call(e)}var qa=Wn((function(e){return Qn(an(e,1,Li,!0))})),Ga=Wn((function(e){var t=za(e);return Li(t)&&(t=void 0),Qn(an(e,1,Li,!0),Jo(t,2))})),Ya=Wn((function(e){var t=za(e);return t="function"==typeof t?t:void 0,Qn(an(e,1,Li,!0),void 0,t)}));function Ha(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Li(e))return t=ir(e.length,t),!0})),It(t,(function(t){return mt(e,Et(t))}))}function Ka(e,t){if(!e||!e.length)return[];var r=Ha(e);return null==t?r:mt(r,(function(e){return at(t,void 0,e)}))}var Za=Wn((function(e,t){return Li(e)?Qr(e,t):[]})),Xa=Wn((function(e){return oo(ut(e,Li))})),Ja=Wn((function(e){var t=za(e);return Li(t)&&(t=void 0),oo(ut(e,Li),Jo(t,2))})),Qa=Wn((function(e){var t=za(e);return t="function"==typeof t?t:void 0,oo(ut(e,Li),void 0,t)})),ei=Wn(Ha);var ti=Wn((function(e){var t=e.length,r=t>1?e[t-1]:void 0;return r="function"==typeof r?(e.pop(),r):void 0,Ka(e,r)}));function ri(e){var t=Rr(e);return t.__chain__=!0,t}function ni(e,t){return t(e)}var oi=Go((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return Hr(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Cr&&ca(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:ni,args:[o],thisArg:void 0}),new Ar(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ai=ko((function(e,t,r){xe.call(e,r)?++e[r]:Yr(e,r,1)}));var ii=Ro(ja),li=Ro(Oa);function ci(e,t){return(Oi(e)?lt:en)(e,Jo(t,3))}function si(e,t){return(Oi(e)?ct:tn)(e,Jo(t,3))}var ui=ko((function(e,t,r){xe.call(e,r)?e[r].push(t):Yr(e,r,[t])}));var fi=Wn((function(e,t,r){var o=-1,a="function"==typeof t,i=Fi(e)?n(e.length):[];return en(e,(function(e){i[++o]=a?at(t,e,r):yn(e,t,r)})),i})),pi=ko((function(e,t,r){Yr(e,r,t)}));function mi(e,t){return(Oi(e)?mt:Rn)(e,Jo(t,3))}var di=ko((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var hi=Wn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&sa(e,t[0],t[1])?t=[]:r>2&&sa(t[0],t[1],t[2])&&(t=[t[0]]),jn(e,an(t,1),[])})),gi=Xt||function(){return Ye.Date.now()};function vi(e,t,r){return t=r?void 0:t,Mo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function bi(e,t){var r;if("function"!=typeof t)throw new ve(a);return e=ol(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}var yi=Wn((function(e,t,r){var n=1;if(r.length){var o=Ut(r,Xo(yi));n|=32}return Mo(e,n,t,r,o)})),wi=Wn((function(e,t,r){var n=3;if(r.length){var o=Ut(r,Xo(wi));n|=32}return Mo(t,n,e,r,o)}));function ki(e,t,r){var n,o,i,l,c,s,u=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new ve(a);function d(t){var r=n,a=o;return n=o=void 0,u=t,l=e.apply(a,r)}function h(e){return u=e,c=ka(v,t),f?d(e):l}function g(e){var r=e-s;return void 0===s||r>=t||r<0||p&&e-u>=i}function v(){var e=gi();if(g(e))return b(e);c=ka(v,function(e){var r=t-(e-s);return p?lr(r,i-(e-u)):r}(e))}function b(e){return c=void 0,m&&n?d(e):(n=o=void 0,l)}function y(){var e=gi(),r=g(e);if(n=arguments,o=this,s=e,r){if(void 0===c)return h(s);if(p)return fo(c),c=ka(v,t),d(s)}return void 0===c&&(c=ka(v,t)),l}return t=il(t)||0,$i(r)&&(f=!!r.leading,i=(p="maxWait"in r)?ir(il(r.maxWait)||0,t):i,m="trailing"in r?!!r.trailing:m),y.cancel=function(){void 0!==c&&fo(c),u=0,n=s=o=c=void 0},y.flush=function(){return void 0===c?l:b(gi())},y}var _i=Wn((function(e,t){return Jr(e,1,t)})),xi=Wn((function(e,t,r){return Jr(e,il(t)||0,r)}));function Si(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(a);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Si.Cache||Nr),r}function Ei(e){if("function"!=typeof e)throw new ve(a);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)}}Si.Cache=Nr;var Bi=so((function(e,t){var r=(t=1==t.length&&Oi(t[0])?mt(t[0],At(Jo())):mt(an(t,1),At(Jo()))).length;return Wn((function(n){for(var o=-1,a=lr(n.length,r);++o<a;)n[o]=t[o].call(this,n[o]);return at(e,this,n)}))})),Pi=Wn((function(e,t){return Mo(e,32,void 0,t,Ut(t,Xo(Pi)))})),Ri=Wn((function(e,t){return Mo(e,64,void 0,t,Ut(t,Xo(Ri)))})),Ii=Go((function(e,t){return Mo(e,256,void 0,void 0,void 0,t)}));function Ti(e,t){return e===t||e!=e&&t!=t}var Ai=Fo(hn),Ci=Fo((function(e,t){return e>=t})),ji=wn(function(){return arguments}())?wn:function(e){return qi(e)&&xe.call(e,"callee")&&!Ge.call(e,"callee")},Oi=n.isArray,Ni=Qe?At(Qe):function(e){return qi(e)&&dn(e)==x};function Fi(e){return null!=e&&Ui(e.length)&&!Mi(e)}function Li(e){return qi(e)&&Fi(e)}var Di=rr||ic,Wi=et?At(et):function(e){return qi(e)&&dn(e)==f};function zi(e){if(!qi(e))return!1;var t=dn(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Hi(e)}function Mi(e){if(!$i(e))return!1;var t=dn(e);return t==m||t==d||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Vi(e){return"number"==typeof e&&e==ol(e)}function Ui(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function $i(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qi(e){return null!=e&&"object"==typeof e}var Gi=tt?At(tt):function(e){return qi(e)&&oa(e)==h};function Yi(e){return"number"==typeof e||qi(e)&&dn(e)==g}function Hi(e){if(!qi(e)||dn(e)!=v)return!1;var t=Ve(e);if(null===t)return!0;var r=xe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&_e.call(r)==Pe}var Ki=rt?At(rt):function(e){return qi(e)&&dn(e)==b};var Zi=nt?At(nt):function(e){return qi(e)&&oa(e)==y};function Xi(e){return"string"==typeof e||!Oi(e)&&qi(e)&&dn(e)==w}function Ji(e){return"symbol"==typeof e||qi(e)&&dn(e)==k}var Qi=ot?At(ot):function(e){return qi(e)&&Ui(e.length)&&!!ze[dn(e)]};var el=Fo(Pn),tl=Fo((function(e,t){return e<=t}));function rl(e){if(!e)return[];if(Fi(e))return Xi(e)?Yt(e):yo(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=oa(e);return(t==h?Mt:t==y?$t:Tl)(e)}function nl(e){return e?(e=il(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ol(e){var t=nl(e),r=t%1;return t==t?r?t-r:t:0}function al(e){return e?Kr(ol(e),0,4294967295):0}function il(e){if("number"==typeof e)return e;if(Ji(e))return NaN;if($i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var r=ae.test(e);return r||le.test(e)?$e(e.slice(2),r?2:8):oe.test(e)?NaN:+e}function ll(e){return wo(e,_l(e))}function cl(e){return null==e?"":Jn(e)}var sl=_o((function(e,t){if(ma(t)||Fi(t))wo(t,kl(t),e);else for(var r in t)xe.call(t,r)&&Ur(e,r,t[r])})),ul=_o((function(e,t){wo(t,_l(t),e)})),fl=_o((function(e,t,r,n){wo(t,_l(t),e,n)})),pl=_o((function(e,t,r,n){wo(t,kl(t),e,n)})),ml=Go(Hr);var dl=Wn((function(e,t){e=de(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&sa(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=_l(a),l=-1,c=i.length;++l<c;){var s=i[l],u=e[s];(void 0===u||Ti(u,we[s])&&!xe.call(e,s))&&(e[s]=a[s])}return e})),hl=Wn((function(e){return e.push(void 0,Uo),at(Sl,void 0,e)}));function gl(e,t,r){var n=null==e?void 0:pn(e,t);return void 0===n?r:n}function vl(e,t){return null!=e&&aa(e,t,vn)}var bl=Ao((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=r}),$l(Yl)),yl=Ao((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),xe.call(e,t)?e[t].push(r):e[t]=[r]}),Jo),wl=Wn(yn);function kl(e){return Fi(e)?Dr(e):En(e)}function _l(e){return Fi(e)?Dr(e,!0):Bn(e)}var xl=_o((function(e,t,r){An(e,t,r)})),Sl=_o((function(e,t,r,n){An(e,t,r,n)})),El=Go((function(e,t){var r={};if(null==e)return r;var n=!1;t=mt(t,(function(t){return t=co(t,e),n||(n=t.length>1),t})),wo(e,Ho(e),r),n&&(r=Zr(r,7,$o));for(var o=t.length;o--;)eo(r,t[o]);return r}));var Bl=Go((function(e,t){return null==e?{}:function(e,t){return On(e,t,(function(t,r){return vl(e,r)}))}(e,t)}));function Pl(e,t){if(null==e)return{};var r=mt(Ho(e),(function(e){return[e]}));return t=Jo(t),On(e,r,(function(e,r){return t(e,r[0])}))}var Rl=zo(kl),Il=zo(_l);function Tl(e){return null==e?[]:Ct(e,kl(e))}var Al=Bo((function(e,t,r){return t=t.toLowerCase(),e+(r?Cl(t):t)}));function Cl(e){return zl(cl(e).toLowerCase())}function jl(e){return(e=cl(e))&&e.replace(se,Lt).replace(je,"")}var Ol=Bo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Nl=Bo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Fl=Eo("toLowerCase");var Ll=Bo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Dl=Bo((function(e,t,r){return e+(r?" ":"")+zl(t)}));var Wl=Bo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),zl=Eo("toUpperCase");function Ml(e,t,r){return e=cl(e),void 0===(t=r?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 Vl=Wn((function(e,t){try{return at(e,void 0,t)}catch(e){return zi(e)?e:new K(e)}})),Ul=Go((function(e,t){return lt(t,(function(t){t=Pa(t),Yr(e,t,yi(e[t],e))})),e}));function $l(e){return function(){return e}}var ql=Io(),Gl=Io(!0);function Yl(e){return e}function Hl(e){return Sn("function"==typeof e?e:Zr(e,1))}var Kl=Wn((function(e,t){return function(r){return yn(r,e,t)}})),Zl=Wn((function(e,t){return function(r){return yn(e,r,t)}}));function Xl(e,t,r){var n=kl(t),o=fn(t,n);null!=r||$i(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=fn(t,kl(t)));var a=!($i(r)&&"chain"in r&&!r.chain),i=Mi(e);return lt(o,(function(r){var n=t[r];e[r]=n,i&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__),o=r.__actions__=yo(this.__actions__);return o.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,dt([this.value()],arguments))})})),e}function Jl(){}var Ql=jo(mt),ec=jo(st),tc=jo(vt);function rc(e){return ua(e)?Et(Pa(e)):function(e){return function(t){return pn(t,e)}}(e)}var nc=No(),oc=No(!0);function ac(){return[]}function ic(){return!1}var lc=Co((function(e,t){return e+t}),0),cc=Do("ceil"),sc=Co((function(e,t){return e/t}),1),uc=Do("floor");var fc,pc=Co((function(e,t){return e*t}),1),mc=Do("round"),dc=Co((function(e,t){return e-t}),0);return Rr.after=function(e,t){if("function"!=typeof t)throw new ve(a);return e=ol(e),function(){if(--e<1)return t.apply(this,arguments)}},Rr.ary=vi,Rr.assign=sl,Rr.assignIn=ul,Rr.assignInWith=fl,Rr.assignWith=pl,Rr.at=ml,Rr.before=bi,Rr.bind=yi,Rr.bindAll=Ul,Rr.bindKey=wi,Rr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Oi(e)?e:[e]},Rr.chain=ri,Rr.chunk=function(e,t,r){t=(r?sa(e,t,r):void 0===t)?1:ir(ol(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,i=0,l=n(Qt(o/t));a<o;)l[i++]=Gn(e,a,a+=t);return l},Rr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var a=e[t];a&&(o[n++]=a)}return o},Rr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return dt(Oi(r)?yo(r):[r],an(t,1))},Rr.cond=function(e){var t=null==e?0:e.length,r=Jo();return e=t?mt(e,(function(e){if("function"!=typeof e[1])throw new ve(a);return[r(e[0]),e[1]]})):[],Wn((function(r){for(var n=-1;++n<t;){var o=e[n];if(at(o[0],this,r))return at(o[1],this,r)}}))},Rr.conforms=function(e){return function(e){var t=kl(e);return function(r){return Xr(r,e,t)}}(Zr(e,1))},Rr.constant=$l,Rr.countBy=ai,Rr.create=function(e,t){var r=Ir(e);return null==t?r:Gr(r,t)},Rr.curry=function e(t,r,n){var o=Mo(t,8,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return o.placeholder=e.placeholder,o},Rr.curryRight=function e(t,r,n){var o=Mo(t,16,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return o.placeholder=e.placeholder,o},Rr.debounce=ki,Rr.defaults=dl,Rr.defaultsDeep=hl,Rr.defer=_i,Rr.delay=xi,Rr.difference=Ta,Rr.differenceBy=Aa,Rr.differenceWith=Ca,Rr.drop=function(e,t,r){var n=null==e?0:e.length;return n?Gn(e,(t=r||void 0===t?1:ol(t))<0?0:t,n):[]},Rr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?Gn(e,0,(t=n-(t=r||void 0===t?1:ol(t)))<0?0:t):[]},Rr.dropRightWhile=function(e,t){return e&&e.length?ro(e,Jo(t,3),!0,!0):[]},Rr.dropWhile=function(e,t){return e&&e.length?ro(e,Jo(t,3),!0):[]},Rr.fill=function(e,t,r,n){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&sa(e,t,r)&&(r=0,n=o),function(e,t,r,n){var o=e.length;for((r=ol(r))<0&&(r=-r>o?0:o+r),(n=void 0===n||n>o?o:ol(n))<0&&(n+=o),n=r>n?0:al(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Rr.filter=function(e,t){return(Oi(e)?ut:on)(e,Jo(t,3))},Rr.flatMap=function(e,t){return an(mi(e,t),1)},Rr.flatMapDeep=function(e,t){return an(mi(e,t),1/0)},Rr.flatMapDepth=function(e,t,r){return r=void 0===r?1:ol(r),an(mi(e,t),r)},Rr.flatten=Na,Rr.flattenDeep=function(e){return(null==e?0:e.length)?an(e,1/0):[]},Rr.flattenDepth=function(e,t){return(null==e?0:e.length)?an(e,t=void 0===t?1:ol(t)):[]},Rr.flip=function(e){return Mo(e,512)},Rr.flow=ql,Rr.flowRight=Gl,Rr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Rr.functions=function(e){return null==e?[]:fn(e,kl(e))},Rr.functionsIn=function(e){return null==e?[]:fn(e,_l(e))},Rr.groupBy=ui,Rr.initial=function(e){return(null==e?0:e.length)?Gn(e,0,-1):[]},Rr.intersection=La,Rr.intersectionBy=Da,Rr.intersectionWith=Wa,Rr.invert=bl,Rr.invertBy=yl,Rr.invokeMap=fi,Rr.iteratee=Hl,Rr.keyBy=pi,Rr.keys=kl,Rr.keysIn=_l,Rr.map=mi,Rr.mapKeys=function(e,t){var r={};return t=Jo(t,3),sn(e,(function(e,n,o){Yr(r,t(e,n,o),e)})),r},Rr.mapValues=function(e,t){var r={};return t=Jo(t,3),sn(e,(function(e,n,o){Yr(r,n,t(e,n,o))})),r},Rr.matches=function(e){return In(Zr(e,1))},Rr.matchesProperty=function(e,t){return Tn(e,Zr(t,1))},Rr.memoize=Si,Rr.merge=xl,Rr.mergeWith=Sl,Rr.method=Kl,Rr.methodOf=Zl,Rr.mixin=Xl,Rr.negate=Ei,Rr.nthArg=function(e){return e=ol(e),Wn((function(t){return Cn(t,e)}))},Rr.omit=El,Rr.omitBy=function(e,t){return Pl(e,Ei(Jo(t)))},Rr.once=function(e){return bi(2,e)},Rr.orderBy=function(e,t,r,n){return null==e?[]:(Oi(t)||(t=null==t?[]:[t]),Oi(r=n?void 0:r)||(r=null==r?[]:[r]),jn(e,t,r))},Rr.over=Ql,Rr.overArgs=Bi,Rr.overEvery=ec,Rr.overSome=tc,Rr.partial=Pi,Rr.partialRight=Ri,Rr.partition=di,Rr.pick=Bl,Rr.pickBy=Pl,Rr.property=rc,Rr.propertyOf=function(e){return function(t){return null==e?void 0:pn(e,t)}},Rr.pull=Ma,Rr.pullAll=Va,Rr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Nn(e,t,Jo(r,2)):e},Rr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Nn(e,t,void 0,r):e},Rr.pullAt=Ua,Rr.range=nc,Rr.rangeRight=oc,Rr.rearg=Ii,Rr.reject=function(e,t){return(Oi(e)?ut:on)(e,Ei(Jo(t,3)))},Rr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],a=e.length;for(t=Jo(t,3);++n<a;){var i=e[n];t(i,n,e)&&(r.push(i),o.push(n))}return Fn(e,o),r},Rr.rest=function(e,t){if("function"!=typeof e)throw new ve(a);return Wn(e,t=void 0===t?t:ol(t))},Rr.reverse=$a,Rr.sampleSize=function(e,t,r){return t=(r?sa(e,t,r):void 0===t)?1:ol(t),(Oi(e)?zr:Mn)(e,t)},Rr.set=function(e,t,r){return null==e?e:Vn(e,t,r)},Rr.setWith=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:Vn(e,t,r,n)},Rr.shuffle=function(e){return(Oi(e)?Mr:qn)(e)},Rr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&sa(e,t,r)?(t=0,r=n):(t=null==t?0:ol(t),r=void 0===r?n:ol(r)),Gn(e,t,r)):[]},Rr.sortBy=hi,Rr.sortedUniq=function(e){return e&&e.length?Zn(e):[]},Rr.sortedUniqBy=function(e,t){return e&&e.length?Zn(e,Jo(t,2)):[]},Rr.split=function(e,t,r){return r&&"number"!=typeof r&&sa(e,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(e=cl(e))&&("string"==typeof t||null!=t&&!Ki(t))&&!(t=Jn(t))&&zt(e)?uo(Yt(e),0,r):e.split(t,r):[]},Rr.spread=function(e,t){if("function"!=typeof e)throw new ve(a);return t=null==t?0:ir(ol(t),0),Wn((function(r){var n=r[t],o=uo(r,0,t);return n&&dt(o,n),at(e,this,o)}))},Rr.tail=function(e){var t=null==e?0:e.length;return t?Gn(e,1,t):[]},Rr.take=function(e,t,r){return e&&e.length?Gn(e,0,(t=r||void 0===t?1:ol(t))<0?0:t):[]},Rr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Gn(e,(t=n-(t=r||void 0===t?1:ol(t)))<0?0:t,n):[]},Rr.takeRightWhile=function(e,t){return e&&e.length?ro(e,Jo(t,3),!1,!0):[]},Rr.takeWhile=function(e,t){return e&&e.length?ro(e,Jo(t,3)):[]},Rr.tap=function(e,t){return t(e),e},Rr.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new ve(a);return $i(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),ki(e,t,{leading:n,maxWait:t,trailing:o})},Rr.thru=ni,Rr.toArray=rl,Rr.toPairs=Rl,Rr.toPairsIn=Il,Rr.toPath=function(e){return Oi(e)?mt(e,Pa):Ji(e)?[e]:yo(Ba(cl(e)))},Rr.toPlainObject=ll,Rr.transform=function(e,t,r){var n=Oi(e),o=n||Di(e)||Qi(e);if(t=Jo(t,4),null==r){var a=e&&e.constructor;r=o?n?new a:[]:$i(e)&&Mi(a)?Ir(Ve(e)):{}}return(o?lt:sn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Rr.unary=function(e){return vi(e,1)},Rr.union=qa,Rr.unionBy=Ga,Rr.unionWith=Ya,Rr.uniq=function(e){return e&&e.length?Qn(e):[]},Rr.uniqBy=function(e,t){return e&&e.length?Qn(e,Jo(t,2)):[]},Rr.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qn(e,void 0,t):[]},Rr.unset=function(e,t){return null==e||eo(e,t)},Rr.unzip=Ha,Rr.unzipWith=Ka,Rr.update=function(e,t,r){return null==e?e:to(e,t,lo(r))},Rr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:to(e,t,lo(r),n)},Rr.values=Tl,Rr.valuesIn=function(e){return null==e?[]:Ct(e,_l(e))},Rr.without=Za,Rr.words=Ml,Rr.wrap=function(e,t){return Pi(lo(t),e)},Rr.xor=Xa,Rr.xorBy=Ja,Rr.xorWith=Qa,Rr.zip=ei,Rr.zipObject=function(e,t){return ao(e||[],t||[],Ur)},Rr.zipObjectDeep=function(e,t){return ao(e||[],t||[],Vn)},Rr.zipWith=ti,Rr.entries=Rl,Rr.entriesIn=Il,Rr.extend=ul,Rr.extendWith=fl,Xl(Rr,Rr),Rr.add=lc,Rr.attempt=Vl,Rr.camelCase=Al,Rr.capitalize=Cl,Rr.ceil=cc,Rr.clamp=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=il(r))==r?r:0),void 0!==t&&(t=(t=il(t))==t?t:0),Kr(il(e),t,r)},Rr.clone=function(e){return Zr(e,4)},Rr.cloneDeep=function(e){return Zr(e,5)},Rr.cloneDeepWith=function(e,t){return Zr(e,5,t="function"==typeof t?t:void 0)},Rr.cloneWith=function(e,t){return Zr(e,4,t="function"==typeof t?t:void 0)},Rr.conformsTo=function(e,t){return null==t||Xr(e,t,kl(t))},Rr.deburr=jl,Rr.defaultTo=function(e,t){return null==e||e!=e?t:e},Rr.divide=sc,Rr.endsWith=function(e,t,r){e=cl(e),t=Jn(t);var n=e.length,o=r=void 0===r?n:Kr(ol(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Rr.eq=Ti,Rr.escape=function(e){return(e=cl(e))&&W.test(e)?e.replace(L,Dt):e},Rr.escapeRegExp=function(e){return(e=cl(e))&&Y.test(e)?e.replace(G,"\\$&"):e},Rr.every=function(e,t,r){var n=Oi(e)?st:rn;return r&&sa(e,t,r)&&(t=void 0),n(e,Jo(t,3))},Rr.find=ii,Rr.findIndex=ja,Rr.findKey=function(e,t){return yt(e,Jo(t,3),sn)},Rr.findLast=li,Rr.findLastIndex=Oa,Rr.findLastKey=function(e,t){return yt(e,Jo(t,3),un)},Rr.floor=uc,Rr.forEach=ci,Rr.forEachRight=si,Rr.forIn=function(e,t){return null==e?e:ln(e,Jo(t,3),_l)},Rr.forInRight=function(e,t){return null==e?e:cn(e,Jo(t,3),_l)},Rr.forOwn=function(e,t){return e&&sn(e,Jo(t,3))},Rr.forOwnRight=function(e,t){return e&&un(e,Jo(t,3))},Rr.get=gl,Rr.gt=Ai,Rr.gte=Ci,Rr.has=function(e,t){return null!=e&&aa(e,t,gn)},Rr.hasIn=vl,Rr.head=Fa,Rr.identity=Yl,Rr.includes=function(e,t,r,n){e=Fi(e)?e:Tl(e),r=r&&!n?ol(r):0;var o=e.length;return r<0&&(r=ir(o+r,0)),Xi(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&kt(e,t,r)>-1},Rr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ol(r);return o<0&&(o=ir(n+o,0)),kt(e,t,o)},Rr.inRange=function(e,t,r){return t=nl(t),void 0===r?(r=t,t=0):r=nl(r),function(e,t,r){return e>=lr(t,r)&&e<ir(t,r)}(e=il(e),t,r)},Rr.invoke=wl,Rr.isArguments=ji,Rr.isArray=Oi,Rr.isArrayBuffer=Ni,Rr.isArrayLike=Fi,Rr.isArrayLikeObject=Li,Rr.isBoolean=function(e){return!0===e||!1===e||qi(e)&&dn(e)==u},Rr.isBuffer=Di,Rr.isDate=Wi,Rr.isElement=function(e){return qi(e)&&1===e.nodeType&&!Hi(e)},Rr.isEmpty=function(e){if(null==e)return!0;if(Fi(e)&&(Oi(e)||"string"==typeof e||"function"==typeof e.splice||Di(e)||Qi(e)||ji(e)))return!e.length;var t=oa(e);if(t==h||t==y)return!e.size;if(ma(e))return!En(e).length;for(var r in e)if(xe.call(e,r))return!1;return!0},Rr.isEqual=function(e,t){return kn(e,t)},Rr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?kn(e,t,void 0,r):!!n},Rr.isError=zi,Rr.isFinite=function(e){return"number"==typeof e&&nr(e)},Rr.isFunction=Mi,Rr.isInteger=Vi,Rr.isLength=Ui,Rr.isMap=Gi,Rr.isMatch=function(e,t){return e===t||_n(e,t,ea(t))},Rr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:void 0,_n(e,t,ea(t),r)},Rr.isNaN=function(e){return Yi(e)&&e!=+e},Rr.isNative=function(e){if(pa(e))throw new K("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xn(e)},Rr.isNil=function(e){return null==e},Rr.isNull=function(e){return null===e},Rr.isNumber=Yi,Rr.isObject=$i,Rr.isObjectLike=qi,Rr.isPlainObject=Hi,Rr.isRegExp=Ki,Rr.isSafeInteger=function(e){return Vi(e)&&e>=-9007199254740991&&e<=9007199254740991},Rr.isSet=Zi,Rr.isString=Xi,Rr.isSymbol=Ji,Rr.isTypedArray=Qi,Rr.isUndefined=function(e){return void 0===e},Rr.isWeakMap=function(e){return qi(e)&&oa(e)==_},Rr.isWeakSet=function(e){return qi(e)&&"[object WeakSet]"==dn(e)},Rr.join=function(e,t){return null==e?"":or.call(e,t)},Rr.kebabCase=Ol,Rr.last=za,Rr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return void 0!==r&&(o=(o=ol(r))<0?ir(n+o,0):lr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):wt(e,xt,o,!0)},Rr.lowerCase=Nl,Rr.lowerFirst=Fl,Rr.lt=el,Rr.lte=tl,Rr.max=function(e){return e&&e.length?nn(e,Yl,hn):void 0},Rr.maxBy=function(e,t){return e&&e.length?nn(e,Jo(t,2),hn):void 0},Rr.mean=function(e){return St(e,Yl)},Rr.meanBy=function(e,t){return St(e,Jo(t,2))},Rr.min=function(e){return e&&e.length?nn(e,Yl,Pn):void 0},Rr.minBy=function(e,t){return e&&e.length?nn(e,Jo(t,2),Pn):void 0},Rr.stubArray=ac,Rr.stubFalse=ic,Rr.stubObject=function(){return{}},Rr.stubString=function(){return""},Rr.stubTrue=function(){return!0},Rr.multiply=pc,Rr.nth=function(e,t){return e&&e.length?Cn(e,ol(t)):void 0},Rr.noConflict=function(){return Ye._===this&&(Ye._=Re),this},Rr.noop=Jl,Rr.now=gi,Rr.pad=function(e,t,r){e=cl(e);var n=(t=ol(t))?Gt(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Oo(er(o),r)+e+Oo(Qt(o),r)},Rr.padEnd=function(e,t,r){e=cl(e);var n=(t=ol(t))?Gt(e):0;return t&&n<t?e+Oo(t-n,r):e},Rr.padStart=function(e,t,r){e=cl(e);var n=(t=ol(t))?Gt(e):0;return t&&n<t?Oo(t-n,r)+e:e},Rr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),sr(cl(e).replace(H,""),t||0)},Rr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&sa(e,t,r)&&(t=r=void 0),void 0===r&&("boolean"==typeof t?(r=t,t=void 0):"boolean"==typeof e&&(r=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=nl(e),void 0===t?(t=e,e=0):t=nl(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=ur();return lr(e+o*(t-e+Ue("1e-"+((o+"").length-1))),t)}return Ln(e,t)},Rr.reduce=function(e,t,r){var n=Oi(e)?ht:Pt,o=arguments.length<3;return n(e,Jo(t,4),r,o,en)},Rr.reduceRight=function(e,t,r){var n=Oi(e)?gt:Pt,o=arguments.length<3;return n(e,Jo(t,4),r,o,tn)},Rr.repeat=function(e,t,r){return t=(r?sa(e,t,r):void 0===t)?1:ol(t),Dn(cl(e),t)},Rr.replace=function(){var e=arguments,t=cl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Rr.result=function(e,t,r){var n=-1,o=(t=co(t,e)).length;for(o||(o=1,e=void 0);++n<o;){var a=null==e?void 0:e[Pa(t[n])];void 0===a&&(n=o,a=r),e=Mi(a)?a.call(e):a}return e},Rr.round=mc,Rr.runInContext=e,Rr.sample=function(e){return(Oi(e)?Wr:zn)(e)},Rr.size=function(e){if(null==e)return 0;if(Fi(e))return Xi(e)?Gt(e):e.length;var t=oa(e);return t==h||t==y?e.size:En(e).length},Rr.snakeCase=Ll,Rr.some=function(e,t,r){var n=Oi(e)?vt:Yn;return r&&sa(e,t,r)&&(t=void 0),n(e,Jo(t,3))},Rr.sortedIndex=function(e,t){return Hn(e,t)},Rr.sortedIndexBy=function(e,t,r){return Kn(e,t,Jo(r,2))},Rr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=Hn(e,t);if(n<r&&Ti(e[n],t))return n}return-1},Rr.sortedLastIndex=function(e,t){return Hn(e,t,!0)},Rr.sortedLastIndexBy=function(e,t,r){return Kn(e,t,Jo(r,2),!0)},Rr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=Hn(e,t,!0)-1;if(Ti(e[r],t))return r}return-1},Rr.startCase=Dl,Rr.startsWith=function(e,t,r){return e=cl(e),r=null==r?0:Kr(ol(r),0,e.length),t=Jn(t),e.slice(r,r+t.length)==t},Rr.subtract=dc,Rr.sum=function(e){return e&&e.length?Rt(e,Yl):0},Rr.sumBy=function(e,t){return e&&e.length?Rt(e,Jo(t,2)):0},Rr.template=function(e,t,r){var n=Rr.templateSettings;r&&sa(e,t,r)&&(t=void 0),e=cl(e),t=fl({},t,n,Vo);var o,a,i=fl({},t.imports,n.imports,Vo),l=kl(i),c=Ct(i,l),s=0,u=t.interpolate||ue,f="__p += '",p=he((t.escape||ue).source+"|"+u.source+"|"+(u===V?re:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),m="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++We+"]")+"\n";e.replace(p,(function(t,r,n,i,l,c){return n||(n=i),f+=e.slice(s,c).replace(fe,Wt),r&&(o=!0,f+="' +\n__e("+r+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),s=c+t.length,t})),f+="';\n";var d=xe.call(t,"variable")&&t.variable;if(d){if(ee.test(d))throw new K("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(j,""):f).replace(O,"$1").replace(N,"$1;"),f="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var h=Vl((function(){return pe(l,m+"return "+f).apply(void 0,c)}));if(h.source=f,zi(h))throw h;return h},Rr.times=function(e,t){if((e=ol(e))<1||e>9007199254740991)return[];var r=4294967295,n=lr(e,4294967295);e-=4294967295;for(var o=It(n,t=Jo(t));++r<e;)t(r);return o},Rr.toFinite=nl,Rr.toInteger=ol,Rr.toLength=al,Rr.toLower=function(e){return cl(e).toLowerCase()},Rr.toNumber=il,Rr.toSafeInteger=function(e){return e?Kr(ol(e),-9007199254740991,9007199254740991):0===e?e:0},Rr.toString=cl,Rr.toUpper=function(e){return cl(e).toUpperCase()},Rr.trim=function(e,t,r){if((e=cl(e))&&(r||void 0===t))return Tt(e);if(!e||!(t=Jn(t)))return e;var n=Yt(e),o=Yt(t);return uo(n,Ot(n,o),Nt(n,o)+1).join("")},Rr.trimEnd=function(e,t,r){if((e=cl(e))&&(r||void 0===t))return e.slice(0,Ht(e)+1);if(!e||!(t=Jn(t)))return e;var n=Yt(e);return uo(n,0,Nt(n,Yt(t))+1).join("")},Rr.trimStart=function(e,t,r){if((e=cl(e))&&(r||void 0===t))return e.replace(H,"");if(!e||!(t=Jn(t)))return e;var n=Yt(e);return uo(n,Ot(n,Yt(t))).join("")},Rr.truncate=function(e,t){var r=30,n="...";if($i(t)){var o="separator"in t?t.separator:o;r="length"in t?ol(t.length):r,n="omission"in t?Jn(t.omission):n}var a=(e=cl(e)).length;if(zt(e)){var i=Yt(e);a=i.length}if(r>=a)return e;var l=r-Gt(n);if(l<1)return n;var c=i?uo(i,0,l).join(""):e.slice(0,l);if(void 0===o)return c+n;if(i&&(l+=c.length-l),Ki(o)){if(e.slice(l).search(o)){var s,u=c;for(o.global||(o=he(o.source,cl(ne.exec(o))+"g")),o.lastIndex=0;s=o.exec(u);)var f=s.index;c=c.slice(0,void 0===f?l:f)}}else if(e.indexOf(Jn(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+n},Rr.unescape=function(e){return(e=cl(e))&&D.test(e)?e.replace(F,Kt):e},Rr.uniqueId=function(e){var t=++Se;return cl(e)+t},Rr.upperCase=Wl,Rr.upperFirst=zl,Rr.each=ci,Rr.eachRight=si,Rr.first=Fa,Xl(Rr,(fc={},sn(Rr,(function(e,t){xe.call(Rr.prototype,t)||(fc[t]=e)})),fc),{chain:!1}),Rr.VERSION="4.17.21",lt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Rr[e].placeholder=Rr})),lt(["drop","take"],(function(e,t){Cr.prototype[e]=function(r){r=void 0===r?1:ir(ol(r),0);var n=this.__filtered__&&!t?new Cr(this):this.clone();return n.__filtered__?n.__takeCount__=lr(r,n.__takeCount__):n.__views__.push({size:lr(r,4294967295),type:e+(n.__dir__<0?"Right":"")}),n},Cr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),lt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Cr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Jo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),lt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Cr.prototype[e]=function(){return this[r](1).value()[0]}})),lt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Cr.prototype[e]=function(){return this.__filtered__?new Cr(this):this[r](1)}})),Cr.prototype.compact=function(){return this.filter(Yl)},Cr.prototype.find=function(e){return this.filter(e).head()},Cr.prototype.findLast=function(e){return this.reverse().find(e)},Cr.prototype.invokeMap=Wn((function(e,t){return"function"==typeof e?new Cr(this):this.map((function(r){return yn(r,e,t)}))})),Cr.prototype.reject=function(e){return this.filter(Ei(Jo(e)))},Cr.prototype.slice=function(e,t){e=ol(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Cr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),void 0!==t&&(r=(t=ol(t))<0?r.dropRight(-t):r.take(t-e)),r)},Cr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Cr.prototype.toArray=function(){return this.take(4294967295)},sn(Cr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Rr[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(Rr.prototype[t]=function(){var t=this.__wrapped__,i=n?[1]:arguments,l=t instanceof Cr,c=i[0],s=l||Oi(t),u=function(e){var t=o.apply(Rr,dt([e],i));return n&&f?t[0]:t};s&&r&&"function"==typeof c&&1!=c.length&&(l=s=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,d=l&&!p;if(!a&&s){t=d?t:new Cr(this);var h=e.apply(t,i);return h.__actions__.push({func:ni,args:[u],thisArg:void 0}),new Ar(h,f)}return m&&d?e.apply(this,i):(h=this.thru(u),m?n?h.value()[0]:h.value():h)})})),lt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Rr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Oi(o)?o:[],e)}return this[r]((function(r){return t.apply(Oi(r)?r:[],e)}))}})),sn(Cr.prototype,(function(e,t){var r=Rr[t];if(r){var n=r.name+"";xe.call(yr,n)||(yr[n]=[]),yr[n].push({name:t,func:r})}})),yr[To(void 0,2).name]=[{name:"wrapper",func:void 0}],Cr.prototype.clone=function(){var e=new Cr(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},Cr.prototype.reverse=function(){if(this.__filtered__){var e=new Cr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Cr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Oi(e),n=t<0,o=r?e.length:0,a=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var a=r[n],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=lr(t,e+i);break;case"takeRight":e=ir(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,l=a.end,c=l-i,s=n?l:i-1,u=this.__iteratees__,f=u.length,p=0,m=lr(c,this.__takeCount__);if(!r||!n&&o==c&&m==c)return no(e,this.__actions__);var d=[];e:for(;c--&&p<m;){for(var h=-1,g=e[s+=t];++h<f;){var v=u[h],b=v.iteratee,y=v.type,w=b(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}d[p++]=g}return d},Rr.prototype.at=oi,Rr.prototype.chain=function(){return ri(this)},Rr.prototype.commit=function(){return new Ar(this.value(),this.__chain__)},Rr.prototype.next=function(){void 0===this.__values__&&(this.__values__=rl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Rr.prototype.plant=function(e){for(var t,r=this;r instanceof Tr;){var n=Ia(r);n.__index__=0,n.__values__=void 0,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Rr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Cr){var t=e;return this.__actions__.length&&(t=new Cr(this)),(t=t.reverse()).__actions__.push({func:ni,args:[$a],thisArg:void 0}),new Ar(t,this.__chain__)}return this.thru($a)},Rr.prototype.toJSON=Rr.prototype.valueOf=Rr.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Rr.prototype.first=Rr.prototype.head,Xe&&(Rr.prototype[Xe]=function(){return this}),Rr}();Ye._=Zt,void 0===(o=function(){return Zt}.call(t,r,t,n))||(n.exports=o)}).call(this)}).call(this,r(7),r(8)(e))},function(e,t,r){var n;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(e){return l(s(e),arguments)}function i(e,t){return a.apply(null,[e].concat(t||[]))}function l(e,t){var r,n,i,l,c,s,u,f,p,m=1,d=e.length,h="";for(n=0;n<d;n++)if("string"==typeof e[n])h+=e[n];else if("object"==typeof e[n]){if((l=e[n]).keys)for(r=t[m],i=0;i<l.keys.length;i++){if(null==r)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[i],l.keys[i-1]));r=r[l.keys[i]]}else r=l.param_no?t[l.param_no]:t[m++];if(o.not_type.test(l.type)&&o.not_primitive.test(l.type)&&r instanceof Function&&(r=r()),o.numeric_arg.test(l.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(a("[sprintf] expecting number but found %T",r));switch(o.number.test(l.type)&&(f=r>=0),l.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,l.width?parseInt(l.width):0);break;case"e":r=l.precision?parseFloat(r).toExponential(l.precision):parseFloat(r).toExponential();break;case"f":r=l.precision?parseFloat(r).toFixed(l.precision):parseFloat(r);break;case"g":r=l.precision?String(Number(r.toPrecision(l.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=l.precision?r.substring(0,l.precision):r;break;case"t":r=String(!!r),r=l.precision?r.substring(0,l.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=l.precision?r.substring(0,l.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=l.precision?r.substring(0,l.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}o.json.test(l.type)?h+=r:(!o.number.test(l.type)||f&&!l.sign?p="":(p=f?"+":"-",r=r.toString().replace(o.sign,"")),s=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",u=l.width-(p+r).length,c=l.width&&u>0?s.repeat(u):"",h+=l.align?p+r+c:"0"===s?p+c+r:c+p+r)}return h}var c=Object.create(null);function s(e){if(c[e])return c[e];for(var t,r=e,n=[],a=0;r;){if(null!==(t=o.text.exec(r)))n.push(t[0]);else if(null!==(t=o.modulo.exec(r)))n.push("%");else{if(null===(t=o.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var i=[],l=t[2],s=[];if(null===(s=o.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(i.push(s[1]);""!==(l=l.substring(s[0].length));)if(null!==(s=o.key_access.exec(l)))i.push(s[1]);else{if(null===(s=o.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");i.push(s[1])}t[2]=i}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.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]})}r=r.substring(t[0].length)}return c[e]=n}t.sprintf=a,t.vsprintf=i,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=i,void 0===(n=function(){return{sprintf:a,vsprintf:i}}.call(t,r,t,e))||(e.exports=n))}()},function(e,t,r){e.exports=function(e,t){var r,n,o=0;function a(){var a,i,l=r,c=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(i=0;i<c;i++)if(l.args[i]!==arguments[i]){l=l.next;continue e}return l!==r&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=r,l.prev=null,r.prev=l,r=l),l.val}l=l.next}for(a=new Array(c),i=0;i<c;i++)a[i]=arguments[i];return l={args:a,val:e.apply(null,a)},r?(r.prev=l,l.next=r):n=l,o===t.maxSize?(n=n.prev).next=null:o++,r=l,l.val}return t=t||{},a.clear=function(){r=null,n=null,o=0},a}},function(e,t,r){var n=r(1),o=r(6);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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 r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},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,r){var n=r(1),o=r(10);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(12);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(14);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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.uagb-template-popup-logo img{width:120px}.logo-wrap .logo-text{margin-left:8px;font-weight:500;font-size:15px;line-height:18px;color:rgba(30,30,30,.9)}.logo-wrap img{height:34px;width:34px}.logo-wrap.white-label{width:auto}.logo-wrap.white-label .logo{width:auto;height:auto;padding:0 10px;font-weight:bold}",""]),t.default=o},function(e,t,r){var n=r(1),o=r(16);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(18);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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;padding:18px 12px;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,r){var n=r(1),o=r(20);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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;cursor:pointer}.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,r){var n=r(1),o=r(22);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(24);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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;color:#0073aa}",""]),t.default=o},function(e,t,r){var n=r(1),o=r(26);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(28);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(30);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(32);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(34);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(36);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(38);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!1);o.push([e.i,".ast-block-templates-full-preview{text-align:center}",""]),t.default=o},function(e,t,r){var n=r(1),o=r(40);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(42);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(44);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!1);o.push([e.i,"",""]),t.default=o},function(e,t,r){var n=r(1),o=r(46);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!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,r){var n=r(1),o=r(48);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};n(o,a);e.exports=o.locals||{}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n)()(!1);o.push([e.i,"",""]),t.default=o},function(e,t,r){"use strict";r.r(t);r(5);var n=r(2),o=r.n(n),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=e.replace("&","&")).replace("&","&"),(e=o()(e)).__wrapped__},i=function(){var e={patterns:[],wireframes:[]},t=AstBlockTemplatesVars.allBlocks;for(var r in t){var n=t[r].wireframe||{};Object.keys(n).length?e.wireframes.push(t[r]):e.patterns.push(t[r])}return e},l=function(){return i().patterns},c=function(){return i().wireframes},s=function(e,t,r,n){return f(e,t,r,n,l())},u=function(e,t,r,n){return f(e,t,r,n,c())},f=function(e,t,r,o,a){a||(a=AstBlockTemplatesVars.allBlocks);var i=[];e&&(i=a.filter((function(t){return t.title.toLowerCase().includes(e.toLowerCase())})));var l=[];return r&&(l=a.filter((function(e){var t=Object.values(e.tag);if(t.length){for(var n in t)if(t[n].toLowerCase().includes(r.toLowerCase()))return!0;return!1}return!1}))),(e||r)&&(a=Object(n.unionBy)(i,l,"ID")),t&&(a=a.filter((function(e){return parseInt(t)===parseInt(e.category)}))),o&&(a=a.filter((function(e){return o===e.filter}))),a},p=function(e){var t=[];for(var r in AstBlockTemplatesVars.allSites){var o=AstBlockTemplatesVars.allSites[r],a=o.pages||{};if(Object.values(a).length)for(var i in a)a[i]["site-ID"]=o.ID,a[i]["site-title"]=o.title,t.push(a[i])}var l=[];e&&(l=t.filter((function(t){return t.title.toLowerCase().includes(e.toLowerCase())})));var c=[];e&&(c=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 r=Object.values(t.tag)||[];if(r.length)for(var n in r)if(r[n].toLowerCase().includes(e.toLowerCase()))return!0;return!1}return!0}))),e&&(t=Object(n.unionBy)(l,s,c,"ID")),t};function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g={togglePopup:!1,allBlocks:AstBlockTemplatesVars.allBlocks,allPatterns:l(),allWireframes:c(),allSites:AstBlockTemplatesVars.allSites,allPages:[],currentScreen:"all-sites-grid",previousScreen:"",filterBlocksByCategory:"",filterBlocksByColor:"",filterBlocksBySearchTerm:"",filterPagesByPageType:"",filterPagesBySearchTerm:"",pagePreview:{},sitePreview:{},fullWidthPagePreview:{},fullWidthBlockPreview:{},notice:{},importItemInfo:{},displayDynamicPopup:!1},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;if("SET_DISPLAY_DYNAMIC_POPUP"===t.type)return d(d({},e),{},{displayDynamicPopup:t.displayDynamicPopup});if("SET_STATE"===t.type)return d(d({},e),t.state);if("FULL_WIDTH_PAGE_PREVIEW"===t.type)return d(d({},e),{},{fullWidthPagePreview:t.fullWidthPagePreview});if("FULL_WIDTH_BLOCK_PREVIEW"===t.type)return d(d({},e),{},{fullWidthBlockPreview:t.fullWidthBlockPreview});if("SET_IMPORT_ITEM_INFO"===t.type)return d(d({},e),{},{importItemInfo:t.importItemInfo});if("SET_NOTICE"===t.type)return d(d({},e),{},{notice:t.notice});if("SET_SEARCH_PAGE_PREVIEW"===t.type){var r=[],n=t.item["site-ID"]||"";return n&&(r=e.allSites.filter((function(e){return n===e.ID})))&&(r=r[0]),d(d({},e),{},{sitePreview:r,pagePreview:t.item})}if("SET_CURRENT_SCREEN"===t.type){var o="all-sites-grid"===t.currentScreen||"all-blocks-grid"===t.currentScree?"":e.currentScreen;return d(d({},e),{},{currentScreen:t.currentScreen,previousScreen:o})}if("SET_PREVIOUS_SCREEN"===t.type)return d(d({},e),{},{previousScreen:t.previousScreen});if("TOGGLE_POPUP"===t.type){var a="all-single-site-pages"!==localStorage.getItem("gt-current-screen")?localStorage.getItem("gt-current-screen"):"";return d(d({},g),{},{currentScreen:a||g.currentScreen,togglePopup:!e.togglePopup,filterBlocksByCategory:e.filterBlocksByCategory,filterBlocksByColor:e.filterBlocksByColor,allPatterns:e.allPatterns,allWireframes:e.allWireframes,filterBlocksBySearchTerm:e.filterBlocksBySearchTerm})}if("SET_SITE_PREVIEW"===t.type)return d(d({},e),{},{sitePreview:t.sitePreview});if("SET_PAGE_PREVIEW"===t.type)return d(d({},e),{},{pagePreview:t.pagePreview});if("SET_FULL_PREVIEW"===t.type)return d(d({},e),{},{fullWidthPreview:t.fullWidthPreview});if("SET_FILTER_BLOCKS_BY_CATEGORY"===t.type){var i=d(d({},e),{},{filterBlocksBySearchTerm:"",filterBlocksByCategory:t.filterBlocksByCategory});return"all-wireframe-grid"===e.currentScreen?i.allWireframes=u("",t.filterBlocksByCategory,"",e.filterBlocksByColor):i.allPatterns=s("",t.filterBlocksByCategory,"",e.filterBlocksByColor),i}if("SET_FILTER_BLOCKS_BY_COLOR"===t.type){var l=d(d({},e),{},{filterBlocksBySearchTerm:"",filterBlocksByColor:t.filterBlocksByColor});return"all-wireframe-grid"===e.currentScreen?l.allWireframes=u("",e.filterBlocksByCategory,"",t.filterBlocksByColor):l.allPatterns=s("",e.filterBlocksByCategory,"",t.filterBlocksByColor),l}if("SET_FILTER_BLOCKS_BY_SEARCH_TERM"===t.type){var c=d(d({},e),{},{filterBlocksByColor:"",filterBlocksByCategory:"",filterBlocksBySearchTerm:t.filterBlocksBySearchTerm});return"all-wireframe-grid"===e.currentScreen?c.allWireframes=u(t.filterBlocksBySearchTerm,"",t.filterBlocksBySearchTerm,""):c.allPatterns=s(t.filterBlocksBySearchTerm,"",t.filterBlocksBySearchTerm,""),c}return"SET_FILTER_PAGES_BY_SEARCH_TERM"===t.type?t.filterPagesBySearchTerm.length?d(d({},e),{},{allPages:p(t.filterPagesBySearchTerm),filterPagesBySearchTerm:t.filterPagesBySearchTerm}):d(d({},e),{},{allPages:[],filterPagesBySearchTerm:t.filterPagesBySearchTerm}):"SET_ALL_PAGES"===t.type?d(d({},e),{},{allPages:t.allPages}):e};function b(e){return function(e){if(Array.isArray(e))return y(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 y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var w={getTogglePopup:function(e){return e.togglePopup},getAllWireframes:function(e){return e.allWireframes},getAllPatterns:function(e){return e.allPatterns},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}},k={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,r=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 r.apply(void 0,arguments)}};t=[].map((function(e){return e(o)})),r=n.flowRight.apply(void 0,b(t))(e.dispatch),e.dispatch=r})((0,wp.data.registerStore)("ast-block-templates",{reducer:v,actions:k,selectors:w}));var _,x,S,E,B=r(4),P=r.n(B),R=r(3),I=r.n(R),T=P()(console.error);function A(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return I.a.sprintf.apply(I.a,[e].concat(r))}catch(t){return T("sprintf error: \n\n"+t.toString()),e}}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}_={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},x=["(","?"],S={")":["("],":":["?","?:"]},E=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var j={"!":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,r){if(e)throw t;return r}};function O(e){var t=function(e){for(var t,r,n,o,a=[],i=[];t=e.match(E);){for(r=t[0],(n=e.substr(0,t.index).trim())&&a.push(n);o=i.pop();){if(S[r]){if(S[r][0]===o){r=S[r][1]||r;break}}else if(x.indexOf(o)>=0||_[o]<_[r]){i.push(o);break}a.push(o)}S[r]||i.push(r),e=e.substr(t.index+r.length)}return(e=e.trim())&&a.push(e),a.concat(i.reverse())}(e);return function(e){return function(e,t){var r,n,o,a,i,l,c=[];for(r=0;r<e.length;r++){if(i=e[r],a=j[i]){for(n=a.length,o=Array(n);n--;)o[n]=c.pop();try{l=a.apply(null,o)}catch(e){return e}}else l=t.hasOwnProperty(i)?t[i]:+i;c.push(l)}return c[0]}(t,e)}}var N={contextDelimiter:"",onMissingKey:null};function F(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},N)this.options[r]=void 0!==t&&r in t?t[r]:N[r]}function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}F.prototype.getPluralForm=function(e,t){var r,n,o,a,i=this.pluralForms[e];return i||("function"!=typeof(o=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),a=O(n),o=function(e){return+a({n:e})}),i=this.pluralForms[e]=o),i(t)},F.prototype.dcnpgettext=function(e,t,r,n,o){var a,i,l;return a=void 0===o?0:this.getPluralForm(e,o),i=r,t&&(i=t+this.options.contextDelimiter+r),(l=this.data[e][i])&&l[a]?l[a]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===a?r:n)};var W={"":{plural_forms:function(e){return 1===e?0:1}}},z=/^i18n\.(n?gettext|has_translation)(_|$)/;var M=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 V=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 U=function(e,t){return function(r,n,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,i=e[t];if(V(r)&&M(n))if("function"==typeof o)if("number"==typeof a){var l={callback:o,priority:a,namespace:n};if(i[r]){var c,s=i[r].handlers;for(c=s.length;c>0&&!(a>=s[c-1].priority);c--);c===s.length?s[c]=l:s.splice(c,0,l),i.__current.forEach((function(e){e.name===r&&e.currentIndex>=c&&e.currentIndex++}))}else i[r]={handlers:[l],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,n,o,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var $=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n,o){var a=e[t];if(V(n)&&(r||M(o))){if(!a[n])return 0;var i=0;if(r)i=a[n].handlers.length,a[n]={runs:a[n].runs,handlers:[]};else for(var l=a[n].handlers,c=function(e){l[e].namespace===o&&(l.splice(e,1),i++,a.__current.forEach((function(t){t.name===n&&t.currentIndex>=e&&t.currentIndex--})))},s=l.length-1;s>=0;s--)c(s);return"hookRemoved"!==n&&e.doAction("hookRemoved",n,o),i}}};var q=function(e,t){return function(r,n){var o=e[t];return void 0!==n?r in o&&o[r].handlers.some((function(e){return e.namespace===n})):r in o}};var G=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n){var o=e[t];o[n]||(o[n]={handlers:[],runs:0}),o[n].runs++;var a=o[n].handlers;for(var i=arguments.length,l=new Array(i>1?i-1:0),c=1;c<i;c++)l[c-1]=arguments[c];if(!a||!a.length)return r?l[0]:void 0;var s={name:n,currentIndex:0};for(o.__current.push(s);s.currentIndex<a.length;){var u=a[s.currentIndex],f=u.callback.apply(null,l);r&&(l[0]=f),s.currentIndex++}return o.__current.pop(),r?l[0]:void 0}};var Y=function(e,t){return function(){var r,n,o=e[t];return null!==(r=null===(n=o.__current[o.__current.length-1])||void 0===n?void 0:n.name)&&void 0!==r?r:null}};var H=function(e,t){return function(r){var n=e[t];return void 0===r?void 0!==n.__current[0]:!!n.__current[0]&&r===n.__current[0].name}};var K=function(e,t){return function(r){var n=e[t];if(V(r))return n[r]&&n[r].runs?n[r].runs:0}},Z=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=U(this,"actions"),this.addFilter=U(this,"filters"),this.removeAction=$(this,"actions"),this.removeFilter=$(this,"filters"),this.hasAction=q(this,"actions"),this.hasFilter=q(this,"filters"),this.removeAllActions=$(this,"actions",!0),this.removeAllFilters=$(this,"filters",!0),this.doAction=G(this,"actions"),this.applyFilters=G(this,"filters",!0),this.currentAction=Y(this,"actions"),this.currentFilter=Y(this,"filters"),this.doingAction=H(this,"actions"),this.doingFilter=H(this,"filters"),this.didAction=K(this,"actions"),this.didFilter=K(this,"filters")};var X=function(){return new Z}(),J=(X.addAction,X.addFilter,X.removeAction,X.removeFilter,X.hasAction,X.hasFilter,X.removeAllActions,X.removeAllFilters,X.doAction,X.applyFilters,X.currentAction,X.currentFilter,X.doingAction,X.doingFilter,X.didAction,X.didFilter,X.actions,X.filters,function(e,t,r){var n=new F({}),o=new Set,a=function(){o.forEach((function(e){return e()}))},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";n.data[t]=D(D(D({},W),n.data[t]),e),n.data[t][""]=D(D({},W[""]),n.data[t][""])},l=function(e,t){i(e,t),a()},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return n.data[e]||i(void 0,e),n.dcnpgettext(e,t,r,o,a)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return e},u=function(e,t,n){var o=c(n,t,e);return r?(o=r.applyFilters("i18n.gettext_with_context",o,e,t,n),r.applyFilters("i18n.gettext_with_context_"+s(n),o,e,t,n)):o};if(e&&l(e,t),r){var f=function(e){z.test(e)&&a()};r.addAction("hookAdded","core/i18n",f),r.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[e]},setLocaleData:l,resetLocaleData:function(e,t){n.data={},n.pluralForms={},l(e,t)},subscribe:function(e){return o.add(e),function(){return o.delete(e)}},__:function(e,t){var n=c(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+s(t),n,e,t)):n},_x:u,_n:function(e,t,n,o){var a=c(o,void 0,e,t,n);return r?(a=r.applyFilters("i18n.ngettext",a,e,t,n,o),r.applyFilters("i18n.ngettext_"+s(o),a,e,t,n,o)):a},_nx:function(e,t,n,o,a){var i=c(a,o,e,t,n);return r?(i=r.applyFilters("i18n.ngettext_with_context",i,e,t,n,o,a),r.applyFilters("i18n.ngettext_with_context_"+s(a),i,e,t,n,o,a)):i},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,o){var a,i,l=t?t+""+e:e,c=!(null===(a=n.data)||void 0===a||null===(i=a[null!=o?o:"default"])||void 0===i||!i[l]);return r&&(c=r.applyFilters("i18n.has_translation",c,e,t,o),c=r.applyFilters("i18n.has_translation_"+s(o),c,e,t,o)),c}}}(void 0,void 0,X)),Q=(J.getLocaleData.bind(J),J.setLocaleData.bind(J),J.resetLocaleData.bind(J),J.subscribe.bind(J),J.__.bind(J)),ee=(J._x.bind(J),J._n.bind(J),J._nx.bind(J),J.isRTL.bind(J),J.hasTranslation.bind(J),wp.element),te=ee.createPortal,re=ee.memo,ne=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(e){return{onSetTogglePopup:e("ast-block-templates").setTogglePopup}})))(re((function(e){var t=e.onSetTogglePopup;return te(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"))}))),oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#9E9E9E";e&&console.log("%c ".concat(e," "),"color: ".concat(r,"; font-weight: lighter;"),t)},ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return oe(e,t,"#F20404")},ie=(r(9),function(e){var t=e.message;return React.createElement("div",{className:"ast-block-templates-tooltip"},t)});r(11);function le(e,t,r,n,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function ce(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){le(a,n,o,i,l,"next",e)}function l(e){le(a,n,o,i,l,"throw",e)}i(void 0)}))}}function se(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 r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ue(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 ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fe=wp.compose.compose,pe=wp.data,me=pe.withSelect,de=pe.withDispatch,he=wp.element,ge=he.useState,ve=he.memo,be=wp.ajax.post,ye=fe(de((function(e){return{setNotice:e("ast-block-templates").setNotice}})),me((function(e){return{notice:(0,e("ast-block-templates").getNotice)()}})))(ve((function(e){var t=e.setNotice,r=se(ge({isProcessing:"",buttonText:"Sync Library"}),2),n=r[0],o=r[1],a=n.isProcessing,i=n.buttonText,l=function(){var e=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({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)}}(),c=function(){var e=ce(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({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(r," site..")}),t===r&&l()):o({isProcessing:"error",buttonText:"Error ".concat(e.data)})}));case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),s=function(){var e=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({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,r=1;r<=t;r++)c(r,t)}else o({isProcessing:"complete",buttonText:"Importing Sites Failed"})})).fail((function(e){ae("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=ce(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({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(r," block..")}),t===r&&s()):o({isProcessing:"error",buttonText:"Error ".concat(e.data)})}));case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),f=function(){var e=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({action:"ast-block-templates-get-blocks-request-count",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){if(e.status)for(var t=e.data,r=1;r<=t;r++)u(r,t);else o({isProcessing:"complete",buttonText:"Importing Pages Failed"})})).fail((function(e){ae("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({action:"ast-block-templates-import-categories",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){f()})).fail((function(e){ae("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,be({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){ae("fail",e)}));case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),ae("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"===a?"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.."}),m()}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-refresh"}),React.createElement("span",{className:"ast-block-templates-sync__title"},i),React.createElement(ie,{message:"Sync Library"}))}))),we=(r(13),wp.compose.compose),ke=wp.data.withDispatch,_e=wp.element.memo,xe=we(ke((function(e){return{setCurrentScreen:e("ast-block-templates").setCurrentScreen}})))(_e((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 ".concat(""!==AstBlockTemplatesVars.popup_logo_class?AstBlockTemplatesVars.popup_logo_class:""),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))))}))),Se=wp.compose.compose,Ee=wp.data,Be=Ee.withSelect,Pe=Ee.withDispatch,Re=wp.element.memo,Ie=Se(Be((function(e){var t=e("ast-block-templates"),r=t.getSitePreview,n=t.getCurrentScreen;return{preview:r(),currentScreen:n()}})),Pe((function(e){var t=e("ast-block-templates"),r=t.setAllPages,n=t.setSitePreview,o=t.setTogglePopup,a=t.setCurrentScreen,i=t.setFilterPagesBySearchTerm,l=t.setFilterBlocksBySearchTerm;return{updateCurrentScreen:function(e){r([]),n({}),i(""),l(""),a(e)},onSetSitePreview:n,onSetTogglePopup:o}})))(Re((function(e){var t=e.currentScreen,r=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 r("all-sites-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-pages"}),Q("Pages")),React.createElement("div",{className:"header-menu-item ".concat("all-blocks-grid"===t||"full-width-block-preview"===t?"active":""),onClick:function(){return r("all-blocks-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-patterns"}),Q("Patterns")),React.createElement("div",{className:"header-menu-item ".concat("all-wireframe-grid"===t?"active":""),onClick:function(){return r("all-wireframe-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-wireframe"}),Q("Wireframes")))}))),Te=wp.compose.compose,Ae=wp.data,Ce=Ae.withSelect,je=Ae.withDispatch,Oe=wp.element.memo,Ne=Te(Ce((function(e){var t=e("ast-block-templates"),r=t.getSitePreview,n=t.getCurrentScreen;return{sitePreview:r(),currentScreen:n()}})),je((function(e){var t=e("ast-block-templates"),r=t.setSitePreview,n=t.setTogglePopup;t.setCurrentScreen;return{setSitePreview:r,onSetTogglePopup:n}})))(Oe((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"}))}))),Fe=(r(15),wp.compose.compose),Le=wp.data,De=Le.withSelect,We=Le.withDispatch,ze=wp.element.memo,Me=Fe(De((function(e){var t=e("ast-block-templates"),r=t.getCurrentScreen,n=t.getPreviousScreen;return{currentScreen:r(),previousScreen:n()}})),We((function(e){return{setCurrentScreen:e("ast-block-templates").setCurrentScreen}})))(ze((function(e){var t=e.currentScreen,r=e.previousScreen,n=e.setCurrentScreen,o="full-width-block-preview"===t||"full-width-page-preview"===t||"all-single-site-pages"===t?"show":"",a="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(){n("full-width-page-preview"===t||"full-width-block-preview"===t?"all-single-site-pages"===r?"all-single-site-pages":"all-blocks-grid":"all-sites-grid")}},React.createElement(ie,{message:a}),React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-chevron-left"}),React.createElement("span",{className:"ast-block-templates-back-heading"}," Back ")))})));r(17),r(19);function Ve(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 r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ue(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 Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $e=wp.element,qe=$e.memo,Ge=$e.useState,Ye=$e.useEffect,He=qe((function(e){var t=e.onSearch,r=e.value,n=e.searchInputRef,o=e.placeholder,a=Ve(Ge(""),2),i=a[0],l=a[1],c=o||Q("Search..","ast-block-templates");return Ye((function(){l(r)})),React.createElement("div",{className:"search-form ".concat(i?"have-input":"")},React.createElement("input",{ref:n,type:"search",name:"search",value:r,placeholder:c,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)"}))))))})),Ke=wp.element.memo,Ze=wp.compose.compose,Xe=wp.data,Je=Xe.withSelect,Qe=Xe.withDispatch,et=Ze(Je((function(e){var t=e("ast-block-templates"),r=t.getCurrentScreen,n=t.getFilterPagesBySearchTerm,o=t.getFilterBlocksBySearchTerm;return{currentScreen:r(),filterPagesBySearchTerm:n(),filterBlocksBySearchTerm:o()}})),Qe((function(e){var t=e("ast-block-templates"),r=t.setFilterBlocksBySearchTerm,n=t.setFilterPagesBySearchTerm,o=t.setCurrentScreen,a=t.setPagePreview,i=t.setSitePreview,l=t.setFullWidthBlockPreview;return{setFilterBlocksBySearchTerm:function(e,t){o(t),l({}),r(e)},insertBlocks:e("core/block-editor").insertBlocks,setFilterPagesBySearchTerm:function(e){o("all-sites-grid"),n(e),a({}),i({})}}})))(Ke((function(e){var t=e.currentScreen,r=e.filterPagesBySearchTerm,n=e.filterBlocksBySearchTerm,o=e.setFilterBlocksBySearchTerm,a=e.setFilterPagesBySearchTerm;return React.createElement("div",{className:"header"},"all-single-site-pages"===t?React.createElement(Me,null):React.createElement(xe,null),React.createElement(Ie,null),"all-sites-grid"===t||"all-single-site-pages"===t||"full-width-page-preview"===t||"all-single-pages"===t?React.createElement(He,{placeholder:"Search Templates..",value:r,onSearch:function(e){a(e.target.value)}}):React.createElement(He,{placeholder:"".concat("all-wireframe-grid"===t?"Search Wireframes..":"Search Patterns.."),value:n,onSearch:function(e){o(e.target.value,t)}}),React.createElement(ye,null),React.createElement(Ne,null))}))),tt=function(e){return new Promise((function(t,r){var n=new window.FormData;n.append("action","ast_block_templates_activate_plugin"),n.append("init",e.init),n.append("security",AstBlockTemplatesVars._ajax_nonce),wp.apiFetch({url:AstBlockTemplatesVars.ajax_url,method:"POST",body:n}).then((function(e){e.success?t(e):r(e)}))}))},rt=function(e){return new Promise((function(t,r){wp.updates.queue.push({action:"install-plugin",data:{slug:e.slug,init:e.init,name:e.name,success:function(r){t(r,e)},error:function(t){r(t,e)}}}),wp.updates.queueChecker()}))};function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var at={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;"]]),r=function(e){return e?encodeURI(e).match(/(%.)?./g).length:0},n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"".concat(r(e),":").concat(t[0]).concat(e).concat(t[t.length-1])},o=0;return function e(r){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.has(r))return t.get(r);if(o+=a,"string"==typeof r)return"s:".concat(n(r),";");if("number"==typeof r)return"".concat(Math.round(r)===r?"i":"d",":").concat((""+r).toUpperCase().replace(/(-?\d)E/,"$1.0E"),";");if("boolean"==typeof r)return"b:".concat(+r,";");var i=Array.isArray(r)||r.constructor===Object;if(t.set(r,"".concat("rR"[+i],":").concat(o,";")),"function"==typeof r.serialize)return"C:".concat(n(r.constructor.name),":").concat(n(r.serialize(),"{}"));var l=Object.entries(r).filter((function(e){var t=ot(e,2);t[0];return"function"!=typeof t[1]}));return(i?"a":"O:".concat(n(r.constructor.name)))+":".concat(l.length,":{").concat(l.map((function(t){var r=ot(t,2),n=r[0],o=r[1];return e(i&&/^\d{1,16}$/.test(n)?+n:n,!1)+e(o)})).join(""),"}")}(e)},parse:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.stdClass=at.stdClass;var r=0,n=[null],o={INF:1/0,"-INF":-1/0,NAN:NaN},a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;throw new Error("Error at ".concat(n,": ").concat(t,"\n").concat(e,"\n").concat(" ".repeat(n),"^"))},i=function(t,n){return t===e.slice(r,r+=t.length)?n:a("Expected '".concat(t,"'"),r-t.length)};function l(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:";";i(":");var l=t.exec(e.slice(r));return l||a("Exected ".concat(n,", but got '").concat(e.slice(r).match(/^[:;{}]|[^:;{}]*/)[0],"'")),r+=l[0].length,i(o,l[0])}function c(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=r;t>0;){var l=e.charCodeAt(r++);t-=l<128?1:l<2048||l>>11==27?2:3}return t?a("Invalid string length",o-2):i(n,e.slice(o,r))}var s=function(e){return e?t[e]?Object.create(t[e].prototype):new(nt({},e,(function(){}))[e]):{}},u=function(){return l(/^[01]/,"a '0' or '1'",";")},f=function(){return+l(/^-?\d+/,"an integer",";")},p=function(e){return+l(/^\d+/,"an unsigned integer",e)},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return c(p(':"'),'"'+e)};function d(){var e=l(/^-?(\d+(\.\d+)?(E[+-]\d+)?|INF)|NAN/,"a decimal number",";");return e in o?o[e]:+e}function h(){var t=e[r++];return"s"===t?m(";"):"i"===t?p(";"):a("Expected 's' or 'i' as type for a key, but got ${str[offset-1]}",r-1)}function g(e){for(var t=0,r=p(":{");t<r;t++)e[h()]=y();return i("}",e)}function v(){var e=g({});return Object.keys(e).some((function(e,t){return e!=t}))?e:Object.values(e)}function b(e){return"function"!=typeof e.unserialize&&a("Instance of ".concat(e.constructor.name,' does not have an "unserialize" method')),e.unserialize(c(p(":{"))),i("}",e)}function y(){var t=e[r++].toLowerCase(),o=n.push(null)-1,l="n"===t?i(";",null):"s"===t?m(";"):"b"===t?u():"i"===t?f():"d"===t?d():"a"===t?v():"o"===t?g(s(m())):"c"===t?b(s(m())):"r"===t?n[f()]:a("Unexpected type ".concat(t),r-1);return"r"!==t&&(n[o]=l),l}var w=y();return r!==e.length&&a("Unexpected trailing character"),w}},it=function(e,t){return fetch("".concat(AstBlockTemplatesVars.api_url,"wp-json/wp/v2/").concat(t,"/").concat(e,"/?site_url=").concat(AstBlockTemplatesVars.site_url)).then((function(e){return e.json()}))};r(21);function lt(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 r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ct(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ct(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 ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var st=wp.compose.compose,ut=wp.data,ft=ut.useSelect,pt=ut.withSelect,mt=ut.withDispatch,dt=wp.ajax.post,ht=wp.blocks.parse,gt=wp.element,vt=gt.useState,bt=gt.memo,yt=(gt.useEffect,gt.useCallback,wp.components.Spinner),wt=st(pt((function(e){var t=e("ast-block-templates"),r=t.getImportItemInfo,n=t.getCurrentScreen,o=t.getSitePreview;return{importItemInfo:r(),sitePreview:o(),currentScreen:n()}})),mt((function(e){var t=e("ast-block-templates"),r=t.setImportItemInfo,n=(t.setFullWidthBlockPreview,t.setCurrentScreen,t.setTogglePopup);t.setFullWidthPreview;return{setImportItemInfo:r,onSetTogglePopup:n,insertBlocks:e("core/block-editor").insertBlocks}})))(bt((function(e){var t=e.setImportItemInfo,r=(e.liveRequest,e.requiredPlugins,e.importItemInfo),n=e.title,o=e.btnClass,a=e.currentScreen,i=e.insertBlocks,l=e.onSetTogglePopup,c=e.item,s=e.onClick,u=e.onBlockImport,f=lt(vt(r),2),p=f[0],m=(f[1],o||""),d=lt(vt(n||"Import"),2),h=d[0],g=d[1],v="full-width-block-preview"===a?"show":"",b=lt(vt(!1),2),y=b[0],w=b[1],k=ft((function(e){return{insertIndex:e("core/block-editor").getBlockInsertionPoint().index}}),[]).insertIndex,_=function(){tt({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){S()})).catch((function(e){w(!1),g("Activation failed!")}))},x=function(){var e=p.original_content;dt({action:"ast_block_templates_import_block",content:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){w(!1),i(ht(e),k),l(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open"),"function"==typeof u&&u(e,k)})).fail((function(e){}))},S=function(){var e=p["post-meta"]["astra-site-wpforms-path"]||"";e?function(e){dt({action:"ast_block_templates_import_wpforms",wpforms_url:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){x()})).fail((function(e){w(!1),g("WPForms import failed!")}))}(e):x()};return React.createElement("div",{className:"ast-template-import-block-button ".concat(v," ").concat(m),onClick:function(e){"function"==typeof s&&s(e),w(!0),it(c.ID,"astra-blocks").then((function(e){t(e),p=e,(e["post-meta"]["astra-blocks-required-plugins"]?at.parse(e["post-meta"]["astra-blocks-required-plugins"]):[]).length?"not-installed"===AstBlockTemplatesVars.wpforms_status?rt({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){_()})).catch((function(e){w(!1),g("Installtion failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?_():S():S()})).catch((function(e){}))}},y?React.createElement(React.Fragment,null,React.createElement(yt,null)," Importing.."):React.createElement(React.Fragment,null,h))})));function kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(r),!0).forEach((function(t){xt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function St(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 r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Et(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 Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Bt=wp.compose.compose,Pt=wp.data.withDispatch,Rt=wp.element,It=Rt.memo,Tt=Rt.useEffect,At=Rt.useState,Ct=(wp.ajax.post,Bt(Pt((function(e){var t=e("ast-block-templates"),r=t.setImportItemInfo,n=t.setFullWidthBlockPreview,o=t.setCurrentScreen;return{setImportItemInfo:r,updateFullWidthBlockPreview:function(e){n(e),o("full-width-block-preview")}}})))(It((function(e){e.setImportItemInfo,e.updateFullWidthBlockPreview;var t=e.item,r=e.InitMasonry,n=t["thumbnail-image-url"]||"",o=t["featured-image-url"]||"",a=St(At({importing:!1}),2),i=a[0],l=a[1],c=St(At("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),s=c[0],u=c[1],f=St(At("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),p=f[0],m=f[1];return Tt((function(){var e=!0,t=new Image;t.src=n;var a=new Image;return a.src=o,t.onload=function(){e&&(u(t.src),r())},a.onload=function(){e&&(m(a.src),r())},function(){e=!1}}),[]),React.createElement("div",{className:"item single-block ".concat(!0===i.importing?"importing":"")},React.createElement("div",{className:"inner"},React.createElement("div",{className:"thumbnail"},React.createElement("img",{srcSet:"".concat(p,", ").concat(s),src:s}),React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"}))),React.createElement("div",{className:"heading-wrap"},React.createElement("div",{className:"button-actions"},React.createElement(wt,{btnClass:"button button-primary gt-btn-import",title:"Import",liveRequest:!0,item:t,onClick:function(e){l(_t(_t({},i),{},{importing:!0}))},onBlockImport:function(e){l(_t(_t({},i),{},{importing:!1}))}})))))})))),jt=wp.compose.compose,Ot=wp.element,Nt=Ot.memo,Ft=(Ot.useEffect,Ot.useState,wp.data),Lt=Ft.withSelect,Dt=(Ft.withDispatch,jt(Lt((function(e){return{filterBlocksBySearchTerm:(0,e("ast-block-templates").getFilterBlocksBySearchTerm)()}})))(Nt((function(e){var t=e.value,r=e.options,n=e.allCount,o=e.onChange,a=e.filterBlocksBySearchTerm;return React.createElement("div",{className:"st-block-categories-wrap"},React.createElement("h3",null,"Categories"),React.createElement("div",{className:"st-block-categories-list"},React.createElement("div",{className:"st-block-category ".concat(a||""!==t?"":"active"),onClick:function(e){"function"==typeof o&&o(e,"")}},React.createElement("span",{className:"st-block-category-title"},"All"),React.createElement("span",{className:"st-block-category-count"},n)),Object.values(r).map((function(e){return React.createElement("div",{key:e.id,className:"st-block-category ".concat(t===e.id?"active":""),onClick:function(t){"function"==typeof o&&o(t,e)}},React.createElement("span",{className:"st-block-category-title"},e.name),React.createElement("span",{className:"st-block-category-count"},e.count))}))))}))));function Wt(e){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var zt=wp.compose.compose,Mt=wp.element,Vt=Mt.memo,Ut=(Mt.useEffect,Mt.useState,wp.data),$t=Ut.withSelect,qt=Ut.withDispatch,Gt=zt($t((function(e){var t=e("ast-block-templates"),r=t.getFilterBlocksByCategory,n=t.getFilterBlocksByColor;return{filterBlocksByCategory:r(),filterBlocksByColor:n()}})),qt((function(e){return{setFilterBlocksByCategory:e("ast-block-templates").setFilterBlocksByCategory}})))(Vt((function(e){var t=e.filterBlocksByCategory,r=e.setFilterBlocksByCategory,n=e.filterBlocksByColor,o=[],a=0;for(var i in AstBlockTemplatesVars.allBlocks){var l=AstBlockTemplatesVars.allBlocks[i].filter||"",c=AstBlockTemplatesVars.allBlocks[i].wireframe||{};Object.keys(c).length&&function(){var e="object"===Wt(AstBlockTemplatesVars.allBlocks[i].category)?0:parseInt(AstBlockTemplatesVars.allBlocks[i].category);if(!o[e]){var t=AstBlockTemplatesVars.allCategories.filter((function(t){return t.id===e})),r=t.length?t[0]:{};r.id=e,r.count=0,o[e]=r}(!n||n&&l==n)&&(o[e].count=parseInt(o[e].count)+1,a+=1)}()}return o.sort((function(e,t){var r=e.name.toUpperCase()||"",n=t.name.toUpperCase()||"";return r<n?-1:r>n?1:0})),React.createElement(Dt,{value:t,allCount:a,options:o,onChange:function(e,t){r(t?t.id:"")}})}))),Yt=wp.compose.compose,Ht=wp.element.memo,Kt=wp.data,Zt=Kt.withSelect,Xt=Kt.withDispatch,Jt=Yt(Zt((function(e){return{filterBlocksByColor:(0,e("ast-block-templates").getFilterBlocksByColor)()}})),Xt((function(e){return{setFilterBlocksByColor:e("ast-block-templates").setFilterBlocksByColor}})))(Ht((function(e){var t=e.filterBlocksByColor,r=e.setFilterBlocksByColor;if(AstBlockTemplatesVars.allBlocks){var n=[];return AstBlockTemplatesVars.allBlocks.map((function(e){e.filter&&!n.includes(e.filter)&&n.push(e.filter)})),n.length<=1?"":React.createElement("div",{className:"blocks-color"},React.createElement("h3",null,"Filter by Color"),React.createElement("div",{className:"block-color-list"},React.createElement("div",{className:"block-color-item ".concat(t?"":"active"),onClick:function(e){return r("")}},"All"),n.map((function(e){return React.createElement("div",{key:e,className:"block-color-item ".concat(t===e?"active":""),onClick:function(t){return r(e)}},e)}))))}}))),Qt=(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(Jt,null),React.createElement(Gt,null)))})),er=(r(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)}),tr=(r(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)}},Q("Back to Templates","ast-block-templates")))}),rr=(r(27),wp.compose.compose),nr=wp.data,or=nr.withSelect,ar=nr.withDispatch,ir=wp.element.memo,lr=rr(ar((function(e){return{setNotice:e("ast-block-templates").setNotice}})),or((function(e){return{notice:(0,e("ast-block-templates").getNotice)()}})))(ir((function(e){var t=e.notice,r=e.setNotice;if(!Object.keys(t).length)return null;var n=t.type,o=t.message;return React.createElement("div",{className:"ast-block-templates-notice notice notice-".concat(n)},React.createElement("div",{className:"ast-block-templates-notice-message"},o),React.createElement("button",{type:"button",className:"notice-dismiss",onClick:function(){return r({})}},React.createElement("span",{className:"screen-reader-text"},"Dismiss")))})));function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var sr=wp.compose.compose,ur=wp.data,fr=ur.withSelect,pr=ur.withDispatch,mr=wp.element,dr=mr.memo,hr=mr.useEffect,gr=(mr.useState,sr(pr((function(e){var t=e("ast-block-templates"),r=t.setFilterBlocksBySearchTerm;return{setFilterBlocksByCategory:t.setFilterBlocksByCategory,setFilterBlocksBySearchTerm:r}})),fr((function(e){var t=e("ast-block-templates"),r=t.getAllWireframes,n=t.getFilterBlocksByCategory,o=t.getFilterBlocksByColor;return{filterBlocksByCategory:n(),filterBlocksByColor:o(),allWireframes:r()}})))(dr((function(e){e.filterBlocksByCategory,e.setFilterBlocksByCategory;var t=e.filterBlocksByColor,r=e.setFilterBlocksBySearchTerm,n=e.allWireframes,o=(e.imagesLoad,e.setImagesLoaded,[]),a=[],i=function(e){var r=n[e].filter||"",i="object"===cr(n[e].category)?0:parseInt(n[e].category);if(!a[i]){var l=AstBlockTemplatesVars.allCategories.filter((function(e){return e.id===i})),c=l.length?l[0]:{};c.id=i,c.count=0,a[i]=c}(!t||t&&r==t)&&(a[i].count=parseInt(a[i].count)+1,1,o.push(n[e]))};for(var l in n)i(l);hr((function(){var e=document.getElementById("ast-block-templates-grid-blocks");e&&imagesLoaded(e,(function(){new Masonry(e)}))}));var c=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(Qt,null),React.createElement("div",{className:"ast-block-templates-pattern-grid"},React.createElement(lr,null),React.createElement("div",{className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},o.length?o.map((function(e){return React.createElement(Ct,{key:e.ID,item:e,InitMasonry:c})})):React.createElement(er,null,React.createElement(tr,{afterClick:function(e){r("")}})))))}))));function vr(e){return(vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var br=wp.compose.compose,yr=wp.element,wr=yr.memo,kr=(yr.useEffect,yr.useState,wp.data),_r=kr.withSelect,xr=kr.withDispatch,Sr=br(_r((function(e){var t=e("ast-block-templates"),r=t.getFilterBlocksByCategory,n=t.getFilterBlocksByColor;return{filterBlocksByCategory:r(),filterBlocksByColor:n()}})),xr((function(e){return{setFilterBlocksByCategory:e("ast-block-templates").setFilterBlocksByCategory}})))(wr((function(e){var t=e.filterBlocksByCategory,r=e.setFilterBlocksByCategory,n=e.filterBlocksByColor,o=[],a=0;for(var i in AstBlockTemplatesVars.allBlocks){var l=AstBlockTemplatesVars.allBlocks[i].filter||"",c=AstBlockTemplatesVars.allBlocks[i].wireframe||{};Object.keys(c).length||function(){var e="object"===vr(AstBlockTemplatesVars.allBlocks[i].category)?0:parseInt(AstBlockTemplatesVars.allBlocks[i].category);if(!o[e]){var t=AstBlockTemplatesVars.allCategories.filter((function(t){return t.id===e})),r=t.length?t[0]:{};r.id=e,r.count=0,o[e]=r}(!n||n&&l==n)&&(o[e].count=parseInt(o[e].count)+1,a+=1)}()}return o.sort((function(e,t){var r=e.name.toUpperCase()||"",n=t.name.toUpperCase()||"";return r<n?-1:r>n?1:0})),React.createElement(Dt,{value:t,allCount:a,options:o,onChange:function(e,t){r(t?t.id:"")}})}))),Er=(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(Jt,null),React.createElement(Sr,null)))}));function Br(e){return(Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Pr=wp.compose.compose,Rr=wp.data,Ir=Rr.withSelect,Tr=Rr.withDispatch,Ar=wp.element,Cr=Ar.memo,jr=Ar.useEffect,Or=(Ar.useState,Pr(Tr((function(e){var t=e("ast-block-templates"),r=t.setFilterBlocksBySearchTerm;return{setFilterBlocksByCategory:t.setFilterBlocksByCategory,setFilterBlocksBySearchTerm:r}})),Ir((function(e){var t=e("ast-block-templates"),r=t.getAllPatterns,n=t.getFilterBlocksByCategory,o=t.getFilterBlocksByColor;return{filterBlocksByCategory:n(),filterBlocksByColor:o(),allPatterns:r()}})))(Cr((function(e){e.filterBlocksByCategory,e.setFilterBlocksByCategory;var t=e.filterBlocksByColor,r=e.setFilterBlocksBySearchTerm,n=e.allPatterns,o=(e.imagesLoad,e.setImagesLoaded,[]),a=[],i=function(e){var r=n[e].filter||"",i="object"===Br(n[e].category)?0:parseInt(n[e].category);if(!a[i]){var l=AstBlockTemplatesVars.allCategories.filter((function(e){return e.id===i})),c=l.length?l[0]:{};c.id=i,c.count=0,a[i]=c}(!t||t&&r==t)&&(a[i].count=parseInt(a[i].count)+1,1,o.push(n[e]))};for(var l in n)i(l);jr((function(){var e=document.getElementById("ast-block-templates-grid-blocks");e&&imagesLoaded(e,(function(){new Masonry(e)}))}));var c=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(Er,null),React.createElement("div",{className:"ast-block-templates-pattern-grid"},React.createElement(lr,null),React.createElement("div",{className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},o.length?o.map((function(e){return React.createElement(Ct,{key:e.ID,item:e,InitMasonry:c})})):React.createElement(er,null,React.createElement(tr,{afterClick:function(e){r("")}})))))})))),Nr=wp.ajax.post,Fr=wp.blocks.parse;var Lr=function(e,t,r,n,o){Nr({action:"ast_block_templates_importer",api_uri:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){!function(e,t,r,n,o){Nr({action:"ast_block_templates_import_block",content:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){n(Fr(e),t,r),o(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open")})).fail((function(e){}))}(e,n,o,t,r)})).fail((function(e){ae("fail",e)}))};r(29);function Dr(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 r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wr(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 Wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var zr=wp.compose.compose,Mr=wp.data,Vr=Mr.useSelect,Ur=Mr.withSelect,$r=Mr.withDispatch,qr=wp.element,Gr=qr.useState,Yr=qr.memo,Hr=wp.components.Spinner,Kr=wp.ajax.post,Zr=zr(Ur((function(e){var t=e("ast-block-templates"),r=t.getPagePreview,n=t.getImportItemInfo,o=t.getCurrentScreen,a=t.getSitePreview;return{pagePreview:r(),importItemInfo:n(),sitePreview:a(),currentScreen:o()}})),$r((function(e){var t=e("ast-block-templates"),r=(t.setFullWidthBlockPreview,t.setCurrentScreen,t.setTogglePopup);t.setFullWidthPreview;return{onSetTogglePopup:r,insertBlocks:e("core/block-editor").insertBlocks}})))(Yr((function(e){var t=e.title,r=e.currentScreen,n=e.insertBlocks,o=e.onSetTogglePopup,a=e.item,i=(e.importItemInfo,e.pagePreview),l=Dr(Gr(t||"Import"),2),c=l[0],s=l[1],u=[],f="full-width-page-preview"===r?"show":"",p=Dr(Gr(!1),2),m=p[0],d=p[1],h=i["required-plugins"]?i["required-plugins"].filter((function(e){return"wpforms-lite"===e.slug})):[],g=Vr((function(e){var t=e("core/block-editor").getBlockInsertionPoint();return{insertIndex:t.index,insertClientID:t.rootClientId}}),[]),v=g.insertIndex,b=g.insertClientID,y=function(){tt({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){w()})).catch((function(e){d(!1),s("Error! WP Forms plugin activation failed!")}))},w=function(){var e=u["astra-site-wpforms-path"]||"";e?k(e):Lr(a["astra-page-api-url"],n,o,v,b)},k=function(e){Kr({action:"ast_block_templates_import_wpforms",wpforms_url:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){Lr(a["astra-page-api-url"],n,o,v,b)})).fail((function(e){d(!1),s("Error! "+e.status+e.statusText)}))};return React.createElement("button",{className:"button button-primary ast-template-import-page-button ".concat(f),onClick:function(){d(!0),it(a.ID,"site-pages").then((function(e){u=e,h.length?"not-installed"===AstBlockTemplatesVars.wpforms_status?rt({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){y()})).catch((function(e){d(!1),s("Error! WP Forms plugin installation failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?y():w():w()}))}},m?React.createElement(React.Fragment,null,React.createElement(Hr,null)," Importing.."):React.createElement(React.Fragment,null,c))}))),Xr=(r(31),wp.compose.compose),Jr=wp.data,Qr=Jr.withSelect,en=Jr.withDispatch,tn=wp.element,rn=tn.Fragment,nn=tn.memo,on=tn.useEffect,an=Xr(Qr((function(e){var t=e("ast-block-templates"),r=t.getDisplayDynamicPopup;return{pagePreview:(0,t.getPagePreview)(),displayDynamicPopup:r()}})),en((function(e){return{setDisplayDynamicPopup:e("ast-block-templates").setDisplayDynamicPopup}})))(nn((function(e){var t=e.pagePreview,r=e.displayDynamicPopup,n=e.setDisplayDynamicPopup,o=!1===r?"hide":"",a=function(){n(!1)},i=function(e){e.target===document.querySelector(".ast-block-templates-popup-wrap")&&a()};return on((function(){return document.addEventListener("click",i),function(){document.removeEventListener("click",i)}})),React.createElement(rn,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"},Q("Heads Up!","ast-block-templates")),React.createElement("span",{className:"ast-block-templates-popup-close-icon",onClick:a},React.createElement("span",{className:"dashicons close dashicons-no-alt"}))),React.createElement("div",{className:"ast-block-templates-popup-content"},React.createElement("p",null,Q("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,Q("You will need to add it manually on the page.","ast-block-templates"))),React.createElement("div",{className:"ast-block-templates-popup-footer"},React.createElement(Zr,{title:A(Q('Skip & Import "%s" Page',"ast-block-templates"),t.title),item:t}),React.createElement("div",{className:"button",onClick:a},Q("Cancel","ast-block-templates"))))))}))),ln=wp.compose.compose,cn=wp.data,sn=cn.withSelect,un=cn.withDispatch,fn=wp.element.memo,pn=ln(sn((function(e){return{pagePreview:(0,e("ast-block-templates").getPagePreview)()}})),un((function(e){var t=e("ast-block-templates"),r=t.setPagePreview,n=t.setFullWidthPagePreview,o=t.setCurrentScreen;return{setImportItemInfo:t.setImportItemInfo,setPagePreview:r,updateFullWidthPagePreview:function(e){n(e),o("full-width-page-preview")}}})))(fn((function(e){e.updateFullWidthPagePreview;var t=e.item,r=e.pagePreview,n=e.setPagePreview,o=e.setImportItemInfo,i=t["thumbnail-image-url"]||"";return React.createElement("div",{className:"item single-site ".concat(r.ID===t.ID?"active":"")},React.createElement("div",{className:"inner"},React.createElement("div",{className:"screenshot",onClick:function(e){o(t),n(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"},a(t.title)))))}))),mn=(r(33),wp.element),dn=mn.memo,hn=mn.Fragment;var gn=(0,wp.compose.compose)((0,wp.data.withSelect)((function(e){var t=e("ast-block-templates"),r=t.getPagePreview;return{sitePreview:(0,t.getSitePreview)(),pagePreview:r()}})))(dn((function(e){var t=e.sitePreview,r=e.pagePreview;if(!Object.keys(t).length)return"";var n=Object.values(t.pages)||[],o=r["featured-image-url"];return React.createElement(hn,null,React.createElement(an,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"},a(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"},Q("Page Templates","ast-block-templates")),React.createElement("div",{className:"ast-block-templates-grid"},n.length?n.map((function(e){return React.createElement(pn,{key:e.ID,item:e})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,Q("No Result Found","ast-block-templates")),React.createElement("p",null,Q("The search result not found. Try another search.","ast-block-templates")))))))})));function vn(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 r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bn(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 bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yn=wp.compose.compose,wn=wp.data,kn=wn.withSelect,_n=wn.withDispatch,xn=wp.element,Sn=xn.memo,En=xn.useState,Bn=xn.useEffect,Pn=yn(kn((function(e){return{preview:e("ast-block-templates").getSitePreview}})),_n((function(e){var t=e("ast-block-templates"),r=t.setSitePreview,n=t.setPagePreview,o=t.setCurrentScreen;return{setSitePreview:function(e){var t=Object.values(e.pages).length?Object.values(e.pages)[0]:[];n(t),r(e),o("all-single-site-pages")},setImportItemInfo:t.setImportItemInfo}})))(Sn((function(e){var t=e.setSitePreview,r=e.item,n=e.setImportItemInfo,o=r["thumbnail-image-url"]||"",i=r.pages?r.pages.length:0,l=i<=1?"Template":"Templates",c=vn(En("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),s=c[0],u=c[1];return Bn((function(){var e=!0,t=new Image;return t.src=o,t.onload=function(){e&&u(t.src)},function(){e=!1}}),[s]),React.createElement("div",{className:"item single-site",onClick:function(e){t(r),n(r)}},React.createElement("div",{className:"inner"},React.createElement("div",{className:"screenshot",style:{backgroundImage:"url('".concat(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("h3",{className:"title"},a(r.title)),i?React.createElement("div",{className:"sub-title"},"".concat(i," ").concat(l)):"")))}))),Rn=wp.compose.compose,In=wp.data,Tn=In.withSelect,An=(In.withDispatch,wp.element),Cn=(An.useEffect,An.useState,An.memo),jn=An.Fragment,On=Rn(Tn((function(e){var t=e("ast-block-templates"),r=t.getAllPages,n=t.getCurrentScreen,o=t.getAllSites;return{currentScreen:n(),allSites:o(),allPages:r()}})))(Cn((function(e){e.allPages;var t=e.allSites,r=(e.currentScreen,Object.values(t));return React.createElement(jn,null,r.length?r.map((function(e){return React.createElement(Pn,{key:e.ID,item:e})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,Q("No Sites Result Found")," "),React.createElement("p",null,Q("The search result not found. Try another search."))))}))),Nn=wp.compose.compose,Fn=wp.data,Ln=Fn.withSelect,Dn=Fn.withDispatch,Wn=wp.element.memo,zn=Nn(Ln((function(e){return{preview:e("ast-block-templates").getSitePreview}})),Dn((function(e){var t=e("ast-block-templates"),r=t.setSearchPagePreview,n=t.setCurrentScreen;return{setSearchPagePreview:function(e){r(e),n("all-single-site-pages")},setImportItemInfo:t.setImportItemInfo}})))(Wn((function(e){var t=e.setSearchPagePreview,r=e.item,n=e.setImportItemInfo,o=r["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(r),n(r)},style:{backgroundImage:"url('".concat(o,"')")}},React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"}))),React.createElement("div",{className:"heading-wrap"},React.createElement("h3",{className:"title"},a(r["site-title"])),React.createElement("div",{className:"sub-title"},a(r.title)))))}))),Mn=wp.compose.compose,Vn=wp.data,Un=Vn.withSelect,$n=Vn.withDispatch,qn=wp.element,Gn=qn.memo,Yn=qn.Fragment,Hn=Mn($n((function(e){var t=e("ast-block-templates");return{setPagePreview:t.setPagePreview,setFilterPagesBySearchTerm:t.setFilterPagesBySearchTerm}})),Un((function(e){var t=e("ast-block-templates"),r=t.getAllPages,n=t.getFilterPagesBySearchTerm;return{allPages:r(),filterPagesBySearchTerm:n()}})))(Gn((function(e){var t=e.setPagePreview,r=e.setFilterPagesBySearchTerm,n=e.allPages,o=Object.values(n);return React.createElement(Yn,null,o.length?o.map((function(e){return React.createElement(zn,{key:e.ID,item:e})})):React.createElement(er,null,React.createElement(tr,{afterClick:function(e){t({}),r("")}})))}))),Kn=wp.compose.compose,Zn=wp.data,Xn=Zn.withSelect,Jn=Zn.withDispatch,Qn=wp.element,eo=Qn.memo;Qn.useEffect;var to=Kn(Jn((function(e){return{setFilterPagesBySearchTerm:e("ast-block-templates").setFilterPagesBySearchTerm}})),Xn((function(e){return{filterPagesBySearchTerm:(0,e("ast-block-templates").getFilterPagesBySearchTerm)()}})))(eo((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(Hn,null):React.createElement(On,null)))}))),ro=(r(35),wp.compose.compose),no=wp.element.memo,oo=wp.data,ao=oo.withSelect,io=(oo.withDispatch,ro(ao((function(e){return{blockPreview:(0,e("ast-block-templates").getFullWidthBlockPreview)()}})))(no((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}))})))),lo=(r(37),wp.compose.compose),co=wp.element.memo,so=wp.data,uo=so.withSelect,fo=(so.withDispatch,lo(uo((function(e){return{pagePreview:(0,e("ast-block-templates").getFullWidthPagePreview)()}})))(co((function(e){var t=e.pagePreview["featured-image-url"]||"";return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:t}))})))),po=function(){return React.createElement("div",null,"All signle pages")},mo=(r(39),wp.element),ho=mo.useEffect,go=mo.memo,vo=wp.compose.compose,bo=wp.data.withSelect,yo=function(e){var t=e.filterPagesBySearchTerm,r=e.currentScreen;return ho((function(){localStorage.setItem("gt-current-screen",r)}),[r]),"all-single-pages"===r?React.createElement(po,null):"all-wireframe-grid"===r?React.createElement(gr,null):"all-blocks-grid"===r?React.createElement(Or,null):t||"all-single-site-pages"!==r?"all-sites-grid"===r?React.createElement(to,null):"full-width-block-preview"===r?React.createElement(io,null):"full-width-page-preview"===r?React.createElement(fo,null):void 0:React.createElement(gn,null)},wo=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(lr,null):null},ko=vo(bo((function(e){var t=e("ast-block-templates"),r=t.getFilterPagesBySearchTerm,n=t.getSitePreview,o=t.getCurrentScreen,a=t.getTogglePopup;return{filterPagesBySearchTerm:r(),sitePreview:n(),currentScreen:o(),togglePopup:a()}})))(go((function(e){var t=e.sitePreview,r=e.currentScreen,n=e.togglePopup;return ho((function(){!0===n&&(document.body.classList.add("ast-block-templates-modal-open"),document.getElementById("ast-block-templates-modal-wrap").classList.add("open"))}),[n,r,t]),React.createElement("div",{className:"ast-block-templates-content"},React.createElement(wo,{currentScreen:r}),React.createElement(yo,{currentScreen:r}))})));r(41),r(43),r(45);function _o(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 r=[],n=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xo(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 xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var So=wp.compose.compose,Eo=wp.data,Bo=Eo.withSelect,Po=Eo.withDispatch,Ro=wp.element,Io=Ro.memo,To=Ro.useState,Ao=So(Bo((function(e){return{importItemInfo:(0,e("ast-block-templates").getImportItemInfo)()}})),Po((function(e){return{setImportItemInfo:e("ast-block-templates").setImportItemInfo}})))(Io((function(e){var t=e.requiredPlugins;if(!t.length)return null;var r=_o(To(!1),2),n=r[0],o=r[1];return React.createElement("div",{className:"used-blocks"},React.createElement("div",{className:"used-blocks-info ".concat(n?"show":"")},React.createElement("h3",null,"Install Required Plugins"),React.createElement("ul",null,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(!n)}}))}))),Co=wp.compose.compose,jo=wp.data,Oo=jo.withSelect,No=jo.withDispatch,Fo=wp.element,Lo=Fo.memo,Do=Fo.Fragment,Wo=Co(Oo((function(e){var t=e("ast-block-templates"),r=t.getImportItemInfo,n=t.getCurrentScreen,o=t.getPagePreview;return{importItemInfo:r(),pagePreview:o(),currentScreen:n()}})),No((function(e){var t=e("ast-block-templates"),r=t.setPagePreview,n=t.setFullWidthPagePreview,o=t.setCurrentScreen;return{setDisplayDynamicPopup:t.setDisplayDynamicPopup,setPagePreview:r,updateFullWidthPagePreview:function(e){n(e),o("full-width-page-preview")}}})))(Lo((function(e){e.importItemInfo;var t=e.pagePreview,r=e.setDisplayDynamicPopup,n=t["astra-page-url"]?t["astra-page-url"]:"",o=!(!t["dynamic-page"]||"yes"!==t["dynamic-page"]);return React.createElement(Do,null,React.createElement("a",{className:"button",href:n,target:"_blank"},"Preview Site",React.createElement("i",{className:"dashicons dashicons-external"})),o?React.createElement("button",{className:"button button-primary",onClick:function(e){r(!0)}},'Import "'.concat(t.title,'" Template')):React.createElement(Zr,{title:'Import "'.concat(t.title,'" Template'),item:t}))}))),zo=(r(47),wp.compose.compose),Mo=wp.data,Vo=Mo.withSelect,Uo=Mo.withDispatch,$o=wp.element,qo=$o.memo,Go=$o.Fragment,Yo=zo(Vo((function(e){var t=e("ast-block-templates"),r=t.getImportItemInfo,n=t.getFullWidthBlockPreview;return{importItemInfo:r(),fullWidthBlockPreview:n()}})),Uo((function(e){var t=e("ast-block-templates"),r=t.setPagePreview,n=t.setFullWidthPagePreview,o=t.setCurrentScreen;return{setPagePreview:r,updateFullWidthPagePreview:function(e){n(e),o("full-width-page-preview")}}})))(qo((function(e){var t,r=e.importItemInfo,n=e.fullWidthBlockPreview,o=n.url?n.url:"";return t=r["required-plugins"]?r["required-plugins"]:[],React.createElement(Go,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(Ao,{requiredPlugins:t}),React.createElement(wt,{btnClass:"button button-primary",title:"Import Pattern",item:n,requiredPlugins:t})))}))),Ho=wp.compose.compose,Ko=wp.data.withSelect,Zo=wp.element.memo,Xo=Ho(Ko((function(e){return{currentScreen:(0,e("ast-block-templates").getCurrentScreen)()}})))(Zo((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(Wo,null):React.createElement(Yo,null))}))),Jo=wp.element,Qo=Jo.Fragment,ea=Jo.useEffect,ta=Jo.memo,ra=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(e){return{onSetTogglePopup:e("ast-block-templates").setTogglePopup}})))(ta((function(e){var t=e.onSetTogglePopup,r=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 ea((function(){return document.addEventListener("click",r),function(){document.removeEventListener("click",r)}})),React.createElement(Qo,null,React.createElement(ne,null),React.createElement("div",{className:"inner"},React.createElement(et,null),React.createElement(ko,null),React.createElement(Xo,null)))})));function na(){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(ra,null),document.getElementById("ast-block-templates-modal"))}()}),500)}))}document.addEventListener("load",na),document.addEventListener("DOMContentLoaded",na)}]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/gutenberg-templates/dist/null.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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=(i=r,l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}var i,l,c;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 a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=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]}}(),i=[];function l(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var a=e[o],c=t.base?a[0]+t.base:a[0],s=n[c]||0,u="".concat(c," ").concat(s);n[c]=s+1;var f=l(u),p={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(p)):i.push({identifier:u,updater:g(p,t),references:1}),r.push(u)}return r}function s(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 i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var u,f=(u=[],function(e,t){return u[e]=t,u.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 a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function m(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var d=null,h=0;function g(e,t){var n,r,o;if(t.singleton){var a=h++;n=d||(d=s(t)),r=p.bind(null,n,a,!1),o=p.bind(null,n,a,!0)}else n=s(t),r=m.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=c(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=l(n[r]);i[o].references--}for(var a=c(e,t),s=0;s<n.length;s++){var u=l(n[s]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=a}}}},function(e,t,n){(function(e,r){var o;
|
2 |
+
/**
|
3 |
+
* @license
|
4 |
+
* Lodash <https://lodash.com/>
|
5 |
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
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 a="Expected a function",i="__lodash_placeholder__",l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",s="[object Array]",u="[object Boolean]",f="[object Date]",p="[object Error]",m="[object Function]",d="[object GeneratorFunction]",h="[object Map]",g="[object Number]",v="[object Object]",b="[object RegExp]",y="[object Set]",w="[object String]",k="[object Symbol]",_="[object WeakMap]",x="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",B="[object Float64Array]",P="[object Int8Array]",R="[object Int16Array]",I="[object Int32Array]",T="[object Uint8Array]",A="[object Uint16Array]",C="[object Uint32Array]",j=/\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),W=RegExp(L.source),z=/<%-([\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,ae=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,le=/^0o[0-7]+$/i,ce=/^(?: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",me="\\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",de="[\\ud800-\\udfff]",he="["+me+"]",ge="["+pe+"]",ve="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+me+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ke="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Be="(?:"+ye+"|"+we+")",Pe="(?:"+Se+"|"+we+")",Re="(?:"+ge+"|"+ke+")"+"?",Ie="[\\ufe0e\\ufe0f]?"+Re+("(?:\\u200d(?:"+[_e,xe,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+Re+")*"),Te="(?:"+[be,xe,Ee].join("|")+")"+Ie,Ae="(?:"+[_e+ge+"?",ge,xe,Ee,de].join("|")+")",Ce=RegExp("['’]","g"),je=RegExp(ge,"g"),Oe=RegExp(ke+"(?="+ke+")|"+Ae+Ie,"g"),Ne=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Se,"$"].join("|")+")",Pe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Se+Be,"$"].join("|")+")",Se+"?"+Be+"+(?:['’](?: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_])",ve,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"],We=-1,ze={};ze[S]=ze[B]=ze[P]=ze[R]=ze[I]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[A]=ze[C]=!0,ze[c]=ze[s]=ze[x]=ze[u]=ze[E]=ze[f]=ze[p]=ze[m]=ze[h]=ze[g]=ze[v]=ze[b]=ze[y]=ze[w]=ze[_]=!1;var Me={};Me[c]=Me[s]=Me[x]=Me[E]=Me[u]=Me[f]=Me[S]=Me[B]=Me[P]=Me[R]=Me[I]=Me[h]=Me[g]=Me[v]=Me[b]=Me[y]=Me[w]=Me[k]=Me[T]=Me["[object Uint8ClampedArray]"]=Me[A]=Me[C]=!0,Me[p]=Me[m]=Me[_]=!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 at(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 it(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ct(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,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function ft(e,t){return!!(null==e?0:e.length)&&kt(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 mt(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 dt(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,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function gt(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 vt(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,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function kt(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 _t(e,t,n,r){for(var o=n-1,a=e.length;++o<a;)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?Rt(e,t)/n:NaN}function St(e){return function(t){return null==t?void 0:t[e]}}function Bt(e){return function(t){return null==e?void 0:e[t]}}function Pt(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function Rt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);void 0!==a&&(n=void 0===n?a:n+a)}return n}function It(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 Ct(e,t){return mt(t,(function(t){return e[t]}))}function jt(e,t){return e.has(t)}function Ot(e,t){for(var n=-1,r=e.length;++n<r&&kt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length;n--&&kt(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=Bt({"À":"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=Bt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Wt(e){return"\\"+Ve[e]}function zt(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,a=[];++n<r;){var l=e[n];l!==t&&l!==i||(e[n]=i,a[o++]=n)}return a}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 zt(e)?function(e){var t=Oe.lastIndex=0;for(;Oe.test(e);)++t;return t}(e):bt(e)}function Yt(e){return zt(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=Bt({"&":"&","<":"<",">":">",""":'"',"'":"'"});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,me=t.Math,de=t.Object,he=t.RegExp,ge=t.String,ve=t.TypeError,be=r.prototype,ye=pe.prototype,we=de.prototype,ke=t["__core-js_shared__"],_e=ye.toString,xe=we.hasOwnProperty,Ee=0,Se=(n=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Be=we.toString,Pe=_e.call(de),Re=Ye._,Ie=he("^"+_e.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(de.getPrototypeOf,de),qe=de.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=ta(de,"defineProperty");return e({},"",{}),e}catch(e){}}(),Bt=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Xt=o&&o.now!==Ye.Date.now&&o.now,Jt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Qt=me.ceil,en=me.floor,tn=de.getOwnPropertySymbols,nn=Te?Te.isBuffer:void 0,rn=t.isFinite,on=be.join,an=Vt(de.keys,de),ln=me.max,cn=me.min,sn=o.now,un=t.parseInt,fn=me.random,pn=be.reverse,mn=ta(t,"DataView"),dn=ta(t,"Map"),hn=ta(t,"Promise"),gn=ta(t,"Set"),vn=ta(t,"WeakMap"),bn=ta(de,"create"),yn=vn&&new vn,wn={},kn=Ra(mn),_n=Ra(dn),xn=Ra(hn),En=Ra(gn),Sn=Ra(vn),Bn=Ae?Ae.prototype:void 0,Pn=Bn?Bn.valueOf:void 0,Rn=Bn?Bn.toString:void 0;function In(e){if(qi(e)&&!Oi(e)&&!(e instanceof jn)){if(e instanceof Cn)return e;if(xe.call(e,"__wrapped__"))return Ia(e)}return new Cn(e)}var Tn=function(){function e(){}return function(t){if(!$i(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function An(){}function Cn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function jn(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 Wn(e,t){var n=Oi(e),r=!n&&ji(e),o=!n&&!r&&Di(e),a=!n&&!r&&!o&&Qi(e),i=n||r||o||a,l=i?It(e.length,ge):[],c=l.length;for(var s in e)!t&&!xe.call(e,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ca(s,c))||l.push(s);return l}function zn(e){var t=e.length;return t?e[Lr(0,t-1)]:void 0}function Mn(e,t){return Sa(yo(e),Zn(t,0,e.length))}function Vn(e){return Sa(yo(e))}function Un(e,t,n){(void 0!==n&&!Ti(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)&&Ti(r,n)&&(void 0!==n||t in e)||Hn(e,t,n)}function qn(e,t){for(var n=e.length;n--;)if(Ti(e[n][0],t))return n;return-1}function Gn(e,t,n,r){return tr(e,(function(e,o,a){t(r,e,n(e),a)})),r}function Yn(e,t){return e&&wo(t,kl(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,a=r(o),i=null==e;++n<o;)a[n]=i?void 0:gl(e,t[n]);return a}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,a){var i,l=1&t,s=2&t,p=4&t;if(n&&(i=o?n(e,r,o,a):n(e)),void 0!==i)return i;if(!$i(e))return e;var _=Oi(e);if(_){if(i=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),!l)return yo(e,i)}else{var j=oa(e),O=j==m||j==d;if(Di(e))return po(e,l);if(j==v||j==c||O&&!o){if(i=s||O?{}:ia(e),!l)return s?function(e,t){return wo(e,ra(e),t)}(e,function(e,t){return e&&wo(t,_l(t),e)}(i,e)):function(e,t){return wo(e,na(e),t)}(e,Yn(i,e))}else{if(!Me[j])return o?e:{};i=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 B:case P:case R:case I:case T:case"[object Uint8ClampedArray]":case A:case C:return ho(e,n);case h:return new r;case g: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 k:return o=e,Pn?de(Pn.call(o)):{}}var o}(e,j,l)}}a||(a=new Dn);var N=a.get(e);if(N)return N;a.set(e,i),Zi(e)?e.forEach((function(r){i.add(Xn(r,t,n,r,e,a))})):Gi(e)&&e.forEach((function(r,o){i.set(o,Xn(r,t,n,o,e,a))}));var F=_?void 0:(p?s?Ho:Yo:s?_l:kl)(e);return lt(F||e,(function(r,o){F&&(r=e[o=r]),$n(i,o,Xn(r,t,n,o,e,a))})),i}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=de(e);r--;){var o=n[r],a=t[o],i=e[o];if(void 0===i&&!(o in e)||!a(i))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ve(a);return ka((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,a=ft,i=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=mt(t,At(n))),r?(a=pt,i=!1):t.length>=200&&(a=jt,i=!1,t=new Ln(t));e:for(;++o<l;){var u=e[o],f=null==n?u:n(u);if(u=r||0!==u?u:0,i&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;c.push(u)}else a(t,f,r)||c.push(u)}return c}In.templateSettings={escape:z,evaluate:M,interpolate:V,variable:"",imports:{_:In}},In.prototype=An.prototype,In.prototype.constructor=In,Cn.prototype=Tn(An.prototype),Cn.prototype.constructor=Cn,jn.prototype=Tn(An.prototype),jn.prototype.constructor=jn,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(dn||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(!dn||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 a=e[r],i=t(a);if(null!=i&&(void 0===l?i==i&&!Ji(i):n(i,l)))var l=i,c=a}return c}function ar(e,t){var n=[];return tr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function ir(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=la),o||(o=[]);++a<i;){var l=e[a];t>0&&n(l)?t>1?ir(l,t-1,n,r,o):dt(o,l):r||(o[o.length]=l)}return o}var lr=Eo(),cr=Eo(!0);function sr(e,t){return e&&lr(e,t,kl)}function ur(e,t){return e&&cr(e,t,kl)}function fr(e,t){return ut(t,(function(t){return Mi(e[t])}))}function pr(e,t){for(var n=0,r=(t=co(t,e)).length;null!=e&&n<r;)e=e[Pa(t[n++])];return n&&n==r?e:void 0}function mr(e,t,n){var r=t(e);return Oi(e)?r:dt(r,n(e))}function dr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Je&&Je in de(e)?function(e){var t=xe.call(e,Je),n=e[Je];try{e[Je]=void 0;var r=!0}catch(e){}var o=Be.call(e);r&&(t?e[Je]=n:delete e[Je]);return o}(e):function(e){return Be.call(e)}(e)}function hr(e,t){return e>t}function gr(e,t){return null!=e&&xe.call(e,t)}function vr(e,t){return null!=e&&t in de(e)}function br(e,t,n){for(var o=n?pt:ft,a=e[0].length,i=e.length,l=i,c=r(i),s=1/0,u=[];l--;){var f=e[l];l&&t&&(f=mt(f,At(t))),s=cn(f.length,s),c[l]=!n&&(t||a>=120&&f.length>=120)?new Ln(l&&f):void 0}f=e[0];var p=-1,m=c[0];e:for(;++p<a&&u.length<s;){var d=f[p],h=t?t(d):d;if(d=n||0!==d?d:0,!(m?jt(m,h):o(u,h,n))){for(l=i;--l;){var g=c[l];if(!(g?jt(g,h):o(e[l],h,n)))continue e}m&&m.push(h),u.push(d)}}return u}function yr(e,t,n){var r=null==(e=va(e,t=co(t,e)))?e:e[Pa(za(t))];return null==r?void 0:at(r,e,n)}function wr(e){return qi(e)&&dr(e)==c}function kr(e,t,n,r,o){return e===t||(null==e||null==t||!qi(e)&&!qi(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var i=Oi(e),l=Oi(t),m=i?s:oa(e),d=l?s:oa(t),_=(m=m==c?v:m)==v,S=(d=d==c?v:d)==v,B=m==d;if(B&&Di(e)){if(!Di(t))return!1;i=!0,_=!1}if(B&&!_)return a||(a=new Dn),i||Qi(e)?qo(e,t,n,r,o,a):function(e,t,n,r,o,a,i){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||!a(new Oe(e),new Oe(t)));case u:case f:case g:return Ti(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case w:return e==t+"";case h:var l=Mt;case y:var c=1&r;if(l||(l=$t),e.size!=t.size&&!c)return!1;var s=i.get(e);if(s)return s==t;r|=2,i.set(e,t);var m=qo(l(e),l(t),r,o,a,i);return i.delete(e),m;case k:if(Pn)return Pn.call(e)==Pn.call(t)}return!1}(e,t,m,n,r,o,a);if(!(1&n)){var P=_&&xe.call(e,"__wrapped__"),R=S&&xe.call(t,"__wrapped__");if(P||R){var I=P?e.value():e,T=R?t.value():t;return a||(a=new Dn),o(I,T,n,r,a)}}if(!B)return!1;return a||(a=new Dn),function(e,t,n,r,o,a){var i=1&n,l=Yo(e),c=l.length,s=Yo(t).length;if(c!=s&&!i)return!1;var u=c;for(;u--;){var f=l[u];if(!(i?f in t:xe.call(t,f)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var d=!0;a.set(e,t),a.set(t,e);var h=i;for(;++u<c;){f=l[u];var g=e[f],v=t[f];if(r)var b=i?r(v,g,f,t,e,a):r(g,v,f,e,t,a);if(!(void 0===b?g===v||o(g,v,n,r,a):b)){d=!1;break}h||(h="constructor"==f)}if(d&&!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||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,r,o,a)}(e,t,n,r,kr,o))}function _r(e,t,n,r){var o=n.length,a=o,i=!r;if(null==e)return!a;for(e=de(e);o--;){var l=n[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],s=e[c],u=l[1];if(i&&l[2]){if(void 0===s&&!(c in e))return!1}else{var f=new Dn;if(r)var p=r(s,u,c,e,t,f);if(!(void 0===p?kr(u,s,3,r,f):p))return!1}}return!0}function xr(e){return!(!$i(e)||(t=e,Se&&Se in t))&&(Mi(e)?Ie:ie).test(Ra(e));var t}function Er(e){return"function"==typeof e?e:null==e?Yl:"object"==typeof e?Oi(e)?Tr(e[0],e[1]):Ir(e):nc(e)}function Sr(e){if(!ma(e))return an(e);var t=[];for(var n in de(e))xe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Br(e){if(!$i(e))return function(e){var t=[];if(null!=e)for(var n in de(e))t.push(n);return t}(e);var t=ma(e),n=[];for(var r in e)("constructor"!=r||!t&&xe.call(e,r))&&n.push(r);return n}function Pr(e,t){return e<t}function Rr(e,t){var n=-1,o=Fi(e)?r(e.length):[];return tr(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}function Ir(e){var t=ea(e);return 1==t.length&&t[0][2]?ha(t[0][0],t[0][1]):function(n){return n===e||_r(n,e,t)}}function Tr(e,t){return ua(e)&&da(t)?ha(Pa(e),t):function(n){var r=gl(n,e);return void 0===r&&r===t?vl(n,e):kr(t,r,3)}}function Ar(e,t,n,r,o){e!==t&&lr(t,(function(a,i){if(o||(o=new Dn),$i(a))!function(e,t,n,r,o,a,i){var l=ya(e,n),c=ya(t,n),s=i.get(c);if(s)return void Un(e,n,s);var u=a?a(l,c,n+"",e,t,i):void 0,f=void 0===u;if(f){var p=Oi(c),m=!p&&Di(c),d=!p&&!m&&Qi(c);u=c,p||m||d?Oi(l)?u=l:Li(l)?u=yo(l):m?(f=!1,u=po(c,!0)):d?(f=!1,u=ho(c,!0)):u=[]:Hi(c)||ji(c)?(u=l,ji(l)?u=ll(l):$i(l)&&!Mi(l)||(u=ia(c))):f=!1}f&&(i.set(c,u),o(u,c,r,a,i),i.delete(c));Un(e,n,u)}(e,t,i,n,Ar,r,o);else{var l=r?r(ya(e,i),a,i+"",e,t,o):void 0;void 0===l&&(l=a),Un(e,i,l)}}),_l)}function Cr(e,t){var n=e.length;if(n)return ca(t+=t<0?n:0,n)?e[t]:void 0}function jr(e,t,n){t=t.length?mt(t,(function(e){return Oi(e)?function(t){return pr(t,1===e.length?e[0]:e)}:e})):[Yl];var r=-1;return t=mt(t,At(Jo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Rr(e,(function(e,n,o){return{criteria:mt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,a=t.criteria,i=o.length,l=n.length;for(;++r<i;){var c=go(o[r],a[r]);if(c){if(r>=l)return c;var s=n[r];return c*("desc"==s?-1:1)}}return e.index-t.index}(e,t,n)}))}function Or(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],l=pr(e,i);n(l,i)&&Vr(a,co(i,e),l)}return a}function Nr(e,t,n,r){var o=r?_t:kt,a=-1,i=t.length,l=e;for(e===t&&(t=yo(t)),n&&(l=mt(e,At(n)));++a<i;)for(var c=0,s=t[a],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&He.call(l,c,1),He.call(e,c,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!==a){var a=o;ca(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 Wr(e,t){return _a(ga(e,t,Yl),e+"")}function zr(e){return zn(Tl(e))}function Mr(e,t){var n=Tl(e);return Sa(n,Zn(t,0,n.length))}function Vr(e,t,n,r){if(!$i(e))return e;for(var o=-1,a=(t=co(t,e)).length,i=a-1,l=e;null!=l&&++o<a;){var c=Pa(t[o]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=i){var u=l[c];void 0===(s=r?r(u,c,l):void 0)&&(s=$i(u)?u:ca(t[o+1])?[]:{})}$n(l,c,s),l=l[c]}return e}var Ur=yn?function(e,t){return yn.set(e,t),e}:Yl,$r=bt?function(e,t){return bt(e,"toString",{configurable:!0,enumerable:!1,value:$l(t),writable:!0})}:Yl;function qr(e){return Sa(Tl(e))}function Gr(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=r(a);++o<a;)i[o]=e[o+t];return i}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 a=r+o>>>1,i=e[a];null!==i&&!Ji(i)&&(n?i<=t:i<t)?r=a+1:o=a}return o}return Kr(e,t,Yl,n)}function Kr(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var i=(t=n(t))!=t,l=null===t,c=Ji(t),s=void 0===t;o<a;){var u=en((o+a)/2),f=n(e[u]),p=void 0!==f,m=null===f,d=f==f,h=Ji(f);if(i)var g=r||d;else g=s?d&&(r||p):l?d&&p&&(r||!m):c?d&&p&&!m&&(r||!h):!m&&!h&&(r?f<=t:f<t);g?o=u+1:a=u}return cn(a,4294967294)}function Zr(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n],l=t?t(i):i;if(!n||!Ti(l,c)){var c=l;a[o++]=0===i?0:i}}return a}function Xr(e){return"number"==typeof e?e:Ji(e)?NaN:+e}function Jr(e){if("string"==typeof e)return e;if(Oi(e))return mt(e,Jr)+"";if(Ji(e))return Rn?Rn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,o=ft,a=e.length,i=!0,l=[],c=l;if(n)i=!1,o=pt;else if(a>=200){var s=t?null:Wo(e);if(s)return $t(s);i=!1,o=jt,c=new Ln}else c=t?[]:l;e:for(;++r<a;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,i&&f==f){for(var p=c.length;p--;)if(c[p]===f)continue e;t&&c.push(f),l.push(u)}else o(c,f,n)||(c!==l&&c.push(f),l.push(u))}return l}function eo(e,t){return null==(e=va(e,t=co(t,e)))||delete e[Pa(za(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,a=r?o:-1;(r?a--:++a<o)&&t(e[a],a,e););return n?Gr(e,r?0:a,r?a+1:o):Gr(e,r?a+1:0,r?o:a)}function ro(e,t){var n=e;return n instanceof jn&&(n=n.value()),ht(t,(function(e,t){return t.func.apply(t.thisArg,dt([e],t.args))}),n)}function oo(e,t,n){var o=e.length;if(o<2)return o?Qr(e[0]):[];for(var a=-1,i=r(o);++a<o;)for(var l=e[a],c=-1;++c<o;)c!=a&&(i[a]=er(i[a]||l,e[c],t,n));return Qr(ir(i,1),t,n)}function ao(e,t,n){for(var r=-1,o=e.length,a=t.length,i={};++r<o;){var l=r<a?t[r]:void 0;n(i,e[r],l)}return i}function io(e){return Li(e)?e:[]}function lo(e){return"function"==typeof e?e:Yl}function co(e,t){return Oi(e)?e:ua(e,t)?[e]:Ba(cl(e))}var so=Wr;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=Bt||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 go(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,a=Ji(e),i=void 0!==t,l=null===t,c=t==t,s=Ji(t);if(!l&&!s&&!a&&e>t||a&&i&&c&&!l&&!s||r&&i&&c||!n&&c||!o)return 1;if(!r&&!a&&!s&&e<t||s&&n&&o&&!r&&!a||l&&n&&o||!i&&o||!c)return-1}return 0}function vo(e,t,n,o){for(var a=-1,i=e.length,l=n.length,c=-1,s=t.length,u=ln(i-l,0),f=r(s+u),p=!o;++c<s;)f[c]=t[c];for(;++a<l;)(p||a<i)&&(f[n[a]]=e[a]);for(;u--;)f[c++]=e[a++];return f}function bo(e,t,n,o){for(var a=-1,i=e.length,l=-1,c=n.length,s=-1,u=t.length,f=ln(i-c,0),p=r(f+u),m=!o;++a<f;)p[a]=e[a];for(var d=a;++s<u;)p[d+s]=t[s];for(;++l<c;)(m||a<i)&&(p[d+n[l]]=e[a++]);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 a=-1,i=t.length;++a<i;){var l=t[a],c=r?r(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),o?Hn(n,l,c):$n(n,l,c)}return n}function ko(e,t){return function(n,r){var o=Oi(n)?it:Gn,a=t?t():{};return o(n,e,Jo(r,2),a)}}function _o(e){return Wr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&sa(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=de(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function xo(e,t){return function(n,r){if(null==n)return n;if(!Fi(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=de(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}function Eo(e){return function(t,n,r){for(var o=-1,a=de(t),i=r(t),l=i.length;l--;){var c=i[e?l:++o];if(!1===n(a[c],c,a))break}return t}}function So(e){return function(t){var n=zt(t=cl(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 Bo(e){return function(t){return ht(Ml(jl(t).replace(Ce,"")),e,"")}}function Po(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 $i(r)?r:n}}function Ro(e){return function(t,n,r){var o=de(t);if(!Fi(t)){var a=Jo(n,3);t=kl(t),n=function(e){return a(o[e],e,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}function Io(e){return Go((function(t){var n=t.length,r=n,o=Cn.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new ve(a);if(o&&!l&&"wrapper"==Zo(i))var l=new Cn([],!0)}for(r=l?r:n;++r<n;){var c=Zo(i=t[r]),s="wrapper"==c?Ko(i):void 0;l=s&&fa(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?l[Zo(s[0])].apply(l,s[3]):1==i.length&&fa(i)?l[c]():l.thru(i)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Oi(r))return l.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}}))}function To(e,t,n,o,a,i,l,c,s,u){var f=128&t,p=1&t,m=2&t,d=24&t,h=512&t,g=m?void 0:Po(e);return function v(){for(var b=arguments.length,y=r(b),w=b;w--;)y[w]=arguments[w];if(d)var k=Xo(v),_=Ft(y,k);if(o&&(y=vo(y,o,a,d)),i&&(y=bo(y,i,l,d)),b-=_,d&&b<u){var x=Ut(y,k);return Lo(e,t,To,v.placeholder,n,y,x,c,s,u-b)}var E=p?n:this,S=m?E[e]:e;return b=y.length,c?y=ba(y,c):h&&b>1&&y.reverse(),f&&s<b&&(y.length=s),this&&this!==Ye&&this instanceof v&&(S=g||Po(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,a){t(r,n(e),o,a)})),r}(n,e,t(r),{})}}function Co(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 jo(e){return Go((function(t){return t=mt(t,At(Jo())),Wr((function(n){var r=this;return e(t,(function(e){return at(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 zt(t)?uo(Yt(r),0,e).join(""):r.slice(0,e)}function No(e){return function(t,n,o){return o&&"number"!=typeof o&&sa(t,n,o)&&(n=o=void 0),t=rl(t),void 0===n?(n=t,t=0):n=rl(n),function(e,t,n,o){for(var a=-1,i=ln(Qt((t-e)/(n||1)),0),l=r(i);i--;)l[o?i:++a]=e,e+=n;return l}(t,n,o=void 0===o?t<n?1:-1:rl(o),e)}}function Fo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=il(t),n=il(n)),e(t,n)}}function Lo(e,t,n,r,o,a,i,l,c,s){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var f=[e,t,o,u?a:void 0,u?i:void 0,u?void 0:a,u?void 0:i,l,c,s],p=n.apply(void 0,f);return fa(e)&&wa(p,f),p.placeholder=r,xa(p,e,t)}function Do(e){var t=me[e];return function(e,n){if(e=il(e),(n=null==n?0:cn(ol(n),292))&&rn(e)){var r=(cl(e)+"e").split("e");return+((r=(cl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Wo=gn&&1/$t(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Jl;function zo(e){return function(t){var n=oa(t);return n==h?Mt(t):n==y?qt(t):function(e,t){return mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Mo(e,t,n,o,l,c,s,u){var f=2&t;if(!f&&"function"!=typeof e)throw new ve(a);var p=o?o.length:0;if(p||(t&=-97,o=l=void 0),s=void 0===s?s:ln(ol(s),0),u=void 0===u?u:ol(u),p-=l?l.length:0,64&t){var m=o,d=l;o=l=void 0}var h=f?void 0:Ko(e),g=[e,t,n,o,l,m,d,c,s,u];if(h&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,l=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!l)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var s=e[3];e[3]=s?vo(s,c,t[4]):c,e[4]=s?Ut(e[3],i):t[4]}(c=t[5])&&(s=e[5],e[5]=s?bo(s,c,t[6]):c,e[6]=s?Ut(e[5],i):t[6]);(c=t[7])&&(e[7]=c);128&r&&(e[8]=null==e[8]?t[8]:cn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(g,h),e=g[0],t=g[1],n=g[2],o=g[3],l=g[4],!(u=g[9]=void 0===g[9]?f?0:e.length:ln(g[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var o=Po(e);return function a(){for(var i=arguments.length,l=r(i),c=i,s=Xo(a);c--;)l[c]=arguments[c];var u=i<3&&l[0]!==s&&l[i-1]!==s?[]:Ut(l,s);if((i-=u.length)<n)return Lo(e,t,To,a.placeholder,void 0,l,u,void 0,void 0,n-i);var f=this&&this!==Ye&&this instanceof a?o:e;return at(f,this,l)}}(e,t,u):32!=t&&33!=t||l.length?To.apply(void 0,g):function(e,t,n,o){var a=1&t,i=Po(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=o.length,f=r(u+c),p=this&&this!==Ye&&this instanceof t?i:e;++s<u;)f[s]=o[s];for(;c--;)f[s++]=arguments[++l];return at(p,a?n:this,f)}}(e,t,n,o);else var v=function(e,t,n){var r=1&t,o=Po(e);return function t(){var a=this&&this!==Ye&&this instanceof t?o:e;return a.apply(r?n:this,arguments)}}(e,t,n);return xa((h?Ur:wa)(v,g),e,t)}function Vo(e,t,n,r){return void 0===e||Ti(e,we[n])&&!xe.call(r,n)?t:e}function Uo(e,t,n,r,o,a){return $i(e)&&$i(t)&&(a.set(t,e),Ar(e,t,void 0,Uo,a),a.delete(t)),e}function $o(e){return Hi(e)?void 0:e}function qo(e,t,n,r,o,a){var i=1&n,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var s=a.get(e),u=a.get(t);if(s&&u)return s==t&&u==e;var f=-1,p=!0,m=2&n?new Ln:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var d=e[f],h=t[f];if(r)var g=i?r(h,d,f,t,e,a):r(d,h,f,e,t,a);if(void 0!==g){if(g)continue;p=!1;break}if(m){if(!vt(t,(function(e,t){if(!jt(m,t)&&(d===e||o(d,e,n,r,a)))return m.push(t)}))){p=!1;break}}else if(d!==h&&!o(d,h,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Go(e){return _a(ga(e,void 0,Na),e+"")}function Yo(e){return mr(e,kl,na)}function Ho(e){return mr(e,_l,ra)}var Ko=yn?function(e){return yn.get(e)}:Jl;function Zo(e){for(var t=e.name+"",n=wn[t],r=xe.call(wn,t)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function Xo(e){return(xe.call(In,"placeholder")?In:e).placeholder}function Jo(){var e=In.iteratee||Hl;return e=e===Hl?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 ea(e){for(var t=kl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,da(o)]}return t}function ta(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xr(n)?n:void 0}var na=tn?function(e){return null==e?[]:(e=de(e),ut(tn(e),(function(t){return Ge.call(e,t)})))}:ac,ra=tn?function(e){for(var t=[];e;)dt(t,na(e)),e=Ve(e);return t}:ac,oa=dr;function aa(e,t,n){for(var r=-1,o=(t=co(t,e)).length,a=!1;++r<o;){var i=Pa(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&Ui(o)&&ca(i,o)&&(Oi(e)||ji(e))}function ia(e){return"function"!=typeof e.constructor||ma(e)?{}:Tn(Ve(e))}function la(e){return Oi(e)||ji(e)||!!(Ke&&e&&e[Ke])}function ca(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ce.test(e))&&e>-1&&e%1==0&&e<t}function sa(e,t,n){if(!$i(n))return!1;var r=typeof t;return!!("number"==r?Fi(n)&&ca(t,n.length):"string"==r&&t in n)&&Ti(n[t],e)}function ua(e,t){if(Oi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ji(e))||($.test(e)||!U.test(e)||null!=t&&e in de(t))}function fa(e){var t=Zo(e),n=In[t];if("function"!=typeof n||!(t in jn.prototype))return!1;if(e===n)return!0;var r=Ko(n);return!!r&&e===r[0]}(mn&&oa(new mn(new ArrayBuffer(1)))!=E||dn&&oa(new dn)!=h||hn&&"[object Promise]"!=oa(hn.resolve())||gn&&oa(new gn)!=y||vn&&oa(new vn)!=_)&&(oa=function(e){var t=dr(e),n=t==v?e.constructor:void 0,r=n?Ra(n):"";if(r)switch(r){case kn:return E;case _n:return h;case xn:return"[object Promise]";case En:return y;case Sn:return _}return t});var pa=ke?Mi:ic;function ma(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function da(e){return e==e&&!$i(e)}function ha(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in de(n)))}}function ga(e,t,n){return t=ln(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,i=ln(o.length-t,0),l=r(i);++a<i;)l[a]=o[t+a];a=-1;for(var c=r(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),at(e,this,c)}}function va(e,t){return t.length<2?e:pr(e,Gr(t,0,-1))}function ba(e,t){for(var n=e.length,r=cn(t.length,n),o=yo(e);r--;){var a=t[r];e[r]=ca(a,n)?o[a]:void 0}return e}function ya(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var wa=Ea(Ur),ka=Jt||function(e,t){return Ye.setTimeout(e,t)},_a=Ea($r);function xa(e,t,n){var r=t+"";return _a(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 lt(l,(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 Ea(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 Sa(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var a=Lr(n,o),i=e[a];e[a]=e[n],e[n]=i}return e.length=t,e}var Ba=function(e){var t=Ei(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 Pa(e){if("string"==typeof e||Ji(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ra(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ia(e){if(e instanceof jn)return e.clone();var t=new Cn(e.__wrapped__,e.__chain__);return t.__actions__=yo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ta=Wr((function(e,t){return Li(e)?er(e,ir(t,1,Li,!0)):[]})),Aa=Wr((function(e,t){var n=za(t);return Li(n)&&(n=void 0),Li(e)?er(e,ir(t,1,Li,!0),Jo(n,2)):[]})),Ca=Wr((function(e,t){var n=za(t);return Li(n)&&(n=void 0),Li(e)?er(e,ir(t,1,Li,!0),void 0,n):[]}));function ja(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ol(n);return o<0&&(o=ln(r+o,0)),wt(e,Jo(t,3),o)}function Oa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=ol(n),o=n<0?ln(r+o,0):cn(o,r-1)),wt(e,Jo(t,3),o,!0)}function Na(e){return(null==e?0:e.length)?ir(e,1):[]}function Fa(e){return e&&e.length?e[0]:void 0}var La=Wr((function(e){var t=mt(e,io);return t.length&&t[0]===e[0]?br(t):[]})),Da=Wr((function(e){var t=za(e),n=mt(e,io);return t===za(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?br(n,Jo(t,2)):[]})),Wa=Wr((function(e){var t=za(e),n=mt(e,io);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?br(n,void 0,t):[]}));function za(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ma=Wr(Va);function Va(e,t){return e&&e.length&&t&&t.length?Nr(e,t):e}var Ua=Go((function(e,t){var n=null==e?0:e.length,r=Kn(e,t);return Fr(e,mt(t,(function(e){return ca(e,n)?+e:e})).sort(go)),r}));function $a(e){return null==e?e:pn.call(e)}var qa=Wr((function(e){return Qr(ir(e,1,Li,!0))})),Ga=Wr((function(e){var t=za(e);return Li(t)&&(t=void 0),Qr(ir(e,1,Li,!0),Jo(t,2))})),Ya=Wr((function(e){var t=za(e);return t="function"==typeof t?t:void 0,Qr(ir(e,1,Li,!0),void 0,t)}));function Ha(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Li(e))return t=ln(e.length,t),!0})),It(t,(function(t){return mt(e,St(t))}))}function Ka(e,t){if(!e||!e.length)return[];var n=Ha(e);return null==t?n:mt(n,(function(e){return at(t,void 0,e)}))}var Za=Wr((function(e,t){return Li(e)?er(e,t):[]})),Xa=Wr((function(e){return oo(ut(e,Li))})),Ja=Wr((function(e){var t=za(e);return Li(t)&&(t=void 0),oo(ut(e,Li),Jo(t,2))})),Qa=Wr((function(e){var t=za(e);return t="function"==typeof t?t:void 0,oo(ut(e,Li),void 0,t)})),ei=Wr(Ha);var ti=Wr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ka(e,n)}));function ni(e){var t=In(e);return t.__chain__=!0,t}function ri(e,t){return t(e)}var oi=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 jn&&ca(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ri,args:[o],thisArg:void 0}),new Cn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ai=ko((function(e,t,n){xe.call(e,n)?++e[n]:Hn(e,n,1)}));var ii=Ro(ja),li=Ro(Oa);function ci(e,t){return(Oi(e)?lt:tr)(e,Jo(t,3))}function si(e,t){return(Oi(e)?ct:nr)(e,Jo(t,3))}var ui=ko((function(e,t,n){xe.call(e,n)?e[n].push(t):Hn(e,n,[t])}));var fi=Wr((function(e,t,n){var o=-1,a="function"==typeof t,i=Fi(e)?r(e.length):[];return tr(e,(function(e){i[++o]=a?at(t,e,n):yr(e,t,n)})),i})),pi=ko((function(e,t,n){Hn(e,n,t)}));function mi(e,t){return(Oi(e)?mt:Rr)(e,Jo(t,3))}var di=ko((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var hi=Wr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&sa(e,t[0],t[1])?t=[]:n>2&&sa(t[0],t[1],t[2])&&(t=[t[0]]),jr(e,ir(t,1),[])})),gi=Xt||function(){return Ye.Date.now()};function vi(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 bi(e,t){var n;if("function"!=typeof t)throw new ve(a);return e=ol(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var yi=Wr((function(e,t,n){var r=1;if(n.length){var o=Ut(n,Xo(yi));r|=32}return Mo(e,r,t,n,o)})),wi=Wr((function(e,t,n){var r=3;if(n.length){var o=Ut(n,Xo(wi));r|=32}return Mo(t,r,e,n,o)}));function ki(e,t,n){var r,o,i,l,c,s,u=0,f=!1,p=!1,m=!0;if("function"!=typeof e)throw new ve(a);function d(t){var n=r,a=o;return r=o=void 0,u=t,l=e.apply(a,n)}function h(e){return u=e,c=ka(v,t),f?d(e):l}function g(e){var n=e-s;return void 0===s||n>=t||n<0||p&&e-u>=i}function v(){var e=gi();if(g(e))return b(e);c=ka(v,function(e){var n=t-(e-s);return p?cn(n,i-(e-u)):n}(e))}function b(e){return c=void 0,m&&r?d(e):(r=o=void 0,l)}function y(){var e=gi(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===c)return h(s);if(p)return fo(c),c=ka(v,t),d(s)}return void 0===c&&(c=ka(v,t)),l}return t=il(t)||0,$i(n)&&(f=!!n.leading,i=(p="maxWait"in n)?ln(il(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m),y.cancel=function(){void 0!==c&&fo(c),u=0,r=s=o=c=void 0},y.flush=function(){return void 0===c?l:b(gi())},y}var _i=Wr((function(e,t){return Qn(e,1,t)})),xi=Wr((function(e,t,n){return Qn(e,il(t)||0,n)}));function Ei(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(a);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ei.Cache||Fn),n}function Si(e){if("function"!=typeof e)throw new ve(a);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)}}Ei.Cache=Fn;var Bi=so((function(e,t){var n=(t=1==t.length&&Oi(t[0])?mt(t[0],At(Jo())):mt(ir(t,1),At(Jo()))).length;return Wr((function(r){for(var o=-1,a=cn(r.length,n);++o<a;)r[o]=t[o].call(this,r[o]);return at(e,this,r)}))})),Pi=Wr((function(e,t){return Mo(e,32,void 0,t,Ut(t,Xo(Pi)))})),Ri=Wr((function(e,t){return Mo(e,64,void 0,t,Ut(t,Xo(Ri)))})),Ii=Go((function(e,t){return Mo(e,256,void 0,void 0,void 0,t)}));function Ti(e,t){return e===t||e!=e&&t!=t}var Ai=Fo(hr),Ci=Fo((function(e,t){return e>=t})),ji=wr(function(){return arguments}())?wr:function(e){return qi(e)&&xe.call(e,"callee")&&!Ge.call(e,"callee")},Oi=r.isArray,Ni=Qe?At(Qe):function(e){return qi(e)&&dr(e)==x};function Fi(e){return null!=e&&Ui(e.length)&&!Mi(e)}function Li(e){return qi(e)&&Fi(e)}var Di=nn||ic,Wi=et?At(et):function(e){return qi(e)&&dr(e)==f};function zi(e){if(!qi(e))return!1;var t=dr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Hi(e)}function Mi(e){if(!$i(e))return!1;var t=dr(e);return t==m||t==d||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Vi(e){return"number"==typeof e&&e==ol(e)}function Ui(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function $i(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qi(e){return null!=e&&"object"==typeof e}var Gi=tt?At(tt):function(e){return qi(e)&&oa(e)==h};function Yi(e){return"number"==typeof e||qi(e)&&dr(e)==g}function Hi(e){if(!qi(e)||dr(e)!=v)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&&_e.call(n)==Pe}var Ki=nt?At(nt):function(e){return qi(e)&&dr(e)==b};var Zi=rt?At(rt):function(e){return qi(e)&&oa(e)==y};function Xi(e){return"string"==typeof e||!Oi(e)&&qi(e)&&dr(e)==w}function Ji(e){return"symbol"==typeof e||qi(e)&&dr(e)==k}var Qi=ot?At(ot):function(e){return qi(e)&&Ui(e.length)&&!!ze[dr(e)]};var el=Fo(Pr),tl=Fo((function(e,t){return e<=t}));function nl(e){if(!e)return[];if(Fi(e))return Xi(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=oa(e);return(t==h?Mt:t==y?$t:Tl)(e)}function rl(e){return e?(e=il(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ol(e){var t=rl(e),n=t%1;return t==t?n?t-n:t:0}function al(e){return e?Zn(ol(e),0,4294967295):0}function il(e){if("number"==typeof e)return e;if(Ji(e))return NaN;if($i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=ae.test(e);return n||le.test(e)?$e(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function ll(e){return wo(e,_l(e))}function cl(e){return null==e?"":Jr(e)}var sl=_o((function(e,t){if(ma(t)||Fi(t))wo(t,kl(t),e);else for(var n in t)xe.call(t,n)&&$n(e,n,t[n])})),ul=_o((function(e,t){wo(t,_l(t),e)})),fl=_o((function(e,t,n,r){wo(t,_l(t),e,r)})),pl=_o((function(e,t,n,r){wo(t,kl(t),e,r)})),ml=Go(Kn);var dl=Wr((function(e,t){e=de(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&sa(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],i=_l(a),l=-1,c=i.length;++l<c;){var s=i[l],u=e[s];(void 0===u||Ti(u,we[s])&&!xe.call(e,s))&&(e[s]=a[s])}return e})),hl=Wr((function(e){return e.push(void 0,Uo),at(El,void 0,e)}));function gl(e,t,n){var r=null==e?void 0:pr(e,t);return void 0===r?n:r}function vl(e,t){return null!=e&&aa(e,t,vr)}var bl=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n}),$l(Yl)),yl=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),xe.call(e,t)?e[t].push(n):e[t]=[n]}),Jo),wl=Wr(yr);function kl(e){return Fi(e)?Wn(e):Sr(e)}function _l(e){return Fi(e)?Wn(e,!0):Br(e)}var xl=_o((function(e,t,n){Ar(e,t,n)})),El=_o((function(e,t,n,r){Ar(e,t,n,r)})),Sl=Go((function(e,t){var n={};if(null==e)return n;var r=!1;t=mt(t,(function(t){return t=co(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 Bl=Go((function(e,t){return null==e?{}:function(e,t){return Or(e,t,(function(t,n){return vl(e,n)}))}(e,t)}));function Pl(e,t){if(null==e)return{};var n=mt(Ho(e),(function(e){return[e]}));return t=Jo(t),Or(e,n,(function(e,n){return t(e,n[0])}))}var Rl=zo(kl),Il=zo(_l);function Tl(e){return null==e?[]:Ct(e,kl(e))}var Al=Bo((function(e,t,n){return t=t.toLowerCase(),e+(n?Cl(t):t)}));function Cl(e){return zl(cl(e).toLowerCase())}function jl(e){return(e=cl(e))&&e.replace(se,Lt).replace(je,"")}var Ol=Bo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Nl=Bo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fl=So("toLowerCase");var Ll=Bo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Dl=Bo((function(e,t,n){return e+(n?" ":"")+zl(t)}));var Wl=Bo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),zl=So("toUpperCase");function Ml(e,t,n){return e=cl(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 Vl=Wr((function(e,t){try{return at(e,void 0,t)}catch(e){return zi(e)?e:new K(e)}})),Ul=Go((function(e,t){return lt(t,(function(t){t=Pa(t),Hn(e,t,yi(e[t],e))})),e}));function $l(e){return function(){return e}}var ql=Io(),Gl=Io(!0);function Yl(e){return e}function Hl(e){return Er("function"==typeof e?e:Xn(e,1))}var Kl=Wr((function(e,t){return function(n){return yr(n,e,t)}})),Zl=Wr((function(e,t){return function(n){return yr(e,n,t)}}));function Xl(e,t,n){var r=kl(t),o=fr(t,r);null!=n||$i(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,kl(t)));var a=!($i(n)&&"chain"in n&&!n.chain),i=Mi(e);return lt(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||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,dt([this.value()],arguments))})})),e}function Jl(){}var Ql=jo(mt),ec=jo(st),tc=jo(vt);function nc(e){return ua(e)?St(Pa(e)):function(e){return function(t){return pr(t,e)}}(e)}var rc=No(),oc=No(!0);function ac(){return[]}function ic(){return!1}var lc=Co((function(e,t){return e+t}),0),cc=Do("ceil"),sc=Co((function(e,t){return e/t}),1),uc=Do("floor");var fc,pc=Co((function(e,t){return e*t}),1),mc=Do("round"),dc=Co((function(e,t){return e-t}),0);return In.after=function(e,t){if("function"!=typeof t)throw new ve(a);return e=ol(e),function(){if(--e<1)return t.apply(this,arguments)}},In.ary=vi,In.assign=sl,In.assignIn=ul,In.assignInWith=fl,In.assignWith=pl,In.at=ml,In.before=bi,In.bind=yi,In.bindAll=Ul,In.bindKey=wi,In.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Oi(e)?e:[e]},In.chain=ni,In.chunk=function(e,t,n){t=(n?sa(e,t,n):void 0===t)?1:ln(ol(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,i=0,l=r(Qt(o/t));a<o;)l[i++]=Gr(e,a,a+=t);return l},In.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var a=e[t];a&&(o[r++]=a)}return o},In.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 dt(Oi(n)?yo(n):[n],ir(t,1))},In.cond=function(e){var t=null==e?0:e.length,n=Jo();return e=t?mt(e,(function(e){if("function"!=typeof e[1])throw new ve(a);return[n(e[0]),e[1]]})):[],Wr((function(n){for(var r=-1;++r<t;){var o=e[r];if(at(o[0],this,n))return at(o[1],this,n)}}))},In.conforms=function(e){return function(e){var t=kl(e);return function(n){return Jn(n,e,t)}}(Xn(e,1))},In.constant=$l,In.countBy=ai,In.create=function(e,t){var n=Tn(e);return null==t?n:Yn(n,t)},In.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},In.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},In.debounce=ki,In.defaults=dl,In.defaultsDeep=hl,In.defer=_i,In.delay=xi,In.difference=Ta,In.differenceBy=Aa,In.differenceWith=Ca,In.drop=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=n||void 0===t?1:ol(t))<0?0:t,r):[]},In.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:ol(t)))<0?0:t):[]},In.dropRightWhile=function(e,t){return e&&e.length?no(e,Jo(t,3),!0,!0):[]},In.dropWhile=function(e,t){return e&&e.length?no(e,Jo(t,3),!0):[]},In.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&sa(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ol(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:ol(r))<0&&(r+=o),r=n>r?0:al(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},In.filter=function(e,t){return(Oi(e)?ut:ar)(e,Jo(t,3))},In.flatMap=function(e,t){return ir(mi(e,t),1)},In.flatMapDeep=function(e,t){return ir(mi(e,t),1/0)},In.flatMapDepth=function(e,t,n){return n=void 0===n?1:ol(n),ir(mi(e,t),n)},In.flatten=Na,In.flattenDeep=function(e){return(null==e?0:e.length)?ir(e,1/0):[]},In.flattenDepth=function(e,t){return(null==e?0:e.length)?ir(e,t=void 0===t?1:ol(t)):[]},In.flip=function(e){return Mo(e,512)},In.flow=ql,In.flowRight=Gl,In.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},In.functions=function(e){return null==e?[]:fr(e,kl(e))},In.functionsIn=function(e){return null==e?[]:fr(e,_l(e))},In.groupBy=ui,In.initial=function(e){return(null==e?0:e.length)?Gr(e,0,-1):[]},In.intersection=La,In.intersectionBy=Da,In.intersectionWith=Wa,In.invert=bl,In.invertBy=yl,In.invokeMap=fi,In.iteratee=Hl,In.keyBy=pi,In.keys=kl,In.keysIn=_l,In.map=mi,In.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},In.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},In.matches=function(e){return Ir(Xn(e,1))},In.matchesProperty=function(e,t){return Tr(e,Xn(t,1))},In.memoize=Ei,In.merge=xl,In.mergeWith=El,In.method=Kl,In.methodOf=Zl,In.mixin=Xl,In.negate=Si,In.nthArg=function(e){return e=ol(e),Wr((function(t){return Cr(t,e)}))},In.omit=Sl,In.omitBy=function(e,t){return Pl(e,Si(Jo(t)))},In.once=function(e){return bi(2,e)},In.orderBy=function(e,t,n,r){return null==e?[]:(Oi(t)||(t=null==t?[]:[t]),Oi(n=r?void 0:n)||(n=null==n?[]:[n]),jr(e,t,n))},In.over=Ql,In.overArgs=Bi,In.overEvery=ec,In.overSome=tc,In.partial=Pi,In.partialRight=Ri,In.partition=di,In.pick=Bl,In.pickBy=Pl,In.property=nc,In.propertyOf=function(e){return function(t){return null==e?void 0:pr(e,t)}},In.pull=Ma,In.pullAll=Va,In.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,Jo(n,2)):e},In.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,void 0,n):e},In.pullAt=Ua,In.range=rc,In.rangeRight=oc,In.rearg=Ii,In.reject=function(e,t){return(Oi(e)?ut:ar)(e,Si(Jo(t,3)))},In.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],a=e.length;for(t=Jo(t,3);++r<a;){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return Fr(e,o),n},In.rest=function(e,t){if("function"!=typeof e)throw new ve(a);return Wr(e,t=void 0===t?t:ol(t))},In.reverse=$a,In.sampleSize=function(e,t,n){return t=(n?sa(e,t,n):void 0===t)?1:ol(t),(Oi(e)?Mn:Mr)(e,t)},In.set=function(e,t,n){return null==e?e:Vr(e,t,n)},In.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Vr(e,t,n,r)},In.shuffle=function(e){return(Oi(e)?Vn:qr)(e)},In.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&sa(e,t,n)?(t=0,n=r):(t=null==t?0:ol(t),n=void 0===n?r:ol(n)),Gr(e,t,n)):[]},In.sortBy=hi,In.sortedUniq=function(e){return e&&e.length?Zr(e):[]},In.sortedUniqBy=function(e,t){return e&&e.length?Zr(e,Jo(t,2)):[]},In.split=function(e,t,n){return n&&"number"!=typeof n&&sa(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=cl(e))&&("string"==typeof t||null!=t&&!Ki(t))&&!(t=Jr(t))&&zt(e)?uo(Yt(e),0,n):e.split(t,n):[]},In.spread=function(e,t){if("function"!=typeof e)throw new ve(a);return t=null==t?0:ln(ol(t),0),Wr((function(n){var r=n[t],o=uo(n,0,t);return r&&dt(o,r),at(e,this,o)}))},In.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},In.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:ol(t))<0?0:t):[]},In.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:ol(t)))<0?0:t,r):[]},In.takeRightWhile=function(e,t){return e&&e.length?no(e,Jo(t,3),!1,!0):[]},In.takeWhile=function(e,t){return e&&e.length?no(e,Jo(t,3)):[]},In.tap=function(e,t){return t(e),e},In.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ve(a);return $i(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ki(e,t,{leading:r,maxWait:t,trailing:o})},In.thru=ri,In.toArray=nl,In.toPairs=Rl,In.toPairsIn=Il,In.toPath=function(e){return Oi(e)?mt(e,Pa):Ji(e)?[e]:yo(Ba(cl(e)))},In.toPlainObject=ll,In.transform=function(e,t,n){var r=Oi(e),o=r||Di(e)||Qi(e);if(t=Jo(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:$i(e)&&Mi(a)?Tn(Ve(e)):{}}return(o?lt:sr)(e,(function(e,r,o){return t(n,e,r,o)})),n},In.unary=function(e){return vi(e,1)},In.union=qa,In.unionBy=Ga,In.unionWith=Ya,In.uniq=function(e){return e&&e.length?Qr(e):[]},In.uniqBy=function(e,t){return e&&e.length?Qr(e,Jo(t,2)):[]},In.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},In.unset=function(e,t){return null==e||eo(e,t)},In.unzip=Ha,In.unzipWith=Ka,In.update=function(e,t,n){return null==e?e:to(e,t,lo(n))},In.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,lo(n),r)},In.values=Tl,In.valuesIn=function(e){return null==e?[]:Ct(e,_l(e))},In.without=Za,In.words=Ml,In.wrap=function(e,t){return Pi(lo(t),e)},In.xor=Xa,In.xorBy=Ja,In.xorWith=Qa,In.zip=ei,In.zipObject=function(e,t){return ao(e||[],t||[],$n)},In.zipObjectDeep=function(e,t){return ao(e||[],t||[],Vr)},In.zipWith=ti,In.entries=Rl,In.entriesIn=Il,In.extend=ul,In.extendWith=fl,Xl(In,In),In.add=lc,In.attempt=Vl,In.camelCase=Al,In.capitalize=Cl,In.ceil=cc,In.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=il(n))==n?n:0),void 0!==t&&(t=(t=il(t))==t?t:0),Zn(il(e),t,n)},In.clone=function(e){return Xn(e,4)},In.cloneDeep=function(e){return Xn(e,5)},In.cloneDeepWith=function(e,t){return Xn(e,5,t="function"==typeof t?t:void 0)},In.cloneWith=function(e,t){return Xn(e,4,t="function"==typeof t?t:void 0)},In.conformsTo=function(e,t){return null==t||Jn(e,t,kl(t))},In.deburr=jl,In.defaultTo=function(e,t){return null==e||e!=e?t:e},In.divide=sc,In.endsWith=function(e,t,n){e=cl(e),t=Jr(t);var r=e.length,o=n=void 0===n?r:Zn(ol(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},In.eq=Ti,In.escape=function(e){return(e=cl(e))&&W.test(e)?e.replace(L,Dt):e},In.escapeRegExp=function(e){return(e=cl(e))&&Y.test(e)?e.replace(G,"\\$&"):e},In.every=function(e,t,n){var r=Oi(e)?st:rr;return n&&sa(e,t,n)&&(t=void 0),r(e,Jo(t,3))},In.find=ii,In.findIndex=ja,In.findKey=function(e,t){return yt(e,Jo(t,3),sr)},In.findLast=li,In.findLastIndex=Oa,In.findLastKey=function(e,t){return yt(e,Jo(t,3),ur)},In.floor=uc,In.forEach=ci,In.forEachRight=si,In.forIn=function(e,t){return null==e?e:lr(e,Jo(t,3),_l)},In.forInRight=function(e,t){return null==e?e:cr(e,Jo(t,3),_l)},In.forOwn=function(e,t){return e&&sr(e,Jo(t,3))},In.forOwnRight=function(e,t){return e&&ur(e,Jo(t,3))},In.get=gl,In.gt=Ai,In.gte=Ci,In.has=function(e,t){return null!=e&&aa(e,t,gr)},In.hasIn=vl,In.head=Fa,In.identity=Yl,In.includes=function(e,t,n,r){e=Fi(e)?e:Tl(e),n=n&&!r?ol(n):0;var o=e.length;return n<0&&(n=ln(o+n,0)),Xi(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&kt(e,t,n)>-1},In.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ol(n);return o<0&&(o=ln(r+o,0)),kt(e,t,o)},In.inRange=function(e,t,n){return t=rl(t),void 0===n?(n=t,t=0):n=rl(n),function(e,t,n){return e>=cn(t,n)&&e<ln(t,n)}(e=il(e),t,n)},In.invoke=wl,In.isArguments=ji,In.isArray=Oi,In.isArrayBuffer=Ni,In.isArrayLike=Fi,In.isArrayLikeObject=Li,In.isBoolean=function(e){return!0===e||!1===e||qi(e)&&dr(e)==u},In.isBuffer=Di,In.isDate=Wi,In.isElement=function(e){return qi(e)&&1===e.nodeType&&!Hi(e)},In.isEmpty=function(e){if(null==e)return!0;if(Fi(e)&&(Oi(e)||"string"==typeof e||"function"==typeof e.splice||Di(e)||Qi(e)||ji(e)))return!e.length;var t=oa(e);if(t==h||t==y)return!e.size;if(ma(e))return!Sr(e).length;for(var n in e)if(xe.call(e,n))return!1;return!0},In.isEqual=function(e,t){return kr(e,t)},In.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?kr(e,t,void 0,n):!!r},In.isError=zi,In.isFinite=function(e){return"number"==typeof e&&rn(e)},In.isFunction=Mi,In.isInteger=Vi,In.isLength=Ui,In.isMap=Gi,In.isMatch=function(e,t){return e===t||_r(e,t,ea(t))},In.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,_r(e,t,ea(t),n)},In.isNaN=function(e){return Yi(e)&&e!=+e},In.isNative=function(e){if(pa(e))throw new K("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},In.isNil=function(e){return null==e},In.isNull=function(e){return null===e},In.isNumber=Yi,In.isObject=$i,In.isObjectLike=qi,In.isPlainObject=Hi,In.isRegExp=Ki,In.isSafeInteger=function(e){return Vi(e)&&e>=-9007199254740991&&e<=9007199254740991},In.isSet=Zi,In.isString=Xi,In.isSymbol=Ji,In.isTypedArray=Qi,In.isUndefined=function(e){return void 0===e},In.isWeakMap=function(e){return qi(e)&&oa(e)==_},In.isWeakSet=function(e){return qi(e)&&"[object WeakSet]"==dr(e)},In.join=function(e,t){return null==e?"":on.call(e,t)},In.kebabCase=Ol,In.last=za,In.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=ol(n))<0?ln(r+o,0):cn(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)},In.lowerCase=Nl,In.lowerFirst=Fl,In.lt=el,In.lte=tl,In.max=function(e){return e&&e.length?or(e,Yl,hr):void 0},In.maxBy=function(e,t){return e&&e.length?or(e,Jo(t,2),hr):void 0},In.mean=function(e){return Et(e,Yl)},In.meanBy=function(e,t){return Et(e,Jo(t,2))},In.min=function(e){return e&&e.length?or(e,Yl,Pr):void 0},In.minBy=function(e,t){return e&&e.length?or(e,Jo(t,2),Pr):void 0},In.stubArray=ac,In.stubFalse=ic,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},In.multiply=pc,In.nth=function(e,t){return e&&e.length?Cr(e,ol(t)):void 0},In.noConflict=function(){return Ye._===this&&(Ye._=Re),this},In.noop=Jl,In.now=gi,In.pad=function(e,t,n){e=cl(e);var r=(t=ol(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)},In.padEnd=function(e,t,n){e=cl(e);var r=(t=ol(t))?Gt(e):0;return t&&r<t?e+Oo(t-r,n):e},In.padStart=function(e,t,n){e=cl(e);var r=(t=ol(t))?Gt(e):0;return t&&r<t?Oo(t-r,n)+e:e},In.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(cl(e).replace(H,""),t||0)},In.random=function(e,t,n){if(n&&"boolean"!=typeof n&&sa(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=rl(e),void 0===t?(t=e,e=0):t=rl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return cn(e+o*(t-e+Ue("1e-"+((o+"").length-1))),t)}return Lr(e,t)},In.reduce=function(e,t,n){var r=Oi(e)?ht:Pt,o=arguments.length<3;return r(e,Jo(t,4),n,o,tr)},In.reduceRight=function(e,t,n){var r=Oi(e)?gt:Pt,o=arguments.length<3;return r(e,Jo(t,4),n,o,nr)},In.repeat=function(e,t,n){return t=(n?sa(e,t,n):void 0===t)?1:ol(t),Dr(cl(e),t)},In.replace=function(){var e=arguments,t=cl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},In.result=function(e,t,n){var r=-1,o=(t=co(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var a=null==e?void 0:e[Pa(t[r])];void 0===a&&(r=o,a=n),e=Mi(a)?a.call(e):a}return e},In.round=mc,In.runInContext=e,In.sample=function(e){return(Oi(e)?zn:zr)(e)},In.size=function(e){if(null==e)return 0;if(Fi(e))return Xi(e)?Gt(e):e.length;var t=oa(e);return t==h||t==y?e.size:Sr(e).length},In.snakeCase=Ll,In.some=function(e,t,n){var r=Oi(e)?vt:Yr;return n&&sa(e,t,n)&&(t=void 0),r(e,Jo(t,3))},In.sortedIndex=function(e,t){return Hr(e,t)},In.sortedIndexBy=function(e,t,n){return Kr(e,t,Jo(n,2))},In.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Hr(e,t);if(r<n&&Ti(e[r],t))return r}return-1},In.sortedLastIndex=function(e,t){return Hr(e,t,!0)},In.sortedLastIndexBy=function(e,t,n){return Kr(e,t,Jo(n,2),!0)},In.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Hr(e,t,!0)-1;if(Ti(e[n],t))return n}return-1},In.startCase=Dl,In.startsWith=function(e,t,n){return e=cl(e),n=null==n?0:Zn(ol(n),0,e.length),t=Jr(t),e.slice(n,n+t.length)==t},In.subtract=dc,In.sum=function(e){return e&&e.length?Rt(e,Yl):0},In.sumBy=function(e,t){return e&&e.length?Rt(e,Jo(t,2)):0},In.template=function(e,t,n){var r=In.templateSettings;n&&sa(e,t,n)&&(t=void 0),e=cl(e),t=fl({},t,r,Vo);var o,a,i=fl({},t.imports,r.imports,Vo),l=kl(i),c=Ct(i,l),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"),m="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++We+"]")+"\n";e.replace(p,(function(t,n,r,i,l,c){return r||(r=i),f+=e.slice(s,c).replace(fe,Wt),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+t.length,t})),f+="';\n";var d=xe.call(t,"variable")&&t.variable;if(d){if(ee.test(d))throw new K("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(j,""):f).replace(O,"$1").replace(N,"$1;"),f="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var h=Vl((function(){return pe(l,m+"return "+f).apply(void 0,c)}));if(h.source=f,zi(h))throw h;return h},In.times=function(e,t){if((e=ol(e))<1||e>9007199254740991)return[];var n=4294967295,r=cn(e,4294967295);e-=4294967295;for(var o=It(r,t=Jo(t));++n<e;)t(n);return o},In.toFinite=rl,In.toInteger=ol,In.toLength=al,In.toLower=function(e){return cl(e).toLowerCase()},In.toNumber=il,In.toSafeInteger=function(e){return e?Zn(ol(e),-9007199254740991,9007199254740991):0===e?e:0},In.toString=cl,In.toUpper=function(e){return cl(e).toUpperCase()},In.trim=function(e,t,n){if((e=cl(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("")},In.trimEnd=function(e,t,n){if((e=cl(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("")},In.trimStart=function(e,t,n){if((e=cl(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("")},In.truncate=function(e,t){var n=30,r="...";if($i(t)){var o="separator"in t?t.separator:o;n="length"in t?ol(t.length):n,r="omission"in t?Jr(t.omission):r}var a=(e=cl(e)).length;if(zt(e)){var i=Yt(e);a=i.length}if(n>=a)return e;var l=n-Gt(r);if(l<1)return r;var c=i?uo(i,0,l).join(""):e.slice(0,l);if(void 0===o)return c+r;if(i&&(l+=c.length-l),Ki(o)){if(e.slice(l).search(o)){var s,u=c;for(o.global||(o=he(o.source,cl(re.exec(o))+"g")),o.lastIndex=0;s=o.exec(u);)var f=s.index;c=c.slice(0,void 0===f?l:f)}}else if(e.indexOf(Jr(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},In.unescape=function(e){return(e=cl(e))&&D.test(e)?e.replace(F,Kt):e},In.uniqueId=function(e){var t=++Ee;return cl(e)+t},In.upperCase=Wl,In.upperFirst=zl,In.each=ci,In.eachRight=si,In.first=Fa,Xl(In,(fc={},sr(In,(function(e,t){xe.call(In.prototype,t)||(fc[t]=e)})),fc),{chain:!1}),In.VERSION="4.17.21",lt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){In[e].placeholder=In})),lt(["drop","take"],(function(e,t){jn.prototype[e]=function(n){n=void 0===n?1:ln(ol(n),0);var r=this.__filtered__&&!t?new jn(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},jn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),lt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;jn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Jo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),lt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");jn.prototype[e]=function(){return this[n](1).value()[0]}})),lt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");jn.prototype[e]=function(){return this.__filtered__?new jn(this):this[n](1)}})),jn.prototype.compact=function(){return this.filter(Yl)},jn.prototype.find=function(e){return this.filter(e).head()},jn.prototype.findLast=function(e){return this.reverse().find(e)},jn.prototype.invokeMap=Wr((function(e,t){return"function"==typeof e?new jn(this):this.map((function(n){return yr(n,e,t)}))})),jn.prototype.reject=function(e){return this.filter(Si(Jo(e)))},jn.prototype.slice=function(e,t){e=ol(e);var n=this;return n.__filtered__&&(e>0||t<0)?new jn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ol(t))<0?n.dropRight(-t):n.take(t-e)),n)},jn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},jn.prototype.toArray=function(){return this.take(4294967295)},sr(jn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=In[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(In.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,l=t instanceof jn,c=i[0],s=l||Oi(t),u=function(e){var t=o.apply(In,dt([e],i));return r&&f?t[0]:t};s&&n&&"function"==typeof c&&1!=c.length&&(l=s=!1);var f=this.__chain__,p=!!this.__actions__.length,m=a&&!f,d=l&&!p;if(!a&&s){t=d?t:new jn(this);var h=e.apply(t,i);return h.__actions__.push({func:ri,args:[u],thisArg:void 0}),new Cn(h,f)}return m&&d?e.apply(this,i):(h=this.thru(u),m?r?h.value()[0]:h.value():h)})})),lt(["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);In.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Oi(o)?o:[],e)}return this[n]((function(n){return t.apply(Oi(n)?n:[],e)}))}})),sr(jn.prototype,(function(e,t){var n=In[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}],jn.prototype.clone=function(){var e=new jn(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},jn.prototype.reverse=function(){if(this.__filtered__){var e=new jn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},jn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Oi(e),r=t<0,o=n?e.length:0,a=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=cn(t,e+i);break;case"takeRight":e=ln(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,l=a.end,c=l-i,s=r?l:i-1,u=this.__iteratees__,f=u.length,p=0,m=cn(c,this.__takeCount__);if(!n||!r&&o==c&&m==c)return ro(e,this.__actions__);var d=[];e:for(;c--&&p<m;){for(var h=-1,g=e[s+=t];++h<f;){var v=u[h],b=v.iteratee,y=v.type,w=b(g);if(2==y)g=w;else if(!w){if(1==y)continue e;break e}}d[p++]=g}return d},In.prototype.at=oi,In.prototype.chain=function(){return ni(this)},In.prototype.commit=function(){return new Cn(this.value(),this.__chain__)},In.prototype.next=function(){void 0===this.__values__&&(this.__values__=nl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},In.prototype.plant=function(e){for(var t,n=this;n instanceof An;){var r=Ia(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},In.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof jn){var t=e;return this.__actions__.length&&(t=new jn(this)),(t=t.reverse()).__actions__.push({func:ri,args:[$a],thisArg:void 0}),new Cn(t,this.__chain__)}return this.thru($a)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,Xe&&(In.prototype[Xe]=function(){return this}),In}();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 a(e){return l(s(e),arguments)}function i(e,t){return a.apply(null,[e].concat(t||[]))}function l(e,t){var n,r,i,l,c,s,u,f,p,m=1,d=e.length,h="";for(r=0;r<d;r++)if("string"==typeof e[r])h+=e[r];else if("object"==typeof e[r]){if((l=e[r]).keys)for(n=t[m],i=0;i<l.keys.length;i++){if(null==n)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[i],l.keys[i-1]));n=n[l.keys[i]]}else n=l.param_no?t[l.param_no]:t[m++];if(o.not_type.test(l.type)&&o.not_primitive.test(l.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(l.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(a("[sprintf] expecting number but found %T",n));switch(o.number.test(l.type)&&(f=n>=0),l.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,l.width?parseInt(l.width):0);break;case"e":n=l.precision?parseFloat(n).toExponential(l.precision):parseFloat(n).toExponential();break;case"f":n=l.precision?parseFloat(n).toFixed(l.precision):parseFloat(n);break;case"g":n=l.precision?String(Number(n.toPrecision(l.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=l.precision?n.substring(0,l.precision):n;break;case"t":n=String(!!n),n=l.precision?n.substring(0,l.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=l.precision?n.substring(0,l.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=l.precision?n.substring(0,l.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(l.type)?h+=n:(!o.number.test(l.type)||f&&!l.sign?p="":(p=f?"+":"-",n=n.toString().replace(o.sign,"")),s=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",u=l.width-(p+n).length,c=l.width&&u>0?s.repeat(u):"",h+=l.align?p+n+c:"0"===s?p+c+n:c+p+n)}return h}var c=Object.create(null);function s(e){if(c[e])return c[e];for(var t,n=e,r=[],a=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]){a|=1;var i=[],l=t[2],s=[];if(null===(s=o.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(i.push(s[1]);""!==(l=l.substring(s[0].length));)if(null!==(s=o.key_access.exec(l)))i.push(s[1]);else{if(null===(s=o.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");i.push(s[1])}t[2]=i}else a|=2;if(3===a)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 c[e]=r}t.sprintf=a,t.vsprintf=i,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=i,void 0===(r=function(){return{sprintf:a,vsprintf:i}}.call(t,n,t,e))||(e.exports=r))}()},function(e,t,n){e.exports=function(e,t){var n,r,o=0;function a(){var a,i,l=n,c=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(i=0;i<c;i++)if(l.args[i]!==arguments[i]){l=l.next;continue e}return l!==n&&(l===r&&(r=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=n,l.prev=null,n.prev=l,n=l),l.val}l=l.next}for(a=new Array(c),i=0;i<c;i++)a[i]=arguments[i];return l={args:a,val:e.apply(null,a)},n?(n.prev=l,l.next=n):r=l,o===t.maxSize?(r=r.prev).next=null:o++,n=l,l.val}return t=t||{},a.clear=function(){n=null,r=null,o=0},a}},function(e,t,n){var r=n(1),o=n(6);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);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:16px;width:16px;align-self:center}.ast-block-templates-button{padding:10px}#ast-block-templates-modal{border-radius:3px;box-shadow:2px 8px 23px 3px rgba(0,0,0,.2);overflow:hidden;background-color:#f1f3f5;max-width:85%;height:calc(100vh - 4em);z-index:9999;margin:2em auto}#ast-block-templates-modal>.inner{position:relative}@media screen and (max-width: 782px){#ast-block-templates-modal{padding:0 20px}}.ast-block-templates-grid-blocks .button-actions.import-action-start{opacity:1;visibility:visible}.ast-block-templates-grid-blocks .importing .inner .button-actions,.ast-block-templates-grid-blocks .inner:hover .button-actions{opacity:1;visibility:visible}.ast-block-templates-grid-blocks .button-actions{opacity:0;visibility:hidden;margin:0 auto}.ast-block-templates-grid-blocks .thumbnail{cursor:pointer;position:relative;text-align:center;overflow:hidden}.ast-block-templates-grid-blocks .heading-wrap .title{margin-bottom:0}.ast-block-templates-grid-blocks .ast-block-templates-grid .item.importing .inner img,.ast-block-templates-grid-blocks .ast-block-templates-grid .item .inner:hover img{filter:blur(1px)}.ast-block-templates-grid-blocks .ast-block-templates-grid .item.importing .inner .heading-wrap,.ast-block-templates-grid-blocks .ast-block-templates-grid .item .inner:hover .heading-wrap{opacity:1;visibility:visible}.ast-block-templates-grid-blocks .ast-block-templates-grid .item .heading-wrap{padding:5px 0;flex-direction:row;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;visibility:hidden;transition:transform .5s}@media only screen and (min-width: 768px){.ast-block-templates-grid-blocks .ast-block-templates-grid .item{width:33.33%}}.ast-block-templates-grid-pages{padding:35px 25px 0 25px}.ast-block-templates-grid-pages .heading-wrap{cursor:pointer}.ast-block-templates-grid-pages,.ast-block-templates-grid-blocks{display:none}.ast-block-templates-grid-pages.active,.ast-block-templates-grid-blocks.active{display:block}@media only screen and (min-width: 768px){.ast-block-templates-single-site-preview .ast-block-templates-grid .item,.ast-block-templates-grid-pages .ast-block-templates-grid .item{width:25%}}.ast-block-templates-grid .item{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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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.uagb-template-popup-logo img{width:120px}.logo-wrap .logo-text{margin-left:8px;font-weight:500;font-size:15px;line-height:18px;color:rgba(30,30,30,.9)}.logo-wrap img{height:34px;width:34px}.logo-wrap.white-label{width:auto}.logo-wrap.white-label .logo{width:auto;height:auto;padding:0 10px;font-weight: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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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;padding:18px 12px;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 a={insert:"head",singleton:!1};r(o,a);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;cursor:pointer}.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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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;color:#0073aa}",""]),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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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 a={insert:"head",singleton:!1};r(o,a);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),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=e.replace("&","&")).replace("&","&"),(e=o()(e)).__wrapped__},i=function(){var e={patterns:[],wireframes:[]},t=AstBlockTemplatesVars.allBlocks;for(var n in t){var r=t[n].wireframe||{};Object.keys(r).length?e.wireframes.push(t[n]):e.patterns.push(t[n])}return e},l=function(){return i().patterns},c=function(){return i().wireframes},s=function(e,t,n,r){return f(e,t,n,r,l())},u=function(e,t,n,r){return f(e,t,n,r,c())},f=function(e,t,n,o,a){a||(a=AstBlockTemplatesVars.allBlocks);var i=[];e&&(i=a.filter((function(t){return t.title.toLowerCase().includes(e.toLowerCase())})));var l=[];return n&&(l=a.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!1}))),(e||n)&&(a=Object(r.unionBy)(i,l,"ID")),t&&(a=a.filter((function(e){return parseInt(t)===parseInt(e.category)}))),o&&(a=a.filter((function(e){return o===e.filter}))),a},p=function(e){var t=[];for(var n in AstBlockTemplatesVars.allSites){var o=AstBlockTemplatesVars.allSites[n],a=o.pages||{};if(Object.values(a).length)for(var i in a)a[i]["site-ID"]=o.ID,a[i]["site-title"]=o.title,t.push(a[i])}var l=[];e&&(l=t.filter((function(t){return t.title.toLowerCase().includes(e.toLowerCase())})));var c=[];e&&(c=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)(l,s,c,"ID")),t};function m(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g={togglePopup:!1,allBlocks:AstBlockTemplatesVars.allBlocks,allPatterns:l(),allWireframes:c(),allSites:AstBlockTemplatesVars.allSites,allPages:[],currentScreen:"all-sites-grid",previousScreen:"",filterBlocksByCategory:"",filterBlocksByColor:"",filterBlocksBySearchTerm:"",filterPagesByPageType:"",filterPagesBySearchTerm:"",pagePreview:{},sitePreview:{},fullWidthPagePreview:{},fullWidthBlockPreview:{},notice:{},importItemInfo:{},displayDynamicPopup:!1},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;if("SET_DISPLAY_DYNAMIC_POPUP"===t.type)return d(d({},e),{},{displayDynamicPopup:t.displayDynamicPopup});if("SET_STATE"===t.type)return d(d({},e),t.state);if("FULL_WIDTH_PAGE_PREVIEW"===t.type)return d(d({},e),{},{fullWidthPagePreview:t.fullWidthPagePreview});if("FULL_WIDTH_BLOCK_PREVIEW"===t.type)return d(d({},e),{},{fullWidthBlockPreview:t.fullWidthBlockPreview});if("SET_IMPORT_ITEM_INFO"===t.type)return d(d({},e),{},{importItemInfo:t.importItemInfo});if("SET_NOTICE"===t.type)return d(d({},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]),d(d({},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 d(d({},e),{},{currentScreen:t.currentScreen,previousScreen:o})}if("SET_PREVIOUS_SCREEN"===t.type)return d(d({},e),{},{previousScreen:t.previousScreen});if("TOGGLE_POPUP"===t.type){var a="all-single-site-pages"!==localStorage.getItem("gt-current-screen")?localStorage.getItem("gt-current-screen"):"";return d(d({},g),{},{currentScreen:a||g.currentScreen,togglePopup:!e.togglePopup,filterBlocksByCategory:e.filterBlocksByCategory,filterBlocksByColor:e.filterBlocksByColor,allPatterns:e.allPatterns,allWireframes:e.allWireframes,filterBlocksBySearchTerm:e.filterBlocksBySearchTerm})}if("SET_SITE_PREVIEW"===t.type)return d(d({},e),{},{sitePreview:t.sitePreview});if("SET_PAGE_PREVIEW"===t.type)return d(d({},e),{},{pagePreview:t.pagePreview});if("SET_FULL_PREVIEW"===t.type)return d(d({},e),{},{fullWidthPreview:t.fullWidthPreview});if("SET_FILTER_BLOCKS_BY_CATEGORY"===t.type){var i=d(d({},e),{},{filterBlocksBySearchTerm:"",filterBlocksByCategory:t.filterBlocksByCategory});return"all-wireframe-grid"===e.currentScreen?i.allWireframes=u("",t.filterBlocksByCategory,"",e.filterBlocksByColor):i.allPatterns=s("",t.filterBlocksByCategory,"",e.filterBlocksByColor),i}if("SET_FILTER_BLOCKS_BY_COLOR"===t.type){var l=d(d({},e),{},{filterBlocksBySearchTerm:"",filterBlocksByColor:t.filterBlocksByColor});return"all-wireframe-grid"===e.currentScreen?l.allWireframes=u("",e.filterBlocksByCategory,"",t.filterBlocksByColor):l.allPatterns=s("",e.filterBlocksByCategory,"",t.filterBlocksByColor),l}if("SET_FILTER_BLOCKS_BY_SEARCH_TERM"===t.type){var c=d(d({},e),{},{filterBlocksByColor:"",filterBlocksByCategory:"",filterBlocksBySearchTerm:t.filterBlocksBySearchTerm});return"all-wireframe-grid"===e.currentScreen?c.allWireframes=u(t.filterBlocksBySearchTerm,"",t.filterBlocksBySearchTerm,""):c.allPatterns=s(t.filterBlocksBySearchTerm,"",t.filterBlocksBySearchTerm,""),c}return"SET_FILTER_PAGES_BY_SEARCH_TERM"===t.type?t.filterPagesBySearchTerm.length?d(d({},e),{},{allPages:p(t.filterPagesBySearchTerm),filterPagesBySearchTerm:t.filterPagesBySearchTerm}):d(d({},e),{},{allPages:[],filterPagesBySearchTerm:t.filterPagesBySearchTerm}):"SET_ALL_PAGES"===t.type?d(d({},e),{},{allPages:t.allPages}):e};function b(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(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 y(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 w={getTogglePopup:function(e){return e.togglePopup},getAllWireframes:function(e){return e.allWireframes},getAllPatterns:function(e){return e.allPatterns},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}},k={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,b(t))(e.dispatch),e.dispatch=n})((0,wp.data.registerStore)("ast-block-templates",{reducer:v,actions:k,selectors:w}));var _,x,E,S,B=n(4),P=n.n(B),R=n(3),I=n.n(R),T=P()(console.error);function A(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 I.a.sprintf.apply(I.a,[e].concat(n))}catch(t){return T("sprintf error: \n\n"+t.toString()),e}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}_={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},x=["(","?"],E={")":["("],":":["?","?:"]},S=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var j={"!":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 O(e){var t=function(e){for(var t,n,r,o,a=[],i=[];t=e.match(S);){for(n=t[0],(r=e.substr(0,t.index).trim())&&a.push(r);o=i.pop();){if(E[n]){if(E[n][0]===o){n=E[n][1]||n;break}}else if(x.indexOf(o)>=0||_[o]<_[n]){i.push(o);break}a.push(o)}E[n]||i.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&a.push(e),a.concat(i.reverse())}(e);return function(e){return function(e,t){var n,r,o,a,i,l,c=[];for(n=0;n<e.length;n++){if(i=e[n],a=j[i]){for(r=a.length,o=Array(r);r--;)o[r]=c.pop();try{l=a.apply(null,o)}catch(e){return e}}else l=t.hasOwnProperty(i)?t[i]:+i;c.push(l)}return c[0]}(t,e)}}var N={contextDelimiter:"",onMissingKey:null};function F(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},N)this.options[n]=void 0!==t&&n in t?t[n]:N[n]}function L(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}F.prototype.getPluralForm=function(e,t){var n,r,o,a,i=this.pluralForms[e];return i||("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),a=O(r),o=function(e){return+a({n:e})}),i=this.pluralForms[e]=o),i(t)},F.prototype.dcnpgettext=function(e,t,n,r,o){var a,i,l;return a=void 0===o?0:this.getPluralForm(e,o),i=n,t&&(i=t+this.options.contextDelimiter+n),(l=this.data[e][i])&&l[a]?l[a]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===a?n:r)};var W={"":{plural_forms:function(e){return 1===e?0:1}}},z=/^i18n\.(n?gettext|has_translation)(_|$)/;var M=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 V=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 U=function(e,t){return function(n,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,i=e[t];if(V(n)&&M(r))if("function"==typeof o)if("number"==typeof a){var l={callback:o,priority:a,namespace:r};if(i[n]){var c,s=i[n].handlers;for(c=s.length;c>0&&!(a>=s[c-1].priority);c--);c===s.length?s[c]=l:s.splice(c,0,l),i.__current.forEach((function(e){e.name===n&&e.currentIndex>=c&&e.currentIndex++}))}else i[n]={handlers:[l],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var $=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,o){var a=e[t];if(V(r)&&(n||M(o))){if(!a[r])return 0;var i=0;if(n)i=a[r].handlers.length,a[r]={runs:a[r].runs,handlers:[]};else for(var l=a[r].handlers,c=function(e){l[e].namespace===o&&(l.splice(e,1),i++,a.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},s=l.length-1;s>=0;s--)c(s);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),i}}};var q=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 G=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 a=o[r].handlers;for(var i=arguments.length,l=new Array(i>1?i-1:0),c=1;c<i;c++)l[c-1]=arguments[c];if(!a||!a.length)return n?l[0]:void 0;var s={name:r,currentIndex:0};for(o.__current.push(s);s.currentIndex<a.length;){var u=a[s.currentIndex],f=u.callback.apply(null,l);n&&(l[0]=f),s.currentIndex++}return o.__current.pop(),n?l[0]:void 0}};var Y=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 H=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 K=function(e,t){return function(n){var r=e[t];if(V(n))return r[n]&&r[n].runs?r[n].runs:0}},Z=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=U(this,"actions"),this.addFilter=U(this,"filters"),this.removeAction=$(this,"actions"),this.removeFilter=$(this,"filters"),this.hasAction=q(this,"actions"),this.hasFilter=q(this,"filters"),this.removeAllActions=$(this,"actions",!0),this.removeAllFilters=$(this,"filters",!0),this.doAction=G(this,"actions"),this.applyFilters=G(this,"filters",!0),this.currentAction=Y(this,"actions"),this.currentFilter=Y(this,"filters"),this.doingAction=H(this,"actions"),this.doingFilter=H(this,"filters"),this.didAction=K(this,"actions"),this.didFilter=K(this,"filters")};var X=function(){return new Z}(),J=(X.addAction,X.addFilter,X.removeAction,X.removeFilter,X.hasAction,X.hasFilter,X.removeAllActions,X.removeAllFilters,X.doAction,X.applyFilters,X.currentAction,X.currentFilter,X.doingAction,X.doingFilter,X.didAction,X.didFilter,X.actions,X.filters,function(e,t,n){var r=new F({}),o=new Set,a=function(){o.forEach((function(e){return e()}))},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=D(D(D({},W),r.data[t]),e),r.data[t][""]=D(D({},W[""]),r.data[t][""])},l=function(e,t){i(e,t),a()},c=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,a=arguments.length>4?arguments[4]:void 0;return r.data[e]||i(void 0,e),r.dcnpgettext(e,t,n,o,a)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return e},u=function(e,t,r){var o=c(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&&l(e,t),n){var f=function(e){z.test(e)&&a()};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:l,resetLocaleData:function(e,t){r.data={},r.pluralForms={},l(e,t)},subscribe:function(e){return o.add(e),function(){return o.delete(e)}},__:function(e,t){var r=c(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 a=c(o,void 0,e,t,r);return n?(a=n.applyFilters("i18n.ngettext",a,e,t,r,o),n.applyFilters("i18n.ngettext_"+s(o),a,e,t,r,o)):a},_nx:function(e,t,r,o,a){var i=c(a,o,e,t,r);return n?(i=n.applyFilters("i18n.ngettext_with_context",i,e,t,r,o,a),n.applyFilters("i18n.ngettext_with_context_"+s(a),i,e,t,r,o,a)):i},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,o){var a,i,l=t?t+""+e:e,c=!(null===(a=r.data)||void 0===a||null===(i=a[null!=o?o:"default"])||void 0===i||!i[l]);return n&&(c=n.applyFilters("i18n.has_translation",c,e,t,o),c=n.applyFilters("i18n.has_translation_"+s(o),c,e,t,o)),c}}}(void 0,void 0,X)),Q=(J.getLocaleData.bind(J),J.setLocaleData.bind(J),J.resetLocaleData.bind(J),J.subscribe.bind(J),J.__.bind(J)),ee=(J._x.bind(J),J._n.bind(J),J._nx.bind(J),J.isRTL.bind(J),J.hasTranslation.bind(J),wp.element),te=ee.createPortal,ne=ee.memo,re=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(e){return{onSetTogglePopup:e("ast-block-templates").setTogglePopup}})))(ne((function(e){var t=e.onSetTogglePopup;return te(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"))}))),oe=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)},ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return oe(e,t,"#F20404")},ie=(n(9),function(e){var t=e.message;return React.createElement("div",{className:"ast-block-templates-tooltip"},t)});n(11);function le(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function ce(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){le(a,r,o,i,l,"next",e)}function l(e){le(a,r,o,i,l,"throw",e)}i(void 0)}))}}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ue(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 ue(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 ue(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 fe=wp.compose.compose,pe=wp.data,me=pe.withSelect,de=pe.withDispatch,he=wp.element,ge=he.useState,ve=he.memo,be=wp.ajax.post,ye=fe(de((function(e){return{setNotice:e("ast-block-templates").setNotice}})),me((function(e){return{notice:(0,e("ast-block-templates").getNotice)()}})))(ve((function(e){var t=e.setNotice,n=se(ge({isProcessing:"",buttonText:"Sync Library"}),2),r=n[0],o=n[1],a=r.isProcessing,i=r.buttonText,l=function(){var e=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({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)}}(),c=function(){var e=ce(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({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&&l()):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=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({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++)c(n,t)}else o({isProcessing:"complete",buttonText:"Importing Sites Failed"})})).fail((function(e){ae("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=ce(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({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=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({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){ae("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,be({action:"ast-block-templates-import-categories",_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){f()})).fail((function(e){ae("fail",e)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=ce(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,be({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){ae("fail",e)}));case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),ae("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"===a?"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.."}),m()}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-refresh"}),React.createElement("span",{className:"ast-block-templates-sync__title"},i),React.createElement(ie,{message:"Sync Library"}))}))),we=(n(13),wp.compose.compose),ke=wp.data.withDispatch,_e=wp.element.memo,xe=we(ke((function(e){return{setCurrentScreen:e("ast-block-templates").setCurrentScreen}})))(_e((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 ".concat(""!==AstBlockTemplatesVars.popup_logo_class?AstBlockTemplatesVars.popup_logo_class:""),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))))}))),Ee=wp.compose.compose,Se=wp.data,Be=Se.withSelect,Pe=Se.withDispatch,Re=wp.element.memo,Ie=Ee(Be((function(e){var t=e("ast-block-templates"),n=t.getSitePreview,r=t.getCurrentScreen;return{preview:n(),currentScreen:r()}})),Pe((function(e){var t=e("ast-block-templates"),n=t.setAllPages,r=t.setSitePreview,o=t.setTogglePopup,a=t.setCurrentScreen,i=t.setFilterPagesBySearchTerm,l=t.setFilterBlocksBySearchTerm;return{updateCurrentScreen:function(e){n([]),r({}),i(""),l(""),a(e)},onSetSitePreview:r,onSetTogglePopup:o}})))(Re((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-pages"}),Q("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-patterns"}),Q("Patterns")),React.createElement("div",{className:"header-menu-item ".concat("all-wireframe-grid"===t?"active":""),onClick:function(){return n("all-wireframe-grid")}},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-wireframe"}),Q("Wireframes")))}))),Te=wp.compose.compose,Ae=wp.data,Ce=Ae.withSelect,je=Ae.withDispatch,Oe=wp.element.memo,Ne=Te(Ce((function(e){var t=e("ast-block-templates"),n=t.getSitePreview,r=t.getCurrentScreen;return{sitePreview:n(),currentScreen:r()}})),je((function(e){var t=e("ast-block-templates"),n=t.setSitePreview,r=t.setTogglePopup;t.setCurrentScreen;return{setSitePreview:n,onSetTogglePopup:r}})))(Oe((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"}))}))),Fe=(n(15),wp.compose.compose),Le=wp.data,De=Le.withSelect,We=Le.withDispatch,ze=wp.element.memo,Me=Fe(De((function(e){var t=e("ast-block-templates"),n=t.getCurrentScreen,r=t.getPreviousScreen;return{currentScreen:n(),previousScreen:r()}})),We((function(e){return{setCurrentScreen:e("ast-block-templates").setCurrentScreen}})))(ze((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":"",a="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(ie,{message:a}),React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-chevron-left"}),React.createElement("span",{className:"ast-block-templates-back-heading"}," Back ")))})));n(17),n(19);function Ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(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 Ue(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 Ue(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 $e=wp.element,qe=$e.memo,Ge=$e.useState,Ye=$e.useEffect,He=qe((function(e){var t=e.onSearch,n=e.value,r=e.searchInputRef,o=e.placeholder,a=Ve(Ge(""),2),i=a[0],l=a[1],c=o||Q("Search..","ast-block-templates");return Ye((function(){l(n)})),React.createElement("div",{className:"search-form ".concat(i?"have-input":"")},React.createElement("input",{ref:r,type:"search",name:"search",value:n,placeholder:c,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)"}))))))})),Ke=wp.element.memo,Ze=wp.compose.compose,Xe=wp.data,Je=Xe.withSelect,Qe=Xe.withDispatch,et=Ze(Je((function(e){var t=e("ast-block-templates"),n=t.getCurrentScreen,r=t.getFilterPagesBySearchTerm,o=t.getFilterBlocksBySearchTerm;return{currentScreen:n(),filterPagesBySearchTerm:r(),filterBlocksBySearchTerm:o()}})),Qe((function(e){var t=e("ast-block-templates"),n=t.setFilterBlocksBySearchTerm,r=t.setFilterPagesBySearchTerm,o=t.setCurrentScreen,a=t.setPagePreview,i=t.setSitePreview,l=t.setFullWidthBlockPreview;return{setFilterBlocksBySearchTerm:function(e,t){o(t),l({}),n(e)},insertBlocks:e("core/block-editor").insertBlocks,setFilterPagesBySearchTerm:function(e){o("all-sites-grid"),r(e),a({}),i({})}}})))(Ke((function(e){var t=e.currentScreen,n=e.filterPagesBySearchTerm,r=e.filterBlocksBySearchTerm,o=e.setFilterBlocksBySearchTerm,a=e.setFilterPagesBySearchTerm;return React.createElement("div",{className:"header"},"all-single-site-pages"===t?React.createElement(Me,null):React.createElement(xe,null),React.createElement(Ie,null),"all-sites-grid"===t||"all-single-site-pages"===t||"full-width-page-preview"===t||"all-single-pages"===t?React.createElement(He,{placeholder:"Search Templates..",value:n,onSearch:function(e){a(e.target.value)}}):React.createElement(He,{placeholder:"".concat("all-wireframe-grid"===t?"Search Wireframes..":"Search Patterns.."),value:r,onSearch:function(e){o(e.target.value,t)}}),React.createElement(ye,null),React.createElement(Ne,null))}))),tt=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)}))}))},nt=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 rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var at={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 a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.has(n))return t.get(n);if(o+=a,"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 i=Array.isArray(n)||n.constructor===Object;if(t.set(n,"".concat("rR"[+i],":").concat(o,";")),"function"==typeof n.serialize)return"C:".concat(r(n.constructor.name),":").concat(r(n.serialize(),"{}"));var l=Object.entries(n).filter((function(e){var t=ot(e,2);t[0];return"function"!=typeof t[1]}));return(i?"a":"O:".concat(r(n.constructor.name)))+":".concat(l.length,":{").concat(l.map((function(t){var n=ot(t,2),r=n[0],o=n[1];return e(i&&/^\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=at.stdClass;var n=0,r=[null],o={INF:1/0,"-INF":-1/0,NAN:NaN},a=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),"^"))},i=function(t,r){return t===e.slice(n,n+=t.length)?r:a("Expected '".concat(t,"'"),n-t.length)};function l(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:";";i(":");var l=t.exec(e.slice(n));return l||a("Exected ".concat(r,", but got '").concat(e.slice(n).match(/^[:;{}]|[^:;{}]*/)[0],"'")),n+=l[0].length,i(o,l[0])}function c(t){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=n;t>0;){var l=e.charCodeAt(n++);t-=l<128?1:l<2048||l>>11==27?2:3}return t?a("Invalid string length",o-2):i(r,e.slice(o,n))}var s=function(e){return e?t[e]?Object.create(t[e].prototype):new(rt({},e,(function(){}))[e]):{}},u=function(){return l(/^[01]/,"a '0' or '1'",";")},f=function(){return+l(/^-?\d+/,"an integer",";")},p=function(e){return+l(/^\d+/,"an unsigned integer",e)},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return c(p(':"'),'"'+e)};function d(){var e=l(/^-?(\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?m(";"):"i"===t?p(";"):a("Expected 's' or 'i' as type for a key, but got ${str[offset-1]}",n-1)}function g(e){for(var t=0,n=p(":{");t<n;t++)e[h()]=y();return i("}",e)}function v(){var e=g({});return Object.keys(e).some((function(e,t){return e!=t}))?e:Object.values(e)}function b(e){return"function"!=typeof e.unserialize&&a("Instance of ".concat(e.constructor.name,' does not have an "unserialize" method')),e.unserialize(c(p(":{"))),i("}",e)}function y(){var t=e[n++].toLowerCase(),o=r.push(null)-1,l="n"===t?i(";",null):"s"===t?m(";"):"b"===t?u():"i"===t?f():"d"===t?d():"a"===t?v():"o"===t?g(s(m())):"c"===t?b(s(m())):"r"===t?r[f()]:a("Unexpected type ".concat(t),n-1);return"r"!==t&&(r[o]=l),l}var w=y();return n!==e.length&&a("Unexpected trailing character"),w}},it=function(e,t){return fetch("".concat(AstBlockTemplatesVars.api_url,"wp-json/wp/v2/").concat(t,"/").concat(e,"/?site_url=").concat(AstBlockTemplatesVars.site_url)).then((function(e){return e.json()}))};n(21);function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ct(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 ct(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 ct(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 st=wp.compose.compose,ut=wp.data,ft=ut.useSelect,pt=ut.withSelect,mt=ut.withDispatch,dt=wp.ajax.post,ht=wp.blocks.parse,gt=wp.element,vt=gt.useState,bt=gt.memo,yt=(gt.useEffect,gt.useCallback,wp.components.Spinner),wt=st(pt((function(e){var t=e("ast-block-templates"),n=t.getImportItemInfo,r=t.getCurrentScreen,o=t.getSitePreview;return{importItemInfo:n(),sitePreview:o(),currentScreen:r()}})),mt((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}})))(bt((function(e){var t=e.setImportItemInfo,n=(e.liveRequest,e.requiredPlugins,e.importItemInfo),r=e.title,o=e.btnClass,a=e.currentScreen,i=e.insertBlocks,l=e.onSetTogglePopup,c=e.item,s=e.onClick,u=e.onBlockImport,f=lt(vt(n),2),p=f[0],m=(f[1],o||""),d=lt(vt(r||"Import"),2),h=d[0],g=d[1],v="full-width-block-preview"===a?"show":"",b=lt(vt(!1),2),y=b[0],w=b[1],k=ft((function(e){return{insertIndex:e("core/block-editor").getBlockInsertionPoint().index}}),[]).insertIndex,_=function(){tt({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){E()})).catch((function(e){w(!1),g("Activation failed!")}))},x=function(){var e=p.original_content;dt({action:"ast_block_templates_import_block",content:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){w(!1),i(ht(e),k),l(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open"),"function"==typeof u&&u(e,k)})).fail((function(e){}))},E=function(){var e=p["post-meta"]["astra-site-wpforms-path"]||"";e?function(e){dt({action:"ast_block_templates_import_wpforms",wpforms_url:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){x()})).fail((function(e){w(!1),g("WPForms import failed!")}))}(e):x()};return React.createElement("div",{className:"ast-template-import-block-button ".concat(v," ").concat(m),onClick:function(e){"function"==typeof s&&s(e),w(!0),it(c.ID,"astra-blocks").then((function(e){t(e),p=e,(e["post-meta"]["astra-blocks-required-plugins"]?at.parse(e["post-meta"]["astra-blocks-required-plugins"]):[]).length?"not-installed"===AstBlockTemplatesVars.wpforms_status?nt({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){_()})).catch((function(e){w(!1),g("Installtion failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?_():E():E()})).catch((function(e){}))}},y?React.createElement(React.Fragment,null,React.createElement(yt,null)," Importing.."):React.createElement(React.Fragment,null,h))})));function kt(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 _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return St(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 St(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 St(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 Bt=wp.compose.compose,Pt=wp.data.withDispatch,Rt=wp.element,It=Rt.memo,Tt=Rt.useEffect,At=Rt.useState,Ct=(wp.ajax.post,Bt(Pt((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")}}})))(It((function(e){e.setImportItemInfo,e.updateFullWidthBlockPreview;var t=e.item,n=e.InitMasonry,r=t["thumbnail-image-url"]||"",o=t["featured-image-url"]||"",a=Et(At({importing:!1}),2),i=a[0],l=a[1],c=Et(At("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),s=c[0],u=c[1],f=Et(At("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),p=f[0],m=f[1];return Tt((function(){var e=!0,t=new Image;t.src=r;var a=new Image;return a.src=o,t.onload=function(){e&&(u(t.src),n())},a.onload=function(){e&&(m(a.src),n())},function(){e=!1}}),[]),React.createElement("div",{className:"item single-block ".concat(!0===i.importing?"importing":"")},React.createElement("div",{className:"inner"},React.createElement("div",{className:"thumbnail"},React.createElement("img",{srcSet:"".concat(p,", ").concat(s),src:s}),React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"}))),React.createElement("div",{className:"heading-wrap"},React.createElement("div",{className:"button-actions"},React.createElement(wt,{btnClass:"button button-primary gt-btn-import",title:"Import",liveRequest:!0,item:t,onClick:function(e){l(_t(_t({},i),{},{importing:!0}))},onBlockImport:function(e){l(_t(_t({},i),{},{importing:!1}))}})))))})))),jt=wp.compose.compose,Ot=wp.element,Nt=Ot.memo,Ft=(Ot.useEffect,Ot.useState,wp.data),Lt=Ft.withSelect,Dt=(Ft.withDispatch,jt(Lt((function(e){return{filterBlocksBySearchTerm:(0,e("ast-block-templates").getFilterBlocksBySearchTerm)()}})))(Nt((function(e){var t=e.value,n=e.options,r=e.allCount,o=e.onChange,a=e.filterBlocksBySearchTerm;return React.createElement("div",{className:"st-block-categories-wrap"},React.createElement("h3",null,"Categories"),React.createElement("div",{className:"st-block-categories-list"},React.createElement("div",{className:"st-block-category ".concat(a||""!==t?"":"active"),onClick:function(e){"function"==typeof o&&o(e,"")}},React.createElement("span",{className:"st-block-category-title"},"All"),React.createElement("span",{className:"st-block-category-count"},r)),Object.values(n).map((function(e){return React.createElement("div",{key:e.id,className:"st-block-category ".concat(t===e.id?"active":""),onClick:function(t){"function"==typeof o&&o(t,e)}},React.createElement("span",{className:"st-block-category-title"},e.name),React.createElement("span",{className:"st-block-category-count"},e.count))}))))}))));function Wt(e){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var zt=wp.compose.compose,Mt=wp.element,Vt=Mt.memo,Ut=(Mt.useEffect,Mt.useState,wp.data),$t=Ut.withSelect,qt=Ut.withDispatch,Gt=zt($t((function(e){var t=e("ast-block-templates"),n=t.getFilterBlocksByCategory,r=t.getFilterBlocksByColor;return{filterBlocksByCategory:n(),filterBlocksByColor:r()}})),qt((function(e){return{setFilterBlocksByCategory:e("ast-block-templates").setFilterBlocksByCategory}})))(Vt((function(e){var t=e.filterBlocksByCategory,n=e.setFilterBlocksByCategory,r=e.filterBlocksByColor,o=[],a=0;for(var i in AstBlockTemplatesVars.allBlocks){var l=AstBlockTemplatesVars.allBlocks[i].filter||"",c=AstBlockTemplatesVars.allBlocks[i].wireframe||{};Object.keys(c).length&&function(){var e="object"===Wt(AstBlockTemplatesVars.allBlocks[i].category)?0:parseInt(AstBlockTemplatesVars.allBlocks[i].category);if(!o[e]){var t=AstBlockTemplatesVars.allCategories.filter((function(t){return t.id===e})),n=t.length?t[0]:{};n.id=e,n.count=0,o[e]=n}(!r||r&&l==r)&&(o[e].count=parseInt(o[e].count)+1,a+=1)}()}return o.sort((function(e,t){var n=e.name.toUpperCase()||"",r=t.name.toUpperCase()||"";return n<r?-1:n>r?1:0})),React.createElement(Dt,{value:t,allCount:a,options:o,onChange:function(e,t){n(t?t.id:"")}})}))),Yt=wp.compose.compose,Ht=wp.element.memo,Kt=wp.data,Zt=Kt.withSelect,Xt=Kt.withDispatch,Jt=Yt(Zt((function(e){return{filterBlocksByColor:(0,e("ast-block-templates").getFilterBlocksByColor)()}})),Xt((function(e){return{setFilterBlocksByColor:e("ast-block-templates").setFilterBlocksByColor}})))(Ht((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)}))))}}))),Qt=(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(Jt,null),React.createElement(Gt,null)))})),en=(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)}),tn=(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)}},Q("Back to Templates","ast-block-templates")))}),nn=(n(27),wp.compose.compose),rn=wp.data,on=rn.withSelect,an=rn.withDispatch,ln=wp.element.memo,cn=nn(an((function(e){return{setNotice:e("ast-block-templates").setNotice}})),on((function(e){return{notice:(0,e("ast-block-templates").getNotice)()}})))(ln((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")))})));function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var un=wp.compose.compose,fn=wp.data,pn=fn.withSelect,mn=fn.withDispatch,dn=wp.element,hn=dn.memo,gn=dn.useEffect,vn=(dn.useState,un(mn((function(e){var t=e("ast-block-templates"),n=t.setFilterBlocksBySearchTerm;return{setFilterBlocksByCategory:t.setFilterBlocksByCategory,setFilterBlocksBySearchTerm:n}})),pn((function(e){var t=e("ast-block-templates"),n=t.getAllWireframes,r=t.getFilterBlocksByCategory,o=t.getFilterBlocksByColor;return{filterBlocksByCategory:r(),filterBlocksByColor:o(),allWireframes:n()}})))(hn((function(e){e.filterBlocksByCategory,e.setFilterBlocksByCategory;var t=e.filterBlocksByColor,n=e.setFilterBlocksBySearchTerm,r=e.allWireframes,o=(e.imagesLoad,e.setImagesLoaded,[]),a=[],i=function(e){var n=r[e].filter||"",i="object"===sn(r[e].category)?0:parseInt(r[e].category);if(!a[i]){var l=AstBlockTemplatesVars.allCategories.filter((function(e){return e.id===i})),c=l.length?l[0]:{};c.id=i,c.count=0,a[i]=c}(!t||t&&n==t)&&(a[i].count=parseInt(a[i].count)+1,1,o.push(r[e]))};for(var l in r)i(l);gn((function(){var e=document.getElementById("ast-block-templates-grid-blocks");e&&imagesLoaded(e,(function(){new Masonry(e)}))}));var c=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(Qt,null),React.createElement("div",{className:"ast-block-templates-pattern-grid"},React.createElement(cn,null),React.createElement("div",{className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},o.length?o.map((function(e){return React.createElement(Ct,{key:e.ID,item:e,InitMasonry:c})})):React.createElement(en,null,React.createElement(tn,{afterClick:function(e){n("")}})))))}))));function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var yn=wp.compose.compose,wn=wp.element,kn=wn.memo,_n=(wn.useEffect,wn.useState,wp.data),xn=_n.withSelect,En=_n.withDispatch,Sn=yn(xn((function(e){var t=e("ast-block-templates"),n=t.getFilterBlocksByCategory,r=t.getFilterBlocksByColor;return{filterBlocksByCategory:n(),filterBlocksByColor:r()}})),En((function(e){return{setFilterBlocksByCategory:e("ast-block-templates").setFilterBlocksByCategory}})))(kn((function(e){var t=e.filterBlocksByCategory,n=e.setFilterBlocksByCategory,r=e.filterBlocksByColor,o=[],a=0;for(var i in AstBlockTemplatesVars.allBlocks){var l=AstBlockTemplatesVars.allBlocks[i].filter||"",c=AstBlockTemplatesVars.allBlocks[i].wireframe||{};Object.keys(c).length||function(){var e="object"===bn(AstBlockTemplatesVars.allBlocks[i].category)?0:parseInt(AstBlockTemplatesVars.allBlocks[i].category);if(!o[e]){var t=AstBlockTemplatesVars.allCategories.filter((function(t){return t.id===e})),n=t.length?t[0]:{};n.id=e,n.count=0,o[e]=n}(!r||r&&l==r)&&(o[e].count=parseInt(o[e].count)+1,a+=1)}()}return o.sort((function(e,t){var n=e.name.toUpperCase()||"",r=t.name.toUpperCase()||"";return n<r?-1:n>r?1:0})),React.createElement(Dt,{value:t,allCount:a,options:o,onChange:function(e,t){n(t?t.id:"")}})}))),Bn=(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(Jt,null),React.createElement(Sn,null)))}));function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Rn=wp.compose.compose,In=wp.data,Tn=In.withSelect,An=In.withDispatch,Cn=wp.element,jn=Cn.memo,On=Cn.useEffect,Nn=(Cn.useState,Rn(An((function(e){var t=e("ast-block-templates"),n=t.setFilterBlocksBySearchTerm;return{setFilterBlocksByCategory:t.setFilterBlocksByCategory,setFilterBlocksBySearchTerm:n}})),Tn((function(e){var t=e("ast-block-templates"),n=t.getAllPatterns,r=t.getFilterBlocksByCategory,o=t.getFilterBlocksByColor;return{filterBlocksByCategory:r(),filterBlocksByColor:o(),allPatterns:n()}})))(jn((function(e){e.filterBlocksByCategory,e.setFilterBlocksByCategory;var t=e.filterBlocksByColor,n=e.setFilterBlocksBySearchTerm,r=e.allPatterns,o=(e.imagesLoad,e.setImagesLoaded,[]),a=[],i=function(e){var n=r[e].filter||"",i="object"===Pn(r[e].category)?0:parseInt(r[e].category);if(!a[i]){var l=AstBlockTemplatesVars.allCategories.filter((function(e){return e.id===i})),c=l.length?l[0]:{};c.id=i,c.count=0,a[i]=c}(!t||t&&n==t)&&(a[i].count=parseInt(a[i].count)+1,1,o.push(r[e]))};for(var l in r)i(l);On((function(){var e=document.getElementById("ast-block-templates-grid-blocks");e&&imagesLoaded(e,(function(){new Masonry(e)}))}));var c=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(Bn,null),React.createElement("div",{className:"ast-block-templates-pattern-grid"},React.createElement(cn,null),React.createElement("div",{className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},o.length?o.map((function(e){return React.createElement(Ct,{key:e.ID,item:e,InitMasonry:c})})):React.createElement(en,null,React.createElement(tn,{afterClick:function(e){n("")}})))))})))),Fn=wp.ajax.post,Ln=wp.blocks.parse;var Dn=function(e,t,n,r,o){Fn({action:"ast_block_templates_importer",api_uri:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){!function(e,t,n,r,o){Fn({action:"ast_block_templates_import_block",content:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){r(Ln(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){ae("fail",e)}))};n(29);function Wn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zn(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 zn(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 zn(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 Mn=wp.compose.compose,Vn=wp.data,Un=Vn.useSelect,$n=Vn.withSelect,qn=Vn.withDispatch,Gn=wp.element,Yn=Gn.useState,Hn=Gn.memo,Kn=Gn.useEffect,Zn=wp.components.Spinner,Xn=wp.ajax.post,Jn=Mn($n((function(e){var t=e("ast-block-templates"),n=t.getPagePreview,r=t.getImportItemInfo,o=t.getCurrentScreen,a=t.getSitePreview;return{pagePreview:n(),importItemInfo:r(),sitePreview:a(),currentScreen:o()}})),qn((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}})))(Hn((function(e){var t=e.title,n=e.currentScreen,r=e.insertBlocks,o=e.onSetTogglePopup,a=e.item,i=(e.importItemInfo,e.pagePreview),l=Wn(Yn(t||"Import"),2),c=l[0],s=l[1];Kn((function(){s(t||"Import")}),[t]);var u=[],f="full-width-page-preview"===n?"show":"",p=Wn(Yn(!1),2),m=p[0],d=p[1],h=i["required-plugins"]?i["required-plugins"].filter((function(e){return"wpforms-lite"===e.slug})):[],g=Un((function(e){var t=e("core/block-editor").getBlockInsertionPoint();return{insertIndex:t.index,insertClientID:t.rootClientId}}),[]),v=g.insertIndex,b=g.insertClientID,y=function(){tt({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){w()})).catch((function(e){d(!1),s("Error! WP Forms plugin activation failed!")}))},w=function(){var e=u["astra-site-wpforms-path"]||"";e?k(e):Dn(a["astra-page-api-url"],r,o,v,b)},k=function(e){Xn({action:"ast_block_templates_import_wpforms",wpforms_url:e,_ajax_nonce:AstBlockTemplatesVars._ajax_nonce}).done((function(e){Dn(a["astra-page-api-url"],r,o,v,b)})).fail((function(e){d(!1),s("Error! "+e.status+e.statusText)}))};return React.createElement("button",{className:"button button-primary ast-template-import-page-button ".concat(f),onClick:function(){d(!0),it(a.ID,"site-pages").then((function(e){u=e,h.length?"not-installed"===AstBlockTemplatesVars.wpforms_status?nt({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((function(e){y()})).catch((function(e){d(!1),s("Error! WP Forms plugin installation failed!")})):"inactive"===AstBlockTemplatesVars.wpforms_status?y():w():w()}))}},m?React.createElement(React.Fragment,null,React.createElement(Zn,null)," Importing.."):React.createElement(React.Fragment,null,c))}))),Qn=(n(31),wp.compose.compose),er=wp.data,tr=er.withSelect,nr=er.withDispatch,rr=wp.element,or=rr.Fragment,ar=rr.memo,ir=rr.useEffect,lr=Qn(tr((function(e){var t=e("ast-block-templates"),n=t.getDisplayDynamicPopup;return{pagePreview:(0,t.getPagePreview)(),displayDynamicPopup:n()}})),nr((function(e){return{setDisplayDynamicPopup:e("ast-block-templates").setDisplayDynamicPopup}})))(ar((function(e){var t=e.pagePreview,n=e.displayDynamicPopup,r=e.setDisplayDynamicPopup,o=!1===n?"hide":"",a=function(){r(!1)},i=function(e){e.target===document.querySelector(".ast-block-templates-popup-wrap")&&a()};return ir((function(){return document.addEventListener("click",i),function(){document.removeEventListener("click",i)}})),React.createElement(or,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"},Q("Heads Up!","ast-block-templates")),React.createElement("span",{className:"ast-block-templates-popup-close-icon",onClick:a},React.createElement("span",{className:"dashicons close dashicons-no-alt"}))),React.createElement("div",{className:"ast-block-templates-popup-content"},React.createElement("p",null,Q("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,Q("You will need to add it manually on the page.","ast-block-templates"))),React.createElement("div",{className:"ast-block-templates-popup-footer"},React.createElement(Jn,{title:A(Q('Skip & Import "%s" Page',"ast-block-templates"),t.title),item:t}),React.createElement("div",{className:"button",onClick:a},Q("Cancel","ast-block-templates"))))))}))),cr=wp.compose.compose,sr=wp.data,ur=sr.withSelect,fr=sr.withDispatch,pr=wp.element.memo,mr=cr(ur((function(e){return{pagePreview:(0,e("ast-block-templates").getPagePreview)()}})),fr((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")}}})))(pr((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"},a(t.title)))))}))),dr=(n(33),wp.element),hr=dr.memo,gr=dr.Fragment;var vr=(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()}})))(hr((function(e){var t=e.sitePreview,n=e.pagePreview;if(!Object.keys(t).length)return"";var r=Object.values(t.pages)||[],o=n["featured-image-url"];return React.createElement(gr,null,React.createElement(lr,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"},a(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"},Q("Page Templates","ast-block-templates")),React.createElement("div",{className:"ast-block-templates-grid"},r.length?r.map((function(e){return React.createElement(mr,{key:e.ID,item:e})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,Q("No Result Found","ast-block-templates")),React.createElement("p",null,Q("The search result not found. Try another search.","ast-block-templates")))))))})));function br(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yr(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 yr(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 yr(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 wr=wp.compose.compose,kr=wp.data,_r=kr.withSelect,xr=kr.withDispatch,Er=wp.element,Sr=Er.memo,Br=Er.useState,Pr=Er.useEffect,Rr=wr(_r((function(e){return{preview:e("ast-block-templates").getSitePreview}})),xr((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}})))(Sr((function(e){var t=e.setSitePreview,n=e.item,r=e.setImportItemInfo,o=n["thumbnail-image-url"]||"",i=n.pages?n.pages.length:0,l=i<=1?"Template":"Templates",c=br(Br("".concat(AstBlockTemplatesVars.uri,"dist/placeholder_200_200.png")),2),s=c[0],u=c[1];return Pr((function(){var e=!0,t=new Image;return t.src=o,t.onload=function(){e&&u(t.src)},function(){e=!1}}),[s]),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(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("h3",{className:"title"},a(n.title)),i?React.createElement("div",{className:"sub-title"},"".concat(i," ").concat(l)):"")))}))),Ir=wp.compose.compose,Tr=wp.data,Ar=Tr.withSelect,Cr=(Tr.withDispatch,wp.element),jr=(Cr.useEffect,Cr.useState,Cr.memo),Or=Cr.Fragment,Nr=Ir(Ar((function(e){var t=e("ast-block-templates"),n=t.getAllPages,r=t.getCurrentScreen,o=t.getAllSites;return{currentScreen:r(),allSites:o(),allPages:n()}})))(jr((function(e){e.allPages;var t=e.allSites,n=(e.currentScreen,Object.values(t));return React.createElement(Or,null,n.length?n.map((function(e){return React.createElement(Rr,{key:e.ID,item:e})})):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,Q("No Sites Result Found")," "),React.createElement("p",null,Q("The search result not found. Try another search."))))}))),Fr=wp.compose.compose,Lr=wp.data,Dr=Lr.withSelect,Wr=Lr.withDispatch,zr=wp.element.memo,Mr=Fr(Dr((function(e){return{preview:e("ast-block-templates").getSitePreview}})),Wr((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}})))(zr((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"},a(n["site-title"])),React.createElement("div",{className:"sub-title"},a(n.title)))))}))),Vr=wp.compose.compose,Ur=wp.data,$r=Ur.withSelect,qr=Ur.withDispatch,Gr=wp.element,Yr=Gr.memo,Hr=Gr.Fragment,Kr=Vr(qr((function(e){var t=e("ast-block-templates");return{setPagePreview:t.setPagePreview,setFilterPagesBySearchTerm:t.setFilterPagesBySearchTerm}})),$r((function(e){var t=e("ast-block-templates"),n=t.getAllPages,r=t.getFilterPagesBySearchTerm;return{allPages:n(),filterPagesBySearchTerm:r()}})))(Yr((function(e){var t=e.setPagePreview,n=e.setFilterPagesBySearchTerm,r=e.allPages,o=Object.values(r);return React.createElement(Hr,null,o.length?o.map((function(e){return React.createElement(Mr,{key:e.ID,item:e})})):React.createElement(en,null,React.createElement(tn,{afterClick:function(e){t({}),n("")}})))}))),Zr=wp.compose.compose,Xr=wp.data,Jr=Xr.withSelect,Qr=Xr.withDispatch,eo=wp.element,to=eo.memo;eo.useEffect;var no=Zr(Qr((function(e){return{setFilterPagesBySearchTerm:e("ast-block-templates").setFilterPagesBySearchTerm}})),Jr((function(e){return{filterPagesBySearchTerm:(0,e("ast-block-templates").getFilterPagesBySearchTerm)()}})))(to((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(Kr,null):React.createElement(Nr,null)))}))),ro=(n(35),wp.compose.compose),oo=wp.element.memo,ao=wp.data,io=ao.withSelect,lo=(ao.withDispatch,ro(io((function(e){return{blockPreview:(0,e("ast-block-templates").getFullWidthBlockPreview)()}})))(oo((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}))})))),co=(n(37),wp.compose.compose),so=wp.element.memo,uo=wp.data,fo=uo.withSelect,po=(uo.withDispatch,co(fo((function(e){return{pagePreview:(0,e("ast-block-templates").getFullWidthPagePreview)()}})))(so((function(e){var t=e.pagePreview["featured-image-url"]||"";return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:t}))})))),mo=function(){return React.createElement("div",null,"All signle pages")},ho=(n(39),wp.element),go=ho.useEffect,vo=ho.memo,bo=wp.compose.compose,yo=wp.data.withSelect,wo=function(e){var t=e.filterPagesBySearchTerm,n=e.currentScreen;return go((function(){localStorage.setItem("gt-current-screen",n)}),[n]),"all-single-pages"===n?React.createElement(mo,null):"all-wireframe-grid"===n?React.createElement(vn,null):"all-blocks-grid"===n?React.createElement(Nn,null):t||"all-single-site-pages"!==n?"all-sites-grid"===n?React.createElement(no,null):"full-width-block-preview"===n?React.createElement(lo,null):"full-width-page-preview"===n?React.createElement(po,null):void 0:React.createElement(vr,null)},ko=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(cn,null):null},_o=bo(yo((function(e){var t=e("ast-block-templates"),n=t.getFilterPagesBySearchTerm,r=t.getSitePreview,o=t.getCurrentScreen,a=t.getTogglePopup;return{filterPagesBySearchTerm:n(),sitePreview:r(),currentScreen:o(),togglePopup:a()}})))(vo((function(e){var t=e.sitePreview,n=e.currentScreen,r=e.togglePopup;return go((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(ko,{currentScreen:n}),React.createElement(wo,{currentScreen:n}))})));n(41),n(43),n(45);function xo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Eo(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 Eo(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 Eo(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 So=wp.compose.compose,Bo=wp.data,Po=Bo.withSelect,Ro=Bo.withDispatch,Io=wp.element,To=Io.memo,Ao=Io.useState,Co=So(Po((function(e){return{importItemInfo:(0,e("ast-block-templates").getImportItemInfo)()}})),Ro((function(e){return{setImportItemInfo:e("ast-block-templates").setImportItemInfo}})))(To((function(e){var t=e.requiredPlugins;if(!t.length)return null;var n=xo(Ao(!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)}}))}))),jo=wp.compose.compose,Oo=wp.data,No=Oo.withSelect,Fo=Oo.withDispatch,Lo=wp.element,Do=Lo.memo,Wo=Lo.Fragment,zo=jo(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()}})),Fo((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")}}})))(Do((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(Wo,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(Jn,{title:'Import "'.concat(t.title,'" Template'),item:t}))}))),Mo=(n(47),wp.compose.compose),Vo=wp.data,Uo=Vo.withSelect,$o=Vo.withDispatch,qo=wp.element,Go=qo.memo,Yo=qo.Fragment,Ho=Mo(Uo((function(e){var t=e("ast-block-templates"),n=t.getImportItemInfo,r=t.getFullWidthBlockPreview;return{importItemInfo:n(),fullWidthBlockPreview:r()}})),$o((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")}}})))(Go((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(Yo,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(Co,{requiredPlugins:t}),React.createElement(wt,{btnClass:"button button-primary",title:"Import Pattern",item:r,requiredPlugins:t})))}))),Ko=wp.compose.compose,Zo=wp.data.withSelect,Xo=wp.element.memo,Jo=Ko(Zo((function(e){return{currentScreen:(0,e("ast-block-templates").getCurrentScreen)()}})))(Xo((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(zo,null):React.createElement(Ho,null))}))),Qo=wp.element,ea=Qo.Fragment,ta=Qo.useEffect,na=Qo.memo,ra=(0,wp.compose.compose)((0,wp.data.withDispatch)((function(e){return{onSetTogglePopup:e("ast-block-templates").setTogglePopup}})))(na((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 ta((function(){return document.addEventListener("click",n),function(){document.removeEventListener("click",n)}})),React.createElement(ea,null,React.createElement(re,null),React.createElement("div",{className:"inner"},React.createElement(et,null),React.createElement(_o,null),React.createElement(Jo,null)))})));function oa(){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(ra,null),document.getElementById("ast-block-templates-modal"))}()}),500)}))}document.addEventListener("load",oa),document.addEventListener("DOMContentLoaded",oa)}]);
|
lib/gutenberg-templates/dist/spectra-logo.svg
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg width="60" height="60" viewBox="0 0 84 85" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2 |
+
<path d="M41.7849 0C33.5206 0 25.4419 2.49258 18.5705 7.16254C11.699 11.8325 6.34331 18.4701 3.18071 26.236C0.0181112 34.0018 -0.809377 42.5471 0.802901 50.7913C2.41518 59.0355 6.3948 66.6083 12.2385 72.552C18.0822 78.4958 25.5276 82.5435 33.633 84.1834C41.7385 85.8232 50.1401 84.9816 57.7753 81.7649C65.4105 78.5482 71.9363 73.1008 76.5277 66.1117C81.1191 59.1226 83.5697 50.9057 83.5697 42.5C83.565 31.2298 79.1612 20.4225 71.326 12.4533C63.4908 4.48402 52.8655 0.0048112 41.7849 0ZM57.5278 49.0175C57.5278 49.1264 57.5278 49.2354 57.5278 49.3443V49.6529V49.8526C57.3161 51.0856 56.8673 52.2639 56.207 53.3201L55.8143 53.8829L55.2431 54.5546C55.0482 54.8082 54.8268 55.0396 54.5827 55.2445V55.3353L54.4578 55.4261L54.2079 55.6258C54.1249 55.7007 54.0353 55.7675 53.9402 55.8255L53.6724 56.0071L34.3061 69.0602C34.1479 69.1683 33.9612 69.2253 33.7706 69.2236H33.5743C33.447 69.1967 33.3262 69.1443 33.2189 69.0695C33.1117 68.9947 33.0201 68.899 32.9495 68.7879C32.9495 68.7879 32.5033 67.9891 32.4676 67.9347V67.7531V67.6623V67.5534V67.4263V67.2811C31.7014 65.262 31.6378 63.0371 32.2872 60.9761C32.9366 58.9152 34.2601 57.1424 36.0375 55.9526L45.0691 49.8708C45.2101 49.7754 45.3201 49.6398 45.3853 49.4809C45.4505 49.322 45.4679 49.147 45.4355 48.9781C45.403 48.8091 45.3221 48.6537 45.2029 48.5315C45.0837 48.4093 44.9316 48.3257 44.7657 48.2913L34.1633 46.1128H33.8599H33.7706H33.485H33.1816H33.0567H32.896H32.8068L32.5212 46.0038H32.4319H32.2534L31.9679 45.8586L31.6823 45.7134L31.4145 45.55L31.1468 45.3866C30.3041 44.8521 29.5509 44.1841 28.9156 43.4077L28.6836 43.0809L28.4159 42.6634C27.73 41.6278 27.255 40.4629 27.0189 39.2375C26.7828 38.012 26.7905 36.751 27.0415 35.5286C27.228 34.6884 27.5221 33.8766 27.9161 33.1141C28.0232 32.9144 28.1124 32.7328 28.2195 32.5694L28.3802 32.3153C28.4948 32.1207 28.6199 31.9329 28.755 31.7525L28.9156 31.5528L29.112 31.3167L29.3083 31.0989L29.4333 30.9718L29.6475 30.754L29.8259 30.5906L30.0223 30.4272L30.2365 30.2456H30.3257L30.4685 30.1185H30.5578L30.7898 29.9551L50.049 16.9746C50.1725 16.8912 50.3113 16.8338 50.457 16.806C50.6027 16.7782 50.7524 16.7804 50.8973 16.8126C51.0421 16.8448 51.1791 16.9062 51.3002 16.9933C51.4212 17.0804 51.5238 17.1913 51.6019 17.3195L51.7626 17.5918L51.8875 17.846C51.8875 17.9368 51.9768 18.0094 52.0125 18.082C52.0125 18.082 52.0125 18.082 52.0125 18.191C52.0239 18.2325 52.0239 18.2765 52.0125 18.318L52.1195 18.5904C52.1292 18.6383 52.1292 18.6877 52.1195 18.7356C52.1195 18.7356 52.1195 18.7356 52.1195 18.8445C52.8288 20.8305 52.8625 23.0011 52.2153 25.0089C51.5681 27.0166 50.2774 28.7455 48.5497 29.9188L39.6251 35.9462C39.4842 36.0415 39.3742 36.1772 39.309 36.3361C39.2438 36.495 39.2263 36.6699 39.2588 36.8389C39.2912 37.0078 39.3722 37.1632 39.4914 37.2854C39.6106 37.4077 39.7627 37.4912 39.9286 37.5256L50.4417 39.686C52.5458 40.1281 54.4361 41.2935 55.7948 42.9862C57.1536 44.679 57.8979 46.796 57.9027 48.9812C57.5635 48.4003 57.5278 48.9812 57.5278 48.9812V49.0175Z" fill="url(#paint0_linear_619_170)"/>
|
3 |
+
<defs>
|
4 |
+
<linearGradient id="paint0_linear_619_170" x1="1.17098e-05" y1="1.49716e-06" x2="84.02" y2="71.3596" gradientUnits="userSpaceOnUse">
|
5 |
+
<stop stop-color="#4E01D1"/>
|
6 |
+
<stop offset="1" stop-color="#6104FF"/>
|
7 |
+
</linearGradient>
|
8 |
+
</defs>
|
9 |
+
</svg>
|
lib/gutenberg-templates/dist/spectra.svg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<svg width="71" height="71" viewBox="0 0 71 71" fill="#000000" xmlns="http://www.w3.org/2000/svg">
|
2 |
+
<path d="M35.292 0C28.3119 0 21.4885 2.08204 15.6848 5.98283C9.88107 9.88362 5.35762 15.428 2.68645 21.9147C0.0152817 28.4015 -0.683625 35.5394 0.678124 42.4257C2.03987 49.312 5.40111 55.6375 10.3368 60.6023C15.2725 65.5671 21.5609 68.9481 28.4068 70.3179C35.2528 71.6876 42.3489 70.9846 48.7976 68.2977C55.2464 65.6108 60.7583 61.0607 64.6362 55.2227C68.5141 49.3848 70.584 42.5212 70.584 35.5C70.58 26.0861 66.8604 17.0588 60.2428 10.4021C53.6251 3.74548 44.6508 0.00401876 35.292 0V0ZM48.5887 40.944C48.5887 41.035 48.5887 41.126 48.5887 41.217V41.4748V41.6416C48.4098 42.6715 48.0307 43.6558 47.4731 44.538L47.1414 45.0081L46.659 45.5692C46.4943 45.781 46.3073 45.9742 46.1012 46.1454V46.2213L45.9957 46.2971L45.7846 46.4639C45.7145 46.5265 45.6388 46.5823 45.5585 46.6307L45.3323 46.7824L28.9753 57.6856C28.8417 57.7759 28.684 57.8235 28.523 57.8221H28.3572C28.2497 57.7996 28.1477 57.7558 28.0571 57.6933C27.9665 57.6309 27.8892 57.5509 27.8296 57.4582C27.8296 57.4582 27.4527 56.7909 27.4225 56.7454V56.5938V56.5179V56.4269V56.3208V56.1995C26.7754 54.513 26.7216 52.6545 27.2701 50.933C27.8187 49.2115 28.9365 47.7307 30.4376 46.7369L38.0659 41.6568C38.1849 41.5771 38.2779 41.4638 38.3329 41.3311C38.388 41.1984 38.4027 41.0522 38.3753 40.9111C38.3479 40.77 38.2796 40.6402 38.1789 40.5381C38.0782 40.436 37.9497 40.3662 37.8096 40.3375L28.8547 38.5177H28.5984H28.523H28.2818H28.0255H27.92H27.7843H27.709L27.4678 38.4267H27.3924H27.2416L27.0004 38.3054L26.7592 38.1841L26.533 38.0476L26.3069 37.9111C25.5952 37.4647 24.959 36.9067 24.4225 36.2582L24.2265 35.9853L24.0004 35.6365C23.421 34.7714 23.0198 33.7984 22.8205 32.7748C22.6211 31.7512 22.6276 30.6979 22.8395 29.6769C22.9971 28.975 23.2455 28.2969 23.5782 27.66C23.6687 27.4932 23.7441 27.3415 23.8345 27.205L23.9702 26.9927C24.067 26.8303 24.1727 26.6733 24.2868 26.5226L24.4225 26.3558L24.5883 26.1587L24.7541 25.9767L24.8597 25.8706L25.0406 25.6886L25.1913 25.5521L25.3572 25.4156L25.5381 25.264H25.6134L25.734 25.1578H25.8094L26.0054 25.0214L42.272 14.1788C42.3763 14.1091 42.4935 14.0612 42.6166 14.038C42.7396 14.0147 42.8661 14.0166 42.9884 14.0435C43.1108 14.0704 43.2265 14.1217 43.3287 14.1944C43.431 14.2672 43.5176 14.3598 43.5836 14.4669L43.7192 14.6944L43.8248 14.9067C43.8248 14.9825 43.9002 15.0432 43.9303 15.1038C43.9303 15.1038 43.9303 15.1038 43.9303 15.1948C43.94 15.2295 43.94 15.2662 43.9303 15.3009V15.3009L44.0208 15.5284C44.0289 15.5684 44.0289 15.6097 44.0208 15.6497C44.0208 15.6497 44.0208 15.6497 44.0208 15.7407C44.6198 17.3996 44.6483 19.2127 44.1017 20.8897C43.555 22.5668 42.4648 24.011 41.0056 24.991L33.4678 30.0256C33.3488 30.1053 33.2559 30.2186 33.2008 30.3513C33.1457 30.484 33.131 30.6302 33.1584 30.7713C33.1858 30.9124 33.2542 31.0422 33.3549 31.1443C33.4555 31.2464 33.584 31.3162 33.7241 31.3449L42.6036 33.1495C44.3808 33.5188 45.9773 34.4922 47.1249 35.9061C48.2726 37.3201 48.9012 39.0884 48.9053 40.9137C48.6188 40.4285 48.5887 40.9137 48.5887 40.9137V40.944Z" fill="white"/>
|
3 |
+
</svg>
|
lib/gutenberg-templates/version.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
{
|
2 |
-
"ast-block-templates": "1.1.
|
3 |
}
|
1 |
{
|
2 |
+
"ast-block-templates": "1.1.5"
|
3 |
}
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: gutenberg, blocks, gutenberg blocks, editor, block
|
|
5 |
Requires at least: 4.7
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 6.0
|
8 |
-
Stable tag: 1.25.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -169,6 +169,10 @@ When you use the Spectra along with the free Astra theme, you get a huge library
|
|
169 |
|
170 |
== Changelog ==
|
171 |
|
|
|
|
|
|
|
|
|
172 |
= 1.25.5 - FRIDAY, 27TH MAY 2022 =
|
173 |
* Improvement: Updated the notice library.
|
174 |
|
5 |
Requires at least: 4.7
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 6.0
|
8 |
+
Stable tag: 1.25.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
169 |
|
170 |
== Changelog ==
|
171 |
|
172 |
+
= 1.25.6 - TUESDAY, 31ST MAY 2022 =
|
173 |
+
* Improvement: Updated Gutenberg Templates Library.
|
174 |
+
* Improvement: Escaped URLs wherever required.
|
175 |
+
|
176 |
= 1.25.5 - FRIDAY, 27TH MAY 2022 =
|
177 |
* Improvement: Updated the notice library.
|
178 |
|
ultimate-addons-for-gutenberg.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://www.brainstormforce.com
|
5 |
* Author: Brainstorm Force
|
6 |
* Author URI: https://www.brainstormforce.com
|
7 |
-
* Version: 1.25.
|
8 |
* Description: The Ultimate Addons for Gutenberg extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster.
|
9 |
* Text Domain: ultimate-addons-for-gutenberg
|
10 |
*
|
4 |
* Plugin URI: https://www.brainstormforce.com
|
5 |
* Author: Brainstorm Force
|
6 |
* Author URI: https://www.brainstormforce.com
|
7 |
+
* Version: 1.25.6
|
8 |
* Description: The Ultimate Addons for Gutenberg extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster.
|
9 |
* Text Domain: ultimate-addons-for-gutenberg
|
10 |
*
|