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

Version Description

Release date: November 23, 2021

It's time for a warm welcome, we've added the Buttonizer tour again! This time we have two different tours available. If you have ideas for new tours, let us know!

Changelog: - New Buttonizer tour (two tours available) - Update form validation for URL, email and phone number fields - Disallow HTML in button labels - Fixed an issue with placeholder buttons mismatching dashboard data on new installs Some additional small fixes

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

Public beta: We've been working on a standalone version of Buttonizer which you can use on any CMS, read more here!

Download this release

Release Info

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

Code changes from version 2.5.4 to 2.5.5

app/Admin/Translations.php CHANGED
@@ -30,6 +30,7 @@ class Translations
30
  'saving' => $this->saving(),
31
  'revert' => $this->reverting(),
32
  'welcome' => $this->welcome(),
 
33
  'import_export' => $this->import_export(),
34
  'settings' => $this->settings(),
35
  'settings_window' => $this->settings_window(),
@@ -1040,6 +1041,32 @@ class Translations
1040
  ]
1041
  ],
1042
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1043
  // Reset
1044
  'reset' => [
1045
  'title' => __('Reset Buttonizer', 'buttonizer-multifunctional-button'),
@@ -1550,6 +1577,195 @@ class Translations
1550
  ];
1551
  }
1552
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1553
  /**
1554
  * Warm welcome!
1555
  *
@@ -1568,7 +1784,7 @@ class Translations
1568
  'learn-more' => __('Learn more', 'buttonizer-multifunctional-button'),
1569
  'no-thanks' => __('No thanks', 'buttonizer-multifunctional-button'),
1570
  'yes-please' => __('Yes please!', 'buttonizer-multifunctional-button'),
1571
- 'tour' => __('We\'ve created a tour for our new users. Would you like to take the tour?', 'buttonizer-multifunctional-button'),
1572
  'already_know' => __('No thanks, I know how it works', 'buttonizer-multifunctional-button'),
1573
  'take_tour' => __('Yes please', 'buttonizer-multifunctional-button'),
1574
  'open_menu' => __('Open menu', 'buttonizer-multifunctional-button'),
30
  'saving' => $this->saving(),
31
  'revert' => $this->reverting(),
32
  'welcome' => $this->welcome(),
33
+ 'buttonizer_tour' => $this->buttonizer_tour(),
34
  'import_export' => $this->import_export(),
35
  'settings' => $this->settings(),
36
  'settings_window' => $this->settings_window(),
1041
  ]
1042
  ],
1043
 
1044
+ // Buttonizer tour
1045
+ 'buttonizer_tour' => [
1046
+ 'title' => __('Buttonizer tour', 'buttonizer-multifunctional-button'),
1047
+ 'description' => __('Helps you with step-by-step tours', 'buttonizer-multifunctional-button'),
1048
+
1049
+ 'interface' => [
1050
+ 'title' => __('Buttonizer interface', 'buttonizer-multifunctional-button'),
1051
+ 'description' => __('Make a tour through Buttonizer\'s interface', 'buttonizer-multifunctional-button'),
1052
+ ],
1053
+
1054
+ 'create_button' => [
1055
+ 'title' => __('Create a button', 'buttonizer-multifunctional-button'),
1056
+ 'description' => __('Learn how to make floating action buttons', 'buttonizer-multifunctional-button'),
1057
+ ],
1058
+
1059
+ 'page_rules' => [
1060
+ 'title' => __('Page rules', 'buttonizer-multifunctional-button'),
1061
+ 'description' => __('How to use Page Rules on different pages of your website', 'buttonizer-multifunctional-button'),
1062
+ ],
1063
+
1064
+ 'new_features' => [
1065
+ 'title' => __('New features', 'buttonizer-multifunctional-button'),
1066
+ 'description' => __('Preview the latest features and updates for Buttonizer', 'buttonizer-multifunctional-button'),
1067
+ ],
1068
+ ],
1069
+
1070
  // Reset
1071
  'reset' => [
1072
  'title' => __('Reset Buttonizer', 'buttonizer-multifunctional-button'),
1577
  ];
1578
  }
1579
 
1580
+ /**
1581
+ * Tour
1582
+ *
1583
+ * @return array
1584
+ */
1585
+ private function buttonizer_tour()
1586
+ {
1587
+ return [
1588
+ 'title_interface_tour' => __('Welcome to Buttonizer!', 'buttonizer-multifunctional-button'),
1589
+ 'intro_interface_tour' => sprintf(
1590
+ __('We\'ve created a tour for our new Buzzers. Would you like to take the tour? If not, feel free to watch a tour whenever you want. You can find all of our tours in the <b>%1$s</b> of Buttonizer.', 'buttonizer-multifunctional-button'),
1591
+ '{0}'
1592
+ ),
1593
+ 'title_new_features_tour' => __('What\'s New?', 'buttonizer-multifunctional-button'),
1594
+ 'intro_new_features_tour' => sprintf(
1595
+ __('Keep up-to-date with the newest releases, feature updates, and news from Buttonizer by following this short tour. Do not worry if you can not follow it right now! You can find this tour in the <b>%1$s</b> of Buttonizer.', 'buttonizer-multifunctional-button'),
1596
+ '{0}'
1597
+ ),
1598
+ 'already_know' => __('No, thanks', 'buttonizer-multifunctional-button'),
1599
+ 'take_tour' => __('Let\'s go', 'buttonizer-multifunctional-button'),
1600
+ 'previous' => __('Previous', 'buttonizer-multifunctional-button'),
1601
+ 'next' => __('Next', 'buttonizer-multifunctional-button'),
1602
+ 'done' => __('Done', 'buttonizer-multifunctional-button'),
1603
+
1604
+ 'final' => [
1605
+ 'title' => __('That was it! ', 'buttonizer-multifunctional-button'),
1606
+ 'intro' => sprintf(
1607
+ __('Thank you for taking the tour! If you have any questions, ask them on the <b>%s</b> forums. And if you have any feedback regarding the Buttonizer Tour, we\'d love to hear it :) Enjoy Buttonizing!', 'buttonizer-multifunctional-button'),
1608
+ '<a href="https://community.buttonizer.pro" target="_blank">Buttonizer Community</a>'
1609
+ ),
1610
+ ],
1611
+
1612
+ 'interface_tour' => [
1613
+ 'step_0' => [
1614
+ 'title' => __('Group', 'buttonizer-multifunctional-button'),
1615
+ 'intro' => __('A group can have multiple buttons that work separately from each other. This group contains your first Buttonizer button! Click on “Add button” to add more buttons to this group.', 'buttonizer-multifunctional-button'),
1616
+ ],
1617
+
1618
+ 'step_1' => [
1619
+ 'title' => __('Settings', 'buttonizer-multifunctional-button'),
1620
+ 'intro' => __('Let\'s go to the settings of the group to view the different configurations.', 'buttonizer-multifunctional-button'),
1621
+ ],
1622
+
1623
+ 'step_2' => [
1624
+ 'title' => __('General', 'buttonizer-multifunctional-button'),
1625
+ 'intro' => __('The general settings control some basic configuration for your button. You can change the label, position and style of the group here. Make sure the label is short and clear.', 'buttonizer-multifunctional-button'),
1626
+ ],
1627
+
1628
+ 'step_3' => [
1629
+ 'title' => __('Button', 'buttonizer-multifunctional-button'),
1630
+ 'intro' => __('Easily customize your button by choosing the color of your button, icon and the color. Make sure the button and text are clearly visible. You can set a different style for the normal and hover state.', 'buttonizer-multifunctional-button')
1631
+ ],
1632
+
1633
+ 'step_4' => [
1634
+ 'title' => __('Navigation', 'buttonizer-multifunctional-button'),
1635
+ 'intro' => __(' This button makes navigation between the different buttons easier. You can also go to the group’s settings.', 'buttonizer-multifunctional-button'),
1636
+ ],
1637
+
1638
+ 'step_5' => [
1639
+ 'title' => __('Publish', 'buttonizer-multifunctional-button'),
1640
+ 'intro' => __('Adjustments are automatically saved in the editor and won’t be shown on the site. Make sure to click <b>"Publish"</b> to see these changes on your website.', 'buttonizer-multifunctional-button'),
1641
+ ],
1642
+
1643
+ 'step_6' => [
1644
+ 'title' => __('Menu', 'buttonizer-multifunctional-button'),
1645
+ 'intro' => __('This menu contains a list of options where you can go to settings, Page Rules and the Buttonizer Community. You can also manage your own account here.', 'buttonizer-multifunctional-button')
1646
+ ],
1647
+
1648
+ 'step_7' => [
1649
+ 'title' => __('Settings', 'buttonizer-multifunctional-button'),
1650
+ 'intro' => __('You can change your settings for Buttonizer, including settings for Google Analytics, icon library, preferences and you can reset Buttonizer.', 'buttonizer-multifunctional-button'),
1651
+ ],
1652
+
1653
+ 'step_8' => [
1654
+ 'title' => __('More Buttonizer Tours', 'buttonizer-multifunctional-button'),
1655
+ 'intro' => __('We have more tours in store which are more in-depth and will help you improve your experience with Buttonizer even more. Go to <b><a onClick="app.closeButtonizerTour()">settings</a></b> to enjoy another tour!', 'buttonizer-multifunctional-button')
1656
+ ],
1657
+
1658
+ 'step_9' => [
1659
+ 'title' => __('Support', 'buttonizer-multifunctional-button'),
1660
+ 'intro' => __('Our support helps you troubleshoot common issues, find solutions, ask questions, and share tips with other Buzzers.', 'buttonizer-multifunctional-button'),
1661
+ ],
1662
+
1663
+ ],
1664
+
1665
+ 'create_button_tour' => [
1666
+ 'step_0' => [
1667
+ 'title' => __('New button', 'buttonizer-multifunctional-button'),
1668
+ 'intro' => __('If you would like to have a single Floating Action Button that triggers a primary action, then we would advise you to create a single button. ', 'buttonizer-multifunctional-button'),
1669
+ ],
1670
+
1671
+ 'step_1' => [
1672
+ 'title' => __('Settings for button', 'buttonizer-multifunctional-button'),
1673
+ 'intro' => __('Let\'s go to the settings of the button to view the different configurations.', 'buttonizer-multifunctional-button'),
1674
+ ],
1675
+
1676
+ 'step_2' => [
1677
+ 'title' => __('General', 'buttonizer-multifunctional-button'),
1678
+ 'intro' => __('The general settings control some basic configuration for your button. You can change the action type and the label of the button here.', 'buttonizer-multifunctional-button'),
1679
+ ],
1680
+
1681
+ 'step_3' => [
1682
+ 'title' => __('Button action', 'buttonizer-multifunctional-button'),
1683
+ 'intro' => __('The Button action in the general settings specify where to send your website visitors too once you have added an action to the button.', 'buttonizer-multifunctional-button'),
1684
+ ],
1685
+
1686
+ 'step_4' => [
1687
+ 'title' => __('Open URL in:', 'buttonizer-multifunctional-button'),
1688
+ 'intro' => __('This feature provides an easy and simple way to open the linked URL of the button action in the same tab, a new browser window or a new tab.', 'buttonizer-multifunctional-button'),
1689
+ ],
1690
+
1691
+ 'step_5' => [
1692
+ 'title' => __('Device visibility', 'buttonizer-multifunctional-button'),
1693
+ 'intro' => __('You can decide if your button should be available on mobile devices and/ or on computers.', 'buttonizer-multifunctional-button'),
1694
+ ],
1695
+
1696
+ 'step_6' => [
1697
+ 'title' => __('Label text', 'buttonizer-multifunctional-button'),
1698
+ 'intro' => __('You can add and change the text of the label here. Choose a label that is short and clear.', 'buttonizer-multifunctional-button'),
1699
+ ],
1700
+
1701
+ 'step_7' => [
1702
+ 'title' => __('Style your button', 'buttonizer-multifunctional-button'),
1703
+ 'intro' => __('If you want to change the colors of your button, then you can go to the tab Style and you will see that the first settings are the color settings for your button.', 'buttonizer-multifunctional-button'),
1704
+ ],
1705
+
1706
+ 'step_8' => [
1707
+ 'title' => __('Normal vs hover', 'buttonizer-multifunctional-button'),
1708
+ 'intro' => __('You can set a different button style for the normal and hover state.', 'buttonizer-multifunctional-button'),
1709
+ ],
1710
+
1711
+ 'step_9' => [
1712
+ 'title' => __('Background color', 'buttonizer-multifunctional-button'),
1713
+ 'intro' => __('To change the background color of a button, use the color picker. Pick a background color that improves your button\'s readability and usability.', 'buttonizer-multifunctional-button'),
1714
+ ],
1715
+
1716
+ 'step_10' => [
1717
+ 'title' => __('Border radius', 'buttonizer-multifunctional-button'),
1718
+ 'intro' => __('You can add rounded corners to a button with the border-radius property. Try to set a single radius to make circular corners.', 'buttonizer-multifunctional-button'),
1719
+ ],
1720
+
1721
+ 'step_11' => [
1722
+ 'title' => __('Icon', 'buttonizer-multifunctional-button'),
1723
+ 'intro' => __('Learn how to add a Font Awesome icon to your button.', 'buttonizer-multifunctional-button'),
1724
+ ],
1725
+
1726
+ 'step_12' => [
1727
+ 'title' => __('Icon vs image', 'buttonizer-multifunctional-button'),
1728
+ 'intro' => __('Your floating action button can contain an icon that promotes a primary action. You can either select an icon in Buttonizer or import your own image.', 'buttonizer-multifunctional-button'),
1729
+ ],
1730
+
1731
+ 'step_13' => [
1732
+ 'title' => __('Select icon', 'buttonizer-multifunctional-button'),
1733
+ 'intro' => __('Pick an icon you would like to see in your button.', 'buttonizer-multifunctional-button'),
1734
+ ],
1735
+
1736
+ 'step_14' => [
1737
+ 'title' => __('Icon size', 'buttonizer-multifunctional-button'),
1738
+ 'intro' => __('Change the size of your button icons. Increase or decrease the size of icons relative to that inherited font-size.', 'buttonizer-multifunctional-button'),
1739
+ ],
1740
+
1741
+ 'step_15' => [
1742
+ 'title' => __('Label visibility', 'buttonizer-multifunctional-button'),
1743
+ 'intro' => __('You can decide if the label next to the button should be available on mobile devices, computers or on both.', 'buttonizer-multifunctional-button'),
1744
+ ],
1745
+
1746
+ 'step_16' => [
1747
+ 'title' => __('Label position', 'buttonizer-multifunctional-button'),
1748
+ 'intro' => __('With label position you can place the label on either side of the button. You can make use of this feature right away to see which position you prefer.', 'buttonizer-multifunctional-button'),
1749
+ ],
1750
+
1751
+ 'step_17' => [
1752
+ 'title' => __('Font family', 'buttonizer-multifunctional-button'),
1753
+ 'intro' => __('Choosing the right font is an important step in making your button usable and accessible. Buttonizer automatically grabs the font family from your website, but you can also use the complete set of properties to choose the right font family. ', 'buttonizer-multifunctional-button'),
1754
+ ],
1755
+
1756
+ 'step_18' => [
1757
+ 'title' => __('Margin', 'buttonizer-multifunctional-button'),
1758
+ 'intro' => __('With margin you can create more space around your button. Try it out by using pixels or percentages.', 'buttonizer-multifunctional-button'),
1759
+ ],
1760
+
1761
+ 'step_19' => [
1762
+ 'title' => __('Padding', 'buttonizer-multifunctional-button'),
1763
+ 'intro' => __('With padding you can control the space between its content and its border. Try it out by using pixels or percentages.', 'buttonizer-multifunctional-button'),
1764
+ ],
1765
+ ]
1766
+ ];
1767
+ }
1768
+
1769
  /**
1770
  * Warm welcome!
1771
  *
1784
  'learn-more' => __('Learn more', 'buttonizer-multifunctional-button'),
1785
  'no-thanks' => __('No thanks', 'buttonizer-multifunctional-button'),
1786
  'yes-please' => __('Yes please!', 'buttonizer-multifunctional-button'),
1787
+ 'tour' => __('We\'ve created a tour for our new Buzzers. Would you like to take the tour?', 'buttonizer-multifunctional-button'),
1788
  'already_know' => __('No thanks, I know how it works', 'buttonizer-multifunctional-button'),
1789
  'take_tour' => __('Yes please', 'buttonizer-multifunctional-button'),
1790
  'open_menu' => __('Open menu', 'buttonizer-multifunctional-button'),
app/Api/Dashboard/ApiDashboard.php CHANGED
@@ -57,6 +57,7 @@ class ApiDashboard
57
  return [
58
  "status" => "success",
59
  "version" => BUTTONIZER_VERSION,
 
60
  "fontawesome_current_version" => FONTAWESOME_CURRENT_VERSION,
61
  "premium" => $premium,
62
  "premium_code" => $isPremiumPluginCode,
@@ -106,7 +107,7 @@ class ApiDashboard
106
  {
107
  return [
108
  "welcome" => $this->checkBoolean( "welcome", true ),
109
- "welcome_beta_2_1_2" => $this->checkBoolean( "welcome_beta_2_1_2", true ),
110
  "welcome_super_contributor" => $this->checkTimesLoaded( 3 ),
111
  "icon_library" => $this->check( "icon_library", 'fontawesome' ),
112
  "icon_library_version" => $this->check( "icon_library_version", '5.free' ),
@@ -198,13 +199,13 @@ class ApiDashboard
198
  'name' => __( 'New group', 'buttonizer-multifunctional-button' ),
199
  'show_mobile' => true,
200
  'show_desktop' => true,
201
- 'horizontal' => "right 5%;",
202
- 'vertical' => "bottom 5%;",
203
  ],
204
  'buttons' => [ [
205
  'name' => __( 'New button', 'buttonizer-multifunctional-button' ),
206
  'show_mobile' => true,
207
  'show_desktop' => true,
 
208
  ] ],
209
  ] ] );
210
  }
57
  return [
58
  "status" => "success",
59
  "version" => BUTTONIZER_VERSION,
60
+ "latest_tour_update" => BUTTONIZER_LAST_TOUR_UPDATE,
61
  "fontawesome_current_version" => FONTAWESOME_CURRENT_VERSION,
62
  "premium" => $premium,
63
  "premium_code" => $isPremiumPluginCode,
107
  {
108
  return [
109
  "welcome" => $this->checkBoolean( "welcome", true ),
110
+ "last_tour_version" => $this->check( "last_tour_version", BUTTONIZER_LAST_TOUR_UPDATE ),
111
  "welcome_super_contributor" => $this->checkTimesLoaded( 3 ),
112
  "icon_library" => $this->check( "icon_library", 'fontawesome' ),
113
  "icon_library_version" => $this->check( "icon_library_version", '5.free' ),
199
  'name' => __( 'New group', 'buttonizer-multifunctional-button' ),
200
  'show_mobile' => true,
201
  'show_desktop' => true,
202
+ 'id' => Maintain::GenerateUniqueId(),
 
203
  ],
204
  'buttons' => [ [
205
  'name' => __( 'New button', 'buttonizer-multifunctional-button' ),
206
  'show_mobile' => true,
207
  'show_desktop' => true,
208
+ 'id' => Maintain::GenerateUniqueId(),
209
  ] ],
210
  ] ] );
211
  }
app/Api/PageRules/WordPressData/ApiDebug.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /*
3
  * SOFTWARE LICENSE INFORMATION
4
  *
@@ -10,13 +11,11 @@
10
  * this software, please review the license.txt or visit:
11
  * https://buttonizer.pro/license/
12
  */
13
-
14
  namespace Buttonizer\Api\PageRules\WordPressData;
15
 
16
- use Buttonizer\Frontend\Buttonizer;
17
- use Buttonizer\Utils\Maintain;
18
- use Buttonizer\Frontend\PageRules\Rule\Rule;
19
-
20
  /**
21
  * WordPress Buttonizer API
22
  *
@@ -30,31 +29,29 @@ class ApiDebug
30
  */
31
  public function registerRoute()
32
  {
33
- register_rest_route('buttonizer', '/page_rules/debug', [
34
- [
35
- 'methods' => ['GET'],
36
- 'args' => [
37
- 'rule' => [
38
- 'required' => true,
39
- "type" => "object"
40
- ],
41
- 'user_role' => [
42
- 'required' => true,
43
- "type" => "string"
44
- ],
45
- 'url' => [
46
- 'required' => true,
47
- "type" => "string"
48
- ],
49
- ],
50
- 'callback' => [$this, 'debug'],
51
- 'permission_callback' => function () {
52
- return Maintain::hasPermission();
53
- }
54
- ]
55
- ]);
56
  }
57
-
58
  /**
59
  * Get page rules roles
60
  */
@@ -62,4 +59,5 @@ class ApiDebug
62
  {
63
  return \Buttonizer\Api\Api::needButtonizerPremium();
64
  }
65
- }
 
1
  <?php
2
+
3
  /*
4
  * SOFTWARE LICENSE INFORMATION
5
  *
11
  * this software, please review the license.txt or visit:
12
  * https://buttonizer.pro/license/
13
  */
 
14
  namespace Buttonizer\Api\PageRules\WordPressData;
15
 
16
+ use Buttonizer\Frontend\Buttonizer ;
17
+ use Buttonizer\Utils\Maintain ;
18
+ use Buttonizer\Frontend\PageRules\Rule\Rule ;
 
19
  /**
20
  * WordPress Buttonizer API
21
  *
29
  */
30
  public function registerRoute()
31
  {
32
+ register_rest_route( 'buttonizer', '/page_rules/debug', [ [
33
+ 'methods' => [ 'GET' ],
34
+ 'args' => [
35
+ 'rule' => [
36
+ 'required' => true,
37
+ "type" => "object",
38
+ ],
39
+ 'user_role' => [
40
+ 'required' => true,
41
+ "type" => "string",
42
+ ],
43
+ 'url' => [
44
+ 'required' => true,
45
+ "type" => "string",
46
+ ],
47
+ ],
48
+ 'callback' => [ $this, 'debug' ],
49
+ 'permission_callback' => function () {
50
+ return Maintain::hasPermission();
51
+ },
52
+ ] ] );
 
 
53
  }
54
+
55
  /**
56
  * Get page rules roles
57
  */
59
  {
60
  return \Buttonizer\Api\Api::needButtonizerPremium();
61
  }
62
+
63
+ }
app/Api/Utils/ApiReset.php CHANGED
@@ -54,15 +54,17 @@ class ApiReset {
54
  update_option('buttonizer_buttons', [
55
  [
56
  'data' => [
57
- 'name' => 'Group name',
58
  'show_mobile' => true,
59
  'show_desktop' => true,
 
60
  ],
61
  'buttons' => [
62
  [
63
- 'name' => 'Button name',
64
  'show_mobile' => true,
65
  'show_desktop' => true,
 
66
  ]
67
  ]
68
  ]
54
  update_option('buttonizer_buttons', [
55
  [
56
  'data' => [
57
+ 'name' => __('New group', 'buttonizer-multifunctional-button'),
58
  'show_mobile' => true,
59
  'show_desktop' => true,
60
+ 'id' => Maintain::GenerateUniqueId()
61
  ],
62
  'buttons' => [
63
  [
64
+ 'name' => __('New button', 'buttonizer-multifunctional-button'),
65
  'show_mobile' => true,
66
  'show_desktop' => true,
67
+ 'id' => Maintain::GenerateUniqueId()
68
  ]
69
  ]
70
  ]
app/Utils/Maintain.php CHANGED
@@ -189,4 +189,18 @@ class Maintain {
189
 
190
  return $offset;
191
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  }
189
 
190
  return $offset;
191
  }
192
+
193
+ /**
194
+ * Generate a uuid unique id
195
+ */
196
+ public static function GenerateUniqueId()
197
+ {
198
+ return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
199
+ mt_rand(0, 0xffff), mt_rand(0, 0xffff),
200
+ mt_rand(0, 0xffff),
201
+ mt_rand(0, 0x0fff) | 0x4000,
202
+ mt_rand(0, 0x3fff) | 0x8000,
203
+ mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
204
+ );
205
+ }
206
  }
app/Utils/Update.php CHANGED
@@ -13,6 +13,8 @@
13
 
14
  namespace Buttonizer\Utils;
15
 
 
 
16
  /**
17
  * Class Update Buttonizer to version 2.0 (or more)
18
  *
@@ -514,6 +516,7 @@ class Update
514
  $settings = [];
515
 
516
  $settings['migration_version'] = BUTTONIZER_LAST_MIGRATION;
 
517
  $settings['import_icon_library'] = true;
518
 
519
  if($newInstall === false) {
@@ -533,12 +536,14 @@ class Update
533
  'name' => __('New group', 'buttonizer-multifunctional-button'),
534
  'show_mobile' => true,
535
  'show_desktop' => true,
 
536
  ],
537
  'buttons' => [
538
  [
539
  'name' => __('New button', 'buttonizer-multifunctional-button'),
540
  'show_mobile' => true,
541
- 'show_desktop' => true
 
542
  ]
543
  ]
544
  ]
13
 
14
  namespace Buttonizer\Utils;
15
 
16
+ use Buttonizer\Utils\Maintain;
17
+
18
  /**
19
  * Class Update Buttonizer to version 2.0 (or more)
20
  *
516
  $settings = [];
517
 
518
  $settings['migration_version'] = BUTTONIZER_LAST_MIGRATION;
519
+ $settings['last_tour_version'] = BUTTONIZER_LAST_TOUR_UPDATE;
520
  $settings['import_icon_library'] = true;
521
 
522
  if($newInstall === false) {
536
  'name' => __('New group', 'buttonizer-multifunctional-button'),
537
  'show_mobile' => true,
538
  'show_desktop' => true,
539
+ 'id' => Maintain::GenerateUniqueId()
540
  ],
541
  'buttons' => [
542
  [
543
  'name' => __('New button', 'buttonizer-multifunctional-button'),
544
  'show_mobile' => true,
545
+ 'show_desktop' => true,
546
+ 'id' => Maintain::GenerateUniqueId()
547
  ]
548
  ]
549
  ]
assets/dashboard.css CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
- * (C) 2017-2021 Buttonizer v2.5.4
13
  *
14
  */
15
  /*!
@@ -23,7 +23,7 @@
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
- * (C) 2017-2021 Buttonizer v2.5.4
27
  *
28
  */
29
  @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);
@@ -277,8 +277,448 @@
277
  .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)}
278
  .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)}}
279
  .buttonizer-drawer{padding:2em}.close-button{float:right;margin:-20px !important}
 
280
  .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%}}
281
  .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}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
 
283
  .btnizr-wp-icon {
284
  background: url(./images/wp-icon.png);
@@ -298,6 +738,14 @@
298
 
299
  .btnizr-buttonizer-buzzer {
300
  background: url(./images/ButtonizerBuzzer.svg);
 
 
 
 
 
 
 
 
301
  }
302
  #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}
303
  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}
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
+ * (C) 2017-2021 Buttonizer v2.5.5
13
  *
14
  */
15
  /*!
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
+ * (C) 2017-2021 Buttonizer v2.5.5
27
  *
28
  */
29
  @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);
277
  .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)}
278
  .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)}}
279
  .buttonizer-drawer{padding:2em}.close-button{float:right;margin:-20px !important}
280
+ .buttonizer-tour-options .header{display:flex;align-items:center;justify-content:space-between}.buttonizer-tour-options .title{color:#2f7789;padding:28px 24px 4px}.buttonizer-tour-options .title i{margin-right:10px}.buttonizer-tour-options .title h2{font-size:28px}.buttonizer-tour-options .list{min-width:100%;margin-right:60px;color:#000}.buttonizer-tour-options .skip-button{font-size:16px;color:#2f7789;position:absolute;right:15px;top:15px}.buttonizer-tour-options .skip-button .fas{font-size:17px}
281
  .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%}}
282
  .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}
283
+ /*
284
+ Buttons style by http://nicolasgallagher.com/lab/css3-github-buttons/
285
+ Changed by Afshin Mehrabani
286
+ */
287
+ /* overrides extra padding on button elements in Firefox */
288
+ @-webkit-keyframes introjspulse {
289
+ 0% {
290
+ -webkit-transform: scale(0);
291
+ transform: scale(0);
292
+ opacity: 0; }
293
+ 25% {
294
+ -webkit-transform: scale(0);
295
+ transform: scale(0);
296
+ opacity: 0.1; }
297
+ 50% {
298
+ -webkit-transform: scale(0.1);
299
+ transform: scale(0.1);
300
+ opacity: 0.3; }
301
+ 75% {
302
+ -webkit-transform: scale(0.5);
303
+ transform: scale(0.5);
304
+ opacity: 0.5; }
305
+ 100% {
306
+ -webkit-transform: scale(1);
307
+ transform: scale(1);
308
+ opacity: 0; } }
309
+ @keyframes introjspulse {
310
+ 0% {
311
+ -webkit-transform: scale(0);
312
+ transform: scale(0);
313
+ opacity: 0; }
314
+ 25% {
315
+ -webkit-transform: scale(0);
316
+ transform: scale(0);
317
+ opacity: 0.1; }
318
+ 50% {
319
+ -webkit-transform: scale(0.1);
320
+ transform: scale(0.1);
321
+ opacity: 0.3; }
322
+ 75% {
323
+ -webkit-transform: scale(0.5);
324
+ transform: scale(0.5);
325
+ opacity: 0.5; }
326
+ 100% {
327
+ -webkit-transform: scale(1);
328
+ transform: scale(1);
329
+ opacity: 0; } }
330
+
331
+ .introjs-overlay {
332
+ position: absolute;
333
+ -webkit-box-sizing: content-box;
334
+ box-sizing: content-box;
335
+ z-index: 999999;
336
+ opacity: 0;
337
+ -webkit-transition: all 0.3s ease-out;
338
+ -o-transition: all 0.3s ease-out;
339
+ transition: all 0.3s ease-out; }
340
+
341
+ .introjs-showElement {
342
+ z-index: 9999999 !important; }
343
+
344
+ tr.introjs-showElement > td {
345
+ z-index: 9999999 !important;
346
+ position: relative; }
347
+
348
+ tr.introjs-showElement > th {
349
+ z-index: 9999999 !important;
350
+ position: relative; }
351
+
352
+ .introjs-disableInteraction {
353
+ z-index: 99999999 !important;
354
+ position: absolute;
355
+ background-color: #ffffff;
356
+ opacity: 0;
357
+ filter: alpha(opacity=0); }
358
+
359
+ .introjs-relativePosition {
360
+ position: relative; }
361
+
362
+ .introjs-helperLayer {
363
+ -webkit-box-sizing: content-box;
364
+ box-sizing: content-box;
365
+ position: absolute;
366
+ z-index: 9999998;
367
+ border-radius: 4px;
368
+ -webkit-transition: all 0.3s ease-out;
369
+ -o-transition: all 0.3s ease-out;
370
+ transition: all 0.3s ease-out; }
371
+ .introjs-helperLayer * {
372
+ -webkit-box-sizing: content-box;
373
+ box-sizing: content-box; }
374
+ .introjs-helperLayer *:before {
375
+ -webkit-box-sizing: content-box;
376
+ box-sizing: content-box; }
377
+ .introjs-helperLayer *:after {
378
+ -webkit-box-sizing: content-box;
379
+ box-sizing: content-box; }
380
+
381
+ .introjs-tooltipReferenceLayer {
382
+ font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;
383
+ -webkit-box-sizing: content-box;
384
+ box-sizing: content-box;
385
+ position: absolute;
386
+ visibility: hidden;
387
+ z-index: 100000000;
388
+ background-color: transparent;
389
+ -webkit-transition: all 0.3s ease-out;
390
+ -o-transition: all 0.3s ease-out;
391
+ transition: all 0.3s ease-out; }
392
+ .introjs-tooltipReferenceLayer * {
393
+ font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif; }
394
+
395
+ .introjs-helperNumberLayer {
396
+ font-family: "Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif;
397
+ color: #9e9e9e;
398
+ text-align: center;
399
+ padding-top: 10px;
400
+ padding-bottom: 10px; }
401
+
402
+ .introjs-arrow {
403
+ border: 5px solid transparent;
404
+ content: "";
405
+ position: absolute; }
406
+
407
+ .introjs-arrow.top {
408
+ top: -10px;
409
+ left: 10px;
410
+ border-bottom-color: #ffffff; }
411
+
412
+ .introjs-arrow.top-right {
413
+ top: -10px;
414
+ right: 10px;
415
+ border-bottom-color: #ffffff; }
416
+
417
+ .introjs-arrow.top-middle {
418
+ top: -10px;
419
+ left: 50%;
420
+ margin-left: -5px;
421
+ border-bottom-color: #ffffff; }
422
+
423
+ .introjs-arrow.right {
424
+ right: -10px;
425
+ top: 10px;
426
+ border-left-color: #ffffff; }
427
+
428
+ .introjs-arrow.right-bottom {
429
+ bottom: 10px;
430
+ right: -10px;
431
+ border-left-color: #ffffff; }
432
+
433
+ .introjs-arrow.bottom {
434
+ bottom: -10px;
435
+ left: 10px;
436
+ border-top-color: #ffffff; }
437
+
438
+ .introjs-arrow.bottom-right {
439
+ bottom: -10px;
440
+ right: 10px;
441
+ border-top-color: #ffffff; }
442
+
443
+ .introjs-arrow.bottom-middle {
444
+ bottom: -10px;
445
+ left: 50%;
446
+ margin-left: -5px;
447
+ border-top-color: #ffffff; }
448
+
449
+ .introjs-arrow.left {
450
+ left: -10px;
451
+ top: 10px;
452
+ border-right-color: #ffffff; }
453
+
454
+ .introjs-arrow.left-bottom {
455
+ left: -10px;
456
+ bottom: 10px;
457
+ border-right-color: #ffffff; }
458
+
459
+ .introjs-tooltip {
460
+ -webkit-box-sizing: content-box;
461
+ box-sizing: content-box;
462
+ position: absolute;
463
+ visibility: visible;
464
+ background-color: #ffffff;
465
+ min-width: 250px;
466
+ max-width: 300px;
467
+ border-radius: 5px;
468
+ -webkit-box-shadow: 0 3px 30px rgba(33, 33, 33, 0.3);
469
+ box-shadow: 0 3px 30px rgba(33, 33, 33, 0.3);
470
+ -webkit-transition: opacity 0.1s ease-out;
471
+ -o-transition: opacity 0.1s ease-out;
472
+ transition: opacity 0.1s ease-out; }
473
+
474
+ .introjs-tooltiptext {
475
+ padding: 20px; }
476
+
477
+ .introjs-tooltip-title {
478
+ font-size: 18px;
479
+ margin: 0;
480
+ padding: 0;
481
+ font-weight: 700;
482
+ float: left;
483
+ line-height: 32px; }
484
+
485
+ .introjs-tooltip-header {
486
+ padding-left: 20px;
487
+ padding-right: 20px;
488
+ padding-top: 10px; }
489
+ .introjs-tooltip-header:after {
490
+ content: ".";
491
+ visibility: hidden;
492
+ display: block;
493
+ height: 0;
494
+ clear: both; }
495
+
496
+ .introjs-tooltipbuttons {
497
+ border-top: 1px solid #e0e0e0;
498
+ padding: 10px;
499
+ text-align: right;
500
+ white-space: nowrap; }
501
+ .introjs-tooltipbuttons:after {
502
+ content: "";
503
+ visibility: hidden;
504
+ display: block;
505
+ height: 0;
506
+ clear: both; }
507
+
508
+ .introjs-button {
509
+ -webkit-box-sizing: content-box;
510
+ box-sizing: content-box;
511
+ position: relative;
512
+ overflow: visible;
513
+ display: inline-block;
514
+ padding: 0.5rem 1rem;
515
+ border: 1px solid #bdbdbd;
516
+ text-decoration: none;
517
+ text-shadow: 1px 1px 0 #ffffff;
518
+ font-size: 14px;
519
+ color: #424242;
520
+ white-space: nowrap;
521
+ cursor: pointer;
522
+ outline: none;
523
+ background-color: #f4f4f4;
524
+ border-radius: 0.2em;
525
+ zoom: 1;
526
+ *display: inline; }
527
+ .introjs-button:hover {
528
+ outline: none;
529
+ text-decoration: none;
530
+ border-color: #9e9e9e;
531
+ background-color: #e0e0e0;
532
+ color: #212121; }
533
+ .introjs-button:focus {
534
+ outline: none;
535
+ text-decoration: none;
536
+ background-color: #eeeeee;
537
+ -webkit-box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.5);
538
+ box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.5);
539
+ border: 1px solid #616161;
540
+ color: #212121; }
541
+ .introjs-button:active {
542
+ outline: none;
543
+ text-decoration: none;
544
+ background-color: #e0e0e0;
545
+ border-color: #9e9e9e;
546
+ color: #212121; }
547
+ .introjs-button::-moz-focus-inner {
548
+ padding: 0;
549
+ border: 0; }
550
+
551
+ .introjs-skipbutton {
552
+ -webkit-box-sizing: content-box;
553
+ box-sizing: content-box;
554
+ color: #616161;
555
+ float: right;
556
+ font-size: 20px;
557
+ cursor: pointer;
558
+ font-weight: bold;
559
+ line-height: 1;
560
+ text-align: center;
561
+ padding: 7px 10px; }
562
+ .introjs-skipbutton:hover, .introjs-skipbutton:focus {
563
+ color: #212121;
564
+ outline: none;
565
+ text-decoration: none; }
566
+
567
+ .introjs-prevbutton {
568
+ float: left; }
569
+
570
+ .introjs-nextbutton {
571
+ float: right; }
572
+
573
+ .introjs-disabled {
574
+ color: #9e9e9e;
575
+ border-color: #bdbdbd;
576
+ -webkit-box-shadow: none;
577
+ box-shadow: none;
578
+ cursor: default;
579
+ background-color: #f4f4f4;
580
+ background-image: none;
581
+ text-decoration: none; }
582
+ .introjs-disabled:hover, .introjs-disabled:focus {
583
+ color: #9e9e9e;
584
+ border-color: #bdbdbd;
585
+ -webkit-box-shadow: none;
586
+ box-shadow: none;
587
+ cursor: default;
588
+ background-color: #f4f4f4;
589
+ background-image: none;
590
+ text-decoration: none; }
591
+
592
+ .introjs-hidden {
593
+ display: none; }
594
+
595
+ .introjs-bullets {
596
+ text-align: center;
597
+ padding-top: 10px;
598
+ padding-bottom: 10px; }
599
+ .introjs-bullets ul {
600
+ -webkit-box-sizing: content-box;
601
+ box-sizing: content-box;
602
+ clear: both;
603
+ margin: 0 auto 0;
604
+ padding: 0;
605
+ display: inline-block; }
606
+ .introjs-bullets ul li {
607
+ -webkit-box-sizing: content-box;
608
+ box-sizing: content-box;
609
+ list-style: none;
610
+ float: left;
611
+ margin: 0 2px; }
612
+ .introjs-bullets ul li a {
613
+ -webkit-transition: width 0.1s ease-in;
614
+ -o-transition: width 0.1s ease-in;
615
+ transition: width 0.1s ease-in;
616
+ -webkit-box-sizing: content-box;
617
+ box-sizing: content-box;
618
+ display: block;
619
+ width: 6px;
620
+ height: 6px;
621
+ background: #ccc;
622
+ border-radius: 10px;
623
+ text-decoration: none;
624
+ cursor: pointer; }
625
+ .introjs-bullets ul li a:hover, .introjs-bullets ul li a:focus {
626
+ width: 15px;
627
+ background: #999;
628
+ text-decoration: none;
629
+ outline: none; }
630
+ .introjs-bullets ul li a.active {
631
+ width: 15px;
632
+ background: #999; }
633
+
634
+ .introjs-progress {
635
+ -webkit-box-sizing: content-box;
636
+ box-sizing: content-box;
637
+ overflow: hidden;
638
+ height: 10px;
639
+ margin: 10px;
640
+ border-radius: 4px;
641
+ background-color: #e0e0e0; }
642
+
643
+ .introjs-progressbar {
644
+ -webkit-box-sizing: content-box;
645
+ box-sizing: content-box;
646
+ float: left;
647
+ width: 0%;
648
+ height: 100%;
649
+ font-size: 10px;
650
+ line-height: 10px;
651
+ text-align: center;
652
+ background-color: #08c; }
653
+
654
+ .introjsFloatingElement {
655
+ position: absolute;
656
+ height: 0;
657
+ width: 0;
658
+ left: 50%;
659
+ top: 50%; }
660
+
661
+ .introjs-fixedTooltip {
662
+ position: fixed; }
663
+
664
+ .introjs-hint {
665
+ -webkit-box-sizing: content-box;
666
+ box-sizing: content-box;
667
+ position: absolute;
668
+ background: transparent;
669
+ width: 20px;
670
+ height: 15px;
671
+ cursor: pointer; }
672
+ .introjs-hint:focus {
673
+ border: 0;
674
+ outline: 0; }
675
+ .introjs-hint:hover > .introjs-hint-pulse {
676
+ border: 5px solid rgba(60, 60, 60, 0.57); }
677
+
678
+ .introjs-hidehint {
679
+ display: none; }
680
+
681
+ .introjs-fixedhint {
682
+ position: fixed; }
683
+
684
+ .introjs-hint-pulse {
685
+ -webkit-box-sizing: content-box;
686
+ box-sizing: content-box;
687
+ width: 10px;
688
+ height: 10px;
689
+ border: 5px solid rgba(60, 60, 60, 0.27);
690
+ border-radius: 30px;
691
+ background-color: rgba(136, 136, 136, 0.24);
692
+ z-index: 10;
693
+ position: absolute;
694
+ -webkit-transition: all 0.2s ease-out;
695
+ -o-transition: all 0.2s ease-out;
696
+ transition: all 0.2s ease-out; }
697
+
698
+ .introjs-hint-no-anim .introjs-hint-dot {
699
+ -webkit-animation: none;
700
+ animation: none; }
701
+
702
+ .introjs-hint-dot {
703
+ -webkit-box-sizing: content-box;
704
+ box-sizing: content-box;
705
+ border: 10px solid rgba(146, 146, 146, 0.36);
706
+ background: transparent;
707
+ border-radius: 60px;
708
+ height: 50px;
709
+ width: 50px;
710
+ -webkit-animation: introjspulse 3s ease-out;
711
+ animation: introjspulse 3s ease-out;
712
+ -webkit-animation-iteration-count: infinite;
713
+ animation-iteration-count: infinite;
714
+ position: absolute;
715
+ top: -25px;
716
+ left: -25px;
717
+ z-index: 1;
718
+ opacity: 0; }
719
+
720
+ .tourDialog,.videoDialog,.tourDialogCentral{padding:15px;min-width:400px;background-color:#d7e5e9;position:absolute;background-size:contain;background-repeat:no-repeat}.tourDialog .introjs-tooltip-title,.tourDialog .introjs-tooltiptext,.tourDialog .introjs-tooltipbuttons,.videoDialog .introjs-tooltip-title,.videoDialog .introjs-tooltiptext,.videoDialog .introjs-tooltipbuttons,.tourDialogCentral .introjs-tooltip-title,.tourDialogCentral .introjs-tooltiptext,.tourDialogCentral .introjs-tooltipbuttons{font-family:"Roboto",sans-serif}.tourDialog .introjs-tooltip-title,.videoDialog .introjs-tooltip-title,.tourDialogCentral .introjs-tooltip-title{margin:0}.tourDialog h1,.videoDialog h1,.tourDialogCentral h1{font-size:24px;color:#2f788a;margin-top:30px;font-family:"Roboto",sans-serif}.tourDialog .introjs-tooltiptext,.videoDialog .introjs-tooltiptext,.tourDialogCentral .introjs-tooltiptext{font-size:14px;color:#000;padding:10px 20px}.tourDialog .introjs-tooltiptext a,.videoDialog .introjs-tooltiptext a,.tourDialogCentral .introjs-tooltiptext a{text-decoration:none;color:#000}.tourDialog .introjs-tooltipbuttons,.videoDialog .introjs-tooltipbuttons,.tourDialogCentral .introjs-tooltipbuttons{margin-top:20px;border:none;float:right;display:flex;align-items:center}.tourDialog .introjs-prevbutton,.tourDialog .introjs-nextbutton,.videoDialog .introjs-prevbutton,.videoDialog .introjs-nextbutton,.tourDialogCentral .introjs-prevbutton,.tourDialogCentral .introjs-nextbutton{border:none;text-shadow:none;text-transform:uppercase;font-weight:bolder;font-size:12px}.tourDialog .introjs-prevbutton,.videoDialog .introjs-prevbutton,.tourDialogCentral .introjs-prevbutton{color:#2f788a}.tourDialog .introjs-nextbutton,.videoDialog .introjs-nextbutton,.tourDialogCentral .introjs-nextbutton{color:#fff;background-color:#ef790c;box-shadow:rgba(0,0,0,.24) 0px 3px 8px;margin-left:5px;padding:10px 15px}.tourDialog .introjs-nextbutton:hover,.videoDialog .introjs-nextbutton:hover,.tourDialogCentral .introjs-nextbutton:hover{background-color:#f08419}.tourDialog .introjs-prevbutton,.videoDialog .introjs-prevbutton,.tourDialogCentral .introjs-prevbutton{background:none;box-shadow:none}.tourDialog .introjs-nextbutton a,.videoDialog .introjs-nextbutton a,.tourDialogCentral .introjs-nextbutton a{color:#fff;text-decoration:none}.tourDialog .introjs-skipbutton,.videoDialog .introjs-skipbutton,.tourDialogCentral .introjs-skipbutton{color:#000;padding:5px;position:relative;right:-25px;top:-18px}.tourDialog .introjs-skipbutton:hover,.videoDialog .introjs-skipbutton:hover,.tourDialogCentral .introjs-skipbutton:hover{color:none}.tourDialog .introjs-progress,.videoDialog .introjs-progress,.tourDialogCentral .introjs-progress{margin:20px;height:5px;background-color:#fff}.tourDialog .introjs-progressbar,.videoDialog .introjs-progressbar,.tourDialogCentral .introjs-progressbar{background-color:gray}.tourDialog .introjs-arrow.left,.videoDialog .introjs-arrow.left,.tourDialogCentral .introjs-arrow.left{border-right-color:#d7e5e9}.tourDialog .introjs-arrow.left-bottom,.videoDialog .introjs-arrow.left-bottom,.tourDialogCentral .introjs-arrow.left-bottom{border-right-color:#d7e5e9}.tourDialog .introjs-arrow.right,.videoDialog .introjs-arrow.right,.tourDialogCentral .introjs-arrow.right{border-left-color:#d7e5e9}.tourDialog .introjs-arrow.top,.videoDialog .introjs-arrow.top,.tourDialogCentral .introjs-arrow.top{border-bottom-color:#d7e5e9}.tourDialog .introjs-arrow.top-middle,.videoDialog .introjs-arrow.top-middle,.tourDialogCentral .introjs-arrow.top-middle{border-bottom-color:#d7e5e9}.tourDialog .introjs-arrow.bottom,.videoDialog .introjs-arrow.bottom,.tourDialogCentral .introjs-arrow.bottom{border-top-color:#d7e5e9}.tourDialog .introjs-arrow.bottom-middle,.videoDialog .introjs-arrow.bottom-middle,.tourDialogCentral .introjs-arrow.bottom-middle{border-top-color:#d7e5e9}.tourDialog .introjs-arrow.bottom-right,.videoDialog .introjs-arrow.bottom-right,.tourDialogCentral .introjs-arrow.bottom-right{border-top-color:#d7e5e9}.tourDialog,.tourDialogCentral{background-image:url(./images/buttonizer-logo.png);background-position:left 30px bottom 20px;background-size:50px}.tourDialogCentral{position:fixed !important;top:50% !important;left:50% !important;transform:translate(-50%, -50%)}.tourDialogCentral .introjs-arrow{display:none !important}#myVideo{width:100%;text-align:center;margin-top:-50px}.videoDialog{background-image:url(./images/white-background.jpg);background-size:620px;background-position:top 0px}.videoDialog h1{margin-top:40px}.noHelperLayer{display:none}
721
+ .MuiDialog-paperFullWidth #welcome-dialog{padding:20px 10px;background-color:#d7e5e9;text-align:center}.MuiDialog-paperFullWidth .skip-button{color:#000;position:absolute;right:15px;top:15px}.MuiDialog-paperFullWidth .skip-button .fas{font-size:17px}.MuiDialog-paperFullWidth .welcome-dialog-title .MuiTypography-h6{font-size:30px;margin-top:20px}.MuiDialog-paperFullWidth .welcome-dialog-title{color:#2f788a !important;padding:15px 0 0 0}.MuiDialog-paperFullWidth .welcome-dialog-text{color:#000 !important;font-family:"Roboto",sans-serif}.MuiDialog-paperFullWidth .MuiDialogActions-spacing>:not(:first-child){margin-left:0px}.MuiDialog-paperFullWidth .welcome-dialog-text a{text-decoration:none;color:#fff}.MuiDialog-paperFullWidth .welcome-dialog-buttons{color:#fff !important;text-shadow:none;font-weight:bolder;border:none;float:center;padding:10px 20px;margin:5px 0;display:flex;flex-direction:column;align-items:center}.MuiDialog-paperFullWidth .welcome-dialog-buttons:hover{background-color:transparent}.MuiDialog-paperFullWidth .welcome-dialog-buttons .outlined{border:none;color:#2f788a !important}.MuiDialog-paperFullWidth .welcome-dialog-buttons .primary{background-color:#f08419 !important;box-shadow:rgba(0,0,0,.24) 0px 3px 8px}
722
 
723
  .btnizr-wp-icon {
724
  background: url(./images/wp-icon.png);
738
 
739
  .btnizr-buttonizer-buzzer {
740
  background: url(./images/ButtonizerBuzzer.svg);
741
+ }
742
+
743
+ .btnizr-buttonizer-video-tour-group {
744
+ background: url(./videos/tour_group.mp4);
745
+ }
746
+
747
+ .btnizr-buttonizer-video-tour-style {
748
+ background: url(./videos/tour_style.mp4);
749
  }
750
  #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}
751
  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
@@ -9,7 +9,7 @@
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
- * (C) 2017-2021 Buttonizer v2.5.4
13
  *
14
  */
15
  /*!
@@ -23,7 +23,7 @@
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
- * (C) 2017-2021 Buttonizer v2.5.4
27
  *
28
  */
29
  /******/ (function() { // webpackBootstrap
@@ -5523,6 +5523,7 @@ module.exports = function xhrAdapter(config) {
5523
  return new Promise(function dispatchXhrRequest(resolve, reject) {
5524
  var requestData = config.data;
5525
  var requestHeaders = config.headers;
 
5526
 
5527
  if (utils.isFormData(requestData)) {
5528
  delete requestHeaders['Content-Type']; // Let the browser set it
@@ -5543,23 +5544,14 @@ module.exports = function xhrAdapter(config) {
5543
  // Set the request timeout in MS
5544
  request.timeout = config.timeout;
5545
 
5546
- // Listen for ready state
5547
- request.onreadystatechange = function handleLoad() {
5548
- if (!request || request.readyState !== 4) {
5549
- return;
5550
- }
5551
-
5552
- // The request errored out and we didn't get a response, this will be
5553
- // handled by onerror instead
5554
- // With one exception: request that using file: protocol, most browsers
5555
- // will return status as 0 even though it's a successful request
5556
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
5557
  return;
5558
  }
5559
-
5560
  // Prepare the response
5561
  var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
5562
- var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
 
5563
  var response = {
5564
  data: responseData,
5565
  status: request.status,
@@ -5573,7 +5565,30 @@ module.exports = function xhrAdapter(config) {
5573
 
5574
  // Clean up request
5575
  request = null;
5576
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5577
 
5578
  // Handle browser request cancellation (as opposed to a manual cancellation)
5579
  request.onabort = function handleAbort() {
@@ -5603,7 +5618,10 @@ module.exports = function xhrAdapter(config) {
5603
  if (config.timeoutErrorMessage) {
5604
  timeoutErrorMessage = config.timeoutErrorMessage;
5605
  }
5606
- reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
 
 
 
5607
  request));
5608
 
5609
  // Clean up request
@@ -5643,16 +5661,8 @@ module.exports = function xhrAdapter(config) {
5643
  }
5644
 
5645
  // Add responseType to request if needed
5646
- if (config.responseType) {
5647
- try {
5648
- request.responseType = config.responseType;
5649
- } catch (e) {
5650
- // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
5651
- // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
5652
- if (config.responseType !== 'json') {
5653
- throw e;
5654
- }
5655
- }
5656
  }
5657
 
5658
  // Handle progress if needed
@@ -5871,7 +5881,9 @@ var buildURL = __webpack_require__(15327);
5871
  var InterceptorManager = __webpack_require__(80782);
5872
  var dispatchRequest = __webpack_require__(13572);
5873
  var mergeConfig = __webpack_require__(47185);
 
5874
 
 
5875
  /**
5876
  * Create a new instance of Axios
5877
  *
@@ -5911,20 +5923,71 @@ Axios.prototype.request = function request(config) {
5911
  config.method = 'get';
5912
  }
5913
 
5914
- // Hook up interceptors middleware
5915
- var chain = [dispatchRequest, undefined];
5916
- var promise = Promise.resolve(config);
 
 
 
 
 
 
5917
 
 
 
 
5918
  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
5919
- chain.unshift(interceptor.fulfilled, interceptor.rejected);
 
 
 
 
 
 
5920
  });
5921
 
 
5922
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
5923
- chain.push(interceptor.fulfilled, interceptor.rejected);
5924
  });
5925
 
5926
- while (chain.length) {
5927
- promise = promise.then(chain.shift(), chain.shift());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5928
  }
5929
 
5930
  return promise;
@@ -5983,10 +6046,12 @@ function InterceptorManager() {
5983
  *
5984
  * @return {Number} An ID used to remove interceptor later
5985
  */
5986
- InterceptorManager.prototype.use = function use(fulfilled, rejected) {
5987
  this.handlers.push({
5988
  fulfilled: fulfilled,
5989
- rejected: rejected
 
 
5990
  });
5991
  return this.handlers.length - 1;
5992
  };
@@ -6110,7 +6175,8 @@ module.exports = function dispatchRequest(config) {
6110
  config.headers = config.headers || {};
6111
 
6112
  // Transform request data
6113
- config.data = transformData(
 
6114
  config.data,
6115
  config.headers,
6116
  config.transformRequest
@@ -6136,7 +6202,8 @@ module.exports = function dispatchRequest(config) {
6136
  throwIfCancellationRequested(config);
6137
 
6138
  // Transform response data
6139
- response.data = transformData(
 
6140
  response.data,
6141
  response.headers,
6142
  config.transformResponse
@@ -6149,7 +6216,8 @@ module.exports = function dispatchRequest(config) {
6149
 
6150
  // Transform response data
6151
  if (reason && reason.response) {
6152
- reason.response.data = transformData(
 
6153
  reason.response.data,
6154
  reason.response.headers,
6155
  config.transformResponse
@@ -6349,6 +6417,7 @@ module.exports = function settle(resolve, reject, response) {
6349
 
6350
 
6351
  var utils = __webpack_require__(64867);
 
6352
 
6353
  /**
6354
  * Transform the data for a request or a response
@@ -6359,9 +6428,10 @@ var utils = __webpack_require__(64867);
6359
  * @returns {*} The resulting transformed data
6360
  */
6361
  module.exports = function transformData(data, headers, fns) {
 
6362
  /*eslint no-param-reassign:0*/
6363
  utils.forEach(fns, function transform(fn) {
6364
- data = fn(data, headers);
6365
  });
6366
 
6367
  return data;
@@ -6378,6 +6448,7 @@ module.exports = function transformData(data, headers, fns) {
6378
 
6379
  var utils = __webpack_require__(64867);
6380
  var normalizeHeaderName = __webpack_require__(16016);
 
6381
 
6382
  var DEFAULT_CONTENT_TYPE = {
6383
  'Content-Type': 'application/x-www-form-urlencoded'
@@ -6401,12 +6472,35 @@ function getDefaultAdapter() {
6401
  return adapter;
6402
  }
6403
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6404
  var defaults = {
 
 
 
 
 
 
 
6405
  adapter: getDefaultAdapter(),
6406
 
6407
  transformRequest: [function transformRequest(data, headers) {
6408
  normalizeHeaderName(headers, 'Accept');
6409
  normalizeHeaderName(headers, 'Content-Type');
 
6410
  if (utils.isFormData(data) ||
6411
  utils.isArrayBuffer(data) ||
6412
  utils.isBuffer(data) ||
@@ -6423,20 +6517,32 @@ var defaults = {
6423
  setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
6424
  return data.toString();
6425
  }
6426
- if (utils.isObject(data)) {
6427
- setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
6428
- return JSON.stringify(data);
6429
  }
6430
  return data;
6431
  }],
6432
 
6433
  transformResponse: [function transformResponse(data) {
6434
- /*eslint no-param-reassign:0*/
6435
- if (typeof data === 'string') {
 
 
 
 
6436
  try {
6437
- data = JSON.parse(data);
6438
- } catch (e) { /* Ignore */ }
 
 
 
 
 
 
 
6439
  }
 
6440
  return data;
6441
  }],
6442
 
@@ -6887,6 +6993,119 @@ module.exports = function spread(callback) {
6887
  };
6888
 
6889
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6890
  /***/ }),
6891
 
6892
  /***/ 64867:
@@ -6897,8 +7116,6 @@ module.exports = function spread(callback) {
6897
 
6898
  var bind = __webpack_require__(91849);
6899
 
6900
- /*global toString:true*/
6901
-
6902
  // utils is a library of generic helper functions non-specific to axios
6903
 
6904
  var toString = Object.prototype.toString;
@@ -7082,7 +7299,7 @@ function isURLSearchParams(val) {
7082
  * @returns {String} The String freed of excess whitespace
7083
  */
7084
  function trim(str) {
7085
- return str.replace(/^\s*/, '').replace(/\s*$/, '');
7086
  }
7087
 
7088
  /**
@@ -7248,7 +7465,15 @@ module.exports = {
7248
 
7249
  /***/ }),
7250
 
7251
- /***/ 23175:
 
 
 
 
 
 
 
 
7252
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
7253
 
7254
  "use strict";
@@ -7932,8 +8157,8 @@ var defaults = __webpack_require__(46314);
7932
  var merge = __webpack_require__(82492);
7933
 
7934
  var omitBy = __webpack_require__(14176);
7935
- /**
7936
- * Constants
7937
  */
7938
 
7939
 
@@ -7955,6 +8180,7 @@ var buttonizer_constants_actionTypes = {
7955
  STOP_LOADING: "STOP_LOADING",
7956
  //Setting values
7957
  SET_SETTING_VALUE: "SET_SETTING_VALUE",
 
7958
  //Drawer
7959
  OPEN_DRAWER: "OPENING DRAWER",
7960
  CLOSE_DRAWER: "CLOSING DRAWER",
@@ -8004,8 +8230,8 @@ var buttonizer_constants_actionTypes = {
8004
  GET_DATA_FAILURE: "GET TEMPLATES DATA FAILURE",
8005
  GET_DATA_END: "GET TEMPLATES DATA END",
8006
 
8007
- /**
8008
- * Not used
8009
  */
8010
  ADD_RECORD: "ADDING TEMPLATE"
8011
  }
@@ -8044,12 +8270,13 @@ var drawers = {
8044
  preferences: "preferences",
8045
  reset: "reset"
8046
  },
 
8047
  TIME_SCHEDULES: "timeschedules",
8048
  PAGE_RULES: "pagerules"
8049
  };
8050
  var formats = {
8051
- /**
8052
- * Combine values with normal;hover.
8053
  */
8054
  normal_hover: {
8055
  format: function format(normal, hover) {
@@ -8085,8 +8312,8 @@ var formats = {
8085
  }
8086
  },
8087
 
8088
- /**
8089
- * Px for four sides, for example for margin or padding.
8090
  */
8091
  fourSidesPx: {
8092
  format: function format(val1, val2, val3, val4) {
@@ -8099,8 +8326,8 @@ var formats = {
8099
  }
8100
  },
8101
 
8102
- /**
8103
- * Position format, example: 'bottom: 5px', or 'left: 10%'
8104
  */
8105
  position: {
8106
  format: function format(type, mode, value) {
@@ -8203,7 +8430,7 @@ function openDrawer(drawer, page) {
8203
  document.location.hash += "".concat(document.location.hash.match(/\/$/) ? "" : "/").concat(drawer).concat(page ? "/" + page : "");
8204
  }
8205
  function closeDrawer() {
8206
- document.location.hash = document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules).*$/i, "");
8207
  }
8208
  ;// CONCATENATED MODULE: ./src/js/utils/utils/data-utils.js
8209
  /* global Map */
@@ -8327,11 +8554,11 @@ function helpers_arrayLikeToArray(arr, len) { if (len == null || len > arr.lengt
8327
 
8328
 
8329
 
8330
- /**
8331
- * Create api request
8332
- *maar j
8333
- * @param {*} endpoint
8334
- * @param {*} data
8335
  */
8336
 
8337
  function apiRequest(endpoint, data) {
@@ -8341,8 +8568,8 @@ function apiRequest(endpoint, data) {
8341
  };
8342
  return axios_default()(data);
8343
  }
8344
- /**
8345
- * init store
8346
  */
8347
 
8348
  function init() {
@@ -8357,11 +8584,11 @@ function init() {
8357
  }
8358
  };
8359
  }
8360
- /**
8361
- * Convert data to models
8362
- *
8363
- * @param result
8364
- * @return {obj} converted data
8365
  */
8366
 
8367
  function convertData(result) {
@@ -8453,6 +8680,7 @@ function convertData(result) {
8453
  version: data.version,
8454
  wordpress: data.wordpress,
8455
  is_opt_in: data.is_opt_in,
 
8456
  additional_permissions: data.additional_permissions
8457
  };
8458
  }
@@ -8568,6 +8796,15 @@ var dataActions_setSetting = function setSetting(setting, value) {
8568
  }
8569
  };
8570
  };
 
 
 
 
 
 
 
 
 
8571
  /**
8572
  * Time Schedule Actions
8573
  */
@@ -11568,6 +11805,7 @@ var defaultStore = {
11568
  draftStore.wordpress = action.payload.wordpress;
11569
  draftStore._premium = action.payload.premium;
11570
  draftStore.is_opt_in = action.payload.is_opt_in;
 
11571
  draftStore.additional_permissions = action.payload.additional_permissions;
11572
  draftStore._premiumCode = action.payload.premium_code;
11573
  break;
@@ -11609,6 +11847,12 @@ var defaultStore = {
11609
  draftStore.loading.loadingIframe = false;
11610
  break;
11611
  }
 
 
 
 
 
 
11612
  }
11613
  });
11614
  }
@@ -19828,8 +20072,8 @@ function PublishButton(_ref) {
19828
  return translate("common.publish");
19829
  }
19830
  }
19831
- /**
19832
- * Publish buttons
19833
  */
19834
 
19835
 
@@ -31743,7 +31987,8 @@ function ButtonContainer(_ref) {
31743
  onClick: function onClick() {
31744
  document.location.hash = "#" + path;
31745
  },
31746
- "data-testid": "edit-button"
 
31747
  }), /*#__PURE__*/react.createElement(DuplicateButton, {
31748
  name: button.name,
31749
  onChange: function onChange(val) {
@@ -41191,6 +41436,10 @@ function ButtonGroupContainer(_ref) {
41191
  group = _useState6[0],
41192
  setGroup = _useState6[1];
41193
 
 
 
 
 
41194
  var handleOpenState = function handleOpenState() {
41195
  var currentCookie = getCookie("buttonizer_bar_state_opened") ? JSON.parse(getCookie("buttonizer_bar_state_opened")) : {};
41196
  currentCookie[groupId] = !opened;
@@ -41209,6 +41458,13 @@ function ButtonGroupContainer(_ref) {
41209
  });
41210
  }
41211
 
 
 
 
 
 
 
 
41212
  (0,react.useEffect)(function () {
41213
  setGroup(groups[groupId]);
41214
  }, [groups[groupId]]);
@@ -41249,7 +41505,8 @@ function ButtonGroupContainer(_ref) {
41249
  onClick: function onClick() {
41250
  return document.location.hash = "#/group/" + group.id;
41251
  },
41252
- "data-testid": "edit-button-group"
 
41253
  }), duplicateButton(), /*#__PURE__*/react.createElement(ContainerActionsDropdown, null, /*#__PURE__*/react.createElement(ContainerActions_RenameButton, {
41254
  name: group.name,
41255
  onChange: function onChange(val) {
@@ -42579,6 +42836,7 @@ function BreadcrumbSelect(_ref) {
42579
  var id = open ? "simple-popover" : undefined; // Return Element
42580
 
42581
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Button_Button, {
 
42582
  "aria-describedby": id,
42583
  color: "secondary",
42584
  variant: "contained",
@@ -42971,9 +43229,13 @@ function Label(_ref) {
42971
  fullWidth: true,
42972
  inputProps: {
42973
  "data-testid": "setting:label"
42974
- }
 
42975
  });
42976
  }
 
 
 
42977
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/ButtonAction/ButtonActionValue/Mail/Mail.js
42978
  function Mail_slicedToArray(arr, i) { return Mail_arrayWithHoles(arr) || Mail_iterableToArrayLimit(arr, i) || Mail_unsupportedIterableToArray(arr, i) || Mail_nonIterableRest(); }
42979
 
@@ -42990,6 +43252,7 @@ function Mail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
42990
 
42991
 
42992
 
 
42993
  function Mail(_ref) {
42994
  var _ref$value = _ref.value,
42995
  value = _ref$value === void 0 ? "" : _ref$value,
@@ -43003,22 +43266,17 @@ function Mail(_ref) {
43003
  bcc = _ref$bcc === void 0 ? "" : _ref$bcc,
43004
  _onChange = _ref.onChange;
43005
 
43006
- var _useState = (0,react.useState)(false),
43007
  _useState2 = Mail_slicedToArray(_useState, 2),
43008
- checkStart = _useState2[0],
43009
- setCheckStart = _useState2[1];
43010
 
43011
- var _useState3 = (0,react.useState)(cc !== ""),
43012
  _useState4 = Mail_slicedToArray(_useState3, 2),
43013
- showCC = _useState4[0],
43014
- setShowCC = _useState4[1];
43015
 
43016
- var _useState5 = (0,react.useState)(bcc !== ""),
43017
- _useState6 = Mail_slicedToArray(_useState5, 2),
43018
- showBCC = _useState6[0],
43019
- setShowBCC = _useState6[1];
43020
-
43021
- var check = /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
43022
  return /*#__PURE__*/react.createElement("div", {
43023
  className: "button-action-value"
43024
  }, /*#__PURE__*/react.createElement(TextField_TextField, {
@@ -43029,13 +43287,10 @@ function Mail(_ref) {
43029
  "data-testid": "action:field"
43030
  },
43031
  label: translate("settings.button_action.placeholders.mail.recipient"),
43032
- helperText: !check.test(value) && value !== "" && checkStart ? translate("settings.button_action.actions.mail.invalid") : null,
43033
- error: !check.test(value) && value !== "" && checkStart,
43034
  onChange: function onChange(obj) {
43035
  _onChange(obj.target.value);
43036
- },
43037
- onBlur: function onBlur(e) {
43038
- e.target.value !== "" && !check.test(value) ? setCheckStart(true) : setCheckStart(false);
43039
  }
43040
  }), /*#__PURE__*/react.createElement(TextField_TextField, {
43041
  variant: "outlined",
@@ -43101,25 +43356,28 @@ function Mail(_ref) {
43101
  }
43102
  }));
43103
  }
 
 
43104
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/ButtonAction/ButtonActionValue/WhatsApp/WhatsApp.js
43105
 
43106
 
43107
 
 
43108
  function WhatsApp(_ref) {
43109
  var _ref$value = _ref.value,
43110
  value = _ref$value === void 0 ? "" : _ref$value,
43111
  _ref$body = _ref.body,
43112
  body = _ref$body === void 0 ? "" : _ref$body,
43113
  _onChange = _ref.onChange;
43114
- var check = /^\+?\d+$/;
43115
  return /*#__PURE__*/react.createElement("div", {
43116
  className: "button-action-subject"
43117
  }, /*#__PURE__*/react.createElement(TextField_TextField, {
43118
  variant: "outlined",
43119
  fullWidth: true,
43120
  value: value,
43121
- helperText: !check.test(value) && value !== "" ? translate("settings.button_action.actions.phone_number.invalid") : null,
43122
- error: !check.test(value) && value !== "",
43123
  label: translate("settings.button_action.actions.phone_number.number"),
43124
  inputProps: {
43125
  "data-testid": "action:field"
@@ -43869,13 +44127,14 @@ function SocialSharing(_ref) {
43869
 
43870
 
43871
 
 
43872
  function Sms(_ref) {
43873
  var _ref$value = _ref.value,
43874
  value = _ref$value === void 0 ? "" : _ref$value,
43875
  _ref$body = _ref.body,
43876
  body = _ref$body === void 0 ? "" : _ref$body,
43877
  _onChange = _ref.onChange;
43878
- var check = /^\+?\d+$/;
43879
  return /*#__PURE__*/react.createElement("div", {
43880
  className: "button-action-value"
43881
  }, /*#__PURE__*/react.createElement(TextField_TextField, {
@@ -43883,8 +44142,8 @@ function Sms(_ref) {
43883
  fullWidth: true,
43884
  value: value,
43885
  label: translate("settings.button_action.actions.phone_number.number"),
43886
- helperText: !check.test(value) && value !== "" ? translate("settings.button_action.actions.phone_number.invalid") : null,
43887
- error: !check.test(value) && value !== "",
43888
  onChange: function onChange(obj) {
43889
  _onChange(obj.target.value);
43890
  },
@@ -44127,6 +44386,7 @@ function ButtonActionNewTab(_ref) {
44127
  }, translate("settings.button_action.open_url.title")), /*#__PURE__*/react.createElement(Select_Select, {
44128
  onChange: handleChange,
44129
  labelWidth: labelWidth,
 
44130
  value: new_tab,
44131
  MenuProps: {
44132
  anchorOrigin: {
@@ -44154,6 +44414,7 @@ function ButtonActionNewTab(_ref) {
44154
 
44155
 
44156
 
 
44157
  /**
44158
  * DefaultTextField
44159
  * Create a textfield that changes placeholder and such
@@ -44175,12 +44436,13 @@ function DefaultTextField(_ref) {
44175
  paragraph = _ref.paragraph,
44176
  knowledge = _ref.knowledge,
44177
  _onChange = _ref.onChange,
44178
- _ref$check = _ref.check,
44179
- check = _ref$check === void 0 ? false : _ref$check,
44180
  _ref$checkText = _ref.checkText,
44181
  checkText = _ref$checkText === void 0 ? "Invalid" : _ref$checkText,
44182
  _ref$children = _ref.children,
44183
  children = _ref$children === void 0 ? false : _ref$children;
 
44184
  return /*#__PURE__*/react.createElement("div", {
44185
  className: "button-action-value"
44186
  }, /*#__PURE__*/react.createElement(TextField_TextField, {
@@ -44191,11 +44453,11 @@ function DefaultTextField(_ref) {
44191
  },
44192
  type: type ? type : "text",
44193
  helperText: //is there an error check?
44194
- check ? // check if else
44195
- !check.test(value) && value !== "" ? checkText : null : null,
44196
  error: //is there an error check?
44197
- check ? // check for errors
44198
- !check.test(value) && value !== "" : false,
44199
  value: value,
44200
  label: placeholder,
44201
  onChange: function onChange(obj) {
@@ -44364,11 +44626,6 @@ function MessengerChat(_ref) {
44364
  buttons: state.buttons
44365
  };
44366
  })(MessengerChat));
44367
- ;// CONCATENATED MODULE: ./src/js/utils/CheckValidDomain.js
44368
- function CheckValidDomain(buttonValue) {
44369
- var check = /^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?/m;
44370
- return check.test(buttonValue);
44371
- }
44372
  ;// CONCATENATED MODULE: ./node_modules/popper.js/dist/esm/popper.js
44373
  /**!
44374
  * @fileOverview Kickass library to create and place poppers near their reference elements.
@@ -48883,6 +49140,18 @@ function ButtonActionRelAttributes(_ref) {
48883
  }
48884
  });
48885
  }
 
 
 
 
 
 
 
 
 
 
 
 
48886
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/ButtonAction/ButtonActionValue/Url/Url.js
48887
  function Url_slicedToArray(arr, i) { return Url_arrayWithHoles(arr) || Url_iterableToArrayLimit(arr, i) || Url_unsupportedIterableToArray(arr, i) || Url_nonIterableRest(); }
48888
 
@@ -48902,6 +49171,7 @@ function Url_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
48902
 
48903
 
48904
 
 
48905
  function Url(_ref) {
48906
  var _ref$value = _ref.value,
48907
  value = _ref$value === void 0 ? "" : _ref$value,
@@ -48916,13 +49186,17 @@ function Url(_ref) {
48916
  relAttributesValue = _ref.relAttributesValue,
48917
  _onChange = _ref.onChange;
48918
 
48919
- var _useState = (0,react.useState)(false),
48920
  _useState2 = Url_slicedToArray(_useState, 2),
48921
  hasDomainError = _useState2[0],
48922
- setHashDomainError = _useState2[1];
 
 
 
 
48923
 
48924
  (0,react.useEffect)(function () {
48925
- setHashDomainError(CheckValidDomain(value) && (value.indexOf("https://") === -1 || value.indexOf("http://") === -1));
48926
  }, []);
48927
  return /*#__PURE__*/react.createElement("div", {
48928
  className: "button-action-value"
@@ -48931,24 +49205,28 @@ function Url(_ref) {
48931
  fullWidth: true,
48932
  value: value,
48933
  label: placeholder,
48934
- helperText: hasDomainError && [/*#__PURE__*/react.createElement("p", {
48935
- key: 0
48936
- }, translate("settings.button_action.actions.url.invalid")), /*#__PURE__*/react.createElement("p", {
48937
- key: 1,
48938
  dangerouslySetInnerHTML: {
48939
  __html: translate("settings.button_action.actions.url.invalid_tip")
48940
  }
48941
- })],
48942
  FormHelperTextProps: {
48943
  component: "span",
48944
  "data-testid": "button-action-value-error"
48945
  },
48946
  error: hasDomainError,
48947
- onChange: function onChange(obj) {
48948
- _onChange(obj.target.value);
 
 
 
 
 
 
 
48949
  },
48950
  onBlur: function onBlur(e) {
48951
- setHashDomainError(CheckValidDomain(value) && (e.target.value.indexOf("https://") === -1 || e.target.value.indexOf("http://") === -1));
48952
  },
48953
  inputProps: {
48954
  "data-testid": "action:field"
@@ -49454,7 +49732,7 @@ function ButtonActionValue(_ref) {
49454
  return /*#__PURE__*/react.createElement(DefaultTextField, {
49455
  value: button.action,
49456
  placeholder: translate("settings.button_action.actions.phone_number.number"),
49457
- check: /^\+?\d+$/,
49458
  checkText: translate("settings.button_action.actions.phone_number.invalid"),
49459
  onChange: function onChange(val, type) {
49460
  _onChange(val, type);
@@ -49550,7 +49828,7 @@ function ButtonActionValue(_ref) {
49550
  return /*#__PURE__*/react.createElement(DefaultTextField, {
49551
  value: button.action,
49552
  placeholder: "+00123456789",
49553
- check: /^\+?\d+$/,
49554
  checkText: translate("settings.button_action.actions.phone_number.invalid"),
49555
  paragraph: translate("settings.button_action.actions.viber"),
49556
  onChange: function onChange(val, type) {
@@ -49963,7 +50241,7 @@ function ButtonAction(_ref) {
49963
  })));
49964
  }
49965
  // EXTERNAL MODULE: ./src/js/utils/buttonizer-defaults/index.js
49966
- var buttonizer_defaults = __webpack_require__(59528);
49967
  var buttonizer_defaults_default = /*#__PURE__*/__webpack_require__.n(buttonizer_defaults);
49968
  // EXTERNAL MODULE: ./node_modules/lodash/defaults.js
49969
  var lodash_defaults = __webpack_require__(91747);
@@ -50115,20 +50393,28 @@ function Options_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
50115
 
50116
 
50117
 
 
50118
  function Options(_ref) {
50119
  var set = _ref.set,
50120
  get = _ref.get;
50121
 
50122
- var _useState = (0,react.useState)("general"),
50123
  _useState2 = Options_slicedToArray(_useState, 2),
50124
  openedGroup = _useState2[0],
50125
  setOpenedGroup = _useState2[1];
50126
 
 
 
 
 
 
 
 
50127
  return /*#__PURE__*/react.createElement("div", null, /*#__PURE__*/react.createElement(CollapsibleGroup, {
50128
  title: translate("settings.setting_categories.general"),
50129
- opened: openedGroup === "general",
50130
  onSetIsOpened: function onSetIsOpened(val) {
50131
- return setOpenedGroup(val ? "general" : "");
50132
  },
50133
  "data-testid": "group:general"
50134
  }, /*#__PURE__*/react.createElement("div", {
@@ -50149,9 +50435,9 @@ function Options(_ref) {
50149
  }
50150
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
50151
  title: translate("settings.label.title"),
50152
- opened: openedGroup === "label",
50153
  onSetIsOpened: function onSetIsOpened(val) {
50154
- return setOpenedGroup(val ? "label" : "");
50155
  },
50156
  "data-testid": "group:label"
50157
  }, /*#__PURE__*/react.createElement("div", {
@@ -63363,7 +63649,9 @@ function ColorPicker(_ref) {
63363
  _ref$trashButton = _ref.trashButton,
63364
  trashButton = _ref$trashButton === void 0 ? true : _ref$trashButton,
63365
  _ref$noGradient = _ref.noGradient,
63366
- noGradient = _ref$noGradient === void 0 ? false : _ref$noGradient;
 
 
63367
 
63368
  // console.log("reloading components");
63369
  var _useState = (0,react.useState)(null),
@@ -63452,9 +63740,10 @@ function ColorPicker(_ref) {
63452
  }
63453
  }
63454
  }, /*#__PURE__*/react.createElement(SettingsContainer, {
63455
- title: title
 
63456
  }, /*#__PURE__*/react.createElement("div", {
63457
- className: "color-picker-main"
63458
  }, /*#__PURE__*/react.createElement("div", {
63459
  className: "color-picker"
63460
  }, /*#__PURE__*/react.createElement(ColorPicker_ColorPickerPopover, {
@@ -64799,7 +65088,8 @@ function IconOrImage(_ref) {
64799
  setCurrentTab(value === true ? 1 : 0);
64800
  }, [value]);
64801
  return /*#__PURE__*/react.createElement(SettingsContainer, {
64802
- title: translate("common.type")
 
64803
  }, /*#__PURE__*/react.createElement(Tabs_Tabs, {
64804
  value: currentTab,
64805
  onChange: function onChange(e, b) {
@@ -64985,7 +65275,8 @@ function IconGroup(_ref) {
64985
  onChange: function onChange(val) {
64986
  set("icon_size", val);
64987
  set("icon_image_size", val);
64988
- }
 
64989
  }));
64990
  };
64991
 
@@ -65189,7 +65480,8 @@ function FontFamily(_ref) {
65189
  placeholder: translate("settings.font_family.placeholder"),
65190
  InputProps: FontFamily_objectSpread(FontFamily_objectSpread({}, params.InputProps), {}, {
65191
  "data-testid": "font-family-input"
65192
- })
 
65193
  }));
65194
  }
65195
  }));
@@ -65779,6 +66071,7 @@ var LabelPosition = function LabelPosition(_ref) {
65779
  setLabelPosition(value || defaultValue);
65780
  }, [value]);
65781
  return /*#__PURE__*/react.createElement("div", {
 
65782
  "data-testid": "labelPosition:free"
65783
  }, /*#__PURE__*/react.createElement(SettingsContainer, {
65784
  title: title
@@ -65975,7 +66268,9 @@ function _LabelGroup(_ref) {
65975
  return /*#__PURE__*/react.createElement(CollapsibleGroup, LabelGroup_extends({
65976
  title: translate("settings.label.title"),
65977
  "data-testid": "group:label"
65978
- }, groupProps), getParent("menu_style") === "text" || getParent("menu_style") === "text-icon" ? null : /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
 
 
65979
  className: "setting-group-title"
65980
  }, translate("settings.label_desktop.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(LabelVisibility, {
65981
  title: translate("settings.show_mobile_desktop.desktop"),
@@ -65993,7 +66288,7 @@ function _LabelGroup(_ref) {
65993
  return set("show_label_mobile", val);
65994
  },
65995
  trashButton: true
65996
- }), /*#__PURE__*/react.createElement("div", {
65997
  className: "setting-group-title"
65998
  }, translate("settings.label_position.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(LabelPosition, {
65999
  title: translate("settings.label_position.description"),
@@ -66542,7 +66837,8 @@ function Styling_ButtonGroup_ButtonGroup(_ref) {
66542
  var newValues = colors;
66543
  newValues[hoverSettings] = val;
66544
  set("background_color", newValues);
66545
- }
 
66546
  }), /*#__PURE__*/react.createElement(UseBackgroundImage, {
66547
  disabled: true
66548
  }));
@@ -66563,7 +66859,8 @@ function Styling_ButtonGroup_ButtonGroup(_ref) {
66563
  var newValues = get("border_radius");
66564
  newValues[0] = val === null ? "unset" : val;
66565
  set("border_radius", newValues);
66566
- }
 
66567
  }));
66568
  };
66569
 
@@ -66580,7 +66877,8 @@ function Styling_ButtonGroup_ButtonGroup(_ref) {
66580
  },
66581
  value: hoverSettings,
66582
  variant: "fullWidth",
66583
- centered: true
 
66584
  }, /*#__PURE__*/react.createElement(Tab_Tab, {
66585
  label: "Normal",
66586
  "data-testid": "normal_hover:normal"
@@ -66652,31 +66950,40 @@ function Styling_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
66652
 
66653
 
66654
 
 
 
66655
  function Styling(_ref) {
66656
  var buttonId = _ref.buttonId;
66657
 
66658
- var _useState = (0,react.useState)("button"),
66659
  _useState2 = Styling_slicedToArray(_useState, 2),
66660
  openedGroup = _useState2[0],
66661
  setOpenedGroup = _useState2[1];
66662
 
 
 
 
 
 
 
 
66663
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Styling_ButtonGroup, {
66664
  title: translate("common.button"),
66665
- opened: openedGroup === "button",
66666
  onSetIsOpened: function onSetIsOpened(val) {
66667
- return setOpenedGroup(val ? "button" : "");
66668
  },
66669
  buttonId: buttonId
66670
  }), /*#__PURE__*/react.createElement(Styling_IconGroup, {
66671
- opened: openedGroup === "icon",
66672
  onSetIsOpened: function onSetIsOpened(val) {
66673
- return setOpenedGroup(val ? "icon" : "");
66674
  },
66675
  buttonId: buttonId
66676
  }), /*#__PURE__*/react.createElement(LabelGroup, {
66677
- opened: openedGroup === "label",
66678
  onSetIsOpened: function onSetIsOpened(val) {
66679
- return setOpenedGroup(val ? "label" : "");
66680
  },
66681
  buttonId: buttonId
66682
  }));
@@ -67608,16 +67915,23 @@ function Options_Options(_ref) {
67608
  var set = _ref.set,
67609
  get = _ref.get;
67610
 
67611
- var _useState = (0,react.useState)("general"),
67612
  _useState2 = Tabs_Options_slicedToArray(_useState, 2),
67613
  openedGroup = _useState2[0],
67614
  setOpenedGroup = _useState2[1];
67615
 
 
 
 
 
 
 
 
67616
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(CollapsibleGroup, {
67617
  title: translate("settings.setting_categories.general"),
67618
- opened: openedGroup === "general",
67619
  onSetIsOpened: function onSetIsOpened(val) {
67620
- return setOpenedGroup(val ? "general" : "");
67621
  },
67622
  "data-testid": "group:general"
67623
  }, /*#__PURE__*/react.createElement("div", {
@@ -67639,9 +67953,9 @@ function Options_Options(_ref) {
67639
  }
67640
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
67641
  title: translate("settings.menu_position.title"),
67642
- opened: openedGroup === "position",
67643
  onSetIsOpened: function onSetIsOpened(val) {
67644
- return setOpenedGroup(val ? "position" : "");
67645
  },
67646
  "data-testid": "group:position"
67647
  }, /*#__PURE__*/react.createElement(Position, {
@@ -67650,7 +67964,7 @@ function Options_Options(_ref) {
67650
  onChange: function onChange(val) {
67651
  return set("horizontal", val);
67652
  }
67653
- }), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(Position, {
67654
  position: "vertical",
67655
  value: get("vertical"),
67656
  onChange: function onChange(val) {
@@ -67658,9 +67972,9 @@ function Options_Options(_ref) {
67658
  }
67659
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
67660
  title: translate("settings.menu_style.title"),
67661
- opened: openedGroup === "menu_settings",
67662
  onSetIsOpened: function onSetIsOpened(val) {
67663
- return setOpenedGroup(val ? "menu_settings" : "");
67664
  },
67665
  "data-testid": "group:menu_settings"
67666
  }, /*#__PURE__*/react.createElement(SettingsContainer, {
@@ -68439,30 +68753,39 @@ function Tabs_Styling_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr;
68439
 
68440
 
68441
 
 
 
68442
  function Styling_Styling(_ref) {
68443
  var groupId = _ref.groupId;
68444
 
68445
- var _useState = (0,react.useState)("button"),
68446
  _useState2 = Tabs_Styling_slicedToArray(_useState, 2),
68447
  openedGroup = _useState2[0],
68448
  setOpenedGroup = _useState2[1];
68449
 
 
 
 
 
 
 
 
68450
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Tabs_Styling_ButtonGroup, {
68451
- opened: openedGroup === "button",
68452
  onSetIsOpened: function onSetIsOpened(val) {
68453
- return setOpenedGroup(val ? "button" : "");
68454
  },
68455
  groupId: groupId
68456
  }), /*#__PURE__*/react.createElement(Tabs_Styling_IconGroup, {
68457
- opened: openedGroup === "icon",
68458
  onSetIsOpened: function onSetIsOpened(val) {
68459
- return setOpenedGroup(val ? "icon" : "");
68460
  },
68461
  groupId: groupId
68462
  }), /*#__PURE__*/react.createElement(Styling_LabelGroup, {
68463
- opened: openedGroup === "label",
68464
  onSetIsOpened: function onSetIsOpened(val) {
68465
- return setOpenedGroup(val ? "label" : "");
68466
  },
68467
  groupId: groupId
68468
  }));
@@ -70960,6 +71283,7 @@ var Drawer = /*#__PURE__*/react.forwardRef(function Drawer(props, ref) {
70960
 
70961
 
70962
 
 
70963
  function MenuItem_MenuItem_MenuItem(_ref) {
70964
  var _ref$title = _ref.title,
70965
  title = _ref$title === void 0 ? "" : _ref$title,
@@ -70971,7 +71295,9 @@ function MenuItem_MenuItem_MenuItem(_ref) {
70971
  newWindow = _ref$newWindow === void 0 ? false : _ref$newWindow,
70972
  _ref$onClick = _ref.onClick,
70973
  onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
70974
- dataTestid = _ref.dataTestid;
 
 
70975
 
70976
  var clickAction = function clickAction() {
70977
  if (href && !newWindow) {
@@ -70984,7 +71310,7 @@ function MenuItem_MenuItem_MenuItem(_ref) {
70984
  };
70985
 
70986
  return /*#__PURE__*/react.createElement(Button_Button, {
70987
- className: "buttonizer-menu-item",
70988
  onClick: clickAction,
70989
  "data-testid": dataTestid
70990
  }, /*#__PURE__*/react.createElement("span", {
@@ -71018,6 +71344,7 @@ function MenuDrawer_defineProperty(obj, key, value) { if (key in obj) { Object.d
71018
 
71019
 
71020
 
 
71021
  var MenuDrawer_useStyles = styles_makeStyles(function () {
71022
  return MenuDrawer_defineProperty({
71023
  hideButton: {
@@ -71038,11 +71365,14 @@ function MenuDrawer(_ref2) {
71038
  var onClose = _ref2.onClose,
71039
  open = _ref2.open;
71040
 
71041
- var _useState = (0,react.useState)("settings"),
71042
  _useState2 = MenuDrawer_slicedToArray(_useState, 2),
71043
  openedGroup = _useState2[0],
71044
  setOpenedGroup = _useState2[1];
71045
 
 
 
 
71046
  var classes = MenuDrawer_useStyles();
71047
  var socialMediaButtons = [{
71048
  title: "Follow us on Twitter",
@@ -71069,7 +71399,11 @@ function MenuDrawer(_ref2) {
71069
  url: "https://community.buttonizer.pro/?referral=buttonizer-dashboard-menu-social-buttons",
71070
  icon: "far fa-comments",
71071
  "class": "community"
71072
- }];
 
 
 
 
71073
  return /*#__PURE__*/react.createElement(Drawer_Drawer, {
71074
  open: open,
71075
  onClose: onClose,
@@ -71091,11 +71425,12 @@ function MenuDrawer(_ref2) {
71091
  className: "fas fa-chevron-left"
71092
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
71093
  title: translate("common.settings"),
71094
- opened: openedGroup === "settings",
71095
  onSetIsOpened: function onSetIsOpened(val) {
71096
- return setOpenedGroup(val ? "settings" : "");
71097
  },
71098
  bodySpacing: false,
 
71099
  "data-testid": "menudrawer:settings"
71100
  }, /*#__PURE__*/react.createElement(MenuItem_MenuItem_MenuItem, {
71101
  title: "Google Analytics",
@@ -71125,6 +71460,14 @@ function MenuDrawer(_ref2) {
71125
  return openDrawer(drawers.SETTINGS, drawers.SETTINGS_PAGES.reset);
71126
  },
71127
  dataTestid: "menuitem:".concat(drawers.SETTINGS_PAGES.reset)
 
 
 
 
 
 
 
 
71128
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
71129
  title: "".concat(translate("page_rules.name"), " & ").concat(translate("time_schedules.name")),
71130
  opened: openedGroup === "pageRules",
@@ -71151,11 +71494,12 @@ function MenuDrawer(_ref2) {
71151
  }
71152
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
71153
  title: translate("bar.menu.support_group"),
71154
- opened: openedGroup === "support",
71155
  onSetIsOpened: function onSetIsOpened(val) {
71156
- return setOpenedGroup(val ? "support" : "");
71157
  },
71158
  bodySpacing: false,
 
71159
  "data-testid": "menudrawer:support"
71160
  }, /*#__PURE__*/react.createElement(MenuItem_MenuItem_MenuItem, {
71161
  title: translate("bar.menu.knowledgebase.title"),
@@ -71168,7 +71512,8 @@ function MenuDrawer(_ref2) {
71168
  description: translate("bar.menu.community.description"),
71169
  href: "https://community.buttonizer.pro/?referral=buttonizer-dashboard-menu",
71170
  newWindow: true,
71171
- dataTestid: "menuitem:community"
 
71172
  }), /*#__PURE__*/react.createElement(MenuItem_MenuItem_MenuItem, {
71173
  title: translate("bar.menu.support.title"),
71174
  description: translate("bar.menu.support.description"),
@@ -72410,6 +72755,104 @@ function SettingsDrawer(_ref) {
72410
  }
72411
  };
72412
  })(SettingsDrawer));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72413
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Drawers/index.js
72414
 
72415
 
@@ -72418,6 +72861,7 @@ function SettingsDrawer(_ref) {
72418
 
72419
 
72420
 
 
72421
  /* webpack-strip-block:removed */
72422
 
72423
  function Drawers(_ref) {
@@ -72446,6 +72890,11 @@ function Drawers(_ref) {
72446
  onClose: function onClose() {
72447
  return closeDrawer();
72448
  }
 
 
 
 
 
72449
  }));
72450
  }
72451
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Dialogs/PremiumDialog/PremiumDialog.js
@@ -72914,6 +73363,642 @@ function SuperContributorDialog(_ref) {
72914
  }
72915
  };
72916
  })(SuperContributorDialog));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72917
  ;// CONCATENATED MODULE: ./src/js/dashboard/App.js
72918
  function App_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { App_typeof = function _typeof(obj) { return typeof obj; }; } else { App_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return App_typeof(obj); }
72919
 
@@ -72954,6 +74039,8 @@ function App_getPrototypeOf(o) { App_getPrototypeOf = Object.setPrototypeOf ? Ob
72954
 
72955
 
72956
 
 
 
72957
 
72958
 
72959
  var App_App = /*#__PURE__*/function (_React$Component) {
@@ -72969,11 +74056,8 @@ var App_App = /*#__PURE__*/function (_React$Component) {
72969
  _this = _super.call(this, props);
72970
  __webpack_require__.g.app = App_assertThisInitialized(_this); // FontAwesome
72971
 
72972
- _this.loadFontAwesome(); // Frame URL
72973
-
72974
 
72975
- _this.frameUrl = props.frameUrl;
72976
- _this.loading = props.loading;
72977
  _this.state = {
72978
  hasError: false,
72979
  error: "",
@@ -72982,7 +74066,8 @@ var App_App = /*#__PURE__*/function (_React$Component) {
72982
  open: false,
72983
  text: "DEFAULT DIALOG",
72984
  video: null
72985
- }
 
72986
  /* webpack-strip-block:removed */
72987
 
72988
  };
@@ -73031,9 +74116,9 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73031
  }
73032
  }, false);
73033
  }
73034
- /**
73035
- * Buttonizer
73036
- * @returns {*}
73037
  */
73038
 
73039
  }, {
@@ -73108,7 +74193,11 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73108
  });
73109
  }
73110
  }
73111
- }, "Your browser does somehow not support iframes. Please try a recent version of Google Chrome, FireFox or Microsoft Edge"))), /*#__PURE__*/react.createElement(Dialogs_SuperContributorDialog, null), /*#__PURE__*/react.createElement(PremiumDialog, {
 
 
 
 
73112
  open: this.state.premiumDialog.open,
73113
  text: this.state.premiumDialog.text,
73114
  video: this.state.premiumDialog.video,
@@ -73130,14 +74219,14 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73130
  var fontAwesome = document.createElement("link");
73131
  fontAwesome.rel = "stylesheet";
73132
  fontAwesome.type = "text/css";
73133
- fontAwesome.href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css";
73134
- fontAwesome.integrity = "sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==";
73135
  fontAwesome.setAttribute("crossorigin", "anonymous");
73136
  document.getElementsByTagName("head")[0].appendChild(fontAwesome);
73137
  }
73138
- /**
73139
- * Does this user have premium?
73140
- * @returns {boolean|*}
73141
  */
73142
 
73143
  }, {
@@ -73146,10 +74235,10 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73146
  if (window.free === true) return false;
73147
  return this.props._premium; // return false;
73148
  }
73149
- /**
73150
- * Does this user have any changes?
73151
- *
73152
- * @returns {boolean}
73153
  */
73154
 
73155
  }, {
@@ -73157,11 +74246,11 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73157
  value: function hasChanges() {
73158
  return this.props.hasChanges;
73159
  }
73160
- /**
73161
- * Update if the user has any changes
73162
- *
73163
- * @param status
73164
- * @returns {boolean}
73165
  */
73166
 
73167
  }, {
@@ -73171,9 +74260,9 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73171
  dashboard_store.dispatch(changeHasChanges(status));
73172
  return status;
73173
  }
73174
- /**
73175
- * Buttonizer fully loaded?
73176
- * @returns {boolean}
73177
  */
73178
 
73179
  }, {
@@ -73181,9 +74270,9 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73181
  value: function isLoaded() {
73182
  return this.props.loading.loaded;
73183
  }
73184
- /**
73185
- * Return button saver (discontinued)
73186
- * @returns {ButtonSaver}
73187
  */
73188
 
73189
  }, {
@@ -73191,6 +74280,25 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73191
  value: function getSaver() {
73192
  return this.buttonSaver;
73193
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73194
  }, {
73195
  key: "showPremiumDialog",
73196
  value: function showPremiumDialog() {
@@ -73217,9 +74325,9 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73217
  }
73218
  });
73219
  }
73220
- /**
73221
- * Open a page on the dashboard when clicking on a button/group
73222
- * @param {*} action
73223
  */
73224
 
73225
  }, {
@@ -73241,8 +74349,8 @@ var App_App = /*#__PURE__*/function (_React$Component) {
73241
  frameUrl: store.misc.frameUrl,
73242
  loading: store.misc.loading,
73243
  _premium: store.misc._premium,
73244
- settings: store.settings,
73245
- hasChanges: store.misc.hasChanges
73246
  };
73247
  }, {
73248
  addRecord: dataActions_addRecord,
@@ -77609,7 +78717,7 @@ document.body.classList.add("buttonizer-initialized");
77609
 
77610
  /***/ }),
77611
 
77612
- /***/ 13211:
77613
  /***/ (function(module) {
77614
 
77615
  /* global module */
@@ -77624,7 +78732,7 @@ module.exports = {
77624
 
77625
  /***/ }),
77626
 
77627
- /***/ 87787:
77628
  /***/ (function(module) {
77629
 
77630
  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; }
@@ -77662,7 +78770,7 @@ module.exports = {
77662
 
77663
  /***/ }),
77664
 
77665
- /***/ 39575:
77666
  /***/ (function(module) {
77667
 
77668
  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; }
@@ -77701,7 +78809,7 @@ module.exports = {
77701
 
77702
  /***/ }),
77703
 
77704
- /***/ 80211:
77705
  /***/ (function(module) {
77706
 
77707
  /* global module */
@@ -77765,7 +78873,7 @@ module.exports = {
77765
 
77766
  /***/ }),
77767
 
77768
- /***/ 42837:
77769
  /***/ (function(module) {
77770
 
77771
  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; }
@@ -77851,19 +78959,19 @@ module.exports = {
77851
 
77852
  /***/ }),
77853
 
77854
- /***/ 54645:
77855
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
77856
 
77857
  /* global module, require */
77858
- var Default = __webpack_require__(13211);
77859
 
77860
- var Square = __webpack_require__(39575);
77861
 
77862
- var Rectangle = __webpack_require__(87787);
77863
 
77864
- var TextIcon = __webpack_require__(42837);
77865
 
77866
- var Text = __webpack_require__(80211);
77867
 
77868
  module.exports = {
77869
  "default": Default,
@@ -77875,7 +78983,7 @@ module.exports = {
77875
 
77876
  /***/ }),
77877
 
77878
- /***/ 59528:
77879
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
77880
 
77881
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -77893,7 +79001,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
77893
  /* global module, require */
77894
  var defaults = __webpack_require__(46314);
77895
 
77896
- var menuStyles = __webpack_require__(54645);
77897
 
77898
  var merge = __webpack_require__(82492);
77899
 
@@ -91654,256 +92762,5714 @@ if (true) {
91654
 
91655
  /***/ }),
91656
 
91657
- /***/ 17253:
91658
- /***/ (function(module) {
91659
-
91660
- /*! @license https://github.com/onury/invert-color */
91661
- !function(r,n){ true?module.exports=n():0}(this,function(){"use strict";var t=Math.sqrt(1.05*.05)-.05,n=/^(?:[0-9a-f]{3}){1,2}$/i,i={black:"#000000",white:"#ffffff",threshold:t};function o(r){if("#"===r.slice(0,1)&&(r=r.slice(1)),!n.test(r))throw new Error('Invalid HEX color: "'+r+'"');return 3===r.length&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function f(r){if(!r)throw new Error("Invalid color value");return Array.isArray(r)?r:"string"==typeof r?o(r):[r.r,r.g,r.b]}function u(r,n,t){var e=!0===n?i:Object.assign({},i,n);return function(r){var n,t,e=[];for(n=0;n<r.length;n++)t=r[n]/255,e[n]=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4);return.2126*e[0]+.7152*e[1]+.0722*e[2]}(r)>e.threshold?t?o(e.black):e.black:t?o(e.white):e.white}function r(r,n){return void 0===n&&(n=!1),r=f(r),n?u(r,n):"#"+r.map(function(r){return n=(255-r).toString(16),void 0===t&&(t=2),(new Array(t).join("0")+n).slice(-t);var n,t}).join("")}return function(r){function n(r,n){r=f(r);var t,e=n?u(r,n,!0):r.map(function(r){return 255-r});return{r:(t=e)[0],g:t[1],b:t[2]}}r.asRGB=n,r.asRgbArray=function(r,n){return r=f(r),n?u(r,n,!0):r.map(function(r){return 255-r})},r.defaultThreshold=t,r.asRgbObject=n}(r||(r={})),r});
91662
-
91663
- /***/ }),
91664
-
91665
- /***/ 33827:
91666
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
91667
 
91668
  "use strict";
91669
- /* unused harmony export isBrowser */
91670
- 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; };
91671
 
91672
- var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9;
91673
 
91674
- /* harmony default export */ __webpack_exports__["Z"] = (isBrowser);
 
 
 
91675
 
 
91676
 
91677
- /***/ }),
91678
 
91679
- /***/ 54013:
91680
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
91681
 
91682
- "use strict";
91683
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
91684
- /* harmony export */ "RB": function() { return /* binding */ RuleList; },
91685
- /* harmony export */ "Ue": function() { return /* binding */ create; },
91686
- /* harmony export */ "JH": function() { return /* binding */ createRule; },
91687
- /* harmony export */ "_$": function() { return /* binding */ getDynamicStyles; },
91688
- /* harmony export */ "HZ": function() { return /* binding */ hasCSSTOMSupport; },
91689
- /* harmony export */ "EK": function() { return /* binding */ toCssValue; }
91690
- /* harmony export */ });
91691
- /* unused harmony exports SheetsManager, SheetsRegistry, createGenerateId, sheets */
91692
- /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22122);
91693
- /* harmony import */ var is_in_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33827);
91694
- /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5991);
91695
- /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41788);
91696
- /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63349);
91697
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19756);
91698
 
 
91699
 
 
91700
 
 
91701
 
 
91702
 
 
91703
 
 
91704
 
 
91705
 
91706
- var plainObjectConstrurctor = {}.constructor;
91707
- function cloneStyle(style) {
91708
- if (style == null || typeof style !== 'object') return style;
91709
- if (Array.isArray(style)) return style.map(cloneStyle);
91710
- if (style.constructor !== plainObjectConstrurctor) return style;
91711
- var newStyle = {};
91712
 
91713
- for (var name in style) {
91714
- newStyle[name] = cloneStyle(style[name]);
91715
- }
91716
 
91717
- return newStyle;
91718
- }
91719
 
91720
- /**
91721
- * Create a rule instance.
91722
- */
91723
 
91724
- function createRule(name, decl, options) {
91725
- if (name === void 0) {
91726
- name = 'unnamed';
91727
- }
91728
 
91729
- var jss = options.jss;
91730
- var declCopy = cloneStyle(decl);
91731
- var rule = jss.plugins.onCreateRule(name, declCopy, options);
91732
- if (rule) return rule; // It is an at-rule and it has no instance.
91733
 
91734
- if (name[0] === '@') {
91735
- false ? 0 : void 0;
91736
- }
91737
 
91738
- return null;
91739
- }
91740
 
91741
- var join = function join(value, by) {
91742
- var result = '';
91743
 
91744
- for (var i = 0; i < value.length; i++) {
91745
- // Remove !important from the value, it will be readded later.
91746
- if (value[i] === '!important') break;
91747
- if (result) result += by;
91748
- result += value[i];
91749
- }
91750
 
91751
- return result;
91752
- };
91753
 
91754
  /**
91755
- * Converts array values to string.
91756
- *
91757
- * `margin: [['5px', '10px']]` > `margin: 5px 10px;`
91758
- * `border: ['1px', '2px']` > `border: 1px, 2px;`
91759
- * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
91760
- * `color: ['red', !important]` > `color: red !important;`
91761
  */
91762
- var toCssValue = function toCssValue(value, ignoreImportant) {
91763
- if (ignoreImportant === void 0) {
91764
- ignoreImportant = false;
91765
- }
91766
 
91767
- if (!Array.isArray(value)) return value;
91768
- var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
91769
 
91770
- if (Array.isArray(value[0])) {
91771
- for (var i = 0; i < value.length; i++) {
91772
- if (value[i] === '!important') break;
91773
- if (cssValue) cssValue += ', ';
91774
- cssValue += join(value[i], ' ');
91775
- }
91776
- } else cssValue = join(value, ', '); // Add !important, because it was ignored.
91777
 
 
 
 
 
91778
 
91779
- if (!ignoreImportant && value[value.length - 1] === '!important') {
91780
- cssValue += ' !important';
91781
- }
 
 
 
 
91782
 
91783
- return cssValue;
91784
- };
91785
 
91786
- /**
91787
- * Indent a string.
91788
- * http://jsperf.com/array-join-vs-for
91789
- */
91790
- function indentStr(str, indent) {
91791
- var result = '';
91792
 
91793
- for (var index = 0; index < indent; index++) {
91794
- result += ' ';
 
91795
  }
 
 
 
 
91796
 
91797
- return result + str;
91798
- }
91799
- /**
91800
- * Converts a Rule to CSS string.
91801
- */
91802
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91803
 
91804
- function toCss(selector, style, options) {
91805
- if (options === void 0) {
91806
- options = {};
91807
- }
91808
 
91809
- var result = '';
91810
- if (!style) return result;
91811
- var _options = options,
91812
- _options$indent = _options.indent,
91813
- indent = _options$indent === void 0 ? 0 : _options$indent;
91814
- var fallbacks = style.fallbacks;
91815
- if (selector) indent++; // Apply fallbacks first.
 
91816
 
91817
- if (fallbacks) {
91818
- // Array syntax {fallbacks: [{prop: value}]}
91819
- if (Array.isArray(fallbacks)) {
91820
- for (var index = 0; index < fallbacks.length; index++) {
91821
- var fallback = fallbacks[index];
 
 
 
91822
 
91823
- for (var prop in fallback) {
91824
- var value = fallback[prop];
 
 
 
 
 
91825
 
91826
- if (value != null) {
91827
- if (result) result += '\n';
91828
- result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
91829
- }
91830
- }
91831
  }
91832
- } else {
91833
- // Object syntax {fallbacks: {prop: value}}
91834
- for (var _prop in fallbacks) {
91835
- var _value = fallbacks[_prop];
91836
 
91837
- if (_value != null) {
91838
- if (result) result += '\n';
91839
- result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
91840
- }
91841
  }
91842
  }
91843
- }
 
 
91844
 
91845
- for (var _prop2 in style) {
91846
- var _value2 = style[_prop2];
 
 
 
 
91847
 
91848
- if (_value2 != null && _prop2 !== 'fallbacks') {
91849
- if (result) result += '\n';
91850
- result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
 
 
91851
  }
91852
- } // Allow empty style in this case, because properties will be added dynamically.
 
 
91853
 
 
 
 
 
 
 
91854
 
91855
- if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
 
 
 
 
 
 
 
 
 
91856
 
91857
- if (!selector) return result;
91858
- indent--;
91859
- if (result) result = "\n" + result + "\n";
91860
- return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
91861
- }
 
91862
 
91863
- var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
91864
- var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
91865
- var escape = (function (str) {
91866
- return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
 
 
 
 
 
 
 
 
 
 
 
91867
  });
91868
 
91869
- var BaseStyleRule =
91870
- /*#__PURE__*/
91871
- function () {
91872
- function BaseStyleRule(key, style, options) {
91873
- this.type = 'style';
91874
- this.key = void 0;
91875
- this.isProcessed = false;
91876
- this.style = void 0;
91877
- this.renderer = void 0;
91878
- this.renderable = void 0;
91879
- this.options = void 0;
91880
- var sheet = options.sheet,
91881
- Renderer = options.Renderer;
91882
- this.key = key;
91883
- this.options = options;
91884
- this.style = style;
91885
- if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
91886
- }
91887
- /**
91888
- * Get or set a style property.
91889
- */
91890
 
 
91891
 
91892
- var _proto = BaseStyleRule.prototype;
 
91893
 
91894
- _proto.prop = function prop(name, value, options) {
91895
- // It's a getter.
91896
- if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
91897
 
91898
- var force = options ? options.force : false;
91899
- if (!force && this.style[name] === value) return this;
91900
- var newValue = value;
91901
 
91902
- if (!options || options.process !== false) {
91903
- newValue = this.options.jss.plugins.onChangeValue(value, name, this);
91904
- }
 
91905
 
91906
- var isEmpty = newValue == null || newValue === false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91907
  var isDefined = name in this.style; // Value is empty and wasn't defined before.
91908
 
91909
  if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
@@ -104408,6 +110974,68 @@ var calculateChange = exports.calculateChange = function calculateChange(e, hsl,
104408
  };
104409
  };
104410
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104411
  /***/ }),
104412
 
104413
  /***/ 64448:
@@ -104743,6 +111371,19 @@ if (true) {
104743
  } else {}
104744
 
104745
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104746
  /***/ }),
104747
 
104748
  /***/ 19928:
@@ -108033,6 +114674,910 @@ function v4(options, buf, offset) {
108033
  module.exports = v4;
108034
 
108035
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108036
  /***/ }),
108037
 
108038
  /***/ 46314:
@@ -108154,7 +115699,7 @@ module.exports = JSON.parse('{"group":{"general":{"horizontal":"right: 5%","vert
108154
  /******/ // startup
108155
  /******/ // Load entry module and return exports
108156
  /******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
108157
- /******/ var __webpack_exports__ = __webpack_require__(23175);
108158
  /******/
108159
  /******/ })()
108160
  ;
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
+ * (C) 2017-2021 Buttonizer v2.5.5
13
  *
14
  */
15
  /*!
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
+ * (C) 2017-2021 Buttonizer v2.5.5
27
  *
28
  */
29
  /******/ (function() { // webpackBootstrap
5523
  return new Promise(function dispatchXhrRequest(resolve, reject) {
5524
  var requestData = config.data;
5525
  var requestHeaders = config.headers;
5526
+ var responseType = config.responseType;
5527
 
5528
  if (utils.isFormData(requestData)) {
5529
  delete requestHeaders['Content-Type']; // Let the browser set it
5544
  // Set the request timeout in MS
5545
  request.timeout = config.timeout;
5546
 
5547
+ function onloadend() {
5548
+ if (!request) {
 
 
 
 
 
 
 
 
 
5549
  return;
5550
  }
 
5551
  // Prepare the response
5552
  var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
5553
+ var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
5554
+ request.responseText : request.response;
5555
  var response = {
5556
  data: responseData,
5557
  status: request.status,
5565
 
5566
  // Clean up request
5567
  request = null;
5568
+ }
5569
+
5570
+ if ('onloadend' in request) {
5571
+ // Use onloadend if available
5572
+ request.onloadend = onloadend;
5573
+ } else {
5574
+ // Listen for ready state to emulate onloadend
5575
+ request.onreadystatechange = function handleLoad() {
5576
+ if (!request || request.readyState !== 4) {
5577
+ return;
5578
+ }
5579
+
5580
+ // The request errored out and we didn't get a response, this will be
5581
+ // handled by onerror instead
5582
+ // With one exception: request that using file: protocol, most browsers
5583
+ // will return status as 0 even though it's a successful request
5584
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
5585
+ return;
5586
+ }
5587
+ // readystate handler is calling before onerror or ontimeout handlers,
5588
+ // so we should call onloadend on the next 'tick'
5589
+ setTimeout(onloadend);
5590
+ };
5591
+ }
5592
 
5593
  // Handle browser request cancellation (as opposed to a manual cancellation)
5594
  request.onabort = function handleAbort() {
5618
  if (config.timeoutErrorMessage) {
5619
  timeoutErrorMessage = config.timeoutErrorMessage;
5620
  }
5621
+ reject(createError(
5622
+ timeoutErrorMessage,
5623
+ config,
5624
+ config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
5625
  request));
5626
 
5627
  // Clean up request
5661
  }
5662
 
5663
  // Add responseType to request if needed
5664
+ if (responseType && responseType !== 'json') {
5665
+ request.responseType = config.responseType;
 
 
 
 
 
 
 
 
5666
  }
5667
 
5668
  // Handle progress if needed
5881
  var InterceptorManager = __webpack_require__(80782);
5882
  var dispatchRequest = __webpack_require__(13572);
5883
  var mergeConfig = __webpack_require__(47185);
5884
+ var validator = __webpack_require__(54875);
5885
 
5886
+ var validators = validator.validators;
5887
  /**
5888
  * Create a new instance of Axios
5889
  *
5923
  config.method = 'get';
5924
  }
5925
 
5926
+ var transitional = config.transitional;
5927
+
5928
+ if (transitional !== undefined) {
5929
+ validator.assertOptions(transitional, {
5930
+ silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
5931
+ forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
5932
+ clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')
5933
+ }, false);
5934
+ }
5935
 
5936
+ // filter out skipped interceptors
5937
+ var requestInterceptorChain = [];
5938
+ var synchronousRequestInterceptors = true;
5939
  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
5940
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
5941
+ return;
5942
+ }
5943
+
5944
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
5945
+
5946
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
5947
  });
5948
 
5949
+ var responseInterceptorChain = [];
5950
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
5951
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
5952
  });
5953
 
5954
+ var promise;
5955
+
5956
+ if (!synchronousRequestInterceptors) {
5957
+ var chain = [dispatchRequest, undefined];
5958
+
5959
+ Array.prototype.unshift.apply(chain, requestInterceptorChain);
5960
+ chain = chain.concat(responseInterceptorChain);
5961
+
5962
+ promise = Promise.resolve(config);
5963
+ while (chain.length) {
5964
+ promise = promise.then(chain.shift(), chain.shift());
5965
+ }
5966
+
5967
+ return promise;
5968
+ }
5969
+
5970
+
5971
+ var newConfig = config;
5972
+ while (requestInterceptorChain.length) {
5973
+ var onFulfilled = requestInterceptorChain.shift();
5974
+ var onRejected = requestInterceptorChain.shift();
5975
+ try {
5976
+ newConfig = onFulfilled(newConfig);
5977
+ } catch (error) {
5978
+ onRejected(error);
5979
+ break;
5980
+ }
5981
+ }
5982
+
5983
+ try {
5984
+ promise = dispatchRequest(newConfig);
5985
+ } catch (error) {
5986
+ return Promise.reject(error);
5987
+ }
5988
+
5989
+ while (responseInterceptorChain.length) {
5990
+ promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
5991
  }
5992
 
5993
  return promise;
6046
  *
6047
  * @return {Number} An ID used to remove interceptor later
6048
  */
6049
+ InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
6050
  this.handlers.push({
6051
  fulfilled: fulfilled,
6052
+ rejected: rejected,
6053
+ synchronous: options ? options.synchronous : false,
6054
+ runWhen: options ? options.runWhen : null
6055
  });
6056
  return this.handlers.length - 1;
6057
  };
6175
  config.headers = config.headers || {};
6176
 
6177
  // Transform request data
6178
+ config.data = transformData.call(
6179
+ config,
6180
  config.data,
6181
  config.headers,
6182
  config.transformRequest
6202
  throwIfCancellationRequested(config);
6203
 
6204
  // Transform response data
6205
+ response.data = transformData.call(
6206
+ config,
6207
  response.data,
6208
  response.headers,
6209
  config.transformResponse
6216
 
6217
  // Transform response data
6218
  if (reason && reason.response) {
6219
+ reason.response.data = transformData.call(
6220
+ config,
6221
  reason.response.data,
6222
  reason.response.headers,
6223
  config.transformResponse
6417
 
6418
 
6419
  var utils = __webpack_require__(64867);
6420
+ var defaults = __webpack_require__(45655);
6421
 
6422
  /**
6423
  * Transform the data for a request or a response
6428
  * @returns {*} The resulting transformed data
6429
  */
6430
  module.exports = function transformData(data, headers, fns) {
6431
+ var context = this || defaults;
6432
  /*eslint no-param-reassign:0*/
6433
  utils.forEach(fns, function transform(fn) {
6434
+ data = fn.call(context, data, headers);
6435
  });
6436
 
6437
  return data;
6448
 
6449
  var utils = __webpack_require__(64867);
6450
  var normalizeHeaderName = __webpack_require__(16016);
6451
+ var enhanceError = __webpack_require__(80481);
6452
 
6453
  var DEFAULT_CONTENT_TYPE = {
6454
  'Content-Type': 'application/x-www-form-urlencoded'
6472
  return adapter;
6473
  }
6474
 
6475
+ function stringifySafely(rawValue, parser, encoder) {
6476
+ if (utils.isString(rawValue)) {
6477
+ try {
6478
+ (parser || JSON.parse)(rawValue);
6479
+ return utils.trim(rawValue);
6480
+ } catch (e) {
6481
+ if (e.name !== 'SyntaxError') {
6482
+ throw e;
6483
+ }
6484
+ }
6485
+ }
6486
+
6487
+ return (encoder || JSON.stringify)(rawValue);
6488
+ }
6489
+
6490
  var defaults = {
6491
+
6492
+ transitional: {
6493
+ silentJSONParsing: true,
6494
+ forcedJSONParsing: true,
6495
+ clarifyTimeoutError: false
6496
+ },
6497
+
6498
  adapter: getDefaultAdapter(),
6499
 
6500
  transformRequest: [function transformRequest(data, headers) {
6501
  normalizeHeaderName(headers, 'Accept');
6502
  normalizeHeaderName(headers, 'Content-Type');
6503
+
6504
  if (utils.isFormData(data) ||
6505
  utils.isArrayBuffer(data) ||
6506
  utils.isBuffer(data) ||
6517
  setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
6518
  return data.toString();
6519
  }
6520
+ if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
6521
+ setContentTypeIfUnset(headers, 'application/json');
6522
+ return stringifySafely(data);
6523
  }
6524
  return data;
6525
  }],
6526
 
6527
  transformResponse: [function transformResponse(data) {
6528
+ var transitional = this.transitional;
6529
+ var silentJSONParsing = transitional && transitional.silentJSONParsing;
6530
+ var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
6531
+ var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
6532
+
6533
+ if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
6534
  try {
6535
+ return JSON.parse(data);
6536
+ } catch (e) {
6537
+ if (strictJSONParsing) {
6538
+ if (e.name === 'SyntaxError') {
6539
+ throw enhanceError(e, this, 'E_JSON_PARSE');
6540
+ }
6541
+ throw e;
6542
+ }
6543
+ }
6544
  }
6545
+
6546
  return data;
6547
  }],
6548
 
6993
  };
6994
 
6995
 
6996
+ /***/ }),
6997
+
6998
+ /***/ 54875:
6999
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
7000
+
7001
+ "use strict";
7002
+
7003
+
7004
+ var pkg = __webpack_require__(20696);
7005
+
7006
+ var validators = {};
7007
+
7008
+ // eslint-disable-next-line func-names
7009
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
7010
+ validators[type] = function validator(thing) {
7011
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
7012
+ };
7013
+ });
7014
+
7015
+ var deprecatedWarnings = {};
7016
+ var currentVerArr = pkg.version.split('.');
7017
+
7018
+ /**
7019
+ * Compare package versions
7020
+ * @param {string} version
7021
+ * @param {string?} thanVersion
7022
+ * @returns {boolean}
7023
+ */
7024
+ function isOlderVersion(version, thanVersion) {
7025
+ var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;
7026
+ var destVer = version.split('.');
7027
+ for (var i = 0; i < 3; i++) {
7028
+ if (pkgVersionArr[i] > destVer[i]) {
7029
+ return true;
7030
+ } else if (pkgVersionArr[i] < destVer[i]) {
7031
+ return false;
7032
+ }
7033
+ }
7034
+ return false;
7035
+ }
7036
+
7037
+ /**
7038
+ * Transitional option validator
7039
+ * @param {function|boolean?} validator
7040
+ * @param {string?} version
7041
+ * @param {string} message
7042
+ * @returns {function}
7043
+ */
7044
+ validators.transitional = function transitional(validator, version, message) {
7045
+ var isDeprecated = version && isOlderVersion(version);
7046
+
7047
+ function formatMessage(opt, desc) {
7048
+ return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
7049
+ }
7050
+
7051
+ // eslint-disable-next-line func-names
7052
+ return function(value, opt, opts) {
7053
+ if (validator === false) {
7054
+ throw new Error(formatMessage(opt, ' has been removed in ' + version));
7055
+ }
7056
+
7057
+ if (isDeprecated && !deprecatedWarnings[opt]) {
7058
+ deprecatedWarnings[opt] = true;
7059
+ // eslint-disable-next-line no-console
7060
+ console.warn(
7061
+ formatMessage(
7062
+ opt,
7063
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
7064
+ )
7065
+ );
7066
+ }
7067
+
7068
+ return validator ? validator(value, opt, opts) : true;
7069
+ };
7070
+ };
7071
+
7072
+ /**
7073
+ * Assert object's properties type
7074
+ * @param {object} options
7075
+ * @param {object} schema
7076
+ * @param {boolean?} allowUnknown
7077
+ */
7078
+
7079
+ function assertOptions(options, schema, allowUnknown) {
7080
+ if (typeof options !== 'object') {
7081
+ throw new TypeError('options must be an object');
7082
+ }
7083
+ var keys = Object.keys(options);
7084
+ var i = keys.length;
7085
+ while (i-- > 0) {
7086
+ var opt = keys[i];
7087
+ var validator = schema[opt];
7088
+ if (validator) {
7089
+ var value = options[opt];
7090
+ var result = value === undefined || validator(value, opt, options);
7091
+ if (result !== true) {
7092
+ throw new TypeError('option ' + opt + ' must be ' + result);
7093
+ }
7094
+ continue;
7095
+ }
7096
+ if (allowUnknown !== true) {
7097
+ throw Error('Unknown option ' + opt);
7098
+ }
7099
+ }
7100
+ }
7101
+
7102
+ module.exports = {
7103
+ isOlderVersion: isOlderVersion,
7104
+ assertOptions: assertOptions,
7105
+ validators: validators
7106
+ };
7107
+
7108
+
7109
  /***/ }),
7110
 
7111
  /***/ 64867:
7116
 
7117
  var bind = __webpack_require__(91849);
7118
 
 
 
7119
  // utils is a library of generic helper functions non-specific to axios
7120
 
7121
  var toString = Object.prototype.toString;
7299
  * @returns {String} The String freed of excess whitespace
7300
  */
7301
  function trim(str) {
7302
+ return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
7303
  }
7304
 
7305
  /**
7465
 
7466
  /***/ }),
7467
 
7468
+ /***/ 20696:
7469
+ /***/ (function(module) {
7470
+
7471
+ "use strict";
7472
+ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_from":"axios@0.21.4"}');
7473
+
7474
+ /***/ }),
7475
+
7476
+ /***/ 35179:
7477
  /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
7478
 
7479
  "use strict";
8157
  var merge = __webpack_require__(82492);
8158
 
8159
  var omitBy = __webpack_require__(14176);
8160
+ /**
8161
+ * Constants
8162
  */
8163
 
8164
 
8180
  STOP_LOADING: "STOP_LOADING",
8181
  //Setting values
8182
  SET_SETTING_VALUE: "SET_SETTING_VALUE",
8183
+ SET_MISC_VALUE: "SET_MISC_VALUE",
8184
  //Drawer
8185
  OPEN_DRAWER: "OPENING DRAWER",
8186
  CLOSE_DRAWER: "CLOSING DRAWER",
8230
  GET_DATA_FAILURE: "GET TEMPLATES DATA FAILURE",
8231
  GET_DATA_END: "GET TEMPLATES DATA END",
8232
 
8233
+ /**
8234
+ * Not used
8235
  */
8236
  ADD_RECORD: "ADDING TEMPLATE"
8237
  }
8270
  preferences: "preferences",
8271
  reset: "reset"
8272
  },
8273
+ BUTTONIZER_TOUR: "buttonizertour",
8274
  TIME_SCHEDULES: "timeschedules",
8275
  PAGE_RULES: "pagerules"
8276
  };
8277
  var formats = {
8278
+ /**
8279
+ * Combine values with normal;hover.
8280
  */
8281
  normal_hover: {
8282
  format: function format(normal, hover) {
8312
  }
8313
  },
8314
 
8315
+ /**
8316
+ * Px for four sides, for example for margin or padding.
8317
  */
8318
  fourSidesPx: {
8319
  format: function format(val1, val2, val3, val4) {
8326
  }
8327
  },
8328
 
8329
+ /**
8330
+ * Position format, example: 'bottom: 5px', or 'left: 10%'
8331
  */
8332
  position: {
8333
  format: function format(type, mode, value) {
8430
  document.location.hash += "".concat(document.location.hash.match(/\/$/) ? "" : "/").concat(drawer).concat(page ? "/" + page : "");
8431
  }
8432
  function closeDrawer() {
8433
+ document.location.hash = document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules|buttonizertour).*$/i, "");
8434
  }
8435
  ;// CONCATENATED MODULE: ./src/js/utils/utils/data-utils.js
8436
  /* global Map */
8554
 
8555
 
8556
 
8557
+ /**
8558
+ * Create api request
8559
+ *maar j
8560
+ * @param {*} endpoint
8561
+ * @param {*} data
8562
  */
8563
 
8564
  function apiRequest(endpoint, data) {
8568
  };
8569
  return axios_default()(data);
8570
  }
8571
+ /**
8572
+ * init store
8573
  */
8574
 
8575
  function init() {
8584
  }
8585
  };
8586
  }
8587
+ /**
8588
+ * Convert data to models
8589
+ *
8590
+ * @param result
8591
+ * @return {obj} converted data
8592
  */
8593
 
8594
  function convertData(result) {
8680
  version: data.version,
8681
  wordpress: data.wordpress,
8682
  is_opt_in: data.is_opt_in,
8683
+ latest_tour_update: data.latest_tour_update,
8684
  additional_permissions: data.additional_permissions
8685
  };
8686
  }
8796
  }
8797
  };
8798
  };
8799
+ var dataActions_setMisc = function setMisc(setting, value) {
8800
+ return {
8801
+ type: buttonizer_constants_actionTypes.SET_MISC_VALUE,
8802
+ payload: {
8803
+ setting: setting,
8804
+ value: value
8805
+ }
8806
+ };
8807
+ };
8808
  /**
8809
  * Time Schedule Actions
8810
  */
11805
  draftStore.wordpress = action.payload.wordpress;
11806
  draftStore._premium = action.payload.premium;
11807
  draftStore.is_opt_in = action.payload.is_opt_in;
11808
+ draftStore.latest_tour_update = action.payload.latest_tour_update;
11809
  draftStore.additional_permissions = action.payload.additional_permissions;
11810
  draftStore._premiumCode = action.payload.premium_code;
11811
  break;
11847
  draftStore.loading.loadingIframe = false;
11848
  break;
11849
  }
11850
+
11851
+ case buttonizer_constants_actionTypes.SET_MISC_VALUE:
11852
+ {
11853
+ draftStore[action.payload.setting] = action.payload.value;
11854
+ break;
11855
+ }
11856
  }
11857
  });
11858
  }
20072
  return translate("common.publish");
20073
  }
20074
  }
20075
+ /**
20076
+ * Publish buttons
20077
  */
20078
 
20079
 
31987
  onClick: function onClick() {
31988
  document.location.hash = "#" + path;
31989
  },
31990
+ "data-testid": "edit-button",
31991
+ className: "button-actions edit-button"
31992
  }), /*#__PURE__*/react.createElement(DuplicateButton, {
31993
  name: button.name,
31994
  onChange: function onChange(val) {
41436
  group = _useState6[0],
41437
  setGroup = _useState6[1];
41438
 
41439
+ var openCollapsibleGroup = useSelector(function (store) {
41440
+ return dlv_umd_default()(store, "misc.open_collapsible_group", "button_group_container");
41441
+ });
41442
+
41443
  var handleOpenState = function handleOpenState() {
41444
  var currentCookie = getCookie("buttonizer_bar_state_opened") ? JSON.parse(getCookie("buttonizer_bar_state_opened")) : {};
41445
  currentCookie[groupId] = !opened;
41458
  });
41459
  }
41460
 
41461
+ (0,react.useEffect)(function () {
41462
+ if (openCollapsibleGroup === "button_group_container") {
41463
+ setOpened(true);
41464
+ } else {
41465
+ setOpened(false);
41466
+ }
41467
+ }, [openCollapsibleGroup]);
41468
  (0,react.useEffect)(function () {
41469
  setGroup(groups[groupId]);
41470
  }, [groups[groupId]]);
41505
  onClick: function onClick() {
41506
  return document.location.hash = "#/group/" + group.id;
41507
  },
41508
+ "data-testid": "edit-button-group",
41509
+ className: "group-actions edit-button"
41510
  }), duplicateButton(), /*#__PURE__*/react.createElement(ContainerActionsDropdown, null, /*#__PURE__*/react.createElement(ContainerActions_RenameButton, {
41511
  name: group.name,
41512
  onChange: function onChange(val) {
42836
  var id = open ? "simple-popover" : undefined; // Return Element
42837
 
42838
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Button_Button, {
42839
+ className: "breadcrumb-button",
42840
  "aria-describedby": id,
42841
  color: "secondary",
42842
  variant: "contained",
43229
  fullWidth: true,
43230
  inputProps: {
43231
  "data-testid": "setting:label"
43232
+ },
43233
+ className: "general-label-text"
43234
  });
43235
  }
43236
+ // EXTERNAL MODULE: ./node_modules/validator/lib/isEmail.js
43237
+ var isEmail = __webpack_require__(83868);
43238
+ var isEmail_default = /*#__PURE__*/__webpack_require__.n(isEmail);
43239
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/ButtonAction/ButtonActionValue/Mail/Mail.js
43240
  function Mail_slicedToArray(arr, i) { return Mail_arrayWithHoles(arr) || Mail_iterableToArrayLimit(arr, i) || Mail_unsupportedIterableToArray(arr, i) || Mail_nonIterableRest(); }
43241
 
43252
 
43253
 
43254
 
43255
+
43256
  function Mail(_ref) {
43257
  var _ref$value = _ref.value,
43258
  value = _ref$value === void 0 ? "" : _ref$value,
43266
  bcc = _ref$bcc === void 0 ? "" : _ref$bcc,
43267
  _onChange = _ref.onChange;
43268
 
43269
+ var _useState = (0,react.useState)(cc !== ""),
43270
  _useState2 = Mail_slicedToArray(_useState, 2),
43271
+ showCC = _useState2[0],
43272
+ setShowCC = _useState2[1];
43273
 
43274
+ var _useState3 = (0,react.useState)(bcc !== ""),
43275
  _useState4 = Mail_slicedToArray(_useState3, 2),
43276
+ showBCC = _useState4[0],
43277
+ setShowBCC = _useState4[1];
43278
 
43279
+ var isInvalid = value !== "" ? !isEmail_default()(value) : false;
 
 
 
 
 
43280
  return /*#__PURE__*/react.createElement("div", {
43281
  className: "button-action-value"
43282
  }, /*#__PURE__*/react.createElement(TextField_TextField, {
43287
  "data-testid": "action:field"
43288
  },
43289
  label: translate("settings.button_action.placeholders.mail.recipient"),
43290
+ helperText: isInvalid ? translate("settings.button_action.actions.mail.invalid") : null,
43291
+ error: isInvalid,
43292
  onChange: function onChange(obj) {
43293
  _onChange(obj.target.value);
 
 
 
43294
  }
43295
  }), /*#__PURE__*/react.createElement(TextField_TextField, {
43296
  variant: "outlined",
43356
  }
43357
  }));
43358
  }
43359
+ // EXTERNAL MODULE: ./node_modules/validator/lib/isMobilePhone.js
43360
+ var isMobilePhone = __webpack_require__(28355);
43361
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/ButtonAction/ButtonActionValue/WhatsApp/WhatsApp.js
43362
 
43363
 
43364
 
43365
+
43366
  function WhatsApp(_ref) {
43367
  var _ref$value = _ref.value,
43368
  value = _ref$value === void 0 ? "" : _ref$value,
43369
  _ref$body = _ref.body,
43370
  body = _ref$body === void 0 ? "" : _ref$body,
43371
  _onChange = _ref.onChange;
43372
+ var isValidPhoneNumber = value !== "" ? (0,isMobilePhone/* default */.ZP)(value, "any", {}) : true;
43373
  return /*#__PURE__*/react.createElement("div", {
43374
  className: "button-action-subject"
43375
  }, /*#__PURE__*/react.createElement(TextField_TextField, {
43376
  variant: "outlined",
43377
  fullWidth: true,
43378
  value: value,
43379
+ helperText: !isValidPhoneNumber ? translate("settings.button_action.actions.phone_number.invalid") : null,
43380
+ error: !isValidPhoneNumber,
43381
  label: translate("settings.button_action.actions.phone_number.number"),
43382
  inputProps: {
43383
  "data-testid": "action:field"
44127
 
44128
 
44129
 
44130
+
44131
  function Sms(_ref) {
44132
  var _ref$value = _ref.value,
44133
  value = _ref$value === void 0 ? "" : _ref$value,
44134
  _ref$body = _ref.body,
44135
  body = _ref$body === void 0 ? "" : _ref$body,
44136
  _onChange = _ref.onChange;
44137
+ var isValidPhoneNumber = value !== "" ? (0,isMobilePhone/* default */.ZP)(value, "any", {}) : true;
44138
  return /*#__PURE__*/react.createElement("div", {
44139
  className: "button-action-value"
44140
  }, /*#__PURE__*/react.createElement(TextField_TextField, {
44142
  fullWidth: true,
44143
  value: value,
44144
  label: translate("settings.button_action.actions.phone_number.number"),
44145
+ helperText: !isValidPhoneNumber ? translate("settings.button_action.actions.phone_number.invalid") : null,
44146
+ error: !isValidPhoneNumber,
44147
  onChange: function onChange(obj) {
44148
  _onChange(obj.target.value);
44149
  },
44386
  }, translate("settings.button_action.open_url.title")), /*#__PURE__*/react.createElement(Select_Select, {
44387
  onChange: handleChange,
44388
  labelWidth: labelWidth,
44389
+ className: "open-url-in",
44390
  value: new_tab,
44391
  MenuProps: {
44392
  anchorOrigin: {
44414
 
44415
 
44416
 
44417
+
44418
  /**
44419
  * DefaultTextField
44420
  * Create a textfield that changes placeholder and such
44436
  paragraph = _ref.paragraph,
44437
  knowledge = _ref.knowledge,
44438
  _onChange = _ref.onChange,
44439
+ _ref$checkPhoneNumber = _ref.checkPhoneNumber,
44440
+ checkPhoneNumber = _ref$checkPhoneNumber === void 0 ? false : _ref$checkPhoneNumber,
44441
  _ref$checkText = _ref.checkText,
44442
  checkText = _ref$checkText === void 0 ? "Invalid" : _ref$checkText,
44443
  _ref$children = _ref.children,
44444
  children = _ref$children === void 0 ? false : _ref$children;
44445
+ var isValidPhoneNumber = checkPhoneNumber ? value !== "" ? (0,isMobilePhone/* default */.ZP)(value, "any", {}) : true : true;
44446
  return /*#__PURE__*/react.createElement("div", {
44447
  className: "button-action-value"
44448
  }, /*#__PURE__*/react.createElement(TextField_TextField, {
44453
  },
44454
  type: type ? type : "text",
44455
  helperText: //is there an error check?
44456
+ checkPhoneNumber ? // check if else
44457
+ !isValidPhoneNumber ? checkText : null : null,
44458
  error: //is there an error check?
44459
+ checkPhoneNumber ? // check for errors
44460
+ !isValidPhoneNumber : false,
44461
  value: value,
44462
  label: placeholder,
44463
  onChange: function onChange(obj) {
44626
  buttons: state.buttons
44627
  };
44628
  })(MessengerChat));
 
 
 
 
 
44629
  ;// CONCATENATED MODULE: ./node_modules/popper.js/dist/esm/popper.js
44630
  /**!
44631
  * @fileOverview Kickass library to create and place poppers near their reference elements.
49140
  }
49141
  });
49142
  }
49143
+ // EXTERNAL MODULE: ./node_modules/validator/lib/isURL.js
49144
+ var isURL = __webpack_require__(66823);
49145
+ var isURL_default = /*#__PURE__*/__webpack_require__.n(isURL);
49146
+ ;// CONCATENATED MODULE: ./src/js/utils/isValidURL.js
49147
+
49148
+ function isValidURL(value) {
49149
+ return isURL_default()(value, {
49150
+ protocols: ["http", "https"],
49151
+ require_tld: false,
49152
+ require_host: false
49153
+ }) || value.substr(0, 1) === "#";
49154
+ }
49155
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Settings/ButtonAction/ButtonActionValue/Url/Url.js
49156
  function Url_slicedToArray(arr, i) { return Url_arrayWithHoles(arr) || Url_iterableToArrayLimit(arr, i) || Url_unsupportedIterableToArray(arr, i) || Url_nonIterableRest(); }
49157
 
49171
 
49172
 
49173
 
49174
+ var validatorTimeout = setTimeout(function () {}, 0);
49175
  function Url(_ref) {
49176
  var _ref$value = _ref.value,
49177
  value = _ref$value === void 0 ? "" : _ref$value,
49186
  relAttributesValue = _ref.relAttributesValue,
49187
  _onChange = _ref.onChange;
49188
 
49189
+ var _useState = (0,react.useState)(),
49190
  _useState2 = Url_slicedToArray(_useState, 2),
49191
  hasDomainError = _useState2[0],
49192
+ setHasDomainError = _useState2[1];
49193
+
49194
+ var validator = function validator(val) {
49195
+ return setHasDomainError(val !== "" ? !isValidURL(val) : false);
49196
+ };
49197
 
49198
  (0,react.useEffect)(function () {
49199
+ validator(value);
49200
  }, []);
49201
  return /*#__PURE__*/react.createElement("div", {
49202
  className: "button-action-value"
49205
  fullWidth: true,
49206
  value: value,
49207
  label: placeholder,
49208
+ helperText: hasDomainError && /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("p", null, translate("settings.button_action.actions.url.invalid")), /*#__PURE__*/react.createElement("p", {
 
 
 
49209
  dangerouslySetInnerHTML: {
49210
  __html: translate("settings.button_action.actions.url.invalid_tip")
49211
  }
49212
+ })),
49213
  FormHelperTextProps: {
49214
  component: "span",
49215
  "data-testid": "button-action-value-error"
49216
  },
49217
  error: hasDomainError,
49218
+ onChange: function onChange(e) {
49219
+ clearInterval(validatorTimeout);
49220
+ var newValue = e.target.value; // Validate
49221
+
49222
+ validatorTimeout = setTimeout(function () {
49223
+ validator(newValue);
49224
+ }, 600); // Update value
49225
+
49226
+ _onChange(newValue);
49227
  },
49228
  onBlur: function onBlur(e) {
49229
+ return validator(e.target.value);
49230
  },
49231
  inputProps: {
49232
  "data-testid": "action:field"
49732
  return /*#__PURE__*/react.createElement(DefaultTextField, {
49733
  value: button.action,
49734
  placeholder: translate("settings.button_action.actions.phone_number.number"),
49735
+ checkPhoneNumber: true,
49736
  checkText: translate("settings.button_action.actions.phone_number.invalid"),
49737
  onChange: function onChange(val, type) {
49738
  _onChange(val, type);
49828
  return /*#__PURE__*/react.createElement(DefaultTextField, {
49829
  value: button.action,
49830
  placeholder: "+00123456789",
49831
+ checkPhoneNumber: true,
49832
  checkText: translate("settings.button_action.actions.phone_number.invalid"),
49833
  paragraph: translate("settings.button_action.actions.viber"),
49834
  onChange: function onChange(val, type) {
50241
  })));
50242
  }
50243
  // EXTERNAL MODULE: ./src/js/utils/buttonizer-defaults/index.js
50244
+ var buttonizer_defaults = __webpack_require__(42226);
50245
  var buttonizer_defaults_default = /*#__PURE__*/__webpack_require__.n(buttonizer_defaults);
50246
  // EXTERNAL MODULE: ./node_modules/lodash/defaults.js
50247
  var lodash_defaults = __webpack_require__(91747);
50393
 
50394
 
50395
 
50396
+
50397
  function Options(_ref) {
50398
  var set = _ref.set,
50399
  get = _ref.get;
50400
 
50401
+ var _useState = (0,react.useState)("button_general_general"),
50402
  _useState2 = Options_slicedToArray(_useState, 2),
50403
  openedGroup = _useState2[0],
50404
  setOpenedGroup = _useState2[1];
50405
 
50406
+ var openCollapsibleGroup = useSelector(function (store) {
50407
+ return dlv_umd_default()(store, "misc.open_collapsible_group", "button_general_general");
50408
+ }); // Making sure the right container opens during the create button tour
50409
+
50410
+ (0,react.useEffect)(function () {
50411
+ setOpenedGroup(openCollapsibleGroup ? openCollapsibleGroup : "button_general_general");
50412
+ }, [openCollapsibleGroup]);
50413
  return /*#__PURE__*/react.createElement("div", null, /*#__PURE__*/react.createElement(CollapsibleGroup, {
50414
  title: translate("settings.setting_categories.general"),
50415
+ opened: openedGroup === "button_general_general",
50416
  onSetIsOpened: function onSetIsOpened(val) {
50417
+ return setOpenedGroup(val ? "button_general_general" : "");
50418
  },
50419
  "data-testid": "group:general"
50420
  }, /*#__PURE__*/react.createElement("div", {
50435
  }
50436
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
50437
  title: translate("settings.label.title"),
50438
+ opened: openedGroup === "button_general_label",
50439
  onSetIsOpened: function onSetIsOpened(val) {
50440
+ return setOpenedGroup(val ? "button_general_label" : "");
50441
  },
50442
  "data-testid": "group:label"
50443
  }, /*#__PURE__*/react.createElement("div", {
63649
  _ref$trashButton = _ref.trashButton,
63650
  trashButton = _ref$trashButton === void 0 ? true : _ref$trashButton,
63651
  _ref$noGradient = _ref.noGradient,
63652
+ noGradient = _ref$noGradient === void 0 ? false : _ref$noGradient,
63653
+ _ref$className = _ref.className,
63654
+ className = _ref$className === void 0 ? null : _ref$className;
63655
 
63656
  // console.log("reloading components");
63657
  var _useState = (0,react.useState)(null),
63740
  }
63741
  }
63742
  }, /*#__PURE__*/react.createElement(SettingsContainer, {
63743
+ title: title,
63744
+ className: className
63745
  }, /*#__PURE__*/react.createElement("div", {
63746
+ className: "color-picker-main "
63747
  }, /*#__PURE__*/react.createElement("div", {
63748
  className: "color-picker"
63749
  }, /*#__PURE__*/react.createElement(ColorPicker_ColorPickerPopover, {
65088
  setCurrentTab(value === true ? 1 : 0);
65089
  }, [value]);
65090
  return /*#__PURE__*/react.createElement(SettingsContainer, {
65091
+ title: translate("common.type"),
65092
+ className: "icon-or-image"
65093
  }, /*#__PURE__*/react.createElement(Tabs_Tabs, {
65094
  value: currentTab,
65095
  onChange: function onChange(e, b) {
65275
  onChange: function onChange(val) {
65276
  set("icon_size", val);
65277
  set("icon_image_size", val);
65278
+ },
65279
+ className: "style-icon-size"
65280
  }));
65281
  };
65282
 
65480
  placeholder: translate("settings.font_family.placeholder"),
65481
  InputProps: FontFamily_objectSpread(FontFamily_objectSpread({}, params.InputProps), {}, {
65482
  "data-testid": "font-family-input"
65483
+ }),
65484
+ className: "label-font-family"
65485
  }));
65486
  }
65487
  }));
66071
  setLabelPosition(value || defaultValue);
66072
  }, [value]);
66073
  return /*#__PURE__*/react.createElement("div", {
66074
+ className: "label-position",
66075
  "data-testid": "labelPosition:free"
66076
  }, /*#__PURE__*/react.createElement(SettingsContainer, {
66077
  title: title
66268
  return /*#__PURE__*/react.createElement(CollapsibleGroup, LabelGroup_extends({
66269
  title: translate("settings.label.title"),
66270
  "data-testid": "group:label"
66271
+ }, groupProps), getParent("menu_style") === "text" || getParent("menu_style") === "text-icon" ? null : /*#__PURE__*/react.createElement("div", {
66272
+ className: "label-device-visibility"
66273
+ }, /*#__PURE__*/react.createElement("div", {
66274
  className: "setting-group-title"
66275
  }, translate("settings.label_desktop.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(LabelVisibility, {
66276
  title: translate("settings.show_mobile_desktop.desktop"),
66288
  return set("show_label_mobile", val);
66289
  },
66290
  trashButton: true
66291
+ })), /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
66292
  className: "setting-group-title"
66293
  }, translate("settings.label_position.title")), /*#__PURE__*/react.createElement("hr", null), /*#__PURE__*/react.createElement(LabelPosition, {
66294
  title: translate("settings.label_position.description"),
66837
  var newValues = colors;
66838
  newValues[hoverSettings] = val;
66839
  set("background_color", newValues);
66840
+ },
66841
+ className: "style-background-color"
66842
  }), /*#__PURE__*/react.createElement(UseBackgroundImage, {
66843
  disabled: true
66844
  }));
66859
  var newValues = get("border_radius");
66860
  newValues[0] = val === null ? "unset" : val;
66861
  set("border_radius", newValues);
66862
+ },
66863
+ className: "style-border-radius"
66864
  }));
66865
  };
66866
 
66877
  },
66878
  value: hoverSettings,
66879
  variant: "fullWidth",
66880
+ centered: true,
66881
+ className: "normal-or-hover"
66882
  }, /*#__PURE__*/react.createElement(Tab_Tab, {
66883
  label: "Normal",
66884
  "data-testid": "normal_hover:normal"
66950
 
66951
 
66952
 
66953
+
66954
+
66955
  function Styling(_ref) {
66956
  var buttonId = _ref.buttonId;
66957
 
66958
+ var _useState = (0,react.useState)("button_style_button"),
66959
  _useState2 = Styling_slicedToArray(_useState, 2),
66960
  openedGroup = _useState2[0],
66961
  setOpenedGroup = _useState2[1];
66962
 
66963
+ var openCollapsibleGroup = useSelector(function (store) {
66964
+ return dlv_umd_default()(store, "misc.open_collapsible_group", "button_style_button");
66965
+ }); // Making sure the right container opens during the create button tour
66966
+
66967
+ (0,react.useEffect)(function () {
66968
+ setOpenedGroup(openCollapsibleGroup ? openCollapsibleGroup : "button_style_button");
66969
+ }, [openCollapsibleGroup]);
66970
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Styling_ButtonGroup, {
66971
  title: translate("common.button"),
66972
+ opened: openedGroup === "button_style_button",
66973
  onSetIsOpened: function onSetIsOpened(val) {
66974
+ return setOpenedGroup(val ? "button_style_button" : "");
66975
  },
66976
  buttonId: buttonId
66977
  }), /*#__PURE__*/react.createElement(Styling_IconGroup, {
66978
+ opened: openedGroup === "button_style_icon",
66979
  onSetIsOpened: function onSetIsOpened(val) {
66980
+ return setOpenedGroup(val ? "button_style_icon" : "");
66981
  },
66982
  buttonId: buttonId
66983
  }), /*#__PURE__*/react.createElement(LabelGroup, {
66984
+ opened: openedGroup === "button_style_label",
66985
  onSetIsOpened: function onSetIsOpened(val) {
66986
+ return setOpenedGroup(val ? "button_style_label" : "");
66987
  },
66988
  buttonId: buttonId
66989
  }));
67915
  var set = _ref.set,
67916
  get = _ref.get;
67917
 
67918
+ var _useState = (0,react.useState)("group_general_general"),
67919
  _useState2 = Tabs_Options_slicedToArray(_useState, 2),
67920
  openedGroup = _useState2[0],
67921
  setOpenedGroup = _useState2[1];
67922
 
67923
+ var openCollapsibleGroup = useSelector(function (store) {
67924
+ return dlv_umd_default()(store, "misc.open_collapsible_group", "group_general_general");
67925
+ }); // Making sure the right container opens during the interface tour
67926
+
67927
+ (0,react.useEffect)(function () {
67928
+ setOpenedGroup(openCollapsibleGroup ? openCollapsibleGroup : "group_general_general");
67929
+ }, [openCollapsibleGroup]);
67930
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(CollapsibleGroup, {
67931
  title: translate("settings.setting_categories.general"),
67932
+ opened: openedGroup === "group_general_general",
67933
  onSetIsOpened: function onSetIsOpened(val) {
67934
+ return setOpenedGroup(val ? "group_general_general" : "");
67935
  },
67936
  "data-testid": "group:general"
67937
  }, /*#__PURE__*/react.createElement("div", {
67953
  }
67954
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
67955
  title: translate("settings.menu_position.title"),
67956
+ opened: openedGroup === "group_general_position",
67957
  onSetIsOpened: function onSetIsOpened(val) {
67958
+ return setOpenedGroup(val ? "group_general_position" : "");
67959
  },
67960
  "data-testid": "group:position"
67961
  }, /*#__PURE__*/react.createElement(Position, {
67964
  onChange: function onChange(val) {
67965
  return set("horizontal", val);
67966
  }
67967
+ }), /*#__PURE__*/react.createElement(Position, {
67968
  position: "vertical",
67969
  value: get("vertical"),
67970
  onChange: function onChange(val) {
67972
  }
67973
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
67974
  title: translate("settings.menu_style.title"),
67975
+ opened: openedGroup === "group_general_menu_settings",
67976
  onSetIsOpened: function onSetIsOpened(val) {
67977
+ return setOpenedGroup(val ? "group_general_menu_settings" : "");
67978
  },
67979
  "data-testid": "group:menu_settings"
67980
  }, /*#__PURE__*/react.createElement(SettingsContainer, {
68753
 
68754
 
68755
 
68756
+
68757
+
68758
  function Styling_Styling(_ref) {
68759
  var groupId = _ref.groupId;
68760
 
68761
+ var _useState = (0,react.useState)("group_style_button"),
68762
  _useState2 = Tabs_Styling_slicedToArray(_useState, 2),
68763
  openedGroup = _useState2[0],
68764
  setOpenedGroup = _useState2[1];
68765
 
68766
+ var openCollapsibleGroup = useSelector(function (store) {
68767
+ return dlv_umd_default()(store, "misc.open_collapsible_group", "group_style_button");
68768
+ }); // Making sure the right container opens during the interface tour
68769
+
68770
+ (0,react.useEffect)(function () {
68771
+ setOpenedGroup(openCollapsibleGroup ? openCollapsibleGroup : "group_style_button");
68772
+ }, [openCollapsibleGroup]);
68773
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Tabs_Styling_ButtonGroup, {
68774
+ opened: openedGroup === "group_style_button",
68775
  onSetIsOpened: function onSetIsOpened(val) {
68776
+ return setOpenedGroup(val ? "group_style_button" : "");
68777
  },
68778
  groupId: groupId
68779
  }), /*#__PURE__*/react.createElement(Tabs_Styling_IconGroup, {
68780
+ opened: openedGroup === "group_style_icon",
68781
  onSetIsOpened: function onSetIsOpened(val) {
68782
+ return setOpenedGroup(val ? "group_style_icon" : "");
68783
  },
68784
  groupId: groupId
68785
  }), /*#__PURE__*/react.createElement(Styling_LabelGroup, {
68786
+ opened: openedGroup === "group_style_label",
68787
  onSetIsOpened: function onSetIsOpened(val) {
68788
+ return setOpenedGroup(val ? "group_style_label" : "");
68789
  },
68790
  groupId: groupId
68791
  }));
71283
 
71284
 
71285
 
71286
+
71287
  function MenuItem_MenuItem_MenuItem(_ref) {
71288
  var _ref$title = _ref.title,
71289
  title = _ref$title === void 0 ? "" : _ref$title,
71295
  newWindow = _ref$newWindow === void 0 ? false : _ref$newWindow,
71296
  _ref$onClick = _ref.onClick,
71297
  onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
71298
+ dataTestid = _ref.dataTestid,
71299
+ _ref$className = _ref.className,
71300
+ className = _ref$className === void 0 ? null : _ref$className;
71301
 
71302
  var clickAction = function clickAction() {
71303
  if (href && !newWindow) {
71310
  };
71311
 
71312
  return /*#__PURE__*/react.createElement(Button_Button, {
71313
+ className: (0,clsx_m/* default */.Z)("buttonizer-menu-item", className),
71314
  onClick: clickAction,
71315
  "data-testid": dataTestid
71316
  }, /*#__PURE__*/react.createElement("span", {
71344
 
71345
 
71346
 
71347
+
71348
  var MenuDrawer_useStyles = styles_makeStyles(function () {
71349
  return MenuDrawer_defineProperty({
71350
  hideButton: {
71365
  var onClose = _ref2.onClose,
71366
  open = _ref2.open;
71367
 
71368
+ var _useState = (0,react.useState)("menu_settings"),
71369
  _useState2 = MenuDrawer_slicedToArray(_useState, 2),
71370
  openedGroup = _useState2[0],
71371
  setOpenedGroup = _useState2[1];
71372
 
71373
+ var openCollapsibleGroup = useSelector(function (store) {
71374
+ return dlv_umd_default()(store, "misc.open_collapsible_group", "menu_settings");
71375
+ });
71376
  var classes = MenuDrawer_useStyles();
71377
  var socialMediaButtons = [{
71378
  title: "Follow us on Twitter",
71399
  url: "https://community.buttonizer.pro/?referral=buttonizer-dashboard-menu-social-buttons",
71400
  icon: "far fa-comments",
71401
  "class": "community"
71402
+ }]; // Making sure the right container opens during the interface tour
71403
+
71404
+ (0,react.useEffect)(function () {
71405
+ setOpenedGroup(openCollapsibleGroup ? openCollapsibleGroup : "menu_settings");
71406
+ }, [openCollapsibleGroup]);
71407
  return /*#__PURE__*/react.createElement(Drawer_Drawer, {
71408
  open: open,
71409
  onClose: onClose,
71425
  className: "fas fa-chevron-left"
71426
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
71427
  title: translate("common.settings"),
71428
+ opened: openedGroup === "menu_settings",
71429
  onSetIsOpened: function onSetIsOpened(val) {
71430
+ return setOpenedGroup(val ? "menu_settings" : "");
71431
  },
71432
  bodySpacing: false,
71433
+ className: "menu-settings",
71434
  "data-testid": "menudrawer:settings"
71435
  }, /*#__PURE__*/react.createElement(MenuItem_MenuItem_MenuItem, {
71436
  title: "Google Analytics",
71460
  return openDrawer(drawers.SETTINGS, drawers.SETTINGS_PAGES.reset);
71461
  },
71462
  dataTestid: "menuitem:".concat(drawers.SETTINGS_PAGES.reset)
71463
+ }), /*#__PURE__*/react.createElement(MenuItem_MenuItem_MenuItem, {
71464
+ title: translate("settings_window.buttonizer_tour.title"),
71465
+ description: translate("settings_window.buttonizer_tour.description"),
71466
+ onClick: function onClick() {
71467
+ return openDrawer(drawers.BUTTONIZER_TOUR);
71468
+ },
71469
+ dataTestid: "menuitem:".concat(drawers.BUTTONIZER_TOUR),
71470
+ className: "menu-item buttonizer-tour"
71471
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
71472
  title: "".concat(translate("page_rules.name"), " & ").concat(translate("time_schedules.name")),
71473
  opened: openedGroup === "pageRules",
71494
  }
71495
  })), /*#__PURE__*/react.createElement(CollapsibleGroup, {
71496
  title: translate("bar.menu.support_group"),
71497
+ opened: openedGroup === "menu_support",
71498
  onSetIsOpened: function onSetIsOpened(val) {
71499
+ return setOpenedGroup(val ? "menu_support" : "");
71500
  },
71501
  bodySpacing: false,
71502
+ className: "menu-support",
71503
  "data-testid": "menudrawer:support"
71504
  }, /*#__PURE__*/react.createElement(MenuItem_MenuItem_MenuItem, {
71505
  title: translate("bar.menu.knowledgebase.title"),
71512
  description: translate("bar.menu.community.description"),
71513
  href: "https://community.buttonizer.pro/?referral=buttonizer-dashboard-menu",
71514
  newWindow: true,
71515
+ dataTestid: "menuitem:community",
71516
+ className: "menu-item community"
71517
  }), /*#__PURE__*/react.createElement(MenuItem_MenuItem_MenuItem, {
71518
  title: translate("bar.menu.support.title"),
71519
  description: translate("bar.menu.support.description"),
72755
  }
72756
  };
72757
  })(SettingsDrawer));
72758
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Drawers/SettingsDialog/ButtonizerTourOptions.js
72759
+
72760
+
72761
+
72762
+
72763
+
72764
+
72765
+
72766
+
72767
+
72768
+ function ButtonizerTourOptions(_ref) {
72769
+ var onClose = _ref.onClose,
72770
+ _ref$open = _ref.open,
72771
+ open = _ref$open === void 0 ? false : _ref$open,
72772
+ openCollapsibleGroupTour = _ref.openCollapsibleGroupTour;
72773
+ var openCollapsibleGroup = useSelector(function (store) {
72774
+ return dlv_umd_default()(store, "misc.open_collapsible_group", "button_group_container");
72775
+ }); // Making sure the button group container opens when the tour starts
72776
+
72777
+ (0,react.useEffect)(function () {
72778
+ openCollapsibleGroup ? openCollapsibleGroup : "button_group_container";
72779
+ }, [openCollapsibleGroup]);
72780
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Dialog_Dialog, {
72781
+ open: open,
72782
+ onClose: onClose,
72783
+ "data-testid": "dialog:buttonizer-tour-options-dialog",
72784
+ className: "buttonizer-tour-options"
72785
+ }, /*#__PURE__*/react.createElement("div", {
72786
+ className: "buttonizer-tour-options header"
72787
+ }, /*#__PURE__*/react.createElement(DialogTitle_DialogTitle, {
72788
+ className: "buttonizer-tour-options title"
72789
+ }, /*#__PURE__*/react.createElement("i", {
72790
+ className: "fas fa-globe-europe"
72791
+ }), translate("settings_window.buttonizer_tour.title")), /*#__PURE__*/react.createElement(IconButton_IconButton, {
72792
+ onClick: onClose,
72793
+ className: "buttonizer-tour-options skip-button",
72794
+ "data-testid": "buttonizer-tour-options:close-button"
72795
+ }, /*#__PURE__*/react.createElement(Icon_Icon, {
72796
+ className: "fas fa-times"
72797
+ }))), /*#__PURE__*/react.createElement(DialogContent_DialogContent, null, /*#__PURE__*/react.createElement(List_List, {
72798
+ className: "buttonizer-tour-options list"
72799
+ }, /*#__PURE__*/react.createElement(ListItem_ListItem, {
72800
+ disableGutters: true
72801
+ }, /*#__PURE__*/react.createElement(ListItemText_ListItemText, {
72802
+ primary: translate("settings_window.buttonizer_tour.interface.title"),
72803
+ secondary: translate("settings_window.buttonizer_tour.interface.description"),
72804
+ className: "buttonizer-tour-options list"
72805
+ }), /*#__PURE__*/react.createElement(ListItemSecondaryAction_ListItemSecondaryAction, null, /*#__PURE__*/react.createElement(Button_Button, {
72806
+ variant: "contained",
72807
+ color: "primary",
72808
+ "data-testid": "buttonizer-tour-options:interface-tour",
72809
+ onClick: function onClick() {
72810
+ openCollapsibleGroupTour("button_group_container"); // The element (first step) cannot not be found if the tour does not start on the right page
72811
+
72812
+ document.location.href = "#/"; // Open the button group container just before the tour starts
72813
+
72814
+ setTimeout(function () {
72815
+ app.startButtonizerTour("interface_tour");
72816
+ }, 200);
72817
+ closeDrawer();
72818
+ }
72819
+ }, translate("buttonizer_tour.take_tour")))), /*#__PURE__*/react.createElement(ListItem_ListItem, {
72820
+ disableGutters: true
72821
+ }, /*#__PURE__*/react.createElement(ListItemText_ListItemText, {
72822
+ primary: translate("settings_window.buttonizer_tour.create_button.title"),
72823
+ secondary: translate("settings_window.buttonizer_tour.create_button.description"),
72824
+ className: "buttonizer-tour-options list"
72825
+ }), /*#__PURE__*/react.createElement(ListItemSecondaryAction_ListItemSecondaryAction, null, /*#__PURE__*/react.createElement(Button_Button, {
72826
+ variant: "contained",
72827
+ color: "primary",
72828
+ "data-testid": "buttonizer-tour-options:create-button-tour",
72829
+ onClick: function onClick() {
72830
+ openCollapsibleGroupTour("button_group_container"); // The element (first step) cannot not be found if the tour does not start on the right page
72831
+
72832
+ document.location.href = "#/"; // Open the button group container just before the tour starts
72833
+
72834
+ setTimeout(function () {
72835
+ app.startButtonizerTour("create_button_tour");
72836
+ }, 200);
72837
+ closeDrawer();
72838
+ }
72839
+ }, translate("buttonizer_tour.take_tour"))))))));
72840
+ }
72841
+
72842
+ /* harmony default export */ var SettingsDialog_ButtonizerTourOptions = (connect(function (state) {
72843
+ return {
72844
+ settings: state.settings
72845
+ };
72846
+ }, function (dispatch) {
72847
+ return {
72848
+ setMisc: function setMisc() {
72849
+ return dispatch(dataActions_setMisc.apply(void 0, arguments));
72850
+ },
72851
+ openCollapsibleGroupTour: function openCollapsibleGroupTour() {
72852
+ return dispatch(dataActions_setMisc("open_collapsible_group", arguments.length <= 0 ? undefined : arguments[0]));
72853
+ }
72854
+ };
72855
+ })(ButtonizerTourOptions));
72856
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Drawers/index.js
72857
 
72858
 
72861
 
72862
 
72863
 
72864
+
72865
  /* webpack-strip-block:removed */
72866
 
72867
  function Drawers(_ref) {
72890
  onClose: function onClose() {
72891
  return closeDrawer();
72892
  }
72893
+ }), /*#__PURE__*/react.createElement(SettingsDialog_ButtonizerTourOptions, {
72894
+ open: loaded && match !== null && match.params[1] === drawers.BUTTONIZER_TOUR,
72895
+ onClose: function onClose() {
72896
+ return closeDrawer();
72897
+ }
72898
  }));
72899
  }
72900
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Dialogs/PremiumDialog/PremiumDialog.js
73363
  }
73364
  };
73365
  })(SuperContributorDialog));
73366
+ // EXTERNAL MODULE: ./node_modules/intro.js-react/lib/index.js
73367
+ var intro_js_react_lib = __webpack_require__(87762);
73368
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/ButtonizerTour/Tours/InterfaceTour.js
73369
+
73370
+ // Interface tour
73371
+
73372
+ var tour = [{
73373
+ element: ".button-group-container",
73374
+ intro: /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("video", {
73375
+ muted: true,
73376
+ src: "".concat(buttonizer_admin.assets, "/videos/tour_group.mp4"),
73377
+ id: "myVideo",
73378
+ autoPlay: true,
73379
+ loop: true
73380
+ }), /*#__PURE__*/react.createElement("h1", null, translate("buttonizer_tour.interface_tour.step_0.title")), translate("buttonizer_tour.interface_tour.step_0.intro")),
73381
+ tooltipClass: "videoDialog",
73382
+ position: "right"
73383
+ }, {
73384
+ element: ".edit-button",
73385
+ title: translate("buttonizer_tour.interface_tour.step_1.title"),
73386
+ intro: translate("buttonizer_tour.interface_tour.step_1.intro"),
73387
+ tooltipClass: "tourDialog",
73388
+ position: "right"
73389
+ }, // Go to next page, skip step
73390
+ {
73391
+ element: ".simplebar-content-wrapper",
73392
+ title: "Test",
73393
+ intro: "You shouldn't be able to read this :P"
73394
+ }, {
73395
+ element: ".simplebar-content-wrapper",
73396
+ title: translate("buttonizer_tour.interface_tour.step_2.title"),
73397
+ intro: translate("buttonizer_tour.interface_tour.step_2.intro"),
73398
+ tooltipClass: "tourDialog",
73399
+ position: "right"
73400
+ }, {
73401
+ element: ".simplebar-content-wrapper",
73402
+ intro: /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("video", {
73403
+ muted: true,
73404
+ src: "".concat(buttonizer_admin.assets, "/videos/tour_style.mp4"),
73405
+ id: "myVideo",
73406
+ autoPlay: true,
73407
+ loop: true
73408
+ }), /*#__PURE__*/react.createElement("h1", null, translate("buttonizer_tour.interface_tour.step_3.title")), translate("buttonizer_tour.interface_tour.step_3.intro")),
73409
+ tooltipClass: "videoDialog",
73410
+ position: "right"
73411
+ }, {
73412
+ element: ".breadcrumb-button",
73413
+ title: translate("buttonizer_tour.interface_tour.step_4.title"),
73414
+ intro: translate("buttonizer_tour.interface_tour.step_4.intro"),
73415
+ tooltipClass: "tourDialog",
73416
+ position: "right"
73417
+ }, {
73418
+ element: ".MuiButton-Publish",
73419
+ title: translate("buttonizer_tour.interface_tour.step_5.title"),
73420
+ intro: translate("buttonizer_tour.interface_tour.step_5.intro"),
73421
+ tooltipClass: "tourDialog",
73422
+ position: "right"
73423
+ }, // Go to next page, skip step
73424
+ {
73425
+ element: ".simplebar-content-wrapper",
73426
+ title: "Test",
73427
+ intro: "You shouldn't be able to read this :P"
73428
+ }, {
73429
+ element: ".menu-container",
73430
+ title: translate("buttonizer_tour.interface_tour.step_6.title"),
73431
+ intro: translate("buttonizer_tour.interface_tour.step_6.intro"),
73432
+ tooltipClass: "tourDialog",
73433
+ position: "right"
73434
+ }, {
73435
+ element: ".menu-settings",
73436
+ title: translate("buttonizer_tour.interface_tour.step_7.title"),
73437
+ intro: translate("buttonizer_tour.interface_tour.step_7.intro"),
73438
+ tooltipClass: "tourDialog",
73439
+ highlightClass: "noHelperLayer",
73440
+ position: "right"
73441
+ }, {
73442
+ element: ".menu-item.buttonizer-tour",
73443
+ title: translate("buttonizer_tour.interface_tour.step_8.title"),
73444
+ intro: translate("buttonizer_tour.interface_tour.step_8.intro"),
73445
+ tooltipClass: "tourDialog",
73446
+ position: "right"
73447
+ }, // Go to next page, skip step
73448
+ {
73449
+ element: ".menu-support",
73450
+ title: "Test",
73451
+ intro: "You shouldn't be able to read this :P"
73452
+ }, {
73453
+ element: ".menu-support",
73454
+ title: translate("buttonizer_tour.interface_tour.step_9.title"),
73455
+ intro: translate("buttonizer_tour.interface_tour.step_9.intro"),
73456
+ tooltipClass: "tourDialog",
73457
+ highlightClass: "noHelperLayer",
73458
+ position: "right"
73459
+ }, {
73460
+ element: ".menu-item.community",
73461
+ title: translate("buttonizer_tour.final.title"),
73462
+ intro: translate("buttonizer_tour.final.intro"),
73463
+ tooltipClass: "tourDialog",
73464
+ position: "right"
73465
+ }];
73466
+
73467
+ var onBeforeChange = function onBeforeChange(nextStepIndex, introJsRef, groupId, buttonId, openCollapsibleGroup) {
73468
+ if (nextStepIndex === 2) {
73469
+ // Going back to overview page
73470
+ document.location.href = document.location.href = "#/";
73471
+ openCollapsibleGroup("button_group_container");
73472
+ if (introJsRef.introJs._direction === "forward") setTimeout(function () {
73473
+ introJsRef.introJs.nextStep();
73474
+ }, 100);
73475
+ if (introJsRef.introJs._direction === "backward") setTimeout(function () {
73476
+ introJsRef.introJs.previousStep();
73477
+ }, 100);
73478
+ }
73479
+
73480
+ if (nextStepIndex === 3) {
73481
+ // Going to general page
73482
+ if (introJsRef.introJs._direction === "forward") {
73483
+ document.location.hash = "/group/".concat(groupId, "/general");
73484
+ openCollapsibleGroup("group_general_general");
73485
+ } // Going back to general page
73486
+ else if (introJsRef.introJs._direction === "backward") {
73487
+ document.location.hash = "/group/".concat(groupId, "/general");
73488
+ }
73489
+
73490
+ openCollapsibleGroup("group_general_general");
73491
+ }
73492
+
73493
+ if (nextStepIndex === 4) {
73494
+ // Going to style page
73495
+ if (introJsRef.introJs._direction === "forward") {
73496
+ document.location.hash = "/group/".concat(groupId, "/style");
73497
+ }
73498
+
73499
+ openCollapsibleGroup("group_style_button");
73500
+ }
73501
+
73502
+ if (nextStepIndex === 6) {
73503
+ // Going back to style page
73504
+ if (introJsRef.introJs._direction === "backward") {
73505
+ document.location.hash = "/group/".concat(groupId, "/style");
73506
+ }
73507
+
73508
+ openCollapsibleGroup("group_style_button");
73509
+ }
73510
+
73511
+ if (nextStepIndex === 7) {
73512
+ document.location.hash = "/group/".concat(groupId, "/style/menu"); // Open menu settings container
73513
+
73514
+ if (introJsRef.introJs._direction === "forward") setTimeout(function () {
73515
+ introJsRef.introJs.nextStep();
73516
+ }, 350);
73517
+ openCollapsibleGroup("menu_settings");
73518
+ if (introJsRef.introJs._direction === "backward") setTimeout(function () {
73519
+ introJsRef.introJs.previousStep();
73520
+ }, 100);
73521
+ }
73522
+
73523
+ if (nextStepIndex === 11) {
73524
+ // Open menu support container
73525
+ if (introJsRef.introJs._direction === "forward") setTimeout(function () {
73526
+ introJsRef.introJs.nextStep();
73527
+ }, 100);
73528
+ openCollapsibleGroup("menu_support");
73529
+ if (introJsRef.introJs._direction === "backward") setTimeout(function () {
73530
+ introJsRef.introJs.previousStep();
73531
+ }, 100);
73532
+ }
73533
+
73534
+ if (nextStepIndex === 11) {
73535
+ // Open menu settings container on the way back
73536
+ if (introJsRef.introJs._direction === "backward") {
73537
+ openCollapsibleGroup("menu_settings");
73538
+ }
73539
+ }
73540
+
73541
+ if (introJsRef !== null && nextStepIndex !== tour.length) introJsRef.updateStepElement(nextStepIndex);
73542
+ };
73543
+
73544
+ /* harmony default export */ var InterfaceTour = ({
73545
+ tour: tour,
73546
+ onBeforeChange: onBeforeChange
73547
+ });
73548
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/ButtonizerTour/Tours/CreateButtonTour.js
73549
+ // Create button tour
73550
+
73551
+ var CreateButtonTour_tour = [{
73552
+ element: ".button-container",
73553
+ title: translate("buttonizer_tour.create_button_tour.step_0.title"),
73554
+ intro: translate("buttonizer_tour.create_button_tour.step_0.intro"),
73555
+ tooltipClass: "tourDialog",
73556
+ position: "right"
73557
+ }, {
73558
+ element: ".button-actions.edit-button",
73559
+ title: translate("buttonizer_tour.create_button_tour.step_1.title"),
73560
+ intro: translate("buttonizer_tour.create_button_tour.step_1.intro"),
73561
+ tooltipClass: "tourDialog",
73562
+ position: "right"
73563
+ }, // Go to next page, skip step
73564
+ {
73565
+ element: ".simplebar-content-wrapper",
73566
+ title: "Test",
73567
+ intro: "You shouldn't be able to read this :P"
73568
+ }, // Go to style page
73569
+ {
73570
+ element: ".simplebar-content-wrapper",
73571
+ title: translate("buttonizer_tour.create_button_tour.step_2.title"),
73572
+ intro: translate("buttonizer_tour.create_button_tour.step_2.intro"),
73573
+ tooltipClass: "tourDialog"
73574
+ }, {
73575
+ element: ".button-action-type",
73576
+ title: translate("buttonizer_tour.create_button_tour.step_3.title"),
73577
+ intro: translate("buttonizer_tour.create_button_tour.step_3.intro"),
73578
+ tooltipClass: "tourDialog",
73579
+ position: "right"
73580
+ }, {
73581
+ element: ".open-url-in",
73582
+ title: translate("buttonizer_tour.create_button_tour.step_4.title"),
73583
+ intro: translate("buttonizer_tour.create_button_tour.step_4.intro"),
73584
+ tooltipClass: "tourDialog",
73585
+ position: "right"
73586
+ }, {
73587
+ element: ".desktop-mobile-visibility",
73588
+ title: translate("buttonizer_tour.create_button_tour.step_5.title"),
73589
+ intro: translate("buttonizer_tour.create_button_tour.step_5.intro"),
73590
+ tooltipClass: "tourDialog",
73591
+ position: "right"
73592
+ }, // Go to next page, skip step
73593
+ {
73594
+ element: ".general-label-text",
73595
+ title: "Test",
73596
+ intro: "You shouldn't be able to read this :P"
73597
+ }, {
73598
+ element: ".general-label-text",
73599
+ title: translate("buttonizer_tour.create_button_tour.step_6.title"),
73600
+ intro: translate("buttonizer_tour.create_button_tour.step_6.intro"),
73601
+ tooltipClass: "tourDialog",
73602
+ position: "right"
73603
+ }, // Go to next page, skip step
73604
+ {
73605
+ element: ".simplebar-content-wrapper",
73606
+ title: "Test",
73607
+ intro: "You shouldn't be able to read this :P"
73608
+ }, {
73609
+ element: ".simplebar-content-wrapper",
73610
+ title: translate("buttonizer_tour.create_button_tour.step_7.title"),
73611
+ intro: translate("buttonizer_tour.create_button_tour.step_7.intro"),
73612
+ tooltipClass: "tourDialog"
73613
+ }, {
73614
+ element: ".normal-or-hover",
73615
+ title: translate("buttonizer_tour.create_button_tour.step_8.title"),
73616
+ intro: translate("buttonizer_tour.create_button_tour.step_8.intro"),
73617
+ tooltipClass: "tourDialog",
73618
+ position: "right"
73619
+ }, {
73620
+ element: ".style-background-color",
73621
+ title: translate("buttonizer_tour.create_button_tour.step_9.title"),
73622
+ intro: translate("buttonizer_tour.create_button_tour.step_9.intro"),
73623
+ tooltipClass: "tourDialog",
73624
+ position: "right"
73625
+ }, {
73626
+ element: ".style-border-radius",
73627
+ title: translate("buttonizer_tour.create_button_tour.step_10.title"),
73628
+ intro: translate("buttonizer_tour.create_button_tour.step_10.intro"),
73629
+ tooltipClass: "tourDialog",
73630
+ position: "right"
73631
+ }, {
73632
+ element: ".simplebar-content-wrapper",
73633
+ title: translate("buttonizer_tour.create_button_tour.step_11.title"),
73634
+ intro: translate("buttonizer_tour.create_button_tour.step_11.intro"),
73635
+ tooltipClass: "tourDialog"
73636
+ }, {
73637
+ element: ".icon-or-image",
73638
+ title: translate("buttonizer_tour.create_button_tour.step_12.title"),
73639
+ intro: translate("buttonizer_tour.create_button_tour.step_12.intro"),
73640
+ tooltipClass: "tourDialog",
73641
+ position: "right"
73642
+ }, {
73643
+ element: ".form-icon-selector",
73644
+ title: translate("buttonizer_tour.create_button_tour.step_13.title"),
73645
+ intro: translate("buttonizer_tour.create_button_tour.step_13.intro"),
73646
+ tooltipClass: "tourDialog",
73647
+ position: "right"
73648
+ }, {
73649
+ element: ".style-icon-size",
73650
+ title: translate("buttonizer_tour.create_button_tour.step_14.title"),
73651
+ intro: translate("buttonizer_tour.create_button_tour.step_14.intro"),
73652
+ tooltipClass: "tourDialog",
73653
+ position: "right"
73654
+ }, // Go to next page, skip step
73655
+ {
73656
+ element: ".simplebar-content-wrapper",
73657
+ title: "Test",
73658
+ intro: "You shouldn't be able to read this :P"
73659
+ }, {
73660
+ element: ".label-device-visibility",
73661
+ title: translate("buttonizer_tour.create_button_tour.step_15.title"),
73662
+ intro: translate("buttonizer_tour.create_button_tour.step_15.intro"),
73663
+ tooltipClass: "tourDialog",
73664
+ position: "right"
73665
+ }, {
73666
+ element: ".label-position",
73667
+ title: translate("buttonizer_tour.create_button_tour.step_16.title"),
73668
+ intro: translate("buttonizer_tour.create_button_tour.step_16.intro"),
73669
+ tooltipClass: "tourDialog",
73670
+ position: "right"
73671
+ }, // {
73672
+ // element: ".label-font-family",
73673
+ // title: translate("buttonizer_tour.create_button_tour.step_17.title"),
73674
+ // intro: translate("buttonizer_tour.create_button_tour.step_17.intro"),
73675
+ // tooltipClass: "tourDialog",
73676
+ // position: "right",
73677
+ // },
73678
+ // {
73679
+ // element: ".style-label-margin",
73680
+ // title: translate("buttonizer_tour.create_button_tour.step_18.title"),
73681
+ // intro: translate("buttonizer_tour.create_button_tour.step_18.intro"),
73682
+ // tooltipClass: "tourDialog",
73683
+ // position: "right",
73684
+ // },
73685
+ {
73686
+ title: translate("buttonizer_tour.final.title"),
73687
+ intro: translate("buttonizer_tour.final.intro"),
73688
+ tooltipClass: "tourDialog",
73689
+ position: "right"
73690
+ }];
73691
+
73692
+ var CreateButtonTour_onBeforeChange = function onBeforeChange(nextStepIndex, introJsRef, groupId, buttonId, openCollapsibleGroup) {
73693
+ if (nextStepIndex === 2) {
73694
+ // Going back to overview page
73695
+ document.location.href = document.location.href = "#/";
73696
+ openCollapsibleGroup("button_group_container");
73697
+ if (introJsRef.introJs._direction === "forward") setTimeout(function () {
73698
+ introJsRef.introJs.nextStep();
73699
+ }, 100);
73700
+ if (introJsRef.introJs._direction === "backward") setTimeout(function () {
73701
+ introJsRef.introJs.previousStep();
73702
+ }, 100);
73703
+ }
73704
+
73705
+ if (nextStepIndex === 3) {
73706
+ // Going to general page and open the general container
73707
+ if (introJsRef.introJs._direction === "forward") {
73708
+ document.location.hash = "/group/".concat(groupId, "/button/").concat(buttonId, "/general");
73709
+ }
73710
+
73711
+ openCollapsibleGroup("button_general_general");
73712
+ }
73713
+
73714
+ if (nextStepIndex === 7) {
73715
+ // Open label container
73716
+ if (introJsRef.introJs._direction === "forward") setTimeout(function () {
73717
+ introJsRef.introJs.nextStep();
73718
+ }, 100);
73719
+ openCollapsibleGroup("button_general_label");
73720
+ if (introJsRef.introJs._direction === "backward") setTimeout(function () {
73721
+ introJsRef.introJs.previousStep();
73722
+ }, 100);
73723
+ }
73724
+
73725
+ if (nextStepIndex === 7) {
73726
+ // Open general container on the way back
73727
+ if (introJsRef.introJs._direction === "backward") {
73728
+ openCollapsibleGroup("button_general_general");
73729
+ }
73730
+ }
73731
+
73732
+ if (nextStepIndex === 9) {
73733
+ // Going back to general page and open the label container
73734
+ if (introJsRef.introJs._direction === "backward") {
73735
+ document.location.hash = "/group/".concat(groupId, "/button/").concat(buttonId, "/general");
73736
+ openCollapsibleGroup("button_general_label");
73737
+ }
73738
+
73739
+ if (introJsRef.introJs._direction === "forward") setTimeout(function () {
73740
+ introJsRef.introJs.nextStep();
73741
+ }, 100);
73742
+ if (introJsRef.introJs._direction === "backward") setTimeout(function () {
73743
+ introJsRef.introJs.previousStep();
73744
+ }, 100);
73745
+ }
73746
+
73747
+ if (nextStepIndex === 10) {
73748
+ // Going to style page and open the button container
73749
+ if (introJsRef.introJs._direction === "forward") {
73750
+ document.location.hash = "/group/".concat(groupId, "/button/").concat(buttonId, "/style");
73751
+ openCollapsibleGroup("button_style_button");
73752
+ }
73753
+ }
73754
+
73755
+ if (nextStepIndex === 14) {
73756
+ // Open icon container
73757
+ if (introJsRef.introJs._direction === "forward") setTimeout(function () {
73758
+ introJsRef.introJs.nextStep();
73759
+ }, 100);
73760
+ openCollapsibleGroup("button_style_icon");
73761
+ if (introJsRef.introJs._direction === "backward") setTimeout(function () {
73762
+ introJsRef.introJs.previousStep();
73763
+ }, 100);
73764
+ }
73765
+
73766
+ if (nextStepIndex === 14) {
73767
+ // Open the button container on the way back
73768
+ if (introJsRef.introJs._direction === "backward") {
73769
+ openCollapsibleGroup("button_style_button");
73770
+ }
73771
+ }
73772
+
73773
+ if (nextStepIndex === 18) {
73774
+ // Open label container
73775
+ if (introJsRef.introJs._direction === "forward") setTimeout(function () {
73776
+ introJsRef.introJs.nextStep();
73777
+ }, 100);
73778
+ openCollapsibleGroup("button_style_label");
73779
+ if (introJsRef.introJs._direction === "backward") setTimeout(function () {
73780
+ introJsRef.introJs.previousStep();
73781
+ }, 100);
73782
+ }
73783
+
73784
+ if (nextStepIndex === 18) {
73785
+ // Open the icon container on the way back
73786
+ if (introJsRef.introJs._direction === "backward") {
73787
+ openCollapsibleGroup("button_style_icon");
73788
+ }
73789
+ }
73790
+
73791
+ if (introJsRef !== null && nextStepIndex !== CreateButtonTour_tour.length) introJsRef.updateStepElement(nextStepIndex);
73792
+ };
73793
+
73794
+ /* harmony default export */ var CreateButtonTour = ({
73795
+ tour: CreateButtonTour_tour,
73796
+ onBeforeChange: CreateButtonTour_onBeforeChange
73797
+ });
73798
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/ButtonizerTour/Tours/index.js
73799
+
73800
+
73801
+ /* harmony default export */ var Tours = ({
73802
+ create_button_tour: [CreateButtonTour.tour, CreateButtonTour.onBeforeChange],
73803
+ interface_tour: [InterfaceTour.tour, InterfaceTour.onBeforeChange]
73804
+ });
73805
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/ButtonizerTour/ButtonizerTour.js
73806
+
73807
+
73808
+
73809
+
73810
+
73811
+
73812
+
73813
+
73814
+
73815
+ function ButtonizerTour(_ref) {
73816
+ var tour = _ref.tour,
73817
+ groups = _ref.groups,
73818
+ buttons = _ref.buttons,
73819
+ openCollapsibleGroup = _ref.openCollapsibleGroup;
73820
+ var groupId = Object.keys(groups)[0];
73821
+ var buttonId = Object.keys(buttons)[0];
73822
+ var ref = (0,react.useRef)();
73823
+ var state = {
73824
+ stepsEnabled: true,
73825
+ initialStep: 0,
73826
+ steps: tour ? Tours[tour][0] : null,
73827
+ onBeforeChange: function onBeforeChange(nextStepIndex) {
73828
+ return Tours[tour][1](nextStepIndex, ref.current ? ref.current : null, groupId, buttonId, openCollapsibleGroup);
73829
+ }
73830
+ };
73831
+ if (!tour) return null;
73832
+
73833
+ var onExit = function onExit() {
73834
+ app.closeButtonizerTour(); // Users go to home page if they stop in the middle of the tour
73835
+
73836
+ document.location.href = "#/";
73837
+ openCollapsibleGroup(null);
73838
+ }; // Disable downscroll in the menu during the last dialogs
73839
+
73840
+
73841
+ document.addEventListener("keydown", function (e) {
73842
+ if (tour) {
73843
+ switch (e.key) {
73844
+ case "ArrowUp":
73845
+ case "ArrowDown":
73846
+ e.preventDefault();
73847
+ break;
73848
+ }
73849
+ }
73850
+ }, {
73851
+ capture: true // this disables arrow key scrolling in modern Chrome
73852
+
73853
+ });
73854
+ return /*#__PURE__*/react.createElement(intro_js_react_lib/* Steps */.Rg, {
73855
+ enabled: true,
73856
+ steps: state.steps,
73857
+ initialStep: state.initialStep,
73858
+ onExit: onExit,
73859
+ onBeforeChange: state.onBeforeChange,
73860
+ onComplete: function onComplete() {
73861
+ document.location.href = "#/";
73862
+ },
73863
+ ref: ref,
73864
+ options: {
73865
+ showBullets: false,
73866
+ nextLabel: translate("buttonizer_tour.next"),
73867
+ prevLabel: translate("buttonizer_tour.previous"),
73868
+ doneLabel: translate("buttonizer_tour.done"),
73869
+ hidePrev: true,
73870
+ showProgress: true
73871
+ }
73872
+ });
73873
+ }
73874
+
73875
+ /* harmony default export */ var ButtonizerTour_ButtonizerTour = (connect(function (state) {
73876
+ return {
73877
+ groups: state.groups,
73878
+ buttons: state.buttons
73879
+ };
73880
+ }, function (dispatch) {
73881
+ return {
73882
+ setMisc: function setMisc() {
73883
+ return dispatch(dataActions_setMisc.apply(void 0, arguments));
73884
+ },
73885
+ openCollapsibleGroup: function openCollapsibleGroup() {
73886
+ return dispatch(dataActions_setMisc("open_collapsible_group", arguments.length <= 0 ? undefined : arguments[0]));
73887
+ }
73888
+ };
73889
+ })(ButtonizerTour));
73890
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Drawers/SettingsDialog/WelcomeDialog.js
73891
+ function WelcomeDialog_slicedToArray(arr, i) { return WelcomeDialog_arrayWithHoles(arr) || WelcomeDialog_iterableToArrayLimit(arr, i) || WelcomeDialog_unsupportedIterableToArray(arr, i) || WelcomeDialog_nonIterableRest(); }
73892
+
73893
+ function WelcomeDialog_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."); }
73894
+
73895
+ function WelcomeDialog_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return WelcomeDialog_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 WelcomeDialog_arrayLikeToArray(o, minLen); }
73896
+
73897
+ function WelcomeDialog_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; }
73898
+
73899
+ function WelcomeDialog_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_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; }
73900
+
73901
+ function WelcomeDialog_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
73902
+
73903
+
73904
+
73905
+
73906
+
73907
+
73908
+
73909
+
73910
+ function WelcomeDialog(_ref) {
73911
+ var setSetting = _ref.setSetting,
73912
+ _ref$welcomeDialog = _ref.welcomeDialog,
73913
+ welcomeDialog = _ref$welcomeDialog === void 0 ? false : _ref$welcomeDialog,
73914
+ openCollapsibleGroup = _ref.openCollapsibleGroup;
73915
+
73916
+ var _useState = (0,react.useState)(welcomeDialog),
73917
+ _useState2 = WelcomeDialog_slicedToArray(_useState, 2),
73918
+ welcomeDialogOpened = _useState2[0],
73919
+ setWelcomeDialogOpened = _useState2[1];
73920
+
73921
+ var handleClose = function handleClose() {
73922
+ setWelcomeDialogOpened(false);
73923
+ setSetting("welcome", false);
73924
+ };
73925
+
73926
+ (0,react.useEffect)(function () {
73927
+ setWelcomeDialogOpened(welcomeDialog);
73928
+ }, [welcomeDialog]);
73929
+ return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Dialog_Dialog, {
73930
+ open: welcomeDialogOpened,
73931
+ onClose: handleClose,
73932
+ fullWidth: true,
73933
+ "data-testid": "dialog:welcome-dialog"
73934
+ }, /*#__PURE__*/react.createElement("div", {
73935
+ id: "welcome-dialog"
73936
+ }, /*#__PURE__*/react.createElement("img", {
73937
+ src: buttonizer_admin.assets + "/images/buttonizer-logo.png",
73938
+ width: 120,
73939
+ align: "center",
73940
+ style: {
73941
+ marginTop: 50,
73942
+ marginBottom: 5
73943
+ }
73944
+ }), /*#__PURE__*/react.createElement("div", {
73945
+ className: "welcome-dialog skip-button"
73946
+ }, /*#__PURE__*/react.createElement(IconButton_IconButton, {
73947
+ onClick: handleClose
73948
+ }, /*#__PURE__*/react.createElement(Icon_Icon, {
73949
+ fontSize: "inherit",
73950
+ className: "fas fa-times"
73951
+ }))), /*#__PURE__*/react.createElement(DialogTitle_DialogTitle, {
73952
+ className: "welcome-dialog-title"
73953
+ }, translate("buttonizer_tour.title_interface_tour")), /*#__PURE__*/react.createElement(DialogContent_DialogContent, null, /*#__PURE__*/react.createElement(DialogContentText_DialogContentText, {
73954
+ className: "welcome-dialog-text"
73955
+ }, /*#__PURE__*/react.createElement("span", {
73956
+ dangerouslySetInnerHTML: {
73957
+ __html: translate("buttonizer_tour.intro_interface_tour", "settings")
73958
+ }
73959
+ }))), /*#__PURE__*/react.createElement(DialogActions_DialogActions, {
73960
+ className: "welcome-dialog-buttons"
73961
+ }, /*#__PURE__*/react.createElement(Button_Button, {
73962
+ onClick: function onClick() {
73963
+ setSetting("welcome", false);
73964
+ openCollapsibleGroup("button_group_container"); // The element (first step) cannot not be found if the tour does not start on the right page
73965
+
73966
+ document.location.href = "#/"; // Open the button group container just before the tour starts
73967
+
73968
+ setTimeout(function () {
73969
+ app.startButtonizerTour("interface_tour");
73970
+ }, 200);
73971
+ handleClose();
73972
+ },
73973
+ color: "primary",
73974
+ variant: "contained",
73975
+ className: "welcome-dialog-buttons primary",
73976
+ "data-testid": "welcome-dialog:start-tour"
73977
+ }, translate("buttonizer_tour.take_tour")), /*#__PURE__*/react.createElement(Button_Button, {
73978
+ onClick: function onClick() {
73979
+ handleClose();
73980
+ setSetting("welcome", false);
73981
+ },
73982
+ variant: "outlined",
73983
+ className: "welcome-dialog-buttons outlined",
73984
+ "data-testid": "welcome-dialog:cancel"
73985
+ }, translate("buttonizer_tour.already_know"))))));
73986
+ }
73987
+
73988
+ /* harmony default export */ var SettingsDialog_WelcomeDialog = (connect(function (state) {
73989
+ return {
73990
+ groups: state.groups
73991
+ };
73992
+ }, function (dispatch) {
73993
+ return {
73994
+ setSetting: function setSetting() {
73995
+ return dispatch(dataActions_setSetting.apply(void 0, arguments));
73996
+ },
73997
+ openCollapsibleGroup: function openCollapsibleGroup() {
73998
+ return dispatch(dataActions_setMisc("open_collapsible_group", arguments.length <= 0 ? undefined : arguments[0]));
73999
+ }
74000
+ };
74001
+ })(WelcomeDialog));
74002
  ;// CONCATENATED MODULE: ./src/js/dashboard/App.js
74003
  function App_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { App_typeof = function _typeof(obj) { return typeof obj; }; } else { App_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return App_typeof(obj); }
74004
 
74039
 
74040
 
74041
 
74042
+
74043
+
74044
 
74045
 
74046
  var App_App = /*#__PURE__*/function (_React$Component) {
74056
  _this = _super.call(this, props);
74057
  __webpack_require__.g.app = App_assertThisInitialized(_this); // FontAwesome
74058
 
74059
+ _this.loadFontAwesome();
 
74060
 
 
 
74061
  _this.state = {
74062
  hasError: false,
74063
  error: "",
74066
  open: false,
74067
  text: "DEFAULT DIALOG",
74068
  video: null
74069
+ },
74070
+ buttonizerTour: null
74071
  /* webpack-strip-block:removed */
74072
 
74073
  };
74116
  }
74117
  }, false);
74118
  }
74119
+ /**
74120
+ * Buttonizer
74121
+ * @returns {*}
74122
  */
74123
 
74124
  }, {
74193
  });
74194
  }
74195
  }
74196
+ }, "Your browser does somehow not support iframes. Please try a recent version of Google Chrome, FireFox or Microsoft Edge"))), /*#__PURE__*/react.createElement(Dialogs_SuperContributorDialog, null), /*#__PURE__*/react.createElement(SettingsDialog_WelcomeDialog, {
74197
+ welcomeDialog: this.props.welcome || document.location.href.indexOf("welcome-splash=true") >= 0
74198
+ }), /*#__PURE__*/react.createElement(ButtonizerTour_ButtonizerTour, {
74199
+ tour: this.state.buttonizerTour
74200
+ }), /*#__PURE__*/react.createElement(PremiumDialog, {
74201
  open: this.state.premiumDialog.open,
74202
  text: this.state.premiumDialog.text,
74203
  video: this.state.premiumDialog.video,
74219
  var fontAwesome = document.createElement("link");
74220
  fontAwesome.rel = "stylesheet";
74221
  fontAwesome.type = "text/css";
74222
+ fontAwesome.href = "https://use.fontawesome.com/releases/v5.8.2/css/all.css";
74223
+ fontAwesome.integrity = "sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay";
74224
  fontAwesome.setAttribute("crossorigin", "anonymous");
74225
  document.getElementsByTagName("head")[0].appendChild(fontAwesome);
74226
  }
74227
+ /**
74228
+ * Does this user have premium?
74229
+ * @returns {boolean|*}
74230
  */
74231
 
74232
  }, {
74235
  if (window.free === true) return false;
74236
  return this.props._premium; // return false;
74237
  }
74238
+ /**
74239
+ * Does this user have any changes?
74240
+ *
74241
+ * @returns {boolean}
74242
  */
74243
 
74244
  }, {
74246
  value: function hasChanges() {
74247
  return this.props.hasChanges;
74248
  }
74249
+ /**
74250
+ * Update if the user has any changes
74251
+ *
74252
+ * @param status
74253
+ * @returns {boolean}
74254
  */
74255
 
74256
  }, {
74260
  dashboard_store.dispatch(changeHasChanges(status));
74261
  return status;
74262
  }
74263
+ /**
74264
+ * Buttonizer fully loaded?
74265
+ * @returns {boolean}
74266
  */
74267
 
74268
  }, {
74270
  value: function isLoaded() {
74271
  return this.props.loading.loaded;
74272
  }
74273
+ /**
74274
+ * Return button saver (discontinued)
74275
+ * @returns {ButtonSaver}
74276
  */
74277
 
74278
  }, {
74280
  value: function getSaver() {
74281
  return this.buttonSaver;
74282
  }
74283
+ }, {
74284
+ key: "getCurrentButtonizerTour",
74285
+ value: function getCurrentButtonizerTour() {
74286
+ return this.state.buttonizerTour;
74287
+ }
74288
+ }, {
74289
+ key: "startButtonizerTour",
74290
+ value: function startButtonizerTour(tour) {
74291
+ this.setState({
74292
+ buttonizerTour: tour
74293
+ });
74294
+ }
74295
+ }, {
74296
+ key: "closeButtonizerTour",
74297
+ value: function closeButtonizerTour() {
74298
+ this.setState({
74299
+ buttonizerTour: null
74300
+ });
74301
+ }
74302
  }, {
74303
  key: "showPremiumDialog",
74304
  value: function showPremiumDialog() {
74325
  }
74326
  });
74327
  }
74328
+ /**
74329
+ * Open a page on the dashboard when clicking on a button/group
74330
+ * @param {*} action
74331
  */
74332
 
74333
  }, {
74349
  frameUrl: store.misc.frameUrl,
74350
  loading: store.misc.loading,
74351
  _premium: store.misc._premium,
74352
+ hasChanges: store.misc.hasChanges,
74353
+ welcome: store.settings.welcome
74354
  };
74355
  }, {
74356
  addRecord: dataActions_addRecord,
78717
 
78718
  /***/ }),
78719
 
78720
+ /***/ 65011:
78721
  /***/ (function(module) {
78722
 
78723
  /* global module */
78732
 
78733
  /***/ }),
78734
 
78735
+ /***/ 98588:
78736
  /***/ (function(module) {
78737
 
78738
  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; }
78770
 
78771
  /***/ }),
78772
 
78773
+ /***/ 78867:
78774
  /***/ (function(module) {
78775
 
78776
  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; }
78809
 
78810
  /***/ }),
78811
 
78812
+ /***/ 6527:
78813
  /***/ (function(module) {
78814
 
78815
  /* global module */
78873
 
78874
  /***/ }),
78875
 
78876
+ /***/ 53298:
78877
  /***/ (function(module) {
78878
 
78879
  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; }
78959
 
78960
  /***/ }),
78961
 
78962
+ /***/ 11571:
78963
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
78964
 
78965
  /* global module, require */
78966
+ var Default = __webpack_require__(65011);
78967
 
78968
+ var Square = __webpack_require__(78867);
78969
 
78970
+ var Rectangle = __webpack_require__(98588);
78971
 
78972
+ var TextIcon = __webpack_require__(53298);
78973
 
78974
+ var Text = __webpack_require__(6527);
78975
 
78976
  module.exports = {
78977
  "default": Default,
78983
 
78984
  /***/ }),
78985
 
78986
+ /***/ 42226:
78987
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
78988
 
78989
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
79001
  /* global module, require */
79002
  var defaults = __webpack_require__(46314);
79003
 
79004
+ var menuStyles = __webpack_require__(11571);
79005
 
79006
  var merge = __webpack_require__(82492);
79007
 
92762
 
92763
  /***/ }),
92764
 
92765
+ /***/ 43390:
92766
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
 
 
 
 
 
 
 
 
92767
 
92768
  "use strict";
 
 
92769
 
 
92770
 
92771
+ Object.defineProperty(exports, "__esModule", ({
92772
+ value: true
92773
+ }));
92774
+ exports.default = void 0;
92775
 
92776
+ var _intro = _interopRequireDefault(__webpack_require__(34342));
92777
 
92778
+ var _propTypes = _interopRequireDefault(__webpack_require__(45697));
92779
 
92780
+ var _react = __webpack_require__(67294);
 
92781
 
92782
+ var introJsPropTypes = _interopRequireWildcard(__webpack_require__(96115));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92783
 
92784
+ var introJsDefaultProps = _interopRequireWildcard(__webpack_require__(89916));
92785
 
92786
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
92787
 
92788
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
92789
 
92790
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
92791
 
92792
+ 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); }
92793
 
92794
+ 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; }
92795
 
92796
+ 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; }
92797
 
92798
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
 
 
 
 
 
92799
 
92800
+ 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); } }
 
 
92801
 
92802
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
 
92803
 
92804
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
 
 
92805
 
92806
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
 
 
 
92807
 
92808
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
 
 
 
92809
 
92810
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
 
 
92811
 
92812
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
 
92813
 
92814
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
 
92815
 
92816
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
 
 
 
 
 
92817
 
92818
+ 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; }
 
92819
 
92820
  /**
92821
+ * Intro.js Hints Component.
 
 
 
 
 
92822
  */
92823
+ var Hints = /*#__PURE__*/function (_Component) {
92824
+ _inherits(Hints, _Component);
 
 
92825
 
92826
+ var _super = _createSuper(Hints);
 
92827
 
92828
+ /**
92829
+ * React Props
92830
+ * @type {Object}
92831
+ */
 
 
 
92832
 
92833
+ /**
92834
+ * React Default Props
92835
+ * @type {Object}
92836
+ */
92837
 
92838
+ /**
92839
+ * Creates a new instance of the component.
92840
+ * @class
92841
+ * @param {Object} props - The props of the component.
92842
+ */
92843
+ function Hints(props) {
92844
+ var _this;
92845
 
92846
+ _classCallCheck(this, Hints);
 
92847
 
92848
+ _this = _super.call(this, props);
92849
+ _this.introJs = null;
92850
+ _this.isConfigured = false;
 
 
 
92851
 
92852
+ _this.installIntroJs();
92853
+
92854
+ return _this;
92855
  }
92856
+ /**
92857
+ * Lifecycle: componentDidMount.
92858
+ * We use this event to enable Intro.js hints at mount time if enabled right from the start.
92859
+ */
92860
 
 
 
 
 
 
92861
 
92862
+ _createClass(Hints, [{
92863
+ key: "componentDidMount",
92864
+ value: function componentDidMount() {
92865
+ if (this.props.enabled) {
92866
+ this.configureIntroJs();
92867
+ this.renderHints();
92868
+ }
92869
+ }
92870
+ /**
92871
+ * Lifecycle: componentDidUpdate.
92872
+ * @param {Object} prevProps - The previous props.
92873
+ */
92874
+
92875
+ }, {
92876
+ key: "componentDidUpdate",
92877
+ value: function componentDidUpdate(prevProps) {
92878
+ var _this$props = this.props,
92879
+ enabled = _this$props.enabled,
92880
+ hints = _this$props.hints,
92881
+ options = _this$props.options;
92882
 
92883
+ if (!this.isConfigured || prevProps.hints !== hints || prevProps.options !== options) {
92884
+ this.configureIntroJs();
92885
+ this.renderHints();
92886
+ }
92887
 
92888
+ if (prevProps.enabled !== enabled) {
92889
+ this.renderHints();
92890
+ }
92891
+ }
92892
+ /**
92893
+ * Lifecycle: componentWillUnmount.
92894
+ * We use this even to hide the hints when the component is unmounted.
92895
+ */
92896
 
92897
+ }, {
92898
+ key: "componentWillUnmount",
92899
+ value: function componentWillUnmount() {
92900
+ this.introJs.hideHints();
92901
+ }
92902
+ /**
92903
+ * Installs Intro.js.
92904
+ */
92905
 
92906
+ }, {
92907
+ key: "installIntroJs",
92908
+ value: function installIntroJs() {
92909
+ this.introJs = (0, _intro["default"])();
92910
+ var _this$props2 = this.props,
92911
+ onClick = _this$props2.onClick,
92912
+ onClose = _this$props2.onClose;
92913
 
92914
+ if (onClick) {
92915
+ this.introJs.onhintclick(onClick);
 
 
 
92916
  }
 
 
 
 
92917
 
92918
+ if (onClose) {
92919
+ this.introJs.onhintclose(onClose);
 
 
92920
  }
92921
  }
92922
+ /**
92923
+ * Configures Intro.js if not already configured.
92924
+ */
92925
 
92926
+ }, {
92927
+ key: "configureIntroJs",
92928
+ value: function configureIntroJs() {
92929
+ var _this$props3 = this.props,
92930
+ options = _this$props3.options,
92931
+ hints = _this$props3.hints; // We need to remove all hints otherwise new hints won't be added.
92932
 
92933
+ this.introJs.removeHints();
92934
+ this.introJs.setOptions(_objectSpread(_objectSpread({}, options), {}, {
92935
+ hints: hints
92936
+ }));
92937
+ this.isConfigured = true;
92938
  }
92939
+ /**
92940
+ * Renders the Intro.js hints.
92941
+ */
92942
 
92943
+ }, {
92944
+ key: "renderHints",
92945
+ value: function renderHints() {
92946
+ var _this$props4 = this.props,
92947
+ enabled = _this$props4.enabled,
92948
+ hints = _this$props4.hints;
92949
 
92950
+ if (enabled && hints.length > 0) {
92951
+ this.introJs.showHints();
92952
+ } else if (!enabled) {
92953
+ this.introJs.hideHints();
92954
+ }
92955
+ }
92956
+ /**
92957
+ * Renders the component.
92958
+ * @return {null} We do not want to render anything.
92959
+ */
92960
 
92961
+ }, {
92962
+ key: "render",
92963
+ value: function render() {
92964
+ return null;
92965
+ }
92966
+ }]);
92967
 
92968
+ return Hints;
92969
+ }(_react.Component);
92970
+
92971
+ exports.default = Hints;
92972
+
92973
+ _defineProperty(Hints, "propTypes", {
92974
+ enabled: _propTypes["default"].bool,
92975
+ hints: _propTypes["default"].arrayOf(_propTypes["default"].shape({
92976
+ element: _propTypes["default"].string.isRequired,
92977
+ hint: _propTypes["default"].string.isRequired,
92978
+ hintPosition: introJsPropTypes.hintPosition
92979
+ })).isRequired,
92980
+ onClick: _propTypes["default"].func,
92981
+ onClose: _propTypes["default"].func,
92982
+ options: introJsPropTypes.options
92983
  });
92984
 
92985
+ _defineProperty(Hints, "defaultProps", {
92986
+ enabled: false,
92987
+ onClick: null,
92988
+ onClose: null,
92989
+ options: introJsDefaultProps.options
92990
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92991
 
92992
+ /***/ }),
92993
 
92994
+ /***/ 38536:
92995
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
92996
 
92997
+ "use strict";
 
 
92998
 
 
 
 
92999
 
93000
+ Object.defineProperty(exports, "__esModule", ({
93001
+ value: true
93002
+ }));
93003
+ exports.default = void 0;
93004
 
93005
+ var _intro = _interopRequireDefault(__webpack_require__(34342));
93006
+
93007
+ var _propTypes = _interopRequireDefault(__webpack_require__(45697));
93008
+
93009
+ var _react = __webpack_require__(67294);
93010
+
93011
+ var _server = __webpack_require__(97762);
93012
+
93013
+ var introJsPropTypes = _interopRequireWildcard(__webpack_require__(96115));
93014
+
93015
+ var introJsDefaultProps = _interopRequireWildcard(__webpack_require__(89916));
93016
+
93017
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
93018
+
93019
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
93020
+
93021
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
93022
+
93023
+ 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); }
93024
+
93025
+ 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; }
93026
+
93027
+ 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; }
93028
+
93029
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
93030
+
93031
+ 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); } }
93032
+
93033
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
93034
+
93035
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
93036
+
93037
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
93038
+
93039
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
93040
+
93041
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
93042
+
93043
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
93044
+
93045
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
93046
+
93047
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
93048
+
93049
+ 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; }
93050
+
93051
+ /**
93052
+ * Intro.js Steps Component.
93053
+ */
93054
+ var Steps = /*#__PURE__*/function (_Component) {
93055
+ _inherits(Steps, _Component);
93056
+
93057
+ var _super = _createSuper(Steps);
93058
+
93059
+ /**
93060
+ * React Props
93061
+ * @type {Object}
93062
+ */
93063
+
93064
+ /**
93065
+ * React Default Props
93066
+ * @type {Object}
93067
+ */
93068
+
93069
+ /**
93070
+ * Creates a new instance of the component.
93071
+ * @class
93072
+ * @param {Object} props - The props of the component.
93073
+ */
93074
+ function Steps(props) {
93075
+ var _this;
93076
+
93077
+ _classCallCheck(this, Steps);
93078
+
93079
+ _this = _super.call(this, props);
93080
+
93081
+ _defineProperty(_assertThisInitialized(_this), "onExit", function () {
93082
+ var onExit = _this.props.onExit;
93083
+ _this.isVisible = false;
93084
+ onExit(_this.introJs._currentStep);
93085
+ });
93086
+
93087
+ _defineProperty(_assertThisInitialized(_this), "onBeforeExit", function () {
93088
+ var onBeforeExit = _this.props.onBeforeExit;
93089
+
93090
+ if (onBeforeExit) {
93091
+ return onBeforeExit(_this.introJs._currentStep);
93092
+ }
93093
+
93094
+ return true;
93095
+ });
93096
+
93097
+ _defineProperty(_assertThisInitialized(_this), "onBeforeChange", function () {
93098
+ if (!_this.isVisible) {
93099
+ return true;
93100
+ }
93101
+
93102
+ var _this$props = _this.props,
93103
+ onBeforeChange = _this$props.onBeforeChange,
93104
+ onPreventChange = _this$props.onPreventChange;
93105
+
93106
+ if (onBeforeChange) {
93107
+ var continueStep = onBeforeChange(_this.introJs._currentStep);
93108
+
93109
+ if (continueStep === false && onPreventChange) {
93110
+ setTimeout(function () {
93111
+ onPreventChange(_this.introJs._currentStep);
93112
+ }, 0);
93113
+ }
93114
+
93115
+ return continueStep;
93116
+ }
93117
+
93118
+ return true;
93119
+ });
93120
+
93121
+ _defineProperty(_assertThisInitialized(_this), "onAfterChange", function (element) {
93122
+ if (!_this.isVisible) {
93123
+ return;
93124
+ }
93125
+
93126
+ var onAfterChange = _this.props.onAfterChange;
93127
+
93128
+ if (onAfterChange) {
93129
+ onAfterChange(_this.introJs._currentStep, element);
93130
+ }
93131
+ });
93132
+
93133
+ _defineProperty(_assertThisInitialized(_this), "onChange", function (element) {
93134
+ if (!_this.isVisible) {
93135
+ return;
93136
+ }
93137
+
93138
+ var onChange = _this.props.onChange;
93139
+
93140
+ if (onChange) {
93141
+ onChange(_this.introJs._currentStep, element);
93142
+ }
93143
+ });
93144
+
93145
+ _defineProperty(_assertThisInitialized(_this), "onComplete", function () {
93146
+ var onComplete = _this.props.onComplete;
93147
+
93148
+ if (onComplete) {
93149
+ onComplete();
93150
+ }
93151
+ });
93152
+
93153
+ _defineProperty(_assertThisInitialized(_this), "updateStepElement", function (stepIndex) {
93154
+ var element = document.querySelector(_this.introJs._options.steps[stepIndex].element);
93155
+
93156
+ if (element) {
93157
+ _this.introJs._introItems[stepIndex].element = element;
93158
+ _this.introJs._introItems[stepIndex].position = _this.introJs._options.steps[stepIndex].position || 'auto';
93159
+ }
93160
+ });
93161
+
93162
+ _this.introJs = null;
93163
+ _this.isConfigured = false; // We need to manually keep track of the visibility state to avoid a callback hell.
93164
+
93165
+ _this.isVisible = false;
93166
+
93167
+ _this.installIntroJs();
93168
+
93169
+ return _this;
93170
+ }
93171
+ /**
93172
+ * Lifecycle: componentDidMount.
93173
+ * We use this event to enable Intro.js steps at mount time if enabled right from the start.
93174
+ */
93175
+
93176
+
93177
+ _createClass(Steps, [{
93178
+ key: "componentDidMount",
93179
+ value: function componentDidMount() {
93180
+ if (this.props.enabled) {
93181
+ this.configureIntroJs();
93182
+ this.renderSteps();
93183
+ }
93184
+ }
93185
+ /**
93186
+ * Lifecycle: componentDidUpdate.
93187
+ * @param {Object} prevProps - The previous props.
93188
+ */
93189
+
93190
+ }, {
93191
+ key: "componentDidUpdate",
93192
+ value: function componentDidUpdate(prevProps) {
93193
+ var _this$props2 = this.props,
93194
+ enabled = _this$props2.enabled,
93195
+ steps = _this$props2.steps,
93196
+ options = _this$props2.options;
93197
+
93198
+ if (!this.isConfigured || prevProps.steps !== steps || prevProps.options !== options) {
93199
+ this.configureIntroJs();
93200
+ this.renderSteps();
93201
+ }
93202
+
93203
+ if (prevProps.enabled !== enabled) {
93204
+ this.renderSteps();
93205
+ }
93206
+ }
93207
+ /**
93208
+ * Lifecycle: componentWillUnmount.
93209
+ * We use this even to hide the steps when the component is unmounted.
93210
+ */
93211
+
93212
+ }, {
93213
+ key: "componentWillUnmount",
93214
+ value: function componentWillUnmount() {
93215
+ this.introJs.exit();
93216
+ }
93217
+ /**
93218
+ * Triggered when Intro.js steps are exited.
93219
+ */
93220
+
93221
+ }, {
93222
+ key: "installIntroJs",
93223
+
93224
+ /**
93225
+ * Installs Intro.js.
93226
+ */
93227
+ value: function installIntroJs() {
93228
+ this.introJs = (0, _intro["default"])();
93229
+ this.introJs.onexit(this.onExit);
93230
+ this.introJs.onbeforeexit(this.onBeforeExit);
93231
+ this.introJs.onbeforechange(this.onBeforeChange);
93232
+ this.introJs.onafterchange(this.onAfterChange);
93233
+ this.introJs.onchange(this.onChange);
93234
+ this.introJs.oncomplete(this.onComplete);
93235
+ }
93236
+ /**
93237
+ * Configures Intro.js if not already configured.
93238
+ */
93239
+
93240
+ }, {
93241
+ key: "configureIntroJs",
93242
+ value: function configureIntroJs() {
93243
+ var _this$props3 = this.props,
93244
+ options = _this$props3.options,
93245
+ steps = _this$props3.steps;
93246
+ var sanitizedSteps = steps.map(function (step) {
93247
+ if ((0, _react.isValidElement)(step.intro)) {
93248
+ return _objectSpread(_objectSpread({}, step), {}, {
93249
+ intro: (0, _server.renderToStaticMarkup)(step.intro)
93250
+ });
93251
+ }
93252
+
93253
+ return step;
93254
+ });
93255
+ this.introJs.setOptions(_objectSpread(_objectSpread({}, options), {}, {
93256
+ steps: sanitizedSteps
93257
+ }));
93258
+ this.isConfigured = true;
93259
+ }
93260
+ /**
93261
+ * Renders the Intro.js steps.
93262
+ */
93263
+
93264
+ }, {
93265
+ key: "renderSteps",
93266
+ value: function renderSteps() {
93267
+ var _this$props4 = this.props,
93268
+ enabled = _this$props4.enabled,
93269
+ initialStep = _this$props4.initialStep,
93270
+ steps = _this$props4.steps,
93271
+ onStart = _this$props4.onStart;
93272
+
93273
+ if (enabled && steps.length > 0 && !this.isVisible) {
93274
+ this.introJs.start();
93275
+ this.isVisible = true;
93276
+ this.introJs.goToStepNumber(initialStep + 1);
93277
+
93278
+ if (onStart) {
93279
+ onStart(this.introJs._currentStep);
93280
+ }
93281
+ } else if (!enabled && this.isVisible) {
93282
+ this.isVisible = false;
93283
+ this.introJs.exit();
93284
+ }
93285
+ }
93286
+ /**
93287
+ * Renders the component.
93288
+ * @return {null} We do not want to render anything.
93289
+ */
93290
+
93291
+ }, {
93292
+ key: "render",
93293
+ value: function render() {
93294
+ return null;
93295
+ }
93296
+ }]);
93297
+
93298
+ return Steps;
93299
+ }(_react.Component);
93300
+
93301
+ exports.default = Steps;
93302
+
93303
+ _defineProperty(Steps, "propTypes", {
93304
+ enabled: _propTypes["default"].bool,
93305
+ initialStep: _propTypes["default"].number.isRequired,
93306
+ steps: _propTypes["default"].arrayOf(_propTypes["default"].shape({
93307
+ element: _propTypes["default"].string,
93308
+ intro: _propTypes["default"].node.isRequired,
93309
+ position: introJsPropTypes.tooltipPosition,
93310
+ tooltipClass: _propTypes["default"].string,
93311
+ highlightClass: _propTypes["default"].string
93312
+ })).isRequired,
93313
+ onStart: _propTypes["default"].func,
93314
+ onExit: _propTypes["default"].func.isRequired,
93315
+ onBeforeExit: _propTypes["default"].func,
93316
+ onBeforeChange: _propTypes["default"].func,
93317
+ onAfterChange: _propTypes["default"].func,
93318
+ onChange: _propTypes["default"].func,
93319
+ onPreventChange: _propTypes["default"].func,
93320
+ onComplete: _propTypes["default"].func,
93321
+ options: introJsPropTypes.options
93322
+ });
93323
+
93324
+ _defineProperty(Steps, "defaultProps", {
93325
+ enabled: false,
93326
+ onStart: null,
93327
+ onBeforeExit: null,
93328
+ onBeforeChange: null,
93329
+ onAfterChange: null,
93330
+ onChange: null,
93331
+ onPreventChange: null,
93332
+ onComplete: null,
93333
+ options: introJsDefaultProps.options
93334
+ });
93335
+
93336
+ /***/ }),
93337
+
93338
+ /***/ 89916:
93339
+ /***/ (function(__unused_webpack_module, exports) {
93340
+
93341
+ "use strict";
93342
+
93343
+
93344
+ Object.defineProperty(exports, "__esModule", ({
93345
+ value: true
93346
+ }));
93347
+ exports.options = void 0;
93348
+
93349
+ /**
93350
+ * Intro.js options default proptypes.
93351
+ * @type {Object}
93352
+ */
93353
+ var options = {
93354
+ hidePrev: true,
93355
+ hideNext: true
93356
+ };
93357
+ exports.options = options;
93358
+
93359
+ /***/ }),
93360
+
93361
+ /***/ 96115:
93362
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
93363
+
93364
+ "use strict";
93365
+
93366
+
93367
+ Object.defineProperty(exports, "__esModule", ({
93368
+ value: true
93369
+ }));
93370
+ exports.options = exports.hintPosition = exports.tooltipPosition = void 0;
93371
+
93372
+ var _propTypes = _interopRequireDefault(__webpack_require__(45697));
93373
+
93374
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
93375
+
93376
+ /**
93377
+ * Intro.js tooltip position proptype.
93378
+ * @type {Function}
93379
+ */
93380
+ var tooltipPosition = _propTypes["default"].oneOf(['top', 'right', 'bottom', 'left', 'bottom-left-aligned', 'bottom-middle-aligned', 'bottom-right-aligned', 'top-left-aligned', 'top-middle-aligned', 'top-right-aligned', 'auto']);
93381
+ /**
93382
+ * Intro.js hint position proptype.
93383
+ * @type {Function}
93384
+ */
93385
+
93386
+
93387
+ exports.tooltipPosition = tooltipPosition;
93388
+
93389
+ var hintPosition = _propTypes["default"].oneOf(['top-middle', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'bottom-middle', 'middle-left', 'middle-right', 'middle-middle']);
93390
+
93391
+ exports.hintPosition = hintPosition;
93392
+
93393
+ var options = _propTypes["default"].shape({
93394
+ nextLabel: _propTypes["default"].string,
93395
+ prevLabel: _propTypes["default"].string,
93396
+ skipLabel: _propTypes["default"].string,
93397
+ doneLabel: _propTypes["default"].string,
93398
+ hidePrev: _propTypes["default"].bool,
93399
+ hideNext: _propTypes["default"].bool,
93400
+ tooltipPosition: tooltipPosition,
93401
+ tooltipClass: _propTypes["default"].string,
93402
+ highlightClass: _propTypes["default"].string,
93403
+ exitOnEsc: _propTypes["default"].bool,
93404
+ exitOnOverlayClick: _propTypes["default"].bool,
93405
+ showStepNumbers: _propTypes["default"].bool,
93406
+ keyboardNavigation: _propTypes["default"].bool,
93407
+ showButtons: _propTypes["default"].bool,
93408
+ showBullets: _propTypes["default"].bool,
93409
+ showProgress: _propTypes["default"].bool,
93410
+ scrollToElement: _propTypes["default"].bool,
93411
+ overlayOpacity: _propTypes["default"].number,
93412
+ scrollPadding: _propTypes["default"].number,
93413
+ positionPrecedence: _propTypes["default"].arrayOf(_propTypes["default"].string),
93414
+ disableInteraction: _propTypes["default"].bool,
93415
+ hintPosition: hintPosition,
93416
+ hintButtonLabel: _propTypes["default"].string,
93417
+ hintAnimation: _propTypes["default"].bool
93418
+ });
93419
+
93420
+ exports.options = options;
93421
+
93422
+ /***/ }),
93423
+
93424
+ /***/ 87762:
93425
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
93426
+
93427
+ "use strict";
93428
+ var __webpack_unused_export__;
93429
+
93430
+
93431
+ __webpack_unused_export__ = ({
93432
+ value: true
93433
+ });
93434
+ Object.defineProperty(exports, "Rg", ({
93435
+ enumerable: true,
93436
+ get: function get() {
93437
+ return _Steps["default"];
93438
+ }
93439
+ }));
93440
+ __webpack_unused_export__ = ({
93441
+ enumerable: true,
93442
+ get: function get() {
93443
+ return _Hints["default"];
93444
+ }
93445
+ });
93446
+
93447
+ var _Steps = _interopRequireDefault(__webpack_require__(38536));
93448
+
93449
+ var _Hints = _interopRequireDefault(__webpack_require__(43390));
93450
+
93451
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
93452
+
93453
+ /***/ }),
93454
+
93455
+ /***/ 34342:
93456
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
93457
+
93458
+ /*!
93459
+ * Intro.js v4.2.2
93460
+ * https://introjs.com
93461
+ *
93462
+ * Copyright (C) 2012-2021 Afshin Mehrabani (@afshinmeh).
93463
+ * https://raw.githubusercontent.com/usablica/intro.js/master/license.md
93464
+ *
93465
+ * Date: Fri, 27 Aug 2021 12:07:05 GMT
93466
+ */
93467
+
93468
+ (function (global, factory) {
93469
+ true ? module.exports = factory() :
93470
+ 0;
93471
+ }(this, (function () { 'use strict';
93472
+
93473
+ function _typeof(obj) {
93474
+ "@babel/helpers - typeof";
93475
+
93476
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
93477
+ _typeof = function (obj) {
93478
+ return typeof obj;
93479
+ };
93480
+ } else {
93481
+ _typeof = function (obj) {
93482
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
93483
+ };
93484
+ }
93485
+
93486
+ return _typeof(obj);
93487
+ }
93488
+
93489
+ /**
93490
+ * Overwrites obj1's values with obj2's and adds obj2's if non existent in obj1
93491
+ * via: http://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically
93492
+ *
93493
+ * @param obj1
93494
+ * @param obj2
93495
+ * @returns obj3 a new object based on obj1 and obj2
93496
+ */
93497
+ function mergeOptions(obj1, obj2) {
93498
+ var obj3 = {};
93499
+ var attrname;
93500
+
93501
+ for (attrname in obj1) {
93502
+ obj3[attrname] = obj1[attrname];
93503
+ }
93504
+
93505
+ for (attrname in obj2) {
93506
+ obj3[attrname] = obj2[attrname];
93507
+ }
93508
+
93509
+ return obj3;
93510
+ }
93511
+
93512
+ /**
93513
+ * Mark any object with an incrementing number
93514
+ * used for keeping track of objects
93515
+ *
93516
+ * @param Object obj Any object or DOM Element
93517
+ * @param String key
93518
+ * @return Object
93519
+ */
93520
+ var stamp = function () {
93521
+ var keys = {};
93522
+ return function stamp(obj) {
93523
+ var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "introjs-stamp";
93524
+ // each group increments from 0
93525
+ keys[key] = keys[key] || 0; // stamp only once per object
93526
+
93527
+ if (obj[key] === undefined) {
93528
+ // increment key for each new object
93529
+ obj[key] = keys[key]++;
93530
+ }
93531
+
93532
+ return obj[key];
93533
+ };
93534
+ }();
93535
+
93536
+ /**
93537
+ * Iterates arrays
93538
+ *
93539
+ * @param {Array} arr
93540
+ * @param {Function} forEachFnc
93541
+ * @param {Function} [completeFnc]
93542
+ * @return {Null}
93543
+ */
93544
+ function forEach(arr, forEachFnc, completeFnc) {
93545
+ // in case arr is an empty query selector node list
93546
+ if (arr) {
93547
+ for (var i = 0, len = arr.length; i < len; i++) {
93548
+ forEachFnc(arr[i], i);
93549
+ }
93550
+ }
93551
+
93552
+ if (typeof completeFnc === "function") {
93553
+ completeFnc();
93554
+ }
93555
+ }
93556
+
93557
+ /**
93558
+ * DOMEvent Handles all DOM events
93559
+ *
93560
+ * methods:
93561
+ *
93562
+ * on - add event handler
93563
+ * off - remove event
93564
+ */
93565
+
93566
+ var DOMEvent = function () {
93567
+ function DOMEvent() {
93568
+ var events_key = "introjs_event";
93569
+ /**
93570
+ * Gets a unique ID for an event listener
93571
+ *
93572
+ * @param obj Object
93573
+ * @param type event type
93574
+ * @param listener Function
93575
+ * @param context Object
93576
+ * @return String
93577
+ */
93578
+
93579
+ this._id = function (obj, type, listener, context) {
93580
+ return type + stamp(listener) + (context ? "_".concat(stamp(context)) : "");
93581
+ };
93582
+ /**
93583
+ * Adds event listener
93584
+ *
93585
+ * @param obj Object obj
93586
+ * @param type String
93587
+ * @param listener Function
93588
+ * @param context Object
93589
+ * @param useCapture Boolean
93590
+ * @return null
93591
+ */
93592
+
93593
+
93594
+ this.on = function (obj, type, listener, context, useCapture) {
93595
+ var id = this._id.apply(this, arguments);
93596
+
93597
+ var handler = function handler(e) {
93598
+ return listener.call(context || obj, e || window.event);
93599
+ };
93600
+
93601
+ if ("addEventListener" in obj) {
93602
+ obj.addEventListener(type, handler, useCapture);
93603
+ } else if ("attachEvent" in obj) {
93604
+ obj.attachEvent("on".concat(type), handler);
93605
+ }
93606
+
93607
+ obj[events_key] = obj[events_key] || {};
93608
+ obj[events_key][id] = handler;
93609
+ };
93610
+ /**
93611
+ * Removes event listener
93612
+ *
93613
+ * @param obj Object
93614
+ * @param type String
93615
+ * @param listener Function
93616
+ * @param context Object
93617
+ * @param useCapture Boolean
93618
+ * @return null
93619
+ */
93620
+
93621
+
93622
+ this.off = function (obj, type, listener, context, useCapture) {
93623
+ var id = this._id.apply(this, arguments);
93624
+
93625
+ var handler = obj[events_key] && obj[events_key][id];
93626
+
93627
+ if (!handler) {
93628
+ return;
93629
+ }
93630
+
93631
+ if ("removeEventListener" in obj) {
93632
+ obj.removeEventListener(type, handler, useCapture);
93633
+ } else if ("detachEvent" in obj) {
93634
+ obj.detachEvent("on".concat(type), handler);
93635
+ }
93636
+
93637
+ obj[events_key][id] = null;
93638
+ };
93639
+ }
93640
+
93641
+ return new DOMEvent();
93642
+ }();
93643
+
93644
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : typeof self !== 'undefined' ? self : {};
93645
+
93646
+ function createCommonjsModule(fn, module) {
93647
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
93648
+ }
93649
+
93650
+ var check = function (it) {
93651
+ return it && it.Math == Math && it;
93652
+ };
93653
+
93654
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
93655
+ var global_1 =
93656
+ // eslint-disable-next-line es/no-global-this -- safe
93657
+ check(typeof globalThis == 'object' && globalThis) ||
93658
+ check(typeof window == 'object' && window) ||
93659
+ // eslint-disable-next-line no-restricted-globals -- safe
93660
+ check(typeof self == 'object' && self) ||
93661
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
93662
+ // eslint-disable-next-line no-new-func -- fallback
93663
+ (function () { return this; })() || Function('return this')();
93664
+
93665
+ var fails = function (exec) {
93666
+ try {
93667
+ return !!exec();
93668
+ } catch (error) {
93669
+ return true;
93670
+ }
93671
+ };
93672
+
93673
+ // Detect IE8's incomplete defineProperty implementation
93674
+ var descriptors = !fails(function () {
93675
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
93676
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
93677
+ });
93678
+
93679
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
93680
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
93681
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
93682
+
93683
+ // Nashorn ~ JDK8 bug
93684
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
93685
+
93686
+ // `Object.prototype.propertyIsEnumerable` method implementation
93687
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
93688
+ var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
93689
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
93690
+ return !!descriptor && descriptor.enumerable;
93691
+ } : $propertyIsEnumerable;
93692
+
93693
+ var objectPropertyIsEnumerable = {
93694
+ f: f$4
93695
+ };
93696
+
93697
+ var createPropertyDescriptor = function (bitmap, value) {
93698
+ return {
93699
+ enumerable: !(bitmap & 1),
93700
+ configurable: !(bitmap & 2),
93701
+ writable: !(bitmap & 4),
93702
+ value: value
93703
+ };
93704
+ };
93705
+
93706
+ var toString = {}.toString;
93707
+
93708
+ var classofRaw = function (it) {
93709
+ return toString.call(it).slice(8, -1);
93710
+ };
93711
+
93712
+ var split = ''.split;
93713
+
93714
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
93715
+ var indexedObject = fails(function () {
93716
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
93717
+ // eslint-disable-next-line no-prototype-builtins -- safe
93718
+ return !Object('z').propertyIsEnumerable(0);
93719
+ }) ? function (it) {
93720
+ return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
93721
+ } : Object;
93722
+
93723
+ // `RequireObjectCoercible` abstract operation
93724
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
93725
+ var requireObjectCoercible = function (it) {
93726
+ if (it == undefined) throw TypeError("Can't call method on " + it);
93727
+ return it;
93728
+ };
93729
+
93730
+ // toObject with fallback for non-array-like ES3 strings
93731
+
93732
+
93733
+
93734
+ var toIndexedObject = function (it) {
93735
+ return indexedObject(requireObjectCoercible(it));
93736
+ };
93737
+
93738
+ var isObject = function (it) {
93739
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
93740
+ };
93741
+
93742
+ var aFunction$1 = function (variable) {
93743
+ return typeof variable == 'function' ? variable : undefined;
93744
+ };
93745
+
93746
+ var getBuiltIn = function (namespace, method) {
93747
+ return arguments.length < 2 ? aFunction$1(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
93748
+ };
93749
+
93750
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
93751
+
93752
+ var process = global_1.process;
93753
+ var Deno = global_1.Deno;
93754
+ var versions = process && process.versions || Deno && Deno.version;
93755
+ var v8 = versions && versions.v8;
93756
+ var match, version$1;
93757
+
93758
+ if (v8) {
93759
+ match = v8.split('.');
93760
+ version$1 = match[0] < 4 ? 1 : match[0] + match[1];
93761
+ } else if (engineUserAgent) {
93762
+ match = engineUserAgent.match(/Edge\/(\d+)/);
93763
+ if (!match || match[1] >= 74) {
93764
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
93765
+ if (match) version$1 = match[1];
93766
+ }
93767
+ }
93768
+
93769
+ var engineV8Version = version$1 && +version$1;
93770
+
93771
+ /* eslint-disable es/no-symbol -- required for testing */
93772
+
93773
+
93774
+
93775
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
93776
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
93777
+ var symbol = Symbol();
93778
+ // Chrome 38 Symbol has incorrect toString conversion
93779
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
93780
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
93781
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
93782
+ !Symbol.sham && engineV8Version && engineV8Version < 41;
93783
+ });
93784
+
93785
+ /* eslint-disable es/no-symbol -- required for testing */
93786
+
93787
+
93788
+ var useSymbolAsUid = nativeSymbol
93789
+ && !Symbol.sham
93790
+ && typeof Symbol.iterator == 'symbol';
93791
+
93792
+ var isSymbol = useSymbolAsUid ? function (it) {
93793
+ return typeof it == 'symbol';
93794
+ } : function (it) {
93795
+ var $Symbol = getBuiltIn('Symbol');
93796
+ return typeof $Symbol == 'function' && Object(it) instanceof $Symbol;
93797
+ };
93798
+
93799
+ // `OrdinaryToPrimitive` abstract operation
93800
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
93801
+ var ordinaryToPrimitive = function (input, pref) {
93802
+ var fn, val;
93803
+ if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
93804
+ if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
93805
+ if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
93806
+ throw TypeError("Can't convert object to primitive value");
93807
+ };
93808
+
93809
+ var setGlobal = function (key, value) {
93810
+ try {
93811
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
93812
+ Object.defineProperty(global_1, key, { value: value, configurable: true, writable: true });
93813
+ } catch (error) {
93814
+ global_1[key] = value;
93815
+ } return value;
93816
+ };
93817
+
93818
+ var SHARED = '__core-js_shared__';
93819
+ var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
93820
+
93821
+ var sharedStore = store$1;
93822
+
93823
+ var shared = createCommonjsModule(function (module) {
93824
+ (module.exports = function (key, value) {
93825
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
93826
+ })('versions', []).push({
93827
+ version: '3.16.1',
93828
+ mode: 'global',
93829
+ copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
93830
+ });
93831
+ });
93832
+
93833
+ // `ToObject` abstract operation
93834
+ // https://tc39.es/ecma262/#sec-toobject
93835
+ var toObject = function (argument) {
93836
+ return Object(requireObjectCoercible(argument));
93837
+ };
93838
+
93839
+ var hasOwnProperty = {}.hasOwnProperty;
93840
+
93841
+ var has$1 = Object.hasOwn || function hasOwn(it, key) {
93842
+ return hasOwnProperty.call(toObject(it), key);
93843
+ };
93844
+
93845
+ var id = 0;
93846
+ var postfix = Math.random();
93847
+
93848
+ var uid = function (key) {
93849
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
93850
+ };
93851
+
93852
+ var WellKnownSymbolsStore = shared('wks');
93853
+ var Symbol$1 = global_1.Symbol;
93854
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
93855
+
93856
+ var wellKnownSymbol = function (name) {
93857
+ if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
93858
+ if (nativeSymbol && has$1(Symbol$1, name)) {
93859
+ WellKnownSymbolsStore[name] = Symbol$1[name];
93860
+ } else {
93861
+ WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
93862
+ }
93863
+ } return WellKnownSymbolsStore[name];
93864
+ };
93865
+
93866
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
93867
+
93868
+ // `ToPrimitive` abstract operation
93869
+ // https://tc39.es/ecma262/#sec-toprimitive
93870
+ var toPrimitive = function (input, pref) {
93871
+ if (!isObject(input) || isSymbol(input)) return input;
93872
+ var exoticToPrim = input[TO_PRIMITIVE];
93873
+ var result;
93874
+ if (exoticToPrim !== undefined) {
93875
+ if (pref === undefined) pref = 'default';
93876
+ result = exoticToPrim.call(input, pref);
93877
+ if (!isObject(result) || isSymbol(result)) return result;
93878
+ throw TypeError("Can't convert object to primitive value");
93879
+ }
93880
+ if (pref === undefined) pref = 'number';
93881
+ return ordinaryToPrimitive(input, pref);
93882
+ };
93883
+
93884
+ // `ToPropertyKey` abstract operation
93885
+ // https://tc39.es/ecma262/#sec-topropertykey
93886
+ var toPropertyKey = function (argument) {
93887
+ var key = toPrimitive(argument, 'string');
93888
+ return isSymbol(key) ? key : String(key);
93889
+ };
93890
+
93891
+ var document$1 = global_1.document;
93892
+ // typeof document.createElement is 'object' in old IE
93893
+ var EXISTS = isObject(document$1) && isObject(document$1.createElement);
93894
+
93895
+ var documentCreateElement = function (it) {
93896
+ return EXISTS ? document$1.createElement(it) : {};
93897
+ };
93898
+
93899
+ // Thank's IE8 for his funny defineProperty
93900
+ var ie8DomDefine = !descriptors && !fails(function () {
93901
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
93902
+ return Object.defineProperty(documentCreateElement('div'), 'a', {
93903
+ get: function () { return 7; }
93904
+ }).a != 7;
93905
+ });
93906
+
93907
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
93908
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
93909
+
93910
+ // `Object.getOwnPropertyDescriptor` method
93911
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
93912
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
93913
+ O = toIndexedObject(O);
93914
+ P = toPropertyKey(P);
93915
+ if (ie8DomDefine) try {
93916
+ return $getOwnPropertyDescriptor(O, P);
93917
+ } catch (error) { /* empty */ }
93918
+ if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
93919
+ };
93920
+
93921
+ var objectGetOwnPropertyDescriptor = {
93922
+ f: f$3
93923
+ };
93924
+
93925
+ var anObject = function (it) {
93926
+ if (!isObject(it)) {
93927
+ throw TypeError(String(it) + ' is not an object');
93928
+ } return it;
93929
+ };
93930
+
93931
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
93932
+ var $defineProperty = Object.defineProperty;
93933
+
93934
+ // `Object.defineProperty` method
93935
+ // https://tc39.es/ecma262/#sec-object.defineproperty
93936
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
93937
+ anObject(O);
93938
+ P = toPropertyKey(P);
93939
+ anObject(Attributes);
93940
+ if (ie8DomDefine) try {
93941
+ return $defineProperty(O, P, Attributes);
93942
+ } catch (error) { /* empty */ }
93943
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
93944
+ if ('value' in Attributes) O[P] = Attributes.value;
93945
+ return O;
93946
+ };
93947
+
93948
+ var objectDefineProperty = {
93949
+ f: f$2
93950
+ };
93951
+
93952
+ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
93953
+ return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
93954
+ } : function (object, key, value) {
93955
+ object[key] = value;
93956
+ return object;
93957
+ };
93958
+
93959
+ var functionToString = Function.toString;
93960
+
93961
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
93962
+ if (typeof sharedStore.inspectSource != 'function') {
93963
+ sharedStore.inspectSource = function (it) {
93964
+ return functionToString.call(it);
93965
+ };
93966
+ }
93967
+
93968
+ var inspectSource = sharedStore.inspectSource;
93969
+
93970
+ var WeakMap$1 = global_1.WeakMap;
93971
+
93972
+ var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
93973
+
93974
+ var keys = shared('keys');
93975
+
93976
+ var sharedKey = function (key) {
93977
+ return keys[key] || (keys[key] = uid(key));
93978
+ };
93979
+
93980
+ var hiddenKeys$1 = {};
93981
+
93982
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
93983
+ var WeakMap = global_1.WeakMap;
93984
+ var set, get, has;
93985
+
93986
+ var enforce = function (it) {
93987
+ return has(it) ? get(it) : set(it, {});
93988
+ };
93989
+
93990
+ var getterFor = function (TYPE) {
93991
+ return function (it) {
93992
+ var state;
93993
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
93994
+ throw TypeError('Incompatible receiver, ' + TYPE + ' required');
93995
+ } return state;
93996
+ };
93997
+ };
93998
+
93999
+ if (nativeWeakMap || sharedStore.state) {
94000
+ var store = sharedStore.state || (sharedStore.state = new WeakMap());
94001
+ var wmget = store.get;
94002
+ var wmhas = store.has;
94003
+ var wmset = store.set;
94004
+ set = function (it, metadata) {
94005
+ if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
94006
+ metadata.facade = it;
94007
+ wmset.call(store, it, metadata);
94008
+ return metadata;
94009
+ };
94010
+ get = function (it) {
94011
+ return wmget.call(store, it) || {};
94012
+ };
94013
+ has = function (it) {
94014
+ return wmhas.call(store, it);
94015
+ };
94016
+ } else {
94017
+ var STATE = sharedKey('state');
94018
+ hiddenKeys$1[STATE] = true;
94019
+ set = function (it, metadata) {
94020
+ if (has$1(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
94021
+ metadata.facade = it;
94022
+ createNonEnumerableProperty(it, STATE, metadata);
94023
+ return metadata;
94024
+ };
94025
+ get = function (it) {
94026
+ return has$1(it, STATE) ? it[STATE] : {};
94027
+ };
94028
+ has = function (it) {
94029
+ return has$1(it, STATE);
94030
+ };
94031
+ }
94032
+
94033
+ var internalState = {
94034
+ set: set,
94035
+ get: get,
94036
+ has: has,
94037
+ enforce: enforce,
94038
+ getterFor: getterFor
94039
+ };
94040
+
94041
+ var redefine = createCommonjsModule(function (module) {
94042
+ var getInternalState = internalState.get;
94043
+ var enforceInternalState = internalState.enforce;
94044
+ var TEMPLATE = String(String).split('String');
94045
+
94046
+ (module.exports = function (O, key, value, options) {
94047
+ var unsafe = options ? !!options.unsafe : false;
94048
+ var simple = options ? !!options.enumerable : false;
94049
+ var noTargetGet = options ? !!options.noTargetGet : false;
94050
+ var state;
94051
+ if (typeof value == 'function') {
94052
+ if (typeof key == 'string' && !has$1(value, 'name')) {
94053
+ createNonEnumerableProperty(value, 'name', key);
94054
+ }
94055
+ state = enforceInternalState(value);
94056
+ if (!state.source) {
94057
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
94058
+ }
94059
+ }
94060
+ if (O === global_1) {
94061
+ if (simple) O[key] = value;
94062
+ else setGlobal(key, value);
94063
+ return;
94064
+ } else if (!unsafe) {
94065
+ delete O[key];
94066
+ } else if (!noTargetGet && O[key]) {
94067
+ simple = true;
94068
+ }
94069
+ if (simple) O[key] = value;
94070
+ else createNonEnumerableProperty(O, key, value);
94071
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
94072
+ })(Function.prototype, 'toString', function toString() {
94073
+ return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
94074
+ });
94075
+ });
94076
+
94077
+ var ceil = Math.ceil;
94078
+ var floor$2 = Math.floor;
94079
+
94080
+ // `ToInteger` abstract operation
94081
+ // https://tc39.es/ecma262/#sec-tointeger
94082
+ var toInteger = function (argument) {
94083
+ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$2 : ceil)(argument);
94084
+ };
94085
+
94086
+ var min$4 = Math.min;
94087
+
94088
+ // `ToLength` abstract operation
94089
+ // https://tc39.es/ecma262/#sec-tolength
94090
+ var toLength = function (argument) {
94091
+ return argument > 0 ? min$4(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
94092
+ };
94093
+
94094
+ var max$3 = Math.max;
94095
+ var min$3 = Math.min;
94096
+
94097
+ // Helper for a popular repeating case of the spec:
94098
+ // Let integer be ? ToInteger(index).
94099
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
94100
+ var toAbsoluteIndex = function (index, length) {
94101
+ var integer = toInteger(index);
94102
+ return integer < 0 ? max$3(integer + length, 0) : min$3(integer, length);
94103
+ };
94104
+
94105
+ // `Array.prototype.{ indexOf, includes }` methods implementation
94106
+ var createMethod$2 = function (IS_INCLUDES) {
94107
+ return function ($this, el, fromIndex) {
94108
+ var O = toIndexedObject($this);
94109
+ var length = toLength(O.length);
94110
+ var index = toAbsoluteIndex(fromIndex, length);
94111
+ var value;
94112
+ // Array#includes uses SameValueZero equality algorithm
94113
+ // eslint-disable-next-line no-self-compare -- NaN check
94114
+ if (IS_INCLUDES && el != el) while (length > index) {
94115
+ value = O[index++];
94116
+ // eslint-disable-next-line no-self-compare -- NaN check
94117
+ if (value != value) return true;
94118
+ // Array#indexOf ignores holes, Array#includes - not
94119
+ } else for (;length > index; index++) {
94120
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
94121
+ } return !IS_INCLUDES && -1;
94122
+ };
94123
+ };
94124
+
94125
+ var arrayIncludes = {
94126
+ // `Array.prototype.includes` method
94127
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
94128
+ includes: createMethod$2(true),
94129
+ // `Array.prototype.indexOf` method
94130
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
94131
+ indexOf: createMethod$2(false)
94132
+ };
94133
+
94134
+ var indexOf = arrayIncludes.indexOf;
94135
+
94136
+
94137
+ var objectKeysInternal = function (object, names) {
94138
+ var O = toIndexedObject(object);
94139
+ var i = 0;
94140
+ var result = [];
94141
+ var key;
94142
+ for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
94143
+ // Don't enum bug & hidden keys
94144
+ while (names.length > i) if (has$1(O, key = names[i++])) {
94145
+ ~indexOf(result, key) || result.push(key);
94146
+ }
94147
+ return result;
94148
+ };
94149
+
94150
+ // IE8- don't enum bug keys
94151
+ var enumBugKeys = [
94152
+ 'constructor',
94153
+ 'hasOwnProperty',
94154
+ 'isPrototypeOf',
94155
+ 'propertyIsEnumerable',
94156
+ 'toLocaleString',
94157
+ 'toString',
94158
+ 'valueOf'
94159
+ ];
94160
+
94161
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
94162
+
94163
+ // `Object.getOwnPropertyNames` method
94164
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
94165
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
94166
+ var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
94167
+ return objectKeysInternal(O, hiddenKeys);
94168
+ };
94169
+
94170
+ var objectGetOwnPropertyNames = {
94171
+ f: f$1
94172
+ };
94173
+
94174
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
94175
+ var f = Object.getOwnPropertySymbols;
94176
+
94177
+ var objectGetOwnPropertySymbols = {
94178
+ f: f
94179
+ };
94180
+
94181
+ // all object keys, includes non-enumerable and symbols
94182
+ var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
94183
+ var keys = objectGetOwnPropertyNames.f(anObject(it));
94184
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
94185
+ return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
94186
+ };
94187
+
94188
+ var copyConstructorProperties = function (target, source) {
94189
+ var keys = ownKeys(source);
94190
+ var defineProperty = objectDefineProperty.f;
94191
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
94192
+ for (var i = 0; i < keys.length; i++) {
94193
+ var key = keys[i];
94194
+ if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
94195
+ }
94196
+ };
94197
+
94198
+ var replacement = /#|\.prototype\./;
94199
+
94200
+ var isForced = function (feature, detection) {
94201
+ var value = data[normalize(feature)];
94202
+ return value == POLYFILL ? true
94203
+ : value == NATIVE ? false
94204
+ : typeof detection == 'function' ? fails(detection)
94205
+ : !!detection;
94206
+ };
94207
+
94208
+ var normalize = isForced.normalize = function (string) {
94209
+ return String(string).replace(replacement, '.').toLowerCase();
94210
+ };
94211
+
94212
+ var data = isForced.data = {};
94213
+ var NATIVE = isForced.NATIVE = 'N';
94214
+ var POLYFILL = isForced.POLYFILL = 'P';
94215
+
94216
+ var isForced_1 = isForced;
94217
+
94218
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
94219
+
94220
+
94221
+
94222
+
94223
+
94224
+
94225
+ /*
94226
+ options.target - name of the target object
94227
+ options.global - target is the global object
94228
+ options.stat - export as static methods of target
94229
+ options.proto - export as prototype methods of target
94230
+ options.real - real prototype method for the `pure` version
94231
+ options.forced - export even if the native feature is available
94232
+ options.bind - bind methods to the target, required for the `pure` version
94233
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
94234
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
94235
+ options.sham - add a flag to not completely full polyfills
94236
+ options.enumerable - export as enumerable property
94237
+ options.noTargetGet - prevent calling a getter on target
94238
+ */
94239
+ var _export = function (options, source) {
94240
+ var TARGET = options.target;
94241
+ var GLOBAL = options.global;
94242
+ var STATIC = options.stat;
94243
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
94244
+ if (GLOBAL) {
94245
+ target = global_1;
94246
+ } else if (STATIC) {
94247
+ target = global_1[TARGET] || setGlobal(TARGET, {});
94248
+ } else {
94249
+ target = (global_1[TARGET] || {}).prototype;
94250
+ }
94251
+ if (target) for (key in source) {
94252
+ sourceProperty = source[key];
94253
+ if (options.noTargetGet) {
94254
+ descriptor = getOwnPropertyDescriptor(target, key);
94255
+ targetProperty = descriptor && descriptor.value;
94256
+ } else targetProperty = target[key];
94257
+ FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
94258
+ // contained in target
94259
+ if (!FORCED && targetProperty !== undefined) {
94260
+ if (typeof sourceProperty === typeof targetProperty) continue;
94261
+ copyConstructorProperties(sourceProperty, targetProperty);
94262
+ }
94263
+ // add a flag to not completely full polyfills
94264
+ if (options.sham || (targetProperty && targetProperty.sham)) {
94265
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
94266
+ }
94267
+ // extend global
94268
+ redefine(target, key, sourceProperty, options);
94269
+ }
94270
+ };
94271
+
94272
+ var toString_1 = function (argument) {
94273
+ if (isSymbol(argument)) throw TypeError('Cannot convert a Symbol value to a string');
94274
+ return String(argument);
94275
+ };
94276
+
94277
+ // `RegExp.prototype.flags` getter implementation
94278
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
94279
+ var regexpFlags = function () {
94280
+ var that = anObject(this);
94281
+ var result = '';
94282
+ if (that.global) result += 'g';
94283
+ if (that.ignoreCase) result += 'i';
94284
+ if (that.multiline) result += 'm';
94285
+ if (that.dotAll) result += 's';
94286
+ if (that.unicode) result += 'u';
94287
+ if (that.sticky) result += 'y';
94288
+ return result;
94289
+ };
94290
+
94291
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
94292
+ var RE = function (s, f) {
94293
+ return RegExp(s, f);
94294
+ };
94295
+
94296
+ var UNSUPPORTED_Y$2 = fails(function () {
94297
+ var re = RE('a', 'y');
94298
+ re.lastIndex = 2;
94299
+ return re.exec('abcd') != null;
94300
+ });
94301
+
94302
+ var BROKEN_CARET = fails(function () {
94303
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
94304
+ var re = RE('^r', 'gy');
94305
+ re.lastIndex = 2;
94306
+ return re.exec('str') != null;
94307
+ });
94308
+
94309
+ var regexpStickyHelpers = {
94310
+ UNSUPPORTED_Y: UNSUPPORTED_Y$2,
94311
+ BROKEN_CARET: BROKEN_CARET
94312
+ };
94313
+
94314
+ // `Object.keys` method
94315
+ // https://tc39.es/ecma262/#sec-object.keys
94316
+ // eslint-disable-next-line es/no-object-keys -- safe
94317
+ var objectKeys = Object.keys || function keys(O) {
94318
+ return objectKeysInternal(O, enumBugKeys);
94319
+ };
94320
+
94321
+ // `Object.defineProperties` method
94322
+ // https://tc39.es/ecma262/#sec-object.defineproperties
94323
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
94324
+ var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
94325
+ anObject(O);
94326
+ var keys = objectKeys(Properties);
94327
+ var length = keys.length;
94328
+ var index = 0;
94329
+ var key;
94330
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
94331
+ return O;
94332
+ };
94333
+
94334
+ var html = getBuiltIn('document', 'documentElement');
94335
+
94336
+ /* global ActiveXObject -- old IE, WSH */
94337
+
94338
+
94339
+
94340
+
94341
+
94342
+
94343
+
94344
+
94345
+ var GT = '>';
94346
+ var LT = '<';
94347
+ var PROTOTYPE = 'prototype';
94348
+ var SCRIPT = 'script';
94349
+ var IE_PROTO = sharedKey('IE_PROTO');
94350
+
94351
+ var EmptyConstructor = function () { /* empty */ };
94352
+
94353
+ var scriptTag = function (content) {
94354
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
94355
+ };
94356
+
94357
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
94358
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
94359
+ activeXDocument.write(scriptTag(''));
94360
+ activeXDocument.close();
94361
+ var temp = activeXDocument.parentWindow.Object;
94362
+ activeXDocument = null; // avoid memory leak
94363
+ return temp;
94364
+ };
94365
+
94366
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
94367
+ var NullProtoObjectViaIFrame = function () {
94368
+ // Thrash, waste and sodomy: IE GC bug
94369
+ var iframe = documentCreateElement('iframe');
94370
+ var JS = 'java' + SCRIPT + ':';
94371
+ var iframeDocument;
94372
+ if (iframe.style) {
94373
+ iframe.style.display = 'none';
94374
+ html.appendChild(iframe);
94375
+ // https://github.com/zloirock/core-js/issues/475
94376
+ iframe.src = String(JS);
94377
+ iframeDocument = iframe.contentWindow.document;
94378
+ iframeDocument.open();
94379
+ iframeDocument.write(scriptTag('document.F=Object'));
94380
+ iframeDocument.close();
94381
+ return iframeDocument.F;
94382
+ }
94383
+ };
94384
+
94385
+ // Check for document.domain and active x support
94386
+ // No need to use active x approach when document.domain is not set
94387
+ // see https://github.com/es-shims/es5-shim/issues/150
94388
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
94389
+ // avoid IE GC bug
94390
+ var activeXDocument;
94391
+ var NullProtoObject = function () {
94392
+ try {
94393
+ activeXDocument = new ActiveXObject('htmlfile');
94394
+ } catch (error) { /* ignore */ }
94395
+ NullProtoObject = document.domain && activeXDocument ?
94396
+ NullProtoObjectViaActiveX(activeXDocument) : // old IE
94397
+ NullProtoObjectViaIFrame() ||
94398
+ NullProtoObjectViaActiveX(activeXDocument); // WSH
94399
+ var length = enumBugKeys.length;
94400
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
94401
+ return NullProtoObject();
94402
+ };
94403
+
94404
+ hiddenKeys$1[IE_PROTO] = true;
94405
+
94406
+ // `Object.create` method
94407
+ // https://tc39.es/ecma262/#sec-object.create
94408
+ var objectCreate = Object.create || function create(O, Properties) {
94409
+ var result;
94410
+ if (O !== null) {
94411
+ EmptyConstructor[PROTOTYPE] = anObject(O);
94412
+ result = new EmptyConstructor();
94413
+ EmptyConstructor[PROTOTYPE] = null;
94414
+ // add "__proto__" for Object.getPrototypeOf polyfill
94415
+ result[IE_PROTO] = O;
94416
+ } else result = NullProtoObject();
94417
+ return Properties === undefined ? result : objectDefineProperties(result, Properties);
94418
+ };
94419
+
94420
+ var regexpUnsupportedDotAll = fails(function () {
94421
+ // babel-minify transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
94422
+ var re = RegExp('.', (typeof '').charAt(0));
94423
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
94424
+ });
94425
+
94426
+ var regexpUnsupportedNcg = fails(function () {
94427
+ // babel-minify transpiles RegExp('.', 'g') -> /./g and it causes SyntaxError
94428
+ var re = RegExp('(?<a>b)', (typeof '').charAt(5));
94429
+ return re.exec('b').groups.a !== 'b' ||
94430
+ 'b'.replace(re, '$<a>c') !== 'bc';
94431
+ });
94432
+
94433
+ /* eslint-disable regexp/no-assertion-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
94434
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
94435
+
94436
+
94437
+
94438
+
94439
+
94440
+ var getInternalState = internalState.get;
94441
+
94442
+
94443
+
94444
+ var nativeExec = RegExp.prototype.exec;
94445
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
94446
+
94447
+ var patchedExec = nativeExec;
94448
+
94449
+ var UPDATES_LAST_INDEX_WRONG = (function () {
94450
+ var re1 = /a/;
94451
+ var re2 = /b*/g;
94452
+ nativeExec.call(re1, 'a');
94453
+ nativeExec.call(re2, 'a');
94454
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
94455
+ })();
94456
+
94457
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
94458
+
94459
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
94460
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
94461
+
94462
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || regexpUnsupportedDotAll || regexpUnsupportedNcg;
94463
+
94464
+ if (PATCH) {
94465
+ // eslint-disable-next-line max-statements -- TODO
94466
+ patchedExec = function exec(string) {
94467
+ var re = this;
94468
+ var state = getInternalState(re);
94469
+ var str = toString_1(string);
94470
+ var raw = state.raw;
94471
+ var result, reCopy, lastIndex, match, i, object, group;
94472
+
94473
+ if (raw) {
94474
+ raw.lastIndex = re.lastIndex;
94475
+ result = patchedExec.call(raw, str);
94476
+ re.lastIndex = raw.lastIndex;
94477
+ return result;
94478
+ }
94479
+
94480
+ var groups = state.groups;
94481
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
94482
+ var flags = regexpFlags.call(re);
94483
+ var source = re.source;
94484
+ var charsAdded = 0;
94485
+ var strCopy = str;
94486
+
94487
+ if (sticky) {
94488
+ flags = flags.replace('y', '');
94489
+ if (flags.indexOf('g') === -1) {
94490
+ flags += 'g';
94491
+ }
94492
+
94493
+ strCopy = str.slice(re.lastIndex);
94494
+ // Support anchored sticky behavior.
94495
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && str.charAt(re.lastIndex - 1) !== '\n')) {
94496
+ source = '(?: ' + source + ')';
94497
+ strCopy = ' ' + strCopy;
94498
+ charsAdded++;
94499
+ }
94500
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
94501
+ // simulate the 'y' flag.
94502
+ reCopy = new RegExp('^(?:' + source + ')', flags);
94503
+ }
94504
+
94505
+ if (NPCG_INCLUDED) {
94506
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
94507
+ }
94508
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
94509
+
94510
+ match = nativeExec.call(sticky ? reCopy : re, strCopy);
94511
+
94512
+ if (sticky) {
94513
+ if (match) {
94514
+ match.input = match.input.slice(charsAdded);
94515
+ match[0] = match[0].slice(charsAdded);
94516
+ match.index = re.lastIndex;
94517
+ re.lastIndex += match[0].length;
94518
+ } else re.lastIndex = 0;
94519
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
94520
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
94521
+ }
94522
+ if (NPCG_INCLUDED && match && match.length > 1) {
94523
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
94524
+ // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
94525
+ nativeReplace.call(match[0], reCopy, function () {
94526
+ for (i = 1; i < arguments.length - 2; i++) {
94527
+ if (arguments[i] === undefined) match[i] = undefined;
94528
+ }
94529
+ });
94530
+ }
94531
+
94532
+ if (match && groups) {
94533
+ match.groups = object = objectCreate(null);
94534
+ for (i = 0; i < groups.length; i++) {
94535
+ group = groups[i];
94536
+ object[group[0]] = match[group[1]];
94537
+ }
94538
+ }
94539
+
94540
+ return match;
94541
+ };
94542
+ }
94543
+
94544
+ var regexpExec = patchedExec;
94545
+
94546
+ // `RegExp.prototype.exec` method
94547
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
94548
+ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
94549
+ exec: regexpExec
94550
+ });
94551
+
94552
+ // TODO: Remove from `core-js@4` since it's moved to entry points
94553
+
94554
+
94555
+
94556
+
94557
+
94558
+
94559
+
94560
+ var SPECIES$4 = wellKnownSymbol('species');
94561
+ var RegExpPrototype$1 = RegExp.prototype;
94562
+
94563
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
94564
+ var SYMBOL = wellKnownSymbol(KEY);
94565
+
94566
+ var DELEGATES_TO_SYMBOL = !fails(function () {
94567
+ // String methods call symbol-named RegEp methods
94568
+ var O = {};
94569
+ O[SYMBOL] = function () { return 7; };
94570
+ return ''[KEY](O) != 7;
94571
+ });
94572
+
94573
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
94574
+ // Symbol-named RegExp methods call .exec
94575
+ var execCalled = false;
94576
+ var re = /a/;
94577
+
94578
+ if (KEY === 'split') {
94579
+ // We can't use real regex here since it causes deoptimization
94580
+ // and serious performance degradation in V8
94581
+ // https://github.com/zloirock/core-js/issues/306
94582
+ re = {};
94583
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
94584
+ // a new one. We need to return the patched regex when creating the new one.
94585
+ re.constructor = {};
94586
+ re.constructor[SPECIES$4] = function () { return re; };
94587
+ re.flags = '';
94588
+ re[SYMBOL] = /./[SYMBOL];
94589
+ }
94590
+
94591
+ re.exec = function () { execCalled = true; return null; };
94592
+
94593
+ re[SYMBOL]('');
94594
+ return !execCalled;
94595
+ });
94596
+
94597
+ if (
94598
+ !DELEGATES_TO_SYMBOL ||
94599
+ !DELEGATES_TO_EXEC ||
94600
+ FORCED
94601
+ ) {
94602
+ var nativeRegExpMethod = /./[SYMBOL];
94603
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
94604
+ var $exec = regexp.exec;
94605
+ if ($exec === regexpExec || $exec === RegExpPrototype$1.exec) {
94606
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
94607
+ // The native String method already delegates to @@method (this
94608
+ // polyfilled function), leasing to infinite recursion.
94609
+ // We avoid it by directly calling the native @@method method.
94610
+ return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
94611
+ }
94612
+ return { done: true, value: nativeMethod.call(str, regexp, arg2) };
94613
+ }
94614
+ return { done: false };
94615
+ });
94616
+
94617
+ redefine(String.prototype, KEY, methods[0]);
94618
+ redefine(RegExpPrototype$1, SYMBOL, methods[1]);
94619
+ }
94620
+
94621
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype$1[SYMBOL], 'sham', true);
94622
+ };
94623
+
94624
+ // `String.prototype.codePointAt` methods implementation
94625
+ var createMethod$1 = function (CONVERT_TO_STRING) {
94626
+ return function ($this, pos) {
94627
+ var S = toString_1(requireObjectCoercible($this));
94628
+ var position = toInteger(pos);
94629
+ var size = S.length;
94630
+ var first, second;
94631
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
94632
+ first = S.charCodeAt(position);
94633
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
94634
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
94635
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
94636
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
94637
+ };
94638
+ };
94639
+
94640
+ var stringMultibyte = {
94641
+ // `String.prototype.codePointAt` method
94642
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
94643
+ codeAt: createMethod$1(false),
94644
+ // `String.prototype.at` method
94645
+ // https://github.com/mathiasbynens/String.prototype.at
94646
+ charAt: createMethod$1(true)
94647
+ };
94648
+
94649
+ var charAt = stringMultibyte.charAt;
94650
+
94651
+ // `AdvanceStringIndex` abstract operation
94652
+ // https://tc39.es/ecma262/#sec-advancestringindex
94653
+ var advanceStringIndex = function (S, index, unicode) {
94654
+ return index + (unicode ? charAt(S, index).length : 1);
94655
+ };
94656
+
94657
+ // `RegExpExec` abstract operation
94658
+ // https://tc39.es/ecma262/#sec-regexpexec
94659
+ var regexpExecAbstract = function (R, S) {
94660
+ var exec = R.exec;
94661
+ if (typeof exec === 'function') {
94662
+ var result = exec.call(R, S);
94663
+ if (typeof result !== 'object') {
94664
+ throw TypeError('RegExp exec method returned something other than an Object or null');
94665
+ }
94666
+ return result;
94667
+ }
94668
+
94669
+ if (classofRaw(R) !== 'RegExp') {
94670
+ throw TypeError('RegExp#exec called on incompatible receiver');
94671
+ }
94672
+
94673
+ return regexpExec.call(R, S);
94674
+ };
94675
+
94676
+ // @@match logic
94677
+ fixRegexpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {
94678
+ return [
94679
+ // `String.prototype.match` method
94680
+ // https://tc39.es/ecma262/#sec-string.prototype.match
94681
+ function match(regexp) {
94682
+ var O = requireObjectCoercible(this);
94683
+ var matcher = regexp == undefined ? undefined : regexp[MATCH];
94684
+ return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](toString_1(O));
94685
+ },
94686
+ // `RegExp.prototype[@@match]` method
94687
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
94688
+ function (string) {
94689
+ var rx = anObject(this);
94690
+ var S = toString_1(string);
94691
+ var res = maybeCallNative(nativeMatch, rx, S);
94692
+
94693
+ if (res.done) return res.value;
94694
+
94695
+ if (!rx.global) return regexpExecAbstract(rx, S);
94696
+
94697
+ var fullUnicode = rx.unicode;
94698
+ rx.lastIndex = 0;
94699
+ var A = [];
94700
+ var n = 0;
94701
+ var result;
94702
+ while ((result = regexpExecAbstract(rx, S)) !== null) {
94703
+ var matchStr = toString_1(result[0]);
94704
+ A[n] = matchStr;
94705
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
94706
+ n++;
94707
+ }
94708
+ return n === 0 ? null : A;
94709
+ }
94710
+ ];
94711
+ });
94712
+
94713
+ // `IsArray` abstract operation
94714
+ // https://tc39.es/ecma262/#sec-isarray
94715
+ // eslint-disable-next-line es/no-array-isarray -- safe
94716
+ var isArray = Array.isArray || function isArray(arg) {
94717
+ return classofRaw(arg) == 'Array';
94718
+ };
94719
+
94720
+ var createProperty = function (object, key, value) {
94721
+ var propertyKey = toPropertyKey(key);
94722
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
94723
+ else object[propertyKey] = value;
94724
+ };
94725
+
94726
+ var SPECIES$3 = wellKnownSymbol('species');
94727
+
94728
+ // a part of `ArraySpeciesCreate` abstract operation
94729
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
94730
+ var arraySpeciesConstructor = function (originalArray) {
94731
+ var C;
94732
+ if (isArray(originalArray)) {
94733
+ C = originalArray.constructor;
94734
+ // cross-realm fallback
94735
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
94736
+ else if (isObject(C)) {
94737
+ C = C[SPECIES$3];
94738
+ if (C === null) C = undefined;
94739
+ }
94740
+ } return C === undefined ? Array : C;
94741
+ };
94742
+
94743
+ // `ArraySpeciesCreate` abstract operation
94744
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
94745
+ var arraySpeciesCreate = function (originalArray, length) {
94746
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
94747
+ };
94748
+
94749
+ var SPECIES$2 = wellKnownSymbol('species');
94750
+
94751
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
94752
+ // We can't use this feature detection in V8 since it causes
94753
+ // deoptimization and serious performance degradation
94754
+ // https://github.com/zloirock/core-js/issues/677
94755
+ return engineV8Version >= 51 || !fails(function () {
94756
+ var array = [];
94757
+ var constructor = array.constructor = {};
94758
+ constructor[SPECIES$2] = function () {
94759
+ return { foo: 1 };
94760
+ };
94761
+ return array[METHOD_NAME](Boolean).foo !== 1;
94762
+ });
94763
+ };
94764
+
94765
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
94766
+ var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF;
94767
+ var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
94768
+
94769
+ // We can't use this feature detection in V8 since it causes
94770
+ // deoptimization and serious performance degradation
94771
+ // https://github.com/zloirock/core-js/issues/679
94772
+ var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
94773
+ var array = [];
94774
+ array[IS_CONCAT_SPREADABLE] = false;
94775
+ return array.concat()[0] !== array;
94776
+ });
94777
+
94778
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
94779
+
94780
+ var isConcatSpreadable = function (O) {
94781
+ if (!isObject(O)) return false;
94782
+ var spreadable = O[IS_CONCAT_SPREADABLE];
94783
+ return spreadable !== undefined ? !!spreadable : isArray(O);
94784
+ };
94785
+
94786
+ var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
94787
+
94788
+ // `Array.prototype.concat` method
94789
+ // https://tc39.es/ecma262/#sec-array.prototype.concat
94790
+ // with adding support of @@isConcatSpreadable and @@species
94791
+ _export({ target: 'Array', proto: true, forced: FORCED$1 }, {
94792
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
94793
+ concat: function concat(arg) {
94794
+ var O = toObject(this);
94795
+ var A = arraySpeciesCreate(O, 0);
94796
+ var n = 0;
94797
+ var i, k, length, len, E;
94798
+ for (i = -1, length = arguments.length; i < length; i++) {
94799
+ E = i === -1 ? O : arguments[i];
94800
+ if (isConcatSpreadable(E)) {
94801
+ len = toLength(E.length);
94802
+ if (n + len > MAX_SAFE_INTEGER$1) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
94803
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
94804
+ } else {
94805
+ if (n >= MAX_SAFE_INTEGER$1) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
94806
+ createProperty(A, n++, E);
94807
+ }
94808
+ }
94809
+ A.length = n;
94810
+ return A;
94811
+ }
94812
+ });
94813
+
94814
+ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
94815
+ var test$1 = {};
94816
+
94817
+ test$1[TO_STRING_TAG$1] = 'z';
94818
+
94819
+ var toStringTagSupport = String(test$1) === '[object z]';
94820
+
94821
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
94822
+ // ES3 wrong here
94823
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
94824
+
94825
+ // fallback for IE11 Script Access Denied error
94826
+ var tryGet = function (it, key) {
94827
+ try {
94828
+ return it[key];
94829
+ } catch (error) { /* empty */ }
94830
+ };
94831
+
94832
+ // getting tag from ES6+ `Object.prototype.toString`
94833
+ var classof = toStringTagSupport ? classofRaw : function (it) {
94834
+ var O, tag, result;
94835
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
94836
+ // @@toStringTag case
94837
+ : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
94838
+ // builtinTag case
94839
+ : CORRECT_ARGUMENTS ? classofRaw(O)
94840
+ // ES3 arguments fallback
94841
+ : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
94842
+ };
94843
+
94844
+ // `Object.prototype.toString` method implementation
94845
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
94846
+ var objectToString = toStringTagSupport ? {}.toString : function toString() {
94847
+ return '[object ' + classof(this) + ']';
94848
+ };
94849
+
94850
+ // `Object.prototype.toString` method
94851
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
94852
+ if (!toStringTagSupport) {
94853
+ redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
94854
+ }
94855
+
94856
+ var TO_STRING = 'toString';
94857
+ var RegExpPrototype = RegExp.prototype;
94858
+ var nativeToString = RegExpPrototype[TO_STRING];
94859
+
94860
+ var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
94861
+ // FF44- RegExp#toString has a wrong name
94862
+ var INCORRECT_NAME = nativeToString.name != TO_STRING;
94863
+
94864
+ // `RegExp.prototype.toString` method
94865
+ // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
94866
+ if (NOT_GENERIC || INCORRECT_NAME) {
94867
+ redefine(RegExp.prototype, TO_STRING, function toString() {
94868
+ var R = anObject(this);
94869
+ var p = toString_1(R.source);
94870
+ var rf = R.flags;
94871
+ var f = toString_1(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? regexpFlags.call(R) : rf);
94872
+ return '/' + p + '/' + f;
94873
+ }, { unsafe: true });
94874
+ }
94875
+
94876
+ var MATCH$1 = wellKnownSymbol('match');
94877
+
94878
+ // `IsRegExp` abstract operation
94879
+ // https://tc39.es/ecma262/#sec-isregexp
94880
+ var isRegexp = function (it) {
94881
+ var isRegExp;
94882
+ return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
94883
+ };
94884
+
94885
+ var aFunction = function (it) {
94886
+ if (typeof it != 'function') {
94887
+ throw TypeError(String(it) + ' is not a function');
94888
+ } return it;
94889
+ };
94890
+
94891
+ var SPECIES$1 = wellKnownSymbol('species');
94892
+
94893
+ // `SpeciesConstructor` abstract operation
94894
+ // https://tc39.es/ecma262/#sec-speciesconstructor
94895
+ var speciesConstructor = function (O, defaultConstructor) {
94896
+ var C = anObject(O).constructor;
94897
+ var S;
94898
+ return C === undefined || (S = anObject(C)[SPECIES$1]) == undefined ? defaultConstructor : aFunction(S);
94899
+ };
94900
+
94901
+ var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
94902
+ var arrayPush = [].push;
94903
+ var min$2 = Math.min;
94904
+ var MAX_UINT32 = 0xFFFFFFFF;
94905
+
94906
+ // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
94907
+ // Weex JS has frozen built-in prototypes, so use try / catch wrapper
94908
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
94909
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
94910
+ var re = /(?:)/;
94911
+ var originalExec = re.exec;
94912
+ re.exec = function () { return originalExec.apply(this, arguments); };
94913
+ var result = 'ab'.split(re);
94914
+ return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
94915
+ });
94916
+
94917
+ // @@split logic
94918
+ fixRegexpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
94919
+ var internalSplit;
94920
+ if (
94921
+ 'abbc'.split(/(b)*/)[1] == 'c' ||
94922
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
94923
+ 'test'.split(/(?:)/, -1).length != 4 ||
94924
+ 'ab'.split(/(?:ab)*/).length != 2 ||
94925
+ '.'.split(/(.?)(.?)/).length != 4 ||
94926
+ // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
94927
+ '.'.split(/()()/).length > 1 ||
94928
+ ''.split(/.?/).length
94929
+ ) {
94930
+ // based on es5-shim implementation, need to rework it
94931
+ internalSplit = function (separator, limit) {
94932
+ var string = toString_1(requireObjectCoercible(this));
94933
+ var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
94934
+ if (lim === 0) return [];
94935
+ if (separator === undefined) return [string];
94936
+ // If `separator` is not a regex, use native split
94937
+ if (!isRegexp(separator)) {
94938
+ return nativeSplit.call(string, separator, lim);
94939
+ }
94940
+ var output = [];
94941
+ var flags = (separator.ignoreCase ? 'i' : '') +
94942
+ (separator.multiline ? 'm' : '') +
94943
+ (separator.unicode ? 'u' : '') +
94944
+ (separator.sticky ? 'y' : '');
94945
+ var lastLastIndex = 0;
94946
+ // Make `global` and avoid `lastIndex` issues by working with a copy
94947
+ var separatorCopy = new RegExp(separator.source, flags + 'g');
94948
+ var match, lastIndex, lastLength;
94949
+ while (match = regexpExec.call(separatorCopy, string)) {
94950
+ lastIndex = separatorCopy.lastIndex;
94951
+ if (lastIndex > lastLastIndex) {
94952
+ output.push(string.slice(lastLastIndex, match.index));
94953
+ if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
94954
+ lastLength = match[0].length;
94955
+ lastLastIndex = lastIndex;
94956
+ if (output.length >= lim) break;
94957
+ }
94958
+ if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
94959
+ }
94960
+ if (lastLastIndex === string.length) {
94961
+ if (lastLength || !separatorCopy.test('')) output.push('');
94962
+ } else output.push(string.slice(lastLastIndex));
94963
+ return output.length > lim ? output.slice(0, lim) : output;
94964
+ };
94965
+ // Chakra, V8
94966
+ } else if ('0'.split(undefined, 0).length) {
94967
+ internalSplit = function (separator, limit) {
94968
+ return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
94969
+ };
94970
+ } else internalSplit = nativeSplit;
94971
+
94972
+ return [
94973
+ // `String.prototype.split` method
94974
+ // https://tc39.es/ecma262/#sec-string.prototype.split
94975
+ function split(separator, limit) {
94976
+ var O = requireObjectCoercible(this);
94977
+ var splitter = separator == undefined ? undefined : separator[SPLIT];
94978
+ return splitter !== undefined
94979
+ ? splitter.call(separator, O, limit)
94980
+ : internalSplit.call(toString_1(O), separator, limit);
94981
+ },
94982
+ // `RegExp.prototype[@@split]` method
94983
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
94984
+ //
94985
+ // NOTE: This cannot be properly polyfilled in engines that don't support
94986
+ // the 'y' flag.
94987
+ function (string, limit) {
94988
+ var rx = anObject(this);
94989
+ var S = toString_1(string);
94990
+ var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
94991
+
94992
+ if (res.done) return res.value;
94993
+
94994
+ var C = speciesConstructor(rx, RegExp);
94995
+
94996
+ var unicodeMatching = rx.unicode;
94997
+ var flags = (rx.ignoreCase ? 'i' : '') +
94998
+ (rx.multiline ? 'm' : '') +
94999
+ (rx.unicode ? 'u' : '') +
95000
+ (UNSUPPORTED_Y ? 'g' : 'y');
95001
+
95002
+ // ^(? + rx + ) is needed, in combination with some S slicing, to
95003
+ // simulate the 'y' flag.
95004
+ var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
95005
+ var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
95006
+ if (lim === 0) return [];
95007
+ if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
95008
+ var p = 0;
95009
+ var q = 0;
95010
+ var A = [];
95011
+ while (q < S.length) {
95012
+ splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
95013
+ var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
95014
+ var e;
95015
+ if (
95016
+ z === null ||
95017
+ (e = min$2(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
95018
+ ) {
95019
+ q = advanceStringIndex(S, q, unicodeMatching);
95020
+ } else {
95021
+ A.push(S.slice(p, q));
95022
+ if (A.length === lim) return A;
95023
+ for (var i = 1; i <= z.length - 1; i++) {
95024
+ A.push(z[i]);
95025
+ if (A.length === lim) return A;
95026
+ }
95027
+ q = p = e;
95028
+ }
95029
+ }
95030
+ A.push(S.slice(p));
95031
+ return A;
95032
+ }
95033
+ ];
95034
+ }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
95035
+
95036
+ /**
95037
+ * Append a class to an element
95038
+ *
95039
+ * @api private
95040
+ * @method _addClass
95041
+ * @param {Object} element
95042
+ * @param {String} className
95043
+ * @returns null
95044
+ */
95045
+
95046
+ function addClass(element, className) {
95047
+ if (element instanceof SVGElement) {
95048
+ // svg
95049
+ var pre = element.getAttribute("class") || "";
95050
+
95051
+ if (!pre.match(className)) {
95052
+ // check if element doesn't already have className
95053
+ element.setAttribute("class", "".concat(pre, " ").concat(className));
95054
+ }
95055
+ } else {
95056
+ if (element.classList !== undefined) {
95057
+ // check for modern classList property
95058
+ var classes = className.split(" ");
95059
+ forEach(classes, function (cls) {
95060
+ element.classList.add(cls);
95061
+ });
95062
+ } else if (!element.className.match(className)) {
95063
+ // check if element doesn't already have className
95064
+ element.className += " ".concat(className);
95065
+ }
95066
+ }
95067
+ }
95068
+
95069
+ /**
95070
+ * Get an element CSS property on the page
95071
+ * Thanks to JavaScript Kit: http://www.javascriptkit.com/dhtmltutors/dhtmlcascade4.shtml
95072
+ *
95073
+ * @api private
95074
+ * @method _getPropValue
95075
+ * @param {Object} element
95076
+ * @param {String} propName
95077
+ * @returns string property value
95078
+ */
95079
+ function getPropValue(element, propName) {
95080
+ var propValue = "";
95081
+
95082
+ if (element.currentStyle) {
95083
+ //IE
95084
+ propValue = element.currentStyle[propName];
95085
+ } else if (document.defaultView && document.defaultView.getComputedStyle) {
95086
+ //Others
95087
+ propValue = document.defaultView.getComputedStyle(element, null).getPropertyValue(propName);
95088
+ } //Prevent exception in IE
95089
+
95090
+
95091
+ if (propValue && propValue.toLowerCase) {
95092
+ return propValue.toLowerCase();
95093
+ } else {
95094
+ return propValue;
95095
+ }
95096
+ }
95097
+
95098
+ /**
95099
+ * To set the show element
95100
+ * This function set a relative (in most cases) position and changes the z-index
95101
+ *
95102
+ * @api private
95103
+ * @method _setShowElement
95104
+ * @param {Object} targetElement
95105
+ */
95106
+
95107
+ function setShowElement(_ref) {
95108
+ var element = _ref.element;
95109
+ addClass(element, "introjs-showElement");
95110
+ var currentElementPosition = getPropValue(element, "position");
95111
+
95112
+ if (currentElementPosition !== "absolute" && currentElementPosition !== "relative" && currentElementPosition !== "sticky" && currentElementPosition !== "fixed") {
95113
+ //change to new intro item
95114
+ addClass(element, "introjs-relativePosition");
95115
+ }
95116
+ }
95117
+
95118
+ /**
95119
+ * Find the nearest scrollable parent
95120
+ * copied from https://stackoverflow.com/questions/35939886/find-first-scrollable-parent
95121
+ *
95122
+ * @param Element element
95123
+ * @return Element
95124
+ */
95125
+ function getScrollParent(element) {
95126
+ var style = window.getComputedStyle(element);
95127
+ var excludeStaticParent = style.position === "absolute";
95128
+ var overflowRegex = /(auto|scroll)/;
95129
+ if (style.position === "fixed") return document.body;
95130
+
95131
+ for (var parent = element; parent = parent.parentElement;) {
95132
+ style = window.getComputedStyle(parent);
95133
+
95134
+ if (excludeStaticParent && style.position === "static") {
95135
+ continue;
95136
+ }
95137
+
95138
+ if (overflowRegex.test(style.overflow + style.overflowY + style.overflowX)) return parent;
95139
+ }
95140
+
95141
+ return document.body;
95142
+ }
95143
+
95144
+ /**
95145
+ * scroll a scrollable element to a child element
95146
+ *
95147
+ * @param {Object} targetElement
95148
+ */
95149
+
95150
+ function scrollParentToElement(targetElement) {
95151
+ var element = targetElement.element;
95152
+ if (!this._options.scrollToElement) return;
95153
+ var parent = getScrollParent(element);
95154
+ if (parent === document.body) return;
95155
+ parent.scrollTop = element.offsetTop - parent.offsetTop;
95156
+ }
95157
+
95158
+ /**
95159
+ * Provides a cross-browser way to get the screen dimensions
95160
+ * via: http://stackoverflow.com/questions/5864467/internet-explorer-innerheight
95161
+ *
95162
+ * @api private
95163
+ * @method _getWinSize
95164
+ * @returns {Object} width and height attributes
95165
+ */
95166
+ function getWinSize() {
95167
+ if (window.innerWidth !== undefined) {
95168
+ return {
95169
+ width: window.innerWidth,
95170
+ height: window.innerHeight
95171
+ };
95172
+ } else {
95173
+ var D = document.documentElement;
95174
+ return {
95175
+ width: D.clientWidth,
95176
+ height: D.clientHeight
95177
+ };
95178
+ }
95179
+ }
95180
+
95181
+ /**
95182
+ * Check to see if the element is in the viewport or not
95183
+ * http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport
95184
+ *
95185
+ * @api private
95186
+ * @method _elementInViewport
95187
+ * @param {Object} el
95188
+ */
95189
+ function elementInViewport(el) {
95190
+ var rect = el.getBoundingClientRect();
95191
+ return rect.top >= 0 && rect.left >= 0 && rect.bottom + 80 <= window.innerHeight && // add 80 to get the text right
95192
+ rect.right <= window.innerWidth;
95193
+ }
95194
+
95195
+ /**
95196
+ * To change the scroll of `window` after highlighting an element
95197
+ *
95198
+ * @api private
95199
+ * @param {String} scrollTo
95200
+ * @param {Object} targetElement
95201
+ * @param {Object} tooltipLayer
95202
+ */
95203
+
95204
+ function scrollTo(scrollTo, _ref, tooltipLayer) {
95205
+ var element = _ref.element;
95206
+ if (scrollTo === "off") return;
95207
+ var rect;
95208
+ if (!this._options.scrollToElement) return;
95209
+
95210
+ if (scrollTo === "tooltip") {
95211
+ rect = tooltipLayer.getBoundingClientRect();
95212
+ } else {
95213
+ rect = element.getBoundingClientRect();
95214
+ }
95215
+
95216
+ if (!elementInViewport(element)) {
95217
+ var winHeight = getWinSize().height;
95218
+ var top = rect.bottom - (rect.bottom - rect.top); // TODO (afshinm): do we need scroll padding now?
95219
+ // I have changed the scroll option and now it scrolls the window to
95220
+ // the center of the target element or tooltip.
95221
+
95222
+ if (top < 0 || element.clientHeight > winHeight) {
95223
+ window.scrollBy(0, rect.top - (winHeight / 2 - rect.height / 2) - this._options.scrollPadding); // 30px padding from edge to look nice
95224
+ //Scroll down
95225
+ } else {
95226
+ window.scrollBy(0, rect.top - (winHeight / 2 - rect.height / 2) + this._options.scrollPadding); // 30px padding from edge to look nice
95227
+ }
95228
+ }
95229
+ }
95230
+
95231
+ /**
95232
+ * Setting anchors to behave like buttons
95233
+ *
95234
+ * @api private
95235
+ * @method _setAnchorAsButton
95236
+ */
95237
+ function setAnchorAsButton(anchor) {
95238
+ anchor.setAttribute("role", "button");
95239
+ anchor.tabIndex = 0;
95240
+ }
95241
+
95242
+ // eslint-disable-next-line es/no-object-assign -- safe
95243
+ var $assign = Object.assign;
95244
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
95245
+ var defineProperty = Object.defineProperty;
95246
+
95247
+ // `Object.assign` method
95248
+ // https://tc39.es/ecma262/#sec-object.assign
95249
+ var objectAssign = !$assign || fails(function () {
95250
+ // should have correct order of operations (Edge bug)
95251
+ if (descriptors && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
95252
+ enumerable: true,
95253
+ get: function () {
95254
+ defineProperty(this, 'b', {
95255
+ value: 3,
95256
+ enumerable: false
95257
+ });
95258
+ }
95259
+ }), { b: 2 })).b !== 1) return true;
95260
+ // should work with symbols and should have deterministic property order (V8 bug)
95261
+ var A = {};
95262
+ var B = {};
95263
+ // eslint-disable-next-line es/no-symbol -- safe
95264
+ var symbol = Symbol();
95265
+ var alphabet = 'abcdefghijklmnopqrst';
95266
+ A[symbol] = 7;
95267
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
95268
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
95269
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
95270
+ var T = toObject(target);
95271
+ var argumentsLength = arguments.length;
95272
+ var index = 1;
95273
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
95274
+ var propertyIsEnumerable = objectPropertyIsEnumerable.f;
95275
+ while (argumentsLength > index) {
95276
+ var S = indexedObject(arguments[index++]);
95277
+ var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
95278
+ var length = keys.length;
95279
+ var j = 0;
95280
+ var key;
95281
+ while (length > j) {
95282
+ key = keys[j++];
95283
+ if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
95284
+ }
95285
+ } return T;
95286
+ } : $assign;
95287
+
95288
+ // `Object.assign` method
95289
+ // https://tc39.es/ecma262/#sec-object.assign
95290
+ // eslint-disable-next-line es/no-object-assign -- required for testing
95291
+ _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
95292
+ assign: objectAssign
95293
+ });
95294
+
95295
+ /**
95296
+ * Checks to see if target element (or parents) position is fixed or not
95297
+ *
95298
+ * @api private
95299
+ * @method _isFixed
95300
+ * @param {Object} element
95301
+ * @returns Boolean
95302
+ */
95303
+
95304
+ function isFixed(element) {
95305
+ var p = element.parentNode;
95306
+
95307
+ if (!p || p.nodeName === "HTML") {
95308
+ return false;
95309
+ }
95310
+
95311
+ if (getPropValue(element, "position") === "fixed") {
95312
+ return true;
95313
+ }
95314
+
95315
+ return isFixed(p);
95316
+ }
95317
+
95318
+ /**
95319
+ * Get an element position on the page relative to another element (or body)
95320
+ * Thanks to `meouw`: http://stackoverflow.com/a/442474/375966
95321
+ *
95322
+ * @api private
95323
+ * @method getOffset
95324
+ * @param {Object} element
95325
+ * @param {Object} relativeEl
95326
+ * @returns Element's position info
95327
+ */
95328
+
95329
+ function getOffset(element, relativeEl) {
95330
+ var body = document.body;
95331
+ var docEl = document.documentElement;
95332
+ var scrollTop = window.pageYOffset || docEl.scrollTop || body.scrollTop;
95333
+ var scrollLeft = window.pageXOffset || docEl.scrollLeft || body.scrollLeft;
95334
+ relativeEl = relativeEl || body;
95335
+ var x = element.getBoundingClientRect();
95336
+ var xr = relativeEl.getBoundingClientRect();
95337
+ var relativeElPosition = getPropValue(relativeEl, "position");
95338
+ var obj = {
95339
+ width: x.width,
95340
+ height: x.height
95341
+ };
95342
+
95343
+ if (relativeEl.tagName.toLowerCase() !== "body" && relativeElPosition === "relative" || relativeElPosition === "sticky") {
95344
+ // when the container of our target element is _not_ body and has either "relative" or "sticky" position, we should not
95345
+ // consider the scroll position but we need to include the relative x/y of the container element
95346
+ return Object.assign(obj, {
95347
+ top: x.top - xr.top,
95348
+ left: x.left - xr.left
95349
+ });
95350
+ } else {
95351
+ if (isFixed(element)) {
95352
+ return Object.assign(obj, {
95353
+ top: x.top,
95354
+ left: x.left
95355
+ });
95356
+ } else {
95357
+ return Object.assign(obj, {
95358
+ top: x.top + scrollTop,
95359
+ left: x.left + scrollLeft
95360
+ });
95361
+ }
95362
+ }
95363
+ }
95364
+
95365
+ var floor$1 = Math.floor;
95366
+ var replace = ''.replace;
95367
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
95368
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
95369
+
95370
+ // `GetSubstitution` abstract operation
95371
+ // https://tc39.es/ecma262/#sec-getsubstitution
95372
+ var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
95373
+ var tailPos = position + matched.length;
95374
+ var m = captures.length;
95375
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
95376
+ if (namedCaptures !== undefined) {
95377
+ namedCaptures = toObject(namedCaptures);
95378
+ symbols = SUBSTITUTION_SYMBOLS;
95379
+ }
95380
+ return replace.call(replacement, symbols, function (match, ch) {
95381
+ var capture;
95382
+ switch (ch.charAt(0)) {
95383
+ case '$': return '$';
95384
+ case '&': return matched;
95385
+ case '`': return str.slice(0, position);
95386
+ case "'": return str.slice(tailPos);
95387
+ case '<':
95388
+ capture = namedCaptures[ch.slice(1, -1)];
95389
+ break;
95390
+ default: // \d\d?
95391
+ var n = +ch;
95392
+ if (n === 0) return match;
95393
+ if (n > m) {
95394
+ var f = floor$1(n / 10);
95395
+ if (f === 0) return match;
95396
+ if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
95397
+ return match;
95398
+ }
95399
+ capture = captures[n - 1];
95400
+ }
95401
+ return capture === undefined ? '' : capture;
95402
+ });
95403
+ };
95404
+
95405
+ var REPLACE = wellKnownSymbol('replace');
95406
+ var max$2 = Math.max;
95407
+ var min$1 = Math.min;
95408
+
95409
+ var maybeToString = function (it) {
95410
+ return it === undefined ? it : String(it);
95411
+ };
95412
+
95413
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
95414
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
95415
+ var REPLACE_KEEPS_$0 = (function () {
95416
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
95417
+ return 'a'.replace(/./, '$0') === '$0';
95418
+ })();
95419
+
95420
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
95421
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
95422
+ if (/./[REPLACE]) {
95423
+ return /./[REPLACE]('a', '$0') === '';
95424
+ }
95425
+ return false;
95426
+ })();
95427
+
95428
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
95429
+ var re = /./;
95430
+ re.exec = function () {
95431
+ var result = [];
95432
+ result.groups = { a: '7' };
95433
+ return result;
95434
+ };
95435
+ return ''.replace(re, '$<a>') !== '7';
95436
+ });
95437
+
95438
+ // @@replace logic
95439
+ fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
95440
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
95441
+
95442
+ return [
95443
+ // `String.prototype.replace` method
95444
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
95445
+ function replace(searchValue, replaceValue) {
95446
+ var O = requireObjectCoercible(this);
95447
+ var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
95448
+ return replacer !== undefined
95449
+ ? replacer.call(searchValue, O, replaceValue)
95450
+ : nativeReplace.call(toString_1(O), searchValue, replaceValue);
95451
+ },
95452
+ // `RegExp.prototype[@@replace]` method
95453
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
95454
+ function (string, replaceValue) {
95455
+ var rx = anObject(this);
95456
+ var S = toString_1(string);
95457
+
95458
+ if (
95459
+ typeof replaceValue === 'string' &&
95460
+ replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1 &&
95461
+ replaceValue.indexOf('$<') === -1
95462
+ ) {
95463
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
95464
+ if (res.done) return res.value;
95465
+ }
95466
+
95467
+ var functionalReplace = typeof replaceValue === 'function';
95468
+ if (!functionalReplace) replaceValue = toString_1(replaceValue);
95469
+
95470
+ var global = rx.global;
95471
+ if (global) {
95472
+ var fullUnicode = rx.unicode;
95473
+ rx.lastIndex = 0;
95474
+ }
95475
+ var results = [];
95476
+ while (true) {
95477
+ var result = regexpExecAbstract(rx, S);
95478
+ if (result === null) break;
95479
+
95480
+ results.push(result);
95481
+ if (!global) break;
95482
+
95483
+ var matchStr = toString_1(result[0]);
95484
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
95485
+ }
95486
+
95487
+ var accumulatedResult = '';
95488
+ var nextSourcePosition = 0;
95489
+ for (var i = 0; i < results.length; i++) {
95490
+ result = results[i];
95491
+
95492
+ var matched = toString_1(result[0]);
95493
+ var position = max$2(min$1(toInteger(result.index), S.length), 0);
95494
+ var captures = [];
95495
+ // NOTE: This is equivalent to
95496
+ // captures = result.slice(1).map(maybeToString)
95497
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
95498
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
95499
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
95500
+ for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
95501
+ var namedCaptures = result.groups;
95502
+ if (functionalReplace) {
95503
+ var replacerArgs = [matched].concat(captures, position, S);
95504
+ if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
95505
+ var replacement = toString_1(replaceValue.apply(undefined, replacerArgs));
95506
+ } else {
95507
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
95508
+ }
95509
+ if (position >= nextSourcePosition) {
95510
+ accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
95511
+ nextSourcePosition = position + matched.length;
95512
+ }
95513
+ }
95514
+ return accumulatedResult + S.slice(nextSourcePosition);
95515
+ }
95516
+ ];
95517
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
95518
+
95519
+ /**
95520
+ * Remove a class from an element
95521
+ *
95522
+ * @api private
95523
+ * @method _removeClass
95524
+ * @param {Object} element
95525
+ * @param {RegExp|String} classNameRegex can be regex or string
95526
+ * @returns null
95527
+ */
95528
+ function removeClass(element, classNameRegex) {
95529
+ if (element instanceof SVGElement) {
95530
+ var pre = element.getAttribute("class") || "";
95531
+ element.setAttribute("class", pre.replace(classNameRegex, "").replace(/^\s+|\s+$/g, ""));
95532
+ } else {
95533
+ element.className = element.className.replace(classNameRegex, "").replace(/^\s+|\s+$/g, "");
95534
+ }
95535
+ }
95536
+
95537
+ /**
95538
+ * Sets the style of an DOM element
95539
+ *
95540
+ * @param {Object} element
95541
+ * @param {Object|string} style
95542
+ * @return null
95543
+ */
95544
+ function setStyle(element, style) {
95545
+ var cssText = "";
95546
+
95547
+ if (element.style.cssText) {
95548
+ cssText += element.style.cssText;
95549
+ }
95550
+
95551
+ if (typeof style === "string") {
95552
+ cssText += style;
95553
+ } else {
95554
+ for (var rule in style) {
95555
+ cssText += "".concat(rule, ":").concat(style[rule], ";");
95556
+ }
95557
+ }
95558
+
95559
+ element.style.cssText = cssText;
95560
+ }
95561
+
95562
+ /**
95563
+ * Update the position of the helper layer on the screen
95564
+ *
95565
+ * @api private
95566
+ * @method _setHelperLayerPosition
95567
+ * @param {Object} helperLayer
95568
+ */
95569
+
95570
+ function setHelperLayerPosition(helperLayer) {
95571
+ if (helperLayer) {
95572
+ //prevent error when `this._currentStep` in undefined
95573
+ if (!this._introItems[this._currentStep]) return;
95574
+ var currentElement = this._introItems[this._currentStep];
95575
+ var elementPosition = getOffset(currentElement.element, this._targetElement);
95576
+ var widthHeightPadding = this._options.helperElementPadding; // If the target element is fixed, the tooltip should be fixed as well.
95577
+ // Otherwise, remove a fixed class that may be left over from the previous
95578
+ // step.
95579
+
95580
+ if (isFixed(currentElement.element)) {
95581
+ addClass(helperLayer, "introjs-fixedTooltip");
95582
+ } else {
95583
+ removeClass(helperLayer, "introjs-fixedTooltip");
95584
+ }
95585
+
95586
+ if (currentElement.position === "floating") {
95587
+ widthHeightPadding = 0;
95588
+ } //set new position to helper layer
95589
+
95590
+
95591
+ setStyle(helperLayer, {
95592
+ width: "".concat(elementPosition.width + widthHeightPadding, "px"),
95593
+ height: "".concat(elementPosition.height + widthHeightPadding, "px"),
95594
+ top: "".concat(elementPosition.top - widthHeightPadding / 2, "px"),
95595
+ left: "".concat(elementPosition.left - widthHeightPadding / 2, "px")
95596
+ });
95597
+ }
95598
+ }
95599
+
95600
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
95601
+ var ArrayPrototype = Array.prototype;
95602
+
95603
+ // Array.prototype[@@unscopables]
95604
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
95605
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
95606
+ objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
95607
+ configurable: true,
95608
+ value: objectCreate(null)
95609
+ });
95610
+ }
95611
+
95612
+ // add a key to Array.prototype[@@unscopables]
95613
+ var addToUnscopables = function (key) {
95614
+ ArrayPrototype[UNSCOPABLES][key] = true;
95615
+ };
95616
+
95617
+ var $includes = arrayIncludes.includes;
95618
+
95619
+
95620
+ // `Array.prototype.includes` method
95621
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
95622
+ _export({ target: 'Array', proto: true }, {
95623
+ includes: function includes(el /* , fromIndex = 0 */) {
95624
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
95625
+ }
95626
+ });
95627
+
95628
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
95629
+ addToUnscopables('includes');
95630
+
95631
+ var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport('slice');
95632
+
95633
+ var SPECIES = wellKnownSymbol('species');
95634
+ var nativeSlice = [].slice;
95635
+ var max$1 = Math.max;
95636
+
95637
+ // `Array.prototype.slice` method
95638
+ // https://tc39.es/ecma262/#sec-array.prototype.slice
95639
+ // fallback for not array-like ES3 strings and DOM objects
95640
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
95641
+ slice: function slice(start, end) {
95642
+ var O = toIndexedObject(this);
95643
+ var length = toLength(O.length);
95644
+ var k = toAbsoluteIndex(start, length);
95645
+ var fin = toAbsoluteIndex(end === undefined ? length : end, length);
95646
+ // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
95647
+ var Constructor, result, n;
95648
+ if (isArray(O)) {
95649
+ Constructor = O.constructor;
95650
+ // cross-realm fallback
95651
+ if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
95652
+ Constructor = undefined;
95653
+ } else if (isObject(Constructor)) {
95654
+ Constructor = Constructor[SPECIES];
95655
+ if (Constructor === null) Constructor = undefined;
95656
+ }
95657
+ if (Constructor === Array || Constructor === undefined) {
95658
+ return nativeSlice.call(O, k, fin);
95659
+ }
95660
+ }
95661
+ result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
95662
+ for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
95663
+ result.length = n;
95664
+ return result;
95665
+ }
95666
+ });
95667
+
95668
+ var notARegexp = function (it) {
95669
+ if (isRegexp(it)) {
95670
+ throw TypeError("The method doesn't accept regular expressions");
95671
+ } return it;
95672
+ };
95673
+
95674
+ var MATCH = wellKnownSymbol('match');
95675
+
95676
+ var correctIsRegexpLogic = function (METHOD_NAME) {
95677
+ var regexp = /./;
95678
+ try {
95679
+ '/./'[METHOD_NAME](regexp);
95680
+ } catch (error1) {
95681
+ try {
95682
+ regexp[MATCH] = false;
95683
+ return '/./'[METHOD_NAME](regexp);
95684
+ } catch (error2) { /* empty */ }
95685
+ } return false;
95686
+ };
95687
+
95688
+ // `String.prototype.includes` method
95689
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
95690
+ _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
95691
+ includes: function includes(searchString /* , position = 0 */) {
95692
+ return !!~toString_1(requireObjectCoercible(this))
95693
+ .indexOf(toString_1(notARegexp(searchString)), arguments.length > 1 ? arguments[1] : undefined);
95694
+ }
95695
+ });
95696
+
95697
+ var arrayMethodIsStrict = function (METHOD_NAME, argument) {
95698
+ var method = [][METHOD_NAME];
95699
+ return !!method && fails(function () {
95700
+ // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
95701
+ method.call(null, argument || function () { throw 1; }, 1);
95702
+ });
95703
+ };
95704
+
95705
+ var nativeJoin = [].join;
95706
+
95707
+ var ES3_STRINGS = indexedObject != Object;
95708
+ var STRICT_METHOD$1 = arrayMethodIsStrict('join', ',');
95709
+
95710
+ // `Array.prototype.join` method
95711
+ // https://tc39.es/ecma262/#sec-array.prototype.join
95712
+ _export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
95713
+ join: function join(separator) {
95714
+ return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
95715
+ }
95716
+ });
95717
+
95718
+ // optional / simple context binding
95719
+ var functionBindContext = function (fn, that, length) {
95720
+ aFunction(fn);
95721
+ if (that === undefined) return fn;
95722
+ switch (length) {
95723
+ case 0: return function () {
95724
+ return fn.call(that);
95725
+ };
95726
+ case 1: return function (a) {
95727
+ return fn.call(that, a);
95728
+ };
95729
+ case 2: return function (a, b) {
95730
+ return fn.call(that, a, b);
95731
+ };
95732
+ case 3: return function (a, b, c) {
95733
+ return fn.call(that, a, b, c);
95734
+ };
95735
+ }
95736
+ return function (/* ...args */) {
95737
+ return fn.apply(that, arguments);
95738
+ };
95739
+ };
95740
+
95741
+ var push = [].push;
95742
+
95743
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
95744
+ var createMethod = function (TYPE) {
95745
+ var IS_MAP = TYPE == 1;
95746
+ var IS_FILTER = TYPE == 2;
95747
+ var IS_SOME = TYPE == 3;
95748
+ var IS_EVERY = TYPE == 4;
95749
+ var IS_FIND_INDEX = TYPE == 6;
95750
+ var IS_FILTER_REJECT = TYPE == 7;
95751
+ var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
95752
+ return function ($this, callbackfn, that, specificCreate) {
95753
+ var O = toObject($this);
95754
+ var self = indexedObject(O);
95755
+ var boundFunction = functionBindContext(callbackfn, that, 3);
95756
+ var length = toLength(self.length);
95757
+ var index = 0;
95758
+ var create = specificCreate || arraySpeciesCreate;
95759
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
95760
+ var value, result;
95761
+ for (;length > index; index++) if (NO_HOLES || index in self) {
95762
+ value = self[index];
95763
+ result = boundFunction(value, index, O);
95764
+ if (TYPE) {
95765
+ if (IS_MAP) target[index] = result; // map
95766
+ else if (result) switch (TYPE) {
95767
+ case 3: return true; // some
95768
+ case 5: return value; // find
95769
+ case 6: return index; // findIndex
95770
+ case 2: push.call(target, value); // filter
95771
+ } else switch (TYPE) {
95772
+ case 4: return false; // every
95773
+ case 7: push.call(target, value); // filterReject
95774
+ }
95775
+ }
95776
+ }
95777
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
95778
+ };
95779
+ };
95780
+
95781
+ var arrayIteration = {
95782
+ // `Array.prototype.forEach` method
95783
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
95784
+ forEach: createMethod(0),
95785
+ // `Array.prototype.map` method
95786
+ // https://tc39.es/ecma262/#sec-array.prototype.map
95787
+ map: createMethod(1),
95788
+ // `Array.prototype.filter` method
95789
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
95790
+ filter: createMethod(2),
95791
+ // `Array.prototype.some` method
95792
+ // https://tc39.es/ecma262/#sec-array.prototype.some
95793
+ some: createMethod(3),
95794
+ // `Array.prototype.every` method
95795
+ // https://tc39.es/ecma262/#sec-array.prototype.every
95796
+ every: createMethod(4),
95797
+ // `Array.prototype.find` method
95798
+ // https://tc39.es/ecma262/#sec-array.prototype.find
95799
+ find: createMethod(5),
95800
+ // `Array.prototype.findIndex` method
95801
+ // https://tc39.es/ecma262/#sec-array.prototype.findIndex
95802
+ findIndex: createMethod(6),
95803
+ // `Array.prototype.filterReject` method
95804
+ // https://github.com/tc39/proposal-array-filtering
95805
+ filterReject: createMethod(7)
95806
+ };
95807
+
95808
+ var $filter = arrayIteration.filter;
95809
+
95810
+
95811
+ var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('filter');
95812
+
95813
+ // `Array.prototype.filter` method
95814
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
95815
+ // with adding support of @@species
95816
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
95817
+ filter: function filter(callbackfn /* , thisArg */) {
95818
+ return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
95819
+ }
95820
+ });
95821
+
95822
+ /**
95823
+ * Set tooltip left so it doesn't go off the right side of the window
95824
+ *
95825
+ * @return boolean true, if tooltipLayerStyleLeft is ok. false, otherwise.
95826
+ */
95827
+ function checkRight(targetOffset, tooltipLayerStyleLeft, tooltipOffset, windowSize, tooltipLayer) {
95828
+ if (targetOffset.left + tooltipLayerStyleLeft + tooltipOffset.width > windowSize.width) {
95829
+ // off the right side of the window
95830
+ tooltipLayer.style.left = "".concat(windowSize.width - tooltipOffset.width - targetOffset.left, "px");
95831
+ return false;
95832
+ }
95833
+
95834
+ tooltipLayer.style.left = "".concat(tooltipLayerStyleLeft, "px");
95835
+ return true;
95836
+ }
95837
+
95838
+ /**
95839
+ * Set tooltip right so it doesn't go off the left side of the window
95840
+ *
95841
+ * @return boolean true, if tooltipLayerStyleRight is ok. false, otherwise.
95842
+ */
95843
+ function checkLeft(targetOffset, tooltipLayerStyleRight, tooltipOffset, tooltipLayer) {
95844
+ if (targetOffset.left + targetOffset.width - tooltipLayerStyleRight - tooltipOffset.width < 0) {
95845
+ // off the left side of the window
95846
+ tooltipLayer.style.left = "".concat(-targetOffset.left, "px");
95847
+ return false;
95848
+ }
95849
+
95850
+ tooltipLayer.style.right = "".concat(tooltipLayerStyleRight, "px");
95851
+ return true;
95852
+ }
95853
+
95854
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
95855
+
95856
+ var max = Math.max;
95857
+ var min = Math.min;
95858
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
95859
+ var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
95860
+
95861
+ // `Array.prototype.splice` method
95862
+ // https://tc39.es/ecma262/#sec-array.prototype.splice
95863
+ // with adding support of @@species
95864
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
95865
+ splice: function splice(start, deleteCount /* , ...items */) {
95866
+ var O = toObject(this);
95867
+ var len = toLength(O.length);
95868
+ var actualStart = toAbsoluteIndex(start, len);
95869
+ var argumentsLength = arguments.length;
95870
+ var insertCount, actualDeleteCount, A, k, from, to;
95871
+ if (argumentsLength === 0) {
95872
+ insertCount = actualDeleteCount = 0;
95873
+ } else if (argumentsLength === 1) {
95874
+ insertCount = 0;
95875
+ actualDeleteCount = len - actualStart;
95876
+ } else {
95877
+ insertCount = argumentsLength - 2;
95878
+ actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
95879
+ }
95880
+ if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
95881
+ throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
95882
+ }
95883
+ A = arraySpeciesCreate(O, actualDeleteCount);
95884
+ for (k = 0; k < actualDeleteCount; k++) {
95885
+ from = actualStart + k;
95886
+ if (from in O) createProperty(A, k, O[from]);
95887
+ }
95888
+ A.length = actualDeleteCount;
95889
+ if (insertCount < actualDeleteCount) {
95890
+ for (k = actualStart; k < len - actualDeleteCount; k++) {
95891
+ from = k + actualDeleteCount;
95892
+ to = k + insertCount;
95893
+ if (from in O) O[to] = O[from];
95894
+ else delete O[to];
95895
+ }
95896
+ for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
95897
+ } else if (insertCount > actualDeleteCount) {
95898
+ for (k = len - actualDeleteCount; k > actualStart; k--) {
95899
+ from = k + actualDeleteCount - 1;
95900
+ to = k + insertCount - 1;
95901
+ if (from in O) O[to] = O[from];
95902
+ else delete O[to];
95903
+ }
95904
+ }
95905
+ for (k = 0; k < insertCount; k++) {
95906
+ O[k + actualStart] = arguments[k + 2];
95907
+ }
95908
+ O.length = len - actualDeleteCount + insertCount;
95909
+ return A;
95910
+ }
95911
+ });
95912
+
95913
+ /**
95914
+ * Remove an entry from a string array if it's there, does nothing if it isn't there.
95915
+ *
95916
+ * @param {Array} stringArray
95917
+ * @param {String} stringToRemove
95918
+ */
95919
+ function removeEntry(stringArray, stringToRemove) {
95920
+ if (stringArray.includes(stringToRemove)) {
95921
+ stringArray.splice(stringArray.indexOf(stringToRemove), 1);
95922
+ }
95923
+ }
95924
+
95925
+ /**
95926
+ * auto-determine alignment
95927
+ * @param {Integer} offsetLeft
95928
+ * @param {Integer} tooltipWidth
95929
+ * @param {Object} windowSize
95930
+ * @param {String} desiredAlignment
95931
+ * @return {String} calculatedAlignment
95932
+ */
95933
+
95934
+ function _determineAutoAlignment(offsetLeft, tooltipWidth, _ref, desiredAlignment) {
95935
+ var width = _ref.width;
95936
+ var halfTooltipWidth = tooltipWidth / 2;
95937
+ var winWidth = Math.min(width, window.screen.width);
95938
+ var possibleAlignments = ["-left-aligned", "-middle-aligned", "-right-aligned"];
95939
+ var calculatedAlignment = ""; // valid left must be at least a tooltipWidth
95940
+ // away from right side
95941
+
95942
+ if (winWidth - offsetLeft < tooltipWidth) {
95943
+ removeEntry(possibleAlignments, "-left-aligned");
95944
+ } // valid middle must be at least half
95945
+ // width away from both sides
95946
+
95947
+
95948
+ if (offsetLeft < halfTooltipWidth || winWidth - offsetLeft < halfTooltipWidth) {
95949
+ removeEntry(possibleAlignments, "-middle-aligned");
95950
+ } // valid right must be at least a tooltipWidth
95951
+ // width away from left side
95952
+
95953
+
95954
+ if (offsetLeft < tooltipWidth) {
95955
+ removeEntry(possibleAlignments, "-right-aligned");
95956
+ }
95957
+
95958
+ if (possibleAlignments.length) {
95959
+ if (possibleAlignments.includes(desiredAlignment)) {
95960
+ // the desired alignment is valid
95961
+ calculatedAlignment = desiredAlignment;
95962
+ } else {
95963
+ // pick the first valid position, in order
95964
+ calculatedAlignment = possibleAlignments[0];
95965
+ }
95966
+ } else {
95967
+ // if screen width is too small
95968
+ // for ANY alignment, middle is
95969
+ // probably the best for visibility
95970
+ calculatedAlignment = "-middle-aligned";
95971
+ }
95972
+
95973
+ return calculatedAlignment;
95974
+ }
95975
+ /**
95976
+ * Determines the position of the tooltip based on the position precedence and availability
95977
+ * of screen space.
95978
+ *
95979
+ * @param {Object} targetElement
95980
+ * @param {Object} tooltipLayer
95981
+ * @param {String} desiredTooltipPosition
95982
+ * @return {String} calculatedPosition
95983
+ */
95984
+
95985
+
95986
+ function _determineAutoPosition(targetElement, tooltipLayer, desiredTooltipPosition) {
95987
+ // Take a clone of position precedence. These will be the available
95988
+ var possiblePositions = this._options.positionPrecedence.slice();
95989
+
95990
+ var windowSize = getWinSize();
95991
+ var tooltipHeight = getOffset(tooltipLayer).height + 10;
95992
+ var tooltipWidth = getOffset(tooltipLayer).width + 20;
95993
+ var targetElementRect = targetElement.getBoundingClientRect(); // If we check all the possible areas, and there are no valid places for the tooltip, the element
95994
+ // must take up most of the screen real estate. Show the tooltip floating in the middle of the screen.
95995
+
95996
+ var calculatedPosition = "floating";
95997
+ /*
95998
+ * auto determine position
95999
+ */
96000
+ // Check for space below
96001
+
96002
+ if (targetElementRect.bottom + tooltipHeight > windowSize.height) {
96003
+ removeEntry(possiblePositions, "bottom");
96004
+ } // Check for space above
96005
+
96006
+
96007
+ if (targetElementRect.top - tooltipHeight < 0) {
96008
+ removeEntry(possiblePositions, "top");
96009
+ } // Check for space to the right
96010
+
96011
+
96012
+ if (targetElementRect.right + tooltipWidth > windowSize.width) {
96013
+ removeEntry(possiblePositions, "right");
96014
+ } // Check for space to the left
96015
+
96016
+
96017
+ if (targetElementRect.left - tooltipWidth < 0) {
96018
+ removeEntry(possiblePositions, "left");
96019
+ } // @var {String} ex: 'right-aligned'
96020
+
96021
+
96022
+ var desiredAlignment = function (pos) {
96023
+ var hyphenIndex = pos.indexOf("-");
96024
+
96025
+ if (hyphenIndex !== -1) {
96026
+ // has alignment
96027
+ return pos.substr(hyphenIndex);
96028
+ }
96029
+
96030
+ return "";
96031
+ }(desiredTooltipPosition || ""); // strip alignment from position
96032
+
96033
+
96034
+ if (desiredTooltipPosition) {
96035
+ // ex: "bottom-right-aligned"
96036
+ // should return 'bottom'
96037
+ desiredTooltipPosition = desiredTooltipPosition.split("-")[0];
96038
+ }
96039
+
96040
+ if (possiblePositions.length) {
96041
+ if (possiblePositions.includes(desiredTooltipPosition)) {
96042
+ // If the requested position is in the list, choose that
96043
+ calculatedPosition = desiredTooltipPosition;
96044
+ } else {
96045
+ // Pick the first valid position, in order
96046
+ calculatedPosition = possiblePositions[0];
96047
+ }
96048
+ } // only top and bottom positions have optional alignments
96049
+
96050
+
96051
+ if (["top", "bottom"].includes(calculatedPosition)) {
96052
+ calculatedPosition += _determineAutoAlignment(targetElementRect.left, tooltipWidth, windowSize, desiredAlignment);
96053
+ }
96054
+
96055
+ return calculatedPosition;
96056
+ }
96057
+ /**
96058
+ * Render tooltip box in the page
96059
+ *
96060
+ * @api private
96061
+ * @method placeTooltip
96062
+ * @param {HTMLElement} targetElement
96063
+ * @param {HTMLElement} tooltipLayer
96064
+ * @param {HTMLElement} arrowLayer
96065
+ * @param {Boolean} hintMode
96066
+ */
96067
+
96068
+
96069
+ function placeTooltip(targetElement, tooltipLayer, arrowLayer, hintMode) {
96070
+ var tooltipCssClass = "";
96071
+ var currentStepObj;
96072
+ var tooltipOffset;
96073
+ var targetOffset;
96074
+ var windowSize;
96075
+ var currentTooltipPosition;
96076
+ hintMode = hintMode || false; //reset the old style
96077
+
96078
+ tooltipLayer.style.top = null;
96079
+ tooltipLayer.style.right = null;
96080
+ tooltipLayer.style.bottom = null;
96081
+ tooltipLayer.style.left = null;
96082
+ tooltipLayer.style.marginLeft = null;
96083
+ tooltipLayer.style.marginTop = null;
96084
+ arrowLayer.style.display = "inherit"; //prevent error when `this._currentStep` is undefined
96085
+
96086
+ if (!this._introItems[this._currentStep]) return; //if we have a custom css class for each step
96087
+
96088
+ currentStepObj = this._introItems[this._currentStep];
96089
+
96090
+ if (typeof currentStepObj.tooltipClass === "string") {
96091
+ tooltipCssClass = currentStepObj.tooltipClass;
96092
+ } else {
96093
+ tooltipCssClass = this._options.tooltipClass;
96094
+ }
96095
+
96096
+ tooltipLayer.className = ["introjs-tooltip", tooltipCssClass].filter(Boolean).join(" ");
96097
+ tooltipLayer.setAttribute("role", "dialog");
96098
+ currentTooltipPosition = this._introItems[this._currentStep].position; // Floating is always valid, no point in calculating
96099
+
96100
+ if (currentTooltipPosition !== "floating" && this._options.autoPosition) {
96101
+ currentTooltipPosition = _determineAutoPosition.call(this, targetElement, tooltipLayer, currentTooltipPosition);
96102
+ }
96103
+
96104
+ var tooltipLayerStyleLeft;
96105
+ targetOffset = getOffset(targetElement);
96106
+ tooltipOffset = getOffset(tooltipLayer);
96107
+ windowSize = getWinSize();
96108
+ addClass(tooltipLayer, "introjs-".concat(currentTooltipPosition));
96109
+
96110
+ switch (currentTooltipPosition) {
96111
+ case "top-right-aligned":
96112
+ arrowLayer.className = "introjs-arrow bottom-right";
96113
+ var tooltipLayerStyleRight = 0;
96114
+ checkLeft(targetOffset, tooltipLayerStyleRight, tooltipOffset, tooltipLayer);
96115
+ tooltipLayer.style.bottom = "".concat(targetOffset.height + 20, "px");
96116
+ break;
96117
+
96118
+ case "top-middle-aligned":
96119
+ arrowLayer.className = "introjs-arrow bottom-middle";
96120
+ var tooltipLayerStyleLeftRight = targetOffset.width / 2 - tooltipOffset.width / 2; // a fix for middle aligned hints
96121
+
96122
+ if (hintMode) {
96123
+ tooltipLayerStyleLeftRight += 5;
96124
+ }
96125
+
96126
+ if (checkLeft(targetOffset, tooltipLayerStyleLeftRight, tooltipOffset, tooltipLayer)) {
96127
+ tooltipLayer.style.right = null;
96128
+ checkRight(targetOffset, tooltipLayerStyleLeftRight, tooltipOffset, windowSize, tooltipLayer);
96129
+ }
96130
+
96131
+ tooltipLayer.style.bottom = "".concat(targetOffset.height + 20, "px");
96132
+ break;
96133
+
96134
+ case "top-left-aligned": // top-left-aligned is the same as the default top
96135
+
96136
+ case "top":
96137
+ arrowLayer.className = "introjs-arrow bottom";
96138
+ tooltipLayerStyleLeft = hintMode ? 0 : 15;
96139
+ checkRight(targetOffset, tooltipLayerStyleLeft, tooltipOffset, windowSize, tooltipLayer);
96140
+ tooltipLayer.style.bottom = "".concat(targetOffset.height + 20, "px");
96141
+ break;
96142
+
96143
+ case "right":
96144
+ tooltipLayer.style.left = "".concat(targetOffset.width + 20, "px");
96145
+
96146
+ if (targetOffset.top + tooltipOffset.height > windowSize.height) {
96147
+ // In this case, right would have fallen below the bottom of the screen.
96148
+ // Modify so that the bottom of the tooltip connects with the target
96149
+ arrowLayer.className = "introjs-arrow left-bottom";
96150
+ tooltipLayer.style.top = "-".concat(tooltipOffset.height - targetOffset.height - 20, "px");
96151
+ } else {
96152
+ arrowLayer.className = "introjs-arrow left";
96153
+ }
96154
+
96155
+ break;
96156
+
96157
+ case "left":
96158
+ if (!hintMode && this._options.showStepNumbers === true) {
96159
+ tooltipLayer.style.top = "15px";
96160
+ }
96161
+
96162
+ if (targetOffset.top + tooltipOffset.height > windowSize.height) {
96163
+ // In this case, left would have fallen below the bottom of the screen.
96164
+ // Modify so that the bottom of the tooltip connects with the target
96165
+ tooltipLayer.style.top = "-".concat(tooltipOffset.height - targetOffset.height - 20, "px");
96166
+ arrowLayer.className = "introjs-arrow right-bottom";
96167
+ } else {
96168
+ arrowLayer.className = "introjs-arrow right";
96169
+ }
96170
+
96171
+ tooltipLayer.style.right = "".concat(targetOffset.width + 20, "px");
96172
+ break;
96173
+
96174
+ case "floating":
96175
+ arrowLayer.style.display = "none"; //we have to adjust the top and left of layer manually for intro items without element
96176
+
96177
+ tooltipLayer.style.left = "50%";
96178
+ tooltipLayer.style.top = "50%";
96179
+ tooltipLayer.style.marginLeft = "-".concat(tooltipOffset.width / 2, "px");
96180
+ tooltipLayer.style.marginTop = "-".concat(tooltipOffset.height / 2, "px");
96181
+ break;
96182
+
96183
+ case "bottom-right-aligned":
96184
+ arrowLayer.className = "introjs-arrow top-right";
96185
+ tooltipLayerStyleRight = 0;
96186
+ checkLeft(targetOffset, tooltipLayerStyleRight, tooltipOffset, tooltipLayer);
96187
+ tooltipLayer.style.top = "".concat(targetOffset.height + 20, "px");
96188
+ break;
96189
+
96190
+ case "bottom-middle-aligned":
96191
+ arrowLayer.className = "introjs-arrow top-middle";
96192
+ tooltipLayerStyleLeftRight = targetOffset.width / 2 - tooltipOffset.width / 2; // a fix for middle aligned hints
96193
+
96194
+ if (hintMode) {
96195
+ tooltipLayerStyleLeftRight += 5;
96196
+ }
96197
+
96198
+ if (checkLeft(targetOffset, tooltipLayerStyleLeftRight, tooltipOffset, tooltipLayer)) {
96199
+ tooltipLayer.style.right = null;
96200
+ checkRight(targetOffset, tooltipLayerStyleLeftRight, tooltipOffset, windowSize, tooltipLayer);
96201
+ }
96202
+
96203
+ tooltipLayer.style.top = "".concat(targetOffset.height + 20, "px");
96204
+ break;
96205
+ // case 'bottom-left-aligned':
96206
+ // Bottom-left-aligned is the same as the default bottom
96207
+ // case 'bottom':
96208
+ // Bottom going to follow the default behavior
96209
+
96210
+ default:
96211
+ arrowLayer.className = "introjs-arrow top";
96212
+ tooltipLayerStyleLeft = 0;
96213
+ checkRight(targetOffset, tooltipLayerStyleLeft, tooltipOffset, windowSize, tooltipLayer);
96214
+ tooltipLayer.style.top = "".concat(targetOffset.height + 20, "px");
96215
+ }
96216
+ }
96217
+
96218
+ /**
96219
+ * To remove all show element(s)
96220
+ *
96221
+ * @api private
96222
+ * @method _removeShowElement
96223
+ */
96224
+
96225
+ function removeShowElement() {
96226
+ var elms = document.querySelectorAll(".introjs-showElement");
96227
+ forEach(elms, function (elm) {
96228
+ removeClass(elm, /introjs-[a-zA-Z]+/g);
96229
+ });
96230
+ }
96231
+
96232
+ function _createElement(tagname, attrs) {
96233
+ var element = document.createElement(tagname);
96234
+ attrs = attrs || {}; // regex for matching attributes that need to be set with setAttribute
96235
+
96236
+ var setAttRegex = /^(?:role|data-|aria-)/;
96237
+
96238
+ for (var k in attrs) {
96239
+ var v = attrs[k];
96240
+
96241
+ if (k === "style") {
96242
+ setStyle(element, v);
96243
+ } else if (k.match(setAttRegex)) {
96244
+ element.setAttribute(k, v);
96245
+ } else {
96246
+ element[k] = v;
96247
+ }
96248
+ }
96249
+
96250
+ return element;
96251
+ }
96252
+
96253
+ /**
96254
+ * Appends `element` to `parentElement`
96255
+ *
96256
+ * @param {Element} parentElement
96257
+ * @param {Element} element
96258
+ * @param {Boolean} [animate=false]
96259
+ */
96260
+
96261
+ function appendChild(parentElement, element, animate) {
96262
+ if (animate) {
96263
+ var existingOpacity = element.style.opacity || "1";
96264
+ setStyle(element, {
96265
+ opacity: "0"
96266
+ });
96267
+ window.setTimeout(function () {
96268
+ setStyle(element, {
96269
+ opacity: existingOpacity
96270
+ });
96271
+ }, 10);
96272
+ }
96273
+
96274
+ parentElement.appendChild(element);
96275
+ }
96276
+
96277
+ /**
96278
+ * Gets the current progress percentage
96279
+ *
96280
+ * @api private
96281
+ * @method _getProgress
96282
+ * @returns current progress percentage
96283
+ */
96284
+
96285
+ function _getProgress() {
96286
+ // Steps are 0 indexed
96287
+ var currentStep = parseInt(this._currentStep + 1, 10);
96288
+ return currentStep / this._introItems.length * 100;
96289
+ }
96290
+ /**
96291
+ * Add disableinteraction layer and adjust the size and position of the layer
96292
+ *
96293
+ * @api private
96294
+ * @method _disableInteraction
96295
+ */
96296
+
96297
+
96298
+ function _disableInteraction() {
96299
+ var disableInteractionLayer = document.querySelector(".introjs-disableInteraction");
96300
+
96301
+ if (disableInteractionLayer === null) {
96302
+ disableInteractionLayer = _createElement("div", {
96303
+ className: "introjs-disableInteraction"
96304
+ });
96305
+
96306
+ this._targetElement.appendChild(disableInteractionLayer);
96307
+ }
96308
+
96309
+ setHelperLayerPosition.call(this, disableInteractionLayer);
96310
+ }
96311
+ /**
96312
+ * Creates the bullets layer
96313
+ * @returns HTMLElement
96314
+ * @private
96315
+ */
96316
+
96317
+
96318
+ function _createBullets(targetElement) {
96319
+ var self = this;
96320
+ var bulletsLayer = _createElement("div", {
96321
+ className: "introjs-bullets"
96322
+ });
96323
+
96324
+ if (this._options.showBullets === false) {
96325
+ bulletsLayer.style.display = "none";
96326
+ }
96327
+
96328
+ var ulContainer = _createElement("ul");
96329
+ ulContainer.setAttribute("role", "tablist");
96330
+
96331
+ var anchorClick = function anchorClick() {
96332
+ self.goToStep(this.getAttribute("data-stepnumber"));
96333
+ };
96334
+
96335
+ forEach(this._introItems, function (_ref, i) {
96336
+ var step = _ref.step;
96337
+ var innerLi = _createElement("li");
96338
+ var anchorLink = _createElement("a");
96339
+ innerLi.setAttribute("role", "presentation");
96340
+ anchorLink.setAttribute("role", "tab");
96341
+ anchorLink.onclick = anchorClick;
96342
+
96343
+ if (i === targetElement.step - 1) {
96344
+ anchorLink.className = "active";
96345
+ }
96346
+
96347
+ setAnchorAsButton(anchorLink);
96348
+ anchorLink.innerHTML = "&nbsp;";
96349
+ anchorLink.setAttribute("data-stepnumber", step);
96350
+ innerLi.appendChild(anchorLink);
96351
+ ulContainer.appendChild(innerLi);
96352
+ });
96353
+ bulletsLayer.appendChild(ulContainer);
96354
+ return bulletsLayer;
96355
+ }
96356
+ /**
96357
+ * Deletes and recreates the bullets layer
96358
+ * @param oldReferenceLayer
96359
+ * @param targetElement
96360
+ * @private
96361
+ */
96362
+
96363
+
96364
+ function _recreateBullets(oldReferenceLayer, targetElement) {
96365
+ if (this._options.showBullets) {
96366
+ var existing = document.querySelector(".introjs-bullets");
96367
+ existing.parentNode.replaceChild(_createBullets.call(this, targetElement), existing);
96368
+ }
96369
+ }
96370
+ /**
96371
+ * Updates the bullets
96372
+ *
96373
+ * @param oldReferenceLayer
96374
+ * @param targetElement
96375
+ */
96376
+
96377
+ function _updateBullets(oldReferenceLayer, targetElement) {
96378
+ if (this._options.showBullets) {
96379
+ oldReferenceLayer.querySelector(".introjs-bullets li > a.active").className = "";
96380
+ oldReferenceLayer.querySelector(".introjs-bullets li > a[data-stepnumber=\"".concat(targetElement.step, "\"]")).className = "active";
96381
+ }
96382
+ }
96383
+ /**
96384
+ * Creates the progress-bar layer and elements
96385
+ * @returns {*}
96386
+ * @private
96387
+ */
96388
+
96389
+
96390
+ function _createProgressBar() {
96391
+ var progressLayer = _createElement("div");
96392
+ progressLayer.className = "introjs-progress";
96393
+
96394
+ if (this._options.showProgress === false) {
96395
+ progressLayer.style.display = "none";
96396
+ }
96397
+
96398
+ var progressBar = _createElement("div", {
96399
+ className: "introjs-progressbar"
96400
+ });
96401
+
96402
+ if (this._options.progressBarAdditionalClass) {
96403
+ progressBar.className += " " + this._options.progressBarAdditionalClass;
96404
+ }
96405
+
96406
+ progressBar.setAttribute("role", "progress");
96407
+ progressBar.setAttribute("aria-valuemin", 0);
96408
+ progressBar.setAttribute("aria-valuemax", 100);
96409
+ progressBar.setAttribute("aria-valuenow", _getProgress.call(this));
96410
+ progressBar.style.cssText = "width:".concat(_getProgress.call(this), "%;");
96411
+ progressLayer.appendChild(progressBar);
96412
+ return progressLayer;
96413
+ }
96414
+ /**
96415
+ * Updates an existing progress bar variables
96416
+ * @param oldReferenceLayer
96417
+ * @private
96418
+ */
96419
+
96420
+
96421
+ function _updateProgressBar(oldReferenceLayer) {
96422
+ oldReferenceLayer.querySelector(".introjs-progress .introjs-progressbar").style.cssText = "width:".concat(_getProgress.call(this), "%;");
96423
+ oldReferenceLayer.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow", _getProgress.call(this));
96424
+ }
96425
+ /**
96426
+ * Show an element on the page
96427
+ *
96428
+ * @api private
96429
+ * @method _showElement
96430
+ * @param {Object} targetElement
96431
+ */
96432
+
96433
+ function _showElement(targetElement) {
96434
+ var _this = this;
96435
+
96436
+ if (typeof this._introChangeCallback !== "undefined") {
96437
+ this._introChangeCallback.call(this, targetElement.element);
96438
+ }
96439
+
96440
+ var self = this;
96441
+ var oldHelperLayer = document.querySelector(".introjs-helperLayer");
96442
+ var oldReferenceLayer = document.querySelector(".introjs-tooltipReferenceLayer");
96443
+ var highlightClass = "introjs-helperLayer";
96444
+ var nextTooltipButton;
96445
+ var prevTooltipButton;
96446
+ var skipTooltipButton; //check for a current step highlight class
96447
+
96448
+ if (typeof targetElement.highlightClass === "string") {
96449
+ highlightClass += " ".concat(targetElement.highlightClass);
96450
+ } //check for options highlight class
96451
+
96452
+
96453
+ if (typeof this._options.highlightClass === "string") {
96454
+ highlightClass += " ".concat(this._options.highlightClass);
96455
+ }
96456
+
96457
+ if (oldHelperLayer !== null && oldReferenceLayer !== null) {
96458
+ var oldHelperNumberLayer = oldReferenceLayer.querySelector(".introjs-helperNumberLayer");
96459
+ var oldtooltipLayer = oldReferenceLayer.querySelector(".introjs-tooltiptext");
96460
+ var oldTooltipTitleLayer = oldReferenceLayer.querySelector(".introjs-tooltip-title");
96461
+ var oldArrowLayer = oldReferenceLayer.querySelector(".introjs-arrow");
96462
+ var oldtooltipContainer = oldReferenceLayer.querySelector(".introjs-tooltip");
96463
+ skipTooltipButton = oldReferenceLayer.querySelector(".introjs-skipbutton");
96464
+ prevTooltipButton = oldReferenceLayer.querySelector(".introjs-prevbutton");
96465
+ nextTooltipButton = oldReferenceLayer.querySelector(".introjs-nextbutton"); //update or reset the helper highlight class
96466
+
96467
+ oldHelperLayer.className = highlightClass; //hide the tooltip
96468
+
96469
+ oldtooltipContainer.style.opacity = 0;
96470
+ oldtooltipContainer.style.display = "none"; // if the target element is within a scrollable element
96471
+
96472
+ scrollParentToElement.call(self, targetElement); // set new position to helper layer
96473
+
96474
+ setHelperLayerPosition.call(self, oldHelperLayer);
96475
+ setHelperLayerPosition.call(self, oldReferenceLayer); //remove old classes if the element still exist
96476
+
96477
+ removeShowElement(); //we should wait until the CSS3 transition is competed (it's 0.3 sec) to prevent incorrect `height` and `width` calculation
96478
+
96479
+ if (self._lastShowElementTimer) {
96480
+ window.clearTimeout(self._lastShowElementTimer);
96481
+ }
96482
+
96483
+ self._lastShowElementTimer = window.setTimeout(function () {
96484
+ // set current step to the label
96485
+ if (oldHelperNumberLayer !== null) {
96486
+ oldHelperNumberLayer.innerHTML = "".concat(targetElement.step, " of ").concat(_this._introItems.length);
96487
+ } // set current tooltip text
96488
+
96489
+
96490
+ oldtooltipLayer.innerHTML = targetElement.intro; // set current tooltip title
96491
+
96492
+ oldTooltipTitleLayer.innerHTML = targetElement.title; //set the tooltip position
96493
+
96494
+ oldtooltipContainer.style.display = "block";
96495
+ placeTooltip.call(self, targetElement.element, oldtooltipContainer, oldArrowLayer); //change active bullet
96496
+
96497
+ _updateBullets.call(self, oldReferenceLayer, targetElement);
96498
+
96499
+ _updateProgressBar.call(self, oldReferenceLayer); //show the tooltip
96500
+
96501
+
96502
+ oldtooltipContainer.style.opacity = 1; //reset button focus
96503
+
96504
+ if (typeof nextTooltipButton !== "undefined" && nextTooltipButton !== null && /introjs-donebutton/gi.test(nextTooltipButton.className)) {
96505
+ // skip button is now "done" button
96506
+ nextTooltipButton.focus();
96507
+ } else if (typeof nextTooltipButton !== "undefined" && nextTooltipButton !== null) {
96508
+ //still in the tour, focus on next
96509
+ nextTooltipButton.focus();
96510
+ } // change the scroll of the window, if needed
96511
+
96512
+
96513
+ scrollTo.call(self, targetElement.scrollTo, targetElement, oldtooltipLayer);
96514
+ }, 350); // end of old element if-else condition
96515
+ } else {
96516
+ var helperLayer = _createElement("div", {
96517
+ className: highlightClass
96518
+ });
96519
+ var referenceLayer = _createElement("div", {
96520
+ className: "introjs-tooltipReferenceLayer"
96521
+ });
96522
+ var arrowLayer = _createElement("div", {
96523
+ className: "introjs-arrow"
96524
+ });
96525
+ var tooltipLayer = _createElement("div", {
96526
+ className: "introjs-tooltip"
96527
+ });
96528
+ var tooltipTextLayer = _createElement("div", {
96529
+ className: "introjs-tooltiptext"
96530
+ });
96531
+ var tooltipHeaderLayer = _createElement("div", {
96532
+ className: "introjs-tooltip-header"
96533
+ });
96534
+ var tooltipTitleLayer = _createElement("h1", {
96535
+ className: "introjs-tooltip-title"
96536
+ });
96537
+ var buttonsLayer = _createElement("div");
96538
+ setStyle(helperLayer, {
96539
+ "box-shadow": "0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(self._options.overlayOpacity.toString(), ") 0 0 0 5000px")
96540
+ }); // target is within a scrollable element
96541
+
96542
+ scrollParentToElement.call(self, targetElement); //set new position to helper layer
96543
+
96544
+ setHelperLayerPosition.call(self, helperLayer);
96545
+ setHelperLayerPosition.call(self, referenceLayer); //add helper layer to target element
96546
+
96547
+ appendChild(this._targetElement, helperLayer, true);
96548
+ appendChild(this._targetElement, referenceLayer);
96549
+ tooltipTextLayer.innerHTML = targetElement.intro;
96550
+ tooltipTitleLayer.innerHTML = targetElement.title;
96551
+ buttonsLayer.className = "introjs-tooltipbuttons";
96552
+
96553
+ if (this._options.showButtons === false) {
96554
+ buttonsLayer.style.display = "none";
96555
+ }
96556
+
96557
+ tooltipHeaderLayer.appendChild(tooltipTitleLayer);
96558
+ tooltipLayer.appendChild(tooltipHeaderLayer);
96559
+ tooltipLayer.appendChild(tooltipTextLayer);
96560
+ tooltipLayer.appendChild(_createBullets.call(this, targetElement));
96561
+ tooltipLayer.appendChild(_createProgressBar.call(this)); // add helper layer number
96562
+
96563
+ var helperNumberLayer = _createElement("div");
96564
+
96565
+ if (this._options.showStepNumbers === true) {
96566
+ helperNumberLayer.className = "introjs-helperNumberLayer";
96567
+ helperNumberLayer.innerHTML = "".concat(targetElement.step, " of ").concat(this._introItems.length);
96568
+ tooltipLayer.appendChild(helperNumberLayer);
96569
+ }
96570
+
96571
+ tooltipLayer.appendChild(arrowLayer);
96572
+ referenceLayer.appendChild(tooltipLayer); //next button
96573
+
96574
+ nextTooltipButton = _createElement("a");
96575
+
96576
+ nextTooltipButton.onclick = function () {
96577
+ if (self._introItems.length - 1 !== self._currentStep) {
96578
+ nextStep.call(self);
96579
+ } else if (/introjs-donebutton/gi.test(nextTooltipButton.className)) {
96580
+ if (typeof self._introCompleteCallback === "function") {
96581
+ self._introCompleteCallback.call(self);
96582
+ }
96583
+
96584
+ exitIntro.call(self, self._targetElement);
96585
+ }
96586
+ };
96587
+
96588
+ setAnchorAsButton(nextTooltipButton);
96589
+ nextTooltipButton.innerHTML = this._options.nextLabel; //previous button
96590
+
96591
+ prevTooltipButton = _createElement("a");
96592
+
96593
+ prevTooltipButton.onclick = function () {
96594
+ if (self._currentStep !== 0) {
96595
+ previousStep.call(self);
96596
+ }
96597
+ };
96598
+
96599
+ setAnchorAsButton(prevTooltipButton);
96600
+ prevTooltipButton.innerHTML = this._options.prevLabel; //skip button
96601
+
96602
+ skipTooltipButton = _createElement("a", {
96603
+ className: "introjs-skipbutton"
96604
+ });
96605
+ setAnchorAsButton(skipTooltipButton);
96606
+ skipTooltipButton.innerHTML = this._options.skipLabel;
96607
+
96608
+ skipTooltipButton.onclick = function () {
96609
+ if (self._introItems.length - 1 === self._currentStep && typeof self._introCompleteCallback === "function") {
96610
+ self._introCompleteCallback.call(self);
96611
+ }
96612
+
96613
+ if (typeof self._introSkipCallback === "function") {
96614
+ self._introSkipCallback.call(self);
96615
+ }
96616
+
96617
+ exitIntro.call(self, self._targetElement);
96618
+ };
96619
+
96620
+ tooltipHeaderLayer.appendChild(skipTooltipButton); //in order to prevent displaying previous button always
96621
+
96622
+ if (this._introItems.length > 1) {
96623
+ buttonsLayer.appendChild(prevTooltipButton);
96624
+ } // we always need the next button because this
96625
+ // button changes to "Done" in the last step of the tour
96626
+
96627
+
96628
+ buttonsLayer.appendChild(nextTooltipButton);
96629
+ tooltipLayer.appendChild(buttonsLayer); //set proper position
96630
+
96631
+ placeTooltip.call(self, targetElement.element, tooltipLayer, arrowLayer); // change the scroll of the window, if needed
96632
+
96633
+ scrollTo.call(this, targetElement.scrollTo, targetElement, tooltipLayer); //end of new element if-else condition
96634
+ } // removing previous disable interaction layer
96635
+
96636
+
96637
+ var disableInteractionLayer = self._targetElement.querySelector(".introjs-disableInteraction");
96638
+
96639
+ if (disableInteractionLayer) {
96640
+ disableInteractionLayer.parentNode.removeChild(disableInteractionLayer);
96641
+ } //disable interaction
96642
+
96643
+
96644
+ if (targetElement.disableInteraction) {
96645
+ _disableInteraction.call(self);
96646
+ } // when it's the first step of tour
96647
+
96648
+
96649
+ if (this._currentStep === 0 && this._introItems.length > 1) {
96650
+ if (typeof nextTooltipButton !== "undefined" && nextTooltipButton !== null) {
96651
+ nextTooltipButton.className = "".concat(this._options.buttonClass, " introjs-nextbutton");
96652
+ nextTooltipButton.innerHTML = this._options.nextLabel;
96653
+ }
96654
+
96655
+ if (this._options.hidePrev === true) {
96656
+ if (typeof prevTooltipButton !== "undefined" && prevTooltipButton !== null) {
96657
+ prevTooltipButton.className = "".concat(this._options.buttonClass, " introjs-prevbutton introjs-hidden");
96658
+ }
96659
+
96660
+ if (typeof nextTooltipButton !== "undefined" && nextTooltipButton !== null) {
96661
+ addClass(nextTooltipButton, "introjs-fullbutton");
96662
+ }
96663
+ } else {
96664
+ if (typeof prevTooltipButton !== "undefined" && prevTooltipButton !== null) {
96665
+ prevTooltipButton.className = "".concat(this._options.buttonClass, " introjs-prevbutton introjs-disabled");
96666
+ }
96667
+ }
96668
+ } else if (this._introItems.length - 1 === this._currentStep || this._introItems.length === 1) {
96669
+ // last step of tour
96670
+ if (typeof prevTooltipButton !== "undefined" && prevTooltipButton !== null) {
96671
+ prevTooltipButton.className = "".concat(this._options.buttonClass, " introjs-prevbutton");
96672
+ }
96673
+
96674
+ if (this._options.hideNext === true) {
96675
+ if (typeof nextTooltipButton !== "undefined" && nextTooltipButton !== null) {
96676
+ nextTooltipButton.className = "".concat(this._options.buttonClass, " introjs-nextbutton introjs-hidden");
96677
+ }
96678
+
96679
+ if (typeof prevTooltipButton !== "undefined" && prevTooltipButton !== null) {
96680
+ addClass(prevTooltipButton, "introjs-fullbutton");
96681
+ }
96682
+ } else {
96683
+ if (typeof nextTooltipButton !== "undefined" && nextTooltipButton !== null) {
96684
+ if (this._options.nextToDone === true) {
96685
+ nextTooltipButton.innerHTML = this._options.doneLabel;
96686
+ addClass(nextTooltipButton, "".concat(this._options.buttonClass, " introjs-nextbutton introjs-donebutton"));
96687
+ } else {
96688
+ nextTooltipButton.className = "".concat(this._options.buttonClass, " introjs-nextbutton introjs-disabled");
96689
+ }
96690
+ }
96691
+ }
96692
+ } else {
96693
+ // steps between start and end
96694
+ if (typeof prevTooltipButton !== "undefined" && prevTooltipButton !== null) {
96695
+ prevTooltipButton.className = "".concat(this._options.buttonClass, " introjs-prevbutton");
96696
+ }
96697
+
96698
+ if (typeof nextTooltipButton !== "undefined" && nextTooltipButton !== null) {
96699
+ nextTooltipButton.className = "".concat(this._options.buttonClass, " introjs-nextbutton");
96700
+ nextTooltipButton.innerHTML = this._options.nextLabel;
96701
+ }
96702
+ }
96703
+
96704
+ if (typeof prevTooltipButton !== "undefined" && prevTooltipButton !== null) {
96705
+ prevTooltipButton.setAttribute("role", "button");
96706
+ }
96707
+
96708
+ if (typeof nextTooltipButton !== "undefined" && nextTooltipButton !== null) {
96709
+ nextTooltipButton.setAttribute("role", "button");
96710
+ }
96711
+
96712
+ if (typeof skipTooltipButton !== "undefined" && skipTooltipButton !== null) {
96713
+ skipTooltipButton.setAttribute("role", "button");
96714
+ } //Set focus on "next" button, so that hitting Enter always moves you onto the next step
96715
+
96716
+
96717
+ if (typeof nextTooltipButton !== "undefined" && nextTooltipButton !== null) {
96718
+ nextTooltipButton.focus();
96719
+ }
96720
+
96721
+ setShowElement(targetElement);
96722
+
96723
+ if (typeof this._introAfterChangeCallback !== "undefined") {
96724
+ this._introAfterChangeCallback.call(this, targetElement.element);
96725
+ }
96726
+ }
96727
+
96728
+ /**
96729
+ * Go to specific step of introduction
96730
+ *
96731
+ * @api private
96732
+ * @method _goToStep
96733
+ */
96734
+
96735
+ function goToStep(step) {
96736
+ //because steps starts with zero
96737
+ this._currentStep = step - 2;
96738
+
96739
+ if (typeof this._introItems !== "undefined") {
96740
+ nextStep.call(this);
96741
+ }
96742
+ }
96743
+ /**
96744
+ * Go to the specific step of introduction with the explicit [data-step] number
96745
+ *
96746
+ * @api private
96747
+ * @method _goToStepNumber
96748
+ */
96749
+
96750
+ function goToStepNumber(step) {
96751
+ this._currentStepNumber = step;
96752
+
96753
+ if (typeof this._introItems !== "undefined") {
96754
+ nextStep.call(this);
96755
+ }
96756
+ }
96757
+ /**
96758
+ * Go to next step on intro
96759
+ *
96760
+ * @api private
96761
+ * @method _nextStep
96762
+ */
96763
+
96764
+ function nextStep() {
96765
+ var _this = this;
96766
+
96767
+ this._direction = "forward";
96768
+
96769
+ if (typeof this._currentStepNumber !== "undefined") {
96770
+ forEach(this._introItems, function (_ref, i) {
96771
+ var step = _ref.step;
96772
+
96773
+ if (step === _this._currentStepNumber) {
96774
+ _this._currentStep = i - 1;
96775
+ _this._currentStepNumber = undefined;
96776
+ }
96777
+ });
96778
+ }
96779
+
96780
+ if (typeof this._currentStep === "undefined") {
96781
+ this._currentStep = 0;
96782
+ } else {
96783
+ ++this._currentStep;
96784
+ }
96785
+
96786
+ var nextStep = this._introItems[this._currentStep];
96787
+ var continueStep = true;
96788
+
96789
+ if (typeof this._introBeforeChangeCallback !== "undefined") {
96790
+ continueStep = this._introBeforeChangeCallback.call(this, nextStep && nextStep.element);
96791
+ } // if `onbeforechange` returned `false`, stop displaying the element
96792
+
96793
+
96794
+ if (continueStep === false) {
96795
+ --this._currentStep;
96796
+ return false;
96797
+ }
96798
+
96799
+ if (this._introItems.length <= this._currentStep) {
96800
+ //end of the intro
96801
+ //check if any callback is defined
96802
+ if (typeof this._introCompleteCallback === "function") {
96803
+ this._introCompleteCallback.call(this);
96804
+ }
96805
+
96806
+ exitIntro.call(this, this._targetElement);
96807
+ return;
96808
+ }
96809
+
96810
+ _showElement.call(this, nextStep);
96811
+ }
96812
+ /**
96813
+ * Go to previous step on intro
96814
+ *
96815
+ * @api private
96816
+ * @method _previousStep
96817
+ */
96818
+
96819
+ function previousStep() {
96820
+ this._direction = "backward";
96821
+
96822
+ if (this._currentStep === 0) {
96823
+ return false;
96824
+ }
96825
+
96826
+ --this._currentStep;
96827
+ var nextStep = this._introItems[this._currentStep];
96828
+ var continueStep = true;
96829
+
96830
+ if (typeof this._introBeforeChangeCallback !== "undefined") {
96831
+ continueStep = this._introBeforeChangeCallback.call(this, nextStep && nextStep.element);
96832
+ } // if `onbeforechange` returned `false`, stop displaying the element
96833
+
96834
+
96835
+ if (continueStep === false) {
96836
+ ++this._currentStep;
96837
+ return false;
96838
+ }
96839
+
96840
+ _showElement.call(this, nextStep);
96841
+ }
96842
+ /**
96843
+ * Returns the current step of the intro
96844
+ *
96845
+ * @returns {number | boolean}
96846
+ */
96847
+
96848
+ function currentStep() {
96849
+ return this._currentStep;
96850
+ }
96851
+
96852
+ /**
96853
+ * on keyCode:
96854
+ * https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
96855
+ * This feature has been removed from the Web standards.
96856
+ * Though some browsers may still support it, it is in
96857
+ * the process of being dropped.
96858
+ * Instead, you should use KeyboardEvent.code,
96859
+ * if it's implemented.
96860
+ *
96861
+ * jQuery's approach is to test for
96862
+ * (1) e.which, then
96863
+ * (2) e.charCode, then
96864
+ * (3) e.keyCode
96865
+ * https://github.com/jquery/jquery/blob/a6b0705294d336ae2f63f7276de0da1195495363/src/event.js#L638
96866
+ *
96867
+ * @param type var
96868
+ * @return type
96869
+ */
96870
+
96871
+ function onKeyDown(e) {
96872
+ var code = e.code === undefined ? e.which : e.code; // if e.which is null
96873
+
96874
+ if (code === null) {
96875
+ code = e.charCode === null ? e.keyCode : e.charCode;
96876
+ }
96877
+
96878
+ if ((code === "Escape" || code === 27) && this._options.exitOnEsc === true) {
96879
+ //escape key pressed, exit the intro
96880
+ //check if exit callback is defined
96881
+ exitIntro.call(this, this._targetElement);
96882
+ } else if (code === "ArrowLeft" || code === 37) {
96883
+ //left arrow
96884
+ previousStep.call(this);
96885
+ } else if (code === "ArrowRight" || code === 39) {
96886
+ //right arrow
96887
+ nextStep.call(this);
96888
+ } else if (code === "Enter" || code === "NumpadEnter" || code === 13) {
96889
+ //srcElement === ie
96890
+ var target = e.target || e.srcElement;
96891
+
96892
+ if (target && target.className.match("introjs-prevbutton")) {
96893
+ //user hit enter while focusing on previous button
96894
+ previousStep.call(this);
96895
+ } else if (target && target.className.match("introjs-skipbutton")) {
96896
+ //user hit enter while focusing on skip button
96897
+ if (this._introItems.length - 1 === this._currentStep && typeof this._introCompleteCallback === "function") {
96898
+ this._introCompleteCallback.call(this);
96899
+ }
96900
+
96901
+ exitIntro.call(this, this._targetElement);
96902
+ } else if (target && target.getAttribute("data-stepnumber")) {
96903
+ // user hit enter while focusing on step bullet
96904
+ target.click();
96905
+ } else {
96906
+ //default behavior for responding to enter
96907
+ nextStep.call(this);
96908
+ } //prevent default behaviour on hitting Enter, to prevent steps being skipped in some browsers
96909
+
96910
+
96911
+ if (e.preventDefault) {
96912
+ e.preventDefault();
96913
+ } else {
96914
+ e.returnValue = false;
96915
+ }
96916
+ }
96917
+ }
96918
+
96919
+ /*
96920
+ * makes a copy of the object
96921
+ * @api private
96922
+ * @method _cloneObject
96923
+ */
96924
+ function cloneObject(object) {
96925
+ if (object === null || _typeof(object) !== "object" || typeof object.nodeType !== "undefined") {
96926
+ return object;
96927
+ }
96928
+
96929
+ var temp = {};
96930
+
96931
+ for (var key in object) {
96932
+ if (typeof window.jQuery !== "undefined" && object[key] instanceof window.jQuery) {
96933
+ temp[key] = object[key];
96934
+ } else {
96935
+ temp[key] = cloneObject(object[key]);
96936
+ }
96937
+ }
96938
+
96939
+ return temp;
96940
+ }
96941
+
96942
+ /**
96943
+ * Get a queryselector within the hint wrapper
96944
+ *
96945
+ * @param {String} selector
96946
+ * @return {NodeList|Array}
96947
+ */
96948
+
96949
+ function hintQuerySelectorAll(selector) {
96950
+ var hintsWrapper = document.querySelector(".introjs-hints");
96951
+ return hintsWrapper ? hintsWrapper.querySelectorAll(selector) : [];
96952
+ }
96953
+ /**
96954
+ * Hide a hint
96955
+ *
96956
+ * @api private
96957
+ * @method hideHint
96958
+ */
96959
+
96960
+ function hideHint(stepId) {
96961
+ var hint = hintQuerySelectorAll(".introjs-hint[data-step=\"".concat(stepId, "\"]"))[0];
96962
+ removeHintTooltip.call(this);
96963
+
96964
+ if (hint) {
96965
+ addClass(hint, "introjs-hidehint");
96966
+ } // call the callback function (if any)
96967
+
96968
+
96969
+ if (typeof this._hintCloseCallback !== "undefined") {
96970
+ this._hintCloseCallback.call(this, stepId);
96971
+ }
96972
+ }
96973
+ /**
96974
+ * Hide all hints
96975
+ *
96976
+ * @api private
96977
+ * @method hideHints
96978
+ */
96979
+
96980
+ function hideHints() {
96981
+ var _this = this;
96982
+
96983
+ var hints = hintQuerySelectorAll(".introjs-hint");
96984
+ forEach(hints, function (hint) {
96985
+ hideHint.call(_this, hint.getAttribute("data-step"));
96986
+ });
96987
+ }
96988
+ /**
96989
+ * Show all hints
96990
+ *
96991
+ * @api private
96992
+ * @method _showHints
96993
+ */
96994
+
96995
+ function showHints() {
96996
+ var _this2 = this;
96997
+
96998
+ var hints = hintQuerySelectorAll(".introjs-hint");
96999
+
97000
+ if (hints && hints.length) {
97001
+ forEach(hints, function (hint) {
97002
+ showHint.call(_this2, hint.getAttribute("data-step"));
97003
+ });
97004
+ } else {
97005
+ populateHints.call(this, this._targetElement);
97006
+ }
97007
+ }
97008
+ /**
97009
+ * Show a hint
97010
+ *
97011
+ * @api private
97012
+ * @method showHint
97013
+ */
97014
+
97015
+ function showHint(stepId) {
97016
+ var hint = hintQuerySelectorAll(".introjs-hint[data-step=\"".concat(stepId, "\"]"))[0];
97017
+
97018
+ if (hint) {
97019
+ removeClass(hint, /introjs-hidehint/g);
97020
+ }
97021
+ }
97022
+ /**
97023
+ * Removes all hint elements on the page
97024
+ * Useful when you want to destroy the elements and add them again (e.g. a modal or popup)
97025
+ *
97026
+ * @api private
97027
+ * @method removeHints
97028
+ */
97029
+
97030
+ function removeHints() {
97031
+ var _this3 = this;
97032
+
97033
+ var hints = hintQuerySelectorAll(".introjs-hint");
97034
+ forEach(hints, function (hint) {
97035
+ removeHint.call(_this3, hint.getAttribute("data-step"));
97036
+ });
97037
+ }
97038
+ /**
97039
+ * Remove one single hint element from the page
97040
+ * Useful when you want to destroy the element and add them again (e.g. a modal or popup)
97041
+ * Use removeHints if you want to remove all elements.
97042
+ *
97043
+ * @api private
97044
+ * @method removeHint
97045
+ */
97046
+
97047
+ function removeHint(stepId) {
97048
+ var hint = hintQuerySelectorAll(".introjs-hint[data-step=\"".concat(stepId, "\"]"))[0];
97049
+
97050
+ if (hint) {
97051
+ hint.parentNode.removeChild(hint);
97052
+ }
97053
+ }
97054
+ /**
97055
+ * Add all available hints to the page
97056
+ *
97057
+ * @api private
97058
+ * @method addHints
97059
+ */
97060
+
97061
+ function addHints() {
97062
+ var _this4 = this;
97063
+
97064
+ var self = this;
97065
+ var hintsWrapper = document.querySelector(".introjs-hints");
97066
+
97067
+ if (hintsWrapper === null) {
97068
+ hintsWrapper = _createElement("div", {
97069
+ className: "introjs-hints"
97070
+ });
97071
+ }
97072
+ /**
97073
+ * Returns an event handler unique to the hint iteration
97074
+ *
97075
+ * @param {Integer} i
97076
+ * @return {Function}
97077
+ */
97078
+
97079
+
97080
+ var getHintClick = function getHintClick(i) {
97081
+ return function (e) {
97082
+ var evt = e ? e : window.event;
97083
+
97084
+ if (evt.stopPropagation) {
97085
+ evt.stopPropagation();
97086
+ }
97087
+
97088
+ if (evt.cancelBubble !== null) {
97089
+ evt.cancelBubble = true;
97090
+ }
97091
+
97092
+ showHintDialog.call(self, i);
97093
+ };
97094
+ };
97095
+
97096
+ forEach(this._introItems, function (item, i) {
97097
+ // avoid append a hint twice
97098
+ if (document.querySelector(".introjs-hint[data-step=\"".concat(i, "\"]"))) {
97099
+ return;
97100
+ }
97101
+
97102
+ var hint = _createElement("a", {
97103
+ className: "introjs-hint"
97104
+ });
97105
+ setAnchorAsButton(hint);
97106
+ hint.onclick = getHintClick(i);
97107
+
97108
+ if (!item.hintAnimation) {
97109
+ addClass(hint, "introjs-hint-no-anim");
97110
+ } // hint's position should be fixed if the target element's position is fixed
97111
+
97112
+
97113
+ if (isFixed(item.element)) {
97114
+ addClass(hint, "introjs-fixedhint");
97115
+ }
97116
+
97117
+ var hintDot = _createElement("div", {
97118
+ className: "introjs-hint-dot"
97119
+ });
97120
+ var hintPulse = _createElement("div", {
97121
+ className: "introjs-hint-pulse"
97122
+ });
97123
+ hint.appendChild(hintDot);
97124
+ hint.appendChild(hintPulse);
97125
+ hint.setAttribute("data-step", i); // we swap the hint element with target element
97126
+ // because _setHelperLayerPosition uses `element` property
97127
+
97128
+ item.targetElement = item.element;
97129
+ item.element = hint; // align the hint position
97130
+
97131
+ alignHintPosition.call(_this4, item.hintPosition, hint, item.targetElement);
97132
+ hintsWrapper.appendChild(hint);
97133
+ }); // adding the hints wrapper
97134
+
97135
+ document.body.appendChild(hintsWrapper); // call the callback function (if any)
97136
+
97137
+ if (typeof this._hintsAddedCallback !== "undefined") {
97138
+ this._hintsAddedCallback.call(this);
97139
+ }
97140
+ }
97141
+ /**
97142
+ * Aligns hint position
97143
+ *
97144
+ * @api private
97145
+ * @method alignHintPosition
97146
+ * @param {String} position
97147
+ * @param {Object} hint
97148
+ * @param {Object} element
97149
+ */
97150
+
97151
+ function alignHintPosition(position, _ref, element) {
97152
+ var style = _ref.style;
97153
+ // get/calculate offset of target element
97154
+ var offset = getOffset.call(this, element);
97155
+ var iconWidth = 20;
97156
+ var iconHeight = 20; // align the hint element
97157
+
97158
+ switch (position) {
97159
+ default:
97160
+ case "top-left":
97161
+ style.left = "".concat(offset.left, "px");
97162
+ style.top = "".concat(offset.top, "px");
97163
+ break;
97164
+
97165
+ case "top-right":
97166
+ style.left = "".concat(offset.left + offset.width - iconWidth, "px");
97167
+ style.top = "".concat(offset.top, "px");
97168
+ break;
97169
+
97170
+ case "bottom-left":
97171
+ style.left = "".concat(offset.left, "px");
97172
+ style.top = "".concat(offset.top + offset.height - iconHeight, "px");
97173
+ break;
97174
+
97175
+ case "bottom-right":
97176
+ style.left = "".concat(offset.left + offset.width - iconWidth, "px");
97177
+ style.top = "".concat(offset.top + offset.height - iconHeight, "px");
97178
+ break;
97179
+
97180
+ case "middle-left":
97181
+ style.left = "".concat(offset.left, "px");
97182
+ style.top = "".concat(offset.top + (offset.height - iconHeight) / 2, "px");
97183
+ break;
97184
+
97185
+ case "middle-right":
97186
+ style.left = "".concat(offset.left + offset.width - iconWidth, "px");
97187
+ style.top = "".concat(offset.top + (offset.height - iconHeight) / 2, "px");
97188
+ break;
97189
+
97190
+ case "middle-middle":
97191
+ style.left = "".concat(offset.left + (offset.width - iconWidth) / 2, "px");
97192
+ style.top = "".concat(offset.top + (offset.height - iconHeight) / 2, "px");
97193
+ break;
97194
+
97195
+ case "bottom-middle":
97196
+ style.left = "".concat(offset.left + (offset.width - iconWidth) / 2, "px");
97197
+ style.top = "".concat(offset.top + offset.height - iconHeight, "px");
97198
+ break;
97199
+
97200
+ case "top-middle":
97201
+ style.left = "".concat(offset.left + (offset.width - iconWidth) / 2, "px");
97202
+ style.top = "".concat(offset.top, "px");
97203
+ break;
97204
+ }
97205
+ }
97206
+ /**
97207
+ * Triggers when user clicks on the hint element
97208
+ *
97209
+ * @api private
97210
+ * @method _showHintDialog
97211
+ * @param {Number} stepId
97212
+ */
97213
+
97214
+ function showHintDialog(stepId) {
97215
+ var hintElement = document.querySelector(".introjs-hint[data-step=\"".concat(stepId, "\"]"));
97216
+ var item = this._introItems[stepId]; // call the callback function (if any)
97217
+
97218
+ if (typeof this._hintClickCallback !== "undefined") {
97219
+ this._hintClickCallback.call(this, hintElement, item, stepId);
97220
+ } // remove all open tooltips
97221
+
97222
+
97223
+ var removedStep = removeHintTooltip.call(this); // to toggle the tooltip
97224
+
97225
+ if (parseInt(removedStep, 10) === stepId) {
97226
+ return;
97227
+ }
97228
+
97229
+ var tooltipLayer = _createElement("div", {
97230
+ className: "introjs-tooltip"
97231
+ });
97232
+ var tooltipTextLayer = _createElement("div");
97233
+ var arrowLayer = _createElement("div");
97234
+ var referenceLayer = _createElement("div");
97235
+
97236
+ tooltipLayer.onclick = function (e) {
97237
+ //IE9 & Other Browsers
97238
+ if (e.stopPropagation) {
97239
+ e.stopPropagation();
97240
+ } //IE8 and Lower
97241
+ else {
97242
+ e.cancelBubble = true;
97243
+ }
97244
+ };
97245
+
97246
+ tooltipTextLayer.className = "introjs-tooltiptext";
97247
+ var tooltipWrapper = _createElement("p");
97248
+ tooltipWrapper.innerHTML = item.hint;
97249
+ var closeButton = _createElement("a");
97250
+ closeButton.className = this._options.buttonClass;
97251
+ closeButton.setAttribute("role", "button");
97252
+ closeButton.innerHTML = this._options.hintButtonLabel;
97253
+ closeButton.onclick = hideHint.bind(this, stepId);
97254
+ tooltipTextLayer.appendChild(tooltipWrapper);
97255
+ tooltipTextLayer.appendChild(closeButton);
97256
+ arrowLayer.className = "introjs-arrow";
97257
+ tooltipLayer.appendChild(arrowLayer);
97258
+ tooltipLayer.appendChild(tooltipTextLayer); // set current step for _placeTooltip function
97259
+
97260
+ this._currentStep = hintElement.getAttribute("data-step"); // align reference layer position
97261
+
97262
+ referenceLayer.className = "introjs-tooltipReferenceLayer introjs-hintReference";
97263
+ referenceLayer.setAttribute("data-step", hintElement.getAttribute("data-step"));
97264
+ setHelperLayerPosition.call(this, referenceLayer);
97265
+ referenceLayer.appendChild(tooltipLayer);
97266
+ document.body.appendChild(referenceLayer); //set proper position
97267
+
97268
+ placeTooltip.call(this, hintElement, tooltipLayer, arrowLayer, true);
97269
+ }
97270
+ /**
97271
+ * Removes open hint (tooltip hint)
97272
+ *
97273
+ * @api private
97274
+ * @method _removeHintTooltip
97275
+ */
97276
+
97277
+ function removeHintTooltip() {
97278
+ var tooltip = document.querySelector(".introjs-hintReference");
97279
+
97280
+ if (tooltip) {
97281
+ var step = tooltip.getAttribute("data-step");
97282
+ tooltip.parentNode.removeChild(tooltip);
97283
+ return step;
97284
+ }
97285
+ }
97286
+ /**
97287
+ * Start parsing hint items
97288
+ *
97289
+ * @api private
97290
+ * @param {Object} targetElm
97291
+ * @method _startHint
97292
+ */
97293
+
97294
+ function populateHints(targetElm) {
97295
+ var _this5 = this;
97296
+
97297
+ this._introItems = [];
97298
+
97299
+ if (this._options.hints) {
97300
+ forEach(this._options.hints, function (hint) {
97301
+ var currentItem = cloneObject(hint);
97302
+
97303
+ if (typeof currentItem.element === "string") {
97304
+ //grab the element with given selector from the page
97305
+ currentItem.element = document.querySelector(currentItem.element);
97306
+ }
97307
+
97308
+ currentItem.hintPosition = currentItem.hintPosition || _this5._options.hintPosition;
97309
+ currentItem.hintAnimation = currentItem.hintAnimation || _this5._options.hintAnimation;
97310
+
97311
+ if (currentItem.element !== null) {
97312
+ _this5._introItems.push(currentItem);
97313
+ }
97314
+ });
97315
+ } else {
97316
+ var hints = targetElm.querySelectorAll("*[data-hint]");
97317
+
97318
+ if (!hints || !hints.length) {
97319
+ return false;
97320
+ } //first add intro items with data-step
97321
+
97322
+
97323
+ forEach(hints, function (currentElement) {
97324
+ // hint animation
97325
+ var hintAnimation = currentElement.getAttribute("data-hintanimation");
97326
+
97327
+ if (hintAnimation) {
97328
+ hintAnimation = hintAnimation === "true";
97329
+ } else {
97330
+ hintAnimation = _this5._options.hintAnimation;
97331
+ }
97332
+
97333
+ _this5._introItems.push({
97334
+ element: currentElement,
97335
+ hint: currentElement.getAttribute("data-hint"),
97336
+ hintPosition: currentElement.getAttribute("data-hintposition") || _this5._options.hintPosition,
97337
+ hintAnimation: hintAnimation,
97338
+ tooltipClass: currentElement.getAttribute("data-tooltipclass"),
97339
+ position: currentElement.getAttribute("data-position") || _this5._options.tooltipPosition
97340
+ });
97341
+ });
97342
+ }
97343
+
97344
+ addHints.call(this);
97345
+ /*
97346
+ todo:
97347
+ these events should be removed at some point
97348
+ */
97349
+
97350
+ DOMEvent.on(document, "click", removeHintTooltip, this, false);
97351
+ DOMEvent.on(window, "resize", reAlignHints, this, true);
97352
+ }
97353
+ /**
97354
+ * Re-aligns all hint elements
97355
+ *
97356
+ * @api private
97357
+ * @method _reAlignHints
97358
+ */
97359
+
97360
+ function reAlignHints() {
97361
+ var _this6 = this;
97362
+
97363
+ forEach(this._introItems, function (_ref2) {
97364
+ var targetElement = _ref2.targetElement,
97365
+ hintPosition = _ref2.hintPosition,
97366
+ element = _ref2.element;
97367
+
97368
+ if (typeof targetElement === "undefined") {
97369
+ return;
97370
+ }
97371
+
97372
+ alignHintPosition.call(_this6, hintPosition, element, targetElement);
97373
+ });
97374
+ }
97375
+
97376
+ // TODO: use something more complex like timsort?
97377
+ var floor = Math.floor;
97378
+
97379
+ var mergeSort = function (array, comparefn) {
97380
+ var length = array.length;
97381
+ var middle = floor(length / 2);
97382
+ return length < 8 ? insertionSort(array, comparefn) : merge(
97383
+ mergeSort(array.slice(0, middle), comparefn),
97384
+ mergeSort(array.slice(middle), comparefn),
97385
+ comparefn
97386
+ );
97387
+ };
97388
+
97389
+ var insertionSort = function (array, comparefn) {
97390
+ var length = array.length;
97391
+ var i = 1;
97392
+ var element, j;
97393
+
97394
+ while (i < length) {
97395
+ j = i;
97396
+ element = array[i];
97397
+ while (j && comparefn(array[j - 1], element) > 0) {
97398
+ array[j] = array[--j];
97399
+ }
97400
+ if (j !== i++) array[j] = element;
97401
+ } return array;
97402
+ };
97403
+
97404
+ var merge = function (left, right, comparefn) {
97405
+ var llength = left.length;
97406
+ var rlength = right.length;
97407
+ var lindex = 0;
97408
+ var rindex = 0;
97409
+ var result = [];
97410
+
97411
+ while (lindex < llength || rindex < rlength) {
97412
+ if (lindex < llength && rindex < rlength) {
97413
+ result.push(comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]);
97414
+ } else {
97415
+ result.push(lindex < llength ? left[lindex++] : right[rindex++]);
97416
+ }
97417
+ } return result;
97418
+ };
97419
+
97420
+ var arraySort = mergeSort;
97421
+
97422
+ var firefox = engineUserAgent.match(/firefox\/(\d+)/i);
97423
+
97424
+ var engineFfVersion = !!firefox && +firefox[1];
97425
+
97426
+ var engineIsIeOrEdge = /MSIE|Trident/.test(engineUserAgent);
97427
+
97428
+ var webkit = engineUserAgent.match(/AppleWebKit\/(\d+)\./);
97429
+
97430
+ var engineWebkitVersion = !!webkit && +webkit[1];
97431
+
97432
+ var test = [];
97433
+ var nativeSort = test.sort;
97434
+
97435
+ // IE8-
97436
+ var FAILS_ON_UNDEFINED = fails(function () {
97437
+ test.sort(undefined);
97438
+ });
97439
+ // V8 bug
97440
+ var FAILS_ON_NULL = fails(function () {
97441
+ test.sort(null);
97442
+ });
97443
+ // Old WebKit
97444
+ var STRICT_METHOD = arrayMethodIsStrict('sort');
97445
+
97446
+ var STABLE_SORT = !fails(function () {
97447
+ // feature detection can be too slow, so check engines versions
97448
+ if (engineV8Version) return engineV8Version < 70;
97449
+ if (engineFfVersion && engineFfVersion > 3) return;
97450
+ if (engineIsIeOrEdge) return true;
97451
+ if (engineWebkitVersion) return engineWebkitVersion < 603;
97452
+
97453
+ var result = '';
97454
+ var code, chr, value, index;
97455
+
97456
+ // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
97457
+ for (code = 65; code < 76; code++) {
97458
+ chr = String.fromCharCode(code);
97459
+
97460
+ switch (code) {
97461
+ case 66: case 69: case 70: case 72: value = 3; break;
97462
+ case 68: case 71: value = 4; break;
97463
+ default: value = 2;
97464
+ }
97465
+
97466
+ for (index = 0; index < 47; index++) {
97467
+ test.push({ k: chr + index, v: value });
97468
+ }
97469
+ }
97470
+
97471
+ test.sort(function (a, b) { return b.v - a.v; });
97472
+
97473
+ for (index = 0; index < test.length; index++) {
97474
+ chr = test[index].k.charAt(0);
97475
+ if (result.charAt(result.length - 1) !== chr) result += chr;
97476
+ }
97477
+
97478
+ return result !== 'DGBEFHACIJK';
97479
+ });
97480
+
97481
+ var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
97482
+
97483
+ var getSortCompare = function (comparefn) {
97484
+ return function (x, y) {
97485
+ if (y === undefined) return -1;
97486
+ if (x === undefined) return 1;
97487
+ if (comparefn !== undefined) return +comparefn(x, y) || 0;
97488
+ return toString_1(x) > toString_1(y) ? 1 : -1;
97489
+ };
97490
+ };
97491
+
97492
+ // `Array.prototype.sort` method
97493
+ // https://tc39.es/ecma262/#sec-array.prototype.sort
97494
+ _export({ target: 'Array', proto: true, forced: FORCED }, {
97495
+ sort: function sort(comparefn) {
97496
+ if (comparefn !== undefined) aFunction(comparefn);
97497
+
97498
+ var array = toObject(this);
97499
+
97500
+ if (STABLE_SORT) return comparefn === undefined ? nativeSort.call(array) : nativeSort.call(array, comparefn);
97501
+
97502
+ var items = [];
97503
+ var arrayLength = toLength(array.length);
97504
+ var itemsLength, index;
97505
+
97506
+ for (index = 0; index < arrayLength; index++) {
97507
+ if (index in array) items.push(array[index]);
97508
+ }
97509
+
97510
+ items = arraySort(items, getSortCompare(comparefn));
97511
+ itemsLength = items.length;
97512
+ index = 0;
97513
+
97514
+ while (index < itemsLength) array[index] = items[index++];
97515
+ while (index < arrayLength) delete array[index++];
97516
+
97517
+ return array;
97518
+ }
97519
+ });
97520
+
97521
+ /**
97522
+ * Finds all Intro steps from the data-* attributes and the options.steps array
97523
+ *
97524
+ * @api private
97525
+ * @param targetElm
97526
+ * @returns {[]}
97527
+ */
97528
+
97529
+ function fetchIntroSteps(targetElm) {
97530
+ var _this = this;
97531
+
97532
+ var allIntroSteps = targetElm.querySelectorAll("*[data-intro]");
97533
+ var introItems = [];
97534
+
97535
+ if (this._options.steps) {
97536
+ //use steps passed programmatically
97537
+ forEach(this._options.steps, function (step) {
97538
+ var currentItem = cloneObject(step); //set the step
97539
+
97540
+ currentItem.step = introItems.length + 1;
97541
+ currentItem.title = currentItem.title || ""; //use querySelector function only when developer used CSS selector
97542
+
97543
+ if (typeof currentItem.element === "string") {
97544
+ //grab the element with given selector from the page
97545
+ currentItem.element = document.querySelector(currentItem.element);
97546
+ } //intro without element
97547
+
97548
+
97549
+ if (typeof currentItem.element === "undefined" || currentItem.element === null) {
97550
+ var floatingElementQuery = document.querySelector(".introjsFloatingElement");
97551
+
97552
+ if (floatingElementQuery === null) {
97553
+ floatingElementQuery = _createElement("div", {
97554
+ className: "introjsFloatingElement"
97555
+ });
97556
+ document.body.appendChild(floatingElementQuery);
97557
+ }
97558
+
97559
+ currentItem.element = floatingElementQuery;
97560
+ currentItem.position = "floating";
97561
+ }
97562
+
97563
+ currentItem.position = currentItem.position || _this._options.tooltipPosition;
97564
+ currentItem.scrollTo = currentItem.scrollTo || _this._options.scrollTo;
97565
+
97566
+ if (typeof currentItem.disableInteraction === "undefined") {
97567
+ currentItem.disableInteraction = _this._options.disableInteraction;
97568
+ }
97569
+
97570
+ if (currentItem.element !== null) {
97571
+ introItems.push(currentItem);
97572
+ }
97573
+ });
97574
+ } else {
97575
+ //use steps from data-* annotations
97576
+ var elmsLength = allIntroSteps.length;
97577
+ var disableInteraction; //if there's no element to intro
97578
+
97579
+ if (elmsLength < 1) {
97580
+ return [];
97581
+ }
97582
+
97583
+ forEach(allIntroSteps, function (currentElement) {
97584
+ // start intro for groups of elements
97585
+ if (_this._options.group && currentElement.getAttribute("data-intro-group") !== _this._options.group) {
97586
+ return;
97587
+ } // skip hidden elements
97588
+
97589
+
97590
+ if (currentElement.style.display === "none") {
97591
+ return;
97592
+ }
97593
+
97594
+ var step = parseInt(currentElement.getAttribute("data-step"), 10);
97595
+
97596
+ if (currentElement.hasAttribute("data-disable-interaction")) {
97597
+ disableInteraction = !!currentElement.getAttribute("data-disable-interaction");
97598
+ } else {
97599
+ disableInteraction = _this._options.disableInteraction;
97600
+ }
97601
+
97602
+ if (step > 0) {
97603
+ introItems[step - 1] = {
97604
+ element: currentElement,
97605
+ title: currentElement.getAttribute("data-title") || "",
97606
+ intro: currentElement.getAttribute("data-intro"),
97607
+ step: parseInt(currentElement.getAttribute("data-step"), 10),
97608
+ tooltipClass: currentElement.getAttribute("data-tooltipclass"),
97609
+ highlightClass: currentElement.getAttribute("data-highlightclass"),
97610
+ position: currentElement.getAttribute("data-position") || _this._options.tooltipPosition,
97611
+ scrollTo: currentElement.getAttribute("data-scrollto") || _this._options.scrollTo,
97612
+ disableInteraction: disableInteraction
97613
+ };
97614
+ }
97615
+ }); //next add intro items without data-step
97616
+ //todo: we need a cleanup here, two loops are redundant
97617
+
97618
+ var nextStep = 0;
97619
+ forEach(allIntroSteps, function (currentElement) {
97620
+ // start intro for groups of elements
97621
+ if (_this._options.group && currentElement.getAttribute("data-intro-group") !== _this._options.group) {
97622
+ return;
97623
+ }
97624
+
97625
+ if (currentElement.getAttribute("data-step") === null) {
97626
+ while (true) {
97627
+ if (typeof introItems[nextStep] === "undefined") {
97628
+ break;
97629
+ } else {
97630
+ nextStep++;
97631
+ }
97632
+ }
97633
+
97634
+ if (currentElement.hasAttribute("data-disable-interaction")) {
97635
+ disableInteraction = !!currentElement.getAttribute("data-disable-interaction");
97636
+ } else {
97637
+ disableInteraction = _this._options.disableInteraction;
97638
+ }
97639
+
97640
+ introItems[nextStep] = {
97641
+ element: currentElement,
97642
+ title: currentElement.getAttribute("data-title") || "",
97643
+ intro: currentElement.getAttribute("data-intro"),
97644
+ step: nextStep + 1,
97645
+ tooltipClass: currentElement.getAttribute("data-tooltipclass"),
97646
+ highlightClass: currentElement.getAttribute("data-highlightclass"),
97647
+ position: currentElement.getAttribute("data-position") || _this._options.tooltipPosition,
97648
+ scrollTo: currentElement.getAttribute("data-scrollto") || _this._options.scrollTo,
97649
+ disableInteraction: disableInteraction
97650
+ };
97651
+ }
97652
+ });
97653
+ } //removing undefined/null elements
97654
+
97655
+
97656
+ var tempIntroItems = [];
97657
+
97658
+ for (var z = 0; z < introItems.length; z++) {
97659
+ if (introItems[z]) {
97660
+ // copy non-falsy values to the end of the array
97661
+ tempIntroItems.push(introItems[z]);
97662
+ }
97663
+ }
97664
+
97665
+ introItems = tempIntroItems; //Ok, sort all items with given steps
97666
+
97667
+ introItems.sort(function (a, b) {
97668
+ return a.step - b.step;
97669
+ });
97670
+ return introItems;
97671
+ }
97672
+
97673
+ /**
97674
+ * Update placement of the intro objects on the screen
97675
+ * @api private
97676
+ * @param {boolean} refreshSteps to refresh the intro steps as well
97677
+ */
97678
+
97679
+ function refresh(refreshSteps) {
97680
+ var referenceLayer = document.querySelector(".introjs-tooltipReferenceLayer");
97681
+ var helperLayer = document.querySelector(".introjs-helperLayer");
97682
+ var disableInteractionLayer = document.querySelector(".introjs-disableInteraction"); // re-align intros
97683
+
97684
+ setHelperLayerPosition.call(this, helperLayer);
97685
+ setHelperLayerPosition.call(this, referenceLayer);
97686
+ setHelperLayerPosition.call(this, disableInteractionLayer);
97687
+
97688
+ if (refreshSteps) {
97689
+ this._introItems = fetchIntroSteps.call(this, this._targetElement);
97690
+
97691
+ _recreateBullets.call(this, referenceLayer, this._introItems[this._currentStep]);
97692
+
97693
+ _updateProgressBar.call(this, referenceLayer);
97694
+ } // re-align tooltip
97695
+
97696
+
97697
+ if (this._currentStep !== undefined && this._currentStep !== null) {
97698
+ var oldArrowLayer = document.querySelector(".introjs-arrow");
97699
+ var oldtooltipContainer = document.querySelector(".introjs-tooltip");
97700
+ placeTooltip.call(this, this._introItems[this._currentStep].element, oldtooltipContainer, oldArrowLayer);
97701
+ } //re-align hints
97702
+
97703
+
97704
+ reAlignHints.call(this);
97705
+ return this;
97706
+ }
97707
+
97708
+ function onResize() {
97709
+ refresh.call(this);
97710
+ }
97711
+
97712
+ /**
97713
+ * Removes `element` from `parentElement`
97714
+ *
97715
+ * @param {Element} element
97716
+ * @param {Boolean} [animate=false]
97717
+ */
97718
+
97719
+ function removeChild(element, animate) {
97720
+ if (!element || !element.parentElement) return;
97721
+ var parentElement = element.parentElement;
97722
+
97723
+ if (animate) {
97724
+ setStyle(element, {
97725
+ opacity: "0"
97726
+ });
97727
+ window.setTimeout(function () {
97728
+ try {
97729
+ // removeChild(..) throws an exception if the child has already been removed (https://developer.mozilla.org/en-US/docs/Web/API/Node/removeChild)
97730
+ // this try-catch is added to make sure this function doesn't throw an exception if the child has been removed
97731
+ // this scenario can happen when start()/exit() is called multiple times and the helperLayer is removed by the
97732
+ // previous exit() call (note: this is a timeout)
97733
+ parentElement.removeChild(element);
97734
+ } catch (e) {}
97735
+ }, 500);
97736
+ } else {
97737
+ parentElement.removeChild(element);
97738
+ }
97739
+ }
97740
+
97741
+ /**
97742
+ * Exit from intro
97743
+ *
97744
+ * @api private
97745
+ * @method _exitIntro
97746
+ * @param {Object} targetElement
97747
+ * @param {Boolean} force - Setting to `true` will skip the result of beforeExit callback
97748
+ */
97749
+
97750
+ function exitIntro(targetElement, force) {
97751
+ var continueExit = true; // calling onbeforeexit callback
97752
+ //
97753
+ // If this callback return `false`, it would halt the process
97754
+
97755
+ if (this._introBeforeExitCallback !== undefined) {
97756
+ continueExit = this._introBeforeExitCallback.call(this);
97757
+ } // skip this check if `force` parameter is `true`
97758
+ // otherwise, if `onbeforeexit` returned `false`, don't exit the intro
97759
+
97760
+
97761
+ if (!force && continueExit === false) return; // remove overlay layers from the page
97762
+
97763
+ var overlayLayers = targetElement.querySelectorAll(".introjs-overlay");
97764
+
97765
+ if (overlayLayers && overlayLayers.length) {
97766
+ forEach(overlayLayers, function (overlayLayer) {
97767
+ return removeChild(overlayLayer);
97768
+ });
97769
+ } //remove all helper layers
97770
+
97771
+
97772
+ var helperLayer = targetElement.querySelector(".introjs-helperLayer");
97773
+ removeChild(helperLayer, true);
97774
+ var referenceLayer = targetElement.querySelector(".introjs-tooltipReferenceLayer");
97775
+ removeChild(referenceLayer); //remove disableInteractionLayer
97776
+
97777
+ var disableInteractionLayer = targetElement.querySelector(".introjs-disableInteraction");
97778
+ removeChild(disableInteractionLayer); //remove intro floating element
97779
+
97780
+ var floatingElement = document.querySelector(".introjsFloatingElement");
97781
+ removeChild(floatingElement);
97782
+ removeShowElement(); //clean listeners
97783
+
97784
+ DOMEvent.off(window, "keydown", onKeyDown, this, true);
97785
+ DOMEvent.off(window, "resize", onResize, this, true); //check if any callback is defined
97786
+
97787
+ if (this._introExitCallback !== undefined) {
97788
+ this._introExitCallback.call(this);
97789
+ } //set the step to zero
97790
+
97791
+
97792
+ this._currentStep = undefined;
97793
+ }
97794
+
97795
+ /**
97796
+ * Add overlay layer to the page
97797
+ *
97798
+ * @api private
97799
+ * @method _addOverlayLayer
97800
+ * @param {Object} targetElm
97801
+ */
97802
+
97803
+ function addOverlayLayer(targetElm) {
97804
+ var _this = this;
97805
+
97806
+ var overlayLayer = _createElement("div", {
97807
+ className: "introjs-overlay"
97808
+ });
97809
+ setStyle(overlayLayer, {
97810
+ top: 0,
97811
+ bottom: 0,
97812
+ left: 0,
97813
+ right: 0,
97814
+ position: "fixed"
97815
+ });
97816
+ targetElm.appendChild(overlayLayer);
97817
+
97818
+ if (this._options.exitOnOverlayClick === true) {
97819
+ setStyle(overlayLayer, {
97820
+ cursor: "pointer"
97821
+ });
97822
+
97823
+ overlayLayer.onclick = function () {
97824
+ exitIntro.call(_this, targetElm);
97825
+ };
97826
+ }
97827
+
97828
+ return true;
97829
+ }
97830
+
97831
+ /**
97832
+ * Initiate a new introduction/guide from an element in the page
97833
+ *
97834
+ * @api private
97835
+ * @method introForElement
97836
+ * @param {Object} targetElm
97837
+ * @returns {Boolean} Success or not?
97838
+ */
97839
+
97840
+ function introForElement(targetElm) {
97841
+ //set it to the introJs object
97842
+ var steps = fetchIntroSteps.call(this, targetElm);
97843
+
97844
+ if (steps.length === 0) {
97845
+ return false;
97846
+ }
97847
+
97848
+ this._introItems = steps; //add overlay layer to the page
97849
+
97850
+ if (addOverlayLayer.call(this, targetElm)) {
97851
+ //then, start the show
97852
+ nextStep.call(this);
97853
+
97854
+ if (this._options.keyboardNavigation) {
97855
+ DOMEvent.on(window, "keydown", onKeyDown, this, true);
97856
+ } //for window resize
97857
+
97858
+
97859
+ DOMEvent.on(window, "resize", onResize, this, true);
97860
+ }
97861
+
97862
+ return false;
97863
+ }
97864
+
97865
+ var version = "4.2.2";
97866
+
97867
+ /**
97868
+ * IntroJs main class
97869
+ *
97870
+ * @class IntroJs
97871
+ */
97872
+
97873
+ function IntroJs(obj) {
97874
+ this._targetElement = obj;
97875
+ this._introItems = [];
97876
+ this._options = {
97877
+ /* Next button label in tooltip box */
97878
+ nextLabel: "Next",
97879
+
97880
+ /* Previous button label in tooltip box */
97881
+ prevLabel: "Back",
97882
+
97883
+ /* Skip button label in tooltip box */
97884
+ skipLabel: "×",
97885
+
97886
+ /* Done button label in tooltip box */
97887
+ doneLabel: "Done",
97888
+
97889
+ /* Hide previous button in the first step? Otherwise, it will be disabled button. */
97890
+ hidePrev: false,
97891
+
97892
+ /* Hide next button in the last step? Otherwise, it will be disabled button (note: this will also hide the "Done" button) */
97893
+ hideNext: false,
97894
+
97895
+ /* Change the Next button to Done in the last step of the intro? otherwise, it will render a disabled button */
97896
+ nextToDone: true,
97897
+
97898
+ /* Default tooltip box position */
97899
+ tooltipPosition: "bottom",
97900
+
97901
+ /* Next CSS class for tooltip boxes */
97902
+ tooltipClass: "",
97903
+
97904
+ /* Start intro for a group of elements */
97905
+ group: "",
97906
+
97907
+ /* CSS class that is added to the helperLayer */
97908
+ highlightClass: "",
97909
+
97910
+ /* Close introduction when pressing Escape button? */
97911
+ exitOnEsc: true,
97912
+
97913
+ /* Close introduction when clicking on overlay layer? */
97914
+ exitOnOverlayClick: true,
97915
+
97916
+ /* Show step numbers in introduction? */
97917
+ showStepNumbers: false,
97918
+
97919
+ /* Let user use keyboard to navigate the tour? */
97920
+ keyboardNavigation: true,
97921
+
97922
+ /* Show tour control buttons? */
97923
+ showButtons: true,
97924
+
97925
+ /* Show tour bullets? */
97926
+ showBullets: true,
97927
+
97928
+ /* Show tour progress? */
97929
+ showProgress: false,
97930
+
97931
+ /* Scroll to highlighted element? */
97932
+ scrollToElement: true,
97933
+
97934
+ /*
97935
+ * Should we scroll the tooltip or target element?
97936
+ *
97937
+ * Options are: 'element' or 'tooltip'
97938
+ */
97939
+ scrollTo: "element",
97940
+
97941
+ /* Padding to add after scrolling when element is not in the viewport (in pixels) */
97942
+ scrollPadding: 30,
97943
+
97944
+ /* Set the overlay opacity */
97945
+ overlayOpacity: 0.5,
97946
+
97947
+ /* To determine the tooltip position automatically based on the window.width/height */
97948
+ autoPosition: true,
97949
+
97950
+ /* Precedence of positions, when auto is enabled */
97951
+ positionPrecedence: ["bottom", "top", "right", "left"],
97952
+
97953
+ /* Disable an interaction with element? */
97954
+ disableInteraction: false,
97955
+
97956
+ /* Set how much padding to be used around helper element */
97957
+ helperElementPadding: 10,
97958
+
97959
+ /* Default hint position */
97960
+ hintPosition: "top-middle",
97961
+
97962
+ /* Hint button label */
97963
+ hintButtonLabel: "Got it",
97964
+
97965
+ /* Adding animation to hints? */
97966
+ hintAnimation: true,
97967
+
97968
+ /* additional classes to put on the buttons */
97969
+ buttonClass: "introjs-button",
97970
+
97971
+ /* additional classes to put on progress bar */
97972
+ progressBarAdditionalClass: false
97973
+ };
97974
+ }
97975
+
97976
+ var introJs = function introJs(targetElm) {
97977
+ var instance;
97978
+
97979
+ if (_typeof(targetElm) === "object") {
97980
+ //Ok, create a new instance
97981
+ instance = new IntroJs(targetElm);
97982
+ } else if (typeof targetElm === "string") {
97983
+ //select the target element with query selector
97984
+ var targetElement = document.querySelector(targetElm);
97985
+
97986
+ if (targetElement) {
97987
+ instance = new IntroJs(targetElement);
97988
+ } else {
97989
+ throw new Error("There is no element with given selector.");
97990
+ }
97991
+ } else {
97992
+ instance = new IntroJs(document.body);
97993
+ } // add instance to list of _instances
97994
+ // passing group to stamp to increment
97995
+ // from 0 onward somewhat reliably
97996
+
97997
+
97998
+ introJs.instances[stamp(instance, "introjs-instance")] = instance;
97999
+ return instance;
98000
+ };
98001
+ /**
98002
+ * Current IntroJs version
98003
+ *
98004
+ * @property version
98005
+ * @type String
98006
+ */
98007
+
98008
+
98009
+ introJs.version = version;
98010
+ /**
98011
+ * key-val object helper for introJs instances
98012
+ *
98013
+ * @property instances
98014
+ * @type Object
98015
+ */
98016
+
98017
+ introJs.instances = {}; //Prototype
98018
+
98019
+ introJs.fn = IntroJs.prototype = {
98020
+ clone: function clone() {
98021
+ return new IntroJs(this);
98022
+ },
98023
+ setOption: function setOption(option, value) {
98024
+ this._options[option] = value;
98025
+ return this;
98026
+ },
98027
+ setOptions: function setOptions(options) {
98028
+ this._options = mergeOptions(this._options, options);
98029
+ return this;
98030
+ },
98031
+ start: function start() {
98032
+ introForElement.call(this, this._targetElement);
98033
+ return this;
98034
+ },
98035
+ goToStep: function goToStep$1(step) {
98036
+ goToStep.call(this, step);
98037
+
98038
+ return this;
98039
+ },
98040
+ addStep: function addStep(options) {
98041
+ if (!this._options.steps) {
98042
+ this._options.steps = [];
98043
+ }
98044
+
98045
+ this._options.steps.push(options);
98046
+
98047
+ return this;
98048
+ },
98049
+ addSteps: function addSteps(steps) {
98050
+ if (!steps.length) return;
98051
+
98052
+ for (var index = 0; index < steps.length; index++) {
98053
+ this.addStep(steps[index]);
98054
+ }
98055
+
98056
+ return this;
98057
+ },
98058
+ goToStepNumber: function goToStepNumber$1(step) {
98059
+ goToStepNumber.call(this, step);
98060
+
98061
+ return this;
98062
+ },
98063
+ nextStep: function nextStep$1() {
98064
+ nextStep.call(this);
98065
+
98066
+ return this;
98067
+ },
98068
+ previousStep: function previousStep$1() {
98069
+ previousStep.call(this);
98070
+
98071
+ return this;
98072
+ },
98073
+ currentStep: function currentStep$1() {
98074
+ return currentStep.call(this);
98075
+ },
98076
+ exit: function exit(force) {
98077
+ exitIntro.call(this, this._targetElement, force);
98078
+ return this;
98079
+ },
98080
+ refresh: function refresh$1(refreshSteps) {
98081
+ refresh.call(this, refreshSteps);
98082
+
98083
+ return this;
98084
+ },
98085
+ onbeforechange: function onbeforechange(providedCallback) {
98086
+ if (typeof providedCallback === "function") {
98087
+ this._introBeforeChangeCallback = providedCallback;
98088
+ } else {
98089
+ throw new Error("Provided callback for onbeforechange was not a function");
98090
+ }
98091
+
98092
+ return this;
98093
+ },
98094
+ onchange: function onchange(providedCallback) {
98095
+ if (typeof providedCallback === "function") {
98096
+ this._introChangeCallback = providedCallback;
98097
+ } else {
98098
+ throw new Error("Provided callback for onchange was not a function.");
98099
+ }
98100
+
98101
+ return this;
98102
+ },
98103
+ onafterchange: function onafterchange(providedCallback) {
98104
+ if (typeof providedCallback === "function") {
98105
+ this._introAfterChangeCallback = providedCallback;
98106
+ } else {
98107
+ throw new Error("Provided callback for onafterchange was not a function");
98108
+ }
98109
+
98110
+ return this;
98111
+ },
98112
+ oncomplete: function oncomplete(providedCallback) {
98113
+ if (typeof providedCallback === "function") {
98114
+ this._introCompleteCallback = providedCallback;
98115
+ } else {
98116
+ throw new Error("Provided callback for oncomplete was not a function.");
98117
+ }
98118
+
98119
+ return this;
98120
+ },
98121
+ onhintsadded: function onhintsadded(providedCallback) {
98122
+ if (typeof providedCallback === "function") {
98123
+ this._hintsAddedCallback = providedCallback;
98124
+ } else {
98125
+ throw new Error("Provided callback for onhintsadded was not a function.");
98126
+ }
98127
+
98128
+ return this;
98129
+ },
98130
+ onhintclick: function onhintclick(providedCallback) {
98131
+ if (typeof providedCallback === "function") {
98132
+ this._hintClickCallback = providedCallback;
98133
+ } else {
98134
+ throw new Error("Provided callback for onhintclick was not a function.");
98135
+ }
98136
+
98137
+ return this;
98138
+ },
98139
+ onhintclose: function onhintclose(providedCallback) {
98140
+ if (typeof providedCallback === "function") {
98141
+ this._hintCloseCallback = providedCallback;
98142
+ } else {
98143
+ throw new Error("Provided callback for onhintclose was not a function.");
98144
+ }
98145
+
98146
+ return this;
98147
+ },
98148
+ onexit: function onexit(providedCallback) {
98149
+ if (typeof providedCallback === "function") {
98150
+ this._introExitCallback = providedCallback;
98151
+ } else {
98152
+ throw new Error("Provided callback for onexit was not a function.");
98153
+ }
98154
+
98155
+ return this;
98156
+ },
98157
+ onskip: function onskip(providedCallback) {
98158
+ if (typeof providedCallback === "function") {
98159
+ this._introSkipCallback = providedCallback;
98160
+ } else {
98161
+ throw new Error("Provided callback for onskip was not a function.");
98162
+ }
98163
+
98164
+ return this;
98165
+ },
98166
+ onbeforeexit: function onbeforeexit(providedCallback) {
98167
+ if (typeof providedCallback === "function") {
98168
+ this._introBeforeExitCallback = providedCallback;
98169
+ } else {
98170
+ throw new Error("Provided callback for onbeforeexit was not a function.");
98171
+ }
98172
+
98173
+ return this;
98174
+ },
98175
+ addHints: function addHints() {
98176
+ populateHints.call(this, this._targetElement);
98177
+ return this;
98178
+ },
98179
+ hideHint: function hideHint$1(stepId) {
98180
+ hideHint.call(this, stepId);
98181
+
98182
+ return this;
98183
+ },
98184
+ hideHints: function hideHints$1() {
98185
+ hideHints.call(this);
98186
+
98187
+ return this;
98188
+ },
98189
+ showHint: function showHint$1(stepId) {
98190
+ showHint.call(this, stepId);
98191
+
98192
+ return this;
98193
+ },
98194
+ showHints: function showHints$1() {
98195
+ showHints.call(this);
98196
+
98197
+ return this;
98198
+ },
98199
+ removeHints: function removeHints$1() {
98200
+ removeHints.call(this);
98201
+
98202
+ return this;
98203
+ },
98204
+ removeHint: function removeHint$1(stepId) {
98205
+ removeHint().call(this, stepId);
98206
+
98207
+ return this;
98208
+ },
98209
+ showHintDialog: function showHintDialog$1(stepId) {
98210
+ showHintDialog.call(this, stepId);
98211
+
98212
+ return this;
98213
+ }
98214
+ };
98215
+
98216
+ return introJs;
98217
+
98218
+ })));
98219
+
98220
+
98221
+ /***/ }),
98222
+
98223
+ /***/ 17253:
98224
+ /***/ (function(module) {
98225
+
98226
+ /*! @license https://github.com/onury/invert-color */
98227
+ !function(r,n){ true?module.exports=n():0}(this,function(){"use strict";var t=Math.sqrt(1.05*.05)-.05,n=/^(?:[0-9a-f]{3}){1,2}$/i,i={black:"#000000",white:"#ffffff",threshold:t};function o(r){if("#"===r.slice(0,1)&&(r=r.slice(1)),!n.test(r))throw new Error('Invalid HEX color: "'+r+'"');return 3===r.length&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function f(r){if(!r)throw new Error("Invalid color value");return Array.isArray(r)?r:"string"==typeof r?o(r):[r.r,r.g,r.b]}function u(r,n,t){var e=!0===n?i:Object.assign({},i,n);return function(r){var n,t,e=[];for(n=0;n<r.length;n++)t=r[n]/255,e[n]=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4);return.2126*e[0]+.7152*e[1]+.0722*e[2]}(r)>e.threshold?t?o(e.black):e.black:t?o(e.white):e.white}function r(r,n){return void 0===n&&(n=!1),r=f(r),n?u(r,n):"#"+r.map(function(r){return n=(255-r).toString(16),void 0===t&&(t=2),(new Array(t).join("0")+n).slice(-t);var n,t}).join("")}return function(r){function n(r,n){r=f(r);var t,e=n?u(r,n,!0):r.map(function(r){return 255-r});return{r:(t=e)[0],g:t[1],b:t[2]}}r.asRGB=n,r.asRgbArray=function(r,n){return r=f(r),n?u(r,n,!0):r.map(function(r){return 255-r})},r.defaultThreshold=t,r.asRgbObject=n}(r||(r={})),r});
98228
+
98229
+ /***/ }),
98230
+
98231
+ /***/ 33827:
98232
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
98233
+
98234
+ "use strict";
98235
+ /* unused harmony export isBrowser */
98236
+ 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; };
98237
+
98238
+ var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9;
98239
+
98240
+ /* harmony default export */ __webpack_exports__["Z"] = (isBrowser);
98241
+
98242
+
98243
+ /***/ }),
98244
+
98245
+ /***/ 54013:
98246
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
98247
+
98248
+ "use strict";
98249
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
98250
+ /* harmony export */ "RB": function() { return /* binding */ RuleList; },
98251
+ /* harmony export */ "Ue": function() { return /* binding */ create; },
98252
+ /* harmony export */ "JH": function() { return /* binding */ createRule; },
98253
+ /* harmony export */ "_$": function() { return /* binding */ getDynamicStyles; },
98254
+ /* harmony export */ "HZ": function() { return /* binding */ hasCSSTOMSupport; },
98255
+ /* harmony export */ "EK": function() { return /* binding */ toCssValue; }
98256
+ /* harmony export */ });
98257
+ /* unused harmony exports SheetsManager, SheetsRegistry, createGenerateId, sheets */
98258
+ /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22122);
98259
+ /* harmony import */ var is_in_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33827);
98260
+ /* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5991);
98261
+ /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41788);
98262
+ /* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(63349);
98263
+ /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19756);
98264
+
98265
+
98266
+
98267
+
98268
+
98269
+
98270
+
98271
+
98272
+ var plainObjectConstrurctor = {}.constructor;
98273
+ function cloneStyle(style) {
98274
+ if (style == null || typeof style !== 'object') return style;
98275
+ if (Array.isArray(style)) return style.map(cloneStyle);
98276
+ if (style.constructor !== plainObjectConstrurctor) return style;
98277
+ var newStyle = {};
98278
+
98279
+ for (var name in style) {
98280
+ newStyle[name] = cloneStyle(style[name]);
98281
+ }
98282
+
98283
+ return newStyle;
98284
+ }
98285
+
98286
+ /**
98287
+ * Create a rule instance.
98288
+ */
98289
+
98290
+ function createRule(name, decl, options) {
98291
+ if (name === void 0) {
98292
+ name = 'unnamed';
98293
+ }
98294
+
98295
+ var jss = options.jss;
98296
+ var declCopy = cloneStyle(decl);
98297
+ var rule = jss.plugins.onCreateRule(name, declCopy, options);
98298
+ if (rule) return rule; // It is an at-rule and it has no instance.
98299
+
98300
+ if (name[0] === '@') {
98301
+ false ? 0 : void 0;
98302
+ }
98303
+
98304
+ return null;
98305
+ }
98306
+
98307
+ var join = function join(value, by) {
98308
+ var result = '';
98309
+
98310
+ for (var i = 0; i < value.length; i++) {
98311
+ // Remove !important from the value, it will be readded later.
98312
+ if (value[i] === '!important') break;
98313
+ if (result) result += by;
98314
+ result += value[i];
98315
+ }
98316
+
98317
+ return result;
98318
+ };
98319
+
98320
+ /**
98321
+ * Converts array values to string.
98322
+ *
98323
+ * `margin: [['5px', '10px']]` > `margin: 5px 10px;`
98324
+ * `border: ['1px', '2px']` > `border: 1px, 2px;`
98325
+ * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
98326
+ * `color: ['red', !important]` > `color: red !important;`
98327
+ */
98328
+ var toCssValue = function toCssValue(value, ignoreImportant) {
98329
+ if (ignoreImportant === void 0) {
98330
+ ignoreImportant = false;
98331
+ }
98332
+
98333
+ if (!Array.isArray(value)) return value;
98334
+ var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
98335
+
98336
+ if (Array.isArray(value[0])) {
98337
+ for (var i = 0; i < value.length; i++) {
98338
+ if (value[i] === '!important') break;
98339
+ if (cssValue) cssValue += ', ';
98340
+ cssValue += join(value[i], ' ');
98341
+ }
98342
+ } else cssValue = join(value, ', '); // Add !important, because it was ignored.
98343
+
98344
+
98345
+ if (!ignoreImportant && value[value.length - 1] === '!important') {
98346
+ cssValue += ' !important';
98347
+ }
98348
+
98349
+ return cssValue;
98350
+ };
98351
+
98352
+ /**
98353
+ * Indent a string.
98354
+ * http://jsperf.com/array-join-vs-for
98355
+ */
98356
+ function indentStr(str, indent) {
98357
+ var result = '';
98358
+
98359
+ for (var index = 0; index < indent; index++) {
98360
+ result += ' ';
98361
+ }
98362
+
98363
+ return result + str;
98364
+ }
98365
+ /**
98366
+ * Converts a Rule to CSS string.
98367
+ */
98368
+
98369
+
98370
+ function toCss(selector, style, options) {
98371
+ if (options === void 0) {
98372
+ options = {};
98373
+ }
98374
+
98375
+ var result = '';
98376
+ if (!style) return result;
98377
+ var _options = options,
98378
+ _options$indent = _options.indent,
98379
+ indent = _options$indent === void 0 ? 0 : _options$indent;
98380
+ var fallbacks = style.fallbacks;
98381
+ if (selector) indent++; // Apply fallbacks first.
98382
+
98383
+ if (fallbacks) {
98384
+ // Array syntax {fallbacks: [{prop: value}]}
98385
+ if (Array.isArray(fallbacks)) {
98386
+ for (var index = 0; index < fallbacks.length; index++) {
98387
+ var fallback = fallbacks[index];
98388
+
98389
+ for (var prop in fallback) {
98390
+ var value = fallback[prop];
98391
+
98392
+ if (value != null) {
98393
+ if (result) result += '\n';
98394
+ result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
98395
+ }
98396
+ }
98397
+ }
98398
+ } else {
98399
+ // Object syntax {fallbacks: {prop: value}}
98400
+ for (var _prop in fallbacks) {
98401
+ var _value = fallbacks[_prop];
98402
+
98403
+ if (_value != null) {
98404
+ if (result) result += '\n';
98405
+ result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
98406
+ }
98407
+ }
98408
+ }
98409
+ }
98410
+
98411
+ for (var _prop2 in style) {
98412
+ var _value2 = style[_prop2];
98413
+
98414
+ if (_value2 != null && _prop2 !== 'fallbacks') {
98415
+ if (result) result += '\n';
98416
+ result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
98417
+ }
98418
+ } // Allow empty style in this case, because properties will be added dynamically.
98419
+
98420
+
98421
+ if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
98422
+
98423
+ if (!selector) return result;
98424
+ indent--;
98425
+ if (result) result = "\n" + result + "\n";
98426
+ return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
98427
+ }
98428
+
98429
+ var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
98430
+ var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
98431
+ var escape = (function (str) {
98432
+ return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
98433
+ });
98434
+
98435
+ var BaseStyleRule =
98436
+ /*#__PURE__*/
98437
+ function () {
98438
+ function BaseStyleRule(key, style, options) {
98439
+ this.type = 'style';
98440
+ this.key = void 0;
98441
+ this.isProcessed = false;
98442
+ this.style = void 0;
98443
+ this.renderer = void 0;
98444
+ this.renderable = void 0;
98445
+ this.options = void 0;
98446
+ var sheet = options.sheet,
98447
+ Renderer = options.Renderer;
98448
+ this.key = key;
98449
+ this.options = options;
98450
+ this.style = style;
98451
+ if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
98452
+ }
98453
+ /**
98454
+ * Get or set a style property.
98455
+ */
98456
+
98457
+
98458
+ var _proto = BaseStyleRule.prototype;
98459
+
98460
+ _proto.prop = function prop(name, value, options) {
98461
+ // It's a getter.
98462
+ if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
98463
+
98464
+ var force = options ? options.force : false;
98465
+ if (!force && this.style[name] === value) return this;
98466
+ var newValue = value;
98467
+
98468
+ if (!options || options.process !== false) {
98469
+ newValue = this.options.jss.plugins.onChangeValue(value, name, this);
98470
+ }
98471
+
98472
+ var isEmpty = newValue == null || newValue === false;
98473
  var isDefined = name in this.style; // Value is empty and wasn't defined before.
98474
 
98475
  if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
110974
  };
110975
  };
110976
 
110977
+ /***/ }),
110978
+
110979
+ /***/ 38698:
110980
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
110981
+
110982
+ "use strict";
110983
+ /** @license React v16.14.0
110984
+ * react-dom-server.browser.production.min.js
110985
+ *
110986
+ * Copyright (c) Facebook, Inc. and its affiliates.
110987
+ *
110988
+ * This source code is licensed under the MIT license found in the
110989
+ * LICENSE file in the root directory of this source tree.
110990
+ */
110991
+
110992
+ var k=__webpack_require__(27418),l=__webpack_require__(67294);function q(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
110993
+ var t="function"===typeof Symbol&&Symbol.for,aa=t?Symbol.for("react.portal"):60106,u=t?Symbol.for("react.fragment"):60107,ba=t?Symbol.for("react.strict_mode"):60108,ca=t?Symbol.for("react.profiler"):60114,v=t?Symbol.for("react.provider"):60109,da=t?Symbol.for("react.context"):60110,ea=t?Symbol.for("react.concurrent_mode"):60111,fa=t?Symbol.for("react.forward_ref"):60112,B=t?Symbol.for("react.suspense"):60113,ha=t?Symbol.for("react.suspense_list"):60120,ia=t?Symbol.for("react.memo"):60115,ja=t?Symbol.for("react.lazy"):
110994
+ 60116,ka=t?Symbol.for("react.block"):60121,la=t?Symbol.for("react.fundamental"):60117,ma=t?Symbol.for("react.scope"):60119;function na(a){if(-1===a._status){a._status=0;var b=a._ctor;b=b();a._result=b;b.then(function(c){0===a._status&&(c=c.default,a._status=1,a._result=c)},function(c){0===a._status&&(a._status=2,a._result=c)})}}
110995
+ function C(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case u:return"Fragment";case aa:return"Portal";case ca:return"Profiler";case ba:return"StrictMode";case B:return"Suspense";case ha:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case da:return"Context.Consumer";case v:return"Context.Provider";case fa:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");
110996
+ case ia:return C(a.type);case ka:return C(a.render);case ja:if(a=1===a._status?a._result:null)return C(a)}return null}var D=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;D.hasOwnProperty("ReactCurrentDispatcher")||(D.ReactCurrentDispatcher={current:null});D.hasOwnProperty("ReactCurrentBatchConfig")||(D.ReactCurrentBatchConfig={suspense:null});var oa={};function E(a,b){for(var c=a._threadCount|0;c<=b;c++)a[c]=a._currentValue2,a._threadCount=c+1}
110997
+ function pa(a,b,c,d){if(d&&(d=a.contextType,"object"===typeof d&&null!==d))return E(d,c),d[c];if(a=a.contextTypes){c={};for(var f in a)c[f]=b[f];b=c}else b=oa;return b}for(var F=new Uint16Array(16),H=0;15>H;H++)F[H]=H+1;F[15]=0;
110998
+ var qa=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ra=Object.prototype.hasOwnProperty,sa={},ta={};
110999
+ function ua(a){if(ra.call(ta,a))return!0;if(ra.call(sa,a))return!1;if(qa.test(a))return ta[a]=!0;sa[a]=!0;return!1}function va(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}
111000
+ function wa(a,b,c,d){if(null===b||"undefined"===typeof b||va(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function J(a,b,c,d,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=f;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=g}var K={};
111001
+ "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){K[a]=new J(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];K[b]=new J(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){K[a]=new J(a,2,!1,a.toLowerCase(),null,!1)});
111002
+ ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){K[a]=new J(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){K[a]=new J(a,3,!1,a.toLowerCase(),null,!1)});
111003
+ ["checked","multiple","muted","selected"].forEach(function(a){K[a]=new J(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){K[a]=new J(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){K[a]=new J(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){K[a]=new J(a,5,!1,a.toLowerCase(),null,!1)});var L=/[\-:]([a-z])/g;function M(a){return a[1].toUpperCase()}
111004
+ "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(L,
111005
+ M);K[b]=new J(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(L,M);K[b]=new J(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(L,M);K[b]=new J(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){K[a]=new J(a,1,!1,a.toLowerCase(),null,!1)});
111006
+ K.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){K[a]=new J(a,1,!1,a.toLowerCase(),null,!0)});var xa=/["'&<>]/;
111007
+ function N(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=xa.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b="&quot;";break;case 38:b="&amp;";break;case 39:b="&#x27;";break;case 60:b="&lt;";break;case 62:b="&gt;";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b}a=f!==d?c+a.substring(f,d):c}return a}
111008
+ function ya(a,b){var c=K.hasOwnProperty(a)?K[a]:null;var d;if(d="style"!==a)d=null!==c?0===c.type:!(2<a.length)||"o"!==a[0]&&"O"!==a[0]||"n"!==a[1]&&"N"!==a[1]?!1:!0;if(d||wa(a,b,c,!1))return"";if(null!==c){a=c.attributeName;d=c.type;if(3===d||4===d&&!0===b)return a+'=""';c.sanitizeURL&&(b=""+b);return a+'="'+(N(b)+'"')}return ua(a)?a+'="'+(N(b)+'"'):""}function za(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}
111009
+ var Aa="function"===typeof Object.is?Object.is:za,O=null,P=null,Q=null,R=!1,S=!1,U=null,V=0;function W(){if(null===O)throw Error(q(321));return O}function Ba(){if(0<V)throw Error(q(312));return{memoizedState:null,queue:null,next:null}}function Ca(){null===Q?null===P?(R=!1,P=Q=Ba()):(R=!0,Q=P):null===Q.next?(R=!1,Q=Q.next=Ba()):(R=!0,Q=Q.next);return Q}function Da(a,b,c,d){for(;S;)S=!1,V+=1,Q=null,c=a(b,d);P=O=null;V=0;Q=U=null;return c}function Ea(a,b){return"function"===typeof b?b(a):b}
111010
+ function Fa(a,b,c){O=W();Q=Ca();if(R){var d=Q.queue;b=d.dispatch;if(null!==U&&(c=U.get(d),void 0!==c)){U.delete(d);d=Q.memoizedState;do d=a(d,c.action),c=c.next;while(null!==c);Q.memoizedState=d;return[d,b]}return[Q.memoizedState,b]}a=a===Ea?"function"===typeof b?b():b:void 0!==c?c(b):b;Q.memoizedState=a;a=Q.queue={last:null,dispatch:null};a=a.dispatch=Ga.bind(null,O,a);return[Q.memoizedState,a]}
111011
+ function Ga(a,b,c){if(!(25>V))throw Error(q(301));if(a===O)if(S=!0,a={action:c,next:null},null===U&&(U=new Map),c=U.get(b),void 0===c)U.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function Ha(){}
111012
+ var X=0,Ia={readContext:function(a){var b=X;E(a,b);return a[b]},useContext:function(a){W();var b=X;E(a,b);return a[b]},useMemo:function(a,b){O=W();Q=Ca();b=void 0===b?null:b;if(null!==Q){var c=Q.memoizedState;if(null!==c&&null!==b){a:{var d=c[1];if(null===d)d=!1;else{for(var f=0;f<d.length&&f<b.length;f++)if(!Aa(b[f],d[f])){d=!1;break a}d=!0}}if(d)return c[0]}}a=a();Q.memoizedState=[a,b];return a},useReducer:Fa,useRef:function(a){O=W();Q=Ca();var b=Q.memoizedState;return null===b?(a={current:a},Q.memoizedState=
111013
+ a):b},useState:function(a){return Fa(Ea,a)},useLayoutEffect:function(){},useCallback:function(a){return a},useImperativeHandle:Ha,useEffect:Ha,useDebugValue:Ha,useResponder:function(a,b){return{props:b,responder:a}},useDeferredValue:function(a){W();return a},useTransition:function(){W();return[function(a){a()},!1]}},Ja={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
111014
+ function Ka(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
111015
+ var La={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ma=k({menuitem:!0},La),Y={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,
111016
+ gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Na=["Webkit","ms","Moz","O"];Object.keys(Y).forEach(function(a){Na.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Y[b]=Y[a]})});
111017
+ var Oa=/([A-Z])/g,Pa=/^ms-/,Z=l.Children.toArray,Qa=D.ReactCurrentDispatcher,Ra={listing:!0,pre:!0,textarea:!0},Sa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ta={},Ua={};function Va(a){if(void 0===a||null===a)return a;var b="";l.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Wa=Object.prototype.hasOwnProperty,Xa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ya(a,b){if(void 0===a)throw Error(q(152,C(b)||"Component"));}
111018
+ function Za(a,b,c){function d(d,g){var e=g.prototype&&g.prototype.isReactComponent,f=pa(g,b,c,e),x=[],h=!1,m={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===x)return null},enqueueReplaceState:function(a,c){h=!0;x=[c]},enqueueSetState:function(a,c){if(null===x)return null;x.push(c)}};if(e){if(e=new g(d.props,f,m),"function"===typeof g.getDerivedStateFromProps){var w=g.getDerivedStateFromProps.call(null,d.props,e.state);null!=w&&(e.state=k({},e.state,w))}}else if(O={},e=g(d.props,
111019
+ f,m),e=Da(g,d.props,e,f),null==e||null==e.render){a=e;Ya(a,g);return}e.props=d.props;e.context=f;e.updater=m;m=e.state;void 0===m&&(e.state=m=null);if("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount)if("function"===typeof e.componentWillMount&&"function"!==typeof g.getDerivedStateFromProps&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&"function"!==typeof g.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),x.length){m=x;var r=
111020
+ h;x=null;h=!1;if(r&&1===m.length)e.state=m[0];else{w=r?m[0]:e.state;var y=!0;for(r=r?1:0;r<m.length;r++){var p=m[r];p="function"===typeof p?p.call(e,w,d.props,f):p;null!=p&&(y?(y=!1,w=k({},w,p)):k(w,p))}e.state=w}}else x=null;a=e.render();Ya(a,g);if("function"===typeof e.getChildContext&&(d=g.childContextTypes,"object"===typeof d)){var A=e.getChildContext();for(var T in A)if(!(T in d))throw Error(q(108,C(g)||"Unknown",T));}A&&(b=k({},b,A))}for(;l.isValidElement(a);){var f=a,g=f.type;if("function"!==
111021
+ typeof g)break;d(f,g)}return{child:a,context:b}}
111022
+ var $a=function(){function a(a,b){l.isValidElement(a)?a.type!==u?a=[a]:(a=a.props.children,a=l.isValidElement(a)?[a]:Z(a)):a=Z(a);a={type:null,domNamespace:Ja.html,children:a,childIndex:0,context:oa,footer:""};var c=F[0];if(0===c){var g=F;c=g.length;var d=2*c;if(!(65536>=d))throw Error(q(304));var h=new Uint16Array(d);h.set(g);F=h;F[0]=c+1;for(g=c;g<d-1;g++)F[g]=g+1;F[d-1]=0}else F[0]=F[c];this.threadID=c;this.stack=[a];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=
111023
+ b;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}var b=a.prototype;b.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var a=this.threadID;F[a]=F[0];F[0]=a}};b.pushProvider=function(a){var c=++this.contextIndex,b=a.type._context,g=this.threadID;E(b,g);var x=b[g];this.contextStack[c]=b;this.contextValueStack[c]=x;b[g]=a.props.value};b.popProvider=function(){var a=this.contextIndex,b=this.contextStack[a],f=this.contextValueStack[a];
111024
+ this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;b[this.threadID]=f};b.clearProviders=function(){for(var a=this.contextIndex;0<=a;a--)this.contextStack[a][this.threadID]=this.contextValueStack[a]};b.read=function(a){if(this.exhausted)return null;var b=X;X=this.threadID;var c=Qa.current;Qa.current=Ia;try{for(var g=[""],x=!1;g[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var h=this.threadID;F[h]=F[0];F[0]=h;break}var e=this.stack[this.stack.length-1];if(x||e.childIndex>=
111025
+ e.children.length){var I=e.footer;""!==I&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===e.type)this.currentSelectValue=null;else if(null!=e.type&&null!=e.type.type&&e.type.type.$$typeof===v)this.popProvider(e.type);else if(e.type===B){this.suspenseDepth--;var G=g.pop();if(x){x=!1;var n=e.fallbackFrame;if(!n)throw Error(q(303));this.stack.push(n);g[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else g[this.suspenseDepth]+=G}g[this.suspenseDepth]+=I}else{var m=e.children[e.childIndex++],
111026
+ w="";try{w+=this.render(m,e.context,e.domNamespace)}catch(r){if(null!=r&&"function"===typeof r.then)throw Error(q(294));throw r;}finally{}g.length<=this.suspenseDepth&&g.push("");g[this.suspenseDepth]+=w}}return g[0]}finally{Qa.current=c,X=b}};b.render=function(a,b,f){if("string"===typeof a||"number"===typeof a){f=""+a;if(""===f)return"";if(this.makeStaticMarkup)return N(f);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+N(f);this.previousWasTextNode=!0;return N(f)}b=Za(a,b,this.threadID);a=b.child;
111027
+ b=b.context;if(null===a||!1===a)return"";if(!l.isValidElement(a)){if(null!=a&&null!=a.$$typeof){f=a.$$typeof;if(f===aa)throw Error(q(257));throw Error(q(258,f.toString()));}a=Z(a);this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""});return""}var c=a.type;if("string"===typeof c)return this.renderDOM(a,b,f);switch(c){case ba:case ea:case ca:case ha:case u:return a=Z(a.props.children),this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),
111028
+ "";case B:throw Error(q(294));}if("object"===typeof c&&null!==c)switch(c.$$typeof){case fa:O={};var d=c.render(a.props,a.ref);d=Da(c.render,a.props,d,a.ref);d=Z(d);this.stack.push({type:null,domNamespace:f,children:d,childIndex:0,context:b,footer:""});return"";case ia:return a=[l.createElement(c.type,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case v:return c=Z(a.props.children),f={type:a,domNamespace:f,children:c,childIndex:0,
111029
+ context:b,footer:""},this.pushProvider(a),this.stack.push(f),"";case da:c=a.type;d=a.props;var h=this.threadID;E(c,h);c=Z(d.children(c[h]));this.stack.push({type:a,domNamespace:f,children:c,childIndex:0,context:b,footer:""});return"";case la:throw Error(q(338));case ja:switch(c=a.type,na(c),c._status){case 1:return a=[l.createElement(c._result,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case 2:throw c._result;default:throw Error(q(295));
111030
+ }case ma:throw Error(q(343));}throw Error(q(130,null==c?c:typeof c,""));};b.renderDOM=function(a,b,f){var c=a.type.toLowerCase();f===Ja.html&&Ka(c);if(!Ta.hasOwnProperty(c)){if(!Sa.test(c))throw Error(q(65,c));Ta[c]=!0}var d=a.props;if("input"===c)d=k({type:void 0},d,{defaultChecked:void 0,defaultValue:void 0,value:null!=d.value?d.value:d.defaultValue,checked:null!=d.checked?d.checked:d.defaultChecked});else if("textarea"===c){var h=d.value;if(null==h){h=d.defaultValue;var e=d.children;if(null!=e){if(null!=
111031
+ h)throw Error(q(92));if(Array.isArray(e)){if(!(1>=e.length))throw Error(q(93));e=e[0]}h=""+e}null==h&&(h="")}d=k({},d,{value:void 0,children:""+h})}else if("select"===c)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=k({},d,{value:void 0});else if("option"===c){e=this.currentSelectValue;var I=Va(d.children);if(null!=e){var G=null!=d.value?d.value+"":I;h=!1;if(Array.isArray(e))for(var n=0;n<e.length;n++){if(""+e[n]===G){h=!0;break}}else h=""+e===G;d=k({selected:void 0,children:void 0},
111032
+ d,{selected:h,children:I})}}if(h=d){if(Ma[c]&&(null!=h.children||null!=h.dangerouslySetInnerHTML))throw Error(q(137,c,""));if(null!=h.dangerouslySetInnerHTML){if(null!=h.children)throw Error(q(60));if(!("object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML))throw Error(q(61));}if(null!=h.style&&"object"!==typeof h.style)throw Error(q(62,""));}h=d;e=this.makeStaticMarkup;I=1===this.stack.length;G="<"+a.type;for(z in h)if(Wa.call(h,z)){var m=h[z];if(null!=m){if("style"===
111033
+ z){n=void 0;var w="",r="";for(n in m)if(m.hasOwnProperty(n)){var y=0===n.indexOf("--"),p=m[n];if(null!=p){if(y)var A=n;else if(A=n,Ua.hasOwnProperty(A))A=Ua[A];else{var T=A.replace(Oa,"-$1").toLowerCase().replace(Pa,"-ms-");A=Ua[A]=T}w+=r+A+":";r=n;y=null==p||"boolean"===typeof p||""===p?"":y||"number"!==typeof p||0===p||Y.hasOwnProperty(r)&&Y[r]?(""+p).trim():p+"px";w+=y;r=";"}}m=w||null}n=null;b:if(y=c,p=h,-1===y.indexOf("-"))y="string"===typeof p.is;else switch(y){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":y=
111034
+ !1;break b;default:y=!0}y?Xa.hasOwnProperty(z)||(n=z,n=ua(n)&&null!=m?n+'="'+(N(m)+'"'):""):n=ya(z,m);n&&(G+=" "+n)}}e||I&&(G+=' data-reactroot=""');var z=G;h="";La.hasOwnProperty(c)?z+="/>":(z+=">",h="</"+a.type+">");a:{e=d.dangerouslySetInnerHTML;if(null!=e){if(null!=e.__html){e=e.__html;break a}}else if(e=d.children,"string"===typeof e||"number"===typeof e){e=N(e);break a}e=null}null!=e?(d=[],Ra.hasOwnProperty(c)&&"\n"===e.charAt(0)&&(z+="\n"),z+=e):d=Z(d.children);a=a.type;f=null==f||"http://www.w3.org/1999/xhtml"===
111035
+ f?Ka(a):"http://www.w3.org/2000/svg"===f&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":f;this.stack.push({domNamespace:f,type:c,children:d,childIndex:0,context:b,footer:h});this.previousWasTextNode=!1;return z};return a}(),ab={renderToString:function(a){a=new $a(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new $a(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){throw Error(q(207));},renderToStaticNodeStream:function(){throw Error(q(208));
111036
+ },version:"16.14.0"};module.exports=ab.default||ab;
111037
+
111038
+
111039
  /***/ }),
111040
 
111041
  /***/ 64448:
111371
  } else {}
111372
 
111373
 
111374
+ /***/ }),
111375
+
111376
+ /***/ 97762:
111377
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
111378
+
111379
+ "use strict";
111380
+
111381
+
111382
+ if (true) {
111383
+ module.exports = __webpack_require__(38698);
111384
+ } else {}
111385
+
111386
+
111387
  /***/ }),
111388
 
111389
  /***/ 19928:
114674
  module.exports = v4;
114675
 
114676
 
114677
+ /***/ }),
114678
+
114679
+ /***/ 93235:
114680
+ /***/ (function(module, exports, __webpack_require__) {
114681
+
114682
+ "use strict";
114683
+
114684
+
114685
+ Object.defineProperty(exports, "__esModule", ({
114686
+ value: true
114687
+ }));
114688
+ exports.default = isByteLength;
114689
+
114690
+ var _assertString = _interopRequireDefault(__webpack_require__(65571));
114691
+
114692
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
114693
+
114694
+ 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); }
114695
+
114696
+ /* eslint-disable prefer-rest-params */
114697
+ function isByteLength(str, options) {
114698
+ (0, _assertString.default)(str);
114699
+ var min;
114700
+ var max;
114701
+
114702
+ if (_typeof(options) === 'object') {
114703
+ min = options.min || 0;
114704
+ max = options.max;
114705
+ } else {
114706
+ // backwards compatibility: isByteLength(str, min [, max])
114707
+ min = arguments[1];
114708
+ max = arguments[2];
114709
+ }
114710
+
114711
+ var len = encodeURI(str).split(/%..|./).length - 1;
114712
+ return len >= min && (typeof max === 'undefined' || len <= max);
114713
+ }
114714
+
114715
+ module.exports = exports.default;
114716
+ module.exports.default = exports.default;
114717
+
114718
+ /***/ }),
114719
+
114720
+ /***/ 83868:
114721
+ /***/ (function(module, exports, __webpack_require__) {
114722
+
114723
+ "use strict";
114724
+
114725
+
114726
+ Object.defineProperty(exports, "__esModule", ({
114727
+ value: true
114728
+ }));
114729
+ exports.default = isEmail;
114730
+
114731
+ var _assertString = _interopRequireDefault(__webpack_require__(65571));
114732
+
114733
+ var _merge = _interopRequireDefault(__webpack_require__(84808));
114734
+
114735
+ var _isByteLength = _interopRequireDefault(__webpack_require__(93235));
114736
+
114737
+ var _isFQDN = _interopRequireDefault(__webpack_require__(10221));
114738
+
114739
+ var _isIP = _interopRequireDefault(__webpack_require__(61028));
114740
+
114741
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
114742
+
114743
+ var default_email_options = {
114744
+ allow_display_name: false,
114745
+ require_display_name: false,
114746
+ allow_utf8_local_part: true,
114747
+ require_tld: true,
114748
+ blacklisted_chars: '',
114749
+ ignore_max_length: false,
114750
+ host_blacklist: []
114751
+ };
114752
+ /* eslint-disable max-len */
114753
+
114754
+ /* eslint-disable no-control-regex */
114755
+
114756
+ var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i;
114757
+ var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
114758
+ var gmailUserPart = /^[a-z\d]+$/;
114759
+ var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
114760
+ var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
114761
+ var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
114762
+ var defaultMaxEmailLength = 254;
114763
+ /* eslint-enable max-len */
114764
+
114765
+ /* eslint-enable no-control-regex */
114766
+
114767
+ /**
114768
+ * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2
114769
+ * @param {String} display_name
114770
+ */
114771
+
114772
+ function validateDisplayName(display_name) {
114773
+ var display_name_without_quotes = display_name.replace(/^"(.+)"$/, '$1'); // display name with only spaces is not valid
114774
+
114775
+ if (!display_name_without_quotes.trim()) {
114776
+ return false;
114777
+ } // check whether display name contains illegal character
114778
+
114779
+
114780
+ var contains_illegal = /[\.";<>]/.test(display_name_without_quotes);
114781
+
114782
+ if (contains_illegal) {
114783
+ // if contains illegal characters,
114784
+ // must to be enclosed in double-quotes, otherwise it's not a valid display name
114785
+ if (display_name_without_quotes === display_name) {
114786
+ return false;
114787
+ } // the quotes in display name must start with character symbol \
114788
+
114789
+
114790
+ var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length;
114791
+
114792
+ if (!all_start_with_back_slash) {
114793
+ return false;
114794
+ }
114795
+ }
114796
+
114797
+ return true;
114798
+ }
114799
+
114800
+ function isEmail(str, options) {
114801
+ (0, _assertString.default)(str);
114802
+ options = (0, _merge.default)(options, default_email_options);
114803
+
114804
+ if (options.require_display_name || options.allow_display_name) {
114805
+ var display_email = str.match(splitNameAddress);
114806
+
114807
+ if (display_email) {
114808
+ var display_name = display_email[1]; // Remove display name and angle brackets to get email address
114809
+ // Can be done in the regex but will introduce a ReDOS (See #1597 for more info)
114810
+
114811
+ str = str.replace(display_name, '').replace(/(^<|>$)/g, ''); // sometimes need to trim the last space to get the display name
114812
+ // because there may be a space between display name and email address
114813
+ // eg. myname <address@gmail.com>
114814
+ // the display name is `myname` instead of `myname `, so need to trim the last space
114815
+
114816
+ if (display_name.endsWith(' ')) {
114817
+ display_name = display_name.substr(0, display_name.length - 1);
114818
+ }
114819
+
114820
+ if (!validateDisplayName(display_name)) {
114821
+ return false;
114822
+ }
114823
+ } else if (options.require_display_name) {
114824
+ return false;
114825
+ }
114826
+ }
114827
+
114828
+ if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {
114829
+ return false;
114830
+ }
114831
+
114832
+ var parts = str.split('@');
114833
+ var domain = parts.pop();
114834
+ var lower_domain = domain.toLowerCase();
114835
+
114836
+ if (options.host_blacklist.includes(lower_domain)) {
114837
+ return false;
114838
+ }
114839
+
114840
+ var user = parts.join('@');
114841
+
114842
+ if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {
114843
+ /*
114844
+ Previously we removed dots for gmail addresses before validating.
114845
+ This was removed because it allows `multiple..dots@gmail.com`
114846
+ to be reported as valid, but it is not.
114847
+ Gmail only normalizes single dots, removing them from here is pointless,
114848
+ should be done in normalizeEmail
114849
+ */
114850
+ user = user.toLowerCase(); // Removing sub-address from username before gmail validation
114851
+
114852
+ var username = user.split('+')[0]; // Dots are not included in gmail length restriction
114853
+
114854
+ if (!(0, _isByteLength.default)(username.replace(/\./g, ''), {
114855
+ min: 6,
114856
+ max: 30
114857
+ })) {
114858
+ return false;
114859
+ }
114860
+
114861
+ var _user_parts = username.split('.');
114862
+
114863
+ for (var i = 0; i < _user_parts.length; i++) {
114864
+ if (!gmailUserPart.test(_user_parts[i])) {
114865
+ return false;
114866
+ }
114867
+ }
114868
+ }
114869
+
114870
+ if (options.ignore_max_length === false && (!(0, _isByteLength.default)(user, {
114871
+ max: 64
114872
+ }) || !(0, _isByteLength.default)(domain, {
114873
+ max: 254
114874
+ }))) {
114875
+ return false;
114876
+ }
114877
+
114878
+ if (!(0, _isFQDN.default)(domain, {
114879
+ require_tld: options.require_tld
114880
+ })) {
114881
+ if (!options.allow_ip_domain) {
114882
+ return false;
114883
+ }
114884
+
114885
+ if (!(0, _isIP.default)(domain)) {
114886
+ if (!domain.startsWith('[') || !domain.endsWith(']')) {
114887
+ return false;
114888
+ }
114889
+
114890
+ var noBracketdomain = domain.substr(1, domain.length - 2);
114891
+
114892
+ if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) {
114893
+ return false;
114894
+ }
114895
+ }
114896
+ }
114897
+
114898
+ if (user[0] === '"') {
114899
+ user = user.slice(1, user.length - 1);
114900
+ return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
114901
+ }
114902
+
114903
+ var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
114904
+ var user_parts = user.split('.');
114905
+
114906
+ for (var _i = 0; _i < user_parts.length; _i++) {
114907
+ if (!pattern.test(user_parts[_i])) {
114908
+ return false;
114909
+ }
114910
+ }
114911
+
114912
+ if (options.blacklisted_chars) {
114913
+ if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), 'g')) !== -1) return false;
114914
+ }
114915
+
114916
+ return true;
114917
+ }
114918
+
114919
+ module.exports = exports.default;
114920
+ module.exports.default = exports.default;
114921
+
114922
+ /***/ }),
114923
+
114924
+ /***/ 10221:
114925
+ /***/ (function(module, exports, __webpack_require__) {
114926
+
114927
+ "use strict";
114928
+
114929
+
114930
+ Object.defineProperty(exports, "__esModule", ({
114931
+ value: true
114932
+ }));
114933
+ exports.default = isFQDN;
114934
+
114935
+ var _assertString = _interopRequireDefault(__webpack_require__(65571));
114936
+
114937
+ var _merge = _interopRequireDefault(__webpack_require__(84808));
114938
+
114939
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
114940
+
114941
+ var default_fqdn_options = {
114942
+ require_tld: true,
114943
+ allow_underscores: false,
114944
+ allow_trailing_dot: false,
114945
+ allow_numeric_tld: false,
114946
+ allow_wildcard: false
114947
+ };
114948
+
114949
+ function isFQDN(str, options) {
114950
+ (0, _assertString.default)(str);
114951
+ options = (0, _merge.default)(options, default_fqdn_options);
114952
+ /* Remove the optional trailing dot before checking validity */
114953
+
114954
+ if (options.allow_trailing_dot && str[str.length - 1] === '.') {
114955
+ str = str.substring(0, str.length - 1);
114956
+ }
114957
+ /* Remove the optional wildcard before checking validity */
114958
+
114959
+
114960
+ if (options.allow_wildcard === true && str.indexOf('*.') === 0) {
114961
+ str = str.substring(2);
114962
+ }
114963
+
114964
+ var parts = str.split('.');
114965
+ var tld = parts[parts.length - 1];
114966
+
114967
+ if (options.require_tld) {
114968
+ // disallow fqdns without tld
114969
+ if (parts.length < 2) {
114970
+ return false;
114971
+ }
114972
+
114973
+ if (!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
114974
+ return false;
114975
+ } // disallow spaces
114976
+
114977
+
114978
+ if (/\s/.test(tld)) {
114979
+ return false;
114980
+ }
114981
+ } // reject numeric TLDs
114982
+
114983
+
114984
+ if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
114985
+ return false;
114986
+ }
114987
+
114988
+ return parts.every(function (part) {
114989
+ if (part.length > 63) {
114990
+ return false;
114991
+ }
114992
+
114993
+ if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
114994
+ return false;
114995
+ } // disallow full-width chars
114996
+
114997
+
114998
+ if (/[\uff01-\uff5e]/.test(part)) {
114999
+ return false;
115000
+ } // disallow parts starting or ending with hyphen
115001
+
115002
+
115003
+ if (/^-|-$/.test(part)) {
115004
+ return false;
115005
+ }
115006
+
115007
+ if (!options.allow_underscores && /_/.test(part)) {
115008
+ return false;
115009
+ }
115010
+
115011
+ return true;
115012
+ });
115013
+ }
115014
+
115015
+ module.exports = exports.default;
115016
+ module.exports.default = exports.default;
115017
+
115018
+ /***/ }),
115019
+
115020
+ /***/ 61028:
115021
+ /***/ (function(module, exports, __webpack_require__) {
115022
+
115023
+ "use strict";
115024
+
115025
+
115026
+ Object.defineProperty(exports, "__esModule", ({
115027
+ value: true
115028
+ }));
115029
+ exports.default = isIP;
115030
+
115031
+ var _assertString = _interopRequireDefault(__webpack_require__(65571));
115032
+
115033
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
115034
+
115035
+ /**
115036
+ 11.3. Examples
115037
+
115038
+ The following addresses
115039
+
115040
+ fe80::1234 (on the 1st link of the node)
115041
+ ff02::5678 (on the 5th link of the node)
115042
+ ff08::9abc (on the 10th organization of the node)
115043
+
115044
+ would be represented as follows:
115045
+
115046
+ fe80::1234%1
115047
+ ff02::5678%5
115048
+ ff08::9abc%10
115049
+
115050
+ (Here we assume a natural translation from a zone index to the
115051
+ <zone_id> part, where the Nth zone of any scope is translated into
115052
+ "N".)
115053
+
115054
+ If we use interface names as <zone_id>, those addresses could also be
115055
+ represented as follows:
115056
+
115057
+ fe80::1234%ne0
115058
+ ff02::5678%pvc1.3
115059
+ ff08::9abc%interface10
115060
+
115061
+ where the interface "ne0" belongs to the 1st link, "pvc1.3" belongs
115062
+ to the 5th link, and "interface10" belongs to the 10th organization.
115063
+ * * */
115064
+ var IPv4SegmentFormat = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';
115065
+ var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
115066
+ var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
115067
+ var IPv6SegmentFormat = '(?:[0-9a-fA-F]{1,4})';
115068
+ var IPv6AddressRegExp = new RegExp('^(' + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ')(%[0-9a-zA-Z-.:]{1,})?$');
115069
+
115070
+ function isIP(str) {
115071
+ var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
115072
+ (0, _assertString.default)(str);
115073
+ version = String(version);
115074
+
115075
+ if (!version) {
115076
+ return isIP(str, 4) || isIP(str, 6);
115077
+ }
115078
+
115079
+ if (version === '4') {
115080
+ if (!IPv4AddressRegExp.test(str)) {
115081
+ return false;
115082
+ }
115083
+
115084
+ var parts = str.split('.').sort(function (a, b) {
115085
+ return a - b;
115086
+ });
115087
+ return parts[3] <= 255;
115088
+ }
115089
+
115090
+ if (version === '6') {
115091
+ return !!IPv6AddressRegExp.test(str);
115092
+ }
115093
+
115094
+ return false;
115095
+ }
115096
+
115097
+ module.exports = exports.default;
115098
+ module.exports.default = exports.default;
115099
+
115100
+ /***/ }),
115101
+
115102
+ /***/ 28355:
115103
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
115104
+
115105
+ "use strict";
115106
+ var __webpack_unused_export__;
115107
+
115108
+
115109
+ __webpack_unused_export__ = ({
115110
+ value: true
115111
+ });
115112
+ exports.ZP = isMobilePhone;
115113
+ __webpack_unused_export__ = void 0;
115114
+
115115
+ var _assertString = _interopRequireDefault(__webpack_require__(65571));
115116
+
115117
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
115118
+
115119
+ /* eslint-disable max-len */
115120
+ var phones = {
115121
+ 'am-AM': /^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,
115122
+ 'ar-AE': /^((\+?971)|0)?5[024568]\d{7}$/,
115123
+ 'ar-BH': /^(\+?973)?(3|6)\d{7}$/,
115124
+ 'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/,
115125
+ 'ar-LB': /^(\+?961)?((3|81)\d{6}|7\d{7})$/,
115126
+ 'ar-EG': /^((\+?20)|0)?1[0125]\d{8}$/,
115127
+ 'ar-IQ': /^(\+?964|0)?7[0-9]\d{8}$/,
115128
+ 'ar-JO': /^(\+?962|0)?7[789]\d{7}$/,
115129
+ 'ar-KW': /^(\+?965)[569]\d{7}$/,
115130
+ 'ar-LY': /^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,
115131
+ 'ar-MA': /^(?:(?:\+|00)212|0)[5-7]\d{8}$/,
115132
+ 'ar-OM': /^((\+|00)968)?(9[1-9])\d{6}$/,
115133
+ 'ar-PS': /^(\+?970|0)5[6|9](\d{7})$/,
115134
+ 'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/,
115135
+ 'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/,
115136
+ 'ar-TN': /^(\+?216)?[2459]\d{7}$/,
115137
+ 'az-AZ': /^(\+994|0)(5[015]|7[07]|99)\d{7}$/,
115138
+ 'bs-BA': /^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,
115139
+ 'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/,
115140
+ 'bg-BG': /^(\+?359|0)?8[789]\d{7}$/,
115141
+ 'bn-BD': /^(\+?880|0)1[13456789][0-9]{8}$/,
115142
+ 'ca-AD': /^(\+376)?[346]\d{5}$/,
115143
+ 'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
115144
+ 'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
115145
+ 'de-DE': /^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,
115146
+ 'de-AT': /^(\+43|0)\d{1,4}\d{3,12}$/,
115147
+ 'de-CH': /^(\+41|0)([1-9])\d{1,9}$/,
115148
+ 'de-LU': /^(\+352)?((6\d1)\d{6})$/,
115149
+ 'dv-MV': /^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,
115150
+ 'el-GR': /^(\+?30|0)?(69\d{8})$/,
115151
+ 'en-AU': /^(\+?61|0)4\d{8}$/,
115152
+ 'en-BM': /^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,
115153
+ 'en-GB': /^(\+?44|0)7\d{9}$/,
115154
+ 'en-GG': /^(\+?44|0)1481\d{6}$/,
115155
+ 'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,
115156
+ 'en-GY': /^(\+592|0)6\d{6}$/,
115157
+ 'en-HK': /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,
115158
+ 'en-MO': /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,
115159
+ 'en-IE': /^(\+?353|0)8[356789]\d{7}$/,
115160
+ 'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
115161
+ 'en-KE': /^(\+?254|0)(7|1)\d{8}$/,
115162
+ 'en-KI': /^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,
115163
+ 'en-MT': /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,
115164
+ 'en-MU': /^(\+?230|0)?\d{8}$/,
115165
+ 'en-NA': /^(\+?264|0)(6|8)\d{7}$/,
115166
+ 'en-NG': /^(\+?234|0)?[789]\d{9}$/,
115167
+ 'en-NZ': /^(\+?64|0)[28]\d{7,9}$/,
115168
+ 'en-PK': /^((00|\+)?92|0)3[0-6]\d{8}$/,
115169
+ 'en-PH': /^(09|\+639)\d{9}$/,
115170
+ 'en-RW': /^(\+?250|0)?[7]\d{8}$/,
115171
+ 'en-SG': /^(\+65)?[3689]\d{7}$/,
115172
+ 'en-SL': /^(\+?232|0)\d{8}$/,
115173
+ 'en-TZ': /^(\+?255|0)?[67]\d{8}$/,
115174
+ 'en-UG': /^(\+?256|0)?[7]\d{8}$/,
115175
+ 'en-US': /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,
115176
+ 'en-ZA': /^(\+?27|0)\d{9}$/,
115177
+ 'en-ZM': /^(\+?26)?09[567]\d{7}$/,
115178
+ 'en-ZW': /^(\+263)[0-9]{9}$/,
115179
+ 'en-BW': /^(\+?267)?(7[1-8]{1})\d{6}$/,
115180
+ 'es-AR': /^\+?549(11|[2368]\d)\d{8}$/,
115181
+ 'es-BO': /^(\+?591)?(6|7)\d{7}$/,
115182
+ 'es-CO': /^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,
115183
+ 'es-CL': /^(\+?56|0)[2-9]\d{1}\d{7}$/,
115184
+ 'es-CR': /^(\+506)?[2-8]\d{7}$/,
115185
+ 'es-CU': /^(\+53|0053)?5\d{7}/,
115186
+ 'es-DO': /^(\+?1)?8[024]9\d{7}$/,
115187
+ 'es-HN': /^(\+?504)?[9|8]\d{7}$/,
115188
+ 'es-EC': /^(\+?593|0)([2-7]|9[2-9])\d{7}$/,
115189
+ 'es-ES': /^(\+?34)?[6|7]\d{8}$/,
115190
+ 'es-PE': /^(\+?51)?9\d{8}$/,
115191
+ 'es-MX': /^(\+?52)?(1|01)?\d{10,11}$/,
115192
+ 'es-PA': /^(\+?507)\d{7,8}$/,
115193
+ 'es-PY': /^(\+?595|0)9[9876]\d{7}$/,
115194
+ 'es-SV': /^(\+?503)?[67]\d{7}$/,
115195
+ 'es-UY': /^(\+598|0)9[1-9][\d]{6}$/,
115196
+ 'es-VE': /^(\+?58)?(2|4)\d{9}$/,
115197
+ 'et-EE': /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,
115198
+ 'fa-IR': /^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,
115199
+ 'fi-FI': /^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,
115200
+ 'fj-FJ': /^(\+?679)?\s?\d{3}\s?\d{4}$/,
115201
+ 'fo-FO': /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
115202
+ 'fr-BF': /^(\+226|0)[67]\d{7}$/,
115203
+ 'fr-CM': /^(\+?237)6[0-9]{8}$/,
115204
+ 'fr-FR': /^(\+?33|0)[67]\d{8}$/,
115205
+ 'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/,
115206
+ 'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/,
115207
+ 'fr-MQ': /^(\+?596|0|00596)[67]\d{8}$/,
115208
+ 'fr-PF': /^(\+?689)?8[789]\d{6}$/,
115209
+ 'fr-RE': /^(\+?262|0|00262)[67]\d{8}$/,
115210
+ 'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,
115211
+ 'hu-HU': /^(\+?36|06)(20|30|31|50|70)\d{7}$/,
115212
+ 'id-ID': /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,
115213
+ 'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
115214
+ 'it-SM': /^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,
115215
+ 'ja-JP': /^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,
115216
+ 'ka-GE': /^(\+?995)?(5|79)\d{7}$/,
115217
+ 'kk-KZ': /^(\+?7|8)?7\d{9}$/,
115218
+ 'kl-GL': /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
115219
+ 'ko-KR': /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,
115220
+ 'lt-LT': /^(\+370|8)\d{8}$/,
115221
+ 'lv-LV': /^(\+?371)2\d{7}$/,
115222
+ 'ms-MY': /^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,
115223
+ 'mz-MZ': /^(\+?258)?8[234567]\d{7}$/,
115224
+ 'nb-NO': /^(\+?47)?[49]\d{7}$/,
115225
+ 'ne-NP': /^(\+?977)?9[78]\d{8}$/,
115226
+ 'nl-BE': /^(\+?32|0)4\d{8}$/,
115227
+ 'nl-NL': /^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,
115228
+ 'nn-NO': /^(\+?47)?[49]\d{7}$/,
115229
+ 'pl-PL': /^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,
115230
+ 'pt-BR': /^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[2-9]{1}\d{3}\-?\d{4}))$/,
115231
+ 'pt-PT': /^(\+?351)?9[1236]\d{7}$/,
115232
+ 'pt-AO': /^(\+244)\d{9}$/,
115233
+ 'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,
115234
+ 'ru-RU': /^(\+?7|8)?9\d{9}$/,
115235
+ 'si-LK': /^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,
115236
+ 'sl-SI': /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,
115237
+ 'sk-SK': /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
115238
+ 'sq-AL': /^(\+355|0)6[789]\d{6}$/,
115239
+ 'sr-RS': /^(\+3816|06)[- \d]{5,9}$/,
115240
+ 'sv-SE': /^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,
115241
+ 'tg-TJ': /^(\+?992)?[5][5]\d{7}$/,
115242
+ 'th-TH': /^(\+66|66|0)\d{9}$/,
115243
+ 'tr-TR': /^(\+?90|0)?5\d{9}$/,
115244
+ 'tk-TM': /^(\+993|993|8)\d{8}$/,
115245
+ 'uk-UA': /^(\+?38|8)?0\d{9}$/,
115246
+ 'uz-UZ': /^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,
115247
+ 'vi-VN': /^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
115248
+ 'zh-CN': /^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,
115249
+ 'zh-TW': /^(\+?886\-?|0)?9\d{8}$/,
115250
+ 'dz-BT': /^(\+?975|0)?(17|16|77|02)\d{6}$/
115251
+ };
115252
+ /* eslint-enable max-len */
115253
+ // aliases
115254
+
115255
+ phones['en-CA'] = phones['en-US'];
115256
+ phones['fr-CA'] = phones['en-CA'];
115257
+ phones['fr-BE'] = phones['nl-BE'];
115258
+ phones['zh-HK'] = phones['en-HK'];
115259
+ phones['zh-MO'] = phones['en-MO'];
115260
+ phones['ga-IE'] = phones['en-IE'];
115261
+ phones['fr-CH'] = phones['de-CH'];
115262
+ phones['it-CH'] = phones['fr-CH'];
115263
+
115264
+ function isMobilePhone(str, locale, options) {
115265
+ (0, _assertString.default)(str);
115266
+
115267
+ if (options && options.strictMode && !str.startsWith('+')) {
115268
+ return false;
115269
+ }
115270
+
115271
+ if (Array.isArray(locale)) {
115272
+ return locale.some(function (key) {
115273
+ // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes
115274
+ // istanbul ignore else
115275
+ if (phones.hasOwnProperty(key)) {
115276
+ var phone = phones[key];
115277
+
115278
+ if (phone.test(str)) {
115279
+ return true;
115280
+ }
115281
+ }
115282
+
115283
+ return false;
115284
+ });
115285
+ } else if (locale in phones) {
115286
+ return phones[locale].test(str); // alias falsey locale as 'any'
115287
+ } else if (!locale || locale === 'any') {
115288
+ for (var key in phones) {
115289
+ // istanbul ignore else
115290
+ if (phones.hasOwnProperty(key)) {
115291
+ var phone = phones[key];
115292
+
115293
+ if (phone.test(str)) {
115294
+ return true;
115295
+ }
115296
+ }
115297
+ }
115298
+
115299
+ return false;
115300
+ }
115301
+
115302
+ throw new Error("Invalid locale '".concat(locale, "'"));
115303
+ }
115304
+
115305
+ var locales = Object.keys(phones);
115306
+ __webpack_unused_export__ = locales;
115307
+
115308
+ /***/ }),
115309
+
115310
+ /***/ 66823:
115311
+ /***/ (function(module, exports, __webpack_require__) {
115312
+
115313
+ "use strict";
115314
+
115315
+
115316
+ Object.defineProperty(exports, "__esModule", ({
115317
+ value: true
115318
+ }));
115319
+ exports.default = isURL;
115320
+
115321
+ var _assertString = _interopRequireDefault(__webpack_require__(65571));
115322
+
115323
+ var _isFQDN = _interopRequireDefault(__webpack_require__(10221));
115324
+
115325
+ var _isIP = _interopRequireDefault(__webpack_require__(61028));
115326
+
115327
+ var _merge = _interopRequireDefault(__webpack_require__(84808));
115328
+
115329
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
115330
+
115331
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
115332
+
115333
+ 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."); }
115334
+
115335
+ 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); }
115336
+
115337
+ 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; }
115338
+
115339
+ 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; }
115340
+
115341
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
115342
+
115343
+ /*
115344
+ options for isURL method
115345
+
115346
+ require_protocol - if set as true isURL will return false if protocol is not present in the URL
115347
+ require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option
115348
+ protocols - valid protocols can be modified with this option
115349
+ require_host - if set as false isURL will not check if host is present in the URL
115350
+ require_port - if set as true isURL will check if port is present in the URL
115351
+ allow_protocol_relative_urls - if set as true protocol relative URLs will be allowed
115352
+ validate_length - if set as false isURL will skip string length validation (IE maximum is 2083)
115353
+
115354
+ */
115355
+ var default_url_options = {
115356
+ protocols: ['http', 'https', 'ftp'],
115357
+ require_tld: true,
115358
+ require_protocol: false,
115359
+ require_host: true,
115360
+ require_port: false,
115361
+ require_valid_protocol: true,
115362
+ allow_underscores: false,
115363
+ allow_trailing_dot: false,
115364
+ allow_protocol_relative_urls: false,
115365
+ allow_fragments: true,
115366
+ allow_query_components: true,
115367
+ validate_length: true
115368
+ };
115369
+ var wrapped_ipv6 = /^\[([^\]]+)\](?::([0-9]+))?$/;
115370
+
115371
+ function isRegExp(obj) {
115372
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
115373
+ }
115374
+
115375
+ function checkHost(host, matches) {
115376
+ for (var i = 0; i < matches.length; i++) {
115377
+ var match = matches[i];
115378
+
115379
+ if (host === match || isRegExp(match) && match.test(host)) {
115380
+ return true;
115381
+ }
115382
+ }
115383
+
115384
+ return false;
115385
+ }
115386
+
115387
+ function isURL(url, options) {
115388
+ (0, _assertString.default)(url);
115389
+
115390
+ if (!url || /[\s<>]/.test(url)) {
115391
+ return false;
115392
+ }
115393
+
115394
+ if (url.indexOf('mailto:') === 0) {
115395
+ return false;
115396
+ }
115397
+
115398
+ options = (0, _merge.default)(options, default_url_options);
115399
+
115400
+ if (options.validate_length && url.length >= 2083) {
115401
+ return false;
115402
+ }
115403
+
115404
+ if (!options.allow_fragments && url.includes('#')) {
115405
+ return false;
115406
+ }
115407
+
115408
+ if (!options.allow_query_components && (url.includes('?') || url.includes('&'))) {
115409
+ return false;
115410
+ }
115411
+
115412
+ var protocol, auth, host, hostname, port, port_str, split, ipv6;
115413
+ split = url.split('#');
115414
+ url = split.shift();
115415
+ split = url.split('?');
115416
+ url = split.shift();
115417
+ split = url.split('://');
115418
+
115419
+ if (split.length > 1) {
115420
+ protocol = split.shift().toLowerCase();
115421
+
115422
+ if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {
115423
+ return false;
115424
+ }
115425
+ } else if (options.require_protocol) {
115426
+ return false;
115427
+ } else if (url.substr(0, 2) === '//') {
115428
+ if (!options.allow_protocol_relative_urls) {
115429
+ return false;
115430
+ }
115431
+
115432
+ split[0] = url.substr(2);
115433
+ }
115434
+
115435
+ url = split.join('://');
115436
+
115437
+ if (url === '') {
115438
+ return false;
115439
+ }
115440
+
115441
+ split = url.split('/');
115442
+ url = split.shift();
115443
+
115444
+ if (url === '' && !options.require_host) {
115445
+ return true;
115446
+ }
115447
+
115448
+ split = url.split('@');
115449
+
115450
+ if (split.length > 1) {
115451
+ if (options.disallow_auth) {
115452
+ return false;
115453
+ }
115454
+
115455
+ if (split[0] === '') {
115456
+ return false;
115457
+ }
115458
+
115459
+ auth = split.shift();
115460
+
115461
+ if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {
115462
+ return false;
115463
+ }
115464
+
115465
+ var _auth$split = auth.split(':'),
115466
+ _auth$split2 = _slicedToArray(_auth$split, 2),
115467
+ user = _auth$split2[0],
115468
+ password = _auth$split2[1];
115469
+
115470
+ if (user === '' && password === '') {
115471
+ return false;
115472
+ }
115473
+ }
115474
+
115475
+ hostname = split.join('@');
115476
+ port_str = null;
115477
+ ipv6 = null;
115478
+ var ipv6_match = hostname.match(wrapped_ipv6);
115479
+
115480
+ if (ipv6_match) {
115481
+ host = '';
115482
+ ipv6 = ipv6_match[1];
115483
+ port_str = ipv6_match[2] || null;
115484
+ } else {
115485
+ split = hostname.split(':');
115486
+ host = split.shift();
115487
+
115488
+ if (split.length) {
115489
+ port_str = split.join(':');
115490
+ }
115491
+ }
115492
+
115493
+ if (port_str !== null && port_str.length > 0) {
115494
+ port = parseInt(port_str, 10);
115495
+
115496
+ if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {
115497
+ return false;
115498
+ }
115499
+ } else if (options.require_port) {
115500
+ return false;
115501
+ }
115502
+
115503
+ if (options.host_whitelist) {
115504
+ return checkHost(host, options.host_whitelist);
115505
+ }
115506
+
115507
+ if (!(0, _isIP.default)(host) && !(0, _isFQDN.default)(host, options) && (!ipv6 || !(0, _isIP.default)(ipv6, 6))) {
115508
+ return false;
115509
+ }
115510
+
115511
+ host = host || ipv6;
115512
+
115513
+ if (options.host_blacklist && checkHost(host, options.host_blacklist)) {
115514
+ return false;
115515
+ }
115516
+
115517
+ return true;
115518
+ }
115519
+
115520
+ module.exports = exports.default;
115521
+ module.exports.default = exports.default;
115522
+
115523
+ /***/ }),
115524
+
115525
+ /***/ 65571:
115526
+ /***/ (function(module, exports) {
115527
+
115528
+ "use strict";
115529
+
115530
+
115531
+ Object.defineProperty(exports, "__esModule", ({
115532
+ value: true
115533
+ }));
115534
+ exports.default = assertString;
115535
+
115536
+ 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); }
115537
+
115538
+ function assertString(input) {
115539
+ var isString = typeof input === 'string' || input instanceof String;
115540
+
115541
+ if (!isString) {
115542
+ var invalidType = _typeof(input);
115543
+
115544
+ if (input === null) invalidType = 'null';else if (invalidType === 'object') invalidType = input.constructor.name;
115545
+ throw new TypeError("Expected a string but received a ".concat(invalidType));
115546
+ }
115547
+ }
115548
+
115549
+ module.exports = exports.default;
115550
+ module.exports.default = exports.default;
115551
+
115552
+ /***/ }),
115553
+
115554
+ /***/ 84808:
115555
+ /***/ (function(module, exports) {
115556
+
115557
+ "use strict";
115558
+
115559
+
115560
+ Object.defineProperty(exports, "__esModule", ({
115561
+ value: true
115562
+ }));
115563
+ exports.default = merge;
115564
+
115565
+ function merge() {
115566
+ var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
115567
+ var defaults = arguments.length > 1 ? arguments[1] : undefined;
115568
+
115569
+ for (var key in defaults) {
115570
+ if (typeof obj[key] === 'undefined') {
115571
+ obj[key] = defaults[key];
115572
+ }
115573
+ }
115574
+
115575
+ return obj;
115576
+ }
115577
+
115578
+ module.exports = exports.default;
115579
+ module.exports.default = exports.default;
115580
+
115581
  /***/ }),
115582
 
115583
  /***/ 46314:
115699
  /******/ // startup
115700
  /******/ // Load entry module and return exports
115701
  /******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
115702
+ /******/ var __webpack_exports__ = __webpack_require__(35179);
115703
  /******/
115704
  /******/ })()
115705
  ;
assets/dashboard.min.js CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
- * (C) 2017-2021 Buttonizer v2.5.4
13
  *
14
  */
15
  /*!
@@ -23,9 +23,9 @@
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
- * (C) 2017-2021 Buttonizer v2.5.4
27
  *
28
- */!function(){var e={50676:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},83614:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},63349:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5991:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return o}})},96156:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},22122:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},41788:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(14665);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},96410:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},62303:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},81253:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(19756);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},19756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},14665:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},34699:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(82961);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},78927:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(83614),o=n(96410),i=n(82961),a=n(62303);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},90484:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},82961:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},95318:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},20862:function(e,t,n){var r=n(50008).default;function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n},e.exports.default=e.exports,e.exports.__esModule=!0},50008:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},70597:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},43891:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.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"}))}},59693:function(e,t,n){"use strict";n.d(t,{mi:function(){return l},_4:function(){return u},U1:function(){return c},_j:function(){return f},$n:function(){return d}});var r=n(60288);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?f(e,t):d(e,t)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},49277:function(e,t,n){"use strict";n.d(t,{Z:function(){return $}});var r=n(81253),o=n(35953),i=n(22122),a=["xs","sm","md","lg","xl"];function l(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,l=void 0===o?"px":o,s=e.step,u=void 0===s?5:s,c=(0,r.Z)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function d(e,t){var r=a.indexOf(t);return r===a.length-1?f(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(l,")")}return(0,i.Z)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(l,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},c)}var s=n(96156);function u(e,t,n){var r;return(0,i.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.Z)({},e.up("sm"),(0,i.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(60288),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(59693),x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,o):"dark"===t&&(e.dark=(0,b._j)(e.main,i)))}function _(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,l=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,s=e.error,u=void 0===s?{light:m[300],main:m[500],dark:m[700]}:s,_=e.warning,S=void 0===_?{light:v[300],main:v[500],dark:v[700]}:_,O=e.info,k=void 0===O?{light:g[300],main:g[500],dark:g[700]}:O,C=e.success,P=void 0===C?{light:y[300],main:y[500],dark:y[700]}:C,A=e.type,T=void 0===A?"light":A,j=e.contrastThreshold,I=void 0===j?3:j,R=e.tonalOffset,N=void 0===R?.2:R,D=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return(0,b.mi)(e,w.text.primary)>=I?w.text.primary:x.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return E(e,"light",n,N),E(e,"dark",r,N),e.contrastText||(e.contrastText=M(e.main)),e},F={dark:w,light:x};return(0,o.Z)((0,i.Z)({common:f,type:T,primary:L(n),secondary:L(l,"A400","A200","A700"),error:L(u),warning:L(S),info:L(k),success:L(P),grey:d,contrastThreshold:I,getContrastText:M,augmentColor:L,tonalOffset:N},F[T]),D)}function S(e){return Math.round(1e5*e)/1e5}var O={textTransform:"uppercase"};function k(e,t){var n="function"==typeof t?t(e):t,a=n.fontFamily,l=void 0===a?'"Roboto", "Helvetica", "Arial", sans-serif':a,s=n.fontSize,u=void 0===s?14:s,c=n.fontWeightLight,f=void 0===c?300:c,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,w=n.pxToRem,E=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var _=u/14,k=w||function(e){return"".concat(e/b*_,"rem")},C=function(e,t,n,r,o){return(0,i.Z)({fontFamily:l,fontWeight:e,fontSize:k(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===l?{letterSpacing:"".concat(S(r/t),"em")}:{},o,x)},P={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(p,48,1.167,0),h4:C(p,34,1.235,.25),h5:C(p,24,1.334,0),h6:C(m,20,1.6,.15),subtitle1:C(p,16,1.75,.15),subtitle2:C(m,14,1.57,.1),body1:C(p,16,1.5,.15),body2:C(p,14,1.43,.15),button:C(m,14,1.75,.4,O),caption:C(p,12,1.66,.4),overline:C(p,12,2.66,1,O)};return(0,o.Z)((0,i.Z)({htmlFontSize:b,pxToRem:k,round:S,fontFamily:l,fontSize:u,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:g},P),E,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],A={borderRadius:4},T=n(34699),j=n(90484),I=(n(45697),{xs:0,sm:600,md:960,lg:1280,xl:1920}),R={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(I[e],"px)")}};var N=function(e,t){return t?(0,o.Z)(e,t,{clone:!1}):e};var D,M,L={m:"margin",p:"padding"},F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},B={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},z=(D=function(e){if(e.length>2){if(!B[e])return[e];e=B[e]}var t=e.split(""),n=(0,T.Z)(t,2),r=n[0],o=n[1],i=L[r],a=F[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]},M={},function(e){return void 0===M[e]&&(M[e]=D(e)),M[e]}),W=["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"];function U(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Z(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function H(e){var t=U(e.theme);return Object.keys(e).map((function(n){if(-1===W.indexOf(n))return null;var r=Z(z(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||R;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,j.Z)(t)){var o=e.theme.breakpoints||R;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(N,{})}H.propTypes={},H.filterProps=W;function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=U({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var V=n(43366),K=n(92781);var $=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,a=void 0===i?{}:i,s=e.palette,c=void 0===s?{}:s,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=_(c),v=l(n),g=G(f),y=(0,o.Z)({breakpoints:v,direction:"ltr",mixins:u(v,g,a),overrides:{},palette:m,props:{},shadows:P,typography:k(m,p),spacing:g,shape:A,transitions:V.ZP,zIndex:K.Z},h),b=arguments.length,x=new Array(b>1?b-1:0),w=1;w<b;w++)x[w-1]=arguments[w];return y=x.reduce((function(e,t){return(0,o.Z)(e,t)}),y)}},99700:function(e,t,n){"use strict";var r=(0,n(49277).Z)();t.Z=r},43366:function(e,t,n){"use strict";n.d(t,{x9:function(){return i}});var r=n(81253),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,l=void 0===n?i.standard:n,s=t.easing,u=void 0===s?o.easeInOut:s,c=t.delay,f=void 0===c?0:c;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof l?l:a(l)," ").concat(u," ").concat("string"==typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},14670:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(8679)),l=n.n(a),s=n(73914),u=n(93869),c=n(159),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,f=t.withTheme,d=void 0!==f&&f,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,s.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),g=i.forwardRef((function(e,t){e.classes;var l,s=e.innerRef,f=(0,o.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=f;return("string"==typeof p||d)&&(l=(0,c.Z)()||a,p&&(m=(0,u.Z)({theme:l,name:p,props:f})),d&&!m.theme&&(m.theme=l)),i.createElement(n,(0,r.Z)({ref:s||t,classes:h},m))}));return l()(g,n),g}},d=n(99700);var p=function(e,t){return f(e,(0,r.Z)({defaultTheme:d.Z},t))}},92781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},93871:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(60288);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},82568:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},25209:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(22122),o=n(67294),i=n(81253),a=(n(45697),n(86010)),l=n(14670),s=n(93871),u=o.forwardRef((function(e,t){var n=e.children,l=e.classes,u=e.className,c=e.color,f=void 0===c?"inherit":c,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,m=void 0===h?"default":h,v=e.htmlColor,g=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,x=(0,i.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(p,(0,r.Z)({className:(0,a.Z)(l.root,u,"inherit"!==f&&l["color".concat((0,s.Z)(f))],"default"!==m&&l["fontSize".concat((0,s.Z)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},x),n,g?o.createElement("title",null,g):null)}));u.muiName="SvgIcon";var c=(0,l.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u);function f(e,t){var n=function(t,n){return o.createElement(c,(0,r.Z)({ref:n},t),e)};return n.muiName=c.muiName,o.memo(o.forwardRef(n))}},79437:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},28546:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return i.Z},debounce:function(){return a.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return s.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return c.Z},requirePropFactory:function(){return f},setRef:function(){return d.Z},unstable_useId:function(){return g.Z},unsupportedProp:function(){return p},useControlled:function(){return h.Z},useEventCallback:function(){return m.Z},useForkRef:function(){return v.Z},useIsFocusVisible:function(){return y.Z}});var r=n(93871),o=n(82568),i=n(25209),a=n(79437);function l(e,t){return function(){return null}}var s=n(83711),u=n(30626),c=n(80713);function f(e){return function(){return null}}var d=n(34236);function p(e,t,n,r,o){return null}var h=n(22775),m=n(55192),v=n(17294),g=n(95001),y=n(24896)},83711:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},30626:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},80713:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30626);function o(e){return(0,r.Z)(e).defaultView||window}},34236:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},95001:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},22775:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],l=i[1];return[o?t:a,r.useCallback((function(e){o||l(e)}),[])]}},55192:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},17294:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(34236);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},24896:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(67294),o=n(73935),i=!0,a=!1,l=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!s[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(l),l=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},78513:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{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"}),"MoreVert");t.Z=a},2108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(28546)},4137:function(e,t,n){"use strict";n.d(t,{NU:function(){return p},ZP:function(){return h}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(17076)),l=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var s,u=n(54013),c=n(60246),f=(0,u.Ue)((0,c.Z)()),d={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,s=void 0===i?"":i,u=""===s?"":"".concat(s,"-"),c=0,f=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==l.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(u).concat(r,"-").concat(e.key);return t.options.theme[a.Z]&&""===s?"".concat(i,"-").concat(f()):i}return"".concat(u).concat(o).concat(f())}}(),jss:f,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},p=i.createContext(d);function h(e){var t=e.children,n=e.injectFirst,a=void 0!==n&&n,l=e.disableGeneration,f=void 0!==l&&l,d=(0,o.Z)(e,["children","injectFirst","disableGeneration"]),h=i.useContext(p),m=(0,r.Z)({},h,{disableGeneration:f},d);if(!m.jss.options.insertionPoint&&a&&"undefined"!=typeof window){if(!s){var v=document.head;s=document.createComment("mui-inject-first"),v.insertBefore(s,v.firstChild)}m.jss=(0,u.Ue)({plugins:(0,c.Z)().plugins,insertionPoint:s})}return i.createElement(p.Provider,{value:m},t)}},17076:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},93869:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{Z:function(){return r}})},60246:function(e,t,n){"use strict";n.d(t,{Z:function(){return Re}});var r=n(54013),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o,l=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.JH)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,l=o[a];l&&(o.style=l(e)||{});var s=o[i];if(s)for(var u in s)o.prop(u,s[u](e),r)}}},s=n(22122),u="@global",c=function(){function e(e,t,n){for(var o in this.type="global",this.at=u,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,s.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),f=function(){function e(e,t,n){this.type="global",this.at=u,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,(0,s.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),d=/\s*,\s*/g;function p(e,t){for(var n=e.split(d),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===u)return new c(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new f(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[u]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,s.Z)({},n,{selector:p(i,e.selector)}));delete r[u]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,u.length)===u){var i=p(o.substr(u.length),e.selector);t.addRule(i,r[o],(0,s.Z)({},n,{selector:i})),delete r[o]}}(e,t))}}},m=/\s*,\s*/g,v=/&/g,g=/\$([\w-]+)/g;var y=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(m),r=e.split(m),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(v,a):a+" "+s}return o}function n(e,t,n){if(n)return(0,s.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,s.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,u=o,c=u.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=n(u,c,a),d){var h=t(f,u.selector);l||(l=e(c,i)),h=h.replace(g,l),c.addRule(h,r[f],(0,s.Z)({},a,{selector:h}))}else p&&c.addRule(f,{},a).addRule(u.key,r[f],{selector:u.selector});delete r[f]}}return r}}},b=/[A-Z]/g,x=/^ms-/,w={};function E(e){return"-"+e.toLowerCase()}var _=function(e){if(w.hasOwnProperty(e))return w[e];var t=e.replace(b,E);return w[e]=x.test(t)?"-"+t:t};function S(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:_(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(S):t.fallbacks=S(e.fallbacks)),t}var O=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=S(e[t]);return e}return S(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=_(t);return t===r?e:(n.prop(r,e),null)}}},k=r.HZ&&CSS?CSS.px:"px",C=r.HZ&&CSS?CSS.ms:"ms",P=r.HZ&&CSS?CSS.percent:"%";function A(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var T=A({"animation-delay":C,"animation-duration":C,"background-position":k,"background-position-x":k,"background-position-y":k,"background-size":k,border:k,"border-bottom":k,"border-bottom-left-radius":k,"border-bottom-right-radius":k,"border-bottom-width":k,"border-left":k,"border-left-width":k,"border-radius":k,"border-right":k,"border-right-width":k,"border-top":k,"border-top-left-radius":k,"border-top-right-radius":k,"border-top-width":k,"border-width":k,"border-block":k,"border-block-end":k,"border-block-end-width":k,"border-block-start":k,"border-block-start-width":k,"border-block-width":k,"border-inline":k,"border-inline-end":k,"border-inline-end-width":k,"border-inline-start":k,"border-inline-start-width":k,"border-inline-width":k,"border-start-start-radius":k,"border-start-end-radius":k,"border-end-start-radius":k,"border-end-end-radius":k,margin:k,"margin-bottom":k,"margin-left":k,"margin-right":k,"margin-top":k,"margin-block":k,"margin-block-end":k,"margin-block-start":k,"margin-inline":k,"margin-inline-end":k,"margin-inline-start":k,padding:k,"padding-bottom":k,"padding-left":k,"padding-right":k,"padding-top":k,"padding-block":k,"padding-block-end":k,"padding-block-start":k,"padding-inline":k,"padding-inline-end":k,"padding-inline-start":k,"mask-position-x":k,"mask-position-y":k,"mask-size":k,height:k,width:k,"min-height":k,"max-height":k,"min-width":k,"max-width":k,bottom:k,left:k,top:k,right:k,inset:k,"inset-block":k,"inset-block-end":k,"inset-block-start":k,"inset-inline":k,"inset-inline-end":k,"inset-inline-start":k,"box-shadow":k,"text-shadow":k,"column-gap":k,"column-rule":k,"column-rule-width":k,"column-width":k,"font-size":k,"font-size-delta":k,"letter-spacing":k,"text-decoration-thickness":k,"text-indent":k,"text-stroke":k,"text-stroke-width":k,"word-spacing":k,motion:k,"motion-offset":k,outline:k,"outline-offset":k,"outline-width":k,perspective:k,"perspective-origin-x":P,"perspective-origin-y":P,"transform-origin":P,"transform-origin-x":P,"transform-origin-y":P,"transform-origin-z":P,"transition-delay":C,"transition-duration":C,"vertical-align":k,"flex-basis":k,"shape-margin":k,size:k,gap:k,grid:k,"grid-gap":k,"row-gap":k,"grid-row-gap":k,"grid-column-gap":k,"grid-template-rows":k,"grid-template-columns":k,"grid-auto-rows":k,"grid-auto-columns":k,"box-shadow-x":k,"box-shadow-y":k,"box-shadow-blur":k,"box-shadow-spread":k,"font-line-height":k,"text-shadow-x":k,"text-shadow-y":k,"text-shadow-blur":k});function j(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=j(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=j(o,t[o],n);else for(var i in t)t[i]=j(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||T[e];return!a||0===t&&a===k?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var I=function(e){void 0===e&&(e={});var t=A(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=j(r,e[r],t);return e},onChangeValue:function(e,n){return j(n,e,t)}}},R=n(33827),N=n(78927),D="",M="",L="",F="",B=R.Z&&"ontouchstart"in document.documentElement;if(R.Z){var z={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},W=document.createElement("p").style;for(var U in z)if(U+"Transform"in W){D=U,M=z[U];break}"Webkit"===D&&"msHyphens"in W&&(D="ms",M=z.ms,F="edge"),"Webkit"===D&&"-apple-trailing-word"in W&&(L="apple")}var Z=D,H=M,G=L,V=F,K=B;var $={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Z?"-webkit-"+e:H+e)}},q={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Z?H+"print-"+e:e)}},Y=/[-\s]+(.)?/g;function X(e,t){return t?t.toUpperCase():""}function J(e){return e.replace(Y,X)}function Q(e){return J("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Z){if(J("mask-image")in t)return e;if(Z+Q("mask-image")in t)return H+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==G||K?e:H+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:H+e)}},oe={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:H+e)}},ie={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Z||"ms"===Z&&"edge"!==V?H+e:e)}},ae={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Z||"ms"===Z||"apple"===G?H+e:e)}},le={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Z?"WebkitColumn"+Q(e)in t&&H+"column-"+e:"Moz"===Z&&("page"+Q(e)in t&&"page-"+e))}},se={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Z)return e;var n=e.replace("-inline","");return Z+Q(n)in t&&H+n}},ue={supportedProperty:function(e,t){return J(e)in t&&e}},ce={supportedProperty:function(e,t){var n=Q(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Z+n in t?H+e:"Webkit"!==Z&&"Webkit"+n in t&&"-webkit-"+e}},fe={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Z?""+H+e:e)}},de={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Z?H+"scroll-chaining":e)}},pe={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=pe[e];return!!n&&(Z+Q(n)in t&&H+n)}},me={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ve=Object.keys(me),ge=function(e){return H+e},ye=[$,q,te,ne,re,oe,ie,ae,le,se,ue,ce,fe,de,he,{supportedProperty:function(e,t,n){var r=n.multiple;if(ve.indexOf(e)>-1){var o=me[e];if(!Array.isArray(o))return Z+Q(o)in t&&H+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Z+Q(o[0])in t))return!1;return o.map(ge)}return!1}}],be=ye.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),xe=ye.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,N.Z)(t.noPrefill)),e}),[]),we={};if(R.Z){ee=document.createElement("p");var Ee=window.getComputedStyle(document.documentElement,"");for(var _e in Ee)isNaN(_e)||(we[Ee[_e]]=Ee[_e]);xe.forEach((function(e){return delete we[e]}))}function Se(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=we[e])return we[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<be.length&&(we[e]=be[n](e,ee.style,t),!we[e]);n++);try{ee.style[e]=""}catch(e){return!1}return we[e]}var Oe,ke={},Ce={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Pe=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ae(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Se(t):", "+Se(n);return r||(t||n)}function Te(e,t){var n=t;if(!Oe||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ke[r])return ke[r];try{Oe.style[e]=n}catch(e){return ke[r]=!1,!1}if(Ce[e])n=n.replace(Pe,Ae);else if(""===Oe.style[e]&&("-ms-flex"===(n=H+n)&&(Oe.style[e]="-ms-flexbox"),Oe.style[e]=n,""===Oe.style[e]))return ke[r]=!1,!1;return Oe.style[e]="",ke[r]=n,ke[r]}R.Z&&(Oe=document.createElement("p"));var je=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=Se(n);a&&a!==n&&(i=!0);var l=!1,s=Te(a,(0,r.EK)(o));s&&s!==o&&(l=!0),(i||l)&&(i&&delete t[n],t[a||n]=s||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Z?e:"@"+H+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Te(t,(0,r.EK)(e))||e}}};var Ie=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function Re(){return{plugins:[l(),h(),y(),O(),I(),"undefined"==typeof window?null:je(),Ie()]}}},73914:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(81253),o=n(22122),i=n(67294),a=n(54013),l=n(65835),s={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},u=n(159),c=n(4137),f=-1e9;function d(){return f+=1}var p=n(35953);function h(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],l=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){l[e]=(0,p.Z)(l[e],a[e])})),l},options:{}}}var m={};function v(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,l.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function g(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,u=e.stylesCreator,c=e.name;if(!i.disableGeneration){var f=s.get(i.sheetsManager,u,r);f||(f={refs:0,staticSheet:null,dynamicStyles:null},s.set(i.sheetsManager,u,r,f));var d=(0,o.Z)({},u.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});d.generateId=d.serverGenerateClassName||d.generateClassName;var p=i.sheetsRegistry;if(0===f.refs){var h;i.sheetsCache&&(h=s.get(i.sheetsCache,u,r));var m=u.create(r,c);h||((h=i.jss.createStyleSheet(m,(0,o.Z)({link:!1},d))).attach(),i.sheetsCache&&s.set(i.sheetsCache,u,r,h)),p&&p.add(h),f.staticSheet=h,f.dynamicStyles=(0,a._$)(m)}if(f.dynamicStyles){var v=i.jss.createStyleSheet(f.dynamicStyles,(0,o.Z)({link:!0},d));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=(0,l.Z)({baseClasses:f.staticSheet.classes,newClasses:v.classes}),p&&p.add(v)}else n.classes=f.staticSheet.classes;f.refs+=1}}function y(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function b(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=s.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(s.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function x(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,l=t.Component,s=t.defaultTheme,f=void 0===s?m:s,p=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),w=h(e),E=n||a||"makeStyles";w.options={index:d(),name:n,meta:E,classNamePrefix:E};var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,u.Z)()||f,r=(0,o.Z)({},i.useContext(c.NU),p),a=i.useRef(),s=i.useRef();x((function(){var o={name:n,state:{},stylesCreator:w,stylesOptions:r,theme:t};return g(o,e),s.current=!1,a.current=o,function(){b(o)}}),[t,w]),i.useEffect((function(){s.current&&y(a.current,e),s.current=!0}));var d=v(a.current,e.classes,l);return d};return _}},65835:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(22122);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},83800:function(e,t,n){"use strict";var r=n(67294).createContext(null);t.Z=r},159:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(83800);function i(){return r.useContext(o.Z)}},35953:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22122),o=n(90484);function i(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},60288:function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},62844:function(e,t,n){"use strict";n.d(t,{Rf:function(){return i},DM:function(){return a},en:function(){return l},jH:function(){return s},Cf:function(){return u},Db:function(){return c},EG:function(){return f},l4:function(){return d},JY:function(){return p}});var r=n(61422),o={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function a(){var e=i(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function l(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function s(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function u(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function c(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}function p(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}},61422:function(e,t,n){"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}n.d(t,{KV:function(){return r},l$:function(){return o}}),e=n.hmd(e)},21170:function(e,t,n){"use strict";n.d(t,{yW:function(){return s}});var r=n(62844),o=n(61422);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}};var a=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.Rf)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),l=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},s=i.nowSeconds.bind(i);l.nowSeconds.bind(l),function(){var e=(0,r.Rf)().performance;if(e)e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now()}()},9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var r=n(64867),o=n(36026),i=n(4372),a=n(15327),l=n(94097),s=n(84109),u=n(67985),c=n(85061);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+m)}var v=l(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?s(p.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,i),p=null}},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||u(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},51609:function(e,t,n){"use strict";var r=n(64867),o=n(91849),i=n(30321),a=n(47185);function l(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var s=l(n(45655));s.Axios=i,s.create=function(e){return l(a(s.defaults,e))},s.Cancel=n(65263),s.CancelToken=n(14972),s.isCancel=n(26502),s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(16268),e.exports=s,e.exports.default=s},65263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:function(e,t,n){"use strict";var r=n(65263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},26502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:function(e,t,n){"use strict";var r=n(64867),o=n(15327),i=n(80782),a=n(13572),l=n(47185);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},s.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=s},80782:function(e,t,n){"use strict";var r=n(64867);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},94097:function(e,t,n){"use strict";var r=n(91793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},85061:function(e,t,n){"use strict";var r=n(80481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},13572:function(e,t,n){"use strict";var r=n(64867),o=n(18527),i=n(26502),a=n(45655);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80481:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},47185:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(i,u),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(void 0,t[o])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=o.concat(i).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},36026:function(e,t,n){"use strict";var r=n(85061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},18527:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},45655:function(e,t,n){"use strict";var r=n(64867),o=n(16016),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,s={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(55448)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(i)})),e.exports=s},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15327:function(e,t,n){"use strict";var r=n(64867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},16268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},84109:function(e,t,n){"use strict";var r=n(64867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},64867:function(e,t,n){"use strict";var r=n(91849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},23175:function(e,t,n){"use strict";var r=n(67294),o=n(73935),i=n(67121),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function s(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])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.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function h(){if(d)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.");return a}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)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.");var t=!0;return p(),f.push(e),function(){if(t){if(d)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.");t=!1,p();var n=f.indexOf(e);f.splice(n,1),c=null}}}function v(e){if(!s(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,a=o(a,e)}finally{d=!1}for(var t=c=f,n=0;n<t.length;n++){(0,t[n])()}return e}function g(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,v({type:l.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i.Z]=function(){return this},e}return v({type:l.INIT}),(r={dispatch:v,subscribe:m,getState:h,replaceReducer:g})[i.Z]=y,r}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" 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.'}function f(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return m({},n,{dispatch:r=v.apply(void 0,i)(n.dispatch)})}}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=n(46314),_=n(82492),S=n(14176),O={INIT:"INIT",ADD_MODEL:"ADD_MODEL",ADD_RELATION:"ADD_RELATION",CHANGE_RELATION:"CHANGE_RELATION",REMOVE_RELATION:"REMOVE_RELATION",GET_DATA_BEGIN:"GET_DATA_BEGIN",GET_DATA_SUCCESS:"GET_DATA_SUCCESS",GET_DATA_FAILURE:"GET_DATA_FAILURE",GET_DATA_END:"GET_DATA_END",HAS_CHANGES:"HAS_CHANGES",IS_UPDATING:"IS_UPDATING",STOP_LOADING:"STOP_LOADING",SET_SETTING_VALUE:"SET_SETTING_VALUE",OPEN_DRAWER:"OPENING DRAWER",CLOSE_DRAWER:"CLOSING DRAWER",groups:{ADD_RECORD:"ADDING GROUP RECORD",REMOVE_RECORD:"REMOVING GROUP RECORD",SET_KEY_VALUE:"SET KEY VALUE GROUPS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS GROUPS"},buttons:{ADD_RECORD:"ADDING BUTTON RECORD",REMOVE_RECORD:"REMOVING BUTTON RECORD",SET_KEY_VALUE:"SET KEY VALUE BUTTONS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS BUTTONS"},timeSchedules:{ADD_RECORD:"ADDING TIME SCHEDULE",REMOVE_RECORD:"REMOVING TIME SCHEDULE",SET_KEY_VALUE:"SET KEY VALUE TIMESCHEDULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS TIMESCHEDULES",ADD_TIMESCHEDULE:"ADD_TIMESCHEDULE",SET_WEEKDAY:"SET_WEEKDAY",ADD_EXCLUDED_DATE:"ADD_EXCLUDED_DATE",SET_EXCLUDED_DATE:"SET_EXCLUDED_DATE",REMOVE_EXCLUDED_DATE:"REMOVE_EXCLUDED_DATE"},pageRules:{ADD_RECORD:"ADDING PAGE RULE",REMOVE_RECORD:"REMOVING PAGE RULE",SET_KEY_VALUE:"SET KEY VALUE PAGERULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS PAGERULES",ADD_PAGE_RULE_ROW:"ADD_PAGE_RULE_ROW",SET_PAGE_RULE_ROW:"SET_PAGE_RULE_ROW",REMOVE_PAGE_RULE_ROW:"REMOVE_PAGE_RULE_ROW"},wp:{GET_DATA_BEGIN:"GET_DATA_BEGIN_WP",GET_DATA_SUCCESS:"GET_DATA_SUCCESS_WP",GET_DATA_FAILURE:"GET_DATA_FAILURE_WP",GET_DATA_END:"GET_DATA_END_WP"},templates:{INIT:"INIT TEMPLATES",GET_DATA_BEGIN:"GET TEMPLATES DATA BEGIN",GET_DATA_FAILURE:"GET TEMPLATES DATA FAILURE",GET_DATA_END:"GET TEMPLATES DATA END",ADD_RECORD:"ADDING TEMPLATE"}},k=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],C="buttons",P="groups",A={MENU:"menu",SETTINGS:"settings",SETTINGS_PAGES:{analytics:"analytics",iconLibrary:"iconlibrary",preferences:"preferences",reset:"reset"},TIME_SCHEDULES:"timeschedules",PAGE_RULES:"pagerules"},T={normal_hover:{format:function(e,t){return[e,t].map((function(e){return"unset"===e||null==e?"":e})).filter((function(e,t,n){return 0===t||""!==e&&e!==n[0]})).join(";")||"unset"},parse:function(e){var t=e;if("boolean"==typeof e&&(t=String(e)),"number"==typeof e&&(t=String(e)),void 0===e)return[];if("string"!=typeof t)throw console.trace(),console.log(w(t),t),TypeError("'record[key]' val is not of type String, boolean or number");return t.split(";").map((function(e){if(e)return"true"===e||"false"!==e&&(isNaN(Number(e))?e:Number(e))})).map((function(e,t,n){return 0===t?e:e===n[0]?void 0:e}))}},fourSidesPx:{format:function(e,t,n,r){return"".concat(e,"px ").concat(t,"px ").concat(n,"px ").concat(r,"px")},parse:function(e){return e.match(/\d+/g)}},position:{format:function(e,t,n){return"".concat(e,": ").concat(n).concat(t)}}},j=["export_type","selected_page_rule","selected_schedule","id","parent","show_on_rule_trigger","show_on_schedule_trigger"],I={get buttonSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.button).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get groupSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.group).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get allSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(_({},E.button,E.group)).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get stylingNoGroup(){var e=this;return Object.entries(S(_({},E.button.styling,E.group.styling),(function(t,n){return e.groupSettings.styling.includes(n)&&e.buttonSettings.styling.includes(n)||n.includes("icon")}))).map((function(e){return b(e,1)[0]}))},get stylingHover(){return Object.entries(_({},E.button.styling,E.group.styling)).filter((function(e){return Array.isArray(e[1])})).map((function(e){return b(e,1)[0]}))}},R=n(9669),N=n.n(R);function D(e,t){M(),document.location.hash+="".concat(document.location.hash.match(/\/$/)?"":"/").concat(e).concat(t?"/"+t:"")}function M(){document.location.hash=document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules).*$/i,"")}function L(e){if(!e)return null;return"".concat(e.getDate(),"-").concat(function(e,t){for(var n=String(e);n.length<(t||2);)n="0"+n;return n}(e.getMonth()+1,2),"-").concat(e.getFullYear())}var F=function(){var e=new Map;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fontawesome",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"5.free",r=buttonizer_admin.assets+"/icon_definitions/"+t+"."+n+".json?buttonizer-icon-cache="+buttonizer_admin.version;if(e.has(r))return e.get(r);var o=N()({url:r,dataType:"json",method:"get"});return e.set(r,o),o}}(),B=n(71171),z=n.n(B);function W(){return Array.apply(0,Array(15)).map((function(){return(e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789").charAt(Math.floor(Math.random()*e.length));var e})).join("")}var U=n(26905),Z=n.n(U);function H(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;return String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))}),"undefined"!=typeof buttonizer_translations?n?(o=Z()(buttonizer_translations,e,"Translation not found: "+e)).format.apply(o,n):Z()(buttonizer_translations,e,"Translation not found: "+e):e}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y(e,t){return t.url=buttonizer_admin.api+e,t.headers={"X-WP-Nonce":buttonizer_admin.nonce},N()(t)}function X(e){var t,n=e,r={},o={},i=$(n.groups);try{for(i.s();!(t=i.n()).done;){var a=t.value,l=J(a.data);l.children=[];var s,u=$(a.buttons);try{for(u.s();!(s=u.n()).done;){var c=J(s.value);c.parent=l.id,r[c.id]=c,l.children.push(c.id)}}catch(e){u.e(e)}finally{u.f()}o[l.id]=l}}catch(e){i.e(e)}finally{i.f()}var f={},d={};return n.time_schedules&&n.time_schedules.map((function(e){f[e.id]={id:e.id,name:e.name||H("time_schedules.single_name"),weekdays:e.weekdays||k.map((function(e){return{opened:!0,open:"8:00",close:"17:00",weekday:e}})),start_date:e.start_date||L(new Date),end_date:e.end_date||null,dates:e.dates||[]}})),n.page_rules&&n.page_rules.map((function(e){d[e.id]={id:e.id,name:e.name||"Unnamed pagerule",type:e.type||"and",rules:e.rules||[{type:"page_title",value:""}]}})),{hasChanges:n.changes,buttons:r,groups:o,timeSchedules:f,pageRules:d,settings:n.settings,premium:n.premium,premium_code:n.premium_code,version:n.version,wordpress:n.wordpress,is_opt_in:n.is_opt_in,additional_permissions:n.additional_permissions}}function J(e){return e&&void 0!==e.id?e:V(V({},e),{},{id:z()()})}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O.ADD_RELATION,payload:{button_id:e,group_id:t,index:n}}}function ee(e,t,n,r){return{type:O.CHANGE_RELATION,payload:{button_id:e,old_group_id:t,new_group_id:n,button_index:r}}}function te(e,t){return{type:O.REMOVE_RELATION,payload:{button_id:e,group_id:t}}}var ne=function(e,t,n,r){return Array.isArray(r)?{type:O[e].SET_KEY_FORMAT,payload:{id:t,format:"normal_hover",key:n,values:r}}:{type:O[e].SET_KEY_VALUE,payload:{id:t,key:n,value:r}}},re=function(e,t){return{type:O.SET_SETTING_VALUE,payload:{setting:e,value:t}}};function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O[t].ADD_RECORD,payload:{record:J(e),index:n}}}function ie(e,t){return{type:O[t].REMOVE_RECORD,payload:{model_id:e}}}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();if(!t.groups[e].children)return null;var n=t.groups[e].children,r=t.buttons,o={};return Object.keys(r).map((function(e){n.includes(e)&&(o[e]=r[e])})),o}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vn.getState();if(!e)return null;var n=t.buttons,r={};return Object.keys(n).map((function(t){e.includes(t)&&e.map((function(e,o){e===t&&(r[o]=n[t])}))})),r}function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();return t.groups&&t.groups[e]?t.groups[e].children.length:0}function ue(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ce(e){return!!e&&!!e[Xe]}function fe(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Je}(e)||Array.isArray(e)||!!e[Ye]||!!e.constructor[Ye]||ye(e)||be(e))}function de(e,t,n){void 0===n&&(n=!1),0===pe(e)?(n?Object.keys:Qe)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function pe(e){var t=e[Xe];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ye(e)?2:be(e)?3:0}function he(e,t){return 2===pe(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function me(e,t){return 2===pe(e)?e.get(t):e[t]}function ve(e,t,n){var r=pe(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function ge(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function ye(e){return Ve&&e instanceof Map}function be(e){return Ke&&e instanceof Set}function xe(e){return e.o||e.t}function we(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=et(e);delete t[Xe];for(var n=Qe(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ee(e,t){return void 0===t&&(t=!1),Se(e)||ce(e)||!fe(e)||(pe(e)>1&&(e.set=e.add=e.clear=e.delete=_e),Object.freeze(e),t&&de(e,(function(e,t){return Ee(t,!0)}),!0)),e}function _e(){ue(2)}function Se(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Oe(e){var t=tt[e];return t||ue(18,e),t}function ke(){return He}function Ce(e,t){t&&(Oe("Patches"),e.u=[],e.s=[],e.v=t)}function Pe(e){Ae(e),e.p.forEach(je),e.p=null}function Ae(e){e===He&&(He=e.l)}function Te(e){return He={p:[],l:He,h:e,m:!0,_:0}}function je(e){var t=e[Xe];0===t.i||1===t.i?t.j():t.O=!0}function Ie(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Oe("ES5").S(t,e,r),r?(n[Xe].P&&(Pe(t),ue(4)),fe(e)&&(e=Re(t,e),t.l||De(t,e)),t.u&&Oe("Patches").M(n[Xe],e,t.u,t.s)):e=Re(t,n,[]),Pe(t),t.u&&t.v(t.u,t.s),e!==qe?e:void 0}function Re(e,t,n){if(Se(t))return t;var r=t[Xe];if(!r)return de(t,(function(o,i){return Ne(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return De(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=we(r.k):r.o;de(3===r.i?new Set(o):o,(function(t,i){return Ne(e,r,o,t,i,n)})),De(e,o,!1),n&&e.u&&Oe("Patches").R(r,n,e.u,e.s)}return r.o}function Ne(e,t,n,r,o,i){if(ce(o)){var a=Re(e,o,i&&t&&3!==t.i&&!he(t.D,r)?i.concat(r):void 0);if(ve(n,r,a),!ce(a))return;e.m=!1}if(fe(o)&&!Se(o)){if(!e.h.F&&e._<1)return;Re(e,o),t&&t.A.l||De(e,o)}}function De(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Ee(t,n)}function Me(e,t){var n=e[Xe];return(n?xe(n):e)[t]}function Le(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Fe(e){e.P||(e.P=!0,e.l&&Fe(e.l))}function Be(e){e.o||(e.o=we(e.t))}function ze(e,t,n){var r=ye(t)?Oe("MapSet").N(t,n):be(t)?Oe("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:ke(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=nt;n&&(o=[r],i=rt);var a=Proxy.revocable(o,i),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(t,n):Oe("ES5").J(t,n);return(n?n.A:ke()).p.push(r),r}function We(e){return ce(e)||ue(22,e),function e(t){if(!fe(t))return t;var n,r=t[Xe],o=pe(t);if(r){if(!r.P&&(r.i<4||!Oe("ES5").K(r)))return r.t;r.I=!0,n=Ue(t,o),r.I=!1}else n=Ue(t,o);return de(n,(function(t,o){r&&me(r.t,t)===o||ve(n,t,e(o))})),3===o?new Set(n):n}(e)}function Ue(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return we(e)}var Ze,He,Ge="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ve="undefined"!=typeof Map,Ke="undefined"!=typeof Set,$e="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,qe=Ge?Symbol.for("immer-nothing"):((Ze={})["immer-nothing"]=!0,Ze),Ye=Ge?Symbol.for("immer-draftable"):"__$immer_draftable",Xe=Ge?Symbol.for("immer-state"):"__$immer_state",Je=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Qe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,et=Object.getOwnPropertyDescriptors||function(e){var t={};return Qe(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},tt={},nt={get:function(e,t){if(t===Xe)return e;var n=xe(e);if(!he(n,t))return function(e,t,n){var r,o=Le(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!fe(r)?r:r===Me(e.t,t)?(Be(e),e.o[t]=ze(e.A.h,r,e)):r},has:function(e,t){return t in xe(e)},ownKeys:function(e){return Reflect.ownKeys(xe(e))},set:function(e,t,n){var r=Le(xe(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Me(xe(e),t),i=null==o?void 0:o[Xe];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(ge(n,o)&&(void 0!==n||he(e.t,t)))return!0;Be(e),Fe(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Me(e.t,t)||t in e.t?(e.D[t]=!1,Be(e),Fe(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=xe(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ue(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ue(12)}},rt={};de(nt,(function(e,t){rt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),rt.deleteProperty=function(e,t){return nt.deleteProperty.call(this,e[0],t)},rt.set=function(e,t,n){return nt.set.call(this,e[0],t,n,e[0])};var ot=new(function(){function e(e){var t=this;this.g=$e,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&ue(6),void 0!==r&&"function"!=typeof r&&ue(7),fe(e)){var l=Te(t),s=ze(t,e,void 0),u=!0;try{a=n(s),u=!1}finally{u?Pe(l):Ae(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Ce(l,r),Ie(e,l)}),(function(e){throw Pe(l),e})):(Ce(l,r),Ie(a,l))}if(!e||"object"!=typeof e){if((a=n(e))===qe)return;return void 0===a&&(a=e),t.F&&Ee(a,!0),a}ue(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){fe(e)||ue(8),ce(e)&&(e=We(e));var t=Te(this),n=ze(this,e,void 0);return n[Xe].C=!0,Ae(t),n},t.finishDraft=function(e,t){var n=(e&&e[Xe]).A;return Ce(n,t),Ie(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!$e&&ue(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=Oe("Patches").$;return ce(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),it=ot.produce,at=(ot.produceWithPatches.bind(ot),ot.setAutoFreeze.bind(ot),ot.setUseProxies.bind(ot),ot.applyPatches.bind(ot),ot.createDraft.bind(ot),ot.finishDraft.bind(ot),it);function lt(e,t){return t.url=buttonizer_admin.api+e,t.headers={"X-WP-Nonce":buttonizer_admin.nonce},N()(t)}function st(e){return{type:O.HAS_CHANGES,payload:{hasChanges:e}}}function ut(e){return{type:O.IS_UPDATING,payload:{isUpdating:e}}}function ct(){return{type:O.STOP_LOADING}}
29
  /*! *****************************************************************************
30
  Copyright (c) Microsoft Corporation.
31
 
@@ -40,32 +40,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
  PERFORMANCE OF THIS SOFTWARE.
42
  ***************************************************************************** */
43
- var ft=function(e,t){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function dt(e,t){function n(){this.constructor=e}ft(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var pt=function(){return(pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ht(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function vt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mt(arguments[t]));return e}var gt=n(62844),yt=n(21170),bt=(0,gt.Rf)(),xt="Sentry Logger ",wt=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,gt.Cf)((function(){bt.console.log(xt+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,gt.Cf)((function(){bt.console.warn(xt+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,gt.Cf)((function(){bt.console.error(xt+"[Error]: "+e.join(" "))}))},e}();bt.__SENTRY__=bt.__SENTRY__||{};var Et,_t=bt.__SENTRY__.logger||(bt.__SENTRY__.logger=new wt),St=n(61422);function Ot(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Nt(e,Error)}}function kt(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function Ct(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function Pt(e){return"[object String]"===Object.prototype.toString.call(e)}function At(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function Tt(e){return"[object Object]"===Object.prototype.toString.call(e)}function jt(e){return"undefined"!=typeof Event&&Nt(e,Event)}function It(e){return"undefined"!=typeof Element&&Nt(e,Element)}function Rt(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Nt(e,t){try{return e instanceof t}catch(e){return!1}}!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(Et||(Et={}));var Dt,Mt=function(){function e(e){var t=this;this._state=Et.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(Et.RESOLVED,e)},this._reject=function(e){t._setResult(Et.REJECTED,e)},this._setResult=function(e,n){t._state===Et.PENDING&&(Rt(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==Et.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===Et.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===Et.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0===(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),Lt=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=vt(t._breadcrumbs),n._tags=pt({},t._tags),n._extra=pt({},t._extra),n._contexts=pt({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=vt(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=pt(pt({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=pt(pt({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=pt(pt({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=pt(pt({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=pt(pt({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=pt(pt({},this._tags),t._tags),this._extra=pt(pt({},this._extra),t._extra),this._contexts=pt(pt({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Tt(t)&&(t=t,this._tags=pt(pt({},this._tags),t.tags),this._extra=pt(pt({},this._extra),t.extra),this._contexts=pt(pt({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=pt({timestamp:(0,yt.yW)()},e);return this._breadcrumbs=void 0!==t&&t>=0?vt(this._breadcrumbs,[n]).slice(-t):vt(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=pt(pt({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=pt(pt({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=pt(pt({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=pt(pt({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=pt({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=pt({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=vt(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(vt(Ft(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new Mt((function(i,a){var l=e[r];if(null===t||"function"!=typeof l)i(t);else{var s=l(pt({},t),n);Rt(s)?s.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,s,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function Ft(){var e=(0,gt.Rf)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function Bt(e){Ft().push(e)}function zt(e){try{for(var t=e,n=[],r=0,o=0,i=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=Wt(t))||r>1&&o+n.length*i+a.length>=80);)n.push(a),o+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Wt(e){var t,n,r,o,i,a=e,l=[];if(!a||!a.tagName)return"";if(l.push(a.tagName.toLowerCase()),a.id&&l.push("#"+a.id),(t=a.className)&&Pt(t))for(n=t.split(/\s+/),i=0;i<n.length;i++)l.push("."+n[i]);var s=["type","name","title","alt"];for(i=0;i<s.length;i++)r=s[i],(o=a.getAttribute(r))&&l.push("["+r+'="'+o+'"]');return l.join("")}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(Dt||(Dt={}));var Ut=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}();function Zt(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}function Ht(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function Gt(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Vt(e,t){return!!Pt(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}function Kt(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}}function $t(e){if(Ot(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(jt(e)){var o=e,i={};i.type=o.type;try{i.target=It(o.target)?zt(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=It(o.currentTarget)?zt(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Nt(e,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}return e}function qt(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function Yt(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=Qt(e,t);return qt(r)>n?Yt(e,t-1,n):r}function Xt(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==n.g&&e===n.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Tt(r=e)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Zt(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var r}function Jt(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new Ut),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=Xt(e);return At(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var o=Xt(t,e);if(At(o))return o;var i=$t(t),a=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=Jt(l,i[l],n-1,r));return r.unmemoize(t),a}function Qt(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return Jt(e,n,t)})))}catch(e){return"**non-serializable**"}}function en(e,t){void 0===t&&(t=40);var n=Object.keys($t(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Ht(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:Ht(o,t)}return""}function tn(e){var t,n;if(Tt(e)){var r=e,o={};try{for(var i=ht(Object.keys(r)),a=i.next();!a.done;a=i.next()){var l=a.value;void 0!==r[l]&&(o[l]=tn(r[l]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(tn):e}var nn=function(){function e(e){this.errors=0,this.sid=(0,gt.DM)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=Dt.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,gt.DM)()),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===Dt.Ok?this.update({status:Dt.Exited}):this.update()},e.prototype.toJSON=function(){return tn({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:tn({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),rn=function(){function e(e,t,n){void 0===t&&(t=new Lt),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=Lt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=(0,gt.DM)(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,pt(pt({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=(0,gt.DM)(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,pt(pt({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=(0,gt.DM)();return this._invokeClient("captureEvent",e,pt(pt({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,l=void 0===a?null:a,s=i.maxBreadcrumbs,u=void 0===s?100:s;if(!(u<=0)){var c=(0,yt.yW)(),f=pt({timestamp:c},e),d=l?(0,gt.Cf)((function(){return l(f,t)})):f;null!==d&&r.addBreadcrumb(d,Math.min(u,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=an(this);try{e(this)}finally{an(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return _t.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.startSession=function(e){this.endSession();var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,l=new nn(pt(pt({release:i,environment:a},n&&{user:n.getUser()}),e));return n&&n.setSession(l),l},e.prototype.endSession=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),t.setSession())}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,vt(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=on(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);_t.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function on(){var e=(0,gt.Rf)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function an(e){var t=on(),n=un(t);return cn(t,e),n}function ln(){var e=on();return sn(e)&&!un(e).isOlderThan(3)||cn(e,new rn),(0,St.KV)()?function(e){try{var t=(r=on().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!t)return un(e);if(!sn(t)||un(t).isOlderThan(3)){var n=un(e).getStackTop();cn(t,new rn(n.client,Lt.clone(n.scope)))}return un(t)}catch(t){return un(e)}var r}(e):un(e)}function sn(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function un(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new rn),e.__SENTRY__.hub}function cn(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function fn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ln();if(r&&r[e])return r[e].apply(r,vt(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function dn(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return fn("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function pn(e){fn("withScope",e)}function hn(e){try{document.querySelector(".buttonizer-preview iframe").contentWindow.postMessage({eventType:"buttonizer",messageType:"preview-reload",message:{force:e}},document.location.origin)}catch(e){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."),console.error(e),dn(e),document.querySelector(".buttonizer-preview iframe").contentWindow.location.reload()}}var mn=n(82492),vn=n.n(mn),gn=n(18446),yn=n.n(gn);function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"enqueue",value:function(e){var t=this;return new Promise((function(n,r){t.queue.push({promise:e,resolve:n,reject:r}),t.dequeue()}))}},{key:"dequeue",value:function(){var e=this;if(this.workingOnPromise)return!1;var t=this.queue.shift();if(!t)return!1;try{this.workingOnPromise=!0,Vn.dispatch(ut(!0)),t.promise().then((function(n){e.workingOnPromise=!1,t.resolve(n),e.dequeue()})).catch((function(n){e.workingOnPromise=!1,t.reject(n),e.dequeue()}))}catch(e){this.workingOnPromise=!1,t.reject(e),this.dequeue()}return!0}}],(n=null)&&bn(t.prototype,n),r&&bn(t,r),e}();xn(wn,"queue",[]),xn(wn,"workingOnPromise",!1);var En=setTimeout((function(){})),_n={};function Sn(){clearTimeout(En),En=setTimeout((function(){var e,t,n,r=vn()({},_n);(_n=Vn.getState(),yn()(r,{})||yn()(_n,{})||yn()(r,_n)||!r.misc.loading.loaded||!_n.misc.loading.loaded)||(yn()(r.buttons,_n.buttons)&&yn()(r.groups,_n.groups)||wn.enqueue(On((e=Vn.getState().groups,t=Object.values(e),n=[],t.forEach((function(e){var t=at(e,(function(e){delete e.children})),r=Object.values(le(e.children)),o=[];r.forEach((function(e){var t=at(e,(function(e){delete e.parent}));o.push(t)})),0===o.length&&(o=[{name:"Button",show_mobile:"true",show_desktop:"true"}]),n.push({data:t,buttons:o})})),n),"/buttons")),yn()(r.settings,_n.settings)||(wn.enqueue(On(Vn.getState().settings,"/settings",!0)),r.settings.icon_library===_n.settings.icon_library&&r.settings.icon_library_version===_n.settings.icon_library_version&&r.settings.icon_library_code===_n.settings.icon_library_code&&r.settings.import_icon_library===_n.settings.import_icon_library||wn.enqueue((function(){return new Promise((function(e){var t;null!=(t=document.querySelector(".buttonizer-preview iframe"))&&(t.contentWindow&&t.contentWindow.location?t.contentWindow.location.reload():t.src=t.src),e()}))}))))}),1500)}var On=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(e){e&&e.request?Vn.dispatch(ut({status:e.request.status,statusText:e.request.statusText?e.request.statusText:"Unknown",message:e.request.response?JSON.parse(e.request.response).message?JSON.parse(e.request.response).message:e.request.response:e.message})):Vn.dispatch(ut("failed")),console.error("Something went wrong trying to update this model: \n",e),dn(e)};return function(){return lt(t,{method:"POST",data:{nonce:buttonizer_admin.nonce,data:e}}).then((function(e){var t=e.data;app.setHasChanges(!0),null!==t&&"success"===t.status?(Vn.dispatch(ut(!1)),hn(n)):r()})).catch(r)}},kn={loading:{posts:!1,pages:!1,categories:!1,roles:!1},loaded:{posts:!1,pages:!1,categories:!1,roles:!1},data:{posts:[],pages:[],categories:[],roles:[]}};var Cn={loading:{},drawer:""};var Pn={isUpdating:!1};function An(e){return function(e){if(Array.isArray(e))return Tn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(e){return function(e){if(Array.isArray(e))return Dn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mn={buttons:{},groups:{},timeSchedules:{},settings:{},pageRules:{},_premium:!1};var Ln={templates:[],settings:{loading:!1,error:null,loaded:!1}};function Fn(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Bn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Fn(i,r,o,a,l,"next",e)}function l(e){Fn(i,r,o,a,l,"throw",e)}a(void 0)}))}}var zn=[O.groups.SET_KEY_VALUE,O.groups.SET_KEY_FORMAT,O.buttons.SET_KEY_VALUE,O.buttons.SET_KEY_FORMAT],Wn=[O.groups.ADD_RECORD,O.groups.REMOVE_RECORD,O.buttons.ADD_RECORD,O.buttons.REMOVE_RECORD,O.CHANGE_RELATION],Un={};function Zn(){return(Zn=Bn(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.type,r=t.payload,-1!==zn.indexOf(n)||-1!==Wn.indexOf(n)){e.next=3;break}return e.abrupt("return");case 3:if(!(Wn.indexOf(n)>=0)){e.next=6;break}return Hn("full-reload-required"),e.abrupt("return");case 6:clearTimeout(Un[r.key]),Un[r.key]=setTimeout((function(){var e=r.format&&"normal_hover"===r.format?T.normal_hover.format(r.values[0],r.values[1]):r.value;Hn("preview-data-update",{model:n===O.groups.SET_KEY_VALUE||n===O.groups.SET_KEY_FORMAT?"group":"button",id:r.id,key:r.key,value:e})}),500);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=document.querySelector(".buttonizer-preview iframe");n&&n.contentWindow.postMessage({eventType:"buttonizer",messageType:e,message:t},document.location.origin)}var Gn=u(function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:l.INIT}))throw new Error('Reducer "'+t+"\" 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.");if(void 0===n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+l.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.')}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<a.length;l++){var s=a[l],u=n[s],f=e[s],d=u(f,t);if(void 0===d){var p=c(s,t);throw new Error(p)}o[s]=d,r=r||d!==f}return(r=r||a.length!==Object.keys(e).length)?o:e}}({saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pn,t=arguments.length>1?arguments[1]:void 0;return it(e,(function(e){Object.values(O.buttons).includes(t.type)||Object.values(O.groups).includes(t.type)||Object.values(O.pageRules).includes(t.type)||Object.values(O.timeSchedules).includes(t.type)||O.SET_SETTING_VALUE===t.type||t.type===O.IS_UPDATING&&(e.isUpdating=t.payload.isUpdating)}))},wp:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kn,t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?kn:it(e,(function(e){switch(t.type){case O.wp.GET_DATA_BEGIN:e.loading[t.payload.type]=!0;break;case O.wp.GET_DATA_END:e.loading[t.payload.type]=!1;break;case O.wp.GET_DATA_FAILURE:console.error(t.payload.error);break;case O.wp.GET_DATA_SUCCESS:e.data[t.payload.type]=t.payload.data,e.loaded[t.payload.type]=!0}}))},timeSchedules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.timeSchedules:at(e,(function(e){switch(t.type){case O.timeSchedules.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.timeSchedules.REMOVE_RECORD:delete e[t.payload.id];break;case O.timeSchedules.SET_KEY_VALUE:e[t.payload.id][t.payload.key]=t.payload.value;break;case O.timeSchedules.SET_WEEKDAY:e[t.payload.id].weekdays[t.payload.weekdayKey][t.payload.key]=t.payload.value;break;case O.timeSchedules.ADD_EXCLUDED_DATE:e[t.payload.id].dates.push({opened:!0,open:"8:00",close:"17:00",date:L(new Date)});break;case O.timeSchedules.SET_EXCLUDED_DATE:e[t.payload.id].dates[t.payload.dateKey][t.payload.key]=t.payload.value;break;case O.timeSchedules.REMOVE_EXCLUDED_DATE:e[t.payload.id].dates.splice(t.payload.dateKey,1)}}))},pageRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.pageRules:at(e,(function(e){switch(t.type){case O.pageRules.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.pageRules.REMOVE_RECORD:delete e[t.payload.id];break;case O.pageRules.SET_KEY_VALUE:e[t.payload.id][t.payload.key]=t.payload.value;break;case O.pageRules.ADD_PAGE_RULE_ROW:e[t.payload.id].rules.push({type:"page_title",value:""});break;case O.pageRules.SET_PAGE_RULE_ROW:e[t.payload.id].rules[t.payload.ruleRowKey][t.payload.key]=t.payload.value;break;case O.pageRules.REMOVE_PAGE_RULE_ROW:e[t.payload.id].rules.splice(t.payload.ruleRowKey,1)}}))},groups:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===O.INIT)return t.payload.groups;if(t.type===O.groups.ADD_RECORD&&"string"!=typeof t.payload.index){var n=In(In({},e),{},Rn({},t.payload.record.id,t.payload.record)),r=Object.keys(e);return r.splice(t.payload.index,0,t.payload.record.id),r.reduce((function(e,t){return e[t]=n[t],e}),{})}return it(e,(function(e){switch(t.type){case O.groups.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.groups.REMOVE_RECORD:delete e[t.payload.model_id];break;case O.groups.SET_KEY_VALUE:if("unset"===t.payload.value){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=t.payload.value;break;case O.groups.SET_KEY_FORMAT:var n=T[t.payload.format];if(!n)break;var r=n.format.apply(n,An(t.payload.values));if("unset"===r){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=r;break;case O.ADD_RELATION:if(e[t.payload.group_id].children=e[t.payload.group_id].children||[],"string"!=typeof t.payload.index){e[t.payload.group_id].children.splice(t.payload.index,0,t.payload.button_id);break}e[t.payload.group_id].children.push(t.payload.button_id);break;case O.CHANGE_RELATION:var o=e[t.payload.old_group_id].children.indexOf(t.payload.button_id);e[t.payload.old_group_id].children.splice(o,1),0===e[t.payload.old_group_id].children.length&&delete e[t.payload.old_group_id],e[t.payload.new_group_id].children.splice(t.payload.button_index,0,t.payload.button_id);break;case O.REMOVE_RELATION:var i=e[t.payload.group_id].children.indexOf(t.payload.button_id);e[t.payload.group_id].children.splice(i,1)}}))},buttons:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mn,t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.buttons:it(e,(function(e){switch(t.type){case O.buttons.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.buttons.REMOVE_RECORD:delete e[t.payload.model_id];break;case O.buttons.SET_KEY_VALUE:if("unset"===t.payload.value){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=t.payload.value;break;case O.buttons.SET_KEY_FORMAT:var n=T[t.payload.format];if(!n)break;var r=n.format.apply(n,Nn(t.payload.values));if("unset"===r){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=r;break;case O.ADD_RELATION:e[t.payload.button_id].parent=t.payload.group_id;break;case O.CHANGE_RELATION:e[t.payload.button_id].parent=t.payload.new_group_id;break;case O.REMOVE_RELATION:e[t.payload.button_id].parent=null;break;default:return e}}))},misc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn,t=arguments.length>1?arguments[1]:void 0;return at(e,(function(e){switch(t.type){case O.INIT:e.frameUrl=t.payload.wordpress.base+"?buttonizer-preview=1",e.loading.loadingIframe=!0,e.loading.showLoading=!0,e.loading.loadingString="loading.website",e.hasChanges="1"===t.payload.hasChanges,e.loading.loaded=!0,e.wordpress=t.payload.wordpress,e._premium=t.payload.premium,e.is_opt_in=t.payload.is_opt_in,e.additional_permissions=t.payload.additional_permissions,e._premiumCode=t.payload.premium_code;break;case O.GET_DATA_BEGIN:e.loading.showLoading=!0,e.loading.loadingString="loading.loading";break;case O.GET_DATA_SUCCESS:e.loading.showLoading=!1,e.loading.fetchError=null,e.loading.loaded=!0;break;case O.GET_DATA_FAILURE:e.loading.showLoading=!1,e.loading.fetchError=t.payload.error,console.error(t.payload.error);break;case O.HAS_CHANGES:e.hasChanges=t.payload.hasChanges;break;case O.STOP_LOADING:e.loading.showLoading=!1,e.loading.loadingSlowWebsite=!1,e.loading.loadingIframe=!1}}))},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.settings:at(e,(function(e){switch(t.type){case O.SET_SETTING_VALUE:"can_send_errors"===t.payload.setting&&"undefined"!=typeof buttonizer_admin&&(buttonizer_admin.can_send_errors=t.payload.value),e[t.payload.setting]=t.payload.value}}))},templates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ln,t=arguments.length>1?arguments[1]:void 0;return at(e,(function(e){switch(t.type){case O.templates.INIT:e.templates=t.payload.data,e.settings.loaded=!0;break;case O.templates.GET_DATA_BEGIN:e.settings.loading=!0;break;case O.templates.GET_DATA_FAILURE:e.settings.error=t.payload.error;break;case O.templates.GET_DATA_END:e.settings.loading=!1;break;case O.templates.ADD_RECORD:e.templates.push(t.payload.template)}}))}}),g((function(){return function(e){return function(t){return function(e){Zn.apply(this,arguments)}(t),e(t)}}})));Gn.add=function(e,t){return Gn.dispatch(oe(e,t))},Gn.subscribe(Sn);var Vn=Gn,Kn=n(81253),$n=n(22122),qn=n(45697),Yn=n.n(qn),Xn=n(86010),Jn=n(14670),Qn=n(59693),er=n(17294),tr=n(55192),nr=n(24896),rr=n(78927),or=n(19756),ir=n(63349),ar=n(41788),lr=r.createContext(null);function sr(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function ur(e,t,n){return null!=n[t]?n[t]:e.props[t]}function cr(e,t,n){var o=sr(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,o);return Object.keys(i).forEach((function(a){var l=i[a];if((0,r.isValidElement)(l)){var s=a in t,u=a in o,c=t[a],f=(0,r.isValidElement)(c)&&!c.props.in;!u||s&&!f?u||!s||f?u&&s&&(0,r.isValidElement)(c)&&(i[a]=(0,r.cloneElement)(l,{onExited:n.bind(null,l),in:c.props.in,exit:ur(l,"exit",e),enter:ur(l,"enter",e)})):i[a]=(0,r.cloneElement)(l,{in:!1}):i[a]=(0,r.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:ur(l,"exit",e),enter:ur(l,"enter",e)})}})),i}var fr=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},dr=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,ir.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,ar.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,o=a,sr(n.children,(function(e){return(0,r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:ur(e,"appear",n),enter:ur(e,"enter",n),exit:ur(e,"exit",n)})}))):cr(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=sr(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,$n.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,or.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=fr(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(lr.Provider,{value:i},a):r.createElement(lr.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);dr.propTypes={},dr.defaultProps={component:"div",childFactory:function(e){return e}};var pr=dr,hr="undefined"==typeof window?r.useEffect:r.useLayoutEffect;var mr=function(e){var t=e.classes,n=e.pulsate,o=void 0!==n&&n,i=e.rippleX,a=e.rippleY,l=e.rippleSize,s=e.in,u=e.onExited,c=void 0===u?function(){}:u,f=e.timeout,d=r.useState(!1),p=d[0],h=d[1],m=(0,Xn.Z)(t.ripple,t.rippleVisible,o&&t.ripplePulsate),v={width:l,height:l,top:-l/2+a,left:-l/2+i},g=(0,Xn.Z)(t.child,p&&t.childLeaving,o&&t.childPulsate),y=(0,tr.Z)(c);return hr((function(){if(!s){h(!0);var e=setTimeout(y,f);return function(){clearTimeout(e)}}}),[y,s,f]),r.createElement("span",{className:m,style:v},r.createElement("span",{className:g}))},vr=r.forwardRef((function(e,t){var n=e.center,o=void 0!==n&&n,i=e.classes,a=e.className,l=(0,Kn.Z)(e,["center","classes","className"]),s=r.useState([]),u=s[0],c=s[1],f=r.useRef(0),d=r.useRef(null);r.useEffect((function(){d.current&&(d.current(),d.current=null)}),[u]);var p=r.useRef(!1),h=r.useRef(null),m=r.useRef(null),v=r.useRef(null);r.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=r.useCallback((function(e){var t=e.pulsate,n=e.rippleX,o=e.rippleY,a=e.rippleSize,l=e.cb;c((function(e){return[].concat((0,rr.Z)(e),[r.createElement(mr,{key:f.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:a})])})),f.current+=1,d.current=l}),[i]),y=r.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,l=void 0===a?o||t.pulsate:a,s=t.fakeElement,u=void 0!==s&&s;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,f,d,y=u?null:v.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),f=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,E=x.clientY;c=Math.round(w-b.left),f=Math.round(E-b.top)}if(l)(d=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(d+=1);else{var _=2*Math.max(Math.abs((y?y.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((y?y.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(_,2)+Math.pow(S,2))}e.touches?null===m.current&&(m.current=function(){g({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})},h.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})}}),[o,g]),b=r.useCallback((function(){y({},{pulsate:!0})}),[y]),x=r.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(h.current=setTimeout((function(){x(e,t)})));m.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:b,start:y,stop:x}}),[b,y,x]),r.createElement("span",(0,$n.Z)({className:(0,Xn.Z)(i.root,a),ref:v},l),r.createElement(pr,{component:null,exit:!0},u))})),gr=(0,Jn.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(vr)),yr=r.forwardRef((function(e,t){var n=e.action,i=e.buttonRef,a=e.centerRipple,l=void 0!==a&&a,s=e.children,u=e.classes,c=e.className,f=e.component,d=void 0===f?"button":f,p=e.disabled,h=void 0!==p&&p,m=e.disableRipple,v=void 0!==m&&m,g=e.disableTouchRipple,y=void 0!==g&&g,b=e.focusRipple,x=void 0!==b&&b,w=e.focusVisibleClassName,E=e.onBlur,_=e.onClick,S=e.onFocus,O=e.onFocusVisible,k=e.onKeyDown,C=e.onKeyUp,P=e.onMouseDown,A=e.onMouseLeave,T=e.onMouseUp,j=e.onTouchEnd,I=e.onTouchMove,R=e.onTouchStart,N=e.onDragLeave,D=e.tabIndex,M=void 0===D?0:D,L=e.TouchRippleProps,F=e.type,B=void 0===F?"button":F,z=(0,Kn.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),W=r.useRef(null);var U=r.useRef(null),Z=r.useState(!1),H=Z[0],G=Z[1];h&&H&&G(!1);var V=(0,nr.Z)(),K=V.isFocusVisible,$=V.onBlurVisible,q=V.ref;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,tr.Z)((function(r){return t&&t(r),!n&&U.current&&U.current[e](r),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){G(!0),W.current.focus()}}}),[]),r.useEffect((function(){H&&x&&!v&&U.current.pulsate()}),[v,x,H]);var X=Y("start",P),J=Y("stop",N),Q=Y("stop",T),ee=Y("stop",(function(e){H&&e.preventDefault(),A&&A(e)})),te=Y("start",R),ne=Y("stop",j),re=Y("stop",I),oe=Y("stop",(function(e){H&&($(e),G(!1)),E&&E(e)}),!1),ie=(0,tr.Z)((function(e){W.current||(W.current=e.currentTarget),K(e)&&(G(!0),O&&O(e)),S&&S(e)})),ae=function(){var e=o.findDOMNode(W.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},le=r.useRef(!1),se=(0,tr.Z)((function(e){x&&!le.current&&H&&U.current&&" "===e.key&&(le.current=!0,e.persist(),U.current.stop(e,(function(){U.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!h&&(e.preventDefault(),_&&_(e))})),ue=(0,tr.Z)((function(e){x&&" "===e.key&&U.current&&H&&!e.defaultPrevented&&(le.current=!1,e.persist(),U.current.stop(e,(function(){U.current.pulsate(e)}))),C&&C(e),_&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&_(e)})),ce=d;"button"===ce&&z.href&&(ce="a");var fe={};"button"===ce?(fe.type=B,fe.disabled=h):("a"===ce&&z.href||(fe.role="button"),fe["aria-disabled"]=h);var de=(0,er.Z)(i,t),pe=(0,er.Z)(q,W),he=(0,er.Z)(de,pe),me=r.useState(!1),ve=me[0],ge=me[1];r.useEffect((function(){ge(!0)}),[]);var ye=ve&&!v&&!h;return r.createElement(ce,(0,$n.Z)({className:(0,Xn.Z)(u.root,c,H&&[u.focusVisible,w],h&&u.disabled),onBlur:oe,onClick:_,onFocus:ie,onKeyDown:se,onKeyUp:ue,onMouseDown:X,onMouseLeave:ee,onMouseUp:Q,onDragLeave:J,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:he,tabIndex:h?-1:M},fe,z),s,ye?r.createElement(gr,(0,$n.Z)({ref:U,center:l},L)):null)})),br=(0,Jn.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(yr),xr=n(93871),wr=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,l=void 0===a?"default":a,s=e.component,u=void 0===s?"button":s,c=e.disabled,f=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,m=void 0!==h&&h,v=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,b=void 0!==y&&y,x=e.size,w=void 0===x?"medium":x,E=e.startIcon,_=e.type,S=void 0===_?"button":_,O=e.variant,k=void 0===O?"text":O,C=(0,Kn.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),P=E&&r.createElement("span",{className:(0,Xn.Z)(o.startIcon,o["iconSize".concat((0,xr.Z)(w))])},E),A=v&&r.createElement("span",{className:(0,Xn.Z)(o.endIcon,o["iconSize".concat((0,xr.Z)(w))])},v);return r.createElement(br,(0,$n.Z)({className:(0,Xn.Z)(o.root,o[k],i,"inherit"===l?o.colorInherit:"default"!==l&&o["".concat(k).concat((0,xr.Z)(l))],"medium"!==w&&[o["".concat(k,"Size").concat((0,xr.Z)(w))],o["size".concat((0,xr.Z)(w))]],p&&o.disableElevation,f&&o.disabled,b&&o.fullWidth),component:u,disabled:f,focusRipple:!m,focusVisibleClassName:(0,Xn.Z)(o.focusVisible,g),ref:t,type:S},C),r.createElement("span",{className:o.label},P,n,A))})),Er=(0,Jn.Z)((function(e){return{root:(0,$n.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,Qn.U1)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Qn.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Qn.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,Qn.U1)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,Qn.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,Qn.U1)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,Qn.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(wr);function _r(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Sr(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Or(e){var t=Sr(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kr(e){return e instanceof Sr(e).Element||e instanceof Element}function Cr(e){return e instanceof Sr(e).HTMLElement||e instanceof HTMLElement}function Pr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Sr(e).ShadowRoot||e instanceof ShadowRoot)}function Ar(e){return e?(e.nodeName||"").toLowerCase():null}function Tr(e){return((kr(e)?e.ownerDocument:e.document)||window.document).documentElement}function jr(e){return _r(Tr(e)).left+Or(e).scrollLeft}function Ir(e){return Sr(e).getComputedStyle(e)}function Rr(e){var t=Ir(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Nr(e,t,n){void 0===n&&(n=!1);var r=Tr(t),o=_r(e),i=Cr(t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Ar(t)||Rr(r))&&(a=function(e){return e!==Sr(e)&&Cr(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Or(e);var t}(t)),Cr(t)?((l=_r(t)).x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=jr(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Dr(e){var t=_r(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Mr(e){return"html"===Ar(e)?e:e.assignedSlot||e.parentNode||(Pr(e)?e.host:null)||Tr(e)}function Lr(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(Ar(t))>=0?t.ownerDocument.body:Cr(t)&&Rr(t)?t:e(Mr(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Sr(r),a=o?[i].concat(i.visualViewport||[],Rr(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Lr(Mr(a)))}function Fr(e){return["table","td","th"].indexOf(Ar(e))>=0}function Br(e){return Cr(e)&&"fixed"!==Ir(e).position?e.offsetParent:null}function zr(e){for(var t=Sr(e),n=Br(e);n&&Fr(n)&&"static"===Ir(n).position;)n=Br(n);return n&&("html"===Ar(n)||"body"===Ar(n)&&"static"===Ir(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Cr(e)&&"fixed"===Ir(e).position)return null;for(var n=Mr(e);Cr(n)&&["html","body"].indexOf(Ar(n))<0;){var r=Ir(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Wr="top",Ur="bottom",Zr="right",Hr="left",Gr=[Wr,Ur,Zr,Hr],Vr=Gr.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),Kr=[].concat(Gr,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),$r=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function qr(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}function Yr(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Xr={placement:"bottom",modifiers:[],strategy:"absolute"};function Jr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Qr(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Xr:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xr,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,s={state:o,setOptions:function(n){u(),o.options=Object.assign({},i,o.options,n),o.scrollParents={reference:kr(e)?Lr(e):e.contextElement?Lr(e.contextElement):[],popper:Lr(t)};var l=function(e){var t=qr(e);return $r.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=l.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var l=i({state:o,name:t,instance:s,options:r});a.push(l||function(){})}})),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(Jr(t,n)){o.rects={reference:Nr(t,zr(n),"fixed"===o.options.strategy),popper:Dr(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,c=void 0===u?{}:u,f=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:f,instance:s})||o)}else o.reset=!1,r=-1}}},update:Yr((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),l=!0}};if(!Jr(e,t))return s;function u(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var eo={passive:!0};var to={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=Sr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,eo)})),l&&s.addEventListener("resize",n.update,eo),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,eo)})),l&&s.removeEventListener("resize",n.update,eo)}},data:{}};function no(e){return e.split("-")[0]}function ro(e){return e.split("-")[1]}function oo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function io(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?no(o):null,a=o?ro(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Wr:t={x:l,y:n.y-r.height};break;case Ur:t={x:l,y:n.y+n.height};break;case Zr:t={x:n.x+n.width,y:s};break;case Hr:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?oo(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case"start":t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var ao={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=io({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},lo=Math.max,so=Math.min,uo=Math.round,co={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fo(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,l=e.gpuAcceleration,s=e.adaptive,u=e.roundOffsets,c=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:uo(uo(t*r)/r)||0,y:uo(uo(n*r)/r)||0}}(i):"function"==typeof u?u(i):i,f=c.x,d=void 0===f?0:f,p=c.y,h=void 0===p?0:p,m=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),g=Hr,y=Wr,b=window;if(s){var x=zr(n),w="clientHeight",E="clientWidth";x===Sr(n)&&"static"!==Ir(x=Tr(n)).position&&(w="scrollHeight",E="scrollWidth"),x=x,o===Wr&&(y=Ur,h-=x[w]-r.height,h*=l?1:-1),o===Hr&&(g=Zr,d-=x[E]-r.width,d*=l?1:-1)}var _,S=Object.assign({position:a},s&&co);return l?Object.assign({},S,((_={})[y]=v?"0":"",_[g]=m?"0":"",_.transform=(b.devicePixelRatio||1)<2?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",_)):Object.assign({},S,((t={})[y]=v?h+"px":"",t[g]=m?d+"px":"",t.transform="",t))}var po={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Cr(o)&&Ar(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Cr(r)&&Ar(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ho={left:"right",right:"left",bottom:"top",top:"bottom"};function mo(e){return e.replace(/left|right|bottom|top/g,(function(e){return ho[e]}))}var vo={start:"end",end:"start"};function go(e){return e.replace(/start|end/g,(function(e){return vo[e]}))}function yo(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xo(e,t){return"viewport"===t?bo(function(e){var t=Sr(e),n=Tr(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,l=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:o,height:i,x:a+jr(e),y:l}}(e)):Cr(t)?function(e){var t=_r(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):bo(function(e){var t,n=Tr(e),r=Or(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=lo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=lo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+jr(e),s=-r.scrollTop;return"rtl"===Ir(o||n).direction&&(l+=lo(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Tr(e)))}function wo(e,t,n){var r="clippingParents"===t?function(e){var t=Lr(Mr(e)),n=["absolute","fixed"].indexOf(Ir(e).position)>=0&&Cr(e)?zr(e):e;return kr(n)?t.filter((function(e){return kr(e)&&yo(e,n)&&"body"!==Ar(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=xo(e,n);return t.top=lo(r.top,t.top),t.right=so(r.right,t.right),t.bottom=so(r.bottom,t.bottom),t.left=lo(r.left,t.left),t}),xo(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Eo(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _o(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function So(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,l=n.rootBoundary,s=void 0===l?"viewport":l,u=n.elementContext,c=void 0===u?"popper":u,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,m=Eo("number"!=typeof h?h:_o(h,Gr)),v="popper"===c?"reference":"popper",g=e.elements.reference,y=e.rects.popper,b=e.elements[d?v:c],x=wo(kr(b)?b:b.contextElement||Tr(e.elements.popper),a,s),w=_r(g),E=io({reference:w,element:y,strategy:"absolute",placement:o}),_=bo(Object.assign({},y,E)),S="popper"===c?_:w,O={top:x.top-S.top+m.top,bottom:S.bottom-x.bottom+m.bottom,left:x.left-S.left+m.left,right:S.right-x.right+m.right},k=e.modifiersData.offset;if("popper"===c&&k){var C=k[o];Object.keys(O).forEach((function(e){var t=[Zr,Ur].indexOf(e)>=0?1:-1,n=[Wr,Ur].indexOf(e)>=0?"y":"x";O[e]+=C[n]*t}))}return O}function Oo(e,t,n){return lo(e,so(t,n))}function ko(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Co(e){return[Wr,Zr,Ur,Hr].some((function(t){return e[t]>=0}))}var Po=Qr({defaultModifiers:[to,ao,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:no(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,fo(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,fo(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},po,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Kr.reduce((function(e,n){return e[n]=function(e,t,n){var r=no(e),o=[Hr,Wr].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Hr,Zr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=no(v),y=s||(g===v||!h?[mo(v)]:function(e){if("auto"===no(e))return[];var t=mo(e);return[go(e),t,go(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat("auto"===no(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Kr:s,c=ro(r),f=c?l?Vr:Vr.filter((function(e){return ro(e)===c})):Gr,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=So(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[no(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,E=new Map,_=!0,S=b[0],O=0;O<b.length;O++){var k=b[O],C=no(k),P="start"===ro(k),A=[Wr,Ur].indexOf(C)>=0,T=A?"width":"height",j=So(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),I=A?P?Zr:Hr:P?Ur:Wr;x[T]>w[T]&&(I=mo(I));var R=mo(I),N=[];if(i&&N.push(j[C]<=0),l&&N.push(j[I]<=0,j[R]<=0),N.every((function(e){return e}))){S=k,_=!1;break}E.set(k,N)}if(_)for(var D=function(e){var t=b.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},M=h?3:1;M>0;M--){if("break"===D(M))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,v=So(t,{boundary:s,rootBoundary:u,padding:f,altBoundary:c}),g=no(t.placement),y=ro(t.placement),b=!y,x=oo(g),w="x"===x?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,S=t.rects.popper,O="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k={x:0,y:0};if(E){if(i||l){var C="y"===x?Wr:Hr,P="y"===x?Ur:Zr,A="y"===x?"height":"width",T=E[x],j=E[x]+v[C],I=E[x]-v[P],R=p?-S[A]/2:0,N="start"===y?_[A]:S[A],D="start"===y?-S[A]:-_[A],M=t.elements.arrow,L=p&&M?Dr(M):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[C],z=F[P],W=Oo(0,_[A],L[A]),U=b?_[A]/2-R-W-B-O:N-W-B-O,Z=b?-_[A]/2+R+W+z+O:D+W+z+O,H=t.elements.arrow&&zr(t.elements.arrow),G=H?"y"===x?H.clientTop||0:H.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,K=E[x]+U-V-G,$=E[x]+Z-V;if(i){var q=Oo(p?so(j,K):j,T,p?lo(I,$):I);E[x]=q,k[x]=q-T}if(l){var Y="x"===x?Wr:Hr,X="x"===x?Ur:Zr,J=E[w],Q=J+v[Y],ee=J-v[X],te=Oo(p?so(Q,K):Q,J,p?lo(ee,$):ee);E[w]=te,k[w]=te-J}}t.modifiersData[r]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=no(n.placement),s=oo(l),u=[Hr,Zr].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Eo("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:_o(e,Gr))}(o.padding,n),f=Dr(i),d="y"===s?Wr:Hr,p="y"===s?Ur:Zr,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],v=zr(i),g=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=c[d],x=g-f[u]-c[p],w=g/2-f[u]/2+y,E=Oo(b,w,x),_=s;n.modifiersData[r]=((t={})[_]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&yo(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=So(t,{elementContext:"reference"}),l=So(t,{altBoundary:!0}),s=ko(a,r),u=ko(l,o,i),c=Co(s),f=Co(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Ao={passive:!0,capture:!0};function To(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function jo(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Io(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ro(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function No(e){return[].concat(e)}function Do(e,t){-1===e.indexOf(t)&&e.push(t)}function Mo(e){return e.split("-")[0]}function Lo(e){return[].slice.call(e)}function Fo(){return document.createElement("div")}function Bo(e){return["Element","Fragment"].some((function(t){return jo(e,t)}))}function zo(e){return jo(e,"MouseEvent")}function Wo(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Uo(e){return Bo(e)?[e]:function(e){return jo(e,"NodeList")}(e)?Lo(e):Array.isArray(e)?e:Lo(document.querySelectorAll(e))}function Zo(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Ho(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Go(e){var t,n=No(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function Vo(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var Ko={isTouch:!1},$o=0;function qo(){Ko.isTouch||(Ko.isTouch=!0,window.performance&&document.addEventListener("mousemove",Yo))}function Yo(){var e=performance.now();e-$o<20&&(Ko.isTouch=!1,document.removeEventListener("mousemove",Yo)),$o=e}function Xo(){var e=document.activeElement;if(Wo(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Jo="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Qo=/MSIE |Trident\//.test(Jo);var ei={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ti=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ei,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),ni=Object.keys(ti);function ri(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function oi(e,t){var n=Object.assign({},t,{content:Io(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ri(Object.assign({},ti,{plugins:t}))):ni).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},ti.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function ii(e,t){e.innerHTML=t}function ai(e){var t=Fo();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",Bo(e)?t.appendChild(e):ii(t,e)),t}function li(e,t){Bo(t.content)?(ii(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ii(e,t.content):e.textContent=t.content)}function si(e){var t=e.firstElementChild,n=Lo(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function ui(e){var t=Fo(),n=Fo();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Fo();function o(n,r){var o=si(t),i=o.box,a=o.content,l=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||li(a,e.props),r.arrow?l?n.arrow!==r.arrow&&(i.removeChild(l),i.appendChild(ai(r.arrow))):i.appendChild(ai(r.arrow)):l&&i.removeChild(l)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),li(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}ui.$$tippy=!0;var ci=1,fi=[],di=[];function pi(e,t){var n,r,o,i,a,l,s,u,c,f=oi(e,Object.assign({},ti,{},ri((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),d=!1,p=!1,h=!1,m=!1,v=[],g=Ro($,f.interactiveDebounce),y=ci++,b=(c=f.plugins).filter((function(e,t){return c.indexOf(e)===t})),x={id:y,reference:e,popper:Fo(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){0;if(x.state.isDestroyed)return;N("onBeforeUpdate",[x,t]),V();var n=x.props,r=oi(e,Object.assign({},x.props,{},t,{ignoreAttributes:!0}));x.props=r,G(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),g=Ro($,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?No(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");M(),R(),_&&_(n,r);x.popperInstance&&(J(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));N("onAfterUpdate",[x,t])},setContent:function(e){x.setProps({content:e})},show:function(){0;var e=x.state.isVisible,t=x.state.isDestroyed,n=!x.state.isEnabled,r=Ko.isTouch&&!x.props.touch,o=To(x.props.duration,0,ti.duration);if(e||t||n||r)return;if(A().hasAttribute("disabled"))return;if(N("onShow",[x],!1),!1===x.props.onShow(x))return;x.state.isVisible=!0,P()&&(E.style.visibility="visible");R(),W(),x.state.isMounted||(E.style.transition="none");if(P()){var i=j(),a=i.box,l=i.content;Zo([a,l],0)}s=function(){var e;if(x.state.isVisible&&!m){if(m=!0,E.offsetHeight,E.style.transition=x.props.moveTransition,P()&&x.props.animation){var t=j(),n=t.box,r=t.content;Zo([n,r],o),Ho([n,r],"visible")}D(),M(),Do(di,x),null==(e=x.popperInstance)||e.forceUpdate(),x.state.isMounted=!0,N("onMount",[x]),x.props.animation&&P()&&function(e,t){Z(e,t)}(o,(function(){x.state.isShown=!0,N("onShown",[x])}))}},function(){var e,t=x.props.appendTo,n=A();e=x.props.interactive&&t===ti.appendTo||"parent"===t?n.parentNode:Io(t,[n]);e.contains(E)||e.appendChild(E);J(),!1}()},hide:function(){0;var e=!x.state.isVisible,t=x.state.isDestroyed,n=!x.state.isEnabled,r=To(x.props.duration,1,ti.duration);if(e||t||n)return;if(N("onHide",[x],!1),!1===x.props.onHide(x))return;x.state.isVisible=!1,x.state.isShown=!1,m=!1,d=!1,P()&&(E.style.visibility="hidden");if(L(),U(),R(),P()){var o=j(),i=o.box,a=o.content;x.props.animation&&(Zo([i,a],r),Ho([i,a],"hidden"))}D(),M(),x.props.animation?P()&&function(e,t){Z(e,(function(){!x.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&t()}))}(r,x.unmount):x.unmount()},hideWithInteractivity:function(e){0;T().addEventListener("mousemove",g),Do(fi,g),g(e)},enable:function(){x.state.isEnabled=!0},disable:function(){x.hide(),x.state.isEnabled=!1},unmount:function(){0;x.state.isVisible&&x.hide();if(!x.state.isMounted)return;Q(),ee().forEach((function(e){e._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E);di=di.filter((function(e){return e!==x})),x.state.isMounted=!1,N("onHidden",[x])},destroy:function(){0;if(x.state.isDestroyed)return;x.clearDelayTimeouts(),x.unmount(),V(),delete e._tippy,x.state.isDestroyed=!0,N("onDestroy",[x])}};if(!f.render)return x;var w=f.render(x),E=w.popper,_=w.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+x.id,x.popper=E,e._tippy=x,E._tippy=x;var S=b.map((function(e){return e.fn(x)})),O=e.hasAttribute("aria-expanded");return G(),M(),R(),N("onCreate",[x]),f.showOnCreate&&te(),E.addEventListener("mouseenter",(function(){x.props.interactive&&x.state.isVisible&&x.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(e){x.props.interactive&&x.props.trigger.indexOf("mouseenter")>=0&&(T().addEventListener("mousemove",g),g(e))})),x;function k(){var e=x.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===k()[0]}function P(){var e;return!!(null==(e=x.props.render)?void 0:e.$$tippy)}function A(){return u||e}function T(){var e=A().parentNode;return e?Go(e):document}function j(){return si(E)}function I(e){return x.state.isMounted&&!x.state.isVisible||Ko.isTouch||a&&"focus"===a.type?0:To(x.props.delay,e?0:1,ti.delay)}function R(){E.style.pointerEvents=x.props.interactive&&x.state.isVisible?"":"none",E.style.zIndex=""+x.props.zIndex}function N(e,t,n){var r;(void 0===n&&(n=!0),S.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=x.props)[e].apply(r,t)}function D(){var t=x.props.aria;if(t.content){var n="aria-"+t.content,r=E.id;No(x.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(x.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function M(){!O&&x.props.aria.expanded&&No(x.props.triggerTarget||e).forEach((function(e){x.props.interactive?e.setAttribute("aria-expanded",x.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function L(){T().removeEventListener("mousemove",g),fi=fi.filter((function(e){return e!==g}))}function F(e){if(!(Ko.isTouch&&(h||"mousedown"===e.type)||x.props.interactive&&E.contains(e.target))){if(A().contains(e.target)){if(Ko.isTouch)return;if(x.state.isVisible&&x.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[x,e]);!0===x.props.hideOnClick&&(x.clearDelayTimeouts(),x.hide(),p=!0,setTimeout((function(){p=!1})),x.state.isMounted||U())}}function B(){h=!0}function z(){h=!1}function W(){var e=T();e.addEventListener("mousedown",F,!0),e.addEventListener("touchend",F,Ao),e.addEventListener("touchstart",z,Ao),e.addEventListener("touchmove",B,Ao)}function U(){var e=T();e.removeEventListener("mousedown",F,!0),e.removeEventListener("touchend",F,Ao),e.removeEventListener("touchstart",z,Ao),e.removeEventListener("touchmove",B,Ao)}function Z(e,t){var n=j().box;function r(e){e.target===n&&(Vo(n,"remove",r),t())}if(0===e)return t();Vo(n,"remove",l),Vo(n,"add",r),l=r}function H(t,n,r){void 0===r&&(r=!1),No(x.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),v.push({node:e,eventType:t,handler:n,options:r})}))}function G(){var e;C()&&(H("touchstart",K,{passive:!0}),H("touchend",q,{passive:!0})),(e=x.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,K),e){case"mouseenter":H("mouseleave",q);break;case"focus":H(Qo?"focusout":"blur",Y);break;case"focusin":H("focusout",Y)}}))}function V(){v.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),v=[]}function K(e){var t,n=!1;if(x.state.isEnabled&&!X(e)&&!p){var r="focus"===(null==(t=a)?void 0:t.type);a=e,u=e.currentTarget,M(),!x.state.isVisible&&zo(e)&&fi.forEach((function(t){return t(e)})),"click"===e.type&&(x.props.trigger.indexOf("mouseenter")<0||d)&&!1!==x.props.hideOnClick&&x.state.isVisible?n=!0:te(e),"click"===e.type&&(d=!n),n&&!r&&ne(e)}}function $(e){var t=e.target,n=A().contains(t)||E.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=Mo(o.placement),l=o.modifiersData.offset;if(!l)return!0;var s="bottom"===a?l.top.y:0,u="top"===a?l.bottom.y:0,c="right"===a?l.left.x:0,f="left"===a?l.right.x:0,d=t.top-r+s>i,p=r-t.bottom-u>i,h=t.left-n+c>i,m=n-t.right-f>i;return d||p||h||m}))}(ee().concat(E).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean),e)&&(L(),ne(e))}function q(e){X(e)||x.props.trigger.indexOf("click")>=0&&d||(x.props.interactive?x.hideWithInteractivity(e):ne(e))}function Y(e){x.props.trigger.indexOf("focusin")<0&&e.target!==A()||x.props.interactive&&e.relatedTarget&&E.contains(e.relatedTarget)||ne(e)}function X(e){return!!Ko.isTouch&&C()!==e.type.indexOf("touch")>=0}function J(){Q();var t=x.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=P()?si(E).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||A()}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(P()){var n=j().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];P()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),x.popperInstance=Po(u,E,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:c}))}function Q(){x.popperInstance&&(x.popperInstance.destroy(),x.popperInstance=null)}function ee(){return Lo(E.querySelectorAll("[data-tippy-root]"))}function te(e){x.clearDelayTimeouts(),e&&N("onTrigger",[x,e]),W();var t=I(!0),n=k(),o=n[0],i=n[1];Ko.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){x.show()}),t):x.show()}function ne(e){if(x.clearDelayTimeouts(),N("onUntrigger",[x,e]),x.state.isVisible){if(!(x.props.trigger.indexOf("mouseenter")>=0&&x.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=I(!1);t?o=setTimeout((function(){x.state.isVisible&&x.hide()}),t):i=requestAnimationFrame((function(){x.hide()}))}}else U()}}function hi(e,t){void 0===t&&(t={});var n=ti.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",qo,Ao),window.addEventListener("blur",Xo);var r=Object.assign({},t,{plugins:n}),o=Uo(e).reduce((function(e,t){var n=t&&pi(t,r);return n&&e.push(n),e}),[]);return Bo(e)?o[0]:o}hi.defaultProps=ti,hi.setDefaultProps=function(e){Object.keys(e).forEach((function(t){ti[t]=e[t]}))},hi.currentInput=Ko;Object.assign({},po,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});hi.setDefaultProps({render:ui});var mi=hi;function vi(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var gi="undefined"!=typeof window&&"undefined"!=typeof document;function yi(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function bi(){return gi&&document.createElement("div")}function xi(e){var t=[];return e.forEach((function(e){t.find((function(t){return function e(t,n){if(t===n)return!0;if("object"==typeof t&&null!=t&&"object"==typeof n&&null!=n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t){if(!n.hasOwnProperty(r))return!1;if(!e(t[r],n[r]))return!1}return!0}return!1}(e,t)}))||t.push(e)})),t}function wi(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:xi([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var Ei=gi?r.useLayoutEffect:r.useEffect;function _i(e){var t=(0,r.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Si(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Oi={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Si(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Si(t,"remove",e.props.className)},onAfterUpdate:r}}};function ki(e){return function(t){var n=t.children,i=t.content,a=t.visible,l=t.singleton,s=t.render,u=t.reference,c=t.disabled,f=void 0!==c&&c,d=t.ignoreAttributes,p=void 0===d||d,h=(t.__source,t.__self,vi(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),m=void 0!==a,v=void 0!==l,g=(0,r.useState)(!1),y=g[0],b=g[1],x=(0,r.useState)({}),w=x[0],E=x[1],_=(0,r.useState)(),S=_[0],O=_[1],k=_i((function(){return{container:bi(),renders:1}})),C=Object.assign({ignoreAttributes:p},h,{content:k.container});m&&(C.trigger="manual",C.hideOnClick=!1),v&&(f=!0);var P=C,A=C.plugins||[];s&&(P=Object.assign({},C,{plugins:v?[].concat(A,[{fn:function(){return{onTrigger:function(e,t){var n=l.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;O(n)}}}}]):A,render:function(){return{popper:k.container}}}));var T=[u].concat(n?[n.type]:[]);return Ei((function(){var t=u;u&&u.hasOwnProperty("current")&&(t=u.current);var n=e(t||k.ref||bi(),Object.assign({},P,{plugins:[Oi].concat(C.plugins||[])}));return k.instance=n,f&&n.disable(),a&&n.show(),v&&l.hook({instance:n,content:i,props:P}),b(!0),function(){n.destroy(),null==l||l.cleanup(n)}}),T),Ei((function(){var e;if(1!==k.renders){var t=k.instance;t.setProps(wi(t.props,P)),null==(e=t.popperInstance)||e.forceUpdate(),f?t.disable():t.enable(),m&&(a?t.show():t.hide()),v&&l.hook({instance:t,content:i,props:P})}else k.renders++})),Ei((function(){var e;if(s){var t=k.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;w.placement===n.placement&&w.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&w.escaped===(null==r?void 0:r.hasPopperEscaped)||E({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[w.placement,w.referenceHidden,w.escaped].concat(T)),r.createElement(r.Fragment,null,n?(0,r.cloneElement)(n,{ref:function(e){k.ref=e,yi(n.ref,e)}}):null,y&&(0,o.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(w),S,k.instance):i,k.container))}}var Ci=function(e,t){return(0,r.forwardRef)((function(n,o){var i=n.children,a=vi(n,["children"]);return r.createElement(e,Object.assign({},t,a),i?(0,r.cloneElement)(i,{ref:function(e){yi(o,e),yi(i.ref,e)}}):null)}))},Pi=Ci(ki(mi)),Ai=r.createContext(null);var Ti=function(e){e()},ji=function(){return Ti},Ii={notify:function(){}};var Ri=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=Ii,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=ji(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Ii)},e}(),Ni="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;var Di=function(e){var t=e.store,n=e.context,o=e.children,i=(0,r.useMemo)((function(){var e=new Ri(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);Ni((function(){var e=i.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||Ai;return r.createElement(l.Provider,{value:i},o)},Mi=n(8679),Li=n.n(Mi),Fi=n(72973),Bi=[],zi=[null,null];function Wi(e,t){var n=e[1];return[t.payload,n+1]}function Ui(e,t,n){Ni((function(){return e.apply(void 0,t)}),n)}function Zi(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function Hi(e,t,n,r,o,i,a,l,s,u){if(e){var c=!1,f=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var Gi=function(){return[null,0]};function Vi(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,i=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,a=n.methodName,l=void 0===a?"connectAdvanced":a,s=n.renderCountProp,u=void 0===s?void 0:s,c=n.shouldHandleStateChanges,f=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,h=(n.withRef,n.forwardRef),m=void 0!==h&&h,v=n.context,g=void 0===v?Ai:v,y=(0,or.Z)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),b=g;return function(t){var n=t.displayName||t.name||"Component",o=i(n),a=(0,$n.Z)({},y,{getDisplayName:i,methodName:l,renderCountProp:u,shouldHandleStateChanges:f,storeKey:p,displayName:o,wrappedComponentName:n,WrappedComponent:t}),s=y.pure;var c=s?r.useMemo:function(e){return e()};function d(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,or.Z)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),i=o[0],l=o[1],s=o[2],u=(0,r.useMemo)((function(){return i&&i.Consumer&&(0,Fi.isContextConsumer)(r.createElement(i.Consumer,null))?i:b}),[i,b]),d=(0,r.useContext)(u),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var h=p?n.store:d.store,m=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(h)}),[h]),v=(0,r.useMemo)((function(){if(!f)return zi;var e=new Ri(h,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,p,d]),g=v[0],y=v[1],x=(0,r.useMemo)((function(){return p?d:(0,$n.Z)({},d,{subscription:g})}),[p,d,g]),w=(0,r.useReducer)(Wi,Bi,Gi),E=w[0][0],_=w[1];if(E&&E.error)throw E.error;var S=(0,r.useRef)(),O=(0,r.useRef)(s),k=(0,r.useRef)(),C=(0,r.useRef)(!1),P=c((function(){return k.current&&s===O.current?k.current:m(h.getState(),s)}),[h,E,s]);Ui(Zi,[O,S,C,s,P,k,y]),Ui(Hi,[f,h,g,m,O,S,C,k,y,_],[h,g,m]);var A=(0,r.useMemo)((function(){return r.createElement(t,(0,$n.Z)({},P,{ref:l}))}),[l,t,P]);return(0,r.useMemo)((function(){return f?r.createElement(u.Provider,{value:x},A):A}),[u,A,x])}var h=s?r.memo(d):d;if(h.WrappedComponent=t,h.displayName=o,m){var v=r.forwardRef((function(e,t){return r.createElement(h,(0,$n.Z)({},e,{reactReduxForwardedRef:t}))}));return v.displayName=o,v.WrappedComponent=t,Li()(v,t)}return Li()(h,t)}}function Ki(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function $i(e,t){if(Ki(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Ki(e[n[o]],t[n[o]]))return!1;return!0}function qi(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function Yi(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Xi(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Yi(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Yi(o),o=r(t,n)),o},r}}var Ji=[function(e){return"function"==typeof e?Xi(e):void 0},function(e){return e?void 0:qi((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?qi((function(t){return d(e,t)})):void 0}];var Qi=[function(e){return"function"==typeof e?Xi(e):void 0},function(e){return e?void 0:qi((function(){return{}}))}];function ea(e,t,n){return(0,$n.Z)({},n,e,t)}var ta=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return ea}}];function na(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function ra(e,t,n,r,o){var i,a,l,s,u,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,m,v=!f(p,a),g=!c(o,i);return i=o,a=p,v&&g?(l=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):v?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):g?(h=e(i,a),m=!d(h,l),l=h,m&&(u=n(l,s,a)),u):u}return function(o,c){return p?h(o,c):(l=e(i=o,a=c),s=t(r,a),u=n(l,s,a),p=!0,u)}}function oa(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,or.Z)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),l=r(e,i),s=o(e,i);return(i.pure?ra:na)(a,l,s,e,i)}function ia(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function aa(e,t){return e===t}function la(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Vi:n,o=t.mapStateToPropsFactories,i=void 0===o?Qi:o,a=t.mapDispatchToPropsFactories,l=void 0===a?Ji:a,s=t.mergePropsFactories,u=void 0===s?ta:s,c=t.selectorFactory,f=void 0===c?oa:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,c=void 0===s||s,d=a.areStatesEqual,p=void 0===d?aa:d,h=a.areOwnPropsEqual,m=void 0===h?$i:h,v=a.areStatePropsEqual,g=void 0===v?$i:v,y=a.areMergedPropsEqual,b=void 0===y?$i:y,x=(0,or.Z)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=ia(e,i,"mapStateToProps"),E=ia(t,l,"mapDispatchToProps"),_=ia(n,u,"mergeProps");return r(f,(0,$n.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:E,initMergeProps:_,pure:c,areStatesEqual:p,areOwnPropsEqual:m,areStatePropsEqual:g,areMergedPropsEqual:b},x))}}var sa=la();function ua(){return(0,r.useContext)(Ai)}function ca(e){void 0===e&&(e=Ai);var t=e===Ai?ua:function(){return(0,r.useContext)(e)};return function(){return t().store}}var fa=ca();function da(e){void 0===e&&(e=Ai);var t=e===Ai?fa:ca(e);return function(){return t().dispatch}}var pa=da(),ha=function(e,t){return e===t};function ma(e){void 0===e&&(e=Ai);var t=e===Ai?ua:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=ha);var o=t(),i=function(e,t,n,o){var i,a=(0,r.useReducer)((function(e){return e+1}),0)[1],l=(0,r.useMemo)((function(){return new Ri(n,o)}),[n,o]),s=(0,r.useRef)(),u=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(),d=n.getState();try{if(e!==u.current||d!==c.current||s.current){var p=e(d);i=void 0!==f.current&&t(p,f.current)?f.current:p}else i=f.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return Ni((function(){u.current=e,c.current=d,f.current=i,s.current=void 0})),Ni((function(){function e(){try{var e=u.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){s.current=e}a()}return l.onStateChange=e,l.trySubscribe(),e(),function(){return l.tryUnsubscribe()}}),[n,l]),i}(e,n,o.store,o.subscription);return(0,r.useDebugValue)(i),i}}var va,ga=ma();va=o.unstable_batchedUpdates,Ti=va;var ya=sa((function(e,t){return{preference:e.settings.show_tooltips,props:t}}))((function(e){var t=e.props,n=e.arrow,o=void 0===n||n,i=e.trigger,a=void 0===i?"manual":i,l=e.preference;if(!l)return t.children;var s=setTimeout((function(){})),u=!1,c=!1;return r.createElement(Pi,{content:t.content,hideOnClick:t.hideOnClick,theme:"material",disabled:!l||t.disabled,trigger:a,arrow:o,onCreate:function(e){"manual"===a&&(e.reference.addEventListener("mousemove",(function(t){u&&c&&(Math.abs(t.clientX-u)>10||Math.abs(t.clientY-c)>10)&&e.state.isShown&&e.hide(),clearTimeout(s),s=setTimeout((function(){e.show(),u=t.clientX,c=t.clientY}),500)})),e.reference.addEventListener("mouseleave",(function(){clearTimeout(s),e.hide(),u=c=!1})))},onDestroy:function(){clearTimeout(s)}},t.children)}));n(59864);Er.styles;var ba=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,l=void 0===a?"default":a,s=e.component,u=void 0===s?"div":s,c=e.disabled,f=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,m=void 0!==h&&h,v=e.disableRipple,g=void 0!==v&&v,y=e.fullWidth,b=void 0!==y&&y,x=e.orientation,w=void 0===x?"horizontal":x,E=e.size,_=void 0===E?"medium":E,S=e.variant,O=void 0===S?"outlined":S,k=(0,Kn.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),C=(0,Xn.Z)(o.grouped,o["grouped".concat((0,xr.Z)(w))],o["grouped".concat((0,xr.Z)(O))],o["grouped".concat((0,xr.Z)(O)).concat((0,xr.Z)(w))],o["grouped".concat((0,xr.Z)(O)).concat("default"!==l?(0,xr.Z)(l):"")],f&&o.disabled);return r.createElement(u,(0,$n.Z)({role:"group",className:(0,Xn.Z)(o.root,i,b&&o.fullWidth,p&&o.disableElevation,"contained"===O&&o.contained,"vertical"===w&&o.vertical),ref:t},k),r.Children.map(n,(function(e){return r.isValidElement(e)?r.cloneElement(e,{className:(0,Xn.Z)(C,e.props.className),color:e.props.color||l,disabled:e.props.disabled||f,disableElevation:e.props.disableElevation||p,disableFocusRipple:m,disableRipple:g,fullWidth:b,size:e.props.size||_,variant:e.props.variant||O}):null})))})),xa=(0,Jn.Z)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:(0,Qn.U1)(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:(0,Qn.U1)(e.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:e.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:e.palette.secondary.dark}}}}),{name:"MuiButtonGroup"})(ba);function wa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ea(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ea(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _a(){var e=wa((0,r.useState)("desktop"),2),t=e[0],n=e[1];function o(e){e!==n&&(n(e),document.querySelector(".buttonizer-preview").className=(0,Xn.Z)("buttonizer-preview","mobile"===e&&"frame-size-mobile","tablet"===e&&"frame-size-tablet"))}return r.createElement("div",{className:"device-preview"},r.createElement(xa,{color:"primary"},r.createElement(ya,{content:H("bar.preview.desktop")},r.createElement(Er,{onClick:function(){return o("desktop")},variant:"desktop"===t?"contained":null,color:"primary","data-testid":"desktop"},r.createElement("i",{className:"fas fa-desktop"}))),r.createElement(ya,{content:H("bar.preview.tablet")},r.createElement(Er,{onClick:function(){return o("tablet")},variant:"tablet"===t?"contained":null,color:"primary","data-testid":"tablet"},r.createElement("i",{className:"fas fa-tablet-alt"}))),r.createElement(ya,{content:H("bar.preview.mobile")},r.createElement(Er,{onClick:function(){return o("mobile")},variant:"mobile"===t?"contained":null,color:"primary","data-testid":"mobile"},r.createElement("i",{className:"fas fa-mobile-alt"})))))}function Sa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oa(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ka=sa((function(e){return{hasChanges:e.misc.hasChanges}}))((function(e){var t=e.hasChanges,n=Sa((0,r.useState)(!1),2),o=n[0],i=n[1],a=Sa((0,r.useState)(!1),2),l=a[0],s=a[1];return r.createElement(Er,{onClick:function(){return i(!0),void lt("/publish",{method:"POST",data:{nonce:buttonizer_admin.nonce}}).then((function(e){var t=e.status,n=e.message;if(i(!1),"error"===t)return app.loader.hide(),void app.error({message:n});app.setHasChanges(!1),s(!0),setTimeout((function(){s(!1)}),3e3)})).catch((function(e){e.code,i(!1)}))},disabled:o||!1===t,variant:"contained",color:"primary","data-testid":"publish-button",className:"MuiButton-Publish"},H(o?"common.publishing":l?"common.published":"common.publish"))})),Ca=n(96156),Pa=n(159),Aa=n(93869),Ta=n(30626),ja=n(34236);var Ia="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var Ra=r.forwardRef((function(e,t){var n=e.children,i=e.container,a=e.disablePortal,l=void 0!==a&&a,s=e.onRendered,u=r.useState(null),c=u[0],f=u[1],d=(0,er.Z)(r.isValidElement(n)?n.ref:null,t);return Ia((function(){l||f(function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(i)||document.body)}),[i,l]),Ia((function(){if(c&&!l)return(0,ja.Z)(t,c),function(){(0,ja.Z)(t,null)}}),[t,c,l]),Ia((function(){s&&(c||l)&&s()}),[s,c,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:d}):n:c?o.createPortal(n,c):c})),Na=n(82568),Da=n(92781);var Ma=n(5991);function La(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}var Fa=n(80713);function Ba(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function za(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Wa(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,rr.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&Ba(e,o)}))}function Ua(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Za(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,Ta.Z)(e);return t.body===e?(0,Fa.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=La();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(za(i)+a,"px"),n=(0,Ta.Z)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(za(e)+a,"px")}))}var l=i.parentElement,s="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Ha=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return(0,Ma.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ba(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Wa(t,e.mountNode,e.modalRef,r,!0);var o=Ua(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Ua(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Za(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Ua(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Ba(e.modalRef,!0),Wa(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&Ba(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var Ga=function(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,a=e.disableEnforceFocus,l=void 0!==a&&a,s=e.disableRestoreFocus,u=void 0!==s&&s,c=e.getDoc,f=e.isEnabled,d=e.open,p=r.useRef(),h=r.useRef(null),m=r.useRef(null),v=r.useRef(),g=r.useRef(null),y=r.useCallback((function(e){g.current=o.findDOMNode(e)}),[]),b=(0,er.Z)(t.ref,y),x=r.useRef();return r.useEffect((function(){x.current=d}),[d]),!x.current&&d&&"undefined"!=typeof window&&(v.current=c().activeElement),r.useEffect((function(){if(d){var e=(0,Ta.Z)(g.current);i||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!l&&f()&&!p.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():p.current=!1)},n=function(t){!l&&f()&&9===t.keyCode&&e.activeElement===g.current&&(p.current=!0,t.shiftKey?m.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(v.current&&v.current.focus&&v.current.focus(),v.current=null)}}}),[i,l,u,f,d]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:b}),r.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))},Va={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Ka=r.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,i=e.open,a=(0,Kn.Z)(e,["invisible","open"]);return i?r.createElement("div",(0,$n.Z)({"aria-hidden":!0,ref:t},a,{style:(0,$n.Z)({},Va.root,o?Va.invisible:{},a.style)})):null}));var $a=new Ha,qa=r.forwardRef((function(e,t){var n=(0,Pa.Z)(),i=(0,Aa.Z)({name:"MuiModal",props:(0,$n.Z)({},e),theme:n}),a=i.BackdropComponent,l=void 0===a?Ka:a,s=i.BackdropProps,u=i.children,c=i.closeAfterTransition,f=void 0!==c&&c,d=i.container,p=i.disableAutoFocus,h=void 0!==p&&p,m=i.disableBackdropClick,v=void 0!==m&&m,g=i.disableEnforceFocus,y=void 0!==g&&g,b=i.disableEscapeKeyDown,x=void 0!==b&&b,w=i.disablePortal,E=void 0!==w&&w,_=i.disableRestoreFocus,S=void 0!==_&&_,O=i.disableScrollLock,k=void 0!==O&&O,C=i.hideBackdrop,P=void 0!==C&&C,A=i.keepMounted,T=void 0!==A&&A,j=i.manager,I=void 0===j?$a:j,R=i.onBackdropClick,N=i.onClose,D=i.onEscapeKeyDown,M=i.onRendered,L=i.open,F=(0,Kn.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),B=r.useState(!0),z=B[0],W=B[1],U=r.useRef({}),Z=r.useRef(null),H=r.useRef(null),G=(0,er.Z)(H,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),K=function(){return(0,Ta.Z)(Z.current)},$=function(){return U.current.modalRef=H.current,U.current.mountNode=Z.current,U.current},q=function(){I.mount($(),{disableScrollLock:k}),H.current.scrollTop=0},Y=(0,tr.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(d)||K().body;I.add($(),e),H.current&&q()})),X=r.useCallback((function(){return I.isTopModal($())}),[I]),J=(0,tr.Z)((function(e){Z.current=e,e&&(M&&M(),L&&X()?q():Ba(H.current,!0))})),Q=r.useCallback((function(){I.remove($())}),[I]);if(r.useEffect((function(){return function(){Q()}}),[Q]),r.useEffect((function(){L?Y():V&&f||Q()}),[L,Q,V,f,Y]),!T&&!L&&(!V||z))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Da.Z}),te={};return void 0===u.props.tabIndex&&(te.tabIndex=u.props.tabIndex||"-1"),V&&(te.onEnter=(0,Na.Z)((function(){W(!1)}),u.props.onEnter),te.onExited=(0,Na.Z)((function(){W(!0),f&&Q()}),u.props.onExited)),r.createElement(Ra,{ref:J,container:d,disablePortal:E},r.createElement("div",(0,$n.Z)({ref:G,onKeyDown:function(e){"Escape"===e.key&&X()&&(D&&D(e),x||(e.stopPropagation(),N&&N(e,"escapeKeyDown")))},role:"presentation"},F,{style:(0,$n.Z)({},ee.root,!L&&z?ee.hidden:{},F.style)}),P?null:r.createElement(l,(0,$n.Z)({open:L,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!v&&N&&N(e,"backdropClick"))}},s)),r.createElement(Ga,{disableEnforceFocus:y,disableAutoFocus:h,disableRestoreFocus:S,getDoc:K,isEnabled:X,open:L},r.cloneElement(u,te))))})),Ya=n(34699),Xa=!1,Ja=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}(0,ar.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],a=i[0],l=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||Xa?this.safeSetState({status:"entered"},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,l),this.safeSetState({status:"entering"},(function(){t.props.onEntering(a,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(a,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!Xa?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],l=i[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,or.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(lr.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Qa(){}Ja.contextType=lr,Ja.propTypes={},Ja.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qa,onEntering:Qa,onEntered:Qa,onExit:Qa,onExiting:Qa,onExited:Qa},Ja.UNMOUNTED="unmounted",Ja.EXITED="exited",Ja.ENTERING="entering",Ja.ENTERED="entered",Ja.EXITING="exiting";var el=Ja,tl=n(43366),nl=n(99700);function rl(){return(0,Pa.Z)()||nl.Z}var ol=function(e){return e.scrollTop};function il(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var al={entering:{opacity:1},entered:{opacity:1}},ll={enter:tl.x9.enteringScreen,exit:tl.x9.leavingScreen},sl=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,l=e.onEnter,s=e.onEntered,u=e.onEntering,c=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,h=e.TransitionComponent,m=void 0===h?el:h,v=e.timeout,g=void 0===v?ll:v,y=(0,Kn.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),b=rl(),x=b.unstable_strictMode&&!i,w=r.useRef(null),E=(0,er.Z)(n.ref,t),_=(0,er.Z)(x?w:void 0,E),S=function(e){return function(t,n){if(e){var r=x?[w.current,t]:[t,n],o=(0,Ya.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},O=S(u),k=S((function(e,t){ol(e);var n=il({style:p,timeout:g},{mode:"enter"});e.style.webkitTransition=b.transitions.create("opacity",n),e.style.transition=b.transitions.create("opacity",n),l&&l(e,t)})),C=S(s),P=S(d),A=S((function(e){var t=il({style:p,timeout:g},{mode:"exit"});e.style.webkitTransition=b.transitions.create("opacity",t),e.style.transition=b.transitions.create("opacity",t),c&&c(e)})),T=S(f);return r.createElement(m,(0,$n.Z)({appear:!0,in:a,nodeRef:x?w:void 0,onEnter:k,onEntered:C,onEntering:O,onExit:A,onExited:T,onExiting:P,timeout:g},y),(function(e,t){return r.cloneElement(n,(0,$n.Z)({style:(0,$n.Z)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},al[e],p,n.props.style),ref:_},t))}))})),ul=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.invisible,l=void 0!==a&&a,s=e.open,u=e.transitionDuration,c=e.TransitionComponent,f=void 0===c?sl:c,d=(0,Kn.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return r.createElement(f,(0,$n.Z)({in:s,timeout:u},d),r.createElement("div",{className:(0,Xn.Z)(o.root,i,l&&o.invisible),"aria-hidden":!0,ref:t},n))})),cl=(0,Jn.Z)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(ul),fl=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,l=e.square,s=void 0!==l&&l,u=e.elevation,c=void 0===u?1:u,f=e.variant,d=void 0===f?"elevation":f,p=(0,Kn.Z)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(a,(0,$n.Z)({className:(0,Xn.Z)(n.root,o,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),dl=(0,Jn.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,$n.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(fl),pl={enter:tl.x9.enteringScreen,exit:tl.x9.leavingScreen},hl=r.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,i=e.classes,a=e.className,l=e.disableBackdropClick,s=void 0!==l&&l,u=e.disableEscapeKeyDown,c=void 0!==u&&u,f=e.fullScreen,d=void 0!==f&&f,p=e.fullWidth,h=void 0!==p&&p,m=e.maxWidth,v=void 0===m?"sm":m,g=e.onBackdropClick,y=e.onClose,b=e.onEnter,x=e.onEntered,w=e.onEntering,E=e.onEscapeKeyDown,_=e.onExit,S=e.onExited,O=e.onExiting,k=e.open,C=e.PaperComponent,P=void 0===C?dl:C,A=e.PaperProps,T=void 0===A?{}:A,j=e.scroll,I=void 0===j?"paper":j,R=e.TransitionComponent,N=void 0===R?sl:R,D=e.transitionDuration,M=void 0===D?pl:D,L=e.TransitionProps,F=e["aria-describedby"],B=e["aria-labelledby"],z=(0,Kn.Z)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),W=r.useRef();return r.createElement(qa,(0,$n.Z)({className:(0,Xn.Z)(i.root,a),BackdropComponent:cl,BackdropProps:(0,$n.Z)({transitionDuration:M},n),closeAfterTransition:!0,disableBackdropClick:s,disableEscapeKeyDown:c,onEscapeKeyDown:E,onClose:y,open:k,ref:t},z),r.createElement(N,(0,$n.Z)({appear:!0,in:k,timeout:M,onEnter:b,onEntering:w,onEntered:x,onExit:_,onExiting:O,onExited:S,role:"none presentation"},L),r.createElement("div",{className:(0,Xn.Z)(i.container,i["scroll".concat((0,xr.Z)(I))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===W.current&&(W.current=null,g&&g(e),!s&&y&&y(e,"backdropClick"))},onMouseDown:function(e){W.current=e.target}},r.createElement(P,(0,$n.Z)({elevation:24,role:"dialog","aria-describedby":F,"aria-labelledby":B},T,{className:(0,Xn.Z)(i.paper,i["paperScroll".concat((0,xr.Z)(I))],i["paperWidth".concat((0,xr.Z)(String(v)))],T.className,d&&i.paperFullScreen,h&&i.paperFullWidth)}),o))))})),ml=(0,Jn.Z)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,Ca.Z)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,Ca.Z)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,Ca.Z)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,Ca.Z)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,Ca.Z)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(hl),vl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},gl=r.forwardRef((function(e,t){var n=e.align,o=void 0===n?"inherit":n,i=e.classes,a=e.className,l=e.color,s=void 0===l?"initial":l,u=e.component,c=e.display,f=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,h=e.noWrap,m=void 0!==h&&h,v=e.paragraph,g=void 0!==v&&v,y=e.variant,b=void 0===y?"body1":y,x=e.variantMapping,w=void 0===x?vl:x,E=(0,Kn.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),_=u||(g?"p":w[b]||vl[b])||"span";return r.createElement(_,(0,$n.Z)({className:(0,Xn.Z)(i.root,a,"inherit"!==b&&i[b],"initial"!==s&&i["color".concat((0,xr.Z)(s))],m&&i.noWrap,p&&i.gutterBottom,g&&i.paragraph,"inherit"!==o&&i["align".concat((0,xr.Z)(o))],"initial"!==f&&i["display".concat((0,xr.Z)(f))]),ref:t},E))})),yl=(0,Jn.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(gl),bl=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,l=void 0!==a&&a,s=(0,Kn.Z)(e,["children","classes","className","disableTypography"]);return r.createElement("div",(0,$n.Z)({className:(0,Xn.Z)(o.root,i),ref:t},s),l?n:r.createElement(yl,{component:"h2",variant:"h6"},n))})),xl=(0,Jn.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(bl),wl=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.dividers,a=void 0!==i&&i,l=(0,Kn.Z)(e,["classes","className","dividers"]);return r.createElement("div",(0,$n.Z)({className:(0,Xn.Z)(n.root,o,a&&n.dividers),ref:t},l))})),El=(0,Jn.Z)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(wl),_l=r.forwardRef((function(e,t){return r.createElement(yl,(0,$n.Z)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))})),Sl=(0,Jn.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(_l),Ol=r.forwardRef((function(e,t){var n=e.disableSpacing,o=void 0!==n&&n,i=e.classes,a=e.className,l=(0,Kn.Z)(e,["disableSpacing","classes","className"]);return r.createElement("div",(0,$n.Z)({className:(0,Xn.Z)(i.root,a,!o&&i.spacing),ref:t},l))})),kl=(0,Jn.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(Ol);function Cl(){return(Cl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Pl=[{value:"cancel",text:H("modal.cancel")},{value:"confirm",text:H("common.confirm")}];function Al(e){var t=e.onClose,n=e.icon,o=void 0===n?null:n,i=e.open,a=void 0!==i&&i,l=e.title,s=void 0===l?"Confirm":l,u=e.children,c=void 0===u?null:u,f=e.buttons,d=void 0===f?null:f,p=e.maxWidth,h=void 0===p?"xs":p,m=e.fullWidth,v=void 0===m||m,g=e.className,y=e.testId,b=void 0===y?null:y,x=function(e){t(e)};return d||(d=Pl),r.createElement(ml,{open:a,onClose:x,maxWidth:h,fullWidth:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:g,"data-testid":b?"dialog:".concat(b):null},r.createElement(xl,{id:"alert-dialog-title"},o,s),r.createElement(El,null,r.createElement(Sl,{id:"alert-dialog-description",component:"div"},c)),r.createElement(kl,null,d.map((function(e,t){return r.createElement(Er,Cl({onClick:function(){return x(e.value)},color:"primary",key:t,variant:e.variant,"data-testid":b?"dialog:".concat(b,":button:").concat(e.value):null},e.props),e.text)}))))}var Tl=r.forwardRef((function(e,t){var n=e.edge,o=void 0!==n&&n,i=e.children,a=e.classes,l=e.className,s=e.color,u=void 0===s?"default":s,c=e.disabled,f=void 0!==c&&c,d=e.disableFocusRipple,p=void 0!==d&&d,h=e.size,m=void 0===h?"medium":h,v=(0,Kn.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(br,(0,$n.Z)({className:(0,Xn.Z)(a.root,l,"default"!==u&&a["color".concat((0,xr.Z)(u))],f&&a.disabled,"small"===m&&a["size".concat((0,xr.Z)(m))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!p,disabled:f,ref:t},v),r.createElement("span",{className:a.label},i))})),jl=(0,Jn.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Qn.U1)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Qn.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Qn.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Tl);function Il(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Nl=sa((function(e){return{hasChanges:e.misc.hasChanges}}))((function(e){var t=e.hasChanges,n=Il((0,r.useState)(!1),2),o=n[0],i=n[1],a=Il((0,r.useState)(!1),2),l=a[0],s=a[1];return r.createElement(r.Fragment,null,r.createElement(ya,{content:H("revert.revert_changes")},r.createElement(jl,{onClick:function(){return i(!0)},className:"revert-button",color:"secondary",disabled:!t||l,"data-testid":"revert-button"},r.createElement("i",{className:(0,Xn.Z)("fas fa-history",l&&"spin")}))),r.createElement(Al,{open:o,title:H("revert.revert_changes"),buttons:[{text:H("modal.cancel"),value:"close"},{text:H("revert.revert_changes"),value:"revert"}],onClose:function(e){i(!1),"revert"===e&&(s(!0),lt("/revert",{method:"POST",data:{nonce:buttonizer_admin.nonce}}).then((function(e){var t=e.status,n=e.message;if("error"===t)return app.loader.hide(),void app.error({message:n});window.location.reload()})))},testId:"revert-dialog"},r.createElement("p",null,H("revert.modal.intro")),r.createElement("p",null,H("revert.modal.action"))))})),Dl=(n(57327),n(89554),n(66992),n(19601),n(41539),n(91058),n(78783),n(4129),n(33948),n(93096)),Ml=n.n(Dl),Ll=n(91296),Fl=n.n(Ll),Bl=n(20773),zl=n.n(Bl),Wl=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Ul="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Zl=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Hl="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Zl):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Gl=["top","right","bottom","left","width","height","size","weight"],Vl="undefined"!=typeof MutationObserver,Kl=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Hl(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Ul&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Vl?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ul&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Gl.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),$l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ql=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Zl},Yl=ns(0,0,0,0);function Xl(e){return parseFloat(e)||0}function Jl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Xl(e["border-"+n+"-width"])}),0)}function Ql(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Yl;var r=ql(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Xl(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Xl(r.width),s=Xl(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Jl(r,"left","right")+i),Math.round(s+a)!==n&&(s-=Jl(r,"top","bottom")+a)),!function(e){return e===ql(e).document.documentElement}(e)){var u=Math.round(l+i)-t,c=Math.round(s+a)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(c)&&(s-=c)}return ns(o.left,o.top,l,s)}var es="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof ql(e).SVGGraphicsElement}:function(e){return e instanceof ql(e).SVGElement&&"function"==typeof e.getBBox};function ts(e){return Ul?es(e)?function(e){var t=e.getBBox();return ns(0,0,t.width,t.height)}(e):Ql(e):Yl}function ns(e,t,n,r){return{x:e,y:t,width:n,height:r}}var rs=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ns(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ts(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),os=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return $l(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);$l(this,{target:e,contentRect:n})},is=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Wl,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ql(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new rs(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ql(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new os(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),as="undefined"!=typeof WeakMap?new WeakMap:new Wl,ls=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Kl.getInstance(),r=new is(t,n,this);as.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){ls.prototype[e]=function(){var t;return(t=as.get(this))[e].apply(t,arguments)}}));var ss=void 0!==Zl.ResizeObserver?Zl.ResizeObserver:ls,us=n(31807),cs=n.n(us),fs=(n(85827),n(68309),n(74916),n(4723),n(15306),null),ds=null;function ps(){if(null===fs){if("undefined"==typeof document)return fs=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),fs=n}return fs}function hs(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function ms(e){return e&&e.ownerDocument?e.ownerDocument:document}cs()&&window.addEventListener("resize",(function(){ds!==window.devicePixelRatio&&(ds=window.devicePixelRatio,fs=null)}));var vs=function(){function e(t,n){var r=this;this.onScroll=function(){var e=hs(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var t,n;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y"))))},this.drag=function(t){var n=r.axis[r.draggedAxis].track,o=n.rect[r.axis[r.draggedAxis].sizeAttr],i=r.axis[r.draggedAxis].scrollbar,a=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],l=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var s=(("y"===r.draggedAxis?t.pageY:t.pageX)-n.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(o-i.size)*(a-l);"x"===r.draggedAxis&&(s=r.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?s-(o+i.size):s,s=r.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-s:s),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=s},this.onEndDrag=function(e){var t=ms(r.el),n=hs(r.el);e.preventDefault(),e.stopPropagation(),r.el.classList.remove(r.classNames.dragging),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout((function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,{},n),this.classNames=Object.assign({},e.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=Ml()(this.recalculate.bind(this),64),this.onMouseMove=Ml()(this.onMouseMove.bind(this),64),this.hideScrollbars=Fl()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Fl()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=zl()(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=t.firstElementChild;document.body.appendChild(n);var r=n.firstElementChild;n.scrollLeft=0;var o=e.getOffset(n),i=e.getOffset(r);n.scrollLeft=999;var a=e.getOffset(r);return{isRtlScrollingInverted:o.left!==i.left&&i.left-a.left!=0,isRtlScrollbarInverted:o.left!==i.left}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=ms(e),r=hs(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),cs()&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(e.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var t=document.createElement("div"),n=document.createElement("div");t.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),t.appendChild(n),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.initListeners=function(){var e=this,t=hs(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);var n=!1,r=t.ResizeObserver||ss;this.resizeObserver=new r((function(){n&&e.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var e=hs(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,o=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var l=this.contentEl.scrollHeight,s=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?r+"px":"auto",this.placeholderEl.style.height=l+"px";var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=s>r,this.axis.y.isOverflowing=l>u,this.axis.x.isOverflowing="hidden"!==i&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&s>o-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>u-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var t,n=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],o=r/n;return t=Math.max(~~(o*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},t.positionScrollbar=function(t){if(void 0===t&&(t="y"),this.axis[t].isOverflowing){var n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[t].sizeAttr],10),i=this.axis[t].scrollbar,a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],l=(a="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-a:a)/(n-o),s=~~((r-i.size)*l);s="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?s+(r-i.size):s,i.el.style.transform="x"===t?"translate3d("+s+"px, 0, 0)":"translate3d(0, "+s+"px, 0)"}},t.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(e){void 0===e&&(e="y");var t=this.axis[e].scrollbar.el;this.axis[e].isVisible||(t.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(e,t){void 0===t&&(t="y");var n=ms(this.el),r=hs(this.el),o=this.axis[t].scrollbar,i="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=i-o.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(e,t){var n=this;if(void 0===t&&(t="y"),this.options.clickOnTrack){var r=hs(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var o=this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],i=parseInt(this.elStyles[this.axis[t].sizeAttr],10),a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],l=("y"===t?this.mouseY-o:this.mouseX-o)<0?-1:1,s=-1===l?a-i:a+i;!function e(){var o,i;-1===l?a>s&&(a-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((o={})[n.axis[t].offsetAttr]=a,o)),r.requestAnimationFrame(e)):a<s&&(a+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((i={})[n.axis[t].offsetAttr]=a,i)),r.requestAnimationFrame(e))}()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:ps()}catch(e){return ps()}},t.removeListeners=function(){var e=this,t=hs(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return n.call(e,t)}))[0]},e}();vs.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},vs.instances=new WeakMap;var gs=vs;function ys(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bs(){return(bs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ws(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Es=r.forwardRef((function(e,t){var n,o=e.children,i=e.scrollableNodeProps,a=void 0===i?{}:i,l=ws(e,["children","scrollableNodeProps"]),s=(0,r.useRef)(),u=(0,r.useRef)(),c=(0,r.useRef)(),f={},d={},p=[];return Object.keys(l).forEach((function(e){Object.prototype.hasOwnProperty.call(gs.defaultOptions,e)?f[e]=l[e]:e.match(/data-simplebar-(.+)/)&&"data-simplebar-direction"!==e?p.push({name:e,value:l[e]}):d[e]=l[e]})),p.length&&console.warn("simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:\n 'data-simplebar-auto-hide=\"false\"' —> 'autoHide=\"false\"'\n "),(0,r.useEffect)((function(){var e;return s=a.ref||s,u.current&&(n=new gs(u.current,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(n,!0).forEach((function(t){ys(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(e=p,Array.prototype.reduce.call(e,(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e}),{})),{},f,{},s&&{scrollableNode:s.current},{},c.current&&{contentNode:c.current})),t&&(t.current=n)),function(){n.unMount(),n=null}}),[]),r.createElement("div",bs({ref:u,"data-simplebar":!0},d),r.createElement("div",{className:"simplebar-wrapper"},r.createElement("div",{className:"simplebar-height-auto-observer-wrapper"},r.createElement("div",{className:"simplebar-height-auto-observer"})),r.createElement("div",{className:"simplebar-mask"},r.createElement("div",{className:"simplebar-offset"},"function"==typeof o?o({scrollableNodeRef:s,contentNodeRef:c}):r.createElement("div",bs({},a,{className:"simplebar-content-wrapper".concat(a.className?" ".concat(a.className):"")}),r.createElement("div",{className:"simplebar-content"},o)))),r.createElement("div",{className:"simplebar-placeholder"})),r.createElement("div",{className:"simplebar-track simplebar-horizontal"},r.createElement("div",{className:"simplebar-scrollbar"})),r.createElement("div",{className:"simplebar-track simplebar-vertical"},r.createElement("div",{className:"simplebar-scrollbar"})))}));Es.displayName="SimpleBar",Es.propTypes={children:Yn().oneOfType([Yn().node,Yn().func]),scrollableNodeProps:Yn().object};var _s=Es;function Ss(e){return"/"===e.charAt(0)}function Os(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var ks=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&Ss(e),a=t&&Ss(t),l=i||a;if(e&&Ss(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var s=o[o.length-1];n="."===s||".."===s||""===s}else n=!1;for(var u=0,c=o.length;c>=0;c--){var f=o[c];"."===f?Os(o,c):".."===f?(Os(o,c),u++):u&&(Os(o,c),u--)}if(!l)for(;u--;u)o.unshift("..");!l||""===o[0]||o[0]&&Ss(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var Cs=function(e,t){if(!e)throw new Error("Invariant failed")};function Ps(e){return"/"===e.charAt(0)?e:"/"+e}function As(e){return"/"===e.charAt(0)?e.substr(1):e}function Ts(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function js(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Is(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Rs(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=(0,$n.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=ks(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Ns(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Ds=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ms(e,t){t(window.confirm(e))}function Ls(){try{return window.history.state||{}}catch(e){return{}}}function Fs(e){void 0===e&&(e={}),Ds||Cs(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,i=o.forceRefresh,a=void 0!==i&&i,l=o.getUserConfirmation,s=void 0===l?Ms:l,u=o.keyLength,c=void 0===u?6:u,f=e.basename?js(Ps(e.basename)):"";function d(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return f&&(i=Ts(i,f)),Rs(i,r,n)}function p(){return Math.random().toString(36).substr(2,c)}var h=Ns();function m(e){(0,$n.Z)(C,e),C.length=t.length,h.notifyListeners(C.location,C.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(d(e.state))}function g(){b(d(Ls()))}var y=!1;function b(e){if(y)y=!1,m();else{h.confirmTransitionTo(e,"POP",s,(function(t){t?m({action:"POP",location:e}):function(e){var t=C.location,n=w.indexOf(t.key);-1===n&&(n=0);var r=w.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(y=!0,_(o))}(e)}))}}var x=d(Ls()),w=[x.key];function E(e){return f+Is(e)}function _(e){t.go(e)}var S=0;function O(e){1===(S+=e)&&1===e?(window.addEventListener("popstate",v),r&&window.addEventListener("hashchange",g)):0===S&&(window.removeEventListener("popstate",v),r&&window.removeEventListener("hashchange",g))}var k=!1;var C={length:t.length,action:"POP",location:x,createHref:E,push:function(e,r){var o=Rs(e,r,p(),C.location);h.confirmTransitionTo(o,"PUSH",s,(function(e){if(e){var r=E(o),i=o.key,l=o.state;if(n)if(t.pushState({key:i,state:l},null,r),a)window.location.href=r;else{var s=w.indexOf(C.location.key),u=w.slice(0,s+1);u.push(o.key),w=u,m({action:"PUSH",location:o})}else window.location.href=r}}))},replace:function(e,r){var o=Rs(e,r,p(),C.location);h.confirmTransitionTo(o,"REPLACE",s,(function(e){if(e){var r=E(o),i=o.key,l=o.state;if(n)if(t.replaceState({key:i,state:l},null,r),a)window.location.replace(r);else{var s=w.indexOf(C.location.key);-1!==s&&(w[s]=o.key),m({action:"REPLACE",location:o})}else window.location.replace(r)}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return k||(O(1),k=!0),function(){return k&&(k=!1,O(-1)),t()}},listen:function(e){var t=h.appendListener(e);return O(1),function(){O(-1),t()}}};return C}var Bs={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+As(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:As,decodePath:Ps},slash:{encodePath:Ps,decodePath:Ps}};function zs(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Ws(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Us(e){window.location.replace(zs(window.location.href)+"#"+e)}function Zs(e){void 0===e&&(e={}),Ds||Cs(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?Ms:r,i=n.hashType,a=void 0===i?"slash":i,l=e.basename?js(Ps(e.basename)):"",s=Bs[a],u=s.encodePath,c=s.decodePath;function f(){var e=c(Ws());return l&&(e=Ts(e,l)),Rs(e)}var d=Ns();function p(e){(0,$n.Z)(O,e),O.length=t.length,d.notifyListeners(O.location,O.action)}var h=!1,m=null;function v(){var e=Ws(),t=u(e);if(e!==t)Us(t);else{var n=f(),r=O.location;if(!h&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(m===Is(n))return;m=null,function(e){if(h)h=!1,p();else{d.confirmTransitionTo(e,"POP",o,(function(t){t?p({action:"POP",location:e}):function(e){var t=O.location,n=x.lastIndexOf(Is(t));-1===n&&(n=0);var r=x.lastIndexOf(Is(e));-1===r&&(r=0);var o=n-r;o&&(h=!0,w(o))}(e)}))}}(n)}}var g=Ws(),y=u(g);g!==y&&Us(y);var b=f(),x=[Is(b)];function w(e){t.go(e)}var E=0;function _(e){1===(E+=e)&&1===e?window.addEventListener("hashchange",v):0===E&&window.removeEventListener("hashchange",v)}var S=!1;var O={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=zs(window.location.href)),n+"#"+u(l+Is(e))},push:function(e,t){var n=Rs(e,void 0,void 0,O.location);d.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=Is(n),r=u(l+t);if(Ws()!==r){m=t,function(e){window.location.hash=e}(r);var o=x.lastIndexOf(Is(O.location)),i=x.slice(0,o+1);i.push(t),x=i,p({action:"PUSH",location:n})}else p()}}))},replace:function(e,t){var n=Rs(e,void 0,void 0,O.location);d.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=Is(n),r=u(l+t);Ws()!==r&&(m=t,Us(r));var o=x.indexOf(Is(O.location));-1!==o&&(x[o]=t),p({action:"REPLACE",location:n})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&(e=!1);var t=d.setPrompt(e);return S||(_(1),S=!0),function(){return S&&(S=!1,_(-1)),t()}},listen:function(e){var t=d.appendListener(e);return _(1),function(){_(-1),t()}}};return O}function Hs(e,t,n){return Math.min(Math.max(e,t),n)}function Gs(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,i=t.initialIndex,a=void 0===i?0:i,l=t.keyLength,s=void 0===l?6:l,u=Ns();function c(e){(0,$n.Z)(v,e),v.length=v.entries.length,u.notifyListeners(v.location,v.action)}function f(){return Math.random().toString(36).substr(2,s)}var d=Hs(a,0,o.length-1),p=o.map((function(e){return Rs(e,void 0,"string"==typeof e?f():e.key||f())})),h=Is;function m(e){var t=Hs(v.index+e,0,v.entries.length-1),r=v.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?c({action:"POP",location:r,index:t}):c()}))}var v={length:p.length,action:"POP",location:p[d],index:d,entries:p,createHref:h,push:function(e,t){var r=Rs(e,t,f(),v.location);u.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=v.index+1,n=v.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),c({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=Rs(e,t,f(),v.location);u.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(v.entries[v.index]=r,c({action:"REPLACE",location:r}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(e){var t=v.index+e;return t>=0&&t<v.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return v}var Vs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function Ks(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var $s=r.createContext||function(e,t){var n,o,i="__create-react-context-"+function(){var e="__global_unique_id__";return Vs[e]=(Vs[e]||0)+1}()+"__",a=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=Ks(t.props.value),t}(0,ar.Z)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;!function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,o)?(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n)):n=0}},r.render=function(){return this.props.children},n}(r.Component);a.childContextTypes=((n={})[i]=Yn().object.isRequired,n);var l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,ar.Z)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return l.contextTypes=((o={})[i]=Yn().object,o),{Provider:a,Consumer:l}},qs=n(39658),Ys=n.n(qs),Xs=(n(50663),function(e){var t=$s();return t.displayName=e,t}("Router-History")),Js=function(e){var t=$s();return t.displayName=e,t}("Router"),Qs=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,ar.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return r.createElement(Js.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},r.createElement(Xs.Provider,{children:this.props.children||null,value:this.props.history}))},t}(r.Component);r.Component;r.Component;var eu={},tu=0;function nu(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,l=void 0!==a&&a,s=n.sensitive,u=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=eu[n]||(eu[n]={});if(r[e])return r[e];var o=[],i={regexp:Ys()(e,o,t),keys:o};return tu<1e4&&(r[e]=i,tu++),i}(n,{end:i,strict:l,sensitive:u}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var c=s[0],f=s.slice(1),d=e===c;return i&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var ru=function(e){function t(){return e.apply(this,arguments)||this}return(0,ar.Z)(t,e),t.prototype.render=function(){var e=this;return r.createElement(Js.Consumer,null,(function(t){t||Cs(!1);var n=e.props.location||t.location,o=e.props.computedMatch?e.props.computedMatch:e.props.path?nu(n.pathname,e.props):t.match,i=(0,$n.Z)({},t,{location:n,match:o}),a=e.props,l=a.children,s=a.component,u=a.render;return Array.isArray(l)&&0===l.length&&(l=null),r.createElement(Js.Provider,{value:i},i.match?l?"function"==typeof l?l(i):l:s?r.createElement(s,i):u?u(i):null:"function"==typeof l?l(i):null)}))},t}(r.Component);function ou(e){return"/"===e.charAt(0)?e:"/"+e}function iu(e,t){if(!e)return t;var n=ou(e);return 0!==t.pathname.indexOf(n)?t:(0,$n.Z)({},t,{pathname:t.pathname.substr(n.length)})}function au(e){return"string"==typeof e?e:Is(e)}function lu(e){return function(){Cs(!1)}}function su(){}r.Component;var uu=function(e){function t(){return e.apply(this,arguments)||this}return(0,ar.Z)(t,e),t.prototype.render=function(){var e=this;return r.createElement(Js.Consumer,null,(function(t){t||Cs(!1);var n,o,i=e.props.location||t.location;return r.Children.forEach(e.props.children,(function(e){if(null==o&&r.isValidElement(e)){n=e;var a=e.props.path||e.props.from;o=a?nu(i.pathname,(0,$n.Z)({},e.props,{path:a})):t.match}})),o?r.cloneElement(n,{location:i,computedMatch:o}):null}))},t}(r.Component);function cu(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,o=(0,or.Z)(t,["wrappedComponentRef"]);return r.createElement(Js.Consumer,null,(function(t){return t||Cs(!1),r.createElement(e,(0,$n.Z)({},o,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,Li()(n,e)}var fu=r.useContext;function du(){return fu(Xs)}function pu(e){var t=fu(Js).location,n=fu(Js).match;return e?nu(t.pathname,e):n}function hu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vu=sa((function(e){return{settings:e.settings}}))((function(e){var t=e.settings,n=[H("random_tips.tip_1"),H("random_tips.tip_2"),H("random_tips.tip_3"),H("random_tips.tip_4"),H("random_tips.tip_5"),H("random_tips.tip_6"),H("random_tips.tip_7"),H("random_tips.tip_8"),H("random_tips.tip_9"),H("random_tips.tip_10"),H("random_tips.tip_11"),H("random_tips.tip_12"),H("random_tips.tip_13"),H("random_tips.tip_14"),H("random_tips.tip_15"),H("random_tips.tip_16"),H("random_tips.tip_17"),H("random_tips.tip_18"),H("random_tips.tip_19"),H("random_tips.tip_20"),H("random_tips.tip_21"),H("random_tips.tip_22"),H("random_tips.tip_23")],o=hu((0,r.useState)(0),2),i=o[0],a=o[1],l=hu((0,r.useState)(function(e){for(var t,n,r=e.length;0!==r;)n=Math.floor(Math.random()*r),t=e[r-=1],e[r]=e[n],e[n]=t;return e}(n)),1)[0];return!0!==t.tips_enabled?r.createElement(r.Fragment,null):r.createElement("div",{className:"random-tip","data-testid":"random-tip"},r.createElement("span",{className:"buzz"},r.createElement("img",{onDoubleClick:function(){window.open("https://www.youtube.com/watch?v=dQw4w9WgXcQ")},src:buttonizer_admin.assets+"/images/ButtonizerBuzzer.svg","data-testid":"random-tip:buzzer"})),r.createElement("span",{className:"tip",style:{userSelect:"none"},onClick:function(){var e=i+1;e>=l.length&&(e=0),a(e)},"data-testid":"random-tip:new-tip"},l[i]))})),gu=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"inherit":i,l=e.component,s=void 0===l?"span":l,u=e.fontSize,c=void 0===u?"default":u,f=(0,Kn.Z)(e,["classes","className","color","component","fontSize"]);return r.createElement(s,(0,$n.Z)({className:(0,Xn.Z)("material-icons",n.root,o,"inherit"!==a&&n["color".concat((0,xr.Z)(a))],"default"!==c&&n["fontSize".concat((0,xr.Z)(c))]),"aria-hidden":!0,ref:t},f))}));gu.muiName="Icon";var yu=(0,Jn.Z)((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(gu);function bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach((function(t){wu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vn.dispatch,o=r(oe(xu({name:H("utils.new_button"),show_mobile:!0,show_desktop:!0},e),"buttons")).payload.record;r(Q(o.id,t,n))}function _u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.store.dispatch;t.groups[e]||console.error("ID "+e+" not in store!");var r=ae(e,t);n(ie(e,"groups")),Object.keys(r).map((function(e){return n(ie(e,"buttons"))}))}function Su(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vn.dispatch,o={name:H("utils.new_group"),show_mobile:!0,show_desktop:!0,children:[]},i=r(oe(e||o,"groups",n)).payload.record.id;t.map((function(e,t){if(0===Object.keys(e).length)return!1;Eu(e,i,t,r)}))}function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach((function(t){Cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pu(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.store.getState(),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.store.dispatch;if(!r.buttons[e])throw ReferenceError("ID "+e+" not in button store!");var i=ku(ku({},r.buttons[e]),{},{name:r.buttons[e].name+" Copy",id:void 0},n);switch(r.buttons[e].type){case"popup_maker":i.action="popupMaker"+W()+"Pv2";break;case"elementor_popup":i.action="elementor"+W()+"Ev2"}delete i.id,Eu(i,t,Object.values(r.buttons).reduce((function(t,n,r){return n.id===e?r+1:t}),""),o)}var Au=n(83711);var Tu=r.createContext({}),ju="undefined"==typeof window?r.useEffect:r.useLayoutEffect,Iu=r.forwardRef((function(e,t){var n=e.alignItems,i=void 0===n?"center":n,a=e.autoFocus,l=void 0!==a&&a,s=e.button,u=void 0!==s&&s,c=e.children,f=e.classes,d=e.className,p=e.component,h=e.ContainerComponent,m=void 0===h?"li":h,v=e.ContainerProps,g=(v=void 0===v?{}:v).className,y=(0,Kn.Z)(v,["className"]),b=e.dense,x=void 0!==b&&b,w=e.disabled,E=void 0!==w&&w,_=e.disableGutters,S=void 0!==_&&_,O=e.divider,k=void 0!==O&&O,C=e.focusVisibleClassName,P=e.selected,A=void 0!==P&&P,T=(0,Kn.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),j=r.useContext(Tu),I={dense:x||j.dense||!1,alignItems:i},R=r.useRef(null);ju((function(){l&&R.current&&R.current.focus()}),[l]);var N=r.Children.toArray(c),D=N.length&&(0,Au.Z)(N[N.length-1],["ListItemSecondaryAction"]),M=r.useCallback((function(e){R.current=o.findDOMNode(e)}),[]),L=(0,er.Z)(M,t),F=(0,$n.Z)({className:(0,Xn.Z)(f.root,d,I.dense&&f.dense,!S&&f.gutters,k&&f.divider,E&&f.disabled,u&&f.button,"center"!==i&&f.alignItemsFlexStart,D&&f.secondaryAction,A&&f.selected),disabled:E},T),B=p||"li";return u&&(F.component=p||"div",F.focusVisibleClassName=(0,Xn.Z)(f.focusVisible,C),B=br),D?(B=F.component||p?B:"div","li"===m&&("li"===B?B="div":"li"===F.component&&(F.component="div")),r.createElement(Tu.Provider,{value:I},r.createElement(m,(0,$n.Z)({className:(0,Xn.Z)(f.container,g),ref:L},y),r.createElement(B,F,N),N.pop()))):r.createElement(Tu.Provider,{value:I},r.createElement(B,(0,$n.Z)({ref:L},F),N))})),Ru=(0,Jn.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Iu),Nu=r.forwardRef((function(e,t){var n,o=e.classes,i=e.className,a=e.component,l=void 0===a?"li":a,s=e.disableGutters,u=void 0!==s&&s,c=e.ListItemClasses,f=e.role,d=void 0===f?"menuitem":f,p=e.selected,h=e.tabIndex,m=(0,Kn.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==h?h:-1),r.createElement(Ru,(0,$n.Z)({button:!0,role:d,tabIndex:n,component:l,selected:p,disableGutters:u,classes:(0,$n.Z)({dense:o.dense},c),className:(0,Xn.Z)(o.root,i,p&&o.selected,!u&&o.gutters),ref:t},m))})),Du=(0,Jn.Z)((function(e){return{root:(0,$n.Z)({},e.typography.body1,(0,Ca.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,$n.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(Nu),Mu=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=(0,Kn.Z)(e,["classes","className"]),a=r.useContext(Tu);return r.createElement("div",(0,$n.Z)({className:(0,Xn.Z)(n.root,o,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))})),Lu=(0,Jn.Z)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Mu);function Fu(){return(Fu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Bu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Uu=r.forwardRef((function(e,t){var n=e.model,o=void 0===n?"group":n,i=e.deleteDisabled,a=void 0!==i&&i,l=e.size,s=void 0===l?"small":l,u=e.onClose,c=e.buttonCount,f=void 0===c?1:c,d=e.inDropdown,p=void 0!==d&&d,h=Wu(e,["model","deleteDisabled","size","onClose","buttonCount","inDropdown"]),m=Bu((0,r.useState)(!1),2),v=m[0],g=m[1];return r.createElement(r.Fragment,null,r.createElement(ya,{content:H("modal.remove.".concat(o,".cannot_delete")),disabled:!a,trigger:"click"},p?r.createElement(Du,{onClick:function(){return!a&&g(!0)},disabled:a,"data-testid":"page_rule"===o?h["data-testid"]:"delete-button-".concat(o),ref:t},r.createElement(Lu,null,r.createElement(yu,{className:"fas fa-trash-alt"})),r.createElement(yl,{variant:"inherit"},H("utils.delete"))):r.createElement("span",{tabIndex:0},r.createElement(ya,{content:H("utils.delete"),disabled:a,style:{float:"right"}},r.createElement(jl,Fu({onClick:function(){return!a&&g(!0)},color:"primary",disabled:a,size:s,style:{width:"35px",height:"35px"}},h),r.createElement(yu,{fontSize:"inherit",style:{overflow:"unset"},className:"fas fa-times"}))))),r.createElement(Al,{open:v,title:H("modal.remove.".concat(o,a?".cannot_delete_window_title":".window_title")),buttons:a?[{value:"close",text:H("modal.close")}]:null,onClose:function(e){g(!1),"confirm"!==e||a||u()},testId:"delete-button:dialog"},a?r.createElement(yl,null,H("modal.remove.".concat(o,".cannot_delete"))):r.createElement(r.Fragment,null,r.createElement(yl,null,H("modal.remove.".concat(o,".question"))),"group"===o&&r.createElement(yl,null,H("modal.remove.group.question_multiple_buttons",f)),r.createElement(yl,{style:{marginTop:15}},H("modal.remove.permanent")))))})),Zu=n(60288);function Hu(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}var Gu=r.createContext();function Vu(){return r.useContext(Gu)}var Ku=Gu,$u=n(79437);function qu(e,t){return parseInt(e[t],10)||0}var Yu="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Xu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Ju=r.forwardRef((function(e,t){var n=e.onChange,o=e.rows,i=e.rowsMax,a=e.rowsMin,l=void 0===a?1:a,s=e.style,u=e.value,c=(0,Kn.Z)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),f=o||l,d=r.useRef(null!=u).current,p=r.useRef(null),h=(0,er.Z)(t,p),m=r.useRef(null),v=r.useRef(0),g=r.useState({}),y=g[0],b=g[1],x=r.useCallback((function(){var t=p.current,n=window.getComputedStyle(t),r=m.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],a=qu(n,"padding-bottom")+qu(n,"padding-top"),l=qu(n,"border-bottom-width")+qu(n,"border-top-width"),s=r.scrollHeight-a;r.value="x";var u=r.scrollHeight-a,c=s;f&&(c=Math.max(Number(f)*u,c)),i&&(c=Math.min(Number(i)*u,c));var d=(c=Math.max(c,u))+("border-box"===o?a+l:0),h=Math.abs(c-s)<=1;b((function(e){return v.current<20&&(d>0&&Math.abs((e.outerHeightStyle||0)-d)>1||e.overflow!==h)?(v.current+=1,{overflow:h,outerHeightStyle:d}):e}))}),[i,f,e.placeholder]);r.useEffect((function(){var e=(0,$u.Z)((function(){v.current=0,x()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[x]),Yu((function(){x()})),r.useEffect((function(){v.current=0}),[u]);return r.createElement(r.Fragment,null,r.createElement("textarea",(0,$n.Z)({value:u,onChange:function(e){v.current=0,d||x(),n&&n(e)},ref:h,rows:f,style:(0,$n.Z)({height:y.outerHeightStyle,overflow:y.overflow?"hidden":null},s)},c)),r.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,$n.Z)({},Xu,s)}))}));function Qu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ec(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Qu(e.value)&&""!==e.value||t&&Qu(e.defaultValue)&&""!==e.defaultValue)}var tc="undefined"==typeof window?r.useEffect:r.useLayoutEffect,nc=r.forwardRef((function(e,t){var n=e["aria-describedby"],o=e.autoComplete,i=e.autoFocus,a=e.classes,l=e.className,s=(e.color,e.defaultValue),u=e.disabled,c=e.endAdornment,f=(e.error,e.fullWidth),d=void 0!==f&&f,p=e.id,h=e.inputComponent,m=void 0===h?"input":h,v=e.inputProps,g=void 0===v?{}:v,y=e.inputRef,b=(e.margin,e.multiline),x=void 0!==b&&b,w=e.name,E=e.onBlur,_=e.onChange,S=e.onClick,O=e.onFocus,k=e.onKeyDown,C=e.onKeyUp,P=e.placeholder,A=e.readOnly,T=e.renderSuffix,j=e.rows,I=e.rowsMax,R=e.rowsMin,N=e.startAdornment,D=e.type,M=void 0===D?"text":D,L=e.value,F=(0,Kn.Z)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),B=null!=g.value?g.value:L,z=r.useRef(null!=B).current,W=r.useRef(),U=r.useCallback((function(e){0}),[]),Z=(0,er.Z)(g.ref,U),H=(0,er.Z)(y,Z),G=(0,er.Z)(W,H),V=r.useState(!1),K=V[0],$=V[1],q=Vu();var Y=Hu({props:e,muiFormControl:q,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Y.focused=q?q.focused:K,r.useEffect((function(){!q&&u&&K&&($(!1),E&&E())}),[q,u,K,E]);var X=q&&q.onFilled,J=q&&q.onEmpty,Q=r.useCallback((function(e){ec(e)?X&&X():J&&J()}),[X,J]);tc((function(){z&&Q({value:B})}),[B,Q,z]);r.useEffect((function(){Q(W.current)}),[]);var ee=m,te=(0,$n.Z)({},g,{ref:G});"string"!=typeof ee?te=(0,$n.Z)({inputRef:G,type:M},te,{ref:null}):x?!j||I||R?(te=(0,$n.Z)({rows:j,rowsMax:I},te),ee=Ju):ee="textarea":te=(0,$n.Z)({type:M},te);return r.useEffect((function(){q&&q.setAdornedStart(Boolean(N))}),[q,N]),r.createElement("div",(0,$n.Z)({className:(0,Xn.Z)(a.root,a["color".concat((0,xr.Z)(Y.color||"primary"))],l,Y.disabled&&a.disabled,Y.error&&a.error,d&&a.fullWidth,Y.focused&&a.focused,q&&a.formControl,x&&a.multiline,N&&a.adornedStart,c&&a.adornedEnd,"dense"===Y.margin&&a.marginDense),onClick:function(e){W.current&&e.currentTarget===e.target&&W.current.focus(),S&&S(e)},ref:t},F),N,r.createElement(Ku.Provider,{value:null},r.createElement(ee,(0,$n.Z)({"aria-invalid":Y.error,"aria-describedby":n,autoComplete:o,autoFocus:i,defaultValue:s,disabled:Y.disabled,id:p,onAnimationStart:function(e){Q("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:w,placeholder:P,readOnly:A,required:Y.required,rows:j,value:B,onKeyDown:k,onKeyUp:C},te,{className:(0,Xn.Z)(a.input,g.className,Y.disabled&&a.disabled,x&&a.inputMultiline,Y.hiddenLabel&&a.inputHiddenLabel,N&&a.inputAdornedStart,c&&a.inputAdornedEnd,"search"===M&&a.inputTypeSearch,"dense"===Y.margin&&a.inputMarginDense),onBlur:function(e){E&&E(e),g.onBlur&&g.onBlur(e),q&&q.onBlur?q.onBlur(e):$(!1)},onChange:function(e){if(!z){var t=e.target||W.current;if(null==t)throw new Error((0,Zu.Z)(1));Q({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];g.onChange&&g.onChange.apply(g,[e].concat(r)),_&&_.apply(void 0,[e].concat(r))},onFocus:function(e){Y.disabled?e.stopPropagation():(O&&O(e),g.onFocus&&g.onFocus(e),q&&q.onFocus?q.onFocus(e):$(!0))}}))),c,T?T((0,$n.Z)({},Y,{startAdornment:N})):null)})),rc=(0,Jn.Z)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,$n.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(nc),oc=r.forwardRef((function(e,t){var n=e.disableUnderline,o=e.classes,i=e.fullWidth,a=void 0!==i&&i,l=e.inputComponent,s=void 0===l?"input":l,u=e.multiline,c=void 0!==u&&u,f=e.type,d=void 0===f?"text":f,p=(0,Kn.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return r.createElement(rc,(0,$n.Z)({classes:(0,$n.Z)({},o,{root:(0,Xn.Z)(o.root,!n&&o.underline),underline:null}),fullWidth:a,inputComponent:s,multiline:c,ref:t,type:d},p))}));oc.muiName="Input";var ic=(0,Jn.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(oc),ac=r.forwardRef((function(e,t){var n=e.disableUnderline,o=e.classes,i=e.fullWidth,a=void 0!==i&&i,l=e.inputComponent,s=void 0===l?"input":l,u=e.multiline,c=void 0!==u&&u,f=e.type,d=void 0===f?"text":f,p=(0,Kn.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return r.createElement(rc,(0,$n.Z)({classes:(0,$n.Z)({},o,{root:(0,Xn.Z)(o.root,!n&&o.underline),underline:null}),fullWidth:a,inputComponent:s,multiline:c,ref:t,type:d},p))}));ac.muiName="Input";var lc=(0,Jn.Z)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(ac),sc=r.forwardRef((function(e,t){e.children;var n=e.classes,o=e.className,i=e.label,a=e.labelWidth,l=e.notched,s=e.style,u=(0,Kn.Z)(e,["children","classes","className","label","labelWidth","notched","style"]),c="rtl"===rl().direction?"right":"left";if(void 0!==i)return r.createElement("fieldset",(0,$n.Z)({"aria-hidden":!0,className:(0,Xn.Z)(n.root,o),ref:t,style:s},u),r.createElement("legend",{className:(0,Xn.Z)(n.legendLabelled,l&&n.legendNotched)},i?r.createElement("span",null,i):r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var f=a>0?.75*a+8:.01;return r.createElement("fieldset",(0,$n.Z)({"aria-hidden":!0,style:(0,$n.Z)((0,Ca.Z)({},"padding".concat((0,xr.Z)(c)),8),s),className:(0,Xn.Z)(n.root,o),ref:t},u),r.createElement("legend",{className:n.legend,style:{width:l?f:.01}},r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),uc=(0,Jn.Z)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(sc),cc=r.forwardRef((function(e,t){var n=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,l=void 0===a?"input":a,s=e.label,u=e.labelWidth,c=void 0===u?0:u,f=e.multiline,d=void 0!==f&&f,p=e.notched,h=e.type,m=void 0===h?"text":h,v=(0,Kn.Z)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return r.createElement(rc,(0,$n.Z)({renderSuffix:function(e){return r.createElement(uc,{className:n.notchedOutline,label:s,labelWidth:c,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,$n.Z)({},n,{root:(0,Xn.Z)(n.root,n.underline),notchedOutline:null}),fullWidth:i,inputComponent:l,multiline:d,ref:t,type:m},v))}));cc.muiName="Input";var fc=(0,Jn.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(cc);function dc(){return r.useContext(Ku)}var pc=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=(e.color,e.component),l=void 0===a?"label":a,s=(e.disabled,e.error,e.filled,e.focused,e.required,(0,Kn.Z)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),u=Hu({props:e,muiFormControl:dc(),states:["color","required","focused","disabled","error","filled"]});return r.createElement(l,(0,$n.Z)({className:(0,Xn.Z)(o.root,o["color".concat((0,xr.Z)(u.color||"primary"))],i,u.disabled&&o.disabled,u.error&&o.error,u.filled&&o.filled,u.focused&&o.focused,u.required&&o.required),ref:t},s),n,u.required&&r.createElement("span",{"aria-hidden":!0,className:(0,Xn.Z)(o.asterisk,u.error&&o.error)}," ","*"))})),hc=(0,Jn.Z)((function(e){return{root:(0,$n.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(pc),mc=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.disableAnimation,a=void 0!==i&&i,l=(e.margin,e.shrink),s=(e.variant,(0,Kn.Z)(e,["classes","className","disableAnimation","margin","shrink","variant"])),u=dc(),c=l;void 0===c&&u&&(c=u.filled||u.focused||u.adornedStart);var f=Hu({props:e,muiFormControl:u,states:["margin","variant"]});return r.createElement(hc,(0,$n.Z)({"data-shrink":c,className:(0,Xn.Z)(n.root,o,u&&n.formControl,!a&&n.animated,c&&n.shrink,"dense"===f.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[f.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},s))})),vc=(0,Jn.Z)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(mc),gc=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,l=void 0===a?"primary":a,s=e.component,u=void 0===s?"div":s,c=e.disabled,f=void 0!==c&&c,d=e.error,p=void 0!==d&&d,h=e.fullWidth,m=void 0!==h&&h,v=e.focused,g=e.hiddenLabel,y=void 0!==g&&g,b=e.margin,x=void 0===b?"none":b,w=e.required,E=void 0!==w&&w,_=e.size,S=e.variant,O=void 0===S?"standard":S,k=(0,Kn.Z)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),C=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){if((0,Au.Z)(t,["Input","Select"])){var n=(0,Au.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),P=C[0],A=C[1],T=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){(0,Au.Z)(t,["Input","Select"])&&ec(t.props,!0)&&(e=!0)})),e})),j=T[0],I=T[1],R=r.useState(!1),N=R[0],D=R[1],M=void 0!==v?v:N;f&&M&&D(!1);var L=r.useCallback((function(){I(!0)}),[]),F={adornedStart:P,setAdornedStart:A,color:l,disabled:f,error:p,filled:j,focused:M,fullWidth:m,hiddenLabel:y,margin:("small"===_?"dense":void 0)||x,onBlur:function(){D(!1)},onEmpty:r.useCallback((function(){I(!1)}),[]),onFilled:L,onFocus:function(){D(!0)},registerEffect:void 0,required:E,variant:O};return r.createElement(Ku.Provider,{value:F},r.createElement(u,(0,$n.Z)({className:(0,Xn.Z)(o.root,i,"none"!==x&&o["margin".concat((0,xr.Z)(x))],m&&o.fullWidth),ref:t},k),n))})),yc=(0,Jn.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(gc),bc=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,l=void 0===a?"p":a,s=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,Kn.Z)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),u=Hu({props:e,muiFormControl:dc(),states:["variant","margin","disabled","error","filled","focused","required"]});return r.createElement(l,(0,$n.Z)({className:(0,Xn.Z)(o.root,("filled"===u.variant||"outlined"===u.variant)&&o.contained,i,u.disabled&&o.disabled,u.error&&o.error,u.filled&&o.filled,u.focused&&o.focused,u.required&&o.required,"dense"===u.margin&&o.marginDense),ref:t},s)," "===n?r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):n)})),xc=(0,Jn.Z)((function(e){return{root:(0,$n.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(bc),wc=n(65835),Ec=n(90484);function _c(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Sc={entering:{opacity:1,transform:_c(1)},entered:{opacity:1,transform:"none"}},Oc=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,l=e.onEnter,s=e.onEntered,u=e.onEntering,c=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,h=e.timeout,m=void 0===h?"auto":h,v=e.TransitionComponent,g=void 0===v?el:v,y=(0,Kn.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=r.useRef(),x=r.useRef(),w=rl(),E=w.unstable_strictMode&&!i,_=r.useRef(null),S=(0,er.Z)(n.ref,t),O=(0,er.Z)(E?_:void 0,S),k=function(e){return function(t,n){if(e){var r=E?[_.current,t]:[t,n],o=(0,Ya.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},C=k(u),P=k((function(e,t){ol(e);var n,r=il({style:p,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=o,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:i}),w.transitions.create("transform",{duration:.666*n,delay:i})].join(","),l&&l(e,t)})),A=k(s),T=k(d),j=k((function(e){var t,n=il({style:p,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:o}),w.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=_c(.75),c&&c(e)})),I=k(f);return r.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),r.createElement(g,(0,$n.Z)({appear:!0,in:a,nodeRef:E?_:void 0,onEnter:P,onEntered:A,onEntering:C,onExit:j,onExited:I,onExiting:T,addEndListener:function(e,t){var n=E?e:t;"auto"===m&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===m?null:m},y),(function(e,t){return r.cloneElement(n,(0,$n.Z)({style:(0,$n.Z)({opacity:0,transform:_c(.75),visibility:"exited"!==e||a?void 0:"hidden"},Sc[e],p,n.props.style),ref:O},t))}))}));Oc.muiSupportAuto=!0;var kc=Oc;function Cc(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Pc(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ac(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Tc(e){return"function"==typeof e?e():e}var jc=r.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,a=e.anchorOrigin,l=void 0===a?{vertical:"top",horizontal:"left"}:a,s=e.anchorPosition,u=e.anchorReference,c=void 0===u?"anchorEl":u,f=e.children,d=e.classes,p=e.className,h=e.container,m=e.elevation,v=void 0===m?8:m,g=e.getContentAnchorEl,y=e.marginThreshold,b=void 0===y?16:y,x=e.onEnter,w=e.onEntered,E=e.onEntering,_=e.onExit,S=e.onExited,O=e.onExiting,k=e.open,C=e.PaperProps,P=void 0===C?{}:C,A=e.transformOrigin,T=void 0===A?{vertical:"top",horizontal:"left"}:A,j=e.TransitionComponent,I=void 0===j?kc:j,R=e.transitionDuration,N=void 0===R?"auto":R,D=e.TransitionProps,M=void 0===D?{}:D,L=(0,Kn.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),F=r.useRef(),B=r.useCallback((function(e){if("anchorPosition"===c)return s;var t=Tc(i),n=(t&&1===t.nodeType?t:(0,Ta.Z)(F.current).body).getBoundingClientRect(),r=0===e?l.vertical:"center";return{top:n.top+Cc(n,r),left:n.left+Pc(n,l.horizontal)}}),[i,l.horizontal,l.vertical,s,c]),z=r.useCallback((function(e){var t=0;if(g&&"anchorEl"===c){var n=g(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[l.vertical,c,g]),W=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Cc(e,T.vertical)+t,horizontal:Pc(e,T.horizontal)}}),[T.horizontal,T.vertical]),U=r.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},r=W(n,t);if("none"===c)return{top:null,left:null,transformOrigin:Ac(r)};var o=B(t),a=o.top-r.vertical,l=o.left-r.horizontal,s=a+n.height,u=l+n.width,f=(0,Fa.Z)(Tc(i)),d=f.innerHeight-b,p=f.innerWidth-b;if(a<b){var h=a-b;a-=h,r.vertical+=h}else if(s>d){var m=s-d;a-=m,r.vertical+=m}if(l<b){var v=l-b;l-=v,r.horizontal+=v}else if(u>p){var g=u-p;l-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(l),"px"),transformOrigin:Ac(r)}}),[i,c,B,z,W,b]),Z=r.useCallback((function(){var e=F.current;if(e){var t=U(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[U]),H=r.useCallback((function(e){F.current=o.findDOMNode(e)}),[]);r.useEffect((function(){k&&Z()})),r.useImperativeHandle(n,(function(){return k?{updatePosition:function(){Z()}}:null}),[k,Z]),r.useEffect((function(){if(k){var e=(0,$u.Z)((function(){Z()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,Z]);var G=N;"auto"!==N||I.muiSupportAuto||(G=void 0);var V=h||(i?(0,Ta.Z)(Tc(i)).body:void 0);return r.createElement(qa,(0,$n.Z)({container:V,open:k,ref:t,BackdropProps:{invisible:!0},className:(0,Xn.Z)(d.root,p)},L),r.createElement(I,(0,$n.Z)({appear:!0,in:k,onEnter:x,onEntered:w,onExit:_,onExited:S,onExiting:O,timeout:G},M,{onEntering:(0,Na.Z)((function(e,t){E&&E(e,t),Z()}),M.onEntering)}),r.createElement(dl,(0,$n.Z)({elevation:v,ref:H},P,{className:(0,Xn.Z)(d.paper,P.className)}),f)))})),Ic=(0,Jn.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(jc),Rc=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,l=void 0===a?"ul":a,s=e.dense,u=void 0!==s&&s,c=e.disablePadding,f=void 0!==c&&c,d=e.subheader,p=(0,Kn.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=r.useMemo((function(){return{dense:u}}),[u]);return r.createElement(Tu.Provider,{value:h},r.createElement(l,(0,$n.Z)({className:(0,Xn.Z)(o.root,i,u&&o.dense,!f&&o.padding,d&&o.subheader),ref:t},p),d,n))})),Nc=(0,Jn.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Rc);function Dc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Mc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Lc(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Fc(e,t,n,r,o,i){for(var a=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return;a=!0}var s=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Lc(l,i)&&!s)return void l.focus();l=o(e,l,n)}}var Bc="undefined"==typeof window?r.useEffect:r.useLayoutEffect,zc=r.forwardRef((function(e,t){var n=e.actions,i=e.autoFocus,a=void 0!==i&&i,l=e.autoFocusItem,s=void 0!==l&&l,u=e.children,c=e.className,f=e.disabledItemsFocusable,d=void 0!==f&&f,p=e.disableListWrap,h=void 0!==p&&p,m=e.onKeyDown,v=e.variant,g=void 0===v?"selectedMenu":v,y=(0,Kn.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),b=r.useRef(null),x=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Bc((function(){a&&b.current.focus()}),[a]),r.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!b.current.style.width;if(e.clientHeight<b.current.clientHeight&&n){var r="".concat(La(),"px");b.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,b.current.style.width="calc(100% + ".concat(r,")")}return b.current}}}),[]);var w=r.useCallback((function(e){b.current=o.findDOMNode(e)}),[]),E=(0,er.Z)(w,t),_=-1;r.Children.forEach(u,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===_)&&(_=t))}));var S=r.Children.map(u,(function(e,t){if(t===_){var n={};return s&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===g&&(n.tabIndex=0),r.cloneElement(e,n)}return e}));return r.createElement(Nc,(0,$n.Z)({role:"menu",ref:E,className:c,onKeyDown:function(e){var t=b.current,n=e.key,r=(0,Ta.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Fc(t,r,h,d,Dc);else if("ArrowUp"===n)e.preventDefault(),Fc(t,r,h,d,Mc);else if("Home"===n)e.preventDefault(),Fc(t,null,h,d,Dc);else if("End"===n)e.preventDefault(),Fc(t,null,h,d,Mc);else if(1===n.length){var o=x.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var l=r&&!o.repeating&&Lc(r,o);o.previousKeyMatched&&(l||Fc(t,r,!1,d,Dc,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},y),S)})),Wc={vertical:"top",horizontal:"right"},Uc={vertical:"top",horizontal:"left"},Zc=r.forwardRef((function(e,t){var n=e.autoFocus,i=void 0===n||n,a=e.children,l=e.classes,s=e.disableAutoFocusItem,u=void 0!==s&&s,c=e.MenuListProps,f=void 0===c?{}:c,d=e.onClose,p=e.onEntering,h=e.open,m=e.PaperProps,v=void 0===m?{}:m,g=e.PopoverClasses,y=e.transitionDuration,b=void 0===y?"auto":y,x=e.variant,w=void 0===x?"selectedMenu":x,E=(0,Kn.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),_=rl(),S=i&&!u&&h,O=r.useRef(null),k=r.useRef(null),C=-1;r.Children.map(a,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("menu"!==w&&e.props.selected||-1===C)&&(C=t))}));var P=r.Children.map(a,(function(e,t){return t===C?r.cloneElement(e,{ref:function(t){k.current=o.findDOMNode(t),(0,ja.Z)(e.ref,t)}}):e}));return r.createElement(Ic,(0,$n.Z)({getContentAnchorEl:function(){return k.current},classes:g,onClose:d,onEntering:function(e,t){O.current&&O.current.adjustStyleForScrollbar(e,_),p&&p(e,t)},anchorOrigin:"rtl"===_.direction?Wc:Uc,transformOrigin:"rtl"===_.direction?Wc:Uc,PaperProps:(0,$n.Z)({},v,{classes:(0,$n.Z)({},v.classes,{root:l.paper})}),open:h,ref:t,transitionDuration:b},E),r.createElement(zc,(0,$n.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:O,autoFocus:i&&(-1===C||u),autoFocusItem:S,variant:w},f,{className:(0,Xn.Z)(l.list,f.className)}),P))})),Hc=(0,Jn.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Zc),Gc=n(22775);function Vc(e,t){return"object"===(0,Ec.Z)(t)&&null!==t?e===t:String(e)===String(t)}var Kc=r.forwardRef((function(e,t){var n=e["aria-label"],o=e.autoFocus,i=e.autoWidth,a=e.children,l=e.classes,s=e.className,u=e.defaultValue,c=e.disabled,f=e.displayEmpty,d=e.IconComponent,p=e.inputRef,h=e.labelId,m=e.MenuProps,v=void 0===m?{}:m,g=e.multiple,y=e.name,b=e.onBlur,x=e.onChange,w=e.onClose,E=e.onFocus,_=e.onOpen,S=e.open,O=e.readOnly,k=e.renderValue,C=e.SelectDisplayProps,P=void 0===C?{}:C,A=e.tabIndex,T=(e.type,e.value),j=e.variant,I=void 0===j?"standard":j,R=(0,Kn.Z)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),N=(0,Gc.Z)({controlled:T,default:u,name:"Select"}),D=(0,Ya.Z)(N,2),M=D[0],L=D[1],F=r.useRef(null),B=r.useState(null),z=B[0],W=B[1],U=r.useRef(null!=S).current,Z=r.useState(),H=Z[0],G=Z[1],V=r.useState(!1),K=V[0],$=V[1],q=(0,er.Z)(t,p);r.useImperativeHandle(q,(function(){return{focus:function(){z.focus()},node:F.current,value:M}}),[z,M]),r.useEffect((function(){o&&z&&z.focus()}),[o,z]),r.useEffect((function(){if(z){var e=(0,Ta.Z)(z).getElementById(h);if(e){var t=function(){getSelection().isCollapsed&&z.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[h,z]);var Y,X,J=function(e,t){e?_&&_(t):w&&w(t),U||(G(i?null:z.clientWidth),$(e))},Q=r.Children.toArray(a),ee=function(e){return function(t){var n;if(g||J(!1,t),g){n=Array.isArray(M)?M.slice():[];var r=M.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),M!==n&&(L(n),x&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:y}}),x(t,e)))}},te=null!==z&&(U?S:K);delete R["aria-invalid"];var ne=[],re=!1;(ec({value:M})||f)&&(k?Y=k(M):re=!0);var oe=Q.map((function(e){if(!r.isValidElement(e))return null;var t;if(g){if(!Array.isArray(M))throw new Error((0,Zu.Z)(2));(t=M.some((function(t){return Vc(t,e.props.value)})))&&re&&ne.push(e.props.children)}else(t=Vc(M,e.props.value))&&re&&(X=e.props.children);return t&&!0,r.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ee(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));re&&(Y=g?ne.join(", "):X);var ie,ae=H;!i&&U&&z&&(ae=z.clientWidth),ie=void 0!==A?A:c?null:0;var le=P.id||(y?"mui-component-select-".concat(y):void 0);return r.createElement(r.Fragment,null,r.createElement("div",(0,$n.Z)({className:(0,Xn.Z)(l.root,l.select,l.selectMenu,l[I],s,c&&l.disabled),ref:W,tabIndex:ie,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":te?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[h,le].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!O){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onMouseDown:c||O?null:function(e){0===e.button&&(e.preventDefault(),z.focus(),J(!0,e))},onBlur:function(e){!te&&b&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:y}}),b(e))},onFocus:E},P,{id:le}),function(e){return null==e||"string"==typeof e&&!e.trim()}(Y)?r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):Y),r.createElement("input",(0,$n.Z)({value:Array.isArray(M)?M.join(","):M,name:y,ref:F,"aria-hidden":!0,onChange:function(e){var t=Q.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=Q[t];L(n.props.value),x&&x(e,n)}},tabIndex:-1,className:l.nativeInput,autoFocus:o},R)),r.createElement(d,{className:(0,Xn.Z)(l.icon,l["icon".concat((0,xr.Z)(I))],te&&l.iconOpen,c&&l.disabled)}),r.createElement(Hc,(0,$n.Z)({id:"menu-".concat(y||""),anchorEl:z,open:te,onClose:function(e){J(!1,e)}},v,{MenuListProps:(0,$n.Z)({"aria-labelledby":h,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:(0,$n.Z)({},v.PaperProps,{style:(0,$n.Z)({minWidth:ae},null!=v.PaperProps?v.PaperProps.style:null)})}),oe))})),$c=n(25209),qc=(0,$c.Z)(r.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Yc=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.disabled,a=e.IconComponent,l=e.inputRef,s=e.variant,u=void 0===s?"standard":s,c=(0,Kn.Z)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return r.createElement(r.Fragment,null,r.createElement("select",(0,$n.Z)({className:(0,Xn.Z)(n.root,n.select,n[u],o,i&&n.disabled),disabled:i,ref:l||t},c)),e.multiple?null:r.createElement(a,{className:(0,Xn.Z)(n.icon,n["icon".concat((0,xr.Z)(u))],i&&n.disabled)}))})),Xc=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Jc=r.createElement(ic,null),Qc=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.IconComponent,a=void 0===i?qc:i,l=e.input,s=void 0===l?Jc:l,u=e.inputProps,c=(e.variant,(0,Kn.Z)(e,["children","classes","IconComponent","input","inputProps","variant"])),f=Hu({props:e,muiFormControl:dc(),states:["variant"]});return r.cloneElement(s,(0,$n.Z)({inputComponent:Yc,inputProps:(0,$n.Z)({children:n,classes:o,IconComponent:a,variant:f.variant,type:void 0},u,s?s.props.inputProps:{}),ref:t},c))}));Qc.muiName="Select";(0,Jn.Z)(Xc,{name:"MuiNativeSelect"})(Qc);var ef=Xc,tf=r.createElement(ic,null),nf=r.createElement(lc,null),rf=r.forwardRef((function e(t,n){var o=t.autoWidth,i=void 0!==o&&o,a=t.children,l=t.classes,s=t.displayEmpty,u=void 0!==s&&s,c=t.IconComponent,f=void 0===c?qc:c,d=t.id,p=t.input,h=t.inputProps,m=t.label,v=t.labelId,g=t.labelWidth,y=void 0===g?0:g,b=t.MenuProps,x=t.multiple,w=void 0!==x&&x,E=t.native,_=void 0!==E&&E,S=t.onClose,O=t.onOpen,k=t.open,C=t.renderValue,P=t.SelectDisplayProps,A=t.variant,T=void 0===A?"standard":A,j=(0,Kn.Z)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),I=_?Yc:Kc,R=Hu({props:t,muiFormControl:dc(),states:["variant"]}).variant||T,N=p||{standard:tf,outlined:r.createElement(fc,{label:m,labelWidth:y}),filled:nf}[R];return r.cloneElement(N,(0,$n.Z)({inputComponent:I,inputProps:(0,$n.Z)({children:a,IconComponent:f,variant:R,type:void 0,multiple:w},_?{id:d}:{autoWidth:i,displayEmpty:u,labelId:v,MenuProps:b,onClose:S,onOpen:O,open:k,renderValue:C,SelectDisplayProps:(0,$n.Z)({id:d},P)},h,{classes:h?(0,wc.Z)({baseClasses:l,newClasses:h.classes,Component:e}):l},p?p.props.inputProps:{}),ref:n},j))}));rf.muiName="Select";var of=(0,Jn.Z)(ef,{name:"MuiSelect"})(rf),af={standard:ic,filled:lc,outlined:fc},lf=r.forwardRef((function(e,t){var n=e.autoComplete,o=e.autoFocus,i=void 0!==o&&o,a=e.children,l=e.classes,s=e.className,u=e.color,c=void 0===u?"primary":u,f=e.defaultValue,d=e.disabled,p=void 0!==d&&d,h=e.error,m=void 0!==h&&h,v=e.FormHelperTextProps,g=e.fullWidth,y=void 0!==g&&g,b=e.helperText,x=e.hiddenLabel,w=e.id,E=e.InputLabelProps,_=e.inputProps,S=e.InputProps,O=e.inputRef,k=e.label,C=e.multiline,P=void 0!==C&&C,A=e.name,T=e.onBlur,j=e.onChange,I=e.onFocus,R=e.placeholder,N=e.required,D=void 0!==N&&N,M=e.rows,L=e.rowsMax,F=e.select,B=void 0!==F&&F,z=e.SelectProps,W=e.type,U=e.value,Z=e.variant,H=void 0===Z?"standard":Z,G=(0,Kn.Z)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var V={};if("outlined"===H&&(E&&void 0!==E.shrink&&(V.notched=E.shrink),k)){var K,$=null!==(K=null==E?void 0:E.required)&&void 0!==K?K:D;V.label=r.createElement(r.Fragment,null,k,$&&" *")}B&&(z&&z.native||(V.id=void 0),V["aria-describedby"]=void 0);var q=b&&w?"".concat(w,"-helper-text"):void 0,Y=k&&w?"".concat(w,"-label"):void 0,X=af[H],J=r.createElement(X,(0,$n.Z)({"aria-describedby":q,autoComplete:n,autoFocus:i,defaultValue:f,fullWidth:y,multiline:P,name:A,rows:M,rowsMax:L,type:W,value:U,id:w,inputRef:O,onBlur:T,onChange:j,onFocus:I,placeholder:R,inputProps:_},V,S));return r.createElement(yc,(0,$n.Z)({className:(0,Xn.Z)(l.root,s),disabled:p,error:m,fullWidth:y,hiddenLabel:x,ref:t,required:D,color:c,variant:H},G),k&&r.createElement(vc,(0,$n.Z)({htmlFor:w,id:Y},E),k),B?r.createElement(of,(0,$n.Z)({"aria-describedby":q,id:w,labelId:Y,value:U,input:J},z),a):J,b&&r.createElement(xc,(0,$n.Z)({id:q},v),b))})),sf=(0,Jn.Z)({root:{}},{name:"MuiTextField"})(lf);function uf(e){var t=e.articleId,n=e.setting,o=e.size,i=void 0===o?"medium":o,a=e.tiny,l=void 0!==a&&a,s=e.style;return l?r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/".concat(t),target:"_blank",style:s},r.createElement("i",{className:(0,Xn.Z)("knowledgebase-icon",i,"fas fa-question-circle")})):r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/".concat(t),target:"_blank",className:(0,Xn.Z)("knowledgebase-link",i),dangerouslySetInnerHTML:{__html:H("utils.knowledge_link",n)}})}function cf(){return(cf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ff(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return df(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return df(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function df(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var hf=[{value:"cancel",text:H("modal.cancel")},{value:"confirm",text:H("common.confirm"),focus:!0}];function mf(e){var t=e.open,n=e.buttons,o=e.onClose,i=e.text,a=e.title,l=e.defaultValue,s=e.canBeEmpty,u=void 0!==s&&s,c=e.maxWidth,f=void 0===c?"xs":c,d=e.fullWidth,p=void 0===d||d,h=e.cancelIfSameAsFirstValue,m=void 0!==h&&h,v=e.clearOnConfirm,g=void 0!==v&&v,y=e.kbLink,b=void 0===y?null:y,x=pf(e,["open","buttons","onClose","text","title","defaultValue","canBeEmpty","maxWidth","fullWidth","cancelIfSameAsFirstValue","clearOnConfirm","kbLink"]),w=ff(r.useState(""===l?"":l||" "),2),E=w[0],_=w[1];n||(n=hf);var S=function(e){("cancel"===e||u||""!=E)&&(g&&"confirm"===e&&_(""),o(e,E))};return r.createElement(ml,cf({open:t,maxWidth:f,fullWidth:p,onClose:function(){return S("cancel")},"aria-labelledby":"form-dialog-title"},x),r.createElement(xl,{id:"form-dialog-title"},a),r.createElement(El,null,r.createElement(Sl,null,i),r.createElement(sf,{autoFocus:!0,value:E,onChange:function(e){return _(e.target.value)},margin:"dense",id:"name",fullWidth:!0,helperText:u||""!=E?null:H("modal.incorrect"),error:!u&&""==E,onKeyPress:function(e){13===e.charCode&&S(m&&l===E?"cancel":"confirm")}})),r.createElement("div",{style:b&&{display:"flex",justifyContent:"space-between",alignItems:"center ",paddingLeft:"24px"}},b&&r.createElement(uf,{articleId:b,tiny:!0}),r.createElement(kl,null,n.map((function(e,t){return r.createElement(Er,{onClick:function(){return S(e.value)},color:"primary",key:t},e.text)})))))}function vf(){return(vf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xf(e){var t=e.name,n=e.onChange,o=e.size,i=void 0===o?"small":o,a=e.disabled,l=void 0!==a&&a,s=bf(e,["name","onChange","size","disabled"]),u=gf((0,r.useState)(!1),2),c=u[0],f=u[1];return r.createElement(r.Fragment,null,r.createElement(ya,{content:H("utils.duplicate")},r.createElement(jl,vf({onClick:function(){return f(!0)},color:"primary",size:i,disabled:l,style:{width:"35px",height:"35px"}},s),r.createElement(yu,{style:{overflow:"unset"},fontSize:"inherit",className:"far fa-copy"}))),r.createElement(mf,{open:c,title:H("utils.duplicate"),text:"Name ".concat(t," duplicate:"),"data-testid":"duplicate-button:dialog",defaultValue:"".concat(t," Copy"),onClose:function(e,t){f(!1),"confirm"===e&&n(t)}}))}function wf(){return(wf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ef(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _f(e){var t=e.size,n=void 0===t?"small":t,o=e.onClick,i=Ef(e,["size","onClick"]);return r.createElement(r.Fragment,null,r.createElement(ya,{content:H("settings.settings")},r.createElement(jl,wf({onClick:function(){o()},color:"primary",size:n,style:{width:"35px",height:"35px"}},i),r.createElement(yu,{fontSize:"inherit",style:{overflow:"unset"},className:"far fa-edit"}))))}function Sf(){return(Sf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Of(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Pf=r.forwardRef((function(e,t){var n=e.name,o=e.onChange,i=e.size,a=void 0===i?"small":i,l=e.inDropdown,s=void 0!==l&&l,u=Cf(e,["name","onChange","size","inDropdown"]),c=Of((0,r.useState)(!1),2),f=c[0],d=c[1];return r.createElement(r.Fragment,null,s?r.createElement(Du,{onClick:function(){return d(!0)},ref:t,"data-testid":"page_rule"===u.model?u["data-testid"]:"rename-button"},r.createElement(Lu,null,r.createElement(yu,{className:"fas fa-i-cursor"})),r.createElement(yl,{variant:"inherit"},H("utils.rename"))):r.createElement(ya,{content:H("utils.rename")},r.createElement(jl,Sf({size:a,onClick:function(){return d(!0)},color:"primary",style:{width:"35px",height:"35px"}},u),r.createElement(yu,{style:{overflow:"unset",fontSize:"medium"},fontSize:"inherit",className:"fas fa-i-cursor"}))),r.createElement(mf,{open:f,title:H("utils.rename"),text:H("utils.rename_to"),defaultValue:n,"data-testid":"rename-button:dialog",cancelIfSameAsFirstValue:!0,onClose:function(e,t){"confirm"===e&&o(t),d(!1)}}))})),Af=n(78513);function Tf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function If(e){var t=e.testId,n=void 0===t?"button-group-more-actions":t,o=e.children,i=Tf((0,r.useState)(null),2),a=i[0],l=i[1];return r.createElement(r.Fragment,null,r.createElement(ya,{content:H("settings.more_actions")},r.createElement(jl,{onClick:function(e){return l(e.currentTarget)},color:"primary",size:"small",style:{width:"35px",height:"35px"},"data-testid":n},r.createElement(Af.Z,null))),r.createElement(Hc,{id:"group-button-extra-buttons",anchorEl:a,keepMounted:!0,open:Boolean(a),onClose:function(){return l(null)},onClick:function(){return l(null)},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},o))}var Rf=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,l=void 0!==a&&a,s=e.inset,u=void 0!==s&&s,c=e.primary,f=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,h=(0,Kn.Z)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=r.useContext(Tu).dense,v=null!=c?c:n;null==v||v.type===yl||l||(v=r.createElement(yl,(0,$n.Z)({variant:m?"body2":"body1",className:o.primary,component:"span",display:"block"},f),v));var g=d;return null==g||g.type===yl||l||(g=r.createElement(yl,(0,$n.Z)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},p),g)),r.createElement("div",(0,$n.Z)({className:(0,Xn.Z)(o.root,i,m&&o.dense,u&&o.inset,v&&g&&o.multiline),ref:t},h),v,g)})),Nf=(0,Jn.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Rf);function Df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lf(e){var t=e.properties,n=e.type,o=void 0===n?"Button":n,i=Df(r.useState(null),2),a=i[0],l=i[1],s=Boolean(a),u=function(e){l(e.currentTarget)},c=function(){l(null)};return r.createElement(r.Fragment,null,Object.keys(t).length>0?r.createElement(r.Fragment,null,r.createElement(Er,{onClick:u,"aria-label":"more","aria-controls":"long-menu","aria-haspopup":"true",color:"primary",variant:"text",endIcon:r.createElement(yu,{className:"fas fa-caret-down"})},Object.keys(t).length," ",H("import_export.properties")," "),r.createElement(Hc,{id:"long-menu",anchorEl:a,keepMounted:!0,open:s,onClose:c,PaperProps:{style:{maxHeight:430,width:"410px"}},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},getContentAnchorEl:null},r.createElement(Nc,{subheader:r.createElement("li",null),onClick:c},Object.entries(t).map((function(e,t){var n=Df(e,2),o=n[0],i=n[1],a=vn()([null,null],"string"==typeof i?i.split(";"):JSON.stringify(i).split(";"));return r.createElement(Ru,{key:t,style:{display:"flex",flexWrap:"wrap"}},r.createElement(Nf,{primary:o.replaceAll("_"," ")+" :",style:{minWidth:"fit-content",marginRight:"5px",textTransform:"capitalize",flex:"unset",margin:"unset"}}),r.createElement(Nf,{primary:a[0],style:{margin:"0 5px",whiteSpace:"nowrap",flex:1,overflow:"hidden",borderRight:null!==a[1]&&"2px solid rgb(0 0 0 / 30%)"},primaryTypographyProps:{style:{overflow:"hidden",textOverflow:"ellipsis"}},secondary:null!==a[1]&&"Normal"}),null!==a[1]&&r.createElement(Nf,{primary:a[1],style:{margin:"0 5px",whiteSpace:"nowrap",flex:1,overflow:"hidden"},primaryTypographyProps:{style:{overflow:"hidden",textOverflow:"ellipsis"}},secondary:"Hover"}))}))))):r.createElement("span",{style:{color:"red"}},"- ",o," is empty. It will not be imported"))}var Ff=n(78718),Bf=n.n(Ff),zf=n(57557),Wf=n.n(zf);function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vf(e){var t=e.type,n=void 0===t?"group":t,o=e.object,i=e.group_data,a=void 0!==i&&i,l=Hf((0,r.useState)(!1),2),s=l[0],u=l[1],c=Hf((0,r.useState)(!1),2),f=c[0],d=c[1],p=Hf((0,r.useState)(!1),2),h=p[0],m=p[1],v=Bf()(a,I.stylingNoGroup)||!1,g=ga((function(e){return e})),y=function(){var e,t,r,i,a="".concat("group"===n?"Group":"Button"," - ").concat(o.name),l="button"===n?f[0]:{data:h,buttons:f};l.export_type=n,e=l,t=a,r="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e)),(i=document.createElement("a")).setAttribute("href",r),i.setAttribute("download",t+".buttonizer.json"),document.body.appendChild(i),i.click(),i.remove(),u(!1),m(!1),d(!1)};return r.createElement(r.Fragment,null,r.createElement(Du,{onClick:function(){var e="group"===n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();if(0===Object.keys(t.groups).length)return null;var n=Z()(t.groups,e,null);if(!n)return null;var r=at(n,(function(e){delete e.children,delete e.id})),o=Object.values(le(n.children)),i=[];return o.forEach((function(e){var t=at(e,(function(e){delete e.parent}));i.push(t)})),0===i.length&&(i=[{name:"Button",show_mobile:"true",show_desktop:"true"}]),{data:r,buttons:i}}(o.id,g):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){Zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o);if(Wf()(e,j),"group"===n){if(0===e.buttons.length)return alert(H("import_export.export.warning.no_buttons"));m(Wf()(e.data,j)),d(e.buttons.map((function(e){return Wf()(e,j)})))}else if("button"===n){if(0===e.length)return alert(H("import_export.export.warning.no_data"));m(!1),d([Wf()(e,j)])}u(!0)},"data-testid":"export-button"},r.createElement(Lu,null,r.createElement(yu,{className:"fas fa-file-export"})),r.createElement(yl,{variant:"inherit"},H("import_export.export.export_".concat(n)))),r.createElement(ml,{open:s,onClose:function(){return u(!1)},maxWidth:"xs",fullWidth:!0,"aria-labelledby":"import-button-dialog-title","aria-describedby":"import-button-dialog-description","data-testid":"dialog:export-dialog"},r.createElement(xl,{id:"import-button-dialog-title"},H("import_export.export.export_".concat(n))),r.createElement(El,null,(h||f)&&r.createElement(r.Fragment,null,r.createElement(Sl,{component:"div"},H("import_export.export.warning.preview")),h&&r.createElement(Sl,{component:"div",key:h.id},r.createElement("i",null,H("common.group")," "),":"," ",Z()(h,"name","Unnamed"),"."," ",r.createElement(Lf,{properties:h,type:"Group"})),f&&f.map((function(e,t){return r.createElement(Sl,{component:"div",key:t},r.createElement("i",null,H("common.button")," ",t+1," "),": ",Z()(e,"name","Unnamed"),".",r.createElement(Lf,{properties:e}))})))),r.createElement(kl,null,a&&"button"===n&&r.createElement(Er,{onClick:function(){return e=vn()({},v,f[0]),void d([e]);var e},"data-testid":"export-merge",style:{marginRight:"auto"}},H("import_export.export.merge")),r.createElement(Er,{onClick:function(){return u(!1)}},H("modal.cancel")),r.createElement(Er,{onClick:function(){return y()},color:"primary",disabled:"button"===n?!f:!h,"data-testid":"export-commence"},H("import_export.export.title")))))}function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yf(){return(Yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Xf=sa((function(e){return{buttons:e.buttons,groups:e.groups,getButtonsCount:function(t){return se(t,e)},state:e}}),(function(e){return{set:function(){return e(ne.apply(void 0,arguments))},dispatch:e}}),(function(e,t,n){return $f($f($f($f({},e),t),n),{},{removeButton:function(n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.store.dispatch;if(!t.buttons[e])throw ReferenceError("ID "+e+" not in store!");n(te(e,t.buttons[e].parent)),n(ie(e,"buttons"))}(n,e.state,t.dispatch)},duplicateButton:function(n,r,o){return Pu(n,r,o,e.state,t.dispatch)}})}))((function(e){var t=e.groupId,n=e.buttonId,o=e.buttons,i=e.groups,a=e.set,l=e.provided,s=e.currentDrag,u=e.styleDrop,c=e.getButtonsCount,f=e.removeButton,d=e.duplicateButton,p=e.openNewButtonDialog,h=o[n];if(!h||!t)return null;var m="/group/"+t+"/button/"+n,v=["default","square","rectangle","text","text-icon"];function g(e){a("buttons",n,e,!h[e])}return r.createElement("div",Yf({ref:l.innerRef},l.draggableProps,{style:u}),r.createElement("div",Yf({className:"button-container"+s},l.dragHandleProps),r.createElement("div",{className:"button-header"},r.createElement(Er,{color:"primary",style:{marginBottom:"10px"},className:"button-name",onClick:function(){return document.location.hash="#"+m}},r.createElement("span",{className:"button-name-span"},h.name)),r.createElement("div",{className:"button-actions"},r.createElement(_f,{onClick:function(){document.location.hash="#"+m},"data-testid":"edit-button"}),r.createElement(xf,{name:h.name,onChange:function(e){return d(n,t,{name:e})},"data-testid":"duplicate"}),r.createElement(If,null,r.createElement(Pf,{name:h.name,onChange:function(e){return a("buttons",n,"name",e)},"data-testid":"rename",inDropdown:!0}),r.createElement(Vf,{group_data:i[t],object:h,type:"button"}),r.createElement(Uu,{model:"button",inDropdown:!0,deleteDisabled:c(t)<=1,onClose:function(){f(n),i[t].children.length<=2&&-1===v.indexOf(i[t].menu_style)&&a(P,t,"menu_style","default")},"data-testid":"delete"})))),r.createElement("div",{className:"button-settings"},r.createElement("div",{className:"button-visibility"},r.createElement("div",{className:"button-title"},H("settings.show_mobile_desktop.title")+":"," "),r.createElement(ya,{content:H("settings.show_mobile_desktop.toggle_mobile")},r.createElement(Er,{color:"primary",variant:h.show_mobile?"contained":"outlined",onClick:function(){return g("show_mobile")},"data-testid":"show_mobile"},r.createElement("i",{className:"fas fa-mobile-alt"}))),r.createElement(ya,{content:H("settings.show_mobile_desktop.toggle_desktop")},r.createElement(Er,{color:"primary",variant:h.show_desktop?"contained":"outlined",onClick:function(){return g("show_desktop")},"data-testid":"show_desktop"},r.createElement("i",{className:"fas fa-desktop"})))),r.createElement("div",{className:"clear"}))),r.createElement(Er,{onClick:function(){return p()},color:"primary",variant:"text",size:"small",style:{marginBottom:"10px"},startIcon:r.createElement(yu,{className:"fas fa-plus-circle"}),"data-testid":"new-button"},H("utils.add_button")))}));function Jf(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}var Qf=Jf,ed=function(e,t){return Jf((function(){return e}),t)},td=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},nd=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},rd=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},od={top:0,right:0,bottom:0,left:0},id=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?od:n,o=e.border,i=void 0===o?od:o,a=e.padding,l=void 0===a?od:a,s=td(nd(t,r)),u=td(rd(t,i)),c=td(rd(u,l));return{marginBox:s,borderBox:td(t),paddingBox:u,contentBox:c,margin:r,border:i,padding:l}},ad=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Cs(!1),n},ld=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return id({borderBox:s,border:i,margin:a,padding:l})},sd=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ld(e,t)},ud=function(e,t){var n={top:ad(t.marginTop),right:ad(t.marginRight),bottom:ad(t.marginBottom),left:ad(t.marginLeft)},r={top:ad(t.paddingTop),right:ad(t.paddingRight),bottom:ad(t.paddingBottom),left:ad(t.paddingLeft)},o={top:ad(t.borderTopWidth),right:ad(t.borderRightWidth),bottom:ad(t.borderBottomWidth),left:ad(t.borderLeftWidth)};return id({borderBox:e,margin:n,padding:r,border:o})},cd=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ud(t,n)},fd=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function dd(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||fd(r)&&fd(o)))return!1;var r,o;return!0}var pd=function(e,t){var n;void 0===t&&(t=dd);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},hd=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function md(e,t){}md.bind(null,"warn"),md.bind(null,"error");function vd(){}function gd(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,$n.Z)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}function yd(e){this.message=e}function bd(e,t){if(!e)throw new yd("Invariant failed")}yd.prototype.toString=function(){return this.message};var xd=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=vd,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof yd&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,ar.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=gd(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof yd))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),wd=function(e){return e+1},Ed=function(e,t){var n=e.droppableId===t.droppableId,r=wd(e.index),o=wd(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},_d=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Sd=function(e){return"\n The item has returned to its starting position\n of "+wd(e.index)+"\n"},Od="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",kd=function(e){return"\n You have lifted an item in position "+wd(e.source.index)+"\n"},Cd=function(e){var t=e.destination;if(t)return Ed(e.source,t);var n=e.combine;return n?_d(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},Pd=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Sd(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Ed(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+_d(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Sd(e.source)+"\n "},Ad={x:0,y:0},Td=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},jd=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Id=function(e,t){return e.x===t.x&&e.y===t.y},Rd=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Nd=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Dd=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Md=function(e,t){return Math.min.apply(Math,t.map((function(t){return Dd(e,t)})))},Ld=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Fd=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Bd=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},zd=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=td({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):td(e)},Wd=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t,n){var r;return n&&n.increasedBy?(0,$n.Z)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?Fd(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:zd(i,o)}},Ud=function(e,t){e.frame||bd(!1);var n=e.frame,r=jd(t,n.scroll.initial),o=Rd(r),i=(0,$n.Z)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),a=Wd({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return(0,$n.Z)({},e,{frame:i,subject:a})};function Zd(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Hd(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Gd(e,t){if(e.find)return e.find(t);var n=Hd(e,t);return-1!==n?e[n]:void 0}function Vd(e){return Array.prototype.slice.call(e)}var Kd=pd((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),$d=pd((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),qd=pd((function(e){return Zd(e)})),Yd=pd((function(e){return Zd(e)})),Xd=pd((function(e,t){return Yd(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function Jd(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Qd(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ep=pd((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),tp=function(e,t){return e.descriptor.droppableId===t.descriptor.id},np={point:Ad,value:0},rp={invisible:{},visible:{},all:[]},op={displaced:rp,displacedBy:np,at:null},ip=function(e,t){return function(n){return e<=n&&n<=t}},ap=function(e){var t=ip(e.top,e.bottom),n=ip(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!a||!l)||(a&&i||l&&o)}},lp=function(e){var t=ip(e.top,e.bottom),n=ip(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},sp={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},up={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},cp=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ad;return Fd(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},fp=function(e){return cp((0,$n.Z)({},e,{isVisibleThroughFrameFn:ap}))},dp=function(e){return cp((0,$n.Z)({},e,{isVisibleThroughFrameFn:lp}))};function pp(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return td(nd(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!fp({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var u={draggableId:s,shouldAnimate:function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(s,a,i)};return e.visible[s]=u,e}),{all:[],visible:{},invisible:{}})}function hp(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:rp,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function mp(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,u=tp(t,r);if(null==l)return hp({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var c=Gd(n,(function(e){return e.descriptor.index===l}));if(!c)return hp({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var f=ep(t,n),d=n.indexOf(c);return{displaced:pp({afterDragging:f.slice(d),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function vp(e,t){return Boolean(t.effected[e])}var gp=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,u=e.afterCritical,c=l.at;if(c||bd(!1),"REORDER"===c.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return a<l||a>(n?s:s+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==f?null:mp({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:f})}var d=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,l=r[a].descriptor.index;return vp(a,i)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:u});return null==d?null:mp({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})},yp=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Qd(n);o||bd(!1);var i=o.draggableId,a=r[i].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return vp(r,n)?i?Ad:Rd(o.point):i?o.point:Ad}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Td(a,l)},bp=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},xp=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},wp=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Nd(t.line,n.marginBox[t.end]+bp(t,r),xp(t,n.marginBox,r))},Ep=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Nd(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),xp(t,n.marginBox,r))},_p=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Xd(o.descriptor.id,r),l=n.page,s=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Nd(t.line,n.contentBox[t.start]+bp(t,r),xp(t,n.contentBox,r))}({axis:s,moveInto:o.page,isMoving:l});var u=t.displaced,c=t.displacedBy,f=u.all[0];if(f){var d=r[f];if(vp(f,i))return Ep({axis:s,moveRelativeTo:d.page,isMoving:l});var p=ld(d.page,c.point);return Ep({axis:s,moveRelativeTo:p,isMoving:l})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return l.borderBox.center;if(vp(h.descriptor.id,i)){var m=ld(h.page,Rd(i.displacedBy.point));return wp({axis:s,moveRelativeTo:m,isMoving:l})}return wp({axis:s,moveRelativeTo:h.page,isMoving:l})},Sp=function(e,t){var n=e.frame;return n?Td(t,n.scroll.diff.displacement):t},Op=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?_p({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):yp({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Sp(n,t):t},kp=function(e,t){var n=jd(t,e.scroll.initial),r=Rd(n);return{frame:td({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Cp(e,t){return e.map((function(e){return t[e]}))}var Pp=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Td(e.scroll.diff.displacement,t)}(e.viewport,t),o=jd(r,n.page.borderBox.center);return Td(n.client.borderBox.center,o)},Ap=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=void 0!==a&&a,s=jd(r,t.page.borderBox.center),u={target:Fd(t.page.borderBox,s),destination:n,withDroppableDisplacement:i,viewport:o};return l?function(e){return cp((0,$n.Z)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=ip(e.top,e.bottom),r=ip(e.left,e.right);return function(e){return t===sp?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):dp(u)},Tp=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,s=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var c=Xd(r.descriptor.id,o),f=tp(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Jd(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,$n.Z)({},i,{at:t})}var l=i.displaced.all,s=l.length?l[0]:null;if(t)return s?a(s):null;var u=ep(n,o);if(!s)return u.length?a(u[u.length-1].descriptor.id):null;var c=Hd(u,(function(e){return e.descriptor.id===s}));-1===c&&bd(!1);var f=c-1;return f<0?null:a(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||gp({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:u});if(!d)return null;var p=Op({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Ap({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Pp({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null};var h=jd(p,l);return{clientSelection:s,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=kp(n,Td(n.scroll.current,i)),l=r.frame?Ud(r,Td(r.frame.scroll.current,i)):r,s=t.displaced,u=pp({afterDragging:Cp(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),c=pp({afterDragging:Cp(s.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),f={},d={},p=[s,u,c];return s.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?d[e]=t:f[e]=!0})),(0,$n.Z)({},t,{displaced:{all:s.all,invisible:f,visible:d}})}({impact:d,viewport:a,destination:r,draggables:o,maxScrollChange:h}),scrollJumpRequest:h}},jp=function(e){var t=e.subject.active;return t||bd(!1),t},Ip=function(e,t){var n=e.page.borderBox.center;return vp(e.descriptor.id,t)?jd(n,t.displacedBy.point):n},Rp=function(e,t){var n=e.page.borderBox;return vp(e.descriptor.id,t)?Fd(n,Rd(t.displacedBy.point)):n},Np=pd((function(e,t){var n=t[e.line];return{value:n,point:Nd(e.line,n)}})),Dp=function(e,t){return(0,$n.Z)({},e,{scroll:(0,$n.Z)({},e.scroll,{max:t})})},Mp=function(e,t,n){var r=e.frame;tp(t,e)&&bd(!1),e.subject.withPlaceholder&&bd(!1);var o=Np(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Nd(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Xd(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Nd(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=Wd({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return(0,$n.Z)({},e,{subject:l})}var s=i?Td(r.scroll.max,i):r.scroll.max,u=Dp(r,s),c=Wd({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:u});return(0,$n.Z)({},e,{subject:c,frame:u})},Lp=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,u=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var l=r.axis,s=ip(a[l.start],a[l.end]),u=qd(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return ap(i.frame)(jp(e))})).filter((function(e){var n=jp(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=jp(e),n=ip(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||n(a[l.start])||n(a[l.end])})).sort((function(e,n){var r=jp(e)[l.crossAxisStart],o=jp(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return jp(e)[l.crossAxisStart]===jp(n[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return ip(jp(e)[l.start],jp(e)[l.end])(n[l.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return jp(e)[l.start]-jp(t)[l.start]}))[0]:u.sort((function(e,t){var r=Md(n,Bd(jp(e))),o=Md(n,Bd(jp(t)));return r!==o?r-o:jp(e)[l.start]-jp(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!u)return null;var c=Xd(u.descriptor.id,i),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!n){if(r.length)return null;var u={displaced:rp,displacedBy:np,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=Op({impact:u,draggable:o,droppable:a,draggables:i,afterCritical:s}),f=tp(o,a)?a:Mp(a,o,i);return Ap({draggable:o,destination:f,newPageBorderBoxCenter:c,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var d,p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?d:d+1),m=Np(a.axis,o.displaceBy);return mp({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:m,last:rp,index:h})}({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return dp({target:Rp(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Dd(t,Sp(r,Ip(e,i))),a=Dd(t,Sp(r,Ip(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:u,insideDestination:c,afterCritical:s}),insideDestination:c,viewport:l,afterCritical:s});if(!f)return null;var d=Op({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:Pp({pageBorderBoxCenter:d,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}},Fp=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Bp=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Fp(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,l=a.axis.direction,s="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(s&&!o)return null;var u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,d=t.dimensions,p=d.draggables,h=d.droppables;return s?Tp({isMovingForward:u,previousPageBorderBoxCenter:f,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Lp({isMovingForward:u,previousPageBorderBoxCenter:f,draggable:c,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function zp(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Wp(e){var t=ip(e.top,e.bottom),n=ip(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Up(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=qd(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Wp(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],s=t[i.crossAxisEnd],u=ip(o[i.crossAxisStart],o[i.crossAxisEnd]),c=u(l),f=u(s);return!c&&!f||(c?l<a:s>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=Nd(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Dd(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Zp=function(e,t){return td(Fd(e,t))};function Hp(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Gp=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,s=Zp(n.page.borderBox,t),u=Up({pageBorderBox:s,draggable:n,droppables:o});if(!u)return op;var c=o[u],f=Xd(c.descriptor.id,r),d=function(e,t){var n=e.frame;return n?Zp(t,n.scroll.diff.value):t}(c,s);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,s=Np(o.axis,t.displaceBy),u=s.value,c=n[l.start],f=n[l.end],d=Gd(ep(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=vp(t,a),s=Hp({displaced:r.displaced,id:t});return i?s?f>n[l.start]+o&&f<n[l.end]-o:c>n[l.start]-u+o&&c<n[l.end]-u-o:s?f>n[l.start]+u+o&&f<n[l.end]+u-o:c>n[l.start]+o&&c<n[l.end]-o}));return d?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:i,destination:c,insideDestination:f,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,l=e.afterCritical,s=r.axis,u=Np(r.axis,n.displaceBy),c=u.value,f=t[s.start],d=t[s.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Gd(ep(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=vp(t,l),o=Hp({displaced:i,id:t});return r?o?d<=n:f<n-c:o?d<=n+c:f<n})),inHomeList:tp(n,r)});return mp({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:u,index:p})}({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:c,insideDestination:f,last:i.displaced,viewport:a,afterCritical:l})},Vp=function(e,t){var n;return(0,$n.Z)({},e,((n={})[t.descriptor.id]=t,n))},Kp=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Fp(t),i=Fp(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||bd(!1);var n=e.frame;if(!n){var r=Wd({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,$n.Z)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||bd(!1);var i=Dp(n,o),a=Wd({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return(0,$n.Z)({},e,{subject:a,frame:i})}(a);return Vp(r,l)},$p=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,l=o||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=jd(u,t.initial.client.selection),f={offset:c,selection:u,borderBoxCenter:Td(t.initial.client.borderBoxCenter,c)},d={selection:Td(f.selection,l.scroll.current),borderBoxCenter:Td(f.borderBoxCenter,l.scroll.current),offset:Td(f.offset,l.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return(0,$n.Z)({phase:"COLLECTING"},t,{dimensions:s,viewport:l,current:p});var h=s.draggables[t.critical.draggable.id],m=i||Gp({pageOffset:d.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Kp({previousImpact:o,impact:i,droppables:r}),l=Fp(i);if(!l)return a;var s=r[l];if(tp(t,s))return a;if(s.subject.withPlaceholder)return a;var u=Mp(s,t,n);return Vp(a,u)}({draggable:h,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return(0,$n.Z)({},t,{current:p,dimensions:{draggables:s.draggables,droppables:v},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var qp=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,l=pp({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(a.all,r),destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a});return(0,$n.Z)({},t,{displaced:l})},Yp=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=Op({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return Pp({pageBorderBoxCenter:l,draggable:n,viewport:i})},Xp=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&bd(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,l=a.draggables,s=a.droppables,u=l[t.critical.draggable.id],c=Fp(o);c||bd(!1);var f=s[c],d=qp({impact:o,viewport:i,destination:f,draggables:l}),p=Yp({impact:d,draggable:u,droppable:f,draggables:l,viewport:i,afterCritical:t.afterCritical});return $p({impact:d,clientSelection:p,state:t,dimensions:a,viewport:i})},Jp=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Np(n.axis,t.displaceBy),a=Xd(n.descriptor.id,r),l=a.indexOf(t);-1===l&&bd(!1);var s,u=a.slice(l+1),c=u.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:pp({afterDragging:u,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(s=t.descriptor,{index:s.index,droppableId:s.droppableId})}},afterCritical:f}},Qp=function(e){0},eh=function(e){0},th=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||bd(!1),t}(n[t]).scroll.diff.value;return function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=ld(t.client,n),i=sd(o,r);return(0,$n.Z)({},t,{placeholder:(0,$n.Z)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Td(o,i),initialWindowScroll:r.scroll.initial})}))},nh=function(e){return"SNAP"===e.movementMode},rh=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Vp(e.droppables,t)}}(e.dimensions,t);return!nh(e)||n?$p({state:e,dimensions:r}):Xp({state:e,dimensions:r})};function oh(e){return e.isDragging&&"SNAP"===e.movementMode?(0,$n.Z)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var ih={phase:"IDLE",completed:null,shouldFlush:!1},ah=function(e,t){if(void 0===e&&(e=ih),"FLUSH"===t.type)return(0,$n.Z)({},ih,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&bd(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,l=n.movementMode,s=a.draggables[r.draggable.id],u=a.droppables[r.droppable.id],c={selection:o,borderBoxCenter:s.client.borderBox.center,offset:Ad},f={client:c,page:{selection:Td(c.selection,i.scroll.initial),borderBoxCenter:Td(c.selection,i.scroll.initial),offset:Td(c.selection,i.scroll.diff.value)}},d=qd(a.droppables).every((function(e){return!e.isFixedOnPage})),p=Jp({draggable:s,home:u,draggables:a.draggables,viewport:i}),h=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:h,afterCritical:p.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&bd(!1),(0,$n.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&bd(!1),function(e){var t=e.state,n=e.published;Qp();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Ud(n,e.scroll)})),o=(0,$n.Z)({},t.dimensions.droppables,{},Kd(r)),i=$d(th({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=(0,$n.Z)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var l={droppables:o,draggables:a},s=Fp(t.impact),u=s?l.droppables[s]:null,c=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],d=Jp({draggable:c,home:f,draggables:a,viewport:t.viewport}),p=d.impact,h=d.afterCritical,m=u&&u.isCombineEnabled?t.impact:p,v=Gp({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h});eh();var g=(0,$n.Z)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:p,dimensions:l,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?g:(0,$n.Z)({phase:"DROP_PENDING"},g,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;zp(e)||bd(!1);var m=t.payload.client;return Id(m,e.current.client.selection)?e:$p({state:e,clientSelection:m,impact:nh(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return oh(e);if("COLLECTING"===e.phase)return oh(e);zp(e)||bd(!1);var v=t.payload,g=v.id,y=v.newScroll,b=e.dimensions.droppables[g];if(!b)return e;var x=Ud(b,y);return rh(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;zp(e)||bd(!1);var w=t.payload,E=w.id,_=w.isEnabled,S=e.dimensions.droppables[E];S||bd(!1),S.isEnabled===_&&bd(!1);var O=(0,$n.Z)({},S,{isEnabled:_});return rh(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;zp(e)||bd(!1);var k=t.payload,C=k.id,P=k.isCombineEnabled,A=e.dimensions.droppables[C];A||bd(!1),A.isCombineEnabled===P&&bd(!1);var T=(0,$n.Z)({},A,{isCombineEnabled:P});return rh(e,T,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;zp(e)||bd(!1),e.isWindowScrollAllowed||bd(!1);var j=t.payload.newScroll;if(Id(e.viewport.scroll.current,j))return oh(e);var I=kp(e.viewport,j);return nh(e)?Xp({state:e,viewport:I}):$p({state:e,viewport:I})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!zp(e))return e;var R=t.payload.maxScroll;if(Id(R,e.viewport.scroll.max))return e;var N=(0,$n.Z)({},e.viewport,{scroll:(0,$n.Z)({},e.viewport.scroll,{max:R})});return(0,$n.Z)({phase:"DRAGGING"},e,{viewport:N})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&bd(!1);var D=Bp({state:e,type:t.type});return D?$p({state:e,impact:D.impact,clientSelection:D.clientSelection,scrollJumpRequest:D.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var M=t.payload.reason;return"COLLECTING"!==e.phase&&bd(!1),(0,$n.Z)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:M})}if("DROP_ANIMATE"===t.type){var L=t.payload,F=L.completed,B=L.dropDuration,z=L.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&bd(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:z,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},lh=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},sh=function(){return{type:"COLLECTION_STARTING",payload:null}},uh=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},ch=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},fh=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},dh=function(e){return{type:"MOVE",payload:e}},ph=function(){return{type:"MOVE_UP",payload:null}},hh=function(){return{type:"MOVE_DOWN",payload:null}},mh=function(){return{type:"MOVE_RIGHT",payload:null}},vh=function(){return{type:"MOVE_LEFT",payload:null}},gh=function(e){return{type:"DROP_COMPLETE",payload:e}},yh=function(e){return{type:"DROP",payload:e}},bh=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var xh="cubic-bezier(.2,1,.1,1)",wh={drop:0,combining:.7},Eh={drop:.75},_h=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Sh={fluid:"opacity "+_h,snap:"transform "+_h+", opacity "+_h,drop:function(e){var t=e+"s "+xh;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+_h,placeholder:"height "+_h+", width "+_h+", margin "+_h},Oh=function(e){return Id(e,Ad)?null:"translate("+e.x+"px, "+e.y+"px)"},kh=Oh,Ch=function(e,t){var n=Oh(e);return n?t?n+" scale("+Eh.drop+")":n:null},Ph=.33,Ah=.55,Th=Ah-Ph,jh=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&bd(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&bd(!1);var a=o.critical,l=o.dimensions,s=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,$n.Z)({},r,{displaced:rp}),didDropInsideDroppable:!0}:{impact:qp({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),c=u.impact,f=u.didDropInsideDroppable,d=f?Jd(c):null,p=f?Qd(c):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:s.descriptor.id,type:s.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:d,combine:p},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,l=r.droppables,s=Fp(t),u=s?l[s]:null,c=l[n.descriptor.droppableId],f=Yp({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:u||c,viewport:o});return jd(f,n.client.borderBox.center)}({impact:c,draggable:s,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:c};if(!Id(o.current.client.offset,v)||Boolean(m.combine)){var y=function(e){var t=e.current,n=e.destination,r=e.reason,o=Dd(t,n);if(o<=0)return Ph;if(o>=1500)return Ah;var i=Ph+Th*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:y,completed:g}))}else n(gh({completed:g}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Ih=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Rh(e){var t=e.onWindowScroll;var n=hd((function(){t(Ih())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=vd;function i(){return o!==vd}return{start:function(){i()&&bd(!1),o=gd(window,[r])},stop:function(){i()||bd(!1),n.cancel(),o(),o=vd},isActive:i}}var Nh=function(e){var t=Rh({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Dh=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Hd(e,(function(e){return e.timerId===t}));-1===n&&bd(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Mh=function(e,t){Qp(),t(),eh()},Lh=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Fh=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Bh=function(e,t){var n=function(e,t){var n=Dh(),r=null,o=function(n){r||bd(!1),r=null,Mh(0,(function(){return Fh(e().onDragEnd,n,t,Pd)}))};return{beforeCapture:function(t,n){r&&bd(!1),Mh(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&bd(!1),Mh(0,(function(){var r=e().onBeforeDragStart;r&&r(Lh(t,n))}))},start:function(o,i){r&&bd(!1);var a=Lh(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Mh(0,(function(){return Fh(e().onDragStart,a,t,kd)}))}))},update:function(o,i){var a=Jd(i),l=Qd(i);r||bd(!1);var s=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);s&&(r.lastCritical=o);var u,c,f=(u=r.lastLocation,c=a,!(null==u&&null==c||null!=u&&null!=c&&u.droppableId===c.droppableId&&u.index===c.index));f&&(r.lastLocation=a);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(r.lastCombine,l);if(d&&(r.lastCombine=l),s||f||d){var p=(0,$n.Z)({},Lh(o,r.mode),{combine:l,destination:a});n.add((function(){Mh(0,(function(){return Fh(e().onDragUpdate,p,t,Cd)}))}))}},flush:function(){r||bd(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,$n.Z)({},Lh(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},zh=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&bd(!1),e.dispatch(gh({completed:r.completed}))}else t(n)}}},Wh=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=gd(window,[i])}))}}}},Uh=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(yh({reason:r.reason})))}}}},Zh=v,Hh=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return u(ah,Zh(g((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,l=i.clientSelection,s=i.movementMode,u=n();"DROP_ANIMATING"===u.phase&&r(gh({completed:u.completed})),"IDLE"!==n().phase&&bd(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:s}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},f=e.startPublishing(c),d=f.critical,p=f.dimensions,h=f.viewport;r(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:d,dimensions:p,clientSelection:l,movementMode:s,viewport:h}))}else t(o)}}}}(n),jh,zh,Wh,Uh,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&bd(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),Nh,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Bh(i,a))))};var Gh=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=jd({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Vh=function(){var e=document.documentElement;return e||bd(!1),e},Kh=function(){var e=Vh();return Gh({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},$h=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Qp();var o=function(){var e=Ih(),t=Kh(),n=e.y,r=e.x,o=Vh(),i=o.clientWidth,a=o.clientHeight;return{frame:td({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ad,displacement:Ad}}}}(),i=o.scroll.current,a=t.droppable,l=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),s=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),u={draggables:$d(s),droppables:Kd(l)};return eh(),{dimensions:u,critical:t,viewport:o}};function qh(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Yh,Xh,Jh=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,Qp();var e=r,i=e.additions,a=e.removals,l=e.modified,s=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Ad)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:s,removals:Object.keys(a),modified:u};r={additions:{},removals:{},modified:{}},eh(),n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||bd(!1);var o=n.critical.draggable;"ADDITION"===t.type&&qh(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&qh(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||bd(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||bd(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||bd(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&bd(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},$h({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Qh=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},em=function(e){window.scrollBy(e.x,e.y)},tm=pd((function(e){return qd(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),nm=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}return function(e,t){return Gd(tm(t),(function(t){return t.frame||bd(!1),Wp(t.frame.pageMarginBox)(e)}))}(t,r)},rm=.25,om=.05,im=28,am=function(e){return Math.pow(e,2)},lm={stopDampeningAt:1200,accelerateAt:360},sm=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},um=lm.accelerateAt,cm=lm.stopDampeningAt,fm=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return im;if(e===t.startScrollingFrom)return 1;var n=sm({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=im*am(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=cm,o=Date.now()-n;if(o>=cm)return e;if(o<um)return 1;var i=sm({startOfRange:um,endOfRange:r,current:o}),a=e*am(i);return Math.ceil(a)}(i,r),1):i},dm=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*rm,maxScrollValueAt:e[t.size]*om}}(t,o);return n[o.end]<n[o.start]?fm({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*fm({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},pm=Ld((function(e){return 0===e?0:e})),hm=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=dm({container:n,distanceToEdges:a,dragStartTime:t,axis:sp,shouldUseTimeDampening:i}),s=dm({container:n,distanceToEdges:a,dragStartTime:t,axis:up,shouldUseTimeDampening:i}),u=pm({x:s,y:l});if(Id(u,Ad))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:u});return c?Id(c,Ad)?null:c:null},mm=Ld((function(e){return 0===e?0:e>0?1:-1})),vm=(Yh=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Td(t,r),i={x:Yh(o.x,n.x),y:Yh(o.y,n.y)};return Id(i,Ad)?null:i}),gm=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=mm(r),a=vm({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},ym=function(e,t){return gm({current:e.scroll.current,max:e.scroll.max,change:t})},bm=function(e,t){var n=e.frame;return!!n&&gm({current:n.scroll.current,max:n.scroll.max,change:t})},xm=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=hm({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&ym(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:r});if(s)return void o(s)}var u=nm({center:a,destination:Fp(t.impact),droppables:t.dimensions.droppables});if(u){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=hm({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&bm(t,l)?l:null}({dragStartTime:n,droppable:u,subject:l,center:a,shouldUseTimeDampening:r});c&&i(u.descriptor.id,c)}},wm=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!bm(e,t))return t;var r=function(e,t){var n=e.frame;return n&&bm(e,t)?vm({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=jd(t,r);return n(e.descriptor.id,o),jd(t,o)},i=function(e,t,n){if(!e)return n;if(!ym(t,n))return n;var o=function(e,t){if(!ym(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return vm({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=jd(n,o);return r(i),jd(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Fp(e.impact);r||bd(!1);var a=o(e.dimensions.droppables[r],n);if(a){var l=e.viewport,s=i(e.isWindowScrollAllowed,l,a);s&&function(e,n){var r=Td(e.current.client.selection,n);t({client:r})}(e,s)}}}},Em=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=hd(t),o=hd(n),i=null,a=function(e){i||bd(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;xm({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Qp(),i&&bd(!1);var t=Date.now(),n=!1,r=function(){n=!0};xm({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},eh(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=wm({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},_m={base:Xh="data-rbd-drag-handle",draggableId:Xh+"-draggable-id",contextId:Xh+"-context-id"},Sm=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Om=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),km={contextId:"data-rbd-scroll-container-context-id"},Cm=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Pm="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Am=function(){var e=document.querySelector("head");return e||bd(!1),e},Tm=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function jm(e,t){var n=Qf((function(){return function(e){var t,n,r=function(e){return function(t){return"["+t+'="'+e+'"]'}}(e),o=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:r(_m.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:t,dragging:"pointer-events: none;",dropAnimating:t}}),i=[(n="\n transition: "+Sh.outOfTheWay+";\n ",{selector:r(Sm.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:r(Om.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Cm(i,"always"),resting:Cm(i,"resting"),dragging:Cm(i,"dragging"),dropAnimating:Cm(i,"dropAnimating"),userCancel:Cm(i,"userCancel")}}(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=ed(pd((function(e){var t=i.current;t||bd(!1),t.textContent=e})),[]),l=ed((function(e){var t=o.current;t||bd(!1),t.textContent=e}),[]);Pm((function(){(o.current||i.current)&&bd(!1);var r=Tm(t),s=Tm(t);return o.current=r,i.current=s,r.setAttribute("data-rbd-always",e),s.setAttribute("data-rbd-dynamic",e),Am().appendChild(r),Am().appendChild(s),l(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||bd(!1),Am().removeChild(t),e.current=null};e(o),e(i)}}),[t,l,a,n.always,n.resting,e]);var s=ed((function(){return a(n.dragging)}),[a,n.dragging]),u=ed((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),c=ed((function(){i.current&&a(n.resting)}),[a,n.resting]);return Qf((function(){return{dragging:s,dropping:u,resting:c}}),[s,u,c])}var Im=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Rm(e){return e instanceof Im(e).HTMLElement}function Nm(e,t){var n="["+_m.contextId+'="'+e+'"]',r=Vd(document.querySelectorAll(n));if(!r.length)return null;var o=Gd(r,(function(e){return e.getAttribute(_m.draggableId)===t}));return o&&Rm(o)?o:null}function Dm(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||bd(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Zd(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||bd(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Zd(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Mm=r.createContext(null),Lm=function(){var e=document.body;return e||bd(!1),e},Fm={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var Bm=0,zm={separator:"::"};function Wm(e,t){return void 0===t&&(t=zm),Qf((function(){return""+e+t.separator+Bm++}),[t.separator,e])}var Um=r.createContext(null);function Zm(e){0}function Hm(e,t){Zm()}function Gm(){Hm()}function Vm(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var Km,$m=((Km={})[13]=!0,Km[9]=!0,Km),qm=function(e){$m[e.keyCode]&&e.preventDefault()},Ym=function(){var e="visibilitychange";return"undefined"==typeof document?e:Gd([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Xm,Jm={type:"IDLE"};function Qm(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&bd(!1);var s=l.point;if(u=s,c=a,Math.abs(c.x-u.x)>=5||Math.abs(c.y-u.y)>=5){var u,c;e.preventDefault();var f=l.actions.fluidLift(a);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void qm(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&bd(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Ym,fn:t}]}function ev(){}var tv=((Xm={})[34]=!0,Xm[33]=!0,Xm[36]=!0,Xm[35]=!0,Xm);function nv(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(tv[r.keyCode]?r.preventDefault():qm(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Ym,fn:n}]}var rv={type:"IDLE"};var ov={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function iv(e,t){var n=t.target;return!!Rm(n)&&function e(t,n){if(null==n)return!1;if(Boolean(ov[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(e,n)}var av=function(e){return td(e.getBoundingClientRect()).center};var lv="undefined"==typeof document?"matches":Gd(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function sv(e,t){return e.closest?e.closest(t):function e(t,n){return null==t?null:t[lv](n)?t:e(t.parentElement,n)}(e,t)}function uv(e,t){var n,r=t.target;if(!((n=r)instanceof Im(n).Element))return null;var o=sv(r,function(e){return"["+_m.contextId+'="'+e+'"]'}(e));return o&&Rm(o)?o:null}function cv(e){e.preventDefault()}function fv(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function dv(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Qh(n.getState(),o))}function pv(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!dv({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var s=o.draggable.getById(i),u=function(e,t){var n="["+Sm.contextId+'="'+e+'"]',r=Gd(Vd(document.querySelectorAll(n)),(function(e){return e.getAttribute(Sm.id)===t}));return r&&Rm(r)?r:null}(n,s.descriptor.id);if(!u)return null;if(l&&!s.options.canDragInteractiveElements&&iv(u,l))return null;var c=t.claim(a||vd),f="PRE_DRAG";function d(){return s.options.shouldRespectForcePress}function p(){return t.isActive(c)}var h=function(e,t){fv({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=gd(window,[{eventName:"click",fn:cv,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(yh({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&bd(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",(0,$n.Z)({isActive:function(){return fv({expected:"DRAGGING",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return fv({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=hd((function(e){h((function(){return dh({client:e})}))})),n=m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,$n.Z)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return h(ph)},moveRight:function(){return h(mh)},moveDown:function(){return h(hh)},moveLeft:function(){return h(vh)}};return m({liftActionArgs:{id:i,clientSelection:av(u),movementMode:"SNAP"},cleanup:vd,actions:e})},abort:function(){fv({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}}}var hv=[function(e){var t=(0,r.useRef)(Jm),n=(0,r.useRef)(vd),o=Qf((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),c(o,i)}}}}}}),[e]),i=Qf((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=ed((function(){n.current=gd(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=ed((function(){"IDLE"!==t.current.type&&(t.current=Jm,n.current(),a())}),[a]),s=ed((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=ed((function(){var e=Qm({cancel:s,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=gd(window,e,{capture:!0,passive:!1})}),[s,l]),c=ed((function(e,n){"IDLE"!==t.current.type&&bd(!1),t.current={type:"PENDING",point:n,actions:e},u()}),[u]);Pm((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(ev),n=Qf((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,s,{sourceEvent:n});if(i){n.preventDefault();var a=!0,l=i.snapLift();t.current(),t.current=gd(window,nv(l,s),{capture:!0,passive:!1})}}}function s(){a||bd(!1),a=!1,t.current(),o()}}}}),[e]),o=ed((function(){t.current=gd(window,[n],{passive:!1,capture:!0})}),[n]);Pm((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(rv),n=(0,r.useRef)(vd),o=ed((function(){return t.current}),[]),i=ed((function(e){t.current=e}),[]),a=Qf((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),d(o,a)}}}}}}),[e]),l=ed((function(){n.current=gd(window,[a],{capture:!0,passive:!1})}),[a]),s=ed((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(rv),n.current(),l())}),[l,i]),u=ed((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=ed((function(){var e={capture:!0,passive:!1},t={cancel:u,completed:s,getPhase:o},r=gd(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&bd(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:Ym,fn:t}]}(t),e),i=gd(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Ym,fn:t}]}(t),e);n.current=function(){r(),i()}}),[u,o,s]),f=ed((function(){var e=o();"PENDING"!==e.type&&bd(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),d=ed((function(e,t){"IDLE"!==o().type&&bd(!1);var n=setTimeout(f,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,i,f]);Pm((function(){return l(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(rv))}}),[o,l,i]),Pm((function(){return gd(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function mv(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?hv:[],i||[]),s=(0,r.useState)((function(){return function(){var e=null;function t(){e||bd(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&bd(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],u=ed((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);Pm((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();u(e,t),e=t}))}),[s,n,u]),Pm((function(){return s.tryAbandon}),[s.tryAbandon]);var c=ed((function(e){return dv({lockAPI:s,registry:o,store:n,draggableId:e})}),[s,o,n]),f=ed((function(e,r,i){return pv({lockAPI:s,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,o,n]),d=ed((function(e){return function(e,t){var n=uv(e,t);return n?n.getAttribute(_m.draggableId):null}(t,e)}),[t]),p=ed((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=ed((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[s,n]),m=ed(s.isClaimed,[s]),v=Qf((function(){return{canGetLock:c,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[c,f,d,p,h,m]);Zm();for(var g=0;g<l.length;g++)l[g](v)}function vv(e){return e.current||bd(!1),e.current}function gv(e){var t=e.contextId,n=e.setCallbacks,o=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,l=(0,r.useRef)(null);Gm();var s=Vm(e),u=ed((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(s.current)}),[s]),c=function(e){var t=Qf((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,$n.Z)(e.style,Fm),Lm().appendChild(e),function(){setTimeout((function(){var t=Lm();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),ed((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),f=function(e){var t=e.contextId,n=e.text,o=Wm("hidden-text",{separator:"-"}),i=Qf((function(){return function(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:o})}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Lm().appendChild(e),function(){var t=Lm();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:a}),p=jm(t,i),h=ed((function(e){vv(l).dispatch(e)}),[]),m=Qf((function(){return d({publishWhileDragging:lh,updateDroppableScroll:uh,updateDroppableIsEnabled:ch,updateDroppableIsCombineEnabled:fh,collectionStarting:sh},h)}),[h]),v=function(){var e=Qf(Dm,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),g=Qf((function(){return Jh(v,m)}),[v,m]),y=Qf((function(){return Em((0,$n.Z)({scrollWindow:em,scrollDroppable:g.scrollDroppable},d({move:dh},h)))}),[g.scrollDroppable,h]),b=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=ed((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),l=ed((function(t){var n=Nm(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=ed((function(e,t){n.current===e&&(n.current=t)}),[]),u=ed((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&l(e)})))}),[l]),c=ed((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(_m.draggableId)===e&&(n.current=e)}),[]);return Pm((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),Qf((function(){return{register:a,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:s}}),[a,c,u,s])}(t),x=Qf((function(){return Hh({announce:c,autoScroller:y,dimensionMarshal:g,focusMarshal:b,getResponders:u,styleMarshal:p})}),[c,y,g,b,u,p]);l.current=x;var w=ed((function(){var e=vv(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),E=ed((function(){var e=vv(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Qf((function(){return{isDragging:E,tryAbort:w}}),[E,w]));var _=ed((function(e){return Qh(vv(l).getState(),e)}),[]),S=ed((function(){return zp(vv(l).getState())}),[]),O=Qf((function(){return{marshal:g,focus:b,contextId:t,canLift:_,isMovementAllowed:S,dragHandleUsageInstructionsId:f,registry:v}}),[t,g,f,b,_,S,v]);return mv({contextId:t,store:x,registry:v,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return w}),[w]),r.createElement(Um.Provider,{value:O},r.createElement(Di,{context:Mm,store:x},e.children))}var yv=0;function bv(e){var t=Qf((function(){return""+yv++}),[]),n=e.dragHandleUsageInstructions||Od;return r.createElement(xd,null,(function(o){return r.createElement(gv,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var xv=function(e){return function(t){return e===t}},wv=xv("scroll"),Ev=xv("auto"),_v=(xv("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Sv=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return _v(n,wv)||_v(n,Ev)},Ov=function e(t){return null==t||t===document.body||t===document.documentElement?null:Sv(t)?t:e(t.parentElement)},kv=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Cv=function(e){return{closestScrollable:Ov(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},Pv=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,u=r.closestScrollable,c=function(e,t){var n=cd(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=nd({top:r,right:a,bottom:i,left:o},n.border);return id({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,u),f=sd(c,o),d=function(){if(!u)return null;var e=cd(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:sd(e,o),scroll:kv(u),scrollSize:t,shouldClipSubject:s}}();return function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,l=e.page,s=e.closest,u=function(){if(!s)return null;var e=s.scrollSize,t=s.client,n=Gh({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:n,diff:{value:Ad,displacement:Ad}}}}(),c="vertical"===i?sp:up;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:a,page:l,frame:u,subject:Wd({page:l,withPlaceholder:null,axis:c,frame:u})}}({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:f,closest:d})},Av={passive:!1},Tv={passive:!0},jv=function(e){return e.shouldPublishImmediately?Av:Tv};function Iv(e){var t=(0,r.useContext)(e);return t||bd(!1),t}var Rv=function(e){return e&&e.env.closestScrollable||null};function Nv(){}var Dv={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Mv=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Dv:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Sh.placeholder:null}};var Lv=r.memo((function(e){var t=(0,r.useRef)(null),n=ed((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),o=e.animate,i=e.onTransitionEnd,a=e.onClose,l=e.contextId,s=(0,r.useState)("open"===e.animate),u=s[0],c=s[1];(0,r.useEffect)((function(){return u?"open"!==o?(n(),c(!1),Nv):t.current?Nv:(t.current=setTimeout((function(){t.current=null,c(!1)})),n):Nv}),[o,u,n]);var f=ed((function(e){"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),d=Mv({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":l,onTransitionEnd:f,ref:e.innerRef})})),Fv=r.createContext(null);var Bv=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,ar.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),zv=5e3,Wv=4500,Uv=function(e,t){return t?Sh.drop(t.duration):e?Sh.snap:Sh.fluid},Zv=function(e,t){return e?t?wh.drop:wh.combining:null};function Hv(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(o),s=l?Ch(n,i):kh(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Uv(a,o),transform:s,opacity:Zv(i,l),zIndex:l?Wv:zv,pointerEvents:"none"}}(e):{transform:kh((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Gv(e){var t=Wm("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,s=e.isEnabled,u=Qf((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:s}}),[a,s,l]),c=ed((function(e){var t=i();return t||bd(!1),function(e,t,n){void 0===n&&(n=Ad);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ud(o,r),a=sd(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),f=Qf((function(){return{uniqueId:t,descriptor:n,options:u,getDimension:c}}),[n,c,u,t]),d=(0,r.useRef)(f),p=(0,r.useRef)(!0);Pm((function(){return o.draggable.register(d.current),function(){return o.draggable.unregister(d.current)}}),[o.draggable]),Pm((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=f,o.draggable.update(f,e)}}),[f,o.draggable])}function Vv(e,t,n){Hm()}function Kv(e){e.preventDefault()}var $v=function(e,t){return e===t},qv=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Yv(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Xv={mapped:{type:"SECONDARY",offset:Ad,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Yv(null)}};var Jv=sa((function(){var e,t,n,r=(e=pd((function(e,t){return{x:e,y:t}})),t=pd((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=pd((function(e,n,r,o,i,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=Fp(r.impact),s=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,u=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,l,s,u)}var c;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var d=o.isClone,p=r.dimensions.draggables[o.draggableId],h=f.result,m=h.mode,v=qv(h),g=function(e){return e.combine?e.combine.draggableId:null}(h),y={duration:r.dropDuration,curve:xh,moveTo:r.newHomeClientOffset,opacity:g?wh.drop:null,scale:g?Eh.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:v,combineWith:g,mode:m,forceShouldAnimate:null,snapshot:t(m,d,v,g,y)}}}return null}),o=function(){var e=pd((function(e,t){return{x:e,y:t}})),t=pd(Yv),n=pd((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ad,e,!0):null},o=function(t,o,i,a){var l=i.displaced.visible[t],s=Boolean(a.inVirtualList&&a.effected[t]),u=Qd(i),c=u&&u.draggableId===t?o:null;if(!l){if(!s)return r(c);if(i.displaced.invisible[t])return null;var f=Rd(a.displacedBy.point),d=e(f.x,f.y);return n(d,c,!0)}if(s)return r(c);var p=i.displacedBy.point,h=e(p.x,p.y);return n(h,c,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Xv}}),{dropAnimationFinished:bh},null,{context:Mm,pure:!0,areStatePropsEqual:$v})((function(e){var t=(0,r.useRef)(null),n=ed((function(e){t.current=e}),[]),o=ed((function(){return t.current}),[]),i=Iv(Um),a=i.contextId,l=i.dragHandleUsageInstructionsId,s=i.registry,u=Iv(Fv),c=u.type,f=u.droppableId,d=Qf((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:f}}),[e.draggableId,e.index,c,f]),p=e.children,h=e.draggableId,m=e.isEnabled,v=e.shouldRespectForcePress,g=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,x=e.dropAnimationFinished;Vv(),Zm(),y||Gv(Qf((function(){return{descriptor:d,registry:s,getDraggableRef:o,canDragInteractiveElements:g,shouldRespectForcePress:v,isEnabled:m}}),[d,s,o,g,v,m]));var w=Qf((function(){return m?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:Kv}:null}),[a,l,h,m]),E=ed((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&x()}),[x,b]),_=Qf((function(){var e=Hv(b),t="DRAGGING"===b.type&&b.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:w}}),[a,w,h,b,E,n]),S=Qf((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return p(_,b.snapshot,S)}));function Qv(e){return Iv(Fv).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(Jv,e):null}function eg(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(Qv,(0,$n.Z)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var tg=function(e,t){return e===t.droppable.type},ng=function(e,t){return t.draggables[e.draggable.id]};var rg={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||bd(!1),document.body}},og=sa((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,$n.Z)({},e,{shouldAnimatePlaceholder:!1}),n=pd((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=pd((function(r,o,i,a,l,s){var u=l.descriptor.id;if(l.descriptor.droppableId===r){var c=s?{render:s,dragging:n(l.descriptor)}:null,f={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:c}}if(!o)return t;if(!a)return e;var d={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,l=!o.isDropDisabled,s=o.renderClone;if(n.isDragging){var u=n.critical;if(!tg(a,u))return t;var c=ng(u,n.dimensions),f=Fp(n.impact)===i;return r(i,l,f,f,c,s)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!tg(a,d.critical))return t;var p=ng(d.critical,n.dimensions);return r(i,l,qv(d.result)===i,Fp(d.impact)===i,p,s)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!tg(a,h.critical))return t;var m=Fp(h.impact)===i,v=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),g=h.critical.droppable.id===i;return m?v?e:t:g?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Mm,pure:!0,areStatePropsEqual:$v})((function(e){var t=(0,r.useContext)(Um);t||bd(!1);var n=t.contextId,i=t.isMovementAllowed,a=(0,r.useRef)(null),l=(0,r.useRef)(null),s=e.children,u=e.droppableId,c=e.type,f=e.mode,d=e.direction,p=e.ignoreContainerClipping,h=e.isDropDisabled,m=e.isCombineEnabled,v=e.snapshot,g=e.useClone,y=e.updateViewportMaxScroll,b=e.getContainerForClone,x=ed((function(){return a.current}),[]),w=ed((function(e){a.current=e}),[]),E=(ed((function(){return l.current}),[]),ed((function(e){l.current=e}),[]));Hm();var _=ed((function(){i()&&y({maxScroll:Kh()})}),[i,y]);!function(e){var t=(0,r.useRef)(null),n=Iv(Um),o=Wm("droppable"),i=n.registry,a=n.marshal,l=Vm(e),s=Qf((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),u=(0,r.useRef)(s),c=Qf((function(){return pd((function(e,n){t.current||bd(!1);var r={x:e,y:n};a.updateDroppableScroll(s.id,r)}))}),[s.id,a]),f=ed((function(){var e=t.current;return e&&e.env.closestScrollable?kv(e.env.closestScrollable):Ad}),[]),d=ed((function(){var e=f();c(e.x,e.y)}),[f,c]),p=Qf((function(){return hd(d)}),[d]),h=ed((function(){var e=t.current,n=Rv(e);e&&n||bd(!1),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),m=ed((function(e,r){t.current&&bd(!1);var o=l.current,i=o.getDroppableRef();i||bd(!1);var a=Cv(i),u={ref:i,descriptor:s,env:a,scrollOptions:r};t.current=u;var c=Pv({ref:i,descriptor:s,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(km.contextId,n.contextId),f.addEventListener("scroll",h,jv(u.scrollOptions))),c}),[n.contextId,s,h,l]),v=ed((function(){var e=t.current,n=Rv(e);return e&&n||bd(!1),kv(n)}),[]),g=ed((function(){var e=t.current;e||bd(!1);var n=Rv(e);t.current=null,n&&(p.cancel(),n.removeAttribute(km.contextId),n.removeEventListener("scroll",h,jv(e.scrollOptions)))}),[h,p]),y=ed((function(e){var n=t.current;n||bd(!1);var r=Rv(n);r||bd(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Qf((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:v,dragStopped:g,scroll:y}}),[g,m,v,y]),x=Qf((function(){return{uniqueId:o,descriptor:s,callbacks:b}}),[b,s,o]);Pm((function(){return u.current=x.descriptor,i.droppable.register(x),function(){t.current&&g(),i.droppable.unregister(x)}}),[b,s,g,x,a,i.droppable]),Pm((function(){t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Pm((function(){t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:u,type:c,mode:f,direction:d,isDropDisabled:h,isCombineEnabled:m,ignoreContainerClipping:p,getDroppableRef:x});var S=r.createElement(Bv,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,o=e.data,i=e.animate;return r.createElement(Lv,{placeholder:o,onClose:t,innerRef:E,animate:i,contextId:n,onTransitionEnd:_})})),O=Qf((function(){return{innerRef:w,placeholder:S,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":n}}}),[n,u,S,w]),k=g?g.dragging.draggableId:null,C=Qf((function(){return{droppableId:u,type:c,isUsingCloneFor:k}}),[u,k,c]);return r.createElement(Fv.Provider,{value:C},s(O,v),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(Qv,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return o.createPortal(n,b())}())}));function ig(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));return 2===t.length&&t.pop().split(";").shift()}function ag(e,t){document.cookie=e+"="+t}function lg(e){return(lg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ug(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cg(e,t){return(cg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hg(e);if(t){var o=hg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dg(this,n)}}function dg(e,t){return!t||"object"!==lg(t)&&"function"!=typeof t?pg(e):t}function pg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hg(e){return(hg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}og.defaultProps=rg;var vg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cg(e,t)}(a,e);var t,n,o,i=fg(a);function a(){var e;sg(this,a);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return mg(pg(e=i.call.apply(i,[this].concat(n))),"state",{drag:!1}),mg(pg(e),"dropRef",r.createRef()),mg(pg(e),"handleDrag",(function(e){e.preventDefault(),e.stopPropagation()})),mg(pg(e),"handleDragIn",(function(t){t.preventDefault(),t.stopPropagation(),e.dragCounter++,t.dataTransfer.items&&t.dataTransfer.items.length>0&&e.setState({drag:!0})})),mg(pg(e),"handleDragOut",(function(t){t.preventDefault(),t.stopPropagation(),e.dragCounter--,0===e.dragCounter&&e.setState({drag:!1})})),mg(pg(e),"handleDrop",(function(t){t.preventDefault(),t.stopPropagation(),e.setState({drag:!1}),t.dataTransfer.files&&t.dataTransfer.files.length>0&&(e.props.handleDrop(t.dataTransfer.files),t.dataTransfer.clearData(),e.dragCounter=0)})),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.dropRef.current;e.addEventListener("dragenter",this.handleDragIn),e.addEventListener("dragleave",this.handleDragOut),e.addEventListener("dragover",this.handleDrag),e.addEventListener("drop",this.handleDrop)}},{key:"componentWillUnmount",value:function(){var e=this.dropRef.current;e.removeEventListener("dragenter",this.handleDragIn),e.removeEventListener("dragleave",this.handleDragOut),e.removeEventListener("dragover",this.handleDrag),e.removeEventListener("drop",this.handleDrop)}},{key:"render",value:function(){var e=this.props.classes;return r.createElement("div",{style:{display:"inline-block",position:"relative"},ref:this.dropRef},this.state.drag&&r.createElement("div",{className:e.border},r.createElement("span",{className:e.text},H("import_export.import.drag_drop"))),this.props.children)}}])&&ug(t.prototype,n),o&&ug(t,o),a}(r.Component),gg=(0,Jn.Z)((function(e){return{border:{border:"dashed ".concat(e.palette.primary.main," 3px"),backgroundColor:"rgba(255,255,255,.8)",position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},text:{fontSize:"35px",color:e.palette.primary.main}}}))(vg),yg=n(50361),bg=n.n(yg);function xg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eg(e){var t=e.isGroup,n=void 0===t||t,o=e.currentGroup,i=void 0===o?null:o,a=e.label,l=void 0===a?"Import Group":a,s=e.index,u=xg((0,r.useState)(!1),2),c=u[0],f=u[1],d=xg((0,r.useState)(!1),2),p=d[0],h=d[1],m=xg((0,r.useState)(!1),2),v=m[0],g=m[1],y=xg((0,r.useState)(!1),2),b=y[0],x=y[1],w=(0,r.useRef)(null),E=pa(),_=ga((function(e){return e})),S=function(e){var t=e[0],r=new FileReader;r.addEventListener("load",(function(e){var t=e.target.result;try{var r=JSON.parse(t);if(!r.export_type||"group"===r.export_type&&!r.buttons)throw new Error(H("import_export.import.warning.invalid"));if(n)if(i||"button"!==r.export_type||g([Wf()(r,j)]),"group"===r.export_type){if(0===r.buttons.length)return void alert(H("import_export.import.warning.no_buttons"));x(Wf()(r.data,j)),g(r.buttons.map((function(e){return Wf()(e,j)})))}else"button"===r.export_type&&(x(!1),g([Wf()(r,j)]));h(r)}catch(e){alert(H("import_export.import.warning.malformed"))}})),r.readAsText(t)},O=function(){n&&(i?(b&&v&&(console.log("Replace current group"),function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vn.dispatch,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vn.getState();if(o.groups[e]){_u(e,o,r);var i=Object.values(o.groups).reduce((function(t,n,r){return n.id===e?r:t}),""),a=r(oe(t,"groups",i)).payload.record.id;n.map((function(e,t){if(0===Object.keys(e).length)return!1;Eu(e,a,t,r)}))}else console.error(o.groups,o.groups[e]);Sn()}(i.id,b,v,E,_)),v&&!b&&(console.log("Add Buttons into current group"),v.map((function(e,t){if(0===Object.keys(e).length)return!1;Eu(e,i.id,i.children.length+t+1,E)})))):b&&!i?(console.log("Should create a new group"),Su(b,v,s,E)):!v||b||i||(console.log("Should create a new group with imported button"),Su(b,v,s,E))),f(!1),h(null),g(!1),x(!1)};return r.createElement(r.Fragment,null,i?r.createElement(Du,{onClick:function(){return f(!0)},"data-testid":"import-into-group"},r.createElement(Lu,null,r.createElement(yu,{className:"fas fa-file-import"})),r.createElement(yl,{variant:"inherit"},l)):r.createElement(Er,{onClick:function(){f(!0)},color:"primary",variant:"text",size:"small",startIcon:r.createElement(yu,{className:"fas fa-file-import"}),"data-testid":"import-new-group"},l),r.createElement(ml,{open:c,onClose:function(){return f(!1)},maxWidth:"xs",fullWidth:!0,"aria-labelledby":"import-button-dialog-title","aria-describedby":"import-button-dialog-description","data-testid":"dialog:import-dialog"},r.createElement(gg,{handleDrop:function(e){0!==e.length&&S(e)}},r.createElement(xl,{id:"import-button-dialog-title"},"BETA: ",H("import_export.import.title")),r.createElement(El,null,!p&&r.createElement(r.Fragment,null,r.createElement(Sl,{id:"import-button-dialog-description",component:"div"},H(i?"import_export.import.into_group.text":"import_export.import.new_group.text")," ",H("import_export.import.select_please")),r.createElement(Er,{variant:"contained",fullWidth:!0,startIcon:r.createElement(yu,{className:"fas fa-file-import",style:{marginRight:10}}),style:{padding:"10px 20px",marginBottom:15},onClick:function(){return w.current.click()}},H("import_export.import.select_click")),r.createElement("input",{type:"file",id:"input","data-testid":"import-input",ref:w,accept:"application/JSON",onChange:function(e){0!==e.target.files.length&&S(e.target.files)},style:{overflow:"hidden",width:0,height:0}}),r.createElement(Sl,{id:"import-button-dialog-knowledge-base",component:"div"},r.createElement(uf,{articleId:653,setting:H("import_export.import_export")}))),p&&r.createElement(r.Fragment,null,r.createElement(Sl,{component:"div"},i&&n&&b?r.createElement("span",{dangerouslySetInnerHTML:{__html:H("import_export.import.warning.replace")}}):!i&&n&&!b&&v?"Create a new group including this button:":H("import_export.import.warning.preview")),b&&r.createElement(Sl,{"data-testid":"import-found-group",component:"div",key:b.id},r.createElement("i",null,H("common.group")," "),":"," ",Z()(b,"name","Unnamed"),"."," ",r.createElement(Lf,{properties:b,type:"Group"}),r.createElement(_g,{onClick:function(){return x(!1)}})),v&&v.map((function(e,t){return r.createElement(Sl,{"data-testid":"import-found-buttons",component:"div",key:t},r.createElement("i",null,H("common.button")," ",t+1," "),": ",Z()(e,"name","Unnamed"),".",r.createElement(Lf,{properties:e}),r.createElement(_g,{disabled:1===v.length,onClick:function(){var e=bg()(v);e.splice(t,1),g(e)}}))})))),r.createElement(kl,null,r.createElement(Er,{onClick:function(){return f(!1)}},H("modal.cancel")),p&&r.createElement(Er,{onClick:function(){return h(null)}},H("import_export.import.reupload")),r.createElement(Er,{onClick:function(){return O()},color:"primary",disabled:!p||!b&&!v,"data-testid":"import-commence"},H("import_export.import.title"))))))}function _g(e){var t=e.onClick,n=e.disabled,o=void 0!==n&&n;return r.createElement(jl,{color:"primary",onClick:function(){t()},disabled:o,"data-testid":"import-delete"},r.createElement("i",{style:{fontSize:"initial"},className:"fas fa-trash"}))}function Sg(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Og(){return(Og=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ag(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(n),!0).forEach((function(t){Tg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jg(e,t){return t.isDropAnimating?Ag(Ag({},e),{},{opacity:"0.5"}):e}var Ig=sa((function(e){return{getButtonsCount:function(t){return se(t,e)},getGroupCount:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.store.getState();return e.groups?Object.keys(e.groups).length:0}(e)},groups:e.groups,state:e}}),(function(e){return{set:function(){return e(ne.apply(void 0,arguments))},addButton:function(t,n,r){return Eu(t,n,r,e)},dispatch:e}}),(function(e,t,n){var r=e.state,o=Sg(e,["state"]),i=t.dispatch;return Ag(Ag(Ag({removeGroup:function(e){return _u(e,r,i)},duplicateGroup:function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.store.getState(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.store.dispatch;if(n.groups[e]){var o=xu(xu({},n.groups[e]),{},{name:n.groups[e].name+" Copy",id:void 0,children:[]},t);delete o.id;var i=ae(e,n),a=Object.values(n.groups).reduce((function(t,n,r){return n.id===e?r+1:t}),""),l=r(oe(o,"groups",a)).payload.record.id;Object.keys(i).map((function(e){Pu(i[e].id,l,{name:i[e].name},n,r)}))}else console.error("ID "+e+" not in group store!");Sn()}(e,t,r,i)}},Sg(t,["dispatch"])),o),n)}))((function(e){var t=e.groupId,n=e.groups,o=e.set,i=e.provided,a=e.currentDrop,l=e.getButtonsCount,s=e.getGroupCount,u=e.addButton,c=e.removeGroup,f=(e.duplicateGroup,kg((0,r.useState)(!!ig("buttonizer_bar_state_opened")&&Z()(JSON.parse(ig("buttonizer_bar_state_opened")),t,!1)),2)),d=f[0],p=f[1],h=kg((0,r.useState)(!1),2),m=h[0],v=h[1],g=kg((0,r.useState)(n[t]),2),y=g[0],b=g[1];return void 0===y&&pn((function(e){e.setExtra({groups:n,groupId:t,group:y}),dn(new Error("group is undefined. Send groups and groupId data"))})),(0,r.useEffect)((function(){b(n[t])}),[n[t]]),r.createElement("div",{className:(0,Xn.Z)("button-group-container mdc-card",d&&"opened",a&&!d&&a),ref:i.innerRef},r.createElement("div",{className:"group-info"},r.createElement(Er,{onClick:function(){var e=ig("buttonizer_bar_state_opened")?JSON.parse(ig("buttonizer_bar_state_opened")):{};e[t]=!d,p(!d),ag("buttonizer_bar_state_opened",JSON.stringify(e))},color:"primary","data-testid":"open-group"},r.createElement("i",{className:"group-arrow"},r.createElement("i",{className:"fas fa-chevron-right"})),r.createElement("span",{className:"group-name"},y.name)),r.createElement("div",{className:"group-action-spacer"}),r.createElement("div",{className:"group-actions"},r.createElement(_f,{onClick:function(){return document.location.hash="#/group/"+y.id},"data-testid":"edit-button-group"}),r.createElement(ya,{content:H("premium.warning_duplicate"),trigger:"click"},r.createElement("span",{tabIndex:0},r.createElement(xf,{name:y.name,disabled:!0}))),r.createElement(If,null,r.createElement(Pf,{name:y.name,onChange:function(e){return o("groups",y.id,"name",e)},inDropdown:!0}),r.createElement(Vf,{object:y,type:"group"}),r.createElement(Eg,{currentGroup:y,label:H("import_export.import.into_group.button")}),r.createElement(Uu,{model:"group","data-testid":"delete-button-group",buttonCount:l(y.id),deleteDisabled:s()<=1,onClose:function(){return c(y.id)},inDropdown:!0})))),r.createElement("div",Og({className:"buttons"+a},i.droppableProps),y.children.map((function(e,t){return r.createElement(eg,{draggableId:e,index:t,key:e},(function(n,o){return r.createElement(Xf,{provided:n,groupId:y.id,buttonId:e,currentDrag:o.isDragging?" currentDrag":"",styleDrop:jg(n.draggableProps.style,o),openNewButtonDialog:function(){return v(t+1)}})}))})),i.placeholder,r.createElement("div",{style:{textAlign:"center"}},r.createElement(mf,{open:!1!==m,title:H("utils.new_button"),text:H("utils.choose_button_name"),defaultValue:H("utils.new_button"),onClose:function(e,t){v(!1),"confirm"===e&&u({name:t},y.id,m)},kbLink:177}))))}));function Rg(){return r.createElement("span",{className:"buttonizer-premium","data-testid":"buttonizer-premium-tag"})}function Ng(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Dg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mg=sa((function(e){return{groups:e.groups,hasPremium:e.misc._premium,isPremiumCode:e.misc._premiumCode}}),(function(e){return{addRelation:function(t){return e(Q(t))},addRecord:function(t){return e(oe(t))},addGroup:function(t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vn.dispatch,r=n(oe(xu({name:H("utils.new_group"),show_mobile:!0,show_desktop:!0,children:[]},e),"groups",t)).payload.record,o=n(oe({name:H("utils.new_button"),show_mobile:!0,show_desktop:!0},"buttons")).payload.record;n(Q(o.id,r.id))}(t,n,e)},changeRelation:function(){return e(ee.apply(void 0,arguments))}}}))((function(e){var t=e.groups,n=void 0===t?null:t,o=e.changeRelation,i=e.testDragSensor,a=void 0===i?function(){}:i,l=e.hasPremium,s=e.isPremiumCode,u=(e.addGroup,e.scrollBar),c=void 0!==u&&u,f=Ng((0,r.useState)(!1),2);f[0],f[1],(0,r.useEffect)((function(){return c&&c.current&&(c.current.scrollTop=ig("buttonizer_bar_state_scroll")||0),function(){c&&c.current&&(c.current.scrollTop=0)}}),[]);var d=(0,r.useCallback)((function(){window.navigator.vibrate&&window.navigator.vibrate(100)}),[]),p=(0,r.useCallback)((function(e){var t=e.destination,n=e.source,r=e.draggableId;t&&(n.droppableId===t.droppableId&&n.index===t.index||o(r,n.droppableId,t.droppableId,t.index))}),[n]);return r.createElement("div",{className:"overview"},r.createElement("div",{className:"buttonizer-logo"},r.createElement("img",{src:window.buttonizer_admin.assets+"/images/logo.png"})),r.createElement(vu,null),l&&!s&&r.createElement("div",{className:"mdc-card dashboard-warning-msg"},r.createElement("b",null,H("warnings.premium_license_free_version.title")),H("warnings.premium_license_free_version.information")," ",r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/321",target:"_blank"},H("common.learn_more"),".")),!buttonizer_admin.php_version_supported&&r.createElement("div",{className:"mdc-card dashboard-warning-msg"},r.createElement("b",null,H("warnings.php_version_outdated.title")),H("warnings.php_version_outdated.information",buttonizer_admin.php_version)," ",r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/434",target:"_blank"},H("common.learn_more"),".")),r.createElement(bv,{sensors:[a],onDragEnd:p,onDragStart:d},r.createElement(r.Fragment,null,r.createElement(og,{droppableId:Object.keys(n)[0]},(function(e,t){return r.createElement(Ig,{groupId:Object.keys(n)[0],provided:e,currentDrop:t.isDraggingOver?" currentDrop":""})})),r.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},r.createElement(Er,{onClick:function(){return app.showPremiumDialog(H("premium.multiple_button_groups"),"Qxs1oGCVATU")},color:"primary",className:"Mui-buzz-premium",startIcon:r.createElement(yu,{className:"fas fa-plus-circle"}),"data-testid":"new-group"},H("utils.create_group")," ",r.createElement(Rg,null))))))}));function Lg(e){var t=e.isButtonGroupNotFound,n=void 0!==t&&t;return r.createElement("div",{className:"item-not-found"},r.createElement("div",{className:"buttonizer-logo"},r.createElement("img",{src:window.buttonizer_admin.assets+"/images/logo.png"})),r.createElement("i",{className:n?"fas fa-binoculars":"far fa-dizzy"}),r.createElement("h4",null,"Sorry! We could not find this ".concat(n?"button or group":"page","!")),r.createElement(Er,{onClick:function(){document.location.hash="#/"},color:"primary",variant:"contained","data-testid":"return-to-overview"},"Return to overview"))}var Fg,Bg=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.disabled,a=void 0!==i&&i,l=e.disableFocusRipple,s=void 0!==l&&l,u=e.fullWidth,c=e.icon,f=e.indicator,d=e.label,p=e.onChange,h=e.onClick,m=e.onFocus,v=e.selected,g=e.selectionFollowsFocus,y=e.textColor,b=void 0===y?"inherit":y,x=e.value,w=e.wrapped,E=void 0!==w&&w,_=(0,Kn.Z)(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]);return r.createElement(br,(0,$n.Z)({focusRipple:!s,className:(0,Xn.Z)(n.root,n["textColor".concat((0,xr.Z)(b))],o,a&&n.disabled,v&&n.selected,d&&c&&n.labelIcon,u&&n.fullWidth,E&&n.wrapped),ref:t,role:"tab","aria-selected":v,disabled:a,onClick:function(e){p&&p(e,x),h&&h(e)},onFocus:function(e){g&&!v&&p&&p(e,x),m&&m(e)},tabIndex:v?0:-1},_),r.createElement("span",{className:n.wrapper},c,d),f)})),zg=(0,Jn.Z)((function(e){var t;return{root:(0,$n.Z)({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},(0,Ca.Z)(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),(0,Ca.Z)(t,"overflow","hidden"),(0,Ca.Z)(t,"whiteSpace","normal"),(0,Ca.Z)(t,"textAlign","center"),(0,Ca.Z)(t,e.breakpoints.up("sm"),{minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(Bg);function Wg(){if(Fg)return Fg;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Fg="reverse",e.scrollLeft>0?Fg="default":(e.scrollLeft=1,0===e.scrollLeft&&(Fg="negative")),document.body.removeChild(e),Fg}function Ug(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(Wg()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function Zg(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var Hg={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Gg(e){var t=e.onChange,n=(0,Kn.Z)(e,["onChange"]),o=r.useRef(),i=r.useRef(null),a=function(){o.current=i.current.offsetHeight-i.current.clientHeight};return r.useEffect((function(){var e=(0,$u.Z)((function(){var e=o.current;a(),e!==o.current&&t(o.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),r.useEffect((function(){a(),t(o.current)}),[t]),r.createElement("div",(0,$n.Z)({style:Hg,ref:i},n))}var Vg=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=e.orientation,l=(0,Kn.Z)(e,["classes","className","color","orientation"]);return r.createElement("span",(0,$n.Z)({className:(0,Xn.Z)(n.root,n["color".concat((0,xr.Z)(i))],o,"vertical"===a&&n.vertical),ref:t},l))})),Kg=(0,Jn.Z)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(Vg),$g=(0,$c.Z)(r.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qg=(0,$c.Z)(r.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Yg=r.createElement($g,{fontSize:"small"}),Xg=r.createElement(qg,{fontSize:"small"}),Jg=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.direction,a=e.orientation,l=e.disabled,s=(0,Kn.Z)(e,["classes","className","direction","orientation","disabled"]);return r.createElement(br,(0,$n.Z)({component:"div",className:(0,Xn.Z)(n.root,o,l&&n.disabled,"vertical"===a&&n.vertical),ref:t,role:null,tabIndex:null},s),"left"===i?Yg:Xg)})),Qg=(0,Jn.Z)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(Jg),ey=r.forwardRef((function(e,t){var n=e["aria-label"],o=e["aria-labelledby"],i=e.action,a=e.centered,l=void 0!==a&&a,s=e.children,u=e.classes,c=e.className,f=e.component,d=void 0===f?"div":f,p=e.indicatorColor,h=void 0===p?"secondary":p,m=e.onChange,v=e.orientation,g=void 0===v?"horizontal":v,y=e.ScrollButtonComponent,b=void 0===y?Qg:y,x=e.scrollButtons,w=void 0===x?"auto":x,E=e.selectionFollowsFocus,_=e.TabIndicatorProps,S=void 0===_?{}:_,O=e.TabScrollButtonProps,k=e.textColor,C=void 0===k?"inherit":k,P=e.value,A=e.variant,T=void 0===A?"standard":A,j=(0,Kn.Z)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),I=rl(),R="scrollable"===T,N="rtl"===I.direction,D="vertical"===g,M=D?"scrollTop":"scrollLeft",L=D?"top":"left",F=D?"bottom":"right",B=D?"clientHeight":"clientWidth",z=D?"height":"width";var W=r.useState(!1),U=W[0],Z=W[1],H=r.useState({}),G=H[0],V=H[1],K=r.useState({start:!1,end:!1}),$=K[0],q=K[1],Y=r.useState({overflow:"hidden",marginBottom:null}),X=Y[0],J=Y[1],Q=new Map,ee=r.useRef(null),te=r.useRef(null),ne=function(){var e,t,n=ee.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:Ug(n,I.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==P){var o=te.current.children;if(o.length>0){var i=o[Q.get(P)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},re=(0,tr.Z)((function(){var e,t=ne(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(D)o=r.top-n.top+n.scrollTop;else{var i=N?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(e={},(0,Ca.Z)(e,L,o),(0,Ca.Z)(e,z,r?r[z]:0),e);if(isNaN(G[L])||isNaN(G[z]))V(a);else{var l=Math.abs(G[L]-a[L]),s=Math.abs(G[z]-a[z]);(l>=1||s>=1)&&V(a)}})),oe=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?Zg:i,l=r.duration,s=void 0===l?300:l,u=null,c=t[e],f=!1,d=function(){f=!0},p=function r(i){if(f)o(new Error("Animation cancelled"));else{null===u&&(u=i);var l=Math.min(1,(i-u)/s);t[e]=a(l)*(n-c)+c,l>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};c===n?o(new Error("Element already at target position")):requestAnimationFrame(p)}(M,ee.current,e)},ie=function(e){var t=ee.current[M];D?t+=e:(t+=e*(N?-1:1),t*=N&&"reverse"===Wg()?-1:1),oe(t)},ae=function(){ie(-ee.current[B])},le=function(){ie(ee.current[B])},se=r.useCallback((function(e){J({overflow:null,marginBottom:-e})}),[]),ue=(0,tr.Z)((function(){var e=ne(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[L]<t[L]){var r=t[M]+(n[L]-t[L]);oe(r)}else if(n[F]>t[F]){var o=t[M]+(n[F]-t[F]);oe(o)}})),ce=(0,tr.Z)((function(){if(R&&"off"!==w){var e,t,n=ee.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,l=n.clientWidth;if(D)e=r>1,t=r<o-i-1;else{var s=Ug(ee.current,I.direction);e=N?s<a-l-1:s>1,t=N?s>1:s<a-l-1}e===$.start&&t===$.end||q({start:e,end:t})}}));r.useEffect((function(){var e=(0,$u.Z)((function(){re(),ce()})),t=(0,Fa.Z)(ee.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[re,ce]);var fe=r.useCallback((0,$u.Z)((function(){ce()})));r.useEffect((function(){return function(){fe.clear()}}),[fe]),r.useEffect((function(){Z(!0)}),[]),r.useEffect((function(){re(),ce()})),r.useEffect((function(){ue()}),[ue,G]),r.useImperativeHandle(i,(function(){return{updateIndicator:re,updateScrollButtons:ce}}),[re,ce]);var de=r.createElement(Kg,(0,$n.Z)({className:u.indicator,orientation:g,color:h},S,{style:(0,$n.Z)({},G,S.style)})),pe=0,he=r.Children.map(s,(function(e){if(!r.isValidElement(e))return null;var t=void 0===e.props.value?pe:e.props.value;Q.set(t,pe);var n=t===P;return pe+=1,r.cloneElement(e,{fullWidth:"fullWidth"===T,indicator:n&&!U&&de,selected:n,selectionFollowsFocus:E,onChange:m,textColor:C,value:t})})),me=function(){var e={};e.scrollbarSizeListener=R?r.createElement(Gg,{className:u.scrollable,onChange:se}):null;var t=$.start||$.end,n=R&&("auto"===w&&t||"desktop"===w||"on"===w);return e.scrollButtonStart=n?r.createElement(b,(0,$n.Z)({orientation:g,direction:N?"right":"left",onClick:ae,disabled:!$.start,className:(0,Xn.Z)(u.scrollButtons,"on"!==w&&u.scrollButtonsDesktop)},O)):null,e.scrollButtonEnd=n?r.createElement(b,(0,$n.Z)({orientation:g,direction:N?"left":"right",onClick:le,disabled:!$.end,className:(0,Xn.Z)(u.scrollButtons,"on"!==w&&u.scrollButtonsDesktop)},O)):null,e}();return r.createElement(d,(0,$n.Z)({className:(0,Xn.Z)(u.root,c,D&&u.vertical),ref:t},j),me.scrollButtonStart,me.scrollbarSizeListener,r.createElement("div",{className:(0,Xn.Z)(u.scroller,R?u.scrollable:u.fixed),style:X,ref:ee,onScroll:fe},r.createElement("div",{"aria-label":n,"aria-labelledby":o,className:(0,Xn.Z)(u.flexContainer,D&&u.flexContainerVertical,l&&!R&&u.centered),onKeyDown:function(e){var t=e.target;if("tab"===t.getAttribute("role")){var n=null,r="vertical"!==g?"ArrowLeft":"ArrowUp",o="vertical"!==g?"ArrowRight":"ArrowDown";switch("vertical"!==g&&"rtl"===I.direction&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:n=t.previousElementSibling||te.current.lastChild;break;case o:n=t.nextElementSibling||te.current.firstChild;break;case"Home":n=te.current.firstChild;break;case"End":n=te.current.lastChild}null!==n&&(n.focus(),e.preventDefault())}},ref:te,role:"tablist"},he),U&&de),me.scrollButtonEnd)})),ty=(0,Jn.Z)((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:(0,Ca.Z)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(ey),ny=n(73914);var ry=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,ny.Z)(e,(0,$n.Z)({defaultTheme:nl.Z},t))};function oy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ay=ry((function(){return{selected:{color:"#ed8219",backgroundColor:"#fae1ca !important",cursor:"default",pointerEvents:"none"}}}));var ly=cu((function(e){var t=e.button,n=e.group,o=e.groups,i=e.history,a=e.getChildrenIndex,l="";["style","general","advanced"].indexOf(i.location.pathname.substr(i.location.pathname.lastIndexOf("/")+1))>-1&&(l="/".concat(i.location.pathname.substr(i.location.pathname.lastIndexOf("/")+1)));var s=oy(r.useState(null),2),u=s[0],c=s[1],f=ay(),d=function(e){c(null),t?i.push("/group/".concat(t.parent,"/button/").concat(e).concat(l)):n&&i.push("/group/".concat(e).concat(l))},p=Boolean(u),h=p?"simple-popover":void 0;return r.createElement(r.Fragment,null,r.createElement(Er,{"aria-describedby":h,color:"secondary",variant:"contained",onClick:function(e){c(e.currentTarget)},"data-testid":"breadcrumb:button"},r.createElement("span",{className:"breadcrumb-text","data-testid":"breadcrumb:name"},t?t.name:n.name),r.createElement("i",{className:"fas fa-chevron-down"})),r.createElement(Ic,{id:h,className:"button-select-menu",open:p,anchorEl:u,onClose:function(){c(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},"data-testid":"breadcrumb:popup"},t?Object.values(a(o[t.parent].children)).map((function(e,n){return r.createElement(Du,{key:n,className:"breadcrumb-select-options",onClick:function(){return d(e.id)},"data-testid":"breadcrumbitem:".concat(Z()(e,"name","test-id")),classes:{selected:f.selected},selected:t.id===e.id},e.name)})):Object.entries(o).map((function(e,o){return r.createElement(Du,{className:"breadcrumb-select-options",key:o,onClick:function(){return d(e[1].id)},classes:{selected:f.selected},"data-testid":"breadcrumbitem:".concat(Z()(e[1],"name","test-id")),selected:t?t.parent===e[1].id:n.id===e[1].id},e[1].name)}))))})),sy=sa((function(e){return{groups:e.groups,getChildrenIndex:function(t){return le(t,e)}}}))(ly);function uy(){return(uy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var cy=cu((function(e){var t=e.group,n=e.button,o=e.history,i=e.tab,a=void 0===i?0:i,l=function(e){var i="/group/".concat(t.id,"/button/").concat(n.id,"/").concat(e.page);return r.createElement(zg,uy({component:"a",href:"#".concat(i),onClick:function(){o.location.pathname!==i&&o.push(i)},"data-testid":"buttongroupheader:button:".concat(e.page)},e))};return r.createElement("div",{className:"bar-header"},r.createElement("div",{className:"breadcrumb"},r.createElement(ya,{content:H("bar.breadcrumb.tippy_home"),arrow:!1},r.createElement(Er,{onClick:function(){o.push("/")},color:"primary",className:"home-button"},r.createElement("span",{className:"breadcrumb-text"},H("bar.breadcrumb.home")),r.createElement("i",{className:"fas fa-chevron-right"}))),r.createElement(ya,{content:H("bar.breadcrumb.tippy_group"),arrow:!1},r.createElement(Er,{onClick:function(){o.push("/group/".concat(t.id))},color:"primary"},r.createElement("span",{className:"breadcrumb-text"},t.name),r.createElement("i",{className:"fas fa-chevron-right"}))),r.createElement(sy,{button:n})),r.createElement(vu,null),r.createElement("div",{className:"back-to-group"},r.createElement("a",{href:"#/group/"+t.id},r.createElement("i",{className:"fas fa-chevron-down"}),H("bar.edit_group_settings"))),r.createElement("div",{className:"mdc-card top-header"},r.createElement(ty,{value:a,variant:"fullWidth",indicatorColor:"secondary",textColor:"secondary",className:"tab-bordered"},r.createElement(l,{label:H("settings.setting_categories.general"),id:0,page:"general","data-testid":"general-tab",icon:r.createElement("i",{className:"fas fa-wrench"})}),r.createElement(l,{label:H("utils.style"),id:1,page:"style","data-testid":"style-tab",icon:r.createElement("i",{className:"fas fa-paint-brush"})}),r.createElement(l,{label:H("utils.advanced"),id:2,page:"advanced","data-testid":"advanced-tab",icon:r.createElement("i",{className:"fas fa-sliders-h"})}))))}));function fy(){return(fy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function dy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return py(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return py(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function py(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hy(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function my(e){var t=e.opened,n=void 0!==t&&t,o=e.title,i=void 0===o?"":o,a=e.bodySpacing,l=void 0===a||a,s=e.className,u=void 0===s?null:s,c=e.children,f=e.onSetIsOpened,d=hy(e,["opened","title","bodySpacing","className","children","onSetIsOpened"]);if(null==c)return null;var p=dy((0,r.useState)(n),2),h=p[0],m=p[1];(0,r.useEffect)((function(){m(n)}),[n]);return r.createElement("div",{className:(0,Xn.Z)("collapsible-group mdc-card",h&&"collapsible-opened",u)},r.createElement(Er,fy({onClick:function(){var e=!h;f&&f(e),m(e)},color:"primary"},d),i," ",r.createElement("i",{className:"fas fa-chevron-down"})),h&&r.createElement("div",{className:(0,Xn.Z)(l&&"collapsible-body")},c))}function vy(){return(vy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gy(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yy(e){var t=e.className,n=void 0===t?null:t,o=e.title,i=void 0===o?null:o,a=e.children,l=void 0===a?null:a,s=e.fullWidth,u=void 0===s||s,c=gy(e,["className","title","children","fullWidth"]);return r.createElement("div",vy({className:(0,Xn.Z)("settings-container",u&&"container-full-width",n)},c),i?r.createElement("span",{className:"settings-title"},i):r.createElement(r.Fragment,null),r.createElement("div",{className:"settings-content"},l))}function by(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wy(e){var t=e.mobile,n=void 0!==t&&t,o=e.desktop,i=void 0!==o&&o,a=e.onChange,l=by((0,r.useState)(n),2),s=l[0],u=l[1],c=by((0,r.useState)(i),2),f=c[0],d=c[1];return(0,r.useEffect)((function(){u(n),d(i)}),[n,i]),r.createElement(yy,{title:H("settings.show_mobile_desktop.title"),fullWidth:!1,className:"desktop-mobile-visibility"},r.createElement(ya,{content:H("settings.show_mobile_desktop.mobile")},r.createElement(Er,{className:"buttonMobile",onClick:function(){var e=!s;u(e),a("show_mobile",e)},variant:s?"contained":"outlined",color:"primary","data-testid":"setting:mobile-visibility"},r.createElement("i",{className:"fas fa-mobile-alt"}))),r.createElement(ya,{content:H("settings.show_mobile_desktop.desktop")},r.createElement(Er,{onClick:function(){var e=!f;d(e),a("show_desktop",e)},variant:f?"contained":"outlined",color:"primary","data-testid":"setting:desktop-visibility"},r.createElement("i",{className:"fas fa-desktop"}))))}function Ey(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sy(e){var t=e.value,n=e.onChange,o=e.placeholder,i=void 0===o?"":o,a=Ey((0,r.useState)(t),2),l=a[0],s=a[1],u=Ey((0,r.useState)(!0),2),c=u[0],f=u[1],d=Ey((0,r.useState)(i),2),p=d[0],h=d[1];return(0,r.useEffect)((function(){s(t)}),[t]),(0,r.useEffect)((function(){h(i),f(!0)}),[i]),r.createElement(sf,{variant:"outlined",label:H("settings.label.placeholder"),onChange:function(e){f(!1),s(e.target.value),n(e.target.value)},value:l||(c?p:l),fullWidth:!0,inputProps:{"data-testid":"setting:label"}})}function Oy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ky(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ky(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ky(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cy(e){var t=e.value,n=void 0===t?"":t,o=e.subject,i=void 0===o?"":o,a=e.body,l=void 0===a?"":a,s=e.cc,u=void 0===s?"":s,c=e.bcc,f=void 0===c?"":c,d=e.onChange,p=Oy((0,r.useState)(!1),2),h=p[0],m=p[1],v=Oy((0,r.useState)(""!==u),2),g=v[0],y=v[1],b=Oy((0,r.useState)(""!==f),2),x=b[0],w=b[1],E=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return r.createElement("div",{className:"button-action-value"},r.createElement(sf,{variant:"outlined",fullWidth:!0,value:n,inputProps:{"data-testid":"action:field"},label:H("settings.button_action.placeholders.mail.recipient"),helperText:!E.test(n)&&""!==n&&h?H("settings.button_action.actions.mail.invalid"):null,error:!E.test(n)&&""!==n&&h,onChange:function(e){d(e.target.value)},onBlur:function(e){""===e.target.value||E.test(n)?m(!1):m(!0)}}),r.createElement(sf,{variant:"outlined",fullWidth:!0,value:i,label:H("settings.button_action.placeholders.mail.subject"),onChange:function(e){d(e.target.value,"text_subject")},inputProps:{"data-testid":"action:field"}}),g?r.createElement(sf,{variant:"outlined",fullWidth:!0,value:u,label:H("settings.button_action.placeholders.mail.cc"),onChange:function(e){d(e.target.value,"text_cc")}}):r.createElement(Er,{color:"primary",size:"small",style:{textTransform:"capitalize",marginBottom:"15px"},startIcon:"+",onClick:function(){return y(!0)}},"Cc"),x?r.createElement(sf,{variant:"outlined",fullWidth:!0,value:f,label:H("settings.button_action.placeholders.mail.bcc"),onChange:function(e){d(e.target.value,"text_bcc")}}):r.createElement(Er,{color:"primary",size:"small",style:{textTransform:"capitalize",marginBottom:"15px"},onClick:function(){return w(!0)},startIcon:"+"},"Bcc"),r.createElement(sf,{variant:"outlined",fullWidth:!0,multiline:!0,rows:4,inputProps:{"data-testid":"action:field"},value:l,label:H("settings.button_action.placeholders.mail.body"),onChange:function(e){d(e.target.value,"text_body")}}))}function Py(e){var t=e.value,n=void 0===t?"":t,o=e.body,i=void 0===o?"":o,a=e.onChange,l=/^\+?\d+$/;return r.createElement("div",{className:"button-action-subject"},r.createElement(sf,{variant:"outlined",fullWidth:!0,value:n,helperText:l.test(n)||""===n?null:H("settings.button_action.actions.phone_number.invalid"),error:!l.test(n)&&""!==n,label:H("settings.button_action.actions.phone_number.number"),inputProps:{"data-testid":"action:field"},onChange:function(e){a(e.target.value)}}),r.createElement(sf,{variant:"outlined",fullWidth:!0,multiline:!0,rows:4,value:i,label:H("settings.button_action.placeholders.message"),inputProps:{"data-testid":"action:field"},onChange:function(e){a(e.target.value,"text_body")}}),r.createElement("p",{dangerouslySetInnerHTML:{__html:H("settings.button_action.actions.whatsapp_info")}}))}var Ay=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,l=e.component,s=void 0===l?"li":l,u=e.disableGutters,c=void 0!==u&&u,f=e.disableSticky,d=void 0!==f&&f,p=e.inset,h=void 0!==p&&p,m=(0,Kn.Z)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return r.createElement(s,(0,$n.Z)({className:(0,Xn.Z)(n.root,o,"default"!==a&&n["color".concat((0,xr.Z)(a))],h&&n.inset,!d&&n.sticky,!c&&n.gutters),ref:t},m))})),Ty=(0,Jn.Z)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(Ay),jy=(0,$c.Z)(r.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Iy(e){return"Backspace"===e.key||"Delete"===e.key}var Ry=r.forwardRef((function(e,t){var n=e.avatar,o=e.classes,i=e.className,a=e.clickable,l=e.color,s=void 0===l?"default":l,u=e.component,c=e.deleteIcon,f=e.disabled,d=void 0!==f&&f,p=e.icon,h=e.label,m=e.onClick,v=e.onDelete,g=e.onKeyDown,y=e.onKeyUp,b=e.size,x=void 0===b?"medium":b,w=e.variant,E=void 0===w?"default":w,_=(0,Kn.Z)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),S=r.useRef(null),O=(0,er.Z)(S,t),k=function(e){e.stopPropagation(),v&&v(e)},C=!(!1===a||!m)||a,P="small"===x,A=u||(C?br:"div"),T=A===br?{component:"div"}:{},j=null;if(v){var I=(0,Xn.Z)("default"!==s&&("default"===E?o["deleteIconColor".concat((0,xr.Z)(s))]:o["deleteIconOutlinedColor".concat((0,xr.Z)(s))]),P&&o.deleteIconSmall);j=c&&r.isValidElement(c)?r.cloneElement(c,{className:(0,Xn.Z)(c.props.className,o.deleteIcon,I),onClick:k}):r.createElement(jy,{className:(0,Xn.Z)(o.deleteIcon,I),onClick:k})}var R=null;n&&r.isValidElement(n)&&(R=r.cloneElement(n,{className:(0,Xn.Z)(o.avatar,n.props.className,P&&o.avatarSmall,"default"!==s&&o["avatarColor".concat((0,xr.Z)(s))])}));var N=null;return p&&r.isValidElement(p)&&(N=r.cloneElement(p,{className:(0,Xn.Z)(o.icon,p.props.className,P&&o.iconSmall,"default"!==s&&o["iconColor".concat((0,xr.Z)(s))])})),r.createElement(A,(0,$n.Z)({role:C||v?"button":void 0,className:(0,Xn.Z)(o.root,i,"default"!==s&&[o["color".concat((0,xr.Z)(s))],C&&o["clickableColor".concat((0,xr.Z)(s))],v&&o["deletableColor".concat((0,xr.Z)(s))]],"default"!==E&&[o.outlined,{primary:o.outlinedPrimary,secondary:o.outlinedSecondary}[s]],d&&o.disabled,P&&o.sizeSmall,C&&o.clickable,v&&o.deletable),"aria-disabled":!!d||void 0,tabIndex:C||v?0:void 0,onClick:m,onKeyDown:function(e){e.currentTarget===e.target&&Iy(e)&&e.preventDefault(),g&&g(e)},onKeyUp:function(e){e.currentTarget===e.target&&(v&&Iy(e)?v(e):"Escape"===e.key&&S.current&&S.current.blur()),y&&y(e)},ref:O},T,_),R||N,r.createElement("span",{className:(0,Xn.Z)(o.label,P&&o.labelSmall)},h),j)})),Ny=(0,Jn.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,Qn.U1)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,Qn._4)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,Qn._4)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,Qn._4)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,Qn._4)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,Qn._4)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,Qn._4)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Qn.U1)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Qn.U1)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Qn.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,Qn.U1)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,Qn.U1)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,Qn.U1)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,Qn.U1)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,Qn.U1)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(Ry);function Dy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return My(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return My(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function My(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ly=ry((function(e){return{item:{padding:"6px 31px"},group:{fontWeight:e.typography.fontWeightMedium,opacity:1,cursor:"default",pointerEvents:"none",userSelect:"none",fontSize:"17px"}}}));function Fy(e){var t=e.value,n=void 0===t?"":t,o=e.body,i=void 0===o?"":o,a=e.onChange,l=(0,r.useRef)(null),s=(0,r.useRef)(null),u=Dy((0,r.useState)([]),2),c=u[0],f=u[1],d=Ly(),p=Dy((0,r.useState)(0),2),h=p[0],m=p[1];return["facebook","twitter","whatsapp","linkedin","pinterest","mail","sms","reddit","tumblr","weibo","vk","ok","xing","blogger","flipboard","line"].includes(n)||a("facebook"),(0,r.useEffect)((function(){m(l.current.offsetWidth)}),[]),r.createElement(yc,{variant:"outlined",fullWidth:!0,className:"button-action-value"},r.createElement(vc,{ref:l},H("settings.button_action.title")),r.createElement(of,{labelId:"button-action-value",value:n,onChange:function(e){a(e.target.value)},labelWidth:h,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},getContentAnchorEl:null},style:{marginBottom:"15px"},inputProps:{"data-testid":"action:select"}},r.createElement(Ty,{disableSticky:!0,value:null,className:d.group},H("settings.button_action.actions.social_sharing.popular")+":"),r.createElement(Du,{value:"facebook",className:d.item},H("settings.button_action.actions.share_page_on","Facebook")),r.createElement(Du,{value:"twitter",className:d.item},H("settings.button_action.actions.share_page_on","Twitter")),r.createElement(Du,{value:"whatsapp",className:d.item},H("settings.button_action.actions.share_page_on","Whatsapp")),r.createElement(Du,{value:"linkedin",className:d.item},H("settings.button_action.actions.share_page_on","LinkedIn")),r.createElement(Du,{value:"pinterest",className:d.item},H("settings.button_action.actions.share_page_on","Pinterest")),r.createElement(Du,{value:"mail",className:d.item},H("settings.button_action.actions.share_page_via","email")),r.createElement(Ty,{disableSticky:!0,value:null,className:d.group},H("settings.button_action.actions.social_sharing.other")+":"),r.createElement(Du,{value:"sms",className:d.item},H("settings.button_action.actions.share_page_on","SMS")),r.createElement(Du,{value:"reddit",className:d.item},H("settings.button_action.actions.share_page_on","Reddit")),r.createElement(Du,{value:"tumblr",className:d.item},H("settings.button_action.actions.share_page_on","Tumblr")),r.createElement(Du,{value:"weibo",className:d.item},H("settings.button_action.actions.share_page_on","Weibo")),r.createElement(Du,{value:"vk",className:d.item},H("settings.button_action.actions.share_page_on","VK")),r.createElement(Du,{value:"ok",className:d.item},H("settings.button_action.actions.share_page_on","OK.ru (Odnoklassniki)")),r.createElement(Du,{value:"xing",className:d.item},H("settings.button_action.actions.share_page_on","Xing")),r.createElement(Du,{value:"blogger",className:d.item},H("settings.button_action.actions.share_page_on","Blogger")),r.createElement(Du,{value:"flipboard",className:d.item},H("settings.button_action.actions.share_page_on","Flipboard")),r.createElement(Du,{value:"line",className:d.item},H("settings.button_action.actions.share_page_on","Line"))),["twitter","whatsapp","mail","sms","vk","blogger","tumblr","weibo"].includes(n)?r.createElement(r.Fragment,null,r.createElement(sf,{variant:"outlined",fullWidth:!0,multiline:!0,rows:2,onSelect:function(){return f([s.current.selectionStart,s.current.selectionEnd])},onBlur:function(e){return!Z()(e,"relatedTarget.className","").includes("MuiChip")&&f([i.length,i.length])},inputRef:s,label:H("settings.button_action.placeholders.mail.body"),value:i,inputProps:{"data-testid":"action:field"},onChange:function(e){a(e.target.value,"text_body")}}),r.createElement("div",null,"Insert parameter:",Object.entries({"Site URL":"[site-url]","Site Title":"[site-title]"}).map((function(e,t){var n=Dy(e,2),o=n[0],l=n[1];return r.createElement(Ny,{onClick:function(){return e=l,(t=i.split("")).splice(c[0],c[1]-c[0],e),a(t.join(""),"text_body"),void setTimeout((function(){return s.current.setSelectionRange(c[0]+e.length,c[0]+e.length)}),100);var e,t},size:"small",variant:"outlined",key:t,label:o,style:{marginLeft:"5px"}})}))),r.createElement("br",null),"Body will look as follows: ",r.createElement("br",null),r.createElement(yl,{variant:"caption"},i.replace(/\[site-url\]/g,document.location).replace(/\[site-title\]/g,document.title))):null)}function By(e){var t=e.value,n=void 0===t?"":t,o=e.body,i=void 0===o?"":o,a=e.onChange,l=/^\+?\d+$/;return r.createElement("div",{className:"button-action-value"},r.createElement(sf,{variant:"outlined",fullWidth:!0,value:n,label:H("settings.button_action.actions.phone_number.number"),helperText:l.test(n)||""===n?null:H("settings.button_action.actions.phone_number.invalid"),error:!l.test(n)&&""!==n,onChange:function(e){a(e.target.value)},inputProps:{"data-testid":"action:field"}}),r.createElement(sf,{variant:"outlined",fullWidth:!0,multiline:!0,rows:4,inputProps:{"data-testid":"action:field"},value:i,label:"SMS "+H("settings.button_action.placeholders.mail.body"),onChange:function(e){a(e.target.value,"text_body")}}),r.createElement("p",{dangerouslySetInnerHTML:{__html:H("settings.button_action.actions.sms")}}))}function zy(e){var t=e.value,n=void 0===t?"":t,o=e.body,i=void 0===o?"":o,a=e.onChange,l=/^\d+$/;return r.createElement("div",{className:"button-action-value"},r.createElement(sf,{variant:"outlined",fullWidth:!0,value:n,label:"Account ID",helperText:l.test(n)||""===n?null:"Invalid account ID.",error:!l.test(n)&&""!==n,onChange:function(e){a(e.target.value.replace(/[^0-9]/gm,""))},inputProps:{"data-testid":"action:field"}}),r.createElement(sf,{variant:"outlined",fullWidth:!0,inputProps:{"data-testid":"action:field"},multiline:!0,rows:4,value:i,label:H("settings.button_action.placeholders.message"),onChange:function(e){a(e.target.value,"text_body")}}),r.createElement("p",{dangerouslySetInnerHTML:{__html:H("settings.button_action.actions.twitter_info")}}))}function Wy(e){var t=e.value,n=void 0===t?"":t,o=e.onChange;return(0,r.useEffect)((function(){if("elementor"!==n.substring(0,9)){if("E"===n.substring(n.length-1))return;"Ev2"!==n.substring(n.length-3)&&o("elementor"+W()+"Ev2")}}),[]),r.createElement(r.Fragment,null,r.createElement("p",{dangerouslySetInnerHTML:{__html:H("settings.popups.elementor_guide")}}),r.createElement("pre",{style:{display:"flex"}},r.createElement("code",{style:{fontSize:"11px",padding:"5.5px"}},"a[","Ev2"===n.substring(n.length-3)?"buttonizer-popup":"href",'="#',n,'"]'),r.createElement(ya,{content:H("settings.popups.generate")},r.createElement(jl,{onClick:function(){o("elementor"+W()+"Ev2")},variant:"contained",color:"primary",style:{padding:"5px"}},r.createElement("i",{className:"fas fa-redo-alt",style:{fontSize:"14px"}})))),r.createElement(uf,{articleId:76,setting:"Elementor Popup"}))}function Uy(e){var t=e.value,n=void 0===t?"":t,o=e.onChange;return(0,r.useEffect)((function(){if("popupMaker"!==n.substring(0,10)){if("P"===n.substring(n.length-1))return;"Pv2"!==n.substring(n.length-3)&&o("popupMaker"+W()+"Pv2")}}),[]),r.createElement(r.Fragment,null,r.createElement("p",{dangerouslySetInnerHTML:{__html:H("settings.popups.popup_maker_guide")}}),r.createElement("pre",{style:{display:"flex"}},r.createElement("code",{style:{fontSize:"11px",padding:"5.5px"}},"a[","Pv2"===n.substring(n.length-3)?"buttonizer-popup":"href",'="#',n,'"]'),r.createElement(ya,{content:H("settings.popups.generate")},r.createElement(jl,{onClick:function(){o("popupMaker"+W()+"Pv2")},variant:"contained",color:"primary",style:{padding:"5px"}},r.createElement("i",{className:"fas fa-redo-alt",style:{fontSize:"14px"}})))),r.createElement(uf,{articleId:77,setting:"Popup Maker"}))}function Zy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gy(e){var t=e.value,n=e.onChange,o=ry((function(e){return{formControl:{margin:e.spacing(0),marginTop:10,paddingBottom:20}}}))(),i=(0,r.useRef)(null),a=Zy((0,r.useState)(0),2),l=a[0],s=a[1],u="_self";t&&(!0===t?u="_blank":"string"==typeof t&&(u=t)),(0,r.useEffect)((function(){s(i.current.offsetWidth)}),[]);return r.createElement(yc,{variant:"outlined",className:o.formControl,fullWidth:!0,size:"small"},r.createElement(vc,{ref:i},H("settings.button_action.open_url.title")),r.createElement(of,{onChange:function(e){e.target.value&&n(e.target.value),null===e.target.value&&n("_blank")},labelWidth:l,value:u,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},getContentAnchorEl:null}},r.createElement(Du,{value:"_self"},"Current window"),r.createElement(Du,{value:"_blank"},"New tab"),r.createElement(Du,{value:"_newWindow"},"New window"),r.createElement(Du,{value:"_popupWindow"},"Pop-up window")))}function Vy(e){var t=e.value,n=void 0===t?"":t,o=e.newTab,i=e.placeholder,a=e.type,l=e.paragraph,s=e.knowledge,u=e.onChange,c=e.check,f=void 0!==c&&c,d=e.checkText,p=void 0===d?"Invalid":d,h=e.children,m=void 0!==h&&h;return r.createElement("div",{className:"button-action-value"},r.createElement(sf,{variant:"outlined",fullWidth:!0,inputProps:{"data-testid":"action:field"},type:a||"text",helperText:f?f.test(n)||""===n?null:p:null,error:!!f&&(!f.test(n)&&""!==n),value:n,label:i,onChange:function(e){u(e.target.value)}}),m&&m,o?r.createElement(Gy,{value:o.action_new_tab,onChange:function(e){u(e,"action_new_tab")}}):r.createElement(r.Fragment,null),l?r.createElement("p",{dangerouslySetInnerHTML:{__html:l}}):r.createElement(r.Fragment,null),s?function(e){return r.createElement("a",{className:"info-link has-margin-everywhere",href:"https://community.buttonizer.pro/knowledgebase"+(""===e.permalink?"":"/"+e.permalink),dangerouslySetInnerHTML:{__html:e.name?H("utils.knowledge_link",e.name):H("utils.visit_knowledgebase")}})}(s):r.createElement(r.Fragment,null))}var Ky=JSON.parse('{"af_ZA":"Afrikaans","ar_AR":"Arabic","az_AZ":"Azerbaijani","be_BY":"Belarusian","bg_BG":"Bulgarian","bn_IN":"Bengali","bs_BA":"Bosnian","ca_ES":"Catalan","cs_CZ":"Czech","cy_GB":"Welsh","da_DK":"Danish","de_DE":"German","el_GR":"Greek","en_GB":"English (UK)","en_PI":"English (Pirate)","en_UD":"English (Upside Down)","en_US":"English (US)","eo_EO":"Esperanto","es_ES":"Spanish (Spain)","es_LA":"Spanish","et_EE":"Estonian","eu_ES":"Basque","fa_IR":"Persian","fb_LT":"Leet Speak","fi_FI":"Finnish","fo_FO":"Faroese","fr_CA":"French (Canada)","fr_FR":"French (France)","fy_NL":"Frisian","ga_IE":"Irish","gl_ES":"Galician","he_IL":"Hebrew","hi_IN":"Hindi","hr_HR":"Croatian","hu_HU":"Hungarian","hy_AM":"Armenian","id_ID":"Indonesian","is_IS":"Icelandic","it_IT":"Italian","ja_JP":"Japanese","ka_GE":"Georgian","km_KH":"Khmer","ko_KR":"Korean","ku_TR":"Kurdish","la_VA":"Latin","lt_LT":"Lithuanian","lv_LV":"Latvian","mk_MK":"Macedonian","ml_IN":"Malayalam","ms_MY":"Malay","nb_NO":"Norwegian (bokmal)","ne_NP":"Nepali","nl_NL":"Dutch","nn_NO":"Norwegian (nynorsk)","pa_IN":"Punjabi","pl_PL":"Polish","ps_AF":"Pashto","pt_BR":"Portuguese (Brazil)","pt_PT":"Portuguese (Portugal)","ro_RO":"Romanian","ru_RU":"Russian","sk_SK":"Slovak","sl_SI":"Slovenian","sq_AL":"Albanian","sr_RS":"Serbian","sv_SE":"Swedish","sw_KE":"Swahili","ta_IN":"Tamil","te_IN":"Telugu","th_TH":"Thai","tl_PH":"Filipino","tr_TR":"Turkish","uk_UA":"Ukrainian","vi_VN":"Vietnamese","zh_CN":"Simplified Chinese (China)","zh_HK":"Traditional Chinese (Hong Kong)","zh_TW":"Traditional Chinese (Taiwan)"}');function $y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yy=sa((function(e){return{buttons:e.buttons}}))((function(e){var t,n=e.data,o=e.onChange,i=e.buttonId,a=e.buttons,l=$y((0,r.useState)(!1),2),s=l[0],u=l[1],c=$y((0,r.useState)(!1),2),f=c[0],d=c[1],p=$y((0,r.useState)(0),2),h=p[0],m=p[1],v=(0,r.useRef)(null);if(!f)for(var g=0,y=Object.entries(a);g<y.length;g++){var b=y[g];"messenger_chat"===b[1].type&&b[1].id!==i&&(u(!0),d(!0))}return(0,r.useEffect)((function(){m(v.current.offsetWidth)}),[]),r.createElement(r.Fragment,null,r.createElement(Vy,{value:n.action,check:/^\d+$/,checkText:H("settings.button_action.actions.messenger_chat.invalid"),placeholder:H("settings.button_action.actions.messenger_chat.page_id"),paragraph:H("settings.button_action.actions.messenger_chat.description"),knowledge:{permalink:59,name:"Facebook Messenger Chat Widget"},onChange:function(e,t){o(e,t)}},r.createElement(yc,{variant:"outlined",fullWidth:!0,style:{marginBottom:"15px"}},r.createElement(vc,{ref:v},H("settings.button_action.actions.messenger_chat.language")),r.createElement(of,{value:n.messenger_lang||"en_US",onChange:function(e){o(e.target.value,"messenger_lang")},labelWidth:h,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},getContentAnchorEl:null}},(t=[],Object.entries(Ky).map((function(e,n){var o=$y(e,2),i=o[0],a=o[1];t.push(r.createElement(Du,{value:i,key:n},a))})),t)))),r.createElement(Al,{open:s,title:"This is getting out of hand. Now, there are two of them!",buttons:[{value:"close",text:"I understand"}],onClose:function(){return o("url","type"),void u(!1)}},r.createElement(yl,null,"You currently have a button with a Facebook Messenger Chat Widget action.",r.createElement("br",null),"As of now, the Facebook Messenger SDK can only support ",r.createElement("b",null,"1")," ","Facebook Messenger Chat Widget.",r.createElement("br",null),r.createElement("br",null),"Button with Facebook Messenger Widget: ",r.createElement("br",null),"Button:",Object.entries(a).map((function(e){if("messenger_chat"===e[1].type&&e[1].id!==i)return" ".concat(e[1].name)})))))}));function Xy(e){return/^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?/m.test(e)}
44
- /**!
45
- * @fileOverview Kickass library to create and place poppers near their reference elements.
46
- * @version 1.16.1-lts
47
- * @license
48
- * Copyright (c) 2016 Federico Zivolo and contributors
49
- *
50
- * Permission is hereby granted, free of charge, to any person obtaining a copy
51
- * of this software and associated documentation files (the "Software"), to deal
52
- * in the Software without restriction, including without limitation the rights
53
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
54
- * copies of the Software, and to permit persons to whom the Software is
55
- * furnished to do so, subject to the following conditions:
56
- *
57
- * The above copyright notice and this permission notice shall be included in all
58
- * copies or substantial portions of the Software.
59
- *
60
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
62
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
63
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
64
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
66
- * SOFTWARE.
67
- */
68
- var Jy="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Qy=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Jy&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var eb=Jy&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Qy))}};function tb(e){return e&&"[object Function]"==={}.toString.call(e)}function nb(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function rb(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ob(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=nb(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:ob(rb(e))}function ib(e){return e&&e.referenceNode?e.referenceNode:e}var ab=Jy&&!(!window.MSInputMethodContext||!document.documentMode),lb=Jy&&/MSIE 10/.test(navigator.userAgent);function sb(e){return 11===e?ab:10===e?lb:ab||lb}function ub(e){if(!e)return document.documentElement;for(var t=sb(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===nb(n,"position")?ub(n):n:e?e.ownerDocument.documentElement:document.documentElement}function cb(e){return null!==e.parentNode?cb(e.parentNode):e}function fb(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,l,s=i.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(l=(a=s).nodeName)||"HTML"!==l&&ub(a.firstElementChild)!==a?ub(s):s;var u=cb(e);return u.host?fb(u.host,t):fb(e,cb(t).host)}function db(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function pb(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=db(t,"top"),o=db(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function hb(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function mb(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],sb(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function vb(e){var t=e.body,n=e.documentElement,r=sb(10)&&getComputedStyle(n);return{height:mb("Height",t,n,r),width:mb("Width",t,n,r)}}var gb=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},yb=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),bb=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},xb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function wb(e){return xb({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Eb(e){var t={};try{if(sb(10)){t=e.getBoundingClientRect();var n=db(e,"top"),r=db(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?vb(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,l=i.height||e.clientHeight||o.height,s=e.offsetWidth-a,u=e.offsetHeight-l;if(s||u){var c=nb(e);s-=hb(c,"x"),u-=hb(c,"y"),o.width-=s,o.height-=u}return wb(o)}function _b(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=sb(10),o="HTML"===t.nodeName,i=Eb(e),a=Eb(t),l=ob(e),s=nb(t),u=parseFloat(s.borderTopWidth),c=parseFloat(s.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=wb({top:i.top-a.top-u,left:i.left-a.left-c,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(s.marginTop),p=parseFloat(s.marginLeft);f.top-=u-d,f.bottom-=u-d,f.left-=c-p,f.right-=c-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(f=pb(f,t)),f}function Sb(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=_b(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:db(n),l=t?0:db(n,"left"),s={top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:i};return wb(s)}function Ob(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===nb(e,"position"))return!0;var n=rb(e);return!!n&&Ob(n)}function kb(e){if(!e||!e.parentElement||sb())return document.documentElement;for(var t=e.parentElement;t&&"none"===nb(t,"transform");)t=t.parentElement;return t||document.documentElement}function Cb(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?kb(e):fb(e,ib(t));if("viewport"===r)i=Sb(a,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=ob(rb(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var s=_b(l,a,o);if("HTML"!==l.nodeName||Ob(a))i=s;else{var u=vb(e.ownerDocument),c=u.height,f=u.width;i.top+=s.top-s.marginTop,i.bottom=c+s.top,i.left+=s.left-s.marginLeft,i.right=f+s.left}}var d="number"==typeof(n=n||0);return i.left+=d?n:n.left||0,i.top+=d?n:n.top||0,i.right-=d?n:n.right||0,i.bottom-=d?n:n.bottom||0,i}function Pb(e){return e.width*e.height}function Ab(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Cb(n,r,i,o),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},s=Object.keys(l).map((function(e){return xb({key:e},l[e],{area:Pb(l[e])})})).sort((function(e,t){return t.area-e.area})),u=s.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:s[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function Tb(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?kb(t):fb(t,ib(n));return _b(n,o,r)}function jb(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Ib(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Rb(e,t,n){n=n.split("-")[0];var r=jb(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",l=i?"left":"top",s=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[s]/2-r[s]/2,o[l]=n===l?t[l]-r[u]:t[Ib(l)],o}function Nb(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Db(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Nb(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&tb(n)&&(t.offsets.popper=wb(t.offsets.popper),t.offsets.reference=wb(t.offsets.reference),t=n(t,e))})),t}function Mb(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Tb(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Ab(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Rb(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Db(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Lb(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Fb(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function Bb(){return this.state.isDestroyed=!0,Lb(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Fb("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function zb(e){var t=e.ownerDocument;return t?t.defaultView:window}function Wb(e,t,n,r){n.updateBound=r,zb(e).addEventListener("resize",n.updateBound,{passive:!0});var o=ob(e);return function e(t,n,r,o){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),i||e(ob(a.parentNode),n,r,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Ub(){this.state.eventsEnabled||(this.state=Wb(this.reference,this.options,this.state,this.scheduleUpdate))}function Zb(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return zb(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function Hb(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Gb(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Hb(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Vb=Jy&&/Firefox/i.test(navigator.userAgent);function Kb(e,t,n){var r=Nb(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var $b=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],qb=$b.slice(3);function Yb(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=qb.indexOf(e),r=qb.slice(n+1).concat(qb.slice(0,n));return t?r.reverse():r}var Xb="flip",Jb="clockwise",Qb="counterclockwise";function ex(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=a.indexOf(Nb(a,(function(e){return-1!==e.search(/,|\s/)})));a[l]&&-1===a[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,u=-1!==l?[a.slice(0,l).concat([a[l].split(s)[0]]),[a[l].split(s)[1]].concat(a.slice(l+1))]:[a];return(u=u.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var l=void 0;switch(a){case"%p":l=n;break;case"%":case"%r":default:l=r}return wb(l)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){Hb(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var tx={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,l=-1!==["bottom","top"].indexOf(n),s=l?"left":"top",u=l?"width":"height",c={start:bb({},s,i[s]),end:bb({},s,i[s]+i[u]-a[u])};e.offsets.popper=xb({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,l=r.split("-")[0],s=void 0;return s=Hb(+n)?[+n,0]:ex(n,i,a,l),"left"===l?(i.top+=s[0],i.left-=s[1]):"right"===l?(i.top+=s[0],i.left+=s[1]):"top"===l?(i.left+=s[0],i.top-=s[1]):"bottom"===l&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||ub(e.instance.popper);e.instance.reference===n&&(n=ub(n));var r=Fb("transform"),o=e.instance.popper.style,i=o.top,a=o.left,l=o[r];o.top="",o.left="",o[r]="";var s=Cb(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=l,t.boundaries=s;var u=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<s[e]&&!t.escapeWithReference&&(n=Math.max(c[e],s[e])),bb({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>s[e]&&!t.escapeWithReference&&(r=Math.min(c[n],s[e]-("right"===e?c.width:c.height))),bb({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=xb({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),l=a?"right":"bottom",s=a?"left":"top",u=a?"width":"height";return n[l]<i(r[s])&&(e.offsets.popper[s]=i(r[s])-n[u]),n[s]>i(r[l])&&(e.offsets.popper[s]=i(r[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Kb(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,l=i.reference,s=-1!==["left","right"].indexOf(o),u=s?"height":"width",c=s?"Top":"Left",f=c.toLowerCase(),d=s?"left":"top",p=s?"bottom":"right",h=jb(r)[u];l[p]-h<a[f]&&(e.offsets.popper[f]-=a[f]-(l[p]-h)),l[f]+h>a[p]&&(e.offsets.popper[f]+=l[f]+h-a[p]),e.offsets.popper=wb(e.offsets.popper);var m=l[f]+l[u]/2-h/2,v=nb(e.instance.popper),g=parseFloat(v["margin"+c]),y=parseFloat(v["border"+c+"Width"]),b=m-e.offsets.popper[f]-g-y;return b=Math.max(Math.min(a[u]-h,b),0),e.arrowElement=r,e.offsets.arrow=(bb(n={},f,Math.round(b)),bb(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Lb(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Cb(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Ib(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Xb:a=[r,o];break;case Jb:a=Yb(r);break;case Qb:a=Yb(r,!0);break;default:a=t.behavior}return a.forEach((function(l,s){if(r!==l||a.length===s+1)return e;r=e.placement.split("-")[0],o=Ib(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(c.left)||"right"===r&&f(u.left)<f(c.right)||"top"===r&&f(u.bottom)>f(c.top)||"bottom"===r&&f(u.top)<f(c.bottom),p=f(u.left)<f(n.left),h=f(u.right)>f(n.right),m=f(u.top)<f(n.top),v=f(u.bottom)>f(n.bottom),g="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&v),x=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&p||!y&&"start"===i&&v||!y&&"end"===i&&m),w=b||x;(d||g||w)&&(e.flipped=!0,(d||g)&&(r=a[s+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=xb({},e.offsets.popper,Rb(e.instance.popper,e.offsets.reference,e.placement)),e=Db(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(l?o[a?"width":"height"]:0),e.placement=Ib(t),e.offsets.popper=wb(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Kb(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Nb(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=Nb(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,l=ub(e.instance.popper),s=Eb(l),u={position:o.position},c=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,l=function(e){return e},s=i(o.width),u=i(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?c||f||s%2==u%2?i:a:l,p=t?i:l;return{left:d(s%2==1&&u%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!Vb),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=Fb("transform"),h=void 0,m=void 0;if(m="bottom"===f?"HTML"===l.nodeName?-l.clientHeight+c.bottom:-s.height+c.bottom:c.top,h="right"===d?"HTML"===l.nodeName?-l.clientWidth+c.right:-s.width+c.right:c.left,a&&p)u[p]="translate3d("+h+"px, "+m+"px, 0)",u[f]=0,u[d]=0,u.willChange="transform";else{var v="bottom"===f?-1:1,g="right"===d?-1:1;u[f]=m*v,u[d]=h*g,u.willChange=f+", "+d}var y={"x-placement":e.placement};return e.attributes=xb({},y,e.attributes),e.styles=xb({},u,e.styles),e.arrowStyles=xb({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Gb(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Gb(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Tb(o,t,e,n.positionFixed),a=Ab(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Gb(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},nx=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};gb(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=eb(this.update.bind(this)),this.options=xb({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(xb({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=xb({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return xb({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&tb(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return yb(e,[{key:"update",value:function(){return Mb.call(this)}},{key:"destroy",value:function(){return Bb.call(this)}},{key:"enableEventListeners",value:function(){return Ub.call(this)}},{key:"disableEventListeners",value:function(){return Zb.call(this)}}]),e}();nx.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,nx.placements=$b,nx.Defaults=tx;var rx=nx;function ox(e){return"function"==typeof e?e():e}var ix="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,ax={},lx=r.forwardRef((function(e,t){var n=e.anchorEl,o=e.children,i=e.container,a=e.disablePortal,l=void 0!==a&&a,s=e.keepMounted,u=void 0!==s&&s,c=e.modifiers,f=e.open,d=e.placement,p=void 0===d?"bottom":d,h=e.popperOptions,m=void 0===h?ax:h,v=e.popperRef,g=e.style,y=e.transition,b=void 0!==y&&y,x=(0,Kn.Z)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=r.useRef(null),E=(0,er.Z)(w,t),_=r.useRef(null),S=(0,er.Z)(_,v),O=r.useRef(S);ix((function(){O.current=S}),[S]),r.useImperativeHandle(v,(function(){return _.current}),[]);var k=r.useState(!0),C=k[0],P=k[1],A=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,(0,Pa.Z)()),T=r.useState(A),j=T[0],I=T[1];r.useEffect((function(){_.current&&_.current.update()}));var R=r.useCallback((function(){if(w.current&&n&&f){_.current&&(_.current.destroy(),O.current(null));var e=function(e){I(e.placement)},t=(ox(n),new rx(ox(n),w.current,(0,$n.Z)({placement:A},m,{modifiers:(0,$n.Z)({},l?{}:{preventOverflow:{boundariesElement:"window"}},c,m.modifiers),onCreate:(0,Na.Z)(e,m.onCreate),onUpdate:(0,Na.Z)(e,m.onUpdate)})));O.current(t)}}),[n,l,c,f,A,m]),N=r.useCallback((function(e){(0,ja.Z)(E,e),R()}),[E,R]),D=function(){_.current&&(_.current.destroy(),O.current(null))};if(r.useEffect((function(){return function(){D()}}),[]),r.useEffect((function(){f||b||D()}),[f,b]),!u&&!f&&(!b||C))return null;var M={placement:j};return b&&(M.TransitionProps={in:f,onEnter:function(){P(!1)},onExited:function(){P(!0),D()}}),r.createElement(Ra,{disablePortal:l,container:i},r.createElement("div",(0,$n.Z)({ref:N,role:"tooltip"},x,{style:(0,$n.Z)({position:"fixed",top:0,left:0,display:f||!u||b?null:"none"},g)}),"function"==typeof o?o(M):o))})),sx=(0,$c.Z)(r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ux=(0,$c.Z)(r.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),cx=n(95001);function fx(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function dx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,i=e.limit,a=e.matchFrom,l=void 0===a?"any":a,s=e.stringify,u=e.trim,c=void 0!==u&&u;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,u=c?r.trim():r;o&&(u=u.toLowerCase()),n&&(u=fx(u));var f=e.filter((function(e){var t=(s||a)(e);return o&&(t=t.toLowerCase()),n&&(t=fx(t)),"start"===l?0===t.indexOf(u):t.indexOf(u)>-1}));return"number"==typeof i?f.slice(0,i):f}}function px(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var hx=dx();function mx(e){var t=e.autoComplete,n=void 0!==t&&t,o=e.autoHighlight,i=void 0!==o&&o,a=e.autoSelect,l=void 0!==a&&a,s=e.blurOnSelect,u=void 0!==s&&s,c=e.clearOnBlur,f=void 0===c?!e.freeSolo:c,d=e.clearOnEscape,p=void 0!==d&&d,h=e.componentName,m=void 0===h?"useAutocomplete":h,v=e.debug,g=void 0!==v&&v,y=e.defaultValue,b=void 0===y?e.multiple?[]:null:y,x=e.disableClearable,w=void 0!==x&&x,E=e.disableCloseOnSelect,_=void 0!==E&&E,S=e.disabledItemsFocusable,O=void 0!==S&&S,k=e.disableListWrap,C=void 0!==k&&k,P=e.filterOptions,A=void 0===P?hx:P,T=e.filterSelectedOptions,j=void 0!==T&&T,I=e.freeSolo,R=void 0!==I&&I,N=e.getOptionDisabled,D=e.getOptionLabel,M=void 0===D?function(e){return e}:D,L=e.getOptionSelected,F=void 0===L?function(e,t){return e===t}:L,B=e.groupBy,z=e.handleHomeEndKeys,W=void 0===z?!e.freeSolo:z,U=e.id,Z=e.includeInputInList,H=void 0!==Z&&Z,G=e.inputValue,V=e.multiple,K=void 0!==V&&V,$=e.onChange,q=e.onClose,Y=e.onHighlightChange,X=e.onInputChange,J=e.onOpen,Q=e.open,ee=e.openOnFocus,te=void 0!==ee&&ee,ne=e.options,re=e.selectOnFocus,oe=void 0===re?!e.freeSolo:re,ie=e.value,ae=(0,cx.Z)(U),le=M;var se=r.useRef(!1),ue=r.useRef(!0),ce=r.useRef(null),fe=r.useRef(null),de=r.useState(null),pe=de[0],he=de[1],me=r.useState(-1),ve=me[0],ge=me[1],ye=i?0:-1,be=r.useRef(ye),xe=(0,Gc.Z)({controlled:ie,default:b,name:m}),we=(0,Ya.Z)(xe,2),Ee=we[0],_e=we[1],Se=(0,Gc.Z)({controlled:G,default:"",name:m,state:"inputValue"}),Oe=(0,Ya.Z)(Se,2),ke=Oe[0],Ce=Oe[1],Pe=r.useState(!1),Ae=Pe[0],Te=Pe[1],je=(0,tr.Z)((function(e,t){var n;if(K)n="";else if(null==t)n="";else{var r=le(t);n="string"==typeof r?r:""}ke!==n&&(Ce(n),X&&X(e,n,"reset"))}));r.useEffect((function(){je(null,Ee)}),[Ee,je]);var Ie=(0,Gc.Z)({controlled:Q,default:!1,name:m,state:"open"}),Re=(0,Ya.Z)(Ie,2),Ne=Re[0],De=Re[1],Me=!K&&null!=Ee&&ke===le(Ee),Le=Ne,Fe=Le?A(ne.filter((function(e){return!j||!(K?Ee:[Ee]).some((function(t){return null!==t&&F(e,t)}))})),{inputValue:Me?"":ke,getOptionLabel:le}):[],Be=(0,tr.Z)((function(e){-1===e?ce.current.focus():pe.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));r.useEffect((function(){K&&ve>Ee.length-1&&(ge(-1),Be(-1))}),[Ee,K,ve,Be]);var ze=(0,tr.Z)((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(be.current=n,-1===n?ce.current.removeAttribute("aria-activedescendant"):ce.current.setAttribute("aria-activedescendant","".concat(ae,"-option-").concat(n)),Y&&Y(t,-1===n?null:Fe[n],o),fe.current){var i=fe.current.querySelector("[data-focus]");i&&i.removeAttribute("data-focus");var a=fe.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var l=fe.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==o)){var s=l,u=a.clientHeight+a.scrollTop,c=s.offsetTop+s.offsetHeight;c>u?a.scrollTop=c-a.clientHeight:s.offsetTop-s.offsetHeight*(B?1.3:0)<a.scrollTop&&(a.scrollTop=s.offsetTop-s.offsetHeight*(B?1.3:0))}}else a.scrollTop=0}})),We=(0,tr.Z)((function(e){var t=e.event,r=e.diff,o=e.direction,i=void 0===o?"next":o,a=e.reason,l=void 0===a?"auto":a;if(Le){var s=function(e,t){if(!fe.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===Fe.length||"previous"===t&&-1===n)return-1;var r=fe.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!O&&(r&&(r.disabled||"true"===r.getAttribute("aria-disabled")));if(!(r&&!r.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}(function(){var e=Fe.length-1;if("reset"===r)return ye;if("start"===r)return 0;if("end"===r)return e;var t=be.current+r;return t<0?-1===t&&H?-1:C&&-1!==be.current||Math.abs(r)>1?0:e:t>e?t===e+1&&H?-1:C||Math.abs(r)>1?e:0:t}(),i);if(ze({index:s,reason:l,event:t}),n&&"reset"!==r)if(-1===s)ce.current.value=ke;else{var u=le(Fe[s]);ce.current.value=u,0===u.toLowerCase().indexOf(ke.toLowerCase())&&ke.length>0&&ce.current.setSelectionRange(ke.length,u.length)}}})),Ue=r.useCallback((function(){if(Le){var e=K?Ee[0]:Ee;if(0!==Fe.length&&null!=e){if(fe.current)if(j||null==e)be.current>=Fe.length-1?ze({index:Fe.length-1}):ze({index:be.current});else{var t=Fe[be.current];if(K&&t&&-1!==px(Ee,(function(e){return F(t,e)})))return;var n=px(Fe,(function(t){return F(t,e)}));-1===n?We({diff:"reset"}):ze({index:n})}}else We({diff:"reset"})}}),[0===Fe.length,!K&&Ee,j,We,ze,Le,ke,K]),Ze=(0,tr.Z)((function(e){(0,ja.Z)(fe,e),e&&Ue()}));r.useEffect((function(){Ue()}),[Ue]);var He=function(e){Ne||(De(!0),J&&J(e))},Ge=function(e,t){Ne&&(De(!1),q&&q(e,t))},Ve=function(e,t,n,r){Ee!==t&&($&&$(e,t,n,r),_e(t))},Ke=r.useRef(!1),$e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=n,i=t;if(K){var a=px(i=Array.isArray(Ee)?Ee.slice():[],(function(e){return F(t,e)}));-1===a?i.push(t):"freeSolo"!==r&&(i.splice(a,1),o="remove-option")}je(e,i),Ve(e,i,o,{option:t}),_||Ge(e,o),(!0===u||"touch"===u&&Ke.current||"mouse"===u&&!Ke.current)&&ce.current.blur()};var qe=function(e,t){if(K){Ge(e,"toggleInput");var n=ve;-1===ve?""===ke&&"previous"===t&&(n=Ee.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Ee.length||"previous"===t&&-1===n)return-1;var r=pe.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ge(n),Be(n)}},Ye=function(e){se.current=!0,Ce(""),X&&X(e,"","clear"),Ve(e,K?[]:null,"clear")},Xe=function(e){return function(t){switch(-1!==ve&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ge(-1),Be(-1)),t.key){case"Home":Le&&W&&(t.preventDefault(),We({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Le&&W&&(t.preventDefault(),We({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),We({diff:-5,direction:"previous",reason:"keyboard",event:t}),He(t);break;case"PageDown":t.preventDefault(),We({diff:5,direction:"next",reason:"keyboard",event:t}),He(t);break;case"ArrowDown":t.preventDefault(),We({diff:1,direction:"next",reason:"keyboard",event:t}),He(t);break;case"ArrowUp":t.preventDefault(),We({diff:-1,direction:"previous",reason:"keyboard",event:t}),He(t);break;case"ArrowLeft":qe(t,"previous");break;case"ArrowRight":qe(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==be.current&&Le){var r=Fe[be.current],o=!!N&&N(r);if(t.preventDefault(),o)return;$e(t,r,"select-option"),n&&ce.current.setSelectionRange(ce.current.value.length,ce.current.value.length)}else R&&""!==ke&&!1===Me&&(K&&t.preventDefault(),$e(t,ke,"create-option","freeSolo"));break;case"Escape":Le?(t.preventDefault(),t.stopPropagation(),Ge(t,"escape")):p&&(""!==ke||K&&Ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Ye(t));break;case"Backspace":if(K&&""===ke&&Ee.length>0){var i=-1===ve?Ee.length-1:ve,a=Ee.slice();a.splice(i,1),Ve(t,a,"remove-option",{option:Ee[i]})}}e.onKeyDown&&e.onKeyDown(t)}},Je=function(e){Te(!0),te&&!se.current&&He(e)},Qe=function(e){null===fe.current||document.activeElement!==fe.current.parentElement?(Te(!1),ue.current=!0,se.current=!1,g&&""!==ke||(l&&-1!==be.current&&Le?$e(e,Fe[be.current],"blur"):l&&R&&""!==ke?$e(e,ke,"blur","freeSolo"):f&&je(e,Ee),Ge(e,"blur"))):ce.current.focus()},et=function(e){var t=e.target.value;ke!==t&&(Ce(t),X&&X(e,t,"input")),""===t?w||K||Ve(e,null,"clear"):He(e)},tt=function(e){ze({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},nt=function(){Ke.current=!0},rt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));$e(e,Fe[t],"select-option"),Ke.current=!1},ot=function(e){return function(t){var n=Ee.slice();n.splice(e,1),Ve(t,n,"remove-option",{option:Ee[e]})}},it=function(e){Ne?Ge(e,"toggleInput"):He(e)},at=function(e){e.target.getAttribute("id")!==ae&&e.preventDefault()},lt=function(){ce.current.focus(),oe&&ue.current&&ce.current.selectionEnd-ce.current.selectionStart==0&&ce.current.select(),ue.current=!1},st=function(e){""!==ke&&Ne||it(e)},ut=R&&ke.length>0;ut=ut||(K?Ee.length>0:null!==Ee);var ct=Fe;if(B){new Map;ct=Fe.reduce((function(e,t,n){var r=B(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,$n.Z)({"aria-owns":Le?"".concat(ae,"-popup"):null,role:"combobox","aria-expanded":Le},e,{onKeyDown:Xe(e),onMouseDown:at,onClick:lt})},getInputLabelProps:function(){return{id:"".concat(ae,"-label"),htmlFor:ae}},getInputProps:function(){return{id:ae,value:ke,onBlur:Qe,onFocus:Je,onChange:et,onMouseDown:st,"aria-activedescendant":Le?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Le?"".concat(ae,"-popup"):null,autoComplete:"off",ref:ce,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Ye}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:it}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:ot(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(ae,"-popup"),"aria-labelledby":"".concat(ae,"-label"),ref:Ze,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=(K?Ee:[Ee]).some((function(e){return null!=e&&F(n,e)})),o=!!N&&N(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(ae,"-option-").concat(t),onMouseOver:tt,onClick:rt,onTouchStart:nt,"data-option-index":t,"aria-disabled":o,"aria-selected":r}},id:ae,inputValue:ke,value:Ee,dirty:ut,popupOpen:Le,focused:Ae||-1!==ve,anchorEl:pe,setAnchorEl:he,focusedTag:ve,groupedOptions:ct}}function vx(e){e.anchorEl,e.open;var t=(0,Kn.Z)(e,["anchorEl","open"]);return r.createElement("div",t)}var gx=r.createElement(sx,{fontSize:"small"}),yx=r.createElement(ux,null),bx=r.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,o=e.ChipProps,i=e.classes,a=e.className,l=e.clearOnBlur,s=(void 0===l&&e.freeSolo,e.clearOnEscape,e.clearText),u=void 0===s?"Clear":s,c=e.closeIcon,f=void 0===c?gx:c,d=e.closeText,p=void 0===d?"Close":d,h=(e.debug,e.defaultValue),m=(void 0===h&&e.multiple,e.disableClearable),v=void 0!==m&&m,g=(e.disableCloseOnSelect,e.disabled),y=void 0!==g&&g,b=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),x=void 0!==b&&b,w=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),E=void 0===w?"auto":w,_=e.freeSolo,S=void 0!==_&&_,O=e.fullWidth,k=void 0!==O&&O,C=e.getLimitTagsText,P=void 0===C?function(e){return"+".concat(e)}:C,A=(e.getOptionDisabled,e.getOptionLabel),T=void 0===A?function(e){return e}:A,j=(e.getOptionSelected,e.groupBy),I=e.handleHomeEndKeys,R=(void 0===I&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),N=void 0===R?-1:R,D=e.ListboxComponent,M=void 0===D?"ul":D,L=e.ListboxProps,F=e.loading,B=void 0!==F&&F,z=e.loadingText,W=void 0===z?"Loading…":z,U=e.multiple,Z=void 0!==U&&U,H=e.noOptionsText,G=void 0===H?"No options":H,V=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),K=void 0===V?"Open":V,$=(e.options,e.PaperComponent),q=void 0===$?dl:$,Y=e.PopperComponent,X=void 0===Y?lx:Y,J=e.popupIcon,Q=void 0===J?yx:J,ee=e.renderGroup,te=e.renderInput,ne=e.renderOption,re=e.renderTags,oe=e.selectOnFocus,ie=(void 0===oe&&e.freeSolo,e.size),ae=void 0===ie?"medium":ie,le=(e.value,(0,Kn.Z)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),se=x?vx:X,ue=mx((0,$n.Z)({},e,{componentName:"Autocomplete"})),ce=ue.getRootProps,fe=ue.getInputProps,de=ue.getInputLabelProps,pe=ue.getPopupIndicatorProps,he=ue.getClearProps,me=ue.getTagProps,ve=ue.getListboxProps,ge=ue.getOptionProps,ye=ue.value,be=ue.dirty,xe=ue.id,we=ue.popupOpen,Ee=ue.focused,_e=ue.focusedTag,Se=ue.anchorEl,Oe=ue.setAnchorEl,ke=ue.inputValue,Ce=ue.groupedOptions;if(Z&&ye.length>0){var Pe=function(e){return(0,$n.Z)({className:(0,Xn.Z)(i.tag,"small"===ae&&i.tagSizeSmall),disabled:y},me(e))};n=re?re(ye,Pe):ye.map((function(e,t){return r.createElement(Ny,(0,$n.Z)({label:T(e),size:ae},Pe({index:t}),o))}))}if(N>-1&&Array.isArray(n)){var Ae=n.length-N;!Ee&&Ae>0&&(n=n.splice(0,N)).push(r.createElement("span",{className:i.tag,key:n.length},P(Ae)))}var Te=ee||function(e){return r.createElement("li",{key:e.key},r.createElement(Ty,{className:i.groupLabel,component:"div"},e.group),r.createElement("ul",{className:i.groupUl},e.children))},je=ne||T,Ie=function(e,t){var n=ge({option:e,index:t});return r.createElement("li",(0,$n.Z)({},n,{className:i.option}),je(e,{selected:n["aria-selected"],inputValue:ke}))},Re=!v&&!y,Ne=(!S||!0===E)&&!1!==E;return r.createElement(r.Fragment,null,r.createElement("div",(0,$n.Z)({ref:t,className:(0,Xn.Z)(i.root,a,Ee&&i.focused,k&&i.fullWidth,Re&&i.hasClearIcon,Ne&&i.hasPopupIcon)},ce(le)),te({id:xe,disabled:y,fullWidth:!0,size:"small"===ae?"small":void 0,InputLabelProps:de(),InputProps:{ref:Oe,className:i.inputRoot,startAdornment:n,endAdornment:r.createElement("div",{className:i.endAdornment},Re?r.createElement(jl,(0,$n.Z)({},he(),{"aria-label":u,title:u,className:(0,Xn.Z)(i.clearIndicator,be&&i.clearIndicatorDirty)}),f):null,Ne?r.createElement(jl,(0,$n.Z)({},pe(),{disabled:y,"aria-label":we?p:K,title:we?p:K,className:(0,Xn.Z)(i.popupIndicator,we&&i.popupIndicatorOpen)}),Q):null)},inputProps:(0,$n.Z)({className:(0,Xn.Z)(i.input,-1===_e&&i.inputFocused),disabled:y},fe())})),we&&Se?r.createElement(se,{className:(0,Xn.Z)(i.popper,x&&i.popperDisablePortal),style:{width:Se?Se.clientWidth:null},role:"presentation",anchorEl:Se,open:!0},r.createElement(q,{className:i.paper},B&&0===Ce.length?r.createElement("div",{className:i.loading},W):null,0!==Ce.length||S||B?null:r.createElement("div",{className:i.noOptions},G),Ce.length>0?r.createElement(M,(0,$n.Z)({className:i.listbox},ve(),L),Ce.map((function(e,t){return j?Te({key:e.key,group:e.group,children:e.options.map((function(t,n){return Ie(t,e.index+n)}))}):Ie(e,t)}))):null)):null)})),xx=(0,Jn.Z)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,$n.Z)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,Ca.Z)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,Ca.Z)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,Ca.Z)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,Ca.Z)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,Ca.Z)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(bx);function wx(){return(wx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ex(Object(n),!0).forEach((function(t){Sx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ex(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ox(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cx(e){var t=e.value,n=e.onChange,o=Ox((0,r.useState)(t?t.split(" "):[]),2),i=o[0],a=o[1],l=Ox((0,r.useState)(!1),2),s=l[0],u=l[1];return(0,r.useEffect)((function(){a(t?t.split(" "):[])}),[t]),r.createElement(xx,{multiple:!0,size:"small",id:"tags-outlined",clearText:H("utils.clear"),"data-testid":"button-action-rel",options:["noreferrer","nofollow","noopener","help","prev","next","external","alternate"],getOptionLabel:function(e){return e},value:i,filterSelectedOptions:!0,disableCloseOnSelect:!0,freeSolo:!0,onOpen:function(){return u(!0)},onClose:function(){u(!1),n(i.length>0?i.join(" "):"unset")},onChange:function(e,t){a(t),s||n(t.length>0?t.join(" "):"unset")},forcePopupIcon:!0,popupIcon:r.createElement("i",{className:"fas fa-caret-down",style:{fontSize:"0.8em"},"data-testid":"button-action-rel-select-icon"}),renderInput:function(e){return r.createElement(sf,wx({},e,{variant:"outlined",label:H("settings.button_action.rel_attributes.title"),placeholder:H("settings.button_action.rel_attributes.placeholder"),helperText:r.createElement(uf,{articleId:519,setting:H("settings.button_action.rel_attributes.title"),size:"small"}),InputProps:_x(_x({},e.InputProps),{},{"data-testid":"button-action-rel-input"})}))}})}function Px(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ax(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ax(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ax(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tx(e){var t=e.value,n=void 0===t?"":t,o=e.placeholder,i=void 0===o?"":o,a=e.paragraph,l=e.showNewTab,s=void 0!==l&&l,u=e.newTabValue,c=e.showRelAttributes,f=void 0!==c&&c,d=e.relAttributesValue,p=e.onChange,h=Px((0,r.useState)(!1),2),m=h[0],v=h[1];return(0,r.useEffect)((function(){v(Xy(n)&&(-1===n.indexOf("https://")||-1===n.indexOf("http://")))}),[]),r.createElement("div",{className:"button-action-value"},r.createElement(sf,{variant:"outlined",fullWidth:!0,value:n,label:i,helperText:m&&[r.createElement("p",{key:0},H("settings.button_action.actions.url.invalid")),r.createElement("p",{key:1,dangerouslySetInnerHTML:{__html:H("settings.button_action.actions.url.invalid_tip")}})],FormHelperTextProps:{component:"span","data-testid":"button-action-value-error"},error:m,onChange:function(e){p(e.target.value)},onBlur:function(e){v(Xy(n)&&(-1===e.target.value.indexOf("https://")||-1===e.target.value.indexOf("http://")))},inputProps:{"data-testid":"action:field"}}),s&&r.createElement(Gy,{value:u,onChange:function(e){p(e,"action_new_tab")}}),f&&r.createElement(Cx,{value:d,onChange:function(e){return p(e,"action_rel_attributes")}}),a?r.createElement("p",{dangerouslySetInnerHTML:{__html:a}}):r.createElement(r.Fragment,null))}var jx=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,l=e.disableShrink,s=void 0!==l&&l,u=e.size,c=void 0===u?40:u,f=e.style,d=e.thickness,p=void 0===d?3.6:d,h=e.value,m=void 0===h?0:h,v=e.variant,g=void 0===v?"indeterminate":v,y=(0,Kn.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),b={},x={},w={};if("determinate"===g||"static"===g){var E=2*Math.PI*((44-p)/2);b.strokeDasharray=E.toFixed(3),w["aria-valuenow"]=Math.round(m),b.strokeDashoffset="".concat(((100-m)/100*E).toFixed(3),"px"),x.transform="rotate(-90deg)"}return r.createElement("div",(0,$n.Z)({className:(0,Xn.Z)(n.root,o,"inherit"!==a&&n["color".concat((0,xr.Z)(a))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[g]),style:(0,$n.Z)({width:c,height:c},x,f),ref:t,role:"progressbar"},w,y),r.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},r.createElement("circle",{className:(0,Xn.Z)(n.circle,s&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[g]),style:b,cx:44,cy:44,r:(44-p)/2,fill:"none",strokeWidth:p})))})),Ix=(0,Jn.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(jx);function Rx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rx(Object(n),!0).forEach((function(t){Dx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mx(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lx(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var Fx=function(e){return function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Lx(i,r,o,a,l,"next",e)}function l(e){Lx(i,r,o,a,l,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Vn.getState().wp.loaded[e]){t.next=2;break}return t.abrupt("return");case 2:n({type:O.wp.GET_DATA_BEGIN,payload:{type:e}});try{Y("/page_rules/".concat(e,"?nonce=").concat(buttonizer_admin.nonce),{method:"GET"}).then((function(t){var r=t.data,o=Mx(t,["data"]);r.success?n({type:O.wp.GET_DATA_SUCCESS,payload:{data:r.data,type:e}}):n({type:O.wp.GET_DATA_FAILURE,payload:{error:Nx({data:r},o)}})})).catch((function(e){n({type:O.wp.GET_DATA_FAILURE,payload:{error:e}})})).finally((function(){n({type:O.wp.GET_DATA_END,payload:{type:e}})}))}catch(e){n({type:O.wp.GET_DATA_FAILURE,payload:{error:e}})}case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};function Bx(){return(Bx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zx(Object(n),!0).forEach((function(t){Ux(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ux(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hx(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Gx=sa((function(e){return{pagesLoaded:e.wp.loaded.pages,pagesLoading:e.wp.loading.pages}}),(function(e){return{getData:function(){return Fx.apply(void 0,arguments)(e)}}}))((function(e){var t=e.getData,n=e.value,o=e.newTabValue,i=e.onChange,a=e.pagesLoaded,l=e.pagesLoading,s=Zx((0,r.useState)(!1),2),u=s[0],c=s[1],f=Zx((0,r.useState)(null),2),d=f[0],p=f[1];return u||store.getState().wp.loaded.pages||store.getState().wp.loading.pages||(c(!0),t("pages")),(0,r.useEffect)((function(){a&&(c(!1),p(function(e,t){var n=null;return e?(t.forEach((function(t){t.id==e&&(n=t)})),n):null}(n,store.getState().wp.data.pages)))}),[a,l]),r.createElement(r.Fragment,null,r.createElement(xx,{disableClearable:!0,id:"pages-action-input","data-testid":"action:pages-action-input",options:u?[]:store.getState().wp.data.pages,loadingText:H("loading.loading"),getOptionLabel:function(e){return d&&e.id==d.id?"".concat(e.type,": ").concat(e.name):e.name},openOnFocus:!0,blurOnSelect:!0,value:d,style:{marginBottom:10},loading:u,groupBy:function(e){return e.type},onChange:function(e,t){p(t),i(t.id,"action")},noOptionsText:H("utils.search_not_found"),renderInput:function(e){return r.createElement(sf,Bx({},e,{variant:"outlined",label:H("settings.button_action.actions.page.name"),placeholder:H("settings.button_action.actions.page.placeholder"),disabled:u,helperText:H("settings.button_action.actions.page.helper"),InputProps:Wx(Wx({},e.InputProps),{},{"data-testid":"action:autocomplete-input",endAdornment:r.createElement(r.Fragment,null,u?r.createElement(Ix,{color:"primary",size:20}):null,e.InputProps.endAdornment)})}))}}),r.createElement(Gy,{value:o,onChange:function(e){i(e,"action_new_tab")}}),r.createElement(uf,{articleId:580,setting:H("settings.button_action.actions.page.name")}))}));function Vx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kx(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qx=sa((function(e){return{buttons:e.buttons}}),null,(function(e,t,n){var r=e.buttons,o=n.id,i=Kx(n,["id"]);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vx(Object(n),!0).forEach((function(t){$x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({button:r[o]},i)}))((function(e){var t,n=e.type,o=e.button,i=e.onChange;switch(n){case"mail":return r.createElement(Cy,{value:o.action,subject:o.text_subject,cc:o.text_cc,bcc:o.text_bcc,body:o.text_body,onChange:function(e,t){i(e,t)}});case"phone":return r.createElement(Vy,{value:o.action,placeholder:H("settings.button_action.actions.phone_number.number"),check:/^\+?\d+$/,checkText:H("settings.button_action.actions.phone_number.invalid"),onChange:function(e,t){i(e,t)}});case"whatsapp":return r.createElement(Py,{value:o.action,body:o.text_body,onChange:function(e,t){i(e,t)}});case"page":return r.createElement(Gx,{value:o.action,newTabValue:o.action_new_tab,onChange:function(e,t){i(e,t)}});case"url":return r.createElement(Tx,{value:o.action,placeholder:"https://www.domain.ltd/page",showNewTab:!0,newTabValue:o.action_new_tab,showRelAttributes:!0,relAttributes:o.action_rel_attributes,onChange:function(e,t){i(e,t)}});case"socialsharing":return r.createElement(Fy,{value:o.action,body:o.text_body,onChange:function(e,t){i(e,t)}});case"sms":return r.createElement(By,{value:o.action,body:o.text_body,onChange:function(e,t){i(e,t)}});case"messenger_chat":return r.createElement(Yy,{data:o,buttonId:o.id,onChange:function(e,t){i(e,t)}});case"messenger":return r.createElement(Tx,{value:o.action,placeholder:"https://m.me/YOUR-PAGE-NAME",onChange:function(e,t){i(e,t)}});case"twitter_dm":return r.createElement(zy,{value:o.action,body:o.text_body,onChange:function(e,t){i(e,t)}});case"line":return r.createElement(Vy,{value:o.action,placeholder:"LINE ID",onChange:function(e,t){i(e,t)}});case"viber":return r.createElement(Vy,{value:o.action,placeholder:"+00123456789",check:/^\+?\d+$/,checkText:H("settings.button_action.actions.phone_number.invalid"),paragraph:H("settings.button_action.actions.viber"),onChange:function(e,t){i(e,t)}});case"facebook":return r.createElement(Vy,($x(t={value:o.action,placeholder:"Facebook username or page"},"value",o.action),$x(t,"onChange",(function(e,t){i(e,t)})),t));case"linkedin":return r.createElement(Vy,{value:o.action,placeholder:'"company/COMPANY-NAME" '+H("common.or")+' "in/USERNAME"',onChange:function(e,t){i(e,t)}});case"waze":return r.createElement(Vy,{value:o.action,placeholder:"https://www.waze.com/ul?q=Netherlands",onChange:function(e,t){i(e,t)}});case"poptin":return r.createElement(r.Fragment,null,r.createElement(Tx,{value:o.action,placeholder:"https://app.popt.in/APIRequest/click/0c768294b0605",paragraph:H("settings.button_action.actions.poptin"),onChange:function(e,t){i(e,t)}}),r.createElement(uf,{articleId:169,setting:"Poptin"}));case"elementor_popup":return r.createElement(Wy,{value:o.action,type:n,button:o,onChange:function(e,t){i(e,t)}});case"popup_maker":return r.createElement(Uy,{value:o.action,onChange:function(e,t){i(e,t)}});case"popups":return r.createElement("p",{className:"button-action-value",dangerouslySetInnerHTML:{__html:H("settings.button_action.actions.action_discontinued","Popups - Wordpress Popups","WP Popups – WordPress Popup builder","https://wordpress.org/plugins/wp-popups-lite/")}});case"wppopups":return r.createElement(Vy,{value:o.action,placeholder:"ID/Trigger class",onChange:function(e,t){i(e,t)}});case"skype":case"telegram":case"twitter":case"snapchat":case"instagram":case"vk":return r.createElement(Vy,{value:o.action,placeholder:H("settings.button_action.placeholders.username"),onChange:function(e,t){i(e,t)}});case"signal_group":return r.createElement(Tx,{value:o.action,placeholder:"https://signal.group/[group-id]",onChange:function(e,t){i(e,t)},paragraph:H("settings.button_action.actions.signal_group_info")});case"javascript_pro":return r.createElement(Er,{variant:"contained",color:"primary",fullWidth:!0,style:{marginBottom:"10px"},disabled:!0},"Javascript function is for Pro only");default:return r.createElement(r.Fragment,null)}}));function Yx(e){return function(e){if(Array.isArray(e))return Xx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Xx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xx(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jx(Object(n),!0).forEach((function(t){ew(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ew(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tw=[{value:"url",label:H("settings.button_action.actions.url.name")},{value:"page",label:H("settings.button_action.actions.page.name")},{value:"phone",label:H("settings.button_action.actions.phone_number.name")},{value:"mail",label:H("settings.button_action.actions.mail.name")},{value:"whatsapp",label:H("settings.button_action.actions.whatsapp_chat")},{value:"backtotop",label:H("settings.button_action.actions.back_to_top")},{value:"gotobottom",label:H("settings.button_action.actions.go_to_bottom")},{value:"gobackpage",label:H("settings.button_action.actions.go_back_one_page")},{value:"javascript_pro",label:H("settings.button_action.actions.javascript.name"),isPro:!0},{value:"socialsharing",label:H("settings.button_action.actions.social_sharing.social_sharing")}].map((function(e){return Qx(Qx({},e),{},{group:"popular"})})),nw=[{value:"sms",label:H("settings.button_action.actions.chat.sms")},{value:"messenger_chat",label:H("settings.button_action.actions.chat.messenger_chat")},{value:"messenger",label:H("settings.button_action.actions.chat.messenger_link")},{value:"twitter_dm",label:H("settings.button_action.actions.chat.twitter_dm")},{value:"skype",label:H("settings.button_action.actions.chat.skype")},{value:"line",label:H("settings.button_action.actions.chat.line")},{value:"telegram",label:H("settings.button_action.actions.chat.telegram")},{value:"viber",label:H("settings.button_action.actions.chat.viber")},{value:"signal_group",label:H("settings.button_action.actions.chat.signal_group")}].map((function(e){return Qx(Qx({},e),{},{group:"chat"})})),rw=[{value:"facebook",label:H("settings.button_action.actions.social_media.facebook")},{value:"twitter",label:H("settings.button_action.actions.social_media.twitter")},{value:"instagram",label:H("settings.button_action.actions.social_media.instagram")},{value:"snapchat",label:H("settings.button_action.actions.social_media.snapchat")},{value:"linkedin",label:H("settings.button_action.actions.social_media.linkedin")},{value:"vk",label:H("settings.button_action.actions.social_media.vk")},{value:"waze",label:H("settings.button_action.actions.social_media.waze")}].map((function(e){return Qx(Qx({},e),{},{group:"social_media"})})),ow=[{value:"poptin",label:"Poptin"},{value:"elementor_popup",label:"Elementor Popup"},{value:"popup_maker",label:"Popup Maker"},{value:"popups",label:"Popups - WordPress Popup"},{value:"wppopups",label:"WP Popups - WordPress Popup builder"}].map((function(e){return Qx(Qx({},e),{},{group:"popup"})})),iw=[{value:"clipboard",label:H("settings.button_action.actions.clipboard")},{value:"print",label:H("settings.button_action.actions.print_page")}].map((function(e){return Qx(Qx({},e),{},{group:"actions"})})),aw=[].concat(Yx(tw),Yx(nw),Yx(rw),Yx(ow),Yx(iw));function lw(){return(lw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uw(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cw(e){var t=null;return aw.forEach((function(n){t||n.value!=e||(t=n)})),t||aw[0]}function fw(e){var t=e.actionType,n=void 0===t?"":t,o=e.id,i=e.onChange,a=sw((0,r.useState)(cw(n)),2),l=a[0],s=a[1],u=sw((0,r.useState)({open:!1}),2),c=u[0],f=u[1];return(0,r.useEffect)((function(){s(cw(n))}),[n]),r.createElement("div",{className:"button-action","data-testid":"button-action"},r.createElement(Al,{open:c.open,title:H("settings.button_action.actions.javascript.warning_modal_title"),icon:r.createElement("i",{className:"fas fa-exclamation window-icon"}),className:"warning",onClose:function(e){"confirm"===e&&(i("type",c.action),i("action","")),f({open:!1,action:null})},buttons:[{value:"cancel",text:H("modal.changed_my_mind")},{value:"confirm",text:H("modal.yes_please"),variant:"contained"}],testId:"button-action-javascript-dialog"},r.createElement("p",null,H("settings.button_action.actions.javascript.warning_intro")),r.createElement("p",null,H("settings.button_action.actions.javascript.warning_question"))),r.createElement(xx,{id:"button-action-selector","data-testid":"setting:button-action-select",options:aw,defaultValue:"url",value:l,disableClearable:!0,openOnFocus:!0,blurOnSelect:!0,className:"button-action-type",onChange:function(e,t){"javascript_pro"!==n||"javascript_pro"===t.value?("page"===n&&i("action",""),s(t),i("type",t.value)):f({open:!0,action:t.value})},getOptionLabel:function(e){return e.isPro&&!app.hasPremium()?"".concat(e.label," (PRO)"):e.label},getOptionDisabled:function(e){return e.isPro&&!app.hasPremium()},groupBy:function(e){return H("settings.button_action.actions.group_".concat(e.group))},noOptionsText:H("utils.search_not_found"),renderInput:function(e){return r.createElement(sf,lw({},e,{label:H("settings.button_action.title"),variant:"outlined"}))}}),r.createElement("div",{"data-testid":"button-action-value"},r.createElement(qx,{id:o,type:n,onChange:function(e,t){return i(t||"action",e)}})))}var dw=n(59528),pw=n.n(dw),hw=n(91747),mw=n.n(hw);function vw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{excludeSelf:!1};if(void 0===t||void 0===e)throw console.log("record: "+t),console.log("key: "+e),TypeError("'record' argument or 'key' argument of type undefined");var a=t[e];if(!pw().formatted.includes(e))return null==a?r?gw(r,e,n,o[e]):"":a;var l=o?T.normal_hover.parse(o[e]):[];if(null==a)return r?yw(r,e,n,[],l):["",""];var s=T.normal_hover.parse(a);return r?yw(r,e,n,s,l,i):vn()(["",""],s)}function gw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=vn()({},pw(),pw().menuStyle[n]);if(Object.keys(o).includes(e))return Object.keys(o[e]).includes(t)?null==o[e][t]?r:o[e][t]:"";console.error("model ".concat(e," not familiar"))}function yw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=vn()({},pw(),pw().menuStyle[n]);if(Object.keys(a).includes(e)){if(!Object.keys(a[e]).includes(t))return["",""];var l=a[e][t];return"group"===e?bw(r,l,i):"button"===e?xw(r,o,l,i):void 0}console.error("model ".concat(e," not familiar"))}function bw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.excludeSelf,o=void 0!==r&&r,i=[e,t,[e[0],e[0]],[t[0],t[0]]];return o&&i.shift(),mw().apply(void 0,i)}function xw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.excludeSelf,i=void 0!==o&&o,a=[e,t,[void 0,e[0]],n,[void 0,t[0]],[void 0,n[0]]];return i&&a.shift(),mw().apply(void 0,a)}function ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ew(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ow(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ow(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ow(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kw=sa((function(e){return{buttons:e.buttons,groups:e.groups}}),(function(e){return{_set:function(){return e(ne.apply(void 0,arguments))}}}),(function(e,t,n){var r=e.buttons,o=e.groups,i=t._set,a=n.buttonId,l=_w(n,["buttonId"]),s=r[a],u=o[s.parent];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ww(Object(n),!0).forEach((function(t){Ew(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({set:function(e,t){return i(C,a,e,t)},setParent:function(e,t){return i(P,u.id,e,t)},get:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return vw(e,s,u.menu_style,!!t&&"button")}},l)}))((function(e){var t=e.set,n=e.get,o=Sw((0,r.useState)("general"),2),i=o[0],a=o[1];return r.createElement("div",null,r.createElement(my,{title:H("settings.setting_categories.general"),opened:"general"===i,onSetIsOpened:function(e){return a(e?"general":"")},"data-testid":"group:general"},r.createElement("div",{className:"setting-group-title"},H("settings.button_action.title")),r.createElement("hr",null),r.createElement(fw,{actionType:n("type",!0),id:n("id"),onChange:function(e,n){return t(e,n)}}),r.createElement("div",{className:"setting-group-title"},H("settings.show_mobile_desktop.device_visibility")),r.createElement("hr",null),r.createElement(wy,{mobile:1==n("show_mobile"),desktop:1==n("show_desktop"),onChange:function(e,n){return t(e,n)}})),r.createElement(my,{title:H("settings.label.title"),opened:"label"===i,onSetIsOpened:function(e){return a(e?"label":"")},"data-testid":"group:label"},r.createElement("div",{className:"setting-group-title"},H("settings.setting_categories.label")),r.createElement("hr",null),r.createElement(Sy,{value:n("label"),onChange:function(e){if(""===e)return t("label","unset");t("label",e)},placeholder:""})))})),Cw="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Pw(e){cancelAnimationFrame(e.id)}function Aw(e,t){var n=Cw();var r={id:requestAnimationFrame((function o(){Cw()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Tw=-1;var jw=null;function Iw(e){if(void 0===e&&(e=!1),null===jw||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?jw="positive-descending":(t.scrollLeft=1,jw=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),jw}return jw}var Rw=function(e){var t=e.columnIndex;e.data;return e.rowIndex+":"+t};function Nw(e){var t,n,o=e.getColumnOffset,i=e.getColumnStartIndexForOffset,a=e.getColumnStopIndexForStartIndex,l=e.getColumnWidth,s=e.getEstimatedTotalHeight,u=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,f=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,h=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,v=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=v(n.props,(0,ir.Z)((0,ir.Z)(n))),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:(0,ir.Z)((0,ir.Z)(n)),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=pd((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=pd((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var r,i=n.props,a=i.columnWidth,s=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&a,g&&s,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))r=c[f];else{var h=o(n.props,t,n._instanceProps),m="rtl"===s;c[f]=r={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:l(n.props,t,n._instanceProps)}}return r},n._getItemStyleCache=void 0,n._getItemStyleCache=pd((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(Iw()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Pw(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Aw(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}(0,ar.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return Dw(e,t),y(e),null};var n=t.prototype;return n.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,l=i.height,d=i.rowCount,p=i.width,h=this.state,m=h.scrollLeft,v=h.scrollTop,g=function(e){if(void 0===e&&(e=!1),-1===Tw||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Tw=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Tw}();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,d-1)));var y=s(this.props,this._instanceProps),b=u(this.props,this._instanceProps)>p?g:0,x=y>l?g:0;this.scrollTo({scrollLeft:void 0!==r?c(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?f(this.props,o,n,v,this._instanceProps,b):v})},n.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Iw()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Pw(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,o=e.columnCount,i=e.direction,a=e.height,l=e.innerRef,c=e.innerElementType,f=e.innerTagName,d=e.itemData,p=e.itemKey,h=void 0===p?Rw:p,m=e.outerElementType,v=e.outerTagName,g=e.rowCount,y=e.style,b=e.useIsScrolling,x=e.width,w=this.state.isScrolling,E=this._getHorizontalRangeToRender(),_=E[0],S=E[1],O=this._getVerticalRangeToRender(),k=O[0],C=O[1],P=[];if(o>0&&g)for(var A=k;A<=C;A++)for(var T=_;T<=S;T++)P.push((0,r.createElement)(t,{columnIndex:T,data:d,isScrolling:b?w:void 0,key:h({columnIndex:T,data:d,rowIndex:A}),rowIndex:A,style:this._getItemStyle(A,T)}));var j=s(this.props,this._instanceProps),I=u(this.props,this._instanceProps);return(0,r.createElement)(m||v||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,$n.Z)({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},(0,r.createElement)(c||f||"div",{children:P,ref:l,style:{height:j,pointerEvents:w?"none":void 0,width:I}}))},n._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),f=c[0],d=c[1],p=c[2],h=c[3];this._callOnItemsRendered(a,l,f,d,s,u,p,h)}if("function"==typeof r){var m=this.state,v=m.horizontalScrollDirection,g=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(g,y,v,x,b)}},n._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,r=e.overscanColumnsCount,o=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,f=s.scrollLeft,d=n||r||o||1;if(0===t||0===l)return[0,0,0,0];var p=i(this.props,f,this._instanceProps),h=a(this.props,p,f,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,d),v=c&&"forward"!==u?1:Math.max(1,d);return[Math.max(0,p-m),Math.max(0,Math.min(t-1,h+v)),p,h]},n._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var f=h(this.props,u,this._instanceProps),d=m(this.props,f,u,this._instanceProps),p=l&&"backward"!==s?1:Math.max(1,c),v=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,f-p),Math.max(0,Math.min(i-1,d+v)),f,d]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var Dw=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance};var Mw=Nw({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,l=e.columnWidth,s=e.width,u=Math.max(0,a*l-s),c=Math.min(u,t*l),f=Math.max(0,t*l-s+i+l);switch("smart"===n&&(n=r>=f-s&&r<=c+s?"auto":"center"),n){case"start":return c;case"end":return f;case"center":var d=Math.round(f+(c-f)/2);return d<Math.ceil(s/2)?0:d>u+Math.floor(s/2)?u:d;case"auto":default:return r>=f&&r<=c?r:f>c||r<f?f:c}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,l=e.height,s=e.rowCount,u=Math.max(0,s*a-l),c=Math.min(u,t*a),f=Math.max(0,t*a-l+i+a);switch("smart"===n&&(n=r>=f-l&&r<=c+l?"auto":"center"),n){case"start":return c;case"end":return f;case"center":var d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d;case"auto":default:return r>=f&&r<=c?r:f>c||r<f?f:c}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}});function Lw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fw(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Bw=sa((function(e){return{icon_library:e.settings.icon_library,icon_library_version:e.settings.icon_library_version}}))((function(e){var t=e.selectedIcon,n=e.onSelect,o=e.icon_library,i=e.icon_library_version,a=Lw((0,r.useState)(""),2),l=a[0],s=a[1],u=(0,r.useRef)(null),c=Lw((0,r.useState)([]),2),f=c[0],d=c[1],p=(0,r.useMemo)((function(){return function(e,t){if(e){for(var n=[],r=t,o=0;o<r.length;o++){var i=r[o];(i.searchTerms.includes(e)||i.name.includes(e))&&n.push(i)}return n}return t}(l.toLowerCase(),f)}),[l,f]);return(0,r.useEffect)((function(){F(o,i).then((function(e){d(e.data)}))}),[o,i]),r.createElement("div",{ref:u,style:{flexGrow:1,height:500,overflow:"hidden"},"data-testid":"icon-frame"},r.createElement("div",{className:"header"},r.createElement(sf,{value:l,fullWidth:!0,variant:"outlined",inputProps:{"data-testid":"search-field"},placeholder:H("utils.icon_selector.search_icon"),onChange:function(e){s(e.target.value)}})),0===p.length&&""===l&&r.createElement("div",{style:{margin:"150px 0 0",textAlign:"center"}},r.createElement("svg",{width:"60",height:"60",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#2f788a"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),r.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},r.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),r.createElement("p",{style:{fontFamily:"Arial, Helvetica, sans-serif"}},H("utils.icon_selector.loading"))),""!==l&&r.createElement("p",{className:"search-results"},r.createElement("span",{dangerouslySetInnerHTML:{__html:H("utils.icon_selector.searching_for",l,p.length)}})," ",r.createElement("a",{href:"#",onClick:function(e){e.preventDefault(),s("")}},H("utils.icon_selector.remove_filter"))),r.createElement("div",{className:"icon-list",style:{overflowX:"overlay"}},r.createElement(Mw,{columnCount:null!==u.current&&u.current.clientWidth<600?4:8,columnWidth:null!==u.current?u.current.clientWidth<600?(u.current.clientWidth-30)/4:(u.current.clientWidth-30)/8:15,height:null!==u.current?u.current.clientHeight-70:200,rowCount:null!==u.current&&u.current.clientWidth<600?Math.max(p.length/4):Math.max(p.length/8),rowHeight:90,width:null!==u.current?u.current.clientWidth:200},(function(e){var o=e.columnIndex,i=e.rowIndex,a=e.style,l=p[i*(null!==u.current&&u.current.clientWidth<600?4:8)+o];if(!l||void 0===l||null==l.icons)return null;var s=l.icons[0];return r.createElement("div",{style:a},r.createElement("a",{href:"#",className:(0,Xn.Z)("icon-item",""!==t&&t===s.icon&&"current-selected"),title:l.name,onClick:function(e){e.preventDefault(),n(s.icon)}},r.createElement("div",{className:"icon-container"},r.createElement("i",{className:s.icon})),r.createElement("span",{className:"icon-name"},l.name)))}))))})),zw=n(54013),Ww=n(60246),Uw=n(4137),Zw="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var Hw=function(e){var t=e.children,n=e.defer,o=void 0!==n&&n,i=e.fallback,a=void 0===i?null:i,l=r.useState(!1),s=l[0],u=l[1];return Zw((function(){o||u(!0)}),[o]),r.useEffect((function(){o&&u(!0)}),[o]),r.createElement(r.Fragment,null,s?t:a)},Gw=n(96561);function Vw(e){return(Vw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kw(e){return function(e){if(Array.isArray(e))return $w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xw(e,t){return(Xw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tE(e);if(t){var o=tE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qw(this,n)}}function Qw(e,t){return!t||"object"!==Vw(t)&&"function"!=typeof t?eE(e):t}function eE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tE(e){return(tE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xw(e,t)}(a,e);var t,n,o,i=Jw(a);function a(){var e;qw(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nE(eE(e=i.call.apply(i,[this].concat(n))),"state",{ready:!1}),nE(eE(e),"handleRef",(function(t){e.contentDocument=t?t.node.contentDocument:null,e.contentWindow=t?t.node.contentWindow:null})),nE(eE(e),"onContentDidMount",(function(){e.setState({ready:!0,jss:(0,zw.Ue)({plugins:Kw((0,Ww.Z)().plugins),insertionPoint:e.contentWindow["demo-frame-jss"]}),sheetsManager:new Map,container:e.contentDocument.body})})),nE(eE(e),"onContentDidUpdate",(function(){e.contentDocument.body.dir=e.props.theme.direction})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.classes;return r.createElement(Hw,null,r.createElement(Gw.ZP,{ref:this.handleRef,className:n.root,contentDidMount:this.onContentDidMount,contentDidUpdate:this.onContentDidUpdate,head:this.props.head,style:this.props.style,width:"100%",border:0},r.createElement("div",{id:"demo-frame-jss"}),this.state.ready?r.createElement(Uw.ZP,{jss:this.state.jss,sheetsManager:this.state.sheetsManager},r.cloneElement(t,{container:this.state.container})):null))}}])&&Yw(t.prototype,n),o&&Yw(t,o),a}(r.Component),oE=(0,Jn.Z)((function(e){return{root:{backgroundColor:e.palette.background.default,flexGrow:1,height:400,border:"none",boxShadow:e.shadows[1]}}}),{withTheme:!0})(rE);function iE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lE(e){var t=e.onClose,n=e.startingValue,o=e.dialogOpened,i=void 0!==o&&o,a=e.memoizedStylesheet,l=iE((0,r.useState)(n),2),s=l[0],u=l[1],c=function(e,n){t("confirm"===e&&n)};return(0,r.useEffect)((function(){u(n)}),[n]),r.createElement(ml,{open:i,onClose:function(){return c("cancel")},maxWidth:"md",fullWidth:!0,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},r.createElement(xl,{id:"alert-dialog-title"},H("utils.icon_selector.title")),r.createElement(El,null,r.createElement(Sl,{id:"alert-dialog-description",component:"div"},i&&r.createElement(oE,{head:r.createElement(r.Fragment,null,r.createElement("style",null,"\nbody {\n margin: 0;\n display: flex;\n overflow: hidden;\n}\n\n* {\n box-sizing: border-box;\n}\n\n.header {\n margin-bottom: 5px;\n}\n\n.icon-item {\n display: block;\n text-decoration: none;\n border: 2px solid #eeeeee;\n margin: 4px;\n height: 80px;\n color: #494949;\n font-family: sans-serif;\n border-radius: 4px;\n transition: border-color 250ms ease-in-out;\n}\n\n.icon-item:hover {\n color: #2f788a;\n border-color: #2f788a;\n}\n\n.icon-item.current-selected {\n color: #f08419;\n border-color: #f08419;\n}\n\n.icon-item .icon-container {\n height: 50px;\n line-height: 50px;\n text-align: center;\n}\n\n.icon-item .icon-container i {\n display: block;\n line-height: 50px;\n font-size: 25px;\n}\n\n.icon-item .icon-name {\n display: block;\n text-align: center;\n padding: 0 5px 10px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 13px;\n}\n\n.search-results {\n display: block;\n padding: 5px 5px 0;\n font-family: sans-serif;\n color: #333333;\n font-size: 14px;\n}\n\n.search-results a {\n text-decoration: none;\n color: #2f788a;\n}\n\n.search-results a:hover {\n text-decoration: underline;\n}\n\n.frame-content {\n width: 100%;\n}\n.frame-root {\n width: 100%;\n}\n"),a),style:{height:500,maxHeight:"calc(90vh - 180px)",boxShadow:"none",backgroundColor:"white"}},r.createElement(Bw,{selectedIcon:s,onSelect:function(e){u(e)}})))),r.createElement(kl,null,r.createElement(jl,{color:"primary",onClick:function(){u("unset"),c("confirm","unset")},"data-testid":"delete"},r.createElement(yu,{className:"fas fa-trash"})),r.createElement(Er,{onClick:function(){return c("cancel",s)},color:"primary"},H("modal.cancel")),r.createElement(Er,{onClick:function(){return c("confirm",s)},color:"primary"},H("common.select"))))}function sE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cE=sa((function(e){return{icon_library:e.settings.icon_library,icon_library_version:e.settings.icon_library_version,icon_library_code:e.settings.icon_library_code}}))((function(e){var t=e.value,n=void 0===t?"":t,o=e.onChange,i=e.hoverDisabled,a=void 0!==i&&i,l=e.icon_library,s=e.icon_library_code,u=e.icon_library_version,c=sE((0,r.useState)(!1),2),f=c[0],d=c[1],p=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fontawesome",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"5.free",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return"fontawesome"===e&&"5.free"===t?r.createElement("link",{type:"text/css",rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/"+buttonizer_admin.fontawesome_current_version+"/css/all.min.css",crossOrigin:"anonymous"}):"fontawesome"===e&&"5.paid"===t?r.createElement("link",{type:"text/css",rel:"stylesheet",href:"https://"+("5.paid"===t?"pro":"use")+".fontawesome.com/releases/v"+buttonizer_admin.fontawesome_current_version+"/css/all.css",crossOrigin:"anonymous",integrity:"5.paid"===t&&null!==n?n:null}):"fontawesome"===e&&"4.7.0"===t?r.createElement("link",{type:"text/css",rel:"stylesheet",href:"https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css",integrity:""}):void 0}(l,u,s)}),[l,u,s]),h=function(){a?app.showPremiumDialog("More hover settings"):d(!0)};return r.createElement(yy,{title:H("settings.icon.title"),className:"form-icon-selector"},r.createElement("div",{className:"selector",onClick:function(){return h()}},r.createElement("div",{className:"viewer",style:{margin:0,cursor:"pointer",userSelect:"none"}},r.createElement(oE,{head:r.createElement(r.Fragment,null,r.createElement("style",null,"\nbody {\n margin: 0;\n background-color: #dddddd;\n color: white;\n border-radius: 0 0 4px 4px;\n text-align: center;\n}\n"),p)},r.createElement("div",{onClick:function(){return h()},style:{height:"65px",textAlign:"center",lineHeight:"65px",color:"".concat(a?"#fff":"#2f788a"," !important"),fontSize:"30px"}},r.createElement("i",{className:n})))),r.createElement(Er,{disabled:a,"data-testid":"setting:open-icon-picker",onClick:function(){return h()},color:"primary",component:"span",variant:"contained"},H("settings.icon.select"))),r.createElement(lE,{memoizedStylesheet:p,onClose:function(e){e&&o(e),d(!1)},startingValue:n,dialogOpened:f}))})),fE=n(79941),dE=function(e,t,n,r,o){var i=o.clientWidth,a=o.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(o.getBoundingClientRect().left+window.pageXOffset),c=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var f=void 0;if(f=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var d=void 0;if(r!==(d=u<0?0:u>i?1:Math.round(100*u/i)/100))return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null},pE={},hE=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(pE[o])return pE[o];var i=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return pE[o]=i,i},mE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vE=function(e){var t=e.white,n=e.grey,o=e.size,i=e.renderers,a=e.borderRadius,l=e.boxShadow,s=e.children,u=(0,fE.default)({default:{grid:{borderRadius:a,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+hE(t,n,o,i.canvas)+") center left"}}});return(0,r.isValidElement)(s)?r.cloneElement(s,mE({},s.props,{style:mE({},s.props.style,u.grid)})):r.createElement("div",{style:u.grid})};vE.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var gE=vE,yE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bE=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function xE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wE(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var EE=function(e){function t(){var e,n,r;xE(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=wE(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=dE(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mous
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
+ * (C) 2017-2021 Buttonizer v2.5.5
13
  *
14
  */
15
  /*!
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
+ * (C) 2017-2021 Buttonizer v2.5.5
27
  *
28
+ */!function(){var e={50676:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},83614:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},63349:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5991:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return o}})},96156:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},22122:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},41788:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(14665);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},96410:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},62303:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},81253:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(19756);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},19756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},14665:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},34699:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(82961);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},78927:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(83614),o=n(96410),i=n(82961),a=n(62303);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},90484:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},82961:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},95318:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},20862:function(e,t,n){var r=n(50008).default;function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n},e.exports.default=e.exports,e.exports.__esModule=!0},50008:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},70597:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},43891:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.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"}))}},59693:function(e,t,n){"use strict";n.d(t,{mi:function(){return l},_4:function(){return u},U1:function(){return c},_j:function(){return f},$n:function(){return d}});var r=n(60288);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?f(e,t):d(e,t)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},49277:function(e,t,n){"use strict";n.d(t,{Z:function(){return K}});var r=n(81253),o=n(35953),i=n(22122),a=["xs","sm","md","lg","xl"];function l(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,l=void 0===o?"px":o,s=e.step,u=void 0===s?5:s,c=(0,r.Z)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function d(e,t){var r=a.indexOf(t);return r===a.length-1?f(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(l,")")}return(0,i.Z)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(l,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},c)}var s=n(96156);function u(e,t,n){var r;return(0,i.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.Z)({},e.up("sm"),(0,i.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(60288),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(59693),w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,o):"dark"===t&&(e.dark=(0,b._j)(e.main,i)))}function _(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,l=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,s=e.error,u=void 0===s?{light:m[300],main:m[500],dark:m[700]}:s,_=e.warning,S=void 0===_?{light:v[300],main:v[500],dark:v[700]}:_,O=e.info,k=void 0===O?{light:g[300],main:g[500],dark:g[700]}:O,C=e.success,P=void 0===C?{light:y[300],main:y[500],dark:y[700]}:C,A=e.type,T=void 0===A?"light":A,j=e.contrastThreshold,I=void 0===j?3:j,R=e.tonalOffset,N=void 0===R?.2:R,D=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return(0,b.mi)(e,x.text.primary)>=I?x.text.primary:w.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return E(e,"light",n,N),E(e,"dark",r,N),e.contrastText||(e.contrastText=M(e.main)),e},F={dark:x,light:w};return(0,o.Z)((0,i.Z)({common:f,type:T,primary:L(n),secondary:L(l,"A400","A200","A700"),error:L(u),warning:L(S),info:L(k),success:L(P),grey:d,contrastThreshold:I,getContrastText:M,augmentColor:L,tonalOffset:N},F[T]),D)}function S(e){return Math.round(1e5*e)/1e5}var O={textTransform:"uppercase"};function k(e,t){var n="function"==typeof t?t(e):t,a=n.fontFamily,l=void 0===a?'"Roboto", "Helvetica", "Arial", sans-serif':a,s=n.fontSize,u=void 0===s?14:s,c=n.fontWeightLight,f=void 0===c?300:c,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,E=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var _=u/14,k=x||function(e){return"".concat(e/b*_,"rem")},C=function(e,t,n,r,o){return(0,i.Z)({fontFamily:l,fontWeight:e,fontSize:k(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===l?{letterSpacing:"".concat(S(r/t),"em")}:{},o,w)},P={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(p,48,1.167,0),h4:C(p,34,1.235,.25),h5:C(p,24,1.334,0),h6:C(m,20,1.6,.15),subtitle1:C(p,16,1.75,.15),subtitle2:C(m,14,1.57,.1),body1:C(p,16,1.5,.15),body2:C(p,14,1.43,.15),button:C(m,14,1.75,.4,O),caption:C(p,12,1.66,.4),overline:C(p,12,2.66,1,O)};return(0,o.Z)((0,i.Z)({htmlFontSize:b,pxToRem:k,round:S,fontFamily:l,fontSize:u,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:g},P),E,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],A={borderRadius:4},T=n(34699),j=n(90484),I=(n(45697),{xs:0,sm:600,md:960,lg:1280,xl:1920}),R={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(I[e],"px)")}};var N=function(e,t){return t?(0,o.Z)(e,t,{clone:!1}):e};var D,M,L={m:"margin",p:"padding"},F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},B={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},z=(D=function(e){if(e.length>2){if(!B[e])return[e];e=B[e]}var t=e.split(""),n=(0,T.Z)(t,2),r=n[0],o=n[1],i=L[r],a=F[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]},M={},function(e){return void 0===M[e]&&(M[e]=D(e)),M[e]}),W=["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"];function U(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function H(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function Z(e){var t=U(e.theme);return Object.keys(e).map((function(n){if(-1===W.indexOf(n))return null;var r=H(z(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||R;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,j.Z)(t)){var o=e.theme.breakpoints||R;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(N,{})}Z.propTypes={},Z.filterProps=W;function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=U({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var $=n(43366),V=n(92781);var K=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,a=void 0===i?{}:i,s=e.palette,c=void 0===s?{}:s,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=_(c),v=l(n),g=G(f),y=(0,o.Z)({breakpoints:v,direction:"ltr",mixins:u(v,g,a),overrides:{},palette:m,props:{},shadows:P,typography:k(m,p),spacing:g,shape:A,transitions:$.ZP,zIndex:V.Z},h),b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce((function(e,t){return(0,o.Z)(e,t)}),y)}},99700:function(e,t,n){"use strict";var r=(0,n(49277).Z)();t.Z=r},43366:function(e,t,n){"use strict";n.d(t,{x9:function(){return i}});var r=n(81253),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,l=void 0===n?i.standard:n,s=t.easing,u=void 0===s?o.easeInOut:s,c=t.delay,f=void 0===c?0:c;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof l?l:a(l)," ").concat(u," ").concat("string"==typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},14670:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(8679)),l=n.n(a),s=n(73914),u=n(93869),c=n(159),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,f=t.withTheme,d=void 0!==f&&f,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,s.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),g=i.forwardRef((function(e,t){e.classes;var l,s=e.innerRef,f=(0,o.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=f;return("string"==typeof p||d)&&(l=(0,c.Z)()||a,p&&(m=(0,u.Z)({theme:l,name:p,props:f})),d&&!m.theme&&(m.theme=l)),i.createElement(n,(0,r.Z)({ref:s||t,classes:h},m))}));return l()(g,n),g}},d=n(99700);var p=function(e,t){return f(e,(0,r.Z)({defaultTheme:d.Z},t))}},92781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},93871:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(60288);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},82568:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},25209:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(22122),o=n(67294),i=n(81253),a=(n(45697),n(86010)),l=n(14670),s=n(93871),u=o.forwardRef((function(e,t){var n=e.children,l=e.classes,u=e.className,c=e.color,f=void 0===c?"inherit":c,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,m=void 0===h?"default":h,v=e.htmlColor,g=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,w=(0,i.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(p,(0,r.Z)({className:(0,a.Z)(l.root,u,"inherit"!==f&&l["color".concat((0,s.Z)(f))],"default"!==m&&l["fontSize".concat((0,s.Z)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},w),n,g?o.createElement("title",null,g):null)}));u.muiName="SvgIcon";var c=(0,l.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u);function f(e,t){var n=function(t,n){return o.createElement(c,(0,r.Z)({ref:n},t),e)};return n.muiName=c.muiName,o.memo(o.forwardRef(n))}},79437:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},28546:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return i.Z},debounce:function(){return a.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return s.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return c.Z},requirePropFactory:function(){return f},setRef:function(){return d.Z},unstable_useId:function(){return g.Z},unsupportedProp:function(){return p},useControlled:function(){return h.Z},useEventCallback:function(){return m.Z},useForkRef:function(){return v.Z},useIsFocusVisible:function(){return y.Z}});var r=n(93871),o=n(82568),i=n(25209),a=n(79437);function l(e,t){return function(){return null}}var s=n(83711),u=n(30626),c=n(80713);function f(e){return function(){return null}}var d=n(34236);function p(e,t,n,r,o){return null}var h=n(22775),m=n(55192),v=n(17294),g=n(95001),y=n(24896)},83711:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},30626:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},80713:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30626);function o(e){return(0,r.Z)(e).defaultView||window}},34236:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},95001:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},22775:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],l=i[1];return[o?t:a,r.useCallback((function(e){o||l(e)}),[])]}},55192:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},17294:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(34236);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},24896:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(67294),o=n(73935),i=!0,a=!1,l=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!s[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(l),l=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},78513:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{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"}),"MoreVert");t.Z=a},2108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(28546)},4137:function(e,t,n){"use strict";n.d(t,{NU:function(){return p},ZP:function(){return h}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(17076)),l=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var s,u=n(54013),c=n(60246),f=(0,u.Ue)((0,c.Z)()),d={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,s=void 0===i?"":i,u=""===s?"":"".concat(s,"-"),c=0,f=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==l.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(u).concat(r,"-").concat(e.key);return t.options.theme[a.Z]&&""===s?"".concat(i,"-").concat(f()):i}return"".concat(u).concat(o).concat(f())}}(),jss:f,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},p=i.createContext(d);function h(e){var t=e.children,n=e.injectFirst,a=void 0!==n&&n,l=e.disableGeneration,f=void 0!==l&&l,d=(0,o.Z)(e,["children","injectFirst","disableGeneration"]),h=i.useContext(p),m=(0,r.Z)({},h,{disableGeneration:f},d);if(!m.jss.options.insertionPoint&&a&&"undefined"!=typeof window){if(!s){var v=document.head;s=document.createComment("mui-inject-first"),v.insertBefore(s,v.firstChild)}m.jss=(0,u.Ue)({plugins:(0,c.Z)().plugins,insertionPoint:s})}return i.createElement(p.Provider,{value:m},t)}},17076:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},93869:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{Z:function(){return r}})},60246:function(e,t,n){"use strict";n.d(t,{Z:function(){return Re}});var r=n(54013),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o,l=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.JH)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,l=o[a];l&&(o.style=l(e)||{});var s=o[i];if(s)for(var u in s)o.prop(u,s[u](e),r)}}},s=n(22122),u="@global",c=function(){function e(e,t,n){for(var o in this.type="global",this.at=u,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,s.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),f=function(){function e(e,t,n){this.type="global",this.at=u,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,(0,s.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),d=/\s*,\s*/g;function p(e,t){for(var n=e.split(d),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===u)return new c(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new f(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[u]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,s.Z)({},n,{selector:p(i,e.selector)}));delete r[u]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,u.length)===u){var i=p(o.substr(u.length),e.selector);t.addRule(i,r[o],(0,s.Z)({},n,{selector:i})),delete r[o]}}(e,t))}}},m=/\s*,\s*/g,v=/&/g,g=/\$([\w-]+)/g;var y=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(m),r=e.split(m),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(v,a):a+" "+s}return o}function n(e,t,n){if(n)return(0,s.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,s.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,u=o,c=u.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=n(u,c,a),d){var h=t(f,u.selector);l||(l=e(c,i)),h=h.replace(g,l),c.addRule(h,r[f],(0,s.Z)({},a,{selector:h}))}else p&&c.addRule(f,{},a).addRule(u.key,r[f],{selector:u.selector});delete r[f]}}return r}}},b=/[A-Z]/g,w=/^ms-/,x={};function E(e){return"-"+e.toLowerCase()}var _=function(e){if(x.hasOwnProperty(e))return x[e];var t=e.replace(b,E);return x[e]=w.test(t)?"-"+t:t};function S(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:_(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(S):t.fallbacks=S(e.fallbacks)),t}var O=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=S(e[t]);return e}return S(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=_(t);return t===r?e:(n.prop(r,e),null)}}},k=r.HZ&&CSS?CSS.px:"px",C=r.HZ&&CSS?CSS.ms:"ms",P=r.HZ&&CSS?CSS.percent:"%";function A(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var T=A({"animation-delay":C,"animation-duration":C,"background-position":k,"background-position-x":k,"background-position-y":k,"background-size":k,border:k,"border-bottom":k,"border-bottom-left-radius":k,"border-bottom-right-radius":k,"border-bottom-width":k,"border-left":k,"border-left-width":k,"border-radius":k,"border-right":k,"border-right-width":k,"border-top":k,"border-top-left-radius":k,"border-top-right-radius":k,"border-top-width":k,"border-width":k,"border-block":k,"border-block-end":k,"border-block-end-width":k,"border-block-start":k,"border-block-start-width":k,"border-block-width":k,"border-inline":k,"border-inline-end":k,"border-inline-end-width":k,"border-inline-start":k,"border-inline-start-width":k,"border-inline-width":k,"border-start-start-radius":k,"border-start-end-radius":k,"border-end-start-radius":k,"border-end-end-radius":k,margin:k,"margin-bottom":k,"margin-left":k,"margin-right":k,"margin-top":k,"margin-block":k,"margin-block-end":k,"margin-block-start":k,"margin-inline":k,"margin-inline-end":k,"margin-inline-start":k,padding:k,"padding-bottom":k,"padding-left":k,"padding-right":k,"padding-top":k,"padding-block":k,"padding-block-end":k,"padding-block-start":k,"padding-inline":k,"padding-inline-end":k,"padding-inline-start":k,"mask-position-x":k,"mask-position-y":k,"mask-size":k,height:k,width:k,"min-height":k,"max-height":k,"min-width":k,"max-width":k,bottom:k,left:k,top:k,right:k,inset:k,"inset-block":k,"inset-block-end":k,"inset-block-start":k,"inset-inline":k,"inset-inline-end":k,"inset-inline-start":k,"box-shadow":k,"text-shadow":k,"column-gap":k,"column-rule":k,"column-rule-width":k,"column-width":k,"font-size":k,"font-size-delta":k,"letter-spacing":k,"text-decoration-thickness":k,"text-indent":k,"text-stroke":k,"text-stroke-width":k,"word-spacing":k,motion:k,"motion-offset":k,outline:k,"outline-offset":k,"outline-width":k,perspective:k,"perspective-origin-x":P,"perspective-origin-y":P,"transform-origin":P,"transform-origin-x":P,"transform-origin-y":P,"transform-origin-z":P,"transition-delay":C,"transition-duration":C,"vertical-align":k,"flex-basis":k,"shape-margin":k,size:k,gap:k,grid:k,"grid-gap":k,"row-gap":k,"grid-row-gap":k,"grid-column-gap":k,"grid-template-rows":k,"grid-template-columns":k,"grid-auto-rows":k,"grid-auto-columns":k,"box-shadow-x":k,"box-shadow-y":k,"box-shadow-blur":k,"box-shadow-spread":k,"font-line-height":k,"text-shadow-x":k,"text-shadow-y":k,"text-shadow-blur":k});function j(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=j(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=j(o,t[o],n);else for(var i in t)t[i]=j(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||T[e];return!a||0===t&&a===k?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var I=function(e){void 0===e&&(e={});var t=A(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=j(r,e[r],t);return e},onChangeValue:function(e,n){return j(n,e,t)}}},R=n(33827),N=n(78927),D="",M="",L="",F="",B=R.Z&&"ontouchstart"in document.documentElement;if(R.Z){var z={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},W=document.createElement("p").style;for(var U in z)if(U+"Transform"in W){D=U,M=z[U];break}"Webkit"===D&&"msHyphens"in W&&(D="ms",M=z.ms,F="edge"),"Webkit"===D&&"-apple-trailing-word"in W&&(L="apple")}var H=D,Z=M,G=L,$=F,V=B;var K={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===H?"-webkit-"+e:Z+e)}},q={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===H?Z+"print-"+e:e)}},Y=/[-\s]+(.)?/g;function J(e,t){return t?t.toUpperCase():""}function X(e){return e.replace(Y,J)}function Q(e){return X("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===H){if(X("mask-image")in t)return e;if(H+Q("mask-image")in t)return Z+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==G||V?e:Z+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Z+e)}},oe={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Z+e)}},ie={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===H||"ms"===H&&"edge"!==$?Z+e:e)}},ae={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===H||"ms"===H||"apple"===G?Z+e:e)}},le={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===H?"WebkitColumn"+Q(e)in t&&Z+"column-"+e:"Moz"===H&&("page"+Q(e)in t&&"page-"+e))}},se={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===H)return e;var n=e.replace("-inline","");return H+Q(n)in t&&Z+n}},ue={supportedProperty:function(e,t){return X(e)in t&&e}},ce={supportedProperty:function(e,t){var n=Q(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:H+n in t?Z+e:"Webkit"!==H&&"Webkit"+n in t&&"-webkit-"+e}},fe={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===H?""+Z+e:e)}},de={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===H?Z+"scroll-chaining":e)}},pe={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=pe[e];return!!n&&(H+Q(n)in t&&Z+n)}},me={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ve=Object.keys(me),ge=function(e){return Z+e},ye=[K,q,te,ne,re,oe,ie,ae,le,se,ue,ce,fe,de,he,{supportedProperty:function(e,t,n){var r=n.multiple;if(ve.indexOf(e)>-1){var o=me[e];if(!Array.isArray(o))return H+Q(o)in t&&Z+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(H+Q(o[0])in t))return!1;return o.map(ge)}return!1}}],be=ye.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),we=ye.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,N.Z)(t.noPrefill)),e}),[]),xe={};if(R.Z){ee=document.createElement("p");var Ee=window.getComputedStyle(document.documentElement,"");for(var _e in Ee)isNaN(_e)||(xe[Ee[_e]]=Ee[_e]);we.forEach((function(e){return delete xe[e]}))}function Se(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=xe[e])return xe[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<be.length&&(xe[e]=be[n](e,ee.style,t),!xe[e]);n++);try{ee.style[e]=""}catch(e){return!1}return xe[e]}var Oe,ke={},Ce={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Pe=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ae(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Se(t):", "+Se(n);return r||(t||n)}function Te(e,t){var n=t;if(!Oe||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ke[r])return ke[r];try{Oe.style[e]=n}catch(e){return ke[r]=!1,!1}if(Ce[e])n=n.replace(Pe,Ae);else if(""===Oe.style[e]&&("-ms-flex"===(n=Z+n)&&(Oe.style[e]="-ms-flexbox"),Oe.style[e]=n,""===Oe.style[e]))return ke[r]=!1,!1;return Oe.style[e]="",ke[r]=n,ke[r]}R.Z&&(Oe=document.createElement("p"));var je=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=Se(n);a&&a!==n&&(i=!0);var l=!1,s=Te(a,(0,r.EK)(o));s&&s!==o&&(l=!0),(i||l)&&(i&&delete t[n],t[a||n]=s||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===H?e:"@"+Z+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Te(t,(0,r.EK)(e))||e}}};var Ie=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function Re(){return{plugins:[l(),h(),y(),O(),I(),"undefined"==typeof window?null:je(),Ie()]}}},73914:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(81253),o=n(22122),i=n(67294),a=n(54013),l=n(65835),s={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},u=n(159),c=n(4137),f=-1e9;function d(){return f+=1}var p=n(35953);function h(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],l=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){l[e]=(0,p.Z)(l[e],a[e])})),l},options:{}}}var m={};function v(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,l.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function g(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,u=e.stylesCreator,c=e.name;if(!i.disableGeneration){var f=s.get(i.sheetsManager,u,r);f||(f={refs:0,staticSheet:null,dynamicStyles:null},s.set(i.sheetsManager,u,r,f));var d=(0,o.Z)({},u.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});d.generateId=d.serverGenerateClassName||d.generateClassName;var p=i.sheetsRegistry;if(0===f.refs){var h;i.sheetsCache&&(h=s.get(i.sheetsCache,u,r));var m=u.create(r,c);h||((h=i.jss.createStyleSheet(m,(0,o.Z)({link:!1},d))).attach(),i.sheetsCache&&s.set(i.sheetsCache,u,r,h)),p&&p.add(h),f.staticSheet=h,f.dynamicStyles=(0,a._$)(m)}if(f.dynamicStyles){var v=i.jss.createStyleSheet(f.dynamicStyles,(0,o.Z)({link:!0},d));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=(0,l.Z)({baseClasses:f.staticSheet.classes,newClasses:v.classes}),p&&p.add(v)}else n.classes=f.staticSheet.classes;f.refs+=1}}function y(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function b(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=s.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(s.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function w(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,l=t.Component,s=t.defaultTheme,f=void 0===s?m:s,p=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),x=h(e),E=n||a||"makeStyles";x.options={index:d(),name:n,meta:E,classNamePrefix:E};var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,u.Z)()||f,r=(0,o.Z)({},i.useContext(c.NU),p),a=i.useRef(),s=i.useRef();w((function(){var o={name:n,state:{},stylesCreator:x,stylesOptions:r,theme:t};return g(o,e),s.current=!1,a.current=o,function(){b(o)}}),[t,x]),i.useEffect((function(){s.current&&y(a.current,e),s.current=!0}));var d=v(a.current,e.classes,l);return d};return _}},65835:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(22122);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},83800:function(e,t,n){"use strict";var r=n(67294).createContext(null);t.Z=r},159:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(83800);function i(){return r.useContext(o.Z)}},35953:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22122),o=n(90484);function i(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},60288:function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},62844:function(e,t,n){"use strict";n.d(t,{Rf:function(){return i},DM:function(){return a},en:function(){return l},jH:function(){return s},Cf:function(){return u},Db:function(){return c},EG:function(){return f},l4:function(){return d},JY:function(){return p}});var r=n(61422),o={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function a(){var e=i(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function l(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function s(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function u(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function c(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}function p(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}},61422:function(e,t,n){"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}n.d(t,{KV:function(){return r},l$:function(){return o}}),e=n.hmd(e)},21170:function(e,t,n){"use strict";n.d(t,{yW:function(){return s}});var r=n(62844),o=n(61422);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}};var a=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.Rf)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),l=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},s=i.nowSeconds.bind(i);l.nowSeconds.bind(l),function(){var e=(0,r.Rf)().performance;if(e)e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now()}()},9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var r=n(64867),o=n(36026),i=n(4372),a=n(15327),l=n(94097),s=n(84109),u=n(67985),c=n(85061);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var g=l(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,i={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,i),h=null}}if(h.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(g))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},51609:function(e,t,n){"use strict";var r=n(64867),o=n(91849),i=n(30321),a=n(47185);function l(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var s=l(n(45655));s.Axios=i,s.create=function(e){return l(a(s.defaults,e))},s.Cancel=n(65263),s.CancelToken=n(14972),s.isCancel=n(26502),s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(16268),e.exports=s,e.exports.default=s},65263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:function(e,t,n){"use strict";var r=n(65263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},26502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:function(e,t,n){"use strict";var r=n(64867),o=n(15327),i=n(80782),a=n(13572),l=n(47185),s=n(54875),u=s.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(i),o=Promise.resolve(e);c.length;)o=o.then(c.shift(),c.shift());return o}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},c.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},80782:function(e,t,n){"use strict";var r=n(64867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},94097:function(e,t,n){"use strict";var r=n(91793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},85061:function(e,t,n){"use strict";var r=n(80481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},13572:function(e,t,n){"use strict";var r=n(64867),o=n(18527),i=n(26502),a=n(45655);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80481:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},47185:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(i,u),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(void 0,t[o])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=o.concat(i).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},36026:function(e,t,n){"use strict";var r=n(85061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},18527:function(e,t,n){"use strict";var r=n(64867),o=n(45655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},45655:function(e,t,n){"use strict";var r=n(64867),o=n(16016),i=n(80481),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(55448)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15327:function(e,t,n){"use strict";var r=n(64867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},16268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},84109:function(e,t,n){"use strict";var r=n(64867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54875:function(e,t,n){"use strict";var r=n(20696),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function l(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&l(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={isOlderVersion:l,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var l=e[i],s=void 0===l||a(l,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},64867:function(e,t,n){"use strict";var r=n(91849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},20696:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_from":"axios@0.21.4"}')},35179:function(e,t,n){"use strict";var r=n(67294),o=n(73935),i=n(67121),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function s(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])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.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function h(){if(d)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.");return a}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)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.");var t=!0;return p(),f.push(e),function(){if(t){if(d)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.");t=!1,p();var n=f.indexOf(e);f.splice(n,1),c=null}}}function v(e){if(!s(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,a=o(a,e)}finally{d=!1}for(var t=c=f,n=0;n<t.length;n++){(0,t[n])()}return e}function g(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,v({type:l.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i.Z]=function(){return this},e}return v({type:l.INIT}),(r={dispatch:v,subscribe:m,getState:h,replaceReducer:g})[i.Z]=y,r}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" 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.'}function f(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return m({},n,{dispatch:r=v.apply(void 0,i)(n.dispatch)})}}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=n(46314),_=n(82492),S=n(14176),O={INIT:"INIT",ADD_MODEL:"ADD_MODEL",ADD_RELATION:"ADD_RELATION",CHANGE_RELATION:"CHANGE_RELATION",REMOVE_RELATION:"REMOVE_RELATION",GET_DATA_BEGIN:"GET_DATA_BEGIN",GET_DATA_SUCCESS:"GET_DATA_SUCCESS",GET_DATA_FAILURE:"GET_DATA_FAILURE",GET_DATA_END:"GET_DATA_END",HAS_CHANGES:"HAS_CHANGES",IS_UPDATING:"IS_UPDATING",STOP_LOADING:"STOP_LOADING",SET_SETTING_VALUE:"SET_SETTING_VALUE",SET_MISC_VALUE:"SET_MISC_VALUE",OPEN_DRAWER:"OPENING DRAWER",CLOSE_DRAWER:"CLOSING DRAWER",groups:{ADD_RECORD:"ADDING GROUP RECORD",REMOVE_RECORD:"REMOVING GROUP RECORD",SET_KEY_VALUE:"SET KEY VALUE GROUPS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS GROUPS"},buttons:{ADD_RECORD:"ADDING BUTTON RECORD",REMOVE_RECORD:"REMOVING BUTTON RECORD",SET_KEY_VALUE:"SET KEY VALUE BUTTONS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS BUTTONS"},timeSchedules:{ADD_RECORD:"ADDING TIME SCHEDULE",REMOVE_RECORD:"REMOVING TIME SCHEDULE",SET_KEY_VALUE:"SET KEY VALUE TIMESCHEDULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS TIMESCHEDULES",ADD_TIMESCHEDULE:"ADD_TIMESCHEDULE",SET_WEEKDAY:"SET_WEEKDAY",ADD_EXCLUDED_DATE:"ADD_EXCLUDED_DATE",SET_EXCLUDED_DATE:"SET_EXCLUDED_DATE",REMOVE_EXCLUDED_DATE:"REMOVE_EXCLUDED_DATE"},pageRules:{ADD_RECORD:"ADDING PAGE RULE",REMOVE_RECORD:"REMOVING PAGE RULE",SET_KEY_VALUE:"SET KEY VALUE PAGERULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS PAGERULES",ADD_PAGE_RULE_ROW:"ADD_PAGE_RULE_ROW",SET_PAGE_RULE_ROW:"SET_PAGE_RULE_ROW",REMOVE_PAGE_RULE_ROW:"REMOVE_PAGE_RULE_ROW"},wp:{GET_DATA_BEGIN:"GET_DATA_BEGIN_WP",GET_DATA_SUCCESS:"GET_DATA_SUCCESS_WP",GET_DATA_FAILURE:"GET_DATA_FAILURE_WP",GET_DATA_END:"GET_DATA_END_WP"},templates:{INIT:"INIT TEMPLATES",GET_DATA_BEGIN:"GET TEMPLATES DATA BEGIN",GET_DATA_FAILURE:"GET TEMPLATES DATA FAILURE",GET_DATA_END:"GET TEMPLATES DATA END",ADD_RECORD:"ADDING TEMPLATE"}},k=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],C="buttons",P="groups",A={MENU:"menu",SETTINGS:"settings",SETTINGS_PAGES:{analytics:"analytics",iconLibrary:"iconlibrary",preferences:"preferences",reset:"reset"},BUTTONIZER_TOUR:"buttonizertour",TIME_SCHEDULES:"timeschedules",PAGE_RULES:"pagerules"},T={normal_hover:{format:function(e,t){return[e,t].map((function(e){return"unset"===e||null==e?"":e})).filter((function(e,t,n){return 0===t||""!==e&&e!==n[0]})).join(";")||"unset"},parse:function(e){var t=e;if("boolean"==typeof e&&(t=String(e)),"number"==typeof e&&(t=String(e)),void 0===e)return[];if("string"!=typeof t)throw console.trace(),console.log(x(t),t),TypeError("'record[key]' val is not of type String, boolean or number");return t.split(";").map((function(e){if(e)return"true"===e||"false"!==e&&(isNaN(Number(e))?e:Number(e))})).map((function(e,t,n){return 0===t?e:e===n[0]?void 0:e}))}},fourSidesPx:{format:function(e,t,n,r){return"".concat(e,"px ").concat(t,"px ").concat(n,"px ").concat(r,"px")},parse:function(e){return e.match(/\d+/g)}},position:{format:function(e,t,n){return"".concat(e,": ").concat(n).concat(t)}}},j=["export_type","selected_page_rule","selected_schedule","id","parent","show_on_rule_trigger","show_on_schedule_trigger"],I={get buttonSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.button).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get groupSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.group).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get allSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(_({},E.button,E.group)).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get stylingNoGroup(){var e=this;return Object.entries(S(_({},E.button.styling,E.group.styling),(function(t,n){return e.groupSettings.styling.includes(n)&&e.buttonSettings.styling.includes(n)||n.includes("icon")}))).map((function(e){return b(e,1)[0]}))},get stylingHover(){return Object.entries(_({},E.button.styling,E.group.styling)).filter((function(e){return Array.isArray(e[1])})).map((function(e){return b(e,1)[0]}))}},R=n(9669),N=n.n(R);function D(e,t){M(),document.location.hash+="".concat(document.location.hash.match(/\/$/)?"":"/").concat(e).concat(t?"/"+t:"")}function M(){document.location.hash=document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules|buttonizertour).*$/i,"")}function L(e){if(!e)return null;return"".concat(e.getDate(),"-").concat(function(e,t){for(var n=String(e);n.length<(t||2);)n="0"+n;return n}(e.getMonth()+1,2),"-").concat(e.getFullYear())}var F=function(){var e=new Map;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fontawesome",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"5.free",r=buttonizer_admin.assets+"/icon_definitions/"+t+"."+n+".json?buttonizer-icon-cache="+buttonizer_admin.version;if(e.has(r))return e.get(r);var o=N()({url:r,dataType:"json",method:"get"});return e.set(r,o),o}}(),B=n(71171),z=n.n(B);function W(){return Array.apply(0,Array(15)).map((function(){return(e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789").charAt(Math.floor(Math.random()*e.length));var e})).join("")}var U=n(26905),H=n.n(U);function Z(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;return String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))}),"undefined"!=typeof buttonizer_translations?n?(o=H()(buttonizer_translations,e,"Translation not found: "+e)).format.apply(o,n):H()(buttonizer_translations,e,"Translation not found: "+e):e}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y(e,t){return t.url=buttonizer_admin.api+e,t.headers={"X-WP-Nonce":buttonizer_admin.nonce},N()(t)}function J(e){var t,n=e,r={},o={},i=K(n.groups);try{for(i.s();!(t=i.n()).done;){var a=t.value,l=X(a.data);l.children=[];var s,u=K(a.buttons);try{for(u.s();!(s=u.n()).done;){var c=X(s.value);c.parent=l.id,r[c.id]=c,l.children.push(c.id)}}catch(e){u.e(e)}finally{u.f()}o[l.id]=l}}catch(e){i.e(e)}finally{i.f()}var f={},d={};return n.time_schedules&&n.time_schedules.map((function(e){f[e.id]={id:e.id,name:e.name||Z("time_schedules.single_name"),weekdays:e.weekdays||k.map((function(e){return{opened:!0,open:"8:00",close:"17:00",weekday:e}})),start_date:e.start_date||L(new Date),end_date:e.end_date||null,dates:e.dates||[]}})),n.page_rules&&n.page_rules.map((function(e){d[e.id]={id:e.id,name:e.name||"Unnamed pagerule",type:e.type||"and",rules:e.rules||[{type:"page_title",value:""}]}})),{hasChanges:n.changes,buttons:r,groups:o,timeSchedules:f,pageRules:d,settings:n.settings,premium:n.premium,premium_code:n.premium_code,version:n.version,wordpress:n.wordpress,is_opt_in:n.is_opt_in,latest_tour_update:n.latest_tour_update,additional_permissions:n.additional_permissions}}function X(e){return e&&void 0!==e.id?e:$($({},e),{},{id:z()()})}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O.ADD_RELATION,payload:{button_id:e,group_id:t,index:n}}}function ee(e,t,n,r){return{type:O.CHANGE_RELATION,payload:{button_id:e,old_group_id:t,new_group_id:n,button_index:r}}}function te(e,t){return{type:O.REMOVE_RELATION,payload:{button_id:e,group_id:t}}}var ne=function(e,t,n,r){return Array.isArray(r)?{type:O[e].SET_KEY_FORMAT,payload:{id:t,format:"normal_hover",key:n,values:r}}:{type:O[e].SET_KEY_VALUE,payload:{id:t,key:n,value:r}}},re=function(e,t){return{type:O.SET_SETTING_VALUE,payload:{setting:e,value:t}}},oe=function(e,t){return{type:O.SET_MISC_VALUE,payload:{setting:e,value:t}}};function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O[t].ADD_RECORD,payload:{record:X(e),index:n}}}function ae(e,t){return{type:O[t].REMOVE_RECORD,payload:{model_id:e}}}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();if(!t.groups[e].children)return null;var n=t.groups[e].children,r=t.buttons,o={};return Object.keys(r).map((function(e){n.includes(e)&&(o[e]=r[e])})),o}function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vn.getState();if(!e)return null;var n=t.buttons,r={};return Object.keys(n).map((function(t){e.includes(t)&&e.map((function(e,o){e===t&&(r[o]=n[t])}))})),r}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();return t.groups&&t.groups[e]?t.groups[e].children.length:0}function ce(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function fe(e){return!!e&&!!e[Xe]}function de(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Qe}(e)||Array.isArray(e)||!!e[Je]||!!e.constructor[Je]||be(e)||we(e))}function pe(e,t,n){void 0===n&&(n=!1),0===he(e)?(n?Object.keys:et)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function he(e){var t=e[Xe];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:be(e)?2:we(e)?3:0}function me(e,t){return 2===he(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ve(e,t){return 2===he(e)?e.get(t):e[t]}function ge(e,t,n){var r=he(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function ye(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function be(e){return Ve&&e instanceof Map}function we(e){return Ke&&e instanceof Set}function xe(e){return e.o||e.t}function Ee(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=tt(e);delete t[Xe];for(var n=et(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function _e(e,t){return void 0===t&&(t=!1),Oe(e)||fe(e)||!de(e)||(he(e)>1&&(e.set=e.add=e.clear=e.delete=Se),Object.freeze(e),t&&pe(e,(function(e,t){return _e(t,!0)}),!0)),e}function Se(){ce(2)}function Oe(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function ke(e){var t=nt[e];return t||ce(18,e),t}function Ce(){return Ge}function Pe(e,t){t&&(ke("Patches"),e.u=[],e.s=[],e.v=t)}function Ae(e){Te(e),e.p.forEach(Ie),e.p=null}function Te(e){e===Ge&&(Ge=e.l)}function je(e){return Ge={p:[],l:Ge,h:e,m:!0,_:0}}function Ie(e){var t=e[Xe];0===t.i||1===t.i?t.j():t.O=!0}function Re(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||ke("ES5").S(t,e,r),r?(n[Xe].P&&(Ae(t),ce(4)),de(e)&&(e=Ne(t,e),t.l||Me(t,e)),t.u&&ke("Patches").M(n[Xe],e,t.u,t.s)):e=Ne(t,n,[]),Ae(t),t.u&&t.v(t.u,t.s),e!==Ye?e:void 0}function Ne(e,t,n){if(Oe(t))return t;var r=t[Xe];if(!r)return pe(t,(function(o,i){return De(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Me(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Ee(r.k):r.o;pe(3===r.i?new Set(o):o,(function(t,i){return De(e,r,o,t,i,n)})),Me(e,o,!1),n&&e.u&&ke("Patches").R(r,n,e.u,e.s)}return r.o}function De(e,t,n,r,o,i){if(fe(o)){var a=Ne(e,o,i&&t&&3!==t.i&&!me(t.D,r)?i.concat(r):void 0);if(ge(n,r,a),!fe(a))return;e.m=!1}if(de(o)&&!Oe(o)){if(!e.h.F&&e._<1)return;Ne(e,o),t&&t.A.l||Me(e,o)}}function Me(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&_e(t,n)}function Le(e,t){var n=e[Xe];return(n?xe(n):e)[t]}function Fe(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Be(e){e.P||(e.P=!0,e.l&&Be(e.l))}function ze(e){e.o||(e.o=Ee(e.t))}function We(e,t,n){var r=be(t)?ke("MapSet").N(t,n):we(t)?ke("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Ce(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=rt;n&&(o=[r],i=ot);var a=Proxy.revocable(o,i),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(t,n):ke("ES5").J(t,n);return(n?n.A:Ce()).p.push(r),r}function Ue(e){return fe(e)||ce(22,e),function e(t){if(!de(t))return t;var n,r=t[Xe],o=he(t);if(r){if(!r.P&&(r.i<4||!ke("ES5").K(r)))return r.t;r.I=!0,n=He(t,o),r.I=!1}else n=He(t,o);return pe(n,(function(t,o){r&&ve(r.t,t)===o||ge(n,t,e(o))})),3===o?new Set(n):n}(e)}function He(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ee(e)}var Ze,Ge,$e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ve="undefined"!=typeof Map,Ke="undefined"!=typeof Set,qe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ye=$e?Symbol.for("immer-nothing"):((Ze={})["immer-nothing"]=!0,Ze),Je=$e?Symbol.for("immer-draftable"):"__$immer_draftable",Xe=$e?Symbol.for("immer-state"):"__$immer_state",Qe=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),et="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,tt=Object.getOwnPropertyDescriptors||function(e){var t={};return et(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},nt={},rt={get:function(e,t){if(t===Xe)return e;var n=xe(e);if(!me(n,t))return function(e,t,n){var r,o=Fe(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!de(r)?r:r===Le(e.t,t)?(ze(e),e.o[t]=We(e.A.h,r,e)):r},has:function(e,t){return t in xe(e)},ownKeys:function(e){return Reflect.ownKeys(xe(e))},set:function(e,t,n){var r=Fe(xe(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Le(xe(e),t),i=null==o?void 0:o[Xe];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(ye(n,o)&&(void 0!==n||me(e.t,t)))return!0;ze(e),Be(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Le(e.t,t)||t in e.t?(e.D[t]=!1,ze(e),Be(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=xe(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ce(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ce(12)}},ot={};pe(rt,(function(e,t){ot[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ot.deleteProperty=function(e,t){return rt.deleteProperty.call(this,e[0],t)},ot.set=function(e,t,n){return rt.set.call(this,e[0],t,n,e[0])};var it=new(function(){function e(e){var t=this;this.g=qe,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&ce(6),void 0!==r&&"function"!=typeof r&&ce(7),de(e)){var l=je(t),s=We(t,e,void 0),u=!0;try{a=n(s),u=!1}finally{u?Ae(l):Te(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Pe(l,r),Re(e,l)}),(function(e){throw Ae(l),e})):(Pe(l,r),Re(a,l))}if(!e||"object"!=typeof e){if((a=n(e))===Ye)return;return void 0===a&&(a=e),t.F&&_e(a,!0),a}ce(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){de(e)||ce(8),fe(e)&&(e=Ue(e));var t=je(this),n=We(this,e,void 0);return n[Xe].C=!0,Te(t),n},t.finishDraft=function(e,t){var n=(e&&e[Xe]).A;return Pe(n,t),Re(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!qe&&ce(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=ke("Patches").$;return fe(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),at=it.produce,lt=(it.produceWithPatches.bind(it),it.setAutoFreeze.bind(it),it.setUseProxies.bind(it),it.applyPatches.bind(it),it.createDraft.bind(it),it.finishDraft.bind(it),at);function st(e,t){return t.url=buttonizer_admin.api+e,t.headers={"X-WP-Nonce":buttonizer_admin.nonce},N()(t)}function ut(e){return{type:O.HAS_CHANGES,payload:{hasChanges:e}}}function ct(e){return{type:O.IS_UPDATING,payload:{isUpdating:e}}}function ft(){return{type:O.STOP_LOADING}}
29
  /*! *****************************************************************************
30
  Copyright (c) Microsoft Corporation.
31
 
40
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
  PERFORMANCE OF THIS SOFTWARE.
42
  ***************************************************************************** */