Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer - Version 2.4.0

Version Description

Release date: 17 May 2021

Changelog: - Live dashboard preview update ( The live preview will now update as soon as you change a setting! ) - No ajax for new users. Should increase speed! ( For old users, disable "Use ajax on to load the buttons" under Settings -> Preferences ) - Fixed buttons not appearing on IE11 - Fixed open on hover for mobile devices - Fixed Multiple classname causing buttons to not show - Fixed Dark mode in Custom CSS editor - Removed some unneeded !important tags to improve customizability - Several other bug fixes

If you experience bugs, problems or you just have some feedback, let us know on our Buttonizer community!

Download this release

Release Info

Developer buttonizer
Plugin Icon wp plugin Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer
Version 2.4.0
Comparing to
See all releases

Code changes from version 2.3.2 to 2.4.0

app/Admin/template.php CHANGED
@@ -72,6 +72,18 @@ $body_classes[] = ' locale-' . sanitize_html_class( strtolower( str_replace( '_'
72
  }, 10000);
73
  </script>
74
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  <noscript>
76
  <div class="buttonizer-no-script"><?php echo __('Hi there! JavaScript is disabled in your browser. Please consider to enable JavaScript in your browser to use Buttonizer.', 'buttonizer-multifunctional-button') ?></div>
77
  </noscript>
72
  }, 10000);
73
  </script>
74
 
75
+ <?php
76
+ if (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false)) {
77
+ ?>
78
+ <h3 style="color:red;background: rgb(255, 152, 0);padding: 25px;color: white;width: 50%;margin: auto;box-shadow: 0px 2px 10px 1px #d8d8d8;">
79
+ <b>
80
+ <?php echo __('Buttonizer dashboard does not work on IE11! Please use any other browsers to customize your buttons. :)', 'buttonizer-multifunctional-button'); ?>
81
+ </b>
82
+ </h3>
83
+ <?php
84
+ }
85
+ ?>
86
+
87
  <noscript>
88
  <div class="buttonizer-no-script"><?php echo __('Hi there! JavaScript is disabled in your browser. Please consider to enable JavaScript in your browser to use Buttonizer.', 'buttonizer-multifunctional-button') ?></div>
89
  </noscript>
app/Api/Utils/ApiReset.php CHANGED
@@ -70,8 +70,9 @@ class ApiReset {
70
 
71
  // Current Settings
72
  update_option('buttonizer_settings', [
73
- 'migration_version' => 4,
74
- "import_icon_library" => true
 
75
  ]);
76
  delete_option('buttonizer_rules');
77
  delete_option('buttonizer_schedules');
70
 
71
  // Current Settings
72
  update_option('buttonizer_settings', [
73
+ 'migration_version' => BUTTONIZER_LAST_MIGRATION,
74
+ "import_icon_library" => true,
75
+ "no_ajax" => true
76
  ]);
77
  delete_option('buttonizer_rules');
78
  delete_option('buttonizer_schedules');
app/Frontend/Ajax.php CHANGED
@@ -176,6 +176,14 @@ class Ajax
176
  */
177
  private function frontendAssets()
178
  {
 
 
 
 
 
 
 
 
179
  wp_register_script(
180
  'buttonizer_frontend_javascript',
181
  plugins_url( '/assets/frontend.min.js?v=' . md5( BUTTONIZER_VERSION ), BUTTONIZER_PLUGIN_DIR ),
@@ -190,6 +198,10 @@ class Ajax
190
  false,
191
  'all'
192
  );
 
 
 
 
193
  // Import script & style
194
  wp_enqueue_script( 'buttonizer_frontend_javascript' );
195
  wp_enqueue_style( 'buttonizer_frontend_style' );
176
  */
177
  private function frontendAssets()
178
  {
179
+ // Import Polyfills
180
+ wp_register_script(
181
+ 'buttonizer_frontend_polyfills',
182
+ plugins_url( '/assets/polyfills.min.js?v=' . md5( BUTTONIZER_VERSION ), BUTTONIZER_PLUGIN_DIR ),
183
+ [],
184
+ false,
185
+ true
186
+ );
187
  wp_register_script(
188
  'buttonizer_frontend_javascript',
189
  plugins_url( '/assets/frontend.min.js?v=' . md5( BUTTONIZER_VERSION ), BUTTONIZER_PLUGIN_DIR ),
198
  false,
199
  'all'
200
  );
201
+ //is IE 11 or below
202
+ if ( preg_match( '~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT'] ) || strpos( $_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0' ) !== false ) {
203
+ wp_enqueue_script( 'buttonizer_frontend_polyfills' );
204
+ }
205
  // Import script & style
206
  wp_enqueue_script( 'buttonizer_frontend_javascript' );
207
  wp_enqueue_style( 'buttonizer_frontend_style' );
app/Licensing/License.php CHANGED
@@ -1,109 +1,109 @@
1
- <?php
2
-
3
- /*
4
- * SOFTWARE LICENSE INFORMATION
5
- *
6
- * Copyright (c) 2017 Buttonizer, all rights reserved.
7
- *
8
- * This file is part of Buttonizer
9
- *
10
- * For detailed information regarding to the licensing of
11
- * this software, please review the license.txt or visit:
12
- * https://buttonizer.pro/license/
13
- *
14
- *************************************************************************************
15
-
16
- ===========================================================================
17
-
18
- Dear reader,
19
-
20
- When you are here, it means you are searching something. Right?
21
-
22
- Something wrong? Error? Or just curious?
23
-
24
- If you want to get a free license, you are here on the wrong place. Please
25
- buy your license here:
26
- /wp-admin/admin.php?page=Buttonizer-pricing
27
-
28
- Questons? www.buttonizer.pro
29
-
30
- Need support? Contact us on support@buttonizer.pro
31
-
32
- Have you also checked our knowledge base or community?
33
-
34
- Buttonizer Community: https://community.buttonizer.pro
35
-
36
- Buttonizer Knowledge base: https://community.buttonizer.pro/knowledgebase
37
-
38
- ===========================================================================
39
-
40
- For more information about the licensing and terms of conditions:
41
-
42
- Terms and conditions: https://buttonizer.pro/terms-conditions/
43
-
44
- License: https://buttonizer.pro/license/
45
-
46
- ===========================================================================
47
- */
48
- namespace Buttonizer\Licensing;
49
-
50
- # No script kiddies
51
- defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
52
- // Hi. We see what you're doing here
53
- // Please leave this file intact as it is
54
- // and read what is, and what is NOT allowed:
55
- // https://buttonizer.pro/terms-conditions/
56
- class License
57
- {
58
- private $oButtonizer = 'null' ;
59
- public function init()
60
- {
61
-
62
- if ( $this->oButtonizer == 'null' ) {
63
- require_once BUTTONIZER_DIR . '/freemius/start.php';
64
- // Some data for Buttonizer to be freemium and paid.
65
- // We are paid so we can maintain the plugin
66
- // If you don't want to pay for the plugin, you can allways use the
67
- // SUPER COOL FREE VERSION
68
- // For more information about our source code:
69
- // https://leancoding.co/598UFI
70
- // To support the development of this plugin,
71
- // do NOT remove the code below
72
- $this->oButtonizer = fs_dynamic_init( [
73
- 'id' => '1219',
74
- 'slug' => 'buttonizer-multifunctional-button',
75
- 'type' => 'plugin',
76
- 'public_key' => 'pk_fcd360d9c82b90a5e874e651ad733',
77
- 'is_premium' => false,
78
- 'has_addons' => false,
79
- 'has_paid_plans' => true,
80
- 'has_affiliation' => 'all',
81
- 'menu' => array(
82
- 'slug' => 'Buttonizer',
83
- 'first-path' => 'admin.php?page=Buttonizer&welcome-splash=true',
84
- 'support' => false,
85
- 'contact' => false,
86
- ),
87
- 'is_live' => true,
88
- ] );
89
- }
90
-
91
- return;
92
- }
93
-
94
- public function get()
95
- {
96
- return $this->oButtonizer;
97
- }
98
-
99
- private function getDaysLeft()
100
- {
101
- return round( 2000 / 8 - 243 );
102
- }
103
-
104
- // Default data
105
- private function initButtonizerData()
106
- {
107
- }
108
-
109
  }
1
+ <?php
2
+
3
+ /*
4
+ * SOFTWARE LICENSE INFORMATION
5
+ *
6
+ * Copyright (c) 2017 Buttonizer, all rights reserved.
7
+ *
8
+ * This file is part of Buttonizer
9
+ *
10
+ * For detailed information regarding to the licensing of
11
+ * this software, please review the license.txt or visit:
12
+ * https://buttonizer.pro/license/
13
+ *
14
+ *************************************************************************************
15
+
16
+ ===========================================================================
17
+
18
+ Dear reader,
19
+
20
+ When you are here, it means you are searching something. Right?
21
+
22
+ Something wrong? Error? Or just curious?
23
+
24
+ If you want to get a free license, you are here on the wrong place. Please
25
+ buy your license here:
26
+ /wp-admin/admin.php?page=Buttonizer-pricing
27
+
28
+ Questons? www.buttonizer.pro
29
+
30
+ Need support? Contact us on support@buttonizer.pro
31
+
32
+ Have you also checked our knowledge base or community?
33
+
34
+ Buttonizer Community: https://community.buttonizer.pro
35
+
36
+ Buttonizer Knowledge base: https://community.buttonizer.pro/knowledgebase
37
+
38
+ ===========================================================================
39
+
40
+ For more information about the licensing and terms of conditions:
41
+
42
+ Terms and conditions: https://buttonizer.pro/terms-conditions/
43
+
44
+ License: https://buttonizer.pro/license/
45
+
46
+ ===========================================================================
47
+ */
48
+ namespace Buttonizer\Licensing;
49
+
50
+ # No script kiddies
51
+ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
52
+ // Hi. We see what you're doing here
53
+ // Please leave this file intact as it is
54
+ // and read what is, and what is NOT allowed:
55
+ // https://buttonizer.pro/terms-conditions/
56
+ class License
57
+ {
58
+ private $oButtonizer = 'null' ;
59
+ public function init()
60
+ {
61
+
62
+ if ( $this->oButtonizer == 'null' ) {
63
+ require_once BUTTONIZER_DIR . '/freemius/start.php';
64
+ // Some data for Buttonizer to be freemium and paid.
65
+ // We are paid so we can maintain the plugin
66
+ // If you don't want to pay for the plugin, you can allways use the
67
+ // SUPER COOL FREE VERSION
68
+ // For more information about our source code:
69
+ // https://leancoding.co/WDWIG5
70
+ // To support the development of this plugin,
71
+ // do NOT remove the code below
72
+ $this->oButtonizer = fs_dynamic_init( [
73
+ 'id' => '1219',
74
+ 'slug' => 'buttonizer-multifunctional-button',
75
+ 'type' => 'plugin',
76
+ 'public_key' => 'pk_fcd360d9c82b90a5e874e651ad733',
77
+ 'is_premium' => false,
78
+ 'has_addons' => false,
79
+ 'has_paid_plans' => true,
80
+ 'has_affiliation' => 'all',
81
+ 'menu' => array(
82
+ 'slug' => 'Buttonizer',
83
+ 'first-path' => 'admin.php?page=Buttonizer&welcome-splash=true',
84
+ 'support' => false,
85
+ 'contact' => false,
86
+ ),
87
+ 'is_live' => true,
88
+ ] );
89
+ }
90
+
91
+ return;
92
+ }
93
+
94
+ public function get()
95
+ {
96
+ return $this->oButtonizer;
97
+ }
98
+
99
+ private function getDaysLeft()
100
+ {
101
+ return round( 2000 / 8 - 243 );
102
+ }
103
+
104
+ // Default data
105
+ private function initButtonizerData()
106
+ {
107
+ }
108
+
109
  }
app/Utils/Update.php CHANGED
@@ -523,6 +523,7 @@ class Update
523
  $settings['welcome'] = true;
524
  }else{
525
  $settings['google_analytics'] = '';
 
526
  $settings['icon_library'] = 'fontawesome';
527
  $settings['icon_library_version'] = '5.free';
528
  // Add default button data
523
  $settings['welcome'] = true;
524
  }else{
525
  $settings['google_analytics'] = '';
526
+ $settings['no_ajax'] = true;
527
  $settings['icon_library'] = 'fontawesome';
528
  $settings['icon_library_version'] = '5.free';
529
  // Add default button data
assets/dashboard.css CHANGED
@@ -2,42 +2,281 @@
2
  *
3
  * This file is part of the Buttonizer plugin that is downloadable through Wordpress.org,
4
  * please do not redistribute this plugin or the files without any written permission of the author.
5
- *
6
  * If you need support, contact us at support@buttonizer.pro or visit our community website
7
  * https://community.buttonizer.pro/
8
- *
9
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
10
- *
11
- * (C) 2017-2021 Buttonizer dev-version
12
- *
13
  */
14
  /*!
15
  *
16
  * This file is part of the Buttonizer plugin that is downloadable through Wordpress.org,
17
  * please do not redistribute this plugin or the files without any written permission of the author.
18
- *
19
  * If you need support, contact us at support@buttonizer.pro or visit our community website
20
  * https://community.buttonizer.pro/
21
- *
22
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
23
- *
24
- * (C) 2017-2021 Buttonizer dev-version
25
- *
26
  */
27
- @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto !important;height:auto !important;z-index:0}.simplebar-offset{direction:inherit !important;box-sizing:inherit !important;resize:none !important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box !important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{width:0;height:0}.simplebar-content:before,.simplebar-content:after{content:' ';display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit !important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;user-select:none;-webkit-user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:'';background:black;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity 0.2s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:0.5;transition:opacity 0s linear}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical{right:auto;left:0}.hs-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
28
- .tippy-touch{cursor:pointer !important}.tippy-notransition{transition:none !important}.tippy-popper{max-width:400px;-webkit-perspective:800px;perspective:800px;z-index:9999;outline:0;transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);pointer-events:none}.tippy-popper.html-template{max-width:96%;max-width:calc(100% - 20px)}.tippy-popper[x-placement^=top] [x-arrow]{border-top:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;bottom:-7px;margin:0 9px}.tippy-popper[x-placement^=top] [x-arrow].arrow-small{border-top:5px solid #333;border-right:5px solid transparent;border-left:5px solid transparent;bottom:-5px}.tippy-popper[x-placement^=top] [x-arrow].arrow-big{border-top:10px solid #333;border-right:10px solid transparent;border-left:10px solid transparent;bottom:-10px}.tippy-popper[x-placement^=top] [x-circle]{-webkit-transform-origin:0 33%;transform-origin:0 33%}.tippy-popper[x-placement^=top] [x-circle].enter{-webkit-transform:scale(1) translate(-50%, -55%);transform:scale(1) translate(-50%, -55%);opacity:1}.tippy-popper[x-placement^=top] [x-circle].leave{-webkit-transform:scale(0.15) translate(-50%, -50%);transform:scale(0.15) translate(-50%, -50%);opacity:0}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow]{border-top:7px solid #fff;border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-top:5px solid #fff;border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-top:10px solid #fff;border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,0.7)}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow]{border-top:7px solid rgba(0,0,0,0.7);border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-top:5px solid rgba(0,0,0,0.7);border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-top:10px solid rgba(0,0,0,0.7);border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateY(-10px) rotateX(0);transform:translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateY(0) rotateX(90deg);transform:translateY(0) rotateX(90deg)}.tippy-popper[x-placement^=top] [data-animation=fade].enter{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade].leave{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift].enter{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift].leave{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale].enter{opacity:1;-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale].leave{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=bottom] [x-arrow]{border-bottom:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;top:-7px;margin:0 9px}.tippy-popper[x-placement^=bottom] [x-arrow].arrow-small{border-bottom:5px solid #333;border-right:5px solid transparent;border-left:5px solid transparent;top:-5px}.tippy-popper[x-placement^=bottom] [x-arrow].arrow-big{border-bottom:10px solid #333;border-right:10px solid transparent;border-left:10px solid transparent;top:-10px}.tippy-popper[x-placement^=bottom] [x-circle]{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] [x-circle].enter{-webkit-transform:scale(1) translate(-50%, -45%);transform:scale(1) translate(-50%, -45%);opacity:1}.tippy-popper[x-placement^=bottom] [x-circle].leave{-webkit-transform:scale(0.15) translate(-50%, -5%);transform:scale(0.15) translate(-50%, -5%);opacity:0}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow]{border-bottom:7px solid #fff;border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-bottom:5px solid #fff;border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-bottom:10px solid #fff;border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,0.7)}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow]{border-bottom:7px solid rgba(0,0,0,0.7);border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-bottom:5px solid rgba(0,0,0,0.7);border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-bottom:10px solid rgba(0,0,0,0.7);border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateY(10px) rotateX(0);transform:translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateY(0) rotateX(-90deg);transform:translateY(0) rotateX(-90deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade].enter{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade].leave{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift].enter{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift].leave{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale].enter{opacity:1;-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale].leave{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=left] [x-arrow]{border-left:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;right:-7px;margin:6px 0}.tippy-popper[x-placement^=left] [x-arrow].arrow-small{border-left:5px solid #333;border-top:5px solid transparent;border-bottom:5px solid transparent;right:-5px}.tippy-popper[x-placement^=left] [x-arrow].arrow-big{border-left:10px solid #333;border-top:10px solid transparent;border-bottom:10px solid transparent;right:-10px}.tippy-popper[x-placement^=left] [x-circle]{-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=left] [x-circle].enter{-webkit-transform:scale(1) translate(-50%, -50%);transform:scale(1) translate(-50%, -50%);opacity:1}.tippy-popper[x-placement^=left] [x-circle].leave{-webkit-transform:scale(0.15) translate(-50%, -50%);transform:scale(0.15) translate(-50%, -50%);opacity:0}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow]{border-left:7px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-left:5px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-left:10px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,0.7)}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow]{border-left:7px solid rgba(0,0,0,0.7);border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-left:5px solid rgba(0,0,0,0.7);border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-left:10px solid rgba(0,0,0,0.7);border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateX(-10px) rotateY(0);transform:translateX(-10px) rotateY(0)}.tippy-popper[x-placement^=left] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateX(0) rotateY(-90deg);transform:translateX(0) rotateY(-90deg)}.tippy-popper[x-placement^=left] [data-animation=fade].enter{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade].leave{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift].enter{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift].leave{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=left] [data-animation=scale].enter{opacity:1;-webkit-transform:translateX(-10px) scale(1);transform:translateX(-10px) scale(1)}.tippy-popper[x-placement^=left] [data-animation=scale].leave{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper[x-placement^=right] [x-arrow]{border-right:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;left:-7px;margin:6px 0}.tippy-popper[x-placement^=right] [x-arrow].arrow-small{border-right:5px solid #333;border-top:5px solid transparent;border-bottom:5px solid transparent;left:-5px}.tippy-popper[x-placement^=right] [x-arrow].arrow-big{border-right:10px solid #333;border-top:10px solid transparent;border-bottom:10px solid transparent;left:-10px}.tippy-popper[x-placement^=right] [x-circle]{-webkit-transform-origin:-50% 0;transform-origin:-50% 0}.tippy-popper[x-placement^=right] [x-circle].enter{-webkit-transform:scale(1) translate(-50%, -50%);transform:scale(1) translate(-50%, -50%);opacity:1}.tippy-popper[x-placement^=right] [x-circle].leave{-webkit-transform:scale(0.15) translate(-50%, -50%);transform:scale(0.15) translate(-50%, -50%);opacity:0}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow]{border-right:7px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-right:5px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-right:10px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,0.7)}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow]{border-right:7px solid rgba(0,0,0,0.7);border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-right:5px solid rgba(0,0,0,0.7);border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-right:10px solid rgba(0,0,0,0.7);border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateX(10px) rotateY(0);transform:translateX(10px) rotateY(0)}.tippy-popper[x-placement^=right] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateX(0) rotateY(90deg);transform:translateX(0) rotateY(90deg)}.tippy-popper[x-placement^=right] [data-animation=fade].enter{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade].leave{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift].enter{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift].leave{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=right] [data-animation=scale].enter{opacity:1;-webkit-transform:translateX(10px) scale(1);transform:translateX(10px) scale(1)}.tippy-popper[x-placement^=right] [data-animation=scale].leave{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper .tippy-tooltip.transparent-theme{background-color:rgba(0,0,0,0.7)}.tippy-popper .tippy-tooltip.transparent-theme[data-animatefill]{background-color:transparent}.tippy-popper .tippy-tooltip.light-theme{color:#26323d;box-shadow:0 4px 20px 4px rgba(0,20,60,0.1),0 4px 80px -8px rgba(0,20,60,0.2);background-color:#fff}.tippy-popper .tippy-tooltip.light-theme[data-animatefill]{background-color:transparent}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:.95rem;padding:.4rem .8rem;text-align:center;will-change:transform;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#333}.tippy-tooltip--small{padding:.25rem .5rem;font-size:.8rem}.tippy-tooltip--big{padding:.6rem 1.2rem;font-size:1.2rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:transparent}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia]{transition-timing-function:cubic-bezier(0.53, 2, 0.36, 0.85)}.tippy-tooltip [x-arrow]{position:absolute;width:0;height:0}.tippy-tooltip [x-circle]{position:absolute;will-change:transform;background-color:#333;border-radius:50%;width:130%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;overflow:hidden;transition:all ease}.tippy-tooltip [x-circle]:before{content:"";padding-top:90%;float:left}@media (max-width: 450px){.tippy-popper{max-width:96%;max-width:calc(100% - 20px)}}
29
- form{display:flex;flex-direction:column;align-items:stretch}form .MuiTextField-root{margin:1em}form .fullwidth-label{align-items:stretch !important}form .crash-report{margin-top:2em}
30
- .random-tip{background:#FFFFFF;border-radius:50px;margin:15px 0;display:flex;flex-flow:row wrap;height:72px;box-shadow:0 1px 1px 0 rgba(60,64,67,0.08),0 1px 3px 1px rgba(60,64,67,0.16);color:#2E788A}.random-tip .buzz{background:#FDF2E8;position:relative;margin:8px;order:1;height:56px;width:56px;border-radius:60px;box-sizing:border-box}.random-tip .tip{margin:8px 20px 8px 8px;flex:1;order:2;display:flex;align-items:center;font-size:14px}
 
 
 
 
 
 
31
  .knowledgebase-link{color:#2f7789;text-decoration:none}.knowledgebase-link.medium{font-size:14px !important}.knowledgebase-link.small{font-size:12px !important}.knowledgebase-link:hover{text-decoration:underline}.knowledgebase-icon{color:#2f7789}
32
- .buttonizer-premium{background:#2d7688;background:-moz-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:-webkit-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:linear-gradient(135deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#2d7688', endColorstr='#e8832c',GradientType=1 );color:#FFFFFF;font-weight:500;font-size:13px;line-height:17px;padding:4px 20px;display:inline-block;vertical-align:middle;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;margin-left:10px}.buttonizer-premium.premium-right{position:absolute;right:30px;top:19px;z-index:9}.buttonizer-premium::after{content:"PRO"}.MuiFormControl-root:not(.MuiTextField-root) .buttonizer-premium{margin-right:15px}
33
  .item-not-found{text-align:center;padding:40px 0}.item-not-found i{font-size:50px;display:block;margin:30px auto}.item-not-found h4{font-size:15px;margin:28px 0}
 
 
34
  .collapsible-group{margin:10px 20px}.collapsible-group>button{text-align:left;justify-content:normal;padding:0 15px;height:49px}.collapsible-group>button i{margin-left:10px;font-size:12px;-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.collapsible-group .collapsible-body{padding:18px}.collapsible-group.collapsible-opened>button i{transform:rotate(-180deg)}
35
- .settings-container{display:flex;position:relative;margin-bottom:15px}.settings-container.disabled{opacity:0.5;user-select:none}.settings-title{padding-right:15px;padding:4.9px 15px 4.9px 0;margin-right:auto;flex-shrink:0;font-size:14px}.settings-content{display:flex;flex-shrink:1;align-self:center}.container-full-width .settings-content{width:66.666%}
36
- .disable-setting.disabled{position:relative}.disable-setting.disabled .settings{opacity:0.5;pointer-events:none}.disable-setting.disabled .disable-content{position:absolute;bottom:0;top:0;left:0;right:0;text-align:center;max-width:100%;color:#2f7789;font-weight:900;display:flex;align-items:center;user-select:none}.disable-setting.disabled .disable-content .buttonizer-premium{margin-right:30px;margin-left:auto}
37
- .buttonizer-loading{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.67);z-index:99999;transition:350ms all ease-in-out;-moz-transition:350ms all ease-in-out;-webkit-transition:350ms all ease-in-out}.buttonizer-loading.site-loading{left:431px}@media screen and (max-width: 769px){.buttonizer-loading{left:0 !important}}.buttonizer-loading .middle{position:absolute;left:50%;top:50%;margin-left:-125px;margin-top:-64px;width:250px;text-align:center}.buttonizer-loading .middle img{position:absolute;left:50%;margin-left:-25%;top:18px}.buttonizer-loading .middle .loader-text{text-align:center;font-size:20px;margin-top:20px}.buttonizer-loading .middle .loader-text .slow-website{display:block}.buttonizer-loading .middle .loader-text .slow-website a{display:block;font-size:15px;text-decoration:none;margin-top:18px}.buttonizer-loading .middle svg{-webkit-animation:spin 1s linear infinite;-moz-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-moz-keyframes spin{100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
38
- .buttonizer-menu-item{display:block !important;width:100% !important;text-align:left;text-decoration:none;padding:10px 15px !important;border-bottom:1px solid #dbdbdb !important;transition:background 0.15s ease-in-out;height:auto !important;border-radius:0 !important}.buttonizer-menu-item:last-child{border:0 !important}.buttonizer-menu-item:hover{background:#eeeeee}.buttonizer-menu-item .title{display:block;color:#3d3d3d;font-size:13px;font-weight:600;margin-bottom:5px}.buttonizer-menu-item .description{display:block;color:#545454;font-weight:400;font-size:12px;line-height:20px;letter-spacing:0.5px;text-transform:none}
39
- .buttonizer-bar{position:fixed;left:0;top:0;bottom:0;width:430px;background:#f0f0f0;border-right:1px solid #d2d2d2}@media screen and (max-width: 769px){.buttonizer-bar{width:100%}}.buttonizer-bar.is-loading .router{opacity:0}.buttonizer-bar.is-loading .buttonizer-logo{display:none}.buttonizer-bar .router-window{position:absolute;top:0;bottom:56px;left:0;width:100%}.buttonizer-bar .router-window .simplebar-content-wrapper{height:100% !important}.buttonizer-bar .router-window .simplebar-placeholder{min-height:100vh}.buttonizer-bar .router-window .router{padding:0 30px 50px}.buttonizer-bar .buttonizer-logo img{max-width:200px;display:block;margin:20px auto 30px}.buttonizer-bar .bar-header{margin:10px 0}.buttonizer-bar .bar-header .breadcrumb{margin:15px 0 15px;display:flex}.buttonizer-bar .bar-header .breadcrumb button{height:28px;line-height:28px;padding:0 10px}.buttonizer-bar .bar-header .breadcrumb button .breadcrumb-text{white-space:nowrap;letter-spacing:0.07em;overflow:hidden;text-overflow:ellipsis;height:100%;display:inline-block;align-items:center}.buttonizer-bar .bar-header .breadcrumb button i{margin-left:10px;color:rgba(0,0,0,0.3);vertical-align:middle}.buttonizer-bar .bar-header .breadcrumb button.home-button{flex-shrink:0}.buttonizer-bar .bar-header .MuiTabs-flexContainer .MuiTab-textColorSecondary{color:#95bac3}.buttonizer-bar .bar-header .MuiTabs-flexContainer .MuiTab-textColorSecondary:hover{color:#2f7789}.buttonizer-bar .bar-header .MuiTabs-flexContainer .MuiTab-textColorSecondary.Mui-selected{color:#f08419}.buttonizer-bar .bar-header .MuiTabs-flexContainer a{min-width:unset}.buttonizer-bar .bar-header .MuiTabs-flexContainer a i{font-size:20px;margin-bottom:8px}.buttonizer-bar .bar-header .MuiTabs-flexContainer a .MuiTab-wrapper{font-weight:600;font-size:12px;letter-spacing:1.25006px}.buttonizer-bar .bar-footer{position:absolute;bottom:0;left:0;right:0;box-shadow:0 1px 1px 0 rgba(60,64,67,0.08),0 1px 3px 1px rgba(60,64,67,0.16);background:white}.buttonizer-bar .bar-footer .bar-footer-container{display:flex;align-content:space-between;padding:10px}.buttonizer-bar .bar-footer .bar-footer-container .settings-button{font-size:20px;position:relative;margin-right:8px}.buttonizer-bar .bar-footer .bar-footer-container button{min-width:36px;height:36px}.buttonizer-bar .bar-footer .bar-footer-container button.MuiIconButton-root{padding:0;font-size:16px}.buttonizer-bar .bar-footer .bar-footer-container .MuiButton-Publish{padding:6px 16px !important;font-size:0.785rem !important}.buttonizer-bar .bar-footer .bar-footer-container .footer-button-group-start{position:relative;border-right:#dddddd 1px solid;margin-right:5px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  .buttonizer-drawer{padding:2em}.close-button{float:right;margin:-20px !important}
 
 
41
 
42
  .btnizr-wp-icon {
43
  background: url(./images/wp-icon.png);
@@ -57,31 +296,7 @@ form{display:flex;flex-direction:column;align-items:stretch}form .MuiTextField-r
57
 
58
  .btnizr-buttonizer-buzzer {
59
  background: url(./images/ButtonizerBuzzer.svg);
60
- }.tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100vw - 10px);transition-timing-function:cubic-bezier(.165,.84,.44,1);transition-property:transform}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;background-color:#333;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top]>.tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom]>.tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left]>.tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right]>.tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-interactive][data-state=visible]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{position:absolute;border-color:transparent;border-style:solid}.tippy-content{padding:5px 9px}#wpadminbar,#adminmenumain{display:none}#wpcontent,#wpfooter{margin:0;padding:0}.buttonizer-admin-overlay{text-align:center;padding:40px 20px}html{padding:0 !important}.screen-reader-text{display:none}body.buttonizer-loaded{background:#191e23}.button.button-red{background:#ba0000;border-color:#aa0000 #990000 #990000;-webkit-box-shadow:0 1px 0 #990000;box-shadow:0 1px 0 #990000;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #990000, 1px 0 1px #990000, 0 1px 1px #990000, -1px 0 1px #990000}.button.button-red:hover{background:#c20000 !important;border-color:#990000 !important;color:#fff}.button.button-red:active,.button.button-red:focus{background:#aa0000 !important;border-color:#990000 !important;-webkit-box-shadow:inset 0 2px 0 #990000;box-shadow:inset 0 2px 0 #990000;vertical-align:top;color:#FFFFFF}.button.button-red.button-centered-reset{margin:0 auto;padding:4px 20px;height:auto;font-size:15px}.button.button-red.button-centered-reset i{margin-right:10px}.label-settings{display:flex}.label-settings .title{min-width:calc(100% / 3);width:calc(100% / 3)}.label-settings .mdc-slider{width:calc(100% /3)}.icon-settings{display:flex}.icon-settings .title{min-width:calc(100% / 3);width:calc(100% / 3)}.icon-settings .mdc-text-field.small{width:calc(100% / 3) !important;height:28px !important}.icon-settings .mdc-text-field.small .material-icons.mdc-text-field__icon.icon{bottom:9px !important;font-size:10px;margin-right:-8px}.icon-settings .mdc-text-field.small .material-icons.mdc-text-field__icon.text{bottom:6px !important;font-size:10px;margin-right:-9px}.icon-settings .mdc-text-field.small .mdc-text-field__input{padding:0;padding-left:16px !important;padding-right:24px !important;height:28px !important;font-size:14px !important}.buttonizer-preview{position:fixed;left:431px;right:0;top:0;bottom:0;transition:transform 250ms ease-in-out}@media screen and (max-width: 769px){.buttonizer-preview{left:0}}.buttonizer-preview.frame-size-tablet{width:720px;max-width:720px;left:50%;margin-left:-170px;right:unset;z-index:-1}.buttonizer-preview.frame-size-mobile{width:340px;height:650px;max-width:340px;top:50%;left:50%;margin-top:-300px;margin-left:15px;right:unset;z-index:-1}.hide-bar-button{display:block;position:fixed;left:429px;top:50%;cursor:pointer;margin-top:-30px;z-index:2;height:60px;line-height:60px;width:20px;border-radius:0 10px 10px 0;background:#f0f0f0;border:1px solid #d2d2d2;border-left:1px solid transparent !important;text-align:center;color:#5d5d5d !important;text-decoration:none;transition:all 250ms ease-out;-moz-transition:all 250ms ease-out;-webkit-transition:all 250ms ease-out}.hide-bar-button .fas{margin-left:-4px;color:#2f7789}@media screen and (max-width: 769px){.hide-bar-button{left:unset !important;right:0;top:40px;width:auto;height:auto;line-height:20px;border:0;background:unset;padding:0 20px}.hide-bar-button:before,.hide-bar-button:after{content:none !important}.hide-bar-button:focus{border-left:none !important}}.hide-bar-button .fa-chevron-right{display:none}.hide-bar-button:before{content:"";position:absolute;background-color:transparent;top:-20px;height:20px;width:10px;left:0;box-sizing:inherit;border-bottom-left-radius:10px;box-shadow:0 10px 0 0 #f0f0f0;border-bottom:1px solid #d2d2d2;border-left:1px solid #d2d2d2;transition:all 250ms ease-out;-moz-transition:all 250ms ease-out;-webkit-transition:all 250ms ease-out}.hide-bar-button:after{content:"";position:absolute;background-color:transparent;bottom:-20px;height:20px;width:10px;left:0;box-sizing:inherit;border-top-left-radius:10px;box-shadow:0 -10px 0 0 #f0f0f0;border-top:1px solid #d2d2d2;border-left:1px solid #d2d2d2;transition:all 250ms ease-out;-moz-transition:all 250ms ease-out;-webkit-transition:all 250ms ease-out}.hide-bar-button:focus{outline:none;outline-style:none;box-shadow:none;box-sizing:border-box;border-left:1px solid #f0f0f0}.buttonizer-app .buttonizer-bar,.buttonizer-app .buttonizer-preview,.buttonizer-app .hide-bar-button{transition:all 250ms ease-out;-moz-transition:all 250ms ease-out;-webkit-transition:all 250ms ease-out}@media screen and (max-width: 769px){body.buttonizer-mobile-hide .buttonizer-preview{transform:translateX(100%)}}body.hide-buttonizer-bar .buttonizer-app .buttonizer-bar{transform:translateX(-100%)}body.hide-buttonizer-bar .buttonizer-app .buttonizer-preview,body.hide-buttonizer-bar .buttonizer-app .hide-bar-button{left:-2px}body.hide-buttonizer-bar .buttonizer-app .fas{margin-left:-1px}body.hide-buttonizer-bar .buttonizer-app .hide-bar-button .fa-chevron-right{display:inline-block}body.hide-buttonizer-bar .buttonizer-app .hide-bar-button .fa-chevron-left{display:none}@media screen and (max-width: 769px){body.hide-buttonizer-bar .buttonizer-preview{transform:translateX(0)}}body{color:#717171}.mdc-card{border-radius:4px;background-color:#fff;display:flex;flex-direction:column;box-sizing:border-box;box-shadow:0 1px 1px 0 rgba(60,64,67,0.08),0 1px 3px 1px rgba(60,64,67,0.16)}.collapsible-group{margin:15px 0 !important}.collapsible-group .collapsible-body{padding:15px}.collapsible-group .collapsible-body .setting-group-title{font-size:13px;color:#888888;text-transform:uppercase;font-weight:500}.collapsible-group .collapsible-body .setting-group-title ~ .setting-group-title{padding-top:10px}.collapsible-group .mdc-button.mdc-button--bold{font-size:13px}.MuiSelect-small .MuiSelect-select{font-size:14px;padding:9px 12px}.Mui-buzz-disabled{color:rgba(0,0,0,0.26) !important;cursor:default !important}.Mui-buzz-premium.MuiButton-textPrimary{color:rgba(0,0,0,0.26)}.Mui-buzz-premium.MuiButton-containedPrimary{background:rgba(0,0,0,0.26)}.Mui-buzz-premium.MuiTabs-root .MuiTab-root{color:rgba(0,0,0,0.26)}.Mui-buzz-premium.MuiTabs-root .MuiTabs-indicator{background-color:rgba(0,0,0,0.26)}.MuiInputBase-root input[type="number"]{-moz-appearance:textfield}.MuiInputBase-root input[type="number"]::-webkit-outer-spin-button,.MuiInputBase-root input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}body{font-family:"Roboto", "Helvetica", "Arial", sans-serif}.tippy-tooltip{background:#6d6d6d;color:#ffffff}.buttonizer-app{font-family:Roboto, sans-serif;position:fixed;top:0;bottom:0;left:0;right:0;background:#eeeeee}.buttonizer-app a,.buttonizer-app input{box-shadow:none}.buttonizer-app hr{margin-bottom:14px}.dashboard-warning-msg{padding:12px;margin-bottom:15px;font-size:14px;line-height:20px;border:2px solid rgba(240,132,25,0.5);color:#f08419;display:block}.dashboard-warning-msg b{display:block}.dashboard-warning-msg a{color:#f08419}iframe{border:0}.simplebar-scrollbar.simplebar-visible:before{opacity:0.38 !important}p{font-size:14px;margin-top:5px}
61
- .broke-out-of-iframe{padding:10px 20px;color:#b32828;background:#ffdada;text-align:center;display:flex;align-items:center}.broke-out-of-iframe div{width:100%;line-height:24px;font-size:16px}.broke-out-of-iframe button{margin-left:20px;flex-shrink:0;color:#b32828;border-color:#da9595;background:#FFFFFF}
62
- .device-preview{flex-grow:1}.device-preview button{width:40px;margin:0 2px}
63
- .revert-button{margin:0 5px !important}.revert-button .MuiButton-label{font-size:15px}.revert-button .spin{animation:spin-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite}@keyframes spin-animation{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}
64
- .MuiDialog-root #alert-dialog-title i{margin-right:15px;vertical-align:middle}.MuiDialog-root.warning .MuiBackdrop-root{background-color:rgba(93,0,0,0.6)}.MuiDialog-root.warning #alert-dialog-title{color:#710909}
65
- .button-container{margin:0 0 13px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;padding:10px;border:1px solid #e2e2e2;background-color:white}.button-container .button-name{max-width:100%}.button-container .button-name .button-name-span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.button-container .button-name.drag-icon{min-width:10px}.button-container .button-header{display:flex}.button-container .button-header .button-actions{margin-left:auto;flex-shrink:0}.button-container .button-settings{display:flex}.button-container .button-settings .button-title{display:inline-flex;height:30px;align-items:center;margin-right:10px;font-size:14px}.button-container .button-settings button{height:30px}.button-container .button-settings .button-visibility{flex-grow:1}.button-container .button-settings .button-visibility button{width:40px;min-width:40px;margin:0 2px}.button-container .button-settings .button-actions button{min-width:35px}.button-container .button-settings .clear{clear:both}
66
- #group-button-extra-buttons .MuiListItemIcon-root{min-width:45px}#group-button-extra-buttons .MuiListItemIcon-root .fas,#group-button-extra-buttons .MuiListItemIcon-root .far{overflow:unset;font-size:1rem;margin-left:5px;text-align:center}
67
- .button-group-container{padding:10px;margin-bottom:15px;border:2px white solid}.button-group-container.currentDrop{border:2px #f9bf87 solid}.button-group-container .group-info{display:flex}.button-group-container .group-info .group-arrow{display:inline-block;width:17px;text-align:left;font-size:12px}.button-group-container .group-info .group-arrow i{-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.button-group-container .group-info .group-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.button-group-container .group-info .group-action-spacer{flex-grow:1}.button-group-container .group-info .group-actions{flex-grow:0;flex-shrink:0;margin-left:20px}.button-group-container .buttons{display:none}.button-group-container.opened .group-info .group-arrow i{transform:rotate(90deg)}.button-group-container.opened .buttons{display:block;border-radius:10px;padding:10px;border:2px white solid;transition:border 0.5s}.button-group-container.opened .buttons.currentDrop{border:2px #f9bf87 solid}.button-group-container.opened .buttons.currentDrop .button-container{opacity:0.5}.button-group-container.opened .buttons.currentDrop .button-container.currentDrag{opacity:1}
68
- .desktop-mobile-visibility button{min-width:40px;width:40px}.desktop-mobile-visibility button.buttonMobile{margin-right:5px}
69
- .button-action .button-action-type{padding-bottom:20px}.button-action code{padding:3px 5px 2px 5px;margin:0 1px;background:rgba(0,0,0,0.07)}
70
- .position-buttons button svg{width:20px;fill:currentColor}.position-buttons.position-horizontal button:nth-child(1) svg,.position-buttons.position-horizontal button:nth-child(2) svg{transform:rotate(-90deg)}.position-buttons.position-horizontal button:nth-child(3) svg{transform:rotate(90deg)}.position-buttons.position-vertical button:nth-child(3) svg{transform:rotate(180deg)}.position-textfield{height:28px;-moz-appearance:textfield}.position-textfield ::-webkit-outer-spin-button,.position-textfield ::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
71
- .form-icon-selector .selector{overflow:hidden;border-radius:4px;cursor:pointer;width:100%}.form-icon-selector .selector .viewer{width:100%;height:65px;background-color:#dddddd;display:block;border-radius:0 0 4px 4px;color:white;text-align:center}.form-icon-selector .selector span{border-radius:0 0 4px 4px;display:block;color:white;text-align:center}
72
- .color-picker-main{width:100%;display:flex;justify-content:flex-end}.color-picker-main .color-picker{display:flex;width:100%;cursor:pointer;justify-content:flex-end;height:28px}.color-picker-main .color-picker .gpw{width:100%;background:url(./images/transparent.png) repeat;border-radius:5px 0 0 5px;box-shadow:0 1px 1px 0 rgba(60,64,67,0.08),0 1px 3px 1px rgba(60,64,67,0.16);overflow:hidden;padding:0}.color-picker-main .color-picker .gpw span.color-preview{display:block;height:100%;background:#f08419}.color-picker-main .color-picker .color-button{height:100%;border-radius:0 5px 5px 0;margin-left:1px;margin-right:0px;box-shadow:0 1px 1px 0 rgba(60,64,67,0.08),0 1px 3px 1px rgba(60,64,67,0.16)}.gpw .popover .type-selector{margin:3px;width:100%}
73
- .slider-container{margin-bottom:15px}.slider-container-input{margin-left:20px;height:28px;max-width:78px;flex-shrink:0}.slider-container-input input{font-size:14px}.slider-container-input input::-webkit-outer-spin-button,.slider-container-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.slider-container-input input[type="number"]{-moz-appearance:textfield}
74
- .icon-or-image{width:100%;min-height:30px}.icon-or-image button{min-width:unset;min-height:40px !important}.icon-or-image button .MuiTab-wrapper{display:block !important}.icon-or-image button .MuiTab-wrapper i{margin-right:5px}
75
- .textfield-corners-input{height:100%;max-width:80px;padding-right:5px !important;margin:0 !important}.textfield-corners-input.textfield-corners-select{max-width:35px}.textfield-corners-input .MuiSelect-root{font-size:12px;padding:5px 12px 5px 8px !important}.textfield-corners-input .MuiSvgIcon-root{font-size:1rem;right:0;top:50%;transform:translateY(-50%)}.textfield-corners-input input{font-size:14px;padding:5px 8px}.textfield-corners-input input::-webkit-outer-spin-button,.textfield-corners-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.textfield-corners-input input[type="number"]{-moz-appearance:textfield}.textfield-corners-input .MuiInputAdornment-root{margin-left:5px}.textfield-corners-input .MuiInputAdornment-root>p{font-size:14px}.textfield-corners-menu li{padding-left:8px;padding-right:8px;font-size:14px}
76
- .advanced-scroll-timeout .advanced-timeout{display:flex;margin-bottom:10px}.advanced-scroll-timeout .advanced-timeout .timeout-radio-group{margin-right:0;width:calc(100% /3)}.advanced-scroll-timeout .advanced-timeout .timeout-radio-group .MuiFormControlLabel-label{text-transform:capitalize;text-align:left;display:flex;justify-content:left;color:#717171;font-size:13px;padding-right:40px !important;padding-left:0px !important}.advanced-scroll-timeout .advanced-scroll{display:flex;margin-bottom:10px}.advanced-scroll-timeout .advanced-scroll .scroll-radio-group{margin-right:0;width:calc(100% /3)}.advanced-scroll-timeout .advanced-scroll .scroll-radio-group .MuiFormControlLabel-label{text-transform:capitalize;text-align:left;display:flex;justify-content:left;color:#717171;font-size:13px;padding-right:40px !important;padding-left:0px !important}.advanced-scroll-timeout .advanced-scroll .MuiTextField-root{min-width:calc(100% / 3);margin-top:auto;margin-bottom:auto}.advanced-scroll-timeout .advanced-scroll .advanced-scroll-pixel-percent{display:flex;width:calc(100% / 3);flex-direction:column}.advanced-scroll-timeout .advanced-scroll .advanced-scroll-pixel-percent button{padding:0;height:45%;min-width:30px;font-size:10px;margin:auto}.advanced-scroll-timeout .advanced-scroll-hide{display:flex;justify-content:flex-end}.advanced-scroll-timeout .advanced-scroll-hide .settings-container{height:35px;width:calc(900% / 10)}.advanced-scroll-timeout .advanced-scroll-hide .settings-container .settings-title{font-size:11px}.advanced-scroll-timeout .advanced-scroll-hide .settings-container .MuiTabs-root.icon-or-image{min-height:30px}.advanced-scroll-timeout .advanced-scroll-hide .settings-container.disabled .settings-content .MuiTabs-indicator{background-color:#747474}.advanced-scroll-timeout .advanced-scroll-description{display:flex;justify-content:center}.advanced-scroll-timeout .advanced-scroll-description p{margin:0}
77
- .image-selector{display:inline-flex;width:100%;justify-content:flex-end;text-align:center}.image-selector .image{width:100%;height:101px;display:inline-flex;text-decoration:none;line-height:26px;cursor:pointer;border-radius:3px;flex-direction:column;justify-content:flex-end;background-size:cover;background-position:center;background-color:#EDEDED}.image-selector .image i{font-size:40px;line-height:54px;color:#4795a9bd}.image-selector .image .image-text{background-color:#2f788a;color:white;border-radius:0 0 3px 3px}.image-selector .image .selected{opacity:0;transition:250ms}.image-selector .image:hover .selected{opacity:1}
78
- .event-tracker-window .MuiPopover-paper{max-width:400px;min-width:300px}.event-tracker-window .event-tracker-title{padding:20px 20px 0}.event-tracker-window .event-tracker-title i{margin-right:10px}
79
- #buttonizer-menu .MuiPaper-root{max-width:430px;width:100%;background:#eeeeee}#buttonizer-menu .menu-container{padding:20px;flex-shrink:0;display:flex;flex-direction:column}#buttonizer-menu .menu-container .buttonizer-logo img{max-width:200px;display:block;margin:20px auto 30px}#buttonizer-menu .menu-container .menu-group{padding:0 20px}#buttonizer-menu .menu-container .menu-group h2{font-size:20px}#buttonizer-menu .menu-container .close-button{display:block;margin:20px 0 50px;padding:20px 0;text-align:center;text-decoration:none;font-size:16px}#buttonizer-menu .menu-container .collapsible-group{margin:8px 0 !important}#buttonizer-menu .menu-container .menu-drawer-bottom{padding:5%;display:flex;flex-direction:column;flex-grow:1;justify-content:flex-end}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons{text-align:center;font-size:14px;line-height:24px;margin-top:50px}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container{margin-top:10px}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a{box-shadow:unset;outline:none;width:30px;height:30px;text-decoration:none}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.instagram span{color:#e4405f}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.youtube span{color:#cc0000}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.community span{-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(142deg, #f08419 0%, #f08419 15%, #2f788a 13%);background-size:400% 400%}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.facebook span{color:#3b5999}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.twitter span{color:#55acee}
80
- .drawer-splitter-modal .MuiPaper-root{max-width:1100px;width:90%;height:100%}.drawer-splitter-content{display:flex;height:100%}.drawer-splitter-content .menu-items{border:1px solid rgba(0,0,0,0.1);width:330px;flex-shrink:0;flex-grow:0;display:flex;flex-direction:column;overflow:hidden}.drawer-splitter-content .menu-items .menu-header{padding:30px 15px 17px 15px;border-bottom:1px solid rgba(0,0,0,0.1)}.drawer-splitter-content .menu-items .menu-header .menu-back span{font-size:20px}.drawer-splitter-content .menu-items .menu-header i:not(.saved-icon){font-size:40px;color:#2f7789}.drawer-splitter-content .menu-items .menu-header h3{color:#2f7789;text-transform:uppercase;font-weight:600;font-size:22px;margin-top:20px;margin-bottom:15px}.drawer-splitter-content .menu-items .menu-header span{font-size:14px}.drawer-splitter-content .menu-items .menu-content{padding:30px 15px 17px 15px;flex-grow:0;overflow:auto}.drawer-splitter-content .menu-items .menu-content .drawer-button button{justify-content:left}.drawer-splitter-content .menu-items .menu-content .drawer-button button .MuiButton-text{padding:8px}.drawer-splitter-content .menu-items .menu-content .drawer-button button i{margin-right:10px}.drawer-splitter-content .menu-items .menu-content .menu-item{border-radius:4px;padding:5px 130px 5px 10px;transition:background-color 0.2s ease-in-out, color 0.2s ease-in-out}.drawer-splitter-content .menu-items .menu-content .menu-item .menu-item-name{overflow:hidden;flex-grow:1;justify-content:left}.drawer-splitter-content .menu-items .menu-content .menu-item .menu-item-name p,.drawer-splitter-content .menu-items .menu-content .menu-item .menu-item-name .material-icons{font-size:0.9rem}.drawer-splitter-content .menu-items .menu-content .menu-item.settings{padding:0}.drawer-splitter-content .menu-items .menu-content .menu-item.settings .drawer-button{width:100%}.drawer-splitter-content .menu-items .menu-content .menu-item.settings .drawer-button button{padding:8px 16px}.drawer-splitter-content .menu-items .menu-content .menu-item.Mui-selected,.drawer-splitter-content .menu-items .menu-content .menu-item.Mui-selected:hover{background-color:#f0841930}.drawer-splitter-content .menu-items .menu-content .menu-item.Mui-selected .secondary-actions button,.drawer-splitter-content .menu-items .menu-content .menu-item.Mui-selected:hover .secondary-actions button{color:#f08419}.drawer-splitter-content .menu-items .menu-content .menu-item .secondary-actions{top:50%;right:16px;position:absolute;font-size:1rem;transform:translateY(-50%)}.drawer-splitter-content .splitted{min-width:300px;flex-grow:1;overflow:hidden}.drawer-splitter-content .splitted .splitted-content{flex-grow:1;overflow:hidden;display:flex;flex-direction:column;height:100%}.drawer-splitter-content .splitted .splitted-content .drawer-content-header{padding-bottom:15px;border-bottom:1px solid rgba(0,0,0,0.1);padding:40px 30px 0 40px}.drawer-splitter-content .splitted .splitted-content .drawer-content-header .title{font-size:35px;line-height:45px;font-weight:500;margin-bottom:20px;display:block;color:#2f7789;float:left}.drawer-splitter-content .splitted .splitted-content .drawer-content-content{padding:15px 35px 50px 40px;flex-grow:0;overflow:auto}.drawer-splitter-content .splitted .splitted-content .drawer-content-content .description{font-size:16px;line-height:25px;color:rgba(0,0,0,0.8)}.drawer-splitter-content .splitted .splitted-content .MuiTypography-body1{font-weight:600;color:#2f7789}
81
- .settings-drawer-pages .settings-page-title .title{font-size:40px;font-weight:700}.settings-drawer-pages .settings-page-title .description{font-size:16px;padding:15px 0}.settings-drawer-pages .with-secondary-action{padding-right:80px}.settings-drawer-pages .with-optin-action{padding-right:150px}.settings-drawer-pages .with-permissions{display:block}.settings-drawer-pages .with-permissions>div{flex:none}.settings-drawer-pages .settings-container.select .settings-title{flex-shrink:1;width:calc(122%/ 3)}.settings-drawer-pages .settings-container.select .settings-content{width:52.666%;padding:0 20px;margin:auto}.settings-drawer-pages h2.title{text-transform:uppercase}.settings-drawer-pages .explaination ul{list-style:disc;padding:0 40px}.settings-drawer-pages .explaination button:not(:disabled){background-color:red}.settings-drawer-pages .explaination button .fas.fa-undo{font-size:14px}.settings-drawer-pages .explaination button .fas.fa-undo.spin{animation:spin-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite}@keyframes spin-animation{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}
82
- .premium-dialog #premium-dialog-title h2{-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(-45deg, #ef8419, #ff952a, #3ab0ca, #2a7688);background-size:400% 400%;animation:gradient 5s ease infinite}.premium-dialog .premium-dialog-content{display:flex;flex-flow:row}.premium-dialog .premium-dialog-content.MuiDialogContent-dividers{padding:10px 24px}.premium-dialog .premium-dialog-content p{font-size:14px}.premium-dialog .premium-dialog-content .premium-dialog-text.MuiDialogContent-root:first-child{padding-top:0}.premium-dialog .premium-dialog-content .premium-dialog-text #premium-dialog-description{color:rgba(0,0,0,0.87)}.premium-dialog .premium-dialog-content .premium-dialog-text.with-video{border-right:#e0e0e0 1px solid;max-width:641px}.premium-dialog .premium-dialog-content .premium-dialog-text code{display:block;margin-bottom:5px;padding:10px;background:#e0e0e0}.premium-dialog .premium-dialog-content .premium-dialog-text ul{list-style:none;padding:0 13px}.premium-dialog .premium-dialog-content .premium-dialog-text ul li{font-size:16px;line-height:22px;font-weight:500}.premium-dialog .premium-dialog-content .premium-dialog-text ul li:nth-child(odd){color:#2a7688}.premium-dialog .premium-dialog-content .premium-dialog-text ul li:nth-child(even){color:#ef8419}.premium-dialog .premium-dialog-content .premium-dialog-text ul li i{margin-right:10px;font-size:17px}.premium-dialog .premium-dialog-content .premium-dialog-video{width:100%;margin:auto}.premium-dialog .premium-dialog-content .premium-dialog-video iframe{max-width:560px}@keyframes gradient{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
83
- .breadcrumb .mdc-select,.breadcrumb button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;line-height:28px;display:flex;align-items:center;flex-flow:row-reverse;border-radius:4px;padding:0 8px;font-family:Roboto, sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:0.875rem;font-weight:500;letter-spacing:0.08929em;text-decoration:none;text-transform:uppercase}.breadcrumb .mdc-select .fas.fa-chevron-down,.breadcrumb button .fas.fa-chevron-down{color:white !important;line-height:3.4;font-size:9px}.breadcrumb .mdc-select input,.breadcrumb .mdc-select .mdc-select__dropdown-icon,.breadcrumb .mdc-select .mdc-select__selected-text,.breadcrumb button input,.breadcrumb button .mdc-select__dropdown-icon,.breadcrumb button .mdc-select__selected-text{position:relative}.breadcrumb .mdc-select .mdc-select__selected-text,.breadcrumb button .mdc-select__selected-text{min-width:fit-content;padding:0 16px 0 0px !important;color:white;font-size:12px !important;height:fit-content;border-bottom:none}.breadcrumb .mdc-select .mdc-notched-outline,.breadcrumb button .mdc-notched-outline{display:none}.breadcrumb .mdc-select.mdc-select--outlined .mdc-select__selected-text,.breadcrumb button.mdc-select--outlined .mdc-select__selected-text{padding:0px}.breadcrumb .mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple,.breadcrumb button:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple{background-color:#eb8119}.button-select-menu .MuiPaper-root{padding-top:6px;min-width:140px}.button-select-menu .MuiPaper-root .breadcrumb-select-options{margin-bottom:6px}
84
- .button-action-value a,.button-action-subject a{font-size:14px !important;text-decoration:none;color:#2f7789}.button-action-value .MuiTextField-root,.button-action-subject .MuiTextField-root{margin-bottom:15px}.button-action-value .MuiTextField-root label,.button-action-subject .MuiTextField-root label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.button-action-value .MuiTextField-root label:not(.Mui-focused),.button-action-subject .MuiTextField-root label:not(.Mui-focused){width:92%}
85
- .tab-bordered{position:relative;z-index:2}.use-main-button-style{padding:5px 15px;display:flex;position:relative}.use-main-button-style:before{height:2px;background:#dfdfdf;content:" ";position:absolute;top:-2px;left:0;right:0;z-index:1}.use-main-button-style .button-label{flex-grow:1;margin-left:-10px}.use-main-button-style>div{width:50px;flex-grow:0}.back-to-group{position:fixed;left:0;width:20px;z-index:1}.back-to-group::before{content:"";position:fixed;left:0;top:0;width:10px;height:100vh;background:#2f7789}.back-to-group a{position:absolute;transform-origin:top left;left:-1px;color:#f08419;text-transform:uppercase;text-decoration:none;padding:1px 8px 1px 8px;display:inline-block;transform:rotate(90deg) translateY(-100%);background-color:white;box-shadow:0 1px 1px 0 rgba(60,64,67,0.08),0 1px 3px 1px rgba(60,64,67,0.16) !important;border-radius:4px 4px 0 0;height:20px;white-space:nowrap;font-weight:500;transition:padding 0.125s ease, box-shadow 0.25s ease}.back-to-group a i{margin-right:8px}.back-to-group a:hover{padding:1px 8px 5px 8px;box-shadow:0 1px 1px 0 rgba(60,64,67,0.16),0 1px 3px 1px rgba(60,64,67,0.32) !important}
86
- .color-picker-container{width:300px;max-width:100%}.color-picker-container .color-container{background:url(./images/transparent.png) repeat}.color-picker-container .color-container .current-color input{height:62px;line-height:62px;text-align:center;color:#FFFFFF;font-size:18px;font-weight:500;border:0;padding:0;background:rgba(0,0,0,0);width:100%;border-radius:0;outline:none;font-family:Roboto, sans-serif}.color-picker-container .buttons{text-align:right;padding:5px 10px 10px}.color-picker-container .buttons button{margin-left:5px}.no-select-color-container{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
87
- .drawer-splitter-content-title{padding:15px 0 10px;margin-bottom:15px;font-size:16px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:#2f7789;border-bottom:1px solid rgba(0,0,0,0.1)}
2
  *
3
  * This file is part of the Buttonizer plugin that is downloadable through Wordpress.org,
4
  * please do not redistribute this plugin or the files without any written permission of the author.
5
+ *
6
  * If you need support, contact us at support@buttonizer.pro or visit our community website
7
  * https://community.buttonizer.pro/
8
+ *
9
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
10
+ *
11
+ * (C) 2017-2021 Buttonizer v2.4.0
12
+ *
13
  */
14
  /*!
15
  *
16
  * This file is part of the Buttonizer plugin that is downloadable through Wordpress.org,
17
  * please do not redistribute this plugin or the files without any written permission of the author.
18
+ *
19
  * If you need support, contact us at support@buttonizer.pro or visit our community website
20
  * https://community.buttonizer.pro/
21
+ *
22
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
23
+ *
24
+ * (C) 2017-2021 Buttonizer v2.4.0
25
+ *
26
  */
27
+ @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);
28
+ .tippy-touch{cursor:pointer!important}.tippy-notransition{transition:none!important}.tippy-popper{max-width:400px;-webkit-perspective:800px;perspective:800px;z-index:9999;outline:0;transition-timing-function:cubic-bezier(.165,.84,.44,1);pointer-events:none}.tippy-popper.html-template{max-width:96%;max-width:calc(100% - 20px)}.tippy-popper[x-placement^=top] [x-arrow]{border-top:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;bottom:-7px;margin:0 9px}.tippy-popper[x-placement^=top] [x-arrow].arrow-small{border-top:5px solid #333;border-right:5px solid transparent;border-left:5px solid transparent;bottom:-5px}.tippy-popper[x-placement^=top] [x-arrow].arrow-big{border-top:10px solid #333;border-right:10px solid transparent;border-left:10px solid transparent;bottom:-10px}.tippy-popper[x-placement^=top] [x-circle]{-webkit-transform-origin:0 33%;transform-origin:0 33%}.tippy-popper[x-placement^=top] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-55%);transform:scale(1) translate(-50%,-55%);opacity:1}.tippy-popper[x-placement^=top] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-50%);transform:scale(.15) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow]{border-top:7px solid #fff;border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-top:5px solid #fff;border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-top:10px solid #fff;border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow]{border-top:7px solid rgba(0,0,0,.7);border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-top:5px solid rgba(0,0,0,.7);border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-top:10px solid rgba(0,0,0,.7);border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateY(-10px) rotateX(0);transform:translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateY(0) rotateX(90deg);transform:translateY(0) rotateX(90deg)}.tippy-popper[x-placement^=top] [data-animation=fade].enter{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade].leave{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift].enter{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift].leave{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale].enter{opacity:1;-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale].leave{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=bottom] [x-arrow]{border-bottom:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;top:-7px;margin:0 9px}.tippy-popper[x-placement^=bottom] [x-arrow].arrow-small{border-bottom:5px solid #333;border-right:5px solid transparent;border-left:5px solid transparent;top:-5px}.tippy-popper[x-placement^=bottom] [x-arrow].arrow-big{border-bottom:10px solid #333;border-right:10px solid transparent;border-left:10px solid transparent;top:-10px}.tippy-popper[x-placement^=bottom] [x-circle]{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-45%);transform:scale(1) translate(-50%,-45%);opacity:1}.tippy-popper[x-placement^=bottom] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-5%);transform:scale(.15) translate(-50%,-5%);opacity:0}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow]{border-bottom:7px solid #fff;border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-bottom:5px solid #fff;border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-bottom:10px solid #fff;border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow]{border-bottom:7px solid rgba(0,0,0,.7);border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-bottom:5px solid rgba(0,0,0,.7);border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-bottom:10px solid rgba(0,0,0,.7);border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateY(10px) rotateX(0);transform:translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateY(0) rotateX(-90deg);transform:translateY(0) rotateX(-90deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade].enter{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade].leave{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift].enter{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift].leave{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale].enter{opacity:1;-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale].leave{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=left] [x-arrow]{border-left:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;right:-7px;margin:6px 0}.tippy-popper[x-placement^=left] [x-arrow].arrow-small{border-left:5px solid #333;border-top:5px solid transparent;border-bottom:5px solid transparent;right:-5px}.tippy-popper[x-placement^=left] [x-arrow].arrow-big{border-left:10px solid #333;border-top:10px solid transparent;border-bottom:10px solid transparent;right:-10px}.tippy-popper[x-placement^=left] [x-circle]{-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=left] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%);opacity:1}.tippy-popper[x-placement^=left] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-50%);transform:scale(.15) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow]{border-left:7px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-left:5px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-left:10px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow]{border-left:7px solid rgba(0,0,0,.7);border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-left:5px solid rgba(0,0,0,.7);border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-left:10px solid rgba(0,0,0,.7);border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateX(-10px) rotateY(0);transform:translateX(-10px) rotateY(0)}.tippy-popper[x-placement^=left] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateX(0) rotateY(-90deg);transform:translateX(0) rotateY(-90deg)}.tippy-popper[x-placement^=left] [data-animation=fade].enter{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade].leave{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift].enter{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift].leave{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=left] [data-animation=scale].enter{opacity:1;-webkit-transform:translateX(-10px) scale(1);transform:translateX(-10px) scale(1)}.tippy-popper[x-placement^=left] [data-animation=scale].leave{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper[x-placement^=right] [x-arrow]{border-right:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;left:-7px;margin:6px 0}.tippy-popper[x-placement^=right] [x-arrow].arrow-small{border-right:5px solid #333;border-top:5px solid transparent;border-bottom:5px solid transparent;left:-5px}.tippy-popper[x-placement^=right] [x-arrow].arrow-big{border-right:10px solid #333;border-top:10px solid transparent;border-bottom:10px solid transparent;left:-10px}.tippy-popper[x-placement^=right] [x-circle]{-webkit-transform-origin:-50% 0;transform-origin:-50% 0}.tippy-popper[x-placement^=right] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%);opacity:1}.tippy-popper[x-placement^=right] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-50%);transform:scale(.15) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow]{border-right:7px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-right:5px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-right:10px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow]{border-right:7px solid rgba(0,0,0,.7);border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-right:5px solid rgba(0,0,0,.7);border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-right:10px solid rgba(0,0,0,.7);border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateX(10px) rotateY(0);transform:translateX(10px) rotateY(0)}.tippy-popper[x-placement^=right] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateX(0) rotateY(90deg);transform:translateX(0) rotateY(90deg)}.tippy-popper[x-placement^=right] [data-animation=fade].enter{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade].leave{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift].enter{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift].leave{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=right] [data-animation=scale].enter{opacity:1;-webkit-transform:translateX(10px) scale(1);transform:translateX(10px) scale(1)}.tippy-popper[x-placement^=right] [data-animation=scale].leave{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper .tippy-tooltip.transparent-theme{background-color:rgba(0,0,0,.7)}.tippy-popper .tippy-tooltip.transparent-theme[data-animatefill]{background-color:transparent}.tippy-popper .tippy-tooltip.light-theme{color:#26323d;box-shadow:0 4px 20px 4px rgba(0,20,60,.1),0 4px 80px -8px rgba(0,20,60,.2);background-color:#fff}.tippy-popper .tippy-tooltip.light-theme[data-animatefill]{background-color:transparent}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:.95rem;padding:.4rem .8rem;text-align:center;will-change:transform;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#333}.tippy-tooltip--small{padding:.25rem .5rem;font-size:.8rem}.tippy-tooltip--big{padding:.6rem 1.2rem;font-size:1.2rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:transparent}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia]{transition-timing-function:cubic-bezier(.53,2,.36,.85)}.tippy-tooltip [x-arrow]{position:absolute;width:0;height:0}.tippy-tooltip [x-circle]{position:absolute;will-change:transform;background-color:#333;border-radius:50%;width:130%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;overflow:hidden;transition:all ease}.tippy-tooltip [x-circle]:before{content:"";padding-top:90%;float:left}@media (max-width:450px){.tippy-popper{max-width:96%;max-width:calc(100% - 20px)}}
29
+
30
+ .device-preview{flex-grow:1}.device-preview button{width:40px;margin:0 2px}
31
+ .revert-button{margin:0 5px !important}.revert-button .MuiButton-label{font-size:15px}.revert-button .spin{animation:spin-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite}@keyframes spin-animation{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}
32
+ .MuiDialog-root #alert-dialog-title i{margin-right:15px;vertical-align:middle}.MuiDialog-root.warning .MuiBackdrop-root{background-color:rgba(93,0,0,.6)}.MuiDialog-root.warning #alert-dialog-title{color:#710909}
33
+ .random-tip{background:#fff;border-radius:50px;margin:15px 0;display:flex;flex-flow:row wrap;height:72px;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16);color:#2e788a}.random-tip .buzz{background:#fdf2e8;position:relative;margin:8px;order:1;height:56px;width:56px;border-radius:60px;box-sizing:border-box}.random-tip .tip{margin:8px 20px 8px 8px;flex:1;order:2;display:flex;align-items:center;font-size:14px}
34
+ .button-container{margin:0 0 13px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;padding:10px;border:1px solid #e2e2e2;background-color:#fff}.button-container .button-name{max-width:100%}.button-container .button-name .button-name-span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.button-container .button-name.drag-icon{min-width:10px}.button-container .button-header{display:flex}.button-container .button-header .button-actions{margin-left:auto;flex-shrink:0}.button-container .button-settings{display:flex}.button-container .button-settings .button-title{display:inline-flex;height:30px;align-items:center;margin-right:10px;font-size:14px}.button-container .button-settings button{height:30px}.button-container .button-settings .button-visibility{flex-grow:1}.button-container .button-settings .button-visibility button{width:40px;min-width:40px;margin:0 2px}.button-container .button-settings .button-actions button{min-width:35px}.button-container .button-settings .clear{clear:both}
35
+ #group-button-extra-buttons .MuiListItemIcon-root{min-width:45px}#group-button-extra-buttons .MuiListItemIcon-root .fas,#group-button-extra-buttons .MuiListItemIcon-root .far{overflow:unset;font-size:1rem;margin-left:5px;text-align:center}
36
+ .button-group-container{padding:10px;margin-bottom:15px;border:2px #fff solid}.button-group-container.currentDrop{border:2px #f9bf87 solid}.button-group-container .group-info{display:flex}.button-group-container .group-info .group-arrow{display:inline-block;width:17px;text-align:left;font-size:12px}.button-group-container .group-info .group-arrow i{-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.button-group-container .group-info .group-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.button-group-container .group-info .group-action-spacer{flex-grow:1}.button-group-container .group-info .group-actions{flex-grow:0;flex-shrink:0;margin-left:20px}.button-group-container .buttons{display:none}.button-group-container.opened .group-info .group-arrow i{transform:rotate(90deg)}.button-group-container.opened .buttons{display:block;border-radius:10px;padding:10px;border:2px #fff solid;transition:border .5s}.button-group-container.opened .buttons.currentDrop{border:2px #f9bf87 solid}.button-group-container.opened .buttons.currentDrop .button-container{opacity:.5}.button-group-container.opened .buttons.currentDrop .button-container.currentDrag{opacity:1}
37
  .knowledgebase-link{color:#2f7789;text-decoration:none}.knowledgebase-link.medium{font-size:14px !important}.knowledgebase-link.small{font-size:12px !important}.knowledgebase-link:hover{text-decoration:underline}.knowledgebase-icon{color:#2f7789}
38
+ .buttonizer-premium{background:#2d7688;background:-moz-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:-webkit-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:linear-gradient(135deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr="#2d7688", endColorstr="#e8832c",GradientType=1 );color:#fff;font-weight:500;font-size:13px;line-height:17px;padding:4px 20px;display:inline-block;vertical-align:middle;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;margin-left:10px}.buttonizer-premium.premium-right{position:absolute;right:30px;top:19px;z-index:9}.buttonizer-premium::after{content:"PRO"}.MuiFormControl-root:not(.MuiTextField-root) .buttonizer-premium{margin-right:15px}
39
  .item-not-found{text-align:center;padding:40px 0}.item-not-found i{font-size:50px;display:block;margin:30px auto}.item-not-found h4{font-size:15px;margin:28px 0}
40
+ .tab-bordered{position:relative;z-index:2}.use-main-button-style{padding:5px 15px;display:flex;position:relative}.use-main-button-style:before{height:2px;background:#dfdfdf;content:" ";position:absolute;top:-2px;left:0;right:0;z-index:1}.use-main-button-style .button-label{flex-grow:1;margin-left:-10px}.use-main-button-style>div{width:50px;flex-grow:0}.back-to-group{position:fixed;left:0;width:20px;z-index:1}.back-to-group::before{content:"";position:fixed;left:0;top:0;width:10px;height:100vh;background:#2f7789}.back-to-group a{position:absolute;transform-origin:top left;left:-1px;color:#f08419;text-transform:uppercase;text-decoration:none;padding:1px 8px 1px 8px;display:inline-block;transform:rotate(90deg) translateY(-100%);background-color:#fff;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16) !important;border-radius:4px 4px 0 0;height:20px;white-space:nowrap;font-weight:500;transition:padding .125s ease,box-shadow .25s ease}.back-to-group a i{margin-right:8px}.back-to-group a:hover{padding:1px 8px 5px 8px;box-shadow:0 1px 1px 0 rgba(60,64,67,.16),0 1px 3px 1px rgba(60,64,67,.32) !important}
41
+ .breadcrumb .mdc-select,.breadcrumb button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;line-height:28px;display:flex;align-items:center;flex-flow:row-reverse;border-radius:4px;padding:0 8px;font-family:Roboto,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:.875rem;font-weight:500;letter-spacing:.08929em;text-decoration:none;text-transform:uppercase}.breadcrumb .mdc-select .fas.fa-chevron-down,.breadcrumb button .fas.fa-chevron-down{color:#fff !important;line-height:3.4;font-size:9px}.breadcrumb .mdc-select input,.breadcrumb .mdc-select .mdc-select__dropdown-icon,.breadcrumb .mdc-select .mdc-select__selected-text,.breadcrumb button input,.breadcrumb button .mdc-select__dropdown-icon,.breadcrumb button .mdc-select__selected-text{position:relative}.breadcrumb .mdc-select .mdc-select__selected-text,.breadcrumb button .mdc-select__selected-text{min-width:fit-content;padding:0 16px 0 0px !important;color:#fff;font-size:12px !important;height:fit-content;border-bottom:none}.breadcrumb .mdc-select .mdc-notched-outline,.breadcrumb button .mdc-notched-outline{display:none}.breadcrumb .mdc-select.mdc-select--outlined .mdc-select__selected-text,.breadcrumb button.mdc-select--outlined .mdc-select__selected-text{padding:0px}.breadcrumb .mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple,.breadcrumb button:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple{background-color:#eb8119}.button-select-menu .MuiPaper-root{padding-top:6px;min-width:140px}.button-select-menu .MuiPaper-root .breadcrumb-select-options{margin-bottom:6px}
42
  .collapsible-group{margin:10px 20px}.collapsible-group>button{text-align:left;justify-content:normal;padding:0 15px;height:49px}.collapsible-group>button i{margin-left:10px;font-size:12px;-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.collapsible-group .collapsible-body{padding:18px}.collapsible-group.collapsible-opened>button i{transform:rotate(-180deg)}
43
+ .settings-container{display:flex;position:relative;margin-bottom:15px}.settings-container.disabled{opacity:.5;user-select:none}.settings-title{padding-right:15px;padding:4.9px 15px 4.9px 0;margin-right:auto;flex-shrink:0;font-size:14px}.settings-content{display:flex;flex-shrink:1;align-self:center}.container-full-width .settings-content{width:66.666%}
44
+ .desktop-mobile-visibility button{min-width:40px;width:40px}.desktop-mobile-visibility button.buttonMobile{margin-right:5px}
45
+ .button-action-value a,.button-action-subject a{font-size:14px !important;text-decoration:none;color:#2f7789}.button-action-value .MuiTextField-root,.button-action-subject .MuiTextField-root{margin-bottom:15px}.button-action-value .MuiTextField-root label,.button-action-subject .MuiTextField-root label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.button-action-value .MuiTextField-root label:not(.Mui-focused),.button-action-subject .MuiTextField-root label:not(.Mui-focused){width:92%}
46
+ .button-action .button-action-type{padding-bottom:20px}.button-action code{padding:3px 5px 2px 5px;margin:0 1px;background:rgba(0,0,0,.07)}
47
+ .position-buttons button svg{width:20px;fill:currentColor}.position-buttons.position-horizontal button:nth-child(1) svg,.position-buttons.position-horizontal button:nth-child(2) svg{transform:rotate(-90deg)}.position-buttons.position-horizontal button:nth-child(3) svg{transform:rotate(90deg)}.position-buttons.position-vertical button:nth-child(3) svg{transform:rotate(180deg)}.position-textfield{height:28px;-moz-appearance:textfield}.position-textfield ::-webkit-outer-spin-button,.position-textfield ::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
48
+ .form-icon-selector .selector{overflow:hidden;border-radius:4px;cursor:pointer;width:100%}.form-icon-selector .selector .viewer{width:100%;height:65px;background-color:#ddd;display:block;border-radius:0 0 4px 4px;color:#fff;text-align:center}.form-icon-selector .selector span{border-radius:0 0 4px 4px;display:block;color:#fff;text-align:center}
49
+ .color-picker-main{width:100%;display:flex;justify-content:flex-end}.color-picker-main .color-picker{display:flex;width:100%;cursor:pointer;justify-content:flex-end;height:28px}.color-picker-main .color-picker .gpw{width:100%;background:url(./images/transparent.png) repeat;border-radius:5px 0 0 5px;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16);overflow:hidden;padding:0}.color-picker-main .color-picker .gpw span.color-preview{display:block;height:100%;background:#f08419}.color-picker-main .color-picker .color-button{height:100%;border-radius:0 5px 5px 0;margin-left:1px;margin-right:0px;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16)}.gpw .popover .type-selector{margin:3px;width:100%}
50
+ .color-picker-container{width:300px;max-width:100%}.color-picker-container .color-container{background:url(./images/transparent.png) repeat}.color-picker-container .color-container .current-color input{height:62px;line-height:62px;text-align:center;color:#fff;font-size:18px;font-weight:500;border:0;padding:0;background:rgba(0,0,0,0);width:100%;border-radius:0;outline:none;font-family:Roboto,sans-serif}.color-picker-container .buttons{text-align:right;padding:5px 10px 10px}.color-picker-container .buttons button{margin-left:5px}.no-select-color-container{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
51
+ .slider-container{margin-bottom:15px}.slider-container-input{margin-left:20px;height:28px;max-width:78px;flex-shrink:0}.slider-container-input input{font-size:14px}.slider-container-input input::-webkit-outer-spin-button,.slider-container-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.slider-container-input input[type=number]{-moz-appearance:textfield}
52
+ .icon-or-image{width:100%;min-height:30px}.icon-or-image button{min-width:unset;min-height:40px !important}.icon-or-image button .MuiTab-wrapper{display:block !important}.icon-or-image button .MuiTab-wrapper i{margin-right:5px}
53
+ .disable-setting.disabled{position:relative}.disable-setting.disabled .settings{opacity:.5;pointer-events:none}.disable-setting.disabled .disable-content{position:absolute;bottom:0;top:0;left:0;right:0;text-align:center;max-width:100%;color:#2f7789;font-weight:900;display:flex;align-items:center;user-select:none}.disable-setting.disabled .disable-content .buttonizer-premium{margin-right:30px;margin-left:auto}
54
+ .textfield-corners-input{height:100%;max-width:80px;padding-right:5px !important;margin:0 !important}.textfield-corners-input.textfield-corners-select{max-width:35px}.textfield-corners-input .MuiSelect-root{font-size:12px;padding:5px 12px 5px 8px !important}.textfield-corners-input .MuiSvgIcon-root{font-size:1rem;right:0;top:50%;transform:translateY(-50%)}.textfield-corners-input input{font-size:14px;padding:5px 8px}.textfield-corners-input input::-webkit-outer-spin-button,.textfield-corners-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.textfield-corners-input input[type=number]{-moz-appearance:textfield}.textfield-corners-input .MuiInputAdornment-root{margin-left:5px}.textfield-corners-input .MuiInputAdornment-root>p{font-size:14px}.textfield-corners-menu li{padding-left:8px;padding-right:8px;font-size:14px}
55
+ .advanced-scroll-timeout .advanced-timeout{display:flex;margin-bottom:10px}.advanced-scroll-timeout .advanced-timeout .timeout-radio-group{margin-right:0;width:calc(100% /3)}.advanced-scroll-timeout .advanced-timeout .timeout-radio-group .MuiFormControlLabel-label{text-transform:capitalize;text-align:left;display:flex;justify-content:left;color:#717171;font-size:13px;padding-right:40px !important;padding-left:0px !important}.advanced-scroll-timeout .advanced-scroll{display:flex;margin-bottom:10px}.advanced-scroll-timeout .advanced-scroll .scroll-radio-group{margin-right:0;width:calc(100% /3)}.advanced-scroll-timeout .advanced-scroll .scroll-radio-group .MuiFormControlLabel-label{text-transform:capitalize;text-align:left;display:flex;justify-content:left;color:#717171;font-size:13px;padding-right:40px !important;padding-left:0px !important}.advanced-scroll-timeout .advanced-scroll .MuiTextField-root{min-width:calc(100% / 3);margin-top:auto;margin-bottom:auto}.advanced-scroll-timeout .advanced-scroll .advanced-scroll-pixel-percent{display:flex;width:calc(100% / 3);flex-direction:column}.advanced-scroll-timeout .advanced-scroll .advanced-scroll-pixel-percent button{padding:0;height:45%;min-width:30px;font-size:10px;margin:auto}.advanced-scroll-timeout .advanced-scroll-hide{display:flex;justify-content:flex-end}.advanced-scroll-timeout .advanced-scroll-hide .settings-container{height:35px;width:calc(900% / 10)}.advanced-scroll-timeout .advanced-scroll-hide .settings-container .settings-title{font-size:11px}.advanced-scroll-timeout .advanced-scroll-hide .settings-container .MuiTabs-root.icon-or-image{min-height:30px}.advanced-scroll-timeout .advanced-scroll-hide .settings-container.disabled .settings-content .MuiTabs-indicator{background-color:#747474}.advanced-scroll-timeout .advanced-scroll-description{display:flex;justify-content:center}.advanced-scroll-timeout .advanced-scroll-description p{margin:0}
56
+ .image-selector{display:inline-flex;width:100%;justify-content:flex-end;text-align:center}.image-selector .image{width:100%;height:101px;display:inline-flex;text-decoration:none;line-height:26px;cursor:pointer;border-radius:3px;flex-direction:column;justify-content:flex-end;background-size:cover;background-position:center;background-color:#ededed}.image-selector .image i{font-size:40px;line-height:54px;color:#4795a9bd}.image-selector .image .image-text{background-color:#2f788a;color:#fff;border-radius:0 0 3px 3px}.image-selector .image .selected{opacity:0;transition:250ms}.image-selector .image:hover .selected{opacity:1}
57
+ .buttonizer-bar{position:fixed;left:0;top:0;bottom:0;width:430px;background:#f0f0f0;border-right:1px solid #d2d2d2}@media screen and (max-width: 769px){.buttonizer-bar{width:100%}}.buttonizer-bar.is-loading .router{opacity:0}.buttonizer-bar.is-loading .buttonizer-logo{display:none}.buttonizer-bar .router-window{position:absolute;top:0;bottom:56px;left:0;width:100%}.buttonizer-bar .router-window .simplebar-content-wrapper{height:100% !important}.buttonizer-bar .router-window .simplebar-placeholder{min-height:100vh}.buttonizer-bar .router-window .router{padding:0 30px 50px}.buttonizer-bar .buttonizer-logo img{max-width:200px;display:block;margin:20px auto 30px}.buttonizer-bar .bar-header{margin:10px 0}.buttonizer-bar .bar-header .breadcrumb{margin:15px 0 15px;display:flex}.buttonizer-bar .bar-header .breadcrumb button{height:28px;line-height:28px;padding:0 10px}.buttonizer-bar .bar-header .breadcrumb button .breadcrumb-text{white-space:nowrap;letter-spacing:.07em;overflow:hidden;text-overflow:ellipsis;height:100%;display:inline-block;align-items:center}.buttonizer-bar .bar-header .breadcrumb button i{margin-left:10px;color:rgba(0,0,0,.3);vertical-align:middle}.buttonizer-bar .bar-header .breadcrumb button.home-button{flex-shrink:0}.buttonizer-bar .bar-header .MuiTabs-flexContainer .MuiTab-textColorSecondary{color:#95bac3}.buttonizer-bar .bar-header .MuiTabs-flexContainer .MuiTab-textColorSecondary:hover{color:#2f7789}.buttonizer-bar .bar-header .MuiTabs-flexContainer .MuiTab-textColorSecondary.Mui-selected{color:#f08419}.buttonizer-bar .bar-header .MuiTabs-flexContainer a{min-width:unset}.buttonizer-bar .bar-header .MuiTabs-flexContainer a i{font-size:20px;margin-bottom:8px}.buttonizer-bar .bar-header .MuiTabs-flexContainer a .MuiTab-wrapper{font-weight:600;font-size:12px;letter-spacing:1.25006px}.buttonizer-bar .bar-footer{position:absolute;bottom:0;left:0;right:0;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16);background:#fff}.buttonizer-bar .bar-footer .bar-footer-container{display:flex;align-content:space-between;padding:10px}.buttonizer-bar .bar-footer .bar-footer-container .settings-button{font-size:20px;position:relative;margin-right:8px}.buttonizer-bar .bar-footer .bar-footer-container button{min-width:36px;height:36px}.buttonizer-bar .bar-footer .bar-footer-container button.MuiIconButton-root{padding:0;font-size:16px}.buttonizer-bar .bar-footer .bar-footer-container .MuiButton-Publish{padding:6px 16px !important;font-size:.785rem !important}.buttonizer-bar .bar-footer .bar-footer-container .footer-button-group-start{position:relative;border-right:#ddd 1px solid;margin-right:5px}
58
+ [data-simplebar] {
59
+ position: relative;
60
+ flex-direction: column;
61
+ flex-wrap: wrap;
62
+ justify-content: flex-start;
63
+ align-content: flex-start;
64
+ align-items: flex-start;
65
+ }
66
+
67
+ .simplebar-wrapper {
68
+ overflow: hidden;
69
+ width: inherit;
70
+ height: inherit;
71
+ max-width: inherit;
72
+ max-height: inherit;
73
+ }
74
+
75
+ .simplebar-mask {
76
+ direction: inherit;
77
+ position: absolute;
78
+ overflow: hidden;
79
+ padding: 0;
80
+ margin: 0;
81
+ left: 0;
82
+ top: 0;
83
+ bottom: 0;
84
+ right: 0;
85
+ width: auto !important;
86
+ height: auto !important;
87
+ z-index: 0;
88
+ }
89
+
90
+ .simplebar-offset {
91
+ direction: inherit !important;
92
+ box-sizing: inherit !important;
93
+ resize: none !important;
94
+ position: absolute;
95
+ top: 0;
96
+ left: 0;
97
+ bottom: 0;
98
+ right: 0;
99
+ padding: 0;
100
+ margin: 0;
101
+ -webkit-overflow-scrolling: touch;
102
+ }
103
+
104
+ .simplebar-content-wrapper {
105
+ direction: inherit;
106
+ box-sizing: border-box !important;
107
+ position: relative;
108
+ display: block;
109
+ height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
110
+ width: auto;
111
+ max-width: 100%; /* Not required for horizontal scroll to trigger */
112
+ max-height: 100%; /* Needed for vertical scroll to trigger */
113
+ scrollbar-width: none;
114
+ -ms-overflow-style: none;
115
+ }
116
+
117
+ .simplebar-content-wrapper::-webkit-scrollbar,
118
+ .simplebar-hide-scrollbar::-webkit-scrollbar {
119
+ width: 0;
120
+ height: 0;
121
+ }
122
+
123
+ .simplebar-content:before,
124
+ .simplebar-content:after {
125
+ content: ' ';
126
+ display: table;
127
+ }
128
+
129
+ .simplebar-placeholder {
130
+ max-height: 100%;
131
+ max-width: 100%;
132
+ width: 100%;
133
+ pointer-events: none;
134
+ }
135
+
136
+ .simplebar-height-auto-observer-wrapper {
137
+ box-sizing: inherit !important;
138
+ height: 100%;
139
+ width: 100%;
140
+ max-width: 1px;
141
+ position: relative;
142
+ float: left;
143
+ max-height: 1px;
144
+ overflow: hidden;
145
+ z-index: -1;
146
+ padding: 0;
147
+ margin: 0;
148
+ pointer-events: none;
149
+ flex-grow: inherit;
150
+ flex-shrink: 0;
151
+ flex-basis: 0;
152
+ }
153
+
154
+ .simplebar-height-auto-observer {
155
+ box-sizing: inherit;
156
+ display: block;
157
+ opacity: 0;
158
+ position: absolute;
159
+ top: 0;
160
+ left: 0;
161
+ height: 1000%;
162
+ width: 1000%;
163
+ min-height: 1px;
164
+ min-width: 1px;
165
+ overflow: hidden;
166
+ pointer-events: none;
167
+ z-index: -1;
168
+ }
169
+
170
+ .simplebar-track {
171
+ z-index: 1;
172
+ position: absolute;
173
+ right: 0;
174
+ bottom: 0;
175
+ pointer-events: none;
176
+ overflow: hidden;
177
+ }
178
+
179
+ [data-simplebar].simplebar-dragging .simplebar-content {
180
+ pointer-events: none;
181
+ user-select: none;
182
+ -webkit-user-select: none;
183
+ }
184
+
185
+ [data-simplebar].simplebar-dragging .simplebar-track {
186
+ pointer-events: all;
187
+ }
188
+
189
+ .simplebar-scrollbar {
190
+ position: absolute;
191
+ left: 0;
192
+ right: 0;
193
+ min-height: 10px;
194
+ }
195
+
196
+ .simplebar-scrollbar:before {
197
+ position: absolute;
198
+ content: '';
199
+ background: black;
200
+ border-radius: 7px;
201
+ left: 2px;
202
+ right: 2px;
203
+ opacity: 0;
204
+ transition: opacity 0.2s linear;
205
+ }
206
+
207
+ .simplebar-scrollbar.simplebar-visible:before {
208
+ /* When hovered, remove all transitions from drag handle */
209
+ opacity: 0.5;
210
+ transition: opacity 0s linear;
211
+ }
212
+
213
+ .simplebar-track.simplebar-vertical {
214
+ top: 0;
215
+ width: 11px;
216
+ }
217
+
218
+ .simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
219
+ top: 2px;
220
+ bottom: 2px;
221
+ }
222
+
223
+ .simplebar-track.simplebar-horizontal {
224
+ left: 0;
225
+ height: 11px;
226
+ }
227
+
228
+ .simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
229
+ height: 100%;
230
+ left: 2px;
231
+ right: 2px;
232
+ }
233
+
234
+ .simplebar-track.simplebar-horizontal .simplebar-scrollbar {
235
+ right: auto;
236
+ left: 0;
237
+ top: 2px;
238
+ height: 7px;
239
+ min-height: 0;
240
+ min-width: 10px;
241
+ width: auto;
242
+ }
243
+
244
+ /* Rtl support */
245
+ [data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {
246
+ right: auto;
247
+ left: 0;
248
+ }
249
+
250
+ .hs-dummy-scrollbar-size {
251
+ direction: rtl;
252
+ position: fixed;
253
+ opacity: 0;
254
+ visibility: hidden;
255
+ height: 500px;
256
+ width: 500px;
257
+ overflow-y: hidden;
258
+ overflow-x: scroll;
259
+ }
260
+
261
+ .simplebar-hide-scrollbar {
262
+ position: fixed;
263
+ left: 0;
264
+ visibility: hidden;
265
+ overflow-y: scroll;
266
+ scrollbar-width: none;
267
+ -ms-overflow-style: none;
268
+ }
269
+
270
+ .event-tracker-window .MuiPopover-paper{max-width:400px;min-width:300px}.event-tracker-window .event-tracker-title{padding:20px 20px 0}.event-tracker-window .event-tracker-title i{margin-right:10px}
271
+ .buttonizer-loading{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.67);z-index:99999;transition:350ms all ease-in-out;-moz-transition:350ms all ease-in-out;-webkit-transition:350ms all ease-in-out}.buttonizer-loading.site-loading{left:431px}@media screen and (max-width: 769px){.buttonizer-loading{left:0 !important}}.buttonizer-loading .middle{position:absolute;left:50%;top:50%;margin-left:-125px;margin-top:-64px;width:250px;text-align:center}.buttonizer-loading .middle img{position:absolute;left:50%;margin-left:-25%;top:18px}.buttonizer-loading .middle .loader-text{text-align:center;font-size:20px;margin-top:20px}.buttonizer-loading .middle .loader-text .slow-website{display:block}.buttonizer-loading .middle .loader-text .slow-website a{display:block;font-size:15px;text-decoration:none;margin-top:18px}.buttonizer-loading .middle svg{-webkit-animation:spin 1s linear infinite;-moz-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-moz-keyframes spin{100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
272
+ .buttonizer-menu-item{display:block !important;width:100% !important;text-align:left;text-decoration:none;padding:10px 15px !important;border-bottom:1px solid #dbdbdb !important;transition:background .15s ease-in-out;height:auto !important;border-radius:0 !important}.buttonizer-menu-item:last-child{border:0 !important}.buttonizer-menu-item:hover{background:#eee}.buttonizer-menu-item .title{display:block;color:#3d3d3d;font-size:13px;font-weight:600;margin-bottom:5px}.buttonizer-menu-item .description{display:block;color:#545454;font-weight:400;font-size:12px;line-height:20px;letter-spacing:.5px;text-transform:none}
273
+ #buttonizer-menu .MuiPaper-root{max-width:430px;width:100%;background:#eee}#buttonizer-menu .menu-container{padding:20px;flex-shrink:0;display:flex;flex-direction:column}#buttonizer-menu .menu-container .buttonizer-logo img{max-width:200px;display:block;margin:20px auto 30px}#buttonizer-menu .menu-container .menu-group{padding:0 20px}#buttonizer-menu .menu-container .menu-group h2{font-size:20px}#buttonizer-menu .menu-container .close-button{display:block;margin:20px 0 50px;padding:20px 0;text-align:center;text-decoration:none;font-size:16px}#buttonizer-menu .menu-container .collapsible-group{margin:8px 0 !important}#buttonizer-menu .menu-container .menu-drawer-bottom{padding:5%;display:flex;flex-direction:column;flex-grow:1;justify-content:flex-end}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons{text-align:center;font-size:14px;line-height:24px;margin-top:50px}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container{margin-top:10px}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a{box-shadow:unset;outline:none;width:30px;height:30px;text-decoration:none}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.instagram span{color:#e4405f}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.youtube span{color:#c00}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.community span{-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(142deg, #f08419 0%, #f08419 15%, #2f788a 13%);background-size:400% 400%}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.facebook span{color:#3b5999}#buttonizer-menu .menu-container .menu-drawer-bottom .social-media-buttons .buttons-container a.twitter span{color:#55acee}
274
+ .drawer-splitter-modal .MuiPaper-root{max-width:1100px;width:90%;height:100%}.drawer-splitter-content{display:flex;height:100%}.drawer-splitter-content .menu-items{border:1px solid rgba(0,0,0,.1);width:330px;flex-shrink:0;flex-grow:0;display:flex;flex-direction:column;overflow:hidden}.drawer-splitter-content .menu-items .menu-header{padding:30px 15px 17px 15px;border-bottom:1px solid rgba(0,0,0,.1)}.drawer-splitter-content .menu-items .menu-header .menu-back span{font-size:20px}.drawer-splitter-content .menu-items .menu-header i:not(.saved-icon){font-size:40px;color:#2f7789}.drawer-splitter-content .menu-items .menu-header h3{color:#2f7789;text-transform:uppercase;font-weight:600;font-size:22px;margin-top:20px;margin-bottom:15px}.drawer-splitter-content .menu-items .menu-header span{font-size:14px}.drawer-splitter-content .menu-items .menu-content{padding:30px 15px 17px 15px;flex-grow:0;overflow:auto}.drawer-splitter-content .menu-items .menu-content .drawer-button button{justify-content:left}.drawer-splitter-content .menu-items .menu-content .drawer-button button .MuiButton-text{padding:8px}.drawer-splitter-content .menu-items .menu-content .drawer-button button i{margin-right:10px}.drawer-splitter-content .menu-items .menu-content .menu-item{border-radius:4px;padding:5px 130px 5px 10px;transition:background-color .2s ease-in-out,color .2s ease-in-out}.drawer-splitter-content .menu-items .menu-content .menu-item .menu-item-name{overflow:hidden;flex-grow:1;justify-content:left}.drawer-splitter-content .menu-items .menu-content .menu-item .menu-item-name p,.drawer-splitter-content .menu-items .menu-content .menu-item .menu-item-name .material-icons{font-size:.9rem}.drawer-splitter-content .menu-items .menu-content .menu-item.settings{padding:0}.drawer-splitter-content .menu-items .menu-content .menu-item.settings .drawer-button{width:100%}.drawer-splitter-content .menu-items .menu-content .menu-item.settings .drawer-button button{padding:8px 16px}.drawer-splitter-content .menu-items .menu-content .menu-item.Mui-selected,.drawer-splitter-content .menu-items .menu-content .menu-item.Mui-selected:hover{background-color:#f0841930}.drawer-splitter-content .menu-items .menu-content .menu-item.Mui-selected .secondary-actions button,.drawer-splitter-content .menu-items .menu-content .menu-item.Mui-selected:hover .secondary-actions button{color:#f08419}.drawer-splitter-content .menu-items .menu-content .menu-item .secondary-actions{top:50%;right:16px;position:absolute;font-size:1rem;transform:translateY(-50%)}.drawer-splitter-content .splitted{min-width:300px;flex-grow:1;overflow:hidden}.drawer-splitter-content .splitted .splitted-content{flex-grow:1;overflow:hidden;display:flex;flex-direction:column;height:100%}.drawer-splitter-content .splitted .splitted-content .drawer-content-header{padding-bottom:15px;border-bottom:1px solid rgba(0,0,0,.1);padding:40px 30px 0 40px}.drawer-splitter-content .splitted .splitted-content .drawer-content-header .title{font-size:35px;line-height:45px;font-weight:500;margin-bottom:20px;display:block;color:#2f7789;float:left}.drawer-splitter-content .splitted .splitted-content .drawer-content-content{padding:15px 35px 50px 40px;flex-grow:0;overflow:auto}.drawer-splitter-content .splitted .splitted-content .drawer-content-content .description{font-size:16px;line-height:25px;color:rgba(0,0,0,.8)}.drawer-splitter-content .splitted .splitted-content .MuiTypography-body1{font-weight:600;color:#2f7789}
275
+ .drawer-splitter-content-title{padding:15px 0 10px;margin-bottom:15px;font-size:16px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:#2f7789;border-bottom:1px solid rgba(0,0,0,.1)}
276
+ .settings-drawer-pages .settings-page-title .title{font-size:40px;font-weight:700}.settings-drawer-pages .settings-page-title .description{font-size:16px;padding:15px 0}.settings-drawer-pages .with-secondary-action{padding-right:80px}.settings-drawer-pages .with-optin-action{padding-right:150px}.settings-drawer-pages .with-permissions{display:block}.settings-drawer-pages .with-permissions>div{flex:none}.settings-drawer-pages .settings-container.select .settings-title{flex-shrink:1;width:calc(122%/ 3)}.settings-drawer-pages .settings-container.select .settings-content{width:52.666%;padding:0 20px;margin:auto}.settings-drawer-pages h2.title{text-transform:uppercase}.settings-drawer-pages .explaination ul{list-style:disc;padding:0 40px}.settings-drawer-pages .explaination button:not(:disabled){background-color:red}.settings-drawer-pages .explaination button .fas.fa-undo{font-size:14px}.settings-drawer-pages .explaination button .fas.fa-undo.spin{animation:spin-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite}@keyframes spin-animation{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}
277
  .buttonizer-drawer{padding:2em}.close-button{float:right;margin:-20px !important}
278
+ .premium-dialog #premium-dialog-title h2{-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(-45deg, #ef8419, #ff952a, #3ab0ca, #2a7688);background-size:400% 400%;animation:gradient 5s ease infinite}.premium-dialog .premium-dialog-content{display:flex;flex-flow:row}.premium-dialog .premium-dialog-content.MuiDialogContent-dividers{padding:10px 24px}.premium-dialog .premium-dialog-content p{font-size:14px}.premium-dialog .premium-dialog-content .premium-dialog-text.MuiDialogContent-root:first-child{padding-top:0}.premium-dialog .premium-dialog-content .premium-dialog-text #premium-dialog-description{color:rgba(0,0,0,.87)}.premium-dialog .premium-dialog-content .premium-dialog-text.with-video{border-right:#e0e0e0 1px solid;max-width:641px}.premium-dialog .premium-dialog-content .premium-dialog-text code{display:block;margin-bottom:5px;padding:10px;background:#e0e0e0}.premium-dialog .premium-dialog-content .premium-dialog-text ul{list-style:none;padding:0 13px}.premium-dialog .premium-dialog-content .premium-dialog-text ul li{font-size:16px;line-height:22px;font-weight:500}.premium-dialog .premium-dialog-content .premium-dialog-text ul li:nth-child(odd){color:#2a7688}.premium-dialog .premium-dialog-content .premium-dialog-text ul li:nth-child(even){color:#ef8419}.premium-dialog .premium-dialog-content .premium-dialog-text ul li i{margin-right:10px;font-size:17px}.premium-dialog .premium-dialog-content .premium-dialog-video{width:100%;margin:auto}.premium-dialog .premium-dialog-content .premium-dialog-video iframe{max-width:560px}@keyframes gradient{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
279
+ .broke-out-of-iframe{padding:10px 20px;color:#b32828;background:#ffdada;text-align:center;display:flex;align-items:center}.broke-out-of-iframe div{width:100%;line-height:24px;font-size:16px}.broke-out-of-iframe button{margin-left:20px;flex-shrink:0;color:#b32828;border-color:#da9595;background:#fff}
280
 
281
  .btnizr-wp-icon {
282
  background: url(./images/wp-icon.png);
296
 
297
  .btnizr-buttonizer-buzzer {
298
  background: url(./images/ButtonizerBuzzer.svg);
299
+ }
300
+ .tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{pointer-events:none;max-width:calc(100vw - 10px);transition-timing-function:cubic-bezier(.165,.84,.44,1);transition-property:transform}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;background-color:#333;transition-property:visibility,opacity,transform;outline:0}.tippy-tooltip[data-placement^=top]>.tippy-arrow{border-width:8px 8px 0;border-top-color:#333;margin:0 3px;transform-origin:50% 0;bottom:-7px}.tippy-tooltip[data-placement^=bottom]>.tippy-arrow{border-width:0 8px 8px;border-bottom-color:#333;margin:0 3px;transform-origin:50% 7px;top:-7px}.tippy-tooltip[data-placement^=left]>.tippy-arrow{border-width:8px 0 8px 8px;border-left-color:#333;margin:3px 0;transform-origin:0 50%;right:-7px}.tippy-tooltip[data-placement^=right]>.tippy-arrow{border-width:8px 8px 8px 0;border-right-color:#333;margin:3px 0;transform-origin:7px 50%;left:-7px}.tippy-tooltip[data-interactive][data-state=visible]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{position:absolute;border-color:transparent;border-style:solid}.tippy-content{padding:5px 9px}
301
+ #wpadminbar,#adminmenumain{display:none}#wpcontent,#wpfooter{margin:0;padding:0}.buttonizer-admin-overlay{text-align:center;padding:40px 20px}html{padding:0 !important}.screen-reader-text{display:none}body.buttonizer-loaded{background:#191e23}.button.button-red{background:#ba0000;border-color:#a00 #900 #900;-webkit-box-shadow:0 1px 0 #900;box-shadow:0 1px 0 #900;color:#fff;text-decoration:none;text-shadow:0 -1px 1px #900,1px 0 1px #900,0 1px 1px #900,-1px 0 1px #900}.button.button-red:hover{background:#c20000 !important;border-color:#900 !important;color:#fff}.button.button-red:active,.button.button-red:focus{background:#a00 !important;border-color:#900 !important;-webkit-box-shadow:inset 0 2px 0 #900;box-shadow:inset 0 2px 0 #900;vertical-align:top;color:#fff}.button.button-red.button-centered-reset{margin:0 auto;padding:4px 20px;height:auto;font-size:15px}.button.button-red.button-centered-reset i{margin-right:10px}.label-settings{display:flex}.label-settings .title{min-width:calc(100% / 3);width:calc(100% / 3)}.label-settings .mdc-slider{width:calc(100% /3)}.icon-settings{display:flex}.icon-settings .title{min-width:calc(100% / 3);width:calc(100% / 3)}.icon-settings .mdc-text-field.small{width:calc(100% / 3) !important;height:28px !important}.icon-settings .mdc-text-field.small .material-icons.mdc-text-field__icon.icon{bottom:9px !important;font-size:10px;margin-right:-8px}.icon-settings .mdc-text-field.small .material-icons.mdc-text-field__icon.text{bottom:6px !important;font-size:10px;margin-right:-9px}.icon-settings .mdc-text-field.small .mdc-text-field__input{padding:0;padding-left:16px !important;padding-right:24px !important;height:28px !important;font-size:14px !important}.buttonizer-preview{position:fixed;left:431px;right:0;top:0;bottom:0;transition:transform 250ms ease-in-out}@media screen and (max-width: 769px){.buttonizer-preview{left:0}}.buttonizer-preview.frame-size-tablet{width:720px;max-width:720px;left:50%;margin-left:-170px;right:unset;z-index:-1}.buttonizer-preview.frame-size-mobile{width:340px;height:650px;max-width:340px;top:50%;left:50%;margin-top:-300px;margin-left:15px;right:unset;z-index:-1}.hide-bar-button{display:block;position:fixed;left:429px;top:50%;cursor:pointer;margin-top:-30px;z-index:2;height:60px;line-height:60px;width:20px;border-radius:0 10px 10px 0;background:#f0f0f0;border:1px solid #d2d2d2;border-left:1px solid transparent !important;text-align:center;color:#5d5d5d !important;text-decoration:none;transition:all 250ms ease-out;-moz-transition:all 250ms ease-out;-webkit-transition:all 250ms ease-out}.hide-bar-button .fas{margin-left:-4px;color:#2f7789}@media screen and (max-width: 769px){.hide-bar-button{left:unset !important;right:0;top:40px;width:auto;height:auto;line-height:20px;border:0;background:unset;padding:0 20px}.hide-bar-button:before,.hide-bar-button:after{content:none !important}.hide-bar-button:focus{border-left:none !important}}.hide-bar-button .fa-chevron-right{display:none}.hide-bar-button:before{content:"";position:absolute;background-color:transparent;top:-20px;height:20px;width:10px;left:0;box-sizing:inherit;border-bottom-left-radius:10px;box-shadow:0 10px 0 0 #f0f0f0;border-bottom:1px solid #d2d2d2;border-left:1px solid #d2d2d2;transition:all 250ms ease-out;-moz-transition:all 250ms ease-out;-webkit-transition:all 250ms ease-out}.hide-bar-button:after{content:"";position:absolute;background-color:transparent;bottom:-20px;height:20px;width:10px;left:0;box-sizing:inherit;border-top-left-radius:10px;box-shadow:0 -10px 0 0 #f0f0f0;border-top:1px solid #d2d2d2;border-left:1px solid #d2d2d2;transition:all 250ms ease-out;-moz-transition:all 250ms ease-out;-webkit-transition:all 250ms ease-out}.hide-bar-button:focus{outline:none;outline-style:none;box-shadow:none;box-sizing:border-box;border-left:1px solid #f0f0f0}.buttonizer-app .buttonizer-bar,.buttonizer-app .buttonizer-preview,.buttonizer-app .hide-bar-button{transition:all 250ms ease-out;-moz-transition:all 250ms ease-out;-webkit-transition:all 250ms ease-out}@media screen and (max-width: 769px){body.buttonizer-mobile-hide .buttonizer-preview{transform:translateX(100%)}}body.hide-buttonizer-bar .buttonizer-app .buttonizer-bar{transform:translateX(-100%)}body.hide-buttonizer-bar .buttonizer-app .buttonizer-preview,body.hide-buttonizer-bar .buttonizer-app .hide-bar-button{left:-2px}body.hide-buttonizer-bar .buttonizer-app .fas{margin-left:-1px}body.hide-buttonizer-bar .buttonizer-app .hide-bar-button .fa-chevron-right{display:inline-block}body.hide-buttonizer-bar .buttonizer-app .hide-bar-button .fa-chevron-left{display:none}@media screen and (max-width: 769px){body.hide-buttonizer-bar .buttonizer-preview{transform:translateX(0)}}body{color:#717171}.mdc-card{border-radius:4px;background-color:#fff;display:flex;flex-direction:column;box-sizing:border-box;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16)}.collapsible-group{margin:15px 0 !important}.collapsible-group .collapsible-body{padding:15px}.collapsible-group .collapsible-body .setting-group-title{font-size:13px;color:#888;text-transform:uppercase;font-weight:500}.collapsible-group .collapsible-body .setting-group-title~.setting-group-title{padding-top:10px}.collapsible-group .mdc-button.mdc-button--bold{font-size:13px}.MuiSelect-small .MuiSelect-select{font-size:14px;padding:9px 12px}.Mui-buzz-disabled{color:rgba(0,0,0,.26) !important;cursor:default !important}.Mui-buzz-premium.MuiButton-textPrimary{color:rgba(0,0,0,.26)}.Mui-buzz-premium.MuiButton-containedPrimary{background:rgba(0,0,0,.26)}.Mui-buzz-premium.MuiTabs-root .MuiTab-root{color:rgba(0,0,0,.26)}.Mui-buzz-premium.MuiTabs-root .MuiTabs-indicator{background-color:rgba(0,0,0,.26)}.MuiInputBase-root input[type=number]{-moz-appearance:textfield}.MuiInputBase-root input[type=number]::-webkit-outer-spin-button,.MuiInputBase-root input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}body{font-family:"Roboto","Helvetica","Arial",sans-serif}.tippy-tooltip{background:#6d6d6d;color:#fff}.buttonizer-app{font-family:Roboto,sans-serif;position:fixed;top:0;bottom:0;left:0;right:0;background:#eee}.buttonizer-app a,.buttonizer-app input{box-shadow:none}.buttonizer-app hr{margin-bottom:14px}.dashboard-warning-msg{padding:12px;margin-bottom:15px;font-size:14px;line-height:20px;border:2px solid rgba(240,132,25,.5);color:#f08419;display:block}.dashboard-warning-msg b{display:block}.dashboard-warning-msg a{color:#f08419}iframe{border:0}.simplebar-scrollbar.simplebar-visible:before{opacity:.38 !important}p{font-size:14px;margin-top:5px}
302
+ form{display:flex;flex-direction:column;align-items:stretch}form .MuiTextField-root{margin:1em}form .fullwidth-label{align-items:stretch !important}form .crash-report{margin-top:2em}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/dashboard.js CHANGED
@@ -2,166 +2,138 @@
2
  *
3
  * This file is part of the Buttonizer plugin that is downloadable through Wordpress.org,
4
  * please do not redistribute this plugin or the files without any written permission of the author.
5
- *
6
  * If you need support, contact us at support@buttonizer.pro or visit our community website
7
  * https://community.buttonizer.pro/
8
- *
9
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
10
- *
11
- * (C) 2017-2021 Buttonizer dev-version
12
- *
13
  */
14
  /*!
15
  *
16
  * This file is part of the Buttonizer plugin that is downloadable through Wordpress.org,
17
  * please do not redistribute this plugin or the files without any written permission of the author.
18
- *
19
  * If you need support, contact us at support@buttonizer.pro or visit our community website
20
  * https://community.buttonizer.pro/
21
- *
22
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
23
- *
24
- * (C) 2017-2021 Buttonizer dev-version
25
- *
26
  */
27
- /******/ (function(modules) { // webpackBootstrap
28
- /******/ // The module cache
29
- /******/ var installedModules = {};
30
- /******/
31
- /******/ // The require function
32
- /******/ function __webpack_require__(moduleId) {
33
- /******/
34
- /******/ // Check if module is in cache
35
- /******/ if(installedModules[moduleId]) {
36
- /******/ return installedModules[moduleId].exports;
37
- /******/ }
38
- /******/ // Create a new module (and put it into the cache)
39
- /******/ var module = installedModules[moduleId] = {
40
- /******/ i: moduleId,
41
- /******/ l: false,
42
- /******/ exports: {}
43
- /******/ };
44
- /******/
45
- /******/ // Execute the module function
46
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
47
- /******/
48
- /******/ // Flag the module as loaded
49
- /******/ module.l = true;
50
- /******/
51
- /******/ // Return the exports of the module
52
- /******/ return module.exports;
53
- /******/ }
54
- /******/
55
- /******/
56
- /******/ // expose the modules object (__webpack_modules__)
57
- /******/ __webpack_require__.m = modules;
58
- /******/
59
- /******/ // expose the module cache
60
- /******/ __webpack_require__.c = installedModules;
61
- /******/
62
- /******/ // define getter function for harmony exports
63
- /******/ __webpack_require__.d = function(exports, name, getter) {
64
- /******/ if(!__webpack_require__.o(exports, name)) {
65
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
66
- /******/ }
67
- /******/ };
68
- /******/
69
- /******/ // define __esModule on exports
70
- /******/ __webpack_require__.r = function(exports) {
71
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
72
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
73
- /******/ }
74
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
75
- /******/ };
76
- /******/
77
- /******/ // create a fake namespace object
78
- /******/ // mode & 1: value is a module id, require it
79
- /******/ // mode & 2: merge all properties of value into the ns
80
- /******/ // mode & 4: return value when already ns object
81
- /******/ // mode & 8|1: behave like require
82
- /******/ __webpack_require__.t = function(value, mode) {
83
- /******/ if(mode & 1) value = __webpack_require__(value);
84
- /******/ if(mode & 8) return value;
85
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
86
- /******/ var ns = Object.create(null);
87
- /******/ __webpack_require__.r(ns);
88
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
89
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
90
- /******/ return ns;
91
- /******/ };
92
- /******/
93
- /******/ // getDefaultExport function for compatibility with non-harmony modules
94
- /******/ __webpack_require__.n = function(module) {
95
- /******/ var getter = module && module.__esModule ?
96
- /******/ function getDefault() { return module['default']; } :
97
- /******/ function getModuleExports() { return module; };
98
- /******/ __webpack_require__.d(getter, 'a', getter);
99
- /******/ return getter;
100
- /******/ };
101
- /******/
102
- /******/ // Object.prototype.hasOwnProperty.call
103
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
104
- /******/
105
- /******/ // __webpack_public_path__
106
- /******/ __webpack_require__.p = "";
107
- /******/
108
- /******/
109
- /******/ // Load entry module and return exports
110
- /******/ return __webpack_require__(__webpack_require__.s = 548);
111
- /******/ })
112
- /************************************************************************/
113
- /******/ ([
114
- /* 0 */
115
- /***/ (function(module, exports, __webpack_require__) {
116
 
117
- "use strict";
 
118
 
 
 
 
 
 
 
119
 
120
- if (true) {
121
- module.exports = __webpack_require__(285);
122
- } else {}
123
 
 
 
124
 
125
  /***/ }),
126
- /* 1 */
127
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
128
 
129
  "use strict";
130
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return translate; });
131
- /* harmony import */ var dlv__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
132
- /* harmony import */ var dlv__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dlv__WEBPACK_IMPORTED_MODULE_0__);
 
133
 
134
- function translate(key) {
135
- for (var _len = arguments.length, formats = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
136
- formats[_key - 1] = arguments[_key];
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  }
138
 
139
- // return key;
140
- if (!String.prototype.format) {
141
- String.prototype.format = function () {
142
- var args = arguments;
143
- return this.replace(/{(\d+)}/g, function (match, number) {
144
- return typeof args[number] != "undefined" ? args[number] : match;
145
- });
146
- };
 
 
 
 
 
 
 
 
 
 
 
147
  }
 
148
 
149
- if (typeof buttonizer_translations !== "undefined") {
150
- var _dlv;
 
 
 
 
 
 
 
 
151
 
152
- if (formats) return (_dlv = dlv__WEBPACK_IMPORTED_MODULE_0___default()(buttonizer_translations, key, "Translation not found: " + key)).format.apply(_dlv, formats);
153
- return dlv__WEBPACK_IMPORTED_MODULE_0___default()(buttonizer_translations, key, "Translation not found: " + key);
 
 
 
 
 
 
 
 
 
 
 
 
154
  }
155
 
156
- return key;
157
  }
158
 
159
  /***/ }),
160
- /* 2 */
161
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
162
 
163
  "use strict";
164
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _extends; });
 
 
165
  function _extends() {
166
  _extends = Object.assign || function (target) {
167
  for (var i = 1; i < arguments.length; i++) {
@@ -181,2037 +153,1805 @@ function _extends() {
181
  }
182
 
183
  /***/ }),
184
- /* 3 */
185
- /***/ (function(module, exports, __webpack_require__) {
186
 
187
- /**
188
- * Copyright (c) 2013-present, Facebook, Inc.
189
- *
190
- * This source code is licensed under the MIT license found in the
191
- * LICENSE file in the root directory of this source tree.
192
- */
193
 
194
- if (false) { var throwOnDirectAccess, ReactIs; } else {
195
- // By explicitly using `prop-types` you are opting into new production behavior.
196
- // http://fb.me/prop-types-in-prod
197
- module.exports = __webpack_require__(570)();
198
- }
199
 
 
 
 
 
 
200
 
201
  /***/ }),
202
- /* 4 */
203
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
204
 
205
  "use strict";
206
- function toVal(mix) {
207
- var k, y, str='';
 
 
 
 
208
 
209
- if (typeof mix === 'string' || typeof mix === 'number') {
210
- str += mix;
211
- } else if (typeof mix === 'object') {
212
- if (Array.isArray(mix)) {
213
- for (k=0; k < mix.length; k++) {
214
- if (mix[k]) {
215
- if (y = toVal(mix[k])) {
216
- str && (str += ' ');
217
- str += y;
218
- }
219
- }
220
- }
221
- } else {
222
- for (k in mix) {
223
- if (mix[k]) {
224
- str && (str += ' ');
225
- str += k;
226
- }
227
- }
228
- }
229
- }
230
 
231
- return str;
 
 
 
 
 
 
 
 
232
  }
233
 
234
- /* harmony default export */ __webpack_exports__["a"] = (function () {
235
- var i=0, tmp, x, str='';
236
- while (i < arguments.length) {
237
- if (tmp = arguments[i++]) {
238
- if (x = toVal(tmp)) {
239
- str && (str += ' ');
240
- str += x
241
- }
242
- }
243
- }
244
- return str;
245
- });
 
 
 
 
 
 
246
 
 
 
 
 
 
 
 
 
 
 
247
 
248
  /***/ }),
249
- /* 5 */
250
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
251
 
252
  "use strict";
253
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return actionTypes; });
254
- /* unused harmony export wpActionTypes */
255
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return weekdays; });
256
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return models; });
257
- /* unused harmony export initialStore */
258
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return drawers; });
259
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return formats; });
260
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
261
 
262
- /**
263
- * Constants
264
- */
265
- var actionTypes = {
266
- INIT: "INIT",
267
- // Adding and removing buttons/groups
268
- ADD_MODEL: "ADD_MODEL",
269
- //Relation actionTypes
270
- ADD_RELATION: "ADD_RELATION",
271
- CHANGE_RELATION: "CHANGE_RELATION",
272
- REMOVE_RELATION: "REMOVE_RELATION",
273
- //Data actionTypes
274
- GET_DATA_BEGIN: "GET_DATA_BEGIN",
275
- GET_DATA_SUCCESS: "GET_DATA_SUCCESS",
276
- GET_DATA_FAILURE: "GET_DATA_FAILURE",
277
- GET_DATA_END: "GET_DATA_END",
278
- HAS_CHANGES: "HAS_CHANGES",
279
- IS_UPDATING: "IS_UPDATING",
280
- STOP_LOADING: "STOP_LOADING",
281
- //Setting values
282
- SET_SETTING_VALUE: "SET_SETTING_VALUE",
283
- //Drawer
284
- OPEN_DRAWER: "OPENING DRAWER",
285
- CLOSE_DRAWER: "CLOSING DRAWER",
286
- groups: {
287
- ADD_RECORD: "ADDING GROUP RECORD",
288
- REMOVE_RECORD: "REMOVING GROUP RECORD",
289
- SET_KEY_VALUE: "SET KEY VALUE GROUPS",
290
- SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS GROUPS"
291
- },
292
- buttons: {
293
- ADD_RECORD: "ADDING BUTTON RECORD",
294
- REMOVE_RECORD: "REMOVING BUTTON RECORD",
295
- SET_KEY_VALUE: "SET KEY VALUE BUTTONS",
296
- SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS BUTTONS"
297
- },
298
- timeSchedules: {
299
- // Time Schedule actionTypes
300
- ADD_RECORD: "ADDING TIME SCHEDULE",
301
- REMOVE_RECORD: "REMOVING TIME SCHEDULE",
302
- SET_KEY_VALUE: "SET KEY VALUE TIMESCHEDULES",
303
- SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS TIMESCHEDULES",
304
- ADD_TIMESCHEDULE: "ADD_TIMESCHEDULE",
305
- SET_WEEKDAY: "SET_WEEKDAY",
306
- ADD_EXCLUDED_DATE: "ADD_EXCLUDED_DATE",
307
- SET_EXCLUDED_DATE: "SET_EXCLUDED_DATE",
308
- REMOVE_EXCLUDED_DATE: "REMOVE_EXCLUDED_DATE"
309
- },
310
- pageRules: {
311
- ADD_RECORD: "ADDING PAGE RULE",
312
- REMOVE_RECORD: "REMOVING PAGE RULE",
313
- SET_KEY_VALUE: "SET KEY VALUE PAGERULES",
314
- SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS PAGERULES",
315
- ADD_PAGE_RULE_ROW: "ADD_PAGE_RULE_ROW",
316
- SET_PAGE_RULE_ROW: "SET_PAGE_RULE_ROW",
317
- REMOVE_PAGE_RULE_ROW: "REMOVE_PAGE_RULE_ROW"
318
- },
319
- wp: {
320
- //Data actionTypes
321
- GET_DATA_BEGIN: "GET_DATA_BEGIN_WP",
322
- GET_DATA_SUCCESS: "GET_DATA_SUCCESS_WP",
323
- GET_DATA_FAILURE: "GET_DATA_FAILURE_WP",
324
- GET_DATA_END: "GET_DATA_END_WP"
325
  }
326
- };
327
- var wpActionTypes = {};
328
- var weekdays = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
329
- var models = {
330
- BUTTON: "buttons",
331
- GROUP: "groups",
332
- TIME_SCHEDULE: "timeSchedules",
333
- PAGE_RULE: "pageRules"
334
- };
335
- var initialStore = {
336
- name: "peter",
337
- loading: {
338
- showLoading: false,
339
- loadingString: "",
340
- loadingSlowWebsite: false,
341
- loaded: false,
342
- error: null
343
- },
344
- frameUrl: "about:blank",
345
- loadingIframe: false,
346
- settings: null,
347
- _premium: false,
348
- buttons: {},
349
- groups: {},
350
- timeSchedules: {}
351
- };
352
- var drawers = {
353
- MENU: "menu",
354
- SETTINGS: "settings",
355
- SETTINGS_PAGES: {
356
- analytics: "analytics",
357
- iconLibrary: "iconlibrary",
358
- preferences: "preferences",
359
- reset: "reset"
360
- },
361
- TIME_SCHEDULES: "timeschedules",
362
- PAGE_RULES: "pagerules"
363
- };
364
- var formats = {
365
- /**
366
- * Combine values with normal;hover.
367
- */
368
- normal_hover: {
369
- format: function format(normal, hover) {
370
- return [normal, hover].map(function (val) {
371
- return val === "unset" ? "" : val == null ? "" : val;
372
- }).filter(function (val, key, arr) {
373
- return key === 0 || val !== "" && val !== arr[0];
374
- }) // remove duplicates
375
- .join(";") || "unset";
376
- },
377
- parse: function parse(val) {
378
- var value = val;
379
- if (typeof val === "boolean") value = String(val);
380
- if (typeof val === "number") value = String(val);
381
- if (typeof val === "undefined") return [];
382
 
383
- if (typeof value !== "string") {
384
- console.trace();
385
- console.log(_typeof(value), value);
386
- throw TypeError("'record[key]' val is not of type String, boolean or number");
387
- }
388
 
389
- var match = value.split(";");
390
- return match.map(function (val) {
391
- if (!val) return undefined;
392
- if (val === "true") return true;
393
- if (val === "false") return false;
394
- if (!isNaN(Number(val))) return Number(val);
395
- return val;
396
- }).map(function (val, key, arr) {
397
- return key === 0 ? val : val === arr[0] ? undefined : val;
398
- }); // remove duplicates!
399
- }
400
- },
401
 
402
- /**
403
- * Px for four sides, for example for margin or padding.
404
- */
405
- fourSidesPx: {
406
- format: function format(val1, val2, val3, val4) {
407
- return "".concat(val1, "px ").concat(val2, "px ").concat(val3, "px ").concat(val4, "px");
408
- },
409
- parse: function parse(val) {
410
- var reg = /\d+/g;
411
- var match = val.match(reg);
412
- return match;
413
- }
414
- },
415
 
416
- /**
417
- * Position format, example: 'bottom: 5px', or 'left: 10%'
418
- */
419
- position: {
420
- format: function format(type, mode, value) {
421
- return "".concat(type, ": ").concat(value).concat(mode);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
422
  }
423
  }
424
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
425
 
426
  /***/ }),
427
- /* 6 */
428
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
429
 
430
  "use strict";
431
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __extends; });
432
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __assign; });
433
- /* unused harmony export __rest */
434
- /* unused harmony export __decorate */
435
- /* unused harmony export __param */
436
- /* unused harmony export __metadata */
437
- /* unused harmony export __awaiter */
438
- /* unused harmony export __generator */
439
- /* unused harmony export __exportStar */
440
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __values; });
441
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __read; });
442
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __spread; });
443
- /* unused harmony export __spreadArrays */
444
- /* unused harmony export __await */
445
- /* unused harmony export __asyncGenerator */
446
- /* unused harmony export __asyncDelegator */
447
- /* unused harmony export __asyncValues */
448
- /* unused harmony export __makeTemplateObject */
449
- /* unused harmony export __importStar */
450
- /* unused harmony export __importDefault */
451
- /*! *****************************************************************************
452
- Copyright (c) Microsoft Corporation. All rights reserved.
453
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
454
- this file except in compliance with the License. You may obtain a copy of the
455
- License at http://www.apache.org/licenses/LICENSE-2.0
456
-
457
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
458
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
459
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
460
- MERCHANTABLITY OR NON-INFRINGEMENT.
461
-
462
- See the Apache Version 2.0 License for specific language governing permissions
463
- and limitations under the License.
464
- ***************************************************************************** */
465
- /* global Reflect, Promise */
466
-
467
- var extendStatics = function(d, b) {
468
- extendStatics = Object.setPrototypeOf ||
469
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
470
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
471
- return extendStatics(d, b);
472
- };
473
-
474
- function __extends(d, b) {
475
- extendStatics(d, b);
476
- function __() { this.constructor = d; }
477
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
478
- }
479
-
480
- var __assign = function() {
481
- __assign = Object.assign || function __assign(t) {
482
- for (var s, i = 1, n = arguments.length; i < n; i++) {
483
- s = arguments[i];
484
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
485
- }
486
- return t;
487
- }
488
- return __assign.apply(this, arguments);
489
- }
490
-
491
- function __rest(s, e) {
492
- var t = {};
493
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
494
- t[p] = s[p];
495
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
496
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
497
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
498
- t[p[i]] = s[p[i]];
499
- }
500
- return t;
501
- }
502
-
503
- function __decorate(decorators, target, key, desc) {
504
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
505
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
506
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
507
- return c > 3 && r && Object.defineProperty(target, key, r), r;
508
- }
509
-
510
- function __param(paramIndex, decorator) {
511
- return function (target, key) { decorator(target, key, paramIndex); }
512
- }
513
-
514
- function __metadata(metadataKey, metadataValue) {
515
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
516
- }
517
-
518
- function __awaiter(thisArg, _arguments, P, generator) {
519
- return new (P || (P = Promise))(function (resolve, reject) {
520
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
521
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
522
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
523
- step((generator = generator.apply(thisArg, _arguments || [])).next());
524
- });
525
- }
526
-
527
- function __generator(thisArg, body) {
528
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
529
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
530
- function verb(n) { return function (v) { return step([n, v]); }; }
531
- function step(op) {
532
- if (f) throw new TypeError("Generator is already executing.");
533
- while (_) try {
534
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
535
- if (y = 0, t) op = [op[0] & 2, t.value];
536
- switch (op[0]) {
537
- case 0: case 1: t = op; break;
538
- case 4: _.label++; return { value: op[1], done: false };
539
- case 5: _.label++; y = op[1]; op = [0]; continue;
540
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
541
- default:
542
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
543
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
544
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
545
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
546
- if (t[2]) _.ops.pop();
547
- _.trys.pop(); continue;
548
- }
549
- op = body.call(thisArg, _);
550
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
551
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
552
- }
553
- }
554
-
555
- function __exportStar(m, exports) {
556
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
557
- }
558
-
559
- function __values(o) {
560
- var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
561
- if (m) return m.call(o);
562
- return {
563
- next: function () {
564
- if (o && i >= o.length) o = void 0;
565
- return { value: o && o[i++], done: !o };
566
- }
567
- };
568
- }
569
-
570
- function __read(o, n) {
571
- var m = typeof Symbol === "function" && o[Symbol.iterator];
572
- if (!m) return o;
573
- var i = m.call(o), r, ar = [], e;
574
- try {
575
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
576
- }
577
- catch (error) { e = { error: error }; }
578
- finally {
579
- try {
580
- if (r && !r.done && (m = i["return"])) m.call(i);
581
- }
582
- finally { if (e) throw e.error; }
583
- }
584
- return ar;
585
- }
586
-
587
- function __spread() {
588
- for (var ar = [], i = 0; i < arguments.length; i++)
589
- ar = ar.concat(__read(arguments[i]));
590
- return ar;
591
- }
592
-
593
- function __spreadArrays() {
594
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
595
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
596
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
597
- r[k] = a[j];
598
- return r;
599
- };
600
-
601
- function __await(v) {
602
- return this instanceof __await ? (this.v = v, this) : new __await(v);
603
- }
604
-
605
- function __asyncGenerator(thisArg, _arguments, generator) {
606
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
607
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
608
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
609
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
610
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
611
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
612
- function fulfill(value) { resume("next", value); }
613
- function reject(value) { resume("throw", value); }
614
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
615
- }
616
-
617
- function __asyncDelegator(o) {
618
- var i, p;
619
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
620
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
621
- }
622
-
623
- function __asyncValues(o) {
624
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
625
- var m = o[Symbol.asyncIterator], i;
626
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
627
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
628
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
629
- }
630
-
631
- function __makeTemplateObject(cooked, raw) {
632
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
633
- return cooked;
634
- };
635
-
636
- function __importStar(mod) {
637
- if (mod && mod.__esModule) return mod;
638
- var result = {};
639
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
640
- result.default = mod;
641
- return result;
642
- }
643
-
644
- function __importDefault(mod) {
645
- return (mod && mod.__esModule) ? mod : { default: mod };
646
- }
647
 
648
 
649
- /***/ }),
650
- /* 7 */
651
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
652
 
653
- "use strict";
654
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
655
- /* harmony import */ var _objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47);
656
 
657
- function _objectWithoutProperties(source, excluded) {
658
- if (source == null) return {};
659
- var target = Object(_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(source, excluded);
660
- var key, i;
661
 
662
- if (Object.getOwnPropertySymbols) {
663
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
664
 
665
- for (i = 0; i < sourceSymbolKeys.length; i++) {
666
- key = sourceSymbolKeys[i];
667
- if (excluded.indexOf(key) >= 0) continue;
668
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
669
- target[key] = source[key];
670
- }
 
 
 
 
 
 
 
 
 
 
 
 
671
  }
672
 
673
- return target;
674
  }
675
 
676
  /***/ }),
677
- /* 8 */
678
- /***/ (function(module, exports, __webpack_require__) {
679
 
680
- var global = __webpack_require__(24);
681
- var core = __webpack_require__(94);
682
- var hide = __webpack_require__(72);
683
- var redefine = __webpack_require__(73);
684
- var ctx = __webpack_require__(95);
685
- var PROTOTYPE = 'prototype';
686
 
687
- var $export = function (type, name, source) {
688
- var IS_FORCED = type & $export.F;
689
- var IS_GLOBAL = type & $export.G;
690
- var IS_STATIC = type & $export.S;
691
- var IS_PROTO = type & $export.P;
692
- var IS_BIND = type & $export.B;
693
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
694
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
695
- var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
696
- var key, own, out, exp;
697
- if (IS_GLOBAL) source = name;
698
- for (key in source) {
699
- // contains in native
700
- own = !IS_FORCED && target && target[key] !== undefined;
701
- // export native or passed
702
- out = (own ? target : source)[key];
703
- // bind timers to global for call from export context
704
- exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
705
- // extend global
706
- if (target) redefine(target, key, out, type & $export.U);
707
- // export
708
- if (exports[key] != out) hide(exports, key, exp);
709
- if (IS_PROTO && expProto[key] != out) expProto[key] = out;
710
- }
711
- };
712
- global.core = core;
713
- // type bitmap
714
- $export.F = 1; // forced
715
- $export.G = 2; // global
716
- $export.S = 4; // static
717
- $export.P = 8; // proto
718
- $export.B = 16; // bind
719
- $export.W = 32; // wrap
720
- $export.U = 64; // safe
721
- $export.R = 128; // real proto method for `library`
722
- module.exports = $export;
723
 
 
 
 
 
 
 
 
 
724
 
725
  /***/ }),
726
- /* 9 */
727
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
728
 
729
- "use strict";
 
730
 
731
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
732
- var esm_extends = __webpack_require__(2);
 
 
 
733
 
734
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
735
- var objectWithoutProperties = __webpack_require__(7);
736
 
737
- // EXTERNAL MODULE: ./node_modules/react/index.js
738
- var react = __webpack_require__(0);
739
- var react_default = /*#__PURE__*/__webpack_require__.n(react);
740
 
741
- // EXTERNAL MODULE: ./node_modules/prop-types/index.js
742
- var prop_types = __webpack_require__(3);
743
 
744
- // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
745
- var hoist_non_react_statics_cjs = __webpack_require__(158);
746
- var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
747
 
748
- // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js + 4 modules
749
- var makeStyles = __webpack_require__(904);
 
750
 
751
- // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js
752
- var getThemeProps = __webpack_require__(953);
 
753
 
754
- // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/useTheme/useTheme.js
755
- var useTheme = __webpack_require__(536);
756
 
757
- // CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/withStyles/withStyles.js
 
 
 
758
 
 
 
 
 
 
759
 
 
760
 
 
 
 
761
 
 
 
762
 
 
 
 
763
 
 
 
 
 
 
 
 
764
 
 
765
 
766
- // Link a style sheet with a component.
767
- // It does not modify the component passed to it;
768
- // instead, it returns a new component, with a `classes` property.
769
 
770
- var withStyles_withStyles = function withStyles(stylesOrCreator) {
771
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
772
- return function (Component) {
773
- var defaultTheme = options.defaultTheme,
774
- _options$withTheme = options.withTheme,
775
- withTheme = _options$withTheme === void 0 ? false : _options$withTheme,
776
- name = options.name,
777
- stylesOptions = Object(objectWithoutProperties["a" /* default */])(options, ["defaultTheme", "withTheme", "name"]);
778
 
779
- if (false) {}
 
780
 
781
- var classNamePrefix = name;
782
 
783
- if (false) { var displayName; }
 
784
 
785
- var useStyles = Object(makeStyles["a" /* default */])(stylesOrCreator, Object(esm_extends["a" /* default */])({
786
- defaultTheme: defaultTheme,
787
- Component: Component,
788
- name: name || Component.displayName,
789
- classNamePrefix: classNamePrefix
790
- }, stylesOptions));
791
- var WithStyles = /*#__PURE__*/react_default.a.forwardRef(function WithStyles(props, ref) {
792
- var classesProp = props.classes,
793
- innerRef = props.innerRef,
794
- other = Object(objectWithoutProperties["a" /* default */])(props, ["classes", "innerRef"]); // The wrapper receives only user supplied props, which could be a subset of
795
- // the actual props Component might receive due to merging with defaultProps.
796
- // So copying it here would give us the same result in the wrapper as well.
797
 
 
 
 
 
798
 
799
- var classes = useStyles(Object(esm_extends["a" /* default */])({}, Component.defaultProps, props));
800
- var theme;
801
- var more = other;
 
 
802
 
803
- if (typeof name === 'string' || withTheme) {
804
- // name and withTheme are invariant in the outer scope
805
- // eslint-disable-next-line react-hooks/rules-of-hooks
806
- theme = Object(useTheme["a" /* default */])() || defaultTheme;
807
 
808
- if (name) {
809
- more = Object(getThemeProps["a" /* default */])({
810
- theme: theme,
811
- name: name,
812
- props: other
813
- });
814
- } // Provide the theme to the wrapped component.
815
- // So we don't have to use the `withTheme()` Higher-order Component.
816
 
 
 
817
 
818
- if (withTheme && !more.theme) {
819
- more.theme = theme;
820
- }
821
- }
822
 
823
- return /*#__PURE__*/react_default.a.createElement(Component, Object(esm_extends["a" /* default */])({
824
- ref: innerRef || ref,
825
- classes: classes
826
- }, more));
827
- });
828
- false ? undefined : void 0;
829
 
830
- if (false) {}
 
831
 
832
- hoist_non_react_statics_cjs_default()(WithStyles, Component);
833
 
834
- if (false) {}
 
 
835
 
836
- return WithStyles;
837
- };
838
- };
839
 
840
- /* harmony default export */ var esm_withStyles_withStyles = (withStyles_withStyles);
841
- // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/styles/defaultTheme.js
842
- var styles_defaultTheme = __webpack_require__(182);
843
 
844
- // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/withStyles.js
845
 
 
846
 
 
847
 
 
848
 
849
- function styles_withStyles_withStyles(stylesOrCreator, options) {
850
- return esm_withStyles_withStyles(stylesOrCreator, Object(esm_extends["a" /* default */])({
851
- defaultTheme: styles_defaultTheme["a" /* default */]
852
- }, options));
853
- }
 
 
 
 
 
854
 
855
- /* harmony default export */ var styles_withStyles = __webpack_exports__["a"] = (styles_withStyles_withStyles);
 
 
 
 
 
 
 
 
856
 
857
  /***/ }),
858
- /* 10 */
859
- /***/ (function(module, exports, __webpack_require__) {
 
860
 
861
  "use strict";
 
862
 
863
 
864
- Object.defineProperty(exports, "__esModule", {
865
  value: true
866
  });
867
- exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
868
 
869
- var _flattenNames = __webpack_require__(628);
870
 
871
- var _flattenNames2 = _interopRequireDefault(_flattenNames);
872
 
873
- var _mergeClasses = __webpack_require__(650);
874
 
875
- var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
876
 
877
- var _autoprefix = __webpack_require__(667);
878
 
879
- var _autoprefix2 = _interopRequireDefault(_autoprefix);
880
 
881
- var _hover2 = __webpack_require__(668);
 
 
 
 
 
 
 
 
 
882
 
883
- var _hover3 = _interopRequireDefault(_hover2);
 
 
 
 
 
 
 
 
884
 
885
- var _active = __webpack_require__(669);
886
 
887
- var _active2 = _interopRequireDefault(_active);
 
888
 
889
- var _loop2 = __webpack_require__(670);
 
 
 
 
 
 
 
 
 
890
 
891
- var _loop3 = _interopRequireDefault(_loop2);
892
 
893
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
894
 
895
- exports.hover = _hover3.default;
896
- exports.handleHover = _hover3.default;
897
- exports.handleActive = _active2.default;
898
- exports.loop = _loop3.default;
899
- var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
900
- for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
901
- activations[_key - 1] = arguments[_key];
902
- }
 
 
 
903
 
904
- var activeNames = (0, _flattenNames2.default)(activations);
905
- var merged = (0, _mergeClasses2.default)(classes, activeNames);
906
- return (0, _autoprefix2.default)(merged);
907
- };
908
 
909
- exports.default = ReactCSS;
 
 
 
 
 
 
 
910
 
911
- /***/ }),
912
- /* 11 */,
913
- /* 12 */
914
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
915
 
916
- "use strict";
917
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return capitalize; });
918
- /* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(535);
 
919
 
920
- // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
921
- //
922
- // A strict capitalization should uppercase the first letter of each word a the sentence.
923
- // We only handle the first word.
924
- function capitalize(string) {
925
- if (typeof string !== 'string') {
926
- throw new Error( false ? undefined : Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(7));
927
  }
928
 
929
- return string.charAt(0).toUpperCase() + string.slice(1);
 
 
930
  }
931
 
932
- /***/ }),
933
- /* 13 */
934
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
 
 
 
 
935
 
936
- "use strict";
937
 
938
- // EXPORTS
939
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ components_Provider; });
940
- __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ connect_connect; });
941
- __webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ useDispatch; });
 
942
 
943
- // UNUSED EXPORTS: connectAdvanced, ReactReduxContext, batch, createDispatchHook, useSelector, createSelectorHook, useStore, createStoreHook, shallowEqual
 
944
 
945
- // EXTERNAL MODULE: ./node_modules/react/index.js
946
- var react = __webpack_require__(0);
947
- var react_default = /*#__PURE__*/__webpack_require__.n(react);
 
 
 
 
 
 
 
948
 
949
- // EXTERNAL MODULE: ./node_modules/prop-types/index.js
950
- var prop_types = __webpack_require__(3);
 
 
 
 
 
 
951
 
952
- // CONCATENATED MODULE: ./node_modules/react-redux/es/components/Context.js
 
 
 
953
 
954
- var ReactReduxContext = /*#__PURE__*/react_default.a.createContext(null);
 
955
 
956
- if (false) {}
 
 
 
957
 
958
- /* harmony default export */ var components_Context = (ReactReduxContext);
959
- // CONCATENATED MODULE: ./node_modules/react-redux/es/utils/batch.js
960
- // Default to a dummy "batch" implementation that just runs the callback
961
- function defaultNoopBatch(callback) {
962
- callback();
963
  }
 
 
 
 
 
 
 
 
964
 
965
- var batch_batch = defaultNoopBatch; // Allow injecting another batching function later
 
 
 
 
966
 
967
- var setBatch = function setBatch(newBatch) {
968
- return batch_batch = newBatch;
969
- }; // Supply a getter just to skip dealing with ESM bindings
970
 
971
- var getBatch = function getBatch() {
972
- return batch_batch;
973
- };
974
- // CONCATENATED MODULE: ./node_modules/react-redux/es/utils/Subscription.js
975
- // encapsulates the subscription logic for connecting a component to the redux store, as
976
- // well as nesting subscriptions of descendant components, so that we can ensure the
977
- // ancestor components re-render before descendants
978
 
979
- var nullListeners = {
980
- notify: function notify() {}
981
- };
982
 
983
- function createListenerCollection() {
984
- var batch = getBatch();
985
- var first = null;
986
- var last = null;
987
  return {
988
- clear: function clear() {
989
- first = null;
990
- last = null;
991
- },
992
- notify: function notify() {
993
- batch(function () {
994
- var listener = first;
995
-
996
- while (listener) {
997
- listener.callback();
998
- listener = listener.next;
999
- }
1000
- });
1001
- },
1002
- get: function get() {
1003
- var listeners = [];
1004
- var listener = first;
1005
-
1006
- while (listener) {
1007
- listeners.push(listener);
1008
- listener = listener.next;
1009
- }
1010
-
1011
- return listeners;
1012
- },
1013
- subscribe: function subscribe(callback) {
1014
- var isSubscribed = true;
1015
- var listener = last = {
1016
- callback: callback,
1017
- next: null,
1018
- prev: last
1019
- };
1020
-
1021
- if (listener.prev) {
1022
- listener.prev.next = listener;
1023
- } else {
1024
- first = listener;
1025
- }
1026
-
1027
- return function unsubscribe() {
1028
- if (!isSubscribed || first === null) return;
1029
- isSubscribed = false;
1030
-
1031
- if (listener.next) {
1032
- listener.next.prev = listener.prev;
1033
- } else {
1034
- last = listener.prev;
1035
- }
1036
-
1037
- if (listener.prev) {
1038
- listener.prev.next = listener.next;
1039
- } else {
1040
- first = listener.next;
1041
- }
1042
- };
1043
- }
1044
  };
1045
  }
 
 
 
 
 
 
 
 
1046
 
1047
- var Subscription = /*#__PURE__*/function () {
1048
- function Subscription(store, parentSub) {
1049
- this.store = store;
1050
- this.parentSub = parentSub;
1051
- this.unsubscribe = null;
1052
- this.listeners = nullListeners;
1053
- this.handleChangeWrapper = this.handleChangeWrapper.bind(this);
1054
- }
1055
-
1056
- var _proto = Subscription.prototype;
1057
-
1058
- _proto.addNestedSub = function addNestedSub(listener) {
1059
- this.trySubscribe();
1060
- return this.listeners.subscribe(listener);
1061
- };
1062
-
1063
- _proto.notifyNestedSubs = function notifyNestedSubs() {
1064
- this.listeners.notify();
1065
- };
1066
-
1067
- _proto.handleChangeWrapper = function handleChangeWrapper() {
1068
- if (this.onStateChange) {
1069
- this.onStateChange();
1070
- }
1071
- };
1072
 
1073
- _proto.isSubscribed = function isSubscribed() {
1074
- return Boolean(this.unsubscribe);
1075
- };
 
 
 
 
 
 
1076
 
1077
- _proto.trySubscribe = function trySubscribe() {
1078
- if (!this.unsubscribe) {
1079
- this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.handleChangeWrapper) : this.store.subscribe(this.handleChangeWrapper);
1080
- this.listeners = createListenerCollection();
1081
- }
1082
- };
 
 
 
 
 
1083
 
1084
- _proto.tryUnsubscribe = function tryUnsubscribe() {
1085
- if (this.unsubscribe) {
1086
- this.unsubscribe();
1087
- this.unsubscribe = null;
1088
- this.listeners.clear();
1089
- this.listeners = nullListeners;
1090
- }
1091
- };
 
 
 
 
 
 
1092
 
1093
- return Subscription;
1094
- }();
 
 
 
1095
 
 
 
1096
 
1097
- // CONCATENATED MODULE: ./node_modules/react-redux/es/components/Provider.js
 
 
 
 
 
 
 
 
 
1098
 
 
 
 
 
 
 
 
 
 
 
 
 
1099
 
 
 
 
1100
 
 
 
 
1101
 
 
 
 
 
 
 
 
 
 
 
1102
 
1103
- function Provider(_ref) {
1104
- var store = _ref.store,
1105
- context = _ref.context,
1106
- children = _ref.children;
1107
- var contextValue = Object(react["useMemo"])(function () {
1108
- var subscription = new Subscription(store);
1109
- subscription.onStateChange = subscription.notifyNestedSubs;
1110
- return {
1111
- store: store,
1112
- subscription: subscription
1113
- };
1114
- }, [store]);
1115
- var previousState = Object(react["useMemo"])(function () {
1116
- return store.getState();
1117
- }, [store]);
1118
- Object(react["useEffect"])(function () {
1119
- var subscription = contextValue.subscription;
1120
- subscription.trySubscribe();
1121
 
1122
- if (previousState !== store.getState()) {
1123
- subscription.notifyNestedSubs();
 
 
 
1124
  }
 
1125
 
1126
- return function () {
1127
- subscription.tryUnsubscribe();
1128
- subscription.onStateChange = null;
1129
- };
1130
- }, [contextValue, previousState]);
1131
- var Context = context || ReactReduxContext;
1132
- return /*#__PURE__*/react_default.a.createElement(Context.Provider, {
1133
- value: contextValue
1134
- }, children);
1135
  }
 
 
 
 
 
 
 
1136
 
1137
- if (false) {}
1138
-
1139
- /* harmony default export */ var components_Provider = (Provider);
1140
- // CONCATENATED MODULE: ./node_modules/react-redux/node_modules/@babel/runtime/helpers/esm/extends.js
1141
- function _extends() {
1142
- _extends = Object.assign || function (target) {
1143
- for (var i = 1; i < arguments.length; i++) {
1144
- var source = arguments[i];
1145
 
1146
- for (var key in source) {
1147
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1148
- target[key] = source[key];
1149
- }
1150
- }
1151
  }
1152
-
1153
- return target;
1154
- };
1155
-
1156
- return _extends.apply(this, arguments);
1157
- }
1158
- // CONCATENATED MODULE: ./node_modules/react-redux/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1159
- function _objectWithoutPropertiesLoose(source, excluded) {
1160
- if (source == null) return {};
1161
- var target = {};
1162
- var sourceKeys = Object.keys(source);
1163
- var key, i;
1164
-
1165
- for (i = 0; i < sourceKeys.length; i++) {
1166
- key = sourceKeys[i];
1167
- if (excluded.indexOf(key) >= 0) continue;
1168
- target[key] = source[key];
1169
  }
1170
 
1171
- return target;
1172
  }
1173
- // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
1174
- var hoist_non_react_statics_cjs = __webpack_require__(158);
1175
- var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
1176
-
1177
- // EXTERNAL MODULE: ./node_modules/react-redux/node_modules/react-is/index.js
1178
- var react_is = __webpack_require__(508);
1179
-
1180
- // CONCATENATED MODULE: ./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js
1181
- // React currently throws a warning when using useLayoutEffect on the server.
1182
- // To get around it, we can conditionally useEffect on the server (no-op) and
1183
- // useLayoutEffect in the browser. We need useLayoutEffect to ensure the store
1184
- // subscription callback always has the selector from the latest render commit
1185
- // available, otherwise a store update may happen between render and the effect,
1186
- // which may cause missed updates; we also must ensure the store subscription
1187
- // is created synchronously, otherwise a store update may occur before the
1188
- // subscription is created and an inconsistent state may be observed
1189
-
1190
- var useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? react["useLayoutEffect"] : react["useEffect"];
1191
- // CONCATENATED MODULE: ./node_modules/react-redux/es/components/connectAdvanced.js
1192
 
 
1193
 
 
 
1194
 
 
1195
 
 
 
 
 
1196
 
 
 
 
 
 
 
 
1197
 
1198
 
1199
- // Define some constant arrays just to avoid re-creating these
 
 
1200
 
1201
- var EMPTY_ARRAY = [];
1202
- var NO_SUBSCRIPTION_ARRAY = [null, null];
 
 
 
 
 
 
 
 
 
 
 
 
1203
 
1204
- var stringifyComponent = function stringifyComponent(Comp) {
1205
- try {
1206
- return JSON.stringify(Comp);
1207
- } catch (err) {
1208
- return String(Comp);
1209
  }
1210
- };
1211
-
1212
- function storeStateUpdatesReducer(state, action) {
1213
- var updateCount = state[1];
1214
- return [action.payload, updateCount + 1];
1215
- }
1216
 
1217
- function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
1218
- useIsomorphicLayoutEffect(function () {
1219
- return effectFunc.apply(void 0, effectArgs);
1220
- }, dependencies);
1221
- }
1222
 
1223
- function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs) {
1224
- // We want to capture the wrapper props and child props we used for later comparisons
1225
- lastWrapperProps.current = wrapperProps;
1226
- lastChildProps.current = actualChildProps;
1227
- renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update
1228
 
1229
- if (childPropsFromStoreUpdate.current) {
1230
- childPropsFromStoreUpdate.current = null;
1231
- notifyNestedSubs();
1232
  }
1233
- }
1234
-
1235
- function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch) {
1236
- // If we're not subscribed to the store, nothing to do here
1237
- if (!shouldHandleStateChanges) return; // Capture values for checking if and when this component unmounts
1238
-
1239
- var didUnsubscribe = false;
1240
- var lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component
1241
 
1242
- var checkForUpdates = function checkForUpdates() {
1243
- if (didUnsubscribe) {
1244
- // Don't run stale listeners.
1245
- // Redux doesn't guarantee unsubscriptions happen until next dispatch.
1246
- return;
1247
- }
1248
-
1249
- var latestStoreState = store.getState();
1250
- var newChildProps, error;
1251
 
1252
- try {
1253
- // Actually run the selector with the most recent store state and wrapper props
1254
- // to determine what the child props should be
1255
- newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
1256
- } catch (e) {
1257
- error = e;
1258
- lastThrownError = e;
1259
  }
1260
 
1261
- if (!error) {
1262
- lastThrownError = null;
1263
- } // If the child props haven't changed, nothing to do here - cascade the subscription update
1264
-
1265
-
1266
- if (newChildProps === lastChildProps.current) {
1267
- if (!renderIsScheduled.current) {
1268
- notifyNestedSubs();
1269
- }
1270
- } else {
1271
- // Save references to the new child props. Note that we track the "child props from store update"
1272
- // as a ref instead of a useState/useReducer because we need a way to determine if that value has
1273
- // been processed. If this went into useState/useReducer, we couldn't clear out the value without
1274
- // forcing another re-render, which we don't want.
1275
- lastChildProps.current = newChildProps;
1276
- childPropsFromStoreUpdate.current = newChildProps;
1277
- renderIsScheduled.current = true; // If the child props _did_ change (or we caught an error), this wrapper component needs to re-render
1278
-
1279
- forceComponentUpdateDispatch({
1280
- type: 'STORE_UPDATED',
1281
- payload: {
1282
- error: error
1283
- }
1284
- });
1285
- }
1286
- }; // Actually subscribe to the nearest connected ancestor (or store)
1287
 
 
 
 
1288
 
1289
- subscription.onStateChange = checkForUpdates;
1290
- subscription.trySubscribe(); // Pull data from the store after first render in case the store has
1291
- // changed since we began.
1292
 
1293
- checkForUpdates();
 
 
 
 
 
 
 
 
 
 
 
 
1294
 
1295
- var unsubscribeWrapper = function unsubscribeWrapper() {
1296
- didUnsubscribe = true;
1297
- subscription.tryUnsubscribe();
1298
- subscription.onStateChange = null;
1299
 
1300
- if (lastThrownError) {
1301
- // It's possible that we caught an error due to a bad mapState function, but the
1302
- // parent re-rendered without this component and we're about to unmount.
1303
- // This shouldn't happen as long as we do top-down subscriptions correctly, but
1304
- // if we ever do those wrong, this throw will surface the error in our tests.
1305
- // In that case, throw the error from here so it doesn't get lost.
1306
- throw lastThrownError;
1307
- }
1308
- };
1309
 
1310
- return unsubscribeWrapper;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1311
  }
1312
-
1313
- var initStateUpdates = function initStateUpdates() {
1314
- return [null, 0];
 
 
 
1315
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1316
 
1317
- function connectAdvanced(
1318
- /*
1319
- selectorFactory is a func that is responsible for returning the selector function used to
1320
- compute new props from state, props, and dispatch. For example:
1321
- export default connectAdvanced((dispatch, options) => (state, props) => ({
1322
- thing: state.things[props.thingId],
1323
- saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
1324
- }))(YourComponent)
1325
- Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
1326
- outside of their selector as an optimization. Options passed to connectAdvanced are passed to
1327
- the selectorFactory, along with displayName and WrappedComponent, as the second argument.
1328
- Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
1329
- props. Do not use connectAdvanced directly without memoizing results between calls to your
1330
- selector, otherwise the Connect component will re-render on every state or props change.
1331
- */
1332
- selectorFactory, // options object:
1333
- _ref) {
1334
- if (_ref === void 0) {
1335
- _ref = {};
1336
- }
1337
-
1338
- var _ref2 = _ref,
1339
- _ref2$getDisplayName = _ref2.getDisplayName,
1340
- getDisplayName = _ref2$getDisplayName === void 0 ? function (name) {
1341
- return "ConnectAdvanced(" + name + ")";
1342
- } : _ref2$getDisplayName,
1343
- _ref2$methodName = _ref2.methodName,
1344
- methodName = _ref2$methodName === void 0 ? 'connectAdvanced' : _ref2$methodName,
1345
- _ref2$renderCountProp = _ref2.renderCountProp,
1346
- renderCountProp = _ref2$renderCountProp === void 0 ? undefined : _ref2$renderCountProp,
1347
- _ref2$shouldHandleSta = _ref2.shouldHandleStateChanges,
1348
- shouldHandleStateChanges = _ref2$shouldHandleSta === void 0 ? true : _ref2$shouldHandleSta,
1349
- _ref2$storeKey = _ref2.storeKey,
1350
- storeKey = _ref2$storeKey === void 0 ? 'store' : _ref2$storeKey,
1351
- _ref2$withRef = _ref2.withRef,
1352
- withRef = _ref2$withRef === void 0 ? false : _ref2$withRef,
1353
- _ref2$forwardRef = _ref2.forwardRef,
1354
- forwardRef = _ref2$forwardRef === void 0 ? false : _ref2$forwardRef,
1355
- _ref2$context = _ref2.context,
1356
- context = _ref2$context === void 0 ? ReactReduxContext : _ref2$context,
1357
- connectOptions = _objectWithoutPropertiesLoose(_ref2, ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"]);
1358
-
1359
- if (false) { var customStoreWarningMessage; }
1360
-
1361
- var Context = context;
1362
- return function wrapWithConnect(WrappedComponent) {
1363
- if (false) {}
1364
-
1365
- var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
1366
- var displayName = getDisplayName(wrappedComponentName);
1367
-
1368
- var selectorFactoryOptions = _extends({}, connectOptions, {
1369
- getDisplayName: getDisplayName,
1370
- methodName: methodName,
1371
- renderCountProp: renderCountProp,
1372
- shouldHandleStateChanges: shouldHandleStateChanges,
1373
- storeKey: storeKey,
1374
- displayName: displayName,
1375
- wrappedComponentName: wrappedComponentName,
1376
- WrappedComponent: WrappedComponent
1377
- });
1378
-
1379
- var pure = connectOptions.pure;
1380
-
1381
- function createChildSelector(store) {
1382
- return selectorFactory(store.dispatch, selectorFactoryOptions);
1383
- } // If we aren't running in "pure" mode, we don't want to memoize values.
1384
- // To avoid conditionally calling hooks, we fall back to a tiny wrapper
1385
- // that just executes the given callback immediately.
1386
-
1387
-
1388
- var usePureOnlyMemo = pure ? react["useMemo"] : function (callback) {
1389
- return callback();
1390
- };
1391
-
1392
- function ConnectFunction(props) {
1393
- var _useMemo = Object(react["useMemo"])(function () {
1394
- // Distinguish between actual "data" props that were passed to the wrapper component,
1395
- // and values needed to control behavior (forwarded refs, alternate context instances).
1396
- // To maintain the wrapperProps object reference, memoize this destructuring.
1397
- var reactReduxForwardedRef = props.reactReduxForwardedRef,
1398
- wrapperProps = _objectWithoutPropertiesLoose(props, ["reactReduxForwardedRef"]);
1399
-
1400
- return [props.context, reactReduxForwardedRef, wrapperProps];
1401
- }, [props]),
1402
- propsContext = _useMemo[0],
1403
- reactReduxForwardedRef = _useMemo[1],
1404
- wrapperProps = _useMemo[2];
1405
 
1406
- var ContextToUse = Object(react["useMemo"])(function () {
1407
- // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
1408
- // Memoize the check that determines which context instance we should use.
1409
- return propsContext && propsContext.Consumer && Object(react_is["isContextConsumer"])( /*#__PURE__*/react_default.a.createElement(propsContext.Consumer, null)) ? propsContext : Context;
1410
- }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
1411
 
1412
- var contextValue = Object(react["useContext"])(ContextToUse); // The store _must_ exist as either a prop or in context.
1413
- // We'll check to see if it _looks_ like a Redux store first.
1414
- // This allows us to pass through a `store` prop that is just a plain value.
1415
 
1416
- var didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
1417
- var didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
1418
 
1419
- if (false) {} // Based on the previous check, one of these must be true
1420
 
1421
 
1422
- var store = didStoreComeFromProps ? props.store : contextValue.store;
1423
- var childPropsSelector = Object(react["useMemo"])(function () {
1424
- // The child props selector needs the store reference as an input.
1425
- // Re-create this selector whenever the store changes.
1426
- return createChildSelector(store);
1427
- }, [store]);
1428
 
1429
- var _useMemo2 = Object(react["useMemo"])(function () {
1430
- if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
1431
- // connected to the store via props shouldn't use subscription from context, or vice versa.
1432
 
1433
- var subscription = new Subscription(store, didStoreComeFromProps ? null : contextValue.subscription); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in
1434
- // the middle of the notification loop, where `subscription` will then be null. This can
1435
- // probably be avoided if Subscription's listeners logic is changed to not call listeners
1436
- // that have been unsubscribed in the middle of the notification loop.
1437
 
1438
- var notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);
1439
- return [subscription, notifyNestedSubs];
1440
- }, [store, didStoreComeFromProps, contextValue]),
1441
- subscription = _useMemo2[0],
1442
- notifyNestedSubs = _useMemo2[1]; // Determine what {store, subscription} value should be put into nested context, if necessary,
1443
- // and memoize that value to avoid unnecessary context updates.
1444
 
1445
 
1446
- var overriddenContextValue = Object(react["useMemo"])(function () {
1447
- if (didStoreComeFromProps) {
1448
- // This component is directly subscribed to a store from props.
1449
- // We don't want descendants reading from this store - pass down whatever
1450
- // the existing context value is from the nearest connected ancestor.
1451
- return contextValue;
1452
- } // Otherwise, put this component's subscription instance into context, so that
1453
- // connected descendants won't update until after this component is done
1454
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1455
 
1456
- return _extends({}, contextValue, {
1457
- subscription: subscription
1458
- });
1459
- }, [didStoreComeFromProps, contextValue, subscription]); // We need to force this wrapper component to re-render whenever a Redux store update
1460
- // causes a change to the calculated child component props (or we caught an error in mapState)
1461
 
1462
- var _useReducer = Object(react["useReducer"])(storeStateUpdatesReducer, EMPTY_ARRAY, initStateUpdates),
1463
- _useReducer$ = _useReducer[0],
1464
- previousStateUpdateResult = _useReducer$[0],
1465
- forceComponentUpdateDispatch = _useReducer[1]; // Propagate any mapState/mapDispatch errors upwards
 
 
 
 
 
 
1466
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1467
 
1468
- if (previousStateUpdateResult && previousStateUpdateResult.error) {
1469
- throw previousStateUpdateResult.error;
1470
- } // Set up refs to coordinate values between the subscription effect and the render logic
1471
 
 
 
1472
 
1473
- var lastChildProps = Object(react["useRef"])();
1474
- var lastWrapperProps = Object(react["useRef"])(wrapperProps);
1475
- var childPropsFromStoreUpdate = Object(react["useRef"])();
1476
- var renderIsScheduled = Object(react["useRef"])(false);
1477
- var actualChildProps = usePureOnlyMemo(function () {
1478
- // Tricky logic here:
1479
- // - This render may have been triggered by a Redux store update that produced new child props
1480
- // - However, we may have gotten new wrapper props after that
1481
- // If we have new child props, and the same wrapper props, we know we should use the new child props as-is.
1482
- // But, if we have new wrapper props, those might change the child props, so we have to recalculate things.
1483
- // So, we'll use the child props from store update only if the wrapper props are the same as last time.
1484
- if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {
1485
- return childPropsFromStoreUpdate.current;
1486
- } // TODO We're reading the store directly in render() here. Bad idea?
1487
- // This will likely cause Bad Things (TM) to happen in Concurrent Mode.
1488
- // Note that we do this because on renders _not_ caused by store updates, we need the latest store state
1489
- // to determine what the child props should be.
1490
 
 
 
1491
 
1492
- return childPropsSelector(store.getState(), wrapperProps);
1493
- }, [store, previousStateUpdateResult, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns
1494
- // about useLayoutEffect in SSR, so we try to detect environment and fall back to
1495
- // just useEffect instead to avoid the warning, since neither will run anyway.
 
1496
 
1497
- useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs]); // Our re-subscribe logic only runs when the store/subscription setup changes
 
 
1498
 
1499
- useIsomorphicLayoutEffectWithArgs(subscribeUpdates, [shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch], [store, subscription, childPropsSelector]); // Now that all that's done, we can finally try to actually render the child component.
1500
- // We memoize the elements for the rendered child component as an optimization.
 
1501
 
1502
- var renderedWrappedComponent = Object(react["useMemo"])(function () {
1503
- return /*#__PURE__*/react_default.a.createElement(WrappedComponent, _extends({}, actualChildProps, {
1504
- ref: reactReduxForwardedRef
1505
- }));
1506
- }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
1507
- // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
1508
 
1509
- var renderedChild = Object(react["useMemo"])(function () {
1510
- if (shouldHandleStateChanges) {
1511
- // If this component is subscribed to store updates, we need to pass its own
1512
- // subscription instance down to our descendants. That means rendering the same
1513
- // Context instance, and putting a different value into the context.
1514
- return /*#__PURE__*/react_default.a.createElement(ContextToUse.Provider, {
1515
- value: overriddenContextValue
1516
- }, renderedWrappedComponent);
1517
- }
1518
 
1519
- return renderedWrappedComponent;
1520
- }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);
1521
- return renderedChild;
1522
- } // If we're in "pure" mode, ensure our wrapper component only re-renders when incoming props have changed.
1523
 
 
 
1524
 
1525
- var Connect = pure ? react_default.a.memo(ConnectFunction) : ConnectFunction;
1526
- Connect.WrappedComponent = WrappedComponent;
1527
- Connect.displayName = displayName;
 
1528
 
1529
- if (forwardRef) {
1530
- var forwarded = react_default.a.forwardRef(function forwardConnectRef(props, ref) {
1531
- return /*#__PURE__*/react_default.a.createElement(Connect, _extends({}, props, {
1532
- reactReduxForwardedRef: ref
1533
- }));
1534
- });
1535
- forwarded.displayName = displayName;
1536
- forwarded.WrappedComponent = WrappedComponent;
1537
- return hoist_non_react_statics_cjs_default()(forwarded, WrappedComponent);
1538
- }
1539
 
1540
- return hoist_non_react_statics_cjs_default()(Connect, WrappedComponent);
1541
- };
1542
- }
1543
- // CONCATENATED MODULE: ./node_modules/react-redux/es/utils/shallowEqual.js
1544
- function is(x, y) {
1545
- if (x === y) {
1546
- return x !== 0 || y !== 0 || 1 / x === 1 / y;
1547
- } else {
1548
- return x !== x && y !== y;
1549
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1550
  }
 
1551
 
1552
- function shallowEqual(objA, objB) {
1553
- if (is(objA, objB)) return true;
1554
-
1555
- if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
1556
- return false;
1557
- }
1558
 
1559
- var keysA = Object.keys(objA);
1560
- var keysB = Object.keys(objB);
1561
- if (keysA.length !== keysB.length) return false;
1562
 
1563
- for (var i = 0; i < keysA.length; i++) {
1564
- if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
1565
- return false;
1566
- }
1567
- }
1568
 
1569
- return true;
 
1570
  }
1571
- // EXTERNAL MODULE: ./node_modules/redux/es/redux.js
1572
- var redux = __webpack_require__(102);
1573
 
1574
- // CONCATENATED MODULE: ./node_modules/react-redux/es/utils/isPlainObject.js
 
 
 
1575
  /**
1576
- * @param {any} obj The object to inspect.
1577
- * @returns {boolean} True if the argument appears to be a plain object.
1578
  */
1579
- function isPlainObject(obj) {
1580
- if (typeof obj !== 'object' || obj === null) return false;
1581
- var proto = Object.getPrototypeOf(obj);
1582
- if (proto === null) return true;
1583
- var baseProto = proto;
1584
-
1585
- while (Object.getPrototypeOf(baseProto) !== null) {
1586
- baseProto = Object.getPrototypeOf(baseProto);
1587
- }
1588
 
1589
- return proto === baseProto;
1590
- }
1591
- // CONCATENATED MODULE: ./node_modules/react-redux/es/utils/warning.js
1592
- /**
1593
- * Prints a warning in the console if it exists.
1594
- *
1595
- * @param {String} message The warning message.
1596
- * @returns {void}
1597
- */
1598
- function warning(message) {
1599
- /* eslint-disable no-console */
1600
- if (typeof console !== 'undefined' && typeof console.error === 'function') {
1601
- console.error(message);
1602
- }
1603
- /* eslint-enable no-console */
 
 
 
 
1604
 
 
1605
 
1606
- try {
1607
- // This error was thrown as a convenience so that if you enable
1608
- // "break on all exceptions" in your console,
1609
- // it would pause the execution at this line.
1610
- throw new Error(message);
1611
- /* eslint-disable no-empty */
1612
- } catch (e) {}
1613
- /* eslint-enable no-empty */
1614
 
1615
- }
1616
- // CONCATENATED MODULE: ./node_modules/react-redux/es/utils/verifyPlainObject.js
 
1617
 
 
 
 
 
 
 
 
 
 
 
 
1618
 
1619
- function verifyPlainObject(value, displayName, methodName) {
1620
- if (!isPlainObject(value)) {
1621
- warning(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
1622
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1623
  }
1624
- // CONCATENATED MODULE: ./node_modules/react-redux/es/connect/wrapMapToProps.js
 
 
 
1625
 
1626
- function wrapMapToPropsConstant(getConstant) {
1627
- return function initConstantSelector(dispatch, options) {
1628
- var constant = getConstant(dispatch, options);
1629
 
1630
- function constantSelector() {
1631
- return constant;
1632
- }
1633
 
1634
- constantSelector.dependsOnOwnProps = false;
1635
- return constantSelector;
1636
- };
1637
- } // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args
1638
- // to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine
1639
- // whether mapToProps needs to be invoked when props have changed.
1640
- //
1641
- // A length of one signals that mapToProps does not depend on props from the parent component.
1642
- // A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
1643
- // therefore not reporting its length accurately..
 
 
 
 
1644
 
1645
- function getDependsOnOwnProps(mapToProps) {
1646
- return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
1647
- } // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,
1648
- // this function wraps mapToProps in a proxy function which does several things:
1649
- //
1650
- // * Detects whether the mapToProps function being called depends on props, which
1651
- // is used by selectorFactory to decide if it should reinvoke on props changes.
1652
- //
1653
- // * On first call, handles mapToProps if returns another function, and treats that
1654
- // new function as the true mapToProps for subsequent calls.
1655
- //
1656
- // * On first call, verifies the first result is a plain object, in order to warn
1657
- // the developer that their mapToProps function is not returning a valid result.
1658
- //
1659
 
1660
- function wrapMapToPropsFunc(mapToProps, methodName) {
1661
- return function initProxySelector(dispatch, _ref) {
1662
- var displayName = _ref.displayName;
1663
 
1664
- var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
1665
- return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch);
1666
- }; // allow detectFactoryAndVerify to get ownProps
1667
 
 
 
1668
 
1669
- proxy.dependsOnOwnProps = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1670
 
1671
- proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
1672
- proxy.mapToProps = mapToProps;
1673
- proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
1674
- var props = proxy(stateOrDispatch, ownProps);
 
 
 
1675
 
1676
- if (typeof props === 'function') {
1677
- proxy.mapToProps = props;
1678
- proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
1679
- props = proxy(stateOrDispatch, ownProps);
1680
- }
1681
 
1682
- if (false) {}
1683
- return props;
1684
- };
 
 
1685
 
1686
- return proxy;
1687
- };
1688
  }
1689
- // CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mapDispatchToProps.js
1690
 
 
 
 
 
 
 
 
 
 
 
 
1691
 
1692
- function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {
1693
- return typeof mapDispatchToProps === 'function' ? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps') : undefined;
1694
- }
1695
- function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {
1696
- return !mapDispatchToProps ? wrapMapToPropsConstant(function (dispatch) {
1697
- return {
1698
- dispatch: dispatch
1699
- };
1700
- }) : undefined;
1701
- }
1702
- function whenMapDispatchToPropsIsObject(mapDispatchToProps) {
1703
- return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? wrapMapToPropsConstant(function (dispatch) {
1704
- return Object(redux["b" /* bindActionCreators */])(mapDispatchToProps, dispatch);
1705
- }) : undefined;
1706
- }
1707
- /* harmony default export */ var connect_mapDispatchToProps = ([whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject]);
1708
- // CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mapStateToProps.js
1709
 
1710
- function whenMapStateToPropsIsFunction(mapStateToProps) {
1711
- return typeof mapStateToProps === 'function' ? wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') : undefined;
1712
- }
1713
- function whenMapStateToPropsIsMissing(mapStateToProps) {
1714
- return !mapStateToProps ? wrapMapToPropsConstant(function () {
1715
- return {};
1716
- }) : undefined;
1717
  }
1718
- /* harmony default export */ var connect_mapStateToProps = ([whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing]);
1719
- // CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mergeProps.js
1720
 
 
 
1721
 
1722
- function defaultMergeProps(stateProps, dispatchProps, ownProps) {
1723
- return _extends({}, ownProps, stateProps, dispatchProps);
 
 
 
 
 
 
 
 
1724
  }
1725
- function wrapMergePropsFunc(mergeProps) {
1726
- return function initMergePropsProxy(dispatch, _ref) {
1727
- var displayName = _ref.displayName,
1728
- pure = _ref.pure,
1729
- areMergedPropsEqual = _ref.areMergedPropsEqual;
1730
- var hasRunOnce = false;
1731
- var mergedProps;
1732
- return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
1733
- var nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
1734
 
1735
- if (hasRunOnce) {
1736
- if (!pure || !areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
1737
- } else {
1738
- hasRunOnce = true;
1739
- mergedProps = nextMergedProps;
1740
- if (false) {}
1741
- }
 
1742
 
1743
- return mergedProps;
1744
- };
1745
  };
1746
  }
1747
- function whenMergePropsIsFunction(mergeProps) {
1748
- return typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : undefined;
1749
- }
1750
- function whenMergePropsIsOmitted(mergeProps) {
1751
- return !mergeProps ? function () {
1752
- return defaultMergeProps;
1753
- } : undefined;
1754
- }
1755
- /* harmony default export */ var connect_mergeProps = ([whenMergePropsIsFunction, whenMergePropsIsOmitted]);
1756
- // CONCATENATED MODULE: ./node_modules/react-redux/es/connect/verifySubselectors.js
1757
 
1758
 
1759
- function verify(selector, methodName, displayName) {
1760
- if (!selector) {
1761
- throw new Error("Unexpected value for " + methodName + " in " + displayName + ".");
1762
- } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {
1763
- if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
1764
- warning("The selector for " + methodName + " of " + displayName + " did not specify a value for dependsOnOwnProps.");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1765
  }
1766
  }
1767
- }
1768
 
1769
- function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps, displayName) {
1770
- verify(mapStateToProps, 'mapStateToProps', displayName);
1771
- verify(mapDispatchToProps, 'mapDispatchToProps', displayName);
1772
- verify(mergeProps, 'mergeProps', displayName);
1773
- }
1774
- // CONCATENATED MODULE: ./node_modules/react-redux/es/connect/selectorFactory.js
1775
 
 
 
 
 
 
 
 
 
 
1776
 
1777
- function impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {
1778
- return function impureFinalPropsSelector(state, ownProps) {
1779
- return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);
1780
- };
1781
- }
1782
- function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, _ref) {
1783
- var areStatesEqual = _ref.areStatesEqual,
1784
- areOwnPropsEqual = _ref.areOwnPropsEqual,
1785
- areStatePropsEqual = _ref.areStatePropsEqual;
1786
- var hasRunAtLeastOnce = false;
1787
- var state;
1788
- var ownProps;
1789
- var stateProps;
1790
- var dispatchProps;
1791
- var mergedProps;
1792
 
1793
- function handleFirstCall(firstState, firstOwnProps) {
1794
- state = firstState;
1795
- ownProps = firstOwnProps;
1796
- stateProps = mapStateToProps(state, ownProps);
1797
- dispatchProps = mapDispatchToProps(dispatch, ownProps);
1798
- mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
1799
- hasRunAtLeastOnce = true;
1800
- return mergedProps;
1801
  }
1802
 
1803
- function handleNewPropsAndNewState() {
1804
- stateProps = mapStateToProps(state, ownProps);
1805
- if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
1806
- mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
1807
- return mergedProps;
1808
- }
1809
 
1810
- function handleNewProps() {
1811
- if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
1812
- if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
1813
- mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
1814
- return mergedProps;
1815
  }
1816
 
1817
- function handleNewState() {
1818
- var nextStateProps = mapStateToProps(state, ownProps);
1819
- var statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
1820
- stateProps = nextStateProps;
1821
- if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
1822
- return mergedProps;
1823
  }
1824
 
1825
- function handleSubsequentCalls(nextState, nextOwnProps) {
1826
- var propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
1827
- var stateChanged = !areStatesEqual(nextState, state);
1828
- state = nextState;
1829
- ownProps = nextOwnProps;
1830
- if (propsChanged && stateChanged) return handleNewPropsAndNewState();
1831
- if (propsChanged) return handleNewProps();
1832
- if (stateChanged) return handleNewState();
1833
- return mergedProps;
1834
- }
1835
 
1836
- return function pureFinalPropsSelector(nextState, nextOwnProps) {
1837
- return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
1838
  };
1839
- } // TODO: Add more comments
1840
- // If pure is true, the selector returned by selectorFactory will memoize its results,
1841
- // allowing connectAdvanced's shouldComponentUpdate to return false if final
1842
- // props have not changed. If false, the selector will always return a new
1843
- // object and shouldComponentUpdate will always return true.
1844
 
1845
- function finalPropsSelectorFactory(dispatch, _ref2) {
1846
- var initMapStateToProps = _ref2.initMapStateToProps,
1847
- initMapDispatchToProps = _ref2.initMapDispatchToProps,
1848
- initMergeProps = _ref2.initMergeProps,
1849
- options = _objectWithoutPropertiesLoose(_ref2, ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"]);
1850
 
1851
- var mapStateToProps = initMapStateToProps(dispatch, options);
1852
- var mapDispatchToProps = initMapDispatchToProps(dispatch, options);
1853
- var mergeProps = initMergeProps(dispatch, options);
1854
 
1855
- if (false) {}
 
 
1856
 
1857
- var selectorFactory = options.pure ? pureFinalPropsSelectorFactory : impureFinalPropsSelectorFactory;
1858
- return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
 
 
 
1859
  }
1860
- // CONCATENATED MODULE: ./node_modules/react-redux/es/connect/connect.js
1861
 
 
 
 
 
 
 
 
 
1862
 
 
 
 
 
 
 
 
 
 
1863
 
 
 
 
 
 
 
1864
 
 
 
 
 
1865
 
 
 
 
1866
 
 
 
 
 
 
 
1867
 
1868
 
1869
- /*
1870
- connect is a facade over connectAdvanced. It turns its args into a compatible
1871
- selectorFactory, which has the signature:
1872
 
1873
- (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps
1874
-
1875
- connect passes its args to connectAdvanced as options, which will in turn pass them to
1876
- selectorFactory each time a Connect component instance is instantiated or hot reloaded.
1877
 
1878
- selectorFactory returns a final props selector from its mapStateToProps,
1879
- mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,
1880
- mergePropsFactories, and pure args.
1881
 
1882
- The resulting final props selector is called by the Connect component instance whenever
1883
- it receives new props or store state.
1884
- */
1885
 
1886
- function match(arg, factories, name) {
1887
- for (var i = factories.length - 1; i >= 0; i--) {
1888
- var result = factories[i](arg);
1889
- if (result) return result;
1890
- }
1891
 
1892
- return function (dispatch, options) {
1893
- throw new Error("Invalid value of type " + typeof arg + " for " + name + " argument when connecting component " + options.wrappedComponentName + ".");
1894
- };
1895
- }
1896
 
1897
- function strictEqual(a, b) {
1898
- return a === b;
1899
- } // createConnect with default args builds the 'official' connect behavior. Calling it with
1900
- // different options opens up some testing and extensibility scenarios
1901
 
1902
 
1903
- function createConnect(_temp) {
1904
- var _ref = _temp === void 0 ? {} : _temp,
1905
- _ref$connectHOC = _ref.connectHOC,
1906
- connectHOC = _ref$connectHOC === void 0 ? connectAdvanced : _ref$connectHOC,
1907
- _ref$mapStateToPropsF = _ref.mapStateToPropsFactories,
1908
- mapStateToPropsFactories = _ref$mapStateToPropsF === void 0 ? connect_mapStateToProps : _ref$mapStateToPropsF,
1909
- _ref$mapDispatchToPro = _ref.mapDispatchToPropsFactories,
1910
- mapDispatchToPropsFactories = _ref$mapDispatchToPro === void 0 ? connect_mapDispatchToProps : _ref$mapDispatchToPro,
1911
- _ref$mergePropsFactor = _ref.mergePropsFactories,
1912
- mergePropsFactories = _ref$mergePropsFactor === void 0 ? connect_mergeProps : _ref$mergePropsFactor,
1913
- _ref$selectorFactory = _ref.selectorFactory,
1914
- selectorFactory = _ref$selectorFactory === void 0 ? finalPropsSelectorFactory : _ref$selectorFactory;
1915
 
1916
- return function connect(mapStateToProps, mapDispatchToProps, mergeProps, _ref2) {
1917
- if (_ref2 === void 0) {
1918
- _ref2 = {};
1919
  }
 
 
 
 
 
 
 
 
 
1920
 
1921
- var _ref3 = _ref2,
1922
- _ref3$pure = _ref3.pure,
1923
- pure = _ref3$pure === void 0 ? true : _ref3$pure,
1924
- _ref3$areStatesEqual = _ref3.areStatesEqual,
1925
- areStatesEqual = _ref3$areStatesEqual === void 0 ? strictEqual : _ref3$areStatesEqual,
1926
- _ref3$areOwnPropsEqua = _ref3.areOwnPropsEqual,
1927
- areOwnPropsEqual = _ref3$areOwnPropsEqua === void 0 ? shallowEqual : _ref3$areOwnPropsEqua,
1928
- _ref3$areStatePropsEq = _ref3.areStatePropsEqual,
1929
- areStatePropsEqual = _ref3$areStatePropsEq === void 0 ? shallowEqual : _ref3$areStatePropsEq,
1930
- _ref3$areMergedPropsE = _ref3.areMergedPropsEqual,
1931
- areMergedPropsEqual = _ref3$areMergedPropsE === void 0 ? shallowEqual : _ref3$areMergedPropsE,
1932
- extraOptions = _objectWithoutPropertiesLoose(_ref3, ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"]);
1933
 
1934
- var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
1935
- var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
1936
- var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');
1937
- return connectHOC(selectorFactory, _extends({
1938
- // used in error messages
1939
- methodName: 'connect',
1940
- // used to compute Connect's displayName from the wrapped component's displayName.
1941
- getDisplayName: function getDisplayName(name) {
1942
- return "Connect(" + name + ")";
1943
- },
1944
- // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
1945
- shouldHandleStateChanges: Boolean(mapStateToProps),
1946
- // passed through to selectorFactory
1947
- initMapStateToProps: initMapStateToProps,
1948
- initMapDispatchToProps: initMapDispatchToProps,
1949
- initMergeProps: initMergeProps,
1950
- pure: pure,
1951
- areStatesEqual: areStatesEqual,
1952
- areOwnPropsEqual: areOwnPropsEqual,
1953
- areStatePropsEqual: areStatePropsEqual,
1954
- areMergedPropsEqual: areMergedPropsEqual
1955
- }, extraOptions));
1956
- };
1957
- }
1958
- /* harmony default export */ var connect_connect = (/*#__PURE__*/createConnect());
1959
- // CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useReduxContext.js
1960
 
1961
 
1962
- /**
1963
- * A hook to access the value of the `ReactReduxContext`. This is a low-level
1964
- * hook that you should usually not need to call directly.
1965
- *
1966
- * @returns {any} the value of the `ReactReduxContext`
1967
- *
1968
- * @example
1969
- *
1970
- * import React from 'react'
1971
- * import { useReduxContext } from 'react-redux'
1972
- *
1973
- * export const CounterComponent = ({ value }) => {
1974
- * const { store } = useReduxContext()
1975
- * return <div>{store.getState()}</div>
1976
- * }
1977
- */
1978
 
1979
- function useReduxContext_useReduxContext() {
1980
- var contextValue = Object(react["useContext"])(ReactReduxContext);
1981
 
1982
- if (false) {}
1983
 
1984
- return contextValue;
1985
- }
1986
- // CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useStore.js
1987
 
1988
 
1989
 
1990
- /**
1991
- * Hook factory, which creates a `useStore` hook bound to a given context.
1992
- *
1993
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
1994
- * @returns {Function} A `useStore` hook bound to the specified context.
1995
- */
1996
 
1997
- function createStoreHook(context) {
1998
- if (context === void 0) {
1999
- context = ReactReduxContext;
2000
- }
2001
 
2002
- var useReduxContext = context === ReactReduxContext ? useReduxContext_useReduxContext : function () {
2003
- return Object(react["useContext"])(context);
2004
- };
2005
- return function useStore() {
2006
- var _useReduxContext = useReduxContext(),
2007
- store = _useReduxContext.store;
2008
 
2009
- return store;
2010
- };
2011
- }
2012
- /**
2013
- * A hook to access the redux store.
2014
- *
2015
- * @returns {any} the redux store
2016
- *
2017
- * @example
2018
- *
2019
- * import React from 'react'
2020
- * import { useStore } from 'react-redux'
2021
- *
2022
- * export const ExampleComponent = () => {
2023
- * const store = useStore()
2024
- * return <div>{store.getState()}</div>
2025
- * }
2026
- */
2027
-
2028
- var useStore_useStore = /*#__PURE__*/createStoreHook();
2029
- // CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useDispatch.js
2030
 
 
 
 
 
 
 
 
 
 
 
2031
 
2032
- /**
2033
- * Hook factory, which creates a `useDispatch` hook bound to a given context.
2034
- *
2035
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
2036
- * @returns {Function} A `useDispatch` hook bound to the specified context.
2037
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
2038
 
2039
- function createDispatchHook(context) {
2040
- if (context === void 0) {
2041
- context = ReactReduxContext;
2042
  }
2043
 
2044
- var useStore = context === ReactReduxContext ? useStore_useStore : createStoreHook(context);
2045
- return function useDispatch() {
2046
- var store = useStore();
2047
- return store.dispatch;
2048
- };
2049
- }
2050
- /**
2051
- * A hook to access the redux `dispatch` function.
2052
- *
2053
- * @returns {any|function} redux store's `dispatch` function
2054
- *
2055
- * @example
2056
- *
2057
- * import React, { useCallback } from 'react'
2058
- * import { useDispatch } from 'react-redux'
2059
- *
2060
- * export const CounterComponent = ({ value }) => {
2061
- * const dispatch = useDispatch()
2062
- * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
2063
- * return (
2064
- * <div>
2065
- * <span>{value}</span>
2066
- * <button onClick={increaseCounter}>Increase counter</button>
2067
- * </div>
2068
- * )
2069
- * }
2070
- */
2071
-
2072
- var useDispatch = /*#__PURE__*/createDispatchHook();
2073
- // CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useSelector.js
2074
-
2075
-
2076
 
 
2077
 
 
 
2078
 
 
2079
 
2080
- var refEquality = function refEquality(a, b) {
2081
- return a === b;
2082
- };
2083
 
2084
- function useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub) {
2085
- var _useReducer = Object(react["useReducer"])(function (s) {
2086
- return s + 1;
2087
- }, 0),
2088
- forceRender = _useReducer[1];
2089
 
2090
- var subscription = Object(react["useMemo"])(function () {
2091
- return new Subscription(store, contextSub);
2092
- }, [store, contextSub]);
2093
- var latestSubscriptionCallbackError = Object(react["useRef"])();
2094
- var latestSelector = Object(react["useRef"])();
2095
- var latestStoreState = Object(react["useRef"])();
2096
- var latestSelectedState = Object(react["useRef"])();
2097
- var storeState = store.getState();
2098
- var selectedState;
2099
 
2100
- try {
2101
- if (selector !== latestSelector.current || storeState !== latestStoreState.current || latestSubscriptionCallbackError.current) {
2102
- selectedState = selector(storeState);
2103
- } else {
2104
- selectedState = latestSelectedState.current;
2105
- }
2106
- } catch (err) {
2107
- if (latestSubscriptionCallbackError.current) {
2108
- err.message += "\nThe error may be correlated with this previous error:\n" + latestSubscriptionCallbackError.current.stack + "\n\n";
2109
- }
2110
 
2111
- throw err;
2112
- }
2113
 
2114
- useIsomorphicLayoutEffect(function () {
2115
- latestSelector.current = selector;
2116
- latestStoreState.current = storeState;
2117
- latestSelectedState.current = selectedState;
2118
- latestSubscriptionCallbackError.current = undefined;
2119
- });
2120
- useIsomorphicLayoutEffect(function () {
2121
- function checkForUpdates() {
2122
- try {
2123
- var newSelectedState = latestSelector.current(store.getState());
2124
 
2125
- if (equalityFn(newSelectedState, latestSelectedState.current)) {
2126
- return;
2127
- }
 
 
 
2128
 
2129
- latestSelectedState.current = newSelectedState;
2130
- } catch (err) {
2131
- // we ignore all errors here, since when the component
2132
- // is re-rendered, the selectors are called again, and
2133
- // will throw again, if neither props nor store state
2134
- // changed
2135
- latestSubscriptionCallbackError.current = err;
2136
- }
 
 
 
 
 
 
2137
 
2138
- forceRender();
2139
- }
 
 
 
 
 
 
 
 
 
 
 
2140
 
2141
- subscription.onStateChange = checkForUpdates;
2142
- subscription.trySubscribe();
2143
- checkForUpdates();
2144
- return function () {
2145
- return subscription.tryUnsubscribe();
2146
- };
2147
- }, [store, subscription]);
2148
- return selectedState;
2149
  }
2150
  /**
2151
- * Hook factory, which creates a `useSelector` hook bound to a given context.
2152
- *
2153
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
2154
- * @returns {Function} A `useSelector` hook bound to the specified context.
 
 
2155
  */
2156
 
2157
 
2158
- function createSelectorHook(context) {
2159
- if (context === void 0) {
2160
- context = ReactReduxContext;
2161
- }
 
 
2162
 
2163
- var useReduxContext = context === ReactReduxContext ? useReduxContext_useReduxContext : function () {
2164
- return Object(react["useContext"])(context);
2165
- };
2166
- return function useSelector(selector, equalityFn) {
2167
- if (equalityFn === void 0) {
2168
- equalityFn = refEquality;
 
 
 
 
 
 
 
 
 
 
 
2169
  }
2170
 
2171
- if (false) {}
2172
 
2173
- var _useReduxContext = useReduxContext(),
2174
- store = _useReduxContext.store,
2175
- contextSub = _useReduxContext.subscription;
2176
 
2177
- var selectedState = useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub);
2178
- Object(react["useDebugValue"])(selectedState);
2179
- return selectedState;
2180
- };
2181
- }
2182
- /**
2183
- * A hook to access the redux store's state. This hook takes a selector function
2184
- * as an argument. The selector is called with the store state.
2185
- *
2186
- * This hook takes an optional equality comparison function as the second parameter
2187
- * that allows you to customize the way the selected state is compared to determine
2188
- * whether the component needs to be re-rendered.
2189
- *
2190
- * @param {Function} selector the selector function
2191
- * @param {Function=} equalityFn the function that will be used to determine equality
2192
- *
2193
- * @returns {any} the selected state
2194
- *
2195
- * @example
2196
- *
2197
- * import React from 'react'
2198
- * import { useSelector } from 'react-redux'
2199
- *
2200
- * export const CounterComponent = () => {
2201
- * const counter = useSelector(state => state.counter)
2202
- * return <div>{counter}</div>
2203
- * }
2204
- */
2205
 
2206
- var useSelector_useSelector = /*#__PURE__*/createSelectorHook();
2207
- // EXTERNAL MODULE: ./node_modules/react-dom/index.js
2208
- var react_dom = __webpack_require__(25);
2209
 
2210
- // CONCATENATED MODULE: ./node_modules/react-redux/es/utils/reactBatchedUpdates.js
2211
- /* eslint-disable import/no-unresolved */
2212
 
2213
- // CONCATENATED MODULE: ./node_modules/react-redux/es/index.js
 
 
 
2214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2215
 
2216
 
2217
 
@@ -2220,1237 +1960,1210 @@ var react_dom = __webpack_require__(25);
2220
 
2221
 
2222
 
 
 
 
2223
 
2224
- setBatch(react_dom["unstable_batchedUpdates"]);
 
 
 
 
 
 
 
2225
 
 
2226
 
2227
- /***/ }),
2228
- /* 14 */
2229
- /***/ (function(module, exports, __webpack_require__) {
2230
 
2231
- !function(t,n){ true?module.exports=function(t,n,e,i,o){for(n=n.split?n.split("."):n,i=0;i<n.length;i++)t=t?t[n[i]]:o;return t===o?e:t}:undefined}(this);
2232
- //# sourceMappingURL=dlv.umd.js.map
2233
 
 
 
 
 
 
 
 
 
 
 
 
 
2234
 
2235
- /***/ }),
2236
- /* 15 */
2237
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2238
 
2239
- "use strict";
2240
- /* unused harmony export addModel */
2241
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return addRelation; });
2242
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeRelation; });
2243
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return removeRelation; });
2244
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return set; });
2245
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return setSetting; });
2246
- /* unused harmony export setWeekday */
2247
- /* unused harmony export addExcludedDate */
2248
- /* unused harmony export setExcludedDate */
2249
- /* unused harmony export removeExcludedDate */
2250
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addRecord; });
2251
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return removeRecord; });
2252
- /* harmony import */ var buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
2253
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(121);
2254
 
 
 
 
 
2255
 
2256
- /**
2257
- * Add model to store
2258
- * @param {object} data
2259
- * @param {string} model
2260
- */
 
 
 
2261
 
2262
- function addModel(data, model) {
2263
- return {
2264
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"][model].ADD_MODEL,
2265
- payload: data
2266
- };
2267
- }
2268
- /**
2269
- * Add relation between button and group
2270
- * @param {string} button_id
2271
- * @param {string} group_id
2272
- */
2273
 
2274
- function addRelation(button_id, group_id) {
2275
- var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
2276
- return {
2277
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].ADD_RELATION,
2278
- payload: {
2279
- button_id: button_id,
2280
- group_id: group_id,
2281
- index: index
2282
- }
2283
- };
2284
- }
2285
- /**
2286
- * Change relations (for drag n drop)
2287
- * @param {string} button_id button id to change relations
2288
- * @param {string} new_group_id new group id
2289
- */
2290
 
2291
- function changeRelation(button_id, old_group_id, new_group_id, button_index) {
2292
- return {
2293
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].CHANGE_RELATION,
2294
- payload: {
2295
- button_id: button_id,
2296
- old_group_id: old_group_id,
2297
- new_group_id: new_group_id,
2298
- button_index: button_index
2299
- }
2300
- };
2301
- }
2302
- /**
2303
- * Remove relation between button and group
2304
- * @param {string} button_id
2305
- * @param {string} group_id
2306
- */
2307
 
2308
- function removeRelation(button_id, group_id) {
2309
- return {
2310
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].REMOVE_RELATION,
2311
- payload: {
2312
- button_id: button_id,
2313
- group_id: group_id
2314
- }
2315
- };
2316
- }
2317
- /**
2318
- * Set key of model id to value specified
2319
- *
2320
- * @param {string} model model of object to change value on
2321
- * @param {string} id button or group id
2322
- * @param {string} key key of value to change
2323
- * @param {any} value new value to set
2324
- */
2325
 
2326
- var set = function set(model, id, key, value) {
2327
- // Check is value is an array
2328
- if (Array.isArray(value)) {
2329
- return {
2330
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"][model].SET_KEY_FORMAT,
2331
- payload: {
2332
- id: id,
2333
- format: "normal_hover",
2334
- key: key,
2335
- values: value
2336
- }
2337
- };
2338
- } // if not, just set it normally
2339
 
 
2340
 
2341
- return {
2342
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"][model].SET_KEY_VALUE,
2343
- payload: {
2344
- id: id,
2345
- key: key,
2346
- value: value
2347
- }
2348
- };
2349
- };
2350
- var setSetting = function setSetting(setting, value) {
2351
- return {
2352
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].SET_SETTING_VALUE,
2353
- payload: {
2354
- setting: setting,
2355
- value: value
2356
- }
2357
  };
2358
  };
2359
- /**
2360
- * Time Schedule Actions
2361
- */
2362
- //
2363
 
2364
- var setWeekday = function setWeekday(id, weekdayKey, key, value) {
2365
- return {
2366
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].SET_WEEKDAY,
2367
- payload: {
2368
- id: id,
2369
- weekdayKey: weekdayKey,
2370
- key: key,
2371
- value: value
2372
- }
2373
- };
2374
- };
2375
- var addExcludedDate = function addExcludedDate(id) {
2376
- return {
2377
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].ADD_EXCLUDED_DATE,
2378
- payload: {
2379
- id: id
2380
- }
2381
- };
2382
- };
2383
- var setExcludedDate = function setExcludedDate(id, dateKey, key, value) {
2384
- return {
2385
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].SET_EXCLUDED_DATE,
2386
- payload: {
2387
- id: id,
2388
- dateKey: dateKey,
2389
- key: key,
2390
- value: value
2391
- }
2392
- };
2393
- };
2394
- var removeExcludedDate = function removeExcludedDate(id, dateKey) {
2395
- return {
2396
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].REMOVE_EXCLUDED_DATE,
2397
- payload: {
2398
- id: id,
2399
- dateKey: dateKey
2400
- }
2401
- };
2402
- };
2403
- /**
2404
- * Adds record to store
2405
- * @param {object} payload data for new record
2406
- * @param {String} model type of model
2407
- */
2408
 
2409
- function addRecord(data, model) {
2410
- var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
2411
- return {
2412
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"][model].ADD_RECORD,
2413
- payload: {
2414
- record: Object(_helpers__WEBPACK_IMPORTED_MODULE_1__[/* createRecord */ "c"])(data),
2415
- index: index
2416
- }
2417
- };
2418
- }
2419
- /**
2420
- * Removes record to store
2421
- * @param {int} model_id id of model to remove
2422
- * @param {String} model type of model
2423
- */
2424
 
2425
- function removeRecord(model_id, model) {
2426
- return {
2427
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"][model].REMOVE_RECORD,
2428
- payload: {
2429
- model_id: model_id
2430
- }
2431
- };
2432
  }
2433
 
 
 
2434
  /***/ }),
2435
- /* 16 */
2436
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
2437
 
2438
  "use strict";
2439
- /* unused harmony export hexToRgb */
2440
- /* unused harmony export rgbToHex */
2441
- /* unused harmony export hslToRgb */
2442
- /* unused harmony export decomposeColor */
2443
- /* unused harmony export recomposeColor */
2444
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getContrastRatio; });
2445
- /* unused harmony export getLuminance */
2446
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return emphasize; });
2447
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return fade; });
2448
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return darken; });
2449
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return lighten; });
2450
- /* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(535);
2451
 
 
2452
 
2453
- /* eslint-disable no-use-before-define */
 
2454
 
2455
- /**
2456
- * Returns a number whose value is limited to the given range.
2457
- *
2458
- * @param {number} value The value to be clamped
2459
- * @param {number} min The lower boundary of the output range
2460
- * @param {number} max The upper boundary of the output range
2461
- * @returns {number} A number in the range [min, max]
2462
- */
2463
- function clamp(value) {
2464
- var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
2465
- var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
2466
 
2467
- if (false) {}
 
 
 
 
 
 
 
2468
 
2469
- return Math.min(Math.max(min, value), max);
2470
  }
 
 
 
 
 
 
 
 
 
 
2471
  /**
2472
- * Converts a color from CSS hex format to CSS rgb format.
2473
  *
2474
- * @param {string} color - Hex color, i.e. #nnn or #nnnnnn
2475
- * @returns {string} A CSS rgb color string
 
 
 
2476
  */
 
 
 
 
2477
 
 
 
 
 
2478
 
2479
- function hexToRgb(color) {
2480
- color = color.substr(1);
2481
- var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g');
2482
- var colors = color.match(re);
2483
 
2484
- if (colors && colors[0].length === 1) {
2485
- colors = colors.map(function (n) {
2486
- return n + n;
2487
- });
2488
- }
2489
 
2490
- return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) {
2491
- return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
2492
- }).join(', '), ")") : '';
 
2493
  }
2494
 
2495
- function intToHex(int) {
2496
- var hex = int.toString(16);
2497
- return hex.length === 1 ? "0".concat(hex) : hex;
2498
- }
2499
- /**
2500
- * Converts a color from CSS rgb format to CSS hex format.
2501
- *
2502
- * @param {string} color - RGB color, i.e. rgb(n, n, n)
2503
- * @returns {string} A CSS rgb color string, i.e. #nnnnnn
2504
- */
2505
 
 
 
2506
 
2507
- function rgbToHex(color) {
2508
- // Idempotent
2509
- if (color.indexOf('#') === 0) {
2510
- return color;
2511
- }
2512
 
2513
- var _decomposeColor = decomposeColor(color),
2514
- values = _decomposeColor.values;
 
 
2515
 
2516
- return "#".concat(values.map(function (n) {
2517
- return intToHex(n);
2518
- }).join(''));
2519
- }
2520
- /**
2521
- * Converts a color from hsl format to rgb format.
2522
- *
2523
- * @param {string} color - HSL color values
2524
- * @returns {string} rgb color values
2525
- */
 
 
 
 
 
2526
 
2527
- function hslToRgb(color) {
2528
- color = decomposeColor(color);
2529
- var _color = color,
2530
- values = _color.values;
2531
- var h = values[0];
2532
- var s = values[1] / 100;
2533
- var l = values[2] / 100;
2534
- var a = s * Math.min(l, 1 - l);
2535
 
2536
- var f = function f(n) {
2537
- var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;
2538
- return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
2539
- };
2540
 
2541
- var type = 'rgb';
2542
- var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
2543
 
2544
- if (color.type === 'hsla') {
2545
- type += 'a';
2546
- rgb.push(values[3]);
2547
- }
2548
 
2549
- return recomposeColor({
2550
- type: type,
2551
- values: rgb
2552
- });
2553
- }
2554
- /**
2555
- * Returns an object with the type and values of a color.
2556
- *
2557
- * Note: Does not support rgb % values.
2558
- *
2559
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
2560
- * @returns {object} - A MUI color object: {type: string, values: number[]}
2561
- */
2562
 
2563
- function decomposeColor(color) {
2564
- // Idempotent
2565
- if (color.type) {
2566
- return color;
2567
- }
2568
 
2569
- if (color.charAt(0) === '#') {
2570
- return decomposeColor(hexToRgb(color));
2571
- }
 
 
 
 
 
 
 
 
 
 
 
 
2572
 
2573
- var marker = color.indexOf('(');
2574
- var type = color.substring(0, marker);
 
 
2575
 
2576
- if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
2577
- throw new Error( false ? undefined : Object(_material_ui_utils__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(3, color));
2578
- }
 
2579
 
2580
- var values = color.substring(marker + 1, color.length - 1).split(',');
2581
- values = values.map(function (value) {
2582
- return parseFloat(value);
2583
- });
2584
- return {
2585
- type: type,
2586
- values: values
2587
- };
2588
- }
2589
- /**
2590
- * Converts a color object with type and values to a string.
2591
- *
2592
- * @param {object} color - Decomposed color
2593
- * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
2594
- * @param {array} color.values - [n,n,n] or [n,n,n,n]
2595
- * @returns {string} A CSS color string
2596
- */
2597
 
2598
- function recomposeColor(color) {
2599
- var type = color.type;
2600
- var values = color.values;
 
2601
 
2602
- if (type.indexOf('rgb') !== -1) {
2603
- // Only convert the first 3 values to int (i.e. not alpha)
2604
- values = values.map(function (n, i) {
2605
- return i < 3 ? parseInt(n, 10) : n;
2606
- });
2607
- } else if (type.indexOf('hsl') !== -1) {
2608
- values[1] = "".concat(values[1], "%");
2609
- values[2] = "".concat(values[2], "%");
2610
- }
2611
 
2612
- return "".concat(type, "(").concat(values.join(', '), ")");
2613
- }
2614
- /**
2615
- * Calculates the contrast ratio between two colors.
2616
- *
2617
- * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
2618
- *
2619
- * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
2620
- * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
2621
- * @returns {number} A contrast ratio value in the range 0 - 21.
2622
- */
2623
 
2624
- function getContrastRatio(foreground, background) {
2625
- var lumA = getLuminance(foreground);
2626
- var lumB = getLuminance(background);
2627
- return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
2628
- }
2629
- /**
2630
- * The relative brightness of any point in a color space,
2631
- * normalized to 0 for darkest black and 1 for lightest white.
2632
- *
2633
- * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
2634
- *
2635
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
2636
- * @returns {number} The relative brightness of the color in the range 0 - 1
2637
- */
2638
 
2639
- function getLuminance(color) {
2640
- color = decomposeColor(color);
2641
- var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;
2642
- rgb = rgb.map(function (val) {
2643
- val /= 255; // normalized
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2644
 
2645
- return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
2646
- }); // Truncate at 3 digits
2647
 
2648
- return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
2649
- }
2650
- /**
2651
- * Darken or lighten a color, depending on its luminance.
2652
- * Light colors are darkened, dark colors are lightened.
2653
- *
2654
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
2655
- * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
2656
- * @returns {string} A CSS color string. Hex input values are returned as rgb
2657
- */
2658
 
2659
- function emphasize(color) {
2660
- var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
2661
- return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
2662
- }
2663
  /**
2664
- * Set the absolute transparency of a color.
2665
- * Any existing alpha values are overwritten.
2666
- *
2667
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
2668
- * @param {number} value - value to set the alpha channel to in the range 0 -1
2669
- * @returns {string} A CSS color string. Hex input values are returned as rgb
2670
  */
2671
 
2672
- function fade(color, value) {
2673
- color = decomposeColor(color);
2674
- value = clamp(value);
 
 
 
2675
 
2676
- if (color.type === 'rgb' || color.type === 'hsl') {
2677
- color.type += 'a';
2678
- }
2679
 
2680
- color.values[3] = value;
2681
- return recomposeColor(color);
2682
  }
2683
- /**
2684
- * Darkens a color.
2685
- *
2686
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
2687
- * @param {number} coefficient - multiplier in the range 0 - 1
2688
- * @returns {string} A CSS color string. Hex input values are returned as rgb
2689
- */
2690
 
2691
- function darken(color, coefficient) {
2692
- color = decomposeColor(color);
2693
- coefficient = clamp(coefficient);
2694
 
2695
- if (color.type.indexOf('hsl') !== -1) {
2696
- color.values[2] *= 1 - coefficient;
2697
- } else if (color.type.indexOf('rgb') !== -1) {
2698
- for (var i = 0; i < 3; i += 1) {
2699
- color.values[i] *= 1 - coefficient;
 
 
 
 
 
 
 
 
 
 
 
2700
  }
2701
- }
2702
 
2703
- return recomposeColor(color);
2704
- }
2705
- /**
2706
- * Lightens a color.
2707
- *
2708
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
2709
- * @param {number} coefficient - multiplier in the range 0 - 1
2710
- * @returns {string} A CSS color string. Hex input values are returned as rgb
2711
- */
2712
 
2713
- function lighten(color, coefficient) {
2714
- color = decomposeColor(color);
2715
- coefficient = clamp(coefficient);
2716
 
2717
- if (color.type.indexOf('hsl') !== -1) {
2718
- color.values[2] += (100 - color.values[2]) * coefficient;
2719
- } else if (color.type.indexOf('rgb') !== -1) {
2720
- for (var i = 0; i < 3; i += 1) {
2721
- color.values[i] += (255 - color.values[i]) * coefficient;
2722
- }
2723
  }
2724
 
2725
- return recomposeColor(color);
 
 
 
 
2726
  }
2727
 
2728
  /***/ }),
2729
- /* 17 */
2730
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
2731
 
2732
  "use strict";
2733
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useForkRef; });
2734
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2735
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2736
- /* harmony import */ var _setRef__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77);
2737
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2738
 
2739
- function useForkRef(refA, refB) {
2740
- /**
2741
- * This will create a new function if the ref props change and are defined.
2742
- * This means react will call the old forkRef with `null` and the new forkRef
2743
- * with the ref. Cleanup naturally emerges from this behavior
2744
- */
2745
- return react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () {
2746
- if (refA == null && refB == null) {
 
 
 
 
2747
  return null;
2748
- }
2749
-
2750
- return function (refValue) {
2751
- Object(_setRef__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(refA, refValue);
2752
- Object(_setRef__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(refB, refValue);
2753
  };
2754
- }, [refA, refB]);
2755
- }
2756
 
2757
- /***/ }),
2758
- /* 18 */,
2759
- /* 19 */
2760
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2761
 
2762
- "use strict";
2763
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SettingsContainer; });
2764
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2765
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2766
- /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
2767
- /* harmony import */ var _settingsContainer_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1237);
2768
- /* harmony import */ var _settingsContainer_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_settingsContainer_scss__WEBPACK_IMPORTED_MODULE_2__);
2769
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2770
 
2771
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2772
 
2773
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
 
 
2774
 
 
 
 
2775
 
 
 
 
2776
 
 
 
 
 
 
 
 
 
 
2777
 
2778
- function SettingsContainer(_ref) {
2779
- var _ref$className = _ref.className,
2780
- className = _ref$className === void 0 ? null : _ref$className,
2781
- _ref$title = _ref.title,
2782
- title = _ref$title === void 0 ? null : _ref$title,
2783
- _ref$children = _ref.children,
2784
- children = _ref$children === void 0 ? null : _ref$children,
2785
- _ref$fullWidth = _ref.fullWidth,
2786
- fullWidth = _ref$fullWidth === void 0 ? true : _ref$fullWidth,
2787
- props = _objectWithoutProperties(_ref, ["className", "title", "children", "fullWidth"]);
2788
 
2789
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
2790
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])("settings-container", fullWidth && "container-full-width", className)
2791
- }, props), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", {
2792
- className: "settings-title"
2793
- }, title) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
2794
- className: "settings-content"
2795
- }, children));
2796
  }
 
 
 
 
 
 
 
 
 
 
 
2797
 
2798
- /***/ }),
2799
- /* 20 */
2800
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2801
 
2802
- "use strict";
2803
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CollapsibleGroup; });
2804
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2805
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2806
- /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(111);
2807
- /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
2808
- /* harmony import */ var _collapsibleGroup_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1235);
2809
- /* harmony import */ var _collapsibleGroup_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_collapsibleGroup_scss__WEBPACK_IMPORTED_MODULE_3__);
2810
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2811
 
2812
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2813
 
2814
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2815
 
2816
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2817
 
2818
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
2819
 
2820
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
2821
 
2822
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2823
 
2824
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
2825
 
2826
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2827
 
2828
 
2829
 
 
2830
 
2831
 
2832
- function CollapsibleGroup(_ref) {
2833
- var _ref$opened = _ref.opened,
2834
- opened = _ref$opened === void 0 ? false : _ref$opened,
2835
- _ref$title = _ref.title,
2836
- title = _ref$title === void 0 ? "" : _ref$title,
2837
- _ref$bodySpacing = _ref.bodySpacing,
2838
- bodySpacing = _ref$bodySpacing === void 0 ? true : _ref$bodySpacing,
2839
- _ref$className = _ref.className,
2840
- className = _ref$className === void 0 ? null : _ref$className,
2841
- children = _ref.children,
2842
- onSetIsOpened = _ref.onSetIsOpened,
2843
- groupProps = _objectWithoutProperties(_ref, ["opened", "title", "bodySpacing", "className", "children", "onSetIsOpened"]);
2844
 
2845
- if (children == null) return null;
2846
 
2847
- var _useState = Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(opened),
2848
- _useState2 = _slicedToArray(_useState, 2),
2849
- isOpened = _useState2[0],
2850
- setIsOpened = _useState2[1];
2851
 
2852
- Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
2853
- setIsOpened(opened);
2854
- }, [opened]);
2855
 
2856
- var handleClick = function handleClick() {
2857
- var newIsOpened = !isOpened;
2858
- onSetIsOpened && onSetIsOpened(newIsOpened);
2859
- setIsOpened(newIsOpened);
2860
- };
2861
 
2862
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
2863
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])("collapsible-group mdc-card", isOpened && "collapsible-opened", className)
2864
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], _extends({
2865
- onClick: handleClick,
2866
- color: "primary"
2867
- }, groupProps), title, " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", {
2868
- className: "fas fa-chevron-down"
2869
- })), isOpened && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
2870
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(bodySpacing && "collapsible-body")
2871
- }, children));
2872
  }
2873
 
2874
  /***/ }),
2875
- /* 21 */
2876
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2877
 
2878
- "use strict";
2879
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getButtons; });
2880
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getChildrenIndex; });
2881
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getButtonsCount; });
2882
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getGroupCount; });
2883
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return _get; });
2884
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _def; });
2885
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _defs; });
2886
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34);
2887
- /* harmony import */ var buttonizer_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
2888
- /* harmony import */ var buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48);
2889
- /* harmony import */ var buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__);
2890
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(403);
2891
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
2892
- /* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32);
2893
- /* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_4__);
2894
- /* global process */
2895
 
 
 
 
 
 
 
 
2896
 
 
2897
 
 
 
2898
 
 
 
 
 
 
2899
 
2900
- function getButtons(group_id) {
2901
- var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.store.getState();
2902
- if (!state.groups[group_id].children) return null;
2903
- var children = state.groups[group_id].children;
2904
- var buttons = state.buttons;
2905
- var result = {};
2906
- Object.keys(buttons).map(function (obj) {
2907
- if (children.includes(obj)) result[obj] = buttons[obj];
2908
- });
2909
- return result;
2910
- }
2911
- function getChildrenIndex(children) {
2912
- var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _index__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].getState();
2913
- if (!children) return null;
2914
- var buttons = state.buttons;
2915
- var result = {};
2916
- Object.keys(buttons).map(function (obj) {
2917
- if (children.includes(obj)) {
2918
- children.map(function (id, index) {
2919
- if (id === obj) result[index] = buttons[obj];
2920
- });
2921
- }
2922
- });
2923
- return result;
2924
- }
2925
- function getButtonsCount(group_id) {
2926
- var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.store.getState();
2927
- if (!state.groups || !state.groups[group_id]) return 0;
2928
- return state.groups[group_id].children.length;
2929
- }
2930
- function getGroupCount() {
2931
- var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.store.getState();
2932
- if (!state.groups) return 0;
2933
- return Object.keys(state.groups).length;
2934
  }
2935
- /**
2936
- * Get value with format. combine with connect function to remove record arg.
2937
- * @param {string} key to be getted key
2938
- * @param {obj} record object to get key out of
2939
- * @param {string} model (optional) when filled with (button|group), returns default if value not present. when defaults is left blank, returns "" when there is no value.
2940
- * @param {object} options options to apply
2941
- */
2942
 
2943
- function _get(key, record) {
2944
- var model = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
2945
- var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
2946
- var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
2947
- excludeSelf: false
2948
- };
2949
 
2950
- if (typeof record === "undefined" || typeof key === "undefined") {
2951
- console.log("record: " + record);
2952
- console.log("key: " + key);
2953
- throw TypeError("'record' argument or 'key' argument of type undefined");
 
 
 
 
 
 
 
 
 
2954
  }
 
2955
 
2956
- var value = record[key]; // When not in formatted list, don't format.
2957
 
2958
- if (!buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__["dashboard"].formatted.includes(key)) {
2959
- // value == null will be true also if value == undefined, because undefined == null
2960
- if (value == null) {
2961
- // Get default
2962
- return !model ? "" : _def(model, key, parent[key]);
2963
- }
2964
 
2965
- return value;
2966
- }
 
 
 
2967
 
2968
- var parentValue = parent ? buttonizer_constants__WEBPACK_IMPORTED_MODULE_1__[/* formats */ "c"]["normal_hover"].parse(parent[key]) : []; // def returns formatted value
 
 
2969
 
2970
- if (value == null) return !model ? ["", ""] : _defs(model, key, [], parentValue);
2971
- var result = buttonizer_constants__WEBPACK_IMPORTED_MODULE_1__[/* formats */ "c"]["normal_hover"].parse(value);
2972
- return model ? _defs(model, key, result, parentValue, options) : lodash_merge__WEBPACK_IMPORTED_MODULE_4___default()(["", ""], result);
2973
- }
2974
- function _def(model, key) {
2975
- var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
2976
-
2977
- if (!Object.keys(buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__["dashboard"]).includes(model)) {
2978
- console.error("model ".concat(model, " not familiar"));
2979
- return;
2980
- }
2981
-
2982
- if (!Object.keys(buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__["dashboard"][model]).includes(key)) {
2983
- if (false) {}
2984
- return "";
2985
- }
2986
 
2987
- return buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__["dashboard"][model][key] == null ? fallback : buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__["dashboard"][model][key];
 
 
 
 
 
 
 
 
 
2988
  }
2989
- function _defs(model, key) {
2990
- var self = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
2991
- var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
2992
- var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
2993
-
2994
- if (!Object.keys(buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__["dashboard"]).includes(model)) {
2995
- console.error("model ".concat(model, " not familiar"));
2996
- return;
2997
- }
2998
 
2999
- if (!Object.keys(buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__["dashboard"][model]).includes(key)) {
3000
- if (false) {}
3001
- return ["", ""];
3002
- }
3003
-
3004
- var def = buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__["dashboard"][model][key];
3005
- if (key === "background_is_image") console.log(buttonizer_defaults__WEBPACK_IMPORTED_MODULE_2__["dashboard"]);
3006
- if (model === "group") return mergeGroupDefaults(self, def, options);
3007
- if (model === "button") return mergeButtonDefaults(self, parent, def, options);
3008
- }
3009
 
3010
- function mergeGroupDefaults() {
3011
- var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3012
- var def = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
3013
 
3014
- var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
3015
- _ref$excludeSelf = _ref.excludeSelf,
3016
- excludeSelf = _ref$excludeSelf === void 0 ? false : _ref$excludeSelf;
 
 
 
3017
 
3018
- var arr = [self, def, [self[0], self[0]], [def[0], def[0]]];
3019
- if (excludeSelf) arr.shift(); // exclude 'self'
 
 
 
 
3020
 
3021
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default.a.apply(void 0, arr);
3022
- }
3023
 
3024
- function mergeButtonDefaults() {
3025
- var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3026
- var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
3027
- var def = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
3028
 
3029
- var _ref2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
3030
- _ref2$excludeSelf = _ref2.excludeSelf,
3031
- excludeSelf = _ref2$excludeSelf === void 0 ? false : _ref2$excludeSelf;
3032
 
3033
- var arr = [self, parent, [undefined, self[0]], def, [undefined, parent[0]], [undefined, def[0]]];
3034
- if (excludeSelf) arr.shift(); // remove 'self'
3035
 
3036
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default.a.apply(void 0, arr);
 
 
 
 
 
3037
  }
3038
 
3039
  /***/ }),
3040
- /* 22 */
3041
- /***/ (function(module, exports, __webpack_require__) {
3042
 
3043
- var isObject = __webpack_require__(30);
3044
- module.exports = function (it) {
3045
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
3046
- return it;
3047
- };
3048
 
 
 
 
 
 
3049
 
3050
- /***/ }),
3051
- /* 23 */
3052
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
3053
 
3054
- "use strict";
3055
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RuleList; });
3056
- /* unused harmony export SheetsManager */
3057
- /* unused harmony export SheetsRegistry */
3058
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return create; });
3059
- /* unused harmony export createGenerateId */
3060
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createRule; });
3061
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getDynamicStyles; });
3062
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasCSSTOMSupport; });
3063
- /* unused harmony export sheets */
3064
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return toCssValue; });
3065
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
3066
- /* harmony import */ var is_in_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64);
3067
- /* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53);
3068
- /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(100);
3069
- /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37);
3070
- /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54);
3071
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(47);
3072
 
 
3073
 
 
 
3074
 
 
 
 
 
 
 
3075
 
3076
 
 
 
 
 
 
 
 
 
 
 
3077
 
 
 
 
 
 
 
3078
 
 
3079
 
3080
- var plainObjectConstrurctor = {}.constructor;
3081
- function cloneStyle(style) {
3082
- if (style == null || typeof style !== 'object') return style;
3083
- if (Array.isArray(style)) return style.map(cloneStyle);
3084
- if (style.constructor !== plainObjectConstrurctor) return style;
3085
- var newStyle = {};
3086
 
3087
- for (var name in style) {
3088
- newStyle[name] = cloneStyle(style[name]);
3089
- }
 
 
 
 
 
3090
 
3091
- return newStyle;
3092
- }
3093
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3094
  /**
3095
- * Create a rule instance.
 
 
 
 
3096
  */
3097
 
3098
- function createRule(name, decl, options) {
3099
- if (name === void 0) {
3100
- name = 'unnamed';
 
 
 
3101
  }
3102
 
3103
- var jss = options.jss;
3104
- var declCopy = cloneStyle(decl);
3105
- var rule = jss.plugins.onCreateRule(name, declCopy, options);
3106
- if (rule) return rule; // It is an at-rule and it has no instance.
3107
 
3108
- if (name[0] === '@') {
3109
- false ? undefined : void 0;
3110
  }
3111
 
3112
- return null;
3113
  }
 
 
 
 
 
 
 
3114
 
3115
- var join = function join(value, by) {
3116
- var result = '';
3117
 
3118
- for (var i = 0; i < value.length; i++) {
3119
- // Remove !important from the value, it will be readded later.
3120
- if (value[i] === '!important') break;
3121
- if (result) result += by;
3122
- result += value[i];
3123
  }
3124
 
3125
- return result;
3126
- };
3127
-
3128
  /**
3129
- * Converts array values to string.
3130
- *
3131
- * `margin: [['5px', '10px']]` > `margin: 5px 10px;`
3132
- * `border: ['1px', '2px']` > `border: 1px, 2px;`
3133
- * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
3134
- * `color: ['red', !important]` > `color: red !important;`
3135
  */
3136
- var toCssValue = function toCssValue(value, ignoreImportant) {
3137
- if (ignoreImportant === void 0) {
3138
- ignoreImportant = false;
3139
- }
3140
 
3141
- if (!Array.isArray(value)) return value;
3142
- var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
3143
 
3144
- if (Array.isArray(value[0])) {
3145
- for (var i = 0; i < value.length; i++) {
3146
- if (value[i] === '!important') break;
3147
- if (cssValue) cssValue += ', ';
3148
- cssValue += join(value[i], ' ');
 
 
 
 
 
 
 
3149
  }
3150
- } else cssValue = join(value, ', '); // Add !important, because it was ignored.
 
3151
 
 
 
 
 
 
 
 
3152
 
3153
- if (!ignoreImportant && value[value.length - 1] === '!important') {
3154
- cssValue += ' !important';
3155
- }
 
 
 
 
3156
 
3157
- return cssValue;
3158
- };
3159
 
3160
- /**
3161
- * Indent a string.
3162
- * http://jsperf.com/array-join-vs-for
3163
- */
3164
- function indentStr(str, indent) {
3165
- var result = '';
 
 
3166
 
3167
- for (var index = 0; index < indent; index++) {
3168
- result += ' ';
3169
- }
3170
 
3171
- return result + str;
3172
  }
3173
  /**
3174
- * Converts a Rule to CSS string.
3175
  */
3176
 
3177
 
3178
- function toCss(selector, style, options) {
3179
- if (options === void 0) {
3180
- options = {};
3181
- }
 
 
 
 
 
 
 
3182
 
3183
- var result = '';
3184
- if (!style) return result;
3185
- var _options = options,
3186
- _options$indent = _options.indent,
3187
- indent = _options$indent === void 0 ? 0 : _options$indent;
3188
- var fallbacks = style.fallbacks;
3189
- if (selector) indent++; // Apply fallbacks first.
3190
 
3191
- if (fallbacks) {
3192
- // Array syntax {fallbacks: [{prop: value}]}
3193
- if (Array.isArray(fallbacks)) {
3194
- for (var index = 0; index < fallbacks.length; index++) {
3195
- var fallback = fallbacks[index];
3196
 
3197
- for (var prop in fallback) {
3198
- var value = fallback[prop];
3199
 
3200
- if (value != null) {
3201
- if (result) result += '\n';
3202
- result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
3203
- }
3204
- }
3205
- }
3206
- } else {
3207
- // Object syntax {fallbacks: {prop: value}}
3208
- for (var _prop in fallbacks) {
3209
- var _value = fallbacks[_prop];
3210
 
3211
- if (_value != null) {
3212
- if (result) result += '\n';
3213
- result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
3214
- }
3215
- }
3216
- }
3217
- }
3218
 
3219
- for (var _prop2 in style) {
3220
- var _value2 = style[_prop2];
3221
 
3222
- if (_value2 != null && _prop2 !== 'fallbacks') {
3223
- if (result) result += '\n';
3224
- result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
3225
- }
3226
- } // Allow empty style in this case, because properties will be added dynamically.
3227
 
3228
 
3229
- if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
3230
 
3231
- if (!selector) return result;
3232
- indent--;
3233
- if (result) result = "\n" + result + "\n";
3234
- return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
3235
- }
3236
 
3237
- var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
3238
- var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
3239
- var escape = (function (str) {
3240
- return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
3241
  });
 
3242
 
3243
- var BaseStyleRule =
3244
- /*#__PURE__*/
3245
- function () {
3246
- function BaseStyleRule(key, style, options) {
3247
- this.type = 'style';
3248
- this.key = void 0;
3249
- this.isProcessed = false;
3250
- this.style = void 0;
3251
- this.renderer = void 0;
3252
- this.renderable = void 0;
3253
- this.options = void 0;
3254
- var sheet = options.sheet,
3255
- Renderer = options.Renderer;
3256
- this.key = key;
3257
- this.options = options;
3258
- this.style = style;
3259
- if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
3260
- }
3261
- /**
3262
- * Get or set a style property.
3263
- */
3264
 
 
3265
 
3266
- var _proto = BaseStyleRule.prototype;
 
 
3267
 
3268
- _proto.prop = function prop(name, value, options) {
3269
- // It's a getter.
3270
- if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
3271
 
3272
- var force = options ? options.force : false;
3273
- if (!force && this.style[name] === value) return this;
3274
- var newValue = value;
3275
 
3276
- if (!options || options.process !== false) {
3277
- newValue = this.options.jss.plugins.onChangeValue(value, name, this);
3278
- }
3279
 
3280
- var isEmpty = newValue == null || newValue === false;
3281
- var isDefined = name in this.style; // Value is empty and wasn't defined before.
3282
 
3283
- if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
3284
 
3285
- var remove = isEmpty && isDefined;
3286
- if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.
 
 
 
 
 
 
 
3287
 
3288
- if (this.renderable && this.renderer) {
3289
- if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);
3290
- return this;
3291
- }
3292
 
3293
- var sheet = this.options.sheet;
3294
 
3295
- if (sheet && sheet.attached) {
3296
- false ? undefined : void 0;
3297
- }
3298
 
3299
- return this;
3300
- };
3301
 
3302
- return BaseStyleRule;
3303
- }();
3304
- var StyleRule =
3305
- /*#__PURE__*/
3306
- function (_BaseStyleRule) {
3307
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(StyleRule, _BaseStyleRule);
3308
 
3309
- function StyleRule(key, style, options) {
3310
- var _this;
3311
 
3312
- _this = _BaseStyleRule.call(this, key, style, options) || this;
3313
- _this.selectorText = void 0;
3314
- _this.id = void 0;
3315
- _this.renderable = void 0;
3316
- var selector = options.selector,
3317
- scoped = options.scoped,
3318
- sheet = options.sheet,
3319
- generateId = options.generateId;
 
 
 
3320
 
3321
- if (selector) {
3322
- _this.selectorText = selector;
3323
- } else if (scoped !== false) {
3324
- _this.id = generateId(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(_this)), sheet);
3325
- _this.selectorText = "." + escape(_this.id);
3326
- }
 
 
 
3327
 
3328
- return _this;
3329
- }
3330
- /**
3331
- * Set selector string.
3332
- * Attention: use this with caution. Most browsers didn't implement
3333
- * selectorText setter, so this may result in rerendering of entire Style Sheet.
3334
- */
3335
 
 
 
 
 
 
 
 
 
 
 
3336
 
3337
- var _proto2 = StyleRule.prototype;
 
3338
 
3339
- /**
3340
- * Apply rule to an element inline.
3341
- */
3342
- _proto2.applyTo = function applyTo(renderable) {
3343
- var renderer = this.renderer;
3344
 
3345
- if (renderer) {
3346
- var json = this.toJSON();
3347
 
3348
- for (var prop in json) {
3349
- renderer.setProperty(renderable, prop, json[prop]);
 
 
 
 
 
3350
  }
3351
- }
3352
 
3353
- return this;
3354
- }
3355
- /**
3356
- * Returns JSON representation of the rule.
3357
- * Fallbacks are not supported.
3358
- * Useful for inline styles.
3359
- */
3360
- ;
3361
 
3362
- _proto2.toJSON = function toJSON() {
3363
- var json = {};
 
3364
 
3365
- for (var prop in this.style) {
3366
- var value = this.style[prop];
3367
- if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);
3368
  }
3369
 
3370
- return json;
3371
- }
3372
- /**
3373
- * Generates a CSS string.
3374
- */
3375
- ;
3376
 
3377
- _proto2.toString = function toString(options) {
3378
- var sheet = this.options.sheet;
3379
- var link = sheet ? sheet.options.link : false;
3380
- var opts = link ? Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, options, {
3381
- allowEmpty: true
3382
- }) : options;
3383
- return toCss(this.selectorText, this.style, opts);
3384
  };
 
 
 
 
 
 
3385
 
3386
- Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(StyleRule, [{
3387
- key: "selector",
3388
- set: function set(selector) {
3389
- if (selector === this.selectorText) return;
3390
- this.selectorText = selector;
3391
- var renderer = this.renderer,
3392
- renderable = this.renderable;
3393
- if (!renderable || !renderer) return;
3394
- var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.
3395
 
3396
- if (!hasChanged) {
3397
- renderer.replaceRule(renderable, this);
3398
- }
3399
- }
3400
- /**
3401
- * Get selector string.
3402
- */
3403
- ,
3404
- get: function get() {
3405
- return this.selectorText;
3406
- }
3407
- }]);
3408
 
3409
- return StyleRule;
3410
- }(BaseStyleRule);
3411
- var pluginStyleRule = {
3412
- onCreateRule: function onCreateRule(name, style, options) {
3413
- if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {
3414
- return null;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3415
  }
3416
 
3417
- return new StyleRule(name, style, options);
 
 
 
3418
  }
3419
- };
3420
 
3421
- var defaultToStringOptions = {
3422
- indent: 1,
3423
- children: true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3424
  };
3425
- var atRegExp = /@([\w-]+)/;
3426
- /**
3427
- * Conditional rule for @media, @supports
3428
- */
3429
 
3430
- var ConditionalRule =
 
 
 
 
 
 
 
 
 
 
 
3431
  /*#__PURE__*/
3432
  function () {
3433
- function ConditionalRule(key, styles, options) {
3434
- this.type = 'conditional';
3435
- this.at = void 0;
3436
- this.key = void 0;
3437
- this.query = void 0;
3438
  this.rules = void 0;
3439
  this.options = void 0;
 
3440
  this.isProcessed = false;
3441
- this.renderable = void 0;
3442
  this.key = key;
3443
- var atMatch = key.match(atRegExp);
3444
- this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.
3445
-
3446
- this.query = options.name || "@" + this.at;
3447
  this.options = options;
3448
- this.rules = new RuleList(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, options, {
3449
  parent: this
3450
  }));
3451
 
3452
- for (var name in styles) {
3453
- this.rules.add(name, styles[name]);
3454
  }
3455
 
3456
  this.rules.process();
@@ -3460,16376 +3173,13385 @@ function () {
3460
  */
3461
 
3462
 
3463
- var _proto = ConditionalRule.prototype;
3464
 
3465
  _proto.getRule = function getRule(name) {
3466
  return this.rules.get(name);
3467
  }
3468
  /**
3469
- * Get index of a rule.
3470
  */
3471
  ;
3472
 
3473
- _proto.indexOf = function indexOf(rule) {
3474
- return this.rules.indexOf(rule);
 
 
3475
  }
3476
  /**
3477
- * Create and register rule, run plugins.
3478
  */
3479
  ;
3480
 
3481
- _proto.addRule = function addRule(name, style, options) {
3482
- var rule = this.rules.add(name, style, options);
3483
- if (!rule) return null;
3484
- this.options.jss.plugins.onProcessRule(rule);
3485
- return rule;
3486
  }
3487
  /**
3488
  * Generates a CSS string.
3489
  */
3490
  ;
3491
 
3492
- _proto.toString = function toString(options) {
3493
- if (options === void 0) {
3494
- options = defaultToStringOptions;
3495
- }
3496
-
3497
- if (options.indent == null) options.indent = defaultToStringOptions.indent;
3498
- if (options.children == null) options.children = defaultToStringOptions.children;
3499
-
3500
- if (options.children === false) {
3501
- return this.query + " {}";
3502
- }
3503
-
3504
- var children = this.rules.toString(options);
3505
- return children ? this.query + " {\n" + children + "\n}" : '';
3506
  };
3507
 
3508
- return ConditionalRule;
3509
  }();
3510
- var keyRegExp = /@media|@supports\s+/;
3511
- var pluginConditionalRule = {
3512
- onCreateRule: function onCreateRule(key, styles, options) {
3513
- return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
3514
- }
3515
- };
3516
-
3517
- var defaultToStringOptions$1 = {
3518
- indent: 1,
3519
- children: true
3520
- };
3521
- var nameRegExp = /@keyframes\s+([\w-]+)/;
3522
- /**
3523
- * Rule for @keyframes
3524
- */
3525
 
3526
- var KeyframesRule =
3527
  /*#__PURE__*/
3528
  function () {
3529
- function KeyframesRule(key, frames, options) {
3530
- this.type = 'keyframes';
3531
- this.at = '@keyframes';
3532
- this.key = void 0;
3533
- this.name = void 0;
3534
- this.id = void 0;
3535
- this.rules = void 0;
3536
  this.options = void 0;
 
3537
  this.isProcessed = false;
3538
- this.renderable = void 0;
3539
- var nameMatch = key.match(nameRegExp);
3540
-
3541
- if (nameMatch && nameMatch[1]) {
3542
- this.name = nameMatch[1];
3543
- } else {
3544
- this.name = 'noname';
3545
- false ? undefined : void 0;
3546
- }
3547
-
3548
- this.key = this.type + "-" + this.name;
3549
  this.options = options;
3550
- var scoped = options.scoped,
3551
- sheet = options.sheet,
3552
- generateId = options.generateId;
3553
- this.id = scoped === false ? this.name : escape(generateId(this, sheet));
3554
- this.rules = new RuleList(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, options, {
3555
  parent: this
3556
  }));
3557
-
3558
- for (var name in frames) {
3559
- this.rules.add(name, frames[name], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, options, {
3560
- parent: this
3561
- }));
3562
- }
3563
-
3564
- this.rules.process();
3565
  }
3566
- /**
3567
- * Generates a CSS string.
3568
- */
3569
-
3570
-
3571
- var _proto = KeyframesRule.prototype;
3572
-
3573
- _proto.toString = function toString(options) {
3574
- if (options === void 0) {
3575
- options = defaultToStringOptions$1;
3576
- }
3577
-
3578
- if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
3579
- if (options.children == null) options.children = defaultToStringOptions$1.children;
3580
 
3581
- if (options.children === false) {
3582
- return this.at + " " + this.id + " {}";
3583
- }
3584
 
3585
- var children = this.rules.toString(options);
3586
- if (children) children = "\n" + children + "\n";
3587
- return this.at + " " + this.id + " {" + children + "}";
3588
  };
3589
 
3590
- return KeyframesRule;
3591
  }();
3592
- var keyRegExp$1 = /@keyframes\s+/;
3593
- var refRegExp = /\$([\w-]+)/g;
3594
 
3595
- var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
3596
- if (typeof val === 'string') {
3597
- return val.replace(refRegExp, function (match, name) {
3598
- if (name in keyframes) {
3599
- return keyframes[name];
3600
- }
3601
 
3602
- false ? undefined : void 0;
3603
- return match;
3604
- });
3605
- }
3606
 
3607
- return val;
3608
- };
3609
- /**
3610
- * Replace the reference for a animation name.
3611
- */
3612
 
 
 
3613
 
3614
- var replaceRef = function replaceRef(style, prop, keyframes) {
3615
- var value = style[prop];
3616
- var refKeyframe = findReferencedKeyframe(value, keyframes);
 
 
3617
 
3618
- if (refKeyframe !== value) {
3619
- style[prop] = refKeyframe;
 
 
3620
  }
3621
- };
3622
-
3623
- var plugin = {
3624
- onCreateRule: function onCreateRule(key, frames, options) {
3625
- return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
3626
- },
3627
- // Animation name ref replacer.
3628
- onProcessStyle: function onProcessStyle(style, rule, sheet) {
3629
- if (rule.type !== 'style' || !sheet) return style;
3630
- if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);
3631
- if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);
3632
- return style;
3633
- },
3634
- onChangeValue: function onChangeValue(val, prop, rule) {
3635
- var sheet = rule.options.sheet;
3636
-
3637
- if (!sheet) {
3638
- return val;
3639
- }
3640
 
3641
- switch (prop) {
3642
- case 'animation':
3643
- return findReferencedKeyframe(val, sheet.keyframes);
3644
 
3645
- case 'animation-name':
3646
- return findReferencedKeyframe(val, sheet.keyframes);
 
3647
 
3648
- default:
3649
- return val;
3650
- }
 
 
 
 
3651
  }
3652
- };
 
 
 
 
 
 
3653
 
3654
- var KeyframeRule =
3655
- /*#__PURE__*/
3656
- function (_BaseStyleRule) {
3657
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(KeyframeRule, _BaseStyleRule);
3658
 
3659
- function KeyframeRule() {
3660
- var _this;
 
3661
 
3662
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3663
- args[_key] = arguments[_key];
3664
  }
3665
 
3666
- _this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;
3667
- _this.renderable = void 0;
3668
- return _this;
3669
- }
3670
 
3671
- var _proto = KeyframeRule.prototype;
3672
 
3673
- /**
3674
- * Generates a CSS string.
3675
- */
3676
- _proto.toString = function toString(options) {
3677
- var sheet = this.options.sheet;
3678
- var link = sheet ? sheet.options.link : false;
3679
- var opts = link ? Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, options, {
3680
- allowEmpty: true
3681
- }) : options;
3682
- return toCss(this.key, this.style, opts);
3683
- };
3684
 
3685
- return KeyframeRule;
3686
- }(BaseStyleRule);
3687
- var pluginKeyframeRule = {
3688
- onCreateRule: function onCreateRule(key, style, options) {
3689
- if (options.parent && options.parent.type === 'keyframes') {
3690
- return new KeyframeRule(key, style, options);
3691
  }
3692
 
3693
  return null;
3694
  }
3695
- };
3696
 
3697
- var FontFaceRule =
3698
- /*#__PURE__*/
3699
- function () {
3700
- function FontFaceRule(key, style, options) {
3701
- this.type = 'font-face';
3702
- this.at = '@font-face';
3703
- this.key = void 0;
3704
- this.style = void 0;
3705
- this.options = void 0;
3706
- this.isProcessed = false;
3707
- this.renderable = void 0;
3708
- this.key = key;
3709
- this.style = style;
3710
- this.options = options;
3711
  }
3712
- /**
3713
- * Generates a CSS string.
3714
- */
3715
 
 
 
 
 
 
3716
 
3717
- var _proto = FontFaceRule.prototype;
3718
-
3719
- _proto.toString = function toString(options) {
3720
- if (Array.isArray(this.style)) {
3721
- var str = '';
3722
-
3723
- for (var index = 0; index < this.style.length; index++) {
3724
- str += toCss(this.at, this.style[index]);
3725
- if (this.style[index + 1]) str += '\n';
3726
- }
3727
-
3728
- return str;
3729
- }
3730
-
3731
- return toCss(this.at, this.style, options);
3732
- };
3733
 
3734
- return FontFaceRule;
3735
- }();
3736
- var keyRegExp$2 = /@font-face/;
3737
- var pluginFontFaceRule = {
3738
- onCreateRule: function onCreateRule(key, style, options) {
3739
- return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;
3740
- }
3741
- };
3742
 
3743
- var ViewportRule =
3744
- /*#__PURE__*/
3745
- function () {
3746
- function ViewportRule(key, style, options) {
3747
- this.type = 'viewport';
3748
- this.at = '@viewport';
3749
- this.key = void 0;
3750
- this.style = void 0;
3751
- this.options = void 0;
3752
- this.isProcessed = false;
3753
- this.renderable = void 0;
3754
- this.key = key;
3755
- this.style = style;
3756
- this.options = options;
3757
- }
3758
- /**
3759
- * Generates a CSS string.
3760
- */
3761
 
3762
 
3763
- var _proto = ViewportRule.prototype;
 
 
 
 
 
 
 
 
3764
 
3765
- _proto.toString = function toString(options) {
3766
- return toCss(this.key, this.style, options);
3767
- };
 
 
3768
 
3769
- return ViewportRule;
3770
- }();
3771
- var pluginViewportRule = {
3772
- onCreateRule: function onCreateRule(key, style, options) {
3773
- return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;
3774
- }
3775
- };
3776
 
3777
- var SimpleRule =
3778
- /*#__PURE__*/
3779
- function () {
3780
- function SimpleRule(key, value, options) {
3781
- this.type = 'simple';
3782
- this.key = void 0;
3783
- this.value = void 0;
3784
- this.options = void 0;
3785
- this.isProcessed = false;
3786
- this.renderable = void 0;
3787
- this.key = key;
3788
- this.value = value;
3789
- this.options = options;
3790
  }
3791
- /**
3792
- * Generates a CSS string.
3793
- */
3794
- // eslint-disable-next-line no-unused-vars
3795
 
 
 
 
 
3796
 
3797
- var _proto = SimpleRule.prototype;
 
3798
 
3799
- _proto.toString = function toString(options) {
3800
- if (Array.isArray(this.value)) {
3801
- var str = '';
3802
 
3803
- for (var index = 0; index < this.value.length; index++) {
3804
- str += this.key + " " + this.value[index] + ";";
3805
- if (this.value[index + 1]) str += '\n';
3806
  }
3807
-
3808
- return str;
3809
  }
3810
 
3811
- return this.key + " " + this.value + ";";
3812
- };
3813
-
3814
- return SimpleRule;
3815
- }();
3816
- var keysMap = {
3817
- '@charset': true,
3818
- '@import': true,
3819
- '@namespace': true
3820
- };
3821
- var pluginSimpleRule = {
3822
- onCreateRule: function onCreateRule(key, value, options) {
3823
- return key in keysMap ? new SimpleRule(key, value, options) : null;
3824
  }
3825
- };
3826
-
3827
- var plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
3828
-
3829
- var defaultUpdateOptions = {
3830
- process: true
3831
- };
3832
- var forceUpdateOptions = {
3833
- force: true,
3834
- process: true
3835
- /**
3836
- * Contains rules objects and allows adding/removing etc.
3837
- * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
3838
- */
3839
-
3840
- };
3841
 
3842
- var RuleList =
3843
- /*#__PURE__*/
3844
- function () {
3845
- // Rules registry for access by .get() method.
3846
- // It contains the same rule registered by name and by selector.
3847
- // Original styles object.
3848
- // Used to ensure correct rules order.
3849
- function RuleList(options) {
3850
- this.map = {};
3851
- this.raw = {};
3852
- this.index = [];
3853
- this.counter = 0;
3854
- this.options = void 0;
3855
- this.classes = void 0;
3856
- this.keyframes = void 0;
3857
- this.options = options;
3858
- this.classes = options.classes;
3859
- this.keyframes = options.keyframes;
3860
- }
3861
- /**
3862
- * Create and register rule.
3863
- *
3864
- * Will not render after Style Sheet was rendered the first time.
3865
- */
3866
 
 
 
 
3867
 
3868
- var _proto = RuleList.prototype;
 
 
3869
 
3870
- _proto.add = function add(name, decl, ruleOptions) {
3871
- var _this$options = this.options,
3872
- parent = _this$options.parent,
3873
- sheet = _this$options.sheet,
3874
- jss = _this$options.jss,
3875
- Renderer = _this$options.Renderer,
3876
- generateId = _this$options.generateId,
3877
- scoped = _this$options.scoped;
3878
 
3879
- var options = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
3880
- classes: this.classes,
3881
- parent: parent,
3882
- sheet: sheet,
3883
- jss: jss,
3884
- Renderer: Renderer,
3885
- generateId: generateId,
3886
- scoped: scoped,
3887
- name: name,
3888
- keyframes: this.keyframes,
3889
- selector: undefined
3890
- }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but
3891
- // `sheet.addRule()` opens the door for any duplicate rule name. When this happens
3892
- // we need to make the key unique within this RuleList instance scope.
3893
 
 
 
 
 
 
 
3894
 
3895
- var key = name;
 
 
 
 
3896
 
3897
- if (name in this.raw) {
3898
- key = name + "-d" + this.counter++;
3899
- } // We need to save the original decl before creating the rule
3900
- // because cache plugin needs to use it as a key to return a cached rule.
3901
 
 
3902
 
3903
- this.raw[key] = decl;
 
 
 
 
 
 
 
 
 
 
 
 
 
3904
 
3905
- if (key in this.classes) {
3906
- // E.g. rules inside of @media container
3907
- options.selector = "." + escape(this.classes[key]);
3908
  }
3909
 
3910
- var rule = createRule(key, decl, options);
3911
- if (!rule) return null;
3912
- this.register(rule);
3913
- var index = options.index === undefined ? this.index.length : options.index;
3914
- this.index.splice(index, 0, rule);
3915
- return rule;
3916
- }
3917
- /**
3918
- * Get a rule.
3919
- */
3920
- ;
3921
-
3922
- _proto.get = function get(name) {
3923
- return this.map[name];
3924
- }
3925
- /**
3926
- * Delete a rule.
3927
- */
3928
- ;
3929
-
3930
- _proto.remove = function remove(rule) {
3931
- this.unregister(rule);
3932
- delete this.raw[rule.key];
3933
- this.index.splice(this.index.indexOf(rule), 1);
3934
  }
3935
- /**
3936
- * Get index of a rule.
3937
- */
3938
- ;
3939
 
3940
- _proto.indexOf = function indexOf(rule) {
3941
- return this.index.indexOf(rule);
3942
- }
3943
- /**
3944
- * Run `onProcessRule()` plugins on every rule.
3945
- */
3946
- ;
3947
 
3948
- _proto.process = function process() {
3949
- var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
3950
- // we end up with very hard-to-track-down side effects.
3951
 
3952
- this.index.slice(0).forEach(plugins.onProcessRule, plugins);
3953
- }
3954
- /**
3955
- * Register a rule in `.map`, `.classes` and `.keyframes` maps.
3956
- */
3957
- ;
3958
 
3959
- _proto.register = function register(rule) {
3960
- this.map[rule.key] = rule;
 
3961
 
3962
- if (rule instanceof StyleRule) {
3963
- this.map[rule.selector] = rule;
3964
- if (rule.id) this.classes[rule.key] = rule.id;
3965
- } else if (rule instanceof KeyframesRule && this.keyframes) {
3966
- this.keyframes[rule.name] = rule.id;
3967
- }
3968
  }
3969
- /**
3970
- * Unregister a rule.
3971
- */
3972
- ;
3973
-
3974
- _proto.unregister = function unregister(rule) {
3975
- delete this.map[rule.key];
3976
 
3977
- if (rule instanceof StyleRule) {
3978
- delete this.map[rule.selector];
3979
- delete this.classes[rule.key];
3980
- } else if (rule instanceof KeyframesRule) {
3981
- delete this.keyframes[rule.name];
3982
- }
3983
- }
3984
- /**
3985
- * Update the function values with a new data.
3986
- */
3987
- ;
3988
 
3989
- _proto.update = function update() {
3990
- var name;
3991
- var data;
3992
- var options;
3993
 
3994
- if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {
3995
- name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
3996
 
3997
- data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe[invalid-tuple-index]
3998
 
3999
- options = arguments.length <= 2 ? undefined : arguments[2];
4000
- } else {
4001
- data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
 
 
 
4002
 
4003
- options = arguments.length <= 1 ? undefined : arguments[1];
4004
- name = null;
4005
- }
4006
 
4007
- if (name) {
4008
- this.updateOne(this.map[name], data, options);
4009
- } else {
4010
- for (var index = 0; index < this.index.length; index++) {
4011
- this.updateOne(this.index[index], data, options);
4012
- }
4013
- }
4014
  }
4015
- /**
4016
- * Execute plugins, update rule props.
4017
- */
4018
- ;
4019
-
4020
- _proto.updateOne = function updateOne(rule, data, options) {
4021
- if (options === void 0) {
4022
- options = defaultUpdateOptions;
4023
- }
4024
-
4025
- var _this$options2 = this.options,
4026
- plugins = _this$options2.jss.plugins,
4027
- sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.
4028
-
4029
- if (rule.rules instanceof RuleList) {
4030
- rule.rules.update(data, options);
4031
- return;
4032
- }
4033
-
4034
- var styleRule = rule;
4035
- var style = styleRule.style;
4036
- plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
4037
-
4038
- if (options.process && style && style !== styleRule.style) {
4039
- // We need to run the plugins in case new `style` relies on syntax plugins.
4040
- plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
4041
-
4042
- for (var prop in styleRule.style) {
4043
- var nextValue = styleRule.style[prop];
4044
- var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
4045
- // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
4046
 
4047
- if (nextValue !== prevValue) {
4048
- styleRule.prop(prop, nextValue, forceUpdateOptions);
4049
- }
4050
- } // Remove props.
4051
 
 
 
 
 
 
 
 
4052
 
4053
- for (var _prop in style) {
4054
- var _nextValue = styleRule.style[_prop];
4055
- var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
4056
- // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
4057
 
4058
- if (_nextValue == null && _nextValue !== _prevValue) {
4059
- styleRule.prop(_prop, null, forceUpdateOptions);
4060
- }
 
 
 
4061
  }
4062
- }
4063
- }
4064
- /**
4065
- * Convert rules to a CSS string.
4066
- */
4067
- ;
4068
 
4069
- _proto.toString = function toString(options) {
4070
- var str = '';
4071
- var sheet = this.options.sheet;
4072
- var link = sheet ? sheet.options.link : false;
4073
-
4074
- for (var index = 0; index < this.index.length; index++) {
4075
- var rule = this.index[index];
4076
- var css = rule.toString(options); // No need to render an empty rule.
4077
-
4078
- if (!css && !link) continue;
4079
- if (str) str += '\n';
4080
- str += css;
4081
  }
4082
 
4083
- return str;
4084
- };
4085
-
4086
- return RuleList;
4087
- }();
4088
-
4089
- var StyleSheet =
4090
- /*#__PURE__*/
4091
- function () {
4092
- function StyleSheet(styles, options) {
4093
- this.options = void 0;
4094
- this.deployed = void 0;
4095
- this.attached = void 0;
4096
- this.rules = void 0;
4097
- this.renderer = void 0;
4098
- this.classes = void 0;
4099
- this.keyframes = void 0;
4100
- this.queue = void 0;
4101
- this.attached = false;
4102
- this.deployed = false;
4103
- this.classes = {};
4104
- this.keyframes = {};
4105
- this.options = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, options, {
4106
- sheet: this,
4107
- parent: this,
4108
- classes: this.classes,
4109
- keyframes: this.keyframes
4110
- });
4111
 
4112
- if (options.Renderer) {
4113
- this.renderer = new options.Renderer(this);
 
4114
  }
4115
 
4116
- this.rules = new RuleList(this.options);
4117
 
4118
- for (var name in styles) {
4119
- this.rules.add(name, styles[name]);
4120
- }
4121
 
4122
- this.rules.process();
4123
  }
4124
- /**
4125
- * Attach renderable to the render tree.
4126
- */
4127
 
 
 
 
 
 
4128
 
4129
- var _proto = StyleSheet.prototype;
4130
 
4131
- _proto.attach = function attach() {
4132
- if (this.attached) return this;
4133
- if (this.renderer) this.renderer.attach();
4134
- this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.
4135
 
4136
- if (!this.deployed) this.deploy();
4137
- return this;
4138
- }
4139
- /**
4140
- * Remove renderable from render tree.
4141
- */
4142
- ;
4143
 
4144
- _proto.detach = function detach() {
4145
- if (!this.attached) return this;
4146
- if (this.renderer) this.renderer.detach();
4147
- this.attached = false;
4148
- return this;
4149
- }
4150
- /**
4151
- * Add a rule to the current stylesheet.
4152
- * Will insert a rule also after the stylesheet has been rendered first time.
4153
- */
4154
- ;
4155
 
4156
- _proto.addRule = function addRule(name, decl, options) {
4157
- var queue = this.queue; // Plugins can create rules.
4158
- // In order to preserve the right order, we need to queue all `.addRule` calls,
4159
- // which happen after the first `rules.add()` call.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4160
 
4161
- if (this.attached && !queue) this.queue = [];
4162
- var rule = this.rules.add(name, decl, options);
4163
- if (!rule) return null;
4164
- this.options.jss.plugins.onProcessRule(rule);
 
4165
 
4166
- if (this.attached) {
4167
- if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.
4168
- // It will be inserted all together when .attach is called.
4169
 
4170
- if (queue) queue.push(rule);else {
4171
- this.insertRule(rule);
4172
 
4173
- if (this.queue) {
4174
- this.queue.forEach(this.insertRule, this);
4175
- this.queue = undefined;
4176
- }
4177
- }
4178
- return rule;
4179
- } // We can't add rules to a detached style node.
4180
- // We will redeploy the sheet once user will attach it.
4181
 
 
 
4182
 
4183
- this.deployed = false;
4184
- return rule;
4185
- }
4186
- /**
4187
- * Insert rule into the StyleSheet
4188
- */
4189
- ;
4190
 
4191
- _proto.insertRule = function insertRule(rule) {
4192
- if (this.renderer) {
4193
- this.renderer.insertRule(rule);
 
 
 
4194
  }
4195
- }
4196
- /**
4197
- * Create and add rules.
4198
- * Will render also after Style Sheet was rendered the first time.
4199
- */
4200
- ;
 
 
 
 
4201
 
4202
- _proto.addRules = function addRules(styles, options) {
4203
- var added = [];
4204
 
4205
- for (var name in styles) {
4206
- var rule = this.addRule(name, styles[name], options);
4207
- if (rule) added.push(rule);
4208
  }
4209
 
4210
- return added;
4211
  }
4212
- /**
4213
- * Get a rule by name.
4214
- */
4215
- ;
4216
 
4217
- _proto.getRule = function getRule(name) {
4218
- return this.rules.get(name);
4219
- }
4220
- /**
4221
- * Delete a rule by name.
4222
- * Returns `true`: if rule has been deleted from the DOM.
4223
- */
4224
- ;
4225
 
4226
- _proto.deleteRule = function deleteRule(name) {
4227
- var rule = typeof name === 'object' ? name : this.rules.get(name);
4228
 
4229
- if (!rule || // Style sheet was created without link: true and attached, in this case we
4230
- // won't be able to remove the CSS rule from the DOM.
4231
- this.attached && !rule.renderable) {
4232
- return false;
4233
- }
4234
 
4235
- this.rules.remove(rule);
4236
 
4237
- if (this.attached && rule.renderable && this.renderer) {
4238
- return this.renderer.deleteRule(rule.renderable);
 
 
 
4239
  }
4240
 
4241
- return true;
4242
  }
4243
- /**
4244
- * Get index of a rule.
4245
- */
4246
- ;
4247
 
4248
- _proto.indexOf = function indexOf(rule) {
4249
- return this.rules.indexOf(rule);
4250
  }
4251
- /**
4252
- * Deploy pure CSS string to a renderable.
4253
- */
4254
- ;
4255
 
4256
- _proto.deploy = function deploy() {
4257
- if (this.renderer) this.renderer.deploy();
4258
- this.deployed = true;
4259
- return this;
4260
- }
4261
- /**
4262
- * Update the function values with a new data.
4263
- */
4264
- ;
4265
 
4266
- _proto.update = function update() {
4267
- var _this$rules;
4268
 
4269
- (_this$rules = this.rules).update.apply(_this$rules, arguments);
 
 
 
 
4270
 
4271
- return this;
4272
- }
4273
- /**
4274
- * Updates a single rule.
4275
- */
4276
- ;
4277
 
4278
- _proto.updateOne = function updateOne(rule, data, options) {
4279
- this.rules.updateOne(rule, data, options);
4280
- return this;
4281
- }
4282
- /**
4283
- * Convert rules to a CSS string.
4284
- */
4285
- ;
4286
 
4287
- _proto.toString = function toString(options) {
4288
- return this.rules.toString(options);
4289
- };
 
 
 
4290
 
4291
- return StyleSheet;
4292
- }();
 
 
 
 
 
 
 
4293
 
4294
- var PluginsRegistry =
4295
- /*#__PURE__*/
4296
- function () {
4297
- function PluginsRegistry() {
4298
- this.plugins = {
4299
- internal: [],
4300
- external: []
4301
- };
4302
- this.registry = void 0;
4303
- }
4304
 
4305
- var _proto = PluginsRegistry.prototype;
4306
 
4307
- /**
4308
- * Call `onCreateRule` hooks and return an object if returned by a hook.
4309
- */
4310
- _proto.onCreateRule = function onCreateRule(name, decl, options) {
4311
- for (var i = 0; i < this.registry.onCreateRule.length; i++) {
4312
- var rule = this.registry.onCreateRule[i](name, decl, options);
4313
- if (rule) return rule;
4314
  }
 
4315
 
4316
- return null;
4317
- }
4318
- /**
4319
- * Call `onProcessRule` hooks.
4320
- */
4321
- ;
4322
 
4323
- _proto.onProcessRule = function onProcessRule(rule) {
4324
- if (rule.isProcessed) return;
4325
- var sheet = rule.options.sheet;
 
 
4326
 
4327
- for (var i = 0; i < this.registry.onProcessRule.length; i++) {
4328
- this.registry.onProcessRule[i](rule, sheet);
4329
- }
4330
 
4331
- if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
4332
- rule.isProcessed = true;
4333
  }
4334
- /**
4335
- * Call `onProcessStyle` hooks.
4336
- */
4337
- ;
 
 
 
4338
 
4339
- _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {
4340
- for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
4341
- // $FlowFixMe[prop-missing]
4342
- rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
4343
- }
4344
- }
4345
- /**
4346
- * Call `onProcessSheet` hooks.
4347
- */
4348
- ;
4349
 
4350
- _proto.onProcessSheet = function onProcessSheet(sheet) {
4351
- for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
4352
- this.registry.onProcessSheet[i](sheet);
4353
- }
4354
- }
4355
- /**
4356
- * Call `onUpdate` hooks.
4357
- */
4358
- ;
4359
 
4360
- _proto.onUpdate = function onUpdate(data, rule, sheet, options) {
4361
- for (var i = 0; i < this.registry.onUpdate.length; i++) {
4362
- this.registry.onUpdate[i](data, rule, sheet, options);
4363
- }
4364
- }
4365
- /**
4366
- * Call `onChangeValue` hooks.
4367
- */
4368
- ;
4369
 
4370
- _proto.onChangeValue = function onChangeValue(value, prop, rule) {
4371
- var processedValue = value;
 
 
4372
 
4373
- for (var i = 0; i < this.registry.onChangeValue.length; i++) {
4374
- processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
4375
- }
4376
 
4377
- return processedValue;
 
 
 
 
 
 
 
4378
  }
4379
- /**
4380
- * Register a plugin.
4381
- */
4382
- ;
4383
 
4384
- _proto.use = function use(newPlugin, options) {
4385
- if (options === void 0) {
4386
- options = {
4387
- queue: 'external'
4388
- };
4389
- }
4390
 
4391
- var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.
 
 
 
 
 
 
 
4392
 
4393
- if (plugins.indexOf(newPlugin) !== -1) {
4394
- return;
4395
- }
 
 
 
 
 
 
4396
 
4397
- plugins.push(newPlugin);
4398
- this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {
4399
- for (var name in plugin) {
4400
- if (name in registry) {
4401
- registry[name].push(plugin[name]);
4402
- } else {
4403
- false ? undefined : void 0;
4404
- }
4405
- }
 
4406
 
4407
- return registry;
4408
- }, {
4409
- onCreateRule: [],
4410
- onProcessRule: [],
4411
- onProcessStyle: [],
4412
- onProcessSheet: [],
4413
- onChangeValue: [],
4414
- onUpdate: []
4415
- });
4416
- };
4417
 
4418
- return PluginsRegistry;
4419
- }();
 
4420
 
4421
  /**
4422
- * Sheets registry to access them all at one place.
 
 
 
 
4423
  */
4424
- var SheetsRegistry =
4425
- /*#__PURE__*/
4426
- function () {
4427
- function SheetsRegistry() {
4428
- this.registry = [];
4429
- }
4430
 
4431
- var _proto = SheetsRegistry.prototype;
 
 
4432
 
4433
- /**
4434
- * Register a Style Sheet.
4435
- */
4436
- _proto.add = function add(sheet) {
4437
- var registry = this.registry;
4438
- var index = sheet.options.index;
4439
- if (registry.indexOf(sheet) !== -1) return;
4440
 
4441
- if (registry.length === 0 || index >= this.index) {
4442
- registry.push(sheet);
4443
- return;
4444
- } // Find a position.
4445
 
 
 
4446
 
4447
- for (var i = 0; i < registry.length; i++) {
4448
- if (registry[i].options.index > index) {
4449
- registry.splice(i, 0, sheet);
4450
- return;
4451
  }
4452
- }
4453
- }
4454
- /**
4455
- * Reset the registry.
4456
- */
4457
- ;
4458
 
4459
- _proto.reset = function reset() {
4460
- this.registry = [];
4461
- }
4462
- /**
4463
- * Remove a Style Sheet.
4464
- */
4465
- ;
4466
 
4467
- _proto.remove = function remove(sheet) {
4468
- var index = this.registry.indexOf(sheet);
4469
- this.registry.splice(index, 1);
4470
  }
4471
- /**
4472
- * Convert all attached sheets to a CSS string.
4473
- */
4474
- ;
4475
-
4476
- _proto.toString = function toString(_temp) {
4477
- var _ref = _temp === void 0 ? {} : _temp,
4478
- attached = _ref.attached,
4479
- options = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(_ref, ["attached"]);
4480
-
4481
- var css = '';
4482
 
4483
- for (var i = 0; i < this.registry.length; i++) {
4484
- var sheet = this.registry[i];
4485
 
4486
- if (attached != null && sheet.attached !== attached) {
4487
- continue;
4488
- }
 
4489
 
4490
- if (css) css += '\n';
4491
- css += sheet.toString(options);
4492
  }
4493
 
4494
- return css;
4495
- };
 
4496
 
4497
- Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(SheetsRegistry, [{
4498
- key: "index",
4499
 
4500
- /**
4501
- * Current highest index number.
4502
- */
4503
- get: function get() {
4504
- return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
 
 
4505
  }
4506
- }]);
4507
 
4508
- return SheetsRegistry;
4509
- }();
 
4510
 
4511
- /**
4512
- * This is a global sheets registry. Only DomRenderer will add sheets to it.
4513
- * On the server one should use an own SheetsRegistry instance and add the
4514
- * sheets to it, because you need to make sure to create a new registry for
4515
- * each request in order to not leak sheets across requests.
4516
- */
4517
 
4518
- var registry = new SheetsRegistry();
 
 
 
4519
 
4520
- /* eslint-disable */
4521
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
4522
- var globalThis = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
4523
 
4524
- var ns = '2f1acc6c3a606b082e5eef5e54414ffb';
4525
- if (globalThis[ns] == null) globalThis[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify
4526
- // the current version with just one short number and use it for classes generation
4527
- // we use a counter. Also it is more accurate, because user can manually reevaluate
4528
- // the module.
4529
 
4530
- var moduleId = globalThis[ns]++;
4531
 
4532
- var maxRules = 1e10;
 
 
 
4533
 
4534
- /**
4535
- * Returns a function which generates unique class names based on counters.
4536
- * When new generator function is created, rule counter is reseted.
4537
- * We need to reset the rule counter for SSR for each request.
4538
- */
4539
- var createGenerateId = function createGenerateId(options) {
4540
- if (options === void 0) {
4541
- options = {};
4542
  }
 
4543
 
4544
- var ruleCounter = 0;
4545
- return function (rule, sheet) {
4546
- ruleCounter += 1;
4547
 
4548
- if (ruleCounter > maxRules) {
4549
- false ? undefined : void 0;
 
 
 
 
 
4550
  }
4551
 
4552
- var jssId = '';
4553
- var prefix = '';
 
4554
 
4555
- if (sheet) {
4556
- if (sheet.options.classNamePrefix) {
4557
- prefix = sheet.options.classNamePrefix;
4558
- }
4559
 
4560
- if (sheet.options.jss.id != null) {
4561
- jssId = String(sheet.options.jss.id);
4562
- }
 
 
 
 
4563
  }
4564
 
4565
- if (options.minify) {
4566
- // Using "c" because a number can't be the first char in a class name.
4567
- return "" + (prefix || 'c') + moduleId + jssId + ruleCounter;
 
4568
  }
4569
 
4570
- return prefix + rule.key + "-" + moduleId + (jssId ? "-" + jssId : '') + "-" + ruleCounter;
4571
- };
4572
  };
4573
 
4574
- /**
4575
- * Cache the value from the first time a function is called.
4576
- */
4577
- var memoize = function memoize(fn) {
4578
- var value;
4579
- return function () {
4580
- if (!value) value = fn();
4581
- return value;
4582
- };
4583
  };
4584
 
4585
- /**
4586
- * Get a style property value.
4587
- */
4588
- var getPropertyValue = function getPropertyValue(cssRule, prop) {
4589
- try {
4590
- // Support CSSTOM.
4591
- if (cssRule.attributeStyleMap) {
4592
- return cssRule.attributeStyleMap.get(prop);
4593
- }
4594
 
4595
- return cssRule.style.getPropertyValue(prop);
4596
- } catch (err) {
4597
- // IE may throw if property is unknown.
4598
- return '';
4599
  }
4600
  };
4601
 
4602
- /**
4603
- * Set a style property.
4604
- */
4605
- var setProperty = function setProperty(cssRule, prop, value) {
4606
- try {
4607
- var cssValue = value;
4608
-
4609
- if (Array.isArray(value)) {
4610
- cssValue = toCssValue(value, true);
4611
 
4612
- if (value[value.length - 1] === '!important') {
4613
- cssRule.style.setProperty(prop, cssValue, 'important');
4614
- return true;
4615
- }
4616
- } // Support CSSTOM.
4617
 
 
 
4618
 
4619
- if (cssRule.attributeStyleMap) {
4620
- cssRule.attributeStyleMap.set(prop, cssValue);
4621
- } else {
4622
- cssRule.style.setProperty(prop, cssValue);
4623
- }
4624
- } catch (err) {
4625
- // IE may throw if property is unknown.
4626
  return false;
4627
  }
4628
-
4629
- return true;
4630
  };
4631
 
4632
- /**
4633
- * Remove a style property.
4634
- */
4635
- var removeProperty = function removeProperty(cssRule, prop) {
4636
- try {
4637
- // Support CSSTOM.
4638
- if (cssRule.attributeStyleMap) {
4639
- cssRule.attributeStyleMap.delete(prop);
4640
- } else {
4641
- cssRule.style.removeProperty(prop);
4642
  }
4643
- } catch (err) {
4644
- false ? undefined : void 0;
4645
  }
4646
  };
4647
 
4648
- /**
4649
- * Set the selector.
4650
- */
4651
- var setSelector = function setSelector(cssRule, selectorText) {
4652
- cssRule.selectorText = selectorText; // Return false if setter was not successful.
4653
- // Currently works in chrome only.
4654
 
4655
- return cssRule.selectorText === selectorText;
4656
- };
4657
- /**
4658
- * Gets the `head` element upon the first call and caches it.
4659
- * We assume it can't be null.
4660
- */
4661
 
 
 
 
4662
 
4663
- var getHead = memoize(function () {
4664
- return document.querySelector('head');
4665
- });
4666
- /**
4667
- * Find attached sheet with an index higher than the passed one.
4668
- */
4669
 
4670
- function findHigherSheet(registry, options) {
4671
- for (var i = 0; i < registry.length; i++) {
4672
- var sheet = registry[i];
 
 
 
 
 
4673
 
4674
- if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
4675
- return sheet;
4676
- }
 
 
 
 
4677
  }
 
4678
 
4679
- return null;
4680
- }
4681
- /**
4682
- * Find attached sheet with the highest index.
4683
- */
 
 
 
 
 
4684
 
 
 
 
4685
 
4686
- function findHighestSheet(registry, options) {
4687
- for (var i = registry.length - 1; i >= 0; i--) {
4688
- var sheet = registry[i];
4689
 
4690
- if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
4691
- return sheet;
4692
- }
4693
- }
4694
 
4695
- return null;
4696
- }
4697
- /**
4698
- * Find a comment with "jss" inside.
4699
- */
4700
 
 
 
 
4701
 
4702
- function findCommentNode(text) {
4703
- var head = getHead();
4704
 
4705
- for (var i = 0; i < head.childNodes.length; i++) {
4706
- var node = head.childNodes[i];
 
 
 
4707
 
4708
- if (node.nodeType === 8 && node.nodeValue.trim() === text) {
4709
- return node;
4710
  }
 
 
4711
  }
 
4712
 
4713
- return null;
4714
- }
 
 
 
 
 
 
 
 
 
 
 
 
4715
 
4716
- /**
4717
- * Find a node before which we can insert the sheet.
4718
- */
4719
- function findPrevNode(options) {
4720
- var registry$1 = registry.registry;
 
 
 
 
 
 
 
4721
 
4722
- if (registry$1.length > 0) {
4723
- // Try to insert before the next higher sheet.
4724
- var sheet = findHigherSheet(registry$1, options);
4725
 
4726
- if (sheet && sheet.renderer) {
4727
- return {
4728
- parent: sheet.renderer.element.parentNode,
4729
- node: sheet.renderer.element
4730
- };
4731
- } // Otherwise insert after the last attached.
 
 
4732
 
 
4733
 
4734
- sheet = findHighestSheet(registry$1, options);
 
 
 
 
4735
 
4736
- if (sheet && sheet.renderer) {
4737
- return {
4738
- parent: sheet.renderer.element.parentNode,
4739
- node: sheet.renderer.element.nextSibling
4740
- };
4741
- }
4742
- } // Try to find a comment placeholder if registry is empty.
4743
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4744
 
4745
- var insertionPoint = options.insertionPoint;
4746
 
4747
- if (insertionPoint && typeof insertionPoint === 'string') {
4748
- var comment = findCommentNode(insertionPoint);
 
 
4749
 
4750
- if (comment) {
4751
- return {
4752
- parent: comment.parentNode,
4753
- node: comment.nextSibling
4754
- };
4755
- } // If user specifies an insertion point and it can't be found in the document -
4756
- // bad specificity issues may appear.
4757
 
 
 
 
4758
 
4759
- false ? undefined : void 0;
4760
- }
4761
 
4762
- return false;
4763
- }
4764
- /**
4765
- * Insert style element into the DOM.
4766
- */
4767
 
4768
 
4769
- function insertStyle(style, options) {
4770
- var insertionPoint = options.insertionPoint;
4771
- var nextNode = findPrevNode(options);
4772
 
4773
- if (nextNode !== false && nextNode.parent) {
4774
- nextNode.parent.insertBefore(style, nextNode.node);
4775
- return;
4776
- } // Works with iframes and any node types.
4777
 
4778
 
4779
- if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
4780
- // https://stackoverflow.com/questions/41328728/force-casting-in-flow
4781
- var insertionPointElement = insertionPoint;
4782
- var parentNode = insertionPointElement.parentNode;
4783
- if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else false ? undefined : void 0;
4784
- return;
4785
  }
4786
 
4787
- getHead().appendChild(style);
4788
  }
 
 
 
 
 
 
 
 
 
 
4789
  /**
4790
- * Read jss nonce setting from the page if the user has set it.
 
 
 
 
 
 
4791
  */
4792
 
 
 
 
 
 
 
 
 
4793
 
4794
- var getNonce = memoize(function () {
4795
- var node = document.querySelector('meta[property="csp-nonce"]');
4796
- return node ? node.getAttribute('content') : null;
4797
- });
 
 
 
 
 
4798
 
4799
- var _insertRule = function insertRule(container, rule, index) {
4800
- try {
4801
- if ('insertRule' in container) {
4802
- var c = container;
4803
- c.insertRule(rule, index);
4804
- } // Keyframes rule.
4805
- else if ('appendRule' in container) {
4806
- var _c = container;
4807
 
4808
- _c.appendRule(rule);
4809
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
4810
  } catch (err) {
4811
- false ? undefined : void 0;
 
4812
  return false;
4813
- }
4814
 
4815
- return container.cssRules[index];
4816
- };
4817
 
4818
- var getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {
4819
- var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong
 
 
 
4820
 
4821
- if (index === undefined || index > maxIndex) {
4822
- // eslint-disable-next-line no-param-reassign
4823
- return maxIndex;
4824
- }
4825
 
4826
- return index;
4827
- };
4828
 
4829
- var createStyle = function createStyle() {
4830
- var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we
4831
- // insert rules after we insert the style tag.
4832
- // It seems to kick-off the source order specificity algorithm.
 
4833
 
4834
- el.textContent = '\n';
4835
- return el;
4836
- };
4837
 
4838
- var DomRenderer =
4839
- /*#__PURE__*/
4840
- function () {
4841
- // HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696
4842
- // Will be empty if link: true option is not set, because
4843
- // it is only for use together with insertRule API.
4844
- function DomRenderer(sheet) {
4845
- this.getPropertyValue = getPropertyValue;
4846
- this.setProperty = setProperty;
4847
- this.removeProperty = removeProperty;
4848
- this.setSelector = setSelector;
4849
- this.element = void 0;
4850
- this.sheet = void 0;
4851
- this.hasInsertedRules = false;
4852
- this.cssRules = [];
4853
- // There is no sheet when the renderer is used from a standalone StyleRule.
4854
- if (sheet) registry.add(sheet);
4855
- this.sheet = sheet;
4856
 
4857
- var _ref = this.sheet ? this.sheet.options : {},
4858
- media = _ref.media,
4859
- meta = _ref.meta,
4860
- element = _ref.element;
4861
 
4862
- this.element = element || createStyle();
4863
- this.element.setAttribute('data-jss', '');
4864
- if (media) this.element.setAttribute('media', media);
4865
- if (meta) this.element.setAttribute('data-meta', meta);
4866
- var nonce = getNonce();
4867
- if (nonce) this.element.setAttribute('nonce', nonce);
4868
- }
4869
- /**
4870
- * Insert style element into render tree.
4871
- */
4872
 
4873
 
4874
- var _proto = DomRenderer.prototype;
4875
 
4876
- _proto.attach = function attach() {
4877
- // In the case the element node is external and it is already in the DOM.
4878
- if (this.element.parentNode || !this.sheet) return;
4879
- insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`
4880
- // most browsers create a new CSSStyleSheet, except of all IEs.
4881
 
4882
- var deployed = Boolean(this.sheet && this.sheet.deployed);
4883
 
4884
- if (this.hasInsertedRules && deployed) {
4885
- this.hasInsertedRules = false;
4886
- this.deploy();
 
 
 
 
 
 
 
 
4887
  }
4888
  }
4889
- /**
4890
- * Remove style element from render tree.
4891
- */
4892
- ;
4893
 
4894
- _proto.detach = function detach() {
4895
- if (!this.sheet) return;
4896
- var parentNode = this.element.parentNode;
4897
- if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.
4898
- // Though IE will keep them and we need a consistent behavior.
4899
 
4900
- if (this.sheet.options.link) {
4901
- this.cssRules = [];
4902
- this.element.textContent = '\n';
4903
- }
4904
- }
4905
- /**
4906
- * Inject CSS string into element.
4907
- */
4908
- ;
4909
 
4910
- _proto.deploy = function deploy() {
4911
- var sheet = this.sheet;
4912
- if (!sheet) return;
 
 
 
4913
 
4914
- if (sheet.options.link) {
4915
- this.insertRules(sheet.rules);
4916
- return;
 
4917
  }
4918
 
4919
- this.element.textContent = "\n" + sheet.toString() + "\n";
4920
  }
4921
- /**
4922
- * Insert RuleList into an element.
4923
- */
4924
- ;
4925
 
4926
- _proto.insertRules = function insertRules(rules, nativeParent) {
4927
- for (var i = 0; i < rules.index.length; i++) {
4928
- this.insertRule(rules.index[i], i, nativeParent);
4929
- }
4930
  }
4931
- /**
4932
- * Insert a rule into element.
4933
- */
4934
- ;
4935
 
4936
- _proto.insertRule = function insertRule(rule, index, nativeParent) {
4937
- if (nativeParent === void 0) {
4938
- nativeParent = this.element.sheet;
4939
- }
4940
 
4941
- if (rule.rules) {
4942
- var parent = rule;
4943
- var latestNativeParent = nativeParent;
 
 
 
4944
 
4945
- if (rule.type === 'conditional' || rule.type === 'keyframes') {
4946
- var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.
4947
 
 
 
 
 
 
 
 
 
 
4948
 
4949
- latestNativeParent = _insertRule(nativeParent, parent.toString({
4950
- children: false
4951
- }), _insertionIndex);
4952
 
4953
- if (latestNativeParent === false) {
4954
- return false;
4955
- }
 
 
4956
 
4957
- this.refCssRule(rule, _insertionIndex, latestNativeParent);
 
4958
  }
4959
 
4960
- this.insertRules(parent.rules, latestNativeParent);
4961
- return latestNativeParent;
4962
  }
 
 
4963
 
4964
- var ruleStr = rule.toString();
4965
- if (!ruleStr) return false;
4966
- var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);
4967
-
4968
- var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);
4969
 
4970
- if (nativeRule === false) {
4971
- return false;
4972
- }
4973
 
4974
- this.hasInsertedRules = true;
4975
- this.refCssRule(rule, insertionIndex, nativeRule);
4976
- return nativeRule;
4977
- };
4978
 
4979
- _proto.refCssRule = function refCssRule(rule, index, cssRule) {
4980
- rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules
4981
- // like rules inside media queries or keyframes
4982
 
4983
- if (rule.options.parent instanceof StyleSheet) {
4984
- this.cssRules[index] = cssRule;
4985
- }
4986
- }
4987
- /**
4988
- * Delete a rule.
4989
- */
4990
- ;
4991
 
4992
- _proto.deleteRule = function deleteRule(cssRule) {
4993
- var sheet = this.element.sheet;
4994
- var index = this.indexOf(cssRule);
4995
- if (index === -1) return false;
4996
- sheet.deleteRule(index);
4997
- this.cssRules.splice(index, 1);
4998
- return true;
4999
- }
5000
- /**
5001
- * Get index of a CSS Rule.
5002
- */
5003
- ;
5004
 
5005
- _proto.indexOf = function indexOf(cssRule) {
5006
- return this.cssRules.indexOf(cssRule);
5007
- }
5008
- /**
5009
- * Generate a new CSS rule and replace the existing one.
5010
- *
5011
- * Only used for some old browsers because they can't set a selector.
5012
- */
5013
- ;
5014
 
5015
- _proto.replaceRule = function replaceRule(cssRule, rule) {
5016
- var index = this.indexOf(cssRule);
5017
- if (index === -1) return false;
5018
- this.element.sheet.deleteRule(index);
5019
- this.cssRules.splice(index, 1);
5020
- return this.insertRule(rule, index);
5021
- }
5022
- /**
5023
- * Get all rules elements.
5024
- */
5025
- ;
5026
 
5027
- _proto.getRules = function getRules() {
5028
- return this.element.sheet.cssRules;
 
 
 
 
5029
  };
 
5030
 
5031
- return DomRenderer;
5032
- }();
5033
 
5034
- var instanceCounter = 0;
 
5035
 
5036
- var Jss =
5037
- /*#__PURE__*/
5038
- function () {
5039
- function Jss(options) {
5040
- this.id = instanceCounter++;
5041
- this.version = "10.5.0";
5042
- this.plugins = new PluginsRegistry();
5043
- this.options = {
5044
- id: {
5045
- minify: false
5046
- },
5047
- createGenerateId: createGenerateId,
5048
- Renderer: is_in_browser__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"] ? DomRenderer : null,
5049
- plugins: []
5050
- };
5051
- this.generateId = createGenerateId({
5052
- minify: false
5053
- });
5054
 
5055
- for (var i = 0; i < plugins.length; i++) {
5056
- this.plugins.use(plugins[i], {
5057
- queue: 'internal'
5058
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5059
  }
5060
 
5061
- this.setup(options);
 
 
 
 
 
 
 
 
5062
  }
5063
- /**
5064
- * Prepares various options, applies plugins.
5065
- * Should not be used twice on the same instance, because there is no plugins
5066
- * deduplication logic.
5067
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5068
 
 
5069
 
5070
- var _proto = Jss.prototype;
 
 
 
 
5071
 
5072
- _proto.setup = function setup(options) {
5073
- if (options === void 0) {
5074
- options = {};
5075
- }
5076
 
5077
- if (options.createGenerateId) {
5078
- this.options.createGenerateId = options.createGenerateId;
5079
- }
5080
 
5081
- if (options.id) {
5082
- this.options.id = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, this.options.id, options.id);
5083
- }
5084
 
5085
- if (options.createGenerateId || options.id) {
5086
- this.generateId = this.options.createGenerateId(this.options.id);
5087
- }
5088
 
5089
- if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
5090
 
5091
- if ('Renderer' in options) {
5092
- this.options.Renderer = options.Renderer;
5093
- } // eslint-disable-next-line prefer-spread
5094
 
 
 
 
 
5095
 
5096
- if (options.plugins) this.use.apply(this, options.plugins);
5097
- return this;
5098
- }
5099
- /**
5100
- * Create a Style Sheet.
5101
- */
5102
- ;
5103
 
5104
- _proto.createStyleSheet = function createStyleSheet(styles, options) {
5105
- if (options === void 0) {
5106
- options = {};
5107
- }
5108
 
5109
- var _options = options,
5110
- index = _options.index;
5111
 
5112
- if (typeof index !== 'number') {
5113
- index = registry.index === 0 ? 0 : registry.index + 1;
5114
- }
5115
 
5116
- var sheet = new StyleSheet(styles, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, options, {
5117
- jss: this,
5118
- generateId: options.generateId || this.generateId,
5119
- insertionPoint: this.options.insertionPoint,
5120
- Renderer: this.options.Renderer,
5121
- index: index
5122
- }));
5123
- this.plugins.onProcessSheet(sheet);
5124
- return sheet;
5125
- }
5126
- /**
5127
- * Detach the Style Sheet and remove it from the registry.
5128
- */
5129
- ;
5130
 
5131
- _proto.removeStyleSheet = function removeStyleSheet(sheet) {
5132
- sheet.detach();
5133
- registry.remove(sheet);
5134
- return this;
5135
- }
5136
- /**
5137
- * Create a rule without a Style Sheet.
5138
- * [Deprecated] will be removed in the next major version.
5139
- */
5140
- ;
 
 
5141
 
5142
- _proto.createRule = function createRule$1(name, style, options) {
5143
- if (style === void 0) {
5144
- style = {};
5145
- }
5146
 
5147
- if (options === void 0) {
5148
- options = {};
5149
- }
5150
 
5151
- // Enable rule without name for inline styles.
5152
- if (typeof name === 'object') {
5153
- // $FlowFixMe[incompatible-call]
5154
- return this.createRule(undefined, name, style);
5155
- } // $FlowFixMe[incompatible-type]
5156
 
5157
 
5158
- var ruleOptions = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, options, {
5159
- name: name,
5160
- jss: this,
5161
- Renderer: this.options.Renderer
5162
- });
5163
 
5164
- if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
5165
- if (!ruleOptions.classes) ruleOptions.classes = {};
5166
- if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
5167
 
5168
- var rule = createRule(name, style, ruleOptions);
5169
 
5170
- if (rule) this.plugins.onProcessRule(rule);
5171
- return rule;
5172
- }
5173
- /**
5174
- * Register plugin. Passed function will be invoked with a rule instance.
5175
- */
5176
- ;
5177
 
5178
- _proto.use = function use() {
5179
- var _this = this;
5180
 
5181
- for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
5182
- plugins[_key] = arguments[_key];
5183
- }
5184
 
5185
- plugins.forEach(function (plugin) {
5186
- _this.plugins.use(plugin);
5187
- });
5188
- return this;
5189
- };
5190
 
5191
- return Jss;
5192
- }();
 
5193
 
5194
- /**
5195
- * Extracts a styles object with only props that contain function values.
5196
- */
5197
- function getDynamicStyles(styles) {
5198
- var to = null;
5199
 
5200
- for (var key in styles) {
5201
- var value = styles[key];
5202
- var type = typeof value;
 
 
 
 
 
 
 
 
5203
 
5204
- if (type === 'function') {
5205
- if (!to) to = {};
5206
- to[key] = value;
5207
- } else if (type === 'object' && value !== null && !Array.isArray(value)) {
5208
- var extracted = getDynamicStyles(value);
5209
 
5210
- if (extracted) {
5211
- if (!to) to = {};
5212
- to[key] = extracted;
5213
- }
5214
- }
5215
  }
5216
 
5217
- return to;
 
 
 
 
 
 
 
 
 
 
 
 
 
5218
  }
5219
 
5220
- /**
5221
- * SheetsManager is like a WeakMap which is designed to count StyleSheet
5222
- * instances and attach/detach automatically.
5223
- */
5224
- var SheetsManager =
5225
- /*#__PURE__*/
5226
- function () {
5227
- function SheetsManager() {
5228
- this.length = 0;
5229
- this.sheets = new WeakMap();
5230
  }
5231
 
5232
- var _proto = SheetsManager.prototype;
5233
 
5234
- _proto.get = function get(key) {
5235
- var entry = this.sheets.get(key);
5236
- return entry && entry.sheet;
5237
- };
 
 
 
 
5238
 
5239
- _proto.add = function add(key, sheet) {
5240
- if (this.sheets.has(key)) return;
5241
- this.length++;
5242
- this.sheets.set(key, {
5243
- sheet: sheet,
5244
- refs: 0
5245
- });
5246
- };
5247
 
5248
- _proto.manage = function manage(key) {
5249
- var entry = this.sheets.get(key);
5250
 
5251
- if (entry) {
5252
- if (entry.refs === 0) {
5253
- entry.sheet.attach();
5254
- }
5255
 
5256
- entry.refs++;
5257
- return entry.sheet;
5258
  }
5259
 
5260
- Object(tiny_warning__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(false, "[JSS] SheetsManager: can't find sheet to manage");
5261
- return undefined;
5262
- };
5263
 
5264
- _proto.unmanage = function unmanage(key) {
5265
- var entry = this.sheets.get(key);
 
 
 
5266
 
5267
- if (entry) {
5268
- if (entry.refs > 0) {
5269
- entry.refs--;
5270
- if (entry.refs === 0) entry.sheet.detach();
5271
  }
5272
- } else {
5273
- Object(tiny_warning__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(false, "SheetsManager: can't find sheet to unmanage");
5274
  }
5275
- };
5276
 
5277
- Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(SheetsManager, [{
5278
- key: "size",
5279
- get: function get() {
5280
- return this.length;
5281
  }
5282
- }]);
5283
 
5284
- return SheetsManager;
5285
- }();
 
5286
 
5287
- /**
5288
- * A better abstraction over CSS.
5289
- *
5290
- * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
5291
- * @website https://github.com/cssinjs/jss
5292
- * @license MIT
5293
- */
 
 
 
 
5294
 
5295
- /**
5296
- * Export a constant indicating if this browser has CSSTOM support.
5297
- * https://developers.google.com/web/updates/2018/03/cssom
5298
- */
5299
- var hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;
5300
- /**
5301
- * Creates a new instance of Jss.
5302
- */
5303
 
5304
- var create = function create(options) {
5305
- return new Jss(options);
5306
- };
5307
- /**
5308
- * A global Jss instance.
5309
- */
5310
 
5311
- var jss = create();
 
 
 
 
 
 
5312
 
5313
- /* harmony default export */ __webpack_exports__["d"] = (jss);
 
 
 
 
5314
 
 
 
 
5315
 
 
 
 
5316
 
5317
- /***/ }),
5318
- /* 24 */
5319
- /***/ (function(module, exports) {
5320
 
5321
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
5322
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
5323
- ? window : typeof self != 'undefined' && self.Math == Math ? self
5324
- // eslint-disable-next-line no-new-func
5325
- : Function('return this')();
5326
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
5327
 
 
 
5328
 
5329
- /***/ }),
5330
- /* 25 */
5331
- /***/ (function(module, exports, __webpack_require__) {
 
 
5332
 
5333
- "use strict";
 
 
5334
 
 
 
 
 
5335
 
5336
- function checkDCE() {
5337
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5338
- if (
5339
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
5340
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
5341
- ) {
5342
- return;
5343
- }
5344
- if (false) {}
5345
- try {
5346
- // Verify that the code above has been dead code eliminated (DCE'd).
5347
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
5348
- } catch (err) {
5349
- // DevTools shouldn't crash React, no matter what.
5350
- // We should still report in case we break this code.
5351
- console.error(err);
5352
  }
 
 
 
 
 
 
 
 
 
5353
  }
5354
 
5355
- if (true) {
5356
- // DCE check should happen before ReactDOM bundle executes so that
5357
- // DevTools can report bad minification during injection.
5358
- checkDCE();
5359
- module.exports = __webpack_require__(549);
5360
- } else {}
5361
 
 
 
 
 
 
 
5362
 
5363
- /***/ }),
5364
- /* 26 */
5365
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
 
 
5366
 
5367
- "use strict";
 
 
5368
 
5369
- // EXPORTS
5370
- __webpack_require__.d(__webpack_exports__, "d", function() { return /* reexport */ openDrawer; });
5371
- __webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ closeDrawer; });
5372
- __webpack_require__.d(__webpack_exports__, "c", function() { return /* reexport */ data_utils["a" /* dateToFormat */]; });
5373
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ GenerateUniqueId; });
5374
- __webpack_require__.d(__webpack_exports__, "e", function() { return /* reexport */ shuffleTips; });
5375
- __webpack_require__.d(__webpack_exports__, "f", function() { return /* reexport */ uniqueCharset; });
5376
 
5377
- // UNUSED EXPORTS: formatToDate, importIcons
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5378
 
5379
- // CONCATENATED MODULE: ./utils/utils/drawer-utils.js
5380
- function openDrawer(drawer, page) {
5381
- closeDrawer();
5382
- document.location.hash += "".concat(document.location.hash.match(/\/$/) ? "" : "/").concat(drawer).concat(page ? "/" + page : "");
5383
- }
5384
- function closeDrawer() {
5385
- document.location.hash = document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules).*$/i, "");
5386
- }
5387
- // EXTERNAL MODULE: ./utils/utils/data-utils.js
5388
- var data_utils = __webpack_require__(156);
5389
 
5390
- // EXTERNAL MODULE: ./node_modules/uuid/v4.js
5391
- var v4 = __webpack_require__(215);
5392
- var v4_default = /*#__PURE__*/__webpack_require__.n(v4);
5393
 
5394
- // CONCATENATED MODULE: ./utils/utils/random.js
 
5395
 
5396
- function GenerateUniqueId() {
5397
- return v4_default()();
5398
  }
5399
- function shuffleTips(array) {
5400
- var currentIndex = array.length,
5401
- temporaryValue,
5402
- randomIndex; // While there remain elements to shuffle...
5403
 
5404
- while (0 !== currentIndex) {
5405
- // Pick a remaining element...
5406
- randomIndex = Math.floor(Math.random() * currentIndex);
5407
- currentIndex -= 1; // And swap it with the current element.
5408
 
5409
- temporaryValue = array[currentIndex];
5410
- array[currentIndex] = array[randomIndex];
5411
- array[randomIndex] = temporaryValue;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5412
  }
5413
 
5414
- return array;
5415
- }
5416
- function uniqueCharset() {
5417
- return Array.apply(0, Array(15)).map(function () {
5418
- return function (charset) {
5419
- return charset.charAt(Math.floor(Math.random() * charset.length));
5420
- }("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
5421
- }).join("");
 
 
 
 
5422
  }
5423
- // CONCATENATED MODULE: ./utils/utils/index.js
5424
 
 
 
 
 
 
 
 
 
 
5425
 
 
5426
 
 
5427
 
5428
  /***/ }),
5429
- /* 27 */
5430
- /***/ (function(module, exports) {
5431
 
5432
- module.exports = function (exec) {
5433
- try {
5434
- return !!exec();
5435
- } catch (e) {
5436
- return true;
5437
- }
5438
- };
 
 
 
 
 
 
5439
 
 
 
 
 
5440
 
5441
  /***/ }),
5442
- /* 28 */
5443
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
5444
 
5445
  "use strict";
5446
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
5447
- function _defineProperty(obj, key, value) {
5448
- if (key in obj) {
5449
- Object.defineProperty(obj, key, {
5450
- value: value,
5451
- enumerable: true,
5452
- configurable: true,
5453
- writable: true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5454
  });
5455
- } else {
5456
- obj[key] = value;
5457
  }
5458
 
5459
- return obj;
5460
  }
5461
 
5462
  /***/ }),
5463
- /* 29 */
5464
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5465
 
5466
- "use strict";
5467
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useEventCallback; });
5468
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
5469
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5470
 
5471
- var useEnhancedEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"] : react__WEBPACK_IMPORTED_MODULE_0__["useEffect"];
 
 
 
5472
  /**
5473
- * https://github.com/facebook/react/issues/14099#issuecomment-440013892
5474
- *
5475
- * @param {function} fn
5476
  */
 
 
 
 
5477
 
5478
- function useEventCallback(fn) {
5479
- var ref = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](fn);
5480
- useEnhancedEffect(function () {
5481
- ref.current = fn;
5482
- });
5483
- return react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function () {
5484
- return (0, ref.current).apply(void 0, arguments);
5485
- }, []);
 
 
 
5486
  }
5487
 
5488
  /***/ }),
5489
- /* 30 */
5490
- /***/ (function(module, exports) {
5491
 
5492
- module.exports = function (it) {
5493
- return typeof it === 'object' ? it !== null : typeof it === 'function';
5494
- };
5495
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5496
 
5497
- /***/ }),
5498
- /* 31 */
5499
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5500
 
5501
- "use strict";
5502
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isError; });
5503
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isErrorEvent; });
5504
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDOMError; });
5505
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isDOMException; });
5506
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isString; });
5507
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isPrimitive; });
5508
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return isPlainObject; });
5509
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isEvent; });
5510
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isElement; });
5511
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return isRegExp; });
5512
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isThenable; });
5513
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isSyntheticEvent; });
5514
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return isInstanceOf; });
5515
- /* eslint-disable @typescript-eslint/no-explicit-any */
5516
- /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
5517
  /**
5518
- * Checks whether given value's type is one of a few Error or Error-like
5519
- * {@link isError}.
5520
  *
5521
- * @param wat A value to be checked.
5522
- * @returns A boolean representing the result.
5523
  */
5524
- function isError(wat) {
5525
- switch (Object.prototype.toString.call(wat)) {
5526
- case '[object Error]':
5527
- return true;
5528
- case '[object Exception]':
5529
- return true;
5530
- case '[object DOMException]':
5531
- return true;
5532
- default:
5533
- return isInstanceOf(wat, Error);
5534
- }
5535
  }
5536
  /**
5537
- * Checks whether given value's type is ErrorEvent
5538
- * {@link isErrorEvent}.
5539
  *
5540
- * @param wat A value to be checked.
5541
- * @returns A boolean representing the result.
5542
  */
5543
- function isErrorEvent(wat) {
5544
- return Object.prototype.toString.call(wat) === '[object ErrorEvent]';
5545
- }
5546
- /**
5547
- * Checks whether given value's type is DOMError
5548
- * {@link isDOMError}.
5549
- *
5550
- * @param wat A value to be checked.
5551
- * @returns A boolean representing the result.
5552
- */
5553
- function isDOMError(wat) {
5554
- return Object.prototype.toString.call(wat) === '[object DOMError]';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5555
  }
5556
  /**
5557
- * Checks whether given value's type is DOMException
5558
- * {@link isDOMException}.
5559
- *
5560
- * @param wat A value to be checked.
5561
- * @returns A boolean representing the result.
5562
  */
5563
- function isDOMException(wat) {
5564
- return Object.prototype.toString.call(wat) === '[object DOMException]';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5565
  }
5566
  /**
5567
- * Checks whether given value's type is a string
5568
- * {@link isString}.
5569
- *
5570
- * @param wat A value to be checked.
5571
- * @returns A boolean representing the result.
5572
  */
5573
- function isString(wat) {
5574
- return Object.prototype.toString.call(wat) === '[object String]';
 
 
 
 
 
 
 
 
 
 
5575
  }
5576
- /**
5577
- * Checks whether given value's is a primitive (undefined, null, number, boolean, string)
5578
- * {@link isPrimitive}.
5579
- *
5580
- * @param wat A value to be checked.
5581
- * @returns A boolean representing the result.
5582
- */
5583
- function isPrimitive(wat) {
5584
- return wat === null || (typeof wat !== 'object' && typeof wat !== 'function');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5585
  }
5586
  /**
5587
- * Checks whether given value's type is an object literal
5588
- * {@link isPlainObject}.
5589
- *
5590
- * @param wat A value to be checked.
5591
- * @returns A boolean representing the result.
5592
  */
5593
- function isPlainObject(wat) {
5594
- return Object.prototype.toString.call(wat) === '[object Object]';
 
 
 
 
5595
  }
5596
  /**
5597
- * Checks whether given value's type is an Event instance
5598
- * {@link isEvent}.
5599
- *
5600
- * @param wat A value to be checked.
5601
- * @returns A boolean representing the result.
5602
  */
5603
- function isEvent(wat) {
5604
- return typeof Event !== 'undefined' && isInstanceOf(wat, Event);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5605
  }
5606
  /**
5607
- * Checks whether given value's type is an Element instance
5608
- * {@link isElement}.
5609
- *
5610
- * @param wat A value to be checked.
5611
- * @returns A boolean representing the result.
5612
  */
5613
- function isElement(wat) {
5614
- return typeof Element !== 'undefined' && isInstanceOf(wat, Element);
 
 
 
 
 
5615
  }
 
 
5616
  /**
5617
- * Checks whether given value's type is an regexp
5618
- * {@link isRegExp}.
5619
- *
5620
- * @param wat A value to be checked.
5621
- * @returns A boolean representing the result.
5622
  */
5623
- function isRegExp(wat) {
5624
- return Object.prototype.toString.call(wat) === '[object RegExp]';
 
 
 
 
 
 
 
 
 
 
5625
  }
 
5626
  /**
5627
- * Checks whether given value has a then function.
5628
- * @param wat A value to be checked.
 
5629
  */
5630
- function isThenable(wat) {
5631
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
5632
- return Boolean(wat && wat.then && typeof wat.then === 'function');
 
 
 
 
 
 
 
 
 
 
5633
  }
5634
  /**
5635
- * Checks whether given value's type is a SyntheticEvent
5636
- * {@link isSyntheticEvent}.
5637
  *
5638
- * @param wat A value to be checked.
5639
- * @returns A boolean representing the result.
 
5640
  */
5641
- function isSyntheticEvent(wat) {
5642
- return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;
 
 
 
 
 
 
 
 
 
 
5643
  }
5644
  /**
5645
- * Checks whether given value's type is an instance of provided constructor.
5646
- * {@link isInstanceOf}.
5647
  *
5648
- * @param wat A value to be checked.
5649
- * @param base A constructor to be used in a check.
5650
- * @returns A boolean representing the result.
5651
  */
5652
- function isInstanceOf(wat, base) {
5653
- try {
5654
- return wat instanceof base;
5655
- }
5656
- catch (_e) {
5657
- return false;
5658
- }
5659
  }
5660
- //# sourceMappingURL=is.js.map
5661
 
5662
  /***/ }),
5663
- /* 32 */
5664
- /***/ (function(module, exports, __webpack_require__) {
5665
-
5666
- var baseMerge = __webpack_require__(306),
5667
- createAssigner = __webpack_require__(346);
5668
-
5669
- /**
5670
- * This method is like `_.assign` except that it recursively merges own and
5671
- * inherited enumerable string keyed properties of source objects into the
5672
- * destination object. Source properties that resolve to `undefined` are
5673
- * skipped if a destination value exists. Array and plain object properties
5674
- * are merged recursively. Other objects and value types are overridden by
5675
- * assignment. Source objects are applied from left to right. Subsequent
5676
- * sources overwrite property assignments of previous sources.
5677
- *
5678
- * **Note:** This method mutates `object`.
5679
- *
5680
- * @static
5681
- * @memberOf _
5682
- * @since 0.5.0
5683
- * @category Object
5684
- * @param {Object} object The destination object.
5685
- * @param {...Object} [sources] The source objects.
5686
- * @returns {Object} Returns `object`.
5687
- * @example
5688
- *
5689
- * var object = {
5690
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
5691
- * };
5692
- *
5693
- * var other = {
5694
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
5695
- * };
5696
- *
5697
- * _.merge(object, other);
5698
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
5699
- */
5700
- var merge = createAssigner(function(object, source, srcIndex) {
5701
- baseMerge(object, source, srcIndex);
5702
- });
5703
-
5704
- module.exports = merge;
5705
 
5706
-
5707
- /***/ }),
5708
- /* 33 */
5709
- /***/ (function(module, exports, __webpack_require__) {
5710
 
5711
  "use strict";
 
 
 
 
 
 
5712
 
5713
 
5714
- var bind = __webpack_require__(191);
5715
-
5716
- /*global toString:true*/
5717
-
5718
- // utils is a library of generic helper functions non-specific to axios
5719
-
5720
- var toString = Object.prototype.toString;
5721
-
5722
  /**
5723
- * Determine if a value is an Array
5724
  *
5725
- * @param {Object} val The value to test
5726
- * @returns {boolean} True if value is an Array, otherwise false
5727
  */
5728
- function isArray(val) {
5729
- return toString.call(val) === '[object Array]';
5730
  }
5731
-
5732
  /**
5733
- * Determine if a value is undefined
5734
  *
5735
- * @param {Object} val The value to test
5736
- * @returns {boolean} True if the value is undefined, otherwise false
5737
  */
5738
- function isUndefined(val) {
5739
- return typeof val === 'undefined';
 
 
5740
  }
5741
-
 
5742
  /**
5743
- * Determine if a value is a Buffer
5744
  *
5745
- * @param {Object} val The value to test
5746
- * @returns {boolean} True if value is a Buffer, otherwise false
 
 
5747
  */
5748
- function isBuffer(val) {
5749
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
5750
- && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5751
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5752
 
5753
- /**
5754
- * Determine if a value is an ArrayBuffer
5755
- *
5756
- * @param {Object} val The value to test
5757
- * @returns {boolean} True if value is an ArrayBuffer, otherwise false
5758
- */
5759
- function isArrayBuffer(val) {
5760
- return toString.call(val) === '[object ArrayBuffer]';
5761
- }
5762
 
5763
  /**
5764
- * Determine if a value is a FormData
5765
  *
5766
- * @param {Object} val The value to test
5767
- * @returns {boolean} True if value is an FormData, otherwise false
 
5768
  */
5769
- function isFormData(val) {
5770
- return (typeof FormData !== 'undefined') && (val instanceof FormData);
5771
- }
5772
-
5773
  /**
5774
- * Determine if a value is a view on an ArrayBuffer
 
5775
  *
5776
- * @param {Object} val The value to test
5777
- * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
5778
  */
5779
- function isArrayBufferView(val) {
5780
- var result;
5781
- if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
5782
- result = ArrayBuffer.isView(val);
5783
- } else {
5784
- result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
5785
- }
5786
- return result;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5787
  }
5788
-
5789
  /**
5790
- * Determine if a value is a String
5791
- *
5792
- * @param {Object} val The value to test
5793
- * @returns {boolean} True if value is a String, otherwise false
5794
  */
5795
- function isString(val) {
5796
- return typeof val === 'string';
 
 
 
 
 
 
5797
  }
5798
-
5799
  /**
5800
- * Determine if a value is a Number
5801
- *
5802
- * @param {Object} val The value to test
5803
- * @returns {boolean} True if value is a Number, otherwise false
5804
  */
5805
- function isNumber(val) {
5806
- return typeof val === 'number';
5807
- }
5808
-
 
 
5809
  /**
5810
- * Determine if a value is an Object
5811
- *
5812
- * @param {Object} val The value to test
5813
- * @returns {boolean} True if value is an Object, otherwise false
5814
  */
5815
- function isObject(val) {
5816
- return val !== null && typeof val === 'object';
5817
- }
5818
-
5819
  /**
5820
- * Determine if a value is a plain Object
 
5821
  *
5822
- * @param {Object} val The value to test
5823
- * @return {boolean} True if value is a plain Object, otherwise false
5824
- */
5825
- function isPlainObject(val) {
5826
- if (toString.call(val) !== '[object Object]') {
5827
- return false;
5828
- }
5829
-
5830
- var prototype = Object.getPrototypeOf(val);
5831
- return prototype === null || prototype === Object.prototype;
5832
- }
5833
-
5834
- /**
5835
- * Determine if a value is a Date
5836
  *
5837
- * @param {Object} val The value to test
5838
- * @returns {boolean} True if value is a Date, otherwise false
 
 
5839
  */
5840
- function isDate(val) {
5841
- return toString.call(val) === '[object Date]';
5842
- }
5843
-
5844
  /**
5845
- * Determine if a value is a File
5846
- *
5847
- * @param {Object} val The value to test
5848
- * @returns {boolean} True if value is a File, otherwise false
5849
  */
5850
- function isFile(val) {
5851
- return toString.call(val) === '[object File]';
5852
- }
5853
-
5854
  /**
5855
- * Determine if a value is a Blob
5856
- *
5857
- * @param {Object} val The value to test
5858
- * @returns {boolean} True if value is a Blob, otherwise false
5859
  */
5860
- function isBlob(val) {
5861
- return toString.call(val) === '[object Blob]';
5862
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5863
 
5864
- /**
5865
- * Determine if a value is a Function
5866
- *
5867
- * @param {Object} val The value to test
5868
- * @returns {boolean} True if value is a Function, otherwise false
5869
- */
5870
- function isFunction(val) {
5871
- return toString.call(val) === '[object Function]';
5872
- }
5873
 
5874
- /**
5875
- * Determine if a value is a Stream
5876
- *
5877
- * @param {Object} val The value to test
5878
- * @returns {boolean} True if value is a Stream, otherwise false
5879
- */
5880
- function isStream(val) {
5881
- return isObject(val) && isFunction(val.pipe);
5882
- }
5883
 
5884
- /**
5885
- * Determine if a value is a URLSearchParams object
5886
- *
5887
- * @param {Object} val The value to test
5888
- * @returns {boolean} True if value is a URLSearchParams object, otherwise false
5889
- */
5890
- function isURLSearchParams(val) {
5891
- return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
5892
- }
5893
 
5894
- /**
5895
- * Trim excess whitespace off the beginning and end of a string
5896
- *
5897
- * @param {String} str The String to trim
5898
- * @returns {String} The String freed of excess whitespace
5899
- */
5900
- function trim(str) {
5901
- return str.replace(/^\s*/, '').replace(/\s*$/, '');
5902
- }
5903
 
5904
- /**
5905
- * Determine if we're running in a standard browser environment
5906
- *
5907
- * This allows axios to run in a web worker, and react-native.
5908
- * Both environments support XMLHttpRequest, but not fully standard globals.
5909
- *
5910
- * web workers:
5911
- * typeof window -> undefined
5912
- * typeof document -> undefined
5913
- *
5914
- * react-native:
5915
- * navigator.product -> 'ReactNative'
5916
- * nativescript
5917
- * navigator.product -> 'NativeScript' or 'NS'
5918
- */
5919
- function isStandardBrowserEnv() {
5920
- if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
5921
- navigator.product === 'NativeScript' ||
5922
- navigator.product === 'NS')) {
5923
- return false;
5924
- }
5925
- return (
5926
- typeof window !== 'undefined' &&
5927
- typeof document !== 'undefined'
5928
- );
5929
- }
5930
 
5931
- /**
5932
- * Iterate over an Array or an Object invoking a function for each item.
5933
- *
5934
- * If `obj` is an Array callback will be called passing
5935
- * the value, index, and complete array for each item.
5936
- *
5937
- * If 'obj' is an Object callback will be called passing
5938
- * the value, key, and complete object for each property.
5939
- *
5940
- * @param {Object|Array} obj The object to iterate
5941
- * @param {Function} fn The callback to invoke for each item
5942
- */
5943
- function forEach(obj, fn) {
5944
- // Don't bother if no value provided
5945
- if (obj === null || typeof obj === 'undefined') {
5946
- return;
5947
- }
5948
 
5949
- // Force an array if not already something iterable
5950
- if (typeof obj !== 'object') {
5951
- /*eslint no-param-reassign:0*/
5952
- obj = [obj];
5953
- }
5954
 
5955
- if (isArray(obj)) {
5956
- // Iterate over array values
5957
- for (var i = 0, l = obj.length; i < l; i++) {
5958
- fn.call(null, obj[i], i, obj);
5959
- }
5960
- } else {
5961
- // Iterate over object keys
5962
- for (var key in obj) {
5963
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
5964
- fn.call(null, obj[key], key, obj);
5965
- }
5966
- }
5967
- }
5968
- }
5969
 
5970
- /**
5971
- * Accepts varargs expecting each argument to be an object, then
5972
- * immutably merges the properties of each object and returns result.
5973
- *
5974
- * When multiple objects contain the same key the later object in
5975
- * the arguments list will take precedence.
5976
- *
5977
- * Example:
5978
- *
5979
- * ```js
5980
- * var result = merge({foo: 123}, {foo: 456});
5981
- * console.log(result.foo); // outputs 456
5982
- * ```
5983
- *
5984
- * @param {Object} obj1 Object to merge
5985
- * @returns {Object} Result of all merge properties
5986
- */
5987
- function merge(/* obj1, obj2, obj3, ... */) {
5988
- var result = {};
5989
- function assignValue(val, key) {
5990
- if (isPlainObject(result[key]) && isPlainObject(val)) {
5991
- result[key] = merge(result[key], val);
5992
- } else if (isPlainObject(val)) {
5993
- result[key] = merge({}, val);
5994
- } else if (isArray(val)) {
5995
- result[key] = val.slice();
5996
- } else {
5997
- result[key] = val;
5998
  }
5999
- }
6000
 
6001
- for (var i = 0, l = arguments.length; i < l; i++) {
6002
- forEach(arguments[i], assignValue);
6003
- }
6004
- return result;
6005
- }
6006
 
6007
- /**
6008
- * Extends object a by mutably adding to it the properties of object b.
6009
- *
6010
- * @param {Object} a The object to be extended
6011
- * @param {Object} b The object to copy properties from
6012
- * @param {Object} thisArg The object to bind function to
6013
- * @return {Object} The resulting value of object a
6014
- */
6015
- function extend(a, b, thisArg) {
6016
- forEach(b, function assignValue(val, key) {
6017
- if (thisArg && typeof val === 'function') {
6018
- a[key] = bind(val, thisArg);
6019
- } else {
6020
- a[key] = val;
6021
  }
6022
- });
6023
- return a;
6024
- }
6025
 
6026
- /**
6027
- * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
6028
- *
6029
- * @param {string} content with BOM
6030
- * @return {string} content value without BOM
6031
- */
6032
- function stripBOM(content) {
6033
- if (content.charCodeAt(0) === 0xFEFF) {
6034
- content = content.slice(1);
6035
- }
6036
- return content;
6037
- }
6038
 
6039
- module.exports = {
6040
- isArray: isArray,
6041
- isArrayBuffer: isArrayBuffer,
6042
- isBuffer: isBuffer,
6043
- isFormData: isFormData,
6044
- isArrayBufferView: isArrayBufferView,
6045
- isString: isString,
6046
- isNumber: isNumber,
6047
- isObject: isObject,
6048
- isPlainObject: isPlainObject,
6049
- isUndefined: isUndefined,
6050
- isDate: isDate,
6051
- isFile: isFile,
6052
- isBlob: isBlob,
6053
- isFunction: isFunction,
6054
- isStream: isStream,
6055
- isURLSearchParams: isURLSearchParams,
6056
- isStandardBrowserEnv: isStandardBrowserEnv,
6057
- forEach: forEach,
6058
- merge: merge,
6059
- extend: extend,
6060
- trim: trim,
6061
- stripBOM: stripBOM
6062
- };
6063
 
 
 
 
 
 
6064
 
6065
- /***/ }),
6066
- /* 34 */
6067
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
 
6068
 
6069
- "use strict";
 
 
 
 
 
 
 
 
 
 
6070
 
6071
- // EXTERNAL MODULE: ./node_modules/redux/es/redux.js
6072
- var redux = __webpack_require__(102);
6073
 
6074
- // EXTERNAL MODULE: ./src/js/dashboard/store/actions/dataActions/index.js
6075
- var dataActions = __webpack_require__(15);
 
6076
 
6077
- // EXTERNAL MODULE: ./src/js/dashboard/store/actions/savingMiddleware.js + 3 modules
6078
- var savingMiddleware = __webpack_require__(183);
 
 
 
6079
 
6080
- // EXTERNAL MODULE: ./utils/buttonizer-constants.js
6081
- var buttonizer_constants = __webpack_require__(5);
6082
 
6083
- // EXTERNAL MODULE: ./node_modules/immer/dist/immer.esm.js
6084
- var immer_esm = __webpack_require__(41);
 
6085
 
6086
- // CONCATENATED MODULE: ./src/js/dashboard/store/reducers/wpReducer.js
 
 
 
 
6087
 
 
 
 
6088
 
6089
- var initialStore = {
6090
- loading: {
6091
- posts: false,
6092
- pages: false,
6093
- categories: false,
6094
- roles: false
6095
- },
6096
- loaded: {
6097
- posts: false,
6098
- pages: false,
6099
- categories: false,
6100
- roles: false
6101
- },
6102
- data: {
6103
- posts: [],
6104
- pages: [],
6105
- categories: [],
6106
- roles: []
6107
- }
6108
- };
6109
- /* harmony default export */ var wpReducer = (function () {
6110
- var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialStore;
6111
- var action = arguments.length > 1 ? arguments[1] : undefined;
6112
- if (action.type === buttonizer_constants["a" /* actionTypes */].INIT) return initialStore;
6113
- return Object(immer_esm["b" /* produce */])(store, function (draftStore) {
6114
- switch (action.type) {
6115
- case buttonizer_constants["a" /* actionTypes */].wp.GET_DATA_BEGIN:
6116
- {
6117
- draftStore.loading[action.payload.type] = true;
6118
- break;
6119
- }
6120
 
6121
- case buttonizer_constants["a" /* actionTypes */].wp.GET_DATA_END:
6122
- {
6123
- draftStore.loading[action.payload.type] = false;
6124
- break;
6125
- }
6126
 
6127
- case buttonizer_constants["a" /* actionTypes */].wp.GET_DATA_FAILURE:
6128
- {
6129
- console.error(action.payload.error);
6130
- break;
6131
- }
 
 
 
6132
 
6133
- case buttonizer_constants["a" /* actionTypes */].wp.GET_DATA_SUCCESS:
6134
- {
6135
- draftStore.data[action.payload.type] = action.payload.data;
6136
- draftStore.loaded[action.payload.type] = true;
6137
- break;
6138
- }
6139
  }
6140
- });
6141
- });
6142
- // EXTERNAL MODULE: ./utils/utils/index.js + 2 modules
6143
- var utils = __webpack_require__(26);
6144
-
6145
- // CONCATENATED MODULE: ./src/js/dashboard/store/reducers/timeScheduleReducer.js
6146
-
6147
-
6148
-
6149
- /* harmony default export */ var timeScheduleReducer = (function () {
6150
- var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6151
- var action = arguments.length > 1 ? arguments[1] : undefined;
6152
- if (action.type === buttonizer_constants["a" /* actionTypes */].INIT) return action.payload.timeSchedules;
6153
- return Object(immer_esm["a" /* default */])(store, function (draftStore) {
6154
- switch (action.type) {
6155
- case buttonizer_constants["a" /* actionTypes */].timeSchedules.ADD_RECORD:
6156
- {
6157
- // Add data to store/model
6158
- draftStore[action.payload.record.id] = action.payload.record;
6159
- break;
6160
- }
6161
 
6162
- case buttonizer_constants["a" /* actionTypes */].timeSchedules.REMOVE_RECORD:
6163
- {
6164
- delete draftStore[action.payload.id];
6165
- break;
 
 
 
 
 
6166
  }
 
 
6167
 
6168
- /**
6169
- * Button actions
6170
- */
 
6171
 
6172
- case buttonizer_constants["a" /* actionTypes */].timeSchedules.SET_KEY_VALUE:
6173
- {
6174
- draftStore[action.payload.id][action.payload.key] = action.payload.value;
6175
- break;
 
 
 
 
 
6176
  }
 
 
6177
 
6178
- /**
6179
- * Time Schedule reducers
6180
- */
 
6181
 
6182
- case buttonizer_constants["a" /* actionTypes */].timeSchedules.SET_WEEKDAY:
6183
- {
6184
- draftStore[action.payload.id].weekdays[action.payload.weekdayKey][action.payload.key] = action.payload.value;
6185
- break;
6186
- }
6187
 
6188
- case buttonizer_constants["a" /* actionTypes */].timeSchedules.ADD_EXCLUDED_DATE:
6189
- {
6190
- draftStore[action.payload.id].dates.push({
6191
- opened: true,
6192
- open: "8:00",
6193
- close: "17:00",
6194
- date: Object(utils["c" /* dateToFormat */])(new Date())
6195
- });
6196
- break;
6197
  }
6198
 
6199
- case buttonizer_constants["a" /* actionTypes */].timeSchedules.SET_EXCLUDED_DATE:
6200
- {
6201
- draftStore[action.payload.id].dates[action.payload.dateKey][action.payload.key] = action.payload.value;
6202
- break;
6203
- }
 
6204
 
6205
- case buttonizer_constants["a" /* actionTypes */].timeSchedules.REMOVE_EXCLUDED_DATE:
6206
- {
6207
- draftStore[action.payload.id].dates.splice(action.payload.dateKey, 1);
6208
- break;
6209
- }
6210
  }
 
 
 
6211
  });
6212
- });
6213
- // CONCATENATED MODULE: ./src/js/dashboard/store/reducers/rootReducer.js
6214
 
6215
 
6216
- var defaultStore = {
6217
- loading: {},
6218
- drawer: ""
6219
- };
6220
- /* harmony default export */ var rootReducer = (function () {
6221
- var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultStore;
6222
- var action = arguments.length > 1 ? arguments[1] : undefined;
6223
- return Object(immer_esm["a" /* default */])(store, function (draftStore) {
6224
- switch (action.type) {
6225
- case buttonizer_constants["a" /* actionTypes */].INIT:
6226
- {
6227
- draftStore.frameUrl = action.payload.wordpress.base + "?buttonizer-preview=1"; // Start loading iframe
6228
 
6229
- draftStore.loading.loadingIframe = true; // Show loading
 
6230
 
6231
- draftStore.loading.showLoading = true;
6232
- draftStore.loading.loadingString = "loading.website";
6233
- draftStore.hasChanges = action.payload.hasChanges === "1";
6234
- draftStore.loading.loaded = true;
6235
- draftStore.wordpress = action.payload.wordpress;
6236
- draftStore._premium = action.payload.premium;
6237
- draftStore.is_opt_in = action.payload.is_opt_in;
6238
- draftStore.additional_permissions = action.payload.additional_permissions;
6239
- draftStore._premiumCode = action.payload.premium_code;
6240
- break;
6241
- }
6242
-
6243
- case buttonizer_constants["a" /* actionTypes */].GET_DATA_BEGIN:
6244
- {
6245
- draftStore.loading.showLoading = true;
6246
- draftStore.loading.loadingString = "loading.loading";
6247
- break;
6248
- }
6249
-
6250
- case buttonizer_constants["a" /* actionTypes */].GET_DATA_SUCCESS:
6251
- {
6252
- draftStore.loading.showLoading = false;
6253
- draftStore.loading.fetchError = null;
6254
- draftStore.loading.loaded = true;
6255
- break;
6256
- }
6257
-
6258
- case buttonizer_constants["a" /* actionTypes */].GET_DATA_FAILURE:
6259
- {
6260
- draftStore.loading.showLoading = false;
6261
- draftStore.loading.fetchError = action.payload.error;
6262
- console.error(action.payload.error);
6263
- break;
6264
- }
6265
-
6266
- case buttonizer_constants["a" /* actionTypes */].HAS_CHANGES:
6267
- {
6268
- draftStore.hasChanges = action.payload.hasChanges;
6269
- break;
6270
- }
6271
 
6272
- case buttonizer_constants["a" /* actionTypes */].STOP_LOADING:
6273
- {
6274
- draftStore.loading.showLoading = false;
6275
- draftStore.loading.loadingSlowWebsite = false;
6276
- draftStore.loading.loadingIframe = false;
6277
- break;
6278
- }
6279
- }
6280
- });
6281
- });
6282
- // CONCATENATED MODULE: ./src/js/dashboard/store/reducers/pageRuleReducer.js
6283
 
 
 
 
 
 
6284
 
6285
  /**
6286
- * Page rule reducers
 
 
 
6287
  */
 
 
 
6288
 
6289
- /* harmony default export */ var pageRuleReducer = (function () {
6290
- var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6291
- var action = arguments.length > 1 ? arguments[1] : undefined;
6292
- if (action.type === buttonizer_constants["a" /* actionTypes */].INIT) return action.payload.pageRules;
6293
- return Object(immer_esm["a" /* default */])(store, function (draftStore) {
6294
- switch (action.type) {
6295
- // Add record
6296
- case buttonizer_constants["a" /* actionTypes */].pageRules.ADD_RECORD:
6297
- {
6298
- draftStore[action.payload.record.id] = action.payload.record;
6299
- break;
6300
- }
6301
- // Remove record
6302
-
6303
- case buttonizer_constants["a" /* actionTypes */].pageRules.REMOVE_RECORD:
6304
- {
6305
- delete draftStore[action.payload.id];
6306
- break;
6307
- }
6308
- // Set key
6309
-
6310
- case buttonizer_constants["a" /* actionTypes */].pageRules.SET_KEY_VALUE:
6311
- {
6312
- draftStore[action.payload.id][action.payload.key] = action.payload.value;
6313
- break;
6314
- }
6315
- // Add page rule row
6316
-
6317
- case buttonizer_constants["a" /* actionTypes */].pageRules.ADD_PAGE_RULE_ROW:
6318
- {
6319
- draftStore[action.payload.id].rules.push({
6320
- type: "page_title",
6321
- value: ""
6322
- });
6323
- break;
6324
- }
6325
- // Update page rule row
6326
 
6327
- case buttonizer_constants["a" /* actionTypes */].pageRules.SET_PAGE_RULE_ROW:
6328
- {
6329
- draftStore[action.payload.id].rules[action.payload.ruleRowKey][action.payload.key] = action.payload.value;
6330
- break;
6331
- }
6332
- // Remove page rule row
6333
 
6334
- case buttonizer_constants["a" /* actionTypes */].pageRules.REMOVE_PAGE_RULE_ROW:
6335
- {
6336
- draftStore[action.payload.id].rules.splice(action.payload.ruleRowKey, 1);
6337
- break;
6338
- }
6339
- }
6340
- });
6341
- });
6342
- // CONCATENATED MODULE: ./src/js/dashboard/store/reducers/settingReducer.js
6343
 
 
 
6344
 
6345
- /* harmony default export */ var settingReducer = (function () {
6346
- var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6347
- var action = arguments.length > 1 ? arguments[1] : undefined;
6348
- if (action.type === buttonizer_constants["a" /* actionTypes */].INIT) return action.payload.settings;
6349
- return Object(immer_esm["a" /* default */])(store, function (draftStore) {
6350
- switch (action.type) {
6351
- case buttonizer_constants["a" /* actionTypes */].SET_SETTING_VALUE:
6352
- {
6353
- if (action.payload.setting === "can_send_errors" && typeof buttonizer_admin !== "undefined") {
6354
- buttonizer_admin.can_send_errors = action.payload.value;
6355
- }
6356
 
6357
- draftStore[action.payload.setting] = action.payload.value;
6358
- break;
6359
- }
6360
- }
6361
- });
6362
- });
6363
- // CONCATENATED MODULE: ./src/js/dashboard/store/reducers/savingReducer.js
6364
 
 
 
 
 
6365
 
6366
- var savingReducer_initialStore = {
6367
- isUpdating: false
 
6368
  };
6369
- function savingReducer() {
6370
- var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : savingReducer_initialStore;
6371
- var action = arguments.length > 1 ? arguments[1] : undefined;
6372
- return Object(immer_esm["b" /* produce */])(store, function (draftStore) {
6373
- if (Object.values(buttonizer_constants["a" /* actionTypes */].buttons).includes(action.type) || Object.values(buttonizer_constants["a" /* actionTypes */].groups).includes(action.type) || Object.values(buttonizer_constants["a" /* actionTypes */].pageRules).includes(action.type) || Object.values(buttonizer_constants["a" /* actionTypes */].timeSchedules).includes(action.type) || buttonizer_constants["a" /* actionTypes */].SET_SETTING_VALUE === action.type) {// draftStore.isUpdating = true;
6374
- } else if (action.type === buttonizer_constants["a" /* actionTypes */].IS_UPDATING) {
6375
- draftStore.isUpdating = action.payload.isUpdating;
6376
- }
6377
- });
6378
- }
6379
- // CONCATENATED MODULE: ./src/js/dashboard/store/reducers/groupReducer.js
6380
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6381
 
6382
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
 
6383
 
6384
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6385
 
6386
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
 
6387
 
6388
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6389
 
6390
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
6391
 
6392
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
6393
 
6394
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6395
 
6396
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6397
 
 
 
 
 
 
 
 
 
 
6398
 
 
 
 
6399
 
6400
- /* harmony default export */ var groupReducer = (function () {
6401
- var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6402
- var action = arguments.length > 1 ? arguments[1] : undefined;
6403
- if (action.type === buttonizer_constants["a" /* actionTypes */].INIT) return action.payload.groups;
6404
 
6405
- if (action.type === buttonizer_constants["a" /* actionTypes */].groups.ADD_RECORD && typeof action.payload.index !== "string") {
6406
- // Add data to store/model
6407
- var unorderedStore = _objectSpread(_objectSpread({}, store), {}, _defineProperty({}, action.payload.record.id, action.payload.record));
6408
 
6409
- var newKeys = Object.keys(store);
6410
- newKeys.splice(action.payload.index, 0, action.payload.record.id);
6411
- return newKeys.reduce(function (result, key) {
6412
- result[key] = unorderedStore[key];
6413
- return result;
6414
- }, {});
6415
- }
6416
 
6417
- return Object(immer_esm["b" /* produce */])(store, function (draftStore) {
6418
- switch (action.type) {
6419
- case buttonizer_constants["a" /* actionTypes */].groups.ADD_RECORD:
6420
- {
6421
- draftStore[action.payload.record.id] = action.payload.record; // Last place
6422
 
6423
- break;
6424
- }
6425
 
6426
- case buttonizer_constants["a" /* actionTypes */].groups.REMOVE_RECORD:
6427
- {
6428
- delete draftStore[action.payload.model_id];
6429
- break;
6430
- }
6431
 
6432
- case buttonizer_constants["a" /* actionTypes */].groups.SET_KEY_VALUE:
6433
- {
6434
- if (action.payload.value === "unset") {
6435
- if (typeof draftStore[action.payload.id][action.payload.key] !== "undefined") delete draftStore[action.payload.id][action.payload.key];
6436
- break;
6437
- }
6438
 
6439
- draftStore[action.payload.id][action.payload.key] = action.payload.value;
6440
- break;
6441
- }
6442
 
6443
- case buttonizer_constants["a" /* actionTypes */].groups.SET_KEY_FORMAT:
6444
- {
6445
- var format = buttonizer_constants["c" /* formats */][action.payload.format];
6446
- if (!format) break;
6447
- var parsedValue = format.format.apply(format, _toConsumableArray(action.payload.values));
 
 
 
 
 
6448
 
6449
- if (parsedValue === "unset") {
6450
- if (typeof draftStore[action.payload.id][action.payload.key] !== "undefined") delete draftStore[action.payload.id][action.payload.key];
6451
- break;
6452
- }
6453
 
6454
- draftStore[action.payload.id][action.payload.key] = parsedValue;
6455
- break;
6456
- }
 
 
 
6457
 
6458
- case buttonizer_constants["a" /* actionTypes */].ADD_RELATION:
6459
- {
6460
- draftStore[action.payload.group_id].children = draftStore[action.payload.group_id].children || [];
 
6461
 
6462
- if (typeof action.payload.index !== "string") {
6463
- draftStore[action.payload.group_id].children.splice(action.payload.index, 0, action.payload.button_id);
6464
- break;
6465
- }
 
 
 
 
6466
 
6467
- draftStore[action.payload.group_id].children.push(action.payload.button_id);
6468
- break;
6469
- }
 
 
 
 
 
 
 
 
 
 
 
6470
 
6471
- case buttonizer_constants["a" /* actionTypes */].CHANGE_RELATION:
6472
- {
6473
- // Remove button from group
6474
- var buttonIndex = draftStore[action.payload.old_group_id].children.indexOf(action.payload.button_id);
6475
- draftStore[action.payload.old_group_id].children.splice(buttonIndex, 1); // If old group has no children, delete it
6476
 
6477
- if (draftStore[action.payload.old_group_id].children.length === 0) {
6478
- delete draftStore[action.payload.old_group_id];
6479
- } // Add button to new group
6480
 
 
6481
 
6482
- draftStore[action.payload.new_group_id].children.splice(action.payload.button_index, 0, action.payload.button_id);
6483
- break;
6484
- }
6485
 
6486
- case buttonizer_constants["a" /* actionTypes */].REMOVE_RELATION:
6487
- {
6488
- var index = draftStore[action.payload.group_id].children.indexOf(action.payload.button_id);
6489
- draftStore[action.payload.group_id].children.splice(index, 1);
6490
- break;
6491
- }
6492
- }
6493
- });
6494
- });
6495
- // CONCATENATED MODULE: ./src/js/dashboard/store/reducers/buttonReducer.js
6496
- function buttonReducer_toConsumableArray(arr) { return buttonReducer_arrayWithoutHoles(arr) || buttonReducer_iterableToArray(arr) || buttonReducer_unsupportedIterableToArray(arr) || buttonReducer_nonIterableSpread(); }
6497
 
6498
- function buttonReducer_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6499
 
6500
- function buttonReducer_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return buttonReducer_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return buttonReducer_arrayLikeToArray(o, minLen); }
 
 
6501
 
6502
- function buttonReducer_iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6503
 
6504
- function buttonReducer_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return buttonReducer_arrayLikeToArray(arr); }
6505
 
6506
- function buttonReducer_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
 
6507
 
 
6508
 
6509
 
6510
- var buttonReducer_initialStore = {
6511
- buttons: {},
6512
- groups: {},
6513
- timeSchedules: {},
6514
- settings: {},
6515
- pageRules: {},
6516
- _premium: false
6517
- };
6518
- function dataReducer() {
6519
- var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : buttonReducer_initialStore;
6520
- var action = arguments.length > 1 ? arguments[1] : undefined;
6521
- if (action.type === buttonizer_constants["a" /* actionTypes */].INIT) return action.payload.buttons;
6522
- return Object(immer_esm["b" /* produce */])(store, function (draftStore) {
6523
- switch (action.type) {
6524
- case buttonizer_constants["a" /* actionTypes */].buttons.ADD_RECORD:
6525
- {
6526
- draftStore[action.payload.record.id] = action.payload.record;
6527
- break;
6528
- }
6529
 
6530
- case buttonizer_constants["a" /* actionTypes */].buttons.REMOVE_RECORD:
6531
- {
6532
- delete draftStore[action.payload.model_id];
6533
- break;
6534
- }
 
 
 
 
 
 
 
6535
 
6536
- case buttonizer_constants["a" /* actionTypes */].buttons.SET_KEY_VALUE:
6537
- {
6538
- if (action.payload.value === "unset") {
6539
- if (typeof draftStore[action.payload.id][action.payload.key] !== "undefined") delete draftStore[action.payload.id][action.payload.key];
6540
- break;
6541
- }
 
 
 
 
 
 
 
 
6542
 
6543
- draftStore[action.payload.id][action.payload.key] = action.payload.value;
6544
- break;
6545
- }
6546
 
6547
- case buttonizer_constants["a" /* actionTypes */].buttons.SET_KEY_FORMAT:
6548
- {
6549
- var format = buttonizer_constants["c" /* formats */][action.payload.format];
6550
- if (!format) break;
6551
- var parsedValue = format.format.apply(format, buttonReducer_toConsumableArray(action.payload.values));
 
 
 
6552
 
6553
- if (parsedValue === "unset") {
6554
- if (typeof draftStore[action.payload.id][action.payload.key] !== "undefined") delete draftStore[action.payload.id][action.payload.key];
6555
- break;
6556
- }
6557
 
6558
- draftStore[action.payload.id][action.payload.key] = parsedValue;
6559
- break;
6560
- }
6561
 
6562
- case buttonizer_constants["a" /* actionTypes */].ADD_RELATION:
6563
- {
6564
- draftStore[action.payload.button_id].parent = action.payload.group_id;
6565
- break;
6566
- }
6567
 
6568
- case buttonizer_constants["a" /* actionTypes */].CHANGE_RELATION:
6569
- {
6570
- draftStore[action.payload.button_id].parent = action.payload.new_group_id;
6571
- break;
6572
- }
6573
 
6574
- case buttonizer_constants["a" /* actionTypes */].REMOVE_RELATION:
6575
- {
6576
- draftStore[action.payload.button_id].parent = null;
6577
- break;
6578
- }
6579
 
6580
- default:
6581
- {
6582
- return draftStore;
6583
- }
6584
- }
6585
- });
6586
- }
6587
- // CONCATENATED MODULE: ./src/js/dashboard/store/index.js
6588
 
 
 
 
 
 
 
 
 
 
 
 
6589
 
 
 
 
 
 
 
 
 
 
 
6590
 
 
6591
 
6592
 
 
6593
 
 
 
6594
 
 
6595
 
6596
 
 
6597
 
 
 
 
6598
 
6599
  /**
6600
- * Welcome to the Castore, proceed with caution
 
 
 
 
 
6601
  */
 
 
 
 
 
 
 
6602
 
6603
- var combinedReducers = Object(redux["c" /* combineReducers */])({
6604
- saving: savingReducer,
6605
- wp: wpReducer,
6606
- timeSchedules: timeScheduleReducer,
6607
- pageRules: pageRuleReducer,
6608
- groups: groupReducer,
6609
- buttons: dataReducer,
6610
- misc: rootReducer,
6611
- settings: settingReducer
6612
- });
6613
  /**
6614
- * Logs all actions and states after they are dispatched.
 
 
6615
  */
6616
- // const logger = store => next => action => {
6617
- // console.group(action.type);
6618
- // console.info("dispatching", action);
6619
- // let result = next(action);
6620
- // console.log("next state", store.getState());
6621
- // console.groupEnd();
6622
- // return result;
6623
- // };
6624
-
6625
- var store_store = Object(redux["e" /* createStore */])(combinedReducers);
6626
 
6627
- store_store.add = function (data, model) {
6628
- return store_store.dispatch(Object(dataActions["a" /* addRecord */])(data, model));
 
 
 
 
 
 
 
 
 
 
 
 
6629
  };
6630
 
6631
- store_store.subscribe(savingMiddleware["a" /* save */]);
6632
- /* harmony default export */ var dashboard_store = __webpack_exports__["a"] = (store_store);
6633
 
6634
  /***/ }),
6635
- /* 35 */
6636
- /***/ (function(module, exports, __webpack_require__) {
6637
 
6638
- var store = __webpack_require__(256)('wks');
6639
- var uid = __webpack_require__(147);
6640
- var Symbol = __webpack_require__(24).Symbol;
6641
- var USE_SYMBOL = typeof Symbol == 'function';
6642
 
6643
- var $exports = module.exports = function (name) {
6644
- return store[name] || (store[name] =
6645
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
6646
- };
6647
 
6648
- $exports.store = store;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6649
 
6650
 
6651
  /***/ }),
6652
- /* 36 */,
6653
- /* 37 */
6654
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6655
 
6656
  "use strict";
6657
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inheritsLoose; });
6658
- function _inheritsLoose(subClass, superClass) {
6659
- subClass.prototype = Object.create(superClass.prototype);
6660
- subClass.prototype.constructor = subClass;
6661
- subClass.__proto__ = superClass;
6662
- }
6663
 
6664
- /***/ }),
6665
- /* 38 */
6666
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6667
 
6668
- "use strict";
6669
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ownerDocument; });
6670
- function ownerDocument(node) {
6671
- return node && node.ownerDocument || document;
6672
- }
 
 
 
 
 
 
 
 
 
 
 
 
6673
 
6674
  /***/ }),
6675
- /* 39 */
6676
- /***/ (function(module, exports) {
6677
 
6678
- var g;
 
6679
 
6680
- // This works in non-strict mode
6681
- g = (function() {
6682
- return this;
6683
- })();
6684
 
6685
- try {
6686
- // This works if eval is allowed (see CSP)
6687
- g = g || new Function("return this")();
6688
- } catch (e) {
6689
- // This works if the window reference is available
6690
- if (typeof window === "object") g = window;
6691
- }
6692
 
6693
- // g can still be undefined, but nothing to do about it...
6694
- // We return undefined, instead of nothing here, so it's
6695
- // easier to handle this case. if(!global) { ...}
 
6696
 
6697
- module.exports = g;
 
 
 
 
 
 
 
6698
 
 
 
 
 
 
 
 
 
6699
 
6700
- /***/ }),
6701
- /* 40 */
6702
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6703
 
6704
- "use strict";
6705
- /* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(280);
 
 
 
 
6706
 
 
 
 
 
 
 
6707
 
6708
- /** Detect free variable `self`. */
6709
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
 
 
 
 
6710
 
6711
- /** Used as a reference to the global object. */
6712
- var root = _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"] || freeSelf || Function('return this')();
6713
 
6714
- /* harmony default export */ __webpack_exports__["a"] = (root);
 
6715
 
 
 
 
 
 
 
6716
 
6717
- /***/ }),
6718
- /* 41 */
6719
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
6720
 
6721
- "use strict";
6722
- /* unused harmony export Immer */
6723
- /* unused harmony export applyPatches */
6724
- /* unused harmony export castDraft */
6725
- /* unused harmony export castImmutable */
6726
- /* unused harmony export createDraft */
6727
- /* unused harmony export current */
6728
- /* unused harmony export enableAllPlugins */
6729
- /* unused harmony export enableES5 */
6730
- /* unused harmony export enableMapSet */
6731
- /* unused harmony export enablePatches */
6732
- /* unused harmony export finishDraft */
6733
- /* unused harmony export freeze */
6734
- /* unused harmony export immerable */
6735
- /* unused harmony export isDraft */
6736
- /* unused harmony export isDraftable */
6737
- /* unused harmony export nothing */
6738
- /* unused harmony export original */
6739
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ut; });
6740
- /* unused harmony export produceWithPatches */
6741
- /* unused harmony export setAutoFreeze */
6742
- /* unused harmony export setUseProxies */
6743
- function t(t){for(var n=arguments.length,r=Array(n>1?n-1:0),e=1;e<n;e++)r[e-1]=arguments[e];if(false){ var i, o; }throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function n(t){return!!t&&!!t[Q]}function r(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var n=Object.getPrototypeOf(t);return!n||n===Object.prototype}(t)||Array.isArray(t)||!!t[L]||!!t.constructor[L]||s(t)||v(t))}function e(r){return n(r)||t(23,r),r[Q].t}function i(t,n,r){void 0===r&&(r=!1),0===o(t)?(r?Object.keys:Z)(t).forEach((function(e){r&&"symbol"==typeof e||n(e,t[e],t)})):t.forEach((function(r,e){return n(e,r,t)}))}function o(t){var n=t[Q];return n?n.i>3?n.i-4:n.i:Array.isArray(t)?1:s(t)?2:v(t)?3:0}function u(t,n){return 2===o(t)?t.has(n):Object.prototype.hasOwnProperty.call(t,n)}function a(t,n){return 2===o(t)?t.get(n):t[n]}function f(t,n,r){var e=o(t);2===e?t.set(n,r):3===e?(t.delete(n),t.add(r)):t[n]=r}function c(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}function s(t){return X&&t instanceof Map}function v(t){return q&&t instanceof Set}function p(t){return t.o||t.t}function l(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var n=tt(t);delete n[Q];for(var r=Z(n),e=0;e<r.length;e++){var i=r[e],o=n[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),n)}function d(t,e){return void 0===e&&(e=!1),y(t)||n(t)||!r(t)?t:(o(t)>1&&(t.set=t.add=t.clear=t.delete=h),Object.freeze(t),e&&i(t,(function(t,n){return d(n,!0)}),!0),t)}function h(){t(2)}function y(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function b(n){var r=nt[n];return r||t(18,n),r}function m(t,n){nt[t]||(nt[t]=n)}function _(){return true||false,U}function j(t,n){n&&(b("Patches"),t.u=[],t.s=[],t.v=n)}function g(t){w(t),t.p.forEach(S),t.p=null}function w(t){t===U&&(U=t.l)}function O(t){return U={p:[],l:U,h:t,m:!0,_:0}}function S(t){var n=t[Q];0===n.i||1===n.i?n.j():n.g=!0}function P(n,e){e._=e.p.length;var i=e.p[0],o=void 0!==n&&n!==i;return e.h.O||b("ES5").S(e,n,o),o?(i[Q].P&&(g(e),t(4)),r(n)&&(n=M(e,n),e.l||x(e,n)),e.u&&b("Patches").M(i[Q],n,e.u,e.s)):n=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),n!==H?n:void 0}function M(t,n,r){if(y(n))return n;var e=n[Q];if(!e)return i(n,(function(i,o){return A(t,e,n,i,o,r)}),!0),n;if(e.A!==t)return n;if(!e.P)return x(t,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(n,i){return A(t,e,o,n,i,r)})),x(t,o,!1),r&&t.u&&b("Patches").R(e,r,t.u,t.s)}return e.o}function A(e,i,o,a,c,s){if( false&&false,n(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!n(v))return;e.m=!1}if(r(c)&&!y(c)){if(!e.h.N&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(t,n,r){void 0===r&&(r=!1),t.h.N&&t.m&&d(n,r)}function z(t,n){var r=t[Q];return(r?p(r):t)[n]}function I(t,n){if(n in t)for(var r=Object.getPrototypeOf(t);r;){var e=Object.getOwnPropertyDescriptor(r,n);if(e)return e;r=Object.getPrototypeOf(r)}}function k(t){t.P||(t.P=!0,t.l&&k(t.l))}function E(t){t.o||(t.o=l(t.t))}function R(t,n,r){var e=s(n)?b("MapSet").T(n,r):v(n)?b("MapSet").F(n,r):t.O?function(t,n){var r=Array.isArray(t),e={i:r?1:0,A:n?n.A:_(),P:!1,I:!1,D:{},l:n,t:t,k:null,o:null,j:null,C:!1},i=e,o=rt;r&&(i=[e],o=et);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(n,r):b("ES5").J(n,r);return(r?r.A:_()).p.push(e),e}function D(e){return n(e)||t(22,e),function t(n){if(!r(n))return n;var e,u=n[Q],c=o(n);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=N(n,c),u.I=!1}else e=N(n,c);return i(e,(function(n,r){u&&a(u.t,n)===r||f(e,n,t(r))})),3===c?new Set(e):e}(e)}function N(t,n){switch(n){case 2:return new Map(t);case 3:return Array.from(t)}return l(t)}function T(){function r(t,n){var r=s[t];return r?r.enumerable=n:s[t]=r={configurable:!0,enumerable:n,get:function(){var n=this[Q];return false&&false,rt.get(n,t)},set:function(n){var r=this[Q]; false&&false,rt.set(r,t,n)}},r}function e(t){for(var n=t.length-1;n>=0;n--){var r=t[n][Q];if(!r.P)switch(r.i){case 5:a(r)&&k(r);break;case 4:o(r)&&k(r)}}}function o(t){for(var n=t.t,r=t.k,e=Z(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=n[o];if(void 0===a&&!u(n,o))return!0;var f=r[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!n[Q];return e.length!==Z(n).length+(v?0:1)}function a(t){var n=t.k;if(n.length!==t.t.length)return!0;var r=Object.getOwnPropertyDescriptor(n,n.length-1);return!(!r||r.get)}function f(n){n.g&&t(3,JSON.stringify(p(n)))}var s={};m("ES5",{J:function(t,n){var e=Array.isArray(t),i=function(t,n){if(t){for(var e=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(e,""+i,r(i,!0));return e}var o=tt(n);delete o[Q];for(var u=Z(o),a=0;a<u.length;a++){var f=u[a];o[f]=r(f,t||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(e,t),o={i:e?5:4,A:n?n.A:_(),P:!1,I:!1,D:{},l:n,t:t,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(t,r,o){o?n(r)&&r[Q].A===t&&e(t.p):(t.u&&function t(n){if(n&&"object"==typeof n){var r=n[Q];if(r){var e=r.t,o=r.k,f=r.D,c=r.i;if(4===c)i(o,(function(n){n!==Q&&(void 0!==e[n]||u(e,n)?f[n]||t(o[n]):(f[n]=!0,k(r)))})),i(e,(function(t){void 0!==o[t]||u(o,t)||(f[t]=!1,k(r))}));else if(5===c){if(a(r)&&(k(r),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&t(o[l])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):a(t)}})}function F(){function e(t){if(!r(t))return t;if(Array.isArray(t))return t.map(e);if(s(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(v(t))return new Set(Array.from(t).map(e));var n=Object.create(Object.getPrototypeOf(t));for(var i in t)n[i]=e(t[i]);return n}function f(t){return n(t)?e(t):t}var c="add";m("Patches",{$:function(n,r){return r.forEach((function(r){for(var i=r.path,u=r.op,f=n,s=0;s<i.length-1;s++){var v=o(f),p=i[s];0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||t(24),"function"==typeof f&&"prototype"===p&&t(24),"object"!=typeof(f=a(f,p))&&t(15,i.join("/"))}var l=o(f),d=e(r.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:t(16);default:return f[h]=d}case c:switch(l){case 1:return f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(r.value);default:return delete f[h]}default:t(17,u)}})),n},R:function(t,n,r,e){switch(t.i){case 0:case 4:case 2:return function(t,n,r,e){var o=t.t,s=t.o;i(t.D,(function(t,i){var v=a(o,t),p=a(s,t),l=i?u(o,t)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=n.concat(t);r.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(t,n,r,e);case 5:case 1:return function(t,n,r,e){var i=t.t,o=t.D,u=t.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,r];r=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=n.concat([v]);r.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=n.concat([l]);r.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:n.concat(["length"]),value:i.length})}(t,n,r,e);case 3:return function(t,n,r,e){var i=t.t,o=t.o,u=0;i.forEach((function(t){if(!o.has(t)){var i=n.concat([u]);r.push({op:"remove",path:i,value:t}),e.unshift({op:c,path:i,value:t})}u++})),u=0,o.forEach((function(t){if(!i.has(t)){var o=n.concat([u]);r.push({op:c,path:o,value:t}),e.unshift({op:"remove",path:o,value:t})}u++}))}(t,n,r,e)}},M:function(t,n,r,e){r.push({op:"replace",path:[],value:n}),e.push({op:"replace",path:[],value:t.t})}})}function C(){function n(t,n){function r(){this.constructor=t}a(t,n),t.prototype=(r.prototype=n.prototype,new r)}function e(t){t.o||(t.D=new Map,t.o=new Map(t.t))}function o(t){t.o||(t.o=new Set,t.t.forEach((function(n){if(r(n)){var e=R(t.A.h,n,t);t.p.set(n,e),t.o.add(e)}else t.o.add(n)})))}function u(n){n.g&&t(3,JSON.stringify(p(n)))}var a=function(t,n){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,n)},f=function(){function t(t,n){return this[Q]={i:2,l:n,A:n?n.A:_(),P:!1,I:!1,o:void 0,D:void 0,t:t,k:this,C:!1,g:!1},this}n(t,Map);var o=t.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(t){return p(this[Q]).has(t)},o.set=function(t,n){var r=this[Q];return u(r),p(r).has(t)&&p(r).get(t)===n||(e(r),k(r),r.D.set(t,!0),r.o.set(t,n),r.D.set(t,!0)),this},o.delete=function(t){if(!this.has(t))return!1;var n=this[Q];return u(n),e(n),k(n),n.D.set(t,!1),n.o.delete(t),!0},o.clear=function(){var t=this[Q];u(t),p(t).size&&(e(t),k(t),t.D=new Map,i(t.t,(function(n){t.D.set(n,!1)})),t.o.clear())},o.forEach=function(t,n){var r=this;p(this[Q]).forEach((function(e,i){t.call(n,r.get(i),i,r)}))},o.get=function(t){var n=this[Q];u(n);var i=p(n).get(t);if(n.I||!r(i))return i;if(i!==n.t.get(t))return i;var o=R(n.A.h,i,n);return e(n),n.o.set(t,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var t,n=this,r=this.keys();return(t={})[V]=function(){return n.values()},t.next=function(){var t=r.next();return t.done?t:{done:!1,value:n.get(t.value)}},t},o.entries=function(){var t,n=this,r=this.keys();return(t={})[V]=function(){return n.entries()},t.next=function(){var t=r.next();if(t.done)return t;var e=n.get(t.value);return{done:!1,value:[t.value,e]}},t},o[V]=function(){return this.entries()},t}(),c=function(){function t(t,n){return this[Q]={i:3,l:n,A:n?n.A:_(),P:!1,I:!1,o:void 0,t:t,k:this,p:new Map,g:!1,C:!1},this}n(t,Set);var r=t.prototype;return Object.defineProperty(r,"size",{get:function(){return p(this[Q]).size}}),r.has=function(t){var n=this[Q];return u(n),n.o?!!n.o.has(t)||!(!n.p.has(t)||!n.o.has(n.p.get(t))):n.t.has(t)},r.add=function(t){var n=this[Q];return u(n),this.has(t)||(o(n),k(n),n.o.add(t)),this},r.delete=function(t){if(!this.has(t))return!1;var n=this[Q];return u(n),o(n),k(n),n.o.delete(t)||!!n.p.has(t)&&n.o.delete(n.p.get(t))},r.clear=function(){var t=this[Q];u(t),p(t).size&&(o(t),k(t),t.o.clear())},r.values=function(){var t=this[Q];return u(t),o(t),t.o.values()},r.entries=function(){var t=this[Q];return u(t),o(t),t.o.entries()},r.keys=function(){return this.values()},r[V]=function(){return this.values()},r.forEach=function(t,n){for(var r=this.values(),e=r.next();!e.done;)t.call(n,e.value,e.value,this),e=r.next()},t}();m("MapSet",{T:function(t,n){return new f(t,n)},F:function(t,n){return new c(t,n)}})}function J(){T(),C(),F()}function K(t){return t}function $(t){return t}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,tt=Object.getOwnPropertyDescriptors||function(t){var n={};return Z(t).forEach((function(r){n[r]=Object.getOwnPropertyDescriptor(t,r)})),n},nt={},rt={get:function(t,n){if(n===Q)return t;var e=p(t);if(!u(e,n))return function(t,n,r){var e,i=I(n,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(t.k):void 0}(t,e,n);var i=e[n];return t.I||!r(i)?i:i===z(t.t,n)?(E(t),t.o[n]=R(t.A.h,i,t)):i},has:function(t,n){return n in p(t)},ownKeys:function(t){return Reflect.ownKeys(p(t))},set:function(t,n,r){var e=I(p(t),n);if(null==e?void 0:e.set)return e.set.call(t.k,r),!0;if(!t.P){var i=z(p(t),n),o=null==i?void 0:i[Q];if(o&&o.t===r)return t.o[n]=r,t.D[n]=!1,!0;if(c(r,i)&&(void 0!==r||u(t.t,n)))return!0;E(t),k(t)}return t.o[n]=r,t.D[n]=!0,!0},deleteProperty:function(t,n){return void 0!==z(t.t,n)||n in t.t?(t.D[n]=!1,E(t),k(t)):delete t.D[n],t.o&&delete t.o[n],!0},getOwnPropertyDescriptor:function(t,n){var r=p(t),e=Reflect.getOwnPropertyDescriptor(r,n);return e?{writable:!0,configurable:1!==t.i||"length"!==n,enumerable:e.enumerable,value:r[n]}:e},defineProperty:function(){t(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){t(12)}},et={};i(rt,(function(t,n){et[t]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}})),et.deleteProperty=function(n,r){return false&&false,rt.deleteProperty.call(this,n[0],r)},et.set=function(n,r,e){return false&&false,rt.set.call(this,n[0],r,e,n[0])};var it=function(){function e(t){this.O=B,this.N=!0,"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var i=e.prototype;return i.produce=function(n,e,i){if("function"==typeof n&&"function"!=typeof e){var o=e;e=n;var u=this;return function(t){var n=this;void 0===t&&(t=o);for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return u.produce(t,(function(t){var r;return(r=e).call.apply(r,[n,t].concat(i))}))}}var a;if("function"!=typeof e&&t(6),void 0!==i&&"function"!=typeof i&&t(7),r(n)){var f=O(this),c=R(this,n,void 0),s=!0;try{a=e(c),s=!1}finally{s?g(f):w(f)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return j(f,i),P(t,f)}),(function(t){throw g(f),t})):(j(f,i),P(a,f))}if(!n||"object"!=typeof n){if((a=e(n))===H)return;return void 0===a&&(a=n),this.N&&d(a,!0),a}t(21,n)},i.produceWithPatches=function(t,n){var r,e,i=this;return"function"==typeof t?function(n){for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return i.produceWithPatches(n,(function(n){return t.apply(void 0,[n].concat(e))}))}:[this.produce(t,n,(function(t,n){r=t,e=n})),r,e]},i.createDraft=function(e){r(e)||t(8),n(e)&&(e=D(e));var i=O(this),o=R(this,e,void 0);return o[Q].C=!0,w(i),o},i.finishDraft=function(n,r){var e=n&&n[Q]; false&&(false);var i=e.A;return j(i,r),P(void 0,i)},i.setAutoFreeze=function(t){this.N=t},i.setUseProxies=function(n){n&&!B&&t(20),this.O=n},i.applyPatches=function(t,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}var o=b("Patches").$;return n(t)?o(t,r):this.produce(t,(function(t){return o(t,r.slice(e+1))}))},e}(),ot=new it,ut=ot.produce,at=ot.produceWithPatches.bind(ot),ft=ot.setAutoFreeze.bind(ot),ct=ot.setUseProxies.bind(ot),st=ot.applyPatches.bind(ot),vt=ot.createDraft.bind(ot),pt=ot.finishDraft.bind(ot);/* harmony default export */ __webpack_exports__["a"] = (ut);
6744
- //# sourceMappingURL=immer.esm.js.map
6745
 
6746
 
6747
  /***/ }),
6748
- /* 42 */
6749
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
6750
 
6751
  "use strict";
6752
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getPreview; });
6753
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return rgbToRgba; });
6754
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getColorType; });
6755
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getPaletteAngle; });
6756
- /* unused harmony export colorValues */
6757
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getFirstColor; });
6758
- /* harmony import */ var react_linear_gradient_picker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(223);
6759
- /* harmony import */ var react_linear_gradient_picker__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_linear_gradient_picker__WEBPACK_IMPORTED_MODULE_0__);
6760
- /* global require */
6761
 
6762
 
6763
- var gradientParser = __webpack_require__(373);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6764
 
6765
- var rgbToRgba = function rgbToRgba(rgb) {
6766
- var a = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6767
- return /rgba/.test(rgb) ? rgb : rgb.replace("rgb(", "rgba(").replace(")", ", ".concat(a, ")"));
6768
- };
6769
 
6770
- var getRadialGradientPreview = function getRadialGradientPreview(palette) {
6771
- var background = "radial-gradient(".concat(palette.map(function (_ref) {
6772
- var color = _ref.color,
6773
- offset = _ref.offset,
6774
- opacity = _ref.opacity;
6775
- return "".concat(rgbToRgba(color, opacity), " ").concat(offset * 100, "%");
6776
- }).join(", "), ")");
6777
- return {
6778
- background: background
 
 
 
 
 
 
 
 
6779
  };
 
6780
  };
6781
 
6782
- var getPreview = function getPreview(palette, angle, type) {
6783
- switch (type) {
6784
- case "solid":
6785
- return getSolidPreview(palette);
6786
-
6787
- case "radial":
6788
- return getRadialGradientPreview(palette);
6789
-
6790
- case "linear":
6791
- return Object(react_linear_gradient_picker__WEBPACK_IMPORTED_MODULE_0__["getGradientPreview"])(palette, angle);
6792
- }
6793
- };
6794
 
6795
- var getSolidPreview = function getSolidPreview(palette) {
6796
- if (typeof palette !== "string") return {
6797
- background: rgbToRgba(palette[0].color, palette[0].opacity)
6798
- };
6799
- return {
6800
- background: palette
6801
- };
6802
- };
6803
 
6804
- var getColorType = function getColorType(value) {
6805
- if (value == null) return "solid";
6806
- if (/radial/.test(value)) return "radial";
6807
- if (/linear/.test(value)) return "linear";
6808
- return "solid";
6809
- };
6810
 
6811
- var getPaletteAngle = function getPaletteAngle(value) {
6812
- if (value == null) return {
6813
- palette: null,
6814
- angle: 90
6815
- };
6816
- var type = getColorType(value);
6817
- if (type === "solid") return {
6818
- palette: value,
6819
- angle: 90
6820
- };
6821
 
6822
- if (type === "linear" || type === "radial") {
6823
- var stop = gradientParser.parse(value)[0].colorStops[0];
6824
- return {
6825
- palette: "".concat(stop.type, "(").concat(stop.value.join(", "), ")"),
6826
- angle: 90
6827
- };
6828
- }
6829
- };
6830
 
6831
- var getFirstColor = function getFirstColor(color) {
6832
- var type = getColorType(color);
6833
- if (type === "solid") return color;
6834
- var result = gradientParser.parse(color)[0];
6835
- var stop = result.colorStops[0];
6836
- if (stop.type === "hex") return "#".concat(stop.value); // hex
6837
 
6838
- return "".concat(stop.type, "(").concat(stop.value.join(", "), ")"); // rgb(a) or hsl
6839
- };
 
 
 
 
 
 
 
 
 
 
6840
 
6841
- function colorValues(color) {
6842
- if (!color) return;
6843
- if (color.toLowerCase() === "transparent") return {
6844
- r: 0,
6845
- g: 0,
6846
- b: 0,
6847
- a: 0
6848
- };
 
 
6849
 
6850
- if (color[0] === "#") {
6851
- if (color.length < 7) {
6852
- // convert #RGB and #RGBA to #RRGGBB and #RRGGBBAA
6853
- color = "#" + color[1] + color[1] + color[2] + color[2] + color[3] + color[3] + (color.length > 4 ? color[4] + color[4] : "");
 
 
 
6854
  }
6855
-
6856
- return {
6857
- r: parseInt(color.substr(1, 2), 16),
6858
- g: parseInt(color.substr(3, 2), 16),
6859
- b: parseInt(color.substr(5, 2), 16),
6860
- a: color.length > 7 ? parseInt(color.substr(7, 2), 16) / 255 : 1
6861
- };
6862
  }
6863
 
6864
- if (color.indexOf("rgb") === -1) {
6865
- // convert named colors
6866
- var temp_elem = document.body.appendChild(document.createElement("fictum")); // intentionally use unknown tag to lower chances of css rule override with !important
 
 
 
 
6867
 
6868
- var flag = "rgb(1, 2, 3)"; // this flag tested on chrome 59, ff 53, ie9, ie10, ie11, edge 14
 
 
 
 
6869
 
6870
- temp_elem.style.color = flag;
6871
- if (temp_elem.style.color !== flag) return; // color set failed - some monstrous css rule is probably taking over the color of our object
6872
 
6873
- temp_elem.style.color = color;
6874
- if (temp_elem.style.color === flag || temp_elem.style.color === "") return; // color parse failed
 
 
 
 
 
6875
 
6876
- color = getComputedStyle(temp_elem).color;
6877
- document.body.removeChild(temp_elem);
6878
- }
 
 
 
 
6879
 
6880
- if (color.indexOf("rgb") === 0) {
6881
- if (color.indexOf("rgba") === -1) color += ",1"; // convert 'rgb(R,G,B)' to 'rgb(R,G,B)A' which looks awful but will pass the regxep below
 
 
6882
 
6883
- var newColor = color.match(/[\.\d]+/g).map(function (a) {
6884
- return +a;
 
 
 
6885
  });
6886
- return {
6887
- r: newColor[0],
6888
- g: newColor[1],
6889
- b: newColor[2],
6890
- a: newColor[3]
6891
- };
6892
- }
6893
- }
6894
 
 
 
 
 
6895
 
6896
 
6897
  /***/ }),
6898
- /* 43 */
6899
- /***/ (function(module, exports, __webpack_require__) {
6900
 
6901
- // Thank's IE8 for his funny defineProperty
6902
- module.exports = !__webpack_require__(27)(function () {
6903
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
6904
- });
6905
 
 
6906
 
6907
- /***/ }),
6908
- /* 44 */
6909
- /***/ (function(module, exports, __webpack_require__) {
6910
 
6911
- var anObject = __webpack_require__(22);
6912
- var IE8_DOM_DEFINE = __webpack_require__(470);
6913
- var toPrimitive = __webpack_require__(104);
6914
- var dP = Object.defineProperty;
6915
 
6916
- exports.f = __webpack_require__(43) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
6917
- anObject(O);
6918
- P = toPrimitive(P, true);
6919
- anObject(Attributes);
6920
- if (IE8_DOM_DEFINE) try {
6921
- return dP(O, P, Attributes);
6922
- } catch (e) { /* empty */ }
6923
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
6924
- if ('value' in Attributes) O[P] = Attributes.value;
6925
- return O;
 
 
 
 
 
 
 
 
 
 
6926
  };
6927
 
6928
 
6929
  /***/ }),
6930
- /* 45 */
6931
- /***/ (function(module, exports, __webpack_require__) {
6932
 
6933
- // 7.1.15 ToLength
6934
- var toInteger = __webpack_require__(106);
6935
- var min = Math.min;
6936
- module.exports = function (it) {
6937
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6938
  };
6939
 
6940
 
6941
  /***/ }),
6942
- /* 46 */
6943
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6944
 
6945
- "use strict";
6946
- /* unused harmony export MemoryRouter */
6947
- /* unused harmony export Prompt */
6948
- /* unused harmony export Redirect */
6949
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Route; });
6950
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Router; });
6951
- /* unused harmony export StaticRouter */
6952
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return Switch; });
6953
- /* unused harmony export __HistoryContext */
6954
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return context; });
6955
- /* unused harmony export generatePath */
6956
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return matchPath; });
6957
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return useHistory; });
6958
- /* unused harmony export useLocation */
6959
- /* unused harmony export useParams */
6960
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return useRouteMatch; });
6961
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return withRouter; });
6962
- /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37);
6963
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
6964
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6965
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
6966
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
6967
- /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89);
6968
- /* harmony import */ var mini_create_react_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(408);
6969
- /* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65);
6970
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
6971
- /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(410);
6972
- /* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_7__);
6973
- /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(144);
6974
- /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_8__);
6975
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(47);
6976
- /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(158);
6977
- /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_10__);
6978
 
 
6979
 
6980
 
 
 
6981
 
 
 
 
6982
 
 
 
 
 
 
6983
 
 
 
 
 
 
 
 
 
 
 
 
6984
 
 
 
6985
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6986
 
 
 
 
 
 
 
 
 
 
6987
 
 
 
 
 
 
6988
 
 
 
6989
 
 
 
6990
 
6991
- // TODO: Replace with React.createContext once we can assume React 16+
 
 
 
6992
 
6993
- var createNamedContext = function createNamedContext(name) {
6994
- var context = Object(mini_create_react_context__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])();
6995
- context.displayName = name;
6996
- return context;
6997
  };
6998
 
6999
- var historyContext =
7000
- /*#__PURE__*/
7001
- createNamedContext("Router-History");
7002
 
7003
- // TODO: Replace with React.createContext once we can assume React 16+
 
 
7004
 
7005
- var createNamedContext$1 = function createNamedContext(name) {
7006
- var context = Object(mini_create_react_context__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])();
7007
- context.displayName = name;
7008
- return context;
7009
- };
7010
 
7011
- var context =
7012
- /*#__PURE__*/
7013
- createNamedContext$1("Router");
7014
 
7015
- /**
7016
- * The public API for putting history on context.
7017
- */
7018
 
7019
- var Router =
7020
- /*#__PURE__*/
7021
- function (_React$Component) {
7022
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Router, _React$Component);
7023
 
7024
- Router.computeRootMatch = function computeRootMatch(pathname) {
7025
- return {
7026
- path: "/",
7027
- url: "/",
7028
- params: {},
7029
- isExact: pathname === "/"
7030
- };
 
 
 
7031
  };
 
7032
 
7033
- function Router(props) {
7034
- var _this;
7035
 
7036
- _this = _React$Component.call(this, props) || this;
7037
- _this.state = {
7038
- location: props.history.location
7039
- }; // This is a bit of a hack. We have to start listening for location
7040
- // changes here in the constructor in case there are any <Redirect>s
7041
- // on the initial render. If there are, they will replace/push when
7042
- // they mount and since cDM fires in children before parents, we may
7043
- // get a new location before the <Router> is mounted.
7044
 
7045
- _this._isMounted = false;
7046
- _this._pendingLocation = null;
7047
 
7048
- if (!props.staticContext) {
7049
- _this.unlisten = props.history.listen(function (location) {
7050
- if (_this._isMounted) {
7051
- _this.setState({
7052
- location: location
7053
- });
7054
- } else {
7055
- _this._pendingLocation = location;
7056
- }
7057
- });
7058
- }
7059
-
7060
- return _this;
7061
- }
7062
-
7063
- var _proto = Router.prototype;
7064
-
7065
- _proto.componentDidMount = function componentDidMount() {
7066
- this._isMounted = true;
7067
-
7068
- if (this._pendingLocation) {
7069
- this.setState({
7070
- location: this._pendingLocation
7071
- });
7072
- }
7073
- };
7074
-
7075
- _proto.componentWillUnmount = function componentWillUnmount() {
7076
- if (this.unlisten) this.unlisten();
7077
- };
7078
 
7079
- _proto.render = function render() {
7080
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Provider, {
7081
- value: {
7082
- history: this.props.history,
7083
- location: this.state.location,
7084
- match: Router.computeRootMatch(this.state.location.pathname),
7085
- staticContext: this.props.staticContext
7086
- }
7087
- }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(historyContext.Provider, {
7088
- children: this.props.children || null,
7089
- value: this.props.history
7090
- }));
7091
- };
7092
 
7093
- return Router;
7094
- }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
7095
 
7096
- if (false) {}
 
 
 
 
 
 
 
 
7097
 
7098
  /**
7099
- * The public API for a <Router> that stores location in memory.
 
 
 
 
7100
  */
 
 
 
 
 
7101
 
7102
- var MemoryRouter =
7103
- /*#__PURE__*/
7104
- function (_React$Component) {
7105
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(MemoryRouter, _React$Component);
7106
-
7107
- function MemoryRouter() {
7108
- var _this;
7109
-
7110
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7111
- args[_key] = arguments[_key];
7112
- }
7113
 
7114
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
7115
- _this.history = Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createMemoryHistory */ "d"])(_this.props);
7116
- return _this;
7117
- }
7118
 
7119
- var _proto = MemoryRouter.prototype;
 
 
 
 
7120
 
7121
- _proto.render = function render() {
7122
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Router, {
7123
- history: this.history,
7124
- children: this.props.children
 
 
 
 
7125
  });
7126
- };
7127
-
7128
- return MemoryRouter;
7129
- }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
7130
 
7131
- if (false) {}
 
7132
 
7133
- var Lifecycle =
7134
- /*#__PURE__*/
7135
- function (_React$Component) {
7136
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Lifecycle, _React$Component);
 
7137
 
7138
- function Lifecycle() {
7139
- return _React$Component.apply(this, arguments) || this;
7140
  }
7141
 
7142
- var _proto = Lifecycle.prototype;
 
7143
 
7144
- _proto.componentDidMount = function componentDidMount() {
7145
- if (this.props.onMount) this.props.onMount.call(this, this);
7146
- };
7147
 
7148
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
7149
- if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
7150
- };
7151
 
7152
- _proto.componentWillUnmount = function componentWillUnmount() {
7153
- if (this.props.onUnmount) this.props.onUnmount.call(this, this);
7154
- };
7155
 
7156
- _proto.render = function render() {
7157
- return null;
7158
- };
7159
 
7160
- return Lifecycle;
7161
- }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
7162
 
7163
  /**
7164
- * The public API for prompting the user before navigating away from a screen.
 
 
 
 
7165
  */
 
 
 
 
 
7166
 
7167
- function Prompt(_ref) {
7168
- var message = _ref.message,
7169
- _ref$when = _ref.when,
7170
- when = _ref$when === void 0 ? true : _ref$when;
7171
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context) {
7172
- !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0;
7173
- if (!when || context.staticContext) return null;
7174
- var method = context.history.block;
7175
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Lifecycle, {
7176
- onMount: function onMount(self) {
7177
- self.release = method(message);
7178
- },
7179
- onUpdate: function onUpdate(self, prevProps) {
7180
- if (prevProps.message !== message) {
7181
- self.release();
7182
- self.release = method(message);
7183
- }
7184
- },
7185
- onUnmount: function onUnmount(self) {
7186
- self.release();
7187
- },
7188
- message: message
7189
- });
7190
- });
7191
- }
7192
 
7193
- if (false) { var messageType; }
7194
 
7195
- var cache = {};
7196
- var cacheLimit = 10000;
7197
- var cacheCount = 0;
7198
 
7199
- function compilePath(path) {
7200
- if (cache[path]) return cache[path];
7201
- var generator = path_to_regexp__WEBPACK_IMPORTED_MODULE_7___default.a.compile(path);
7202
 
7203
- if (cacheCount < cacheLimit) {
7204
- cache[path] = generator;
7205
- cacheCount++;
7206
- }
7207
 
7208
- return generator;
7209
- }
7210
- /**
7211
- * Public API for generating a URL pathname from a path and parameters.
7212
- */
7213
 
 
 
7214
 
7215
- function generatePath(path, params) {
7216
- if (path === void 0) {
7217
- path = "/";
7218
- }
 
 
7219
 
7220
- if (params === void 0) {
7221
- params = {};
7222
- }
7223
 
7224
- return path === "/" ? path : compilePath(path)(params, {
7225
- pretty: true
7226
- });
7227
- }
7228
 
7229
- /**
7230
- * The public API for navigating programmatically with a component.
7231
- */
7232
 
7233
- function Redirect(_ref) {
7234
- var computedMatch = _ref.computedMatch,
7235
- to = _ref.to,
7236
- _ref$push = _ref.push,
7237
- push = _ref$push === void 0 ? false : _ref$push;
7238
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context) {
7239
- !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0;
7240
- var history = context.history,
7241
- staticContext = context.staticContext;
7242
- var method = push ? history.push : history.replace;
7243
- var location = Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createLocation */ "c"])(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, to, {
7244
- pathname: generatePath(to.pathname, computedMatch.params)
7245
- }) : to); // When rendering in a static context,
7246
- // set the new location immediately.
7247
 
7248
- if (staticContext) {
7249
- method(location);
7250
- return null;
7251
- }
7252
 
7253
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Lifecycle, {
7254
- onMount: function onMount() {
7255
- method(location);
7256
- },
7257
- onUpdate: function onUpdate(self, prevProps) {
7258
- var prevLocation = Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createLocation */ "c"])(prevProps.to);
7259
 
7260
- if (!Object(history__WEBPACK_IMPORTED_MODULE_3__[/* locationsAreEqual */ "f"])(prevLocation, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, location, {
7261
- key: prevLocation.key
7262
- }))) {
7263
- method(location);
7264
  }
7265
- },
7266
- to: to
7267
- });
7268
- });
7269
- }
7270
 
7271
- if (false) {}
 
 
 
 
 
 
 
 
7272
 
7273
- var cache$1 = {};
7274
- var cacheLimit$1 = 10000;
7275
- var cacheCount$1 = 0;
7276
 
7277
- function compilePath$1(path, options) {
7278
- var cacheKey = "" + options.end + options.strict + options.sensitive;
7279
- var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});
7280
- if (pathCache[path]) return pathCache[path];
7281
- var keys = [];
7282
- var regexp = path_to_regexp__WEBPACK_IMPORTED_MODULE_7___default()(path, keys, options);
7283
- var result = {
7284
- regexp: regexp,
7285
- keys: keys
7286
- };
7287
 
7288
- if (cacheCount$1 < cacheLimit$1) {
7289
- pathCache[path] = result;
7290
- cacheCount$1++;
7291
- }
7292
 
7293
- return result;
7294
- }
7295
- /**
7296
- * Public API for matching a URL pathname to a path.
7297
- */
7298
 
7299
 
7300
- function matchPath(pathname, options) {
7301
- if (options === void 0) {
7302
- options = {};
7303
- }
 
 
 
 
 
 
 
 
7304
 
7305
- if (typeof options === "string" || Array.isArray(options)) {
7306
- options = {
7307
- path: options
7308
- };
7309
- }
7310
 
7311
- var _options = options,
7312
- path = _options.path,
7313
- _options$exact = _options.exact,
7314
- exact = _options$exact === void 0 ? false : _options$exact,
7315
- _options$strict = _options.strict,
7316
- strict = _options$strict === void 0 ? false : _options$strict,
7317
- _options$sensitive = _options.sensitive,
7318
- sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
7319
- var paths = [].concat(path);
7320
- return paths.reduce(function (matched, path) {
7321
- if (!path && path !== "") return null;
7322
- if (matched) return matched;
7323
 
7324
- var _compilePath = compilePath$1(path, {
7325
- end: exact,
7326
- strict: strict,
7327
- sensitive: sensitive
7328
- }),
7329
- regexp = _compilePath.regexp,
7330
- keys = _compilePath.keys;
7331
 
7332
- var match = regexp.exec(pathname);
7333
- if (!match) return null;
7334
- var url = match[0],
7335
- values = match.slice(1);
7336
- var isExact = pathname === url;
7337
- if (exact && !isExact) return null;
7338
- return {
7339
- path: path,
7340
- // the path used to match
7341
- url: path === "/" && url === "" ? "/" : url,
7342
- // the matched portion of the URL
7343
- isExact: isExact,
7344
- // whether or not we matched exactly
7345
- params: keys.reduce(function (memo, key, index) {
7346
- memo[key.name] = values[index];
7347
- return memo;
7348
- }, {})
7349
- };
7350
- }, null);
7351
- }
7352
 
7353
- function isEmptyChildren(children) {
7354
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.count(children) === 0;
7355
- }
7356
 
7357
- function evalChildrenDev(children, props, path) {
7358
- var value = children(props);
7359
- false ? undefined : void 0;
7360
- return value || null;
7361
- }
7362
  /**
7363
- * The public API for matching a single path and rendering.
 
 
 
7364
  */
 
 
 
7365
 
7366
 
7367
- var Route =
7368
- /*#__PURE__*/
7369
- function (_React$Component) {
7370
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Route, _React$Component);
7371
 
7372
- function Route() {
7373
- return _React$Component.apply(this, arguments) || this;
7374
- }
7375
 
7376
- var _proto = Route.prototype;
7377
 
7378
- _proto.render = function render() {
7379
- var _this = this;
7380
 
7381
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context$1) {
7382
- !context$1 ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0;
7383
- var location = _this.props.location || context$1.location;
7384
- var match = _this.props.computedMatch ? _this.props.computedMatch // <Switch> already computed the match for us
7385
- : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
7386
 
7387
- var props = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, context$1, {
7388
- location: location,
7389
- match: match
7390
- });
7391
 
7392
- var _this$props = _this.props,
7393
- children = _this$props.children,
7394
- component = _this$props.component,
7395
- render = _this$props.render; // Preact uses an empty array as children by
7396
- // default, so use null if that's the case.
 
7397
 
7398
- if (Array.isArray(children) && children.length === 0) {
7399
- children = null;
7400
- }
 
 
 
 
 
7401
 
7402
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Provider, {
7403
- value: props
7404
- }, props.match ? children ? typeof children === "function" ? false ? undefined : children(props) : children : component ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(component, props) : render ? render(props) : null : typeof children === "function" ? false ? undefined : children(props) : null);
7405
- });
7406
- };
7407
 
7408
- return Route;
7409
- }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
7410
 
7411
- if (false) {}
 
 
 
 
 
 
 
 
 
 
 
 
 
7412
 
7413
- function addLeadingSlash(path) {
7414
- return path.charAt(0) === "/" ? path : "/" + path;
7415
- }
7416
 
7417
- function addBasename(basename, location) {
7418
- if (!basename) return location;
7419
- return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, location, {
7420
- pathname: addLeadingSlash(basename) + location.pathname
7421
- });
7422
- }
 
 
 
 
 
 
7423
 
7424
- function stripBasename(basename, location) {
7425
- if (!basename) return location;
7426
- var base = addLeadingSlash(basename);
7427
- if (location.pathname.indexOf(base) !== 0) return location;
7428
- return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, location, {
7429
- pathname: location.pathname.substr(base.length)
7430
- });
7431
- }
7432
 
7433
- function createURL(location) {
7434
- return typeof location === "string" ? location : Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createPath */ "e"])(location);
7435
- }
7436
 
7437
- function staticHandler(methodName) {
7438
- return function () {
7439
- false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) ;
7440
- };
7441
- }
7442
 
7443
- function noop() {}
7444
- /**
7445
- * The public top-level API for a "static" <Router>, so-called because it
7446
- * can't actually change the current location. Instead, it just records
7447
- * location changes in a context object. Useful mainly in testing and
7448
- * server-rendering scenarios.
7449
- */
7450
 
 
7451
 
7452
- var StaticRouter =
7453
- /*#__PURE__*/
7454
- function (_React$Component) {
7455
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(StaticRouter, _React$Component);
7456
 
7457
- function StaticRouter() {
7458
- var _this;
7459
 
7460
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7461
- args[_key] = arguments[_key];
 
 
 
7462
  }
 
 
7463
 
7464
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
7465
 
7466
- _this.handlePush = function (location) {
7467
- return _this.navigateTo(location, "PUSH");
7468
- };
7469
 
7470
- _this.handleReplace = function (location) {
7471
- return _this.navigateTo(location, "REPLACE");
7472
- };
7473
 
7474
- _this.handleListen = function () {
7475
- return noop;
7476
- };
7477
 
7478
- _this.handleBlock = function () {
7479
- return noop;
7480
- };
7481
-
7482
- return _this;
7483
- }
7484
-
7485
- var _proto = StaticRouter.prototype;
7486
-
7487
- _proto.navigateTo = function navigateTo(location, action) {
7488
- var _this$props = this.props,
7489
- _this$props$basename = _this$props.basename,
7490
- basename = _this$props$basename === void 0 ? "" : _this$props$basename,
7491
- _this$props$context = _this$props.context,
7492
- context = _this$props$context === void 0 ? {} : _this$props$context;
7493
- context.action = action;
7494
- context.location = addBasename(basename, Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createLocation */ "c"])(location));
7495
- context.url = createURL(context.location);
7496
- };
7497
-
7498
- _proto.render = function render() {
7499
- var _this$props2 = this.props,
7500
- _this$props2$basename = _this$props2.basename,
7501
- basename = _this$props2$basename === void 0 ? "" : _this$props2$basename,
7502
- _this$props2$context = _this$props2.context,
7503
- context = _this$props2$context === void 0 ? {} : _this$props2$context,
7504
- _this$props2$location = _this$props2.location,
7505
- location = _this$props2$location === void 0 ? "/" : _this$props2$location,
7506
- rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])(_this$props2, ["basename", "context", "location"]);
7507
-
7508
- var history = {
7509
- createHref: function createHref(path) {
7510
- return addLeadingSlash(basename + createURL(path));
7511
- },
7512
- action: "POP",
7513
- location: stripBasename(basename, Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createLocation */ "c"])(location)),
7514
- push: this.handlePush,
7515
- replace: this.handleReplace,
7516
- go: staticHandler("go"),
7517
- goBack: staticHandler("goBack"),
7518
- goForward: staticHandler("goForward"),
7519
- listen: this.handleListen,
7520
- block: this.handleBlock
7521
- };
7522
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Router, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, rest, {
7523
- history: history,
7524
- staticContext: context
7525
- }));
7526
- };
7527
-
7528
- return StaticRouter;
7529
- }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
7530
-
7531
- if (false) {}
7532
-
7533
- /**
7534
- * The public API for rendering the first <Route> that matches.
7535
- */
7536
-
7537
- var Switch =
7538
- /*#__PURE__*/
7539
- function (_React$Component) {
7540
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Switch, _React$Component);
7541
-
7542
- function Switch() {
7543
- return _React$Component.apply(this, arguments) || this;
7544
- }
7545
-
7546
- var _proto = Switch.prototype;
7547
-
7548
- _proto.render = function render() {
7549
- var _this = this;
7550
-
7551
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context) {
7552
- !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0;
7553
- var location = _this.props.location || context.location;
7554
- var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()
7555
- // here because toArray adds keys to all child elements and we do not want
7556
- // to trigger an unmount/remount for two <Route>s that render the same
7557
- // component at different URLs.
7558
-
7559
- react__WEBPACK_IMPORTED_MODULE_1___default.a.Children.forEach(_this.props.children, function (child) {
7560
- if (match == null && react__WEBPACK_IMPORTED_MODULE_1___default.a.isValidElement(child)) {
7561
- element = child;
7562
- var path = child.props.path || child.props.from;
7563
- match = path ? matchPath(location.pathname, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, child.props, {
7564
- path: path
7565
- })) : context.match;
7566
- }
7567
- });
7568
- return match ? react__WEBPACK_IMPORTED_MODULE_1___default.a.cloneElement(element, {
7569
- location: location,
7570
- computedMatch: match
7571
- }) : null;
7572
- });
7573
- };
7574
 
7575
- return Switch;
7576
- }(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component);
7577
 
7578
- if (false) {}
 
 
 
 
 
 
 
7579
 
7580
  /**
7581
- * A public higher-order component to access the imperative API
 
 
 
 
 
 
 
 
 
 
7582
  */
 
 
 
 
 
7583
 
7584
- function withRouter(Component) {
7585
- var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
7586
-
7587
- var C = function C(props) {
7588
- var wrappedComponentRef = props.wrappedComponentRef,
7589
- remainingProps = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])(props, ["wrappedComponentRef"]);
7590
-
7591
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(context.Consumer, null, function (context) {
7592
- !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(false) : void 0;
7593
- return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])({}, remainingProps, context, {
7594
- ref: wrappedComponentRef
7595
- }));
7596
- });
7597
- };
7598
-
7599
- C.displayName = displayName;
7600
- C.WrappedComponent = Component;
7601
-
7602
- if (false) {}
7603
-
7604
- return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_10___default()(C, Component);
7605
- }
7606
-
7607
- var useContext = react__WEBPACK_IMPORTED_MODULE_1___default.a.useContext;
7608
- function useHistory() {
7609
- if (false) {}
7610
-
7611
- return useContext(historyContext);
7612
- }
7613
- function useLocation() {
7614
- if (false) {}
7615
-
7616
- return useContext(context).location;
7617
- }
7618
- function useParams() {
7619
- if (false) {}
7620
-
7621
- var match = useContext(context).match;
7622
- return match ? match.params : {};
7623
- }
7624
- function useRouteMatch(path) {
7625
- if (false) {}
7626
-
7627
- var location = useLocation();
7628
- var match = useContext(context).match;
7629
- return path ? matchPath(location.pathname, path) : match;
7630
- }
7631
-
7632
- if (false) { var secondaryBuildName, initialBuildName, buildNames, key, global; }
7633
-
7634
-
7635
- //# sourceMappingURL=react-router.js.map
7636
-
7637
-
7638
- /***/ }),
7639
- /* 47 */
7640
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7641
-
7642
- "use strict";
7643
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; });
7644
- function _objectWithoutPropertiesLoose(source, excluded) {
7645
- if (source == null) return {};
7646
- var target = {};
7647
- var sourceKeys = Object.keys(source);
7648
- var key, i;
7649
-
7650
- for (i = 0; i < sourceKeys.length; i++) {
7651
- key = sourceKeys[i];
7652
- if (excluded.indexOf(key) >= 0) continue;
7653
- target[key] = source[key];
7654
- }
7655
-
7656
- return target;
7657
- }
7658
-
7659
- /***/ }),
7660
- /* 48 */
7661
- /***/ (function(module, exports, __webpack_require__) {
7662
-
7663
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
7664
-
7665
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7666
-
7667
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7668
-
7669
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
7670
-
7671
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
7672
-
7673
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7674
-
7675
- /* global module, require */
7676
- var defaults = __webpack_require__(305);
7677
-
7678
- var merge = __webpack_require__(32);
7679
 
7680
- module.exports = {
7681
- frontend: {
7682
- styling: {
7683
- get button() {
7684
- return merge({}, defaults.styling.button);
7685
- },
7686
 
7687
- get group() {
7688
- return merge({}, defaults.styling.button, defaults.styling.group);
 
7689
  }
7690
-
7691
- },
7692
- data: {
7693
- get button() {
7694
- return merge({}, defaults.data.button);
7695
- },
7696
-
7697
- get icon() {
7698
- return merge({}, defaults.data.icon);
7699
- },
7700
-
7701
- get group() {
7702
- return merge({}, defaults.data.button, defaults.data.group);
7703
- },
7704
-
7705
- get menu_button() {
7706
- return merge({}, defaults.data.group);
7707
- },
7708
-
7709
- get edit_button() {
7710
- return merge({}, defaults.data.edit_button);
7711
  }
7712
-
7713
  }
7714
- },
7715
- dashboard: {
7716
- get button() {
7717
- return merge({}, defaults.data.button, defaults.styling.button);
7718
- },
7719
 
7720
- get group() {
7721
- return merge({}, defaults.data.group, defaults.styling.button, defaults.styling.group);
7722
- },
7723
 
7724
- get formatted() {
7725
- return Object.entries(merge({}, defaults.data.group, defaults.data.button, defaults.styling.button, defaults.styling.group)).filter(function (entry) {
7726
- return Array.isArray(entry[1]);
7727
- }).map(function (_ref) {
7728
- var _ref2 = _slicedToArray(_ref, 1),
7729
- key = _ref2[0];
7730
 
7731
- return key;
7732
- });
7733
- }
7734
 
7735
- }
7736
- };
 
 
7737
 
7738
- /***/ }),
7739
- /* 49 */
7740
- /***/ (function(module, exports) {
7741
 
7742
  /**
7743
- * Checks if `value` is the
7744
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
7745
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
7746
  *
7747
- * @static
7748
- * @memberOf _
7749
- * @since 0.1.0
7750
- * @category Lang
7751
- * @param {*} value The value to check.
7752
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
7753
- * @example
7754
  *
7755
- * _.isObject({});
7756
- * // => true
 
 
 
7757
  *
7758
- * _.isObject([1, 2, 3]);
7759
- * // => true
7760
  *
7761
- * _.isObject(_.noop);
7762
- * // => true
 
7763
  *
7764
- * _.isObject(null);
7765
- * // => false
7766
  */
7767
- function isObject(value) {
7768
- var type = typeof value;
7769
- return value != null && (type == 'object' || type == 'function');
7770
- }
7771
-
7772
- module.exports = isObject;
7773
 
7774
 
7775
  /***/ }),
7776
- /* 50 */
7777
- /***/ (function(module, exports, __webpack_require__) {
7778
-
7779
- var freeGlobal = __webpack_require__(199);
7780
-
7781
- /** Detect free variable `self`. */
7782
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
7783
-
7784
- /** Used as a reference to the global object. */
7785
- var root = freeGlobal || freeSelf || Function('return this')();
7786
-
7787
- module.exports = root;
7788
 
 
 
7789
 
7790
- /***/ }),
7791
- /* 51 */
7792
- /***/ (function(module, exports, __webpack_require__) {
7793
 
7794
- // 7.1.13 ToObject(argument)
7795
- var defined = __webpack_require__(105);
7796
- module.exports = function (it) {
7797
- return Object(defined(it));
7798
- };
7799
 
 
7800
 
7801
- /***/ }),
7802
- /* 52 */
7803
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7804
 
7805
- "use strict";
7806
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return captureException; });
7807
- /* unused harmony export captureMessage */
7808
- /* unused harmony export captureEvent */
7809
- /* unused harmony export configureScope */
7810
- /* unused harmony export addBreadcrumb */
7811
- /* unused harmony export setContext */
7812
- /* unused harmony export setExtras */
7813
- /* unused harmony export setTags */
7814
- /* unused harmony export setExtra */
7815
- /* unused harmony export setTag */
7816
- /* unused harmony export setUser */
7817
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return withScope; });
7818
- /* unused harmony export _callOnClient */
7819
- /* unused harmony export startTransaction */
7820
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
7821
- /* harmony import */ var _sentry_hub__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(905);
7822
 
 
7823
 
7824
  /**
7825
- * This calls a function on the current hub.
7826
- * @param method function to call on hub.
7827
- * @param args to pass to function.
 
7828
  */
7829
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
7830
- function callOnHub(method) {
7831
- var args = [];
7832
- for (var _i = 1; _i < arguments.length; _i++) {
7833
- args[_i - 1] = arguments[_i];
7834
- }
7835
- var hub = Object(_sentry_hub__WEBPACK_IMPORTED_MODULE_1__[/* getCurrentHub */ "a"])();
7836
- if (hub && hub[method]) {
7837
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
7838
- return hub[method].apply(hub, Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __spread */ "d"])(args));
7839
- }
7840
- throw new Error("No hub defined or " + method + " was not found on the hub, please open a bug report.");
7841
  }
 
7842
  /**
7843
- * Captures an exception event and sends it to Sentry.
7844
  *
7845
- * @param exception An exception-like object.
7846
- * @returns The generated eventId.
7847
  */
7848
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
7849
- function captureException(exception, captureContext) {
7850
- var syntheticException;
7851
- try {
7852
- throw new Error('Sentry syntheticException');
7853
- }
7854
- catch (exception) {
7855
- syntheticException = exception;
7856
- }
7857
- return callOnHub('captureException', exception, {
7858
- captureContext: captureContext,
7859
- originalException: exception,
7860
- syntheticException: syntheticException,
7861
- });
7862
  }
 
7863
  /**
7864
- * Captures a message event and sends it to Sentry.
7865
  *
7866
- * @param message The message to send to Sentry.
7867
- * @param level Define the level of the message.
7868
- * @returns The generated eventId.
7869
  */
7870
- function captureMessage(message, captureContext) {
7871
- var syntheticException;
7872
- try {
7873
- throw new Error(message);
7874
- }
7875
- catch (exception) {
7876
- syntheticException = exception;
7877
- }
7878
- // This is necessary to provide explicit scopes upgrade, without changing the original
7879
- // arity of the `captureMessage(message, level)` method.
7880
- var level = typeof captureContext === 'string' ? captureContext : undefined;
7881
- var context = typeof captureContext !== 'string' ? { captureContext: captureContext } : undefined;
7882
- return callOnHub('captureMessage', message, level, Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({ originalException: message, syntheticException: syntheticException }, context));
7883
  }
 
7884
  /**
7885
- * Captures a manually created event and sends it to Sentry.
7886
  *
7887
- * @param event The event to send to Sentry.
7888
- * @returns The generated eventId.
7889
  */
7890
- function captureEvent(event) {
7891
- return callOnHub('captureEvent', event);
7892
  }
 
7893
  /**
7894
- * Callback to set context information onto the scope.
7895
- * @param callback Callback function that receives Scope.
 
 
7896
  */
7897
- function configureScope(callback) {
7898
- callOnHub('configureScope', callback);
7899
  }
 
7900
  /**
7901
- * Records a new breadcrumb which will be attached to future events.
7902
- *
7903
- * Breadcrumbs will be added to subsequent events to provide more context on
7904
- * user's actions prior to an error or crash.
7905
  *
7906
- * @param breadcrumb The breadcrumb to record.
 
7907
  */
7908
- function addBreadcrumb(breadcrumb) {
7909
- callOnHub('addBreadcrumb', breadcrumb);
 
 
 
 
 
 
7910
  }
 
7911
  /**
7912
- * Sets context data with the given name.
7913
- * @param name of the context
7914
- * @param context Any kind of data. This data will be normalized.
 
7915
  */
7916
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
7917
- function setContext(name, context) {
7918
- callOnHub('setContext', name, context);
7919
  }
 
7920
  /**
7921
- * Set an object that will be merged sent as extra data with the event.
7922
- * @param extras Extras object to merge into current context.
 
 
7923
  */
7924
- function setExtras(extras) {
7925
- callOnHub('setExtras', extras);
7926
  }
 
7927
  /**
7928
- * Set an object that will be merged sent as tags data with the event.
7929
- * @param tags Tags context object to merge into current context.
 
 
7930
  */
7931
- function setTags(tags) {
7932
- callOnHub('setTags', tags);
7933
  }
 
7934
  /**
7935
- * Set key:value that will be sent as extra data with the event.
7936
- * @param key String of extra
7937
- * @param extra Any kind of data. This data will be normalized.
 
7938
  */
7939
- function setExtra(key, extra) {
7940
- callOnHub('setExtra', key, extra);
 
 
 
 
 
7941
  }
 
7942
  /**
7943
- * Set key:value that will be sent as tags data with the event.
7944
- * @param key String key of tag
7945
- * @param value String value of tag
 
7946
  */
7947
- function setTag(key, value) {
7948
- callOnHub('setTag', key, value);
7949
  }
 
7950
  /**
7951
- * Updates user context information for future events.
7952
  *
7953
- * @param user User context object to be set in the current context. Pass `null` to unset the user.
 
7954
  */
7955
- function setUser(user) {
7956
- callOnHub('setUser', user);
7957
  }
 
7958
  /**
7959
- * Creates a new scope with and executes the given operation within.
7960
- * The scope is automatically removed once the operation
7961
- * finishes or throws.
7962
- *
7963
- * This is essentially a convenience function for:
7964
- *
7965
- * pushScope();
7966
- * callback();
7967
- * popScope();
7968
  *
7969
- * @param callback that will be enclosed into push/popScope.
 
7970
  */
7971
- function withScope(callback) {
7972
- callOnHub('withScope', callback);
7973
  }
 
7974
  /**
7975
- * Calls a function on the latest client. Use this with caution, it's meant as
7976
- * in "internal" helper so we don't need to expose every possible function in
7977
- * the shim. It is not guaranteed that the client actually implements the
7978
- * function.
7979
  *
7980
- * @param method The method to call on the client/client.
7981
- * @param args Arguments to pass to the client/fontend.
7982
- * @hidden
7983
  */
7984
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
7985
- function _callOnClient(method) {
7986
- var args = [];
7987
- for (var _i = 1; _i < arguments.length; _i++) {
7988
- args[_i - 1] = arguments[_i];
7989
- }
7990
- callOnHub.apply(void 0, Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __spread */ "d"])(['_invokeClient', method], args));
7991
  }
 
7992
  /**
7993
- * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
7994
  *
7995
- * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
7996
- * new child span within the transaction or any span, call the respective `.startChild()` method.
 
 
 
 
 
 
 
7997
  *
7998
- * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
 
 
 
 
 
 
 
 
7999
  *
8000
- * The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its
8001
- * finished child spans will be sent to Sentry.
 
 
 
 
 
 
 
8002
  *
8003
- * @param context Properties of the new `Transaction`.
8004
- * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent
8005
- * default values). See {@link Options.tracesSampler}.
8006
  *
8007
- * @returns The transaction which was just started
 
 
 
 
 
 
 
8008
  */
8009
- function startTransaction(context, customSamplingContext) {
8010
- return callOnHub('startTransaction', Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __assign */ "a"])({}, context), customSamplingContext);
 
 
 
 
 
 
 
 
8011
  }
8012
- //# sourceMappingURL=index.js.map
8013
 
8014
- /***/ }),
8015
- /* 53 */
8016
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8017
 
8018
- "use strict";
8019
- var isProduction = "production" === 'production';
8020
- function warning(condition, message) {
8021
- if (!isProduction) {
8022
- if (condition) {
8023
- return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8024
  }
 
8025
 
8026
- var text = "Warning: " + message;
 
 
 
 
8027
 
8028
- if (typeof console !== 'undefined') {
8029
- console.warn(text);
 
 
 
 
 
 
 
 
 
 
 
 
8030
  }
 
 
 
8031
 
8032
- try {
8033
- throw Error(text);
8034
- } catch (x) {}
 
 
 
 
 
 
8035
  }
 
8036
  }
8037
 
8038
- /* harmony default export */ __webpack_exports__["a"] = (warning);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8039
 
8040
 
8041
  /***/ }),
8042
- /* 54 */
8043
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
8044
 
8045
  "use strict";
8046
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _assertThisInitialized; });
8047
- function _assertThisInitialized(self) {
8048
- if (self === void 0) {
8049
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8050
- }
8051
 
8052
- return self;
8053
- }
 
 
 
 
 
8054
 
8055
- /***/ }),
8056
- /* 55 */
8057
- /***/ (function(module, exports) {
8058
 
8059
  /**
8060
- * Checks if `value` is object-like. A value is object-like if it's not `null`
8061
- * and has a `typeof` result of "object".
8062
- *
8063
- * @static
8064
- * @memberOf _
8065
- * @since 4.0.0
8066
- * @category Lang
8067
- * @param {*} value The value to check.
8068
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
8069
- * @example
8070
- *
8071
- * _.isObjectLike({});
8072
- * // => true
8073
- *
8074
- * _.isObjectLike([1, 2, 3]);
8075
- * // => true
8076
- *
8077
- * _.isObjectLike(_.noop);
8078
- * // => false
8079
- *
8080
- * _.isObjectLike(null);
8081
- * // => false
8082
  */
8083
- function isObjectLike(value) {
8084
- return value != null && typeof value == 'object';
8085
- }
8086
 
8087
- module.exports = isObjectLike;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8088
 
 
 
 
8089
 
8090
- /***/ }),
8091
- /* 56 */
8092
- /***/ (function(module, exports) {
8093
 
8094
  /**
8095
- * Checks if `value` is classified as an `Array` object.
 
8096
  *
8097
- * @static
8098
- * @memberOf _
8099
- * @since 0.1.0
8100
- * @category Lang
8101
- * @param {*} value The value to check.
8102
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
8103
- * @example
8104
  *
8105
- * _.isArray([1, 2, 3]);
8106
- * // => true
8107
  *
8108
- * _.isArray(document.body.children);
8109
- * // => false
 
 
 
8110
  *
8111
- * _.isArray('abc');
8112
- * // => false
 
 
8113
  *
8114
- * _.isArray(_.noop);
8115
- * // => false
8116
  */
8117
- var isArray = Array.isArray;
8118
 
8119
- module.exports = isArray;
 
8120
 
 
 
 
8121
 
8122
- /***/ }),
8123
- /* 57 */
8124
- /***/ (function(module, exports, __webpack_require__) {
 
8125
 
8126
- /* WEBPACK VAR INJECTION */(function(global) {var check = function (it) {
8127
- return it && it.Math == Math && it;
8128
- };
 
8129
 
8130
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
8131
- module.exports =
8132
- // eslint-disable-next-line no-undef
8133
- check(typeof globalThis == 'object' && globalThis) ||
8134
- check(typeof window == 'object' && window) ||
8135
- check(typeof self == 'object' && self) ||
8136
- check(typeof global == 'object' && global) ||
8137
- // eslint-disable-next-line no-new-func
8138
- (function () { return this; })() || Function('return this')();
8139
 
8140
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(39)))
 
 
8141
 
8142
- /***/ }),
8143
- /* 58 */
8144
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
 
 
 
 
 
 
8145
 
8146
- "use strict";
8147
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useTheme; });
8148
- /* harmony import */ var _material_ui_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(536);
8149
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
8150
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
8151
- /* harmony import */ var _defaultTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(182);
 
 
 
 
8152
 
8153
 
 
 
 
 
8154
 
8155
- function useTheme() {
8156
- var theme = Object(_material_ui_styles__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])() || _defaultTheme__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8157
 
8158
- if (false) {}
8159
 
8160
- return theme;
8161
- }
 
 
8162
 
8163
- /***/ }),
8164
- /* 59 */
8165
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8166
 
8167
- "use strict";
8168
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return KnowledgeBaseLink; });
8169
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
8170
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8171
- /* harmony import */ var translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
8172
- /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
8173
- /* harmony import */ var _knowledgeBaseLink_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1225);
8174
- /* harmony import */ var _knowledgeBaseLink_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_knowledgeBaseLink_scss__WEBPACK_IMPORTED_MODULE_3__);
8175
 
 
 
 
8176
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8177
 
8178
 
8179
- function KnowledgeBaseLink(_ref) {
8180
- var articleId = _ref.articleId,
8181
- setting = _ref.setting,
8182
- _ref$size = _ref.size,
8183
- size = _ref$size === void 0 ? "medium" : _ref$size,
8184
- _ref$tiny = _ref.tiny,
8185
- tiny = _ref$tiny === void 0 ? false : _ref$tiny,
8186
- style = _ref.style;
8187
- if (tiny) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
8188
- href: "https://community.buttonizer.pro/knowledgebase/".concat(articleId),
8189
- target: "_blank",
8190
- style: style
8191
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i", {
8192
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])("knowledgebase-icon", size, "fas fa-question-circle")
8193
- }));
8194
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", {
8195
- href: "https://community.buttonizer.pro/knowledgebase/".concat(articleId),
8196
- target: "_blank",
8197
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])("knowledgebase-link", size),
8198
- dangerouslySetInnerHTML: {
8199
- __html: Object(translate__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])("utils.knowledge_link", setting)
8200
  }
8201
- });
8202
- }
8203
-
8204
- /***/ }),
8205
- /* 60 */
8206
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8207
-
8208
- "use strict";
8209
 
8210
- // EXPORTS
8211
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _slicedToArray; });
8212
-
8213
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
8214
- var arrayWithHoles = __webpack_require__(509);
8215
 
8216
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
8217
- function _iterableToArrayLimit(arr, i) {
8218
- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
8219
- return;
8220
- }
8221
 
8222
- var _arr = [];
8223
- var _n = true;
8224
- var _d = false;
8225
- var _e = undefined;
 
 
8226
 
8227
- try {
8228
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
8229
- _arr.push(_s.value);
8230
 
8231
- if (i && _arr.length === i) break;
 
 
8232
  }
8233
- } catch (err) {
8234
- _d = true;
8235
- _e = err;
8236
- } finally {
8237
- try {
8238
- if (!_n && _i["return"] != null) _i["return"]();
8239
- } finally {
8240
- if (_d) throw _e;
8241
- }
8242
- }
8243
 
8244
- return _arr;
8245
- }
8246
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
8247
- var nonIterableRest = __webpack_require__(510);
 
 
 
 
 
 
 
 
8248
 
8249
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
8250
 
 
 
 
 
8251
 
 
 
 
 
8252
 
8253
- function _slicedToArray(arr, i) {
8254
- return Object(arrayWithHoles["a" /* default */])(arr) || _iterableToArrayLimit(arr, i) || Object(nonIterableRest["a" /* default */])();
8255
- }
 
 
 
 
 
 
 
8256
 
8257
- /***/ }),
8258
- /* 61 */
8259
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8260
 
8261
- "use strict";
8262
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getCookie; });
8263
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return setCookie; });
8264
- /**
8265
- * Get cookie util
8266
- *
8267
- * @param {string} cname
8268
- */
8269
- // Get cookie
8270
- function getCookie(name) {
8271
- var value = "; ".concat(document.cookie);
8272
- var parts = value.split("; ".concat(name, "="));
8273
- if (parts.length === 2) return parts.pop().split(";").shift();
8274
- return false;
8275
- } // Set cookie
8276
 
8277
- function setCookie(cname, value) {
8278
- document.cookie = cname + "=" + value;
8279
- }
 
 
 
 
 
 
 
 
 
 
 
8280
 
8281
- /***/ }),
8282
- /* 62 */
8283
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
8284
 
8285
- "use strict";
8286
- /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getGlobalObject; });
8287
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return uuid4; });
8288
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return parseUrl; });
8289
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getEventDescription; });
8290
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return consoleSandbox; });
8291
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return addExceptionTypeValue; });
8292
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addExceptionMechanism; });
8293
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getLocationHref; });
8294
- /* unused harmony export parseSemver */
8295
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return parseRetryAfterHeader; });
8296
- /* unused harmony export addContextToFrame */
8297
- /* unused harmony export stripUrlQueryAndFragment */
8298
- /* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(226);
8299
- /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(161);
8300
 
8301
 
8302
- var fallbackGlobalObject = {};
8303
- /**
8304
- * Safely get global scope object
8305
- *
8306
- * @returns Global scope object
8307
- */
8308
- function getGlobalObject() {
8309
- return (Object(_node__WEBPACK_IMPORTED_MODULE_0__[/* isNodeEnv */ "b"])()
8310
- ? global
8311
- : typeof window !== 'undefined'
8312
- ? window
8313
- : typeof self !== 'undefined'
8314
- ? self
8315
- : fallbackGlobalObject);
8316
  }
 
8317
  /**
8318
- * UUID4 generator
8319
  *
8320
- * @returns string Generated UUID4.
 
8321
  */
8322
- function uuid4() {
8323
- var global = getGlobalObject();
8324
- var crypto = global.crypto || global.msCrypto;
8325
- if (!(crypto === void 0) && crypto.getRandomValues) {
8326
- // Use window.crypto API if available
8327
- var arr = new Uint16Array(8);
8328
- crypto.getRandomValues(arr);
8329
- // set 4 in byte 7
8330
- // eslint-disable-next-line no-bitwise
8331
- arr[3] = (arr[3] & 0xfff) | 0x4000;
8332
- // set 2 most significant bits of byte 9 to '10'
8333
- // eslint-disable-next-line no-bitwise
8334
- arr[4] = (arr[4] & 0x3fff) | 0x8000;
8335
- var pad = function (num) {
8336
- var v = num.toString(16);
8337
- while (v.length < 4) {
8338
- v = "0" + v;
8339
- }
8340
- return v;
8341
- };
8342
- return (pad(arr[0]) + pad(arr[1]) + pad(arr[2]) + pad(arr[3]) + pad(arr[4]) + pad(arr[5]) + pad(arr[6]) + pad(arr[7]));
8343
- }
8344
- // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523
8345
- return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
8346
- // eslint-disable-next-line no-bitwise
8347
- var r = (Math.random() * 16) | 0;
8348
- // eslint-disable-next-line no-bitwise
8349
- var v = c === 'x' ? r : (r & 0x3) | 0x8;
8350
- return v.toString(16);
8351
- });
8352
  }
8353
- /**
8354
- * Parses string form of URL into an object
8355
- * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B
8356
- * // intentionally using regex and not <a/> href parsing trick because React Native and other
8357
- * // environments where DOM might not be available
8358
- * @returns parsed URL object
8359
- */
8360
- function parseUrl(url) {
8361
- if (!url) {
8362
- return {};
8363
- }
8364
- var match = url.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
8365
- if (!match) {
8366
- return {};
8367
- }
8368
- // coerce to undefined values to empty string so we don't get 'undefined'
8369
- var query = match[6] || '';
8370
- var fragment = match[8] || '';
8371
- return {
8372
- host: match[4],
8373
- path: match[5],
8374
- protocol: match[2],
8375
- relative: match[5] + query + fragment,
8376
- };
8377
  }
8378
- /**
8379
- * Extracts either message or type+value from an event that can be used for user-facing logs
8380
- * @returns event's description
8381
- */
8382
- function getEventDescription(event) {
8383
- if (event.message) {
8384
- return event.message;
8385
- }
8386
- if (event.exception && event.exception.values && event.exception.values[0]) {
8387
- var exception = event.exception.values[0];
8388
- if (exception.type && exception.value) {
8389
- return exception.type + ": " + exception.value;
8390
- }
8391
- return exception.type || exception.value || event.event_id || '<unknown>';
8392
- }
8393
- return event.event_id || '<unknown>';
 
 
 
 
 
 
 
 
8394
  }
8395
- /** JSDoc */
8396
- function consoleSandbox(callback) {
8397
- var global = getGlobalObject();
8398
- var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert'];
8399
- if (!('console' in global)) {
8400
- return callback();
8401
- }
8402
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
8403
- var originalConsole = global.console;
8404
- var wrappedLevels = {};
8405
- // Restore all wrapped console methods
8406
- levels.forEach(function (level) {
8407
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
8408
- if (level in global.console && originalConsole[level].__sentry_original__) {
8409
- wrappedLevels[level] = originalConsole[level];
8410
- originalConsole[level] = originalConsole[level].__sentry_original__;
8411
- }
8412
- });
8413
- // Perform callback manipulations
8414
- var result = callback();
8415
- // Revert restoration to wrapped state
8416
- Object.keys(wrappedLevels).forEach(function (level) {
8417
- originalConsole[level] = wrappedLevels[level];
8418
  });
8419
- return result;
8420
- }
8421
- /**
8422
- * Adds exception values, type and value to an synthetic Exception.
8423
- * @param event The event to modify.
8424
- * @param value Value of the exception.
8425
- * @param type Type of the exception.
8426
- * @hidden
8427
- */
8428
- function addExceptionTypeValue(event, value, type) {
8429
- event.exception = event.exception || {};
8430
- event.exception.values = event.exception.values || [];
8431
- event.exception.values[0] = event.exception.values[0] || {};
8432
- event.exception.values[0].value = event.exception.values[0].value || value || '';
8433
- event.exception.values[0].type = event.exception.values[0].type || type || 'Error';
8434
- }
8435
- /**
8436
- * Adds exception mechanism to a given event.
8437
- * @param event The event to modify.
8438
- * @param mechanism Mechanism of the mechanism.
8439
- * @hidden
8440
- */
8441
- function addExceptionMechanism(event, mechanism) {
8442
- if (mechanism === void 0) { mechanism = {}; }
8443
- // TODO: Use real type with `keyof Mechanism` thingy and maybe make it better?
8444
- try {
8445
- // @ts-ignore Type 'Mechanism | {}' is not assignable to type 'Mechanism | undefined'
8446
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
8447
- event.exception.values[0].mechanism = event.exception.values[0].mechanism || {};
8448
- Object.keys(mechanism).forEach(function (key) {
8449
- // @ts-ignore Mechanism has no index signature
8450
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
8451
- event.exception.values[0].mechanism[key] = mechanism[key];
8452
- });
8453
- }
8454
- catch (_oO) {
8455
- // no-empty
8456
- }
8457
- }
8458
- /**
8459
- * A safe form of location.href
8460
- */
8461
- function getLocationHref() {
8462
- try {
8463
- return document.location.href;
8464
- }
8465
- catch (oO) {
8466
- return '';
8467
- }
8468
- }
8469
- // https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
8470
- var SEMVER_REGEXP = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
8471
- /**
8472
- * Parses input into a SemVer interface
8473
- * @param input string representation of a semver version
8474
- */
8475
- function parseSemver(input) {
8476
- var match = input.match(SEMVER_REGEXP) || [];
8477
- var major = parseInt(match[1], 10);
8478
- var minor = parseInt(match[2], 10);
8479
- var patch = parseInt(match[3], 10);
8480
- return {
8481
- buildmetadata: match[5],
8482
- major: isNaN(major) ? undefined : major,
8483
- minor: isNaN(minor) ? undefined : minor,
8484
- patch: isNaN(patch) ? undefined : patch,
8485
- prerelease: match[4],
8486
- };
8487
- }
8488
- var defaultRetryAfter = 60 * 1000; // 60 seconds
8489
- /**
8490
- * Extracts Retry-After value from the request header or returns default value
8491
- * @param now current unix timestamp
8492
- * @param header string representation of 'Retry-After' header
8493
- */
8494
- function parseRetryAfterHeader(now, header) {
8495
- if (!header) {
8496
- return defaultRetryAfter;
8497
- }
8498
- var headerDelay = parseInt("" + header, 10);
8499
- if (!isNaN(headerDelay)) {
8500
- return headerDelay * 1000;
8501
  }
8502
- var headerDate = Date.parse("" + header);
8503
- if (!isNaN(headerDate)) {
8504
- return headerDate - now;
 
 
8505
  }
8506
- return defaultRetryAfter;
8507
  }
8508
  /**
8509
- * This function adds context (pre/post/line) lines to the provided frame
 
 
 
8510
  *
8511
- * @param lines string[] containing all lines
8512
- * @param frame StackFrame that will be mutated
8513
- * @param linesOfContext number of context lines we want to add pre/post
8514
- */
8515
- function addContextToFrame(lines, frame, linesOfContext) {
8516
- if (linesOfContext === void 0) { linesOfContext = 5; }
8517
- var lineno = frame.lineno || 0;
8518
- var maxLines = lines.length;
8519
- var sourceLine = Math.max(Math.min(maxLines, lineno - 1), 0);
8520
- frame.pre_context = lines
8521
- .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)
8522
- .map(function (line) { return Object(_string__WEBPACK_IMPORTED_MODULE_1__[/* snipLine */ "c"])(line, 0); });
8523
- frame.context_line = Object(_string__WEBPACK_IMPORTED_MODULE_1__[/* snipLine */ "c"])(lines[Math.min(maxLines - 1, sourceLine)], frame.colno || 0);
8524
- frame.post_context = lines
8525
- .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)
8526
- .map(function (line) { return Object(_string__WEBPACK_IMPORTED_MODULE_1__[/* snipLine */ "c"])(line, 0); });
8527
- }
8528
- /**
8529
- * Strip the query string and fragment off of a given URL or path (if present)
8530
  *
8531
- * @param urlPath Full URL or path, including possible query string and/or fragment
8532
- * @returns URL or path without query string or fragment
8533
  */
8534
- function stripUrlQueryAndFragment(urlPath) {
8535
- // eslint-disable-next-line no-useless-escape
8536
- return urlPath.split(/[\?#]/, 1)[0];
8537
- }
8538
- //# sourceMappingURL=misc.js.map
8539
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(39)))
8540
 
8541
- /***/ }),
8542
- /* 63 */
8543
- /***/ (function(module, exports) {
8544
-
8545
- module.exports = function (it) {
8546
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
8547
- return it;
8548
- };
8549
 
 
 
 
8550
 
8551
- /***/ }),
8552
- /* 64 */
8553
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8554
 
8555
- "use strict";
8556
- /* unused harmony export isBrowser */
8557
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
8558
 
8559
- var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9;
 
 
 
8560
 
8561
- /* harmony default export */ __webpack_exports__["a"] = (isBrowser);
 
8562
 
 
8563
 
8564
- /***/ }),
8565
- /* 65 */
8566
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8567
 
8568
- "use strict";
8569
- var isProduction = "production" === 'production';
8570
- var prefix = 'Invariant failed';
8571
- function invariant(condition, message) {
8572
- if (condition) {
8573
- return;
8574
- }
8575
- if (isProduction) {
8576
- throw new Error(prefix);
8577
- }
8578
- throw new Error(prefix + ": " + (message || ''));
8579
- }
8580
 
8581
- /* harmony default export */ __webpack_exports__["a"] = (invariant);
 
 
 
 
8582
 
 
 
 
 
8583
 
8584
- /***/ }),
8585
- /* 66 */
8586
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8587
 
8588
- "use strict";
8589
- /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return fill; });
8590
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return urlEncode; });
8591
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return normalizeToSize; });
8592
- /* unused harmony export walk */
8593
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return normalize; });
8594
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return extractExceptionKeysForMessage; });
8595
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return dropUndefinedKeys; });
8596
- /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
8597
- /* harmony import */ var _browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(404);
8598
- /* harmony import */ var _is__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31);
8599
- /* harmony import */ var _memo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(505);
8600
- /* harmony import */ var _stacktrace__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(273);
8601
- /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(161);
8602
 
 
 
8603
 
 
 
 
 
 
8604
 
 
 
 
 
8605
 
 
 
 
8606
 
 
 
 
 
8607
 
8608
- /**
8609
- * Wrap a given object method with a higher-order function
8610
- *
8611
- * @param source An object that contains a method to be wrapped.
8612
- * @param name A name of method to be wrapped.
8613
- * @param replacement A function that should be used to wrap a given method.
8614
- * @returns void
8615
- */
8616
- function fill(source, name, replacement) {
8617
- if (!(name in source)) {
8618
- return;
8619
- }
8620
- var original = source[name];
8621
- var wrapped = replacement(original);
8622
- // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work
8623
- // otherwise it'll throw "TypeError: Object.defineProperties called on non-object"
8624
- if (typeof wrapped === 'function') {
8625
- try {
8626
- wrapped.prototype = wrapped.prototype || {};
8627
- Object.defineProperties(wrapped, {
8628
- __sentry_original__: {
8629
- enumerable: false,
8630
- value: original,
8631
- },
8632
- });
8633
- }
8634
- catch (_Oo) {
8635
- // This can throw if multiple fill happens on a global object like XMLHttpRequest
8636
- // Fixes https://github.com/getsentry/sentry-javascript/issues/2043
8637
- }
8638
- }
8639
- source[name] = wrapped;
8640
  }
8641
  /**
8642
- * Encodes given object into url-friendly format
 
 
 
8643
  *
8644
- * @param object An object that contains serializable values
8645
- * @returns string Encoded
8646
- */
8647
- function urlEncode(object) {
8648
- return Object.keys(object)
8649
- .map(function (key) { return encodeURIComponent(key) + "=" + encodeURIComponent(object[key]); })
8650
- .join('&');
8651
- }
8652
- /**
8653
- * Transforms any object into an object literal with all it's attributes
8654
- * attached to it.
8655
- *
8656
- * @param value Initial source that we have to transform in order to be usable by the serializer
8657
- */
8658
- function getWalkSource(value) {
8659
- if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isError */ "d"])(value)) {
8660
- var error = value;
8661
- var err = {
8662
- message: error.message,
8663
- name: error.name,
8664
- stack: error.stack,
8665
- };
8666
- for (var i in error) {
8667
- if (Object.prototype.hasOwnProperty.call(error, i)) {
8668
- err[i] = error[i];
8669
- }
8670
- }
8671
- return err;
8672
- }
8673
- if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isEvent */ "f"])(value)) {
8674
- var event_1 = value;
8675
- var source = {};
8676
- source.type = event_1.type;
8677
- // Accessing event.target can throw (see getsentry/raven-js#838, #768)
8678
- try {
8679
- source.target = Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isElement */ "c"])(event_1.target)
8680
- ? Object(_browser__WEBPACK_IMPORTED_MODULE_1__[/* htmlTreeAsString */ "a"])(event_1.target)
8681
- : Object.prototype.toString.call(event_1.target);
8682
- }
8683
- catch (_oO) {
8684
- source.target = '<unknown>';
8685
- }
8686
- try {
8687
- source.currentTarget = Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isElement */ "c"])(event_1.currentTarget)
8688
- ? Object(_browser__WEBPACK_IMPORTED_MODULE_1__[/* htmlTreeAsString */ "a"])(event_1.currentTarget)
8689
- : Object.prototype.toString.call(event_1.currentTarget);
8690
- }
8691
- catch (_oO) {
8692
- source.currentTarget = '<unknown>';
8693
- }
8694
- if (typeof CustomEvent !== 'undefined' && Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isInstanceOf */ "g"])(value, CustomEvent)) {
8695
- source.detail = event_1.detail;
8696
- }
8697
- for (var i in event_1) {
8698
- if (Object.prototype.hasOwnProperty.call(event_1, i)) {
8699
- source[i] = event_1;
8700
- }
8701
- }
8702
- return source;
8703
- }
8704
- return value;
8705
- }
8706
- /** Calculates bytes size of input string */
8707
- function utf8Length(value) {
8708
- // eslint-disable-next-line no-bitwise
8709
- return ~-encodeURI(value).split(/%..|./).length;
8710
- }
8711
- /** Calculates bytes size of input object */
8712
- function jsonSize(value) {
8713
- return utf8Length(JSON.stringify(value));
8714
- }
8715
- /** JSDoc */
8716
- function normalizeToSize(object,
8717
- // Default Node.js REPL depth
8718
- depth,
8719
- // 100kB, as 200kB is max payload size, so half sounds reasonable
8720
- maxSize) {
8721
- if (depth === void 0) { depth = 3; }
8722
- if (maxSize === void 0) { maxSize = 100 * 1024; }
8723
- var serialized = normalize(object, depth);
8724
- if (jsonSize(serialized) > maxSize) {
8725
- return normalizeToSize(object, depth - 1, maxSize);
8726
- }
8727
- return serialized;
8728
- }
8729
- /** Transforms any input value into a string form, either primitive value or a type of the input */
8730
- function serializeValue(value) {
8731
- var type = Object.prototype.toString.call(value);
8732
- // Node.js REPL notation
8733
- if (typeof value === 'string') {
8734
- return value;
8735
- }
8736
- if (type === '[object Object]') {
8737
- return '[Object]';
8738
- }
8739
- if (type === '[object Array]') {
8740
- return '[Array]';
8741
- }
8742
- var normalized = normalizeValue(value);
8743
- return Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isPrimitive */ "i"])(normalized) ? normalized : type;
8744
- }
8745
- /**
8746
- * normalizeValue()
8747
- *
8748
- * Takes unserializable input and make it serializable friendly
8749
  *
8750
- * - translates undefined/NaN values to "[undefined]"/"[NaN]" respectively,
8751
- * - serializes Error objects
8752
- * - filter global objects
8753
- */
8754
- function normalizeValue(value, key) {
8755
- if (key === 'domain' && value && typeof value === 'object' && value._events) {
8756
- return '[Domain]';
8757
- }
8758
- if (key === 'domainEmitter') {
8759
- return '[DomainEmitter]';
8760
- }
8761
- if (typeof global !== 'undefined' && value === global) {
8762
- return '[Global]';
8763
- }
8764
- if (typeof window !== 'undefined' && value === window) {
8765
- return '[Window]';
8766
- }
8767
- if (typeof document !== 'undefined' && value === document) {
8768
- return '[Document]';
8769
- }
8770
- // React's SyntheticEvent thingy
8771
- if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isSyntheticEvent */ "l"])(value)) {
8772
- return '[SyntheticEvent]';
8773
- }
8774
- if (typeof value === 'number' && value !== value) {
8775
- return '[NaN]';
8776
- }
8777
- if (value === void 0) {
8778
- return '[undefined]';
8779
- }
8780
- if (typeof value === 'function') {
8781
- return "[Function: " + Object(_stacktrace__WEBPACK_IMPORTED_MODULE_4__[/* getFunctionName */ "a"])(value) + "]";
8782
- }
8783
- return value;
8784
- }
8785
- /**
8786
- * Walks an object to perform a normalization on it
8787
  *
8788
- * @param key of object that's walked in current iteration
8789
- * @param value object to be walked
8790
- * @param depth Optional number indicating how deep should walking be performed
8791
- * @param memo Optional Memo class handling decycling
8792
- */
8793
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
8794
- function walk(key, value, depth, memo) {
8795
- if (depth === void 0) { depth = +Infinity; }
8796
- if (memo === void 0) { memo = new _memo__WEBPACK_IMPORTED_MODULE_3__[/* Memo */ "a"](); }
8797
- // If we reach the maximum depth, serialize whatever has left
8798
- if (depth === 0) {
8799
- return serializeValue(value);
8800
- }
8801
- /* eslint-disable @typescript-eslint/no-unsafe-member-access */
8802
- // If value implements `toJSON` method, call it and return early
8803
- if (value !== null && value !== undefined && typeof value.toJSON === 'function') {
8804
- return value.toJSON();
8805
- }
8806
- /* eslint-enable @typescript-eslint/no-unsafe-member-access */
8807
- // If normalized value is a primitive, there are no branches left to walk, so we can just bail out, as theres no point in going down that branch any further
8808
- var normalized = normalizeValue(value, key);
8809
- if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isPrimitive */ "i"])(normalized)) {
8810
- return normalized;
8811
- }
8812
- // Create source that we will use for next itterations, either objectified error object (Error type with extracted keys:value pairs) or the input itself
8813
- var source = getWalkSource(value);
8814
- // Create an accumulator that will act as a parent for all future itterations of that branch
8815
- var acc = Array.isArray(value) ? [] : {};
8816
- // If we already walked that branch, bail out, as it's circular reference
8817
- if (memo.memoize(value)) {
8818
- return '[Circular ~]';
8819
- }
8820
- // Walk all keys of the source
8821
- for (var innerKey in source) {
8822
- // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.
8823
- if (!Object.prototype.hasOwnProperty.call(source, innerKey)) {
8824
- continue;
8825
- }
8826
- // Recursively walk through all the child nodes
8827
- acc[innerKey] = walk(innerKey, source[innerKey], depth - 1, memo);
8828
- }
8829
- // Once walked through all the branches, remove the parent from memo storage
8830
- memo.unmemoize(value);
8831
- // Return accumulated values
8832
- return acc;
8833
- }
8834
- /**
8835
- * normalize()
8836
  *
8837
- * - Creates a copy to prevent original input mutation
8838
- * - Skip non-enumerablers
8839
- * - Calls `toJSON` if implemented
8840
- * - Removes circular references
8841
- * - Translates non-serializeable values (undefined/NaN/Functions) to serializable format
8842
- * - Translates known global objects/Classes to a string representations
8843
- * - Takes care of Error objects serialization
8844
- * - Optionally limit depth of final output
8845
- */
8846
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
8847
- function normalize(input, depth) {
8848
- try {
8849
- return JSON.parse(JSON.stringify(input, function (key, value) { return walk(key, value, depth); }));
8850
- }
8851
- catch (_oO) {
8852
- return '**non-serializable**';
8853
- }
8854
- }
8855
- /**
8856
- * Given any captured exception, extract its keys and create a sorted
8857
- * and truncated list that will be used inside the event message.
8858
- * eg. `Non-error exception captured with keys: foo, bar, baz`
8859
- */
8860
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
8861
- function extractExceptionKeysForMessage(exception, maxLength) {
8862
- if (maxLength === void 0) { maxLength = 40; }
8863
- var keys = Object.keys(getWalkSource(exception));
8864
- keys.sort();
8865
- if (!keys.length) {
8866
- return '[object has no keys]';
8867
- }
8868
- if (keys[0].length >= maxLength) {
8869
- return Object(_string__WEBPACK_IMPORTED_MODULE_5__[/* truncate */ "d"])(keys[0], maxLength);
8870
- }
8871
- for (var includedKeys = keys.length; includedKeys > 0; includedKeys--) {
8872
- var serialized = keys.slice(0, includedKeys).join(', ');
8873
- if (serialized.length > maxLength) {
8874
- continue;
8875
- }
8876
- if (includedKeys === keys.length) {
8877
- return serialized;
8878
- }
8879
- return Object(_string__WEBPACK_IMPORTED_MODULE_5__[/* truncate */ "d"])(serialized, maxLength);
8880
- }
8881
- return '';
8882
- }
8883
- /**
8884
- * Given any object, return the new object with removed keys that value was `undefined`.
8885
- * Works recursively on objects and arrays.
8886
  */
8887
- function dropUndefinedKeys(val) {
8888
- var e_1, _a;
8889
- if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isPlainObject */ "h"])(val)) {
8890
- var obj = val;
8891
- var rv = {};
8892
- try {
8893
- for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __values */ "e"])(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {
8894
- var key = _c.value;
8895
- if (typeof obj[key] !== 'undefined') {
8896
- rv[key] = dropUndefinedKeys(obj[key]);
8897
- }
8898
- }
8899
- }
8900
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
8901
- finally {
8902
- try {
8903
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8904
- }
8905
- finally { if (e_1) throw e_1.error; }
8906
- }
8907
- return rv;
8908
- }
8909
- if (Array.isArray(val)) {
8910
- return val.map(dropUndefinedKeys);
8911
- }
8912
- return val;
8913
- }
8914
- //# sourceMappingURL=object.js.map
8915
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(39)))
8916
 
8917
- /***/ }),
8918
- /* 67 */
8919
- /***/ (function(module, exports) {
8920
 
8921
- module.exports = function (exec) {
8922
- try {
8923
- return !!exec();
8924
- } catch (error) {
8925
- return true;
8926
  }
8927
- };
8928
-
8929
-
8930
- /***/ }),
8931
- /* 68 */
8932
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8933
-
8934
- "use strict";
8935
-
8936
- // EXPORTS
8937
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ createSvgIcon; });
8938
-
8939
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
8940
- var esm_extends = __webpack_require__(2);
8941
-
8942
- // EXTERNAL MODULE: ./node_modules/react/index.js
8943
- var react = __webpack_require__(0);
8944
- var react_default = /*#__PURE__*/__webpack_require__.n(react);
8945
-
8946
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
8947
- var objectWithoutProperties = __webpack_require__(7);
8948
-
8949
- // EXTERNAL MODULE: ./node_modules/prop-types/index.js
8950
- var prop_types = __webpack_require__(3);
8951
-
8952
- // EXTERNAL MODULE: ./node_modules/clsx/dist/clsx.m.js
8953
- var clsx_m = __webpack_require__(4);
8954
-
8955
- // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/styles/withStyles.js + 1 modules
8956
- var withStyles = __webpack_require__(9);
8957
-
8958
- // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/capitalize.js
8959
- var capitalize = __webpack_require__(12);
8960
-
8961
- // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js
8962
-
8963
 
 
 
 
8964
 
 
8965
 
 
 
8966
 
 
 
 
 
8967
 
 
 
8968
 
8969
- var styles = function styles(theme) {
8970
- return {
8971
- /* Styles applied to the root element. */
8972
- root: {
8973
- userSelect: 'none',
8974
- width: '1em',
8975
- height: '1em',
8976
- display: 'inline-block',
8977
- fill: 'currentColor',
8978
- flexShrink: 0,
8979
- fontSize: theme.typography.pxToRem(24),
8980
- transition: theme.transitions.create('fill', {
8981
- duration: theme.transitions.duration.shorter
8982
- })
8983
- },
8984
 
8985
- /* Styles applied to the root element if `color="primary"`. */
8986
- colorPrimary: {
8987
- color: theme.palette.primary.main
8988
- },
8989
 
8990
- /* Styles applied to the root element if `color="secondary"`. */
8991
- colorSecondary: {
8992
- color: theme.palette.secondary.main
8993
- },
8994
 
8995
- /* Styles applied to the root element if `color="action"`. */
8996
- colorAction: {
8997
- color: theme.palette.action.active
8998
- },
8999
 
9000
- /* Styles applied to the root element if `color="error"`. */
9001
- colorError: {
9002
- color: theme.palette.error.main
9003
- },
 
9004
 
9005
- /* Styles applied to the root element if `color="disabled"`. */
9006
- colorDisabled: {
9007
- color: theme.palette.action.disabled
9008
- },
9009
 
9010
- /* Styles applied to the root element if `fontSize="inherit"`. */
9011
- fontSizeInherit: {
9012
- fontSize: 'inherit'
9013
- },
 
 
 
 
 
 
 
 
9014
 
9015
- /* Styles applied to the root element if `fontSize="small"`. */
9016
- fontSizeSmall: {
9017
- fontSize: theme.typography.pxToRem(20)
9018
- },
9019
 
9020
- /* Styles applied to the root element if `fontSize="large"`. */
9021
- fontSizeLarge: {
9022
- fontSize: theme.typography.pxToRem(35)
9023
- }
9024
- };
9025
- };
9026
- var SvgIcon_SvgIcon = /*#__PURE__*/react["forwardRef"](function SvgIcon(props, ref) {
9027
- var children = props.children,
9028
- classes = props.classes,
9029
- className = props.className,
9030
- _props$color = props.color,
9031
- color = _props$color === void 0 ? 'inherit' : _props$color,
9032
- _props$component = props.component,
9033
- Component = _props$component === void 0 ? 'svg' : _props$component,
9034
- _props$fontSize = props.fontSize,
9035
- fontSize = _props$fontSize === void 0 ? 'default' : _props$fontSize,
9036
- htmlColor = props.htmlColor,
9037
- titleAccess = props.titleAccess,
9038
- _props$viewBox = props.viewBox,
9039
- viewBox = _props$viewBox === void 0 ? '0 0 24 24' : _props$viewBox,
9040
- other = Object(objectWithoutProperties["a" /* default */])(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
9041
 
9042
- return /*#__PURE__*/react["createElement"](Component, Object(esm_extends["a" /* default */])({
9043
- className: Object(clsx_m["a" /* default */])(classes.root, className, color !== 'inherit' && classes["color".concat(Object(capitalize["a" /* default */])(color))], fontSize !== 'default' && classes["fontSize".concat(Object(capitalize["a" /* default */])(fontSize))]),
9044
- focusable: "false",
9045
- viewBox: viewBox,
9046
- color: htmlColor,
9047
- "aria-hidden": titleAccess ? undefined : true,
9048
- role: titleAccess ? 'img' : undefined,
9049
- ref: ref
9050
- }, other), children, titleAccess ? /*#__PURE__*/react["createElement"]("title", null, titleAccess) : null);
9051
- });
9052
- false ? undefined : void 0;
9053
- SvgIcon_SvgIcon.muiName = 'SvgIcon';
9054
- /* harmony default export */ var esm_SvgIcon_SvgIcon = (Object(withStyles["a" /* default */])(styles, {
9055
- name: 'MuiSvgIcon'
9056
- })(SvgIcon_SvgIcon));
9057
- // CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/utils/createSvgIcon.js
9058
 
 
 
 
9059
 
 
 
 
 
 
 
9060
 
9061
  /**
9062
- * Private module reserved for @material-ui/x packages.
 
 
 
 
 
 
 
 
 
 
 
 
 
9063
  */
9064
 
9065
- function createSvgIcon(path, displayName) {
9066
- var Component = function Component(props, ref) {
9067
- return /*#__PURE__*/react_default.a.createElement(esm_SvgIcon_SvgIcon, Object(esm_extends["a" /* default */])({
9068
- ref: ref
9069
- }, props), path);
9070
- };
9071
 
9072
- if (false) {}
 
 
 
 
 
 
9073
 
9074
- Component.muiName = esm_SvgIcon_SvgIcon.muiName;
9075
- return /*#__PURE__*/react_default.a.memo( /*#__PURE__*/react_default.a.forwardRef(Component));
 
 
 
 
 
 
 
 
 
 
 
 
 
9076
  }
9077
 
9078
- /***/ }),
9079
- /* 69 */
9080
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
9081
 
9082
- "use strict";
9083
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ConfirmDialog; });
9084
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
9085
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9086
- /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(228);
9087
- /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(229);
9088
- /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(164);
9089
- /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(165);
9090
- /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(230);
9091
- /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(111);
9092
- /* harmony import */ var translate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1);
9093
- /* harmony import */ var _confirmDialog_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1215);
9094
- /* harmony import */ var _confirmDialog_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_confirmDialog_scss__WEBPACK_IMPORTED_MODULE_8__);
9095
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9096
 
 
9097
 
9098
 
9099
 
 
 
9100
 
9101
- var defaultButtons = [{
9102
- value: "cancel",
9103
- text: Object(translate__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])("modal.cancel")
9104
- }, {
9105
- value: "confirm",
9106
- text: Object(translate__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])("common.confirm")
9107
- }];
9108
- function ConfirmDialog(_ref) {
9109
- var onClose = _ref.onClose,
9110
- _ref$icon = _ref.icon,
9111
- icon = _ref$icon === void 0 ? null : _ref$icon,
9112
- _ref$open = _ref.open,
9113
- open = _ref$open === void 0 ? false : _ref$open,
9114
- _ref$title = _ref.title,
9115
- title = _ref$title === void 0 ? "Confirm" : _ref$title,
9116
- _ref$children = _ref.children,
9117
- children = _ref$children === void 0 ? null : _ref$children,
9118
- _ref$buttons = _ref.buttons,
9119
- buttons = _ref$buttons === void 0 ? null : _ref$buttons,
9120
- _ref$maxWidth = _ref.maxWidth,
9121
- maxWidth = _ref$maxWidth === void 0 ? "xs" : _ref$maxWidth,
9122
- _ref$fullWidth = _ref.fullWidth,
9123
- fullWidth = _ref$fullWidth === void 0 ? true : _ref$fullWidth,
9124
- className = _ref.className,
9125
- _ref$testId = _ref.testId,
9126
- testId = _ref$testId === void 0 ? null : _ref$testId;
9127
-
9128
- var handleClose = function handleClose(status) {
9129
- onClose(status);
9130
- };
9131
-
9132
- if (!buttons) buttons = defaultButtons;
9133
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
9134
- open: open,
9135
- onClose: handleClose,
9136
- maxWidth: maxWidth,
9137
- fullWidth: fullWidth,
9138
- "aria-labelledby": "alert-dialog-title",
9139
- "aria-describedby": "alert-dialog-description",
9140
- className: className,
9141
- "data-testid": testId ? "dialog:".concat(testId) : null
9142
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], {
9143
- id: "alert-dialog-title"
9144
- }, icon, title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], {
9145
- id: "alert-dialog-description",
9146
- component: "div"
9147
- }, children)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], null, buttons.map(function (button, key) {
9148
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], _extends({
9149
- onClick: function onClick() {
9150
- return handleClose(button.value);
9151
- },
9152
- color: "primary",
9153
- key: key,
9154
- variant: button.variant,
9155
- "data-testid": testId ? "dialog:".concat(testId, ":button:").concat(button.value) : null
9156
- }, button.props), button.text);
9157
- })));
9158
- }
9159
-
9160
- /***/ }),
9161
- /* 70 */
9162
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9163
-
9164
- "use strict";
9165
- /* unused harmony export easing */
9166
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return duration; });
9167
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
9168
-
9169
- // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
9170
- // to learn the context in which each easing should be used.
9171
- var easing = {
9172
- // This is the most common easing curve.
9173
- easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
9174
- // Objects enter the screen at full velocity from off-screen and
9175
- // slowly decelerate to a resting point.
9176
- easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
9177
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
9178
- easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
9179
- // The sharp curve is used by objects that may return to the screen at any time.
9180
- sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
9181
- }; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
9182
- // to learn when use what timing
9183
-
9184
- var duration = {
9185
- shortest: 150,
9186
- shorter: 200,
9187
- short: 250,
9188
- // most basic recommended timing
9189
- standard: 300,
9190
- // this is to be used in complex animations
9191
- complex: 375,
9192
- // recommended when something is entering screen
9193
- enteringScreen: 225,
9194
- // recommended when something is leaving screen
9195
- leavingScreen: 195
9196
- };
9197
-
9198
- function formatMs(milliseconds) {
9199
- return "".concat(Math.round(milliseconds), "ms");
9200
- }
9201
  /**
9202
- * @param {string|Array} props
9203
- * @param {object} param
9204
- * @param {string} param.prop
9205
- * @param {number} param.duration
9206
- * @param {string} param.easing
9207
- * @param {number} param.delay
9208
  */
9209
-
9210
-
9211
- /* harmony default export */ __webpack_exports__["a"] = ({
9212
- easing: easing,
9213
- duration: duration,
9214
- create: function create() {
9215
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
9216
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9217
-
9218
- var _options$duration = options.duration,
9219
- durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
9220
- _options$easing = options.easing,
9221
- easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
9222
- _options$delay = options.delay,
9223
- delay = _options$delay === void 0 ? 0 : _options$delay,
9224
- other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(options, ["duration", "easing", "delay"]);
9225
-
9226
- if (false) { var isNumber, isString; }
9227
-
9228
- return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
9229
- return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay));
9230
- }).join(',');
 
 
 
 
9231
  },
9232
- getAutoHeightDuration: function getAutoHeightDuration(height) {
9233
- if (!height) {
9234
- return 0;
9235
- }
9236
-
9237
- var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
9238
-
9239
- return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9240
  }
9241
- });
9242
-
9243
- /***/ }),
9244
- /* 71 */
9245
- /***/ (function(module, exports, __webpack_require__) {
9246
-
9247
- var global = __webpack_require__(57);
9248
- var shared = __webpack_require__(433);
9249
- var has = __webpack_require__(80);
9250
- var uid = __webpack_require__(360);
9251
- var NATIVE_SYMBOL = __webpack_require__(439);
9252
- var USE_SYMBOL_AS_UID = __webpack_require__(583);
9253
-
9254
- var WellKnownSymbolsStore = shared('wks');
9255
- var Symbol = global.Symbol;
9256
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
9257
-
9258
- module.exports = function (name) {
9259
- if (!has(WellKnownSymbolsStore, name)) {
9260
- if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];
9261
- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
9262
- } return WellKnownSymbolsStore[name];
9263
- };
9264
-
9265
-
9266
- /***/ }),
9267
- /* 72 */
9268
- /***/ (function(module, exports, __webpack_require__) {
9269
-
9270
- var dP = __webpack_require__(44);
9271
- var createDesc = __webpack_require__(146);
9272
- module.exports = __webpack_require__(43) ? function (object, key, value) {
9273
- return dP.f(object, key, createDesc(1, value));
9274
- } : function (object, key, value) {
9275
- object[key] = value;
9276
- return object;
9277
  };
9278
-
9279
-
9280
- /***/ }),
9281
- /* 73 */
9282
- /***/ (function(module, exports, __webpack_require__) {
9283
-
9284
- var global = __webpack_require__(24);
9285
- var hide = __webpack_require__(72);
9286
- var has = __webpack_require__(81);
9287
- var SRC = __webpack_require__(147)('src');
9288
- var TO_STRING = 'toString';
9289
- var $toString = Function[TO_STRING];
9290
- var TPL = ('' + $toString).split(TO_STRING);
9291
-
9292
- __webpack_require__(94).inspectSource = function (it) {
9293
- return $toString.call(it);
9294
  };
9295
-
9296
- (module.exports = function (O, key, val, safe) {
9297
- var isFunction = typeof val == 'function';
9298
- if (isFunction) has(val, 'name') || hide(val, 'name', key);
9299
- if (O[key] === val) return;
9300
- if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
9301
- if (O === global) {
9302
- O[key] = val;
9303
- } else if (!safe) {
9304
- delete O[key];
9305
- hide(O, key, val);
9306
- } else if (O[key]) {
9307
- O[key] = val;
9308
- } else {
9309
- hide(O, key, val);
9310
- }
9311
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
9312
- })(Function.prototype, TO_STRING, function toString() {
9313
- return typeof this == 'function' && this[SRC] || $toString.call(this);
9314
- });
9315
-
9316
-
9317
- /***/ }),
9318
- /* 74 */
9319
- /***/ (function(module, exports, __webpack_require__) {
9320
-
9321
- var $export = __webpack_require__(8);
9322
- var fails = __webpack_require__(27);
9323
- var defined = __webpack_require__(105);
9324
- var quot = /"/g;
9325
- // B.2.3.2.1 CreateHTML(string, tag, attribute, value)
9326
- var createHTML = function (string, tag, attribute, value) {
9327
- var S = String(defined(string));
9328
- var p1 = '<' + tag;
9329
- if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '&quot;') + '"';
9330
- return p1 + '>' + S + '</' + tag + '>';
9331
  };
9332
- module.exports = function (NAME, exec) {
9333
- var O = {};
9334
- O[NAME] = exec(createHTML);
9335
- $export($export.P + $export.F * fails(function () {
9336
- var test = ''[NAME]('"');
9337
- return test !== test.toLowerCase() || test.split('"').length > 3;
9338
- }), 'String', O);
 
 
 
 
9339
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9340
 
 
 
 
 
 
9341
 
9342
- /***/ }),
9343
- /* 75 */
9344
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9345
-
9346
- "use strict";
9347
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return debounce; });
9348
- // Corresponds to 10 frames at 60 Hz.
9349
- // A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.
9350
- function debounce(func) {
9351
- var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;
9352
- var timeout;
9353
-
9354
- function debounced() {
9355
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9356
- args[_key] = arguments[_key];
9357
  }
 
9358
 
9359
- // eslint-disable-next-line consistent-this
9360
- var that = this;
9361
-
9362
- var later = function later() {
9363
- func.apply(that, args);
9364
- };
 
 
 
 
 
 
 
9365
 
9366
- clearTimeout(timeout);
9367
- timeout = setTimeout(later, wait);
 
 
 
 
 
9368
  }
9369
-
9370
- debounced.clear = function () {
9371
- clearTimeout(timeout);
9372
- };
9373
-
9374
- return debounced;
 
 
 
9375
  }
 
 
 
 
 
9376
 
9377
- /***/ }),
9378
- /* 76 */
9379
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9380
-
9381
- "use strict";
9382
 
9383
- // EXPORTS
9384
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
9385
 
9386
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
9387
- function _arrayWithoutHoles(arr) {
9388
- if (Array.isArray(arr)) {
9389
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
9390
- arr2[i] = arr[i];
9391
  }
9392
 
9393
- return arr2;
9394
- }
9395
- }
9396
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
9397
- var iterableToArray = __webpack_require__(217);
9398
 
9399
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
9400
- function _nonIterableSpread() {
9401
- throw new TypeError("Invalid attempt to spread non-iterable instance");
9402
  }
9403
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
9404
-
9405
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9406
 
9407
- function _toConsumableArray(arr) {
9408
- return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread();
9409
  }
 
 
 
 
9410
 
9411
- /***/ }),
9412
- /* 77 */
9413
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
9414
 
9415
- "use strict";
9416
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return setRef; });
9417
- // TODO v5: consider to make it private
9418
- function setRef(ref, value) {
9419
- if (typeof ref === 'function') {
9420
- ref(value);
9421
- } else if (ref) {
9422
- ref.current = value;
9423
  }
9424
- }
9425
-
9426
- /***/ }),
9427
- /* 78 */
9428
- /***/ (function(module, exports, __webpack_require__) {
9429
 
9430
- "use strict";
 
 
 
 
 
 
 
 
 
9431
 
9432
 
9433
- Object.defineProperty(exports, "__esModule", {
9434
- value: true
9435
- });
9436
 
9437
- var _Alpha = __webpack_require__(671);
 
 
 
9438
 
9439
- Object.defineProperty(exports, 'Alpha', {
9440
- enumerable: true,
9441
- get: function get() {
9442
- return _interopRequireDefault(_Alpha).default;
9443
  }
9444
- });
9445
-
9446
- var _Checkboard = __webpack_require__(372);
9447
 
9448
- Object.defineProperty(exports, 'Checkboard', {
9449
- enumerable: true,
9450
- get: function get() {
9451
- return _interopRequireDefault(_Checkboard).default;
 
 
 
 
9452
  }
9453
- });
9454
 
9455
- var _EditableInput = __webpack_require__(674);
 
9456
 
9457
- Object.defineProperty(exports, 'EditableInput', {
9458
- enumerable: true,
9459
- get: function get() {
9460
- return _interopRequireDefault(_EditableInput).default;
9461
  }
9462
- });
9463
 
9464
- var _Hue = __webpack_require__(675);
 
 
 
9465
 
9466
- Object.defineProperty(exports, 'Hue', {
9467
- enumerable: true,
9468
- get: function get() {
9469
- return _interopRequireDefault(_Hue).default;
9470
- }
9471
- });
9472
 
9473
- var _Raised = __webpack_require__(677);
9474
 
9475
- Object.defineProperty(exports, 'Raised', {
9476
- enumerable: true,
9477
- get: function get() {
9478
- return _interopRequireDefault(_Raised).default;
9479
- }
9480
- });
9481
 
9482
- var _Saturation = __webpack_require__(678);
9483
 
9484
- Object.defineProperty(exports, 'Saturation', {
9485
- enumerable: true,
9486
- get: function get() {
9487
- return _interopRequireDefault(_Saturation).default;
9488
- }
9489
- });
9490
 
9491
- var _ColorWrap = __webpack_require__(683);
9492
 
9493
- Object.defineProperty(exports, 'ColorWrap', {
9494
- enumerable: true,
9495
- get: function get() {
9496
- return _interopRequireDefault(_ColorWrap).default;
9497
- }
9498
- });
9499
 
9500
- var _Swatch = __webpack_require__(686);
9501
 
9502
- Object.defineProperty(exports, 'Swatch', {
9503
- enumerable: true,
9504
- get: function get() {
9505
- return _interopRequireDefault(_Swatch).default;
9506
- }
9507
- });
9508
 
9509
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9510
 
9511
- /***/ }),
9512
- /* 79 */
9513
- /***/ (function(module, exports, __webpack_require__) {
 
 
 
9514
 
9515
- var Symbol = __webpack_require__(124),
9516
- getRawTag = __webpack_require__(318),
9517
- objectToString = __webpack_require__(319);
9518
-
9519
- /** `Object#toString` result references. */
9520
- var nullTag = '[object Null]',
9521
- undefinedTag = '[object Undefined]';
9522
-
9523
- /** Built-in value references. */
9524
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
9525
 
 
 
 
 
 
 
 
 
 
 
 
 
9526
  /**
9527
- * The base implementation of `getTag` without fallbacks for buggy environments.
9528
  *
9529
- * @private
9530
- * @param {*} value The value to query.
9531
- * @returns {string} Returns the `toStringTag`.
9532
  */
9533
- function baseGetTag(value) {
9534
- if (value == null) {
9535
- return value === undefined ? undefinedTag : nullTag;
9536
- }
9537
- return (symToStringTag && symToStringTag in Object(value))
9538
- ? getRawTag(value)
9539
- : objectToString(value);
9540
- }
9541
 
9542
- module.exports = baseGetTag;
 
 
 
9543
 
 
 
9544
 
9545
- /***/ }),
9546
- /* 80 */
9547
- /***/ (function(module, exports) {
 
 
9548
 
9549
- var hasOwnProperty = {}.hasOwnProperty;
 
9550
 
9551
- module.exports = function (it, key) {
9552
- return hasOwnProperty.call(it, key);
9553
- };
 
 
 
 
 
 
 
 
 
 
9554
 
 
 
 
 
 
 
 
9555
 
9556
- /***/ }),
9557
- /* 81 */
9558
- /***/ (function(module, exports) {
9559
 
9560
- var hasOwnProperty = {}.hasOwnProperty;
9561
- module.exports = function (it, key) {
9562
- return hasOwnProperty.call(it, key);
9563
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9564
 
9565
 
9566
- /***/ }),
9567
- /* 82 */
9568
- /***/ (function(module, exports, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
9569
 
9570
- // to indexed object, toObject with fallback for non-array-like ES3 strings
9571
- var IObject = __webpack_require__(212);
9572
- var defined = __webpack_require__(105);
9573
- module.exports = function (it) {
9574
- return IObject(defined(it));
9575
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9576
 
9577
 
9578
- /***/ }),
9579
- /* 83 */
9580
- /***/ (function(module, exports, __webpack_require__) {
 
 
9581
 
9582
- var pIE = __webpack_require__(213);
9583
- var createDesc = __webpack_require__(146);
9584
- var toIObject = __webpack_require__(82);
9585
- var toPrimitive = __webpack_require__(104);
9586
- var has = __webpack_require__(81);
9587
- var IE8_DOM_DEFINE = __webpack_require__(470);
9588
- var gOPD = Object.getOwnPropertyDescriptor;
 
 
 
 
9589
 
9590
- exports.f = __webpack_require__(43) ? gOPD : function getOwnPropertyDescriptor(O, P) {
9591
- O = toIObject(O);
9592
- P = toPrimitive(P, true);
9593
- if (IE8_DOM_DEFINE) try {
9594
- return gOPD(O, P);
9595
- } catch (e) { /* empty */ }
9596
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
9597
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9599
 
9600
- /***/ }),
9601
- /* 84 */
9602
- /***/ (function(module, exports, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
9603
 
9604
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
9605
- var has = __webpack_require__(81);
9606
- var toObject = __webpack_require__(51);
9607
- var IE_PROTO = __webpack_require__(376)('IE_PROTO');
9608
- var ObjectProto = Object.prototype;
9609
 
9610
- module.exports = Object.getPrototypeOf || function (O) {
9611
- O = toObject(O);
9612
- if (has(O, IE_PROTO)) return O[IE_PROTO];
9613
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
9614
- return O.constructor.prototype;
9615
- } return O instanceof Object ? ObjectProto : null;
 
 
9616
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
9617
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9618
 
9619
- /***/ }),
9620
- /* 85 */
9621
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9622
-
9623
- "use strict";
9624
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createChainedFunction; });
 
 
 
 
9625
  /**
9626
- * Safe chained function
9627
- *
9628
- * Will only create a new function if needed,
9629
- * otherwise will pass back existing functions or null.
9630
- *
9631
- * @param {function} functions to chain
9632
- * @returns {function|null}
9633
  */
9634
- function createChainedFunction() {
9635
- for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
9636
- funcs[_key] = arguments[_key];
9637
- }
9638
 
9639
- return funcs.reduce(function (acc, func) {
9640
- if (func == null) {
9641
- return acc;
 
 
9642
  }
 
 
 
 
 
 
 
 
 
 
 
 
9643
 
9644
- if (false) {}
9645
 
9646
- return function chainedFunction() {
9647
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
9648
- args[_key2] = arguments[_key2];
9649
- }
9650
 
9651
- acc.apply(this, args);
9652
- func.apply(this, args);
9653
- };
9654
- }, function () {});
 
 
 
 
 
 
 
 
9655
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9656
 
9657
- /***/ }),
9658
- /* 86 */
9659
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
9660
 
9661
- "use strict";
9662
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return formControlState; });
9663
- function formControlState(_ref) {
9664
- var props = _ref.props,
9665
- states = _ref.states,
9666
- muiFormControl = _ref.muiFormControl;
9667
- return states.reduce(function (acc, state) {
9668
- acc[state] = props[state];
9669
 
9670
- if (muiFormControl) {
9671
- if (typeof props[state] === 'undefined') {
9672
- acc[state] = muiFormControl[state];
9673
- }
 
 
 
9674
  }
9675
 
9676
- return acc;
9677
- }, {});
9678
- }
9679
 
9680
- /***/ }),
9681
- /* 87 */
9682
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9683
 
9684
- "use strict";
9685
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useFormControl; });
9686
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
9687
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
9688
- /* harmony import */ var _FormControlContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(110);
 
 
 
 
 
 
9689
 
 
 
 
 
9690
 
9691
- function useFormControl() {
9692
- return react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_FormControlContext__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"]);
9693
  }
 
 
 
 
9694
 
9695
- /***/ }),
9696
- /* 88 */
9697
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
9698
 
9699
- "use strict";
9700
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return reflow; });
9701
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getTransitionProps; });
9702
- var reflow = function reflow(node) {
9703
- return node.scrollTop;
9704
- };
9705
- function getTransitionProps(props, options) {
9706
- var timeout = props.timeout,
9707
- _props$style = props.style,
9708
- style = _props$style === void 0 ? {} : _props$style;
9709
- return {
9710
- duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
9711
- delay: style.transitionDelay
9712
- };
9713
  }
9714
 
9715
- /***/ }),
9716
- /* 89 */
9717
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9718
 
9719
- "use strict";
 
 
9720
 
9721
- // EXPORTS
9722
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ createBrowserHistory; });
9723
- __webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ createHashHistory; });
9724
- __webpack_require__.d(__webpack_exports__, "d", function() { return /* binding */ createMemoryHistory; });
9725
- __webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ createLocation; });
9726
- __webpack_require__.d(__webpack_exports__, "f", function() { return /* binding */ locationsAreEqual; });
9727
- __webpack_require__.d(__webpack_exports__, "e", function() { return /* binding */ createPath; });
9728
 
9729
- // UNUSED EXPORTS: parsePath
 
9730
 
9731
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
9732
- var esm_extends = __webpack_require__(2);
 
 
9733
 
9734
- // CONCATENATED MODULE: ./node_modules/resolve-pathname/esm/resolve-pathname.js
9735
- function isAbsolute(pathname) {
9736
- return pathname.charAt(0) === '/';
9737
- }
9738
 
9739
- // About 1.5x faster than the two-arg version of Array#splice()
9740
- function spliceOne(list, index) {
9741
- for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
9742
- list[i] = list[k];
9743
- }
9744
 
9745
- list.pop();
9746
  }
 
 
 
9747
 
9748
- // This implementation is based heavily on node's url.parse
9749
- function resolvePathname(to, from) {
9750
- if (from === undefined) from = '';
9751
-
9752
- var toParts = (to && to.split('/')) || [];
9753
- var fromParts = (from && from.split('/')) || [];
9754
 
9755
- var isToAbs = to && isAbsolute(to);
9756
- var isFromAbs = from && isAbsolute(from);
9757
- var mustEndAbs = isToAbs || isFromAbs;
9758
 
9759
- if (to && isAbsolute(to)) {
9760
- // to is absolute
9761
- fromParts = toParts;
9762
- } else if (toParts.length) {
9763
- // to is relative, drop the filename
9764
- fromParts.pop();
9765
- fromParts = fromParts.concat(toParts);
9766
- }
9767
 
9768
- if (!fromParts.length) return '/';
 
 
 
9769
 
9770
- var hasTrailingSlash;
9771
- if (fromParts.length) {
9772
- var last = fromParts[fromParts.length - 1];
9773
- hasTrailingSlash = last === '.' || last === '..' || last === '';
9774
- } else {
9775
- hasTrailingSlash = false;
9776
- }
9777
-
9778
- var up = 0;
9779
- for (var i = fromParts.length; i >= 0; i--) {
9780
- var part = fromParts[i];
9781
-
9782
- if (part === '.') {
9783
- spliceOne(fromParts, i);
9784
- } else if (part === '..') {
9785
- spliceOne(fromParts, i);
9786
- up++;
9787
- } else if (up) {
9788
- spliceOne(fromParts, i);
9789
- up--;
9790
- }
9791
- }
9792
-
9793
- if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');
9794
-
9795
- if (
9796
- mustEndAbs &&
9797
- fromParts[0] !== '' &&
9798
- (!fromParts[0] || !isAbsolute(fromParts[0]))
9799
- )
9800
- fromParts.unshift('');
9801
-
9802
- var result = fromParts.join('/');
9803
-
9804
- if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';
9805
-
9806
- return result;
9807
- }
9808
-
9809
- /* harmony default export */ var resolve_pathname = (resolvePathname);
9810
-
9811
- // CONCATENATED MODULE: ./node_modules/value-equal/esm/value-equal.js
9812
- function value_equal_valueOf(obj) {
9813
- return obj.valueOf ? obj.valueOf() : Object.prototype.valueOf.call(obj);
9814
- }
9815
-
9816
- function valueEqual(a, b) {
9817
- // Test for strict equality first.
9818
- if (a === b) return true;
9819
-
9820
- // Otherwise, if either of them == null they are not equal.
9821
- if (a == null || b == null) return false;
9822
-
9823
- if (Array.isArray(a)) {
9824
- return (
9825
- Array.isArray(b) &&
9826
- a.length === b.length &&
9827
- a.every(function(item, index) {
9828
- return valueEqual(item, b[index]);
9829
- })
9830
- );
9831
- }
9832
-
9833
- if (typeof a === 'object' || typeof b === 'object') {
9834
- var aValue = value_equal_valueOf(a);
9835
- var bValue = value_equal_valueOf(b);
9836
-
9837
- if (aValue !== a || bValue !== b) return valueEqual(aValue, bValue);
9838
-
9839
- return Object.keys(Object.assign({}, a, b)).every(function(key) {
9840
- return valueEqual(a[key], b[key]);
9841
  });
9842
- }
9843
-
9844
- return false;
9845
- }
9846
-
9847
- /* harmony default export */ var value_equal = (valueEqual);
9848
-
9849
- // EXTERNAL MODULE: ./node_modules/tiny-invariant/dist/tiny-invariant.esm.js
9850
- var tiny_invariant_esm = __webpack_require__(65);
9851
-
9852
- // CONCATENATED MODULE: ./node_modules/history/esm/history.js
9853
-
9854
-
9855
-
9856
-
9857
-
9858
-
9859
- function addLeadingSlash(path) {
9860
- return path.charAt(0) === '/' ? path : '/' + path;
9861
- }
9862
- function stripLeadingSlash(path) {
9863
- return path.charAt(0) === '/' ? path.substr(1) : path;
9864
- }
9865
- function hasBasename(path, prefix) {
9866
- return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
9867
- }
9868
- function stripBasename(path, prefix) {
9869
- return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
9870
- }
9871
- function stripTrailingSlash(path) {
9872
- return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
9873
- }
9874
- function parsePath(path) {
9875
- var pathname = path || '/';
9876
- var search = '';
9877
- var hash = '';
9878
- var hashIndex = pathname.indexOf('#');
9879
-
9880
- if (hashIndex !== -1) {
9881
- hash = pathname.substr(hashIndex);
9882
- pathname = pathname.substr(0, hashIndex);
9883
- }
9884
-
9885
- var searchIndex = pathname.indexOf('?');
9886
-
9887
- if (searchIndex !== -1) {
9888
- search = pathname.substr(searchIndex);
9889
- pathname = pathname.substr(0, searchIndex);
9890
- }
9891
-
9892
- return {
9893
- pathname: pathname,
9894
- search: search === '?' ? '' : search,
9895
- hash: hash === '#' ? '' : hash
9896
- };
9897
- }
9898
- function createPath(location) {
9899
- var pathname = location.pathname,
9900
- search = location.search,
9901
- hash = location.hash;
9902
- var path = pathname || '/';
9903
- if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
9904
- if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
9905
- return path;
9906
- }
9907
-
9908
- function createLocation(path, state, key, currentLocation) {
9909
- var location;
9910
-
9911
- if (typeof path === 'string') {
9912
- // Two-arg form: push(path, state)
9913
- location = parsePath(path);
9914
- location.state = state;
9915
- } else {
9916
- // One-arg form: push(location)
9917
- location = Object(esm_extends["a" /* default */])({}, path);
9918
- if (location.pathname === undefined) location.pathname = '';
9919
-
9920
- if (location.search) {
9921
- if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
9922
- } else {
9923
- location.search = '';
9924
- }
9925
-
9926
- if (location.hash) {
9927
- if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
9928
- } else {
9929
- location.hash = '';
9930
- }
9931
-
9932
- if (state !== undefined && location.state === undefined) location.state = state;
9933
- }
9934
-
9935
- try {
9936
- location.pathname = decodeURI(location.pathname);
9937
- } catch (e) {
9938
- if (e instanceof URIError) {
9939
- throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
9940
- } else {
9941
- throw e;
9942
- }
9943
- }
9944
-
9945
- if (key) location.key = key;
9946
-
9947
- if (currentLocation) {
9948
- // Resolve incomplete/relative pathname relative to current location.
9949
- if (!location.pathname) {
9950
- location.pathname = currentLocation.pathname;
9951
- } else if (location.pathname.charAt(0) !== '/') {
9952
- location.pathname = resolve_pathname(location.pathname, currentLocation.pathname);
9953
- }
9954
- } else {
9955
- // When there is no prior location and pathname is empty, set it to /
9956
- if (!location.pathname) {
9957
- location.pathname = '/';
9958
- }
9959
- }
9960
-
9961
- return location;
9962
- }
9963
- function locationsAreEqual(a, b) {
9964
- return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && value_equal(a.state, b.state);
9965
- }
9966
-
9967
- function createTransitionManager() {
9968
- var prompt = null;
9969
-
9970
- function setPrompt(nextPrompt) {
9971
- false ? undefined : void 0;
9972
- prompt = nextPrompt;
9973
- return function () {
9974
- if (prompt === nextPrompt) prompt = null;
9975
- };
9976
- }
9977
-
9978
- function confirmTransitionTo(location, action, getUserConfirmation, callback) {
9979
- // TODO: If another transition starts while we're still confirming
9980
- // the previous one, we may end up in a weird state. Figure out the
9981
- // best way to handle this.
9982
- if (prompt != null) {
9983
- var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
9984
-
9985
- if (typeof result === 'string') {
9986
- if (typeof getUserConfirmation === 'function') {
9987
- getUserConfirmation(result, callback);
9988
- } else {
9989
- false ? undefined : void 0;
9990
- callback(true);
9991
- }
9992
- } else {
9993
- // Return false from a transition hook to cancel the transition.
9994
- callback(result !== false);
9995
- }
9996
- } else {
9997
- callback(true);
9998
- }
9999
- }
10000
-
10001
- var listeners = [];
10002
-
10003
- function appendListener(fn) {
10004
- var isActive = true;
10005
-
10006
- function listener() {
10007
- if (isActive) fn.apply(void 0, arguments);
10008
- }
10009
-
10010
- listeners.push(listener);
10011
- return function () {
10012
- isActive = false;
10013
- listeners = listeners.filter(function (item) {
10014
- return item !== listener;
10015
  });
10016
- };
10017
- }
10018
 
10019
- function notifyListeners() {
10020
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10021
- args[_key] = arguments[_key];
 
 
 
10022
  }
10023
 
10024
- listeners.forEach(function (listener) {
10025
- return listener.apply(void 0, args);
 
10026
  });
10027
- }
10028
-
10029
- return {
10030
- setPrompt: setPrompt,
10031
- confirmTransitionTo: confirmTransitionTo,
10032
- appendListener: appendListener,
10033
- notifyListeners: notifyListeners
10034
- };
10035
- }
10036
-
10037
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
10038
- function getConfirmation(message, callback) {
10039
- callback(window.confirm(message)); // eslint-disable-line no-alert
10040
  }
10041
  /**
10042
- * Returns true if the HTML5 history API is supported. Taken from Modernizr.
10043
  *
10044
- * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
10045
- * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
10046
- * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
10047
  */
10048
 
10049
- function supportsHistory() {
10050
- var ua = window.navigator.userAgent;
10051
- if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
10052
- return window.history && 'pushState' in window.history;
 
 
10053
  }
10054
  /**
10055
- * Returns true if browser fires popstate on hash change.
10056
- * IE10 and IE11 do not.
10057
  */
10058
 
10059
- function supportsPopStateOnHashChange() {
10060
- return window.navigator.userAgent.indexOf('Trident') === -1;
 
 
 
 
 
 
 
 
 
 
10061
  }
10062
- /**
10063
- * Returns false if using go(n) with hash history causes a full page reload.
10064
- */
10065
 
10066
- function supportsGoWithoutReloadUsingHash() {
10067
- return window.navigator.userAgent.indexOf('Firefox') === -1;
 
 
 
 
 
10068
  }
10069
- /**
10070
- * Returns true if a given popstate event is an extraneous WebKit event.
10071
- * Accounts for the fact that Chrome on iOS fires real popstate events
10072
- * containing undefined state when pressing the back button.
10073
- */
10074
-
10075
- function isExtraneousPopstateEvent(event) {
10076
- return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
10077
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10078
 
10079
- var PopStateEvent = 'popstate';
10080
- var HashChangeEvent = 'hashchange';
 
 
 
 
10081
 
10082
- function getHistoryState() {
10083
- try {
10084
- return window.history.state || {};
10085
- } catch (e) {
10086
- // IE 11 sometimes throws when accessing window.history.state
10087
- // See https://github.com/ReactTraining/history/pull/289
10088
- return {};
10089
- }
10090
- }
10091
- /**
10092
- * Creates a history object that uses the HTML5 history API including
10093
- * pushState, replaceState, and the popstate event.
10094
- */
10095
-
10096
-
10097
- function createBrowserHistory(props) {
10098
- if (props === void 0) {
10099
- props = {};
10100
- }
10101
-
10102
- !canUseDOM ? false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) : void 0;
10103
- var globalHistory = window.history;
10104
- var canUseHistory = supportsHistory();
10105
- var needsHashChangeListener = !supportsPopStateOnHashChange();
10106
- var _props = props,
10107
- _props$forceRefresh = _props.forceRefresh,
10108
- forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
10109
- _props$getUserConfirm = _props.getUserConfirmation,
10110
- getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
10111
- _props$keyLength = _props.keyLength,
10112
- keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
10113
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
10114
-
10115
- function getDOMLocation(historyState) {
10116
- var _ref = historyState || {},
10117
- key = _ref.key,
10118
- state = _ref.state;
10119
-
10120
- var _window$location = window.location,
10121
- pathname = _window$location.pathname,
10122
- search = _window$location.search,
10123
- hash = _window$location.hash;
10124
- var path = pathname + search + hash;
10125
- false ? undefined : void 0;
10126
- if (basename) path = stripBasename(path, basename);
10127
- return createLocation(path, state, key);
10128
- }
10129
-
10130
- function createKey() {
10131
- return Math.random().toString(36).substr(2, keyLength);
10132
- }
10133
-
10134
- var transitionManager = createTransitionManager();
10135
-
10136
- function setState(nextState) {
10137
- Object(esm_extends["a" /* default */])(history, nextState);
10138
-
10139
- history.length = globalHistory.length;
10140
- transitionManager.notifyListeners(history.location, history.action);
10141
- }
10142
-
10143
- function handlePopState(event) {
10144
- // Ignore extraneous popstate events in WebKit.
10145
- if (isExtraneousPopstateEvent(event)) return;
10146
- handlePop(getDOMLocation(event.state));
10147
- }
10148
-
10149
- function handleHashChange() {
10150
- handlePop(getDOMLocation(getHistoryState()));
10151
- }
10152
-
10153
- var forceNextPop = false;
10154
-
10155
- function handlePop(location) {
10156
- if (forceNextPop) {
10157
- forceNextPop = false;
10158
- setState();
10159
- } else {
10160
- var action = 'POP';
10161
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
10162
- if (ok) {
10163
- setState({
10164
- action: action,
10165
- location: location
10166
- });
10167
- } else {
10168
- revertPop(location);
10169
- }
10170
- });
10171
- }
10172
- }
10173
-
10174
- function revertPop(fromLocation) {
10175
- var toLocation = history.location; // TODO: We could probably make this more reliable by
10176
- // keeping a list of keys we've seen in sessionStorage.
10177
- // Instead, we just default to 0 for keys we don't know.
10178
-
10179
- var toIndex = allKeys.indexOf(toLocation.key);
10180
- if (toIndex === -1) toIndex = 0;
10181
- var fromIndex = allKeys.indexOf(fromLocation.key);
10182
- if (fromIndex === -1) fromIndex = 0;
10183
- var delta = toIndex - fromIndex;
10184
-
10185
- if (delta) {
10186
- forceNextPop = true;
10187
- go(delta);
10188
  }
10189
- }
10190
-
10191
- var initialLocation = getDOMLocation(getHistoryState());
10192
- var allKeys = [initialLocation.key]; // Public interface
10193
-
10194
- function createHref(location) {
10195
- return basename + createPath(location);
10196
- }
10197
-
10198
- function push(path, state) {
10199
- false ? undefined : void 0;
10200
- var action = 'PUSH';
10201
- var location = createLocation(path, state, createKey(), history.location);
10202
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
10203
- if (!ok) return;
10204
- var href = createHref(location);
10205
- var key = location.key,
10206
- state = location.state;
10207
-
10208
- if (canUseHistory) {
10209
- globalHistory.pushState({
10210
- key: key,
10211
- state: state
10212
- }, null, href);
10213
-
10214
- if (forceRefresh) {
10215
- window.location.href = href;
10216
- } else {
10217
- var prevIndex = allKeys.indexOf(history.location.key);
10218
- var nextKeys = allKeys.slice(0, prevIndex + 1);
10219
- nextKeys.push(location.key);
10220
- allKeys = nextKeys;
10221
- setState({
10222
- action: action,
10223
- location: location
10224
- });
10225
  }
10226
- } else {
10227
- false ? undefined : void 0;
10228
- window.location.href = href;
10229
- }
10230
- });
10231
- }
10232
-
10233
- function replace(path, state) {
10234
- false ? undefined : void 0;
10235
- var action = 'REPLACE';
10236
- var location = createLocation(path, state, createKey(), history.location);
10237
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
10238
- if (!ok) return;
10239
- var href = createHref(location);
10240
- var key = location.key,
10241
- state = location.state;
10242
-
10243
- if (canUseHistory) {
10244
- globalHistory.replaceState({
10245
- key: key,
10246
- state: state
10247
- }, null, href);
10248
-
10249
- if (forceRefresh) {
10250
- window.location.replace(href);
10251
- } else {
10252
- var prevIndex = allKeys.indexOf(history.location.key);
10253
- if (prevIndex !== -1) allKeys[prevIndex] = location.key;
10254
- setState({
10255
- action: action,
10256
- location: location
10257
- });
10258
  }
10259
- } else {
10260
- false ? undefined : void 0;
10261
- window.location.replace(href);
10262
- }
10263
- });
10264
- }
10265
-
10266
- function go(n) {
10267
- globalHistory.go(n);
10268
- }
10269
-
10270
- function goBack() {
10271
- go(-1);
10272
- }
10273
-
10274
- function goForward() {
10275
- go(1);
10276
- }
10277
-
10278
- var listenerCount = 0;
10279
-
10280
- function checkDOMListeners(delta) {
10281
- listenerCount += delta;
10282
-
10283
- if (listenerCount === 1 && delta === 1) {
10284
- window.addEventListener(PopStateEvent, handlePopState);
10285
- if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
10286
- } else if (listenerCount === 0) {
10287
- window.removeEventListener(PopStateEvent, handlePopState);
10288
- if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
10289
- }
10290
- }
10291
-
10292
- var isBlocked = false;
10293
-
10294
- function block(prompt) {
10295
- if (prompt === void 0) {
10296
- prompt = false;
10297
- }
10298
-
10299
- var unblock = transitionManager.setPrompt(prompt);
10300
-
10301
- if (!isBlocked) {
10302
- checkDOMListeners(1);
10303
- isBlocked = true;
10304
- }
10305
-
10306
- return function () {
10307
- if (isBlocked) {
10308
- isBlocked = false;
10309
- checkDOMListeners(-1);
10310
- }
10311
-
10312
- return unblock();
10313
  };
10314
- }
10315
-
10316
- function listen(listener) {
10317
- var unlisten = transitionManager.appendListener(listener);
10318
- checkDOMListeners(1);
10319
- return function () {
10320
- checkDOMListeners(-1);
10321
- unlisten();
 
 
 
 
10322
  };
10323
- }
10324
-
10325
- var history = {
10326
- length: globalHistory.length,
10327
- action: 'POP',
10328
- location: initialLocation,
10329
- createHref: createHref,
10330
- push: push,
10331
- replace: replace,
10332
- go: go,
10333
- goBack: goBack,
10334
- goForward: goForward,
10335
- block: block,
10336
- listen: listen
10337
- };
10338
- return history;
10339
- }
 
10340
 
10341
- var HashChangeEvent$1 = 'hashchange';
10342
- var HashPathCoders = {
10343
- hashbang: {
10344
- encodePath: function encodePath(path) {
10345
- return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
10346
- },
10347
- decodePath: function decodePath(path) {
10348
- return path.charAt(0) === '!' ? path.substr(1) : path;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10349
  }
10350
- },
10351
- noslash: {
10352
- encodePath: stripLeadingSlash,
10353
- decodePath: addLeadingSlash
10354
- },
10355
- slash: {
10356
- encodePath: addLeadingSlash,
10357
- decodePath: addLeadingSlash
10358
- }
10359
- };
10360
-
10361
- function stripHash(url) {
10362
- var hashIndex = url.indexOf('#');
10363
- return hashIndex === -1 ? url : url.slice(0, hashIndex);
10364
  }
10365
-
10366
- function getHashPath() {
10367
- // We can't use window.location.hash here because it's not
10368
- // consistent across browsers - Firefox will pre-decode it!
10369
- var href = window.location.href;
10370
- var hashIndex = href.indexOf('#');
10371
- return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
 
 
10372
  }
10373
-
10374
- function pushHashPath(path) {
10375
- window.location.hash = path;
 
 
 
 
 
 
10376
  }
10377
-
10378
- function replaceHashPath(path) {
10379
- window.location.replace(stripHash(window.location.href) + '#' + path);
 
 
 
 
 
 
10380
  }
10381
-
10382
- function createHashHistory(props) {
10383
- if (props === void 0) {
10384
- props = {};
10385
- }
10386
-
10387
- !canUseDOM ? false ? undefined : Object(tiny_invariant_esm["a" /* default */])(false) : void 0;
10388
- var globalHistory = window.history;
10389
- var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
10390
- var _props = props,
10391
- _props$getUserConfirm = _props.getUserConfirmation,
10392
- getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
10393
- _props$hashType = _props.hashType,
10394
- hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
10395
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
10396
- var _HashPathCoders$hashT = HashPathCoders[hashType],
10397
- encodePath = _HashPathCoders$hashT.encodePath,
10398
- decodePath = _HashPathCoders$hashT.decodePath;
10399
-
10400
- function getDOMLocation() {
10401
- var path = decodePath(getHashPath());
10402
- false ? undefined : void 0;
10403
- if (basename) path = stripBasename(path, basename);
10404
- return createLocation(path);
10405
- }
10406
-
10407
- var transitionManager = createTransitionManager();
10408
-
10409
- function setState(nextState) {
10410
- Object(esm_extends["a" /* default */])(history, nextState);
10411
-
10412
- history.length = globalHistory.length;
10413
- transitionManager.notifyListeners(history.location, history.action);
10414
- }
10415
-
10416
- var forceNextPop = false;
10417
- var ignorePath = null;
10418
-
10419
- function locationsAreEqual$$1(a, b) {
10420
- return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
10421
- }
10422
-
10423
- function handleHashChange() {
10424
- var path = getHashPath();
10425
- var encodedPath = encodePath(path);
10426
-
10427
- if (path !== encodedPath) {
10428
- // Ensure we always have a properly-encoded hash.
10429
- replaceHashPath(encodedPath);
10430
- } else {
10431
- var location = getDOMLocation();
10432
- var prevLocation = history.location;
10433
- if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
10434
-
10435
- if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
10436
-
10437
- ignorePath = null;
10438
- handlePop(location);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10439
  }
10440
- }
10441
-
10442
- function handlePop(location) {
10443
- if (forceNextPop) {
10444
- forceNextPop = false;
10445
- setState();
10446
- } else {
10447
- var action = 'POP';
10448
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
10449
- if (ok) {
10450
- setState({
10451
- action: action,
10452
- location: location
10453
- });
10454
- } else {
10455
- revertPop(location);
10456
- }
10457
- });
10458
- }
10459
- }
10460
-
10461
- function revertPop(fromLocation) {
10462
- var toLocation = history.location; // TODO: We could probably make this more reliable by
10463
- // keeping a list of paths we've seen in sessionStorage.
10464
- // Instead, we just default to 0 for paths we don't know.
10465
-
10466
- var toIndex = allPaths.lastIndexOf(createPath(toLocation));
10467
- if (toIndex === -1) toIndex = 0;
10468
- var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
10469
- if (fromIndex === -1) fromIndex = 0;
10470
- var delta = toIndex - fromIndex;
10471
-
10472
- if (delta) {
10473
- forceNextPop = true;
10474
- go(delta);
10475
  }
10476
- } // Ensure the hash is encoded properly before doing anything else.
10477
-
10478
-
10479
- var path = getHashPath();
10480
- var encodedPath = encodePath(path);
10481
- if (path !== encodedPath) replaceHashPath(encodedPath);
10482
- var initialLocation = getDOMLocation();
10483
- var allPaths = [createPath(initialLocation)]; // Public interface
10484
-
10485
- function createHref(location) {
10486
- var baseTag = document.querySelector('base');
10487
- var href = '';
10488
 
10489
- if (baseTag && baseTag.getAttribute('href')) {
10490
- href = stripHash(window.location.href);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10491
  }
10492
-
10493
- return href + '#' + encodePath(basename + createPath(location));
10494
- }
10495
-
10496
- function push(path, state) {
10497
- false ? undefined : void 0;
10498
- var action = 'PUSH';
10499
- var location = createLocation(path, undefined, undefined, history.location);
10500
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
10501
- if (!ok) return;
10502
- var path = createPath(location);
10503
- var encodedPath = encodePath(basename + path);
10504
- var hashChanged = getHashPath() !== encodedPath;
10505
-
10506
- if (hashChanged) {
10507
- // We cannot tell if a hashchange was caused by a PUSH, so we'd
10508
- // rather setState here and ignore the hashchange. The caveat here
10509
- // is that other hash histories in the page will consider it a POP.
10510
- ignorePath = path;
10511
- pushHashPath(encodedPath);
10512
- var prevIndex = allPaths.lastIndexOf(createPath(history.location));
10513
- var nextPaths = allPaths.slice(0, prevIndex + 1);
10514
- nextPaths.push(path);
10515
- allPaths = nextPaths;
10516
- setState({
10517
- action: action,
10518
- location: location
10519
  });
10520
- } else {
10521
- false ? undefined : void 0;
10522
- setState();
10523
- }
10524
- });
10525
- }
10526
-
10527
- function replace(path, state) {
10528
- false ? undefined : void 0;
10529
- var action = 'REPLACE';
10530
- var location = createLocation(path, undefined, undefined, history.location);
10531
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
10532
- if (!ok) return;
10533
- var path = createPath(location);
10534
- var encodedPath = encodePath(basename + path);
10535
- var hashChanged = getHashPath() !== encodedPath;
10536
-
10537
- if (hashChanged) {
10538
- // We cannot tell if a hashchange was caused by a REPLACE, so we'd
10539
- // rather setState here and ignore the hashchange. The caveat here
10540
- // is that other hash histories in the page will consider it a POP.
10541
- ignorePath = path;
10542
- replaceHashPath(encodedPath);
10543
- }
10544
-
10545
- var prevIndex = allPaths.indexOf(createPath(history.location));
10546
- if (prevIndex !== -1) allPaths[prevIndex] = path;
10547
- setState({
10548
- action: action,
10549
- location: location
10550
- });
10551
- });
10552
- }
10553
-
10554
- function go(n) {
10555
- false ? undefined : void 0;
10556
- globalHistory.go(n);
10557
- }
10558
-
10559
- function goBack() {
10560
- go(-1);
10561
- }
10562
-
10563
- function goForward() {
10564
- go(1);
10565
- }
10566
-
10567
- var listenerCount = 0;
10568
-
10569
- function checkDOMListeners(delta) {
10570
- listenerCount += delta;
10571
-
10572
- if (listenerCount === 1 && delta === 1) {
10573
- window.addEventListener(HashChangeEvent$1, handleHashChange);
10574
- } else if (listenerCount === 0) {
10575
- window.removeEventListener(HashChangeEvent$1, handleHashChange);
10576
- }
10577
- }
10578
-
10579
- var isBlocked = false;
10580
-
10581
- function block(prompt) {
10582
- if (prompt === void 0) {
10583
- prompt = false;
10584
- }
10585
-
10586
- var unblock = transitionManager.setPrompt(prompt);
10587
-
10588
- if (!isBlocked) {
10589
- checkDOMListeners(1);
10590
- isBlocked = true;
10591
- }
10592
-
10593
- return function () {
10594
- if (isBlocked) {
10595
- isBlocked = false;
10596
- checkDOMListeners(-1);
10597
- }
10598
-
10599
- return unblock();
10600
  };
10601
- }
10602
-
10603
- function listen(listener) {
10604
- var unlisten = transitionManager.appendListener(listener);
10605
- checkDOMListeners(1);
10606
- return function () {
10607
- checkDOMListeners(-1);
10608
- unlisten();
10609
  };
10610
- }
10611
-
10612
- var history = {
10613
- length: globalHistory.length,
10614
- action: 'POP',
10615
- location: initialLocation,
10616
- createHref: createHref,
10617
- push: push,
10618
- replace: replace,
10619
- go: go,
10620
- goBack: goBack,
10621
- goForward: goForward,
10622
- block: block,
10623
- listen: listen
10624
- };
10625
- return history;
10626
- }
10627
-
10628
- function clamp(n, lowerBound, upperBound) {
10629
- return Math.min(Math.max(n, lowerBound), upperBound);
10630
- }
10631
- /**
10632
- * Creates a history object that stores locations in memory.
10633
- */
10634
-
10635
-
10636
- function createMemoryHistory(props) {
10637
- if (props === void 0) {
10638
- props = {};
10639
- }
10640
-
10641
- var _props = props,
10642
- getUserConfirmation = _props.getUserConfirmation,
10643
- _props$initialEntries = _props.initialEntries,
10644
- initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
10645
- _props$initialIndex = _props.initialIndex,
10646
- initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
10647
- _props$keyLength = _props.keyLength,
10648
- keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
10649
- var transitionManager = createTransitionManager();
10650
-
10651
- function setState(nextState) {
10652
- Object(esm_extends["a" /* default */])(history, nextState);
10653
-
10654
- history.length = history.entries.length;
10655
- transitionManager.notifyListeners(history.location, history.action);
10656
- }
10657
-
10658
- function createKey() {
10659
- return Math.random().toString(36).substr(2, keyLength);
10660
- }
10661
-
10662
- var index = clamp(initialIndex, 0, initialEntries.length - 1);
10663
- var entries = initialEntries.map(function (entry) {
10664
- return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
10665
- }); // Public interface
10666
-
10667
- var createHref = createPath;
10668
-
10669
- function push(path, state) {
10670
- false ? undefined : void 0;
10671
- var action = 'PUSH';
10672
- var location = createLocation(path, state, createKey(), history.location);
10673
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
10674
- if (!ok) return;
10675
- var prevIndex = history.index;
10676
- var nextIndex = prevIndex + 1;
10677
- var nextEntries = history.entries.slice(0);
10678
-
10679
- if (nextEntries.length > nextIndex) {
10680
- nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
10681
- } else {
10682
- nextEntries.push(location);
10683
- }
10684
-
10685
- setState({
10686
- action: action,
10687
- location: location,
10688
- index: nextIndex,
10689
- entries: nextEntries
10690
- });
10691
- });
10692
- }
10693
-
10694
- function replace(path, state) {
10695
- false ? undefined : void 0;
10696
- var action = 'REPLACE';
10697
- var location = createLocation(path, state, createKey(), history.location);
10698
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
10699
- if (!ok) return;
10700
- history.entries[history.index] = location;
10701
- setState({
10702
- action: action,
10703
- location: location
10704
- });
10705
- });
10706
- }
10707
-
10708
- function go(n) {
10709
- var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
10710
- var action = 'POP';
10711
- var location = history.entries[nextIndex];
10712
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
10713
- if (ok) {
10714
- setState({
10715
- action: action,
10716
- location: location,
10717
- index: nextIndex
10718
  });
10719
- } else {
10720
- // Mimic the behavior of DOM histories by
10721
- // causing a render after a cancelled POP.
10722
- setState();
10723
- }
10724
- });
10725
- }
10726
-
10727
- function goBack() {
10728
- go(-1);
10729
- }
10730
-
10731
- function goForward() {
10732
- go(1);
10733
- }
10734
-
10735
- function canGo(n) {
10736
- var nextIndex = history.index + n;
10737
- return nextIndex >= 0 && nextIndex < history.entries.length;
10738
- }
10739
-
10740
- function block(prompt) {
10741
- if (prompt === void 0) {
10742
- prompt = false;
10743
- }
10744
-
10745
- return transitionManager.setPrompt(prompt);
10746
- }
10747
-
10748
- function listen(listener) {
10749
- return transitionManager.appendListener(listener);
10750
- }
10751
-
10752
- var history = {
10753
- length: entries.length,
10754
- action: 'POP',
10755
- location: entries[index],
10756
- index: index,
10757
- entries: entries,
10758
- createHref: createHref,
10759
- push: push,
10760
- replace: replace,
10761
- go: go,
10762
- goBack: goBack,
10763
- goForward: goForward,
10764
- canGo: canGo,
10765
- block: block,
10766
- listen: listen
10767
- };
10768
- return history;
10769
- }
10770
-
10771
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10772
 
 
 
10773
 
10774
- /***/ }),
10775
- /* 90 */
10776
- /***/ (function(module, exports) {
10777
 
10778
  /**
10779
- * Performs a
10780
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
10781
- * comparison between two values to determine if they are equivalent.
10782
- *
10783
- * @static
10784
- * @memberOf _
10785
- * @since 4.0.0
10786
- * @category Lang
10787
- * @param {*} value The value to compare.
10788
- * @param {*} other The other value to compare.
10789
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
10790
- * @example
10791
- *
10792
- * var object = { 'a': 1 };
10793
- * var other = { 'a': 1 };
10794
- *
10795
- * _.eq(object, object);
10796
- * // => true
10797
- *
10798
- * _.eq(object, other);
10799
- * // => false
10800
- *
10801
- * _.eq('a', 'a');
10802
- * // => true
10803
- *
10804
- * _.eq('a', Object('a'));
10805
- * // => false
10806
- *
10807
- * _.eq(NaN, NaN);
10808
- * // => true
10809
- */
10810
- function eq(value, other) {
10811
- return value === other || (value !== value && other !== other);
10812
- }
10813
-
10814
- module.exports = eq;
10815
-
10816
-
10817
- /***/ }),
10818
- /* 91 */
10819
- /***/ (function(module, exports, __webpack_require__) {
10820
-
10821
- var baseIsNative = __webpack_require__(317),
10822
- getValue = __webpack_require__(322);
10823
-
10824
- /**
10825
- * Gets the native function at `key` of `object`.
10826
- *
10827
- * @private
10828
- * @param {Object} object The object to query.
10829
- * @param {string} key The key of the method to get.
10830
- * @returns {*} Returns the function if it's native, else `undefined`.
10831
- */
10832
- function getNative(object, key) {
10833
- var value = getValue(object, key);
10834
- return baseIsNative(value) ? value : undefined;
10835
- }
10836
-
10837
- module.exports = getNative;
10838
-
10839
-
10840
- /***/ }),
10841
- /* 92 */
10842
- /***/ (function(module, exports) {
10843
-
10844
- module.exports = function (it) {
10845
- return typeof it === 'object' ? it !== null : typeof it === 'function';
10846
- };
10847
-
10848
-
10849
- /***/ }),
10850
- /* 93 */
10851
- /***/ (function(module, exports, __webpack_require__) {
10852
-
10853
- var isObject = __webpack_require__(92);
10854
-
10855
- module.exports = function (it) {
10856
- if (!isObject(it)) {
10857
- throw TypeError(String(it) + ' is not an object');
10858
- } return it;
10859
- };
10860
-
10861
-
10862
- /***/ }),
10863
- /* 94 */
10864
- /***/ (function(module, exports) {
10865
-
10866
- var core = module.exports = { version: '2.5.7' };
10867
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
10868
-
10869
-
10870
- /***/ }),
10871
- /* 95 */
10872
- /***/ (function(module, exports, __webpack_require__) {
10873
-
10874
- // optional / simple context binding
10875
- var aFunction = __webpack_require__(63);
10876
- module.exports = function (fn, that, length) {
10877
- aFunction(fn);
10878
- if (that === undefined) return fn;
10879
- switch (length) {
10880
- case 1: return function (a) {
10881
- return fn.call(that, a);
10882
- };
10883
- case 2: return function (a, b) {
10884
- return fn.call(that, a, b);
10885
- };
10886
- case 3: return function (a, b, c) {
10887
- return fn.call(that, a, b, c);
10888
- };
10889
- }
10890
- return function (/* ...args */) {
10891
- return fn.apply(that, arguments);
10892
- };
10893
- };
10894
-
10895
-
10896
- /***/ }),
10897
- /* 96 */
10898
- /***/ (function(module, exports) {
10899
-
10900
- var toString = {}.toString;
10901
-
10902
- module.exports = function (it) {
10903
- return toString.call(it).slice(8, -1);
10904
- };
10905
-
10906
-
10907
- /***/ }),
10908
- /* 97 */
10909
- /***/ (function(module, exports, __webpack_require__) {
10910
-
10911
- "use strict";
10912
-
10913
- var fails = __webpack_require__(27);
10914
-
10915
- module.exports = function (method, arg) {
10916
- return !!method && fails(function () {
10917
- // eslint-disable-next-line no-useless-call
10918
- arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);
10919
- });
10920
- };
10921
-
10922
-
10923
- /***/ }),
10924
- /* 98 */
10925
- /***/ (function(module, exports, __webpack_require__) {
10926
-
10927
- module.exports = __webpack_require__(286);
10928
-
10929
- /***/ }),
10930
- /* 99 */
10931
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10932
-
10933
- "use strict";
10934
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useControlled; });
10935
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
10936
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10937
- /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
10938
-
10939
- function useControlled(_ref) {
10940
- var controlled = _ref.controlled,
10941
- defaultProp = _ref.default,
10942
- name = _ref.name,
10943
- _ref$state = _ref.state,
10944
- state = _ref$state === void 0 ? 'value' : _ref$state;
10945
-
10946
- var _React$useRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](controlled !== undefined),
10947
- isControlled = _React$useRef.current;
10948
-
10949
- var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__["useState"](defaultProp),
10950
- valueState = _React$useState[0],
10951
- setValue = _React$useState[1];
10952
-
10953
- var value = isControlled ? controlled : valueState;
10954
-
10955
- if (false) { var _React$useRef2, defaultValue; }
10956
-
10957
- var setValueIfUncontrolled = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function (newValue) {
10958
- if (!isControlled) {
10959
- setValue(newValue);
10960
- }
10961
- }, []);
10962
- return [value, setValueIfUncontrolled];
10963
- }
10964
-
10965
- /***/ }),
10966
- /* 100 */
10967
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10968
-
10969
- "use strict";
10970
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createClass; });
10971
- function _defineProperties(target, props) {
10972
- for (var i = 0; i < props.length; i++) {
10973
- var descriptor = props[i];
10974
- descriptor.enumerable = descriptor.enumerable || false;
10975
- descriptor.configurable = true;
10976
- if ("value" in descriptor) descriptor.writable = true;
10977
- Object.defineProperty(target, descriptor.key, descriptor);
10978
- }
10979
- }
10980
-
10981
- function _createClass(Constructor, protoProps, staticProps) {
10982
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
10983
- if (staticProps) _defineProperties(Constructor, staticProps);
10984
- return Constructor;
10985
- }
10986
-
10987
- /***/ }),
10988
- /* 101 */
10989
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10990
-
10991
- "use strict";
10992
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return changeHasChanges; });
10993
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return changeIsUpdating; });
10994
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return stopLoading; });
10995
- /* harmony import */ var buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
10996
-
10997
- function changeHasChanges(status) {
10998
- return {
10999
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].HAS_CHANGES,
11000
- payload: {
11001
- hasChanges: status
11002
- }
11003
- };
11004
- }
11005
- function changeIsUpdating(status) {
11006
- return {
11007
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].IS_UPDATING,
11008
- payload: {
11009
- isUpdating: status
11010
- }
11011
- };
11012
- }
11013
- function stopLoading() {
11014
- return {
11015
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_0__[/* actionTypes */ "a"].STOP_LOADING
11016
- };
11017
- }
11018
-
11019
- /***/ }),
11020
- /* 102 */
11021
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11022
-
11023
- "use strict";
11024
- /* unused harmony export __DO_NOT_USE__ActionTypes */
11025
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return applyMiddleware; });
11026
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return bindActionCreators; });
11027
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return combineReducers; });
11028
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return compose; });
11029
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return createStore; });
11030
- /* harmony import */ var symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(157);
11031
-
11032
-
11033
- /**
11034
- * These are private action types reserved by Redux.
11035
- * For any unknown actions, you must return the current state.
11036
- * If the current state is undefined, you must return the initial state.
11037
- * Do not reference these action types directly in your code.
11038
- */
11039
- var randomString = function randomString() {
11040
- return Math.random().toString(36).substring(7).split('').join('.');
11041
- };
11042
-
11043
- var ActionTypes = {
11044
- INIT: "@@redux/INIT" + randomString(),
11045
- REPLACE: "@@redux/REPLACE" + randomString(),
11046
- PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
11047
- return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
11048
- }
11049
- };
11050
-
11051
- /**
11052
- * @param {any} obj The object to inspect.
11053
- * @returns {boolean} True if the argument appears to be a plain object.
11054
- */
11055
- function isPlainObject(obj) {
11056
- if (typeof obj !== 'object' || obj === null) return false;
11057
- var proto = obj;
11058
-
11059
- while (Object.getPrototypeOf(proto) !== null) {
11060
- proto = Object.getPrototypeOf(proto);
11061
- }
11062
-
11063
- return Object.getPrototypeOf(obj) === proto;
11064
- }
11065
-
11066
- /**
11067
- * Creates a Redux store that holds the state tree.
11068
- * The only way to change the data in the store is to call `dispatch()` on it.
11069
- *
11070
- * There should only be a single store in your app. To specify how different
11071
- * parts of the state tree respond to actions, you may combine several reducers
11072
- * into a single reducer function by using `combineReducers`.
11073
- *
11074
- * @param {Function} reducer A function that returns the next state tree, given
11075
- * the current state tree and the action to handle.
11076
- *
11077
- * @param {any} [preloadedState] The initial state. You may optionally specify it
11078
- * to hydrate the state from the server in universal apps, or to restore a
11079
- * previously serialized user session.
11080
- * If you use `combineReducers` to produce the root reducer function, this must be
11081
- * an object with the same shape as `combineReducers` keys.
11082
- *
11083
- * @param {Function} [enhancer] The store enhancer. You may optionally specify it
11084
- * to enhance the store with third-party capabilities such as middleware,
11085
- * time travel, persistence, etc. The only store enhancer that ships with Redux
11086
- * is `applyMiddleware()`.
11087
- *
11088
- * @returns {Store} A Redux store that lets you read the state, dispatch actions
11089
- * and subscribe to changes.
11090
- */
11091
-
11092
- function createStore(reducer, preloadedState, enhancer) {
11093
- var _ref2;
11094
-
11095
- if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
11096
- throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');
11097
- }
11098
-
11099
- if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
11100
- enhancer = preloadedState;
11101
- preloadedState = undefined;
11102
- }
11103
-
11104
- if (typeof enhancer !== 'undefined') {
11105
- if (typeof enhancer !== 'function') {
11106
- throw new Error('Expected the enhancer to be a function.');
11107
- }
11108
-
11109
- return enhancer(createStore)(reducer, preloadedState);
11110
- }
11111
-
11112
- if (typeof reducer !== 'function') {
11113
- throw new Error('Expected the reducer to be a function.');
11114
- }
11115
-
11116
- var currentReducer = reducer;
11117
- var currentState = preloadedState;
11118
- var currentListeners = [];
11119
- var nextListeners = currentListeners;
11120
- var isDispatching = false;
11121
- /**
11122
- * This makes a shallow copy of currentListeners so we can use
11123
- * nextListeners as a temporary list while dispatching.
11124
- *
11125
- * This prevents any bugs around consumers calling
11126
- * subscribe/unsubscribe in the middle of a dispatch.
11127
- */
11128
-
11129
- function ensureCanMutateNextListeners() {
11130
- if (nextListeners === currentListeners) {
11131
- nextListeners = currentListeners.slice();
11132
- }
11133
- }
11134
- /**
11135
- * Reads the state tree managed by the store.
11136
- *
11137
- * @returns {any} The current state tree of your application.
11138
- */
11139
-
11140
-
11141
- function getState() {
11142
- if (isDispatching) {
11143
- throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
11144
- }
11145
-
11146
- return currentState;
11147
- }
11148
- /**
11149
- * Adds a change listener. It will be called any time an action is dispatched,
11150
- * and some part of the state tree may potentially have changed. You may then
11151
- * call `getState()` to read the current state tree inside the callback.
11152
- *
11153
- * You may call `dispatch()` from a change listener, with the following
11154
- * caveats:
11155
- *
11156
- * 1. The subscriptions are snapshotted just before every `dispatch()` call.
11157
- * If you subscribe or unsubscribe while the listeners are being invoked, this
11158
- * will not have any effect on the `dispatch()` that is currently in progress.
11159
- * However, the next `dispatch()` call, whether nested or not, will use a more
11160
- * recent snapshot of the subscription list.
11161
- *
11162
- * 2. The listener should not expect to see all state changes, as the state
11163
- * might have been updated multiple times during a nested `dispatch()` before
11164
- * the listener is called. It is, however, guaranteed that all subscribers
11165
- * registered before the `dispatch()` started will be called with the latest
11166
- * state by the time it exits.
11167
- *
11168
- * @param {Function} listener A callback to be invoked on every dispatch.
11169
- * @returns {Function} A function to remove this change listener.
11170
- */
11171
-
11172
-
11173
- function subscribe(listener) {
11174
- if (typeof listener !== 'function') {
11175
- throw new Error('Expected the listener to be a function.');
11176
- }
11177
-
11178
- if (isDispatching) {
11179
- throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');
11180
- }
11181
-
11182
- var isSubscribed = true;
11183
- ensureCanMutateNextListeners();
11184
- nextListeners.push(listener);
11185
- return function unsubscribe() {
11186
- if (!isSubscribed) {
11187
- return;
11188
- }
11189
-
11190
- if (isDispatching) {
11191
- throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');
11192
- }
11193
-
11194
- isSubscribed = false;
11195
- ensureCanMutateNextListeners();
11196
- var index = nextListeners.indexOf(listener);
11197
- nextListeners.splice(index, 1);
11198
- currentListeners = null;
11199
- };
11200
- }
11201
- /**
11202
- * Dispatches an action. It is the only way to trigger a state change.
11203
- *
11204
- * The `reducer` function, used to create the store, will be called with the
11205
- * current state tree and the given `action`. Its return value will
11206
- * be considered the **next** state of the tree, and the change listeners
11207
- * will be notified.
11208
- *
11209
- * The base implementation only supports plain object actions. If you want to
11210
- * dispatch a Promise, an Observable, a thunk, or something else, you need to
11211
- * wrap your store creating function into the corresponding middleware. For
11212
- * example, see the documentation for the `redux-thunk` package. Even the
11213
- * middleware will eventually dispatch plain object actions using this method.
11214
- *
11215
- * @param {Object} action A plain object representing “what changed”. It is
11216
- * a good idea to keep actions serializable so you can record and replay user
11217
- * sessions, or use the time travelling `redux-devtools`. An action must have
11218
- * a `type` property which may not be `undefined`. It is a good idea to use
11219
- * string constants for action types.
11220
- *
11221
- * @returns {Object} For convenience, the same action object you dispatched.
11222
- *
11223
- * Note that, if you use a custom middleware, it may wrap `dispatch()` to
11224
- * return something else (for example, a Promise you can await).
11225
- */
11226
-
11227
-
11228
- function dispatch(action) {
11229
- if (!isPlainObject(action)) {
11230
- throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
11231
- }
11232
-
11233
- if (typeof action.type === 'undefined') {
11234
- throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?');
11235
- }
11236
-
11237
- if (isDispatching) {
11238
- throw new Error('Reducers may not dispatch actions.');
11239
- }
11240
-
11241
- try {
11242
- isDispatching = true;
11243
- currentState = currentReducer(currentState, action);
11244
- } finally {
11245
- isDispatching = false;
11246
- }
11247
-
11248
- var listeners = currentListeners = nextListeners;
11249
-
11250
- for (var i = 0; i < listeners.length; i++) {
11251
- var listener = listeners[i];
11252
- listener();
11253
- }
11254
-
11255
- return action;
11256
- }
11257
- /**
11258
- * Replaces the reducer currently used by the store to calculate the state.
11259
- *
11260
- * You might need this if your app implements code splitting and you want to
11261
- * load some of the reducers dynamically. You might also need this if you
11262
- * implement a hot reloading mechanism for Redux.
11263
- *
11264
- * @param {Function} nextReducer The reducer for the store to use instead.
11265
- * @returns {void}
11266
- */
11267
-
11268
-
11269
- function replaceReducer(nextReducer) {
11270
- if (typeof nextReducer !== 'function') {
11271
- throw new Error('Expected the nextReducer to be a function.');
11272
- }
11273
-
11274
- currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
11275
- // Any reducers that existed in both the new and old rootReducer
11276
- // will receive the previous state. This effectively populates
11277
- // the new state tree with any relevant data from the old one.
11278
-
11279
- dispatch({
11280
- type: ActionTypes.REPLACE
11281
- });
11282
- }
11283
- /**
11284
- * Interoperability point for observable/reactive libraries.
11285
- * @returns {observable} A minimal observable of state changes.
11286
- * For more information, see the observable proposal:
11287
- * https://github.com/tc39/proposal-observable
11288
- */
11289
-
11290
-
11291
- function observable() {
11292
- var _ref;
11293
-
11294
- var outerSubscribe = subscribe;
11295
- return _ref = {
11296
- /**
11297
- * The minimal observable subscription method.
11298
- * @param {Object} observer Any object that can be used as an observer.
11299
- * The observer object should have a `next` method.
11300
- * @returns {subscription} An object with an `unsubscribe` method that can
11301
- * be used to unsubscribe the observable from the store, and prevent further
11302
- * emission of values from the observable.
11303
- */
11304
- subscribe: function subscribe(observer) {
11305
- if (typeof observer !== 'object' || observer === null) {
11306
- throw new TypeError('Expected the observer to be an object.');
11307
- }
11308
-
11309
- function observeState() {
11310
- if (observer.next) {
11311
- observer.next(getState());
11312
- }
11313
- }
11314
-
11315
- observeState();
11316
- var unsubscribe = outerSubscribe(observeState);
11317
- return {
11318
- unsubscribe: unsubscribe
11319
- };
11320
- }
11321
- }, _ref[symbol_observable__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]] = function () {
11322
- return this;
11323
- }, _ref;
11324
- } // When a store is created, an "INIT" action is dispatched so that every
11325
- // reducer returns their initial state. This effectively populates
11326
- // the initial state tree.
11327
-
11328
-
11329
- dispatch({
11330
- type: ActionTypes.INIT
11331
- });
11332
- return _ref2 = {
11333
- dispatch: dispatch,
11334
- subscribe: subscribe,
11335
- getState: getState,
11336
- replaceReducer: replaceReducer
11337
- }, _ref2[symbol_observable__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]] = observable, _ref2;
11338
- }
11339
-
11340
- /**
11341
- * Prints a warning in the console if it exists.
11342
- *
11343
- * @param {String} message The warning message.
11344
- * @returns {void}
11345
- */
11346
- function warning(message) {
11347
- /* eslint-disable no-console */
11348
- if (typeof console !== 'undefined' && typeof console.error === 'function') {
11349
- console.error(message);
11350
- }
11351
- /* eslint-enable no-console */
11352
-
11353
-
11354
- try {
11355
- // This error was thrown as a convenience so that if you enable
11356
- // "break on all exceptions" in your console,
11357
- // it would pause the execution at this line.
11358
- throw new Error(message);
11359
- } catch (e) {} // eslint-disable-line no-empty
11360
-
11361
- }
11362
-
11363
- function getUndefinedStateErrorMessage(key, action) {
11364
- var actionType = action && action.type;
11365
- var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action';
11366
- return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
11367
- }
11368
-
11369
- function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
11370
- var reducerKeys = Object.keys(reducers);
11371
- var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
11372
-
11373
- if (reducerKeys.length === 0) {
11374
- return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
11375
- }
11376
-
11377
- if (!isPlainObject(inputState)) {
11378
- return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
11379
- }
11380
-
11381
- var unexpectedKeys = Object.keys(inputState).filter(function (key) {
11382
- return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
11383
- });
11384
- unexpectedKeys.forEach(function (key) {
11385
- unexpectedKeyCache[key] = true;
11386
- });
11387
- if (action && action.type === ActionTypes.REPLACE) return;
11388
-
11389
- if (unexpectedKeys.length > 0) {
11390
- return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
11391
- }
11392
- }
11393
-
11394
- function assertReducerShape(reducers) {
11395
- Object.keys(reducers).forEach(function (key) {
11396
- var reducer = reducers[key];
11397
- var initialState = reducer(undefined, {
11398
- type: ActionTypes.INIT
11399
- });
11400
-
11401
- if (typeof initialState === 'undefined') {
11402
- throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
11403
- }
11404
-
11405
- if (typeof reducer(undefined, {
11406
- type: ActionTypes.PROBE_UNKNOWN_ACTION()
11407
- }) === 'undefined') {
11408
- throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
11409
- }
11410
- });
11411
- }
11412
- /**
11413
- * Turns an object whose values are different reducer functions, into a single
11414
- * reducer function. It will call every child reducer, and gather their results
11415
- * into a single state object, whose keys correspond to the keys of the passed
11416
- * reducer functions.
11417
- *
11418
- * @param {Object} reducers An object whose values correspond to different
11419
- * reducer functions that need to be combined into one. One handy way to obtain
11420
- * it is to use ES6 `import * as reducers` syntax. The reducers may never return
11421
- * undefined for any action. Instead, they should return their initial state
11422
- * if the state passed to them was undefined, and the current state for any
11423
- * unrecognized action.
11424
- *
11425
- * @returns {Function} A reducer function that invokes every reducer inside the
11426
- * passed object, and builds a state object with the same shape.
11427
- */
11428
-
11429
-
11430
- function combineReducers(reducers) {
11431
- var reducerKeys = Object.keys(reducers);
11432
- var finalReducers = {};
11433
-
11434
- for (var i = 0; i < reducerKeys.length; i++) {
11435
- var key = reducerKeys[i];
11436
-
11437
- if (false) {}
11438
-
11439
- if (typeof reducers[key] === 'function') {
11440
- finalReducers[key] = reducers[key];
11441
- }
11442
- }
11443
-
11444
- var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
11445
- // keys multiple times.
11446
-
11447
- var unexpectedKeyCache;
11448
-
11449
- if (false) {}
11450
-
11451
- var shapeAssertionError;
11452
-
11453
- try {
11454
- assertReducerShape(finalReducers);
11455
- } catch (e) {
11456
- shapeAssertionError = e;
11457
- }
11458
-
11459
- return function combination(state, action) {
11460
- if (state === void 0) {
11461
- state = {};
11462
- }
11463
-
11464
- if (shapeAssertionError) {
11465
- throw shapeAssertionError;
11466
- }
11467
-
11468
- if (false) { var warningMessage; }
11469
-
11470
- var hasChanged = false;
11471
- var nextState = {};
11472
-
11473
- for (var _i = 0; _i < finalReducerKeys.length; _i++) {
11474
- var _key = finalReducerKeys[_i];
11475
- var reducer = finalReducers[_key];
11476
- var previousStateForKey = state[_key];
11477
- var nextStateForKey = reducer(previousStateForKey, action);
11478
-
11479
- if (typeof nextStateForKey === 'undefined') {
11480
- var errorMessage = getUndefinedStateErrorMessage(_key, action);
11481
- throw new Error(errorMessage);
11482
- }
11483
-
11484
- nextState[_key] = nextStateForKey;
11485
- hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
11486
- }
11487
-
11488
- hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
11489
- return hasChanged ? nextState : state;
11490
- };
11491
- }
11492
-
11493
- function bindActionCreator(actionCreator, dispatch) {
11494
- return function () {
11495
- return dispatch(actionCreator.apply(this, arguments));
11496
- };
11497
- }
11498
- /**
11499
- * Turns an object whose values are action creators, into an object with the
11500
- * same keys, but with every function wrapped into a `dispatch` call so they
11501
- * may be invoked directly. This is just a convenience method, as you can call
11502
- * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
11503
- *
11504
- * For convenience, you can also pass an action creator as the first argument,
11505
- * and get a dispatch wrapped function in return.
11506
- *
11507
- * @param {Function|Object} actionCreators An object whose values are action
11508
- * creator functions. One handy way to obtain it is to use ES6 `import * as`
11509
- * syntax. You may also pass a single function.
11510
- *
11511
- * @param {Function} dispatch The `dispatch` function available on your Redux
11512
- * store.
11513
- *
11514
- * @returns {Function|Object} The object mimicking the original object, but with
11515
- * every action creator wrapped into the `dispatch` call. If you passed a
11516
- * function as `actionCreators`, the return value will also be a single
11517
- * function.
11518
- */
11519
-
11520
-
11521
- function bindActionCreators(actionCreators, dispatch) {
11522
- if (typeof actionCreators === 'function') {
11523
- return bindActionCreator(actionCreators, dispatch);
11524
- }
11525
-
11526
- if (typeof actionCreators !== 'object' || actionCreators === null) {
11527
- throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
11528
- }
11529
-
11530
- var boundActionCreators = {};
11531
-
11532
- for (var key in actionCreators) {
11533
- var actionCreator = actionCreators[key];
11534
-
11535
- if (typeof actionCreator === 'function') {
11536
- boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
11537
- }
11538
- }
11539
-
11540
- return boundActionCreators;
11541
- }
11542
-
11543
- function _defineProperty(obj, key, value) {
11544
- if (key in obj) {
11545
- Object.defineProperty(obj, key, {
11546
- value: value,
11547
- enumerable: true,
11548
- configurable: true,
11549
- writable: true
11550
- });
11551
- } else {
11552
- obj[key] = value;
11553
- }
11554
-
11555
- return obj;
11556
- }
11557
-
11558
- function ownKeys(object, enumerableOnly) {
11559
- var keys = Object.keys(object);
11560
-
11561
- if (Object.getOwnPropertySymbols) {
11562
- keys.push.apply(keys, Object.getOwnPropertySymbols(object));
11563
- }
11564
-
11565
- if (enumerableOnly) keys = keys.filter(function (sym) {
11566
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11567
- });
11568
- return keys;
11569
- }
11570
-
11571
- function _objectSpread2(target) {
11572
- for (var i = 1; i < arguments.length; i++) {
11573
- var source = arguments[i] != null ? arguments[i] : {};
11574
-
11575
- if (i % 2) {
11576
- ownKeys(source, true).forEach(function (key) {
11577
- _defineProperty(target, key, source[key]);
11578
- });
11579
- } else if (Object.getOwnPropertyDescriptors) {
11580
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
11581
- } else {
11582
- ownKeys(source).forEach(function (key) {
11583
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11584
- });
11585
- }
11586
- }
11587
-
11588
- return target;
11589
- }
11590
-
11591
- /**
11592
- * Composes single-argument functions from right to left. The rightmost
11593
- * function can take multiple arguments as it provides the signature for
11594
- * the resulting composite function.
11595
- *
11596
- * @param {...Function} funcs The functions to compose.
11597
- * @returns {Function} A function obtained by composing the argument functions
11598
- * from right to left. For example, compose(f, g, h) is identical to doing
11599
- * (...args) => f(g(h(...args))).
11600
- */
11601
- function compose() {
11602
- for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
11603
- funcs[_key] = arguments[_key];
11604
- }
11605
-
11606
- if (funcs.length === 0) {
11607
- return function (arg) {
11608
- return arg;
11609
- };
11610
- }
11611
-
11612
- if (funcs.length === 1) {
11613
- return funcs[0];
11614
- }
11615
-
11616
- return funcs.reduce(function (a, b) {
11617
- return function () {
11618
- return a(b.apply(void 0, arguments));
11619
- };
11620
- });
11621
- }
11622
-
11623
- /**
11624
- * Creates a store enhancer that applies middleware to the dispatch method
11625
- * of the Redux store. This is handy for a variety of tasks, such as expressing
11626
- * asynchronous actions in a concise manner, or logging every action payload.
11627
- *
11628
- * See `redux-thunk` package as an example of the Redux middleware.
11629
- *
11630
- * Because middleware is potentially asynchronous, this should be the first
11631
- * store enhancer in the composition chain.
11632
- *
11633
- * Note that each middleware will be given the `dispatch` and `getState` functions
11634
- * as named arguments.
11635
- *
11636
- * @param {...Function} middlewares The middleware chain to be applied.
11637
- * @returns {Function} A store enhancer applying the middleware.
11638
- */
11639
-
11640
- function applyMiddleware() {
11641
- for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
11642
- middlewares[_key] = arguments[_key];
11643
- }
11644
-
11645
- return function (createStore) {
11646
- return function () {
11647
- var store = createStore.apply(void 0, arguments);
11648
-
11649
- var _dispatch = function dispatch() {
11650
- throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
11651
- };
11652
-
11653
- var middlewareAPI = {
11654
- getState: store.getState,
11655
- dispatch: function dispatch() {
11656
- return _dispatch.apply(void 0, arguments);
11657
- }
11658
- };
11659
- var chain = middlewares.map(function (middleware) {
11660
- return middleware(middlewareAPI);
11661
- });
11662
- _dispatch = compose.apply(void 0, chain)(store.dispatch);
11663
- return _objectSpread2({}, store, {
11664
- dispatch: _dispatch
11665
- });
11666
- };
11667
- };
11668
- }
11669
-
11670
- /*
11671
- * This is a dummy function to check if the function name has been altered by minification.
11672
- * If the function has been minified and NODE_ENV !== 'production', warn the user.
11673
- */
11674
-
11675
- function isCrushed() {}
11676
-
11677
- if (false) {}
11678
-
11679
-
11680
-
11681
-
11682
- /***/ }),
11683
- /* 103 */
11684
- /***/ (function(module, exports, __webpack_require__) {
11685
-
11686
- var isFunction = __webpack_require__(138),
11687
- isLength = __webpack_require__(172);
11688
-
11689
- /**
11690
- * Checks if `value` is array-like. A value is considered array-like if it's
11691
- * not a function and has a `value.length` that's an integer greater than or
11692
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
11693
- *
11694
- * @static
11695
- * @memberOf _
11696
- * @since 4.0.0
11697
- * @category Lang
11698
- * @param {*} value The value to check.
11699
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
11700
- * @example
11701
- *
11702
- * _.isArrayLike([1, 2, 3]);
11703
- * // => true
11704
- *
11705
- * _.isArrayLike(document.body.children);
11706
- * // => true
11707
- *
11708
- * _.isArrayLike('abc');
11709
- * // => true
11710
- *
11711
- * _.isArrayLike(_.noop);
11712
- * // => false
11713
- */
11714
- function isArrayLike(value) {
11715
- return value != null && isLength(value.length) && !isFunction(value);
11716
- }
11717
-
11718
- module.exports = isArrayLike;
11719
-
11720
-
11721
- /***/ }),
11722
- /* 104 */
11723
- /***/ (function(module, exports, __webpack_require__) {
11724
-
11725
- // 7.1.1 ToPrimitive(input [, PreferredType])
11726
- var isObject = __webpack_require__(30);
11727
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
11728
- // and the second argument - flag - preferred type is a string
11729
- module.exports = function (it, S) {
11730
- if (!isObject(it)) return it;
11731
- var fn, val;
11732
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
11733
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
11734
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
11735
- throw TypeError("Can't convert object to primitive value");
11736
- };
11737
-
11738
-
11739
- /***/ }),
11740
- /* 105 */
11741
- /***/ (function(module, exports) {
11742
-
11743
- // 7.2.1 RequireObjectCoercible(argument)
11744
- module.exports = function (it) {
11745
- if (it == undefined) throw TypeError("Can't call method on " + it);
11746
- return it;
11747
- };
11748
-
11749
-
11750
- /***/ }),
11751
- /* 106 */
11752
- /***/ (function(module, exports) {
11753
-
11754
- // 7.1.4 ToInteger
11755
- var ceil = Math.ceil;
11756
- var floor = Math.floor;
11757
- module.exports = function (it) {
11758
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
11759
- };
11760
-
11761
-
11762
- /***/ }),
11763
- /* 107 */
11764
- /***/ (function(module, exports, __webpack_require__) {
11765
-
11766
- // most Object methods by ES6 should accept primitives
11767
- var $export = __webpack_require__(8);
11768
- var core = __webpack_require__(94);
11769
- var fails = __webpack_require__(27);
11770
- module.exports = function (KEY, exec) {
11771
- var fn = (core.Object || {})[KEY] || Object[KEY];
11772
- var exp = {};
11773
- exp[KEY] = exec(fn);
11774
- $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
11775
- };
11776
-
11777
-
11778
- /***/ }),
11779
- /* 108 */
11780
- /***/ (function(module, exports, __webpack_require__) {
11781
-
11782
- // 0 -> Array#forEach
11783
- // 1 -> Array#map
11784
- // 2 -> Array#filter
11785
- // 3 -> Array#some
11786
- // 4 -> Array#every
11787
- // 5 -> Array#find
11788
- // 6 -> Array#findIndex
11789
- var ctx = __webpack_require__(95);
11790
- var IObject = __webpack_require__(212);
11791
- var toObject = __webpack_require__(51);
11792
- var toLength = __webpack_require__(45);
11793
- var asc = __webpack_require__(393);
11794
- module.exports = function (TYPE, $create) {
11795
- var IS_MAP = TYPE == 1;
11796
- var IS_FILTER = TYPE == 2;
11797
- var IS_SOME = TYPE == 3;
11798
- var IS_EVERY = TYPE == 4;
11799
- var IS_FIND_INDEX = TYPE == 6;
11800
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
11801
- var create = $create || asc;
11802
- return function ($this, callbackfn, that) {
11803
- var O = toObject($this);
11804
- var self = IObject(O);
11805
- var f = ctx(callbackfn, that, 3);
11806
- var length = toLength(self.length);
11807
- var index = 0;
11808
- var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
11809
- var val, res;
11810
- for (;length > index; index++) if (NO_HOLES || index in self) {
11811
- val = self[index];
11812
- res = f(val, index, O);
11813
- if (TYPE) {
11814
- if (IS_MAP) result[index] = res; // map
11815
- else if (res) switch (TYPE) {
11816
- case 3: return true; // some
11817
- case 5: return val; // find
11818
- case 6: return index; // findIndex
11819
- case 2: result.push(val); // filter
11820
- } else if (IS_EVERY) return false; // every
11821
- }
11822
- }
11823
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
11824
- };
11825
- };
11826
-
11827
-
11828
- /***/ }),
11829
- /* 109 */
11830
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11831
-
11832
- "use strict";
11833
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
11834
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11835
-
11836
- /**
11837
- * @ignore - internal component.
11838
- */
11839
-
11840
- var ListContext = react__WEBPACK_IMPORTED_MODULE_0__["createContext"]({});
11841
-
11842
- if (false) {}
11843
-
11844
- /* harmony default export */ __webpack_exports__["a"] = (ListContext);
11845
-
11846
- /***/ }),
11847
- /* 110 */
11848
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11849
-
11850
- "use strict";
11851
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useFormControl; });
11852
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
11853
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
11854
-
11855
- /**
11856
- * @ignore - internal component.
11857
- */
11858
-
11859
- var FormControlContext = react__WEBPACK_IMPORTED_MODULE_0__["createContext"]();
11860
-
11861
- if (false) {}
11862
-
11863
- function useFormControl() {
11864
- return react__WEBPACK_IMPORTED_MODULE_0__["useContext"](FormControlContext);
11865
- }
11866
- /* harmony default export */ __webpack_exports__["a"] = (FormControlContext);
11867
-
11868
- /***/ }),
11869
- /* 111 */
11870
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11871
-
11872
- "use strict";
11873
- /* unused harmony export styles */
11874
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
11875
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
11876
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
11877
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
11878
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
11879
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
11880
- /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4);
11881
- /* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
11882
- /* harmony import */ var _styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(16);
11883
- /* harmony import */ var _ButtonBase__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(414);
11884
- /* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(12);
11885
-
11886
-
11887
-
11888
-
11889
-
11890
-
11891
-
11892
-
11893
-
11894
- var styles = function styles(theme) {
11895
- return {
11896
- /* Styles applied to the root element. */
11897
- root: Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({}, theme.typography.button, {
11898
- boxSizing: 'border-box',
11899
- minWidth: 64,
11900
- padding: '6px 16px',
11901
- borderRadius: theme.shape.borderRadius,
11902
- color: theme.palette.text.primary,
11903
- transition: theme.transitions.create(['background-color', 'box-shadow', 'border'], {
11904
- duration: theme.transitions.duration.short
11905
- }),
11906
- '&:hover': {
11907
- textDecoration: 'none',
11908
- backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__[/* fade */ "c"])(theme.palette.text.primary, theme.palette.action.hoverOpacity),
11909
- // Reset on touch devices, it doesn't add specificity
11910
- '@media (hover: none)': {
11911
- backgroundColor: 'transparent'
11912
- },
11913
- '&$disabled': {
11914
- backgroundColor: 'transparent'
11915
- }
11916
- },
11917
- '&$disabled': {
11918
- color: theme.palette.action.disabled
11919
- }
11920
- }),
11921
-
11922
- /* Styles applied to the span element that wraps the children. */
11923
- label: {
11924
- width: '100%',
11925
- // Ensure the correct width for iOS Safari
11926
- display: 'inherit',
11927
- alignItems: 'inherit',
11928
- justifyContent: 'inherit'
11929
- },
11930
-
11931
- /* Styles applied to the root element if `variant="text"`. */
11932
- text: {
11933
- padding: '6px 8px'
11934
- },
11935
-
11936
- /* Styles applied to the root element if `variant="text"` and `color="primary"`. */
11937
- textPrimary: {
11938
- color: theme.palette.primary.main,
11939
- '&:hover': {
11940
- backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__[/* fade */ "c"])(theme.palette.primary.main, theme.palette.action.hoverOpacity),
11941
- // Reset on touch devices, it doesn't add specificity
11942
- '@media (hover: none)': {
11943
- backgroundColor: 'transparent'
11944
- }
11945
- }
11946
- },
11947
-
11948
- /* Styles applied to the root element if `variant="text"` and `color="secondary"`. */
11949
- textSecondary: {
11950
- color: theme.palette.secondary.main,
11951
- '&:hover': {
11952
- backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__[/* fade */ "c"])(theme.palette.secondary.main, theme.palette.action.hoverOpacity),
11953
- // Reset on touch devices, it doesn't add specificity
11954
- '@media (hover: none)': {
11955
- backgroundColor: 'transparent'
11956
- }
11957
- }
11958
- },
11959
-
11960
- /* Styles applied to the root element if `variant="outlined"`. */
11961
- outlined: {
11962
- padding: '5px 15px',
11963
- border: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'),
11964
- '&$disabled': {
11965
- border: "1px solid ".concat(theme.palette.action.disabledBackground)
11966
- }
11967
- },
11968
-
11969
- /* Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
11970
- outlinedPrimary: {
11971
- color: theme.palette.primary.main,
11972
- border: "1px solid ".concat(Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__[/* fade */ "c"])(theme.palette.primary.main, 0.5)),
11973
- '&:hover': {
11974
- border: "1px solid ".concat(theme.palette.primary.main),
11975
- backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__[/* fade */ "c"])(theme.palette.primary.main, theme.palette.action.hoverOpacity),
11976
- // Reset on touch devices, it doesn't add specificity
11977
- '@media (hover: none)': {
11978
- backgroundColor: 'transparent'
11979
- }
11980
- }
11981
- },
11982
-
11983
- /* Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
11984
- outlinedSecondary: {
11985
- color: theme.palette.secondary.main,
11986
- border: "1px solid ".concat(Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__[/* fade */ "c"])(theme.palette.secondary.main, 0.5)),
11987
- '&:hover': {
11988
- border: "1px solid ".concat(theme.palette.secondary.main),
11989
- backgroundColor: Object(_styles_colorManipulator__WEBPACK_IMPORTED_MODULE_6__[/* fade */ "c"])(theme.palette.secondary.main, theme.palette.action.hoverOpacity),
11990
- // Reset on touch devices, it doesn't add specificity
11991
- '@media (hover: none)': {
11992
- backgroundColor: 'transparent'
11993
- }
11994
- },
11995
- '&$disabled': {
11996
- border: "1px solid ".concat(theme.palette.action.disabled)
11997
- }
11998
- },
11999
-
12000
- /* Styles applied to the root element if `variant="contained"`. */
12001
- contained: {
12002
- color: theme.palette.getContrastText(theme.palette.grey[300]),
12003
- backgroundColor: theme.palette.grey[300],
12004
- boxShadow: theme.shadows[2],
12005
- '&:hover': {
12006
- backgroundColor: theme.palette.grey.A100,
12007
- boxShadow: theme.shadows[4],
12008
- // Reset on touch devices, it doesn't add specificity
12009
- '@media (hover: none)': {
12010
- boxShadow: theme.shadows[2],
12011
- backgroundColor: theme.palette.grey[300]
12012
- },
12013
- '&$disabled': {
12014
- backgroundColor: theme.palette.action.disabledBackground
12015
- }
12016
- },
12017
- '&$focusVisible': {
12018
- boxShadow: theme.shadows[6]
12019
- },
12020
- '&:active': {
12021
- boxShadow: theme.shadows[8]
12022
- },
12023
- '&$disabled': {
12024
- color: theme.palette.action.disabled,
12025
- boxShadow: theme.shadows[0],
12026
- backgroundColor: theme.palette.action.disabledBackground
12027
- }
12028
- },
12029
-
12030
- /* Styles applied to the root element if `variant="contained"` and `color="primary"`. */
12031
- containedPrimary: {
12032
- color: theme.palette.primary.contrastText,
12033
- backgroundColor: theme.palette.primary.main,
12034
- '&:hover': {
12035
- backgroundColor: theme.palette.primary.dark,
12036
- // Reset on touch devices, it doesn't add specificity
12037
- '@media (hover: none)': {
12038
- backgroundColor: theme.palette.primary.main
12039
- }
12040
- }
12041
- },
12042
-
12043
- /* Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
12044
- containedSecondary: {
12045
- color: theme.palette.secondary.contrastText,
12046
- backgroundColor: theme.palette.secondary.main,
12047
- '&:hover': {
12048
- backgroundColor: theme.palette.secondary.dark,
12049
- // Reset on touch devices, it doesn't add specificity
12050
- '@media (hover: none)': {
12051
- backgroundColor: theme.palette.secondary.main
12052
- }
12053
- }
12054
- },
12055
-
12056
- /* Styles applied to the root element if `disableElevation={true}`. */
12057
- disableElevation: {
12058
- boxShadow: 'none',
12059
- '&:hover': {
12060
- boxShadow: 'none'
12061
- },
12062
- '&$focusVisible': {
12063
- boxShadow: 'none'
12064
- },
12065
- '&:active': {
12066
- boxShadow: 'none'
12067
- },
12068
- '&$disabled': {
12069
- boxShadow: 'none'
12070
- }
12071
- },
12072
-
12073
- /* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */
12074
- focusVisible: {},
12075
-
12076
- /* Pseudo-class applied to the root element if `disabled={true}`. */
12077
- disabled: {},
12078
-
12079
- /* Styles applied to the root element if `color="inherit"`. */
12080
- colorInherit: {
12081
- color: 'inherit',
12082
- borderColor: 'currentColor'
12083
- },
12084
-
12085
- /* Styles applied to the root element if `size="small"` and `variant="text"`. */
12086
- textSizeSmall: {
12087
- padding: '4px 5px',
12088
- fontSize: theme.typography.pxToRem(13)
12089
- },
12090
-
12091
- /* Styles applied to the root element if `size="large"` and `variant="text"`. */
12092
- textSizeLarge: {
12093
- padding: '8px 11px',
12094
- fontSize: theme.typography.pxToRem(15)
12095
- },
12096
-
12097
- /* Styles applied to the root element if `size="small"` and `variant="outlined"`. */
12098
- outlinedSizeSmall: {
12099
- padding: '3px 9px',
12100
- fontSize: theme.typography.pxToRem(13)
12101
- },
12102
-
12103
- /* Styles applied to the root element if `size="large"` and `variant="outlined"`. */
12104
- outlinedSizeLarge: {
12105
- padding: '7px 21px',
12106
- fontSize: theme.typography.pxToRem(15)
12107
- },
12108
-
12109
- /* Styles applied to the root element if `size="small"` and `variant="contained"`. */
12110
- containedSizeSmall: {
12111
- padding: '4px 10px',
12112
- fontSize: theme.typography.pxToRem(13)
12113
- },
12114
-
12115
- /* Styles applied to the root element if `size="large"` and `variant="contained"`. */
12116
- containedSizeLarge: {
12117
- padding: '8px 22px',
12118
- fontSize: theme.typography.pxToRem(15)
12119
- },
12120
-
12121
- /* Styles applied to the root element if `size="small"`. */
12122
- sizeSmall: {},
12123
-
12124
- /* Styles applied to the root element if `size="large"`. */
12125
- sizeLarge: {},
12126
-
12127
- /* Styles applied to the root element if `fullWidth={true}`. */
12128
- fullWidth: {
12129
- width: '100%'
12130
- },
12131
-
12132
- /* Styles applied to the startIcon element if supplied. */
12133
- startIcon: {
12134
- display: 'inherit',
12135
- marginRight: 8,
12136
- marginLeft: -4,
12137
- '&$iconSizeSmall': {
12138
- marginLeft: -2
12139
- }
12140
- },
12141
-
12142
- /* Styles applied to the endIcon element if supplied. */
12143
- endIcon: {
12144
- display: 'inherit',
12145
- marginRight: -4,
12146
- marginLeft: 8,
12147
- '&$iconSizeSmall': {
12148
- marginRight: -2
12149
- }
12150
- },
12151
-
12152
- /* Styles applied to the icon element if supplied and `size="small"`. */
12153
- iconSizeSmall: {
12154
- '& > *:first-child': {
12155
- fontSize: 18
12156
- }
12157
- },
12158
-
12159
- /* Styles applied to the icon element if supplied and `size="medium"`. */
12160
- iconSizeMedium: {
12161
- '& > *:first-child': {
12162
- fontSize: 20
12163
- }
12164
- },
12165
-
12166
- /* Styles applied to the icon element if supplied and `size="large"`. */
12167
- iconSizeLarge: {
12168
- '& > *:first-child': {
12169
- fontSize: 22
12170
- }
12171
- }
12172
- };
12173
- };
12174
- var Button = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](function Button(props, ref) {
12175
- var children = props.children,
12176
- classes = props.classes,
12177
- className = props.className,
12178
- _props$color = props.color,
12179
- color = _props$color === void 0 ? 'default' : _props$color,
12180
- _props$component = props.component,
12181
- component = _props$component === void 0 ? 'button' : _props$component,
12182
- _props$disabled = props.disabled,
12183
- disabled = _props$disabled === void 0 ? false : _props$disabled,
12184
- _props$disableElevati = props.disableElevation,
12185
- disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati,
12186
- _props$disableFocusRi = props.disableFocusRipple,
12187
- disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,
12188
- endIconProp = props.endIcon,
12189
- focusVisibleClassName = props.focusVisibleClassName,
12190
- _props$fullWidth = props.fullWidth,
12191
- fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,
12192
- _props$size = props.size,
12193
- size = _props$size === void 0 ? 'medium' : _props$size,
12194
- startIconProp = props.startIcon,
12195
- _props$type = props.type,
12196
- type = _props$type === void 0 ? 'button' : _props$type,
12197
- _props$variant = props.variant,
12198
- variant = _props$variant === void 0 ? 'text' : _props$variant,
12199
- other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(props, ["children", "classes", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"]);
12200
-
12201
- var startIcon = startIconProp && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", {
12202
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(classes.startIcon, classes["iconSize".concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(size))])
12203
- }, startIconProp);
12204
- var endIcon = endIconProp && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", {
12205
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(classes.endIcon, classes["iconSize".concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(size))])
12206
- }, endIconProp);
12207
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_ButtonBase__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({
12208
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(classes.root, classes[variant], className, color === 'inherit' ? classes.colorInherit : color !== 'default' && classes["".concat(variant).concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(color))], size !== 'medium' && [classes["".concat(variant, "Size").concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(size))], classes["size".concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(size))]], disableElevation && classes.disableElevation, disabled && classes.disabled, fullWidth && classes.fullWidth),
12209
- component: component,
12210
- disabled: disabled,
12211
- focusRipple: !disableFocusRipple,
12212
- focusVisibleClassName: Object(clsx__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(classes.focusVisible, focusVisibleClassName),
12213
- ref: ref,
12214
- type: type
12215
- }, other), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("span", {
12216
- className: classes.label
12217
- }, startIcon, children, endIcon));
12218
- });
12219
- false ? undefined : void 0;
12220
- /* harmony default export */ __webpack_exports__["a"] = (Object(_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(styles, {
12221
- name: 'MuiButton'
12222
- })(Button));
12223
-
12224
- /***/ }),
12225
- /* 112 */
12226
- /***/ (function(module, exports, __webpack_require__) {
12227
-
12228
- var listCacheClear = __webpack_require__(307),
12229
- listCacheDelete = __webpack_require__(308),
12230
- listCacheGet = __webpack_require__(309),
12231
- listCacheHas = __webpack_require__(310),
12232
- listCacheSet = __webpack_require__(311);
12233
-
12234
- /**
12235
- * Creates an list cache object.
12236
- *
12237
- * @private
12238
- * @constructor
12239
- * @param {Array} [entries] The key-value pairs to cache.
12240
- */
12241
- function ListCache(entries) {
12242
- var index = -1,
12243
- length = entries == null ? 0 : entries.length;
12244
-
12245
- this.clear();
12246
- while (++index < length) {
12247
- var entry = entries[index];
12248
- this.set(entry[0], entry[1]);
12249
- }
12250
- }
12251
-
12252
- // Add methods to `ListCache`.
12253
- ListCache.prototype.clear = listCacheClear;
12254
- ListCache.prototype['delete'] = listCacheDelete;
12255
- ListCache.prototype.get = listCacheGet;
12256
- ListCache.prototype.has = listCacheHas;
12257
- ListCache.prototype.set = listCacheSet;
12258
-
12259
- module.exports = ListCache;
12260
-
12261
-
12262
- /***/ }),
12263
- /* 113 */
12264
- /***/ (function(module, exports, __webpack_require__) {
12265
-
12266
- var eq = __webpack_require__(90);
12267
-
12268
- /**
12269
- * Gets the index at which the `key` is found in `array` of key-value pairs.
12270
- *
12271
- * @private
12272
- * @param {Array} array The array to inspect.
12273
- * @param {*} key The key to search for.
12274
- * @returns {number} Returns the index of the matched value, else `-1`.
12275
- */
12276
- function assocIndexOf(array, key) {
12277
- var length = array.length;
12278
- while (length--) {
12279
- if (eq(array[length][0], key)) {
12280
- return length;
12281
- }
12282
- }
12283
- return -1;
12284
- }
12285
-
12286
- module.exports = assocIndexOf;
12287
-
12288
-
12289
- /***/ }),
12290
- /* 114 */
12291
- /***/ (function(module, exports, __webpack_require__) {
12292
-
12293
- var getNative = __webpack_require__(91);
12294
-
12295
- /* Built-in method references that are verified to be native. */
12296
- var nativeCreate = getNative(Object, 'create');
12297
-
12298
- module.exports = nativeCreate;
12299
-
12300
-
12301
- /***/ }),
12302
- /* 115 */
12303
- /***/ (function(module, exports, __webpack_require__) {
12304
-
12305
- var isKeyable = __webpack_require__(331);
12306
-
12307
- /**
12308
- * Gets the data for `map`.
12309
- *
12310
- * @private
12311
- * @param {Object} map The map to query.
12312
- * @param {string} key The reference key.
12313
- * @returns {*} Returns the map data.
12314
- */
12315
- function getMapData(map, key) {
12316
- var data = map.__data__;
12317
- return isKeyable(key)
12318
- ? data[typeof key == 'string' ? 'string' : 'hash']
12319
- : data.map;
12320
- }
12321
-
12322
- module.exports = getMapData;
12323
-
12324
-
12325
- /***/ }),
12326
- /* 116 */
12327
- /***/ (function(module, exports, __webpack_require__) {
12328
-
12329
- var arrayLikeKeys = __webpack_require__(245),
12330
- baseKeysIn = __webpack_require__(344),
12331
- isArrayLike = __webpack_require__(103);
12332
-
12333
- /**
12334
- * Creates an array of the own and inherited enumerable property names of `object`.
12335
- *
12336
- * **Note:** Non-object values are coerced to objects.
12337
- *
12338
- * @static
12339
- * @memberOf _
12340
- * @since 3.0.0
12341
- * @category Object
12342
- * @param {Object} object The object to query.
12343
- * @returns {Array} Returns the array of property names.
12344
- * @example
12345
- *
12346
- * function Foo() {
12347
- * this.a = 1;
12348
- * this.b = 2;
12349
- * }
12350
- *
12351
- * Foo.prototype.c = 3;
12352
- *
12353
- * _.keysIn(new Foo);
12354
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
12355
- */
12356
- function keysIn(object) {
12357
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
12358
- }
12359
-
12360
- module.exports = keysIn;
12361
-
12362
-
12363
- /***/ }),
12364
- /* 117 */
12365
- /***/ (function(module, exports, __webpack_require__) {
12366
-
12367
- "use strict";
12368
-
12369
- if (__webpack_require__(43)) {
12370
- var LIBRARY = __webpack_require__(130);
12371
- var global = __webpack_require__(24);
12372
- var fails = __webpack_require__(27);
12373
- var $export = __webpack_require__(8);
12374
- var $typed = __webpack_require__(267);
12375
- var $buffer = __webpack_require__(399);
12376
- var ctx = __webpack_require__(95);
12377
- var anInstance = __webpack_require__(153);
12378
- var propertyDesc = __webpack_require__(146);
12379
- var hide = __webpack_require__(72);
12380
- var redefineAll = __webpack_require__(155);
12381
- var toInteger = __webpack_require__(106);
12382
- var toLength = __webpack_require__(45);
12383
- var toIndex = __webpack_require__(496);
12384
- var toAbsoluteIndex = __webpack_require__(149);
12385
- var toPrimitive = __webpack_require__(104);
12386
- var has = __webpack_require__(81);
12387
- var classof = __webpack_require__(214);
12388
- var isObject = __webpack_require__(30);
12389
- var toObject = __webpack_require__(51);
12390
- var isArrayIter = __webpack_require__(390);
12391
- var create = __webpack_require__(150);
12392
- var getPrototypeOf = __webpack_require__(84);
12393
- var gOPN = __webpack_require__(151).f;
12394
- var getIterFn = __webpack_require__(392);
12395
- var uid = __webpack_require__(147);
12396
- var wks = __webpack_require__(35);
12397
- var createArrayMethod = __webpack_require__(108);
12398
- var createArrayIncludes = __webpack_require__(257);
12399
- var speciesConstructor = __webpack_require__(264);
12400
- var ArrayIterators = __webpack_require__(395);
12401
- var Iterators = __webpack_require__(180);
12402
- var $iterDetect = __webpack_require__(261);
12403
- var setSpecies = __webpack_require__(152);
12404
- var arrayFill = __webpack_require__(394);
12405
- var arrayCopyWithin = __webpack_require__(486);
12406
- var $DP = __webpack_require__(44);
12407
- var $GOPD = __webpack_require__(83);
12408
- var dP = $DP.f;
12409
- var gOPD = $GOPD.f;
12410
- var RangeError = global.RangeError;
12411
- var TypeError = global.TypeError;
12412
- var Uint8Array = global.Uint8Array;
12413
- var ARRAY_BUFFER = 'ArrayBuffer';
12414
- var SHARED_BUFFER = 'Shared' + ARRAY_BUFFER;
12415
- var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
12416
- var PROTOTYPE = 'prototype';
12417
- var ArrayProto = Array[PROTOTYPE];
12418
- var $ArrayBuffer = $buffer.ArrayBuffer;
12419
- var $DataView = $buffer.DataView;
12420
- var arrayForEach = createArrayMethod(0);
12421
- var arrayFilter = createArrayMethod(2);
12422
- var arraySome = createArrayMethod(3);
12423
- var arrayEvery = createArrayMethod(4);
12424
- var arrayFind = createArrayMethod(5);
12425
- var arrayFindIndex = createArrayMethod(6);
12426
- var arrayIncludes = createArrayIncludes(true);
12427
- var arrayIndexOf = createArrayIncludes(false);
12428
- var arrayValues = ArrayIterators.values;
12429
- var arrayKeys = ArrayIterators.keys;
12430
- var arrayEntries = ArrayIterators.entries;
12431
- var arrayLastIndexOf = ArrayProto.lastIndexOf;
12432
- var arrayReduce = ArrayProto.reduce;
12433
- var arrayReduceRight = ArrayProto.reduceRight;
12434
- var arrayJoin = ArrayProto.join;
12435
- var arraySort = ArrayProto.sort;
12436
- var arraySlice = ArrayProto.slice;
12437
- var arrayToString = ArrayProto.toString;
12438
- var arrayToLocaleString = ArrayProto.toLocaleString;
12439
- var ITERATOR = wks('iterator');
12440
- var TAG = wks('toStringTag');
12441
- var TYPED_CONSTRUCTOR = uid('typed_constructor');
12442
- var DEF_CONSTRUCTOR = uid('def_constructor');
12443
- var ALL_CONSTRUCTORS = $typed.CONSTR;
12444
- var TYPED_ARRAY = $typed.TYPED;
12445
- var VIEW = $typed.VIEW;
12446
- var WRONG_LENGTH = 'Wrong length!';
12447
-
12448
- var $map = createArrayMethod(1, function (O, length) {
12449
- return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length);
12450
- });
12451
-
12452
- var LITTLE_ENDIAN = fails(function () {
12453
- // eslint-disable-next-line no-undef
12454
- return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;
12455
- });
12456
-
12457
- var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function () {
12458
- new Uint8Array(1).set({});
12459
- });
12460
-
12461
- var toOffset = function (it, BYTES) {
12462
- var offset = toInteger(it);
12463
- if (offset < 0 || offset % BYTES) throw RangeError('Wrong offset!');
12464
- return offset;
12465
- };
12466
-
12467
- var validate = function (it) {
12468
- if (isObject(it) && TYPED_ARRAY in it) return it;
12469
- throw TypeError(it + ' is not a typed array!');
12470
- };
12471
-
12472
- var allocate = function (C, length) {
12473
- if (!(isObject(C) && TYPED_CONSTRUCTOR in C)) {
12474
- throw TypeError('It is not a typed array constructor!');
12475
- } return new C(length);
12476
- };
12477
-
12478
- var speciesFromList = function (O, list) {
12479
- return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list);
12480
- };
12481
-
12482
- var fromList = function (C, list) {
12483
- var index = 0;
12484
- var length = list.length;
12485
- var result = allocate(C, length);
12486
- while (length > index) result[index] = list[index++];
12487
- return result;
12488
- };
12489
-
12490
- var addGetter = function (it, key, internal) {
12491
- dP(it, key, { get: function () { return this._d[internal]; } });
12492
- };
12493
-
12494
- var $from = function from(source /* , mapfn, thisArg */) {
12495
- var O = toObject(source);
12496
- var aLen = arguments.length;
12497
- var mapfn = aLen > 1 ? arguments[1] : undefined;
12498
- var mapping = mapfn !== undefined;
12499
- var iterFn = getIterFn(O);
12500
- var i, length, values, result, step, iterator;
12501
- if (iterFn != undefined && !isArrayIter(iterFn)) {
12502
- for (iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++) {
12503
- values.push(step.value);
12504
- } O = values;
12505
- }
12506
- if (mapping && aLen > 2) mapfn = ctx(mapfn, arguments[2], 2);
12507
- for (i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++) {
12508
- result[i] = mapping ? mapfn(O[i], i) : O[i];
12509
- }
12510
- return result;
12511
- };
12512
-
12513
- var $of = function of(/* ...items */) {
12514
- var index = 0;
12515
- var length = arguments.length;
12516
- var result = allocate(this, length);
12517
- while (length > index) result[index] = arguments[index++];
12518
- return result;
12519
- };
12520
-
12521
- // iOS Safari 6.x fails here
12522
- var TO_LOCALE_BUG = !!Uint8Array && fails(function () { arrayToLocaleString.call(new Uint8Array(1)); });
12523
-
12524
- var $toLocaleString = function toLocaleString() {
12525
- return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments);
12526
- };
12527
-
12528
- var proto = {
12529
- copyWithin: function copyWithin(target, start /* , end */) {
12530
- return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
12531
- },
12532
- every: function every(callbackfn /* , thisArg */) {
12533
- return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
12534
- },
12535
- fill: function fill(value /* , start, end */) { // eslint-disable-line no-unused-vars
12536
- return arrayFill.apply(validate(this), arguments);
12537
- },
12538
- filter: function filter(callbackfn /* , thisArg */) {
12539
- return speciesFromList(this, arrayFilter(validate(this), callbackfn,
12540
- arguments.length > 1 ? arguments[1] : undefined));
12541
- },
12542
- find: function find(predicate /* , thisArg */) {
12543
- return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
12544
- },
12545
- findIndex: function findIndex(predicate /* , thisArg */) {
12546
- return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
12547
- },
12548
- forEach: function forEach(callbackfn /* , thisArg */) {
12549
- arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
12550
- },
12551
- indexOf: function indexOf(searchElement /* , fromIndex */) {
12552
- return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
12553
- },
12554
- includes: function includes(searchElement /* , fromIndex */) {
12555
- return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
12556
- },
12557
- join: function join(separator) { // eslint-disable-line no-unused-vars
12558
- return arrayJoin.apply(validate(this), arguments);
12559
- },
12560
- lastIndexOf: function lastIndexOf(searchElement /* , fromIndex */) { // eslint-disable-line no-unused-vars
12561
- return arrayLastIndexOf.apply(validate(this), arguments);
12562
- },
12563
- map: function map(mapfn /* , thisArg */) {
12564
- return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined);
12565
- },
12566
- reduce: function reduce(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
12567
- return arrayReduce.apply(validate(this), arguments);
12568
- },
12569
- reduceRight: function reduceRight(callbackfn /* , initialValue */) { // eslint-disable-line no-unused-vars
12570
- return arrayReduceRight.apply(validate(this), arguments);
12571
- },
12572
- reverse: function reverse() {
12573
- var that = this;
12574
- var length = validate(that).length;
12575
- var middle = Math.floor(length / 2);
12576
- var index = 0;
12577
- var value;
12578
- while (index < middle) {
12579
- value = that[index];
12580
- that[index++] = that[--length];
12581
- that[length] = value;
12582
- } return that;
12583
- },
12584
- some: function some(callbackfn /* , thisArg */) {
12585
- return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
12586
- },
12587
- sort: function sort(comparefn) {
12588
- return arraySort.call(validate(this), comparefn);
12589
- },
12590
- subarray: function subarray(begin, end) {
12591
- var O = validate(this);
12592
- var length = O.length;
12593
- var $begin = toAbsoluteIndex(begin, length);
12594
- return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(
12595
- O.buffer,
12596
- O.byteOffset + $begin * O.BYTES_PER_ELEMENT,
12597
- toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - $begin)
12598
- );
12599
- }
12600
- };
12601
-
12602
- var $slice = function slice(start, end) {
12603
- return speciesFromList(this, arraySlice.call(validate(this), start, end));
12604
- };
12605
-
12606
- var $set = function set(arrayLike /* , offset */) {
12607
- validate(this);
12608
- var offset = toOffset(arguments[1], 1);
12609
- var length = this.length;
12610
- var src = toObject(arrayLike);
12611
- var len = toLength(src.length);
12612
- var index = 0;
12613
- if (len + offset > length) throw RangeError(WRONG_LENGTH);
12614
- while (index < len) this[offset + index] = src[index++];
12615
- };
12616
-
12617
- var $iterators = {
12618
- entries: function entries() {
12619
- return arrayEntries.call(validate(this));
12620
- },
12621
- keys: function keys() {
12622
- return arrayKeys.call(validate(this));
12623
- },
12624
- values: function values() {
12625
- return arrayValues.call(validate(this));
12626
  }
12627
- };
12628
-
12629
- var isTAIndex = function (target, key) {
12630
- return isObject(target)
12631
- && target[TYPED_ARRAY]
12632
- && typeof key != 'symbol'
12633
- && key in target
12634
- && String(+key) == String(key);
12635
- };
12636
- var $getDesc = function getOwnPropertyDescriptor(target, key) {
12637
- return isTAIndex(target, key = toPrimitive(key, true))
12638
- ? propertyDesc(2, target[key])
12639
- : gOPD(target, key);
12640
- };
12641
- var $setDesc = function defineProperty(target, key, desc) {
12642
- if (isTAIndex(target, key = toPrimitive(key, true))
12643
- && isObject(desc)
12644
- && has(desc, 'value')
12645
- && !has(desc, 'get')
12646
- && !has(desc, 'set')
12647
- // TODO: add validation descriptor w/o calling accessors
12648
- && !desc.configurable
12649
- && (!has(desc, 'writable') || desc.writable)
12650
- && (!has(desc, 'enumerable') || desc.enumerable)
12651
- ) {
12652
- target[key] = desc.value;
12653
- return target;
12654
- } return dP(target, key, desc);
12655
- };
12656
-
12657
- if (!ALL_CONSTRUCTORS) {
12658
- $GOPD.f = $getDesc;
12659
- $DP.f = $setDesc;
12660
- }
12661
-
12662
- $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', {
12663
- getOwnPropertyDescriptor: $getDesc,
12664
- defineProperty: $setDesc
12665
- });
12666
-
12667
- if (fails(function () { arrayToString.call({}); })) {
12668
- arrayToString = arrayToLocaleString = function toString() {
12669
- return arrayJoin.call(this);
12670
  };
12671
- }
12672
-
12673
- var $TypedArrayPrototype$ = redefineAll({}, proto);
12674
- redefineAll($TypedArrayPrototype$, $iterators);
12675
- hide($TypedArrayPrototype$, ITERATOR, $iterators.values);
12676
- redefineAll($TypedArrayPrototype$, {
12677
- slice: $slice,
12678
- set: $set,
12679
- constructor: function () { /* noop */ },
12680
- toString: arrayToString,
12681
- toLocaleString: $toLocaleString
12682
- });
12683
- addGetter($TypedArrayPrototype$, 'buffer', 'b');
12684
- addGetter($TypedArrayPrototype$, 'byteOffset', 'o');
12685
- addGetter($TypedArrayPrototype$, 'byteLength', 'l');
12686
- addGetter($TypedArrayPrototype$, 'length', 'e');
12687
- dP($TypedArrayPrototype$, TAG, {
12688
- get: function () { return this[TYPED_ARRAY]; }
12689
- });
12690
-
12691
- // eslint-disable-next-line max-statements
12692
- module.exports = function (KEY, BYTES, wrapper, CLAMPED) {
12693
- CLAMPED = !!CLAMPED;
12694
- var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array';
12695
- var GETTER = 'get' + KEY;
12696
- var SETTER = 'set' + KEY;
12697
- var TypedArray = global[NAME];
12698
- var Base = TypedArray || {};
12699
- var TAC = TypedArray && getPrototypeOf(TypedArray);
12700
- var FORCED = !TypedArray || !$typed.ABV;
12701
- var O = {};
12702
- var TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE];
12703
- var getter = function (that, index) {
12704
- var data = that._d;
12705
- return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN);
12706
  };
12707
- var setter = function (that, index, value) {
12708
- var data = that._d;
12709
- if (CLAMPED) value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff;
12710
- data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN);
 
 
12711
  };
12712
- var addElement = function (that, index) {
12713
- dP(that, index, {
12714
- get: function () {
12715
- return getter(this, index);
12716
- },
12717
- set: function (value) {
12718
- return setter(this, index, value);
12719
- },
12720
- enumerable: true
12721
- });
12722
  };
12723
- if (FORCED) {
12724
- TypedArray = wrapper(function (that, data, $offset, $length) {
12725
- anInstance(that, TypedArray, NAME, '_d');
12726
- var index = 0;
12727
- var offset = 0;
12728
- var buffer, byteLength, length, klass;
12729
- if (!isObject(data)) {
12730
- length = toIndex(data);
12731
- byteLength = length * BYTES;
12732
- buffer = new $ArrayBuffer(byteLength);
12733
- } else if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
12734
- buffer = data;
12735
- offset = toOffset($offset, BYTES);
12736
- var $len = data.byteLength;
12737
- if ($length === undefined) {
12738
- if ($len % BYTES) throw RangeError(WRONG_LENGTH);
12739
- byteLength = $len - offset;
12740
- if (byteLength < 0) throw RangeError(WRONG_LENGTH);
12741
- } else {
12742
- byteLength = toLength($length) * BYTES;
12743
- if (byteLength + offset > $len) throw RangeError(WRONG_LENGTH);
12744
- }
12745
- length = byteLength / BYTES;
12746
- } else if (TYPED_ARRAY in data) {
12747
- return fromList(TypedArray, data);
12748
- } else {
12749
- return $from.call(TypedArray, data);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12750
  }
12751
- hide(that, '_d', {
12752
- b: buffer,
12753
- o: offset,
12754
- l: byteLength,
12755
- e: length,
12756
- v: new $DataView(buffer)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12757
  });
12758
- while (index < length) addElement(that, index++);
12759
- });
12760
- TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$);
12761
- hide(TypedArrayPrototype, 'constructor', TypedArray);
12762
- } else if (!fails(function () {
12763
- TypedArray(1);
12764
- }) || !fails(function () {
12765
- new TypedArray(-1); // eslint-disable-line no-new
12766
- }) || !$iterDetect(function (iter) {
12767
- new TypedArray(); // eslint-disable-line no-new
12768
- new TypedArray(null); // eslint-disable-line no-new
12769
- new TypedArray(1.5); // eslint-disable-line no-new
12770
- new TypedArray(iter); // eslint-disable-line no-new
12771
- }, true)) {
12772
- TypedArray = wrapper(function (that, data, $offset, $length) {
12773
- anInstance(that, TypedArray, NAME);
12774
- var klass;
12775
- // `ws` module bug, temporarily remove validation length for Uint8Array
12776
- // https://github.com/websockets/ws/pull/645
12777
- if (!isObject(data)) return new Base(toIndex(data));
12778
- if (data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER) {
12779
- return $length !== undefined
12780
- ? new Base(data, toOffset($offset, BYTES), $length)
12781
- : $offset !== undefined
12782
- ? new Base(data, toOffset($offset, BYTES))
12783
- : new Base(data);
 
 
 
 
 
12784
  }
12785
- if (TYPED_ARRAY in data) return fromList(TypedArray, data);
12786
- return $from.call(TypedArray, data);
12787
- });
12788
- arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function (key) {
12789
- if (!(key in TypedArray)) hide(TypedArray, key, Base[key]);
12790
- });
12791
- TypedArray[PROTOTYPE] = TypedArrayPrototype;
12792
- if (!LIBRARY) TypedArrayPrototype.constructor = TypedArray;
12793
- }
12794
- var $nativeIterator = TypedArrayPrototype[ITERATOR];
12795
- var CORRECT_ITER_NAME = !!$nativeIterator
12796
- && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined);
12797
- var $iterator = $iterators.values;
12798
- hide(TypedArray, TYPED_CONSTRUCTOR, true);
12799
- hide(TypedArrayPrototype, TYPED_ARRAY, NAME);
12800
- hide(TypedArrayPrototype, VIEW, true);
12801
- hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray);
12802
-
12803
- if (CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)) {
12804
- dP(TypedArrayPrototype, TAG, {
12805
- get: function () { return NAME; }
12806
- });
12807
- }
12808
-
12809
- O[NAME] = TypedArray;
12810
-
12811
- $export($export.G + $export.W + $export.F * (TypedArray != Base), O);
12812
-
12813
- $export($export.S, NAME, {
12814
- BYTES_PER_ELEMENT: BYTES
12815
- });
12816
-
12817
- $export($export.S + $export.F * fails(function () { Base.of.call(TypedArray, 1); }), NAME, {
12818
- from: $from,
12819
- of: $of
12820
- });
12821
-
12822
- if (!(BYTES_PER_ELEMENT in TypedArrayPrototype)) hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);
12823
-
12824
- $export($export.P, NAME, proto);
12825
-
12826
- setSpecies(NAME);
12827
-
12828
- $export($export.P + $export.F * FORCED_SET, NAME, { set: $set });
12829
-
12830
- $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators);
12831
-
12832
- if (!LIBRARY && TypedArrayPrototype.toString != arrayToString) TypedArrayPrototype.toString = arrayToString;
12833
-
12834
- $export($export.P + $export.F * fails(function () {
12835
- new TypedArray(1).slice();
12836
- }), NAME, { slice: $slice });
12837
-
12838
- $export($export.P + $export.F * (fails(function () {
12839
- return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString();
12840
- }) || !fails(function () {
12841
- TypedArrayPrototype.toLocaleString.call([1, 2]);
12842
- })), NAME, { toLocaleString: $toLocaleString });
12843
-
12844
- Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator;
12845
- if (!LIBRARY && !CORRECT_ITER_NAME) hide(TypedArrayPrototype, ITERATOR, $iterator);
12846
- };
12847
- } else module.exports = function () { /* empty */ };
12848
-
12849
-
12850
- /***/ }),
12851
- /* 118 */
12852
- /***/ (function(module, exports, __webpack_require__) {
12853
-
12854
- var Map = __webpack_require__(491);
12855
- var $export = __webpack_require__(8);
12856
- var shared = __webpack_require__(256)('metadata');
12857
- var store = shared.store || (shared.store = new (__webpack_require__(494))());
12858
-
12859
- var getOrCreateMetadataMap = function (target, targetKey, create) {
12860
- var targetMetadata = store.get(target);
12861
- if (!targetMetadata) {
12862
- if (!create) return undefined;
12863
- store.set(target, targetMetadata = new Map());
12864
- }
12865
- var keyMetadata = targetMetadata.get(targetKey);
12866
- if (!keyMetadata) {
12867
- if (!create) return undefined;
12868
- targetMetadata.set(targetKey, keyMetadata = new Map());
12869
- } return keyMetadata;
12870
- };
12871
- var ordinaryHasOwnMetadata = function (MetadataKey, O, P) {
12872
- var metadataMap = getOrCreateMetadataMap(O, P, false);
12873
- return metadataMap === undefined ? false : metadataMap.has(MetadataKey);
12874
- };
12875
- var ordinaryGetOwnMetadata = function (MetadataKey, O, P) {
12876
- var metadataMap = getOrCreateMetadataMap(O, P, false);
12877
- return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);
12878
- };
12879
- var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {
12880
- getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
12881
- };
12882
- var ordinaryOwnMetadataKeys = function (target, targetKey) {
12883
- var metadataMap = getOrCreateMetadataMap(target, targetKey, false);
12884
- var keys = [];
12885
- if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); });
12886
- return keys;
12887
- };
12888
- var toMetaKey = function (it) {
12889
- return it === undefined || typeof it == 'symbol' ? it : String(it);
12890
- };
12891
- var exp = function (O) {
12892
- $export($export.S, 'Reflect', O);
12893
- };
12894
-
12895
- module.exports = {
12896
- store: store,
12897
- map: getOrCreateMetadataMap,
12898
- has: ordinaryHasOwnMetadata,
12899
- get: ordinaryGetOwnMetadata,
12900
- set: ordinaryDefineOwnMetadata,
12901
- keys: ordinaryOwnMetadataKeys,
12902
- key: toMetaKey,
12903
- exp: exp
12904
- };
12905
-
12906
-
12907
- /***/ }),
12908
- /* 119 */
12909
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
12910
-
12911
- "use strict";
12912
- /* unused harmony export BrowserRouter */
12913
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HashRouter; });
12914
- /* unused harmony export Link */
12915
- /* unused harmony export NavLink */
12916
- /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46);
12917
- /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37);
12918
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
12919
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
12920
- /* harmony import */ var history__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89);
12921
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
12922
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
12923
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2);
12924
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(47);
12925
- /* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(65);
12926
-
12927
-
12928
-
12929
-
12930
-
12931
-
12932
-
12933
-
12934
-
12935
-
12936
-
12937
- /**
12938
- * The public API for a <Router> that uses HTML5 history.
12939
- */
12940
-
12941
- var BrowserRouter =
12942
- /*#__PURE__*/
12943
- function (_React$Component) {
12944
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(BrowserRouter, _React$Component);
12945
-
12946
- function BrowserRouter() {
12947
- var _this;
12948
-
12949
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12950
- args[_key] = arguments[_key];
12951
- }
12952
-
12953
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
12954
- _this.history = Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createBrowserHistory */ "a"])(_this.props);
12955
- return _this;
12956
- }
12957
-
12958
- var _proto = BrowserRouter.prototype;
12959
-
12960
- _proto.render = function render() {
12961
- return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react_router__WEBPACK_IMPORTED_MODULE_0__[/* Router */ "b"], {
12962
- history: this.history,
12963
- children: this.props.children
12964
- });
12965
- };
12966
-
12967
- return BrowserRouter;
12968
- }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);
12969
-
12970
- if (false) {}
12971
-
12972
- /**
12973
- * The public API for a <Router> that uses window.location.hash.
12974
- */
12975
-
12976
- var HashRouter =
12977
- /*#__PURE__*/
12978
- function (_React$Component) {
12979
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(HashRouter, _React$Component);
12980
-
12981
- function HashRouter() {
12982
- var _this;
12983
-
12984
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12985
- args[_key] = arguments[_key];
12986
- }
12987
-
12988
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
12989
- _this.history = Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createHashHistory */ "b"])(_this.props);
12990
- return _this;
12991
- }
12992
-
12993
- var _proto = HashRouter.prototype;
12994
-
12995
- _proto.render = function render() {
12996
- return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react_router__WEBPACK_IMPORTED_MODULE_0__[/* Router */ "b"], {
12997
- history: this.history,
12998
- children: this.props.children
12999
- });
13000
- };
13001
-
13002
- return HashRouter;
13003
- }(react__WEBPACK_IMPORTED_MODULE_2___default.a.Component);
13004
-
13005
- if (false) {}
13006
-
13007
- var resolveToLocation = function resolveToLocation(to, currentLocation) {
13008
- return typeof to === "function" ? to(currentLocation) : to;
13009
- };
13010
- var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
13011
- return typeof to === "string" ? Object(history__WEBPACK_IMPORTED_MODULE_3__[/* createLocation */ "c"])(to, null, null, currentLocation) : to;
13012
- };
13013
-
13014
- var forwardRefShim = function forwardRefShim(C) {
13015
- return C;
13016
- };
13017
-
13018
- var forwardRef = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef;
13019
-
13020
- if (typeof forwardRef === "undefined") {
13021
- forwardRef = forwardRefShim;
13022
- }
13023
-
13024
- function isModifiedEvent(event) {
13025
- return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
13026
- }
13027
-
13028
- var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
13029
- var innerRef = _ref.innerRef,
13030
- navigate = _ref.navigate,
13031
- _onClick = _ref.onClick,
13032
- rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(_ref, ["innerRef", "navigate", "onClick"]);
13033
-
13034
- var target = rest.target;
13035
-
13036
- var props = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])({}, rest, {
13037
- onClick: function onClick(event) {
13038
- try {
13039
- if (_onClick) _onClick(event);
13040
- } catch (ex) {
13041
- event.preventDefault();
13042
- throw ex;
13043
- }
13044
-
13045
- if (!event.defaultPrevented && // onClick prevented default
13046
- event.button === 0 && ( // ignore everything but left clicks
13047
- !target || target === "_self") && // let browser handle "target=_blank" etc.
13048
- !isModifiedEvent(event) // ignore clicks with modifier keys
13049
- ) {
13050
- event.preventDefault();
13051
- navigate();
13052
  }
13053
- }
13054
- }); // React 15 compat
13055
-
13056
-
13057
- if (forwardRefShim !== forwardRef) {
13058
- props.ref = forwardedRef || innerRef;
13059
- } else {
13060
- props.ref = innerRef;
13061
- }
13062
- /* eslint-disable-next-line jsx-a11y/anchor-has-content */
13063
-
13064
-
13065
- return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("a", props);
13066
- });
13067
-
13068
- if (false) {}
13069
- /**
13070
- * The public API for rendering a history-aware <a>.
13071
- */
13072
-
13073
-
13074
- var Link = forwardRef(function (_ref2, forwardedRef) {
13075
- var _ref2$component = _ref2.component,
13076
- component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
13077
- replace = _ref2.replace,
13078
- to = _ref2.to,
13079
- innerRef = _ref2.innerRef,
13080
- rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(_ref2, ["component", "replace", "to", "innerRef"]);
13081
-
13082
- return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react_router__WEBPACK_IMPORTED_MODULE_0__[/* __RouterContext */ "d"].Consumer, null, function (context) {
13083
- !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(false) : void 0;
13084
- var history = context.history;
13085
- var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
13086
- var href = location ? history.createHref(location) : "";
13087
-
13088
- var props = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])({}, rest, {
13089
- href: href,
13090
- navigate: function navigate() {
13091
- var location = resolveToLocation(to, context.location);
13092
- var method = replace ? history.replace : history.push;
13093
- method(location);
13094
- }
13095
- }); // React 15 compat
13096
-
13097
-
13098
- if (forwardRefShim !== forwardRef) {
13099
- props.ref = forwardedRef || innerRef;
13100
- } else {
13101
- props.innerRef = innerRef;
13102
- }
13103
-
13104
- return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(component, props);
13105
- });
13106
- });
13107
-
13108
- if (false) { var refType, toType; }
13109
-
13110
- var forwardRefShim$1 = function forwardRefShim(C) {
13111
- return C;
13112
- };
13113
-
13114
- var forwardRef$1 = react__WEBPACK_IMPORTED_MODULE_2___default.a.forwardRef;
13115
-
13116
- if (typeof forwardRef$1 === "undefined") {
13117
- forwardRef$1 = forwardRefShim$1;
13118
- }
13119
-
13120
- function joinClassnames() {
13121
- for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {
13122
- classnames[_key] = arguments[_key];
13123
- }
13124
 
13125
- return classnames.filter(function (i) {
13126
- return i;
13127
- }).join(" ");
13128
- }
13129
  /**
13130
- * A <Link> wrapper that knows if it's "active" or not.
13131
  */
13132
-
13133
-
13134
- var NavLink = forwardRef$1(function (_ref, forwardedRef) {
13135
- var _ref$ariaCurrent = _ref["aria-current"],
13136
- ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
13137
- _ref$activeClassName = _ref.activeClassName,
13138
- activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
13139
- activeStyle = _ref.activeStyle,
13140
- classNameProp = _ref.className,
13141
- exact = _ref.exact,
13142
- isActiveProp = _ref.isActive,
13143
- locationProp = _ref.location,
13144
- sensitive = _ref.sensitive,
13145
- strict = _ref.strict,
13146
- styleProp = _ref.style,
13147
- to = _ref.to,
13148
- innerRef = _ref.innerRef,
13149
- rest = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
13150
-
13151
- return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react_router__WEBPACK_IMPORTED_MODULE_0__[/* __RouterContext */ "d"].Consumer, null, function (context) {
13152
- !context ? false ? undefined : Object(tiny_invariant__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(false) : void 0;
13153
- var currentLocation = locationProp || context.location;
13154
- var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
13155
- var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
13156
-
13157
- var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
13158
- var match = escapedPath ? Object(react_router__WEBPACK_IMPORTED_MODULE_0__[/* matchPath */ "e"])(currentLocation.pathname, {
13159
- path: escapedPath,
13160
- exact: exact,
13161
- sensitive: sensitive,
13162
- strict: strict
13163
- }) : null;
13164
- var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
13165
- var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
13166
- var style = isActive ? Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])({}, styleProp, {}, activeStyle) : styleProp;
13167
-
13168
- var props = Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])({
13169
- "aria-current": isActive && ariaCurrent || null,
13170
- className: className,
13171
- style: style,
13172
- to: toLocation
13173
- }, rest); // React 15 compat
13174
-
13175
-
13176
- if (forwardRefShim$1 !== forwardRef$1) {
13177
- props.ref = forwardedRef || innerRef;
13178
- } else {
13179
- props.innerRef = innerRef;
13180
- }
13181
-
13182
- return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(Link, props);
13183
- });
13184
- });
13185
-
13186
- if (false) { var ariaCurrentType; }
13187
-
13188
-
13189
- //# sourceMappingURL=react-router-dom.js.map
13190
-
13191
-
13192
- /***/ }),
13193
- /* 120 */
13194
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13195
-
13196
- "use strict";
13197
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FormDialog; });
13198
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
13199
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13200
- /* harmony import */ var _material_ui_core_Button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(111);
13201
- /* harmony import */ var _material_ui_core_TextField__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(906);
13202
- /* harmony import */ var _material_ui_core_Dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(228);
13203
- /* harmony import */ var _material_ui_core_DialogActions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(230);
13204
- /* harmony import */ var _material_ui_core_DialogContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(164);
13205
- /* harmony import */ var _material_ui_core_DialogContentText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(165);
13206
- /* harmony import */ var _material_ui_core_DialogTitle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(229);
13207
- /* harmony import */ var translate__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1);
13208
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13209
-
13210
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13211
-
13212
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13213
-
13214
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13215
-
13216
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13217
-
13218
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
13219
-
13220
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13221
-
13222
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
13223
-
13224
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13225
-
13226
-
13227
-
13228
-
13229
-
13230
-
13231
-
13232
-
13233
-
13234
-
13235
- var defaultButtons = [{
13236
- value: "cancel",
13237
- text: Object(translate__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])("modal.cancel")
13238
- }, {
13239
- value: "confirm",
13240
- text: Object(translate__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])("common.confirm"),
13241
- focus: true
13242
- }];
13243
- function FormDialog(_ref) {
13244
- var open = _ref.open,
13245
- buttons = _ref.buttons,
13246
- onClose = _ref.onClose,
13247
- text = _ref.text,
13248
- title = _ref.title,
13249
- defaultValue = _ref.defaultValue,
13250
- _ref$canBeEmpty = _ref.canBeEmpty,
13251
- canBeEmpty = _ref$canBeEmpty === void 0 ? false : _ref$canBeEmpty,
13252
- _ref$maxWidth = _ref.maxWidth,
13253
- maxWidth = _ref$maxWidth === void 0 ? "xs" : _ref$maxWidth,
13254
- _ref$fullWidth = _ref.fullWidth,
13255
- fullWidth = _ref$fullWidth === void 0 ? true : _ref$fullWidth,
13256
- _ref$cancelIfSameAsFi = _ref.cancelIfSameAsFirstValue,
13257
- cancelIfSameAsFirstValue = _ref$cancelIfSameAsFi === void 0 ? false : _ref$cancelIfSameAsFi,
13258
- _ref$clearOnConfirm = _ref.clearOnConfirm,
13259
- clearOnConfirm = _ref$clearOnConfirm === void 0 ? false : _ref$clearOnConfirm,
13260
- props = _objectWithoutProperties(_ref, ["open", "buttons", "onClose", "text", "title", "defaultValue", "canBeEmpty", "maxWidth", "fullWidth", "cancelIfSameAsFirstValue", "clearOnConfirm"]);
13261
-
13262
- var _React$useState = react__WEBPACK_IMPORTED_MODULE_0___default.a.useState(defaultValue === "" ? "" : defaultValue || " "),
13263
- _React$useState2 = _slicedToArray(_React$useState, 2),
13264
- value = _React$useState2[0],
13265
- setValue = _React$useState2[1];
13266
-
13267
- if (!buttons) buttons = defaultButtons;
13268
-
13269
- var beforeClose = function beforeClose(action) {
13270
- if (action !== "cancel" && !canBeEmpty && value == "") {
13271
- return;
13272
- }
13273
-
13274
- if (clearOnConfirm && action === "confirm") {
13275
- setValue("");
13276
- }
13277
-
13278
- onClose(action, value);
13279
- };
13280
-
13281
- var generateButtons = function generateButtons() {
13282
- return buttons.map(function (button, key) {
13283
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_Button__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
13284
- onClick: function onClick() {
13285
- return beforeClose(button.value, value);
13286
- },
13287
- color: "primary",
13288
- key: key
13289
- }, button.text);
13290
- });
13291
- };
13292
-
13293
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_Dialog__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], _extends({
13294
- open: open,
13295
- maxWidth: maxWidth,
13296
- fullWidth: fullWidth,
13297
- onClose: function onClose() {
13298
- return beforeClose("cancel");
13299
- },
13300
- "aria-labelledby": "form-dialog-title"
13301
- }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_DialogTitle__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], {
13302
- id: "form-dialog-title"
13303
- }, title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_DialogContent__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_DialogContentText__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], null, text), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_TextField__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], {
13304
- autoFocus: true,
13305
- value: value,
13306
- onChange: function onChange(e) {
13307
- return setValue(e.target.value);
13308
- },
13309
- margin: "dense",
13310
- id: "name",
13311
- fullWidth: true,
13312
- helperText: !canBeEmpty && value == "" ? Object(translate__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])("modal.incorrect") : null,
13313
- error: !canBeEmpty && value == "",
13314
- onKeyPress: function onKeyPress(e) {
13315
- if (e.charCode === 13) {
13316
- if (cancelIfSameAsFirstValue && defaultValue === value) {
13317
- beforeClose("cancel");
13318
- } else {
13319
- beforeClose("confirm");
13320
- }
13321
- }
13322
- }
13323
- })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_material_ui_core_DialogActions__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], null, generateButtons()));
13324
  }
13325
-
13326
- /***/ }),
13327
- /* 121 */
13328
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13329
-
13330
- "use strict";
13331
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return apiRequest; });
13332
- /* unused harmony export init */
13333
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertData; });
13334
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createRecord; });
13335
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98);
13336
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);
13337
- /* harmony import */ var buttonizer_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
13338
- /* harmony import */ var utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
13339
- /* harmony import */ var translate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
13340
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
13341
-
13342
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
13343
-
13344
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13345
-
13346
- function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
13347
-
13348
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13349
-
13350
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13351
-
13352
-
13353
-
13354
-
13355
-
13356
-
13357
  /**
13358
- * Create api request
13359
- *maar j
13360
- * @param {*} endpoint
13361
- * @param {*} data
13362
- */
13363
-
13364
- function apiRequest(endpoint, data) {
13365
- data.url = buttonizer_admin.api + endpoint;
13366
- data.headers = {
13367
- "X-WP-Nonce": buttonizer_admin.nonce
13368
- };
13369
- return axios__WEBPACK_IMPORTED_MODULE_0___default()(data);
13370
  }
 
 
13371
  /**
13372
- * init store
13373
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
13374
 
13375
- function init() {
13376
- return {
13377
- type: buttonizer_constants__WEBPACK_IMPORTED_MODULE_1__[/* actionTypes */ "a"].INIT,
13378
- payload: {
13379
- buttons: {},
13380
- groups: {},
13381
- timeSchedules: {},
13382
- pageRules: {},
13383
- settings: {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13384
  }
13385
- };
13386
  }
13387
  /**
13388
- * Convert data to models
13389
- *
13390
- * @param result
13391
- * @return {obj} converted data
13392
  */
13393
-
13394
- function convertData(result) {
13395
- var data = result;
13396
- var buttons = {};
13397
- var groups = {}; // Initializing groups
13398
-
13399
- var _iterator = _createForOfIteratorHelper(data.groups),
13400
- _step;
13401
-
13402
- try {
13403
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
13404
- var group = _step.value;
13405
- var groupObject = createRecord(group.data);
13406
- groupObject.children = []; // Initializing buttons inside the group
13407
-
13408
- var _iterator2 = _createForOfIteratorHelper(group.buttons),
13409
- _step2;
13410
-
13411
- try {
13412
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
13413
- var button = _step2.value;
13414
- var buttonObject = createRecord(button);
13415
- buttonObject.parent = groupObject.id;
13416
- buttons[buttonObject.id] = buttonObject;
13417
- groupObject.children.push(buttonObject.id);
13418
  }
13419
- } catch (err) {
13420
- _iterator2.e(err);
13421
- } finally {
13422
- _iterator2.f();
13423
- }
13424
-
13425
- groups[groupObject.id] = groupObject;
13426
  }
13427
- } catch (err) {
13428
- _iterator.e(err);
13429
- } finally {
13430
- _iterator.f();
13431
- }
13432
-
13433
- var timeSchedules = {};
13434
- var pageRules = {};
13435
-
13436
- if (data.time_schedules) {
13437
- data.time_schedules.map(function (timeSchedule) {
13438
- timeSchedules[timeSchedule.id] = {
13439
- id: timeSchedule.id,
13440
- name: timeSchedule.name || Object(translate__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])("time_schedules.single_name"),
13441
- weekdays: timeSchedule.weekdays || buttonizer_constants__WEBPACK_IMPORTED_MODULE_1__[/* weekdays */ "e"].map(function (weekday) {
13442
- return {
13443
- opened: true,
13444
- open: "8:00",
13445
- close: "17:00",
13446
- weekday: weekday
13447
- };
13448
- }),
13449
- start_date: timeSchedule.start_date || Object(utils__WEBPACK_IMPORTED_MODULE_2__[/* dateToFormat */ "c"])(new Date()),
13450
- end_date: timeSchedule.end_date || null,
13451
- dates: timeSchedule.dates || []
13452
- };
13453
- });
13454
- } // Add page rules data with placeholders
13455
-
13456
-
13457
- if (data.page_rules) {
13458
- data.page_rules.map(function (pageRule) {
13459
- pageRules[pageRule.id] = {
13460
- id: pageRule.id,
13461
- name: pageRule.name || "Unnamed pagerule",
13462
- type: pageRule.type || "and",
13463
- rules: pageRule.rules || [{
13464
- type: "page_title",
13465
- value: ""
13466
- }]
13467
- };
13468
- });
13469
- }
13470
-
13471
- return {
13472
- hasChanges: data.changes,
13473
- buttons: buttons,
13474
- groups: groups,
13475
- timeSchedules: timeSchedules,
13476
- pageRules: pageRules,
13477
- settings: data.settings,
13478
- premium: data.premium,
13479
- premium_code: data.premium_code,
13480
- version: data.version,
13481
- wordpress: data.wordpress,
13482
- is_opt_in: data.is_opt_in,
13483
- additional_permissions: data.additional_permissions
13484
- };
13485
- }
13486
- function createRecord(data) {
13487
- if (data && typeof data.id !== "undefined") return data;
13488
- return _objectSpread(_objectSpread({}, data), {}, {
13489
- id: Object(utils__WEBPACK_IMPORTED_MODULE_2__[/* GenerateUniqueId */ "a"])()
13490
- });
13491
  }
13492
-
13493
- /***/ }),
13494
- /* 122 */
13495
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13496
-
13497
- "use strict";
13498
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return generateJSONObject; });
13499
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return apiRequest; });
13500
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return resetSettings; });
13501
- /* harmony import */ var _selectors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
13502
- /* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41);
13503
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98);
13504
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);
13505
-
13506
-
13507
-
13508
  /**
13509
- * Generate JSON object
13510
- * @returns {Array}
13511
  */
13512
-
13513
- function generateJSONObject(storeDataObject) {
13514
- // Buttons
13515
- var buttonGroups = Object.values(storeDataObject);
13516
- var data = [];
13517
- buttonGroups.forEach(function (groupObject) {
13518
- var outputGroup = Object(immer__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(groupObject, function (draftObject) {
13519
- delete draftObject.children;
13520
- });
13521
- var groupButtons = Object.values(Object(_selectors__WEBPACK_IMPORTED_MODULE_0__[/* getChildrenIndex */ "f"])(groupObject.children));
13522
- var tempButtons = [];
13523
- groupButtons.forEach(function (buttonObject) {
13524
- var outputButton = Object(immer__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(buttonObject, function (draftObject) {
13525
- delete draftObject.parent;
13526
- });
13527
- tempButtons.push(outputButton);
13528
- });
13529
-
13530
- if (tempButtons.length === 0) {
13531
- tempButtons = [{
13532
- name: "Button",
13533
- show_mobile: "true",
13534
- show_desktop: "true"
13535
- }];
13536
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13537
 
13538
- data.push({
13539
- data: outputGroup,
13540
- buttons: tempButtons
13541
- });
13542
- });
13543
- return data;
 
 
 
 
 
 
 
 
 
 
 
 
13544
  }
 
 
 
13545
  /**
13546
- * Create api request
13547
  *
13548
- * @param {*} endpoint
13549
- * @param {*} data
 
13550
  */
13551
-
13552
- function apiRequest(endpoint, data) {
13553
- data.url = buttonizer_admin.api + endpoint;
13554
- data.headers = {
13555
- "X-WP-Nonce": buttonizer_admin.nonce
13556
- };
13557
- return axios__WEBPACK_IMPORTED_MODULE_2___default()(data);
13558
  }
13559
  /**
13560
- * Reset Buttonizer
 
 
 
 
 
13561
  */
13562
-
13563
- function resetSettings() {
13564
- return apiRequest("/reset", {
13565
- method: "POST",
13566
- data: {
13567
- nonce: buttonizer_admin.nonce
13568
  }
13569
- }).then(function () {
13570
- location.reload();
13571
- })["catch"](function (e) {
13572
- console.error(e);
13573
- throw new Error("Something went wrong trying to update this model.");
13574
- });
13575
- }
13576
-
13577
- /***/ }),
13578
- /* 123 */,
13579
- /* 124 */
13580
- /***/ (function(module, exports, __webpack_require__) {
13581
-
13582
- var root = __webpack_require__(50);
13583
-
13584
- /** Built-in value references. */
13585
- var Symbol = root.Symbol;
13586
-
13587
- module.exports = Symbol;
13588
-
13589
-
13590
- /***/ }),
13591
- /* 125 */
13592
- /***/ (function(module, exports) {
13593
-
13594
- module.exports = function(originalModule) {
13595
- if (!originalModule.webpackPolyfill) {
13596
- var module = Object.create(originalModule);
13597
- // module.parent = undefined by default
13598
- if (!module.children) module.children = [];
13599
- Object.defineProperty(module, "loaded", {
13600
- enumerable: true,
13601
- get: function() {
13602
- return module.l;
13603
- }
13604
- });
13605
- Object.defineProperty(module, "id", {
13606
- enumerable: true,
13607
- get: function() {
13608
- return module.i;
13609
- }
13610
- });
13611
- Object.defineProperty(module, "exports", {
13612
- enumerable: true
13613
- });
13614
- module.webpackPolyfill = 1;
13615
- }
13616
- return module;
13617
- };
13618
-
13619
-
13620
- /***/ }),
13621
- /* 126 */
13622
- /***/ (function(module, exports, __webpack_require__) {
13623
-
13624
- var global = __webpack_require__(57);
13625
- var getOwnPropertyDescriptor = __webpack_require__(426).f;
13626
- var createNonEnumerableProperty = __webpack_require__(128);
13627
- var redefine = __webpack_require__(176);
13628
- var setGlobal = __webpack_require__(356);
13629
- var copyConstructorProperties = __webpack_require__(575);
13630
- var isForced = __webpack_require__(436);
13631
-
13632
- /*
13633
- options.target - name of the target object
13634
- options.global - target is the global object
13635
- options.stat - export as static methods of target
13636
- options.proto - export as prototype methods of target
13637
- options.real - real prototype method for the `pure` version
13638
- options.forced - export even if the native feature is available
13639
- options.bind - bind methods to the target, required for the `pure` version
13640
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
13641
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
13642
- options.sham - add a flag to not completely full polyfills
13643
- options.enumerable - export as enumerable property
13644
- options.noTargetGet - prevent calling a getter on target
13645
- */
13646
- module.exports = function (options, source) {
13647
- var TARGET = options.target;
13648
- var GLOBAL = options.global;
13649
- var STATIC = options.stat;
13650
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
13651
- if (GLOBAL) {
13652
- target = global;
13653
- } else if (STATIC) {
13654
- target = global[TARGET] || setGlobal(TARGET, {});
13655
- } else {
13656
- target = (global[TARGET] || {}).prototype;
13657
- }
13658
- if (target) for (key in source) {
13659
- sourceProperty = source[key];
13660
- if (options.noTargetGet) {
13661
- descriptor = getOwnPropertyDescriptor(target, key);
13662
- targetProperty = descriptor && descriptor.value;
13663
- } else targetProperty = target[key];
13664
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
13665
- // contained in target
13666
- if (!FORCED && targetProperty !== undefined) {
13667
- if (typeof sourceProperty === typeof targetProperty) continue;
13668
- copyConstructorProperties(sourceProperty, targetProperty);
13669
  }
13670
- // add a flag to not completely full polyfills
13671
- if (options.sham || (targetProperty && targetProperty.sham)) {
13672
- createNonEnumerableProperty(sourceProperty, 'sham', true);
13673
  }
13674
- // extend global
13675
- redefine(target, key, sourceProperty, options);
13676
- }
13677
- };
13678
-
13679
-
13680
- /***/ }),
13681
- /* 127 */
13682
- /***/ (function(module, exports, __webpack_require__) {
13683
-
13684
- var fails = __webpack_require__(67);
13685
-
13686
- // Thank's IE8 for his funny defineProperty
13687
- module.exports = !fails(function () {
13688
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
13689
- });
13690
-
13691
-
13692
- /***/ }),
13693
- /* 128 */
13694
- /***/ (function(module, exports, __webpack_require__) {
13695
-
13696
- var DESCRIPTORS = __webpack_require__(127);
13697
- var definePropertyModule = __webpack_require__(145);
13698
- var createPropertyDescriptor = __webpack_require__(355);
13699
-
13700
- module.exports = DESCRIPTORS ? function (object, key, value) {
13701
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
13702
- } : function (object, key, value) {
13703
- object[key] = value;
13704
- return object;
13705
- };
13706
-
13707
-
13708
- /***/ }),
13709
- /* 129 */
13710
- /***/ (function(module, exports, __webpack_require__) {
13711
-
13712
- var META = __webpack_require__(147)('meta');
13713
- var isObject = __webpack_require__(30);
13714
- var has = __webpack_require__(81);
13715
- var setDesc = __webpack_require__(44).f;
13716
- var id = 0;
13717
- var isExtensible = Object.isExtensible || function () {
13718
- return true;
13719
- };
13720
- var FREEZE = !__webpack_require__(27)(function () {
13721
- return isExtensible(Object.preventExtensions({}));
13722
- });
13723
- var setMeta = function (it) {
13724
- setDesc(it, META, { value: {
13725
- i: 'O' + ++id, // object ID
13726
- w: {} // weak collections IDs
13727
- } });
13728
- };
13729
- var fastKey = function (it, create) {
13730
- // return primitive with prefix
13731
- if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
13732
- if (!has(it, META)) {
13733
- // can't set metadata to uncaught frozen object
13734
- if (!isExtensible(it)) return 'F';
13735
- // not necessary to add metadata
13736
- if (!create) return 'E';
13737
- // add missing metadata
13738
- setMeta(it);
13739
- // return object ID
13740
- } return it[META].i;
13741
- };
13742
- var getWeak = function (it, create) {
13743
- if (!has(it, META)) {
13744
- // can't set metadata to uncaught frozen object
13745
- if (!isExtensible(it)) return true;
13746
- // not necessary to add metadata
13747
- if (!create) return false;
13748
- // add missing metadata
13749
- setMeta(it);
13750
- // return hash weak collections IDs
13751
- } return it[META].w;
13752
- };
13753
- // add metadata on freeze-family methods calling
13754
- var onFreeze = function (it) {
13755
- if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
13756
- return it;
13757
- };
13758
- var meta = module.exports = {
13759
- KEY: META,
13760
- NEED: false,
13761
- fastKey: fastKey,
13762
- getWeak: getWeak,
13763
- onFreeze: onFreeze
13764
- };
13765
-
13766
-
13767
- /***/ }),
13768
- /* 130 */
13769
- /***/ (function(module, exports) {
13770
-
13771
- module.exports = false;
13772
-
13773
-
13774
- /***/ }),
13775
- /* 131 */
13776
- /***/ (function(module, exports, __webpack_require__) {
13777
 
13778
- // 22.1.3.31 Array.prototype[@@unscopables]
13779
- var UNSCOPABLES = __webpack_require__(35)('unscopables');
13780
- var ArrayProto = Array.prototype;
13781
- if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(72)(ArrayProto, UNSCOPABLES, {});
13782
- module.exports = function (key) {
13783
- ArrayProto[UNSCOPABLES][key] = true;
13784
- };
13785
 
13786
 
13787
- /***/ }),
13788
- /* 132 */
13789
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13790
 
13791
- "use strict";
13792
- /* unused harmony export teardown */
13793
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useIsFocusVisible; });
13794
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
13795
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13796
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
13797
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
13798
- // based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
13799
 
13800
 
13801
- var hadKeyboardEvent = true;
13802
- var hadFocusVisibleRecently = false;
13803
- var hadFocusVisibleRecentlyTimeout = null;
13804
- var inputTypesWhitelist = {
13805
- text: true,
13806
- search: true,
13807
- url: true,
13808
- tel: true,
13809
- email: true,
13810
- password: true,
13811
- number: true,
13812
- date: true,
13813
- month: true,
13814
- week: true,
13815
- time: true,
13816
- datetime: true,
13817
- 'datetime-local': true
13818
- };
13819
  /**
13820
- * Computes whether the given element should automatically trigger the
13821
- * `focus-visible` class being added, i.e. whether it should always match
13822
- * `:focus-visible` when focused.
13823
- * @param {Element} node
13824
- * @return {boolean}
 
 
13825
  */
13826
-
13827
- function focusTriggersKeyboardModality(node) {
13828
- var type = node.type,
13829
- tagName = node.tagName;
13830
-
13831
- if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {
13832
- return true;
13833
- }
13834
-
13835
- if (tagName === 'TEXTAREA' && !node.readOnly) {
13836
- return true;
13837
- }
13838
-
13839
- if (node.isContentEditable) {
13840
- return true;
13841
- }
13842
-
13843
- return false;
 
 
 
 
 
 
13844
  }
13845
  /**
13846
- * Keep track of our keyboard modality state with `hadKeyboardEvent`.
13847
- * If the most recent user interaction was via the keyboard;
13848
- * and the key press did not include a meta, alt/option, or control key;
13849
- * then the modality is keyboard. Otherwise, the modality is not keyboard.
13850
- * @param {KeyboardEvent} event
13851
  */
13852
-
13853
-
13854
- function handleKeyDown(event) {
13855
- if (event.metaKey || event.altKey || event.ctrlKey) {
13856
- return;
13857
- }
13858
-
13859
- hadKeyboardEvent = true;
13860
  }
13861
  /**
13862
- * If at any point a user clicks with a pointing device, ensure that we change
13863
- * the modality away from keyboard.
13864
- * This avoids the situation where a user presses a key on an already focused
13865
- * element, and then clicks on a different element, focusing it with a
13866
- * pointing device, while we still think we're in keyboard modality.
13867
  */
13868
-
13869
-
13870
- function handlePointerDown() {
13871
- hadKeyboardEvent = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13872
  }
13873
-
13874
- function handleVisibilityChange() {
13875
- if (this.visibilityState === 'hidden') {
13876
- // If the tab becomes active again, the browser will handle calling focus
13877
- // on the element (Safari actually calls it twice).
13878
- // If this tab change caused a blur on an element with focus-visible,
13879
- // re-apply the class when the user switches back to the tab.
13880
- if (hadFocusVisibleRecently) {
13881
- hadKeyboardEvent = true;
 
 
 
 
 
 
 
 
 
 
 
13882
  }
13883
- }
13884
  }
13885
-
13886
- function prepare(doc) {
13887
- doc.addEventListener('keydown', handleKeyDown, true);
13888
- doc.addEventListener('mousedown', handlePointerDown, true);
13889
- doc.addEventListener('pointerdown', handlePointerDown, true);
13890
- doc.addEventListener('touchstart', handlePointerDown, true);
13891
- doc.addEventListener('visibilitychange', handleVisibilityChange, true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13892
  }
13893
-
13894
- function teardown(doc) {
13895
- doc.removeEventListener('keydown', handleKeyDown, true);
13896
- doc.removeEventListener('mousedown', handlePointerDown, true);
13897
- doc.removeEventListener('pointerdown', handlePointerDown, true);
13898
- doc.removeEventListener('touchstart', handlePointerDown, true);
13899
- doc.removeEventListener('visibilitychange', handleVisibilityChange, true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13900
  }
13901
-
13902
- function isFocusVisible(event) {
13903
- var target = event.target;
13904
-
13905
- try {
13906
- return target.matches(':focus-visible');
13907
- } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError
13908
- // we use our own heuristic for those browsers
13909
- // rethrow might be better if it's not the expected error but do we really
13910
- // want to crash if focus-visible malfunctioned?
13911
- // no need for validFocusTarget check. the user does that by attaching it to
13912
- // focusable events only
13913
-
13914
-
13915
- return hadKeyboardEvent || focusTriggersKeyboardModality(target);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13916
  }
13917
  /**
13918
- * Should be called if a blur event is fired on a focus-visible element
 
 
 
 
 
 
 
 
 
13919
  */
13920
-
13921
-
13922
- function handleBlurVisible() {
13923
- // To detect a tab/window switch, we look for a blur event followed
13924
- // rapidly by a visibility change.
13925
- // If we don't see a visibility change within 100ms, it's probably a
13926
- // regular focus change.
13927
- hadFocusVisibleRecently = true;
13928
- window.clearTimeout(hadFocusVisibleRecentlyTimeout);
13929
- hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
13930
- hadFocusVisibleRecently = false;
13931
- }, 100);
13932
  }
13933
-
13934
- function useIsFocusVisible() {
13935
- var ref = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function (instance) {
13936
- var node = react_dom__WEBPACK_IMPORTED_MODULE_1__["findDOMNode"](instance);
13937
-
13938
- if (node != null) {
13939
- prepare(node.ownerDocument);
 
 
 
 
 
13940
  }
13941
- }, []);
13942
-
13943
- if (false) {}
13944
-
13945
- return {
13946
- isFocusVisible: isFocusVisible,
13947
- onBlurVisible: handleBlurVisible,
13948
- ref: ref
13949
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13950
  }
 
 
13951
 
13952
- /***/ }),
13953
- /* 133 */
13954
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13955
 
13956
- "use strict";
13957
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
13958
- function _typeof(obj) {
13959
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
13960
- _typeof = function _typeof(obj) {
13961
- return typeof obj;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13962
  };
13963
- } else {
13964
- _typeof = function _typeof(obj) {
13965
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
 
 
 
 
 
 
 
 
13966
  };
13967
- }
13968
-
13969
- return _typeof(obj);
13970
- }
13971
-
13972
- /***/ }),
13973
- /* 134 */
13974
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13975
-
13976
- "use strict";
13977
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ownerWindow; });
13978
- /* harmony import */ var _ownerDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38);
13979
-
13980
- function ownerWindow(node) {
13981
- var doc = Object(_ownerDocument__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(node);
13982
- return doc.defaultView || window;
13983
- }
13984
-
13985
- /***/ }),
13986
- /* 135 */
13987
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13988
-
13989
- "use strict";
13990
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isMuiElement; });
13991
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
13992
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
13993
 
13994
- function isMuiElement(element, muiNames) {
13995
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["isValidElement"](element) && muiNames.indexOf(element.type.muiName) !== -1;
13996
- }
13997
 
13998
- /***/ }),
13999
- /* 136 */,
14000
- /* 137 */,
14001
- /* 138 */
14002
- /***/ (function(module, exports, __webpack_require__) {
14003
 
14004
- var baseGetTag = __webpack_require__(79),
14005
- isObject = __webpack_require__(49);
14006
 
14007
- /** `Object#toString` result references. */
14008
- var asyncTag = '[object AsyncFunction]',
14009
- funcTag = '[object Function]',
14010
- genTag = '[object GeneratorFunction]',
14011
- proxyTag = '[object Proxy]';
14012
 
14013
  /**
14014
- * Checks if `value` is classified as a `Function` object.
14015
- *
14016
- * @static
14017
- * @memberOf _
14018
- * @since 0.1.0
14019
- * @category Lang
14020
- * @param {*} value The value to check.
14021
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
14022
- * @example
14023
  *
14024
- * _.isFunction(_);
14025
- * // => true
14026
  *
14027
- * _.isFunction(/abc/);
14028
- * // => false
14029
  */
14030
- function isFunction(value) {
14031
- if (!isObject(value)) {
14032
- return false;
14033
- }
14034
- // The use of `Object#toString` avoids issues with the `typeof` operator
14035
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
14036
- var tag = baseGetTag(value);
14037
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
14038
- }
14039
-
14040
- module.exports = isFunction;
14041
-
14042
-
14043
- /***/ }),
14044
- /* 139 */
14045
- /***/ (function(module, exports, __webpack_require__) {
14046
-
14047
- var defineProperty = __webpack_require__(202);
14048
-
14049
  /**
14050
- * The base implementation of `assignValue` and `assignMergeValue` without
14051
- * value checks.
14052
- *
14053
- * @private
14054
- * @param {Object} object The object to modify.
14055
- * @param {string} key The key of the property to assign.
14056
- * @param {*} value The value to assign.
14057
  */
14058
- function baseAssignValue(object, key, value) {
14059
- if (key == '__proto__' && defineProperty) {
14060
- defineProperty(object, key, {
14061
- 'configurable': true,
14062
- 'enumerable': true,
14063
- 'value': value,
14064
- 'writable': true
14065
- });
14066
- } else {
14067
- object[key] = value;
14068
- }
14069
- }
14070
-
14071
- module.exports = baseAssignValue;
14072
-
14073
-
14074
- /***/ }),
14075
- /* 140 */
14076
- /***/ (function(module, exports) {
14077
-
14078
- module.exports = function(module) {
14079
- if (!module.webpackPolyfill) {
14080
- module.deprecate = function() {};
14081
- module.paths = [];
14082
- // module.parent = undefined by default
14083
- if (!module.children) module.children = [];
14084
- Object.defineProperty(module, "loaded", {
14085
- enumerable: true,
14086
- get: function() {
14087
- return module.l;
14088
- }
14089
- });
14090
- Object.defineProperty(module, "id", {
14091
- enumerable: true,
14092
- get: function() {
14093
- return module.i;
14094
- }
14095
- });
14096
- module.webpackPolyfill = 1;
14097
- }
14098
- return module;
14099
- };
14100
-
14101
-
14102
- /***/ }),
14103
- /* 141 */
14104
- /***/ (function(module, exports, __webpack_require__) {
14105
-
14106
- /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(50),
14107
- stubFalse = __webpack_require__(340);
14108
-
14109
- /** Detect free variable `exports`. */
14110
- var freeExports = true && exports && !exports.nodeType && exports;
14111
-
14112
- /** Detect free variable `module`. */
14113
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
14114
-
14115
- /** Detect the popular CommonJS extension `module.exports`. */
14116
- var moduleExports = freeModule && freeModule.exports === freeExports;
14117
-
14118
- /** Built-in value references. */
14119
- var Buffer = moduleExports ? root.Buffer : undefined;
14120
-
14121
- /* Built-in method references for those with the same name as other `lodash` methods. */
14122
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
14123
-
14124
  /**
14125
- * Checks if `value` is a buffer.
14126
- *
14127
- * @static
14128
- * @memberOf _
14129
- * @since 4.3.0
14130
- * @category Lang
14131
- * @param {*} value The value to check.
14132
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
14133
- * @example
14134
- *
14135
- * _.isBuffer(new Buffer(2));
14136
- * // => true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14137
  *
14138
- * _.isBuffer(new Uint8Array(2));
14139
- * // => false
14140
  */
14141
- var isBuffer = nativeIsBuffer || stubFalse;
14142
-
14143
- module.exports = isBuffer;
14144
-
14145
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(140)(module)))
14146
-
14147
- /***/ }),
14148
- /* 142 */
14149
- /***/ (function(module, exports, __webpack_require__) {
14150
-
14151
- var assignValue = __webpack_require__(244),
14152
- baseAssignValue = __webpack_require__(139);
14153
-
14154
  /**
14155
- * Copies properties of `source` to `object`.
14156
  *
14157
- * @private
14158
- * @param {Object} source The object to copy properties from.
14159
- * @param {Array} props The property identifiers to copy.
14160
- * @param {Object} [object={}] The object to copy properties to.
14161
- * @param {Function} [customizer] The function to customize copied values.
14162
- * @returns {Object} Returns `object`.
14163
  */
14164
- function copyObject(source, props, object, customizer) {
14165
- var isNew = !object;
14166
- object || (object = {});
14167
-
14168
- var index = -1,
14169
- length = props.length;
14170
-
14171
- while (++index < length) {
14172
- var key = props[index];
14173
-
14174
- var newValue = customizer
14175
- ? customizer(object[key], source[key], key, object, source)
14176
- : undefined;
14177
-
14178
- if (newValue === undefined) {
14179
- newValue = source[key];
14180
  }
14181
- if (isNew) {
14182
- baseAssignValue(object, key, newValue);
14183
- } else {
14184
- assignValue(object, key, newValue);
14185
  }
14186
- }
14187
- return object;
14188
  }
14189
-
14190
- module.exports = copyObject;
14191
-
14192
-
14193
- /***/ }),
14194
- /* 143 */
14195
- /***/ (function(module, exports) {
14196
-
14197
  /**
14198
- * This method returns the first argument it receives.
14199
- *
14200
- * @static
14201
- * @since 0.1.0
14202
- * @memberOf _
14203
- * @category Util
14204
- * @param {*} value Any value.
14205
- * @returns {*} Returns `value`.
14206
- * @example
14207
- *
14208
- * var object = { 'a': 1 };
14209
  *
14210
- * console.log(_.identity(object) === object);
14211
- * // => true
14212
  */
14213
- function identity(value) {
14214
- return value;
14215
- }
14216
-
14217
- module.exports = identity;
14218
-
14219
-
14220
- /***/ }),
14221
- /* 144 */
14222
- /***/ (function(module, exports, __webpack_require__) {
14223
-
14224
- "use strict";
14225
-
14226
-
14227
- if (true) {
14228
- module.exports = __webpack_require__(572);
14229
- } else {}
14230
-
14231
-
14232
- /***/ }),
14233
- /* 145 */
14234
- /***/ (function(module, exports, __webpack_require__) {
14235
-
14236
- var DESCRIPTORS = __webpack_require__(127);
14237
- var IE8_DOM_DEFINE = __webpack_require__(429);
14238
- var anObject = __webpack_require__(93);
14239
- var toPrimitive = __webpack_require__(428);
14240
-
14241
- var nativeDefineProperty = Object.defineProperty;
14242
-
14243
- // `Object.defineProperty` method
14244
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
14245
- exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
14246
- anObject(O);
14247
- P = toPrimitive(P, true);
14248
- anObject(Attributes);
14249
- if (IE8_DOM_DEFINE) try {
14250
- return nativeDefineProperty(O, P, Attributes);
14251
- } catch (error) { /* empty */ }
14252
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
14253
- if ('value' in Attributes) O[P] = Attributes.value;
14254
- return O;
14255
- };
14256
-
14257
-
14258
- /***/ }),
14259
- /* 146 */
14260
- /***/ (function(module, exports) {
14261
-
14262
- module.exports = function (bitmap, value) {
14263
- return {
14264
- enumerable: !(bitmap & 1),
14265
- configurable: !(bitmap & 2),
14266
- writable: !(bitmap & 4),
14267
- value: value
14268
- };
14269
- };
14270
-
14271
-
14272
- /***/ }),
14273
- /* 147 */
14274
- /***/ (function(module, exports) {
14275
-
14276
- var id = 0;
14277
- var px = Math.random();
14278
- module.exports = function (key) {
14279
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
14280
- };
14281
-
14282
-
14283
- /***/ }),
14284
- /* 148 */
14285
- /***/ (function(module, exports, __webpack_require__) {
14286
-
14287
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
14288
- var $keys = __webpack_require__(472);
14289
- var enumBugKeys = __webpack_require__(377);
14290
-
14291
- module.exports = Object.keys || function keys(O) {
14292
- return $keys(O, enumBugKeys);
14293
- };
14294
-
14295
-
14296
- /***/ }),
14297
- /* 149 */
14298
- /***/ (function(module, exports, __webpack_require__) {
14299
-
14300
- var toInteger = __webpack_require__(106);
14301
- var max = Math.max;
14302
- var min = Math.min;
14303
- module.exports = function (index, length) {
14304
- index = toInteger(index);
14305
- return index < 0 ? max(index + length, 0) : min(index, length);
14306
- };
14307
-
14308
-
14309
- /***/ }),
14310
- /* 150 */
14311
- /***/ (function(module, exports, __webpack_require__) {
14312
-
14313
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
14314
- var anObject = __webpack_require__(22);
14315
- var dPs = __webpack_require__(473);
14316
- var enumBugKeys = __webpack_require__(377);
14317
- var IE_PROTO = __webpack_require__(376)('IE_PROTO');
14318
- var Empty = function () { /* empty */ };
14319
- var PROTOTYPE = 'prototype';
14320
-
14321
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
14322
- var createDict = function () {
14323
- // Thrash, waste and sodomy: IE GC bug
14324
- var iframe = __webpack_require__(374)('iframe');
14325
- var i = enumBugKeys.length;
14326
- var lt = '<';
14327
- var gt = '>';
14328
- var iframeDocument;
14329
- iframe.style.display = 'none';
14330
- __webpack_require__(378).appendChild(iframe);
14331
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
14332
- // createDict = iframe.contentWindow.Object;
14333
- // html.removeChild(iframe);
14334
- iframeDocument = iframe.contentWindow.document;
14335
- iframeDocument.open();
14336
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
14337
- iframeDocument.close();
14338
- createDict = iframeDocument.F;
14339
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
14340
- return createDict();
14341
- };
14342
-
14343
- module.exports = Object.create || function create(O, Properties) {
14344
- var result;
14345
- if (O !== null) {
14346
- Empty[PROTOTYPE] = anObject(O);
14347
- result = new Empty();
14348
- Empty[PROTOTYPE] = null;
14349
- // add "__proto__" for Object.getPrototypeOf polyfill
14350
- result[IE_PROTO] = O;
14351
- } else result = createDict();
14352
- return Properties === undefined ? result : dPs(result, Properties);
14353
- };
14354
-
14355
-
14356
- /***/ }),
14357
- /* 151 */
14358
- /***/ (function(module, exports, __webpack_require__) {
14359
-
14360
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
14361
- var $keys = __webpack_require__(472);
14362
- var hiddenKeys = __webpack_require__(377).concat('length', 'prototype');
14363
-
14364
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
14365
- return $keys(O, hiddenKeys);
14366
- };
14367
-
14368
-
14369
- /***/ }),
14370
- /* 152 */
14371
- /***/ (function(module, exports, __webpack_require__) {
14372
-
14373
- "use strict";
14374
-
14375
- var global = __webpack_require__(24);
14376
- var dP = __webpack_require__(44);
14377
- var DESCRIPTORS = __webpack_require__(43);
14378
- var SPECIES = __webpack_require__(35)('species');
14379
-
14380
- module.exports = function (KEY) {
14381
- var C = global[KEY];
14382
- if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
14383
- configurable: true,
14384
- get: function () { return this; }
14385
- });
14386
- };
14387
-
14388
-
14389
- /***/ }),
14390
- /* 153 */
14391
- /***/ (function(module, exports) {
14392
-
14393
- module.exports = function (it, Constructor, name, forbiddenField) {
14394
- if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
14395
- throw TypeError(name + ': incorrect invocation!');
14396
- } return it;
14397
- };
14398
-
14399
-
14400
- /***/ }),
14401
- /* 154 */
14402
- /***/ (function(module, exports, __webpack_require__) {
14403
-
14404
- var ctx = __webpack_require__(95);
14405
- var call = __webpack_require__(484);
14406
- var isArrayIter = __webpack_require__(390);
14407
- var anObject = __webpack_require__(22);
14408
- var toLength = __webpack_require__(45);
14409
- var getIterFn = __webpack_require__(392);
14410
- var BREAK = {};
14411
- var RETURN = {};
14412
- var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
14413
- var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
14414
- var f = ctx(fn, that, entries ? 2 : 1);
14415
- var index = 0;
14416
- var length, step, iterator, result;
14417
- if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
14418
- // fast case for arrays with default iterator
14419
- if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
14420
- result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
14421
- if (result === BREAK || result === RETURN) return result;
14422
- } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
14423
- result = call(iterator, f, step.value, entries);
14424
- if (result === BREAK || result === RETURN) return result;
14425
- }
14426
- };
14427
- exports.BREAK = BREAK;
14428
- exports.RETURN = RETURN;
14429
-
14430
-
14431
- /***/ }),
14432
- /* 155 */
14433
- /***/ (function(module, exports, __webpack_require__) {
14434
-
14435
- var redefine = __webpack_require__(73);
14436
- module.exports = function (target, src, safe) {
14437
- for (var key in src) redefine(target, key, src[key], safe);
14438
- return target;
14439
- };
14440
-
14441
-
14442
- /***/ }),
14443
- /* 156 */
14444
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14445
-
14446
- "use strict";
14447
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return dateToFormat; });
14448
- /* unused harmony export formatToDate */
14449
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return importIcons; });
14450
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98);
14451
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);
14452
- /* global Map */
14453
-
14454
- function dateToFormat(date) {
14455
- if (!date) return null;
14456
-
14457
- var pad = function pad(num, size) {
14458
- var s = String(num);
14459
-
14460
- while (s.length < (size || 2)) {
14461
- s = "0" + s;
14462
- }
14463
-
14464
- return s;
14465
- };
14466
-
14467
- return "".concat(date.getDate(), "-").concat(pad(date.getMonth() + 1, 2), "-").concat(date.getFullYear());
14468
- }
14469
- function formatToDate(format) {
14470
- if (!format) return null;
14471
- var dateParts = format.split("-");
14472
- return new Date(dateParts[2], dateParts[1] - 1, dateParts[0]);
14473
  }
14474
- var importIcons = function () {
14475
- var cache = new Map();
14476
- return function () {
14477
- var icon_library = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "fontawesome";
14478
- var icon_library_version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "5.free";
14479
- var url = buttonizer_admin.assets + "/icon_definitions/" + icon_library + "." + icon_library_version + ".json?buttonizer-icon-cache=" + buttonizer_admin.version;
14480
- if (cache.has(url)) return cache.get(url);
14481
- var value = axios__WEBPACK_IMPORTED_MODULE_0___default()({
14482
- url: url,
14483
- dataType: "json",
14484
- method: "get"
14485
- });
14486
- cache.set(url, value);
14487
- return value;
14488
- };
14489
- }();
14490
-
14491
- /***/ }),
14492
- /* 157 */
14493
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14494
-
14495
- "use strict";
14496
- /* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(216);
14497
- /* global window */
14498
-
14499
-
14500
- var root;
14501
-
14502
- if (typeof self !== 'undefined') {
14503
- root = self;
14504
- } else if (typeof window !== 'undefined') {
14505
- root = window;
14506
- } else if (typeof global !== 'undefined') {
14507
- root = global;
14508
- } else if (true) {
14509
- root = module;
14510
- } else {}
14511
-
14512
- var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(root);
14513
- /* harmony default export */ __webpack_exports__["a"] = (result);
14514
-
14515
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(39), __webpack_require__(125)(module)))
14516
-
14517
- /***/ }),
14518
- /* 158 */
14519
- /***/ (function(module, exports, __webpack_require__) {
14520
-
14521
- "use strict";
14522
-
14523
-
14524
- var reactIs = __webpack_require__(144);
14525
-
14526
  /**
14527
- * Copyright 2015, Yahoo! Inc.
14528
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
14529
  */
14530
- var REACT_STATICS = {
14531
- childContextTypes: true,
14532
- contextType: true,
14533
- contextTypes: true,
14534
- defaultProps: true,
14535
- displayName: true,
14536
- getDefaultProps: true,
14537
- getDerivedStateFromError: true,
14538
- getDerivedStateFromProps: true,
14539
- mixins: true,
14540
- propTypes: true,
14541
- type: true
14542
- };
14543
- var KNOWN_STATICS = {
14544
- name: true,
14545
- length: true,
14546
- prototype: true,
14547
- caller: true,
14548
- callee: true,
14549
- arguments: true,
14550
- arity: true
14551
- };
14552
- var FORWARD_REF_STATICS = {
14553
- '$$typeof': true,
14554
- render: true,
14555
- defaultProps: true,
14556
- displayName: true,
14557
- propTypes: true
14558
- };
14559
- var MEMO_STATICS = {
14560
- '$$typeof': true,
14561
- compare: true,
14562
- defaultProps: true,
14563
- displayName: true,
14564
- propTypes: true,
14565
- type: true
14566
- };
14567
- var TYPE_STATICS = {};
14568
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
14569
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
14570
-
14571
- function getStatics(component) {
14572
- // React v16.11 and below
14573
- if (reactIs.isMemo(component)) {
14574
- return MEMO_STATICS;
14575
- } // React v16.12 and above
14576
-
14577
-
14578
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
14579
- }
14580
-
14581
- var defineProperty = Object.defineProperty;
14582
- var getOwnPropertyNames = Object.getOwnPropertyNames;
14583
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
14584
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
14585
- var getPrototypeOf = Object.getPrototypeOf;
14586
- var objectPrototype = Object.prototype;
14587
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
14588
- if (typeof sourceComponent !== 'string') {
14589
- // don't hoist over string (html) components
14590
- if (objectPrototype) {
14591
- var inheritedComponent = getPrototypeOf(sourceComponent);
14592
-
14593
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
14594
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
14595
- }
14596
- }
14597
-
14598
- var keys = getOwnPropertyNames(sourceComponent);
14599
-
14600
- if (getOwnPropertySymbols) {
14601
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
14602
  }
14603
-
14604
- var targetStatics = getStatics(targetComponent);
14605
- var sourceStatics = getStatics(sourceComponent);
14606
-
14607
- for (var i = 0; i < keys.length; ++i) {
14608
- var key = keys[i];
14609
-
14610
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
14611
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
14612
-
14613
- try {
14614
- // Avoid failures from read-only properties
14615
- defineProperty(targetComponent, key, descriptor);
14616
- } catch (e) {}
14617
- }
14618
  }
14619
- }
14620
-
14621
- return targetComponent;
14622
- }
14623
-
14624
- module.exports = hoistNonReactStatics;
14625
-
14626
-
14627
- /***/ }),
14628
- /* 159 */
14629
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14630
-
14631
- "use strict";
14632
- /* unused harmony export hasValue */
14633
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFilled; });
14634
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isAdornedStart; });
14635
- // Supports determination of isControlled().
14636
- // Controlled input accepts its current value as a prop.
14637
- //
14638
- // @see https://facebook.github.io/react/docs/forms.html#controlled-components
14639
- // @param value
14640
- // @returns {boolean} true if string (including '') or number (including zero)
14641
- function hasValue(value) {
14642
- return value != null && !(Array.isArray(value) && value.length === 0);
14643
- } // Determine if field is empty or filled.
14644
- // Response determines if label is presented above field or as placeholder.
14645
- //
14646
- // @param obj
14647
- // @param SSR
14648
- // @returns {boolean} False when not present or empty string.
14649
- // True when any number or string with length.
14650
-
14651
- function isFilled(obj) {
14652
- var SSR = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
14653
- return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');
14654
- } // Determine if an Input is adorned on start.
14655
- // It's corresponding to the left with LTR.
14656
- //
14657
- // @param obj
14658
- // @returns {boolean} False when no adornments.
14659
- // True when adorned at the start.
14660
-
14661
- function isAdornedStart(obj) {
14662
- return obj.startAdornment;
14663
  }
14664
-
14665
- /***/ }),
14666
- /* 160 */
14667
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14668
-
14669
- "use strict";
14670
- /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40);
14671
- /* harmony import */ var _stubFalse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(517);
14672
-
14673
-
14674
-
14675
- /** Detect free variable `exports`. */
14676
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
14677
-
14678
- /** Detect free variable `module`. */
14679
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
14680
-
14681
- /** Detect the popular CommonJS extension `module.exports`. */
14682
- var moduleExports = freeModule && freeModule.exports === freeExports;
14683
-
14684
- /** Built-in value references. */
14685
- var Buffer = moduleExports ? _root_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].Buffer : undefined;
14686
-
14687
- /* Built-in method references for those with the same name as other `lodash` methods. */
14688
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
14689
-
14690
  /**
14691
- * Checks if `value` is a buffer.
14692
- *
14693
- * @static
14694
- * @memberOf _
14695
- * @since 4.3.0
14696
- * @category Lang
14697
- * @param {*} value The value to check.
14698
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
14699
- * @example
14700
- *
14701
- * _.isBuffer(new Buffer(2));
14702
- * // => true
14703
- *
14704
- * _.isBuffer(new Uint8Array(2));
14705
- * // => false
14706
  */
14707
- var isBuffer = nativeIsBuffer || _stubFalse_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"];
14708
-
14709
- /* harmony default export */ __webpack_exports__["a"] = (isBuffer);
14710
-
14711
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(125)(module)))
14712
-
14713
- /***/ }),
14714
- /* 161 */
14715
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
 
 
14716
 
14717
- "use strict";
14718
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return truncate; });
14719
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return snipLine; });
14720
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return safeJoin; });
14721
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isMatchingPattern; });
14722
- /* harmony import */ var _is__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
14723
 
14724
  /**
14725
- * Truncates given string to the maximum characters count
14726
- *
14727
- * @param str An object that contains serializable values
14728
- * @param max Maximum number of characters in truncated string
14729
- * @returns string Encoded
14730
  */
14731
- function truncate(str, max) {
14732
- if (max === void 0) { max = 0; }
14733
- if (typeof str !== 'string' || max === 0) {
14734
- return str;
 
14735
  }
14736
- return str.length <= max ? str : str.substr(0, max) + "...";
 
 
 
 
 
14737
  }
14738
  /**
14739
- * This is basically just `trim_line` from
14740
- * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67
14741
  *
14742
- * @param str An object that contains serializable values
14743
- * @param max Maximum number of characters in truncated string
14744
- * @returns string Encoded
14745
  */
14746
- function snipLine(line, colno) {
14747
- var newLine = line;
14748
- var ll = newLine.length;
14749
- if (ll <= 150) {
14750
- return newLine;
14751
- }
14752
- if (colno > ll) {
14753
- // eslint-disable-next-line no-param-reassign
14754
- colno = ll;
14755
- }
14756
- var start = Math.max(colno - 60, 0);
14757
- if (start < 5) {
14758
- start = 0;
14759
- }
14760
- var end = Math.min(start + 140, ll);
14761
- if (end > ll - 5) {
14762
- end = ll;
14763
  }
14764
- if (end === ll) {
14765
- start = Math.max(end - 140, 0);
14766
  }
14767
- newLine = newLine.slice(start, end);
14768
- if (start > 0) {
14769
- newLine = "'{snip} " + newLine;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14770
  }
14771
- if (end < ll) {
14772
- newLine += ' {snip}';
14773
  }
14774
- return newLine;
 
 
 
 
14775
  }
14776
  /**
14777
- * Join values in array
14778
- * @param input array of values to be joined together
14779
- * @param delimiter string to be placed in-between values
14780
- * @returns Joined values
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14781
  */
14782
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
14783
- function safeJoin(input, delimiter) {
14784
- if (!Array.isArray(input)) {
14785
- return '';
14786
- }
14787
- var output = [];
14788
- // eslint-disable-next-line @typescript-eslint/prefer-for-of
14789
- for (var i = 0; i < input.length; i++) {
14790
- var value = input[i];
14791
- try {
14792
- output.push(String(value));
14793
- }
14794
- catch (e) {
14795
- output.push('[value cannot be serialized]');
14796
- }
14797
- }
14798
- return output.join(delimiter);
14799
  }
14800
  /**
14801
- * Checks if the value matches a regex or includes the string
14802
- * @param value The string value to be checked against
14803
- * @param pattern Either a regex or a string that must be contained in value
14804
  */
14805
- function isMatchingPattern(value, pattern) {
14806
- if (!Object(_is__WEBPACK_IMPORTED_MODULE_0__[/* isString */ "k"])(value)) {
14807
- return false;
14808
- }
14809
- if (Object(_is__WEBPACK_IMPORTED_MODULE_0__[/* isRegExp */ "j"])(pattern)) {
14810
- return pattern.test(value);
14811
- }
14812
- if (typeof pattern === 'string') {
14813
- return value.indexOf(pattern) !== -1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14814
  }
14815
- return false;
14816
  }
14817
- //# sourceMappingURL=string.js.map
14818
-
14819
- /***/ }),
14820
- /* 162 */
14821
- /***/ (function(module, exports, __webpack_require__) {
14822
-
14823
- var baseIsEqual = __webpack_require__(353);
14824
-
14825
  /**
14826
- * Performs a deep comparison between two values to determine if they are
14827
- * equivalent.
14828
  *
14829
- * **Note:** This method supports comparing arrays, array buffers, booleans,
14830
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
14831
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
14832
- * by their own, not inherited, enumerable properties. Functions and DOM
14833
- * nodes are compared by strict equality, i.e. `===`.
14834
  *
14835
- * @static
14836
- * @memberOf _
14837
- * @since 0.1.0
14838
- * @category Lang
14839
- * @param {*} value The value to compare.
14840
- * @param {*} other The other value to compare.
14841
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
14842
- * @example
14843
  *
14844
- * var object = { 'a': 1 };
14845
- * var other = { 'a': 1 };
14846
  *
14847
- * _.isEqual(object, other);
14848
- * // => true
 
14849
  *
14850
- * object === other;
14851
- * // => false
14852
  */
14853
- function isEqual(value, other) {
14854
- return baseIsEqual(value, other);
14855
  }
 
 
14856
 
14857
- module.exports = isEqual;
 
 
14858
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14859
 
14860
- /***/ }),
14861
- /* 163 */
14862
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
14863
 
14864
- "use strict";
14865
- /* unused harmony export styles */
14866
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
14867
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
14868
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
14869
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
14870
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
14871
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
14872
- /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4);
14873
- /* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
14874
- /* harmony import */ var _utils_capitalize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
14875
 
 
 
 
 
 
 
 
14876
 
 
14877
 
 
14878
 
 
14879
 
 
14880
 
14881
 
14882
- var styles = function styles(theme) {
14883
- return {
14884
- /* Styles applied to the root element. */
14885
- root: {
14886
- margin: 0
14887
- },
14888
 
14889
- /* Styles applied to the root element if `variant="body2"`. */
14890
- body2: theme.typography.body2,
 
 
14891
 
14892
- /* Styles applied to the root element if `variant="body1"`. */
14893
- body1: theme.typography.body1,
 
 
14894
 
14895
- /* Styles applied to the root element if `variant="caption"`. */
14896
- caption: theme.typography.caption,
 
 
 
 
14897
 
14898
- /* Styles applied to the root element if `variant="button"`. */
14899
- button: theme.typography.button,
 
 
 
 
 
14900
 
14901
- /* Styles applied to the root element if `variant="h1"`. */
14902
- h1: theme.typography.h1,
 
14903
 
14904
- /* Styles applied to the root element if `variant="h2"`. */
14905
- h2: theme.typography.h2,
14906
 
14907
- /* Styles applied to the root element if `variant="h3"`. */
14908
- h3: theme.typography.h3,
 
14909
 
14910
- /* Styles applied to the root element if `variant="h4"`. */
14911
- h4: theme.typography.h4,
 
 
 
 
14912
 
14913
- /* Styles applied to the root element if `variant="h5"`. */
14914
- h5: theme.typography.h5,
 
 
14915
 
14916
- /* Styles applied to the root element if `variant="h6"`. */
14917
- h6: theme.typography.h6,
 
 
 
 
 
14918
 
14919
- /* Styles applied to the root element if `variant="subtitle1"`. */
14920
- subtitle1: theme.typography.subtitle1,
 
14921
 
14922
- /* Styles applied to the root element if `variant="subtitle2"`. */
14923
- subtitle2: theme.typography.subtitle2,
14924
 
14925
- /* Styles applied to the root element if `variant="overline"`. */
14926
- overline: theme.typography.overline,
14927
 
14928
- /* Styles applied to the root element if `variant="srOnly"`. Only accessible to screen readers. */
14929
- srOnly: {
14930
- position: 'absolute',
14931
- height: 1,
14932
- width: 1,
14933
- overflow: 'hidden'
14934
- },
14935
 
14936
- /* Styles applied to the root element if `align="left"`. */
14937
- alignLeft: {
14938
- textAlign: 'left'
14939
- },
14940
 
14941
- /* Styles applied to the root element if `align="center"`. */
14942
- alignCenter: {
14943
- textAlign: 'center'
14944
- },
14945
 
14946
- /* Styles applied to the root element if `align="right"`. */
14947
- alignRight: {
14948
- textAlign: 'right'
14949
- },
14950
 
14951
- /* Styles applied to the root element if `align="justify"`. */
14952
- alignJustify: {
14953
- textAlign: 'justify'
14954
- },
14955
 
14956
- /* Styles applied to the root element if `nowrap={true}`. */
14957
- noWrap: {
14958
- overflow: 'hidden',
14959
- textOverflow: 'ellipsis',
14960
- whiteSpace: 'nowrap'
14961
- },
14962
 
14963
- /* Styles applied to the root element if `gutterBottom={true}`. */
14964
- gutterBottom: {
14965
- marginBottom: '0.35em'
14966
- },
14967
 
14968
- /* Styles applied to the root element if `paragraph={true}`. */
14969
- paragraph: {
14970
- marginBottom: 16
14971
- },
14972
 
14973
- /* Styles applied to the root element if `color="inherit"`. */
14974
- colorInherit: {
14975
- color: 'inherit'
14976
- },
14977
 
14978
- /* Styles applied to the root element if `color="primary"`. */
14979
- colorPrimary: {
14980
- color: theme.palette.primary.main
14981
- },
14982
 
14983
- /* Styles applied to the root element if `color="secondary"`. */
14984
- colorSecondary: {
14985
- color: theme.palette.secondary.main
14986
- },
14987
 
14988
- /* Styles applied to the root element if `color="textPrimary"`. */
14989
- colorTextPrimary: {
14990
- color: theme.palette.text.primary
14991
- },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14992
 
14993
- /* Styles applied to the root element if `color="textSecondary"`. */
14994
- colorTextSecondary: {
14995
- color: theme.palette.text.secondary
14996
- },
14997
 
14998
- /* Styles applied to the root element if `color="error"`. */
14999
- colorError: {
15000
- color: theme.palette.error.main
15001
- },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15002
 
15003
- /* Styles applied to the root element if `display="inline"`. */
15004
- displayInline: {
15005
- display: 'inline'
15006
- },
 
15007
 
15008
- /* Styles applied to the root element if `display="block"`. */
15009
- displayBlock: {
15010
- display: 'block'
 
 
 
 
 
 
 
 
 
15011
  }
15012
- };
15013
- };
15014
- var defaultVariantMapping = {
15015
- h1: 'h1',
15016
- h2: 'h2',
15017
- h3: 'h3',
15018
- h4: 'h4',
15019
- h5: 'h5',
15020
- h6: 'h6',
15021
- subtitle1: 'h6',
15022
- subtitle2: 'h6',
15023
- body1: 'p',
15024
- body2: 'p'
15025
- };
15026
- var Typography = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](function Typography(props, ref) {
15027
- var _props$align = props.align,
15028
- align = _props$align === void 0 ? 'inherit' : _props$align,
15029
- classes = props.classes,
15030
- className = props.className,
15031
- _props$color = props.color,
15032
- color = _props$color === void 0 ? 'initial' : _props$color,
15033
- component = props.component,
15034
- _props$display = props.display,
15035
- display = _props$display === void 0 ? 'initial' : _props$display,
15036
- _props$gutterBottom = props.gutterBottom,
15037
- gutterBottom = _props$gutterBottom === void 0 ? false : _props$gutterBottom,
15038
- _props$noWrap = props.noWrap,
15039
- noWrap = _props$noWrap === void 0 ? false : _props$noWrap,
15040
- _props$paragraph = props.paragraph,
15041
- paragraph = _props$paragraph === void 0 ? false : _props$paragraph,
15042
- _props$variant = props.variant,
15043
- variant = _props$variant === void 0 ? 'body1' : _props$variant,
15044
- _props$variantMapping = props.variantMapping,
15045
- variantMapping = _props$variantMapping === void 0 ? defaultVariantMapping : _props$variantMapping,
15046
- other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(props, ["align", "classes", "className", "color", "component", "display", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"]);
15047
 
15048
- var Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
15049
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](Component, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
15050
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(classes.root, className, variant !== 'inherit' && classes[variant], color !== 'initial' && classes["color".concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(color))], noWrap && classes.noWrap, gutterBottom && classes.gutterBottom, paragraph && classes.paragraph, align !== 'inherit' && classes["align".concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(align))], display !== 'initial' && classes["display".concat(Object(_utils_capitalize__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(display))]),
15051
- ref: ref
15052
- }, other));
15053
- });
15054
- false ? undefined : void 0;
15055
- /* harmony default export */ __webpack_exports__["a"] = (Object(_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(styles, {
15056
- name: 'MuiTypography'
15057
- })(Typography));
15058
 
15059
- /***/ }),
15060
- /* 164 */
15061
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15062
 
15063
- "use strict";
15064
- /* unused harmony export styles */
15065
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
15066
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7);
15067
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
15068
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
15069
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
15070
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
15071
- /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4);
15072
- /* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9);
 
 
15073
 
 
 
 
 
 
15074
 
 
 
 
15075
 
 
 
 
 
 
15076
 
 
 
 
15077
 
 
 
 
 
 
15078
 
15079
- var styles = function styles(theme) {
15080
- return {
15081
- /* Styles applied to the root element. */
15082
- root: {
15083
- flex: '1 1 auto',
15084
- WebkitOverflowScrolling: 'touch',
15085
- // Add iOS momentum scrolling.
15086
- overflowY: 'auto',
15087
- padding: '8px 24px',
15088
- '&:first-child': {
15089
- // dialog without title
15090
- paddingTop: 20
15091
- }
15092
- },
15093
 
15094
- /* Styles applied to the root element if `dividers={true}`. */
15095
- dividers: {
15096
- padding: '16px 24px',
15097
- borderTop: "1px solid ".concat(theme.palette.divider),
15098
- borderBottom: "1px solid ".concat(theme.palette.divider)
 
 
 
 
 
 
15099
  }
15100
- };
15101
- };
15102
- var DialogContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](function DialogContent(props, ref) {
15103
- var classes = props.classes,
15104
- className = props.className,
15105
- _props$dividers = props.dividers,
15106
- dividers = _props$dividers === void 0 ? false : _props$dividers,
15107
- other = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(props, ["classes", "className", "dividers"]);
15108
 
15109
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
15110
- className: Object(clsx__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(classes.root, className, dividers && classes.dividers),
15111
- ref: ref
15112
- }, other));
15113
- });
15114
- false ? undefined : void 0;
15115
- /* harmony default export */ __webpack_exports__["a"] = (Object(_styles_withStyles__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(styles, {
15116
- name: 'MuiDialogContent'
15117
- })(DialogContent));
15118
 
15119
- /***/ }),
15120
- /* 165 */
15121
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
 
 
 
 
 
 
15122
 
15123
- "use strict";
15124
- /* unused harmony export styles */
15125
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
15126
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
15127
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
15128
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
15129
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
15130
- /* harmony import */ var _styles_withStyles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
15131
- /* harmony import */ var _Typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(163);
15132
 
 
 
 
 
 
 
 
 
 
 
 
15133
 
 
 
 
 
 
 
15134
 
 
 
 
 
 
 
 
15135
 
 
 
 
 
 
 
 
15136
 
15137
- var styles = {
15138
- /* Styles applied to the root element. */
15139
- root: {
15140
- marginBottom: 12
15141
- }
15142
- };
15143
- var DialogContentText = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["forwardRef"](function DialogContentText(props, ref) {
15144
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_Typography__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
15145
- component: "p",
15146
- variant: "body1",
15147
- color: "textSecondary",
15148
- ref: ref
15149
- }, props));
15150
- });
15151
- false ? undefined : void 0;
15152
- /* harmony default export */ __webpack_exports__["a"] = (Object(_styles_withStyles__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(styles, {
15153
- name: 'MuiDialogContentText'
15154
- })(DialogContentText));
15155
 
15156
- /***/ }),
15157
- /* 166 */,
15158
- /* 167 */
15159
- /***/ (function(module, exports, __webpack_require__) {
 
 
 
 
 
 
 
15160
 
15161
- var ListCache = __webpack_require__(112),
15162
- stackClear = __webpack_require__(312),
15163
- stackDelete = __webpack_require__(313),
15164
- stackGet = __webpack_require__(314),
15165
- stackHas = __webpack_require__(315)
2
  *
3
  * This file is part of the Buttonizer plugin that is downloadable through Wordpress.org,
4
  * please do not redistribute this plugin or the files without any written permission of the author.
5
+ *
6
  * If you need support, contact us at support@buttonizer.pro or visit our community website
7
  * https://community.buttonizer.pro/
8
+ *
9
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
10
+ *
11
+ * (C) 2017-2021 Buttonizer v2.4.0
12
+ *
13
  */
14
  /*!
15
  *
16
  * This file is part of the Buttonizer plugin that is downloadable through Wordpress.org,
17
  * please do not redistribute this plugin or the files without any written permission of the author.
18
+ *
19
  * If you need support, contact us at support@buttonizer.pro or visit our community website
20
  * https://community.buttonizer.pro/
21
+ *
22
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
23
+ *
24
+ * (C) 2017-2021 Buttonizer v2.4.0
25
+ *
26
  */
27
+ /******/ (function() { // webpackBootstrap
28
+ /******/ var __webpack_modules__ = ({
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
+ /***/ 50676:
31
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
32
 
33
+ "use strict";
34
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
35
+ /* harmony export */ "Z": function() { return /* binding */ _arrayLikeToArray; }
36
+ /* harmony export */ });
37
+ function _arrayLikeToArray(arr, len) {
38
+ if (len == null || len > arr.length) len = arr.length;
39
 
40
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
41
+ arr2[i] = arr[i];
42
+ }
43
 
44
+ return arr2;
45
+ }
46
 
47
  /***/ }),
48
+
49
+ /***/ 83614:
50
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
51
 
52
  "use strict";
53
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
54
+ /* harmony export */ "Z": function() { return /* binding */ _arrayWithoutHoles; }
55
+ /* harmony export */ });
56
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50676);
57
 
58
+ function _arrayWithoutHoles(arr) {
59
+ if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(arr);
60
+ }
61
+
62
+ /***/ }),
63
+
64
+ /***/ 63349:
65
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
66
+
67
+ "use strict";
68
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
69
+ /* harmony export */ "Z": function() { return /* binding */ _assertThisInitialized; }
70
+ /* harmony export */ });
71
+ function _assertThisInitialized(self) {
72
+ if (self === void 0) {
73
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
74
  }
75
 
76
+ return self;
77
+ }
78
+
79
+ /***/ }),
80
+
81
+ /***/ 5991:
82
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
83
+
84
+ "use strict";
85
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
86
+ /* harmony export */ "Z": function() { return /* binding */ _createClass; }
87
+ /* harmony export */ });
88
+ function _defineProperties(target, props) {
89
+ for (var i = 0; i < props.length; i++) {
90
+ var descriptor = props[i];
91
+ descriptor.enumerable = descriptor.enumerable || false;
92
+ descriptor.configurable = true;
93
+ if ("value" in descriptor) descriptor.writable = true;
94
+ Object.defineProperty(target, descriptor.key, descriptor);
95
  }
96
+ }
97
 
98
+ function _createClass(Constructor, protoProps, staticProps) {
99
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
100
+ if (staticProps) _defineProperties(Constructor, staticProps);
101
+ return Constructor;
102
+ }
103
+
104
+ /***/ }),
105
+
106
+ /***/ 96156:
107
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
108
 
109
+ "use strict";
110
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
111
+ /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
112
+ /* harmony export */ });
113
+ function _defineProperty(obj, key, value) {
114
+ if (key in obj) {
115
+ Object.defineProperty(obj, key, {
116
+ value: value,
117
+ enumerable: true,
118
+ configurable: true,
119
+ writable: true
120
+ });
121
+ } else {
122
+ obj[key] = value;
123
  }
124
 
125
+ return obj;
126
  }
127
 
128
  /***/ }),
129
+
130
+ /***/ 22122:
131
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
132
 
133
  "use strict";
134
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
135
+ /* harmony export */ "Z": function() { return /* binding */ _extends; }
136
+ /* harmony export */ });
137
  function _extends() {
138
  _extends = Object.assign || function (target) {
139
  for (var i = 1; i < arguments.length; i++) {
153
  }
154
 
155
  /***/ }),
 
 
156
 
157
+ /***/ 41788:
158
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
 
 
 
 
159
 
160
+ "use strict";
161
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
162
+ /* harmony export */ "Z": function() { return /* binding */ _inheritsLoose; }
163
+ /* harmony export */ });
164
+ /* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14665);
165
 
166
+ function _inheritsLoose(subClass, superClass) {
167
+ subClass.prototype = Object.create(superClass.prototype);
168
+ subClass.prototype.constructor = subClass;
169
+ (0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(subClass, superClass);
170
+ }
171
 
172
  /***/ }),
173
+
174
+ /***/ 96410:
175
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
176
 
177
  "use strict";
178
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
179
+ /* harmony export */ "Z": function() { return /* binding */ _iterableToArray; }
180
+ /* harmony export */ });
181
+ function _iterableToArray(iter) {
182
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
183
+ }
184
 
185
+ /***/ }),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
 
187
+ /***/ 62303:
188
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
189
+
190
+ "use strict";
191
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
192
+ /* harmony export */ "Z": function() { return /* binding */ _nonIterableSpread; }
193
+ /* harmony export */ });
194
+ function _nonIterableSpread() {
195
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
196
  }
197
 
198
+ /***/ }),
199
+
200
+ /***/ 81253:
201
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
202
+
203
+ "use strict";
204
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
205
+ /* harmony export */ "Z": function() { return /* binding */ _objectWithoutProperties; }
206
+ /* harmony export */ });
207
+ /* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19756);
208
+
209
+ function _objectWithoutProperties(source, excluded) {
210
+ if (source == null) return {};
211
+ var target = (0,_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(source, excluded);
212
+ var key, i;
213
+
214
+ if (Object.getOwnPropertySymbols) {
215
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
216
 
217
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
218
+ key = sourceSymbolKeys[i];
219
+ if (excluded.indexOf(key) >= 0) continue;
220
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
221
+ target[key] = source[key];
222
+ }
223
+ }
224
+
225
+ return target;
226
+ }
227
 
228
  /***/ }),
229
+
230
+ /***/ 19756:
231
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
232
 
233
  "use strict";
234
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
235
+ /* harmony export */ "Z": function() { return /* binding */ _objectWithoutPropertiesLoose; }
236
+ /* harmony export */ });
237
+ function _objectWithoutPropertiesLoose(source, excluded) {
238
+ if (source == null) return {};
239
+ var target = {};
240
+ var sourceKeys = Object.keys(source);
241
+ var key, i;
242
 
243
+ for (i = 0; i < sourceKeys.length; i++) {
244
+ key = sourceKeys[i];
245
+ if (excluded.indexOf(key) >= 0) continue;
246
+ target[key] = source[key];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
 
249
+ return target;
250
+ }
 
 
 
251
 
252
+ /***/ }),
 
 
 
 
 
 
 
 
 
 
 
253
 
254
+ /***/ 14665:
255
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
 
256
 
257
+ "use strict";
258
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
259
+ /* harmony export */ "Z": function() { return /* binding */ _setPrototypeOf; }
260
+ /* harmony export */ });
261
+ function _setPrototypeOf(o, p) {
262
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
263
+ o.__proto__ = p;
264
+ return o;
265
+ };
266
+
267
+ return _setPrototypeOf(o, p);
268
+ }
269
+
270
+ /***/ }),
271
+
272
+ /***/ 34699:
273
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
274
+
275
+ "use strict";
276
+
277
+ // EXPORTS
278
+ __webpack_require__.d(__webpack_exports__, {
279
+ "Z": function() { return /* binding */ _slicedToArray; }
280
+ });
281
+
282
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
283
+ function _arrayWithHoles(arr) {
284
+ if (Array.isArray(arr)) return arr;
285
+ }
286
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
287
+ function _iterableToArrayLimit(arr, i) {
288
+ var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
289
+
290
+ if (_i == null) return;
291
+ var _arr = [];
292
+ var _n = true;
293
+ var _d = false;
294
+
295
+ var _s, _e;
296
+
297
+ try {
298
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
299
+ _arr.push(_s.value);
300
+
301
+ if (i && _arr.length === i) break;
302
+ }
303
+ } catch (err) {
304
+ _d = true;
305
+ _e = err;
306
+ } finally {
307
+ try {
308
+ if (!_n && _i["return"] != null) _i["return"]();
309
+ } finally {
310
+ if (_d) throw _e;
311
  }
312
  }
313
+
314
+ return _arr;
315
+ }
316
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
317
+ var unsupportedIterableToArray = __webpack_require__(82961);
318
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
319
+ function _nonIterableRest() {
320
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
321
+ }
322
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
323
+
324
+
325
+
326
+
327
+ function _slicedToArray(arr, i) {
328
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || (0,unsupportedIterableToArray/* default */.Z)(arr, i) || _nonIterableRest();
329
+ }
330
 
331
  /***/ }),
332
+
333
+ /***/ 78927:
334
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
335
 
336
  "use strict";
337
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
338
+ /* harmony export */ "Z": function() { return /* binding */ _toConsumableArray; }
339
+ /* harmony export */ });
340
+ /* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(83614);
341
+ /* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(96410);
342
+ /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82961);
343
+ /* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62303);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
344
 
345
 
 
 
 
346
 
 
 
 
347
 
348
+ function _toConsumableArray(arr) {
349
+ return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__/* .default */ .Z)(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__/* .default */ .Z)(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__/* .default */ .Z)();
350
+ }
 
351
 
352
+ /***/ }),
 
353
 
354
+ /***/ 90484:
355
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
356
+
357
+ "use strict";
358
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
359
+ /* harmony export */ "Z": function() { return /* binding */ _typeof; }
360
+ /* harmony export */ });
361
+ function _typeof(obj) {
362
+ "@babel/helpers - typeof";
363
+
364
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
365
+ _typeof = function _typeof(obj) {
366
+ return typeof obj;
367
+ };
368
+ } else {
369
+ _typeof = function _typeof(obj) {
370
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
371
+ };
372
  }
373
 
374
+ return _typeof(obj);
375
  }
376
 
377
  /***/ }),
 
 
378
 
379
+ /***/ 82961:
380
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
 
 
 
 
381
 
382
+ "use strict";
383
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
384
+ /* harmony export */ "Z": function() { return /* binding */ _unsupportedIterableToArray; }
385
+ /* harmony export */ });
386
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50676);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
387
 
388
+ function _unsupportedIterableToArray(o, minLen) {
389
+ if (!o) return;
390
+ if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(o, minLen);
391
+ var n = Object.prototype.toString.call(o).slice(8, -1);
392
+ if (n === "Object" && o.constructor) n = o.constructor.name;
393
+ if (n === "Map" || n === "Set") return Array.from(o);
394
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(o, minLen);
395
+ }
396
 
397
  /***/ }),
 
 
398
 
399
+ /***/ 95318:
400
+ /***/ (function(module) {
401
 
402
+ function _interopRequireDefault(obj) {
403
+ return obj && obj.__esModule ? obj : {
404
+ "default": obj
405
+ };
406
+ }
407
 
408
+ module.exports = _interopRequireDefault;
409
+ module.exports.default = module.exports, module.exports.__esModule = true;
410
 
411
+ /***/ }),
 
 
412
 
413
+ /***/ 20862:
414
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
415
 
416
+ var _typeof = __webpack_require__(50008).default;
 
 
417
 
418
+ function _getRequireWildcardCache() {
419
+ if (typeof WeakMap !== "function") return null;
420
+ var cache = new WeakMap();
421
 
422
+ _getRequireWildcardCache = function _getRequireWildcardCache() {
423
+ return cache;
424
+ };
425
 
426
+ return cache;
427
+ }
428
 
429
+ function _interopRequireWildcard(obj) {
430
+ if (obj && obj.__esModule) {
431
+ return obj;
432
+ }
433
 
434
+ if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
435
+ return {
436
+ "default": obj
437
+ };
438
+ }
439
 
440
+ var cache = _getRequireWildcardCache();
441
 
442
+ if (cache && cache.has(obj)) {
443
+ return cache.get(obj);
444
+ }
445
 
446
+ var newObj = {};
447
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
448
 
449
+ for (var key in obj) {
450
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
451
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
452
 
453
+ if (desc && (desc.get || desc.set)) {
454
+ Object.defineProperty(newObj, key, desc);
455
+ } else {
456
+ newObj[key] = obj[key];
457
+ }
458
+ }
459
+ }
460
 
461
+ newObj["default"] = obj;
462
 
463
+ if (cache) {
464
+ cache.set(obj, newObj);
465
+ }
466
 
467
+ return newObj;
468
+ }
 
 
 
 
 
 
469
 
470
+ module.exports = _interopRequireWildcard;
471
+ module.exports.default = module.exports, module.exports.__esModule = true;
472
 
473
+ /***/ }),
474
 
475
+ /***/ 50008:
476
+ /***/ (function(module) {
477
 
478
+ function _typeof(obj) {
479
+ "@babel/helpers - typeof";
 
 
 
 
 
 
 
 
 
 
480
 
481
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
482
+ module.exports = _typeof = function _typeof(obj) {
483
+ return typeof obj;
484
+ };
485
 
486
+ module.exports.default = module.exports, module.exports.__esModule = true;
487
+ } else {
488
+ module.exports = _typeof = function _typeof(obj) {
489
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
490
+ };
491
 
492
+ module.exports.default = module.exports, module.exports.__esModule = true;
493
+ }
 
 
494
 
495
+ return _typeof(obj);
496
+ }
 
 
 
 
 
 
497
 
498
+ module.exports = _typeof;
499
+ module.exports.default = module.exports, module.exports.__esModule = true;
500
 
501
+ /***/ }),
 
 
 
502
 
503
+ /***/ 70597:
504
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
 
 
 
 
505
 
506
+ "use strict";
507
+ var __webpack_unused_export__;
508
 
 
509
 
510
+ __webpack_unused_export__ = ({
511
+ value: true
512
+ });
513
 
514
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
 
 
515
 
516
+ var _react = __webpack_require__(67294);
 
 
517
 
518
+ var _react2 = _interopRequireDefault(_react);
519
 
520
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
521
 
522
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
523
 
524
+ var DEFAULT_SIZE = 24;
525
 
526
+ exports.Z = function (_ref) {
527
+ var _ref$fill = _ref.fill,
528
+ fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
529
+ _ref$width = _ref.width,
530
+ width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
531
+ _ref$height = _ref.height,
532
+ height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
533
+ _ref$style = _ref.style,
534
+ style = _ref$style === undefined ? {} : _ref$style,
535
+ props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);
536
 
537
+ return _react2.default.createElement(
538
+ 'svg',
539
+ _extends({
540
+ viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
541
+ style: _extends({ fill: fill, width: width, height: height }, style)
542
+ }, props),
543
+ _react2.default.createElement('path', { d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' })
544
+ );
545
+ };
546
 
547
  /***/ }),
548
+
549
+ /***/ 43891:
550
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
551
 
552
  "use strict";
553
+ var __webpack_unused_export__;
554
 
555
 
556
+ __webpack_unused_export__ = ({
557
  value: true
558
  });
 
559
 
560
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
561
 
562
+ var _react = __webpack_require__(67294);
563
 
564
+ var _react2 = _interopRequireDefault(_react);
565
 
566
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
567
 
568
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
569
 
570
+ var DEFAULT_SIZE = 24;
571
 
572
+ exports.Z = function (_ref) {
573
+ var _ref$fill = _ref.fill,
574
+ fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
575
+ _ref$width = _ref.width,
576
+ width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
577
+ _ref$height = _ref.height,
578
+ height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
579
+ _ref$style = _ref.style,
580
+ style = _ref$style === undefined ? {} : _ref$style,
581
+ props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);
582
 
583
+ return _react2.default.createElement(
584
+ 'svg',
585
+ _extends({
586
+ viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
587
+ style: _extends({ fill: fill, width: width, height: height }, style)
588
+ }, props),
589
+ _react2.default.createElement('path', { d: 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z' })
590
+ );
591
+ };
592
 
593
+ /***/ }),
594
 
595
+ /***/ 59693:
596
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
597
 
598
+ "use strict";
599
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
600
+ /* harmony export */ "mi": function() { return /* binding */ getContrastRatio; },
601
+ /* harmony export */ "_4": function() { return /* binding */ emphasize; },
602
+ /* harmony export */ "U1": function() { return /* binding */ fade; },
603
+ /* harmony export */ "_j": function() { return /* binding */ darken; },
604
+ /* harmony export */ "$n": function() { return /* binding */ lighten; }
605
+ /* harmony export */ });
606
+ /* unused harmony exports hexToRgb, rgbToHex, hslToRgb, decomposeColor, recomposeColor, getLuminance */
607
+ /* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60288);
608
 
 
609
 
610
+ /* eslint-disable no-use-before-define */
611
 
612
+ /**
613
+ * Returns a number whose value is limited to the given range.
614
+ *
615
+ * @param {number} value The value to be clamped
616
+ * @param {number} min The lower boundary of the output range
617
+ * @param {number} max The upper boundary of the output range
618
+ * @returns {number} A number in the range [min, max]
619
+ */
620
+ function clamp(value) {
621
+ var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
622
+ var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
623
 
624
+ if (false) {}
 
 
 
625
 
626
+ return Math.min(Math.max(min, value), max);
627
+ }
628
+ /**
629
+ * Converts a color from CSS hex format to CSS rgb format.
630
+ *
631
+ * @param {string} color - Hex color, i.e. #nnn or #nnnnnn
632
+ * @returns {string} A CSS rgb color string
633
+ */
634
 
 
 
 
 
635
 
636
+ function hexToRgb(color) {
637
+ color = color.substr(1);
638
+ var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g');
639
+ var colors = color.match(re);
640
 
641
+ if (colors && colors[0].length === 1) {
642
+ colors = colors.map(function (n) {
643
+ return n + n;
644
+ });
 
 
 
645
  }
646
 
647
+ return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) {
648
+ return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
649
+ }).join(', '), ")") : '';
650
  }
651
 
652
+ function intToHex(int) {
653
+ var hex = int.toString(16);
654
+ return hex.length === 1 ? "0".concat(hex) : hex;
655
+ }
656
+ /**
657
+ * Converts a color from CSS rgb format to CSS hex format.
658
+ *
659
+ * @param {string} color - RGB color, i.e. rgb(n, n, n)
660
+ * @returns {string} A CSS rgb color string, i.e. #nnnnnn
661
+ */
662
 
 
663
 
664
+ function rgbToHex(color) {
665
+ // Idempotent
666
+ if (color.indexOf('#') === 0) {
667
+ return color;
668
+ }
669
 
670
+ var _decomposeColor = decomposeColor(color),
671
+ values = _decomposeColor.values;
672
 
673
+ return "#".concat(values.map(function (n) {
674
+ return intToHex(n);
675
+ }).join(''));
676
+ }
677
+ /**
678
+ * Converts a color from hsl format to rgb format.
679
+ *
680
+ * @param {string} color - HSL color values
681
+ * @returns {string} rgb color values
682
+ */
683
 
684
+ function hslToRgb(color) {
685
+ color = decomposeColor(color);
686
+ var _color = color,
687
+ values = _color.values;
688
+ var h = values[0];
689
+ var s = values[1] / 100;
690
+ var l = values[2] / 100;
691
+ var a = s * Math.min(l, 1 - l);
692
 
693
+ var f = function f(n) {
694
+ var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;
695
+ return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
696
+ };
697
 
698
+ var type = 'rgb';
699
+ var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
700
 
701
+ if (color.type === 'hsla') {
702
+ type += 'a';
703
+ rgb.push(values[3]);
704
+ }
705
 
706
+ return recomposeColor({
707
+ type: type,
708
+ values: rgb
709
+ });
 
710
  }
711
+ /**
712
+ * Returns an object with the type and values of a color.
713
+ *
714
+ * Note: Does not support rgb % values.
715
+ *
716
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
717
+ * @returns {object} - A MUI color object: {type: string, values: number[]}
718
+ */
719
 
720
+ function decomposeColor(color) {
721
+ // Idempotent
722
+ if (color.type) {
723
+ return color;
724
+ }
725
 
726
+ if (color.charAt(0) === '#') {
727
+ return decomposeColor(hexToRgb(color));
728
+ }
729
 
730
+ var marker = color.indexOf('(');
731
+ var type = color.substring(0, marker);
 
 
 
 
 
732
 
733
+ if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
734
+ throw new Error( false ? 0 : (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(3, color));
735
+ }
736
 
737
+ var values = color.substring(marker + 1, color.length - 1).split(',');
738
+ values = values.map(function (value) {
739
+ return parseFloat(value);
740
+ });
741
  return {
742
+ type: type,
743
+ values: values
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
744
  };
745
  }
746
+ /**
747
+ * Converts a color object with type and values to a string.
748
+ *
749
+ * @param {object} color - Decomposed color
750
+ * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
751
+ * @param {array} color.values - [n,n,n] or [n,n,n,n]
752
+ * @returns {string} A CSS color string
753
+ */
754
 
755
+ function recomposeColor(color) {
756
+ var type = color.type;
757
+ var values = color.values;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
758
 
759
+ if (type.indexOf('rgb') !== -1) {
760
+ // Only convert the first 3 values to int (i.e. not alpha)
761
+ values = values.map(function (n, i) {
762
+ return i < 3 ? parseInt(n, 10) : n;
763
+ });
764
+ } else if (type.indexOf('hsl') !== -1) {
765
+ values[1] = "".concat(values[1], "%");
766
+ values[2] = "".concat(values[2], "%");
767
+ }
768
 
769
+ return "".concat(type, "(").concat(values.join(', '), ")");
770
+ }
771
+ /**
772
+ * Calculates the contrast ratio between two colors.
773
+ *
774
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
775
+ *
776
+ * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
777
+ * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
778
+ * @returns {number} A contrast ratio value in the range 0 - 21.
779
+ */
780
 
781
+ function getContrastRatio(foreground, background) {
782
+ var lumA = getLuminance(foreground);
783
+ var lumB = getLuminance(background);
784
+ return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
785
+ }
786
+ /**
787
+ * The relative brightness of any point in a color space,
788
+ * normalized to 0 for darkest black and 1 for lightest white.
789
+ *
790
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
791
+ *
792
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
793
+ * @returns {number} The relative brightness of the color in the range 0 - 1
794
+ */
795
 
796
+ function getLuminance(color) {
797
+ color = decomposeColor(color);
798
+ var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;
799
+ rgb = rgb.map(function (val) {
800
+ val /= 255; // normalized
801
 
802
+ return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
803
+ }); // Truncate at 3 digits
804
 
805
+ return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
806
+ }
807
+ /**
808
+ * Darken or lighten a color, depending on its luminance.
809
+ * Light colors are darkened, dark colors are lightened.
810
+ *
811
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
812
+ * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
813
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
814
+ */
815
 
816
+ function emphasize(color) {
817
+ var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
818
+ return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
819
+ }
820
+ /**
821
+ * Set the absolute transparency of a color.
822
+ * Any existing alpha values are overwritten.
823
+ *
824
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
825
+ * @param {number} value - value to set the alpha channel to in the range 0 -1
826
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
827
+ */
828
 
829
+ function fade(color, value) {
830
+ color = decomposeColor(color);
831
+ value = clamp(value);
832
 
833
+ if (color.type === 'rgb' || color.type === 'hsl') {
834
+ color.type += 'a';
835
+ }
836
 
837
+ color.values[3] = value;
838
+ return recomposeColor(color);
839
+ }
840
+ /**
841
+ * Darkens a color.
842
+ *
843
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
844
+ * @param {number} coefficient - multiplier in the range 0 - 1
845
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
846
+ */
847
 
848
+ function darken(color, coefficient) {
849
+ color = decomposeColor(color);
850
+ coefficient = clamp(coefficient);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
851
 
852
+ if (color.type.indexOf('hsl') !== -1) {
853
+ color.values[2] *= 1 - coefficient;
854
+ } else if (color.type.indexOf('rgb') !== -1) {
855
+ for (var i = 0; i < 3; i += 1) {
856
+ color.values[i] *= 1 - coefficient;
857
  }
858
+ }
859
 
860
+ return recomposeColor(color);
 
 
 
 
 
 
 
 
861
  }
862
+ /**
863
+ * Lightens a color.
864
+ *
865
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
866
+ * @param {number} coefficient - multiplier in the range 0 - 1
867
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
868
+ */
869
 
870
+ function lighten(color, coefficient) {
871
+ color = decomposeColor(color);
872
+ coefficient = clamp(coefficient);
 
 
 
 
 
873
 
874
+ if (color.type.indexOf('hsl') !== -1) {
875
+ color.values[2] += (100 - color.values[2]) * coefficient;
876
+ } else if (color.type.indexOf('rgb') !== -1) {
877
+ for (var i = 0; i < 3; i += 1) {
878
+ color.values[i] += (255 - color.values[i]) * coefficient;
879
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
880
  }
881
 
882
+ return recomposeColor(color);
883
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
884
 
885
+ /***/ }),
886
 
887
+ /***/ 49277:
888
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
889
 
890
+ "use strict";
891
 
892
+ // EXPORTS
893
+ __webpack_require__.d(__webpack_exports__, {
894
+ "Z": function() { return /* binding */ styles_createMuiTheme; }
895
+ });
896
 
897
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
898
+ var objectWithoutProperties = __webpack_require__(81253);
899
+ // EXTERNAL MODULE: ./node_modules/@material-ui/utils/esm/deepmerge.js
900
+ var deepmerge = __webpack_require__(35953);
901
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
902
+ var esm_extends = __webpack_require__(22122);
903
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createBreakpoints.js
904
 
905
 
906
+ // Sorted ASC by size. That's important.
907
+ // It can't be configured as it's used statically for propTypes.
908
+ var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.
909
 
910
+ function createBreakpoints(breakpoints) {
911
+ var _breakpoints$values = breakpoints.values,
912
+ values = _breakpoints$values === void 0 ? {
913
+ xs: 0,
914
+ sm: 600,
915
+ md: 960,
916
+ lg: 1280,
917
+ xl: 1920
918
+ } : _breakpoints$values,
919
+ _breakpoints$unit = breakpoints.unit,
920
+ unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,
921
+ _breakpoints$step = breakpoints.step,
922
+ step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,
923
+ other = (0,objectWithoutProperties/* default */.Z)(breakpoints, ["values", "unit", "step"]);
924
 
925
+ function up(key) {
926
+ var value = typeof values[key] === 'number' ? values[key] : key;
927
+ return "@media (min-width:".concat(value).concat(unit, ")");
 
 
928
  }
 
 
 
 
 
 
929
 
930
+ function down(key) {
931
+ var endIndex = keys.indexOf(key) + 1;
932
+ var upperbound = values[keys[endIndex]];
 
 
933
 
934
+ if (endIndex === keys.length) {
935
+ // xl down applies to all sizes
936
+ return up('xs');
937
+ }
 
938
 
939
+ var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;
940
+ return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
 
941
  }
 
 
 
 
 
 
 
 
942
 
943
+ function between(start, end) {
944
+ var endIndex = keys.indexOf(end);
 
 
 
 
 
 
 
945
 
946
+ if (endIndex === keys.length - 1) {
947
+ return up(start);
 
 
 
 
 
948
  }
949
 
950
+ return "@media (min-width:".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")");
951
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
952
 
953
+ function only(key) {
954
+ return between(key, key);
955
+ }
956
 
957
+ function width(key) {
958
+ return values[key];
959
+ }
960
 
961
+ return (0,esm_extends/* default */.Z)({
962
+ keys: keys,
963
+ values: values,
964
+ up: up,
965
+ down: down,
966
+ between: between,
967
+ only: only,
968
+ width: width
969
+ }, other);
970
+ }
971
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
972
+ var defineProperty = __webpack_require__(96156);
973
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createMixins.js
974
 
 
 
 
 
975
 
976
+ function createMixins(breakpoints, spacing, mixins) {
977
+ var _toolbar;
 
 
 
 
 
 
 
978
 
979
+ return (0,esm_extends/* default */.Z)({
980
+ gutters: function gutters() {
981
+ var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
982
+ // To deprecate in v4.1
983
+ // warning(
984
+ // false,
985
+ // [
986
+ // 'Material-UI: Theme.mixins.gutters() is deprecated.',
987
+ // 'You can use the source of the mixin directly:',
988
+ // `
989
+ // paddingLeft: theme.spacing(2),
990
+ // paddingRight: theme.spacing(2),
991
+ // [theme.breakpoints.up('sm')]: {
992
+ // paddingLeft: theme.spacing(3),
993
+ // paddingRight: theme.spacing(3),
994
+ // },
995
+ // `,
996
+ // ].join('\n'),
997
+ // );
998
+ return (0,esm_extends/* default */.Z)({
999
+ paddingLeft: spacing(2),
1000
+ paddingRight: spacing(2)
1001
+ }, styles, (0,defineProperty/* default */.Z)({}, breakpoints.up('sm'), (0,esm_extends/* default */.Z)({
1002
+ paddingLeft: spacing(3),
1003
+ paddingRight: spacing(3)
1004
+ }, styles[breakpoints.up('sm')])));
1005
+ },
1006
+ toolbar: (_toolbar = {
1007
+ minHeight: 56
1008
+ }, (0,defineProperty/* default */.Z)(_toolbar, "".concat(breakpoints.up('xs'), " and (orientation: landscape)"), {
1009
+ minHeight: 48
1010
+ }), (0,defineProperty/* default */.Z)(_toolbar, breakpoints.up('sm'), {
1011
+ minHeight: 64
1012
+ }), _toolbar)
1013
+ }, mixins);
1014
  }
1015
+ // EXTERNAL MODULE: ./node_modules/@material-ui/utils/esm/formatMuiErrorMessage.js
1016
+ var formatMuiErrorMessage = __webpack_require__(60288);
1017
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/common.js
1018
+ var common = {
1019
+ black: '#000',
1020
+ white: '#fff'
1021
  };
1022
+ /* harmony default export */ var colors_common = (common);
1023
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/grey.js
1024
+ var grey = {
1025
+ 50: '#fafafa',
1026
+ 100: '#f5f5f5',
1027
+ 200: '#eeeeee',
1028
+ 300: '#e0e0e0',
1029
+ 400: '#bdbdbd',
1030
+ 500: '#9e9e9e',
1031
+ 600: '#757575',
1032
+ 700: '#616161',
1033
+ 800: '#424242',
1034
+ 900: '#212121',
1035
+ A100: '#d5d5d5',
1036
+ A200: '#aaaaaa',
1037
+ A400: '#303030',
1038
+ A700: '#616161'
1039
+ };
1040
+ /* harmony default export */ var colors_grey = (grey);
1041
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/indigo.js
1042
+ var indigo = {
1043
+ 50: '#e8eaf6',
1044
+ 100: '#c5cae9',
1045
+ 200: '#9fa8da',
1046
+ 300: '#7986cb',
1047
+ 400: '#5c6bc0',
1048
+ 500: '#3f51b5',
1049
+ 600: '#3949ab',
1050
+ 700: '#303f9f',
1051
+ 800: '#283593',
1052
+ 900: '#1a237e',
1053
+ A100: '#8c9eff',
1054
+ A200: '#536dfe',
1055
+ A400: '#3d5afe',
1056
+ A700: '#304ffe'
1057
+ };
1058
+ /* harmony default export */ var colors_indigo = (indigo);
1059
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/pink.js
1060
+ var pink = {
1061
+ 50: '#fce4ec',
1062
+ 100: '#f8bbd0',
1063
+ 200: '#f48fb1',
1064
+ 300: '#f06292',
1065
+ 400: '#ec407a',
1066
+ 500: '#e91e63',
1067
+ 600: '#d81b60',
1068
+ 700: '#c2185b',
1069
+ 800: '#ad1457',
1070
+ 900: '#880e4f',
1071
+ A100: '#ff80ab',
1072
+ A200: '#ff4081',
1073
+ A400: '#f50057',
1074
+ A700: '#c51162'
1075
+ };
1076
+ /* harmony default export */ var colors_pink = (pink);
1077
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/red.js
1078
+ var red = {
1079
+ 50: '#ffebee',
1080
+ 100: '#ffcdd2',
1081
+ 200: '#ef9a9a',
1082
+ 300: '#e57373',
1083
+ 400: '#ef5350',
1084
+ 500: '#f44336',
1085
+ 600: '#e53935',
1086
+ 700: '#d32f2f',
1087
+ 800: '#c62828',
1088
+ 900: '#b71c1c',
1089
+ A100: '#ff8a80',
1090
+ A200: '#ff5252',
1091
+ A400: '#ff1744',
1092
+ A700: '#d50000'
1093
+ };
1094
+ /* harmony default export */ var colors_red = (red);
1095
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/orange.js
1096
+ var orange = {
1097
+ 50: '#fff3e0',
1098
+ 100: '#ffe0b2',
1099
+ 200: '#ffcc80',
1100
+ 300: '#ffb74d',
1101
+ 400: '#ffa726',
1102
+ 500: '#ff9800',
1103
+ 600: '#fb8c00',
1104
+ 700: '#f57c00',
1105
+ 800: '#ef6c00',
1106
+ 900: '#e65100',
1107
+ A100: '#ffd180',
1108
+ A200: '#ffab40',
1109
+ A400: '#ff9100',
1110
+ A700: '#ff6d00'
1111
+ };
1112
+ /* harmony default export */ var colors_orange = (orange);
1113
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/blue.js
1114
+ var blue = {
1115
+ 50: '#e3f2fd',
1116
+ 100: '#bbdefb',
1117
+ 200: '#90caf9',
1118
+ 300: '#64b5f6',
1119
+ 400: '#42a5f5',
1120
+ 500: '#2196f3',
1121
+ 600: '#1e88e5',
1122
+ 700: '#1976d2',
1123
+ 800: '#1565c0',
1124
+ 900: '#0d47a1',
1125
+ A100: '#82b1ff',
1126
+ A200: '#448aff',
1127
+ A400: '#2979ff',
1128
+ A700: '#2962ff'
1129
+ };
1130
+ /* harmony default export */ var colors_blue = (blue);
1131
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/colors/green.js
1132
+ var green = {
1133
+ 50: '#e8f5e9',
1134
+ 100: '#c8e6c9',
1135
+ 200: '#a5d6a7',
1136
+ 300: '#81c784',
1137
+ 400: '#66bb6a',
1138
+ 500: '#4caf50',
1139
+ 600: '#43a047',
1140
+ 700: '#388e3c',
1141
+ 800: '#2e7d32',
1142
+ 900: '#1b5e20',
1143
+ A100: '#b9f6ca',
1144
+ A200: '#69f0ae',
1145
+ A400: '#00e676',
1146
+ A700: '#00c853'
1147
+ };
1148
+ /* harmony default export */ var colors_green = (green);
1149
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/styles/colorManipulator.js
1150
+ var colorManipulator = __webpack_require__(59693);
1151
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createPalette.js
1152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1153
 
 
 
 
 
 
1154
 
 
 
 
1155
 
 
 
1156
 
 
1157
 
1158
 
 
 
 
 
 
 
1159
 
 
 
 
1160
 
 
 
 
 
1161
 
 
 
 
 
 
 
1162
 
1163
 
 
 
 
 
 
 
 
 
1164
 
1165
+ var light = {
1166
+ // The colors used to style the text.
1167
+ text: {
1168
+ // The most important text.
1169
+ primary: 'rgba(0, 0, 0, 0.87)',
1170
+ // Secondary text.
1171
+ secondary: 'rgba(0, 0, 0, 0.54)',
1172
+ // Disabled text have even lower visual prominence.
1173
+ disabled: 'rgba(0, 0, 0, 0.38)',
1174
+ // Text hints.
1175
+ hint: 'rgba(0, 0, 0, 0.38)'
1176
+ },
1177
+ // The color used to divide different elements.
1178
+ divider: 'rgba(0, 0, 0, 0.12)',
1179
+ // The background colors used to style the surfaces.
1180
+ // Consistency between these values is important.
1181
+ background: {
1182
+ paper: colors_common.white,
1183
+ default: colors_grey[50]
1184
+ },
1185
+ // The colors used to style the action elements.
1186
+ action: {
1187
+ // The color of an active action like an icon button.
1188
+ active: 'rgba(0, 0, 0, 0.54)',
1189
+ // The color of an hovered action.
1190
+ hover: 'rgba(0, 0, 0, 0.04)',
1191
+ hoverOpacity: 0.04,
1192
+ // The color of a selected action.
1193
+ selected: 'rgba(0, 0, 0, 0.08)',
1194
+ selectedOpacity: 0.08,
1195
+ // The color of a disabled action.
1196
+ disabled: 'rgba(0, 0, 0, 0.26)',
1197
+ // The background color of a disabled action.
1198
+ disabledBackground: 'rgba(0, 0, 0, 0.12)',
1199
+ disabledOpacity: 0.38,
1200
+ focus: 'rgba(0, 0, 0, 0.12)',
1201
+ focusOpacity: 0.12,
1202
+ activatedOpacity: 0.12
1203
+ }
1204
+ };
1205
+ var dark = {
1206
+ text: {
1207
+ primary: colors_common.white,
1208
+ secondary: 'rgba(255, 255, 255, 0.7)',
1209
+ disabled: 'rgba(255, 255, 255, 0.5)',
1210
+ hint: 'rgba(255, 255, 255, 0.5)',
1211
+ icon: 'rgba(255, 255, 255, 0.5)'
1212
+ },
1213
+ divider: 'rgba(255, 255, 255, 0.12)',
1214
+ background: {
1215
+ paper: colors_grey[800],
1216
+ default: '#303030'
1217
+ },
1218
+ action: {
1219
+ active: colors_common.white,
1220
+ hover: 'rgba(255, 255, 255, 0.08)',
1221
+ hoverOpacity: 0.08,
1222
+ selected: 'rgba(255, 255, 255, 0.16)',
1223
+ selectedOpacity: 0.16,
1224
+ disabled: 'rgba(255, 255, 255, 0.3)',
1225
+ disabledBackground: 'rgba(255, 255, 255, 0.12)',
1226
+ disabledOpacity: 0.38,
1227
+ focus: 'rgba(255, 255, 255, 0.12)',
1228
+ focusOpacity: 0.12,
1229
+ activatedOpacity: 0.24
1230
+ }
1231
+ };
1232
 
1233
+ function addLightOrDark(intent, direction, shade, tonalOffset) {
1234
+ var tonalOffsetLight = tonalOffset.light || tonalOffset;
1235
+ var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;
 
 
1236
 
1237
+ if (!intent[direction]) {
1238
+ if (intent.hasOwnProperty(shade)) {
1239
+ intent[direction] = intent[shade];
1240
+ } else if (direction === 'light') {
1241
+ intent.light = (0,colorManipulator/* lighten */.$n)(intent.main, tonalOffsetLight);
1242
+ } else if (direction === 'dark') {
1243
+ intent.dark = (0,colorManipulator/* darken */._j)(intent.main, tonalOffsetDark);
1244
+ }
1245
+ }
1246
+ }
1247
 
1248
+ function createPalette(palette) {
1249
+ var _palette$primary = palette.primary,
1250
+ primary = _palette$primary === void 0 ? {
1251
+ light: colors_indigo[300],
1252
+ main: colors_indigo[500],
1253
+ dark: colors_indigo[700]
1254
+ } : _palette$primary,
1255
+ _palette$secondary = palette.secondary,
1256
+ secondary = _palette$secondary === void 0 ? {
1257
+ light: colors_pink.A200,
1258
+ main: colors_pink.A400,
1259
+ dark: colors_pink.A700
1260
+ } : _palette$secondary,
1261
+ _palette$error = palette.error,
1262
+ error = _palette$error === void 0 ? {
1263
+ light: colors_red[300],
1264
+ main: colors_red[500],
1265
+ dark: colors_red[700]
1266
+ } : _palette$error,
1267
+ _palette$warning = palette.warning,
1268
+ warning = _palette$warning === void 0 ? {
1269
+ light: colors_orange[300],
1270
+ main: colors_orange[500],
1271
+ dark: colors_orange[700]
1272
+ } : _palette$warning,
1273
+ _palette$info = palette.info,
1274
+ info = _palette$info === void 0 ? {
1275
+ light: colors_blue[300],
1276
+ main: colors_blue[500],
1277
+ dark: colors_blue[700]
1278
+ } : _palette$info,
1279
+ _palette$success = palette.success,
1280
+ success = _palette$success === void 0 ? {
1281
+ light: colors_green[300],
1282
+ main: colors_green[500],
1283
+ dark: colors_green[700]
1284
+ } : _palette$success,
1285
+ _palette$type = palette.type,
1286
+ type = _palette$type === void 0 ? 'light' : _palette$type,
1287
+ _palette$contrastThre = palette.contrastThreshold,
1288
+ contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre,
1289
+ _palette$tonalOffset = palette.tonalOffset,
1290
+ tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset,
1291
+ other = (0,objectWithoutProperties/* default */.Z)(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]); // Use the same logic as
1292
+ // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59
1293
+ // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54
1294
 
 
 
 
1295
 
1296
+ function getContrastText(background) {
1297
+ var contrastText = (0,colorManipulator/* getContrastRatio */.mi)(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
1298
 
1299
+ if (false) { var contrast; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1300
 
1301
+ return contrastText;
1302
+ }
1303
 
1304
+ var augmentColor = function augmentColor(color) {
1305
+ var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
1306
+ var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;
1307
+ var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700;
1308
+ color = (0,esm_extends/* default */.Z)({}, color);
1309
 
1310
+ if (!color.main && color[mainShade]) {
1311
+ color.main = color[mainShade];
1312
+ }
1313
 
1314
+ if (!color.main) {
1315
+ throw new Error( false ? 0 : (0,formatMuiErrorMessage/* default */.Z)(4, mainShade));
1316
+ }
1317
 
1318
+ if (typeof color.main !== 'string') {
1319
+ throw new Error( false ? 0 : (0,formatMuiErrorMessage/* default */.Z)(5, JSON.stringify(color.main)));
1320
+ }
 
 
 
1321
 
1322
+ addLightOrDark(color, 'light', lightShade, tonalOffset);
1323
+ addLightOrDark(color, 'dark', darkShade, tonalOffset);
 
 
 
 
 
 
 
1324
 
1325
+ if (!color.contrastText) {
1326
+ color.contrastText = getContrastText(color.main);
1327
+ }
 
1328
 
1329
+ return color;
1330
+ };
1331
 
1332
+ var types = {
1333
+ dark: dark,
1334
+ light: light
1335
+ };
1336
 
1337
+ if (false) {}
 
 
 
 
 
 
 
 
 
1338
 
1339
+ var paletteOutput = (0,deepmerge/* default */.Z)((0,esm_extends/* default */.Z)({
1340
+ // A collection of common colors.
1341
+ common: colors_common,
1342
+ // The palette type, can be light or dark.
1343
+ type: type,
1344
+ // The colors used to represent primary interface elements for a user.
1345
+ primary: augmentColor(primary),
1346
+ // The colors used to represent secondary interface elements for a user.
1347
+ secondary: augmentColor(secondary, 'A400', 'A200', 'A700'),
1348
+ // The colors used to represent interface elements that the user should be made aware of.
1349
+ error: augmentColor(error),
1350
+ // The colors used to represent potentially dangerous actions or important messages.
1351
+ warning: augmentColor(warning),
1352
+ // The colors used to present information to the user that is neutral and not necessarily important.
1353
+ info: augmentColor(info),
1354
+ // The colors used to indicate the successful completion of an action that user triggered.
1355
+ success: augmentColor(success),
1356
+ // The grey colors.
1357
+ grey: colors_grey,
1358
+ // Used by `getContrastText()` to maximize the contrast between
1359
+ // the background and the text.
1360
+ contrastThreshold: contrastThreshold,
1361
+ // Takes a background color and returns the text color that maximizes the contrast.
1362
+ getContrastText: getContrastText,
1363
+ // Generate a rich color object.
1364
+ augmentColor: augmentColor,
1365
+ // Used by the functions below to shift a color's luminance by approximately
1366
+ // two indexes within its tonal palette.
1367
+ // E.g., shift from Red 500 to Red 300 or Red 700.
1368
+ tonalOffset: tonalOffset
1369
+ }, types[type]), other);
1370
+ return paletteOutput;
1371
  }
1372
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createTypography.js
1373
 
 
 
 
 
 
 
1374
 
 
 
 
1375
 
 
 
 
 
 
1376
 
1377
+ function round(value) {
1378
+ return Math.round(value * 1e5) / 1e5;
1379
  }
 
 
1380
 
1381
+ var caseAllCaps = {
1382
+ textTransform: 'uppercase'
1383
+ };
1384
+ var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
1385
  /**
1386
+ * @see @link{https://material.io/design/typography/the-type-system.html}
1387
+ * @see @link{https://material.io/design/typography/understanding-typography.html}
1388
  */
 
 
 
 
 
 
 
 
 
1389
 
1390
+ function createTypography(palette, typography) {
1391
+ var _ref = typeof typography === 'function' ? typography(palette) : typography,
1392
+ _ref$fontFamily = _ref.fontFamily,
1393
+ fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily,
1394
+ _ref$fontSize = _ref.fontSize,
1395
+ fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize,
1396
+ _ref$fontWeightLight = _ref.fontWeightLight,
1397
+ fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight,
1398
+ _ref$fontWeightRegula = _ref.fontWeightRegular,
1399
+ fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula,
1400
+ _ref$fontWeightMedium = _ref.fontWeightMedium,
1401
+ fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium,
1402
+ _ref$fontWeightBold = _ref.fontWeightBold,
1403
+ fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold,
1404
+ _ref$htmlFontSize = _ref.htmlFontSize,
1405
+ htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize,
1406
+ allVariants = _ref.allVariants,
1407
+ pxToRem2 = _ref.pxToRem,
1408
+ other = (0,objectWithoutProperties/* default */.Z)(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
1409
 
1410
+ if (false) {}
1411
 
1412
+ var coef = fontSize / 14;
 
 
 
 
 
 
 
1413
 
1414
+ var pxToRem = pxToRem2 || function (size) {
1415
+ return "".concat(size / htmlFontSize * coef, "rem");
1416
+ };
1417
 
1418
+ var buildVariant = function buildVariant(fontWeight, size, lineHeight, letterSpacing, casing) {
1419
+ return (0,esm_extends/* default */.Z)({
1420
+ fontFamily: fontFamily,
1421
+ fontWeight: fontWeight,
1422
+ fontSize: pxToRem(size),
1423
+ // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
1424
+ lineHeight: lineHeight
1425
+ }, fontFamily === defaultFontFamily ? {
1426
+ letterSpacing: "".concat(round(letterSpacing / size), "em")
1427
+ } : {}, casing, allVariants);
1428
+ };
1429
 
1430
+ var variants = {
1431
+ h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),
1432
+ h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),
1433
+ h3: buildVariant(fontWeightRegular, 48, 1.167, 0),
1434
+ h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),
1435
+ h5: buildVariant(fontWeightRegular, 24, 1.334, 0),
1436
+ h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),
1437
+ subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),
1438
+ subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),
1439
+ body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),
1440
+ body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),
1441
+ button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),
1442
+ caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
1443
+ overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
1444
+ };
1445
+ return (0,deepmerge/* default */.Z)((0,esm_extends/* default */.Z)({
1446
+ htmlFontSize: htmlFontSize,
1447
+ pxToRem: pxToRem,
1448
+ round: round,
1449
+ // TODO v5: remove
1450
+ fontFamily: fontFamily,
1451
+ fontSize: fontSize,
1452
+ fontWeightLight: fontWeightLight,
1453
+ fontWeightRegular: fontWeightRegular,
1454
+ fontWeightMedium: fontWeightMedium,
1455
+ fontWeightBold: fontWeightBold
1456
+ }, variants), other, {
1457
+ clone: false // No need to clone deep
1458
+
1459
+ });
1460
  }
1461
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/shadows.js
1462
+ var shadowKeyUmbraOpacity = 0.2;
1463
+ var shadowKeyPenumbraOpacity = 0.14;
1464
+ var shadowAmbientShadowOpacity = 0.12;
1465
 
1466
+ function createShadow() {
1467
+ return ["".concat(arguments.length <= 0 ? undefined : arguments[0], "px ").concat(arguments.length <= 1 ? undefined : arguments[1], "px ").concat(arguments.length <= 2 ? undefined : arguments[2], "px ").concat(arguments.length <= 3 ? undefined : arguments[3], "px rgba(0,0,0,").concat(shadowKeyUmbraOpacity, ")"), "".concat(arguments.length <= 4 ? undefined : arguments[4], "px ").concat(arguments.length <= 5 ? undefined : arguments[5], "px ").concat(arguments.length <= 6 ? undefined : arguments[6], "px ").concat(arguments.length <= 7 ? undefined : arguments[7], "px rgba(0,0,0,").concat(shadowKeyPenumbraOpacity, ")"), "".concat(arguments.length <= 8 ? undefined : arguments[8], "px ").concat(arguments.length <= 9 ? undefined : arguments[9], "px ").concat(arguments.length <= 10 ? undefined : arguments[10], "px ").concat(arguments.length <= 11 ? undefined : arguments[11], "px rgba(0,0,0,").concat(shadowAmbientShadowOpacity, ")")].join(',');
1468
+ } // Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss
1469
 
 
 
 
1470
 
1471
+ var shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
1472
+ /* harmony default export */ var styles_shadows = (shadows);
1473
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/shape.js
1474
+ var shape = {
1475
+ borderRadius: 4
1476
+ };
1477
+ /* harmony default export */ var styles_shape = (shape);
1478
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
1479
+ var slicedToArray = __webpack_require__(34699);
1480
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
1481
+ var esm_typeof = __webpack_require__(90484);
1482
+ // EXTERNAL MODULE: ./node_modules/prop-types/index.js
1483
+ var prop_types = __webpack_require__(45697);
1484
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/system/esm/breakpoints.js
1485
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1486
 
 
 
 
1487
 
 
 
 
1488
 
1489
+ // The breakpoint **start** at this value.
1490
+ // For instance with the first breakpoint xs: [xs, sm[.
1491
 
1492
+ var values = {
1493
+ xs: 0,
1494
+ sm: 600,
1495
+ md: 960,
1496
+ lg: 1280,
1497
+ xl: 1920
1498
+ };
1499
+ var defaultBreakpoints = {
1500
+ // Sorted ASC by size. That's important.
1501
+ // It can't be configured as it's used statically for propTypes.
1502
+ keys: ['xs', 'sm', 'md', 'lg', 'xl'],
1503
+ up: function up(key) {
1504
+ return "@media (min-width:".concat(values[key], "px)");
1505
+ }
1506
+ };
1507
+ function handleBreakpoints(props, propValue, styleFromPropValue) {
1508
+ if (false) {}
1509
 
1510
+ if (Array.isArray(propValue)) {
1511
+ var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
1512
+ return propValue.reduce(function (acc, item, index) {
1513
+ acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
1514
+ return acc;
1515
+ }, {});
1516
+ }
1517
 
1518
+ if ((0,esm_typeof/* default */.Z)(propValue) === 'object') {
1519
+ var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
 
 
 
1520
 
1521
+ return Object.keys(propValue).reduce(function (acc, breakpoint) {
1522
+ acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);
1523
+ return acc;
1524
+ }, {});
1525
+ }
1526
 
1527
+ var output = styleFromPropValue(propValue);
1528
+ return output;
1529
  }
 
1530
 
1531
+ function breakpoints(styleFunction) {
1532
+ var newStyleFunction = function newStyleFunction(props) {
1533
+ var base = styleFunction(props);
1534
+ var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
1535
+ var extended = themeBreakpoints.keys.reduce(function (acc, key) {
1536
+ if (props[key]) {
1537
+ acc = acc || {};
1538
+ acc[themeBreakpoints.up(key)] = styleFunction(_extends({
1539
+ theme: props.theme
1540
+ }, props[key]));
1541
+ }
1542
 
1543
+ return acc;
1544
+ }, null);
1545
+ return merge(base, extended);
1546
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
1547
 
1548
+ newStyleFunction.propTypes = false ? 0 : {};
1549
+ newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(_toConsumableArray(styleFunction.filterProps));
1550
+ return newStyleFunction;
 
 
 
 
1551
  }
 
 
1552
 
1553
+ /* harmony default export */ var esm_breakpoints = ((/* unused pure expression or super */ null && (breakpoints)));
1554
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/system/esm/merge.js
1555
 
1556
+
1557
+ function merge_merge(acc, item) {
1558
+ if (!item) {
1559
+ return acc;
1560
+ }
1561
+
1562
+ return (0,deepmerge/* default */.Z)(acc, item, {
1563
+ clone: false // No need to clone deep, it's way faster.
1564
+
1565
+ });
1566
  }
 
 
 
 
 
 
 
 
 
1567
 
1568
+ /* harmony default export */ var esm_merge = (merge_merge);
1569
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/system/esm/memoize.js
1570
+ function memoize(fn) {
1571
+ var cache = {};
1572
+ return function (arg) {
1573
+ if (cache[arg] === undefined) {
1574
+ cache[arg] = fn(arg);
1575
+ }
1576
 
1577
+ return cache[arg];
 
1578
  };
1579
  }
1580
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/system/esm/spacing.js
1581
+
1582
+
1583
+
 
 
 
 
 
 
1584
 
1585
 
1586
+ var properties = {
1587
+ m: 'margin',
1588
+ p: 'padding'
1589
+ };
1590
+ var directions = {
1591
+ t: 'Top',
1592
+ r: 'Right',
1593
+ b: 'Bottom',
1594
+ l: 'Left',
1595
+ x: ['Left', 'Right'],
1596
+ y: ['Top', 'Bottom']
1597
+ };
1598
+ var aliases = {
1599
+ marginX: 'mx',
1600
+ marginY: 'my',
1601
+ paddingX: 'px',
1602
+ paddingY: 'py'
1603
+ }; // memoize() impact:
1604
+ // From 300,000 ops/sec
1605
+ // To 350,000 ops/sec
1606
+
1607
+ var getCssProperties = memoize(function (prop) {
1608
+ // It's not a shorthand notation.
1609
+ if (prop.length > 2) {
1610
+ if (aliases[prop]) {
1611
+ prop = aliases[prop];
1612
+ } else {
1613
+ return [prop];
1614
  }
1615
  }
 
1616
 
1617
+ var _prop$split = prop.split(''),
1618
+ _prop$split2 = (0,slicedToArray/* default */.Z)(_prop$split, 2),
1619
+ a = _prop$split2[0],
1620
+ b = _prop$split2[1];
 
 
1621
 
1622
+ var property = properties[a];
1623
+ var direction = directions[b] || '';
1624
+ return Array.isArray(direction) ? direction.map(function (dir) {
1625
+ return property + dir;
1626
+ }) : [property + direction];
1627
+ });
1628
+ var spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
1629
+ function createUnarySpacing(theme) {
1630
+ var themeSpacing = theme.spacing || 8;
1631
 
1632
+ if (typeof themeSpacing === 'number') {
1633
+ return function (abs) {
1634
+ if (false) {}
 
 
 
 
 
 
 
 
 
 
 
 
1635
 
1636
+ return themeSpacing * abs;
1637
+ };
 
 
 
 
 
 
1638
  }
1639
 
1640
+ if (Array.isArray(themeSpacing)) {
1641
+ return function (abs) {
1642
+ if (false) {}
 
 
 
1643
 
1644
+ return themeSpacing[abs];
1645
+ };
 
 
 
1646
  }
1647
 
1648
+ if (typeof themeSpacing === 'function') {
1649
+ return themeSpacing;
 
 
 
 
1650
  }
1651
 
1652
+ if (false) {}
 
 
 
 
 
 
 
 
 
1653
 
1654
+ return function () {
1655
+ return undefined;
1656
  };
1657
+ }
 
 
 
 
1658
 
1659
+ function getValue(transformer, propValue) {
1660
+ if (typeof propValue === 'string' || propValue == null) {
1661
+ return propValue;
1662
+ }
 
1663
 
1664
+ var abs = Math.abs(propValue);
1665
+ var transformed = transformer(abs);
 
1666
 
1667
+ if (propValue >= 0) {
1668
+ return transformed;
1669
+ }
1670
 
1671
+ if (typeof transformed === 'number') {
1672
+ return -transformed;
1673
+ }
1674
+
1675
+ return "-".concat(transformed);
1676
  }
 
1677
 
1678
+ function getStyleFromPropValue(cssProperties, transformer) {
1679
+ return function (propValue) {
1680
+ return cssProperties.reduce(function (acc, cssProperty) {
1681
+ acc[cssProperty] = getValue(transformer, propValue);
1682
+ return acc;
1683
+ }, {});
1684
+ };
1685
+ }
1686
 
1687
+ function spacing(props) {
1688
+ var theme = props.theme;
1689
+ var transformer = createUnarySpacing(theme);
1690
+ return Object.keys(props).map(function (prop) {
1691
+ // Using a hash computation over an array iteration could be faster, but with only 28 items,
1692
+ // it's doesn't worth the bundle size.
1693
+ if (spacingKeys.indexOf(prop) === -1) {
1694
+ return null;
1695
+ }
1696
 
1697
+ var cssProperties = getCssProperties(prop);
1698
+ var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
1699
+ var propValue = props[prop];
1700
+ return handleBreakpoints(props, propValue, styleFromPropValue);
1701
+ }).reduce(esm_merge, {});
1702
+ }
1703
 
1704
+ spacing.propTypes = false ? 0 : {};
1705
+ spacing.filterProps = spacingKeys;
1706
+ /* harmony default export */ var esm_spacing = ((/* unused pure expression or super */ null && (spacing)));
1707
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createSpacing.js
1708
 
1709
+ var warnOnce;
1710
+ function createSpacing() {
1711
+ var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8;
1712
 
1713
+ // Already transformed.
1714
+ if (spacingInput.mui) {
1715
+ return spacingInput;
1716
+ } // Material Design layouts are visually balanced. Most measurements align to an 8dp grid applied, which aligns both spacing and the overall layout.
1717
+ // Smaller components, such as icons and type, can align to a 4dp grid.
1718
+ // https://material.io/design/layout/understanding-layout.html#usage
1719
 
1720
 
1721
+ var transform = createUnarySpacing({
1722
+ spacing: spacingInput
1723
+ });
1724
 
1725
+ var spacing = function spacing() {
1726
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1727
+ args[_key] = arguments[_key];
1728
+ }
1729
 
1730
+ if (false) {}
 
 
1731
 
1732
+ if (args.length === 0) {
1733
+ return transform(1);
1734
+ }
1735
 
1736
+ if (args.length === 1) {
1737
+ return transform(args[0]);
1738
+ }
 
 
1739
 
1740
+ return args.map(function (argument) {
1741
+ if (typeof argument === 'string') {
1742
+ return argument;
1743
+ }
1744
 
1745
+ var output = transform(argument);
1746
+ return typeof output === 'number' ? "".concat(output, "px") : output;
1747
+ }).join(' ');
1748
+ }; // Backward compatibility, to remove in v5.
1749
 
1750
 
1751
+ Object.defineProperty(spacing, 'unit', {
1752
+ get: function get() {
1753
+ if (false) {}
 
 
 
 
 
 
 
 
 
1754
 
1755
+ return spacingInput;
 
 
1756
  }
1757
+ });
1758
+ spacing.mui = true;
1759
+ return spacing;
1760
+ }
1761
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/styles/transitions.js
1762
+ var transitions = __webpack_require__(43366);
1763
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/styles/zIndex.js
1764
+ var zIndex = __webpack_require__(92781);
1765
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/createMuiTheme.js
1766
 
 
 
 
 
 
 
 
 
 
 
 
 
1767
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1768
 
1769
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1770
 
 
 
1771
 
 
1772
 
 
 
 
1773
 
1774
 
1775
 
 
 
 
 
 
 
1776
 
 
 
 
 
1777
 
 
 
 
 
 
 
1778
 
1779
+ function createMuiTheme() {
1780
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1781
 
1782
+ var _options$breakpoints = options.breakpoints,
1783
+ breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,
1784
+ _options$mixins = options.mixins,
1785
+ mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,
1786
+ _options$palette = options.palette,
1787
+ paletteInput = _options$palette === void 0 ? {} : _options$palette,
1788
+ spacingInput = options.spacing,
1789
+ _options$typography = options.typography,
1790
+ typographyInput = _options$typography === void 0 ? {} : _options$typography,
1791
+ other = (0,objectWithoutProperties/* default */.Z)(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
1792
 
1793
+ var palette = createPalette(paletteInput);
1794
+ var breakpoints = createBreakpoints(breakpointsInput);
1795
+ var spacing = createSpacing(spacingInput);
1796
+ var muiTheme = (0,deepmerge/* default */.Z)({
1797
+ breakpoints: breakpoints,
1798
+ direction: 'ltr',
1799
+ mixins: createMixins(breakpoints, spacing, mixinsInput),
1800
+ overrides: {},
1801
+ // Inject custom styles
1802
+ palette: palette,
1803
+ props: {},
1804
+ // Provide default props
1805
+ shadows: styles_shadows,
1806
+ typography: createTypography(palette, typographyInput),
1807
+ spacing: spacing,
1808
+ shape: styles_shape,
1809
+ transitions: transitions/* default */.ZP,
1810
+ zIndex: zIndex/* default */.Z
1811
+ }, other);
1812
 
1813
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1814
+ args[_key - 1] = arguments[_key];
 
1815
  }
1816
 
1817
+ muiTheme = args.reduce(function (acc, argument) {
1818
+ return (0,deepmerge/* default */.Z)(acc, argument);
1819
+ }, muiTheme);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1820
 
1821
+ if (false) { var traverse, pseudoClasses; }
1822
 
1823
+ return muiTheme;
1824
+ }
1825
 
1826
+ /* harmony default export */ var styles_createMuiTheme = (createMuiTheme);
1827
 
1828
+ /***/ }),
 
 
1829
 
1830
+ /***/ 99700:
1831
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
 
 
1832
 
1833
+ "use strict";
1834
+ /* harmony import */ var _createMuiTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49277);
 
 
 
 
 
 
 
1835
 
1836
+ var defaultTheme = (0,_createMuiTheme__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)();
1837
+ /* harmony default export */ __webpack_exports__["Z"] = (defaultTheme);
 
 
 
 
 
 
 
 
1838
 
1839
+ /***/ }),
 
1840
 
1841
+ /***/ 43366:
1842
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
 
 
 
 
 
 
 
1843
 
1844
+ "use strict";
1845
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1846
+ /* harmony export */ "x9": function() { return /* binding */ duration; }
1847
+ /* harmony export */ });
1848
+ /* unused harmony export easing */
1849
+ /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81253);
1850
 
1851
+ // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
1852
+ // to learn the context in which each easing should be used.
1853
+ var easing = {
1854
+ // This is the most common easing curve.
1855
+ easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
1856
+ // Objects enter the screen at full velocity from off-screen and
1857
+ // slowly decelerate to a resting point.
1858
+ easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
1859
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
1860
+ easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
1861
+ // The sharp curve is used by objects that may return to the screen at any time.
1862
+ sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
1863
+ }; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
1864
+ // to learn when use what timing
1865
 
1866
+ var duration = {
1867
+ shortest: 150,
1868
+ shorter: 200,
1869
+ short: 250,
1870
+ // most basic recommended timing
1871
+ standard: 300,
1872
+ // this is to be used in complex animations
1873
+ complex: 375,
1874
+ // recommended when something is entering screen
1875
+ enteringScreen: 225,
1876
+ // recommended when something is leaving screen
1877
+ leavingScreen: 195
1878
+ };
1879
 
1880
+ function formatMs(milliseconds) {
1881
+ return "".concat(Math.round(milliseconds), "ms");
 
 
 
 
 
 
1882
  }
1883
  /**
1884
+ * @param {string|Array} props
1885
+ * @param {object} param
1886
+ * @param {string} param.prop
1887
+ * @param {number} param.duration
1888
+ * @param {string} param.easing
1889
+ * @param {number} param.delay
1890
  */
1891
 
1892
 
1893
+ /* harmony default export */ __webpack_exports__["ZP"] = ({
1894
+ easing: easing,
1895
+ duration: duration,
1896
+ create: function create() {
1897
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
1898
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1899
 
1900
+ var _options$duration = options.duration,
1901
+ durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
1902
+ _options$easing = options.easing,
1903
+ easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
1904
+ _options$delay = options.delay,
1905
+ delay = _options$delay === void 0 ? 0 : _options$delay,
1906
+ other = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(options, ["duration", "easing", "delay"]);
1907
+
1908
+ if (false) { var isNumber, isString; }
1909
+
1910
+ return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
1911
+ return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay));
1912
+ }).join(',');
1913
+ },
1914
+ getAutoHeightDuration: function getAutoHeightDuration(height) {
1915
+ if (!height) {
1916
+ return 0;
1917
  }
1918
 
1919
+ var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
1920
 
1921
+ return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
1922
+ }
1923
+ });
1924
 
1925
+ /***/ }),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1926
 
1927
+ /***/ 14670:
1928
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
1929
 
1930
+ "use strict";
 
1931
 
1932
+ // EXPORTS
1933
+ __webpack_require__.d(__webpack_exports__, {
1934
+ "Z": function() { return /* binding */ styles_withStyles; }
1935
+ });
1936
 
1937
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
1938
+ var esm_extends = __webpack_require__(22122);
1939
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
1940
+ var objectWithoutProperties = __webpack_require__(81253);
1941
+ // EXTERNAL MODULE: ./node_modules/react/index.js
1942
+ var react = __webpack_require__(67294);
1943
+ // EXTERNAL MODULE: ./node_modules/prop-types/index.js
1944
+ var prop_types = __webpack_require__(45697);
1945
+ // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
1946
+ var hoist_non_react_statics_cjs = __webpack_require__(8679);
1947
+ var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
1948
+ // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js + 4 modules
1949
+ var makeStyles = __webpack_require__(73914);
1950
+ // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js
1951
+ var getThemeProps = __webpack_require__(93869);
1952
+ // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/useTheme/useTheme.js
1953
+ var useTheme = __webpack_require__(159);
1954
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/withStyles/withStyles.js
1955
 
1956
 
1957
 
1960
 
1961
 
1962
 
1963
+ // Link a style sheet with a component.
1964
+ // It does not modify the component passed to it;
1965
+ // instead, it returns a new component, with a `classes` property.
1966
 
1967
+ var withStyles = function withStyles(stylesOrCreator) {
1968
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1969
+ return function (Component) {
1970
+ var defaultTheme = options.defaultTheme,
1971
+ _options$withTheme = options.withTheme,
1972
+ withTheme = _options$withTheme === void 0 ? false : _options$withTheme,
1973
+ name = options.name,
1974
+ stylesOptions = (0,objectWithoutProperties/* default */.Z)(options, ["defaultTheme", "withTheme", "name"]);
1975
 
1976
+ if (false) {}
1977
 
1978
+ var classNamePrefix = name;
 
 
1979
 
1980
+ if (false) { var displayName; }
 
1981
 
1982
+ var useStyles = (0,makeStyles/* default */.Z)(stylesOrCreator, (0,esm_extends/* default */.Z)({
1983
+ defaultTheme: defaultTheme,
1984
+ Component: Component,
1985
+ name: name || Component.displayName,
1986
+ classNamePrefix: classNamePrefix
1987
+ }, stylesOptions));
1988
+ var WithStyles = /*#__PURE__*/react.forwardRef(function WithStyles(props, ref) {
1989
+ var classesProp = props.classes,
1990
+ innerRef = props.innerRef,
1991
+ other = (0,objectWithoutProperties/* default */.Z)(props, ["classes", "innerRef"]); // The wrapper receives only user supplied props, which could be a subset of
1992
+ // the actual props Component might receive due to merging with defaultProps.
1993
+ // So copying it here would give us the same result in the wrapper as well.
1994
 
 
 
 
1995
 
1996
+ var classes = useStyles((0,esm_extends/* default */.Z)({}, Component.defaultProps, props));
1997
+ var theme;
1998
+ var more = other;
 
 
 
 
 
 
 
 
 
 
 
 
1999
 
2000
+ if (typeof name === 'string' || withTheme) {
2001
+ // name and withTheme are invariant in the outer scope
2002
+ // eslint-disable-next-line react-hooks/rules-of-hooks
2003
+ theme = (0,useTheme/* default */.Z)() || defaultTheme;
2004
 
2005
+ if (name) {
2006
+ more = (0,getThemeProps/* default */.Z)({
2007
+ theme: theme,
2008
+ name: name,
2009
+ props: other
2010
+ });
2011
+ } // Provide the theme to the wrapped component.
2012
+ // So we don't have to use the `withTheme()` Higher-order Component.
2013
 
 
 
 
 
 
 
 
 
 
 
 
2014
 
2015
+ if (withTheme && !more.theme) {
2016
+ more.theme = theme;
2017
+ }
2018
+ }
 
 
 
 
 
 
 
 
 
 
 
 
2019
 
2020
+ return /*#__PURE__*/react.createElement(Component, (0,esm_extends/* default */.Z)({
2021
+ ref: innerRef || ref,
2022
+ classes: classes
2023
+ }, more));
2024
+ });
2025
+ false ? 0 : void 0;
 
 
 
 
 
 
 
 
 
 
2026
 
2027
+ if (false) {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2028
 
2029
+ hoist_non_react_statics_cjs_default()(WithStyles, Component);
 
 
 
 
 
 
 
 
 
 
 
 
2030
 
2031
+ if (false) {}
2032
 
2033
+ return WithStyles;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2034
  };
2035
  };
 
 
 
 
2036
 
2037
+ /* harmony default export */ var withStyles_withStyles = (withStyles);
2038
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/styles/defaultTheme.js
2039
+ var defaultTheme = __webpack_require__(99700);
2040
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/styles/withStyles.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2041
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2042
 
2043
+
2044
+
2045
+ function styles_withStyles_withStyles(stylesOrCreator, options) {
2046
+ return withStyles_withStyles(stylesOrCreator, (0,esm_extends/* default */.Z)({
2047
+ defaultTheme: defaultTheme/* default */.Z
2048
+ }, options));
 
2049
  }
2050
 
2051
+ /* harmony default export */ var styles_withStyles = (styles_withStyles_withStyles);
2052
+
2053
  /***/ }),
2054
+
2055
+ /***/ 92781:
2056
+ /***/ (function(__unused_webpack_module, __webpack_exports__) {
2057
 
2058
  "use strict";
2059
+ // We need to centralize the zIndex definitions as they work
2060
+ // like global values in the browser.
2061
+ var zIndex = {
2062
+ mobileStepper: 1000,
2063
+ speedDial: 1050,
2064
+ appBar: 1100,
2065
+ drawer: 1200,
2066
+ modal: 1300,
2067
+ snackbar: 1400,
2068
+ tooltip: 1500
2069
+ };
2070
+ /* harmony default export */ __webpack_exports__["Z"] = (zIndex);
2071
 
2072
+ /***/ }),
2073
 
2074
+ /***/ 93871:
2075
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2076
 
2077
+ "use strict";
2078
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2079
+ /* harmony export */ "Z": function() { return /* binding */ capitalize; }
2080
+ /* harmony export */ });
2081
+ /* harmony import */ var _material_ui_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60288);
 
 
 
 
 
 
2082
 
2083
+ // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
2084
+ //
2085
+ // A strict capitalization should uppercase the first letter of each word a the sentence.
2086
+ // We only handle the first word.
2087
+ function capitalize(string) {
2088
+ if (typeof string !== 'string') {
2089
+ throw new Error( false ? 0 : (0,_material_ui_utils__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(7));
2090
+ }
2091
 
2092
+ return string.charAt(0).toUpperCase() + string.slice(1);
2093
  }
2094
+
2095
+ /***/ }),
2096
+
2097
+ /***/ 82568:
2098
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2099
+
2100
+ "use strict";
2101
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2102
+ /* harmony export */ "Z": function() { return /* binding */ createChainedFunction; }
2103
+ /* harmony export */ });
2104
  /**
2105
+ * Safe chained function
2106
  *
2107
+ * Will only create a new function if needed,
2108
+ * otherwise will pass back existing functions or null.
2109
+ *
2110
+ * @param {function} functions to chain
2111
+ * @returns {function|null}
2112
  */
2113
+ function createChainedFunction() {
2114
+ for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
2115
+ funcs[_key] = arguments[_key];
2116
+ }
2117
 
2118
+ return funcs.reduce(function (acc, func) {
2119
+ if (func == null) {
2120
+ return acc;
2121
+ }
2122
 
2123
+ if (false) {}
 
 
 
2124
 
2125
+ return function chainedFunction() {
2126
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2127
+ args[_key2] = arguments[_key2];
2128
+ }
 
2129
 
2130
+ acc.apply(this, args);
2131
+ func.apply(this, args);
2132
+ };
2133
+ }, function () {});
2134
  }
2135
 
2136
+ /***/ }),
 
 
 
 
 
 
 
 
 
2137
 
2138
+ /***/ 25209:
2139
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2140
 
2141
+ "use strict";
 
 
 
 
2142
 
2143
+ // EXPORTS
2144
+ __webpack_require__.d(__webpack_exports__, {
2145
+ "Z": function() { return /* binding */ createSvgIcon; }
2146
+ });
2147
 
2148
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2149
+ var esm_extends = __webpack_require__(22122);
2150
+ // EXTERNAL MODULE: ./node_modules/react/index.js
2151
+ var react = __webpack_require__(67294);
2152
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
2153
+ var objectWithoutProperties = __webpack_require__(81253);
2154
+ // EXTERNAL MODULE: ./node_modules/prop-types/index.js
2155
+ var prop_types = __webpack_require__(45697);
2156
+ // EXTERNAL MODULE: ./node_modules/clsx/dist/clsx.m.js
2157
+ var clsx_m = __webpack_require__(86010);
2158
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/styles/withStyles.js + 1 modules
2159
+ var withStyles = __webpack_require__(14670);
2160
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/capitalize.js
2161
+ var capitalize = __webpack_require__(93871);
2162
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js
2163
 
 
 
 
 
 
 
 
 
2164
 
 
 
 
 
2165
 
 
 
2166
 
 
 
 
 
2167
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2168
 
 
 
 
 
 
2169
 
2170
+ var styles = function styles(theme) {
2171
+ return {
2172
+ /* Styles applied to the root element. */
2173
+ root: {
2174
+ userSelect: 'none',
2175
+ width: '1em',
2176
+ height: '1em',
2177
+ display: 'inline-block',
2178
+ fill: 'currentColor',
2179
+ flexShrink: 0,
2180
+ fontSize: theme.typography.pxToRem(24),
2181
+ transition: theme.transitions.create('fill', {
2182
+ duration: theme.transitions.duration.shorter
2183
+ })
2184
+ },
2185
 
2186
+ /* Styles applied to the root element if `color="primary"`. */
2187
+ colorPrimary: {
2188
+ color: theme.palette.primary.main
2189
+ },
2190
 
2191
+ /* Styles applied to the root element if `color="secondary"`. */
2192
+ colorSecondary: {
2193
+ color: theme.palette.secondary.main
2194
+ },
2195
 
2196
+ /* Styles applied to the root element if `color="action"`. */
2197
+ colorAction: {
2198
+ color: theme.palette.action.active
2199
+ },
 
 
 
 
 
 
 
 
 
 
 
 
 
2200
 
2201
+ /* Styles applied to the root element if `color="error"`. */
2202
+ colorError: {
2203
+ color: theme.palette.error.main
2204
+ },
2205
 
2206
+ /* Styles applied to the root element if `color="disabled"`. */
2207
+ colorDisabled: {
2208
+ color: theme.palette.action.disabled
2209
+ },
 
 
 
 
 
2210
 
2211
+ /* Styles applied to the root element if `fontSize="inherit"`. */
2212
+ fontSizeInherit: {
2213
+ fontSize: 'inherit'
2214
+ },
 
 
 
 
 
 
 
2215
 
2216
+ /* Styles applied to the root element if `fontSize="small"`. */
2217
+ fontSizeSmall: {
2218
+ fontSize: theme.typography.pxToRem(20)
2219
+ },
 
 
 
 
 
 
 
 
 
 
2220
 
2221
+ /* Styles applied to the root element if `fontSize="large"`. */
2222
+ fontSizeLarge: {
2223
+ fontSize: theme.typography.pxToRem(35)
2224
+ }
2225
+ };
2226
+ };
2227
+ var SvgIcon = /*#__PURE__*/react.forwardRef(function SvgIcon(props, ref) {
2228
+ var children = props.children,
2229
+ classes = props.classes,
2230
+ className = props.className,
2231
+ _props$color = props.color,
2232
+ color = _props$color === void 0 ? 'inherit' : _props$color,
2233
+ _props$component = props.component,
2234
+ Component = _props$component === void 0 ? 'svg' : _props$component,
2235
+ _props$fontSize = props.fontSize,
2236
+ fontSize = _props$fontSize === void 0 ? 'default' : _props$fontSize,
2237
+ htmlColor = props.htmlColor,
2238
+ titleAccess = props.titleAccess,
2239
+ _props$viewBox = props.viewBox,
2240
+ viewBox = _props$viewBox === void 0 ? '0 0 24 24' : _props$viewBox,
2241
+ other = (0,objectWithoutProperties/* default */.Z)(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
2242
+
2243
+ return /*#__PURE__*/react.createElement(Component, (0,esm_extends/* default */.Z)({
2244
+ className: (0,clsx_m/* default */.Z)(classes.root, className, color !== 'inherit' && classes["color".concat((0,capitalize/* default */.Z)(color))], fontSize !== 'default' && classes["fontSize".concat((0,capitalize/* default */.Z)(fontSize))]),
2245
+ focusable: "false",
2246
+ viewBox: viewBox,
2247
+ color: htmlColor,
2248
+ "aria-hidden": titleAccess ? undefined : true,
2249
+ role: titleAccess ? 'img' : undefined,
2250
+ ref: ref
2251
+ }, other), children, titleAccess ? /*#__PURE__*/react.createElement("title", null, titleAccess) : null);
2252
+ });
2253
+ false ? 0 : void 0;
2254
+ SvgIcon.muiName = 'SvgIcon';
2255
+ /* harmony default export */ var SvgIcon_SvgIcon = ((0,withStyles/* default */.Z)(styles, {
2256
+ name: 'MuiSvgIcon'
2257
+ })(SvgIcon));
2258
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/utils/createSvgIcon.js
2259
 
 
 
2260
 
 
 
 
 
 
 
 
 
 
 
2261
 
 
 
 
 
2262
  /**
2263
+ * Private module reserved for @material-ui/x packages.
 
 
 
 
 
2264
  */
2265
 
2266
+ function createSvgIcon(path, displayName) {
2267
+ var Component = function Component(props, ref) {
2268
+ return /*#__PURE__*/react.createElement(SvgIcon_SvgIcon, (0,esm_extends/* default */.Z)({
2269
+ ref: ref
2270
+ }, props), path);
2271
+ };
2272
 
2273
+ if (false) {}
 
 
2274
 
2275
+ Component.muiName = SvgIcon_SvgIcon.muiName;
2276
+ return /*#__PURE__*/react.memo( /*#__PURE__*/react.forwardRef(Component));
2277
  }
 
 
 
 
 
 
 
2278
 
2279
+ /***/ }),
 
 
2280
 
2281
+ /***/ 79437:
2282
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2283
+
2284
+ "use strict";
2285
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2286
+ /* harmony export */ "Z": function() { return /* binding */ debounce; }
2287
+ /* harmony export */ });
2288
+ // Corresponds to 10 frames at 60 Hz.
2289
+ // A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.
2290
+ function debounce(func) {
2291
+ var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;
2292
+ var timeout;
2293
+
2294
+ function debounced() {
2295
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2296
+ args[_key] = arguments[_key];
2297
  }
 
2298
 
2299
+ // eslint-disable-next-line consistent-this
2300
+ var that = this;
 
 
 
 
 
 
 
2301
 
2302
+ var later = function later() {
2303
+ func.apply(that, args);
2304
+ };
2305
 
2306
+ clearTimeout(timeout);
2307
+ timeout = setTimeout(later, wait);
 
 
 
 
2308
  }
2309
 
2310
+ debounced.clear = function () {
2311
+ clearTimeout(timeout);
2312
+ };
2313
+
2314
+ return debounced;
2315
  }
2316
 
2317
  /***/ }),
2318
+
2319
+ /***/ 28546:
2320
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2321
 
2322
  "use strict";
2323
+ // ESM COMPAT FLAG
2324
+ __webpack_require__.r(__webpack_exports__);
 
 
2325
 
2326
+ // EXPORTS
2327
+ __webpack_require__.d(__webpack_exports__, {
2328
+ "capitalize": function() { return /* reexport */ capitalize/* default */.Z; },
2329
+ "createChainedFunction": function() { return /* reexport */ createChainedFunction/* default */.Z; },
2330
+ "createSvgIcon": function() { return /* reexport */ createSvgIcon/* default */.Z; },
2331
+ "debounce": function() { return /* reexport */ debounce/* default */.Z; },
2332
+ "deprecatedPropType": function() { return /* reexport */ deprecatedPropType; },
2333
+ "isMuiElement": function() { return /* reexport */ isMuiElement/* default */.Z; },
2334
+ "ownerDocument": function() { return /* reexport */ ownerDocument/* default */.Z; },
2335
+ "ownerWindow": function() { return /* reexport */ ownerWindow/* default */.Z; },
2336
+ "requirePropFactory": function() { return /* reexport */ requirePropFactory; },
2337
+ "setRef": function() { return /* reexport */ setRef/* default */.Z; },
2338
+ "unstable_useId": function() { return /* reexport */ unstable_useId/* default */.Z; },
2339
+ "unsupportedProp": function() { return /* reexport */ unsupportedProp; },
2340
+ "useControlled": function() { return /* reexport */ useControlled/* default */.Z; },
2341
+ "useEventCallback": function() { return /* reexport */ useEventCallback/* default */.Z; },
2342
+ "useForkRef": function() { return /* reexport */ useForkRef/* default */.Z; },
2343
+ "useIsFocusVisible": function() { return /* reexport */ useIsFocusVisible/* default */.Z; }
2344
+ });
2345
 
2346
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/capitalize.js
2347
+ var capitalize = __webpack_require__(93871);
2348
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/createChainedFunction.js
2349
+ var createChainedFunction = __webpack_require__(82568);
2350
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/createSvgIcon.js + 1 modules
2351
+ var createSvgIcon = __webpack_require__(25209);
2352
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/debounce.js
2353
+ var debounce = __webpack_require__(79437);
2354
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/utils/deprecatedPropType.js
2355
+ function deprecatedPropType(validator, reason) {
2356
+ if (true) {
2357
+ return function () {
2358
  return null;
 
 
 
 
 
2359
  };
2360
+ }
 
2361
 
2362
+ return function (props, propName, componentName, location, propFullName) {
2363
+ var componentNameSafe = componentName || '<<anonymous>>';
2364
+ var propFullNameSafe = propFullName || propName;
 
2365
 
2366
+ if (typeof props[propName] !== 'undefined') {
2367
+ return new Error("The ".concat(location, " `").concat(propFullNameSafe, "` of ") + "`".concat(componentNameSafe, "` is deprecated. ").concat(reason));
2368
+ }
 
 
 
 
 
2369
 
2370
+ return null;
2371
+ };
2372
+ }
2373
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/isMuiElement.js
2374
+ var isMuiElement = __webpack_require__(83711);
2375
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/ownerDocument.js
2376
+ var ownerDocument = __webpack_require__(30626);
2377
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/ownerWindow.js
2378
+ var ownerWindow = __webpack_require__(80713);
2379
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/utils/requirePropFactory.js
2380
+ function requirePropFactory(componentNameInError) {
2381
+ if (true) {
2382
+ return function () {
2383
+ return null;
2384
+ };
2385
+ }
2386
 
2387
+ var requireProp = function requireProp(requiredProp) {
2388
+ return function (props, propName, componentName, location, propFullName) {
2389
+ var propFullNameSafe = propFullName || propName;
2390
 
2391
+ if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {
2392
+ return new Error("The prop `".concat(propFullNameSafe, "` of ") + "`".concat(componentNameInError, "` must be used on `").concat(requiredProp, "`."));
2393
+ }
2394
 
2395
+ return null;
2396
+ };
2397
+ };
2398
 
2399
+ return requireProp;
2400
+ }
2401
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/setRef.js
2402
+ var setRef = __webpack_require__(34236);
2403
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/utils/unsupportedProp.js
2404
+ function unsupportedProp(props, propName, componentName, location, propFullName) {
2405
+ if (true) {
2406
+ return null;
2407
+ }
2408
 
2409
+ var propFullNameSafe = propFullName || propName;
 
 
 
 
 
 
 
 
 
2410
 
2411
+ if (typeof props[propName] !== 'undefined') {
2412
+ return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it."));
2413
+ }
2414
+
2415
+ return null;
 
 
2416
  }
2417
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/useControlled.js
2418
+ var useControlled = __webpack_require__(22775);
2419
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/useEventCallback.js
2420
+ var useEventCallback = __webpack_require__(55192);
2421
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/useForkRef.js
2422
+ var useForkRef = __webpack_require__(17294);
2423
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/unstable_useId.js
2424
+ var unstable_useId = __webpack_require__(95001);
2425
+ // EXTERNAL MODULE: ./node_modules/@material-ui/core/esm/utils/useIsFocusVisible.js
2426
+ var useIsFocusVisible = __webpack_require__(24896);
2427
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/utils/index.js
2428
 
 
 
 
2429
 
 
 
 
 
 
 
 
 
 
2430
 
 
2431
 
 
2432
 
 
2433
 
 
2434
 
 
2435
 
 
2436
 
 
2437
 
 
2438
 
2439
 
2440
 
2441
+ // eslint-disable-next-line camelcase
2442
 
2443
 
 
 
 
 
 
 
 
 
 
 
 
 
2444
 
 
2445
 
2446
+ /***/ }),
 
 
 
2447
 
2448
+ /***/ 83711:
2449
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
2450
 
2451
+ "use strict";
2452
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2453
+ /* harmony export */ "Z": function() { return /* binding */ isMuiElement; }
2454
+ /* harmony export */ });
2455
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67294);
2456
 
2457
+ function isMuiElement(element, muiNames) {
2458
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1;
 
 
 
 
 
 
 
 
2459
  }
2460
 
2461
  /***/ }),
 
 
2462
 
2463
+ /***/ 30626:
2464
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2465
 
2466
+ "use strict";
2467
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2468
+ /* harmony export */ "Z": function() { return /* binding */ ownerDocument; }
2469
+ /* harmony export */ });
2470
+ function ownerDocument(node) {
2471
+ return node && node.ownerDocument || document;
2472
+ }
2473
 
2474
+ /***/ }),
2475
 
2476
+ /***/ 80713:
2477
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2478
 
2479
+ "use strict";
2480
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2481
+ /* harmony export */ "Z": function() { return /* binding */ ownerWindow; }
2482
+ /* harmony export */ });
2483
+ /* harmony import */ var _ownerDocument__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30626);
2484
 
2485
+ function ownerWindow(node) {
2486
+ var doc = (0,_ownerDocument__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(node);
2487
+ return doc.defaultView || window;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2488
  }
 
 
 
 
 
 
 
2489
 
2490
+ /***/ }),
 
 
 
 
 
2491
 
2492
+ /***/ 34236:
2493
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2494
+
2495
+ "use strict";
2496
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2497
+ /* harmony export */ "Z": function() { return /* binding */ setRef; }
2498
+ /* harmony export */ });
2499
+ // TODO v5: consider to make it private
2500
+ function setRef(ref, value) {
2501
+ if (typeof ref === 'function') {
2502
+ ref(value);
2503
+ } else if (ref) {
2504
+ ref.current = value;
2505
  }
2506
+ }
2507
 
2508
+ /***/ }),
2509
 
2510
+ /***/ 95001:
2511
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
 
 
 
2512
 
2513
+ "use strict";
2514
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2515
+ /* harmony export */ "Z": function() { return /* binding */ useId; }
2516
+ /* harmony export */ });
2517
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67294);
2518
 
2519
+ /**
2520
+ * Private module reserved for @material-ui/x packages.
2521
+ */
2522
 
2523
+ function useId(idOverride) {
2524
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(idOverride),
2525
+ defaultId = _React$useState[0],
2526
+ setDefaultId = _React$useState[1];
 
 
 
 
 
 
 
 
 
 
 
 
2527
 
2528
+ var id = idOverride || defaultId;
2529
+ react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {
2530
+ if (defaultId == null) {
2531
+ // Fallback to this default id when possible.
2532
+ // Use the random value for client-side rendering only.
2533
+ // We can't use it server-side.
2534
+ setDefaultId("mui-".concat(Math.round(Math.random() * 1e5)));
2535
+ }
2536
+ }, [defaultId]);
2537
+ return id;
2538
  }
 
 
 
 
 
 
 
 
 
2539
 
2540
+ /***/ }),
 
 
 
 
 
 
 
 
 
2541
 
2542
+ /***/ 22775:
2543
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
2544
 
2545
+ "use strict";
2546
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2547
+ /* harmony export */ "Z": function() { return /* binding */ useControlled; }
2548
+ /* harmony export */ });
2549
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67294);
2550
+ /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
2551
 
2552
+ function useControlled(_ref) {
2553
+ var controlled = _ref.controlled,
2554
+ defaultProp = _ref.default,
2555
+ name = _ref.name,
2556
+ _ref$state = _ref.state,
2557
+ state = _ref$state === void 0 ? 'value' : _ref$state;
2558
 
2559
+ var _React$useRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(controlled !== undefined),
2560
+ isControlled = _React$useRef.current;
2561
 
2562
+ var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(defaultProp),
2563
+ valueState = _React$useState[0],
2564
+ setValue = _React$useState[1];
 
2565
 
2566
+ var value = isControlled ? controlled : valueState;
 
 
2567
 
2568
+ if (false) { var _React$useRef2, defaultValue; }
 
2569
 
2570
+ var setValueIfUncontrolled = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (newValue) {
2571
+ if (!isControlled) {
2572
+ setValue(newValue);
2573
+ }
2574
+ }, []);
2575
+ return [value, setValueIfUncontrolled];
2576
  }
2577
 
2578
  /***/ }),
 
 
2579
 
2580
+ /***/ 55192:
2581
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
 
 
2582
 
2583
+ "use strict";
2584
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2585
+ /* harmony export */ "Z": function() { return /* binding */ useEventCallback; }
2586
+ /* harmony export */ });
2587
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67294);
2588
 
2589
+ var useEnhancedEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
2590
+ /**
2591
+ * https://github.com/facebook/react/issues/14099#issuecomment-440013892
2592
+ *
2593
+ * @param {function} fn
2594
+ */
2595
 
2596
+ function useEventCallback(fn) {
2597
+ var ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef(fn);
2598
+ useEnhancedEffect(function () {
2599
+ ref.current = fn;
2600
+ });
2601
+ return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function () {
2602
+ return (0, ref.current).apply(void 0, arguments);
2603
+ }, []);
2604
+ }
 
 
 
 
 
 
 
 
 
2605
 
2606
+ /***/ }),
2607
 
2608
+ /***/ 17294:
2609
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2610
 
2611
+ "use strict";
2612
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2613
+ /* harmony export */ "Z": function() { return /* binding */ useForkRef; }
2614
+ /* harmony export */ });
2615
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67294);
2616
+ /* harmony import */ var _setRef__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34236);
2617
 
2618
 
2619
+ function useForkRef(refA, refB) {
2620
+ /**
2621
+ * This will create a new function if the ref props change and are defined.
2622
+ * This means react will call the old forkRef with `null` and the new forkRef
2623
+ * with the ref. Cleanup naturally emerges from this behavior
2624
+ */
2625
+ return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(function () {
2626
+ if (refA == null && refB == null) {
2627
+ return null;
2628
+ }
2629
 
2630
+ return function (refValue) {
2631
+ (0,_setRef__WEBPACK_IMPORTED_MODULE_1__/* .default */ .Z)(refA, refValue);
2632
+ (0,_setRef__WEBPACK_IMPORTED_MODULE_1__/* .default */ .Z)(refB, refValue);
2633
+ };
2634
+ }, [refA, refB]);
2635
+ }
2636
 
2637
+ /***/ }),
2638
 
2639
+ /***/ 24896:
2640
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
 
 
 
2641
 
2642
+ "use strict";
2643
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2644
+ /* harmony export */ "Z": function() { return /* binding */ useIsFocusVisible; }
2645
+ /* harmony export */ });
2646
+ /* unused harmony export teardown */
2647
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67294);
2648
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73935);
2649
+ // based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
2650
 
 
 
2651
 
2652
+ var hadKeyboardEvent = true;
2653
+ var hadFocusVisibleRecently = false;
2654
+ var hadFocusVisibleRecentlyTimeout = null;
2655
+ var inputTypesWhitelist = {
2656
+ text: true,
2657
+ search: true,
2658
+ url: true,
2659
+ tel: true,
2660
+ email: true,
2661
+ password: true,
2662
+ number: true,
2663
+ date: true,
2664
+ month: true,
2665
+ week: true,
2666
+ time: true,
2667
+ datetime: true,
2668
+ 'datetime-local': true
2669
+ };
2670
  /**
2671
+ * Computes whether the given element should automatically trigger the
2672
+ * `focus-visible` class being added, i.e. whether it should always match
2673
+ * `:focus-visible` when focused.
2674
+ * @param {Element} node
2675
+ * @return {boolean}
2676
  */
2677
 
2678
+ function focusTriggersKeyboardModality(node) {
2679
+ var type = node.type,
2680
+ tagName = node.tagName;
2681
+
2682
+ if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {
2683
+ return true;
2684
  }
2685
 
2686
+ if (tagName === 'TEXTAREA' && !node.readOnly) {
2687
+ return true;
2688
+ }
 
2689
 
2690
+ if (node.isContentEditable) {
2691
+ return true;
2692
  }
2693
 
2694
+ return false;
2695
  }
2696
+ /**
2697
+ * Keep track of our keyboard modality state with `hadKeyboardEvent`.
2698
+ * If the most recent user interaction was via the keyboard;
2699
+ * and the key press did not include a meta, alt/option, or control key;
2700
+ * then the modality is keyboard. Otherwise, the modality is not keyboard.
2701
+ * @param {KeyboardEvent} event
2702
+ */
2703
 
 
 
2704
 
2705
+ function handleKeyDown(event) {
2706
+ if (event.metaKey || event.altKey || event.ctrlKey) {
2707
+ return;
 
 
2708
  }
2709
 
2710
+ hadKeyboardEvent = true;
2711
+ }
 
2712
  /**
2713
+ * If at any point a user clicks with a pointing device, ensure that we change
2714
+ * the modality away from keyboard.
2715
+ * This avoids the situation where a user presses a key on an already focused
2716
+ * element, and then clicks on a different element, focusing it with a
2717
+ * pointing device, while we still think we're in keyboard modality.
 
2718
  */
 
 
 
 
2719
 
 
 
2720
 
2721
+ function handlePointerDown() {
2722
+ hadKeyboardEvent = false;
2723
+ }
2724
+
2725
+ function handleVisibilityChange() {
2726
+ if (this.visibilityState === 'hidden') {
2727
+ // If the tab becomes active again, the browser will handle calling focus
2728
+ // on the element (Safari actually calls it twice).
2729
+ // If this tab change caused a blur on an element with focus-visible,
2730
+ // re-apply the class when the user switches back to the tab.
2731
+ if (hadFocusVisibleRecently) {
2732
+ hadKeyboardEvent = true;
2733
  }
2734
+ }
2735
+ }
2736
 
2737
+ function prepare(doc) {
2738
+ doc.addEventListener('keydown', handleKeyDown, true);
2739
+ doc.addEventListener('mousedown', handlePointerDown, true);
2740
+ doc.addEventListener('pointerdown', handlePointerDown, true);
2741
+ doc.addEventListener('touchstart', handlePointerDown, true);
2742
+ doc.addEventListener('visibilitychange', handleVisibilityChange, true);
2743
+ }
2744
 
2745
+ function teardown(doc) {
2746
+ doc.removeEventListener('keydown', handleKeyDown, true);
2747
+ doc.removeEventListener('mousedown', handlePointerDown, true);
2748
+ doc.removeEventListener('pointerdown', handlePointerDown, true);
2749
+ doc.removeEventListener('touchstart', handlePointerDown, true);
2750
+ doc.removeEventListener('visibilitychange', handleVisibilityChange, true);
2751
+ }
2752
 
2753
+ function isFocusVisible(event) {
2754
+ var target = event.target;
2755
 
2756
+ try {
2757
+ return target.matches(':focus-visible');
2758
+ } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError
2759
+ // we use our own heuristic for those browsers
2760
+ // rethrow might be better if it's not the expected error but do we really
2761
+ // want to crash if focus-visible malfunctioned?
2762
+ // no need for validFocusTarget check. the user does that by attaching it to
2763
+ // focusable events only
2764
 
 
 
 
2765
 
2766
+ return hadKeyboardEvent || focusTriggersKeyboardModality(target);
2767
  }
2768
  /**
2769
+ * Should be called if a blur event is fired on a focus-visible element
2770
  */
2771
 
2772
 
2773
+ function handleBlurVisible() {
2774
+ // To detect a tab/window switch, we look for a blur event followed
2775
+ // rapidly by a visibility change.
2776
+ // If we don't see a visibility change within 100ms, it's probably a
2777
+ // regular focus change.
2778
+ hadFocusVisibleRecently = true;
2779
+ window.clearTimeout(hadFocusVisibleRecentlyTimeout);
2780
+ hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
2781
+ hadFocusVisibleRecently = false;
2782
+ }, 100);
2783
+ }
2784
 
2785
+ function useIsFocusVisible() {
2786
+ var ref = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (instance) {
2787
+ var node = react_dom__WEBPACK_IMPORTED_MODULE_1__.findDOMNode(instance);
 
 
 
 
2788
 
2789
+ if (node != null) {
2790
+ prepare(node.ownerDocument);
2791
+ }
2792
+ }, []);
 
2793
 
2794
+ if (false) {}
 
2795
 
2796
+ return {
2797
+ isFocusVisible: isFocusVisible,
2798
+ onBlurVisible: handleBlurVisible,
2799
+ ref: ref
2800
+ };
2801
+ }
 
 
 
 
2802
 
2803
+ /***/ }),
 
 
 
 
 
 
2804
 
2805
+ /***/ 78513:
2806
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2807
 
2808
+ "use strict";
2809
+ var __webpack_unused_export__;
 
 
 
2810
 
2811
 
2812
+ var _interopRequireDefault = __webpack_require__(95318);
2813
 
2814
+ var _interopRequireWildcard = __webpack_require__(20862);
 
 
 
 
2815
 
2816
+ __webpack_unused_export__ = ({
2817
+ value: true
 
 
2818
  });
2819
+ exports.Z = void 0;
2820
 
2821
+ var React = _interopRequireWildcard(__webpack_require__(67294));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2822
 
2823
+ var _createSvgIcon = _interopRequireDefault(__webpack_require__(2108));
2824
 
2825
+ var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", {
2826
+ d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
2827
+ }), 'MoreVert');
2828
 
2829
+ exports.Z = _default;
 
 
2830
 
2831
+ /***/ }),
 
 
2832
 
2833
+ /***/ 2108:
2834
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
 
2835
 
2836
+ "use strict";
 
2837
 
 
2838
 
2839
+ Object.defineProperty(exports, "__esModule", ({
2840
+ value: true
2841
+ }));
2842
+ Object.defineProperty(exports, "default", ({
2843
+ enumerable: true,
2844
+ get: function get() {
2845
+ return _utils.createSvgIcon;
2846
+ }
2847
+ }));
2848
 
2849
+ var _utils = __webpack_require__(28546);
 
 
 
2850
 
2851
+ /***/ }),
2852
 
2853
+ /***/ 4137:
2854
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
2855
 
2856
+ "use strict";
 
2857
 
2858
+ // EXPORTS
2859
+ __webpack_require__.d(__webpack_exports__, {
2860
+ "NU": function() { return /* binding */ StylesContext; },
2861
+ "ZP": function() { return /* binding */ StylesProvider; }
2862
+ });
 
2863
 
2864
+ // UNUSED EXPORTS: sheetsManager
 
2865
 
2866
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2867
+ var esm_extends = __webpack_require__(22122);
2868
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
2869
+ var objectWithoutProperties = __webpack_require__(81253);
2870
+ // EXTERNAL MODULE: ./node_modules/react/index.js
2871
+ var react = __webpack_require__(67294);
2872
+ // EXTERNAL MODULE: ./node_modules/prop-types/index.js
2873
+ var prop_types = __webpack_require__(45697);
2874
+ // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/ThemeProvider/nested.js
2875
+ var nested = __webpack_require__(17076);
2876
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/createGenerateClassName/createGenerateClassName.js
2877
 
2878
+ /**
2879
+ * This is the list of the style rule name we use as drop in replacement for the built-in
2880
+ * pseudo classes (:checked, :disabled, :focused, etc.).
2881
+ *
2882
+ * Why do they exist in the first place?
2883
+ * These classes are used at a specificity of 2.
2884
+ * It allows them to override previously definied styles as well as
2885
+ * being untouched by simple user overrides.
2886
+ */
2887
 
2888
+ var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected']; // Returns a function which generates unique class names based on counters.
2889
+ // When new generator function is created, rule counter is reset.
2890
+ // We need to reset the rule counter for SSR for each request.
2891
+ //
2892
+ // It's inspired by
2893
+ // https://github.com/cssinjs/jss/blob/4e6a05dd3f7b6572fdd3ab216861d9e446c20331/src/utils/createGenerateClassName.js
 
2894
 
2895
+ function createGenerateClassName() {
2896
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2897
+ var _options$disableGloba = options.disableGlobal,
2898
+ disableGlobal = _options$disableGloba === void 0 ? false : _options$disableGloba,
2899
+ _options$productionPr = options.productionPrefix,
2900
+ productionPrefix = _options$productionPr === void 0 ? 'jss' : _options$productionPr,
2901
+ _options$seed = options.seed,
2902
+ seed = _options$seed === void 0 ? '' : _options$seed;
2903
+ var seedPrefix = seed === '' ? '' : "".concat(seed, "-");
2904
+ var ruleCounter = 0;
2905
 
2906
+ var getNextCounterId = function getNextCounterId() {
2907
+ ruleCounter += 1;
2908
 
2909
+ if (false) {}
 
 
 
 
2910
 
2911
+ return ruleCounter;
2912
+ };
2913
 
2914
+ return function (rule, styleSheet) {
2915
+ var name = styleSheet.options.name; // Is a global static MUI style?
2916
+
2917
+ if (name && name.indexOf('Mui') === 0 && !styleSheet.options.link && !disableGlobal) {
2918
+ // We can use a shorthand class name, we never use the keys to style the components.
2919
+ if (pseudoClasses.indexOf(rule.key) !== -1) {
2920
+ return "Mui-".concat(rule.key);
2921
  }
 
2922
 
2923
+ var prefix = "".concat(seedPrefix).concat(name, "-").concat(rule.key);
 
 
 
 
 
 
 
2924
 
2925
+ if (!styleSheet.options.theme[nested/* default */.Z] || seed !== '') {
2926
+ return prefix;
2927
+ }
2928
 
2929
+ return "".concat(prefix, "-").concat(getNextCounterId());
 
 
2930
  }
2931
 
2932
+ if (true) {
2933
+ return "".concat(seedPrefix).concat(productionPrefix).concat(getNextCounterId());
2934
+ }
 
 
 
2935
 
2936
+ var suffix = "".concat(rule.key, "-").concat(getNextCounterId()); // Help with debuggability.
2937
+
2938
+ if (styleSheet.options.classNamePrefix) {
2939
+ return "".concat(seedPrefix).concat(styleSheet.options.classNamePrefix, "-").concat(suffix);
2940
+ }
2941
+
2942
+ return "".concat(seedPrefix).concat(suffix);
2943
  };
2944
+ }
2945
+ // EXTERNAL MODULE: ./node_modules/jss/dist/jss.esm.js
2946
+ var jss_esm = __webpack_require__(54013);
2947
+ // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js + 9 modules
2948
+ var jssPreset = __webpack_require__(60246);
2949
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js
2950
 
 
 
 
 
 
 
 
 
 
2951
 
 
 
 
 
 
 
 
 
 
 
 
 
2952
 
2953
+
2954
+
2955
+
2956
+
2957
+ // Default JSS instance.
2958
+
2959
+ var jss = (0,jss_esm/* create */.Ue)((0,jssPreset/* default */.Z)()); // Use a singleton or the provided one by the context.
2960
+ //
2961
+ // The counter-based approach doesn't tolerate any mistake.
2962
+ // It's much safer to use the same counter everywhere.
2963
+
2964
+ var generateClassName = createGenerateClassName(); // Exported for test purposes
2965
+
2966
+ var sheetsManager = new Map();
2967
+ var defaultOptions = {
2968
+ disableGeneration: false,
2969
+ generateClassName: generateClassName,
2970
+ jss: jss,
2971
+ sheetsCache: null,
2972
+ sheetsManager: sheetsManager,
2973
+ sheetsRegistry: null
2974
+ };
2975
+ var StylesContext = react.createContext(defaultOptions);
2976
+
2977
+ if (false) {}
2978
+
2979
+ var injectFirstNode;
2980
+ function StylesProvider(props) {
2981
+ var children = props.children,
2982
+ _props$injectFirst = props.injectFirst,
2983
+ injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst,
2984
+ _props$disableGenerat = props.disableGeneration,
2985
+ disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat,
2986
+ localOptions = (0,objectWithoutProperties/* default */.Z)(props, ["children", "injectFirst", "disableGeneration"]);
2987
+
2988
+ var outerOptions = react.useContext(StylesContext);
2989
+
2990
+ var context = (0,esm_extends/* default */.Z)({}, outerOptions, {
2991
+ disableGeneration: disableGeneration
2992
+ }, localOptions);
2993
+
2994
+ if (false) {}
2995
+
2996
+ if (false) {}
2997
+
2998
+ if (false) {}
2999
+
3000
+ if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {
3001
+ if (!injectFirstNode) {
3002
+ var head = document.head;
3003
+ injectFirstNode = document.createComment('mui-inject-first');
3004
+ head.insertBefore(injectFirstNode, head.firstChild);
3005
  }
3006
 
3007
+ context.jss = (0,jss_esm/* create */.Ue)({
3008
+ plugins: (0,jssPreset/* default */.Z)().plugins,
3009
+ insertionPoint: injectFirstNode
3010
+ });
3011
  }
 
3012
 
3013
+ return /*#__PURE__*/react.createElement(StylesContext.Provider, {
3014
+ value: context
3015
+ }, children);
3016
+ }
3017
+ false ? 0 : void 0;
3018
+
3019
+ if (false) {}
3020
+
3021
+ /***/ }),
3022
+
3023
+ /***/ 17076:
3024
+ /***/ (function(__unused_webpack_module, __webpack_exports__) {
3025
+
3026
+ "use strict";
3027
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
3028
+ /* harmony default export */ __webpack_exports__["Z"] = (hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__');
3029
+
3030
+ /***/ }),
3031
+
3032
+ /***/ 93869:
3033
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3034
+
3035
+ "use strict";
3036
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3037
+ /* harmony export */ "Z": function() { return /* binding */ getThemeProps; }
3038
+ /* harmony export */ });
3039
+ /* eslint-disable no-restricted-syntax */
3040
+ function getThemeProps(params) {
3041
+ var theme = params.theme,
3042
+ name = params.name,
3043
+ props = params.props;
3044
+
3045
+ if (!theme || !theme.props || !theme.props[name]) {
3046
+ return props;
3047
+ } // Resolve default props, code borrow from React source.
3048
+ // https://github.com/facebook/react/blob/15a8f031838a553e41c0b66eb1bcf1da8448104d/packages/react/src/ReactElement.js#L221
3049
+
3050
+
3051
+ var defaultProps = theme.props[name];
3052
+ var propName;
3053
+
3054
+ for (propName in defaultProps) {
3055
+ if (props[propName] === undefined) {
3056
+ props[propName] = defaultProps[propName];
3057
+ }
3058
+ }
3059
+
3060
+ return props;
3061
+ }
3062
+
3063
+ /***/ }),
3064
+
3065
+ /***/ 60246:
3066
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3067
+
3068
+ "use strict";
3069
+
3070
+ // EXPORTS
3071
+ __webpack_require__.d(__webpack_exports__, {
3072
+ "Z": function() { return /* binding */ jssPreset; }
3073
+ });
3074
+
3075
+ // EXTERNAL MODULE: ./node_modules/jss/dist/jss.esm.js
3076
+ var jss_esm = __webpack_require__(54013);
3077
+ ;// CONCATENATED MODULE: ./node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js
3078
+
3079
+
3080
+
3081
+ var now = Date.now();
3082
+ var fnValuesNs = "fnValues" + now;
3083
+ var fnRuleNs = "fnStyle" + ++now;
3084
+
3085
+ var functionPlugin = function functionPlugin() {
3086
+ return {
3087
+ onCreateRule: function onCreateRule(name, decl, options) {
3088
+ if (typeof decl !== 'function') return null;
3089
+ var rule = (0,jss_esm/* createRule */.JH)(name, {}, options);
3090
+ rule[fnRuleNs] = decl;
3091
+ return rule;
3092
+ },
3093
+ onProcessStyle: function onProcessStyle(style, rule) {
3094
+ // We need to extract function values from the declaration, so that we can keep core unaware of them.
3095
+ // We need to do that only once.
3096
+ // We don't need to extract functions on each style update, since this can happen only once.
3097
+ // We don't support function values inside of function rules.
3098
+ if (fnValuesNs in rule || fnRuleNs in rule) return style;
3099
+ var fnValues = {};
3100
+
3101
+ for (var prop in style) {
3102
+ var value = style[prop];
3103
+ if (typeof value !== 'function') continue;
3104
+ delete style[prop];
3105
+ fnValues[prop] = value;
3106
+ } // $FlowFixMe[prop-missing]
3107
+
3108
+
3109
+ rule[fnValuesNs] = fnValues;
3110
+ return style;
3111
+ },
3112
+ onUpdate: function onUpdate(data, rule, sheet, options) {
3113
+ var styleRule = rule; // $FlowFixMe[prop-missing]
3114
+
3115
+ var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object
3116
+ // will be returned from that function.
3117
+
3118
+ if (fnRule) {
3119
+ // Empty object will remove all currently defined props
3120
+ // in case function rule returns a falsy value.
3121
+ styleRule.style = fnRule(data) || {};
3122
+
3123
+ if (false) { var prop; }
3124
+ } // $FlowFixMe[prop-missing]
3125
+
3126
+
3127
+ var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.
3128
+
3129
+ if (fnValues) {
3130
+ for (var _prop in fnValues) {
3131
+ styleRule.prop(_prop, fnValues[_prop](data), options);
3132
+ }
3133
+ }
3134
+ }
3135
+ };
3136
  };
 
 
 
 
3137
 
3138
+ /* harmony default export */ var jss_plugin_rule_value_function_esm = (functionPlugin);
3139
+
3140
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
3141
+ var esm_extends = __webpack_require__(22122);
3142
+ ;// CONCATENATED MODULE: ./node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js
3143
+
3144
+
3145
+
3146
+ var at = '@global';
3147
+ var atPrefix = '@global ';
3148
+
3149
+ var GlobalContainerRule =
3150
  /*#__PURE__*/
3151
  function () {
3152
+ function GlobalContainerRule(key, styles, options) {
3153
+ this.type = 'global';
3154
+ this.at = at;
 
 
3155
  this.rules = void 0;
3156
  this.options = void 0;
3157
+ this.key = void 0;
3158
  this.isProcessed = false;
 
3159
  this.key = key;
 
 
 
 
3160
  this.options = options;
3161
+ this.rules = new jss_esm/* RuleList */.RB((0,esm_extends/* default */.Z)({}, options, {
3162
  parent: this
3163
  }));
3164
 
3165
+ for (var selector in styles) {
3166
+ this.rules.add(selector, styles[selector]);
3167
  }
3168
 
3169
  this.rules.process();
3173
  */
3174
 
3175
 
3176
+ var _proto = GlobalContainerRule.prototype;
3177
 
3178
  _proto.getRule = function getRule(name) {
3179
  return this.rules.get(name);
3180
  }
3181
  /**
3182
+ * Create and register rule, run plugins.
3183
  */
3184
  ;
3185
 
3186
+ _proto.addRule = function addRule(name, style, options) {
3187
+ var rule = this.rules.add(name, style, options);
3188
+ if (rule) this.options.jss.plugins.onProcessRule(rule);
3189
+ return rule;
3190
  }
3191
  /**
3192
+ * Get index of a rule.
3193
  */
3194
  ;
3195
 
3196
+ _proto.indexOf = function indexOf(rule) {
3197
+ return this.rules.indexOf(rule);
 
 
 
3198
  }
3199
  /**
3200
  * Generates a CSS string.
3201
  */
3202
  ;
3203
 
3204
+ _proto.toString = function toString() {
3205
+ return this.rules.toString();
 
 
 
 
 
 
 
 
 
 
 
 
3206
  };
3207
 
3208
+ return GlobalContainerRule;
3209
  }();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3210
 
3211
+ var GlobalPrefixedRule =
3212
  /*#__PURE__*/
3213
  function () {
3214
+ function GlobalPrefixedRule(key, style, options) {
3215
+ this.type = 'global';
3216
+ this.at = at;
 
 
 
 
3217
  this.options = void 0;
3218
+ this.rule = void 0;
3219
  this.isProcessed = false;
3220
+ this.key = void 0;
3221
+ this.key = key;
 
 
 
 
 
 
 
 
 
3222
  this.options = options;
3223
+ var selector = key.substr(atPrefix.length);
3224
+ this.rule = options.jss.createRule(selector, style, (0,esm_extends/* default */.Z)({}, options, {
 
 
 
3225
  parent: this
3226
  }));
 
 
 
 
 
 
 
 
3227
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3228
 
3229
+ var _proto2 = GlobalPrefixedRule.prototype;
 
 
3230
 
3231
+ _proto2.toString = function toString(options) {
3232
+ return this.rule ? this.rule.toString(options) : '';
 
3233
  };
3234
 
3235
+ return GlobalPrefixedRule;
3236
  }();
 
 
3237
 
3238
+ var separatorRegExp = /\s*,\s*/g;
 
 
 
 
 
3239
 
3240
+ function addScope(selector, scope) {
3241
+ var parts = selector.split(separatorRegExp);
3242
+ var scoped = '';
 
3243
 
3244
+ for (var i = 0; i < parts.length; i++) {
3245
+ scoped += scope + " " + parts[i].trim();
3246
+ if (parts[i + 1]) scoped += ', ';
3247
+ }
 
3248
 
3249
+ return scoped;
3250
+ }
3251
 
3252
+ function handleNestedGlobalContainerRule(rule, sheet) {
3253
+ var options = rule.options,
3254
+ style = rule.style;
3255
+ var rules = style ? style[at] : null;
3256
+ if (!rules) return;
3257
 
3258
+ for (var name in rules) {
3259
+ sheet.addRule(name, rules[name], (0,esm_extends/* default */.Z)({}, options, {
3260
+ selector: addScope(name, rule.selector)
3261
+ }));
3262
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3263
 
3264
+ delete style[at];
3265
+ }
 
3266
 
3267
+ function handlePrefixedGlobalRule(rule, sheet) {
3268
+ var options = rule.options,
3269
+ style = rule.style;
3270
 
3271
+ for (var prop in style) {
3272
+ if (prop[0] !== '@' || prop.substr(0, at.length) !== at) continue;
3273
+ var selector = addScope(prop.substr(at.length), rule.selector);
3274
+ sheet.addRule(selector, style[prop], (0,esm_extends/* default */.Z)({}, options, {
3275
+ selector: selector
3276
+ }));
3277
+ delete style[prop];
3278
  }
3279
+ }
3280
+ /**
3281
+ * Convert nested rules to separate, remove them from original styles.
3282
+ *
3283
+ * @param {Rule} rule
3284
+ * @api public
3285
+ */
3286
 
 
 
 
 
3287
 
3288
+ function jssGlobal() {
3289
+ function onCreateRule(name, styles, options) {
3290
+ if (!name) return null;
3291
 
3292
+ if (name === at) {
3293
+ return new GlobalContainerRule(name, styles, options);
3294
  }
3295
 
3296
+ if (name[0] === '@' && name.substr(0, atPrefix.length) === atPrefix) {
3297
+ return new GlobalPrefixedRule(name, styles, options);
3298
+ }
 
3299
 
3300
+ var parent = options.parent;
3301
 
3302
+ if (parent) {
3303
+ if (parent.type === 'global' || parent.options.parent && parent.options.parent.type === 'global') {
3304
+ options.scoped = false;
3305
+ }
3306
+ }
 
 
 
 
 
 
3307
 
3308
+ if (options.scoped === false) {
3309
+ options.selector = name;
 
 
 
 
3310
  }
3311
 
3312
  return null;
3313
  }
 
3314
 
3315
+ function onProcessRule(rule, sheet) {
3316
+ if (rule.type !== 'style' || !sheet) return;
3317
+ handleNestedGlobalContainerRule(rule, sheet);
3318
+ handlePrefixedGlobalRule(rule, sheet);
 
 
 
 
 
 
 
 
 
 
3319
  }
 
 
 
3320
 
3321
+ return {
3322
+ onCreateRule: onCreateRule,
3323
+ onProcessRule: onProcessRule
3324
+ };
3325
+ }
3326
 
3327
+ /* harmony default export */ var jss_plugin_global_esm = (jssGlobal);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3328
 
3329
+ ;// CONCATENATED MODULE: ./node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js
 
 
 
 
 
 
 
3330
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3331
 
3332
 
3333
+ var jss_plugin_nested_esm_separatorRegExp = /\s*,\s*/g;
3334
+ var parentRegExp = /&/g;
3335
+ var refRegExp = /\$([\w-]+)/g;
3336
+ /**
3337
+ * Convert nested rules to separate, remove them from original styles.
3338
+ *
3339
+ * @param {Rule} rule
3340
+ * @api public
3341
+ */
3342
 
3343
+ function jssNested() {
3344
+ // Get a function to be used for $ref replacement.
3345
+ function getReplaceRef(container, sheet) {
3346
+ return function (match, key) {
3347
+ var rule = container.getRule(key) || sheet && sheet.getRule(key);
3348
 
3349
+ if (rule) {
3350
+ rule = rule;
3351
+ return rule.selector;
3352
+ }
 
 
 
3353
 
3354
+ false ? 0 : void 0;
3355
+ return key;
3356
+ };
 
 
 
 
 
 
 
 
 
 
3357
  }
 
 
 
 
3358
 
3359
+ function replaceParentRefs(nestedProp, parentProp) {
3360
+ var parentSelectors = parentProp.split(jss_plugin_nested_esm_separatorRegExp);
3361
+ var nestedSelectors = nestedProp.split(jss_plugin_nested_esm_separatorRegExp);
3362
+ var result = '';
3363
 
3364
+ for (var i = 0; i < parentSelectors.length; i++) {
3365
+ var parent = parentSelectors[i];
3366
 
3367
+ for (var j = 0; j < nestedSelectors.length; j++) {
3368
+ var nested = nestedSelectors[j];
3369
+ if (result) result += ', '; // Replace all & by the parent or prefix & with the parent.
3370
 
3371
+ result += nested.indexOf('&') !== -1 ? nested.replace(parentRegExp, parent) : parent + " " + nested;
 
 
3372
  }
 
 
3373
  }
3374
 
3375
+ return result;
 
 
 
 
 
 
 
 
 
 
 
 
3376
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3377
 
3378
+ function getOptions(rule, container, prevOptions) {
3379
+ // Options has been already created, now we only increase index.
3380
+ if (prevOptions) return (0,esm_extends/* default */.Z)({}, prevOptions, {
3381
+ index: prevOptions.index + 1 // $FlowFixMe[prop-missing]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3382
 
3383
+ });
3384
+ var nestingLevel = rule.options.nestingLevel;
3385
+ nestingLevel = nestingLevel === undefined ? 1 : nestingLevel + 1;
3386
 
3387
+ var options = (0,esm_extends/* default */.Z)({}, rule.options, {
3388
+ nestingLevel: nestingLevel,
3389
+ index: container.indexOf(rule) + 1 // We don't need the parent name to be set options for chlid.
3390
 
3391
+ });
 
 
 
 
 
 
 
3392
 
3393
+ delete options.name;
3394
+ return options;
3395
+ }
 
 
 
 
 
 
 
 
 
 
 
3396
 
3397
+ function onProcessStyle(style, rule, sheet) {
3398
+ if (rule.type !== 'style') return style;
3399
+ var styleRule = rule;
3400
+ var container = styleRule.options.parent;
3401
+ var options;
3402
+ var replaceRef;
3403
 
3404
+ for (var prop in style) {
3405
+ var isNested = prop.indexOf('&') !== -1;
3406
+ var isNestedConditional = prop[0] === '@';
3407
+ if (!isNested && !isNestedConditional) continue;
3408
+ options = getOptions(styleRule, container, options);
3409
 
3410
+ if (isNested) {
3411
+ var selector = replaceParentRefs(prop, styleRule.selector); // Lazily create the ref replacer function just once for
3412
+ // all nested rules within the sheet.
 
3413
 
3414
+ if (!replaceRef) replaceRef = getReplaceRef(container, sheet); // Replace all $refs.
3415
 
3416
+ selector = selector.replace(refRegExp, replaceRef);
3417
+ container.addRule(selector, style[prop], (0,esm_extends/* default */.Z)({}, options, {
3418
+ selector: selector
3419
+ }));
3420
+ } else if (isNestedConditional) {
3421
+ // Place conditional right after the parent rule to ensure right ordering.
3422
+ container.addRule(prop, {}, options) // Flow expects more options but they aren't required
3423
+ // And flow doesn't know this will always be a StyleRule which has the addRule method
3424
+ // $FlowFixMe[incompatible-use]
3425
+ // $FlowFixMe[prop-missing]
3426
+ .addRule(styleRule.key, style[prop], {
3427
+ selector: styleRule.selector
3428
+ });
3429
+ }
3430
 
3431
+ delete style[prop];
 
 
3432
  }
3433
 
3434
+ return style;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3435
  }
 
 
 
 
3436
 
3437
+ return {
3438
+ onProcessStyle: onProcessStyle
3439
+ };
3440
+ }
 
 
 
3441
 
3442
+ /* harmony default export */ var jss_plugin_nested_esm = (jssNested);
 
 
3443
 
3444
+ ;// CONCATENATED MODULE: ./node_modules/hyphenate-style-name/index.js
3445
+ /* eslint-disable no-var, prefer-template */
3446
+ var uppercasePattern = /[A-Z]/g
3447
+ var msPattern = /^ms-/
3448
+ var cache = {}
 
3449
 
3450
+ function toHyphenLower(match) {
3451
+ return '-' + match.toLowerCase()
3452
+ }
3453
 
3454
+ function hyphenateStyleName(name) {
3455
+ if (cache.hasOwnProperty(name)) {
3456
+ return cache[name]
 
 
 
3457
  }
 
 
 
 
 
 
 
3458
 
3459
+ var hName = name.replace(uppercasePattern, toHyphenLower)
3460
+ return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
3461
+ }
 
 
 
 
 
 
 
 
3462
 
3463
+ /* harmony default export */ var hyphenate_style_name = (hyphenateStyleName);
 
 
 
3464
 
3465
+ ;// CONCATENATED MODULE: ./node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js
 
3466
 
 
3467
 
3468
+ /**
3469
+ * Convert camel cased property names to dash separated.
3470
+ *
3471
+ * @param {Object} style
3472
+ * @return {Object}
3473
+ */
3474
 
3475
+ function convertCase(style) {
3476
+ var converted = {};
 
3477
 
3478
+ for (var prop in style) {
3479
+ var key = prop.indexOf('--') === 0 ? prop : hyphenate_style_name(prop);
3480
+ converted[key] = style[prop];
 
 
 
 
3481
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3482
 
3483
+ if (style.fallbacks) {
3484
+ if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);else converted.fallbacks = convertCase(style.fallbacks);
3485
+ }
 
3486
 
3487
+ return converted;
3488
+ }
3489
+ /**
3490
+ * Allow camel cased property names by converting them back to dasherized.
3491
+ *
3492
+ * @param {Rule} rule
3493
+ */
3494
 
 
 
 
 
3495
 
3496
+ function camelCase() {
3497
+ function onProcessStyle(style) {
3498
+ if (Array.isArray(style)) {
3499
+ // Handle rules like @font-face, which can have multiple styles in an array
3500
+ for (var index = 0; index < style.length; index++) {
3501
+ style[index] = convertCase(style[index]);
3502
  }
 
 
 
 
 
 
3503
 
3504
+ return style;
 
 
 
 
 
 
 
 
 
 
 
3505
  }
3506
 
3507
+ return convertCase(style);
3508
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3509
 
3510
+ function onChangeValue(value, prop, rule) {
3511
+ if (prop.indexOf('--') === 0) {
3512
+ return value;
3513
  }
3514
 
3515
+ var hyphenatedProp = hyphenate_style_name(prop); // There was no camel case in place
3516
 
3517
+ if (prop === hyphenatedProp) return value;
3518
+ rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.
 
3519
 
3520
+ return null;
3521
  }
 
 
 
3522
 
3523
+ return {
3524
+ onProcessStyle: onProcessStyle,
3525
+ onChangeValue: onChangeValue
3526
+ };
3527
+ }
3528
 
3529
+ /* harmony default export */ var jss_plugin_camel_case_esm = (camelCase);
3530
 
3531
+ ;// CONCATENATED MODULE: ./node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js
 
 
 
3532
 
 
 
 
 
 
 
 
3533
 
3534
+ var px = jss_esm/* hasCSSTOMSupport */.HZ && CSS ? CSS.px : 'px';
3535
+ var ms = jss_esm/* hasCSSTOMSupport */.HZ && CSS ? CSS.ms : 'ms';
3536
+ var percent = jss_esm/* hasCSSTOMSupport */.HZ && CSS ? CSS.percent : '%';
3537
+ /**
3538
+ * Generated jss-plugin-default-unit CSS property units
3539
+ *
3540
+ * @type object
3541
+ */
 
 
 
3542
 
3543
+ var defaultUnits = {
3544
+ // Animation properties
3545
+ 'animation-delay': ms,
3546
+ 'animation-duration': ms,
3547
+ // Background properties
3548
+ 'background-position': px,
3549
+ 'background-position-x': px,
3550
+ 'background-position-y': px,
3551
+ 'background-size': px,
3552
+ // Border Properties
3553
+ border: px,
3554
+ 'border-bottom': px,
3555
+ 'border-bottom-left-radius': px,
3556
+ 'border-bottom-right-radius': px,
3557
+ 'border-bottom-width': px,
3558
+ 'border-left': px,
3559
+ 'border-left-width': px,
3560
+ 'border-radius': px,
3561
+ 'border-right': px,
3562
+ 'border-right-width': px,
3563
+ 'border-top': px,
3564
+ 'border-top-left-radius': px,
3565
+ 'border-top-right-radius': px,
3566
+ 'border-top-width': px,
3567
+ 'border-width': px,
3568
+ 'border-block': px,
3569
+ 'border-block-end': px,
3570
+ 'border-block-end-width': px,
3571
+ 'border-block-start': px,
3572
+ 'border-block-start-width': px,
3573
+ 'border-block-width': px,
3574
+ 'border-inline': px,
3575
+ 'border-inline-end': px,
3576
+ 'border-inline-end-width': px,
3577
+ 'border-inline-start': px,
3578
+ 'border-inline-start-width': px,
3579
+ 'border-inline-width': px,
3580
+ 'border-start-start-radius': px,
3581
+ 'border-start-end-radius': px,
3582
+ 'border-end-start-radius': px,
3583
+ 'border-end-end-radius': px,
3584
+ // Margin properties
3585
+ margin: px,
3586
+ 'margin-bottom': px,
3587
+ 'margin-left': px,
3588
+ 'margin-right': px,
3589
+ 'margin-top': px,
3590
+ 'margin-block': px,
3591
+ 'margin-block-end': px,
3592
+ 'margin-block-start': px,
3593
+ 'margin-inline': px,
3594
+ 'margin-inline-end': px,
3595
+ 'margin-inline-start': px,
3596
+ // Padding properties
3597
+ padding: px,
3598
+ 'padding-bottom': px,
3599
+ 'padding-left': px,
3600
+ 'padding-right': px,
3601
+ 'padding-top': px,
3602
+ 'padding-block': px,
3603
+ 'padding-block-end': px,
3604
+ 'padding-block-start': px,
3605
+ 'padding-inline': px,
3606
+ 'padding-inline-end': px,
3607
+ 'padding-inline-start': px,
3608
+ // Mask properties
3609
+ 'mask-position-x': px,
3610
+ 'mask-position-y': px,
3611
+ 'mask-size': px,
3612
+ // Width and height properties
3613
+ height: px,
3614
+ width: px,
3615
+ 'min-height': px,
3616
+ 'max-height': px,
3617
+ 'min-width': px,
3618
+ 'max-width': px,
3619
+ // Position properties
3620
+ bottom: px,
3621
+ left: px,
3622
+ top: px,
3623
+ right: px,
3624
+ inset: px,
3625
+ 'inset-block': px,
3626
+ 'inset-block-end': px,
3627
+ 'inset-block-start': px,
3628
+ 'inset-inline': px,
3629
+ 'inset-inline-end': px,
3630
+ 'inset-inline-start': px,
3631
+ // Shadow properties
3632
+ 'box-shadow': px,
3633
+ 'text-shadow': px,
3634
+ // Column properties
3635
+ 'column-gap': px,
3636
+ 'column-rule': px,
3637
+ 'column-rule-width': px,
3638
+ 'column-width': px,
3639
+ // Font and text properties
3640
+ 'font-size': px,
3641
+ 'font-size-delta': px,
3642
+ 'letter-spacing': px,
3643
+ 'text-decoration-thickness': px,
3644
+ 'text-indent': px,
3645
+ 'text-stroke': px,
3646
+ 'text-stroke-width': px,
3647
+ 'word-spacing': px,
3648
+ // Motion properties
3649
+ motion: px,
3650
+ 'motion-offset': px,
3651
+ // Outline properties
3652
+ outline: px,
3653
+ 'outline-offset': px,
3654
+ 'outline-width': px,
3655
+ // Perspective properties
3656
+ perspective: px,
3657
+ 'perspective-origin-x': percent,
3658
+ 'perspective-origin-y': percent,
3659
+ // Transform properties
3660
+ 'transform-origin': percent,
3661
+ 'transform-origin-x': percent,
3662
+ 'transform-origin-y': percent,
3663
+ 'transform-origin-z': percent,
3664
+ // Transition properties
3665
+ 'transition-delay': ms,
3666
+ 'transition-duration': ms,
3667
+ // Alignment properties
3668
+ 'vertical-align': px,
3669
+ 'flex-basis': px,
3670
+ // Some random properties
3671
+ 'shape-margin': px,
3672
+ size: px,
3673
+ gap: px,
3674
+ // Grid properties
3675
+ grid: px,
3676
+ 'grid-gap': px,
3677
+ 'row-gap': px,
3678
+ 'grid-row-gap': px,
3679
+ 'grid-column-gap': px,
3680
+ 'grid-template-rows': px,
3681
+ 'grid-template-columns': px,
3682
+ 'grid-auto-rows': px,
3683
+ 'grid-auto-columns': px,
3684
+ // Not existing properties.
3685
+ // Used to avoid issues with jss-plugin-expand integration.
3686
+ 'box-shadow-x': px,
3687
+ 'box-shadow-y': px,
3688
+ 'box-shadow-blur': px,
3689
+ 'box-shadow-spread': px,
3690
+ 'font-line-height': px,
3691
+ 'text-shadow-x': px,
3692
+ 'text-shadow-y': px,
3693
+ 'text-shadow-blur': px
3694
+ };
3695
 
3696
+ /**
3697
+ * Clones the object and adds a camel cased property version.
3698
+ */
3699
+ function addCamelCasedVersion(obj) {
3700
+ var regExp = /(-[a-z])/g;
3701
 
3702
+ var replace = function replace(str) {
3703
+ return str[1].toUpperCase();
3704
+ };
3705
 
3706
+ var newObj = {};
 
3707
 
3708
+ for (var _key in obj) {
3709
+ newObj[_key] = obj[_key];
3710
+ newObj[_key.replace(regExp, replace)] = obj[_key];
3711
+ }
 
 
 
 
3712
 
3713
+ return newObj;
3714
+ }
3715
 
3716
+ var units = addCamelCasedVersion(defaultUnits);
3717
+ /**
3718
+ * Recursive deep style passing function
3719
+ */
 
 
 
3720
 
3721
+ function iterate(prop, value, options) {
3722
+ if (value == null) return value;
3723
+
3724
+ if (Array.isArray(value)) {
3725
+ for (var i = 0; i < value.length; i++) {
3726
+ value[i] = iterate(prop, value[i], options);
3727
  }
3728
+ } else if (typeof value === 'object') {
3729
+ if (prop === 'fallbacks') {
3730
+ for (var innerProp in value) {
3731
+ value[innerProp] = iterate(innerProp, value[innerProp], options);
3732
+ }
3733
+ } else {
3734
+ for (var _innerProp in value) {
3735
+ value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options);
3736
+ }
3737
+ } // eslint-disable-next-line no-restricted-globals
3738
 
3739
+ } else if (typeof value === 'number' && isNaN(value) === false) {
3740
+ var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.
3741
 
3742
+ if (unit && !(value === 0 && unit === px)) {
3743
+ return typeof unit === 'function' ? unit(value).toString() : "" + value + unit;
 
3744
  }
3745
 
3746
+ return value.toString();
3747
  }
 
 
 
 
3748
 
3749
+ return value;
3750
+ }
3751
+ /**
3752
+ * Add unit to numeric values.
3753
+ */
 
 
 
3754
 
 
 
3755
 
3756
+ function defaultUnit(options) {
3757
+ if (options === void 0) {
3758
+ options = {};
3759
+ }
 
3760
 
3761
+ var camelCasedOptions = addCamelCasedVersion(options);
3762
 
3763
+ function onProcessStyle(style, rule) {
3764
+ if (rule.type !== 'style') return style;
3765
+
3766
+ for (var prop in style) {
3767
+ style[prop] = iterate(prop, style[prop], camelCasedOptions);
3768
  }
3769
 
3770
+ return style;
3771
  }
 
 
 
 
3772
 
3773
+ function onChangeValue(value, prop) {
3774
+ return iterate(prop, value, camelCasedOptions);
3775
  }
 
 
 
 
3776
 
3777
+ return {
3778
+ onProcessStyle: onProcessStyle,
3779
+ onChangeValue: onChangeValue
3780
+ };
3781
+ }
 
 
 
 
3782
 
3783
+ /* harmony default export */ var jss_plugin_default_unit_esm = (defaultUnit);
 
3784
 
3785
+ // EXTERNAL MODULE: ./node_modules/is-in-browser/dist/module.js
3786
+ var dist_module = __webpack_require__(33827);
3787
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
3788
+ var toConsumableArray = __webpack_require__(78927);
3789
+ ;// CONCATENATED MODULE: ./node_modules/css-vendor/dist/css-vendor.esm.js
3790
 
 
 
 
 
 
 
3791
 
 
 
 
 
 
 
 
 
3792
 
3793
+ // Export javascript style and css style vendor prefixes.
3794
+ var js = '';
3795
+ var css = '';
3796
+ var vendor = '';
3797
+ var browser = '';
3798
+ var isTouch = dist_module/* default */.Z && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.
3799
 
3800
+ if (dist_module/* default */.Z) {
3801
+ // Order matters. We need to check Webkit the last one because
3802
+ // other vendors use to add Webkit prefixes to some properties
3803
+ var jsCssMap = {
3804
+ Moz: '-moz-',
3805
+ ms: '-ms-',
3806
+ O: '-o-',
3807
+ Webkit: '-webkit-'
3808
+ };
3809
 
3810
+ var _document$createEleme = document.createElement('p'),
3811
+ style = _document$createEleme.style;
 
 
 
 
 
 
 
 
3812
 
3813
+ var testProp = 'Transform';
3814
 
3815
+ for (var key in jsCssMap) {
3816
+ if (key + testProp in style) {
3817
+ js = key;
3818
+ css = jsCssMap[key];
3819
+ break;
 
 
3820
  }
3821
+ } // Correctly detect the Edge browser.
3822
 
 
 
 
 
 
 
3823
 
3824
+ if (js === 'Webkit' && 'msHyphens' in style) {
3825
+ js = 'ms';
3826
+ css = jsCssMap.ms;
3827
+ browser = 'edge';
3828
+ } // Correctly detect the Safari browser.
3829
 
 
 
 
3830
 
3831
+ if (js === 'Webkit' && '-apple-trailing-word' in style) {
3832
+ vendor = 'apple';
3833
  }
3834
+ }
3835
+ /**
3836
+ * Vendor prefix string for the current browser.
3837
+ *
3838
+ * @type {{js: String, css: String, vendor: String, browser: String}}
3839
+ * @api public
3840
+ */
3841
 
 
 
 
 
 
 
 
 
 
 
3842
 
3843
+ var prefix = {
3844
+ js: js,
3845
+ css: css,
3846
+ vendor: vendor,
3847
+ browser: browser,
3848
+ isTouch: isTouch
3849
+ };
 
 
3850
 
3851
+ /**
3852
+ * Test if a keyframe at-rule should be prefixed or not
3853
+ *
3854
+ * @param {String} vendor prefix string for the current browser.
3855
+ * @return {String}
3856
+ * @api public
3857
+ */
 
 
3858
 
3859
+ function supportedKeyframes(key) {
3860
+ // Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'
3861
+ if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.
3862
+ // https://caniuse.com/#search=keyframes
3863
 
3864
+ if (prefix.js === 'ms') return key;
3865
+ return "@" + prefix.css + "keyframes" + key.substr(10);
3866
+ }
3867
 
3868
+ // https://caniuse.com/#search=appearance
3869
+
3870
+ var appearence = {
3871
+ noPrefill: ['appearance'],
3872
+ supportedProperty: function supportedProperty(prop) {
3873
+ if (prop !== 'appearance') return false;
3874
+ if (prefix.js === 'ms') return "-webkit-" + prop;
3875
+ return prefix.css + prop;
3876
  }
3877
+ };
 
 
 
3878
 
3879
+ // https://caniuse.com/#search=color-adjust
 
 
 
 
 
3880
 
3881
+ var colorAdjust = {
3882
+ noPrefill: ['color-adjust'],
3883
+ supportedProperty: function supportedProperty(prop) {
3884
+ if (prop !== 'color-adjust') return false;
3885
+ if (prefix.js === 'Webkit') return prefix.css + "print-" + prop;
3886
+ return prop;
3887
+ }
3888
+ };
3889
 
3890
+ var regExp = /[-\s]+(.)?/g;
3891
+ /**
3892
+ * Replaces the letter with the capital letter
3893
+ *
3894
+ * @param {String} match
3895
+ * @param {String} c
3896
+ * @return {String}
3897
+ * @api private
3898
+ */
3899
 
3900
+ function toUpper(match, c) {
3901
+ return c ? c.toUpperCase() : '';
3902
+ }
3903
+ /**
3904
+ * Convert dash separated strings to camel-cased.
3905
+ *
3906
+ * @param {String} str
3907
+ * @return {String}
3908
+ * @api private
3909
+ */
3910
 
 
 
 
 
 
 
 
 
 
 
3911
 
3912
+ function camelize(str) {
3913
+ return str.replace(regExp, toUpper);
3914
+ }
3915
 
3916
  /**
3917
+ * Convert dash separated strings to pascal cased.
3918
+ *
3919
+ * @param {String} str
3920
+ * @return {String}
3921
+ * @api private
3922
  */
 
 
 
 
 
 
3923
 
3924
+ function pascalize(str) {
3925
+ return camelize("-" + str);
3926
+ }
3927
 
3928
+ // but we can use a longhand property instead.
3929
+ // https://caniuse.com/#search=mask
 
 
 
 
 
3930
 
3931
+ var mask = {
3932
+ noPrefill: ['mask'],
3933
+ supportedProperty: function supportedProperty(prop, style) {
3934
+ if (!/^mask/.test(prop)) return false;
3935
 
3936
+ if (prefix.js === 'Webkit') {
3937
+ var longhand = 'mask-image';
3938
 
3939
+ if (camelize(longhand) in style) {
3940
+ return prop;
 
 
3941
  }
 
 
 
 
 
 
3942
 
3943
+ if (prefix.js + pascalize(longhand) in style) {
3944
+ return prefix.css + prop;
3945
+ }
3946
+ }
 
 
 
3947
 
3948
+ return prop;
 
 
3949
  }
3950
+ };
 
 
 
 
 
 
 
 
 
 
3951
 
3952
+ // https://caniuse.com/#search=text-orientation
 
3953
 
3954
+ var textOrientation = {
3955
+ noPrefill: ['text-orientation'],
3956
+ supportedProperty: function supportedProperty(prop) {
3957
+ if (prop !== 'text-orientation') return false;
3958
 
3959
+ if (prefix.vendor === 'apple' && !prefix.isTouch) {
3960
+ return prefix.css + prop;
3961
  }
3962
 
3963
+ return prop;
3964
+ }
3965
+ };
3966
 
3967
+ // https://caniuse.com/#search=transform
 
3968
 
3969
+ var transform = {
3970
+ noPrefill: ['transform'],
3971
+ supportedProperty: function supportedProperty(prop, style, options) {
3972
+ if (prop !== 'transform') return false;
3973
+
3974
+ if (options.transform) {
3975
+ return prop;
3976
  }
 
3977
 
3978
+ return prefix.css + prop;
3979
+ }
3980
+ };
3981
 
3982
+ // https://caniuse.com/#search=transition
 
 
 
 
 
3983
 
3984
+ var transition = {
3985
+ noPrefill: ['transition'],
3986
+ supportedProperty: function supportedProperty(prop, style, options) {
3987
+ if (prop !== 'transition') return false;
3988
 
3989
+ if (options.transition) {
3990
+ return prop;
3991
+ }
3992
 
3993
+ return prefix.css + prop;
3994
+ }
3995
+ };
 
 
3996
 
3997
+ // https://caniuse.com/#search=writing-mode
3998
 
3999
+ var writingMode = {
4000
+ noPrefill: ['writing-mode'],
4001
+ supportedProperty: function supportedProperty(prop) {
4002
+ if (prop !== 'writing-mode') return false;
4003
 
4004
+ if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {
4005
+ return prefix.css + prop;
4006
+ }
4007
+
4008
+ return prop;
 
 
 
4009
  }
4010
+ };
4011
 
4012
+ // https://caniuse.com/#search=user-select
 
 
4013
 
4014
+ var userSelect = {
4015
+ noPrefill: ['user-select'],
4016
+ supportedProperty: function supportedProperty(prop) {
4017
+ if (prop !== 'user-select') return false;
4018
+
4019
+ if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {
4020
+ return prefix.css + prop;
4021
  }
4022
 
4023
+ return prop;
4024
+ }
4025
+ };
4026
 
4027
+ // https://caniuse.com/#search=multicolumn
4028
+ // https://github.com/postcss/autoprefixer/issues/491
4029
+ // https://github.com/postcss/autoprefixer/issues/177
 
4030
 
4031
+ var breakPropsOld = {
4032
+ supportedProperty: function supportedProperty(prop, style) {
4033
+ if (!/^break-/.test(prop)) return false;
4034
+
4035
+ if (prefix.js === 'Webkit') {
4036
+ var jsProp = "WebkitColumn" + pascalize(prop);
4037
+ return jsProp in style ? prefix.css + "column-" + prop : false;
4038
  }
4039
 
4040
+ if (prefix.js === 'Moz') {
4041
+ var _jsProp = "page" + pascalize(prop);
4042
+
4043
+ return _jsProp in style ? "page-" + prop : false;
4044
  }
4045
 
4046
+ return false;
4047
+ }
4048
  };
4049
 
4050
+ // See https://github.com/postcss/autoprefixer/issues/324.
4051
+
4052
+ var inlineLogicalOld = {
4053
+ supportedProperty: function supportedProperty(prop, style) {
4054
+ if (!/^(border|margin|padding)-inline/.test(prop)) return false;
4055
+ if (prefix.js === 'Moz') return prop;
4056
+ var newProp = prop.replace('-inline', '');
4057
+ return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
4058
+ }
4059
  };
4060
 
4061
+ // Camelization is required because we can't test using.
4062
+ // CSS syntax for e.g. in FF.
 
 
 
 
 
 
 
4063
 
4064
+ var unprefixed = {
4065
+ supportedProperty: function supportedProperty(prop, style) {
4066
+ return camelize(prop) in style ? prop : false;
 
4067
  }
4068
  };
4069
 
4070
+ var prefixed = {
4071
+ supportedProperty: function supportedProperty(prop, style) {
4072
+ var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.
 
 
 
 
 
 
4073
 
4074
+ if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.
 
 
 
 
4075
 
4076
+ if (prop[0] === '-' && prop[1] === '-') return prop;
4077
+ if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.
4078
 
4079
+ if (prefix.js !== 'Webkit' && "Webkit" + pascalized in style) return "-webkit-" + prop;
 
 
 
 
 
 
4080
  return false;
4081
  }
 
 
4082
  };
4083
 
4084
+ // https://caniuse.com/#search=scroll-snap
4085
+
4086
+ var scrollSnap = {
4087
+ supportedProperty: function supportedProperty(prop) {
4088
+ if (prop.substring(0, 11) !== 'scroll-snap') return false;
4089
+
4090
+ if (prefix.js === 'ms') {
4091
+ return "" + prefix.css + prop;
 
 
4092
  }
4093
+
4094
+ return prop;
4095
  }
4096
  };
4097
 
4098
+ // https://caniuse.com/#search=overscroll-behavior
 
 
 
 
 
4099
 
4100
+ var overscrollBehavior = {
4101
+ supportedProperty: function supportedProperty(prop) {
4102
+ if (prop !== 'overscroll-behavior') return false;
 
 
 
4103
 
4104
+ if (prefix.js === 'ms') {
4105
+ return prefix.css + "scroll-chaining";
4106
+ }
4107
 
4108
+ return prop;
4109
+ }
4110
+ };
 
 
 
4111
 
4112
+ var propMap = {
4113
+ 'flex-grow': 'flex-positive',
4114
+ 'flex-shrink': 'flex-negative',
4115
+ 'flex-basis': 'flex-preferred-size',
4116
+ 'justify-content': 'flex-pack',
4117
+ order: 'flex-order',
4118
+ 'align-items': 'flex-align',
4119
+ 'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.
4120
 
4121
+ }; // Support old flex spec from 2012.
4122
+
4123
+ var flex2012 = {
4124
+ supportedProperty: function supportedProperty(prop, style) {
4125
+ var newProp = propMap[prop];
4126
+ if (!newProp) return false;
4127
+ return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
4128
  }
4129
+ };
4130
 
4131
+ var propMap$1 = {
4132
+ flex: 'box-flex',
4133
+ 'flex-grow': 'box-flex',
4134
+ 'flex-direction': ['box-orient', 'box-direction'],
4135
+ order: 'box-ordinal-group',
4136
+ 'align-items': 'box-align',
4137
+ 'flex-flow': ['box-orient', 'box-direction'],
4138
+ 'justify-content': 'box-pack'
4139
+ };
4140
+ var propKeys = Object.keys(propMap$1);
4141
 
4142
+ var prefixCss = function prefixCss(p) {
4143
+ return prefix.css + p;
4144
+ }; // Support old flex spec from 2009.
4145
 
 
 
 
4146
 
4147
+ var flex2009 = {
4148
+ supportedProperty: function supportedProperty(prop, style, _ref) {
4149
+ var multiple = _ref.multiple;
 
4150
 
4151
+ if (propKeys.indexOf(prop) > -1) {
4152
+ var newProp = propMap$1[prop];
 
 
 
4153
 
4154
+ if (!Array.isArray(newProp)) {
4155
+ return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
4156
+ }
4157
 
4158
+ if (!multiple) return false;
 
4159
 
4160
+ for (var i = 0; i < newProp.length; i++) {
4161
+ if (!(prefix.js + pascalize(newProp[0]) in style)) {
4162
+ return false;
4163
+ }
4164
+ }
4165
 
4166
+ return newProp.map(prefixCss);
 
4167
  }
4168
+
4169
+ return false;
4170
  }
4171
+ };
4172
 
4173
+ // plugins = [
4174
+ // ...plugins,
4175
+ // breakPropsOld,
4176
+ // inlineLogicalOld,
4177
+ // unprefixed,
4178
+ // prefixed,
4179
+ // scrollSnap,
4180
+ // flex2012,
4181
+ // flex2009
4182
+ // ]
4183
+ // Plugins without 'noPrefill' value, going last.
4184
+ // 'flex-*' plugins should be at the bottom.
4185
+ // 'flex2009' going after 'flex2012'.
4186
+ // 'prefixed' going after 'unprefixed'
4187
 
4188
+ var plugins = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];
4189
+ var propertyDetectors = plugins.filter(function (p) {
4190
+ return p.supportedProperty;
4191
+ }).map(function (p) {
4192
+ return p.supportedProperty;
4193
+ });
4194
+ var noPrefill = plugins.filter(function (p) {
4195
+ return p.noPrefill;
4196
+ }).reduce(function (a, p) {
4197
+ a.push.apply(a, (0,toConsumableArray/* default */.Z)(p.noPrefill));
4198
+ return a;
4199
+ }, []);
4200
 
4201
+ var el;
4202
+ var css_vendor_esm_cache = {};
 
4203
 
4204
+ if (dist_module/* default */.Z) {
4205
+ el = document.createElement('p'); // We test every property on vendor prefix requirement.
4206
+ // Once tested, result is cached. It gives us up to 70% perf boost.
4207
+ // http://jsperf.com/element-style-object-access-vs-plain-object
4208
+ //
4209
+ // Prefill cache with known css properties to reduce amount of
4210
+ // properties we need to feature test at runtime.
4211
+ // http://davidwalsh.name/vendor-prefix
4212
 
4213
+ var computed = window.getComputedStyle(document.documentElement, '');
4214
 
4215
+ for (var key$1 in computed) {
4216
+ // eslint-disable-next-line no-restricted-globals
4217
+ if (!isNaN(key$1)) css_vendor_esm_cache[computed[key$1]] = computed[key$1];
4218
+ } // Properties that cannot be correctly detected using the
4219
+ // cache prefill method.
4220
 
 
 
 
 
 
 
 
4221
 
4222
+ noPrefill.forEach(function (x) {
4223
+ return delete css_vendor_esm_cache[x];
4224
+ });
4225
+ }
4226
+ /**
4227
+ * Test if a property is supported, returns supported property with vendor
4228
+ * prefix if required. Returns `false` if not supported.
4229
+ *
4230
+ * @param {String} prop dash separated
4231
+ * @param {Object} [options]
4232
+ * @return {String|Boolean}
4233
+ * @api public
4234
+ */
4235
 
 
4236
 
4237
+ function supportedProperty(prop, options) {
4238
+ if (options === void 0) {
4239
+ options = {};
4240
+ }
4241
 
4242
+ // For server-side rendering.
4243
+ if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.
 
 
 
 
 
4244
 
4245
+ if ( true && css_vendor_esm_cache[prop] != null) {
4246
+ return css_vendor_esm_cache[prop];
4247
+ } // Check if 'transition' or 'transform' natively supported in browser.
4248
 
 
 
4249
 
4250
+ if (prop === 'transition' || prop === 'transform') {
4251
+ options[prop] = prop in el.style;
4252
+ } // Find a plugin for current prefix property.
 
 
4253
 
4254
 
4255
+ for (var i = 0; i < propertyDetectors.length; i++) {
4256
+ css_vendor_esm_cache[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.
 
4257
 
4258
+ if (css_vendor_esm_cache[prop]) break;
4259
+ } // Reset styles for current property.
4260
+ // Firefox can even throw an error for invalid properties, e.g., "0".
 
4261
 
4262
 
4263
+ try {
4264
+ el.style[prop] = '';
4265
+ } catch (err) {
4266
+ return false;
 
 
4267
  }
4268
 
4269
+ return css_vendor_esm_cache[prop];
4270
  }
4271
+
4272
+ var cache$1 = {};
4273
+ var transitionProperties = {
4274
+ transition: 1,
4275
+ 'transition-property': 1,
4276
+ '-webkit-transition': 1,
4277
+ '-webkit-transition-property': 1
4278
+ };
4279
+ var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;
4280
+ var el$1;
4281
  /**
4282
+ * Returns prefixed value transition/transform if needed.
4283
+ *
4284
+ * @param {String} match
4285
+ * @param {String} p1
4286
+ * @param {String} p2
4287
+ * @return {String}
4288
+ * @api private
4289
  */
4290
 
4291
+ function prefixTransitionCallback(match, p1, p2) {
4292
+ if (p1 === 'var') return 'var';
4293
+ if (p1 === 'all') return 'all';
4294
+ if (p2 === 'all') return ', all';
4295
+ var prefixedValue = p1 ? supportedProperty(p1) : ", " + supportedProperty(p2);
4296
+ if (!prefixedValue) return p1 || p2;
4297
+ return prefixedValue;
4298
+ }
4299
 
4300
+ if (dist_module/* default */.Z) el$1 = document.createElement('p');
4301
+ /**
4302
+ * Returns prefixed value if needed. Returns `false` if value is not supported.
4303
+ *
4304
+ * @param {String} property
4305
+ * @param {String} value
4306
+ * @return {String|Boolean}
4307
+ * @api public
4308
+ */
4309
 
4310
+ function supportedValue(property, value) {
4311
+ // For server-side rendering.
4312
+ var prefixedValue = value;
4313
+ if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.
4314
+ // We want only prefixable values here.
4315
+ // eslint-disable-next-line no-restricted-globals
 
 
4316
 
4317
+ if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {
4318
+ return prefixedValue;
4319
+ } // Create cache key for current value.
4320
+
4321
+
4322
+ var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.
4323
+
4324
+ if ( true && cache$1[cacheKey] != null) {
4325
+ return cache$1[cacheKey];
4326
+ } // IE can even throw an error in some cases, for e.g. style.content = 'bar'.
4327
+
4328
+
4329
+ try {
4330
+ // Test value as it is.
4331
+ el$1.style[property] = prefixedValue;
4332
  } catch (err) {
4333
+ // Return false if value not supported.
4334
+ cache$1[cacheKey] = false;
4335
  return false;
4336
+ } // If 'transition' or 'transition-property' property.
4337
 
 
 
4338
 
4339
+ if (transitionProperties[property]) {
4340
+ prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);
4341
+ } else if (el$1.style[property] === '') {
4342
+ // Value with a vendor prefix.
4343
+ prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert "flex" to "-ms-flexbox" for IE10.
4344
 
4345
+ if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.
 
 
 
4346
 
4347
+ el$1.style[property] = prefixedValue; // Return false if value not supported.
 
4348
 
4349
+ if (el$1.style[property] === '') {
4350
+ cache$1[cacheKey] = false;
4351
+ return false;
4352
+ }
4353
+ } // Reset styles for current property.
4354
 
 
 
 
4355
 
4356
+ el$1.style[property] = ''; // Write current value to cache.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4357
 
4358
+ cache$1[cacheKey] = prefixedValue;
4359
+ return cache$1[cacheKey];
4360
+ }
 
4361
 
 
 
 
 
 
 
 
 
 
 
4362
 
4363
 
4364
+ ;// CONCATENATED MODULE: ./node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js
4365
 
 
 
 
 
 
4366
 
 
4367
 
4368
+ /**
4369
+ * Add vendor prefix to a property name when needed.
4370
+ *
4371
+ * @api public
4372
+ */
4373
+
4374
+ function jssVendorPrefixer() {
4375
+ function onProcessRule(rule) {
4376
+ if (rule.type === 'keyframes') {
4377
+ var atRule = rule;
4378
+ atRule.at = supportedKeyframes(atRule.at);
4379
  }
4380
  }
 
 
 
 
4381
 
4382
+ function prefixStyle(style) {
4383
+ for (var prop in style) {
4384
+ var value = style[prop];
 
 
4385
 
4386
+ if (prop === 'fallbacks' && Array.isArray(value)) {
4387
+ style[prop] = value.map(prefixStyle);
4388
+ continue;
4389
+ }
 
 
 
 
 
4390
 
4391
+ var changeProp = false;
4392
+ var supportedProp = supportedProperty(prop);
4393
+ if (supportedProp && supportedProp !== prop) changeProp = true;
4394
+ var changeValue = false;
4395
+ var supportedValue$1 = supportedValue(supportedProp, (0,jss_esm/* toCssValue */.EK)(value));
4396
+ if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;
4397
 
4398
+ if (changeProp || changeValue) {
4399
+ if (changeProp) delete style[prop];
4400
+ style[supportedProp || prop] = supportedValue$1 || value;
4401
+ }
4402
  }
4403
 
4404
+ return style;
4405
  }
 
 
 
 
4406
 
4407
+ function onProcessStyle(style, rule) {
4408
+ if (rule.type !== 'style') return style;
4409
+ return prefixStyle(style);
 
4410
  }
 
 
 
 
4411
 
4412
+ function onChangeValue(value, prop) {
4413
+ return supportedValue(prop, (0,jss_esm/* toCssValue */.EK)(value)) || value;
4414
+ }
 
4415
 
4416
+ return {
4417
+ onProcessRule: onProcessRule,
4418
+ onProcessStyle: onProcessStyle,
4419
+ onChangeValue: onChangeValue
4420
+ };
4421
+ }
4422
 
4423
+ /* harmony default export */ var jss_plugin_vendor_prefixer_esm = (jssVendorPrefixer);
 
4424
 
4425
+ ;// CONCATENATED MODULE: ./node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js
4426
+ /**
4427
+ * Sort props by length.
4428
+ */
4429
+ function jssPropsSort() {
4430
+ var sort = function sort(prop0, prop1) {
4431
+ if (prop0.length === prop1.length) {
4432
+ return prop0 > prop1 ? 1 : -1;
4433
+ }
4434
 
4435
+ return prop0.length - prop1.length;
4436
+ };
 
4437
 
4438
+ return {
4439
+ onProcessStyle: function onProcessStyle(style, rule) {
4440
+ if (rule.type !== 'style') return style;
4441
+ var newStyle = {};
4442
+ var props = Object.keys(style).sort(sort);
4443
 
4444
+ for (var i = 0; i < props.length; i++) {
4445
+ newStyle[props[i]] = style[props[i]];
4446
  }
4447
 
4448
+ return newStyle;
 
4449
  }
4450
+ };
4451
+ }
4452
 
4453
+ /* harmony default export */ var jss_plugin_props_sort_esm = (jssPropsSort);
 
 
 
 
4454
 
4455
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js
 
 
4456
 
 
 
 
 
4457
 
 
 
 
4458
 
 
 
 
 
 
 
 
 
4459
 
 
 
 
 
 
 
 
 
 
 
 
 
4460
 
 
 
 
 
 
 
 
 
 
4461
 
4462
+ // Subset of jss-preset-default with only the plugins the Material-UI components are using.
 
 
 
 
 
 
 
 
 
 
4463
 
4464
+ function jssPreset() {
4465
+ return {
4466
+ plugins: [jss_plugin_rule_value_function_esm(), jss_plugin_global_esm(), jss_plugin_nested_esm(), jss_plugin_camel_case_esm(), jss_plugin_default_unit_esm(), // Disable the vendor prefixer server-side, it does nothing.
4467
+ // This way, we can get a performance boost.
4468
+ // In the documentation, we are using `autoprefixer` to solve this problem.
4469
+ typeof window === 'undefined' ? null : jss_plugin_vendor_prefixer_esm(), jss_plugin_props_sort_esm()]
4470
  };
4471
+ }
4472
 
4473
+ /***/ }),
 
4474
 
4475
+ /***/ 73914:
4476
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4477
 
4478
+ "use strict";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4479
 
4480
+ // EXPORTS
4481
+ __webpack_require__.d(__webpack_exports__, {
4482
+ "Z": function() { return /* binding */ makeStyles; }
4483
+ });
4484
+
4485
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
4486
+ var objectWithoutProperties = __webpack_require__(81253);
4487
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
4488
+ var esm_extends = __webpack_require__(22122);
4489
+ // EXTERNAL MODULE: ./node_modules/react/index.js
4490
+ var react = __webpack_require__(67294);
4491
+ // EXTERNAL MODULE: ./node_modules/jss/dist/jss.esm.js
4492
+ var jss_esm = __webpack_require__(54013);
4493
+ // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/mergeClasses/mergeClasses.js
4494
+ var mergeClasses = __webpack_require__(65835);
4495
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/makeStyles/multiKeyStore.js
4496
+ // Used https://github.com/thinkloop/multi-key-cache as inspiration
4497
+ var multiKeyStore = {
4498
+ set: function set(cache, key1, key2, value) {
4499
+ var subCache = cache.get(key1);
4500
+
4501
+ if (!subCache) {
4502
+ subCache = new Map();
4503
+ cache.set(key1, subCache);
4504
  }
4505
 
4506
+ subCache.set(key2, value);
4507
+ },
4508
+ get: function get(cache, key1, key2) {
4509
+ var subCache = cache.get(key1);
4510
+ return subCache ? subCache.get(key2) : undefined;
4511
+ },
4512
+ delete: function _delete(cache, key1, key2) {
4513
+ var subCache = cache.get(key1);
4514
+ subCache.delete(key2);
4515
  }
4516
+ };
4517
+ /* harmony default export */ var makeStyles_multiKeyStore = (multiKeyStore);
4518
+ // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/useTheme/useTheme.js
4519
+ var useTheme = __webpack_require__(159);
4520
+ // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js + 1 modules
4521
+ var StylesProvider = __webpack_require__(4137);
4522
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/makeStyles/indexCounter.js
4523
+ /* eslint-disable import/prefer-default-export */
4524
+ // Global index counter to preserve source order.
4525
+ // We create the style sheet during the creation of the component,
4526
+ // children are handled after the parents, so the order of style elements would be parent->child.
4527
+ // It is a problem though when a parent passes a className
4528
+ // which needs to override any child's styles.
4529
+ // StyleSheet of the child has a higher specificity, because of the source order.
4530
+ // So our solution is to render sheets them in the reverse order child->sheet, so
4531
+ // that parent has a higher specificity.
4532
+ var indexCounter = -1e9;
4533
+ function increment() {
4534
+ indexCounter += 1;
4535
 
4536
+ if (false) {}
4537
 
4538
+ return indexCounter;
4539
+ }
4540
+ // EXTERNAL MODULE: ./node_modules/@material-ui/utils/esm/deepmerge.js
4541
+ var deepmerge = __webpack_require__(35953);
4542
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js
4543
 
 
 
 
 
4544
 
 
 
 
4545
 
 
 
 
4546
 
4547
+ function getStylesCreator(stylesOrCreator) {
4548
+ var themingEnabled = typeof stylesOrCreator === 'function';
 
4549
 
4550
+ if (false) {}
4551
 
4552
+ return {
4553
+ create: function create(theme, name) {
4554
+ var styles;
4555
 
4556
+ try {
4557
+ styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;
4558
+ } catch (err) {
4559
+ if (false) {}
4560
 
4561
+ throw err;
4562
+ }
 
 
 
 
 
4563
 
4564
+ if (!name || !theme.overrides || !theme.overrides[name]) {
4565
+ return styles;
4566
+ }
 
4567
 
4568
+ var overrides = theme.overrides[name];
 
4569
 
4570
+ var stylesWithOverrides = (0,esm_extends/* default */.Z)({}, styles);
 
 
4571
 
4572
+ Object.keys(overrides).forEach(function (key) {
4573
+ if (false) {}
 
 
 
 
 
 
 
 
 
 
 
 
4574
 
4575
+ stylesWithOverrides[key] = (0,deepmerge/* default */.Z)(stylesWithOverrides[key], overrides[key]);
4576
+ });
4577
+ return stylesWithOverrides;
4578
+ },
4579
+ options: {}
4580
+ };
4581
+ }
4582
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/getStylesCreator/noopTheme.js
4583
+ // We use the same empty object to ref count the styles that don't need a theme object.
4584
+ var noopTheme = {};
4585
+ /* harmony default export */ var getStylesCreator_noopTheme = (noopTheme);
4586
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/styles/esm/makeStyles/makeStyles.js
4587
 
 
 
 
 
4588
 
 
 
 
4589
 
 
 
 
 
 
4590
 
4591
 
 
 
 
 
 
4592
 
 
 
 
4593
 
 
4594
 
 
 
 
 
 
 
 
4595
 
 
 
4596
 
 
 
 
4597
 
 
 
 
 
 
4598
 
4599
+ function getClasses(_ref, classes, Component) {
4600
+ var state = _ref.state,
4601
+ stylesOptions = _ref.stylesOptions;
4602
 
4603
+ if (stylesOptions.disableGeneration) {
4604
+ return classes || {};
4605
+ }
 
 
4606
 
4607
+ if (!state.cacheClasses) {
4608
+ state.cacheClasses = {
4609
+ // Cache for the finalized classes value.
4610
+ value: null,
4611
+ // Cache for the last used classes prop pointer.
4612
+ lastProp: null,
4613
+ // Cache for the last used rendered classes pointer.
4614
+ lastJSS: {}
4615
+ };
4616
+ } // Tracks if either the rendered classes or classes prop has changed,
4617
+ // requiring the generation of a new finalized classes object.
4618
 
 
 
 
 
 
4619
 
4620
+ var generate = false;
4621
+
4622
+ if (state.classes !== state.cacheClasses.lastJSS) {
4623
+ state.cacheClasses.lastJSS = state.classes;
4624
+ generate = true;
4625
  }
4626
 
4627
+ if (classes !== state.cacheClasses.lastProp) {
4628
+ state.cacheClasses.lastProp = classes;
4629
+ generate = true;
4630
+ }
4631
+
4632
+ if (generate) {
4633
+ state.cacheClasses.value = (0,mergeClasses/* default */.Z)({
4634
+ baseClasses: state.cacheClasses.lastJSS,
4635
+ newClasses: classes,
4636
+ Component: Component
4637
+ });
4638
+ }
4639
+
4640
+ return state.cacheClasses.value;
4641
  }
4642
 
4643
+ function attach(_ref2, props) {
4644
+ var state = _ref2.state,
4645
+ theme = _ref2.theme,
4646
+ stylesOptions = _ref2.stylesOptions,
4647
+ stylesCreator = _ref2.stylesCreator,
4648
+ name = _ref2.name;
4649
+
4650
+ if (stylesOptions.disableGeneration) {
4651
+ return;
 
4652
  }
4653
 
4654
+ var sheetManager = makeStyles_multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);
4655
 
4656
+ if (!sheetManager) {
4657
+ sheetManager = {
4658
+ refs: 0,
4659
+ staticSheet: null,
4660
+ dynamicStyles: null
4661
+ };
4662
+ makeStyles_multiKeyStore.set(stylesOptions.sheetsManager, stylesCreator, theme, sheetManager);
4663
+ }
4664
 
4665
+ var options = (0,esm_extends/* default */.Z)({}, stylesCreator.options, stylesOptions, {
4666
+ theme: theme,
4667
+ flip: typeof stylesOptions.flip === 'boolean' ? stylesOptions.flip : theme.direction === 'rtl'
4668
+ });
 
 
 
 
4669
 
4670
+ options.generateId = options.serverGenerateClassName || options.generateClassName;
4671
+ var sheetsRegistry = stylesOptions.sheetsRegistry;
4672
 
4673
+ if (sheetManager.refs === 0) {
4674
+ var staticSheet;
 
 
4675
 
4676
+ if (stylesOptions.sheetsCache) {
4677
+ staticSheet = makeStyles_multiKeyStore.get(stylesOptions.sheetsCache, stylesCreator, theme);
4678
  }
4679
 
4680
+ var styles = stylesCreator.create(theme, name);
 
 
4681
 
4682
+ if (!staticSheet) {
4683
+ staticSheet = stylesOptions.jss.createStyleSheet(styles, (0,esm_extends/* default */.Z)({
4684
+ link: false
4685
+ }, options));
4686
+ staticSheet.attach();
4687
 
4688
+ if (stylesOptions.sheetsCache) {
4689
+ makeStyles_multiKeyStore.set(stylesOptions.sheetsCache, stylesCreator, theme, staticSheet);
 
 
4690
  }
 
 
4691
  }
 
4692
 
4693
+ if (sheetsRegistry) {
4694
+ sheetsRegistry.add(staticSheet);
 
 
4695
  }
 
4696
 
4697
+ sheetManager.staticSheet = staticSheet;
4698
+ sheetManager.dynamicStyles = (0,jss_esm/* getDynamicStyles */._$)(styles);
4699
+ }
4700
 
4701
+ if (sheetManager.dynamicStyles) {
4702
+ var dynamicSheet = stylesOptions.jss.createStyleSheet(sheetManager.dynamicStyles, (0,esm_extends/* default */.Z)({
4703
+ link: true
4704
+ }, options));
4705
+ dynamicSheet.update(props);
4706
+ dynamicSheet.attach();
4707
+ state.dynamicSheet = dynamicSheet;
4708
+ state.classes = (0,mergeClasses/* default */.Z)({
4709
+ baseClasses: sheetManager.staticSheet.classes,
4710
+ newClasses: dynamicSheet.classes
4711
+ });
4712
 
4713
+ if (sheetsRegistry) {
4714
+ sheetsRegistry.add(dynamicSheet);
4715
+ }
4716
+ } else {
4717
+ state.classes = sheetManager.staticSheet.classes;
4718
+ }
 
 
4719
 
4720
+ sheetManager.refs += 1;
4721
+ }
 
 
 
 
4722
 
4723
+ function update(_ref3, props) {
4724
+ var state = _ref3.state;
4725
+
4726
+ if (state.dynamicSheet) {
4727
+ state.dynamicSheet.update(props);
4728
+ }
4729
+ }
4730
 
4731
+ function detach(_ref4) {
4732
+ var state = _ref4.state,
4733
+ theme = _ref4.theme,
4734
+ stylesOptions = _ref4.stylesOptions,
4735
+ stylesCreator = _ref4.stylesCreator;
4736
 
4737
+ if (stylesOptions.disableGeneration) {
4738
+ return;
4739
+ }
4740
 
4741
+ var sheetManager = makeStyles_multiKeyStore.get(stylesOptions.sheetsManager, stylesCreator, theme);
4742
+ sheetManager.refs -= 1;
4743
+ var sheetsRegistry = stylesOptions.sheetsRegistry;
4744
 
4745
+ if (sheetManager.refs === 0) {
4746
+ makeStyles_multiKeyStore.delete(stylesOptions.sheetsManager, stylesCreator, theme);
4747
+ stylesOptions.jss.removeStyleSheet(sheetManager.staticSheet);
4748
 
4749
+ if (sheetsRegistry) {
4750
+ sheetsRegistry.remove(sheetManager.staticSheet);
4751
+ }
4752
+ }
 
 
4753
 
4754
+ if (state.dynamicSheet) {
4755
+ stylesOptions.jss.removeStyleSheet(state.dynamicSheet);
4756
 
4757
+ if (sheetsRegistry) {
4758
+ sheetsRegistry.remove(state.dynamicSheet);
4759
+ }
4760
+ }
4761
+ }
4762
 
4763
+ function useSynchronousEffect(func, values) {
4764
+ var key = react.useRef([]);
4765
+ var output; // Store "generation" key. Just returns a new object every time
4766
 
4767
+ var currentKey = react.useMemo(function () {
4768
+ return {};
4769
+ }, values); // eslint-disable-line react-hooks/exhaustive-deps
4770
+ // "the first render", or "memo dropped the value"
4771
 
4772
+ if (key.current !== currentKey) {
4773
+ key.current = currentKey;
4774
+ output = func();
 
 
 
 
 
 
 
 
 
 
 
 
 
4775
  }
4776
+
4777
+ react.useEffect(function () {
4778
+ return function () {
4779
+ if (output) {
4780
+ output();
4781
+ }
4782
+ };
4783
+ }, [currentKey] // eslint-disable-line react-hooks/exhaustive-deps
4784
+ );
4785
  }
4786
 
4787
+ function makeStyles(stylesOrCreator) {
4788
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
 
 
 
 
4789
 
4790
+ var name = options.name,
4791
+ classNamePrefixOption = options.classNamePrefix,
4792
+ Component = options.Component,
4793
+ _options$defaultTheme = options.defaultTheme,
4794
+ defaultTheme = _options$defaultTheme === void 0 ? getStylesCreator_noopTheme : _options$defaultTheme,
4795
+ stylesOptions2 = (0,objectWithoutProperties/* default */.Z)(options, ["name", "classNamePrefix", "Component", "defaultTheme"]);
4796
 
4797
+ var stylesCreator = getStylesCreator(stylesOrCreator);
4798
+ var classNamePrefix = name || classNamePrefixOption || 'makeStyles';
4799
+ stylesCreator.options = {
4800
+ index: increment(),
4801
+ name: name,
4802
+ meta: classNamePrefix,
4803
+ classNamePrefix: classNamePrefix
4804
+ };
4805
 
4806
+ var useStyles = function useStyles() {
4807
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
4808
+ var theme = (0,useTheme/* default */.Z)() || defaultTheme;
4809
 
4810
+ var stylesOptions = (0,esm_extends/* default */.Z)({}, react.useContext(StylesProvider/* StylesContext */.NU), stylesOptions2);
 
 
 
 
 
 
4811
 
4812
+ var instance = react.useRef();
4813
+ var shouldUpdate = react.useRef();
4814
+ useSynchronousEffect(function () {
4815
+ var current = {
4816
+ name: name,
4817
+ state: {},
4818
+ stylesCreator: stylesCreator,
4819
+ stylesOptions: stylesOptions,
4820
+ theme: theme
4821
+ };
4822
+ attach(current, props);
4823
+ shouldUpdate.current = false;
4824
+ instance.current = current;
4825
+ return function () {
4826
+ detach(current);
4827
+ };
4828
+ }, [theme, stylesCreator]);
4829
+ react.useEffect(function () {
4830
+ if (shouldUpdate.current) {
4831
+ update(instance.current, props);
4832
+ }
4833
 
4834
+ shouldUpdate.current = true;
4835
+ });
4836
+ var classes = getClasses(instance.current, props.classes, Component);
 
 
 
 
 
 
 
4837
 
4838
+ if (false) {}
 
 
4839
 
4840
+ return classes;
4841
+ };
4842
 
4843
+ return useStyles;
 
4844
  }
 
 
 
 
4845
 
4846
+ /***/ }),
 
 
 
4847
 
4848
+ /***/ 65835:
4849
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4850
+
4851
+ "use strict";
4852
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4853
+ /* harmony export */ "Z": function() { return /* binding */ mergeClasses; }
4854
+ /* harmony export */ });
4855
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22122);
4856
+
4857
+
4858
+ function mergeClasses() {
4859
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
4860
+ var baseClasses = options.baseClasses,
4861
+ newClasses = options.newClasses,
4862
+ Component = options.Component;
4863
+
4864
+ if (!newClasses) {
4865
+ return baseClasses;
4866
  }
4867
 
4868
+ var nextClasses = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)({}, baseClasses);
4869
+
4870
+ if (false) {}
4871
+
4872
+ Object.keys(newClasses).forEach(function (key) {
4873
+ if (false) {}
4874
+
4875
+ if (newClasses[key]) {
4876
+ nextClasses[key] = "".concat(baseClasses[key], " ").concat(newClasses[key]);
4877
+ }
4878
+ });
4879
+ return nextClasses;
4880
  }
 
4881
 
4882
+ /***/ }),
4883
+
4884
+ /***/ 83800:
4885
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4886
+
4887
+ "use strict";
4888
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67294);
4889
+
4890
+ var ThemeContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);
4891
 
4892
+ if (false) {}
4893
 
4894
+ /* harmony default export */ __webpack_exports__["Z"] = (ThemeContext);
4895
 
4896
  /***/ }),
 
 
4897
 
4898
+ /***/ 159:
4899
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4900
+
4901
+ "use strict";
4902
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4903
+ /* harmony export */ "Z": function() { return /* binding */ useTheme; }
4904
+ /* harmony export */ });
4905
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67294);
4906
+ /* harmony import */ var _ThemeContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83800);
4907
+
4908
+
4909
+ function useTheme() {
4910
+ var theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_ThemeContext__WEBPACK_IMPORTED_MODULE_1__/* .default */ .Z);
4911
 
4912
+ if (false) {}
4913
+
4914
+ return theme;
4915
+ }
4916
 
4917
  /***/ }),
4918
+
4919
+ /***/ 35953:
4920
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4921
 
4922
  "use strict";
4923
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4924
+ /* harmony export */ "Z": function() { return /* binding */ deepmerge; }
4925
+ /* harmony export */ });
4926
+ /* unused harmony export isPlainObject */
4927
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22122);
4928
+ /* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90484);
4929
+
4930
+
4931
+ function isPlainObject(item) {
4932
+ return item && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__/* .default */ .Z)(item) === 'object' && item.constructor === Object;
4933
+ }
4934
+ function deepmerge(target, source) {
4935
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
4936
+ clone: true
4937
+ };
4938
+ var output = options.clone ? (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__/* .default */ .Z)({}, target) : target;
4939
+
4940
+ if (isPlainObject(target) && isPlainObject(source)) {
4941
+ Object.keys(source).forEach(function (key) {
4942
+ // Avoid prototype pollution
4943
+ if (key === '__proto__') {
4944
+ return;
4945
+ }
4946
+
4947
+ if (isPlainObject(source[key]) && key in target) {
4948
+ output[key] = deepmerge(target[key], source[key], options);
4949
+ } else {
4950
+ output[key] = source[key];
4951
+ }
4952
  });
 
 
4953
  }
4954
 
4955
+ return output;
4956
  }
4957
 
4958
  /***/ }),
 
 
4959
 
4960
+ /***/ 60288:
4961
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
 
4962
 
4963
+ "use strict";
4964
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4965
+ /* harmony export */ "Z": function() { return /* binding */ formatMuiErrorMessage; }
4966
+ /* harmony export */ });
4967
  /**
4968
+ * WARNING: Don't import this directly.
4969
+ * Use `MuiError` from `@material-ui/utils/macros/MuiError.macro` instead.
4970
+ * @param {number} code
4971
  */
4972
+ function formatMuiErrorMessage(code) {
4973
+ // Apply babel-plugin-transform-template-literals in loose mode
4974
+ // loose mode is safe iff we're concatenating primitives
4975
+ // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose
4976
 
4977
+ /* eslint-disable prefer-template */
4978
+ var url = 'https://material-ui.com/production-error/?code=' + code;
4979
+
4980
+ for (var i = 1; i < arguments.length; i += 1) {
4981
+ // rest params over-transpile for this case
4982
+ // eslint-disable-next-line prefer-rest-params
4983
+ url += '&args[]=' + encodeURIComponent(arguments[i]);
4984
+ }
4985
+
4986
+ return 'Minified Material-UI error #' + code + '; visit ' + url + ' for the full message.';
4987
+ /* eslint-enable prefer-template */
4988
  }
4989
 
4990
  /***/ }),
 
 
4991
 
4992
+ /***/ 62844:
4993
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
 
4994
 
4995
+ "use strict";
4996
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4997
+ /* harmony export */ "Rf": function() { return /* binding */ getGlobalObject; },
4998
+ /* harmony export */ "DM": function() { return /* binding */ uuid4; },
4999
+ /* harmony export */ "en": function() { return /* binding */ parseUrl; },
5000
+ /* harmony export */ "jH": function() { return /* binding */ getEventDescription; },
5001
+ /* harmony export */ "Cf": function() { return /* binding */ consoleSandbox; },
5002
+ /* harmony export */ "Db": function() { return /* binding */ addExceptionTypeValue; },
5003
+ /* harmony export */ "EG": function() { return /* binding */ addExceptionMechanism; },
5004
+ /* harmony export */ "l4": function() { return /* binding */ getLocationHref; },
5005
+ /* harmony export */ "JY": function() { return /* binding */ parseRetryAfterHeader; }
5006
+ /* harmony export */ });
5007
+ /* unused harmony exports parseSemver, addContextToFrame, stripUrlQueryAndFragment */
5008
+ /* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61422);
5009
 
 
 
 
5010
 
5011
+ var fallbackGlobalObject = {};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5012
  /**
5013
+ * Safely get global scope object
 
5014
  *
5015
+ * @returns Global scope object
 
5016
  */
5017
+ function getGlobalObject() {
5018
+ return ((0,_node__WEBPACK_IMPORTED_MODULE_0__/* .isNodeEnv */ .KV)()
5019
+ ? __webpack_require__.g
5020
+ : typeof window !== 'undefined'
5021
+ ? window
5022
+ : typeof self !== 'undefined'
5023
+ ? self
5024
+ : fallbackGlobalObject);
 
 
 
5025
  }
5026
  /**
5027
+ * UUID4 generator
 
5028
  *
5029
+ * @returns string Generated UUID4.
 
5030
  */
5031
+ function uuid4() {
5032
+ var global = getGlobalObject();
5033
+ var crypto = global.crypto || global.msCrypto;
5034
+ if (!(crypto === void 0) && crypto.getRandomValues) {
5035
+ // Use window.crypto API if available
5036
+ var arr = new Uint16Array(8);
5037
+ crypto.getRandomValues(arr);
5038
+ // set 4 in byte 7
5039
+ // eslint-disable-next-line no-bitwise
5040
+ arr[3] = (arr[3] & 0xfff) | 0x4000;
5041
+ // set 2 most significant bits of byte 9 to '10'
5042
+ // eslint-disable-next-line no-bitwise
5043
+ arr[4] = (arr[4] & 0x3fff) | 0x8000;
5044
+ var pad = function (num) {
5045
+ var v = num.toString(16);
5046
+ while (v.length < 4) {
5047
+ v = "0" + v;
5048
+ }
5049
+ return v;
5050
+ };
5051
+ return (pad(arr[0]) + pad(arr[1]) + pad(arr[2]) + pad(arr[3]) + pad(arr[4]) + pad(arr[5]) + pad(arr[6]) + pad(arr[7]));
5052
+ }
5053
+ // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523
5054
+ return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
5055
+ // eslint-disable-next-line no-bitwise
5056
+ var r = (Math.random() * 16) | 0;
5057
+ // eslint-disable-next-line no-bitwise
5058
+ var v = c === 'x' ? r : (r & 0x3) | 0x8;
5059
+ return v.toString(16);
5060
+ });
5061
  }
5062
  /**
5063
+ * Parses string form of URL into an object
5064
+ * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B
5065
+ * // intentionally using regex and not <a/> href parsing trick because React Native and other
5066
+ * // environments where DOM might not be available
5067
+ * @returns parsed URL object
5068
  */
5069
+ function parseUrl(url) {
5070
+ if (!url) {
5071
+ return {};
5072
+ }
5073
+ var match = url.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
5074
+ if (!match) {
5075
+ return {};
5076
+ }
5077
+ // coerce to undefined values to empty string so we don't get 'undefined'
5078
+ var query = match[6] || '';
5079
+ var fragment = match[8] || '';
5080
+ return {
5081
+ host: match[4],
5082
+ path: match[5],
5083
+ protocol: match[2],
5084
+ relative: match[5] + query + fragment,
5085
+ };
5086
  }
5087
  /**
5088
+ * Extracts either message or type+value from an event that can be used for user-facing logs
5089
+ * @returns event's description
 
 
 
5090
  */
5091
+ function getEventDescription(event) {
5092
+ if (event.message) {
5093
+ return event.message;
5094
+ }
5095
+ if (event.exception && event.exception.values && event.exception.values[0]) {
5096
+ var exception = event.exception.values[0];
5097
+ if (exception.type && exception.value) {
5098
+ return exception.type + ": " + exception.value;
5099
+ }
5100
+ return exception.type || exception.value || event.event_id || '<unknown>';
5101
+ }
5102
+ return event.event_id || '<unknown>';
5103
  }
5104
+ /** JSDoc */
5105
+ function consoleSandbox(callback) {
5106
+ var global = getGlobalObject();
5107
+ var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert'];
5108
+ if (!('console' in global)) {
5109
+ return callback();
5110
+ }
5111
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
5112
+ var originalConsole = global.console;
5113
+ var wrappedLevels = {};
5114
+ // Restore all wrapped console methods
5115
+ levels.forEach(function (level) {
5116
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
5117
+ if (level in global.console && originalConsole[level].__sentry_original__) {
5118
+ wrappedLevels[level] = originalConsole[level];
5119
+ originalConsole[level] = originalConsole[level].__sentry_original__;
5120
+ }
5121
+ });
5122
+ // Perform callback manipulations
5123
+ var result = callback();
5124
+ // Revert restoration to wrapped state
5125
+ Object.keys(wrappedLevels).forEach(function (level) {
5126
+ originalConsole[level] = wrappedLevels[level];
5127
+ });
5128
+ return result;
5129
  }
5130
  /**
5131
+ * Adds exception values, type and value to an synthetic Exception.
5132
+ * @param event The event to modify.
5133
+ * @param value Value of the exception.
5134
+ * @param type Type of the exception.
5135
+ * @hidden
5136
  */
5137
+ function addExceptionTypeValue(event, value, type) {
5138
+ event.exception = event.exception || {};
5139
+ event.exception.values = event.exception.values || [];
5140
+ event.exception.values[0] = event.exception.values[0] || {};
5141
+ event.exception.values[0].value = event.exception.values[0].value || value || '';
5142
+ event.exception.values[0].type = event.exception.values[0].type || type || 'Error';
5143
  }
5144
  /**
5145
+ * Adds exception mechanism to a given event.
5146
+ * @param event The event to modify.
5147
+ * @param mechanism Mechanism of the mechanism.
5148
+ * @hidden
 
5149
  */
5150
+ function addExceptionMechanism(event, mechanism) {
5151
+ if (mechanism === void 0) { mechanism = {}; }
5152
+ // TODO: Use real type with `keyof Mechanism` thingy and maybe make it better?
5153
+ try {
5154
+ // @ts-ignore Type 'Mechanism | {}' is not assignable to type 'Mechanism | undefined'
5155
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
5156
+ event.exception.values[0].mechanism = event.exception.values[0].mechanism || {};
5157
+ Object.keys(mechanism).forEach(function (key) {
5158
+ // @ts-ignore Mechanism has no index signature
5159
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
5160
+ event.exception.values[0].mechanism[key] = mechanism[key];
5161
+ });
5162
+ }
5163
+ catch (_oO) {
5164
+ // no-empty
5165
+ }
5166
  }
5167
  /**
5168
+ * A safe form of location.href
 
 
 
 
5169
  */
5170
+ function getLocationHref() {
5171
+ try {
5172
+ return document.location.href;
5173
+ }
5174
+ catch (oO) {
5175
+ return '';
5176
+ }
5177
  }
5178
+ // https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
5179
+ var SEMVER_REGEXP = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
5180
  /**
5181
+ * Parses input into a SemVer interface
5182
+ * @param input string representation of a semver version
 
 
 
5183
  */
5184
+ function parseSemver(input) {
5185
+ var match = input.match(SEMVER_REGEXP) || [];
5186
+ var major = parseInt(match[1], 10);
5187
+ var minor = parseInt(match[2], 10);
5188
+ var patch = parseInt(match[3], 10);
5189
+ return {
5190
+ buildmetadata: match[5],
5191
+ major: isNaN(major) ? undefined : major,
5192
+ minor: isNaN(minor) ? undefined : minor,
5193
+ patch: isNaN(patch) ? undefined : patch,
5194
+ prerelease: match[4],
5195
+ };
5196
  }
5197
+ var defaultRetryAfter = 60 * 1000; // 60 seconds
5198
  /**
5199
+ * Extracts Retry-After value from the request header or returns default value
5200
+ * @param now current unix timestamp
5201
+ * @param header string representation of 'Retry-After' header
5202
  */
5203
+ function parseRetryAfterHeader(now, header) {
5204
+ if (!header) {
5205
+ return defaultRetryAfter;
5206
+ }
5207
+ var headerDelay = parseInt("" + header, 10);
5208
+ if (!isNaN(headerDelay)) {
5209
+ return headerDelay * 1000;
5210
+ }
5211
+ var headerDate = Date.parse("" + header);
5212
+ if (!isNaN(headerDate)) {
5213
+ return headerDate - now;
5214
+ }
5215
+ return defaultRetryAfter;
5216
  }
5217
  /**
5218
+ * This function adds context (pre/post/line) lines to the provided frame
 
5219
  *
5220
+ * @param lines string[] containing all lines
5221
+ * @param frame StackFrame that will be mutated
5222
+ * @param linesOfContext number of context lines we want to add pre/post
5223
  */
5224
+ function addContextToFrame(lines, frame, linesOfContext) {
5225
+ if (linesOfContext === void 0) { linesOfContext = 5; }
5226
+ var lineno = frame.lineno || 0;
5227
+ var maxLines = lines.length;
5228
+ var sourceLine = Math.max(Math.min(maxLines, lineno - 1), 0);
5229
+ frame.pre_context = lines
5230
+ .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)
5231
+ .map(function (line) { return snipLine(line, 0); });
5232
+ frame.context_line = snipLine(lines[Math.min(maxLines - 1, sourceLine)], frame.colno || 0);
5233
+ frame.post_context = lines
5234
+ .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)
5235
+ .map(function (line) { return snipLine(line, 0); });
5236
  }
5237
  /**
5238
+ * Strip the query string and fragment off of a given URL or path (if present)
 
5239
  *
5240
+ * @param urlPath Full URL or path, including possible query string and/or fragment
5241
+ * @returns URL or path without query string or fragment
 
5242
  */
5243
+ function stripUrlQueryAndFragment(urlPath) {
5244
+ // eslint-disable-next-line no-useless-escape
5245
+ return urlPath.split(/[\?#]/, 1)[0];
 
 
 
 
5246
  }
5247
+ //# sourceMappingURL=misc.js.map
5248
 
5249
  /***/ }),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5250
 
5251
+ /***/ 61422:
5252
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
5253
 
5254
  "use strict";
5255
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5256
+ /* harmony export */ "KV": function() { return /* binding */ isNodeEnv; },
5257
+ /* harmony export */ "l$": function() { return /* binding */ dynamicRequire; }
5258
+ /* harmony export */ });
5259
+ /* unused harmony export extractNodeRequestData */
5260
+ /* module decorator */ module = __webpack_require__.hmd(module);
5261
 
5262
 
 
 
 
 
 
 
 
 
5263
  /**
5264
+ * Checks whether we're in the Node.js or Browser environment
5265
  *
5266
+ * @returns Answer to given question
 
5267
  */
5268
+ function isNodeEnv() {
5269
+ return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';
5270
  }
 
5271
  /**
5272
+ * Requires a module which is protected against bundler minification.
5273
  *
5274
+ * @param request The module path to resolve
 
5275
  */
5276
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
5277
+ function dynamicRequire(mod, request) {
5278
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
5279
+ return mod.require(request);
5280
  }
5281
+ /** Default request keys that'll be used to extract data from the request */
5282
+ var DEFAULT_REQUEST_KEYS = (/* unused pure expression or super */ null && (['cookies', 'data', 'headers', 'method', 'query_string', 'url']));
5283
  /**
5284
+ * Normalizes data from the request object, accounting for framework differences.
5285
  *
5286
+ * @param req The request object from which to extract data
5287
+ * @param keys An optional array of keys to include in the normalized data. Defaults to DEFAULT_REQUEST_KEYS if not
5288
+ * provided.
5289
+ * @returns An object containing normalized request data
5290
  */
5291
+ function extractNodeRequestData(req, keys) {
5292
+ if (keys === void 0) { keys = DEFAULT_REQUEST_KEYS; }
5293
+ // make sure we can safely use dynamicRequire below
5294
+ if (!isNodeEnv()) {
5295
+ throw new Error("Can't get node request data outside of a node environment");
5296
+ }
5297
+ var requestData = {};
5298
+ // headers:
5299
+ // node, express: req.headers
5300
+ // koa: req.header
5301
+ var headers = (req.headers || req.header || {});
5302
+ // method:
5303
+ // node, express, koa: req.method
5304
+ var method = req.method;
5305
+ // host:
5306
+ // express: req.hostname in > 4 and req.host in < 4
5307
+ // koa: req.host
5308
+ // node: req.headers.host
5309
+ var host = req.hostname || req.host || headers.host || '<no host>';
5310
+ // protocol:
5311
+ // node: <n/a>
5312
+ // express, koa: req.protocol
5313
+ var protocol = req.protocol === 'https' || req.secure || (req.socket || {}).encrypted
5314
+ ? 'https'
5315
+ : 'http';
5316
+ // url (including path and query string):
5317
+ // node, express: req.originalUrl
5318
+ // koa: req.url
5319
+ var originalUrl = (req.originalUrl || req.url || '');
5320
+ // absolute url
5321
+ var absoluteUrl = protocol + "://" + host + originalUrl;
5322
+ keys.forEach(function (key) {
5323
+ switch (key) {
5324
+ case 'headers':
5325
+ requestData.headers = headers;
5326
+ break;
5327
+ case 'method':
5328
+ requestData.method = method;
5329
+ break;
5330
+ case 'url':
5331
+ requestData.url = absoluteUrl;
5332
+ break;
5333
+ case 'cookies':
5334
+ // cookies:
5335
+ // node, express, koa: req.headers.cookie
5336
+ // vercel, sails.js, express (w/ cookie middleware): req.cookies
5337
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
5338
+ requestData.cookies = req.cookies || dynamicRequire(module, 'cookie').parse(headers.cookie || '');
5339
+ break;
5340
+ case 'query_string':
5341
+ // query string:
5342
+ // node: req.url (raw)
5343
+ // express, koa: req.query
5344
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
5345
+ requestData.query_string = dynamicRequire(module, 'url').parse(originalUrl || '', false).query;
5346
+ break;
5347
+ case 'data':
5348
+ if (method === 'GET' || method === 'HEAD') {
5349
+ break;
5350
+ }
5351
+ // body data:
5352
+ // node, express, koa: req.body
5353
+ if (req.body !== undefined) {
5354
+ requestData.data = isString(req.body) ? req.body : JSON.stringify(normalize(req.body));
5355
+ }
5356
+ break;
5357
+ default:
5358
+ if ({}.hasOwnProperty.call(req, key)) {
5359
+ requestData[key] = req[key];
5360
+ }
5361
+ }
5362
+ });
5363
+ return requestData;
5364
  }
5365
+ //# sourceMappingURL=node.js.map
5366
+
5367
+ /***/ }),
5368
+
5369
+ /***/ 21170:
5370
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5371
+
5372
+ "use strict";
5373
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5374
+ /* harmony export */ "yW": function() { return /* binding */ dateTimestampInSeconds; }
5375
+ /* harmony export */ });
5376
+ /* unused harmony exports timestampInSeconds, timestampWithMs, usingPerformanceAPI, browserPerformanceTimeOrigin */
5377
+ /* harmony import */ var _misc__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62844);
5378
+ /* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61422);
5379
+ /* module decorator */ module = __webpack_require__.hmd(module);
5380
 
 
 
 
 
 
 
 
 
 
5381
 
5382
  /**
5383
+ * A TimestampSource implementation for environments that do not support the Performance Web API natively.
5384
  *
5385
+ * Note that this TimestampSource does not use a monotonic clock. A call to `nowSeconds` may return a timestamp earlier
5386
+ * than a previously returned value. We do not try to emulate a monotonic behavior in order to facilitate debugging. It
5387
+ * is more obvious to explain "why does my span have negative duration" than "why my spans have zero duration".
5388
  */
5389
+ var dateTimestampSource = {
5390
+ nowSeconds: function () { return Date.now() / 1000; },
5391
+ };
 
5392
  /**
5393
+ * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not
5394
+ * support the API.
5395
  *
5396
+ * Wrapping the native API works around differences in behavior from different browsers.
 
5397
  */
5398
+ function getBrowserPerformance() {
5399
+ var performance = (0,_misc__WEBPACK_IMPORTED_MODULE_0__/* .getGlobalObject */ .Rf)().performance;
5400
+ if (!performance || !performance.now) {
5401
+ return undefined;
5402
+ }
5403
+ // Replace performance.timeOrigin with our own timeOrigin based on Date.now().
5404
+ //
5405
+ // This is a partial workaround for browsers reporting performance.timeOrigin such that performance.timeOrigin +
5406
+ // performance.now() gives a date arbitrarily in the past.
5407
+ //
5408
+ // Additionally, computing timeOrigin in this way fills the gap for browsers where performance.timeOrigin is
5409
+ // undefined.
5410
+ //
5411
+ // The assumption that performance.timeOrigin + performance.now() ~= Date.now() is flawed, but we depend on it to
5412
+ // interact with data coming out of performance entries.
5413
+ //
5414
+ // Note that despite recommendations against it in the spec, browsers implement the Performance API with a clock that
5415
+ // might stop when the computer is asleep (and perhaps under other circumstances). Such behavior causes
5416
+ // performance.timeOrigin + performance.now() to have an arbitrary skew over Date.now(). In laptop computers, we have
5417
+ // observed skews that can be as long as days, weeks or months.
5418
+ //
5419
+ // See https://github.com/getsentry/sentry-javascript/issues/2590.
5420
+ //
5421
+ // BUG: despite our best intentions, this workaround has its limitations. It mostly addresses timings of pageload
5422
+ // transactions, but ignores the skew built up over time that can aversely affect timestamps of navigation
5423
+ // transactions of long-lived web pages.
5424
+ var timeOrigin = Date.now() - performance.now();
5425
+ return {
5426
+ now: function () { return performance.now(); },
5427
+ timeOrigin: timeOrigin,
5428
+ };
5429
  }
 
5430
  /**
5431
+ * Returns the native Performance API implementation from Node.js. Returns undefined in old Node.js versions that don't
5432
+ * implement the API.
 
 
5433
  */
5434
+ function getNodePerformance() {
5435
+ try {
5436
+ var perfHooks = (0,_node__WEBPACK_IMPORTED_MODULE_1__/* .dynamicRequire */ .l$)(module, 'perf_hooks');
5437
+ return perfHooks.performance;
5438
+ }
5439
+ catch (_) {
5440
+ return undefined;
5441
+ }
5442
  }
 
5443
  /**
5444
+ * The Performance API implementation for the current platform, if available.
 
 
 
5445
  */
5446
+ var platformPerformance = (0,_node__WEBPACK_IMPORTED_MODULE_1__/* .isNodeEnv */ .KV)() ? getNodePerformance() : getBrowserPerformance();
5447
+ var timestampSource = platformPerformance === undefined
5448
+ ? dateTimestampSource
5449
+ : {
5450
+ nowSeconds: function () { return (platformPerformance.timeOrigin + platformPerformance.now()) / 1000; },
5451
+ };
5452
  /**
5453
+ * Returns a timestamp in seconds since the UNIX epoch using the Date API.
 
 
 
5454
  */
5455
+ var dateTimestampInSeconds = dateTimestampSource.nowSeconds.bind(dateTimestampSource);
 
 
 
5456
  /**
5457
+ * Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the
5458
+ * availability of the Performance API.
5459
  *
5460
+ * See `usingPerformanceAPI` to test whether the Performance API is used.
 
 
 
 
 
 
 
 
 
 
 
 
 
5461
  *
5462
+ * BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is
5463
+ * asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The
5464
+ * skew can grow to arbitrary amounts like days, weeks or months.
5465
+ * See https://github.com/getsentry/sentry-javascript/issues/2590.
5466
  */
5467
+ var timestampInSeconds = timestampSource.nowSeconds.bind(timestampSource);
5468
+ // Re-exported with an old name for backwards-compatibility.
5469
+ var timestampWithMs = (/* unused pure expression or super */ null && (timestampInSeconds));
 
5470
  /**
5471
+ * A boolean that is true when timestampInSeconds uses the Performance API to produce monotonic timestamps.
 
 
 
5472
  */
5473
+ var usingPerformanceAPI = platformPerformance !== undefined;
 
 
 
5474
  /**
5475
+ * The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the
5476
+ * performance API is available.
 
 
5477
  */
5478
+ var browserPerformanceTimeOrigin = (function () {
5479
+ var performance = (0,_misc__WEBPACK_IMPORTED_MODULE_0__/* .getGlobalObject */ .Rf)().performance;
5480
+ if (!performance) {
5481
+ return undefined;
5482
+ }
5483
+ if (performance.timeOrigin) {
5484
+ return performance.timeOrigin;
5485
+ }
5486
+ // While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin
5487
+ // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing.
5488
+ // Also as of writing, performance.timing is not available in Web Workers in mainstream browsers, so it is not always
5489
+ // a valid fallback. In the absence of an initial time provided by the browser, fallback to the current time from the
5490
+ // Date API.
5491
+ // eslint-disable-next-line deprecation/deprecation
5492
+ return (performance.timing && performance.timing.navigationStart) || Date.now();
5493
+ })();
5494
+ //# sourceMappingURL=time.js.map
5495
 
5496
+ /***/ }),
 
 
 
 
 
 
 
 
5497
 
5498
+ /***/ 9669:
5499
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
 
 
 
 
 
 
5500
 
5501
+ module.exports = __webpack_require__(51609);
 
 
 
 
 
 
 
 
5502
 
5503
+ /***/ }),
 
 
 
 
 
 
 
 
5504
 
5505
+ /***/ 55448:
5506
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5507
 
5508
+ "use strict";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5509
 
 
 
 
 
 
5510
 
5511
+ var utils = __webpack_require__(64867);
5512
+ var settle = __webpack_require__(36026);
5513
+ var cookies = __webpack_require__(4372);
5514
+ var buildURL = __webpack_require__(15327);
5515
+ var buildFullPath = __webpack_require__(94097);
5516
+ var parseHeaders = __webpack_require__(84109);
5517
+ var isURLSameOrigin = __webpack_require__(67985);
5518
+ var createError = __webpack_require__(85061);
 
 
 
 
 
 
5519
 
5520
+ module.exports = function xhrAdapter(config) {
5521
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
5522
+ var requestData = config.data;
5523
+ var requestHeaders = config.headers;
5524
+
5525
+ if (utils.isFormData(requestData)) {
5526
+ delete requestHeaders['Content-Type']; // Let the browser set it
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5527
  }
 
5528
 
5529
+ var request = new XMLHttpRequest();
 
 
 
 
5530
 
5531
+ // HTTP basic authentication
5532
+ if (config.auth) {
5533
+ var username = config.auth.username || '';
5534
+ var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
5535
+ requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
 
 
 
 
 
 
 
 
 
5536
  }
 
 
 
5537
 
5538
+ var fullPath = buildFullPath(config.baseURL, config.url);
5539
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
 
 
 
 
 
 
 
 
 
 
5540
 
5541
+ // Set the request timeout in MS
5542
+ request.timeout = config.timeout;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5543
 
5544
+ // Listen for ready state
5545
+ request.onreadystatechange = function handleLoad() {
5546
+ if (!request || request.readyState !== 4) {
5547
+ return;
5548
+ }
5549
 
5550
+ // The request errored out and we didn't get a response, this will be
5551
+ // handled by onerror instead
5552
+ // With one exception: request that using file: protocol, most browsers
5553
+ // will return status as 0 even though it's a successful request
5554
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
5555
+ return;
5556
+ }
5557
 
5558
+ // Prepare the response
5559
+ var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
5560
+ var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
5561
+ var response = {
5562
+ data: responseData,
5563
+ status: request.status,
5564
+ statusText: request.statusText,
5565
+ headers: responseHeaders,
5566
+ config: config,
5567
+ request: request
5568
+ };
5569
 
5570
+ settle(resolve, reject, response);
 
5571
 
5572
+ // Clean up request
5573
+ request = null;
5574
+ };
5575
 
5576
+ // Handle browser request cancellation (as opposed to a manual cancellation)
5577
+ request.onabort = function handleAbort() {
5578
+ if (!request) {
5579
+ return;
5580
+ }
5581
 
5582
+ reject(createError('Request aborted', config, 'ECONNABORTED', request));
 
5583
 
5584
+ // Clean up request
5585
+ request = null;
5586
+ };
5587
 
5588
+ // Handle low level network errors
5589
+ request.onerror = function handleError() {
5590
+ // Real errors are hidden from us by the browser
5591
+ // onerror should only fire if it's a network error
5592
+ reject(createError('Network Error', config, null, request));
5593
 
5594
+ // Clean up request
5595
+ request = null;
5596
+ };
5597
 
5598
+ // Handle timeout
5599
+ request.ontimeout = function handleTimeout() {
5600
+ var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
5601
+ if (config.timeoutErrorMessage) {
5602
+ timeoutErrorMessage = config.timeoutErrorMessage;
5603
+ }
5604
+ reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
5605
+ request));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5606
 
5607
+ // Clean up request
5608
+ request = null;
5609
+ };
 
 
5610
 
5611
+ // Add xsrf header
5612
+ // This is only done if running in a standard browser environment.
5613
+ // Specifically not if we're in a web worker, or react-native.
5614
+ if (utils.isStandardBrowserEnv()) {
5615
+ // Add xsrf header
5616
+ var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
5617
+ cookies.read(config.xsrfCookieName) :
5618
+ undefined;
5619
 
5620
+ if (xsrfValue) {
5621
+ requestHeaders[config.xsrfHeaderName] = xsrfValue;
5622
+ }
 
 
 
5623
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5624
 
5625
+ // Add headers to the request
5626
+ if ('setRequestHeader' in request) {
5627
+ utils.forEach(requestHeaders, function setRequestHeader(val, key) {
5628
+ if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
5629
+ // Remove Content-Type if data is undefined
5630
+ delete requestHeaders[key];
5631
+ } else {
5632
+ // Otherwise add header to the request
5633
+ request.setRequestHeader(key, val);
5634
  }
5635
+ });
5636
+ }
5637
 
5638
+ // Add withCredentials to request if needed
5639
+ if (!utils.isUndefined(config.withCredentials)) {
5640
+ request.withCredentials = !!config.withCredentials;
5641
+ }
5642
 
5643
+ // Add responseType to request if needed
5644
+ if (config.responseType) {
5645
+ try {
5646
+ request.responseType = config.responseType;
5647
+ } catch (e) {
5648
+ // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
5649
+ // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
5650
+ if (config.responseType !== 'json') {
5651
+ throw e;
5652
  }
5653
+ }
5654
+ }
5655
 
5656
+ // Handle progress if needed
5657
+ if (typeof config.onDownloadProgress === 'function') {
5658
+ request.addEventListener('progress', config.onDownloadProgress);
5659
+ }
5660
 
5661
+ // Not all browsers support upload events
5662
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
5663
+ request.upload.addEventListener('progress', config.onUploadProgress);
5664
+ }
 
5665
 
5666
+ if (config.cancelToken) {
5667
+ // Handle cancellation
5668
+ config.cancelToken.promise.then(function onCanceled(cancel) {
5669
+ if (!request) {
5670
+ return;
 
 
 
 
5671
  }
5672
 
5673
+ request.abort();
5674
+ reject(cancel);
5675
+ // Clean up request
5676
+ request = null;
5677
+ });
5678
+ }
5679
 
5680
+ if (!requestData) {
5681
+ requestData = null;
 
 
 
5682
  }
5683
+
5684
+ // Send the request
5685
+ request.send(requestData);
5686
  });
5687
+ };
 
5688
 
5689
 
5690
+ /***/ }),
 
 
 
 
 
 
 
 
 
 
 
5691
 
5692
+ /***/ 51609:
5693
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5694
 
5695
+ "use strict";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5696
 
 
 
 
 
 
 
 
 
 
 
 
5697
 
5698
+ var utils = __webpack_require__(64867);
5699
+ var bind = __webpack_require__(91849);
5700
+ var Axios = __webpack_require__(30321);
5701
+ var mergeConfig = __webpack_require__(47185);
5702
+ var defaults = __webpack_require__(45655);
5703
 
5704
  /**
5705
+ * Create an instance of Axios
5706
+ *
5707
+ * @param {Object} defaultConfig The default config for the instance
5708
+ * @return {Axios} A new instance of Axios
5709
  */
5710
+ function createInstance(defaultConfig) {
5711
+ var context = new Axios(defaultConfig);
5712
+ var instance = bind(Axios.prototype.request, context);
5713
 
5714
+ // Copy axios.prototype to instance
5715
+ utils.extend(instance, Axios.prototype, context);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5716
 
5717
+ // Copy context to instance
5718
+ utils.extend(instance, context);
 
 
 
 
5719
 
5720
+ return instance;
5721
+ }
 
 
 
 
 
 
 
5722
 
5723
+ // Create the default instance to be exported
5724
+ var axios = createInstance(defaults);
5725
 
5726
+ // Expose Axios class to allow class inheritance
5727
+ axios.Axios = Axios;
 
 
 
 
 
 
 
 
 
5728
 
5729
+ // Factory for creating new instances
5730
+ axios.create = function create(instanceConfig) {
5731
+ return createInstance(mergeConfig(axios.defaults, instanceConfig));
5732
+ };
 
 
 
5733
 
5734
+ // Expose Cancel & CancelToken
5735
+ axios.Cancel = __webpack_require__(65263);
5736
+ axios.CancelToken = __webpack_require__(14972);
5737
+ axios.isCancel = __webpack_require__(26502);
5738
 
5739
+ // Expose all/spread
5740
+ axios.all = function all(promises) {
5741
+ return Promise.all(promises);
5742
  };
5743
+ axios.spread = __webpack_require__(8713);
 
 
 
 
 
 
 
 
 
 
 
5744
 
5745
+ // Expose isAxiosError
5746
+ axios.isAxiosError = __webpack_require__(16268);
5747
 
5748
+ module.exports = axios;
5749
 
5750
+ // Allow use of default import syntax in TypeScript
5751
+ module.exports.default = axios;
5752
 
 
5753
 
5754
+ /***/ }),
5755
 
5756
+ /***/ 65263:
5757
+ /***/ (function(module) {
5758
 
5759
+ "use strict";
5760
 
 
5761
 
5762
+ /**
5763
+ * A `Cancel` is an object that is thrown when an operation is canceled.
5764
+ *
5765
+ * @class
5766
+ * @param {string=} message The message.
5767
+ */
5768
+ function Cancel(message) {
5769
+ this.message = message;
5770
+ }
5771
 
5772
+ Cancel.prototype.toString = function toString() {
5773
+ return 'Cancel' + (this.message ? ': ' + this.message : '');
5774
+ };
5775
 
5776
+ Cancel.prototype.__CANCEL__ = true;
 
 
 
5777
 
5778
+ module.exports = Cancel;
 
 
5779
 
 
 
 
 
 
 
 
5780
 
5781
+ /***/ }),
 
 
 
 
5782
 
5783
+ /***/ 14972:
5784
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5785
 
5786
+ "use strict";
 
 
 
 
5787
 
 
 
 
 
 
 
5788
 
5789
+ var Cancel = __webpack_require__(65263);
 
 
5790
 
5791
+ /**
5792
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
5793
+ *
5794
+ * @class
5795
+ * @param {Function} executor The executor function.
5796
+ */
5797
+ function CancelToken(executor) {
5798
+ if (typeof executor !== 'function') {
5799
+ throw new TypeError('executor must be a function.');
5800
+ }
5801
 
5802
+ var resolvePromise;
5803
+ this.promise = new Promise(function promiseExecutor(resolve) {
5804
+ resolvePromise = resolve;
5805
+ });
5806
 
5807
+ var token = this;
5808
+ executor(function cancel(message) {
5809
+ if (token.reason) {
5810
+ // Cancellation has already been requested
5811
+ return;
5812
+ }
5813
 
5814
+ token.reason = new Cancel(message);
5815
+ resolvePromise(token.reason);
5816
+ });
5817
+ }
5818
 
5819
+ /**
5820
+ * Throws a `Cancel` if cancellation has been requested.
5821
+ */
5822
+ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
5823
+ if (this.reason) {
5824
+ throw this.reason;
5825
+ }
5826
+ };
5827
 
5828
+ /**
5829
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
5830
+ * cancels the `CancelToken`.
5831
+ */
5832
+ CancelToken.source = function source() {
5833
+ var cancel;
5834
+ var token = new CancelToken(function executor(c) {
5835
+ cancel = c;
5836
+ });
5837
+ return {
5838
+ token: token,
5839
+ cancel: cancel
5840
+ };
5841
+ };
5842
 
5843
+ module.exports = CancelToken;
 
 
 
 
5844
 
 
 
 
5845
 
5846
+ /***/ }),
5847
 
5848
+ /***/ 26502:
5849
+ /***/ (function(module) {
 
5850
 
5851
+ "use strict";
 
 
 
 
 
 
 
 
 
 
5852
 
 
5853
 
5854
+ module.exports = function isCancel(value) {
5855
+ return !!(value && value.__CANCEL__);
5856
+ };
5857
 
 
5858
 
5859
+ /***/ }),
5860
 
5861
+ /***/ 30321:
5862
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5863
 
5864
+ "use strict";
5865
 
5866
 
5867
+ var utils = __webpack_require__(64867);
5868
+ var buildURL = __webpack_require__(15327);
5869
+ var InterceptorManager = __webpack_require__(80782);
5870
+ var dispatchRequest = __webpack_require__(13572);
5871
+ var mergeConfig = __webpack_require__(47185);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5872
 
5873
+ /**
5874
+ * Create a new instance of Axios
5875
+ *
5876
+ * @param {Object} instanceConfig The default config for the instance
5877
+ */
5878
+ function Axios(instanceConfig) {
5879
+ this.defaults = instanceConfig;
5880
+ this.interceptors = {
5881
+ request: new InterceptorManager(),
5882
+ response: new InterceptorManager()
5883
+ };
5884
+ }
5885
 
5886
+ /**
5887
+ * Dispatch a request
5888
+ *
5889
+ * @param {Object} config The config specific for this request (merged with this.defaults)
5890
+ */
5891
+ Axios.prototype.request = function request(config) {
5892
+ /*eslint no-param-reassign:0*/
5893
+ // Allow for axios('example/url'[, config]) a la fetch API
5894
+ if (typeof config === 'string') {
5895
+ config = arguments[1] || {};
5896
+ config.url = arguments[0];
5897
+ } else {
5898
+ config = config || {};
5899
+ }
5900
 
5901
+ config = mergeConfig(this.defaults, config);
 
 
5902
 
5903
+ // Set config.method
5904
+ if (config.method) {
5905
+ config.method = config.method.toLowerCase();
5906
+ } else if (this.defaults.method) {
5907
+ config.method = this.defaults.method.toLowerCase();
5908
+ } else {
5909
+ config.method = 'get';
5910
+ }
5911
 
5912
+ // Hook up interceptors middleware
5913
+ var chain = [dispatchRequest, undefined];
5914
+ var promise = Promise.resolve(config);
 
5915
 
5916
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
5917
+ chain.unshift(interceptor.fulfilled, interceptor.rejected);
5918
+ });
5919
 
5920
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
5921
+ chain.push(interceptor.fulfilled, interceptor.rejected);
5922
+ });
 
 
5923
 
5924
+ while (chain.length) {
5925
+ promise = promise.then(chain.shift(), chain.shift());
5926
+ }
 
 
5927
 
5928
+ return promise;
5929
+ };
 
 
 
5930
 
5931
+ Axios.prototype.getUri = function getUri(config) {
5932
+ config = mergeConfig(this.defaults, config);
5933
+ return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
5934
+ };
 
 
 
 
5935
 
5936
+ // Provide aliases for supported request methods
5937
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
5938
+ /*eslint func-names:0*/
5939
+ Axios.prototype[method] = function(url, config) {
5940
+ return this.request(mergeConfig(config || {}, {
5941
+ method: method,
5942
+ url: url,
5943
+ data: (config || {}).data
5944
+ }));
5945
+ };
5946
+ });
5947
 
5948
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
5949
+ /*eslint func-names:0*/
5950
+ Axios.prototype[method] = function(url, data, config) {
5951
+ return this.request(mergeConfig(config || {}, {
5952
+ method: method,
5953
+ url: url,
5954
+ data: data
5955
+ }));
5956
+ };
5957
+ });
5958
 
5959
+ module.exports = Axios;
5960
 
5961
 
5962
+ /***/ }),
5963
 
5964
+ /***/ 80782:
5965
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5966
 
5967
+ "use strict";
5968
 
5969
 
5970
+ var utils = __webpack_require__(64867);
5971
 
5972
+ function InterceptorManager() {
5973
+ this.handlers = [];
5974
+ }
5975
 
5976
  /**
5977
+ * Add a new interceptor to the stack
5978
+ *
5979
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
5980
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
5981
+ *
5982
+ * @return {Number} An ID used to remove interceptor later
5983
  */
5984
+ InterceptorManager.prototype.use = function use(fulfilled, rejected) {
5985
+ this.handlers.push({
5986
+ fulfilled: fulfilled,
5987
+ rejected: rejected
5988
+ });
5989
+ return this.handlers.length - 1;
5990
+ };
5991
 
 
 
 
 
 
 
 
 
 
 
5992
  /**
5993
+ * Remove an interceptor from the stack
5994
+ *
5995
+ * @param {Number} id The ID that was returned by `use`
5996
  */
5997
+ InterceptorManager.prototype.eject = function eject(id) {
5998
+ if (this.handlers[id]) {
5999
+ this.handlers[id] = null;
6000
+ }
6001
+ };
 
 
 
 
 
6002
 
6003
+ /**
6004
+ * Iterate over all the registered interceptors
6005
+ *
6006
+ * This method is particularly useful for skipping over any
6007
+ * interceptors that may have become `null` calling `eject`.
6008
+ *
6009
+ * @param {Function} fn The function to call for each interceptor
6010
+ */
6011
+ InterceptorManager.prototype.forEach = function forEach(fn) {
6012
+ utils.forEach(this.handlers, function forEachHandler(h) {
6013
+ if (h !== null) {
6014
+ fn(h);
6015
+ }
6016
+ });
6017
  };
6018
 
6019
+ module.exports = InterceptorManager;
6020
+
6021
 
6022
  /***/ }),
 
 
6023
 
6024
+ /***/ 94097:
6025
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
 
6026
 
6027
+ "use strict";
 
 
 
6028
 
6029
+
6030
+ var isAbsoluteURL = __webpack_require__(91793);
6031
+ var combineURLs = __webpack_require__(7303);
6032
+
6033
+ /**
6034
+ * Creates a new URL by combining the baseURL with the requestedURL,
6035
+ * only when the requestedURL is not already an absolute URL.
6036
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
6037
+ *
6038
+ * @param {string} baseURL The base URL
6039
+ * @param {string} requestedURL Absolute or relative URL to combine
6040
+ * @returns {string} The combined full path
6041
+ */
6042
+ module.exports = function buildFullPath(baseURL, requestedURL) {
6043
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
6044
+ return combineURLs(baseURL, requestedURL);
6045
+ }
6046
+ return requestedURL;
6047
+ };
6048
 
6049
 
6050
  /***/ }),
6051
+
6052
+ /***/ 85061:
6053
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
6054
 
6055
  "use strict";
 
 
 
 
 
 
6056
 
 
 
 
6057
 
6058
+ var enhanceError = __webpack_require__(80481);
6059
+
6060
+ /**
6061
+ * Create an Error with the specified message, config, error code, request and response.
6062
+ *
6063
+ * @param {string} message The error message.
6064
+ * @param {Object} config The config.
6065
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
6066
+ * @param {Object} [request] The request.
6067
+ * @param {Object} [response] The response.
6068
+ * @returns {Error} The created error.
6069
+ */
6070
+ module.exports = function createError(message, config, code, request, response) {
6071
+ var error = new Error(message);
6072
+ return enhanceError(error, config, code, request, response);
6073
+ };
6074
+
6075
 
6076
  /***/ }),
 
 
6077
 
6078
+ /***/ 13572:
6079
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
6080
 
6081
+ "use strict";
 
 
 
6082
 
 
 
 
 
 
 
 
6083
 
6084
+ var utils = __webpack_require__(64867);
6085
+ var transformData = __webpack_require__(18527);
6086
+ var isCancel = __webpack_require__(26502);
6087
+ var defaults = __webpack_require__(45655);
6088
 
6089
+ /**
6090
+ * Throws a `Cancel` if cancellation has been requested.
6091
+ */
6092
+ function throwIfCancellationRequested(config) {
6093
+ if (config.cancelToken) {
6094
+ config.cancelToken.throwIfRequested();
6095
+ }
6096
+ }
6097
 
6098
+ /**
6099
+ * Dispatch a request to the server using the configured adapter.
6100
+ *
6101
+ * @param {object} config The config that is to be used for the request
6102
+ * @returns {Promise} The Promise to be fulfilled
6103
+ */
6104
+ module.exports = function dispatchRequest(config) {
6105
+ throwIfCancellationRequested(config);
6106
 
6107
+ // Ensure headers exist
6108
+ config.headers = config.headers || {};
 
6109
 
6110
+ // Transform request data
6111
+ config.data = transformData(
6112
+ config.data,
6113
+ config.headers,
6114
+ config.transformRequest
6115
+ );
6116
 
6117
+ // Flatten headers
6118
+ config.headers = utils.merge(
6119
+ config.headers.common || {},
6120
+ config.headers[config.method] || {},
6121
+ config.headers
6122
+ );
6123
 
6124
+ utils.forEach(
6125
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
6126
+ function cleanHeaderConfig(method) {
6127
+ delete config.headers[method];
6128
+ }
6129
+ );
6130
 
6131
+ var adapter = config.adapter || defaults.adapter;
 
6132
 
6133
+ return adapter(config).then(function onAdapterResolution(response) {
6134
+ throwIfCancellationRequested(config);
6135
 
6136
+ // Transform response data
6137
+ response.data = transformData(
6138
+ response.data,
6139
+ response.headers,
6140
+ config.transformResponse
6141
+ );
6142
 
6143
+ return response;
6144
+ }, function onAdapterRejection(reason) {
6145
+ if (!isCancel(reason)) {
6146
+ throwIfCancellationRequested(config);
6147
 
6148
+ // Transform response data
6149
+ if (reason && reason.response) {
6150
+ reason.response.data = transformData(
6151
+ reason.response.data,
6152
+ reason.response.headers,
6153
+ config.transformResponse
6154
+ );
6155
+ }
6156
+ }
6157
+
6158
+ return Promise.reject(reason);
6159
+ });
6160
+ };
 
 
 
 
 
 
 
 
 
 
 
6161
 
6162
 
6163
  /***/ }),
6164
+
6165
+ /***/ 80481:
6166
+ /***/ (function(module) {
6167
 
6168
  "use strict";
 
 
 
 
 
 
 
 
 
6169
 
6170
 
6171
+ /**
6172
+ * Update an Error with the specified config, error code, and response.
6173
+ *
6174
+ * @param {Error} error The error to update.
6175
+ * @param {Object} config The config.
6176
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
6177
+ * @param {Object} [request] The request.
6178
+ * @param {Object} [response] The response.
6179
+ * @returns {Error} The error.
6180
+ */
6181
+ module.exports = function enhanceError(error, config, code, request, response) {
6182
+ error.config = config;
6183
+ if (code) {
6184
+ error.code = code;
6185
+ }
6186
 
6187
+ error.request = request;
6188
+ error.response = response;
6189
+ error.isAxiosError = true;
 
6190
 
6191
+ error.toJSON = function toJSON() {
6192
+ return {
6193
+ // Standard
6194
+ message: this.message,
6195
+ name: this.name,
6196
+ // Microsoft
6197
+ description: this.description,
6198
+ number: this.number,
6199
+ // Mozilla
6200
+ fileName: this.fileName,
6201
+ lineNumber: this.lineNumber,
6202
+ columnNumber: this.columnNumber,
6203
+ stack: this.stack,
6204
+ // Axios
6205
+ config: this.config,
6206
+ code: this.code
6207
+ };
6208
  };
6209
+ return error;
6210
  };
6211
 
 
 
 
 
 
 
 
 
 
 
 
 
6212
 
6213
+ /***/ }),
 
 
 
 
 
 
 
6214
 
6215
+ /***/ 47185:
6216
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
 
 
 
6217
 
6218
+ "use strict";
 
 
 
 
 
 
 
 
 
6219
 
 
 
 
 
 
 
 
 
6220
 
6221
+ var utils = __webpack_require__(64867);
 
 
 
 
 
6222
 
6223
+ /**
6224
+ * Config-specific merge-function which creates a new config-object
6225
+ * by merging two configuration objects together.
6226
+ *
6227
+ * @param {Object} config1
6228
+ * @param {Object} config2
6229
+ * @returns {Object} New object resulting from merging config2 to config1
6230
+ */
6231
+ module.exports = function mergeConfig(config1, config2) {
6232
+ // eslint-disable-next-line no-param-reassign
6233
+ config2 = config2 || {};
6234
+ var config = {};
6235
 
6236
+ var valueFromConfig2Keys = ['url', 'method', 'data'];
6237
+ var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
6238
+ var defaultToConfig2Keys = [
6239
+ 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
6240
+ 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
6241
+ 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
6242
+ 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
6243
+ 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
6244
+ ];
6245
+ var directMergeKeys = ['validateStatus'];
6246
 
6247
+ function getMergedValue(target, source) {
6248
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
6249
+ return utils.merge(target, source);
6250
+ } else if (utils.isPlainObject(source)) {
6251
+ return utils.merge({}, source);
6252
+ } else if (utils.isArray(source)) {
6253
+ return source.slice();
6254
  }
6255
+ return source;
 
 
 
 
 
 
6256
  }
6257
 
6258
+ function mergeDeepProperties(prop) {
6259
+ if (!utils.isUndefined(config2[prop])) {
6260
+ config[prop] = getMergedValue(config1[prop], config2[prop]);
6261
+ } else if (!utils.isUndefined(config1[prop])) {
6262
+ config[prop] = getMergedValue(undefined, config1[prop]);
6263
+ }
6264
+ }
6265
 
6266
+ utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
6267
+ if (!utils.isUndefined(config2[prop])) {
6268
+ config[prop] = getMergedValue(undefined, config2[prop]);
6269
+ }
6270
+ });
6271
 
6272
+ utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
 
6273
 
6274
+ utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
6275
+ if (!utils.isUndefined(config2[prop])) {
6276
+ config[prop] = getMergedValue(undefined, config2[prop]);
6277
+ } else if (!utils.isUndefined(config1[prop])) {
6278
+ config[prop] = getMergedValue(undefined, config1[prop]);
6279
+ }
6280
+ });
6281
 
6282
+ utils.forEach(directMergeKeys, function merge(prop) {
6283
+ if (prop in config2) {
6284
+ config[prop] = getMergedValue(config1[prop], config2[prop]);
6285
+ } else if (prop in config1) {
6286
+ config[prop] = getMergedValue(undefined, config1[prop]);
6287
+ }
6288
+ });
6289
 
6290
+ var axiosKeys = valueFromConfig2Keys
6291
+ .concat(mergeDeepPropertiesKeys)
6292
+ .concat(defaultToConfig2Keys)
6293
+ .concat(directMergeKeys);
6294
 
6295
+ var otherKeys = Object
6296
+ .keys(config1)
6297
+ .concat(Object.keys(config2))
6298
+ .filter(function filterAxiosKeys(key) {
6299
+ return axiosKeys.indexOf(key) === -1;
6300
  });
 
 
 
 
 
 
 
 
6301
 
6302
+ utils.forEach(otherKeys, mergeDeepProperties);
6303
+
6304
+ return config;
6305
+ };
6306
 
6307
 
6308
  /***/ }),
 
 
6309
 
6310
+ /***/ 36026:
6311
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
 
6312
 
6313
+ "use strict";
6314
 
 
 
 
6315
 
6316
+ var createError = __webpack_require__(85061);
 
 
 
6317
 
6318
+ /**
6319
+ * Resolve or reject a Promise based on response status.
6320
+ *
6321
+ * @param {Function} resolve A function that resolves the promise.
6322
+ * @param {Function} reject A function that rejects the promise.
6323
+ * @param {object} response The response.
6324
+ */
6325
+ module.exports = function settle(resolve, reject, response) {
6326
+ var validateStatus = response.config.validateStatus;
6327
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
6328
+ resolve(response);
6329
+ } else {
6330
+ reject(createError(
6331
+ 'Request failed with status code ' + response.status,
6332
+ response.config,
6333
+ null,
6334
+ response.request,
6335
+ response
6336
+ ));
6337
+ }
6338
  };
6339
 
6340
 
6341
  /***/ }),
 
 
6342
 
6343
+ /***/ 18527:
6344
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
6345
+
6346
+ "use strict";
6347
+
6348
+
6349
+ var utils = __webpack_require__(64867);
6350
+
6351
+ /**
6352
+ * Transform the data for a request or a response
6353
+ *
6354
+ * @param {Object|String} data The data to be transformed
6355
+ * @param {Array} headers The headers for the request or response
6356
+ * @param {Array|Function} fns A single function or Array of functions
6357
+ * @returns {*} The resulting transformed data
6358
+ */
6359
+ module.exports = function transformData(data, headers, fns) {
6360
+ /*eslint no-param-reassign:0*/
6361
+ utils.forEach(fns, function transform(fn) {
6362
+ data = fn(data, headers);
6363
+ });
6364
+
6365
+ return data;
6366
  };
6367
 
6368
 
6369
  /***/ }),
 
 
6370
 
6371
+ /***/ 45655:
6372
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6373
 
6374
+ "use strict";
6375
 
6376
 
6377
+ var utils = __webpack_require__(64867);
6378
+ var normalizeHeaderName = __webpack_require__(16016);
6379
 
6380
+ var DEFAULT_CONTENT_TYPE = {
6381
+ 'Content-Type': 'application/x-www-form-urlencoded'
6382
+ };
6383
 
6384
+ function setContentTypeIfUnset(headers, value) {
6385
+ if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
6386
+ headers['Content-Type'] = value;
6387
+ }
6388
+ }
6389
 
6390
+ function getDefaultAdapter() {
6391
+ var adapter;
6392
+ if (typeof XMLHttpRequest !== 'undefined') {
6393
+ // For browsers use XHR adapter
6394
+ adapter = __webpack_require__(55448);
6395
+ } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
6396
+ // For node use HTTP adapter
6397
+ adapter = __webpack_require__(55448);
6398
+ }
6399
+ return adapter;
6400
+ }
6401
 
6402
+ var defaults = {
6403
+ adapter: getDefaultAdapter(),
6404
 
6405
+ transformRequest: [function transformRequest(data, headers) {
6406
+ normalizeHeaderName(headers, 'Accept');
6407
+ normalizeHeaderName(headers, 'Content-Type');
6408
+ if (utils.isFormData(data) ||
6409
+ utils.isArrayBuffer(data) ||
6410
+ utils.isBuffer(data) ||
6411
+ utils.isStream(data) ||
6412
+ utils.isFile(data) ||
6413
+ utils.isBlob(data)
6414
+ ) {
6415
+ return data;
6416
+ }
6417
+ if (utils.isArrayBufferView(data)) {
6418
+ return data.buffer;
6419
+ }
6420
+ if (utils.isURLSearchParams(data)) {
6421
+ setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
6422
+ return data.toString();
6423
+ }
6424
+ if (utils.isObject(data)) {
6425
+ setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
6426
+ return JSON.stringify(data);
6427
+ }
6428
+ return data;
6429
+ }],
6430
 
6431
+ transformResponse: [function transformResponse(data) {
6432
+ /*eslint no-param-reassign:0*/
6433
+ if (typeof data === 'string') {
6434
+ try {
6435
+ data = JSON.parse(data);
6436
+ } catch (e) { /* Ignore */ }
6437
+ }
6438
+ return data;
6439
+ }],
6440
 
6441
+ /**
6442
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
6443
+ * timeout is not created.
6444
+ */
6445
+ timeout: 0,
6446
 
6447
+ xsrfCookieName: 'XSRF-TOKEN',
6448
+ xsrfHeaderName: 'X-XSRF-TOKEN',
6449
 
6450
+ maxContentLength: -1,
6451
+ maxBodyLength: -1,
6452
 
6453
+ validateStatus: function validateStatus(status) {
6454
+ return status >= 200 && status < 300;
6455
+ }
6456
+ };
6457
 
6458
+ defaults.headers = {
6459
+ common: {
6460
+ 'Accept': 'application/json, text/plain, */*'
6461
+ }
6462
  };
6463
 
6464
+ utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
6465
+ defaults.headers[method] = {};
6466
+ });
6467
 
6468
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
6469
+ defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
6470
+ });
6471
 
6472
+ module.exports = defaults;
 
 
 
 
6473
 
 
 
 
6474
 
6475
+ /***/ }),
 
 
6476
 
6477
+ /***/ 91849:
6478
+ /***/ (function(module) {
 
 
6479
 
6480
+ "use strict";
6481
+
6482
+
6483
+ module.exports = function bind(fn, thisArg) {
6484
+ return function wrap() {
6485
+ var args = new Array(arguments.length);
6486
+ for (var i = 0; i < args.length; i++) {
6487
+ args[i] = arguments[i];
6488
+ }
6489
+ return fn.apply(thisArg, args);
6490
  };
6491
+ };
6492
 
 
 
6493
 
6494
+ /***/ }),
 
 
 
 
 
 
 
6495
 
6496
+ /***/ 15327:
6497
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
6498
 
6499
+ "use strict";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6500
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6501
 
6502
+ var utils = __webpack_require__(64867);
 
6503
 
6504
+ function encode(val) {
6505
+ return encodeURIComponent(val).
6506
+ replace(/%3A/gi, ':').
6507
+ replace(/%24/g, '$').
6508
+ replace(/%2C/gi, ',').
6509
+ replace(/%20/g, '+').
6510
+ replace(/%5B/gi, '[').
6511
+ replace(/%5D/gi, ']');
6512
+ }
6513
 
6514
  /**
6515
+ * Build a URL by appending params to the end
6516
+ *
6517
+ * @param {string} url The base of the url (e.g., http://www.google.com)
6518
+ * @param {object} [params] The params to be appended
6519
+ * @returns {string} The formatted url
6520
  */
6521
+ module.exports = function buildURL(url, params, paramsSerializer) {
6522
+ /*eslint no-param-reassign:0*/
6523
+ if (!params) {
6524
+ return url;
6525
+ }
6526
 
6527
+ var serializedParams;
6528
+ if (paramsSerializer) {
6529
+ serializedParams = paramsSerializer(params);
6530
+ } else if (utils.isURLSearchParams(params)) {
6531
+ serializedParams = params.toString();
6532
+ } else {
6533
+ var parts = [];
 
 
 
 
6534
 
6535
+ utils.forEach(params, function serialize(val, key) {
6536
+ if (val === null || typeof val === 'undefined') {
6537
+ return;
6538
+ }
6539
 
6540
+ if (utils.isArray(val)) {
6541
+ key = key + '[]';
6542
+ } else {
6543
+ val = [val];
6544
+ }
6545
 
6546
+ utils.forEach(val, function parseValue(v) {
6547
+ if (utils.isDate(v)) {
6548
+ v = v.toISOString();
6549
+ } else if (utils.isObject(v)) {
6550
+ v = JSON.stringify(v);
6551
+ }
6552
+ parts.push(encode(key) + '=' + encode(v));
6553
+ });
6554
  });
 
 
 
 
6555
 
6556
+ serializedParams = parts.join('&');
6557
+ }
6558
 
6559
+ if (serializedParams) {
6560
+ var hashmarkIndex = url.indexOf('#');
6561
+ if (hashmarkIndex !== -1) {
6562
+ url = url.slice(0, hashmarkIndex);
6563
+ }
6564
 
6565
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
 
6566
  }
6567
 
6568
+ return url;
6569
+ };
6570
 
 
 
 
6571
 
6572
+ /***/ }),
 
 
6573
 
6574
+ /***/ 7303:
6575
+ /***/ (function(module) {
 
6576
 
6577
+ "use strict";
 
 
6578
 
 
 
6579
 
6580
  /**
6581
+ * Creates a new URL by combining the specified URLs
6582
+ *
6583
+ * @param {string} baseURL The base URL
6584
+ * @param {string} relativeURL The relative URL
6585
+ * @returns {string} The combined URL
6586
  */
6587
+ module.exports = function combineURLs(baseURL, relativeURL) {
6588
+ return relativeURL
6589
+ ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
6590
+ : baseURL;
6591
+ };
6592
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6593
 
6594
+ /***/ }),
6595
 
6596
+ /***/ 4372:
6597
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
6598
 
6599
+ "use strict";
 
 
6600
 
 
 
 
 
6601
 
6602
+ var utils = __webpack_require__(64867);
 
 
 
 
6603
 
6604
+ module.exports = (
6605
+ utils.isStandardBrowserEnv() ?
6606
 
6607
+ // Standard browser envs support document.cookie
6608
+ (function standardBrowserEnv() {
6609
+ return {
6610
+ write: function write(name, value, expires, path, domain, secure) {
6611
+ var cookie = [];
6612
+ cookie.push(name + '=' + encodeURIComponent(value));
6613
 
6614
+ if (utils.isNumber(expires)) {
6615
+ cookie.push('expires=' + new Date(expires).toGMTString());
6616
+ }
6617
 
6618
+ if (utils.isString(path)) {
6619
+ cookie.push('path=' + path);
6620
+ }
 
6621
 
6622
+ if (utils.isString(domain)) {
6623
+ cookie.push('domain=' + domain);
6624
+ }
6625
 
6626
+ if (secure === true) {
6627
+ cookie.push('secure');
6628
+ }
 
 
 
 
 
 
 
 
 
 
 
6629
 
6630
+ document.cookie = cookie.join('; ');
6631
+ },
 
 
6632
 
6633
+ read: function read(name) {
6634
+ var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
6635
+ return (match ? decodeURIComponent(match[3]) : null);
6636
+ },
 
 
6637
 
6638
+ remove: function remove(name) {
6639
+ this.write(name, '', Date.now() - 86400000);
 
 
6640
  }
6641
+ };
6642
+ })() :
 
 
 
6643
 
6644
+ // Non standard browser env (web workers, react-native) lack needed support.
6645
+ (function nonStandardBrowserEnv() {
6646
+ return {
6647
+ write: function write() {},
6648
+ read: function read() { return null; },
6649
+ remove: function remove() {}
6650
+ };
6651
+ })()
6652
+ );
6653
 
 
 
 
6654
 
6655
+ /***/ }),
 
 
 
 
 
 
 
 
 
6656
 
6657
+ /***/ 91793:
6658
+ /***/ (function(module) {
 
 
6659
 
6660
+ "use strict";
 
 
 
 
6661
 
6662
 
6663
+ /**
6664
+ * Determines whether the specified URL is absolute
6665
+ *
6666
+ * @param {string} url The URL to test
6667
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
6668
+ */
6669
+ module.exports = function isAbsoluteURL(url) {
6670
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
6671
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
6672
+ // by any combination of letters, digits, plus, period, or hyphen.
6673
+ return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
6674
+ };
6675
 
 
 
 
 
 
6676
 
6677
+ /***/ }),
 
 
 
 
 
 
 
 
 
 
 
6678
 
6679
+ /***/ 16268:
6680
+ /***/ (function(module) {
 
 
 
 
 
6681
 
6682
+ "use strict";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6683
 
 
 
 
6684
 
 
 
 
 
 
6685
  /**
6686
+ * Determines whether the payload is an error thrown by Axios
6687
+ *
6688
+ * @param {*} payload The value to test
6689
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
6690
  */
6691
+ module.exports = function isAxiosError(payload) {
6692
+ return (typeof payload === 'object') && (payload.isAxiosError === true);
6693
+ };
6694
 
6695
 
6696
+ /***/ }),
 
 
 
6697
 
6698
+ /***/ 67985:
6699
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
6700
 
6701
+ "use strict";
6702
 
 
 
6703
 
6704
+ var utils = __webpack_require__(64867);
 
 
 
 
6705
 
6706
+ module.exports = (
6707
+ utils.isStandardBrowserEnv() ?
 
 
6708
 
6709
+ // Standard browser envs have full support of the APIs needed to test
6710
+ // whether the request URL is of the same origin as current location.
6711
+ (function standardBrowserEnv() {
6712
+ var msie = /(msie|trident)/i.test(navigator.userAgent);
6713
+ var urlParsingNode = document.createElement('a');
6714
+ var originURL;
6715
 
6716
+ /**
6717
+ * Parse a URL to discover it's components
6718
+ *
6719
+ * @param {String} url The URL to be parsed
6720
+ * @returns {Object}
6721
+ */
6722
+ function resolveURL(url) {
6723
+ var href = url;
6724
 
6725
+ if (msie) {
6726
+ // IE needs attribute set twice to normalize properties
6727
+ urlParsingNode.setAttribute('href', href);
6728
+ href = urlParsingNode.href;
6729
+ }
6730
 
6731
+ urlParsingNode.setAttribute('href', href);
 
6732
 
6733
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
6734
+ return {
6735
+ href: urlParsingNode.href,
6736
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
6737
+ host: urlParsingNode.host,
6738
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
6739
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
6740
+ hostname: urlParsingNode.hostname,
6741
+ port: urlParsingNode.port,
6742
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
6743
+ urlParsingNode.pathname :
6744
+ '/' + urlParsingNode.pathname
6745
+ };
6746
+ }
6747
 
6748
+ originURL = resolveURL(window.location.href);
 
 
6749
 
6750
+ /**
6751
+ * Determine if a URL shares the same origin as the current location
6752
+ *
6753
+ * @param {String} requestURL The URL to test
6754
+ * @returns {boolean} True if URL shares the same origin, otherwise false
6755
+ */
6756
+ return function isURLSameOrigin(requestURL) {
6757
+ var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
6758
+ return (parsed.protocol === originURL.protocol &&
6759
+ parsed.host === originURL.host);
6760
+ };
6761
+ })() :
6762
 
6763
+ // Non standard browser envs (web workers, react-native) lack needed support.
6764
+ (function nonStandardBrowserEnv() {
6765
+ return function isURLSameOrigin() {
6766
+ return true;
6767
+ };
6768
+ })()
6769
+ );
 
6770
 
 
 
 
6771
 
6772
+ /***/ }),
 
 
 
 
6773
 
6774
+ /***/ 16016:
6775
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
 
 
 
 
6776
 
6777
+ "use strict";
6778
 
 
 
 
 
6779
 
6780
+ var utils = __webpack_require__(64867);
 
6781
 
6782
+ module.exports = function normalizeHeaderName(headers, normalizedName) {
6783
+ utils.forEach(headers, function processHeader(value, name) {
6784
+ if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
6785
+ headers[normalizedName] = value;
6786
+ delete headers[name];
6787
  }
6788
+ });
6789
+ };
6790
 
 
6791
 
6792
+ /***/ }),
 
 
6793
 
6794
+ /***/ 84109:
6795
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
 
6796
 
6797
+ "use strict";
 
 
6798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6799
 
6800
+ var utils = __webpack_require__(64867);
 
6801
 
6802
+ // Headers whose duplicates are ignored by node
6803
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
6804
+ var ignoreDuplicateOf = [
6805
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
6806
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
6807
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
6808
+ 'referer', 'retry-after', 'user-agent'
6809
+ ];
6810
 
6811
  /**
6812
+ * Parse headers into an object
6813
+ *
6814
+ * ```
6815
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
6816
+ * Content-Type: application/json
6817
+ * Connection: keep-alive
6818
+ * Transfer-Encoding: chunked
6819
+ * ```
6820
+ *
6821
+ * @param {String} headers Headers needing to be parsed
6822
+ * @returns {Object} Headers parsed into an object
6823
  */
6824
+ module.exports = function parseHeaders(headers) {
6825
+ var parsed = {};
6826
+ var key;
6827
+ var val;
6828
+ var i;
6829
 
6830
+ if (!headers) { return parsed; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6831
 
6832
+ utils.forEach(headers.split('\n'), function parser(line) {
6833
+ i = line.indexOf(':');
6834
+ key = utils.trim(line.substr(0, i)).toLowerCase();
6835
+ val = utils.trim(line.substr(i + 1));
 
 
6836
 
6837
+ if (key) {
6838
+ if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
6839
+ return;
6840
  }
6841
+ if (key === 'set-cookie') {
6842
+ parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
6843
+ } else {
6844
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6845
  }
 
6846
  }
6847
+ });
 
 
 
 
6848
 
6849
+ return parsed;
6850
+ };
 
6851
 
 
 
 
 
 
 
6852
 
6853
+ /***/ }),
 
 
6854
 
6855
+ /***/ 8713:
6856
+ /***/ (function(module) {
6857
+
6858
+ "use strict";
6859
 
 
 
 
6860
 
6861
  /**
6862
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
 
 
6863
  *
6864
+ * Common use case would be to use `Function.prototype.apply`.
 
 
 
 
 
 
6865
  *
6866
+ * ```js
6867
+ * function f(x, y, z) {}
6868
+ * var args = [1, 2, 3];
6869
+ * f.apply(null, args);
6870
+ * ```
6871
  *
6872
+ * With `spread` this example can be re-written.
 
6873
  *
6874
+ * ```js
6875
+ * spread(function(x, y, z) {})([1, 2, 3]);
6876
+ * ```
6877
  *
6878
+ * @param {Function} callback
6879
+ * @returns {Function}
6880
  */
6881
+ module.exports = function spread(callback) {
6882
+ return function wrap(arr) {
6883
+ return callback.apply(null, arr);
6884
+ };
6885
+ };
 
6886
 
6887
 
6888
  /***/ }),
 
 
 
 
 
 
 
 
 
 
 
 
6889
 
6890
+ /***/ 64867:
6891
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
6892
 
6893
+ "use strict";
 
 
6894
 
 
 
 
 
 
6895
 
6896
+ var bind = __webpack_require__(91849);
6897
 
6898
+ /*global toString:true*/
 
 
6899
 
6900
+ // utils is a library of generic helper functions non-specific to axios
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6901
 
6902
+ var toString = Object.prototype.toString;
6903
 
6904
  /**
6905
+ * Determine if a value is an Array
6906
+ *
6907
+ * @param {Object} val The value to test
6908
+ * @returns {boolean} True if value is an Array, otherwise false
6909
  */
6910
+ function isArray(val) {
6911
+ return toString.call(val) === '[object Array]';
 
 
 
 
 
 
 
 
 
 
6912
  }
6913
+
6914
  /**
6915
+ * Determine if a value is undefined
6916
  *
6917
+ * @param {Object} val The value to test
6918
+ * @returns {boolean} True if the value is undefined, otherwise false
6919
  */
6920
+ function isUndefined(val) {
6921
+ return typeof val === 'undefined';
 
 
 
 
 
 
 
 
 
 
 
 
6922
  }
6923
+
6924
  /**
6925
+ * Determine if a value is a Buffer
6926
  *
6927
+ * @param {Object} val The value to test
6928
+ * @returns {boolean} True if value is a Buffer, otherwise false
 
6929
  */
6930
+ function isBuffer(val) {
6931
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
6932
+ && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
 
 
 
 
 
 
 
 
 
 
6933
  }
6934
+
6935
  /**
6936
+ * Determine if a value is an ArrayBuffer
6937
  *
6938
+ * @param {Object} val The value to test
6939
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
6940
  */
6941
+ function isArrayBuffer(val) {
6942
+ return toString.call(val) === '[object ArrayBuffer]';
6943
  }
6944
+
6945
  /**
6946
+ * Determine if a value is a FormData
6947
+ *
6948
+ * @param {Object} val The value to test
6949
+ * @returns {boolean} True if value is an FormData, otherwise false
6950
  */
6951
+ function isFormData(val) {
6952
+ return (typeof FormData !== 'undefined') && (val instanceof FormData);
6953
  }
6954
+
6955
  /**
6956
+ * Determine if a value is a view on an ArrayBuffer
 
 
 
6957
  *
6958
+ * @param {Object} val The value to test
6959
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
6960
  */
6961
+ function isArrayBufferView(val) {
6962
+ var result;
6963
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
6964
+ result = ArrayBuffer.isView(val);
6965
+ } else {
6966
+ result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
6967
+ }
6968
+ return result;
6969
  }
6970
+
6971
  /**
6972
+ * Determine if a value is a String
6973
+ *
6974
+ * @param {Object} val The value to test
6975
+ * @returns {boolean} True if value is a String, otherwise false
6976
  */
6977
+ function isString(val) {
6978
+ return typeof val === 'string';
 
6979
  }
6980
+
6981
  /**
6982
+ * Determine if a value is a Number
6983
+ *
6984
+ * @param {Object} val The value to test
6985
+ * @returns {boolean} True if value is a Number, otherwise false
6986
  */
6987
+ function isNumber(val) {
6988
+ return typeof val === 'number';
6989
  }
6990
+
6991
  /**
6992
+ * Determine if a value is an Object
6993
+ *
6994
+ * @param {Object} val The value to test
6995
+ * @returns {boolean} True if value is an Object, otherwise false
6996
  */
6997
+ function isObject(val) {
6998
+ return val !== null && typeof val === 'object';
6999
  }
7000
+
7001
  /**
7002
+ * Determine if a value is a plain Object
7003
+ *
7004
+ * @param {Object} val The value to test
7005
+ * @return {boolean} True if value is a plain Object, otherwise false
7006
  */
7007
+ function isPlainObject(val) {
7008
+ if (toString.call(val) !== '[object Object]') {
7009
+ return false;
7010
+ }
7011
+
7012
+ var prototype = Object.getPrototypeOf(val);
7013
+ return prototype === null || prototype === Object.prototype;
7014
  }
7015
+
7016
  /**
7017
+ * Determine if a value is a Date
7018
+ *
7019
+ * @param {Object} val The value to test
7020
+ * @returns {boolean} True if value is a Date, otherwise false
7021
  */
7022
+ function isDate(val) {
7023
+ return toString.call(val) === '[object Date]';
7024
  }
7025
+
7026
  /**
7027
+ * Determine if a value is a File
7028
  *
7029
+ * @param {Object} val The value to test
7030
+ * @returns {boolean} True if value is a File, otherwise false
7031
  */
7032
+ function isFile(val) {
7033
+ return toString.call(val) === '[object File]';
7034
  }
7035
+
7036
  /**
7037
+ * Determine if a value is a Blob
 
 
 
 
 
 
 
 
7038
  *
7039
+ * @param {Object} val The value to test
7040
+ * @returns {boolean} True if value is a Blob, otherwise false
7041
  */
7042
+ function isBlob(val) {
7043
+ return toString.call(val) === '[object Blob]';
7044
  }
7045
+
7046
  /**
7047
+ * Determine if a value is a Function
 
 
 
7048
  *
7049
+ * @param {Object} val The value to test
7050
+ * @returns {boolean} True if value is a Function, otherwise false
 
7051
  */
7052
+ function isFunction(val) {
7053
+ return toString.call(val) === '[object Function]';
 
 
 
 
 
7054
  }
7055
+
7056
  /**
7057
+ * Determine if a value is a Stream
7058
  *
7059
+ * @param {Object} val The value to test
7060
+ * @returns {boolean} True if value is a Stream, otherwise false
7061
+ */
7062
+ function isStream(val) {
7063
+ return isObject(val) && isFunction(val.pipe);
7064
+ }
7065
+
7066
+ /**
7067
+ * Determine if a value is a URLSearchParams object
7068
  *
7069
+ * @param {Object} val The value to test
7070
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
7071
+ */
7072
+ function isURLSearchParams(val) {
7073
+ return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
7074
+ }
7075
+
7076
+ /**
7077
+ * Trim excess whitespace off the beginning and end of a string
7078
  *
7079
+ * @param {String} str The String to trim
7080
+ * @returns {String} The String freed of excess whitespace
7081
+ */
7082
+ function trim(str) {
7083
+ return str.replace(/^\s*/, '').replace(/\s*$/, '');
7084
+ }
7085
+
7086
+ /**
7087
+ * Determine if we're running in a standard browser environment
7088
  *
7089
+ * This allows axios to run in a web worker, and react-native.
7090
+ * Both environments support XMLHttpRequest, but not fully standard globals.
 
7091
  *
7092
+ * web workers:
7093
+ * typeof window -> undefined
7094
+ * typeof document -> undefined
7095
+ *
7096
+ * react-native:
7097
+ * navigator.product -> 'ReactNative'
7098
+ * nativescript
7099
+ * navigator.product -> 'NativeScript' or 'NS'
7100
  */
7101
+ function isStandardBrowserEnv() {
7102
+ if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
7103
+ navigator.product === 'NativeScript' ||
7104
+ navigator.product === 'NS')) {
7105
+ return false;
7106
+ }
7107
+ return (
7108
+ typeof window !== 'undefined' &&
7109
+ typeof document !== 'undefined'
7110
+ );
7111
  }
 
7112
 
7113
+ /**
7114
+ * Iterate over an Array or an Object invoking a function for each item.
7115
+ *
7116
+ * If `obj` is an Array callback will be called passing
7117
+ * the value, index, and complete array for each item.
7118
+ *
7119
+ * If 'obj' is an Object callback will be called passing
7120
+ * the value, key, and complete object for each property.
7121
+ *
7122
+ * @param {Object|Array} obj The object to iterate
7123
+ * @param {Function} fn The callback to invoke for each item
7124
+ */
7125
+ function forEach(obj, fn) {
7126
+ // Don't bother if no value provided
7127
+ if (obj === null || typeof obj === 'undefined') {
7128
+ return;
7129
+ }
7130
 
7131
+ // Force an array if not already something iterable
7132
+ if (typeof obj !== 'object') {
7133
+ /*eslint no-param-reassign:0*/
7134
+ obj = [obj];
7135
+ }
7136
+
7137
+ if (isArray(obj)) {
7138
+ // Iterate over array values
7139
+ for (var i = 0, l = obj.length; i < l; i++) {
7140
+ fn.call(null, obj[i], i, obj);
7141
+ }
7142
+ } else {
7143
+ // Iterate over object keys
7144
+ for (var key in obj) {
7145
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
7146
+ fn.call(null, obj[key], key, obj);
7147
+ }
7148
+ }
7149
+ }
7150
+ }
7151
+
7152
+ /**
7153
+ * Accepts varargs expecting each argument to be an object, then
7154
+ * immutably merges the properties of each object and returns result.
7155
+ *
7156
+ * When multiple objects contain the same key the later object in
7157
+ * the arguments list will take precedence.
7158
+ *
7159
+ * Example:
7160
+ *
7161
+ * ```js
7162
+ * var result = merge({foo: 123}, {foo: 456});
7163
+ * console.log(result.foo); // outputs 456
7164
+ * ```
7165
+ *
7166
+ * @param {Object} obj1 Object to merge
7167
+ * @returns {Object} Result of all merge properties
7168
+ */
7169
+ function merge(/* obj1, obj2, obj3, ... */) {
7170
+ var result = {};
7171
+ function assignValue(val, key) {
7172
+ if (isPlainObject(result[key]) && isPlainObject(val)) {
7173
+ result[key] = merge(result[key], val);
7174
+ } else if (isPlainObject(val)) {
7175
+ result[key] = merge({}, val);
7176
+ } else if (isArray(val)) {
7177
+ result[key] = val.slice();
7178
+ } else {
7179
+ result[key] = val;
7180
  }
7181
+ }
7182
 
7183
+ for (var i = 0, l = arguments.length; i < l; i++) {
7184
+ forEach(arguments[i], assignValue);
7185
+ }
7186
+ return result;
7187
+ }
7188
 
7189
+ /**
7190
+ * Extends object a by mutably adding to it the properties of object b.
7191
+ *
7192
+ * @param {Object} a The object to be extended
7193
+ * @param {Object} b The object to copy properties from
7194
+ * @param {Object} thisArg The object to bind function to
7195
+ * @return {Object} The resulting value of object a
7196
+ */
7197
+ function extend(a, b, thisArg) {
7198
+ forEach(b, function assignValue(val, key) {
7199
+ if (thisArg && typeof val === 'function') {
7200
+ a[key] = bind(val, thisArg);
7201
+ } else {
7202
+ a[key] = val;
7203
  }
7204
+ });
7205
+ return a;
7206
+ }
7207
 
7208
+ /**
7209
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
7210
+ *
7211
+ * @param {string} content with BOM
7212
+ * @return {string} content value without BOM
7213
+ */
7214
+ function stripBOM(content) {
7215
+ if (content.charCodeAt(0) === 0xFEFF) {
7216
+ content = content.slice(1);
7217
  }
7218
+ return content;
7219
  }
7220
 
7221
+ module.exports = {
7222
+ isArray: isArray,
7223
+ isArrayBuffer: isArrayBuffer,
7224
+ isBuffer: isBuffer,
7225
+ isFormData: isFormData,
7226
+ isArrayBufferView: isArrayBufferView,
7227
+ isString: isString,
7228
+ isNumber: isNumber,
7229
+ isObject: isObject,
7230
+ isPlainObject: isPlainObject,
7231
+ isUndefined: isUndefined,
7232
+ isDate: isDate,
7233
+ isFile: isFile,
7234
+ isBlob: isBlob,
7235
+ isFunction: isFunction,
7236
+ isStream: isStream,
7237
+ isURLSearchParams: isURLSearchParams,
7238
+ isStandardBrowserEnv: isStandardBrowserEnv,
7239
+ forEach: forEach,
7240
+ merge: merge,
7241
+ extend: extend,
7242
+ trim: trim,
7243
+ stripBOM: stripBOM
7244
+ };
7245
 
7246
 
7247
  /***/ }),
7248
+
7249
+ /***/ 20365:
7250
+ /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
7251
 
7252
  "use strict";
 
 
 
 
 
7253
 
7254
+ // EXTERNAL MODULE: ./node_modules/react/index.js
7255
+ var react = __webpack_require__(67294);
7256
+ // EXTERNAL MODULE: ./node_modules/react-dom/index.js
7257
+ var react_dom = __webpack_require__(73935);
7258
+ // EXTERNAL MODULE: ./node_modules/symbol-observable/es/index.js + 1 modules
7259
+ var es = __webpack_require__(67121);
7260
+ ;// CONCATENATED MODULE: ./node_modules/redux/es/redux.js
7261
 
 
 
 
7262
 
7263
  /**
7264
+ * These are private action types reserved by Redux.
7265
+ * For any unknown actions, you must return the current state.
7266
+ * If the current state is undefined, you must return the initial state.
7267
+ * Do not reference these action types directly in your code.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7268
  */
7269
+ var randomString = function randomString() {
7270
+ return Math.random().toString(36).substring(7).split('').join('.');
7271
+ };
7272
 
7273
+ var ActionTypes = {
7274
+ INIT: "@@redux/INIT" + randomString(),
7275
+ REPLACE: "@@redux/REPLACE" + randomString(),
7276
+ PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
7277
+ return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
7278
+ }
7279
+ };
7280
+
7281
+ /**
7282
+ * @param {any} obj The object to inspect.
7283
+ * @returns {boolean} True if the argument appears to be a plain object.
7284
+ */
7285
+ function isPlainObject(obj) {
7286
+ if (typeof obj !== 'object' || obj === null) return false;
7287
+ var proto = obj;
7288
 
7289
+ while (Object.getPrototypeOf(proto) !== null) {
7290
+ proto = Object.getPrototypeOf(proto);
7291
+ }
7292
 
7293
+ return Object.getPrototypeOf(obj) === proto;
7294
+ }
 
7295
 
7296
  /**
7297
+ * Creates a Redux store that holds the state tree.
7298
+ * The only way to change the data in the store is to call `dispatch()` on it.
7299
  *
7300
+ * There should only be a single store in your app. To specify how different
7301
+ * parts of the state tree respond to actions, you may combine several reducers
7302
+ * into a single reducer function by using `combineReducers`.
 
 
 
 
7303
  *
7304
+ * @param {Function} reducer A function that returns the next state tree, given
7305
+ * the current state tree and the action to handle.
7306
  *
7307
+ * @param {any} [preloadedState] The initial state. You may optionally specify it
7308
+ * to hydrate the state from the server in universal apps, or to restore a
7309
+ * previously serialized user session.
7310
+ * If you use `combineReducers` to produce the root reducer function, this must be
7311
+ * an object with the same shape as `combineReducers` keys.
7312
  *
7313
+ * @param {Function} [enhancer] The store enhancer. You may optionally specify it
7314
+ * to enhance the store with third-party capabilities such as middleware,
7315
+ * time travel, persistence, etc. The only store enhancer that ships with Redux
7316
+ * is `applyMiddleware()`.
7317
  *
7318
+ * @returns {Store} A Redux store that lets you read the state, dispatch actions
7319
+ * and subscribe to changes.
7320
  */
 
7321
 
7322
+ function createStore(reducer, preloadedState, enhancer) {
7323
+ var _ref2;
7324
 
7325
+ if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
7326
+ throw new Error('It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function.');
7327
+ }
7328
 
7329
+ if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
7330
+ enhancer = preloadedState;
7331
+ preloadedState = undefined;
7332
+ }
7333
 
7334
+ if (typeof enhancer !== 'undefined') {
7335
+ if (typeof enhancer !== 'function') {
7336
+ throw new Error('Expected the enhancer to be a function.');
7337
+ }
7338
 
7339
+ return enhancer(createStore)(reducer, preloadedState);
7340
+ }
 
 
 
 
 
 
 
7341
 
7342
+ if (typeof reducer !== 'function') {
7343
+ throw new Error('Expected the reducer to be a function.');
7344
+ }
7345
 
7346
+ var currentReducer = reducer;
7347
+ var currentState = preloadedState;
7348
+ var currentListeners = [];
7349
+ var nextListeners = currentListeners;
7350
+ var isDispatching = false;
7351
+ /**
7352
+ * This makes a shallow copy of currentListeners so we can use
7353
+ * nextListeners as a temporary list while dispatching.
7354
+ *
7355
+ * This prevents any bugs around consumers calling
7356
+ * subscribe/unsubscribe in the middle of a dispatch.
7357
+ */
7358
 
7359
+ function ensureCanMutateNextListeners() {
7360
+ if (nextListeners === currentListeners) {
7361
+ nextListeners = currentListeners.slice();
7362
+ }
7363
+ }
7364
+ /**
7365
+ * Reads the state tree managed by the store.
7366
+ *
7367
+ * @returns {any} The current state tree of your application.
7368
+ */
7369
 
7370
 
7371
+ function getState() {
7372
+ if (isDispatching) {
7373
+ throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
7374
+ }
7375
 
7376
+ return currentState;
7377
+ }
7378
+ /**
7379
+ * Adds a change listener. It will be called any time an action is dispatched,
7380
+ * and some part of the state tree may potentially have changed. You may then
7381
+ * call `getState()` to read the current state tree inside the callback.
7382
+ *
7383
+ * You may call `dispatch()` from a change listener, with the following
7384
+ * caveats:
7385
+ *
7386
+ * 1. The subscriptions are snapshotted just before every `dispatch()` call.
7387
+ * If you subscribe or unsubscribe while the listeners are being invoked, this
7388
+ * will not have any effect on the `dispatch()` that is currently in progress.
7389
+ * However, the next `dispatch()` call, whether nested or not, will use a more
7390
+ * recent snapshot of the subscription list.
7391
+ *
7392
+ * 2. The listener should not expect to see all state changes, as the state
7393
+ * might have been updated multiple times during a nested `dispatch()` before
7394
+ * the listener is called. It is, however, guaranteed that all subscribers
7395
+ * registered before the `dispatch()` started will be called with the latest
7396
+ * state by the time it exits.
7397
+ *
7398
+ * @param {Function} listener A callback to be invoked on every dispatch.
7399
+ * @returns {Function} A function to remove this change listener.
7400
+ */
7401
 
 
7402
 
7403
+ function subscribe(listener) {
7404
+ if (typeof listener !== 'function') {
7405
+ throw new Error('Expected the listener to be a function.');
7406
+ }
7407
 
7408
+ if (isDispatching) {
7409
+ throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');
7410
+ }
7411
 
7412
+ var isSubscribed = true;
7413
+ ensureCanMutateNextListeners();
7414
+ nextListeners.push(listener);
7415
+ return function unsubscribe() {
7416
+ if (!isSubscribed) {
7417
+ return;
7418
+ }
 
7419
 
7420
+ if (isDispatching) {
7421
+ throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribelistener for more details.');
7422
+ }
7423
 
7424
+ isSubscribed = false;
7425
+ ensureCanMutateNextListeners();
7426
+ var index = nextListeners.indexOf(listener);
7427
+ nextListeners.splice(index, 1);
7428
+ currentListeners = null;
7429
+ };
7430
+ }
7431
+ /**
7432
+ * Dispatches an action. It is the only way to trigger a state change.
7433
+ *
7434
+ * The `reducer` function, used to create the store, will be called with the
7435
+ * current state tree and the given `action`. Its return value will
7436
+ * be considered the **next** state of the tree, and the change listeners
7437
+ * will be notified.
7438
+ *
7439
+ * The base implementation only supports plain object actions. If you want to
7440
+ * dispatch a Promise, an Observable, a thunk, or something else, you need to
7441
+ * wrap your store creating function into the corresponding middleware. For
7442
+ * example, see the documentation for the `redux-thunk` package. Even the
7443
+ * middleware will eventually dispatch plain object actions using this method.
7444
+ *
7445
+ * @param {Object} action A plain object representing “what changed”. It is
7446
+ * a good idea to keep actions serializable so you can record and replay user
7447
+ * sessions, or use the time travelling `redux-devtools`. An action must have
7448
+ * a `type` property which may not be `undefined`. It is a good idea to use
7449
+ * string constants for action types.
7450
+ *
7451
+ * @returns {Object} For convenience, the same action object you dispatched.
7452
+ *
7453
+ * Note that, if you use a custom middleware, it may wrap `dispatch()` to
7454
+ * return something else (for example, a Promise you can await).
7455
+ */
7456
 
7457
 
7458
+ function dispatch(action) {
7459
+ if (!isPlainObject(action)) {
7460
+ throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7461
  }
 
 
 
 
 
 
 
 
7462
 
7463
+ if (typeof action.type === 'undefined') {
7464
+ throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?');
7465
+ }
 
 
7466
 
7467
+ if (isDispatching) {
7468
+ throw new Error('Reducers may not dispatch actions.');
7469
+ }
 
 
7470
 
7471
+ try {
7472
+ isDispatching = true;
7473
+ currentState = currentReducer(currentState, action);
7474
+ } finally {
7475
+ isDispatching = false;
7476
+ }
7477
 
7478
+ var listeners = currentListeners = nextListeners;
 
 
7479
 
7480
+ for (var i = 0; i < listeners.length; i++) {
7481
+ var listener = listeners[i];
7482
+ listener();
7483
  }
 
 
 
 
 
 
 
 
 
 
7484
 
7485
+ return action;
7486
+ }
7487
+ /**
7488
+ * Replaces the reducer currently used by the store to calculate the state.
7489
+ *
7490
+ * You might need this if your app implements code splitting and you want to
7491
+ * load some of the reducers dynamically. You might also need this if you
7492
+ * implement a hot reloading mechanism for Redux.
7493
+ *
7494
+ * @param {Function} nextReducer The reducer for the store to use instead.
7495
+ * @returns {void}
7496
+ */
7497
 
 
7498
 
7499
+ function replaceReducer(nextReducer) {
7500
+ if (typeof nextReducer !== 'function') {
7501
+ throw new Error('Expected the nextReducer to be a function.');
7502
+ }
7503
 
7504
+ currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
7505
+ // Any reducers that existed in both the new and old rootReducer
7506
+ // will receive the previous state. This effectively populates
7507
+ // the new state tree with any relevant data from the old one.
7508
 
7509
+ dispatch({
7510
+ type: ActionTypes.REPLACE
7511
+ });
7512
+ }
7513
+ /**
7514
+ * Interoperability point for observable/reactive libraries.
7515
+ * @returns {observable} A minimal observable of state changes.
7516
+ * For more information, see the observable proposal:
7517
+ * https://github.com/tc39/proposal-observable
7518
+ */
7519
 
 
 
 
7520
 
7521
+ function observable() {
7522
+ var _ref;
 
 
 
 
 
 
 
 
 
 
 
 
 
7523
 
7524
+ var outerSubscribe = subscribe;
7525
+ return _ref = {
7526
+ /**
7527
+ * The minimal observable subscription method.
7528
+ * @param {Object} observer Any object that can be used as an observer.
7529
+ * The observer object should have a `next` method.
7530
+ * @returns {subscription} An object with an `unsubscribe` method that can
7531
+ * be used to unsubscribe the observable from the store, and prevent further
7532
+ * emission of values from the observable.
7533
+ */
7534
+ subscribe: function subscribe(observer) {
7535
+ if (typeof observer !== 'object' || observer === null) {
7536
+ throw new TypeError('Expected the observer to be an object.');
7537
+ }
7538
 
7539
+ function observeState() {
7540
+ if (observer.next) {
7541
+ observer.next(getState());
7542
+ }
7543
+ }
7544
 
7545
+ observeState();
7546
+ var unsubscribe = outerSubscribe(observeState);
7547
+ return {
7548
+ unsubscribe: unsubscribe
7549
+ };
7550
+ }
7551
+ }, _ref[es/* default */.Z] = function () {
7552
+ return this;
7553
+ }, _ref;
7554
+ } // When a store is created, an "INIT" action is dispatched so that every
7555
+ // reducer returns their initial state. This effectively populates
7556
+ // the initial state tree.
 
 
 
7557
 
7558
 
7559
+ dispatch({
7560
+ type: ActionTypes.INIT
7561
+ });
7562
+ return _ref2 = {
7563
+ dispatch: dispatch,
7564
+ subscribe: subscribe,
7565
+ getState: getState,
7566
+ replaceReducer: replaceReducer
7567
+ }, _ref2[es/* default */.Z] = observable, _ref2;
 
 
 
 
 
7568
  }
7569
+
7570
  /**
7571
+ * Prints a warning in the console if it exists.
7572
  *
7573
+ * @param {String} message The warning message.
7574
+ * @returns {void}
7575
  */
7576
+ function warning(message) {
7577
+ /* eslint-disable no-console */
7578
+ if (typeof console !== 'undefined' && typeof console.error === 'function') {
7579
+ console.error(message);
7580
+ }
7581
+ /* eslint-enable no-console */
7582
+
7583
+
7584
+ try {
7585
+ // This error was thrown as a convenience so that if you enable
7586
+ // "break on all exceptions" in your console,
7587
+ // it would pause the execution at this line.
7588
+ throw new Error(message);
7589
+ } catch (e) {} // eslint-disable-line no-empty
7590
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7591
  }
7592
+
7593
+ function getUndefinedStateErrorMessage(key, action) {
7594
+ var actionType = action && action.type;
7595
+ var actionDescription = actionType && "action \"" + String(actionType) + "\"" || 'an action';
7596
+ return "Given " + actionDescription + ", reducer \"" + key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7597
  }
7598
+
7599
+ function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
7600
+ var reducerKeys = Object.keys(reducers);
7601
+ var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
7602
+
7603
+ if (reducerKeys.length === 0) {
7604
+ return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
7605
+ }
7606
+
7607
+ if (!isPlainObject(inputState)) {
7608
+ return "The " + argumentName + " has unexpected type of \"" + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
7609
+ }
7610
+
7611
+ var unexpectedKeys = Object.keys(inputState).filter(function (key) {
7612
+ return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
7613
+ });
7614
+ unexpectedKeys.forEach(function (key) {
7615
+ unexpectedKeyCache[key] = true;
7616
+ });
7617
+ if (action && action.type === ActionTypes.REPLACE) return;
7618
+
7619
+ if (unexpectedKeys.length > 0) {
7620
+ return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
7621
+ }
7622
  }
7623
+
7624
+ function assertReducerShape(reducers) {
7625
+ Object.keys(reducers).forEach(function (key) {
7626
+ var reducer = reducers[key];
7627
+ var initialState = reducer(undefined, {
7628
+ type: ActionTypes.INIT
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7629
  });
7630
+
7631
+ if (typeof initialState === 'undefined') {
7632
+ throw new Error("Reducer \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7633
  }
7634
+
7635
+ if (typeof reducer(undefined, {
7636
+ type: ActionTypes.PROBE_UNKNOWN_ACTION()
7637
+ }) === 'undefined') {
7638
+ throw new Error("Reducer \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle " + ActionTypes.INIT + " or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
7639
  }
7640
+ });
7641
  }
7642
  /**
7643
+ * Turns an object whose values are different reducer functions, into a single
7644
+ * reducer function. It will call every child reducer, and gather their results
7645
+ * into a single state object, whose keys correspond to the keys of the passed
7646
+ * reducer functions.
7647
  *
7648
+ * @param {Object} reducers An object whose values correspond to different
7649
+ * reducer functions that need to be combined into one. One handy way to obtain
7650
+ * it is to use ES6 `import * as reducers` syntax. The reducers may never return
7651
+ * undefined for any action. Instead, they should return their initial state
7652
+ * if the state passed to them was undefined, and the current state for any
7653
+ * unrecognized action.
 
 
 
 
 
 
 
 
 
 
 
 
 
7654
  *
7655
+ * @returns {Function} A reducer function that invokes every reducer inside the
7656
+ * passed object, and builds a state object with the same shape.
7657
  */
 
 
 
 
 
 
7658
 
 
 
 
 
 
 
 
 
7659
 
7660
+ function combineReducers(reducers) {
7661
+ var reducerKeys = Object.keys(reducers);
7662
+ var finalReducers = {};
7663
 
7664
+ for (var i = 0; i < reducerKeys.length; i++) {
7665
+ var key = reducerKeys[i];
 
7666
 
7667
+ if (false) {}
 
 
7668
 
7669
+ if (typeof reducers[key] === 'function') {
7670
+ finalReducers[key] = reducers[key];
7671
+ }
7672
+ }
7673
 
7674
+ var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
7675
+ // keys multiple times.
7676
 
7677
+ var unexpectedKeyCache;
7678
 
7679
+ if (false) {}
 
 
7680
 
7681
+ var shapeAssertionError;
 
 
 
 
 
 
 
 
 
 
 
7682
 
7683
+ try {
7684
+ assertReducerShape(finalReducers);
7685
+ } catch (e) {
7686
+ shapeAssertionError = e;
7687
+ }
7688
 
7689
+ return function combination(state, action) {
7690
+ if (state === void 0) {
7691
+ state = {};
7692
+ }
7693
 
7694
+ if (shapeAssertionError) {
7695
+ throw shapeAssertionError;
7696
+ }
7697
 
7698
+ if (false) { var warningMessage; }
 
 
 
 
 
 
 
 
 
 
 
 
 
7699
 
7700
+ var hasChanged = false;
7701
+ var nextState = {};
7702
 
7703
+ for (var _i = 0; _i < finalReducerKeys.length; _i++) {
7704
+ var _key = finalReducerKeys[_i];
7705
+ var reducer = finalReducers[_key];
7706
+ var previousStateForKey = state[_key];
7707
+ var nextStateForKey = reducer(previousStateForKey, action);
7708
 
7709
+ if (typeof nextStateForKey === 'undefined') {
7710
+ var errorMessage = getUndefinedStateErrorMessage(_key, action);
7711
+ throw new Error(errorMessage);
7712
+ }
7713
 
7714
+ nextState[_key] = nextStateForKey;
7715
+ hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
7716
+ }
7717
 
7718
+ hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
7719
+ return hasChanged ? nextState : state;
7720
+ };
7721
+ }
7722
 
7723
+ function bindActionCreator(actionCreator, dispatch) {
7724
+ return function () {
7725
+ return dispatch(actionCreator.apply(this, arguments));
7726
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7727
  }
7728
  /**
7729
+ * Turns an object whose values are action creators, into an object with the
7730
+ * same keys, but with every function wrapped into a `dispatch` call so they
7731
+ * may be invoked directly. This is just a convenience method, as you can call
7732
+ * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
7733
  *
7734
+ * For convenience, you can also pass an action creator as the first argument,
7735
+ * and get a dispatch wrapped function in return.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7736
  *
7737
+ * @param {Function|Object} actionCreators An object whose values are action
7738
+ * creator functions. One handy way to obtain it is to use ES6 `import * as`
7739
+ * syntax. You may also pass a single function.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7740
  *
7741
+ * @param {Function} dispatch The `dispatch` function available on your Redux
7742
+ * store.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7743
  *
7744
+ * @returns {Function|Object} The object mimicking the original object, but with
7745
+ * every action creator wrapped into the `dispatch` call. If you passed a
7746
+ * function as `actionCreators`, the return value will also be a single
7747
+ * function.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7748
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7749
 
 
 
 
7750
 
7751
+ function bindActionCreators(actionCreators, dispatch) {
7752
+ if (typeof actionCreators === 'function') {
7753
+ return bindActionCreator(actionCreators, dispatch);
 
 
7754
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7755
 
7756
+ if (typeof actionCreators !== 'object' || actionCreators === null) {
7757
+ throw new Error("bindActionCreators expected an object or a function, instead received " + (actionCreators === null ? 'null' : typeof actionCreators) + ". " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
7758
+ }
7759
 
7760
+ var boundActionCreators = {};
7761
 
7762
+ for (var key in actionCreators) {
7763
+ var actionCreator = actionCreators[key];
7764
 
7765
+ if (typeof actionCreator === 'function') {
7766
+ boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
7767
+ }
7768
+ }
7769
 
7770
+ return boundActionCreators;
7771
+ }
7772
 
7773
+ function _defineProperty(obj, key, value) {
7774
+ if (key in obj) {
7775
+ Object.defineProperty(obj, key, {
7776
+ value: value,
7777
+ enumerable: true,
7778
+ configurable: true,
7779
+ writable: true
7780
+ });
7781
+ } else {
7782
+ obj[key] = value;
7783
+ }
 
 
 
 
7784
 
7785
+ return obj;
7786
+ }
 
 
7787
 
7788
+ function ownKeys(object, enumerableOnly) {
7789
+ var keys = Object.keys(object);
 
 
7790
 
7791
+ if (Object.getOwnPropertySymbols) {
7792
+ keys.push.apply(keys, Object.getOwnPropertySymbols(object));
7793
+ }
 
7794
 
7795
+ if (enumerableOnly) keys = keys.filter(function (sym) {
7796
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7797
+ });
7798
+ return keys;
7799
+ }
7800
 
7801
+ function _objectSpread2(target) {
7802
+ for (var i = 1; i < arguments.length; i++) {
7803
+ var source = arguments[i] != null ? arguments[i] : {};
 
7804
 
7805
+ if (i % 2) {
7806
+ ownKeys(source, true).forEach(function (key) {
7807
+ _defineProperty(target, key, source[key]);
7808
+ });
7809
+ } else if (Object.getOwnPropertyDescriptors) {
7810
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7811
+ } else {
7812
+ ownKeys(source).forEach(function (key) {
7813
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7814
+ });
7815
+ }
7816
+ }
7817
 
7818
+ return target;
7819
+ }
 
 
7820
 
7821
+ /**
7822
+ * Composes single-argument functions from right to left. The rightmost
7823
+ * function can take multiple arguments as it provides the signature for
7824
+ * the resulting composite function.
7825
+ *
7826
+ * @param {...Function} funcs The functions to compose.
7827
+ * @returns {Function} A function obtained by composing the argument functions
7828
+ * from right to left. For example, compose(f, g, h) is identical to doing
7829
+ * (...args) => f(g(h(...args))).
7830
+ */
7831
+ function compose() {
7832
+ for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
7833
+ funcs[_key] = arguments[_key];
7834
+ }
 
 
 
 
 
 
 
7835
 
7836
+ if (funcs.length === 0) {
7837
+ return function (arg) {
7838
+ return arg;
7839
+ };
7840
+ }
 
 
 
 
 
 
 
 
 
 
 
7841
 
7842
+ if (funcs.length === 1) {
7843
+ return funcs[0];
7844
+ }
7845
 
7846
+ return funcs.reduce(function (a, b) {
7847
+ return function () {
7848
+ return a(b.apply(void 0, arguments));
7849
+ };
7850
+ });
7851
+ }
7852
 
7853
  /**
7854
+ * Creates a store enhancer that applies middleware to the dispatch method
7855
+ * of the Redux store. This is handy for a variety of tasks, such as expressing
7856
+ * asynchronous actions in a concise manner, or logging every action payload.
7857
+ *
7858
+ * See `redux-thunk` package as an example of the Redux middleware.
7859
+ *
7860
+ * Because middleware is potentially asynchronous, this should be the first
7861
+ * store enhancer in the composition chain.
7862
+ *
7863
+ * Note that each middleware will be given the `dispatch` and `getState` functions
7864
+ * as named arguments.
7865
+ *
7866
+ * @param {...Function} middlewares The middleware chain to be applied.
7867
+ * @returns {Function} A store enhancer applying the middleware.
7868
  */
7869
 
7870
+ function applyMiddleware() {
7871
+ for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
7872
+ middlewares[_key] = arguments[_key];
7873
+ }
 
 
7874
 
7875
+ return function (createStore) {
7876
+ return function () {
7877
+ var store = createStore.apply(void 0, arguments);
7878
+
7879
+ var _dispatch = function dispatch() {
7880
+ throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
7881
+ };
7882
 
7883
+ var middlewareAPI = {
7884
+ getState: store.getState,
7885
+ dispatch: function dispatch() {
7886
+ return _dispatch.apply(void 0, arguments);
7887
+ }
7888
+ };
7889
+ var chain = middlewares.map(function (middleware) {
7890
+ return middleware(middlewareAPI);
7891
+ });
7892
+ _dispatch = compose.apply(void 0, chain)(store.dispatch);
7893
+ return _objectSpread2({}, store, {
7894
+ dispatch: _dispatch
7895
+ });
7896
+ };
7897
+ };
7898
  }
7899
 
7900
+ /*
7901
+ * This is a dummy function to check if the function name has been altered by minification.
7902
+ * If the function has been minified and NODE_ENV !== 'production', warn the user.
7903
+ */
7904
 
7905
+ function isCrushed() {}
 
 
 
 
 
 
 
 
 
 
 
 
 
7906
 
7907
+ if (false) {}
7908
 
7909
 
7910
 
7911
+ ;// CONCATENATED MODULE: ./src/js/utils/buttonizer-constants.js
7912
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
7913
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7914
  /**
7915
+ * Constants
 
 
 
 
 
7916
  */
7917
+ var buttonizer_constants_actionTypes = {
7918
+ INIT: "INIT",
7919
+ // Adding and removing buttons/groups
7920
+ ADD_MODEL: "ADD_MODEL",
7921
+ //Relation actionTypes
7922
+ ADD_RELATION: "ADD_RELATION",
7923
+ CHANGE_RELATION: "CHANGE_RELATION",
7924
+ REMOVE_RELATION: "REMOVE_RELATION",
7925
+ //Data actionTypes
7926
+ GET_DATA_BEGIN: "GET_DATA_BEGIN",
7927
+ GET_DATA_SUCCESS: "GET_DATA_SUCCESS",
7928
+ GET_DATA_FAILURE: "GET_DATA_FAILURE",
7929
+ GET_DATA_END: "GET_DATA_END",
7930
+ HAS_CHANGES: "HAS_CHANGES",
7931
+ IS_UPDATING: "IS_UPDATING",
7932
+ STOP_LOADING: "STOP_LOADING",
7933
+ //Setting values
7934
+ SET_SETTING_VALUE: "SET_SETTING_VALUE",
7935
+ //Drawer
7936
+ OPEN_DRAWER: "OPENING DRAWER",
7937
+ CLOSE_DRAWER: "CLOSING DRAWER",
7938
+ groups: {
7939
+ ADD_RECORD: "ADDING GROUP RECORD",
7940
+ REMOVE_RECORD: "REMOVING GROUP RECORD",
7941
+ SET_KEY_VALUE: "SET KEY VALUE GROUPS",
7942
+ SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS GROUPS"
7943
  },
7944
+ buttons: {
7945
+ ADD_RECORD: "ADDING BUTTON RECORD",
7946
+ REMOVE_RECORD: "REMOVING BUTTON RECORD",
7947
+ SET_KEY_VALUE: "SET KEY VALUE BUTTONS",
7948
+ SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS BUTTONS"
7949
+ },
7950
+ timeSchedules: {
7951
+ // Time Schedule actionTypes
7952
+ ADD_RECORD: "ADDING TIME SCHEDULE",
7953
+ REMOVE_RECORD: "REMOVING TIME SCHEDULE",
7954
+ SET_KEY_VALUE: "SET KEY VALUE TIMESCHEDULES",
7955
+ SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS TIMESCHEDULES",
7956
+ ADD_TIMESCHEDULE: "ADD_TIMESCHEDULE",
7957
+ SET_WEEKDAY: "SET_WEEKDAY",
7958
+ ADD_EXCLUDED_DATE: "ADD_EXCLUDED_DATE",
7959
+ SET_EXCLUDED_DATE: "SET_EXCLUDED_DATE",
7960
+ REMOVE_EXCLUDED_DATE: "REMOVE_EXCLUDED_DATE"
7961
+ },
7962
+ pageRules: {
7963
+ ADD_RECORD: "ADDING PAGE RULE",
7964
+ REMOVE_RECORD: "REMOVING PAGE RULE",
7965
+ SET_KEY_VALUE: "SET KEY VALUE PAGERULES",
7966
+ SET_KEY_FORMAT: "SET FORMATTED KEY VALUE PAIRS PAGERULES",
7967
+ ADD_PAGE_RULE_ROW: "ADD_PAGE_RULE_ROW",
7968
+ SET_PAGE_RULE_ROW: "SET_PAGE_RULE_ROW",
7969
+ REMOVE_PAGE_RULE_ROW: "REMOVE_PAGE_RULE_ROW"
7970
+ },
7971
+ wp: {
7972
+ //Data actionTypes
7973
+ GET_DATA_BEGIN: "GET_DATA_BEGIN_WP",
7974
+ GET_DATA_SUCCESS: "GET_DATA_SUCCESS_WP",
7975
+ GET_DATA_FAILURE: "GET_DATA_FAILURE_WP",
7976
+ GET_DATA_END: "GET_DATA_END_WP"
7977
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7978
  };
7979
+ var wpActionTypes = {};
7980
+ var weekdays = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
7981
+ var models = {
7982
+ BUTTON: "buttons",
7983
+ GROUP: "groups",
7984
+ TIME_SCHEDULE: "timeSchedules",
7985
+ PAGE_RULE: "pageRules"
 
 
 
 
 
 
 
 
 
7986
  };
7987
+ var initialStore = {
7988
+ name: "peter",
7989
+ loading: {
7990
+ showLoading: false,
7991
+ loadingString: "",
7992
+ loadingSlowWebsite: false,
7993
+ loaded: false,
7994
+ error: null
7995
+ },
7996
+ frameUrl: "about:blank",
7997
+ loadingIframe: false,
7998
+ settings: null,
7999
+ _premium: false,
8000
+ buttons: {},
8001
+ groups: {},
8002
+ timeSchedules: {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8003
  };
8004
+ var drawers = {
8005
+ MENU: "menu",
8006
+ SETTINGS: "settings",
8007
+ SETTINGS_PAGES: {
8008
+ analytics: "analytics",
8009
+ iconLibrary: "iconlibrary",
8010
+ preferences: "preferences",
8011
+ reset: "reset"
8012
+ },
8013
+ TIME_SCHEDULES: "timeschedules",
8014
+ PAGE_RULES: "pagerules"
8015
  };
8016
+ var formats = {
8017
+ /**
8018
+ * Combine values with normal;hover.
8019
+ */
8020
+ normal_hover: {
8021
+ format: function format(normal, hover) {
8022
+ return [normal, hover].map(function (val) {
8023
+ return val === "unset" ? "" : val == null ? "" : val;
8024
+ }).filter(function (val, key, arr) {
8025
+ return key === 0 || val !== "" && val !== arr[0];
8026
+ }) // remove duplicates
8027
+ .join(";") || "unset";
8028
+ },
8029
+ parse: function parse(val) {
8030
+ var value = val;
8031
+ if (typeof val === "boolean") value = String(val);
8032
+ if (typeof val === "number") value = String(val);
8033
+ if (typeof val === "undefined") return [];
8034
 
8035
+ if (typeof value !== "string") {
8036
+ console.trace();
8037
+ console.log(_typeof(value), value);
8038
+ throw TypeError("'record[key]' val is not of type String, boolean or number");
8039
+ }
8040
 
8041
+ var match = value.split(";");
8042
+ return match.map(function (val) {
8043
+ if (!val) return undefined;
8044
+ if (val === "true") return true;
8045
+ if (val === "false") return false;
8046
+ if (!isNaN(Number(val))) return Number(val);
8047
+ return val;
8048
+ }).map(function (val, key, arr) {
8049
+ return key === 0 ? val : val === arr[0] ? undefined : val;
8050
+ }); // remove duplicates!
 
 
 
 
 
8051
  }
8052
+ },
8053
 
8054
+ /**
8055
+ * Px for four sides, for example for margin or padding.
8056
+ */
8057
+ fourSidesPx: {
8058
+ format: function format(val1, val2, val3, val4) {
8059
+ return "".concat(val1, "px ").concat(val2, "px ").concat(val3, "px ").concat(val4, "px");
8060
+ },
8061
+ parse: function parse(val) {
8062
+ var reg = /\d+/g;
8063
+ var match = val.match(reg);
8064
+ return match;
8065
+ }
8066
+ },
8067
 
8068
+ /**
8069
+ * Position format, example: 'bottom: 5px', or 'left: 10%'
8070
+ */
8071
+ position: {
8072
+ format: function format(type, mode, value) {
8073
+ return "".concat(type, ": ").concat(value).concat(mode);
8074
+ }
8075
  }
8076
+ };
8077
+ var excludedPropertyRequests = (/* unused pure expression or super */ null && (["selected_schedule", "show_on_schedule_trigger", "selected_page_rule", "show_on_rule_trigger", "show_mobile", "show_desktop"]));
8078
+ // EXTERNAL MODULE: ./node_modules/axios/index.js
8079
+ var axios = __webpack_require__(9669);
8080
+ var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
8081
+ ;// CONCATENATED MODULE: ./src/js/utils/utils/drawer-utils.js
8082
+ function openDrawer(drawer, page) {
8083
+ closeDrawer();
8084
+ document.location.hash += "".concat(document.location.hash.match(/\/$/) ? "" : "/").concat(drawer).concat(page ? "/" + page : "");
8085
  }
8086
+ function closeDrawer() {
8087
+ document.location.hash = document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules).*$/i, "");
8088
+ }
8089
+ ;// CONCATENATED MODULE: ./src/js/utils/utils/data-utils.js
8090
+ /* global Map */
8091
 
8092
+ function dateToFormat(date) {
8093
+ if (!date) return null;
 
 
 
8094
 
8095
+ var pad = function pad(num, size) {
8096
+ var s = String(num);
8097
 
8098
+ while (s.length < (size || 2)) {
8099
+ s = "0" + s;
 
 
 
8100
  }
8101
 
8102
+ return s;
8103
+ };
 
 
 
8104
 
8105
+ return "".concat(date.getDate(), "-").concat(pad(date.getMonth() + 1, 2), "-").concat(date.getFullYear());
 
 
8106
  }
8107
+ function formatToDate(format) {
8108
+ if (!format) return null;
8109
+ var dateParts = format.split("-");
8110
+ return new Date(dateParts[2], dateParts[1] - 1, dateParts[0]);
8111
+ }
8112
+ var importIcons = function () {
8113
+ var cache = new Map();
8114
+ return function () {
8115
+ var icon_library = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "fontawesome";
8116
+ var icon_library_version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "5.free";
8117
+ var url = buttonizer_admin.assets + "/icon_definitions/" + icon_library + "." + icon_library_version + ".json?buttonizer-icon-cache=" + buttonizer_admin.version;
8118
+ if (cache.has(url)) return cache.get(url);
8119
+ var value = axios_default()({
8120
+ url: url,
8121
+ dataType: "json",
8122
+ method: "get"
8123
+ });
8124
+ cache.set(url, value);
8125
+ return value;
8126
+ };
8127
+ }();
8128
+ // EXTERNAL MODULE: ./node_modules/uuid/v4.js
8129
+ var v4 = __webpack_require__(71171);
8130
+ var v4_default = /*#__PURE__*/__webpack_require__.n(v4);
8131
+ ;// CONCATENATED MODULE: ./src/js/utils/utils/random.js
8132
 
8133
+ function GenerateUniqueId() {
8134
+ return v4_default()();
8135
  }
8136
+ function shuffleTips(array) {
8137
+ var currentIndex = array.length,
8138
+ temporaryValue,
8139
+ randomIndex; // While there remain elements to shuffle...
8140
 
8141
+ while (0 !== currentIndex) {
8142
+ // Pick a remaining element...
8143
+ randomIndex = Math.floor(Math.random() * currentIndex);
8144
+ currentIndex -= 1; // And swap it with the current element.
8145
 
8146
+ temporaryValue = array[currentIndex];
8147
+ array[currentIndex] = array[randomIndex];
8148
+ array[randomIndex] = temporaryValue;
 
 
 
 
 
8149
  }
 
 
 
 
 
8150
 
8151
+ return array;
8152
+ }
8153
+ function uniqueCharset() {
8154
+ return Array.apply(0, Array(15)).map(function () {
8155
+ return function (charset) {
8156
+ return charset.charAt(Math.floor(Math.random() * charset.length));
8157
+ }("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
8158
+ }).join("");
8159
+ }
8160
+ ;// CONCATENATED MODULE: ./src/js/utils/utils/index.js
8161
 
8162
 
 
 
 
8163
 
8164
+ // EXTERNAL MODULE: ./node_modules/dlv/dist/dlv.umd.js
8165
+ var dlv_umd = __webpack_require__(26905);
8166
+ var dlv_umd_default = /*#__PURE__*/__webpack_require__.n(dlv_umd);
8167
+ ;// CONCATENATED MODULE: ./src/js/utils/translate.js
8168
 
8169
+ function translate(key) {
8170
+ for (var _len = arguments.length, formats = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
8171
+ formats[_key - 1] = arguments[_key];
 
8172
  }
 
 
 
8173
 
8174
+ // return key;
8175
+ if (!String.prototype.format) {
8176
+ String.prototype.format = function () {
8177
+ var args = arguments;
8178
+ return this.replace(/{(\d+)}/g, function (match, number) {
8179
+ return typeof args[number] != "undefined" ? args[number] : match;
8180
+ });
8181
+ };
8182
  }
 
8183
 
8184
+ if (typeof buttonizer_translations !== "undefined") {
8185
+ var _dlv;
8186
 
8187
+ if (formats) return (_dlv = dlv_umd_default()(buttonizer_translations, key, "Translation not found: " + key)).format.apply(_dlv, formats);
8188
+ return dlv_umd_default()(buttonizer_translations, key, "Translation not found: " + key);
 
 
8189
  }
 
8190
 
8191
+ return key;
8192
+ }
8193
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/helpers.js
8194
+ function helpers_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
8195
 
8196
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { helpers_ownKeys(Object(source), true).forEach(function (key) { helpers_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { helpers_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
 
 
 
 
8197
 
8198
+ function helpers_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8199
 
8200
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
 
 
 
 
 
8201
 
8202
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8203
 
8204
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
 
 
 
 
 
8205
 
 
8206
 
 
 
 
 
 
 
8207
 
 
8208
 
 
 
 
 
 
 
8209
 
 
8210
 
8211
+ /**
8212
+ * Create api request
8213
+ *maar j
8214
+ * @param {*} endpoint
8215
+ * @param {*} data
8216
+ */
8217
 
8218
+ function apiRequest(endpoint, data) {
8219
+ data.url = buttonizer_admin.api + endpoint;
8220
+ data.headers = {
8221
+ "X-WP-Nonce": buttonizer_admin.nonce
8222
+ };
8223
+ return axios_default()(data);
8224
+ }
8225
+ /**
8226
+ * init store
8227
+ */
8228
 
8229
+ function init() {
8230
+ return {
8231
+ type: actionTypes.INIT,
8232
+ payload: {
8233
+ buttons: {},
8234
+ groups: {},
8235
+ timeSchedules: {},
8236
+ pageRules: {},
8237
+ settings: {}
8238
+ }
8239
+ };
8240
+ }
8241
  /**
8242
+ * Convert data to models
8243
  *
8244
+ * @param result
8245
+ * @return {obj} converted data
 
8246
  */
 
 
 
 
 
 
 
 
8247
 
8248
+ function convertData(result) {
8249
+ var data = result;
8250
+ var buttons = {};
8251
+ var groups = {}; // Initializing groups
8252
 
8253
+ var _iterator = _createForOfIteratorHelper(data.groups),
8254
+ _step;
8255
 
8256
+ try {
8257
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
8258
+ var group = _step.value;
8259
+ var groupObject = createRecord(group.data);
8260
+ groupObject.children = []; // Initializing buttons inside the group
8261
 
8262
+ var _iterator2 = _createForOfIteratorHelper(group.buttons),
8263
+ _step2;
8264
 
8265
+ try {
8266
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
8267
+ var button = _step2.value;
8268
+ var buttonObject = createRecord(button);
8269
+ buttonObject.parent = groupObject.id;
8270
+ buttons[buttonObject.id] = buttonObject;
8271
+ groupObject.children.push(buttonObject.id);
8272
+ }
8273
+ } catch (err) {
8274
+ _iterator2.e(err);
8275
+ } finally {
8276
+ _iterator2.f();
8277
+ }
8278
 
8279
+ groups[groupObject.id] = groupObject;
8280
+ }
8281
+ } catch (err) {
8282
+ _iterator.e(err);
8283
+ } finally {
8284
+ _iterator.f();
8285
+ }
8286
 
8287
+ var timeSchedules = {};
8288
+ var pageRules = {};
 
8289
 
8290
+ if (data.time_schedules) {
8291
+ data.time_schedules.map(function (timeSchedule) {
8292
+ timeSchedules[timeSchedule.id] = {
8293
+ id: timeSchedule.id,
8294
+ name: timeSchedule.name || translate("time_schedules.single_name"),
8295
+ weekdays: timeSchedule.weekdays || weekdays.map(function (weekday) {
8296
+ return {
8297
+ opened: true,
8298
+ open: "8:00",
8299
+ close: "17:00",
8300
+ weekday: weekday
8301
+ };
8302
+ }),
8303
+ start_date: timeSchedule.start_date || dateToFormat(new Date()),
8304
+ end_date: timeSchedule.end_date || null,
8305
+ dates: timeSchedule.dates || []
8306
+ };
8307
+ });
8308
+ } // Add page rules data with placeholders
8309
 
8310
 
8311
+ if (data.page_rules) {
8312
+ data.page_rules.map(function (pageRule) {
8313
+ pageRules[pageRule.id] = {
8314
+ id: pageRule.id,
8315
+ name: pageRule.name || "Unnamed pagerule",
8316
+ type: pageRule.type || "and",
8317
+ rules: pageRule.rules || [{
8318
+ type: "page_title",
8319
+ value: ""
8320
+ }]
8321
+ };
8322
+ });
8323
+ }
8324
 
8325
+ return {
8326
+ hasChanges: data.changes,
8327
+ buttons: buttons,
8328
+ groups: groups,
8329
+ timeSchedules: timeSchedules,
8330
+ pageRules: pageRules,
8331
+ settings: data.settings,
8332
+ premium: data.premium,
8333
+ premium_code: data.premium_code,
8334
+ version: data.version,
8335
+ wordpress: data.wordpress,
8336
+ is_opt_in: data.is_opt_in,
8337
+ additional_permissions: data.additional_permissions
8338
+ };
8339
+ }
8340
+ function createRecord(data) {
8341
+ if (data && typeof data.id !== "undefined") return data;
8342
+ return _objectSpread(_objectSpread({}, data), {}, {
8343
+ id: GenerateUniqueId()
8344
+ });
8345
+ }
8346
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/actions/dataActions/index.js
8347
 
8348
 
8349
+ /**
8350
+ * Add model to store
8351
+ * @param {object} data
8352
+ * @param {string} model
8353
+ */
8354
 
8355
+ function addModel(data, model) {
8356
+ return {
8357
+ type: actionTypes[model].ADD_MODEL,
8358
+ payload: data
8359
+ };
8360
+ }
8361
+ /**
8362
+ * Add relation between button and group
8363
+ * @param {string} button_id
8364
+ * @param {string} group_id
8365
+ */
8366
 
8367
+ function dataActions_addRelation(button_id, group_id) {
8368
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
8369
+ return {
8370
+ type: buttonizer_constants_actionTypes.ADD_RELATION,
8371
+ payload: {
8372
+ button_id: button_id,
8373
+ group_id: group_id,
8374
+ index: index
8375
+ }
8376
+ };
8377
+ }
8378
+ /**
8379
+ * Change relations (for drag n drop)
8380
+ * @param {string} button_id button id to change relations
8381
+ * @param {string} new_group_id new group id
8382
+ */
8383
+
8384
+ function dataActions_changeRelation(button_id, old_group_id, new_group_id, button_index) {
8385
+ return {
8386
+ type: buttonizer_constants_actionTypes.CHANGE_RELATION,
8387
+ payload: {
8388
+ button_id: button_id,
8389
+ old_group_id: old_group_id,
8390
+ new_group_id: new_group_id,
8391
+ button_index: button_index
8392
+ }
8393
+ };
8394
+ }
8395
+ /**
8396
+ * Remove relation between button and group
8397
+ * @param {string} button_id
8398
+ * @param {string} group_id
8399
+ */
8400
 
8401
+ function removeRelation(button_id, group_id) {
8402
+ return {
8403
+ type: buttonizer_constants_actionTypes.REMOVE_RELATION,
8404
+ payload: {
8405
+ button_id: button_id,
8406
+ group_id: group_id
8407
+ }
8408
+ };
8409
+ }
8410
+ /**
8411
+ * Set key of model id to value specified
8412
+ *
8413
+ * @param {string} model model of object to change value on
8414
+ * @param {string} id button or group id
8415
+ * @param {string} key key of value to change
8416
+ * @param {any} value new value to set
8417
+ */
8418
 
8419
+ var dataActions_set = function set(model, id, key, value) {
8420
+ // Check is value is an array
8421
+ if (Array.isArray(value)) {
8422
+ return {
8423
+ type: buttonizer_constants_actionTypes[model].SET_KEY_FORMAT,
8424
+ payload: {
8425
+ id: id,
8426
+ format: "normal_hover",
8427
+ key: key,
8428
+ values: value
8429
+ }
8430
+ };
8431
+ } // if not, just set it normally
8432
 
 
 
 
 
 
8433
 
8434
+ return {
8435
+ type: buttonizer_constants_actionTypes[model].SET_KEY_VALUE,
8436
+ payload: {
8437
+ id: id,
8438
+ key: key,
8439
+ value: value
8440
+ }
8441
+ };
8442
  };
8443
+ var dataActions_setSetting = function setSetting(setting, value) {
8444
+ return {
8445
+ type: buttonizer_constants_actionTypes.SET_SETTING_VALUE,
8446
+ payload: {
8447
+ setting: setting,
8448
+ value: value
8449
+ }
8450
+ };
8451
+ };
8452
+ /**
8453
+ * Time Schedule Actions
8454
+ */
8455
+ //
8456
 
8457
+ var setWeekday = function setWeekday(id, weekdayKey, key, value) {
8458
+ return {
8459
+ type: actionTypes.SET_WEEKDAY,
8460
+ payload: {
8461
+ id: id,
8462
+ weekdayKey: weekdayKey,
8463
+ key: key,
8464
+ value: value
8465
+ }
8466
+ };
8467
+ };
8468
+ var addExcludedDate = function addExcludedDate(id) {
8469
+ return {
8470
+ type: actionTypes.ADD_EXCLUDED_DATE,
8471
+ payload: {
8472
+ id: id
8473
+ }
8474
+ };
8475
+ };
8476
+ var setExcludedDate = function setExcludedDate(id, dateKey, key, value) {
8477
+ return {
8478
+ type: actionTypes.SET_EXCLUDED_DATE,
8479
+ payload: {
8480
+ id: id,
8481
+ dateKey: dateKey,
8482
+ key: key,
8483
+ value: value
8484
+ }
8485
+ };
8486
+ };
8487
+ var removeExcludedDate = function removeExcludedDate(id, dateKey) {
8488
+ return {
8489
+ type: actionTypes.REMOVE_EXCLUDED_DATE,
8490
+ payload: {
8491
+ id: id,
8492
+ dateKey: dateKey
8493
+ }
8494
+ };
8495
+ };
8496
+ /**
8497
+ * Adds record to store
8498
+ * @param {object} payload data for new record
8499
+ * @param {String} model type of model
8500
+ */
8501
 
8502
+ function dataActions_addRecord(data, model) {
8503
+ var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
8504
+ return {
8505
+ type: buttonizer_constants_actionTypes[model].ADD_RECORD,
8506
+ payload: {
8507
+ record: createRecord(data),
8508
+ index: index
8509
+ }
8510
+ };
8511
+ }
8512
  /**
8513
+ * Removes record to store
8514
+ * @param {int} model_id id of model to remove
8515
+ * @param {String} model type of model
 
 
 
 
8516
  */
 
 
 
 
8517
 
8518
+ function removeRecord(model_id, model) {
8519
+ return {
8520
+ type: buttonizer_constants_actionTypes[model].REMOVE_RECORD,
8521
+ payload: {
8522
+ model_id: model_id
8523
  }
8524
+ };
8525
+ }
8526
+ // EXTERNAL MODULE: ./src/js/utils/buttonizer-defaults/index.js
8527
+ var buttonizer_defaults = __webpack_require__(59528);
8528
+ // EXTERNAL MODULE: ./node_modules/lodash/defaults.js
8529
+ var defaults = __webpack_require__(91747);
8530
+ var defaults_default = /*#__PURE__*/__webpack_require__.n(defaults);
8531
+ // EXTERNAL MODULE: ./node_modules/lodash/merge.js
8532
+ var merge = __webpack_require__(82492);
8533
+ var merge_default = /*#__PURE__*/__webpack_require__.n(merge);
8534
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/selectors.js
8535
+ /* global process */
8536
 
 
8537
 
 
 
 
 
8538
 
8539
+
8540
+
8541
+ function getButtons(group_id) {
8542
+ var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.store.getState();
8543
+ if (!state.groups[group_id].children) return null;
8544
+ var children = state.groups[group_id].children;
8545
+ var buttons = state.buttons;
8546
+ var result = {};
8547
+ Object.keys(buttons).map(function (obj) {
8548
+ if (children.includes(obj)) result[obj] = buttons[obj];
8549
+ });
8550
+ return result;
8551
  }
8552
+ function selectors_getChildrenIndex(children) {
8553
+ var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : dashboard_store.getState();
8554
+ if (!children) return null;
8555
+ var buttons = state.buttons;
8556
+ var result = {};
8557
+ Object.keys(buttons).map(function (obj) {
8558
+ if (children.includes(obj)) {
8559
+ children.map(function (id, index) {
8560
+ if (id === obj) result[index] = buttons[obj];
8561
+ });
8562
+ }
8563
+ });
8564
+ return result;
8565
+ }
8566
+ function selectors_getButtonsCount(group_id) {
8567
+ var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.store.getState();
8568
+ if (!state.groups || !state.groups[group_id]) return 0;
8569
+ return state.groups[group_id].children.length;
8570
+ }
8571
+ function selectors_getGroupCount() {
8572
+ var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.store.getState();
8573
+ if (!state.groups) return 0;
8574
+ return Object.keys(state.groups).length;
8575
+ }
8576
+ /**
8577
+ * Get value with format. combine with connect function to remove record arg.
8578
+ * @param {string} key to be getted key
8579
+ * @param {obj} record object to get key out of
8580
+ * @param {string} model (optional) when filled with (button|group), returns default if value not present. when defaults is left blank, returns "" when there is no value.
8581
+ * @param {object} options options to apply
8582
+ */
8583
 
8584
+ function _get(key, record) {
8585
+ var model = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
8586
+ var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
8587
+ var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
8588
+ excludeSelf: false
8589
+ };
8590
 
8591
+ if (typeof record === "undefined" || typeof key === "undefined") {
8592
+ console.log("record: " + record);
8593
+ console.log("key: " + key);
8594
+ throw TypeError("'record' argument or 'key' argument of type undefined");
8595
+ }
 
 
 
8596
 
8597
+ var value = record[key]; // When not in formatted list, don't format.
8598
+
8599
+ if (!buttonizer_defaults.dashboard.formatted.includes(key)) {
8600
+ // value == null will be true also if value == undefined, because undefined == null
8601
+ if (value == null) {
8602
+ // Get default
8603
+ return !model ? "" : _def(model, key, parent[key]);
8604
  }
8605
 
8606
+ return value;
8607
+ }
 
8608
 
8609
+ var parentValue = parent ? formats.normal_hover.parse(parent[key]) : []; // def returns formatted value
 
 
8610
 
8611
+ if (value == null) return !model ? ["", ""] : _defs(model, key, [], parentValue);
8612
+ var result = formats.normal_hover.parse(value);
8613
+ return model ? _defs(model, key, result, parentValue, options) : merge_default()(["", ""], result);
8614
+ }
8615
+ function _def(model, key) {
8616
+ var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
8617
+
8618
+ if (!Object.keys(buttonizer_defaults.dashboard).includes(model)) {
8619
+ console.error("model ".concat(model, " not familiar"));
8620
+ return;
8621
+ }
8622
 
8623
+ if (!Object.keys(buttonizer_defaults.dashboard[model]).includes(key)) {
8624
+ if (false) {}
8625
+ return "";
8626
+ }
8627
 
8628
+ return buttonizer_defaults.dashboard[model][key] == null ? fallback : buttonizer_defaults.dashboard[model][key];
 
8629
  }
8630
+ function _defs(model, key) {
8631
+ var self = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
8632
+ var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
8633
+ var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
8634
 
8635
+ if (!Object.keys(buttonizer_defaults.dashboard).includes(model)) {
8636
+ console.error("model ".concat(model, " not familiar"));
8637
+ return;
8638
+ }
8639
 
8640
+ if (!Object.keys(buttonizer_defaults.dashboard[model]).includes(key)) {
8641
+ if (false) {}
8642
+ return ["", ""];
8643
+ }
8644
+
8645
+ var def = buttonizer_defaults.dashboard[model][key];
8646
+ if (key === "background_is_image") console.log(buttonizer_defaults.dashboard);
8647
+ if (model === "group") return mergeGroupDefaults(self, def, options);
8648
+ if (model === "button") return mergeButtonDefaults(self, parent, def, options);
 
 
 
 
 
8649
  }
8650
 
8651
+ function mergeGroupDefaults() {
8652
+ var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
8653
+ var def = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
8654
 
8655
+ var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
8656
+ _ref$excludeSelf = _ref.excludeSelf,
8657
+ excludeSelf = _ref$excludeSelf === void 0 ? false : _ref$excludeSelf;
8658
 
8659
+ var arr = [self, def, [self[0], self[0]], [def[0], def[0]]];
8660
+ if (excludeSelf) arr.shift(); // exclude 'self'
 
 
 
 
 
8661
 
8662
+ return defaults_default().apply(void 0, arr);
8663
+ }
8664
 
8665
+ function mergeButtonDefaults() {
8666
+ var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
8667
+ var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
8668
+ var def = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
8669
 
8670
+ var _ref2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
8671
+ _ref2$excludeSelf = _ref2.excludeSelf,
8672
+ excludeSelf = _ref2$excludeSelf === void 0 ? false : _ref2$excludeSelf;
 
8673
 
8674
+ var arr = [self, parent, [undefined, self[0]], def, [undefined, parent[0]], [undefined, def[0]]];
8675
+ if (excludeSelf) arr.shift(); // remove 'self'
 
 
 
8676
 
8677
+ return defaults_default().apply(void 0, arr);
8678
  }
8679
+ ;// CONCATENATED MODULE: ./node_modules/immer/dist/immer.esm.js
8680
+ function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if(false){ var i, o; }throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return!!n&&!!n[Q]}function t(n){return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function e(t){return r(t)||n(23,t),t[Q].t}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n)})):n.forEach((function(t,e){return r(e,t,n)}))}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?(n.delete(r),n.add(t)):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0),n)}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return true||0,U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q],r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(r,i){return A(n,e,o,r,i,t)})),x(n,o,!1),t&&n.u&&b("Patches").R(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s){if( false&&0,r(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!r(v))return;e.m=!1}if(t(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),n.h.F&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function R(n,r,t){var e=s(r)?b("MapSet").N(r,t):v(r)?b("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,D:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return(t?t.A:_()).p.push(e),e}function D(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(r,c),u.I=!1}else e=F(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function F(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function N(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return false&&0,en.get(r,n)},set:function(r){var t=this[Q]; false&&0,en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);return!(!t||t.get)}function f(r){r.g&&n(3,JSON.stringify(p(r)))}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,D:{},l:r,t:n,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.D,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t))}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}function T(){function e(n){if(!t(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var r=Object.create(Object.getPrototypeOf(n));for(var i in n)r[i]=e(n[i]);return r}function f(n){return r(n)?e(n):n}var c="add";m("Patches",{$:function(r,t){return t.forEach((function(t){for(var i=t.path,u=t.op,f=r,s=0;s<i.length-1;s++){var v=o(f),p=i[s];0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=o(f),d=e(t.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(t.value);default:return delete f[h]}default:n(17,u)}})),r},R:function(n,r,t,e){switch(n.i){case 0:case 4:case 2:return function(n,r,t,e){var o=n.t,s=n.o;i(n.D,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=r.concat(n);t.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,r,t,e);case 5:case 1:return function(n,r,t,e){var i=n.t,o=n.D,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,t];t=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=r.concat([v]);t.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=r.concat([l]);t.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:r.concat(["length"]),value:i.length})}(n,r,t,e);case 3:return function(n,r,t,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=r.concat([u]);t.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=r.concat([u]);t.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,r,t,e)}},M:function(n,r,t,e){t.push({op:"replace",path:[],value:r}),e.push({op:"replace",path:[],value:n.t})}})}function C(){function r(n,r){function t(){this.constructor=n}a(n,r),n.prototype=(t.prototype=r.prototype,new t)}function e(n){n.o||(n.D=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(r){if(t(r)){var e=R(n.A.h,r,n);n.p.set(r,e),n.o.add(e)}else n.o.add(r)})))}function u(r){r.g&&n(3,JSON.stringify(p(r)))}var a=function(n,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)},f=function(){function n(n,r){return this[Q]={i:2,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,D:void 0,t:n,k:this,C:!1,g:!1},this}r(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,r){var t=this[Q];return u(t),p(t).has(n)&&p(t).get(n)===r||(e(t),k(t),t.D.set(n,!0),t.o.set(n,r),t.D.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),e(r),k(r),r.D.set(n,!1),r.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.D=new Map,i(n.t,(function(r){n.D.set(r,!1)})),n.o.clear())},o.forEach=function(n,r){var t=this;p(this[Q]).forEach((function(e,i){n.call(r,t.get(i),i,t)}))},o.get=function(n){var r=this[Q];u(r);var i=p(r).get(n);if(r.I||!t(i))return i;if(i!==r.t.get(n))return i;var o=R(r.A.h,i,r);return e(r),r.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.values()},n.next=function(){var n=t.next();return n.done?n:{done:!1,value:r.get(n.value)}},n},o.entries=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.entries()},n.next=function(){var n=t.next();if(n.done)return n;var e=r.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,r){return this[Q]={i:3,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,g:!1,C:!1},this}r(n,Set);var t=n.prototype;return Object.defineProperty(t,"size",{get:function(){return p(this[Q]).size}}),t.has=function(n){var r=this[Q];return u(r),r.o?!!r.o.has(n)||!(!r.p.has(n)||!r.o.has(r.p.get(n))):r.t.has(n)},t.add=function(n){var r=this[Q];return u(r),this.has(n)||(o(r),k(r),r.o.add(n)),this},t.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),o(r),k(r),r.o.delete(n)||!!r.p.has(n)&&r.o.delete(r.p.get(n))},t.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},t.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},t.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},t.keys=function(){return this.values()},t[V]=function(){return this.values()},t.forEach=function(n,r){for(var t=this.values(),e=t.next();!e.done;)n.call(r,e.value,e.value,this),e=t.next()},n}();m("MapSet",{N:function(n,r){return new f(n,r)},T:function(n,r){return new c(n,r)}})}function J(){N(),C(),T()}function K(n){return n}function $(n){return n}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t)})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=R(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.D[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return!0;E(n),k(n)}return n.o[r]===t&&"number"!=typeof t||(n.o[r]=t,n.D[r]=!0,!0)},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.D[r]=!1,E(n),k(n)):delete n.D[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),on.deleteProperty=function(r,t){return false&&0,en.deleteProperty.call(this,r[0],t)},on.set=function(r,t,e){return false&&0,en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.F=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return(t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=R(e,r,void 0),v=!0;try{f=i(s),v=!1}finally{v?g(c):O(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if((f=i(r))===H)return;return void 0===f&&(f=r),e.F&&d(f,!0),f}n(21,r)},this.produceWithPatches=function(n,r){return"function"==typeof n?function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))}:[e.produce(n,r,(function(n,r){t=n,i=r})),t,i];var t,i},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q]; false&&(0);var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n},i.setUseProxies=function(r){r&&!B&&n(20),this.O=r},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t.slice(e+1))}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ var immer_esm = (fn);
8681
+ //# sourceMappingURL=immer.esm.js.map
8682
 
8683
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/actions/savingHelpers.js
 
 
 
 
 
8684
 
 
 
 
8685
 
 
 
 
 
 
 
 
 
8686
 
8687
+ /**
8688
+ * Generate JSON object
8689
+ * @returns {Array}
8690
+ */
8691
 
8692
+ function generateJSONObject(storeDataObject) {
8693
+ // Buttons
8694
+ var buttonGroups = Object.values(storeDataObject);
8695
+ var data = [];
8696
+ buttonGroups.forEach(function (groupObject) {
8697
+ var outputGroup = immer_esm(groupObject, function (draftObject) {
8698
+ delete draftObject.children;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8699
  });
8700
+ var groupButtons = Object.values(selectors_getChildrenIndex(groupObject.children));
8701
+ var tempButtons = [];
8702
+ groupButtons.forEach(function (buttonObject) {
8703
+ var outputButton = immer_esm(buttonObject, function (draftObject) {
8704
+ delete draftObject.parent;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8705
  });
8706
+ tempButtons.push(outputButton);
8707
+ });
8708
 
8709
+ if (tempButtons.length === 0) {
8710
+ tempButtons = [{
8711
+ name: "Button",
8712
+ show_mobile: "true",
8713
+ show_desktop: "true"
8714
+ }];
8715
  }
8716
 
8717
+ data.push({
8718
+ data: outputGroup,
8719
+ buttons: tempButtons
8720
  });
8721
+ });
8722
+ return data;
 
 
 
 
 
 
 
 
 
 
 
8723
  }
8724
  /**
8725
+ * Create api request
8726
  *
8727
+ * @param {*} endpoint
8728
+ * @param {*} data
 
8729
  */
8730
 
8731
+ function savingHelpers_apiRequest(endpoint, data) {
8732
+ data.url = buttonizer_admin.api + endpoint;
8733
+ data.headers = {
8734
+ "X-WP-Nonce": buttonizer_admin.nonce
8735
+ };
8736
+ return axios_default()(data);
8737
  }
8738
  /**
8739
+ * Reset Buttonizer
 
8740
  */
8741
 
8742
+ function resetSettings() {
8743
+ return savingHelpers_apiRequest("/reset", {
8744
+ method: "POST",
8745
+ data: {
8746
+ nonce: buttonizer_admin.nonce
8747
+ }
8748
+ }).then(function () {
8749
+ location.reload();
8750
+ })["catch"](function (e) {
8751
+ console.error(e);
8752
+ throw new Error("Something went wrong trying to update this model.");
8753
+ });
8754
  }
8755
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/actions/rootActions.js
 
 
8756
 
8757
+ function changeHasChanges(status) {
8758
+ return {
8759
+ type: buttonizer_constants_actionTypes.HAS_CHANGES,
8760
+ payload: {
8761
+ hasChanges: status
8762
+ }
8763
+ };
8764
  }
8765
+ function changeIsUpdating(status) {
8766
+ return {
8767
+ type: buttonizer_constants_actionTypes.IS_UPDATING,
8768
+ payload: {
8769
+ isUpdating: status
8770
+ }
8771
+ };
 
8772
  }
8773
+ function stopLoading() {
8774
+ return {
8775
+ type: buttonizer_constants_actionTypes.STOP_LOADING
8776
+ };
8777
+ }
8778
+ ;// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.js
8779
+ /*! *****************************************************************************
8780
+ Copyright (c) Microsoft Corporation.
8781
+
8782
+ Permission to use, copy, modify, and/or distribute this software for any
8783
+ purpose with or without fee is hereby granted.
8784
+
8785
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8786
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
8787
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
8788
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
8789
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
8790
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8791
+ PERFORMANCE OF THIS SOFTWARE.
8792
+ ***************************************************************************** */
8793
+ /* global Reflect, Promise */
8794
+
8795
+ var extendStatics = function(d, b) {
8796
+ extendStatics = Object.setPrototypeOf ||
8797
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8798
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8799
+ return extendStatics(d, b);
8800
+ };
8801
+
8802
+ function __extends(d, b) {
8803
+ extendStatics(d, b);
8804
+ function __() { this.constructor = d; }
8805
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8806
+ }
8807
+
8808
+ var tslib_es6_assign = function() {
8809
+ tslib_es6_assign = Object.assign || function __assign(t) {
8810
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8811
+ s = arguments[i];
8812
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8813
+ }
8814
+ return t;
8815
+ }
8816
+ return tslib_es6_assign.apply(this, arguments);
8817
+ }
8818
+
8819
+ function __rest(s, e) {
8820
+ var t = {};
8821
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
8822
+ t[p] = s[p];
8823
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
8824
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8825
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8826
+ t[p[i]] = s[p[i]];
8827
+ }
8828
+ return t;
8829
+ }
8830
+
8831
+ function __decorate(decorators, target, key, desc) {
8832
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8833
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8834
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
8835
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8836
+ }
8837
+
8838
+ function __param(paramIndex, decorator) {
8839
+ return function (target, key) { decorator(target, key, paramIndex); }
8840
+ }
8841
+
8842
+ function __metadata(metadataKey, metadataValue) {
8843
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
8844
+ }
8845
+
8846
+ function __awaiter(thisArg, _arguments, P, generator) {
8847
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8848
+ return new (P || (P = Promise))(function (resolve, reject) {
8849
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8850
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8851
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8852
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8853
+ });
8854
+ }
8855
+
8856
+ function __generator(thisArg, body) {
8857
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
8858
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
8859
+ function verb(n) { return function (v) { return step([n, v]); }; }
8860
+ function step(op) {
8861
+ if (f) throw new TypeError("Generator is already executing.");
8862
+ while (_) try {
8863
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
8864
+ if (y = 0, t) op = [op[0] & 2, t.value];
8865
+ switch (op[0]) {
8866
+ case 0: case 1: t = op; break;
8867
+ case 4: _.label++; return { value: op[1], done: false };
8868
+ case 5: _.label++; y = op[1]; op = [0]; continue;
8869
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
8870
+ default:
8871
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
8872
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
8873
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
8874
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
8875
+ if (t[2]) _.ops.pop();
8876
+ _.trys.pop(); continue;
8877
+ }
8878
+ op = body.call(thisArg, _);
8879
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
8880
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
8881
+ }
8882
+ }
8883
+
8884
+ function __createBinding(o, m, k, k2) {
8885
+ if (k2 === undefined) k2 = k;
8886
+ o[k2] = m[k];
8887
+ }
8888
+
8889
+ function __exportStar(m, exports) {
8890
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
8891
+ }
8892
+
8893
+ function __values(o) {
8894
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
8895
+ if (m) return m.call(o);
8896
+ if (o && typeof o.length === "number") return {
8897
+ next: function () {
8898
+ if (o && i >= o.length) o = void 0;
8899
+ return { value: o && o[i++], done: !o };
8900
+ }
8901
+ };
8902
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
8903
+ }
8904
+
8905
+ function __read(o, n) {
8906
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
8907
+ if (!m) return o;
8908
+ var i = m.call(o), r, ar = [], e;
8909
+ try {
8910
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
8911
+ }
8912
+ catch (error) { e = { error: error }; }
8913
+ finally {
8914
+ try {
8915
+ if (r && !r.done && (m = i["return"])) m.call(i);
8916
+ }
8917
+ finally { if (e) throw e.error; }
8918
+ }
8919
+ return ar;
8920
+ }
8921
+
8922
+ function tslib_es6_spread() {
8923
+ for (var ar = [], i = 0; i < arguments.length; i++)
8924
+ ar = ar.concat(__read(arguments[i]));
8925
+ return ar;
8926
+ }
8927
+
8928
+ function __spreadArrays() {
8929
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
8930
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
8931
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
8932
+ r[k] = a[j];
8933
+ return r;
8934
+ };
8935
+
8936
+ function __await(v) {
8937
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
8938
+ }
8939
+
8940
+ function __asyncGenerator(thisArg, _arguments, generator) {
8941
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
8942
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
8943
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
8944
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
8945
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
8946
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
8947
+ function fulfill(value) { resume("next", value); }
8948
+ function reject(value) { resume("throw", value); }
8949
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
8950
+ }
8951
+
8952
+ function __asyncDelegator(o) {
8953
+ var i, p;
8954
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
8955
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
8956
+ }
8957
+
8958
+ function __asyncValues(o) {
8959
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
8960
+ var m = o[Symbol.asyncIterator], i;
8961
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
8962
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
8963
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
8964
+ }
8965
+
8966
+ function __makeTemplateObject(cooked, raw) {
8967
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
8968
+ return cooked;
8969
+ };
8970
+
8971
+ function __importStar(mod) {
8972
+ if (mod && mod.__esModule) return mod;
8973
+ var result = {};
8974
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
8975
+ result.default = mod;
8976
+ return result;
8977
+ }
8978
+
8979
+ function __importDefault(mod) {
8980
+ return (mod && mod.__esModule) ? mod : { default: mod };
8981
+ }
8982
+
8983
+ function __classPrivateFieldGet(receiver, privateMap) {
8984
+ if (!privateMap.has(receiver)) {
8985
+ throw new TypeError("attempted to get private field on non-instance");
8986
+ }
8987
+ return privateMap.get(receiver);
8988
+ }
8989
+
8990
+ function __classPrivateFieldSet(receiver, privateMap, value) {
8991
+ if (!privateMap.has(receiver)) {
8992
+ throw new TypeError("attempted to set private field on non-instance");
8993
+ }
8994
+ privateMap.set(receiver, value);
8995
+ return value;
8996
+ }
8997
 
8998
+ // EXTERNAL MODULE: ./node_modules/@sentry/utils/esm/misc.js
8999
+ var misc = __webpack_require__(62844);
9000
+ // EXTERNAL MODULE: ./node_modules/@sentry/utils/esm/time.js
9001
+ var time = __webpack_require__(21170);
9002
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/utils/esm/logger.js
9003
+ /* eslint-disable @typescript-eslint/no-explicit-any */
9004
 
9005
+ // TODO: Implement different loggers for different environments
9006
+ var logger_global = (0,misc/* getGlobalObject */.Rf)();
9007
+ /** Prefix for logging strings */
9008
+ var PREFIX = 'Sentry Logger ';
9009
+ /** JSDoc */
9010
+ var Logger = /** @class */ (function () {
9011
+ /** JSDoc */
9012
+ function Logger() {
9013
+ this._enabled = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9014
  }
9015
+ /** JSDoc */
9016
+ Logger.prototype.disable = function () {
9017
+ this._enabled = false;
9018
+ };
9019
+ /** JSDoc */
9020
+ Logger.prototype.enable = function () {
9021
+ this._enabled = true;
9022
+ };
9023
+ /** JSDoc */
9024
+ Logger.prototype.log = function () {
9025
+ var args = [];
9026
+ for (var _i = 0; _i < arguments.length; _i++) {
9027
+ args[_i] = arguments[_i];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9028
  }
9029
+ if (!this._enabled) {
9030
+ return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9031
  }
9032
+ (0,misc/* consoleSandbox */.Cf)(function () {
9033
+ logger_global.console.log(PREFIX + "[Log]: " + args.join(' '));
9034
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9035
  };
9036
+ /** JSDoc */
9037
+ Logger.prototype.warn = function () {
9038
+ var args = [];
9039
+ for (var _i = 0; _i < arguments.length; _i++) {
9040
+ args[_i] = arguments[_i];
9041
+ }
9042
+ if (!this._enabled) {
9043
+ return;
9044
+ }
9045
+ (0,misc/* consoleSandbox */.Cf)(function () {
9046
+ logger_global.console.warn(PREFIX + "[Warn]: " + args.join(' '));
9047
+ });
9048
  };
9049
+ /** JSDoc */
9050
+ Logger.prototype.error = function () {
9051
+ var args = [];
9052
+ for (var _i = 0; _i < arguments.length; _i++) {
9053
+ args[_i] = arguments[_i];
9054
+ }
9055
+ if (!this._enabled) {
9056
+ return;
9057
+ }
9058
+ (0,misc/* consoleSandbox */.Cf)(function () {
9059
+ logger_global.console.error(PREFIX + "[Error]: " + args.join(' '));
9060
+ });
9061
+ };
9062
+ return Logger;
9063
+ }());
9064
+ // Ensure we only have a single logger instance, even if multiple versions of @sentry/utils are being used
9065
+ logger_global.__SENTRY__ = logger_global.__SENTRY__ || {};
9066
+ var logger = logger_global.__SENTRY__.logger || (logger_global.__SENTRY__.logger = new Logger());
9067
 
9068
+ //# sourceMappingURL=logger.js.map
9069
+ // EXTERNAL MODULE: ./node_modules/@sentry/utils/esm/node.js
9070
+ var node = __webpack_require__(61422);
9071
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/utils/esm/is.js
9072
+ /* eslint-disable @typescript-eslint/no-explicit-any */
9073
+ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
9074
+ /**
9075
+ * Checks whether given value's type is one of a few Error or Error-like
9076
+ * {@link isError}.
9077
+ *
9078
+ * @param wat A value to be checked.
9079
+ * @returns A boolean representing the result.
9080
+ */
9081
+ function isError(wat) {
9082
+ switch (Object.prototype.toString.call(wat)) {
9083
+ case '[object Error]':
9084
+ return true;
9085
+ case '[object Exception]':
9086
+ return true;
9087
+ case '[object DOMException]':
9088
+ return true;
9089
+ default:
9090
+ return isInstanceOf(wat, Error);
9091
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9092
  }
9093
+ /**
9094
+ * Checks whether given value's type is ErrorEvent
9095
+ * {@link isErrorEvent}.
9096
+ *
9097
+ * @param wat A value to be checked.
9098
+ * @returns A boolean representing the result.
9099
+ */
9100
+ function isErrorEvent(wat) {
9101
+ return Object.prototype.toString.call(wat) === '[object ErrorEvent]';
9102
  }
9103
+ /**
9104
+ * Checks whether given value's type is DOMError
9105
+ * {@link isDOMError}.
9106
+ *
9107
+ * @param wat A value to be checked.
9108
+ * @returns A boolean representing the result.
9109
+ */
9110
+ function isDOMError(wat) {
9111
+ return Object.prototype.toString.call(wat) === '[object DOMError]';
9112
  }
9113
+ /**
9114
+ * Checks whether given value's type is DOMException
9115
+ * {@link isDOMException}.
9116
+ *
9117
+ * @param wat A value to be checked.
9118
+ * @returns A boolean representing the result.
9119
+ */
9120
+ function isDOMException(wat) {
9121
+ return Object.prototype.toString.call(wat) === '[object DOMException]';
9122
  }
9123
+ /**
9124
+ * Checks whether given value's type is a string
9125
+ * {@link isString}.
9126
+ *
9127
+ * @param wat A value to be checked.
9128
+ * @returns A boolean representing the result.
9129
+ */
9130
+ function isString(wat) {
9131
+ return Object.prototype.toString.call(wat) === '[object String]';
9132
+ }
9133
+ /**
9134
+ * Checks whether given value's is a primitive (undefined, null, number, boolean, string, bigint, symbol)
9135
+ * {@link isPrimitive}.
9136
+ *
9137
+ * @param wat A value to be checked.
9138
+ * @returns A boolean representing the result.
9139
+ */
9140
+ function isPrimitive(wat) {
9141
+ return wat === null || (typeof wat !== 'object' && typeof wat !== 'function');
9142
+ }
9143
+ /**
9144
+ * Checks whether given value's type is an object literal
9145
+ * {@link isPlainObject}.
9146
+ *
9147
+ * @param wat A value to be checked.
9148
+ * @returns A boolean representing the result.
9149
+ */
9150
+ function is_isPlainObject(wat) {
9151
+ return Object.prototype.toString.call(wat) === '[object Object]';
9152
+ }
9153
+ /**
9154
+ * Checks whether given value's type is an Event instance
9155
+ * {@link isEvent}.
9156
+ *
9157
+ * @param wat A value to be checked.
9158
+ * @returns A boolean representing the result.
9159
+ */
9160
+ function isEvent(wat) {
9161
+ return typeof Event !== 'undefined' && isInstanceOf(wat, Event);
9162
+ }
9163
+ /**
9164
+ * Checks whether given value's type is an Element instance
9165
+ * {@link isElement}.
9166
+ *
9167
+ * @param wat A value to be checked.
9168
+ * @returns A boolean representing the result.
9169
+ */
9170
+ function isElement(wat) {
9171
+ return typeof Element !== 'undefined' && isInstanceOf(wat, Element);
9172
+ }
9173
+ /**
9174
+ * Checks whether given value's type is an regexp
9175
+ * {@link isRegExp}.
9176
+ *
9177
+ * @param wat A value to be checked.
9178
+ * @returns A boolean representing the result.
9179
+ */
9180
+ function isRegExp(wat) {
9181
+ return Object.prototype.toString.call(wat) === '[object RegExp]';
9182
+ }
9183
+ /**
9184
+ * Checks whether given value has a then function.
9185
+ * @param wat A value to be checked.
9186
+ */
9187
+ function isThenable(wat) {
9188
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
9189
+ return Boolean(wat && wat.then && typeof wat.then === 'function');
9190
+ }
9191
+ /**
9192
+ * Checks whether given value's type is a SyntheticEvent
9193
+ * {@link isSyntheticEvent}.
9194
+ *
9195
+ * @param wat A value to be checked.
9196
+ * @returns A boolean representing the result.
9197
+ */
9198
+ function isSyntheticEvent(wat) {
9199
+ return is_isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;
9200
+ }
9201
+ /**
9202
+ * Checks whether given value's type is an instance of provided constructor.
9203
+ * {@link isInstanceOf}.
9204
+ *
9205
+ * @param wat A value to be checked.
9206
+ * @param base A constructor to be used in a check.
9207
+ * @returns A boolean representing the result.
9208
+ */
9209
+ function isInstanceOf(wat, base) {
9210
+ try {
9211
+ return wat instanceof base;
9212
  }
9213
+ catch (_e) {
9214
+ return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9215
  }
9216
+ }
9217
+ //# sourceMappingURL=is.js.map
9218
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/utils/esm/syncpromise.js
9219
+ /* eslint-disable @typescript-eslint/explicit-function-return-type */
9220
+ /* eslint-disable @typescript-eslint/typedef */
9221
+ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
9222
+ /* eslint-disable @typescript-eslint/no-explicit-any */
 
 
 
 
 
9223
 
9224
+ /** SyncPromise internal states */
9225
+ var States;
9226
+ (function (States) {
9227
+ /** Pending */
9228
+ States["PENDING"] = "PENDING";
9229
+ /** Resolved / OK */
9230
+ States["RESOLVED"] = "RESOLVED";
9231
+ /** Rejected / Error */
9232
+ States["REJECTED"] = "REJECTED";
9233
+ })(States || (States = {}));
9234
+ /**
9235
+ * Thenable class that behaves like a Promise and follows it's interface
9236
+ * but is not async internally
9237
+ */
9238
+ var syncpromise_SyncPromise = /** @class */ (function () {
9239
+ function SyncPromise(executor) {
9240
+ var _this = this;
9241
+ this._state = States.PENDING;
9242
+ this._handlers = [];
9243
+ /** JSDoc */
9244
+ this._resolve = function (value) {
9245
+ _this._setResult(States.RESOLVED, value);
9246
+ };
9247
+ /** JSDoc */
9248
+ this._reject = function (reason) {
9249
+ _this._setResult(States.REJECTED, reason);
9250
+ };
9251
+ /** JSDoc */
9252
+ this._setResult = function (state, value) {
9253
+ if (_this._state !== States.PENDING) {
9254
+ return;
9255
+ }
9256
+ if (isThenable(value)) {
9257
+ value.then(_this._resolve, _this._reject);
9258
+ return;
9259
+ }
9260
+ _this._state = state;
9261
+ _this._value = value;
9262
+ _this._executeHandlers();
9263
+ };
9264
+ // TODO: FIXME
9265
+ /** JSDoc */
9266
+ this._attachHandler = function (handler) {
9267
+ _this._handlers = _this._handlers.concat(handler);
9268
+ _this._executeHandlers();
9269
+ };
9270
+ /** JSDoc */
9271
+ this._executeHandlers = function () {
9272
+ if (_this._state === States.PENDING) {
9273
+ return;
9274
+ }
9275
+ var cachedHandlers = _this._handlers.slice();
9276
+ _this._handlers = [];
9277
+ cachedHandlers.forEach(function (handler) {
9278
+ if (handler.done) {
9279
+ return;
9280
+ }
9281
+ if (_this._state === States.RESOLVED) {
9282
+ if (handler.onfulfilled) {
9283
+ // eslint-disable-next-line @typescript-eslint/no-floating-promises
9284
+ handler.onfulfilled(_this._value);
9285
+ }
9286
+ }
9287
+ if (_this._state === States.REJECTED) {
9288
+ if (handler.onrejected) {
9289
+ handler.onrejected(_this._value);
9290
+ }
9291
+ }
9292
+ handler.done = true;
9293
+ });
9294
+ };
9295
+ try {
9296
+ executor(this._resolve, this._reject);
9297
+ }
9298
+ catch (e) {
9299
+ this._reject(e);
9300
+ }
9301
  }
9302
+ /** JSDoc */
9303
+ SyncPromise.resolve = function (value) {
9304
+ return new SyncPromise(function (resolve) {
9305
+ resolve(value);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9306
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9307
  };
9308
+ /** JSDoc */
9309
+ SyncPromise.reject = function (reason) {
9310
+ return new SyncPromise(function (_, reject) {
9311
+ reject(reason);
9312
+ });
 
 
 
9313
  };
9314
+ /** JSDoc */
9315
+ SyncPromise.all = function (collection) {
9316
+ return new SyncPromise(function (resolve, reject) {
9317
+ if (!Array.isArray(collection)) {
9318
+ reject(new TypeError("Promise.all requires an array as input."));
9319
+ return;
9320
+ }
9321
+ if (collection.length === 0) {
9322
+ resolve([]);
9323
+ return;
9324
+ }
9325
+ var counter = collection.length;
9326
+ var resolvedCollection = [];
9327
+ collection.forEach(function (item, index) {
9328
+ SyncPromise.resolve(item)
9329
+ .then(function (value) {
9330
+ resolvedCollection[index] = value;
9331
+ counter -= 1;
9332
+ if (counter !== 0) {
9333
+ return;
9334
+ }
9335
+ resolve(resolvedCollection);
9336
+ })
9337
+ .then(null, reject);
9338
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9339
  });
9340
+ };
9341
+ /** JSDoc */
9342
+ SyncPromise.prototype.then = function (onfulfilled, onrejected) {
9343
+ var _this = this;
9344
+ return new SyncPromise(function (resolve, reject) {
9345
+ _this._attachHandler({
9346
+ done: false,
9347
+ onfulfilled: function (result) {
9348
+ if (!onfulfilled) {
9349
+ // TODO: ¯\_()_/¯
9350
+ // TODO: FIXME
9351
+ resolve(result);
9352
+ return;
9353
+ }
9354
+ try {
9355
+ resolve(onfulfilled(result));
9356
+ return;
9357
+ }
9358
+ catch (e) {
9359
+ reject(e);
9360
+ return;
9361
+ }
9362
+ },
9363
+ onrejected: function (reason) {
9364
+ if (!onrejected) {
9365
+ reject(reason);
9366
+ return;
9367
+ }
9368
+ try {
9369
+ resolve(onrejected(reason));
9370
+ return;
9371
+ }
9372
+ catch (e) {
9373
+ reject(e);
9374
+ return;
9375
+ }
9376
+ },
9377
+ });
9378
+ });
9379
+ };
9380
+ /** JSDoc */
9381
+ SyncPromise.prototype.catch = function (onrejected) {
9382
+ return this.then(function (val) { return val; }, onrejected);
9383
+ };
9384
+ /** JSDoc */
9385
+ SyncPromise.prototype.finally = function (onfinally) {
9386
+ var _this = this;
9387
+ return new SyncPromise(function (resolve, reject) {
9388
+ var val;
9389
+ var isRejected;
9390
+ return _this.then(function (value) {
9391
+ isRejected = false;
9392
+ val = value;
9393
+ if (onfinally) {
9394
+ onfinally();
9395
+ }
9396
+ }, function (reason) {
9397
+ isRejected = true;
9398
+ val = reason;
9399
+ if (onfinally) {
9400
+ onfinally();
9401
+ }
9402
+ }).then(function () {
9403
+ if (isRejected) {
9404
+ reject(val);
9405
+ return;
9406
+ }
9407
+ resolve(val);
9408
+ });
9409
+ });
9410
+ };
9411
+ /** JSDoc */
9412
+ SyncPromise.prototype.toString = function () {
9413
+ return '[object SyncPromise]';
9414
+ };
9415
+ return SyncPromise;
9416
+ }());
9417
 
9418
+ //# sourceMappingURL=syncpromise.js.map
9419
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/hub/esm/scope.js
9420
 
 
 
 
9421
 
9422
  /**
9423
+ * Holds additional event information. {@link Scope.applyToEvent} will be
9424
+ * called by the client before an event will be sent.
9425
+ */
9426
+ var Scope = /** @class */ (function () {
9427
+ function Scope() {
9428
+ /** Flag if notifiying is happening. */
9429
+ this._notifyingListeners = false;
9430
+ /** Callback for client to receive scope changes. */
9431
+ this._scopeListeners = [];
9432
+ /** Callback list that will be called after {@link applyToEvent}. */
9433
+ this._eventProcessors = [];
9434
+ /** Array of breadcrumbs. */
9435
+ this._breadcrumbs = [];
9436
+ /** User */
9437
+ this._user = {};
9438
+ /** Tags */
9439
+ this._tags = {};
9440
+ /** Extra */
9441
+ this._extra = {};
9442
+ /** Contexts */
9443
+ this._contexts = {};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9444
  }
9445
+ /**
9446
+ * Inherit values from the parent scope.
9447
+ * @param scope to clone.
9448
+ */
9449
+ Scope.clone = function (scope) {
9450
+ var newScope = new Scope();
9451
+ if (scope) {
9452
+ newScope._breadcrumbs = tslib_es6_spread(scope._breadcrumbs);
9453
+ newScope._tags = tslib_es6_assign({}, scope._tags);
9454
+ newScope._extra = tslib_es6_assign({}, scope._extra);
9455
+ newScope._contexts = tslib_es6_assign({}, scope._contexts);
9456
+ newScope._user = scope._user;
9457
+ newScope._level = scope._level;
9458
+ newScope._span = scope._span;
9459
+ newScope._session = scope._session;
9460
+ newScope._transactionName = scope._transactionName;
9461
+ newScope._fingerprint = scope._fingerprint;
9462
+ newScope._eventProcessors = tslib_es6_spread(scope._eventProcessors);
9463
+ }
9464
+ return newScope;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9465
  };
9466
+ /**
9467
+ * Add internal on change listener. Used for sub SDKs that need to store the scope.
9468
+ * @hidden
9469
+ */
9470
+ Scope.prototype.addScopeListener = function (callback) {
9471
+ this._scopeListeners.push(callback);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9472
  };
9473
+ /**
9474
+ * @inheritDoc
9475
+ */
9476
+ Scope.prototype.addEventProcessor = function (callback) {
9477
+ this._eventProcessors.push(callback);
9478
+ return this;
9479
  };
9480
+ /**
9481
+ * @inheritDoc
9482
+ */
9483
+ Scope.prototype.setUser = function (user) {
9484
+ this._user = user || {};
9485
+ if (this._session) {
9486
+ this._session.update({ user: user });
9487
+ }
9488
+ this._notifyScopeListeners();
9489
+ return this;
9490
  };
9491
+ /**
9492
+ * @inheritDoc
9493
+ */
9494
+ Scope.prototype.getUser = function () {
9495
+ return this._user;
9496
+ };
9497
+ /**
9498
+ * @inheritDoc
9499
+ */
9500
+ Scope.prototype.setTags = function (tags) {
9501
+ this._tags = tslib_es6_assign(tslib_es6_assign({}, this._tags), tags);
9502
+ this._notifyScopeListeners();
9503
+ return this;
9504
+ };
9505
+ /**
9506
+ * @inheritDoc
9507
+ */
9508
+ Scope.prototype.setTag = function (key, value) {
9509
+ var _a;
9510
+ this._tags = tslib_es6_assign(tslib_es6_assign({}, this._tags), (_a = {}, _a[key] = value, _a));
9511
+ this._notifyScopeListeners();
9512
+ return this;
9513
+ };
9514
+ /**
9515
+ * @inheritDoc
9516
+ */
9517
+ Scope.prototype.setExtras = function (extras) {
9518
+ this._extra = tslib_es6_assign(tslib_es6_assign({}, this._extra), extras);
9519
+ this._notifyScopeListeners();
9520
+ return this;
9521
+ };
9522
+ /**
9523
+ * @inheritDoc
9524
+ */
9525
+ Scope.prototype.setExtra = function (key, extra) {
9526
+ var _a;
9527
+ this._extra = tslib_es6_assign(tslib_es6_assign({}, this._extra), (_a = {}, _a[key] = extra, _a));
9528
+ this._notifyScopeListeners();
9529
+ return this;
9530
+ };
9531
+ /**
9532
+ * @inheritDoc
9533
+ */
9534
+ Scope.prototype.setFingerprint = function (fingerprint) {
9535
+ this._fingerprint = fingerprint;
9536
+ this._notifyScopeListeners();
9537
+ return this;
9538
+ };
9539
+ /**
9540
+ * @inheritDoc
9541
+ */
9542
+ Scope.prototype.setLevel = function (level) {
9543
+ this._level = level;
9544
+ this._notifyScopeListeners();
9545
+ return this;
9546
+ };
9547
+ /**
9548
+ * @inheritDoc
9549
+ */
9550
+ Scope.prototype.setTransactionName = function (name) {
9551
+ this._transactionName = name;
9552
+ this._notifyScopeListeners();
9553
+ return this;
9554
+ };
9555
+ /**
9556
+ * Can be removed in major version.
9557
+ * @deprecated in favor of {@link this.setTransactionName}
9558
+ */
9559
+ Scope.prototype.setTransaction = function (name) {
9560
+ return this.setTransactionName(name);
9561
+ };
9562
+ /**
9563
+ * @inheritDoc
9564
+ */
9565
+ Scope.prototype.setContext = function (key, context) {
9566
+ var _a;
9567
+ if (context === null) {
9568
+ // eslint-disable-next-line @typescript-eslint/no-dynamic-delete
9569
+ delete this._contexts[key];
9570
  }
9571
+ else {
9572
+ this._contexts = tslib_es6_assign(tslib_es6_assign({}, this._contexts), (_a = {}, _a[key] = context, _a));
9573
+ }
9574
+ this._notifyScopeListeners();
9575
+ return this;
9576
+ };
9577
+ /**
9578
+ * @inheritDoc
9579
+ */
9580
+ Scope.prototype.setSpan = function (span) {
9581
+ this._span = span;
9582
+ this._notifyScopeListeners();
9583
+ return this;
9584
+ };
9585
+ /**
9586
+ * @inheritDoc
9587
+ */
9588
+ Scope.prototype.getSpan = function () {
9589
+ return this._span;
9590
+ };
9591
+ /**
9592
+ * @inheritDoc
9593
+ */
9594
+ Scope.prototype.getTransaction = function () {
9595
+ var _a, _b, _c, _d;
9596
+ // often, this span will be a transaction, but it's not guaranteed to be
9597
+ var span = this.getSpan();
9598
+ // try it the new way first
9599
+ if ((_a = span) === null || _a === void 0 ? void 0 : _a.transaction) {
9600
+ return (_b = span) === null || _b === void 0 ? void 0 : _b.transaction;
9601
+ }
9602
+ // fallback to the old way (known bug: this only finds transactions with sampled = true)
9603
+ if ((_d = (_c = span) === null || _c === void 0 ? void 0 : _c.spanRecorder) === null || _d === void 0 ? void 0 : _d.spans[0]) {
9604
+ return span.spanRecorder.spans[0];
9605
+ }
9606
+ // neither way found a transaction
9607
+ return undefined;
9608
+ };
9609
+ /**
9610
+ * @inheritDoc
9611
+ */
9612
+ Scope.prototype.setSession = function (session) {
9613
+ if (!session) {
9614
+ delete this._session;
9615
+ }
9616
+ else {
9617
+ this._session = session;
9618
+ }
9619
+ this._notifyScopeListeners();
9620
+ return this;
9621
+ };
9622
+ /**
9623
+ * @inheritDoc
9624
+ */
9625
+ Scope.prototype.getSession = function () {
9626
+ return this._session;
9627
+ };
9628
+ /**
9629
+ * @inheritDoc
9630
+ */
9631
+ Scope.prototype.update = function (captureContext) {
9632
+ if (!captureContext) {
9633
+ return this;
9634
+ }
9635
+ if (typeof captureContext === 'function') {
9636
+ var updatedScope = captureContext(this);
9637
+ return updatedScope instanceof Scope ? updatedScope : this;
9638
+ }
9639
+ if (captureContext instanceof Scope) {
9640
+ this._tags = tslib_es6_assign(tslib_es6_assign({}, this._tags), captureContext._tags);
9641
+ this._extra = tslib_es6_assign(tslib_es6_assign({}, this._extra), captureContext._extra);
9642
+ this._contexts = tslib_es6_assign(tslib_es6_assign({}, this._contexts), captureContext._contexts);
9643
+ if (captureContext._user && Object.keys(captureContext._user).length) {
9644
+ this._user = captureContext._user;
9645
+ }
9646
+ if (captureContext._level) {
9647
+ this._level = captureContext._level;
9648
+ }
9649
+ if (captureContext._fingerprint) {
9650
+ this._fingerprint = captureContext._fingerprint;
9651
+ }
9652
+ }
9653
+ else if (is_isPlainObject(captureContext)) {
9654
+ // eslint-disable-next-line no-param-reassign
9655
+ captureContext = captureContext;
9656
+ this._tags = tslib_es6_assign(tslib_es6_assign({}, this._tags), captureContext.tags);
9657
+ this._extra = tslib_es6_assign(tslib_es6_assign({}, this._extra), captureContext.extra);
9658
+ this._contexts = tslib_es6_assign(tslib_es6_assign({}, this._contexts), captureContext.contexts);
9659
+ if (captureContext.user) {
9660
+ this._user = captureContext.user;
9661
+ }
9662
+ if (captureContext.level) {
9663
+ this._level = captureContext.level;
9664
+ }
9665
+ if (captureContext.fingerprint) {
9666
+ this._fingerprint = captureContext.fingerprint;
9667
+ }
9668
+ }
9669
+ return this;
9670
+ };
9671
+ /**
9672
+ * @inheritDoc
9673
+ */
9674
+ Scope.prototype.clear = function () {
9675
+ this._breadcrumbs = [];
9676
+ this._tags = {};
9677
+ this._extra = {};
9678
+ this._user = {};
9679
+ this._contexts = {};
9680
+ this._level = undefined;
9681
+ this._transactionName = undefined;
9682
+ this._fingerprint = undefined;
9683
+ this._span = undefined;
9684
+ this._session = undefined;
9685
+ this._notifyScopeListeners();
9686
+ return this;
9687
+ };
9688
+ /**
9689
+ * @inheritDoc
9690
+ */
9691
+ Scope.prototype.addBreadcrumb = function (breadcrumb, maxBreadcrumbs) {
9692
+ var mergedBreadcrumb = tslib_es6_assign({ timestamp: (0,time/* dateTimestampInSeconds */.yW)() }, breadcrumb);
9693
+ this._breadcrumbs =
9694
+ maxBreadcrumbs !== undefined && maxBreadcrumbs >= 0
9695
+ ? tslib_es6_spread(this._breadcrumbs, [mergedBreadcrumb]).slice(-maxBreadcrumbs)
9696
+ : tslib_es6_spread(this._breadcrumbs, [mergedBreadcrumb]);
9697
+ this._notifyScopeListeners();
9698
+ return this;
9699
+ };
9700
+ /**
9701
+ * @inheritDoc
9702
+ */
9703
+ Scope.prototype.clearBreadcrumbs = function () {
9704
+ this._breadcrumbs = [];
9705
+ this._notifyScopeListeners();
9706
+ return this;
9707
+ };
9708
+ /**
9709
+ * Applies the current context and fingerprint to the event.
9710
+ * Note that breadcrumbs will be added by the client.
9711
+ * Also if the event has already breadcrumbs on it, we do not merge them.
9712
+ * @param event Event
9713
+ * @param hint May contain additional informartion about the original exception.
9714
+ * @hidden
9715
+ */
9716
+ Scope.prototype.applyToEvent = function (event, hint) {
9717
+ var _a;
9718
+ if (this._extra && Object.keys(this._extra).length) {
9719
+ event.extra = tslib_es6_assign(tslib_es6_assign({}, this._extra), event.extra);
9720
+ }
9721
+ if (this._tags && Object.keys(this._tags).length) {
9722
+ event.tags = tslib_es6_assign(tslib_es6_assign({}, this._tags), event.tags);
9723
+ }
9724
+ if (this._user && Object.keys(this._user).length) {
9725
+ event.user = tslib_es6_assign(tslib_es6_assign({}, this._user), event.user);
9726
+ }
9727
+ if (this._contexts && Object.keys(this._contexts).length) {
9728
+ event.contexts = tslib_es6_assign(tslib_es6_assign({}, this._contexts), event.contexts);
9729
+ }
9730
+ if (this._level) {
9731
+ event.level = this._level;
9732
+ }
9733
+ if (this._transactionName) {
9734
+ event.transaction = this._transactionName;
9735
+ }
9736
+ // We want to set the trace context for normal events only if there isn't already
9737
+ // a trace context on the event. There is a product feature in place where we link
9738
+ // errors with transaction and it relys on that.
9739
+ if (this._span) {
9740
+ event.contexts = tslib_es6_assign({ trace: this._span.getTraceContext() }, event.contexts);
9741
+ var transactionName = (_a = this._span.transaction) === null || _a === void 0 ? void 0 : _a.name;
9742
+ if (transactionName) {
9743
+ event.tags = tslib_es6_assign({ transaction: transactionName }, event.tags);
9744
+ }
9745
+ }
9746
+ this._applyFingerprint(event);
9747
+ event.breadcrumbs = tslib_es6_spread((event.breadcrumbs || []), this._breadcrumbs);
9748
+ event.breadcrumbs = event.breadcrumbs.length > 0 ? event.breadcrumbs : undefined;
9749
+ return this._notifyEventProcessors(tslib_es6_spread(getGlobalEventProcessors(), this._eventProcessors), event, hint);
9750
+ };
9751
+ /**
9752
+ * This will be called after {@link applyToEvent} is finished.
9753
+ */
9754
+ Scope.prototype._notifyEventProcessors = function (processors, event, hint, index) {
9755
+ var _this = this;
9756
+ if (index === void 0) { index = 0; }
9757
+ return new syncpromise_SyncPromise(function (resolve, reject) {
9758
+ var processor = processors[index];
9759
+ if (event === null || typeof processor !== 'function') {
9760
+ resolve(event);
9761
+ }
9762
+ else {
9763
+ var result = processor(tslib_es6_assign({}, event), hint);
9764
+ if (isThenable(result)) {
9765
+ result
9766
+ .then(function (final) { return _this._notifyEventProcessors(processors, final, hint, index + 1).then(resolve); })
9767
+ .then(null, reject);
9768
+ }
9769
+ else {
9770
+ _this._notifyEventProcessors(processors, result, hint, index + 1)
9771
+ .then(resolve)
9772
+ .then(null, reject);
9773
+ }
9774
+ }
9775
  });
9776
+ };
9777
+ /**
9778
+ * This will be called on every set call.
9779
+ */
9780
+ Scope.prototype._notifyScopeListeners = function () {
9781
+ var _this = this;
9782
+ // We need this check for this._notifyingListeners to be able to work on scope during updates
9783
+ // If this check is not here we'll produce endless recursion when something is done with the scope
9784
+ // during the callback.
9785
+ if (!this._notifyingListeners) {
9786
+ this._notifyingListeners = true;
9787
+ this._scopeListeners.forEach(function (callback) {
9788
+ callback(_this);
9789
+ });
9790
+ this._notifyingListeners = false;
9791
+ }
9792
+ };
9793
+ /**
9794
+ * Applies fingerprint from the scope to the event if there's one,
9795
+ * uses message if there's one instead or get rid of empty fingerprint
9796
+ */
9797
+ Scope.prototype._applyFingerprint = function (event) {
9798
+ // Make sure it's an array first and we actually have something in place
9799
+ event.fingerprint = event.fingerprint
9800
+ ? Array.isArray(event.fingerprint)
9801
+ ? event.fingerprint
9802
+ : [event.fingerprint]
9803
+ : [];
9804
+ // If we have something on the scope, then merge it with event
9805
+ if (this._fingerprint) {
9806
+ event.fingerprint = event.fingerprint.concat(this._fingerprint);
9807
  }
9808
+ // If we have no data at all, remove empty array default
9809
+ if (event.fingerprint && !event.fingerprint.length) {
9810
+ delete event.fingerprint;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9811
  }
9812
+ };
9813
+ return Scope;
9814
+ }());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9815
 
 
 
 
 
9816
  /**
9817
+ * Retruns the global event processors.
9818
  */
9819
+ function getGlobalEventProcessors() {
9820
+ /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */
9821
+ var global = (0,misc/* getGlobalObject */.Rf)();
9822
+ global.__SENTRY__ = global.__SENTRY__ || {};
9823
+ global.__SENTRY__.globalEventProcessors = global.__SENTRY__.globalEventProcessors || [];
9824
+ return global.__SENTRY__.globalEventProcessors;
9825
+ /* eslint-enable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9826
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9827
  /**
9828
+ * Add a EventProcessor to be kept globally.
9829
+ * @param callback EventProcessor to add
9830
+ */
9831
+ function addGlobalEventProcessor(callback) {
9832
+ getGlobalEventProcessors().push(callback);
 
 
 
 
 
 
 
9833
  }
9834
+ //# sourceMappingURL=scope.js.map
9835
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/types/esm/session.js
9836
  /**
9837
+ * Session Status
9838
  */
9839
+ var SessionStatus;
9840
+ (function (SessionStatus) {
9841
+ /** JSDoc */
9842
+ SessionStatus["Ok"] = "ok";
9843
+ /** JSDoc */
9844
+ SessionStatus["Exited"] = "exited";
9845
+ /** JSDoc */
9846
+ SessionStatus["Crashed"] = "crashed";
9847
+ /** JSDoc */
9848
+ SessionStatus["Abnormal"] = "abnormal";
9849
+ })(SessionStatus || (SessionStatus = {}));
9850
+ //# sourceMappingURL=session.js.map
9851
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/utils/esm/browser.js
9852
 
9853
+ /**
9854
+ * Given a child DOM element, returns a query-selector statement describing that
9855
+ * and its ancestors
9856
+ * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]
9857
+ * @returns generated DOM path
9858
+ */
9859
+ function htmlTreeAsString(elem) {
9860
+ // try/catch both:
9861
+ // - accessing event.target (see getsentry/raven-js#838, #768)
9862
+ // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly
9863
+ // - can throw an exception in some circumstances.
9864
+ try {
9865
+ var currentElem = elem;
9866
+ var MAX_TRAVERSE_HEIGHT = 5;
9867
+ var MAX_OUTPUT_LEN = 80;
9868
+ var out = [];
9869
+ var height = 0;
9870
+ var len = 0;
9871
+ var separator = ' > ';
9872
+ var sepLength = separator.length;
9873
+ var nextStr = void 0;
9874
+ // eslint-disable-next-line no-plusplus
9875
+ while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {
9876
+ nextStr = _htmlElementAsString(currentElem);
9877
+ // bail out if
9878
+ // - nextStr is the 'html' element
9879
+ // - the length of the string that would be created exceeds MAX_OUTPUT_LEN
9880
+ // (ignore this limit if we are on the first iteration)
9881
+ if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) {
9882
+ break;
9883
+ }
9884
+ out.push(nextStr);
9885
+ len += nextStr.length;
9886
+ currentElem = currentElem.parentNode;
9887
+ }
9888
+ return out.reverse().join(separator);
9889
+ }
9890
+ catch (_oO) {
9891
+ return '<unknown>';
9892
  }
 
9893
  }
9894
  /**
9895
+ * Returns a simple, query-selector representation of a DOM element
9896
+ * e.g. [HTMLElement] => input#foo.btn[name=baz]
9897
+ * @returns generated DOM path
 
9898
  */
9899
+ function _htmlElementAsString(el) {
9900
+ var elem = el;
9901
+ var out = [];
9902
+ var className;
9903
+ var classes;
9904
+ var key;
9905
+ var attr;
9906
+ var i;
9907
+ if (!elem || !elem.tagName) {
9908
+ return '';
9909
+ }
9910
+ out.push(elem.tagName.toLowerCase());
9911
+ if (elem.id) {
9912
+ out.push("#" + elem.id);
9913
+ }
9914
+ // eslint-disable-next-line prefer-const
9915
+ className = elem.className;
9916
+ if (className && isString(className)) {
9917
+ classes = className.split(/\s+/);
9918
+ for (i = 0; i < classes.length; i++) {
9919
+ out.push("." + classes[i]);
 
 
 
 
9920
  }
 
 
 
 
 
 
 
9921
  }
9922
+ var allowedAttrs = ['type', 'name', 'title', 'alt'];
9923
+ for (i = 0; i < allowedAttrs.length; i++) {
9924
+ key = allowedAttrs[i];
9925
+ attr = elem.getAttribute(key);
9926
+ if (attr) {
9927
+ out.push("[" + key + "=\"" + attr + "\"]");
9928
+ }
9929
+ }
9930
+ return out.join('');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9931
  }
9932
+ //# sourceMappingURL=browser.js.map
9933
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/utils/esm/memo.js
9934
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
9935
+ /* eslint-disable @typescript-eslint/no-explicit-any */
9936
+ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
 
 
 
 
 
 
 
 
 
 
 
9937
  /**
9938
+ * Memo class used for decycle json objects. Uses WeakSet if available otherwise array.
 
9939
  */
9940
+ var Memo = /** @class */ (function () {
9941
+ function Memo() {
9942
+ this._hasWeakSet = typeof WeakSet === 'function';
9943
+ this._inner = this._hasWeakSet ? new WeakSet() : [];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9944
  }
9945
+ /**
9946
+ * Sets obj to remember.
9947
+ * @param obj Object to remember
9948
+ */
9949
+ Memo.prototype.memoize = function (obj) {
9950
+ if (this._hasWeakSet) {
9951
+ if (this._inner.has(obj)) {
9952
+ return true;
9953
+ }
9954
+ this._inner.add(obj);
9955
+ return false;
9956
+ }
9957
+ // eslint-disable-next-line @typescript-eslint/prefer-for-of
9958
+ for (var i = 0; i < this._inner.length; i++) {
9959
+ var value = this._inner[i];
9960
+ if (value === obj) {
9961
+ return true;
9962
+ }
9963
+ }
9964
+ this._inner.push(obj);
9965
+ return false;
9966
+ };
9967
+ /**
9968
+ * Removes object from internal storage.
9969
+ * @param obj Object to forget
9970
+ */
9971
+ Memo.prototype.unmemoize = function (obj) {
9972
+ if (this._hasWeakSet) {
9973
+ this._inner.delete(obj);
9974
+ }
9975
+ else {
9976
+ for (var i = 0; i < this._inner.length; i++) {
9977
+ if (this._inner[i] === obj) {
9978
+ this._inner.splice(i, 1);
9979
+ break;
9980
+ }
9981
+ }
9982
+ }
9983
+ };
9984
+ return Memo;
9985
+ }());
9986
 
9987
+ //# sourceMappingURL=memo.js.map
9988
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/utils/esm/stacktrace.js
9989
+ var defaultFunctionName = '<anonymous>';
9990
+ /**
9991
+ * Safely extract function name from itself
9992
+ */
9993
+ function getFunctionName(fn) {
9994
+ try {
9995
+ if (!fn || typeof fn !== 'function') {
9996
+ return defaultFunctionName;
9997
+ }
9998
+ return fn.name || defaultFunctionName;
9999
+ }
10000
+ catch (e) {
10001
+ // Just accessing custom props in some Selenium environments
10002
+ // can cause a "Permission denied" exception (see raven-js#495).
10003
+ return defaultFunctionName;
10004
+ }
10005
  }
10006
+ //# sourceMappingURL=stacktrace.js.map
10007
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/utils/esm/string.js
10008
+
10009
  /**
10010
+ * Truncates given string to the maximum characters count
10011
  *
10012
+ * @param str An object that contains serializable values
10013
+ * @param max Maximum number of characters in truncated string (0 = unlimited)
10014
+ * @returns string Encoded
10015
  */
10016
+ function truncate(str, max) {
10017
+ if (max === void 0) { max = 0; }
10018
+ if (typeof str !== 'string' || max === 0) {
10019
+ return str;
10020
+ }
10021
+ return str.length <= max ? str : str.substr(0, max) + "...";
 
10022
  }
10023
  /**
10024
+ * This is basically just `trim_line` from
10025
+ * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67
10026
+ *
10027
+ * @param str An object that contains serializable values
10028
+ * @param max Maximum number of characters in truncated string
10029
+ * @returns string Encoded
10030
  */
10031
+ function snipLine(line, colno) {
10032
+ var newLine = line;
10033
+ var ll = newLine.length;
10034
+ if (ll <= 150) {
10035
+ return newLine;
 
10036
  }
10037
+ if (colno > ll) {
10038
+ // eslint-disable-next-line no-param-reassign
10039
+ colno = ll;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10040
  }
10041
+ var start = Math.max(colno - 60, 0);
10042
+ if (start < 5) {
10043
+ start = 0;
10044
  }
10045
+ var end = Math.min(start + 140, ll);
10046
+ if (end > ll - 5) {
10047
+ end = ll;
10048
+ }
10049
+ if (end === ll) {
10050
+ start = Math.max(end - 140, 0);
10051
+ }
10052
+ newLine = newLine.slice(start, end);
10053
+ if (start > 0) {
10054
+ newLine = "'{snip} " + newLine;
10055
+ }
10056
+ if (end < ll) {
10057
+ newLine += ' {snip}';
10058
+ }
10059
+ return newLine;
10060
+ }
10061
+ /**
10062
+ * Join values in array
10063
+ * @param input array of values to be joined together
10064
+ * @param delimiter string to be placed in-between values
10065
+ * @returns Joined values
10066
+ */
10067
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10068
+ function safeJoin(input, delimiter) {
10069
+ if (!Array.isArray(input)) {
10070
+ return '';
10071
+ }
10072
+ var output = [];
10073
+ // eslint-disable-next-line @typescript-eslint/prefer-for-of
10074
+ for (var i = 0; i < input.length; i++) {
10075
+ var value = input[i];
10076
+ try {
10077
+ output.push(String(value));
10078
+ }
10079
+ catch (e) {
10080
+ output.push('[value cannot be serialized]');
10081
+ }
10082
+ }
10083
+ return output.join(delimiter);
10084
+ }
10085
+ /**
10086
+ * Checks if the value matches a regex or includes the string
10087
+ * @param value The string value to be checked against
10088
+ * @param pattern Either a regex or a string that must be contained in value
10089
+ */
10090
+ function isMatchingPattern(value, pattern) {
10091
+ if (!isString(value)) {
10092
+ return false;
10093
+ }
10094
+ if (isRegExp(pattern)) {
10095
+ return pattern.test(value);
10096
+ }
10097
+ if (typeof pattern === 'string') {
10098
+ return value.indexOf(pattern) !== -1;
10099
+ }
10100
+ return false;
10101
+ }
10102
+ //# sourceMappingURL=string.js.map
10103
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/utils/esm/object.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10104
 
 
 
 
 
 
 
 
10105
 
10106
 
 
 
 
10107
 
 
 
 
 
 
 
 
 
10108
 
10109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10110
  /**
10111
+ * Wrap a given object method with a higher-order function
10112
+ *
10113
+ * @param source An object that contains a method to be wrapped.
10114
+ * @param name A name of method to be wrapped.
10115
+ * @param replacementFactory A function that should be used to wrap a given method, returning the wrapped method which
10116
+ * will be substituted in for `source[name]`.
10117
+ * @returns void
10118
  */
10119
+ function fill(source, name, replacementFactory) {
10120
+ if (!(name in source)) {
10121
+ return;
10122
+ }
10123
+ var original = source[name];
10124
+ var wrapped = replacementFactory(original);
10125
+ // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work
10126
+ // otherwise it'll throw "TypeError: Object.defineProperties called on non-object"
10127
+ if (typeof wrapped === 'function') {
10128
+ try {
10129
+ wrapped.prototype = wrapped.prototype || {};
10130
+ Object.defineProperties(wrapped, {
10131
+ __sentry_original__: {
10132
+ enumerable: false,
10133
+ value: original,
10134
+ },
10135
+ });
10136
+ }
10137
+ catch (_Oo) {
10138
+ // This can throw if multiple fill happens on a global object like XMLHttpRequest
10139
+ // Fixes https://github.com/getsentry/sentry-javascript/issues/2043
10140
+ }
10141
+ }
10142
+ source[name] = wrapped;
10143
  }
10144
  /**
10145
+ * Encodes given object into url-friendly format
10146
+ *
10147
+ * @param object An object that contains serializable values
10148
+ * @returns string Encoded
 
10149
  */
10150
+ function urlEncode(object) {
10151
+ return Object.keys(object)
10152
+ .map(function (key) { return encodeURIComponent(key) + "=" + encodeURIComponent(object[key]); })
10153
+ .join('&');
 
 
 
 
10154
  }
10155
  /**
10156
+ * Transforms any object into an object literal with all its attributes
10157
+ * attached to it.
10158
+ *
10159
+ * @param value Initial source that we have to transform in order for it to be usable by the serializer
 
10160
  */
10161
+ function getWalkSource(value) {
10162
+ if (isError(value)) {
10163
+ var error = value;
10164
+ var err = {
10165
+ message: error.message,
10166
+ name: error.name,
10167
+ stack: error.stack,
10168
+ };
10169
+ for (var i in error) {
10170
+ if (Object.prototype.hasOwnProperty.call(error, i)) {
10171
+ err[i] = error[i];
10172
+ }
10173
+ }
10174
+ return err;
10175
+ }
10176
+ if (isEvent(value)) {
10177
+ var event_1 = value;
10178
+ var source = {};
10179
+ source.type = event_1.type;
10180
+ // Accessing event.target can throw (see getsentry/raven-js#838, #768)
10181
+ try {
10182
+ source.target = isElement(event_1.target)
10183
+ ? htmlTreeAsString(event_1.target)
10184
+ : Object.prototype.toString.call(event_1.target);
10185
+ }
10186
+ catch (_oO) {
10187
+ source.target = '<unknown>';
10188
+ }
10189
+ try {
10190
+ source.currentTarget = isElement(event_1.currentTarget)
10191
+ ? htmlTreeAsString(event_1.currentTarget)
10192
+ : Object.prototype.toString.call(event_1.currentTarget);
10193
+ }
10194
+ catch (_oO) {
10195
+ source.currentTarget = '<unknown>';
10196
+ }
10197
+ if (typeof CustomEvent !== 'undefined' && isInstanceOf(value, CustomEvent)) {
10198
+ source.detail = event_1.detail;
10199
+ }
10200
+ for (var i in event_1) {
10201
+ if (Object.prototype.hasOwnProperty.call(event_1, i)) {
10202
+ source[i] = event_1;
10203
+ }
10204
+ }
10205
+ return source;
10206
+ }
10207
+ return value;
10208
  }
10209
+ /** Calculates bytes size of input string */
10210
+ function utf8Length(value) {
10211
+ // eslint-disable-next-line no-bitwise
10212
+ return ~-encodeURI(value).split(/%..|./).length;
10213
+ }
10214
+ /** Calculates bytes size of input object */
10215
+ function jsonSize(value) {
10216
+ return utf8Length(JSON.stringify(value));
10217
+ }
10218
+ /** JSDoc */
10219
+ function normalizeToSize(object,
10220
+ // Default Node.js REPL depth
10221
+ depth,
10222
+ // 100kB, as 200kB is max payload size, so half sounds reasonable
10223
+ maxSize) {
10224
+ if (depth === void 0) { depth = 3; }
10225
+ if (maxSize === void 0) { maxSize = 100 * 1024; }
10226
+ var serialized = normalize(object, depth);
10227
+ if (jsonSize(serialized) > maxSize) {
10228
+ return normalizeToSize(object, depth - 1, maxSize);
10229
  }
10230
+ return serialized;
10231
  }
10232
+ /**
10233
+ * Transform any non-primitive, BigInt, or Symbol-type value into a string. Acts as a no-op on strings, numbers,
10234
+ * booleans, null, and undefined.
10235
+ *
10236
+ * @param value The value to stringify
10237
+ * @returns For non-primitive, BigInt, and Symbol-type values, a string denoting the value's type, type and value, or
10238
+ * type and `description` property, respectively. For non-BigInt, non-Symbol primitives, returns the original value,
10239
+ * unchanged.
10240
+ */
10241
+ function serializeValue(value) {
10242
+ var type = Object.prototype.toString.call(value);
10243
+ // Node.js REPL notation
10244
+ if (typeof value === 'string') {
10245
+ return value;
10246
+ }
10247
+ if (type === '[object Object]') {
10248
+ return '[Object]';
10249
+ }
10250
+ if (type === '[object Array]') {
10251
+ return '[Array]';
10252
+ }
10253
+ var normalized = normalizeValue(value);
10254
+ return isPrimitive(normalized) ? normalized : type;
10255
  }
10256
+ /**
10257
+ * normalizeValue()
10258
+ *
10259
+ * Takes unserializable input and make it serializable friendly
10260
+ *
10261
+ * - translates undefined/NaN values to "[undefined]"/"[NaN]" respectively,
10262
+ * - serializes Error objects
10263
+ * - filter global objects
10264
+ */
10265
+ function normalizeValue(value, key) {
10266
+ if (key === 'domain' && value && typeof value === 'object' && value._events) {
10267
+ return '[Domain]';
10268
+ }
10269
+ if (key === 'domainEmitter') {
10270
+ return '[DomainEmitter]';
10271
+ }
10272
+ if (typeof __webpack_require__.g !== 'undefined' && value === __webpack_require__.g) {
10273
+ return '[Global]';
10274
+ }
10275
+ if (typeof window !== 'undefined' && value === window) {
10276
+ return '[Window]';
10277
+ }
10278
+ if (typeof document !== 'undefined' && value === document) {
10279
+ return '[Document]';
10280
+ }
10281
+ // React's SyntheticEvent thingy
10282
+ if (isSyntheticEvent(value)) {
10283
+ return '[SyntheticEvent]';
10284
+ }
10285
+ if (typeof value === 'number' && value !== value) {
10286
+ return '[NaN]';
10287
+ }
10288
+ if (value === void 0) {
10289
+ return '[undefined]';
10290
+ }
10291
+ if (typeof value === 'function') {
10292
+ return "[Function: " + getFunctionName(value) + "]";
10293
+ }
10294
+ // symbols and bigints are considered primitives by TS, but aren't natively JSON-serilaizable
10295
+ if (typeof value === 'symbol') {
10296
+ return "[" + String(value) + "]";
10297
+ }
10298
+ if (typeof value === 'bigint') {
10299
+ return "[BigInt: " + String(value) + "]";
10300
+ }
10301
+ return value;
10302
  }
10303
+ /**
10304
+ * Walks an object to perform a normalization on it
10305
+ *
10306
+ * @param key of object that's walked in current iteration
10307
+ * @param value object to be walked
10308
+ * @param depth Optional number indicating how deep should walking be performed
10309
+ * @param memo Optional Memo class handling decycling
10310
+ */
10311
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
10312
+ function walk(key, value, depth, memo) {
10313
+ if (depth === void 0) { depth = +Infinity; }
10314
+ if (memo === void 0) { memo = new Memo(); }
10315
+ // If we reach the maximum depth, serialize whatever has left
10316
+ if (depth === 0) {
10317
+ return serializeValue(value);
10318
+ }
10319
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
10320
+ // If value implements `toJSON` method, call it and return early
10321
+ if (value !== null && value !== undefined && typeof value.toJSON === 'function') {
10322
+ return value.toJSON();
10323
+ }
10324
+ /* eslint-enable @typescript-eslint/no-unsafe-member-access */
10325
+ // If normalized value is a primitive, there are no branches left to walk, so we can just bail out, as theres no point in going down that branch any further
10326
+ var normalized = normalizeValue(value, key);
10327
+ if (isPrimitive(normalized)) {
10328
+ return normalized;
10329
+ }
10330
+ // Create source that we will use for next itterations, either objectified error object (Error type with extracted keys:value pairs) or the input itself
10331
+ var source = getWalkSource(value);
10332
+ // Create an accumulator that will act as a parent for all future itterations of that branch
10333
+ var acc = Array.isArray(value) ? [] : {};
10334
+ // If we already walked that branch, bail out, as it's circular reference
10335
+ if (memo.memoize(value)) {
10336
+ return '[Circular ~]';
10337
+ }
10338
+ // Walk all keys of the source
10339
+ for (var innerKey in source) {
10340
+ // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.
10341
+ if (!Object.prototype.hasOwnProperty.call(source, innerKey)) {
10342
+ continue;
10343
+ }
10344
+ // Recursively walk through all the child nodes
10345
+ acc[innerKey] = walk(innerKey, source[innerKey], depth - 1, memo);
10346
+ }
10347
+ // Once walked through all the branches, remove the parent from memo storage
10348
+ memo.unmemoize(value);
10349
+ // Return accumulated values
10350
+ return acc;
10351
  }
10352
  /**
10353
+ * normalize()
10354
+ *
10355
+ * - Creates a copy to prevent original input mutation
10356
+ * - Skip non-enumerablers
10357
+ * - Calls `toJSON` if implemented
10358
+ * - Removes circular references
10359
+ * - Translates non-serializeable values (undefined/NaN/Functions) to serializable format
10360
+ * - Translates known global objects/Classes to a string representations
10361
+ * - Takes care of Error objects serialization
10362
+ * - Optionally limit depth of final output
10363
  */
10364
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
10365
+ function normalize(input, depth) {
10366
+ try {
10367
+ return JSON.parse(JSON.stringify(input, function (key, value) { return walk(key, value, depth); }));
10368
+ }
10369
+ catch (_oO) {
10370
+ return '**non-serializable**';
10371
+ }
 
 
 
 
10372
  }
10373
+ /**
10374
+ * Given any captured exception, extract its keys and create a sorted
10375
+ * and truncated list that will be used inside the event message.
10376
+ * eg. `Non-error exception captured with keys: foo, bar, baz`
10377
+ */
10378
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
10379
+ function extractExceptionKeysForMessage(exception, maxLength) {
10380
+ if (maxLength === void 0) { maxLength = 40; }
10381
+ var keys = Object.keys(getWalkSource(exception));
10382
+ keys.sort();
10383
+ if (!keys.length) {
10384
+ return '[object has no keys]';
10385
  }
10386
+ if (keys[0].length >= maxLength) {
10387
+ return truncate(keys[0], maxLength);
10388
+ }
10389
+ for (var includedKeys = keys.length; includedKeys > 0; includedKeys--) {
10390
+ var serialized = keys.slice(0, includedKeys).join(', ');
10391
+ if (serialized.length > maxLength) {
10392
+ continue;
10393
+ }
10394
+ if (includedKeys === keys.length) {
10395
+ return serialized;
10396
+ }
10397
+ return truncate(serialized, maxLength);
10398
+ }
10399
+ return '';
10400
+ }
10401
+ /**
10402
+ * Given any object, return the new object with removed keys that value was `undefined`.
10403
+ * Works recursively on objects and arrays.
10404
+ */
10405
+ function dropUndefinedKeys(val) {
10406
+ var e_1, _a;
10407
+ if (is_isPlainObject(val)) {
10408
+ var obj = val;
10409
+ var rv = {};
10410
+ try {
10411
+ for (var _b = __values(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {
10412
+ var key = _c.value;
10413
+ if (typeof obj[key] !== 'undefined') {
10414
+ rv[key] = dropUndefinedKeys(obj[key]);
10415
+ }
10416
+ }
10417
+ }
10418
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
10419
+ finally {
10420
+ try {
10421
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10422
+ }
10423
+ finally { if (e_1) throw e_1.error; }
10424
+ }
10425
+ return rv;
10426
+ }
10427
+ if (Array.isArray(val)) {
10428
+ return val.map(dropUndefinedKeys);
10429
+ }
10430
+ return val;
10431
  }
10432
+ //# sourceMappingURL=object.js.map
10433
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/hub/esm/session.js
10434
 
 
 
 
10435
 
10436
+ /**
10437
+ * @inheritdoc
10438
+ */
10439
+ var Session = /** @class */ (function () {
10440
+ function Session(context) {
10441
+ this.errors = 0;
10442
+ this.sid = (0,misc/* uuid4 */.DM)();
10443
+ this.timestamp = Date.now();
10444
+ this.started = Date.now();
10445
+ this.duration = 0;
10446
+ this.status = SessionStatus.Ok;
10447
+ if (context) {
10448
+ this.update(context);
10449
+ }
10450
+ }
10451
+ /** JSDoc */
10452
+ // eslint-disable-next-line complexity
10453
+ Session.prototype.update = function (context) {
10454
+ if (context === void 0) { context = {}; }
10455
+ if (context.user) {
10456
+ if (context.user.ip_address) {
10457
+ this.ipAddress = context.user.ip_address;
10458
+ }
10459
+ if (!context.did) {
10460
+ this.did = context.user.id || context.user.email || context.user.username;
10461
+ }
10462
+ }
10463
+ this.timestamp = context.timestamp || Date.now();
10464
+ if (context.sid) {
10465
+ // Good enough uuid validation. — Kamil
10466
+ this.sid = context.sid.length === 32 ? context.sid : (0,misc/* uuid4 */.DM)();
10467
+ }
10468
+ if (context.did) {
10469
+ this.did = "" + context.did;
10470
+ }
10471
+ if (typeof context.started === 'number') {
10472
+ this.started = context.started;
10473
+ }
10474
+ if (typeof context.duration === 'number') {
10475
+ this.duration = context.duration;
10476
+ }
10477
+ else {
10478
+ this.duration = this.timestamp - this.started;
10479
+ }
10480
+ if (context.release) {
10481
+ this.release = context.release;
10482
+ }
10483
+ if (context.environment) {
10484
+ this.environment = context.environment;
10485
+ }
10486
+ if (context.ipAddress) {
10487
+ this.ipAddress = context.ipAddress;
10488
+ }
10489
+ if (context.userAgent) {
10490
+ this.userAgent = context.userAgent;
10491
+ }
10492
+ if (typeof context.errors === 'number') {
10493
+ this.errors = context.errors;
10494
+ }
10495
+ if (context.status) {
10496
+ this.status = context.status;
10497
+ }
10498
  };
10499
+ /** JSDoc */
10500
+ Session.prototype.close = function (status) {
10501
+ if (status) {
10502
+ this.update({ status: status });
10503
+ }
10504
+ else if (this.status === SessionStatus.Ok) {
10505
+ this.update({ status: SessionStatus.Exited });
10506
+ }
10507
+ else {
10508
+ this.update();
10509
+ }
10510
  };
10511
+ /** JSDoc */
10512
+ Session.prototype.toJSON = function () {
10513
+ return dropUndefinedKeys({
10514
+ sid: "" + this.sid,
10515
+ init: true,
10516
+ started: new Date(this.started).toISOString(),
10517
+ timestamp: new Date(this.timestamp).toISOString(),
10518
+ status: this.status,
10519
+ errors: this.errors,
10520
+ did: typeof this.did === 'number' || typeof this.did === 'string' ? "" + this.did : undefined,
10521
+ duration: this.duration,
10522
+ attrs: dropUndefinedKeys({
10523
+ release: this.release,
10524
+ environment: this.environment,
10525
+ ip_address: this.ipAddress,
10526
+ user_agent: this.userAgent,
10527
+ }),
10528
+ });
10529
+ };
10530
+ return Session;
10531
+ }());
 
 
 
 
 
10532
 
10533
+ //# sourceMappingURL=session.js.map
10534
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/hub/esm/hub.js
 
10535
 
 
 
 
 
 
10536
 
 
 
10537
 
 
 
 
 
 
10538
 
10539
  /**
10540
+ * API compatibility version of this hub.
 
 
 
 
 
 
 
 
10541
  *
10542
+ * WARNING: This number should only be increased when the global interface
10543
+ * changes and new methods are introduced.
10544
  *
10545
+ * @hidden
 
10546
  */
10547
+ var API_VERSION = 3;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10548
  /**
10549
+ * Default maximum number of breadcrumbs added to an event. Can be overwritten
10550
+ * with {@link Options.maxBreadcrumbs}.
 
 
 
 
 
10551
  */
10552
+ var DEFAULT_BREADCRUMBS = 100;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10553
  /**
10554
+ * Absolute maximum number of breadcrumbs added to an event. The
10555
+ * `maxBreadcrumbs` option cannot be higher than this value.
10556
+ */
10557
+ var MAX_BREADCRUMBS = 100;
10558
+ /**
10559
+ * @inheritDoc
10560
+ */
10561
+ var Hub = /** @class */ (function () {
10562
+ /**
10563
+ * Creates a new instance of the hub, will push one {@link Layer} into the
10564
+ * internal stack on creation.
10565
+ *
10566
+ * @param client bound to the hub.
10567
+ * @param scope bound to the hub.
10568
+ * @param version number, higher number means higher priority.
10569
+ */
10570
+ function Hub(client, scope, _version) {
10571
+ if (scope === void 0) { scope = new Scope(); }
10572
+ if (_version === void 0) { _version = API_VERSION; }
10573
+ this._version = _version;
10574
+ /** Is a {@link Layer}[] containing the client and scope */
10575
+ this._stack = [{}];
10576
+ this.getStackTop().scope = scope;
10577
+ this.bindClient(client);
10578
+ }
10579
+ /**
10580
+ * @inheritDoc
10581
+ */
10582
+ Hub.prototype.isOlderThan = function (version) {
10583
+ return this._version < version;
10584
+ };
10585
+ /**
10586
+ * @inheritDoc
10587
+ */
10588
+ Hub.prototype.bindClient = function (client) {
10589
+ var top = this.getStackTop();
10590
+ top.client = client;
10591
+ if (client && client.setupIntegrations) {
10592
+ client.setupIntegrations();
10593
+ }
10594
+ };
10595
+ /**
10596
+ * @inheritDoc
10597
+ */
10598
+ Hub.prototype.pushScope = function () {
10599
+ // We want to clone the content of prev scope
10600
+ var scope = Scope.clone(this.getScope());
10601
+ this.getStack().push({
10602
+ client: this.getClient(),
10603
+ scope: scope,
10604
+ });
10605
+ return scope;
10606
+ };
10607
+ /**
10608
+ * @inheritDoc
10609
+ */
10610
+ Hub.prototype.popScope = function () {
10611
+ if (this.getStack().length <= 1)
10612
+ return false;
10613
+ return !!this.getStack().pop();
10614
+ };
10615
+ /**
10616
+ * @inheritDoc
10617
+ */
10618
+ Hub.prototype.withScope = function (callback) {
10619
+ var scope = this.pushScope();
10620
+ try {
10621
+ callback(scope);
10622
+ }
10623
+ finally {
10624
+ this.popScope();
10625
+ }
10626
+ };
10627
+ /**
10628
+ * @inheritDoc
10629
+ */
10630
+ Hub.prototype.getClient = function () {
10631
+ return this.getStackTop().client;
10632
+ };
10633
+ /** Returns the scope of the top stack. */
10634
+ Hub.prototype.getScope = function () {
10635
+ return this.getStackTop().scope;
10636
+ };
10637
+ /** Returns the scope stack for domains or the process. */
10638
+ Hub.prototype.getStack = function () {
10639
+ return this._stack;
10640
+ };
10641
+ /** Returns the topmost scope layer in the order domain > local > process. */
10642
+ Hub.prototype.getStackTop = function () {
10643
+ return this._stack[this._stack.length - 1];
10644
+ };
10645
+ /**
10646
+ * @inheritDoc
10647
+ */
10648
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
10649
+ Hub.prototype.captureException = function (exception, hint) {
10650
+ var eventId = (this._lastEventId = (0,misc/* uuid4 */.DM)());
10651
+ var finalHint = hint;
10652
+ // If there's no explicit hint provided, mimick the same thing that would happen
10653
+ // in the minimal itself to create a consistent behavior.
10654
+ // We don't do this in the client, as it's the lowest level API, and doing this,
10655
+ // would prevent user from having full control over direct calls.
10656
+ if (!hint) {
10657
+ var syntheticException = void 0;
10658
+ try {
10659
+ throw new Error('Sentry syntheticException');
10660
+ }
10661
+ catch (exception) {
10662
+ syntheticException = exception;
10663
+ }
10664
+ finalHint = {
10665
+ originalException: exception,
10666
+ syntheticException: syntheticException,
10667
+ };
10668
+ }
10669
+ this._invokeClient('captureException', exception, tslib_es6_assign(tslib_es6_assign({}, finalHint), { event_id: eventId }));
10670
+ return eventId;
10671
+ };
10672
+ /**
10673
+ * @inheritDoc
10674
+ */
10675
+ Hub.prototype.captureMessage = function (message, level, hint) {
10676
+ var eventId = (this._lastEventId = (0,misc/* uuid4 */.DM)());
10677
+ var finalHint = hint;
10678
+ // If there's no explicit hint provided, mimick the same thing that would happen
10679
+ // in the minimal itself to create a consistent behavior.
10680
+ // We don't do this in the client, as it's the lowest level API, and doing this,
10681
+ // would prevent user from having full control over direct calls.
10682
+ if (!hint) {
10683
+ var syntheticException = void 0;
10684
+ try {
10685
+ throw new Error(message);
10686
+ }
10687
+ catch (exception) {
10688
+ syntheticException = exception;
10689
+ }
10690
+ finalHint = {
10691
+ originalException: message,
10692
+ syntheticException: syntheticException,
10693
+ };
10694
+ }
10695
+ this._invokeClient('captureMessage', message, level, tslib_es6_assign(tslib_es6_assign({}, finalHint), { event_id: eventId }));
10696
+ return eventId;
10697
+ };
10698
+ /**
10699
+ * @inheritDoc
10700
+ */
10701
+ Hub.prototype.captureEvent = function (event, hint) {
10702
+ var eventId = (this._lastEventId = (0,misc/* uuid4 */.DM)());
10703
+ this._invokeClient('captureEvent', event, tslib_es6_assign(tslib_es6_assign({}, hint), { event_id: eventId }));
10704
+ return eventId;
10705
+ };
10706
+ /**
10707
+ * @inheritDoc
10708
+ */
10709
+ Hub.prototype.lastEventId = function () {
10710
+ return this._lastEventId;
10711
+ };
10712
+ /**
10713
+ * @inheritDoc
10714
+ */
10715
+ Hub.prototype.addBreadcrumb = function (breadcrumb, hint) {
10716
+ var _a = this.getStackTop(), scope = _a.scope, client = _a.client;
10717
+ if (!scope || !client)
10718
+ return;
10719
+ // eslint-disable-next-line @typescript-eslint/unbound-method
10720
+ var _b = (client.getOptions && client.getOptions()) || {}, _c = _b.beforeBreadcrumb, beforeBreadcrumb = _c === void 0 ? null : _c, _d = _b.maxBreadcrumbs, maxBreadcrumbs = _d === void 0 ? DEFAULT_BREADCRUMBS : _d;
10721
+ if (maxBreadcrumbs <= 0)
10722
+ return;
10723
+ var timestamp = (0,time/* dateTimestampInSeconds */.yW)();
10724
+ var mergedBreadcrumb = tslib_es6_assign({ timestamp: timestamp }, breadcrumb);
10725
+ var finalBreadcrumb = beforeBreadcrumb
10726
+ ? (0,misc/* consoleSandbox */.Cf)(function () { return beforeBreadcrumb(mergedBreadcrumb, hint); })
10727
+ : mergedBreadcrumb;
10728
+ if (finalBreadcrumb === null)
10729
+ return;
10730
+ scope.addBreadcrumb(finalBreadcrumb, Math.min(maxBreadcrumbs, MAX_BREADCRUMBS));
10731
+ };
10732
+ /**
10733
+ * @inheritDoc
10734
+ */
10735
+ Hub.prototype.setUser = function (user) {
10736
+ var scope = this.getScope();
10737
+ if (scope)
10738
+ scope.setUser(user);
10739
+ };
10740
+ /**
10741
+ * @inheritDoc
10742
+ */
10743
+ Hub.prototype.setTags = function (tags) {
10744
+ var scope = this.getScope();
10745
+ if (scope)
10746
+ scope.setTags(tags);
10747
+ };
10748
+ /**
10749
+ * @inheritDoc
10750
+ */
10751
+ Hub.prototype.setExtras = function (extras) {
10752
+ var scope = this.getScope();
10753
+ if (scope)
10754
+ scope.setExtras(extras);
10755
+ };
10756
+ /**
10757
+ * @inheritDoc
10758
+ */
10759
+ Hub.prototype.setTag = function (key, value) {
10760
+ var scope = this.getScope();
10761
+ if (scope)
10762
+ scope.setTag(key, value);
10763
+ };
10764
+ /**
10765
+ * @inheritDoc
10766
+ */
10767
+ Hub.prototype.setExtra = function (key, extra) {
10768
+ var scope = this.getScope();
10769
+ if (scope)
10770
+ scope.setExtra(key, extra);
10771
+ };
10772
+ /**
10773
+ * @inheritDoc
10774
+ */
10775
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10776
+ Hub.prototype.setContext = function (name, context) {
10777
+ var scope = this.getScope();
10778
+ if (scope)
10779
+ scope.setContext(name, context);
10780
+ };
10781
+ /**
10782
+ * @inheritDoc
10783
+ */
10784
+ Hub.prototype.configureScope = function (callback) {
10785
+ var _a = this.getStackTop(), scope = _a.scope, client = _a.client;
10786
+ if (scope && client) {
10787
+ callback(scope);
10788
+ }
10789
+ };
10790
+ /**
10791
+ * @inheritDoc
10792
+ */
10793
+ Hub.prototype.run = function (callback) {
10794
+ var oldHub = makeMain(this);
10795
+ try {
10796
+ callback(this);
10797
+ }
10798
+ finally {
10799
+ makeMain(oldHub);
10800
+ }
10801
+ };
10802
+ /**
10803
+ * @inheritDoc
10804
+ */
10805
+ Hub.prototype.getIntegration = function (integration) {
10806
+ var client = this.getClient();
10807
+ if (!client)
10808
+ return null;
10809
+ try {
10810
+ return client.getIntegration(integration);
10811
+ }
10812
+ catch (_oO) {
10813
+ logger.warn("Cannot retrieve integration " + integration.id + " from the current Hub");
10814
+ return null;
10815
+ }
10816
+ };
10817
+ /**
10818
+ * @inheritDoc
10819
+ */
10820
+ Hub.prototype.startSpan = function (context) {
10821
+ return this._callExtensionMethod('startSpan', context);
10822
+ };
10823
+ /**
10824
+ * @inheritDoc
10825
+ */
10826
+ Hub.prototype.startTransaction = function (context, customSamplingContext) {
10827
+ return this._callExtensionMethod('startTransaction', context, customSamplingContext);
10828
+ };
10829
+ /**
10830
+ * @inheritDoc
10831
+ */
10832
+ Hub.prototype.traceHeaders = function () {
10833
+ return this._callExtensionMethod('traceHeaders');
10834
+ };
10835
+ /**
10836
+ * @inheritDoc
10837
+ */
10838
+ Hub.prototype.startSession = function (context) {
10839
+ // End existing session if there's one
10840
+ this.endSession();
10841
+ var _a = this.getStackTop(), scope = _a.scope, client = _a.client;
10842
+ var _b = (client && client.getOptions()) || {}, release = _b.release, environment = _b.environment;
10843
+ var session = new Session(tslib_es6_assign(tslib_es6_assign({ release: release,
10844
+ environment: environment }, (scope && { user: scope.getUser() })), context));
10845
+ if (scope) {
10846
+ scope.setSession(session);
10847
+ }
10848
+ return session;
10849
+ };
10850
+ /**
10851
+ * @inheritDoc
10852
+ */
10853
+ Hub.prototype.endSession = function () {
10854
+ var _a = this.getStackTop(), scope = _a.scope, client = _a.client;
10855
+ if (!scope)
10856
+ return;
10857
+ var session = scope.getSession && scope.getSession();
10858
+ if (session) {
10859
+ session.close();
10860
+ if (client && client.captureSession) {
10861
+ client.captureSession(session);
10862
+ }
10863
+ scope.setSession();
10864
+ }
10865
+ };
10866
+ /**
10867
+ * Internal helper function to call a method on the top client if it exists.
10868
+ *
10869
+ * @param method The method to call on the client.
10870
+ * @param args Arguments to pass to the client function.
10871
+ */
10872
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10873
+ Hub.prototype._invokeClient = function (method) {
10874
+ var _a;
10875
+ var args = [];
10876
+ for (var _i = 1; _i < arguments.length; _i++) {
10877
+ args[_i - 1] = arguments[_i];
10878
+ }
10879
+ var _b = this.getStackTop(), scope = _b.scope, client = _b.client;
10880
+ if (client && client[method]) {
10881
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
10882
+ (_a = client)[method].apply(_a, tslib_es6_spread(args, [scope]));
10883
+ }
10884
+ };
10885
+ /**
10886
+ * Calls global extension method and binding current instance to the function call
10887
+ */
10888
+ // @ts-ignore Function lacks ending return statement and return type does not include 'undefined'. ts(2366)
10889
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10890
+ Hub.prototype._callExtensionMethod = function (method) {
10891
+ var args = [];
10892
+ for (var _i = 1; _i < arguments.length; _i++) {
10893
+ args[_i - 1] = arguments[_i];
10894
+ }
10895
+ var carrier = getMainCarrier();
10896
+ var sentry = carrier.__SENTRY__;
10897
+ if (sentry && sentry.extensions && typeof sentry.extensions[method] === 'function') {
10898
+ return sentry.extensions[method].apply(this, args);
10899
+ }
10900
+ logger.warn("Extension method " + method + " couldn't be found, doing nothing.");
10901
+ };
10902
+ return Hub;
10903
+ }());
10904
+
10905
+ /** Returns the global shim registry. */
10906
+ function getMainCarrier() {
10907
+ var carrier = (0,misc/* getGlobalObject */.Rf)();
10908
+ carrier.__SENTRY__ = carrier.__SENTRY__ || {
10909
+ extensions: {},
10910
+ hub: undefined,
10911
+ };
10912
+ return carrier;
10913
+ }
10914
+ /**
10915
+ * Replaces the current main hub with the passed one on the global object
10916
  *
10917
+ * @returns The old replaced hub
 
10918
  */
10919
+ function makeMain(hub) {
10920
+ var registry = getMainCarrier();
10921
+ var oldHub = getHubFromCarrier(registry);
10922
+ setHubOnCarrier(registry, hub);
10923
+ return oldHub;
10924
+ }
 
 
 
 
 
 
 
10925
  /**
10926
+ * Returns the default hub instance.
10927
  *
10928
+ * If a hub is already registered in the global carrier but this module
10929
+ * contains a more recent version, it replaces the registered version.
10930
+ * Otherwise, the currently registered hub will be returned.
 
 
 
10931
  */
10932
+ function hub_getCurrentHub() {
10933
+ // Get main carrier (global for every environment)
10934
+ var registry = getMainCarrier();
10935
+ // If there's no hub, or its an old API, assign a new one
10936
+ if (!hasHubOnCarrier(registry) || getHubFromCarrier(registry).isOlderThan(API_VERSION)) {
10937
+ setHubOnCarrier(registry, new Hub());
 
 
 
 
 
 
 
 
 
 
10938
  }
10939
+ // Prefer domains over global if they are there (applicable only to Node environment)
10940
+ if ((0,node/* isNodeEnv */.KV)()) {
10941
+ return getHubFromActiveDomain(registry);
 
10942
  }
10943
+ // Return hub that lives on a global object
10944
+ return getHubFromCarrier(registry);
10945
  }
 
 
 
 
 
 
 
 
10946
  /**
10947
+ * Returns the active domain, if one exists
 
 
 
 
 
 
 
 
 
 
10948
  *
10949
+ * @returns The domain, or undefined if there is no active domain
 
10950
  */
10951
+ function getActiveDomain() {
10952
+ var sentry = getMainCarrier().__SENTRY__;
10953
+ return sentry && sentry.extensions && sentry.extensions.domain && sentry.extensions.domain.active;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10954
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10955
  /**
10956
+ * Try to read the hub from an active domain, and fallback to the registry if one doesn't exist
10957
+ * @returns discovered hub
10958
  */
10959
+ function getHubFromActiveDomain(registry) {
10960
+ try {
10961
+ var activeDomain = getActiveDomain();
10962
+ // If there's no active domain, just return global hub
10963
+ if (!activeDomain) {
10964
+ return getHubFromCarrier(registry);
10965
+ }
10966
+ // If there's no hub on current domain, or it's an old API, assign a new one
10967
+ if (!hasHubOnCarrier(activeDomain) || getHubFromCarrier(activeDomain).isOlderThan(API_VERSION)) {
10968
+ var registryHubTopStack = getHubFromCarrier(registry).getStackTop();
10969
+ setHubOnCarrier(activeDomain, new Hub(registryHubTopStack.client, Scope.clone(registryHubTopStack.scope)));
10970
+ }
10971
+ // Return hub that lives on a domain
10972
+ return getHubFromCarrier(activeDomain);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10973
  }
10974
+ catch (_Oo) {
10975
+ // Return hub that lives on a global object
10976
+ return getHubFromCarrier(registry);
 
 
 
 
 
 
 
 
 
 
 
 
10977
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10978
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10979
  /**
10980
+ * This will tell whether a carrier has a hub on it or not
10981
+ * @param carrier object
10982
+ */
10983
+ function hasHubOnCarrier(carrier) {
10984
+ return !!(carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub);
10985
+ }
10986
+ /**
10987
+ * This will create a new {@link Hub} and add to the passed object on
10988
+ * __SENTRY__.hub.
10989
+ * @param carrier object
10990
+ * @hidden
 
 
 
 
10991
  */
10992
+ function getHubFromCarrier(carrier) {
10993
+ if (carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub)
10994
+ return carrier.__SENTRY__.hub;
10995
+ carrier.__SENTRY__ = carrier.__SENTRY__ || {};
10996
+ carrier.__SENTRY__.hub = new Hub();
10997
+ return carrier.__SENTRY__.hub;
10998
+ }
10999
+ /**
11000
+ * This will set passed {@link Hub} on the passed object's __SENTRY__.hub attribute
11001
+ * @param carrier object
11002
+ * @param hub Hub
11003
+ */
11004
+ function setHubOnCarrier(carrier, hub) {
11005
+ if (!carrier)
11006
+ return false;
11007
+ carrier.__SENTRY__ = carrier.__SENTRY__ || {};
11008
+ carrier.__SENTRY__.hub = hub;
11009
+ return true;
11010
+ }
11011
+ //# sourceMappingURL=hub.js.map
11012
+ ;// CONCATENATED MODULE: ./node_modules/@sentry/minimal/esm/index.js
11013
 
 
 
 
 
 
 
11014
 
11015
  /**
11016
+ * This calls a function on the current hub.
11017
+ * @param method function to call on hub.
11018
+ * @param args to pass to function.
 
 
11019
  */
11020
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11021
+ function callOnHub(method) {
11022
+ var args = [];
11023
+ for (var _i = 1; _i < arguments.length; _i++) {
11024
+ args[_i - 1] = arguments[_i];
11025
  }
11026
+ var hub = hub_getCurrentHub();
11027
+ if (hub && hub[method]) {
11028
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11029
+ return hub[method].apply(hub, tslib_es6_spread(args));
11030
+ }
11031
+ throw new Error("No hub defined or " + method + " was not found on the hub, please open a bug report.");
11032
  }
11033
  /**
11034
+ * Captures an exception event and sends it to Sentry.
 
11035
  *
11036
+ * @param exception An exception-like object.
11037
+ * @returns The generated eventId.
 
11038
  */
11039
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
11040
+ function captureException(exception, captureContext) {
11041
+ var syntheticException;
11042
+ try {
11043
+ throw new Error('Sentry syntheticException');
 
 
 
 
 
 
 
 
 
 
 
 
11044
  }
11045
+ catch (exception) {
11046
+ syntheticException = exception;
11047
  }
11048
+ return callOnHub('captureException', exception, {
11049
+ captureContext: captureContext,
11050
+ originalException: exception,
11051
+ syntheticException: syntheticException,
11052
+ });
11053
+ }
11054
+ /**
11055
+ * Captures a message event and sends it to Sentry.
11056
+ *
11057
+ * @param message The message to send to Sentry.
11058
+ * @param level Define the level of the message.
11059
+ * @returns The generated eventId.
11060
+ */
11061
+ function captureMessage(message, captureContext) {
11062
+ var syntheticException;
11063
+ try {
11064
+ throw new Error(message);
11065
  }
11066
+ catch (exception) {
11067
+ syntheticException = exception;
11068
  }
11069
+ // This is necessary to provide explicit scopes upgrade, without changing the original
11070
+ // arity of the `captureMessage(message, level)` method.
11071
+ var level = typeof captureContext === 'string' ? captureContext : undefined;
11072
+ var context = typeof captureContext !== 'string' ? { captureContext: captureContext } : undefined;
11073
+ return callOnHub('captureMessage', message, level, __assign({ originalException: message, syntheticException: syntheticException }, context));
11074
  }
11075
  /**
11076
+ * Captures a manually created event and sends it to Sentry.
11077
+ *
11078
+ * @param event The event to send to Sentry.
11079
+ * @returns The generated eventId.
11080
+ */
11081
+ function captureEvent(event) {
11082
+ return callOnHub('captureEvent', event);
11083
+ }
11084
+ /**
11085
+ * Callback to set context information onto the scope.
11086
+ * @param callback Callback function that receives Scope.
11087
+ */
11088
+ function configureScope(callback) {
11089
+ callOnHub('configureScope', callback);
11090
+ }
11091
+ /**
11092
+ * Records a new breadcrumb which will be attached to future events.
11093
+ *
11094
+ * Breadcrumbs will be added to subsequent events to provide more context on
11095
+ * user's actions prior to an error or crash.
11096
+ *
11097
+ * @param breadcrumb The breadcrumb to record.
11098
+ */
11099
+ function addBreadcrumb(breadcrumb) {
11100
+ callOnHub('addBreadcrumb', breadcrumb);
11101
+ }
11102
+ /**
11103
+ * Sets context data with the given name.
11104
+ * @param name of the context
11105
+ * @param context Any kind of data. This data will be normalized.
11106
  */
11107
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11108
+ function setContext(name, context) {
11109
+ callOnHub('setContext', name, context);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11110
  }
11111
  /**
11112
+ * Set an object that will be merged sent as extra data with the event.
11113
+ * @param extras Extras object to merge into current context.
 
11114
  */
11115
+ function setExtras(extras) {
11116
+ callOnHub('setExtras', extras);
11117
+ }
11118
+ /**
11119
+ * Set an object that will be merged sent as tags data with the event.
11120
+ * @param tags Tags context object to merge into current context.
11121
+ */
11122
+ function setTags(tags) {
11123
+ callOnHub('setTags', tags);
11124
+ }
11125
+ /**
11126
+ * Set key:value that will be sent as extra data with the event.
11127
+ * @param key String of extra
11128
+ * @param extra Any kind of data. This data will be normalized.
11129
+ */
11130
+ function setExtra(key, extra) {
11131
+ callOnHub('setExtra', key, extra);
11132
+ }
11133
+ /**
11134
+ * Set key:value that will be sent as tags data with the event.
11135
+ *
11136
+ * Can also be used to unset a tag, by passing `undefined`.
11137
+ *
11138
+ * @param key String key of tag
11139
+ * @param value Value of tag
11140
+ */
11141
+ function setTag(key, value) {
11142
+ callOnHub('setTag', key, value);
11143
+ }
11144
+ /**
11145
+ * Updates user context information for future events.
11146
+ *
11147
+ * @param user User context object to be set in the current context. Pass `null` to unset the user.
11148
+ */
11149
+ function setUser(user) {
11150
+ callOnHub('setUser', user);
11151
+ }
11152
+ /**
11153
+ * Creates a new scope with and executes the given operation within.
11154
+ * The scope is automatically removed once the operation
11155
+ * finishes or throws.
11156
+ *
11157
+ * This is essentially a convenience function for:
11158
+ *
11159
+ * pushScope();
11160
+ * callback();
11161
+ * popScope();
11162
+ *
11163
+ * @param callback that will be enclosed into push/popScope.
11164
+ */
11165
+ function withScope(callback) {
11166
+ callOnHub('withScope', callback);
11167
+ }
11168
+ /**
11169
+ * Calls a function on the latest client. Use this with caution, it's meant as
11170
+ * in "internal" helper so we don't need to expose every possible function in
11171
+ * the shim. It is not guaranteed that the client actually implements the
11172
+ * function.
11173
+ *
11174
+ * @param method The method to call on the client/client.
11175
+ * @param args Arguments to pass to the client/fontend.
11176
+ * @hidden
11177
+ */
11178
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11179
+ function _callOnClient(method) {
11180
+ var args = [];
11181
+ for (var _i = 1; _i < arguments.length; _i++) {
11182
+ args[_i - 1] = arguments[_i];
11183
  }
11184
+ callOnHub.apply(void 0, __spread(['_invokeClient', method], args));
11185
  }
 
 
 
 
 
 
 
 
11186
  /**
11187
+ * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
 
11188
  *
11189
+ * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
11190
+ * new child span within the transaction or any span, call the respective `.startChild()` method.
 
 
 
11191
  *
11192
+ * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
 
 
 
 
 
 
 
11193
  *
11194
+ * The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its
11195
+ * finished child spans will be sent to Sentry.
11196
  *
11197
+ * @param context Properties of the new `Transaction`.
11198
+ * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent
11199
+ * default values). See {@link Options.tracesSampler}.
11200
  *
11201
+ * @returns The transaction which was just started
 
11202
  */
11203
+ function startTransaction(context, customSamplingContext) {
11204
+ return callOnHub('startTransaction', __assign({}, context), customSamplingContext);
11205
  }
11206
+ //# sourceMappingURL=index.js.map
11207
+ ;// CONCATENATED MODULE: ./src/js/utils/reloadPreview.js
11208
 
11209
+ /**
11210
+ * Reload preview
11211
+ */
11212
 
11213
+ function reloadPreview(forceReloadPreview) {
11214
+ // Post reload buttonizer
11215
+ try {
11216
+ document.querySelector(".buttonizer-preview iframe").contentWindow.postMessage({
11217
+ eventType: "buttonizer",
11218
+ messageType: "preview-reload",
11219
+ message: {
11220
+ force: forceReloadPreview
11221
+ }
11222
+ }, document.location.origin);
11223
+ } catch (e) {
11224
+ console.log("Buttonizer tried to auto update the Buttonizer Buttons. But the message didn't came through. Well. Doesn't matter, it's just an extra function. It's nice to have.");
11225
+ console.error(e);
11226
+ captureException(e);
11227
+ document.querySelector(".buttonizer-preview iframe").contentWindow.location.reload();
11228
+ }
11229
+ }
11230
+ ;// CONCATENATED MODULE: ./src/js/utils/reloadPreviewIframe.js
11231
+ /**
11232
+ * Force reload page
11233
+ */
11234
+ function reloadPreviewIframe() {
11235
+ // Reload the iframe
11236
+ var iframe = document.querySelector(".buttonizer-preview iframe");
11237
 
11238
+ if (iframe != null) {
11239
+ if (iframe.contentWindow && iframe.contentWindow.location) {
11240
+ iframe.contentWindow.location.reload();
11241
+ } else {
11242
+ iframe.src = iframe.src;
11243
+ }
11244
 
11245
+ return true;
11246
+ }
 
 
 
 
 
 
 
 
 
11247
 
11248
+ return null;
11249
+ }
11250
+ // EXTERNAL MODULE: ./node_modules/lodash/isEqual.js
11251
+ var isEqual = __webpack_require__(18446);
11252
+ var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
11253
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/actions/Queue.js
11254
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11255
 
11256
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
11257
 
11258
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11259
 
11260
+ function Queue_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11261
 
11262
+ /* global Promise */
11263
 
11264
 
 
 
 
 
 
 
11265
 
11266
+ var SavingQueue = /*#__PURE__*/function () {
11267
+ function SavingQueue() {
11268
+ _classCallCheck(this, SavingQueue);
11269
+ }
11270
 
11271
+ _createClass(SavingQueue, null, [{
11272
+ key: "enqueue",
11273
+ value: function enqueue(promise) {
11274
+ var _this = this;
11275
 
11276
+ return new Promise(function (resolve, reject) {
11277
+ _this.queue.push({
11278
+ promise: promise,
11279
+ resolve: resolve,
11280
+ reject: reject
11281
+ });
11282
 
11283
+ _this.dequeue();
11284
+ });
11285
+ }
11286
+ }, {
11287
+ key: "dequeue",
11288
+ value: function dequeue() {
11289
+ var _this2 = this;
11290
 
11291
+ if (this.workingOnPromise) {
11292
+ return false;
11293
+ }
11294
 
11295
+ var item = this.queue.shift();
 
11296
 
11297
+ if (!item) {
11298
+ return false;
11299
+ }
11300
 
11301
+ try {
11302
+ this.workingOnPromise = true;
11303
+ dashboard_store.dispatch(changeIsUpdating(true));
11304
+ item.promise().then(function (value) {
11305
+ _this2.workingOnPromise = false;
11306
+ item.resolve(value);
11307
 
11308
+ _this2.dequeue();
11309
+ })["catch"](function (err) {
11310
+ _this2.workingOnPromise = false;
11311
+ item.reject(err);
11312
 
11313
+ _this2.dequeue();
11314
+ });
11315
+ } catch (err) {
11316
+ this.workingOnPromise = false;
11317
+ item.reject(err);
11318
+ this.dequeue();
11319
+ }
11320
 
11321
+ return true;
11322
+ }
11323
+ }]);
11324
 
11325
+ return SavingQueue;
11326
+ }();
11327
 
11328
+ Queue_defineProperty(SavingQueue, "queue", []);
 
11329
 
11330
+ Queue_defineProperty(SavingQueue, "workingOnPromise", false);
 
 
 
 
 
 
11331
 
 
 
 
 
11332
 
11333
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/actions/savingMiddleware.js
 
 
 
11334
 
 
 
 
 
11335
 
 
 
 
 
11336
 
 
 
 
 
 
 
11337
 
 
 
 
 
11338
 
 
 
 
 
11339
 
 
 
 
 
11340
 
 
 
 
 
11341
 
 
 
 
 
11342
 
11343
+ var timer = setTimeout(function () {});
11344
+ var currentState = {};
11345
+ /**
11346
+ * Save groups & buttons
11347
+ */
11348
+
11349
+ function save() {
11350
+ clearTimeout(timer);
11351
+ timer = setTimeout(function () {
11352
+ var oldStore = merge_default()({}, currentState);
11353
+ currentState = dashboard_store.getState();
11354
+
11355
+ if (isEqual_default()(oldStore, {}) || isEqual_default()(currentState, {}) || isEqual_default()(oldStore, currentState) || !oldStore.misc.loading.loaded || !currentState.misc.loading.loaded) {
11356
+ return;
11357
+ }
11358
+
11359
+ if (!isEqual_default()(oldStore.buttons, currentState.buttons) || !isEqual_default()(oldStore.groups, currentState.groups)) {
11360
+ SavingQueue.enqueue(saveData(generateJSONObject(dashboard_store.getState().groups), "/buttons"));
11361
+ }
11362
+ /* webpack-strip-block:removed */
11363
+
11364
+
11365
+ if (!isEqual_default()(oldStore.settings, currentState.settings)) {
11366
+ SavingQueue.enqueue(saveData(dashboard_store.getState().settings, "/settings", true));
11367
+ if (oldStore.settings.icon_library !== currentState.settings.icon_library || oldStore.settings.icon_library_version !== currentState.settings.icon_library_version || oldStore.settings.icon_library_code !== currentState.settings.icon_library_code || oldStore.settings.import_icon_library !== currentState.settings.import_icon_library) SavingQueue.enqueue(function () {
11368
+ return new Promise(function (resolve) {
11369
+ reloadPreviewIframe();
11370
+ resolve();
11371
+ });
11372
+ });
11373
+ }
11374
+ }, 1500);
11375
+ }
11376
+
11377
+ var saveData = function saveData(data, endpoint) {
11378
+ var forceReloadPreview = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
11379
+
11380
+ var fail = function fail(e) {
11381
+ if (e && e.request) {
11382
+ dashboard_store.dispatch(changeIsUpdating({
11383
+ status: e.request.status,
11384
+ statusText: e.request.statusText ? e.request.statusText : "Unknown",
11385
+ message: e.request.response ? JSON.parse(e.request.response).message ? JSON.parse(e.request.response).message : e.request.response : e.message
11386
+ }));
11387
+ } else {
11388
+ dashboard_store.dispatch(changeIsUpdating("failed"));
11389
+ }
11390
+
11391
+ console.error("Something went wrong trying to update this model: \n", e);
11392
+ captureException(e);
11393
+ };
11394
+
11395
+ return function () {
11396
+ return savingHelpers_apiRequest(endpoint, {
11397
+ method: "POST",
11398
+ data: {
11399
+ nonce: buttonizer_admin.nonce,
11400
+ data: data
11401
+ }
11402
+ }).then(function (_ref) {
11403
+ var data = _ref.data;
11404
+ app.setHasChanges(true);
11405
+
11406
+ if (data === null || data.status !== "success") {
11407
+ fail();
11408
+ return;
11409
+ }
11410
+
11411
+ dashboard_store.dispatch(changeIsUpdating(false));
11412
+ reloadPreview(forceReloadPreview);
11413
+ })["catch"](fail);
11414
+ };
11415
+ };
11416
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/reducers/wpReducer.js
11417
 
 
 
 
 
11418
 
11419
+ var wpReducer_initialStore = {
11420
+ loading: {
11421
+ posts: false,
11422
+ pages: false,
11423
+ categories: false,
11424
+ roles: false
11425
+ },
11426
+ loaded: {
11427
+ posts: false,
11428
+ pages: false,
11429
+ categories: false,
11430
+ roles: false
11431
+ },
11432
+ data: {
11433
+ posts: [],
11434
+ pages: [],
11435
+ categories: [],
11436
+ roles: []
11437
+ }
11438
+ };
11439
+ /* harmony default export */ function wpReducer() {
11440
+ var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : wpReducer_initialStore;
11441
+ var action = arguments.length > 1 ? arguments[1] : undefined;
11442
+ if (action.type === buttonizer_constants_actionTypes.INIT) return wpReducer_initialStore;
11443
+ return fn(store, function (draftStore) {
11444
+ switch (action.type) {
11445
+ case buttonizer_constants_actionTypes.wp.GET_DATA_BEGIN:
11446
+ {
11447
+ draftStore.loading[action.payload.type] = true;
11448
+ break;
11449
+ }
11450
 
11451
+ case buttonizer_constants_actionTypes.wp.GET_DATA_END:
11452
+ {
11453
+ draftStore.loading[action.payload.type] = false;
11454
+ break;
11455
+ }
11456
 
11457
+ case buttonizer_constants_actionTypes.wp.GET_DATA_FAILURE:
11458
+ {
11459
+ console.error(action.payload.error);
11460
+ break;
11461
+ }
11462
+
11463
+ case buttonizer_constants_actionTypes.wp.GET_DATA_SUCCESS:
11464
+ {
11465
+ draftStore.data[action.payload.type] = action.payload.data;
11466
+ draftStore.loaded[action.payload.type] = true;
11467
+ break;
11468
+ }
11469
  }
11470
+ });
11471
+ }
11472
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/reducers/timeScheduleReducer.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11473
 
 
 
 
 
 
 
 
 
 
 
11474
 
 
 
 
11475
 
11476
+ /* harmony default export */ function timeScheduleReducer() {
11477
+ var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
11478
+ var action = arguments.length > 1 ? arguments[1] : undefined;
11479
+ if (action.type === buttonizer_constants_actionTypes.INIT) return action.payload.timeSchedules;
11480
+ return immer_esm(store, function (draftStore) {
11481
+ switch (action.type) {
11482
+ case buttonizer_constants_actionTypes.timeSchedules.ADD_RECORD:
11483
+ {
11484
+ // Add data to store/model
11485
+ draftStore[action.payload.record.id] = action.payload.record;
11486
+ break;
11487
+ }
11488
 
11489
+ case buttonizer_constants_actionTypes.timeSchedules.REMOVE_RECORD:
11490
+ {
11491
+ delete draftStore[action.payload.id];
11492
+ break;
11493
+ }
11494
 
11495
+ /**
11496
+ * Button actions
11497
+ */
11498
 
11499
+ case buttonizer_constants_actionTypes.timeSchedules.SET_KEY_VALUE:
11500
+ {
11501
+ draftStore[action.payload.id][action.payload.key] = action.payload.value;
11502
+ break;
11503
+ }
11504
 
11505
+ /**
11506
+ * Time Schedule reducers
11507
+ */
11508
 
11509
+ case buttonizer_constants_actionTypes.timeSchedules.SET_WEEKDAY:
11510
+ {
11511
+ draftStore[action.payload.id].weekdays[action.payload.weekdayKey][action.payload.key] = action.payload.value;
11512
+ break;
11513
+ }
11514
 
11515
+ case buttonizer_constants_actionTypes.timeSchedules.ADD_EXCLUDED_DATE:
11516
+ {
11517
+ draftStore[action.payload.id].dates.push({
11518
+ opened: true,
11519
+ open: "8:00",
11520
+ close: "17:00",
11521
+ date: dateToFormat(new Date())
11522
+ });
11523
+ break;
11524
+ }
 
 
 
 
11525
 
11526
+ case buttonizer_constants_actionTypes.timeSchedules.SET_EXCLUDED_DATE:
11527
+ {
11528
+ draftStore[action.payload.id].dates[action.payload.dateKey][action.payload.key] = action.payload.value;
11529
+ break;
11530
+ }
11531
+
11532
+ case buttonizer_constants_actionTypes.timeSchedules.REMOVE_EXCLUDED_DATE:
11533
+ {
11534
+ draftStore[action.payload.id].dates.splice(action.payload.dateKey, 1);
11535
+ break;
11536
+ }
11537
  }
11538
+ });
11539
+ }
11540
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/reducers/rootReducer.js
 
 
 
 
 
11541
 
 
 
 
 
 
 
 
 
 
11542
 
11543
+ var defaultStore = {
11544
+ loading: {},
11545
+ drawer: ""
11546
+ };
11547
+ /* harmony default export */ function rootReducer() {
11548
+ var store = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultStore;
11549
+ var action = arguments.length > 1 ? arguments[1] : undefined;
11550
+ return immer_esm(store, function (draftStore) {
11551
+ switch (action.type) {
11552
+ case buttonizer_constants_actionTypes.INIT:
11553
+ {
11554
+ draftStore.frameUrl = action.payload.wordpress.base + "?buttonizer-preview=1"; // Start loading iframe
11555
 
11556
+ draftStore.loading.loadingIframe = true; // Show loading
 
 
 
 
 
 
 
 
11557
 
11558
+ draftStore.loading.showLoading = true;
11559
+ draftStore.loading.loadingString = "loading.website";
11560
+ draftStore.hasChanges = action.payload.hasChanges === "1";
11561
+ draftStore.loading.loaded = true;
11562
+ draftStore.wordpress = action.payload.wordpress;
11563
+ draftStore._premium = action.payload.premium;
11564
+ draftStore.is_opt_in = action.payload.is_opt_in;
11565
+ draftStore.additional_permissions = action.payload.additional_permissions;
11566
+ draftStore._premiumCode = action.payload.premium_code;
11567
+ break;
11568
+ }
11569
 
11570
+ case buttonizer_constants_actionTypes.GET_DATA_BEGIN:
11571
+ {
11572
+ draftStore.loading.showLoading = true;
11573
+ draftStore.loading.loadingString = "loading.loading";
11574
+ break;
11575
+ }
11576
 
11577
+ case buttonizer_constants_actionTypes.GET_DATA_SUCCESS:
11578
+ {
11579
+ draftStore.loading.showLoading = false;
11580
+ draftStore.loading.fetchError = null;
11581
+ draftStore.loading.loaded = true;
11582
+ break;
11583
+ }
11584
 
11585
+ case buttonizer_constants_actionTypes.GET_DATA_FAILURE:
11586
+ {
11587
+ draftStore.loading.showLoading = false;
11588
+ draftStore.loading.fetchError = action.payload.error;
11589
+ console.error(action.payload.error);
11590
+ break;
11591
+ }
11592
 
11593
+ case buttonizer_constants_actionTypes.HAS_CHANGES:
11594
+ {
11595
+ draftStore.hasChanges = action.payload.hasChanges;
11596
+ break;
11597
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
11598
 
11599
+ case buttonizer_constants_actionTypes.STOP_LOADING:
11600
+ {
11601
+ draftStore.loading.showLoading = false;
11602
+ draftStore.loading.loadingSlowWebsite = false;
11603
+ draftStore.loading.loadingIframe = false;
11604
+ break;
11605
+ }
11606
+ }
11607
+ });
11608
+ }
11609
+ ;// CONCATENATED MODULE: ./src/js/dashboard/store/reducers/pageRuleReducer.js
11610