Metform Elementor Contact Form Builder – Flexible and Design-Friendly Contact Form builder plugin for WordPress - Version 1.3.17

Version Description

Metform 1.3.0-beta1 is a major update. We have reconstructed the widgets with react and huge optimization for future proof. If you faced any issue please contact our support team from here https://help.wpmet.com/

Download this release

Release Info

Developer ataurr
Plugin Icon 128x128 Metform Elementor Contact Form Builder – Flexible and Design-Friendly Contact Form builder plugin for WordPress
Version 1.3.17
Comparing to
See all releases

Code changes from version 1.3.15 to 1.3.17

Files changed (52) hide show
  1. core/entries/action.php +12 -1
  2. metform.php +1 -1
  3. plugin.php +1 -1
  4. public/assets/css/style.css +1 -1
  5. public/assets/js/app.js +1 -1
  6. readme.txt +12 -2
  7. trunk/autoloader.php +0 -57
  8. trunk/base/api.php +0 -44
  9. trunk/base/common.php +0 -37
  10. trunk/base/cpt.php +0 -21
  11. trunk/base/shortcode.php +0 -171
  12. trunk/controls/assets/css/form-picker-editor.css +0 -1
  13. trunk/controls/assets/css/form-picker-inspactor.css +0 -1
  14. trunk/controls/assets/img/edit_icon.svg +0 -39
  15. trunk/controls/assets/js/form-picker-editor.js +0 -1
  16. trunk/controls/assets/js/form-picker-inspactor.js +0 -1
  17. trunk/controls/base.php +0 -57
  18. trunk/controls/control-manager.php +0 -17
  19. trunk/controls/form-editor-modal.php +0 -53
  20. trunk/controls/form-picker-modal.php +0 -96
  21. trunk/controls/form-picker-utils.php +0 -53
  22. trunk/controls/form-picker.php +0 -80
  23. trunk/core/admin/base.php +0 -95
  24. trunk/core/admin/images/banner.png +0 -0
  25. trunk/core/admin/images/feature-preview.png +0 -0
  26. trunk/core/admin/images/metform_logo.png +0 -0
  27. trunk/core/admin/images/rate-now-thumb.png +0 -0
  28. trunk/core/admin/views/settings.php +0 -903
  29. trunk/core/entries/action.php +0 -936
  30. trunk/core/entries/api.php +0 -138
  31. trunk/core/entries/base.php +0 -23
  32. trunk/core/entries/cpt.php +0 -73
  33. trunk/core/entries/export.php +0 -90
  34. trunk/core/entries/form-data.php +0 -146
  35. trunk/core/entries/hooks.php +0 -105
  36. trunk/core/entries/map-el.php +0 -57
  37. trunk/core/entries/meta-data.php +0 -304
  38. trunk/core/entries/metform-shortcode.php +0 -61
  39. trunk/core/forms/action.php +0 -263
  40. trunk/core/forms/api.php +0 -297
  41. trunk/core/forms/base.php +0 -38
  42. trunk/core/forms/builder.php +0 -56
  43. trunk/core/forms/cpt.php +0 -414
  44. trunk/core/forms/hooks.php +0 -82
  45. trunk/core/forms/views/modal-editor.php +0 -761
  46. trunk/core/integrations/Mail_Adapter.php +0 -18
  47. trunk/core/integrations/Mail_Adapter_Contract.php +0 -13
  48. trunk/core/integrations/google-recaptcha.php +0 -85
  49. trunk/core/integrations/mail-chimp.php +0 -80
  50. trunk/core/integrations/provider/aweber/test +0 -0
  51. trunk/core/integrations/slack.php +0 -50
  52. trunk/languages/metform.pot +0 -2809
core/entries/action.php CHANGED
@@ -74,7 +74,7 @@ class Action
74
  $this->email_name = (isset($email_name[0]) ? $email_name[0] : null);
75
 
76
  // nonce check
77
- if( ! Helper::mf_is_woo_exists() ) {
78
  if (!isset($form_data['form_nonce']) || !wp_verify_nonce($form_data['form_nonce'], 'form_nonce')) {
79
  $this->response->status = 0;
80
  $this->response->error[] = esc_html__('Unauthorized submission.', 'metform');
@@ -752,6 +752,17 @@ class Action
752
  }
753
  }
754
 
 
 
 
 
 
 
 
 
 
 
 
755
  public function get_fields($form_id = null)
756
  {
757
  if ($form_id != null) {
74
  $this->email_name = (isset($email_name[0]) ? $email_name[0] : null);
75
 
76
  // nonce check
77
+ if( ! $this->mf_is_woo_exists() ) {
78
  if (!isset($form_data['form_nonce']) || !wp_verify_nonce($form_data['form_nonce'], 'form_nonce')) {
79
  $this->response->status = 0;
80
  $this->response->error[] = esc_html__('Unauthorized submission.', 'metform');
752
  }
753
  }
754
 
755
+ /**
756
+ * Check if woocommerce is exists
757
+ */
758
+ public static function mf_is_woo_exists()
759
+ {
760
+ if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
761
+ return true;
762
+ }
763
+ return false;
764
+ }
765
+
766
  public function get_fields($form_id = null)
767
  {
768
  if ($form_id != null) {
metform.php CHANGED
@@ -5,7 +5,7 @@ defined( 'ABSPATH' ) || exit;
5
  * Plugin Name: MetForm
6
  * Plugin URI: http://products.wpmet.com/metform/
7
  * Description: Most flexible and design friendly form builder for Elementor
8
- * Version: 1.3.15
9
  * Author: Wpmet
10
  * Author URI: https://wpmet.com
11
  * Text Domain: metform
5
  * Plugin Name: MetForm
6
  * Plugin URI: http://products.wpmet.com/metform/
7
  * Description: Most flexible and design friendly form builder for Elementor
8
+ * Version: 1.3.17
9
  * Author: Wpmet
10
  * Author URI: https://wpmet.com
11
  * Text Domain: metform
plugin.php CHANGED
@@ -20,7 +20,7 @@ final class Plugin
20
 
21
  public function version()
22
  {
23
- return '1.3.15';
24
  }
25
 
26
  public function package_type()
20
 
21
  public function version()
22
  {
23
+ return '1.3.17';
24
  }
25
 
26
  public function package_type()
public/assets/css/style.css CHANGED
@@ -1 +1 @@
1
- #elementor .mf-btn-wraper a.metform-btn{background:#337ab7;color:#fff;border-radius:5px;height:20%;font-size:16px;padding:10px}.mf-form-wrapper section,.single-metform-form section{padding-top:0;padding-bottom:0}.mf-input-switch-control{position:relative;display:inline-block}.mf-input-switch-control>input[type=checkbox]{display:none!important}.mf-input-control{position:absolute;z-index:-1;opacity:0}.mf-input-switch .mf-input-control-label::before{content:attr(data-disable);width:55px;height:25px;background-color:#ededed;left:0;border-radius:15px;text-align:right;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s;float:right;line-height:18px;cursor:pointer;display:flex;align-items:center;justify-content:flex-end}.metform-form-content{position:relative;z-index:0}.mf-response-msg-wrap{overflow:hidden;-webkit-transition:height .45s,opacity .45s,visibility .45s;transition:height .45s,opacity .45s,visibility .45s;background-color:#fff;border:1px solid #101010;border-radius:5px}.mf-response-msg-wrap[data-show="0"]{height:0!important;opacity:0;visibility:hidden}.mf-response-msg-wrap[data-show="1"]{height:auto;opacity:1;visibility:visible;margin-bottom:20px}.mf-response-msg{margin:0 auto 20px;border-radius:5px;text-align:center;padding:15px 34px;display:flex;justify-content:center;flex-direction:column;align-items:center;height:100%}.wf-error-res{background-color:#f8d7da;border-color:#f5c6cb}.mf-success-icon,.wf-error-res .mf-alert-icon{color:#721c24;font-size:30px;margin-bottom:5px}.mf-success-icon{color:#101010}.mf-response-msg p{font-size:17px;line-height:20px;color:#101010;margin-bottom:0}.wf-error-res p{color:#721c24}.custom-file-label,.custom-select,.mf-input-control-label::before{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.mf-input-control-label::after{position:absolute;top:2px;left:2px;display:block;width:14px;height:14px;content:"";background-color:#adb5bd;border-radius:100px;transition:all .4s;cursor:pointer}.mf-input-switch label.mf-input-control-label{display:inline-block;vertical-align:middle;position:relative;margin:0}.mf-input-control:checked~.mf-input-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff;content:attr(data-enable);text-align:left;padding-left:10px;justify-content:flex-start}.mf-input-switch .mf-input-control:checked~.mf-input-control-label::after{background-color:#fff}.mf-input-wrapper .mf-input-help{display:block;font-size:.9em;margin-top:5px;opacity:.7;clear:both;font-weight:400}.mf-input-wrapper .mf-input{width:100%;max-width:100%;padding:12px;height:auto;border-width:1px;border-style:solid;border-color:#eaeaea;border-radius:2px;background:0 0;background-color:#fafafa;box-shadow:none;box-sizing:border-box;transition:all .2s linear;font-size:14px;line-height:21px}.mf-input-wrapper .mf-input:focus,.mf-input-wrapper.mf-field-error .mf-input,.mf-input-wrapper.mf-field-error .mf-input:focus{outline:0}.mf-input-wrapper .mf-input:focus{border-color:#4285f478}.mf-input-wrapper .mf-input::placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input:-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}@media (max-width:767px){.attr-form-group>.attr-control-label,.attr-form-group>.mf-input,.mf-input-wrapper>.mf-captcha-input-wrapper,.mf-input-wrapper>.mf-checkbox,.mf-input-wrapper>.mf-image-select,.mf-input-wrapper>.mf-input-label,.mf-input-wrapper>.mf-input:not(.mf-left-parent),.mf-input-wrapper>.mf-payment-method,.mf-input-wrapper>.mf-radio,.mf-input-wrapper>.mf-repeater-field-label,.mf-input-wrapper>.mf-signature{width:100%;min-width:100%}}.mf-input-wrapper .mf-input-label,.mf-repeater-field-label{font-family:Roboto,Sans-serif;font-weight:600;font-size:14px;display:block;color:#000;font-size:14px;line-height:16px;margin-bottom:5px}.mf-input-wrapper .mf-input,.mf-input-wrapper .mf-input-label{vertical-align:middle}div.mf-input-wrapper>textarea.mf-input{padding:15px}.irs--round .irs-max,.irs--round .irs-min{display:none}.irs--round .irs-handle{cursor:pointer}.mf-checkbox-option input[type=checkbox]{display:none}.mf-checkbox-option:not(.disabled) label{cursor:pointer}.mf-checkbox-option input[type=checkbox]+span:before{position:relative;content:"\f0c8";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px}.mf-checkbox-option input[type=checkbox]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-checkbox-option input[type=checkbox]:checked+span:before{content:"\f14a";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-radio-option input[type=radio]{display:none}.mf-checkbox-option,.mf-radio-option{padding-right:15px}.mf-radio-option input[type=radio]+span:before{content:"\f111";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px;position:relative}.mf-radio-option input[type=radio]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-radio-option input[type=radio]:checked+span:before{content:"\f058";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-input-wrapper .mf-input-select{padding:0!important}.mf-input-select .mf_select__control{min-height:0;padding:12px;border-width:0;border-radius:0;box-shadow:none;cursor:pointer;border-radius:none!important;border:1px solid #eaeaea;background-color:transparent}.mf-input-select .mf_select__control:hover{border:1px solid #eaeaea}.mf-input-select .mf_select__indicator-separator{display:none}.mf-input-select .mf_select__value-container,.mf-input-select .mf_select__value-container input{padding:0}.mf-input-select .mf_select__placeholder{margin-left:0;margin-right:0;color:inherit}.mf-input-select .mf_select__indicators{margin-right:2px}.mf-input-multiselect .mf_multiselect__indicators{margin-right:15px}.mf-input-multiselect .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__indicator{padding:0;border-style:solid;border-width:5px 4px 0;border-color:currentColor transparent transparent}.mf-input-multiselect .mf_multiselect__control--menu-is-open .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__control--menu-is-open .mf_select__indicator{border-width:0 4px 5px;border-color:transparent transparent currentColor}.mf-input-multiselect .mf_multiselect__dropdown-indicator>svg,.mf-input-select .mf_select__indicator>svg{display:none}.mf-input-select .mf_select__menu{width:100%;margin:0;border-radius:0;box-shadow:none;background-color:#fff}.mf-input-select .mf_select__menu>div{overflow-X:hidden}.mf-input-select .mf_select__menu-list{padding:0}.mf-input-select .mf_select__option{cursor:pointer;border:1px solid #eaeaea}.mf-input-select .mf_select__option.mf_select__option--is-focused,.mf-input-select .mf_select__option.mf_select__option--is-selected,.mf-input-select .mf_select__option:hover{background-color:#f0f0f0}.mf-input-select .mf_select__control.mf_select__control--is-focused{border-color:#4285f478;background-color:#fff}.mf-input.mf-input-select{border:none!important;background-color:#fafafa}.mf-input-select .mf_select__single-value{position:relative;top:0;width:100%;max-width:calc(100% - 22px);margin-left:0;margin-right:0;transform:none}.mf-input-wrapper select.mf-input-dropdown{border:none;padding:15px 25px;font-size:15px;font-weight:500!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-width:1px;border-style:solid;border-color:#eaeaea}.mf-input-wrapper select.mf-input-dropdown option{background-color:#fff;color:#222;font-size:15px}.mf-input-switch-control.mf-input-switch.mf-input{box-shadow:none!important;vertical-align:-webkit-baseline-middle;border:none;padding:0}.mf-input-wrapper .range-slider{display:inline-block;width:100%}.mf-input-wrapper .asRange{width:100%;background-color:#f1f4f9}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip:before,.mf-input-wrapper .asRange .asRange-pointer:before,.mf-input-wrapper .asRange .asRange-selected{background-color:#1fb787}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip{background-color:#1fb787;border:1px solid #1fb787;top:inherit;bottom:18px;left:-50%;margin-left:8px;transform:translateX(-50%)}.metform-btn{background-color:#4285f4;border:none;box-shadow:none;display:inline-block;max-width:100%;padding:16px 40px;font-size:16px;border-radius:2px;cursor:pointer;box-shadow:0 5px 5px 0 rgba(66,133,244,.3);line-height:18px;transition:all .4s;font-weight:500;text-decoration:none}.metform-btn:focus,.metform-btn:hover{background-color:#4285f4;text-decoration:none;outline:0}button.metform-btn,button.metform-btn:not(.toggle){background-color:#4285f4}button.metform-btn:focus,button.metform-btn:hover{background-color:#4285f4}@media (max-width:767px){.mf-btn--mobile-justify .metform-btn{width:100%}}@media (min-width:768px) and (max-width:1024px){.mf-btn--tablet-justify .metform-btn{width:100%}}@media (min-width:1025px){.mf-btn--justify .metform-btn{width:100%}}.metform-submit-btn{position:relative;z-index:0}.metform-submit-btn:after,.metform-submit-btn:before{content:" ";position:absolute;top:50%;left:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-style:solid;border-color:currentColor;border-width:0;border-radius:50%;opacity:0;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.metform-submit-btn[disabled]:after,.metform-submit-btn[disabled]:before{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}.metform-submit-btn:before{border-width:2px}.metform-submit-btn[disabled]:before{opacity:.25}.metform-submit-btn:after{border-top-width:2px;-webkit-animation:submitSpin .55s linear infinite;animation:submitSpin .55s linear infinite}.metform-submit-btn>span{-webkit-transition:opacity .15s ease .15s;transition:opacity .15s ease .15s}.metform-submit-btn[disabled]>span{opacity:0;-webkit-transition-delay:0;transition-delay:0}@-webkit-keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.mf-input-wrapper .iti{display:block}.mf-input-wrapper>.iti{display:inline-block;width:100%}.mf-input-wrapper .iti .mf-input{width:100%!important}.mf-input-wrapper .iti--separate-dial-code .iti__selected-flag{background-color:#f7f6f6}.mf-input-wrapper .iti .iti__flag-container{display:none}.mf-input-wrapper .iti>.iti__flag-container{display:block}.flatpickr-calendar{margin-top:8px}.flatpickr-month{margin-top:3px;margin-bottom:5px}.mf-input-wrapper>.flatpickr-wrapper{display:block}.flatpickr-wrapper select{display:inline-block}.elementor-widget-mf-date.elementor-element-edit-mode .flatpickr-calendar,.elementor-widget-mf-time.elementor-element-edit-mode .flatpickr-calendar{top:100%!important;left:0!important}.mf-ratings{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;cursor:pointer}.mf-ratings>input{display:none!important}.mf-ratings>label{cursor:pointer}.mf-ratings>label:not(:last-child){padding-right:5px}.mf-ratings.is-selected>label,.mf-ratings:not(.is-selected):hover>label{color:#ffdb72}.mf-ratings.is-selected:not(:hover)>input:checked+label~label,.mf-ratings.is-selected>label:hover~label,.mf-ratings:not(.is-selected),.mf-ratings:not(.is-selected)>label:hover~label{color:#ccc}.mf-input-file-upload{width:.1px;height:.1px;opacity:0;visibility:hidden;position:absolute}.mf-input-file-upload-label{color:#fff;margin-right:10px;padding:5px 15px;display:inline-flex;align-items:center;box-shadow:none;font-size:16px;font-weight:400;line-height:28px}.mf-input-file-upload-label i{font-size:18px}.mf-input-file-upload-label svg{max-width:18px;height:auto;vertical-align:middle}.mf-file-name span{display:inline-block;font-size:15px}.mf-input-wrapper .error{display:block;font-size:14px}.mf-input-multiselect,.mf-input-select{padding:0;cursor:pointer}.mf-input.mf-input-multiselect{padding:0!important;box-shadow:none!important;border:none!important}.mf-input-multiselect .mf_multiselect__control{border:1px solid #eaeaea;border-radius:0;background-color:#fafafa;cursor:pointer}.mf-input-multiselect .mf_multiselect__control:focus,.mf-input-multiselect .mf_multiselect__control:hover{border:1px solid #eaeaea;outline:0;box-shadow:none}.mf_multiselect__indicator-separator{display:none}.mf_multiselect__option.mf_multiselect__option--is-focused,.mf_multiselect__option:hover{background-color:#f0f0f0}.mf_multiselect__option.mf_multiselect__option--is-focused{background-color:#fff}.mf_multiselect__option{border:1px solid #eaeaea;background-color:#fff;padding:10px 15px;font-size:15px}.mf-input-multiselect .mf_multiselect__menu{margin:0;border-radius:0;box-shadow:none;cursor:pointer}.mf-input-multiselect .mf_multiselect__menu-list{padding:0}.mf-input-multiselect .mf_multiselect__placeholder{color:#c9c1c1}.mf_multiselect__menu-notice--no-options{border:1px solid #eaeaea;color:#c9c1c1}.mf_multiselect__control .mf_multiselect__value-container{padding:8px 12px}.mf_multiselect__control .mf_multiselect__value-container>div:last-child{height:25px}.mf-input-multiselect .mf_multiselect__multi-value{margin:0 5px 0 0}.mf_multiselect__multi-value__remove{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.mf_multiselect__multi-value__label{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.mf-input-multiselect .mf_multiselect__input>input{min-height:0}.mf-input.mf-input-summary{padding:0;background-color:#fff;border-width:0}.mf-entry-data{margin:0;padding:0;list-style:none;word-break:break-word}.mf-entry-data>li{border:1px solid rgba(0,0,0,.1)}.mf-entry-data>li:not(:last-child){border-bottom-width:0}.mf-entry-data>li>strong{display:block;padding:8px;background-color:#eaf2fa;border-bottom:1px solid rgba(0,0,0,.1)}.mf-entry-data>li>span{display:block;padding:8px 28px;min-height:42px}.elementor-widget-mf-range .mf-field-error .error{display:none!important}.g-recaptcha>div{position:relative;z-index:0}.g-recaptcha>div:after,.g-recaptcha>div:before,.g-recaptcha>div>div:after,.g-recaptcha>div>div:before{content:" ";position:absolute;border-style:solid;border-color:#d3d3d3;border-width:0;z-index:0}.g-recaptcha>div:before{top:0;left:0;bottom:2px;border-left-width:1px}.g-recaptcha>div:after{top:0;right:2px;bottom:2px;border-right-width:1px}.g-recaptcha>div>div:before{top:0;left:0;right:2px;border-top-width:1px}.g-recaptcha>div>div:after{left:0;right:2px;bottom:2px;border-bottom-width:1px}.g-recaptcha+.attr-alert{display:none}.g-recaptcha:empty+.attr-alert{display:block!important}.mf-captcha-input-wrapper.mf-captcha-block>i{padding-left:25px}img.mf-input.mf-captcha-image{max-width:200px;border:none;box-sizing:unset;background:0 0;padding:0;display:inline-block}.mf-captcha-block>img.mf-input.mf-captcha-image{margin:5px 0 5px 0}.mf-captcha-inline>img.mf-input.mf-captcha-image{margin:0 5px 0 0}.mf-captcha-input-wrapper.mf-captcha-inline{display:inline-flex!important;align-items:center;width:100%}.mf-captcha-input-wrapper.mf-captcha-inline>i{margin-left:25px!important;order:1}.mf-refresh-captcha:before{content:"\f01e";font-family:"Font Awesome 5 Free";font-weight:700;font-style:normal;cursor:pointer}.mf-error-message{display:block}.mf-input-wrapper .input-range__slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border:4px solid #000;border-radius:100%;cursor:pointer;display:block;height:15px;margin-left:-7.5px;margin-top:-11px;outline:0;position:absolute;top:50%;-webkit-transition:box-shadow .3s ease-out,-webkit-transform .3s ease-out;transition:box-shadow .3s ease-out,-webkit-transform .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;width:15px}.mf-input-wrapper .input-range__slider:focus{box-shadow:0 0 0 5px rgba(63,81,181,.2)}.input-range--disabled .input-range__slider{background:#ccc;border:1px solid #ccc;box-shadow:none;-webkit-transform:none;transform:none}.mf-input-wrapper .input-range__slider-container{-webkit-transition:left .3s ease-out;transition:left .3s ease-out}.mf-input-wrapper .input-range__label{color:#aaa;font-family:"Helvetica Neue",san-serif;font-size:.8rem;-webkit-transform:translateZ(0);transform:translateZ(0);white-space:nowrap}.mf-input-wrapper .input-range__label--max,.mf-input-wrapper .input-range__label--min{bottom:-1.4rem;position:absolute;display:none}.mf-input-wrapper .input-range__label--min{left:0}.mf-input-wrapper .input-range__label--max{right:0}.mf-input-wrapper .input-range__label--value{position:absolute;bottom:20px}.mf-input-wrapper .input-range__label-container{left:-50%;position:relative;background-color:#000;width:36px;height:20px;display:inline-block;color:#fff;font-size:12px;text-align:center;border-radius:3px}.mf-input-wrapper .input-range__label-container:before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#000;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.mf-input-wrapper .input-range__label--max .input-range__label-container{left:50%}.mf-input-wrapper .input-range__track{background:#f1f4f9;border-radius:.3rem;cursor:pointer;display:block;height:8px;position:relative;-webkit-transition:left .3s ease-out,width .3s ease-out;transition:left .3s ease-out,width .3s ease-out}.mf-input-wrapper .input-range--disabled .input-range__track{background:#f1f4f9}.mf-input-wrapper .input-range__track--background{left:0;margin-top:-.15rem;position:absolute;right:0;top:50%}.mf-input-wrapper .input-range__track--active{background:#000}.mf-input-wrapper .input-range{height:1rem;position:relative;width:100%}.mf-condition--hidden{display:none;visibility:hidden}
1
+ #elementor .mf-btn-wraper a.metform-btn{background:#337ab7;color:#fff;border-radius:5px;height:20%;font-size:16px;padding:10px}.mf-form-wrapper section,.single-metform-form section{padding-top:0;padding-bottom:0}.mf-input-switch-control{position:relative;display:inline-block}.mf-input-switch-control>input[type=checkbox]{display:none!important}.mf-input-control{position:absolute;z-index:-1;opacity:0}.mf-input-switch .mf-input-control-label::before{content:attr(data-disable);width:55px;height:25px;background-color:#ededed;left:0;border-radius:15px;text-align:right;color:#fff;text-transform:uppercase;font-weight:700;font-size:10px;padding:3px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:10px;-webkit-transition:all .4s;-o-transition:all .4s;transition:all .4s;float:right;line-height:18px;cursor:pointer;display:flex;align-items:center;justify-content:flex-end}.metform-form-content{position:relative;z-index:0}.mf-response-msg-wrap{overflow:hidden;-webkit-transition:height .45s,opacity .45s,visibility .45s;transition:height .45s,opacity .45s,visibility .45s;background-color:#fff;border:1px solid #101010;border-radius:5px}.mf-response-msg-wrap[data-show="0"]{height:0!important;opacity:0;visibility:hidden}.mf-response-msg-wrap[data-show="1"]{height:auto;opacity:1;visibility:visible;margin-bottom:20px}.mf-response-msg{margin:0 auto 20px;border-radius:5px;text-align:center;padding:15px 34px;display:flex;justify-content:center;flex-direction:column;align-items:center;height:100%}.wf-error-res{background-color:#f8d7da;border-color:#f5c6cb}.mf-success-icon,.wf-error-res .mf-alert-icon{color:#721c24;font-size:30px;margin-bottom:5px}.mf-success-icon{color:#101010}.mf-response-msg p{font-size:17px;line-height:20px;color:#101010;margin-bottom:0}.wf-error-res p{color:#721c24}.custom-file-label,.custom-select,.mf-input-control-label::before{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.mf-input-control-label::after{position:absolute;top:2px;left:2px;display:block;width:14px;height:14px;content:"";background-color:#adb5bd;border-radius:100px;transition:all .4s;cursor:pointer}.mf-input-switch label.mf-input-control-label{display:inline-block;vertical-align:middle;position:relative;margin:0}.mf-input-control:checked~.mf-input-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff;content:attr(data-enable);text-align:left;padding-left:10px;justify-content:flex-start}.mf-input-switch .mf-input-control:checked~.mf-input-control-label::after{background-color:#fff}.mf-input-wrapper .mf-input-help{display:block;font-size:.9em;margin-top:5px;opacity:.7;clear:both;font-weight:400}.mf-input-wrapper .mf-input{width:100%;max-width:100%;padding:12px;height:auto;border-width:1px;border-style:solid;border-color:#eaeaea;border-radius:2px;background:0 0;background-color:#fafafa;box-shadow:none;box-sizing:border-box;transition:all .2s linear;font-size:14px;line-height:21px}.mf-input-wrapper .mf-input:focus,.mf-input-wrapper.mf-field-error .mf-input,.mf-input-wrapper.mf-field-error .mf-input:focus{outline:0}.mf-input-wrapper .mf-input:focus{border-color:#4285f478}.mf-input-wrapper .mf-input::placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input::-webkit-input-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}.mf-input-wrapper .mf-input:-moz-placeholder{color:#c9c1c1;font-weight:400;font-size:14px}@media (max-width:767px){.attr-form-group>.attr-control-label,.attr-form-group>.mf-input,.mf-input-wrapper>.mf-captcha-input-wrapper,.mf-input-wrapper>.mf-checkbox,.mf-input-wrapper>.mf-image-select,.mf-input-wrapper>.mf-input-label,.mf-input-wrapper>.mf-input:not(.mf-left-parent),.mf-input-wrapper>.mf-payment-method,.mf-input-wrapper>.mf-radio,.mf-input-wrapper>.mf-repeater-field-label,.mf-input-wrapper>.mf-signature{width:100%;min-width:100%}}.mf-input-wrapper .mf-input-label,.mf-repeater-field-label{font-family:Roboto,Sans-serif;font-weight:600;font-size:14px;display:block;color:#000;font-size:14px;line-height:16px;margin-bottom:5px}.mf-input-wrapper .mf-input,.mf-input-wrapper .mf-input-label{vertical-align:middle}div.mf-input-wrapper>textarea.mf-input{padding:15px}.irs--round .irs-max,.irs--round .irs-min{display:none}.irs--round .irs-handle{cursor:pointer}.mf-checkbox-option input[type=checkbox]{display:none}.mf-checkbox-option:not(.disabled) label{cursor:pointer}.mf-checkbox-option input[type=checkbox]+span:before{position:relative;content:"\f0c8";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px}.mf-checkbox-option input[type=checkbox]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-checkbox-option input[type=checkbox]:checked+span:before{content:"\f14a";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-radio-option input[type=radio]{display:none}.mf-checkbox-option,.mf-radio-option{padding-right:15px}.mf-radio-option input[type=radio]+span:before{content:"\f111";font-family:"Font Awesome 5 Free"!important;font-weight:500!important;display:inline-block;border:none;font-size:18px;color:#5f7bff;font-weight:400;width:25px;line-height:1;top:2px;position:relative}.mf-radio-option input[type=radio]+span{font-weight:400;font-size:14px;cursor:pointer}.mf-radio-option input[type=radio]:checked+span:before{content:"\f058";font-family:"Font Awesome 5 Free"!important;display:inline-block;border:none;font-size:18px;color:#5f7bff}.mf-input-wrapper .mf-input-select{padding:0!important}.mf-input-select .mf_select__control{min-height:0;padding:12px;border-width:0;border-radius:0;box-shadow:none;cursor:pointer;border-radius:none!important;border:1px solid #eaeaea;background-color:transparent}.mf-input-select .mf_select__control:hover{border:1px solid #eaeaea}.mf-input-select .mf_select__indicator-separator{display:none}.mf-input-select .mf_select__value-container,.mf-input-select .mf_select__value-container input{padding:0}.mf-input-select .mf_select__placeholder{margin-left:0;margin-right:0;color:inherit}.mf-input-select .mf_select__indicators{margin-right:2px}.mf-input-multiselect .mf_multiselect__indicators{margin-right:15px}.mf-input-multiselect .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__indicator{padding:0;border-style:solid;border-width:5px 4px 0;border-color:currentColor transparent transparent}.mf-input-multiselect .mf_multiselect__control--menu-is-open .mf_multiselect__dropdown-indicator,.mf-input-select .mf_select__control--menu-is-open .mf_select__indicator{border-width:0 4px 5px;border-color:transparent transparent currentColor}.mf-input-multiselect .mf_multiselect__dropdown-indicator>svg,.mf-input-select .mf_select__indicator>svg{display:none}.mf-input-select .mf_select__menu{width:100%;margin:0;border-radius:0;box-shadow:none;background-color:#fff}.mf-input-select .mf_select__menu>div{overflow-X:hidden}.mf-input-select .mf_select__menu-list{padding:0}.mf-input-select .mf_select__option{cursor:pointer;border:1px solid #eaeaea}.mf-input-select .mf_select__option.mf_select__option--is-focused,.mf-input-select .mf_select__option.mf_select__option--is-selected,.mf-input-select .mf_select__option:hover{background-color:#f0f0f0}.mf-input-select .mf_select__control.mf_select__control--is-focused{border-color:#4285f478;background-color:inherit}.mf-input.mf-input-select{border:none!important;background-color:#fafafa}.mf-input-select .mf_select__single-value{position:relative;top:0;width:100%;max-width:calc(100% - 22px);margin-left:0;margin-right:0;transform:none}.mf-input-wrapper select.mf-input-dropdown{border:none;padding:15px 25px;font-size:15px;font-weight:500!important;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-width:1px;border-style:solid;border-color:#eaeaea}.mf-input-wrapper select.mf-input-dropdown option{background-color:#fff;color:#222;font-size:15px}.mf-input-switch-control.mf-input-switch.mf-input{box-shadow:none!important;vertical-align:-webkit-baseline-middle;border:none;padding:0}.mf-input-wrapper .range-slider{display:inline-block;width:100%}.mf-input-wrapper .asRange{width:100%;background-color:#f1f4f9}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip:before,.mf-input-wrapper .asRange .asRange-pointer:before,.mf-input-wrapper .asRange .asRange-selected{background-color:#1fb787}.mf-input-wrapper .asRange .asRange-pointer .asRange-tip{background-color:#1fb787;border:1px solid #1fb787;top:inherit;bottom:18px;left:-50%;margin-left:8px;transform:translateX(-50%)}.metform-btn{background-color:#4285f4;border:none;box-shadow:none;display:inline-block;max-width:100%;padding:16px 40px;font-size:16px;border-radius:2px;cursor:pointer;box-shadow:0 5px 5px 0 rgba(66,133,244,.3);line-height:18px;transition:all .4s;font-weight:500;text-decoration:none}.metform-btn:focus,.metform-btn:hover{background-color:#4285f4;text-decoration:none;outline:0}button.metform-btn,button.metform-btn:not(.toggle){background-color:#4285f4}button.metform-btn:focus,button.metform-btn:hover{background-color:#4285f4}@media (max-width:767px){.mf-btn--mobile-justify .metform-btn{width:100%}}@media (min-width:768px) and (max-width:1024px){.mf-btn--tablet-justify .metform-btn{width:100%}}@media (min-width:1025px){.mf-btn--justify .metform-btn{width:100%}}.metform-submit-btn{position:relative;z-index:0}.metform-submit-btn:after,.metform-submit-btn:before{content:" ";position:absolute;top:50%;left:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-style:solid;border-color:currentColor;border-width:0;border-radius:50%;opacity:0;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.metform-submit-btn[disabled]:after,.metform-submit-btn[disabled]:before{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}.metform-submit-btn:before{border-width:2px}.metform-submit-btn[disabled]:before{opacity:.25}.metform-submit-btn:after{border-top-width:2px;-webkit-animation:submitSpin .55s linear infinite;animation:submitSpin .55s linear infinite}.metform-submit-btn>span{-webkit-transition:opacity .15s ease .15s;transition:opacity .15s ease .15s}.metform-submit-btn[disabled]>span{opacity:0;-webkit-transition-delay:0;transition-delay:0}@-webkit-keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes submitSpin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.mf-input-wrapper .iti{display:block}.mf-input-wrapper>.iti{display:inline-block;width:100%}.mf-input-wrapper .iti .mf-input{width:100%!important}.mf-input-wrapper .iti--separate-dial-code .iti__selected-flag{background-color:#f7f6f6}.mf-input-wrapper .iti .iti__flag-container{display:none}.mf-input-wrapper .iti>.iti__flag-container{display:block}.flatpickr-calendar{margin-top:8px}.flatpickr-month{margin-top:3px;margin-bottom:5px}.mf-input-wrapper>.flatpickr-wrapper{display:block}.flatpickr-wrapper select{display:inline-block}.elementor-widget-mf-date.elementor-element-edit-mode .flatpickr-calendar,.elementor-widget-mf-time.elementor-element-edit-mode .flatpickr-calendar{top:100%!important;left:0!important}.mf-ratings{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;cursor:pointer}.mf-ratings>input{display:none!important}.mf-ratings>label{cursor:pointer}.mf-ratings>label:not(:last-child){padding-right:5px}.mf-ratings.is-selected>label,.mf-ratings:not(.is-selected):hover>label{color:#ffdb72}.mf-ratings.is-selected:not(:hover)>input:checked+label~label,.mf-ratings.is-selected>label:hover~label,.mf-ratings:not(.is-selected),.mf-ratings:not(.is-selected)>label:hover~label{color:#ccc}.mf-input-file-upload{width:.1px;height:.1px;opacity:0;visibility:hidden;position:absolute}.mf-input-file-upload-label{color:#fff;margin-right:10px;padding:5px 15px;display:inline-flex;align-items:center;box-shadow:none;font-size:16px;font-weight:400;line-height:28px}.mf-input-file-upload-label i{font-size:18px}.mf-input-file-upload-label svg{max-width:18px;height:auto;vertical-align:middle}.mf-file-name span{display:inline-block;font-size:15px}.mf-input-wrapper .error{display:block;font-size:14px}.mf-input-multiselect,.mf-input-select{padding:0;cursor:pointer}.mf-input.mf-input-multiselect{padding:0!important;box-shadow:none!important;border:none!important}.mf-input-multiselect .mf_multiselect__control{border:1px solid #eaeaea;border-radius:0;background-color:#fafafa;cursor:pointer}.mf-input-multiselect .mf_multiselect__control:focus,.mf-input-multiselect .mf_multiselect__control:hover{border:1px solid #eaeaea;outline:0;box-shadow:none}.mf_multiselect__indicator-separator{display:none}.mf_multiselect__option.mf_multiselect__option--is-focused,.mf_multiselect__option:hover{background-color:#f0f0f0}.mf_multiselect__option.mf_multiselect__option--is-focused{background-color:#fff}.mf_multiselect__option{border:1px solid #eaeaea;background-color:#fff;padding:10px 15px;font-size:15px}.mf-input-multiselect .mf_multiselect__menu{margin:0;border-radius:0;box-shadow:none;cursor:pointer}.mf-input-multiselect .mf_multiselect__menu-list{padding:0}.mf-input-multiselect .mf_multiselect__placeholder{color:#c9c1c1}.mf_multiselect__menu-notice--no-options{border:1px solid #eaeaea;color:#c9c1c1}.mf_multiselect__control .mf_multiselect__value-container{padding:8px 12px}.mf_multiselect__control .mf_multiselect__value-container>div:last-child{height:25px}.mf-input-multiselect .mf_multiselect__multi-value{margin:0 5px 0 0}.mf_multiselect__multi-value__remove{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.mf_multiselect__multi-value__label{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.mf-input-multiselect .mf_multiselect__input>input{min-height:0}.mf-input.mf-input-summary{padding:0;background-color:#fff;border-width:0}.mf-entry-data{margin:0;padding:0;list-style:none;word-break:break-word}.mf-entry-data>li{border:1px solid rgba(0,0,0,.1)}.mf-entry-data>li:not(:last-child){border-bottom-width:0}.mf-entry-data>li>strong{display:block;padding:8px;background-color:#eaf2fa;border-bottom:1px solid rgba(0,0,0,.1)}.mf-entry-data>li>span{display:block;padding:8px 28px;min-height:42px}.elementor-widget-mf-range .mf-field-error .error{display:none!important}.g-recaptcha>div{position:relative;z-index:0}.g-recaptcha>div:after,.g-recaptcha>div:before,.g-recaptcha>div>div:after,.g-recaptcha>div>div:before{content:" ";position:absolute;border-style:solid;border-color:#d3d3d3;border-width:0;z-index:0}.g-recaptcha>div:before{top:0;left:0;bottom:2px;border-left-width:1px}.g-recaptcha>div:after{top:0;right:2px;bottom:2px;border-right-width:1px}.g-recaptcha>div>div:before{top:0;left:0;right:2px;border-top-width:1px}.g-recaptcha>div>div:after{left:0;right:2px;bottom:2px;border-bottom-width:1px}.g-recaptcha+.attr-alert{display:none}.g-recaptcha:empty+.attr-alert{display:block!important}.mf-captcha-input-wrapper.mf-captcha-block>i{padding-left:25px}img.mf-input.mf-captcha-image{max-width:200px;border:none;box-sizing:unset;background:0 0;padding:0;display:inline-block}.mf-captcha-block>img.mf-input.mf-captcha-image{margin:5px 0 5px 0}.mf-captcha-inline>img.mf-input.mf-captcha-image{margin:0 5px 0 0}.mf-captcha-input-wrapper.mf-captcha-inline{display:inline-flex!important;align-items:center;width:100%}.mf-captcha-input-wrapper.mf-captcha-inline>i{margin-left:25px!important;order:1}.mf-refresh-captcha:before{content:"\f01e";font-family:"Font Awesome 5 Free";font-weight:700;font-style:normal;cursor:pointer}.mf-error-message{display:block}.mf-input-wrapper .input-range__slider{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border:4px solid #000;border-radius:100%;cursor:pointer;display:block;height:15px;margin-left:-7.5px;margin-top:-11px;outline:0;position:absolute;top:50%;-webkit-transition:box-shadow .3s ease-out,-webkit-transform .3s ease-out;transition:box-shadow .3s ease-out,-webkit-transform .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out;transition:transform .3s ease-out,box-shadow .3s ease-out,-webkit-transform .3s ease-out;width:15px}.mf-input-wrapper .input-range__slider:focus{box-shadow:0 0 0 5px rgba(63,81,181,.2)}.input-range--disabled .input-range__slider{background:#ccc;border:1px solid #ccc;box-shadow:none;-webkit-transform:none;transform:none}.mf-input-wrapper .input-range__slider-container{-webkit-transition:left .3s ease-out;transition:left .3s ease-out}.mf-input-wrapper .input-range__label{color:#aaa;font-family:"Helvetica Neue",san-serif;font-size:.8rem;-webkit-transform:translateZ(0);transform:translateZ(0);white-space:nowrap}.mf-input-wrapper .input-range__label--max,.mf-input-wrapper .input-range__label--min{bottom:-1.4rem;position:absolute;display:none}.mf-input-wrapper .input-range__label--min{left:0}.mf-input-wrapper .input-range__label--max{right:0}.mf-input-wrapper .input-range__label--value{position:absolute;bottom:20px}.mf-input-wrapper .input-range__label-container{left:-50%;position:relative;background-color:#000;width:36px;height:20px;display:inline-block;color:#fff;font-size:12px;text-align:center;border-radius:3px}.mf-input-wrapper .input-range__label-container:before{position:absolute;bottom:-3px;left:50%;display:inline-block;width:6px;height:6px;margin-left:-3px;content:"";background-color:#000;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.mf-input-wrapper .input-range__label--max .input-range__label-container{left:50%}.mf-input-wrapper .input-range__track{background:#f1f4f9;border-radius:.3rem;cursor:pointer;display:block;height:8px;position:relative;-webkit-transition:left .3s ease-out,width .3s ease-out;transition:left .3s ease-out,width .3s ease-out}.mf-input-wrapper .input-range--disabled .input-range__track{background:#f1f4f9}.mf-input-wrapper .input-range__track--background{left:0;margin-top:-.15rem;position:absolute;right:0;top:50%}.mf-input-wrapper .input-range__track--active{background:#000}.mf-input-wrapper .input-range{height:1rem;position:relative;width:100%}.mf-condition--hidden{display:none;visibility:hidden}
public/assets/js/app.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=62)}([function(e,t){e.exports=React},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){e.exports=n(26)()},function(e,t,n){var r=n(12),o=n(15),a="[object Number]";e.exports=function(e){return"number"==typeof e||o(e)&&r(e)==a}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);Object.defineProperty(t,"captialize",{enumerable:!0,get:function(){return l(r).default}});var o=n(30);Object.defineProperty(t,"clamp",{enumerable:!0,get:function(){return l(o).default}});var a=n(31);Object.defineProperty(t,"distanceTo",{enumerable:!0,get:function(){return l(a).default}});var i=n(32);Object.defineProperty(t,"isDefined",{enumerable:!0,get:function(){return l(i).default}});var s=n(33);Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return l(s).default}});var u=n(34);Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return l(u).default}});var c=n(35);function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"length",{enumerable:!0,get:function(){return l(c).default}})},function(e,t,n){"use strict";function r(e,t,n){var r=n.value;if("function"!=typeof r)throw new Error("@autobind decorator can only be applied to methods not: "+typeof r);var o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t))return r;var n=r.bind(this);return o=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),o=!1,n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length?function(e){var t=void 0;"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype))));return t.forEach(function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof n.value&&Object.defineProperty(e.prototype,t,r(e,t,n))}}),e}.apply(void 0,t):r.apply(void 0,t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=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}}(),a=n(0),i=u(a),s=u(n(3));function u(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},l=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],f=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||p()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(f(e,this.sizer),this.placeHolderSizer&&f(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!=e?e:t}),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=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}(this.props,[]);return function(e){l.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},o,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}();h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(n(0)),o=a(n(3));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.formatLabel?e.formatLabel(e.children,e.type):e.children;return r.default.createElement("span",{className:e.classNames[e.type+"Label"]},r.default.createElement("span",{className:e.classNames.labelContainer},t))}i.propTypes={children:o.default.node.isRequired,classNames:o.default.objectOf(o.default.string).isRequired,formatLabel:o.default.func,type:o.default.string.isRequired},e.exports=t.default},function(e,t,n){var r=n(11);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}},function(e,t){e.exports=function(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(e,t,n){var r=n(13),o=n(59),a=n(60),i="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:i:u&&u in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(57).Symbol;e.exports=r},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(25),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t){e.exports=n(0)},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(t){var n=1/0,r=1.7976931348623157e308,o=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,f="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),h=Object.prototype.toString,m=p.Symbol,g=m?m.prototype:void 0,v=g?g.toString:void 0;function b(e){if("string"==typeof e)return e;if(w(e))return v?v.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==a}function O(e){return e?(e=function(e){if("number"==typeof e)return e;if(w(e))return o;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?o:+e}(e))===n||e===-n?(e<0?-1:1)*r:e==e?e:0:0===e?e:0}e.exports=function(e,t,n){var r,o,a;return e=null==(r=e)?"":b(r),o=function(e){var t=O(e),n=t%1;return t==t?n?t-n:t:0}(n),0,a=e.length,o==o&&(void 0!==a&&(o=o<=a?o:a),o=o>=0?o:0),n=o,t=b(t),e.slice(n,n+t.length)==t}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n,r="Expected a function",o="__lodash_hash_undefined__",a="[object Function]",i="[object GeneratorFunction]",s=/^\[object .+?Constructor\]$/,u="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=Array.prototype,d=Function.prototype,p=Object.prototype,h=l["__core-js_shared__"],m=(n=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",g=d.toString,v=p.hasOwnProperty,b=p.toString,y=RegExp("^"+g.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=f.splice,O=M(l,"Map"),C=M(Object,"create");function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function D(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function k(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function E(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function M(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!_(e)||(t=e,m&&m in t))&&(function(e){var t=_(e)?b.call(e):"";return t==a||t==i}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?y:s).test(function(e){if(null!=e){try{return g.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}function j(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(j.Cache||k),n}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}x.prototype.clear=function(){this.__data__=C?C(null):{}},x.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},x.prototype.get=function(e){var t=this.__data__;if(C){var n=t[e];return n===o?void 0:n}return v.call(t,e)?t[e]:void 0},x.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:v.call(t,e)},x.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?o:t,this},D.prototype.clear=function(){this.__data__=[]},D.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0||(n==t.length-1?t.pop():w.call(t,n,1),0))},D.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},D.prototype.has=function(e){return S(this.__data__,e)>-1},D.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new x,map:new(O||D),string:new x}},k.prototype.delete=function(e){return E(this,e).delete(e)},k.prototype.get=function(e){return E(this,e).get(e)},k.prototype.has=function(e){return E(this,e).has(e)},k.prototype.set=function(e,t){return E(this,e).set(e,t),this},j.Cache=k,e.exports=j}).call(this,n(3))},function(e,t,n){(function(t){var n=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,f=c||l||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return f.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==r}(e))return n;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var c=i.test(e);return c||s.test(e)?u(e.slice(2),c?2:8):a.test(e)?n:+e}e.exports=function(e,t,n){var r,o,a,i,s,u,c=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function y(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-c>=a}function w(){var e=m();if(y(e))return O(e);s=setTimeout(w,function(e){var n=t-(e-u);return f?h(n,a-(e-c)):n}(e))}function O(e){return s=void 0,d&&r?b(e):(r=o=void 0,i)}function C(){var e=m(),n=y(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(w,t),l?b(e):i}(u);if(f)return s=setTimeout(w,t),b(u)}return void 0===s&&(s=setTimeout(w,t)),i}return t=v(t)||0,g(n)&&(l=!!n.leading,a=(f="maxWait"in n)?p(v(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),C.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},C.flush=function(){return void 0===s?i:O(m())},C}}).call(this,n(3))},function(e,t,n){(function(e,n){var r="Expected a function",o="__lodash_hash_undefined__",a=1,i=2,s=1/0,u=9007199254740991,c="[object Arguments]",l="[object Array]",f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Object]",y="[object RegExp]",w="[object Set]",O="[object String]",C="[object Symbol]",x="[object ArrayBuffer]",D="[object DataView]",k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,E=/^\./,M=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j=/\\(\\)?/g,_=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[c]=T[l]=T[x]=T[f]=T[D]=T[d]=T[p]=T[h]=T[g]=T[v]=T[b]=T[y]=T[w]=T[O]=T["[object WeakMap]"]=!1;var A="object"==typeof e&&e&&e.Object===Object&&e,I="object"==typeof self&&self&&self.Object===Object&&self,L=A||I||Function("return this")(),N=t&&!t.nodeType&&t,R=N&&"object"==typeof n&&n&&!n.nodeType&&n,F=R&&R.exports===N&&A.process,V=function(){try{return F&&F.binding("util")}catch(e){}}(),H=V&&V.isTypedArray;function U(e,t,n,r){var o=-1,a=e?e.length:0;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function W(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function z(e,t,n,r,o){return o(e,function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)}),n}function B(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function K(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var q,G,$,J=Array.prototype,X=Function.prototype,Q=Object.prototype,Z=L["__core-js_shared__"],ee=(q=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",te=X.toString,ne=Q.hasOwnProperty,re=Q.toString,oe=RegExp("^"+te.call(ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ae=L.Symbol,ie=L.Uint8Array,se=Q.propertyIsEnumerable,ue=J.splice,ce=(G=Object.keys,$=Object,function(e){return G($(e))}),le=Ve(L,"DataView"),fe=Ve(L,"Map"),de=Ve(L,"Promise"),pe=Ve(L,"Set"),he=Ve(L,"WeakMap"),me=Ve(Object,"create"),ge=qe(le),ve=qe(fe),be=qe(de),ye=qe(pe),we=qe(he),Oe=ae?ae.prototype:void 0,Ce=Oe?Oe.valueOf:void 0,xe=Oe?Oe.toString:void 0;function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.__data__=new Se;++t<n;)this.add(e[t])}function Me(e){this.__data__=new ke(e)}function je(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}De.prototype.clear=function(){this.__data__=me?me(null):{}},De.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},De.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===o?void 0:n}return ne.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ne.call(t,e)},De.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?o:t,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(e){var t=this.__data__,n=je(t,e);return!(n<0||(n==t.length-1?t.pop():ue.call(t,n,1),0))},ke.prototype.get=function(e){var t=this.__data__,n=je(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return je(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,r=je(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Se.prototype.clear=function(){this.__data__={hash:new De,map:new(fe||ke),string:new De}},Se.prototype.delete=function(e){return Fe(this,e).delete(e)},Se.prototype.get=function(e){return Fe(this,e).get(e)},Se.prototype.has=function(e){return Fe(this,e).has(e)},Se.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,o),this},Ee.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.clear=function(){this.__data__=new ke},Me.prototype.delete=function(e){return this.__data__.delete(e)},Me.prototype.get=function(e){return this.__data__.get(e)},Me.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ke){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Se(r)}return n.set(e,t),this};var _e,Pe=(_e=function(e,t){return e&&Te(e,t,at)},function(e,t){if(null==e)return e;if(!Qe(e))return _e(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),Te=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s,o))break}return e};function Ae(e,t){for(var n=0,r=(t=We(t,e)?[t]:Ne(t)).length;null!=e&&n<r;)e=e[Ke(t[n++])];return n&&n==r?e:void 0}function Ie(e,t){return null!=e&&t in Object(e)}function Le(e,t,n,r,o){return e===t||(null==e||null==t||!tt(e)&&!nt(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var u=Xe(e),h=Xe(t),m=l,k=l;u||(m=(m=He(e))==c?b:m),h||(k=(k=He(t))==c?b:k);var S=m==b&&!B(e),E=k==b&&!B(t),M=m==k;if(M&&!S)return s||(s=new Me),u||ot(e)?Re(e,t,n,r,o,s):function(e,t,n,r,o,s,u){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!r(new ie(e),new ie(t)));case f:case d:case v:return $e(+e,+t);case p:return e.name==t.name&&e.message==t.message;case y:case O:return e==t+"";case g:var c=Y;case w:var l=s&i;if(c||(c=K),e.size!=t.size&&!l)return!1;var h=u.get(e);if(h)return h==t;s|=a,u.set(e,t);var m=Re(c(e),c(t),r,o,s,u);return u.delete(e),m;case C:if(Ce)return Ce.call(e)==Ce.call(t)}return!1}(e,t,m,n,r,o,s);if(!(o&i)){var j=S&&ne.call(e,"__wrapped__"),_=E&&ne.call(t,"__wrapped__");if(j||_){var P=j?e.value():e,T=_?t.value():t;return s||(s=new Me),n(P,T,r,o,s)}}return!!M&&(s||(s=new Me),function(e,t,n,r,o,a){var s=o&i,u=at(e),c=u.length;if(c!=at(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:ne.call(t,f)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var p=!0;a.set(e,t),a.set(t,e);for(var h=s;++l<c;){var m=e[f=u[l]],g=t[f];if(r)var v=s?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(!(void 0===v?m===g||n(m,g,r,o,a):v)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,o,s))}(e,t,Le,n,r,o))}function Ne(e){return Xe(e)?e:Ye(e)}function Re(e,t,n,r,o,s){var u=o&i,c=e.length,l=t.length;if(c!=l&&!(u&&l>c))return!1;var f=s.get(e);if(f&&s.get(t))return f==t;var d=-1,p=!0,h=o&a?new Ee:void 0;for(s.set(e,t),s.set(t,e);++d<c;){var m=e[d],g=t[d];if(r)var v=u?r(g,m,d,t,e,s):r(m,g,d,e,t,s);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!W(t,function(e,t){if(!h.has(t)&&(m===e||n(m,e,r,o,s)))return h.add(t)})){p=!1;break}}else if(m!==g&&!n(m,g,r,o,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Fe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!tt(e)||function(e){return!!ee&&ee in e}(e))&&(Ze(e)||B(e)?oe:_).test(qe(e))}(n)?n:void 0}var He=function(e){return re.call(e)};function Ue(e,t){return!!(t=null==t?u:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function We(e,t){if(Xe(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!rt(e))||S.test(e)||!k.test(e)||null!=t&&e in Object(t)}function ze(e){return e==e&&!tt(e)}function Be(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(le&&He(new le(new ArrayBuffer(1)))!=D||fe&&He(new fe)!=g||de&&"[object Promise]"!=He(de.resolve())||pe&&He(new pe)!=w||he&&"[object WeakMap]"!=He(new he))&&(He=function(e){var t=re.call(e),n=t==b?e.constructor:void 0,r=n?qe(n):void 0;if(r)switch(r){case ge:return D;case ve:return g;case be:return"[object Promise]";case ye:return w;case we:return"[object WeakMap]"}return t});var Ye=Ge(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(rt(e))return xe?xe.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}(t);var n=[];return E.test(e)&&n.push(""),e.replace(M,function(e,t,r,o){n.push(r?o.replace(j,"$1"):t||e)}),n});function Ke(e){if("string"==typeof e||rt(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}function qe(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ge(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(Ge.Cache||Se),n}function $e(e,t){return e===t||e!=e&&t!=t}function Je(e){return function(e){return nt(e)&&Qe(e)}(e)&&ne.call(e,"callee")&&(!se.call(e,"callee")||re.call(e)==c)}Ge.Cache=Se;var Xe=Array.isArray;function Qe(e){return null!=e&&et(e.length)&&!Ze(e)}function Ze(e){var t=tt(e)?re.call(e):"";return t==h||t==m}function et(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function tt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function nt(e){return!!e&&"object"==typeof e}function rt(e){return"symbol"==typeof e||nt(e)&&re.call(e)==C}var ot=H?function(e){return function(t){return e(t)}}(H):function(e){return nt(e)&&et(e.length)&&!!T[re.call(e)]};function at(e){return Qe(e)?function(e,t){var n=Xe(e)||Je(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!ne.call(e,a)||o&&("length"==a||Ue(a,r))||n.push(a);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Q))return ce(e);var t,n,r=[];for(var o in Object(e))ne.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function it(e){return e}n.exports=function(e,t,n){var r=Xe(e)?U:z,o=arguments.length<3;return r(e,function(e){return"function"==typeof e?e:null==e?it:"object"==typeof e?Xe(e)?function(e,t){return We(e)&&ze(t)?Be(Ke(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Ae(e,t);return void 0===r?void 0:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=n&&function(e,t,n){for(var r,o=-1,a=(t=We(t,e)?[t]:Ne(t)).length;++o<a;){var i=Ke(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}return r||!!(a=e?e.length:0)&&et(a)&&Ue(i,a)&&(Xe(e)||Je(e))}(n,t,Ie)}(0,e):Le(t,r,void 0,a|i)}}(e[0],e[1]):function(e){var t=function(e){for(var t=at(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ze(o)]}return t}(e);return 1==t.length&&t[0][2]?Be(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,s=o;if(null==e)return!s;for(e=Object(e);o--;){var u=n[o];if(u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var c=(u=n[o])[0],l=e[c],f=u[1];if(u[2]){if(void 0===l&&!(c in e))return!1}else{var d,p=new Me;if(!(void 0===d?Le(f,l,r,a|i,p):d))return!1}}return!0}(n,0,t)}}(e):We(t=e)?(n=Ke(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Ae(t,e)}}(t);var t,n}(t),n,o,Pe)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},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}function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){if(Array.isArray(e))return e}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 l(e){return(l="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 f(e){return(f="function"==typeof Symbol&&"symbol"===l(Symbol.iterator)?function(e){return l(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":l(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var m=n(0),g=n.n(m),v=n(5),b=n.n(v),y=n(4),w=n.n(y),O=n(6),C=n.n(O),x=n(2),D=n.n(x),k=n(1),S=n.n(k);function E(e,t){return i(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||s()}n(8);var M=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994"],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57"],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420"],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996"],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371"],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998"],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],j=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function _(e,t,n,r,o){return!n||o?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n}function P(e,t,n,o,i){var s,u,c=[];return u=!0===t,[(s=[]).concat.apply(s,a(e.map(function(e){var a={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:_(n,e[3],e[4],o,i),priority:e[5]||0},s=[];return e[6]&&e[6].map(function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}({},a);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,s.push(n)}),s.length>0?(a.mainCode=!0,u||"Array"===t.constructor.name&&t.includes(e[2])?(a.hasAreaCodes=!0,[a].concat(s)):(c=c.concat(s),[a])):[a]}))),c]}function T(e,t,n,r){if(null!==n){var o=Object.keys(n),a=Object.values(n);o.forEach(function(n,o){if(r)return e.push([n,a[o]]);var i=e.findIndex(function(e){return e[0]===n});if(-1===i){var s=[n];s[t]=a[o],e.push(s)}else e[i][t]=a[o]})}}function A(e,t){return 0===t.length?e:e.map(function(e){var n=t.findIndex(function(t){return t[0]===e[2]});if(-1===n)return e;var r=t[n];return r[1]&&(e[4]=r[1]),r[3]&&(e[5]=r[3]),r[2]&&(e[6]=r[2]),e})}var I=function e(t,n,r,o,i,s,c,l,f,d,p,h,m,g){u(this,e),this.filterRegions=function(e,t){if("string"==typeof e){var n=e;return t.filter(function(e){return e.regions.some(function(e){return e===n})})}return t.filter(function(t){return e.map(function(e){return t.regions.some(function(t){return t===e})}).some(function(e){return e})})},this.sortTerritories=function(e,t){var n=[].concat(a(e),a(t));return n.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}),n},this.getFilteredCountryList=function(e,t,n){return 0===e.length?t:n?e.map(function(e){var n=t.find(function(t){return t.iso2===e});if(n)return n}).filter(function(e){return e}):t.filter(function(t){return e.some(function(e){return e===t.iso2})})},this.localizeCountries=function(e,t,n){for(var r=0;r<e.length;r++)void 0!==t[e[r].iso2]?e[r].localName=t[e[r].iso2]:void 0!==t[e[r].name]&&(e[r].localName=t[e[r].name]);return n||e.sort(function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0}),e},this.getCustomAreas=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=JSON.parse(JSON.stringify(e));o.dialCode+=t[r],n.push(o)}return n},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter(function(e){return!t.includes(e.iso2)})};var v=function(e,t,n){var r=[];return T(r,1,l,!0),T(r,3,t),T(r,2,n),r}(0,f,d),b=A(JSON.parse(JSON.stringify(M)),v),y=A(JSON.parse(JSON.stringify(j)),v),w=E(P(b,t,h,m,g),2),O=w[0],C=w[1];if(n){var x=E(P(y,t,h,m,g),2),D=x[0];x[1],O=this.sortTerritories(D,O)}r&&(O=this.filterRegions(r,O)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(o,O,c.includes("onlyCountries")),s),p,c.includes("onlyCountries")),this.preferredCountries=0===i.length?[]:this.localizeCountries(this.getFilteredCountryList(i,O,c.includes("preferredCountries")),p,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(o,C),s)},L=function(e){function t(e){var n;u(this,t),(n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?d(e):t}(this,p(t).call(this,e))).getProbableCandidate=w()(function(e){return e&&0!==e.length?n.state.onlyCountries.filter(function(t){return D()(t.name.toLowerCase(),e.toLowerCase())},d(d(n)))[0]:null}),n.guessSelectedCountry=w()(function(e,t,r,o){var a;if(!1===n.props.enableAreaCodes&&(o.some(function(t){if(D()(e,t.dialCode))return r.some(function(e){if(t.iso2===e.iso2&&e.mainCode)return a=e,!0}),!0}),a))return a;var i=r.find(function(e){return e.iso2==t});if(""===e.trim())return i;var s=r.reduce(function(t,n){if(D()(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t},{dialCode:"",priority:10001},d(d(n)));return s.name?s:i}),n.updateCountry=function(e){var t,r=n.state.onlyCountries;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?r.find(function(t){return t.dialCode==+e}):r.find(function(t){return t.iso2==e}))&&t.dialCode&&n.setState({selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.formatNumber(t.dialCode,t)})},n.scrollTo=function(e,t){if(e){var r=n.dropdownRef;if(r&&document.body){var o=r.offsetHeight,a=r.getBoundingClientRect().top+document.body.scrollTop,i=a+o,s=e,u=s.getBoundingClientRect(),c=s.offsetHeight,l=u.top+document.body.scrollTop,f=l+c,d=l-a+r.scrollTop,p=o/2-c/2;if(n.props.enableSearch?l<a+32:l<a)t&&(d-=p),r.scrollTop=d;else if(f>i){t&&(d+=p);var h=o-c;r.scrollTop=d-h}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var r,a=t.format,u=n.props,c=u.disableCountryCode,l=u.enableAreaCodeStretch,f=u.enableLongNumbers,d=u.autoFormat;if(c?((r=a.split(" ")).shift(),r=r.join(" ")):l&&t.isAreaCode?((r=a.split(" "))[1]=r[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),r=r.join(" ")):r=a,!e||0===e.length)return c?"":n.props.prefix;if(e&&e.length<2||!r||!d)return c?e:n.props.prefix+e;var p,h=C()(r,function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,r=i(n=e.remainingText)||o(n)||s(),a=r[0],u=r.slice(1);return{formattedText:e.formattedText+a,remainingText:u}},{formattedText:"",remainingText:e.split("")});return(p=f?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!p.includes(")")&&(p+=")"),p},n.cursorToEnd=function(){var e=n.numberInputRef;e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)},n.getElement=function(e){return n["flag_no_".concat(e)]},n.getCountryData=function(){return n.state.selectedCountry?{name:n.state.selectedCountry.name||"",dialCode:n.state.selectedCountry.dialCode||"",countryCode:n.state.selectedCountry.iso2||"",format:n.state.selectedCountry.format||""}:{}},n.handleFlagDropdownClick=function(e){if(e.preventDefault(),n.state.showDropdown||!n.props.disabled){var t=n.state,r=t.preferredCountries,o=t.selectedCountry,a=r.concat(n.state.onlyCountries).findIndex(function(e){return e.dialCode===o.dialCode&&e.iso2===o.iso2});n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:a},function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))})}},n.handleInput=function(e){var t=e.target.value,r=n.props,o=r.prefix,a=r.onChange,i=n.props.disableCountryCode?"":o,s=n.state.selectedCountry,u=n.state.freezeSelection;if(!n.props.countryCodeEditable){var c=o+(s.hasAreaCodes?n.state.onlyCountries.find(function(e){return e.iso2===s.iso2&&e.mainCode}).dialCode:s.dialCode);if(t.slice(0,c.length)!==c)return}if(t===o)return a&&a("",n.getCountryData(),e,""),n.setState({formattedNumber:""});if(t.replace(/\D/g,"").length>15){if(!1===n.props.enableLongNumbers)return;if("number"==typeof n.props.enableLongNumbers&&t.replace(/\D/g,"").length>n.props.enableLongNumbers)return}if(t!==n.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var l=n.props.country,f=n.state,d=f.onlyCountries,p=f.selectedCountry,h=f.hiddenAreaCodes;if(a&&e.persist(),t.length>0){var m=t.replace(/\D/g,"");(!n.state.freezeSelection||p.dialCode.length>m.length)&&(s=n.props.disableCountryGuess?p:n.guessSelectedCountry(m.substring(0,6),l,d,h)||p,u=!1),i=n.formatNumber(m,s),s=s.dialCode?s:p}var g=e.target.selectionStart,v=n.state.formattedNumber,b=i.length-v.length;n.setState({formattedNumber:i,freezeSelection:u,selectedCountry:s},function(){b>0&&(g-=b),")"==i.charAt(i.length-1)?n.numberInputRef.setSelectionRange(i.length-1,i.length-1):g>0&&v.length>=i.length&&n.numberInputRef.setSelectionRange(g,g),a&&a(i.replace(/[^0-9]+/g,""),n.getCountryData(),e,i)})}},n.handleInputClick=function(e){n.setState({showDropdown:!1}),n.props.onClick&&n.props.onClick(e,n.getCountryData())},n.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},n.handleFlagItemClick=function(e,t){var r=n.state.selectedCountry,o=n.state.onlyCountries.find(function(t){return t==e});if(o){var a=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),i=a.length>1?a.replace(r.dialCode,o.dialCode):o.dialCode,s=n.formatNumber(i.replace(/\D/g,""),o);n.setState({showDropdown:!1,selectedCountry:o,freezeSelection:!0,formattedNumber:s},function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(s.replace(/[^0-9]+/g,""),n.getCountryData(),t,s)})}},n.handleInputFocus=function(e){n.numberInputRef&&n.numberInputRef.value===n.props.prefix&&n.state.selectedCountry&&!n.props.disableCountryCode&&n.setState({formattedNumber:n.props.prefix+n.state.selectedCountry.dialCode},function(){n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)}),n.setState({placeholder:""}),n.props.onFocus&&n.props.onFocus(e,n.getCountryData()),n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)},n.handleInputBlur=function(e){e.target.value||n.setState({placeholder:n.props.placeholder}),n.props.onBlur&&n.props.onBlur(e,n.getCountryData())},n.handleInputCopy=function(e){if(n.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},n.getHighlightCountryIndex=function(e){var t=n.state.highlightCountryIndex+e;return t<0||t>=n.state.onlyCountries.length+n.state.preferredCountries.length?t-e:n.props.enableSearch&&t>n.getSearchFilteredCountries().length?0:t},n.searchCountry=function(){var e=n.getProbableCandidate(n.state.queryString)||n.state.onlyCountries[0],t=n.state.onlyCountries.findIndex(function(t){return t==e})+n.state.preferredCountries.length;n.scrollTo(n.getElement(t),!0),n.setState({queryString:"",highlightCountryIndex:t})},n.handleKeydown=function(e){var t=n.props.keys,r=e.target.className;if(r.includes("selected-flag")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick(e);if(r.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(n.state.showDropdown&&!n.props.disabled&&(!r.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var o=function(e){n.setState({highlightCountryIndex:n.getHighlightCountryIndex(e)},function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)})};switch(e.which){case t.DOWN:o(1);break;case t.UP:o(-1);break;case t.ENTER:n.props.enableSearch?n.handleFlagItemClick(n.getSearchFilteredCountries()[n.state.highlightCountryIndex]||n.getSearchFilteredCountries()[0],e):n.handleFlagItemClick([].concat(a(n.state.preferredCountries),a(n.state.onlyCountries))[n.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:n.setState({showDropdown:!1},n.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&n.setState({queryString:n.state.queryString+String.fromCharCode(e.which)},n.state.debouncedQueryStingSearcher)}}},n.handleInputKeyDown=function(e){var t=n.props,r=t.keys,o=t.onEnterKeyPress,a=t.onKeyDown;e.which===r.ENTER&&o&&o(e),a&&a(e)},n.handleClickOutside=function(e){n.dropdownRef&&!n.dropdownContainerRef.contains(e.target)&&n.state.showDropdown&&n.setState({showDropdown:!1})},n.handleSearchChange=function(e){var t=e.currentTarget.value,r=n.state,o=r.preferredCountries,a=r.selectedCountry,i=0;if(""===t&&a){var s=n.state.onlyCountries;i=o.concat(s).findIndex(function(e){return e==a}),setTimeout(function(){return n.scrollTo(n.getElement(i))},100)}n.setState({searchValue:t,highlightCountryIndex:i})},n.getDropdownCountryName=function(e){return e.localName||e.name},n.getSearchFilteredCountries=function(){var e=n.state,t=e.preferredCountries,r=e.onlyCountries,o=e.searchValue,i=n.props.enableSearch,s=t.concat(r),u=o.trim().toLowerCase();if(i&&u){if(/^\d+$/.test(u))return s.filter(function(e){var t=e.dialCode;return["".concat(t)].some(function(e){return e.toLowerCase().includes(u)})});var c=s.filter(function(e){var t=e.iso2;return["".concat(t)].some(function(e){return e.toLowerCase().includes(u)})}),l=s.filter(function(e){var t=e.name,n=e.localName;return e.iso2,["".concat(t),"".concat(n||"")].some(function(e){return e.toLowerCase().includes(u)})});return n.scrollToTop(),a(new Set([].concat(c,l)))}return s},n.getCountryDropdownList=function(){var e,t=n.state,o=t.preferredCountries,a=t.highlightCountryIndex,i=t.showDropdown,s=t.searchValue,u=n.props,c=u.disableDropdown,l=u.prefix,f=n.props,d=f.enableSearch,p=f.searchNotFound,h=f.disableSearchIcon,m=f.searchClass,v=f.searchStyle,b=f.searchPlaceholder,y=f.autocompleteSearch,w=n.getSearchFilteredCountries().map(function(e,t){var r=a===t,o=S()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:r}),i="flag ".concat(e.iso2);return g.a.createElement("li",Object.assign({ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:o,"data-dial-code":"1",tabIndex:c?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},r?{"aria-selected":!0}:{}),g.a.createElement("div",{className:i}),g.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),g.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):l+e.dialCode))}),O=g.a.createElement("li",{key:"dashes",className:"divider"});o.length>0&&(!d||d&&!s.trim())&&w.splice(o.length,0,O);var C=S()((r(e={},n.props.dropdownClass,!0),r(e,"country-list",!0),r(e,"hide",!i),e));return g.a.createElement("ul",{ref:function(e){return!d&&e&&e.focus(),n.dropdownRef=e},className:C,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},d&&g.a.createElement("li",{className:S()(r({search:!0},m,m))},!h&&g.a.createElement("span",{className:S()(r({"search-emoji":!0},"".concat(m,"-emoji"),m)),role:"img","aria-label":"Magnifying glass"},"🔎"),g.a.createElement("input",{className:S()(r({"search-box":!0},"".concat(m,"-box"),m)),style:v,type:"search",placeholder:b,autoFocus:!0,autoComplete:y?"on":"off",value:s,onChange:n.handleSearchChange})),w.length>0?w:g.a.createElement("li",{className:"no-entries-message"},g.a.createElement("span",null,p)))};var c,l=new I(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),h=l.onlyCountries,m=l.preferredCountries,v=l.hiddenAreaCodes,y=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:y.length>1?n.guessSelectedCountry(y.substring(0,6),e.country,h,v)||0:e.country&&h.find(function(t){return t.iso2==e.country})||0;var O,x=y.length<2&&c&&!D()(y,c.dialCode)?c.dialCode:"";O=""===y&&0===c?"":n.formatNumber((e.disableCountryCode?"":x)+y,c.name?c:void 0);var k=h.findIndex(function(e){return e==c});return n.state={showDropdown:e.showDropdown,formattedNumber:O,onlyCountries:h,preferredCountries:m,hiddenAreaCodes:v,selectedCountry:c,highlightCountryIndex:k,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:b()(n.searchCountry,250),searchValue:""},n}var n,l;return 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&&h(e,t)}(t,g.a.Component),n=t,(l=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,n){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,n=t.onlyCountries,r=t.selectedCountry,o=t.hiddenAreaCodes,a=this.props,i=a.country,s=a.prefix;if(""===e)return this.setState({selectedCountry:r,formattedNumber:""});var u,c,l=e.replace(/\D/g,"");if(r&&D()(e,s+r.dialCode))c=this.formatNumber(l,r),this.setState({formattedNumber:c});else{var f=(u=this.props.disableCountryGuess?r:this.guessSelectedCountry(l.substring(0,6),i,n,o)||r)&&D()(l,s+u.dialCode)?u.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":f)+l,u||void 0),this.setState({selectedCountry:u,formattedNumber:c})}}},{key:"render",value:function(){var e,t,n,o,a,i=this,s=this.state,u=s.onlyCountries,c=s.selectedCountry,l=s.showDropdown,f=s.formattedNumber,d=s.hiddenAreaCodes,p=this.props,h=p.disableDropdown,m=p.renderStringAsFlag,v=p.isValid,b=p.defaultErrorMessage,y=p.specialLabel;if("boolean"==typeof v)o=v;else{var w=v(f.replace(/\D/g,""),c,u,d);"boolean"==typeof w?!1===(o=w)&&(a=b):(o=!1,a=w)}var O=S()((r(e={},this.props.containerClass,!0),r(e,"react-tel-input",!0),e)),C=S()({arrow:!0,up:l}),x=S()((r(t={},this.props.inputClass,!0),r(t,"form-control",!0),r(t,"invalid-number",!o),r(t,"open",l),t)),D=S()({"selected-flag":!0,open:l}),k=S()((r(n={},this.props.buttonClass,!0),r(n,"flag-dropdown",!0),r(n,"invalid-number",!o),r(n,"open",l),n)),E="flag ".concat(c&&c.iso2);return g.a.createElement("div",{className:O,style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},y&&g.a.createElement("div",{className:"special-label"},y),a&&g.a.createElement("div",{className:"invalid-number-message"},a),g.a.createElement("input",Object.assign({className:x,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:f,ref:function(e){return i.numberInputRef=e},onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps)),g.a.createElement("div",{className:k,style:this.props.buttonStyle,ref:function(e){return i.dropdownContainerRef=e}},m?g.a.createElement("div",{className:D},m):g.a.createElement("div",{onClick:h?void 0:this.handleFlagDropdownClick,className:D,title:c?"".concat(c.name,": + ").concat(c.dialCode):"",tabIndex:h?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!l||void 0},g.a.createElement("div",{className:E},!h&&g.a.createElement("div",{className:C}))),l&&this.getCountryDropdownList()))}}])&&c(n.prototype,l),t}();L.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=L}])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=i(n(3)),a=i(n(42));function i(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){return(u="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 c(){return(c=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 l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(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 h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return g(e)}(this,n)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=["onChange","onOpen","onClose","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"],w=o.default.oneOfType([o.default.func,o.default.arrayOf(o.default.func)]),O=["onCreate","onDestroy"],C=o.default.func,x=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&&h(e,t)}(s,r.Component);var t,n,o,i=m(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(g(e=i.call.apply(i,[this].concat(n))),"createFlatpickrInstance",function(){var t=d({onClose:function(){e.node.blur&&e.node.blur()}},e.props.options);y.forEach(function(n){e.props[n]&&(t[n]=e.props[n])}),e.flatpickr=(0,a.default)(e.node,t),e.props.hasOwnProperty("value")&&e.flatpickr.setDate(e.props.value,!1);var n=e.props.onCreate;n&&n(e.flatpickr)}),b(g(e),"destroyFlatpickrInstance",function(){var t=e.props.onDestroy;t&&t(e.flatpickr),e.flatpickr.destroy(),e.flatpickr=null}),b(g(e),"handleNodeChange",function(t){e.node=t,e.flatpickr&&(e.destroyFlatpickrInstance(),e.createFlatpickrInstance())}),e}return t=s,(n=[{key:"componentDidUpdate",value:function(e){var t=this,n=this.props.options,r=e.options;y.forEach(function(o){t.props.hasOwnProperty(o)&&(n[o]=t.props[o]),e.hasOwnProperty(o)&&(r[o]=e[o])});for(var o=Object.getOwnPropertyNames(n),a=o.length-1;a>=0;a--){var i=o[a],s=n[i];s!==r[i]&&(-1===y.indexOf(i)||Array.isArray(s)||(s=[s]),this.flatpickr.set(i,s))}this.props.hasOwnProperty("value")&&this.props.value!==e.value&&this.flatpickr.setDate(this.props.value,!1)}},{key:"componentDidMount",value:function(){this.createFlatpickrInstance()}},{key:"componentWillUnmount",value:function(){this.destroyFlatpickrInstance()}},{key:"render",value:function(){var e=this.props,t=e.options,n=e.defaultValue,o=e.value,a=e.children,i=e.render,s=l(e,["options","defaultValue","value","children","render"]);return y.forEach(function(e){delete s[e]}),O.forEach(function(e){delete s[e]}),i?i(d(d({},s),{},{defaultValue:n,value:o}),this.handleNodeChange):t.wrap?r.default.createElement("div",c({},s,{ref:this.handleNodeChange}),a):r.default.createElement("input",c({},s,{defaultValue:n,ref:this.handleNodeChange}))}}])&&p(t.prototype,n),o&&p(t,o),s}();b(x,"propTypes",{defaultValue:o.default.string,options:o.default.object,onChange:w,onOpen:w,onClose:w,onMonthChange:w,onYearChange:w,onReady:w,onValueUpdate:w,onDayCreate:w,onCreate:C,onDestroy:C,value:o.default.oneOfType([o.default.string,o.default.array,o.default.object,o.default.number]),children:o.default.node,className:o.default.string,render:o.default.func}),b(x,"defaultProps",{options:{}});var D=x;t.default=D},function(e,t,n){var r;e.exports=(r=n(0),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(2)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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}}(),r=function(){function e(t,n,r,o){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.startPoint=t,this.control1=n,this.control2=r,this.endPoint=o}return n(e,[{key:"length",value:function(){var e,t,n,r,o,a,i,s,u=0;for(e=0;10>=e;e++)t=e/10,n=this._point(t,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),r=this._point(t,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y),e>0&&(i=n-o,s=r-a,u+=Math.sqrt(i*i+s*s)),o=n,a=r;return u}},{key:"_point",value:function(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}]),e}();t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),a=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=a,n=i,r=!0}},i=n(4),s=r(i),u=n(1),c=r(u),l=n(3),f=r(l),d=function(e){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.velocityFilterWeight=this.props.velocityFilterWeight||.7,this.minWidth=this.props.minWidth||.5,this.maxWidth=this.props.maxWidth||2.5,this.dotSize=this.props.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=this.props.penColor||"black",this.backgroundColor=this.props.backgroundColor||"rgba(0,0,0,0)",this.onEnd=this.props.onEnd,this.onBegin=this.props.onBegin}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this._canvas=this.refs.cv,this._ctx=this._canvas.getContext("2d"),this.clear(),this._handleMouseEvents(),this._handleTouchEvents(),this._resizeCanvas()}},{key:"componentWillUnmount",value:function(){this.off()}},{key:"clear",value:function(e){e&&e.preventDefault();var t=this._ctx,n=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,n.width,n.height),t.fillRect(0,0,n.width,n.height),this._reset()}},{key:"toDataURL",value:function(e,t){var n=this._canvas;return n.toDataURL.apply(n,arguments)}},{key:"fromDataURL",value:function(e){var t=this,n=new Image,r=window.devicePixelRatio||1,o=this._canvas.width/r,a=this._canvas.height/r;this._reset(),n.src=e,n.onload=function(){t._ctx.drawImage(n,0,0,o,a)},this._isEmpty=!1}},{key:"isEmpty",value:function(){return this._isEmpty}},{key:"_resizeCanvas",value:function(){var e=this._ctx,t=this._canvas,n=Math.max(window.devicePixelRatio||1,1);t.width=t.offsetWidth*n,t.height=t.offsetHeight*n,e.scale(n,n),this._isEmpty=!0}},{key:"_reset",value:function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._isEmpty=!0,this._ctx.fillStyle=this.penColor}},{key:"_handleMouseEvents",value:function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown.bind(this)),this._canvas.addEventListener("mousemove",this._handleMouseMove.bind(this)),document.addEventListener("mouseup",this._handleMouseUp.bind(this)),window.addEventListener("resize",this._resizeCanvas.bind(this))}},{key:"_handleTouchEvents",value:function(){this._canvas.style.msTouchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._canvas.addEventListener("touchmove",this._handleTouchMove.bind(this)),document.addEventListener("touchend",this._handleTouchEnd.bind(this))}},{key:"off",value:function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),document.removeEventListener("touchend",this._handleTouchEnd),window.removeEventListener("resize",this._resizeCanvas)}},{key:"_handleMouseDown",value:function(e){1===e.which&&(this._mouseButtonDown=!0,this._strokeBegin(e))}},{key:"_handleMouseMove",value:function(e){this._mouseButtonDown&&this._strokeUpdate(e)}},{key:"_handleMouseUp",value:function(e){1===e.which&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(e))}},{key:"_handleTouchStart",value:function(e){var t=e.changedTouches[0];this._strokeBegin(t)}},{key:"_handleTouchMove",value:function(e){e.preventDefault();var t=e.changedTouches[0];this._strokeUpdate(t)}},{key:"_handleTouchEnd",value:function(e){var t=e.target===this._canvas;t&&this._strokeEnd(e)}},{key:"_strokeUpdate",value:function(e){var t=this._createPoint(e);this._addPoint(t)}},{key:"_strokeBegin",value:function(e){this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)}},{key:"_strokeDraw",value:function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()}},{key:"_strokeEnd",value:function(e){var t=this.points.length>2,n=this.points[0];!t&&n&&this._strokeDraw(n),"function"==typeof this.onEnd&&this.onEnd(e)}},{key:"_createPoint",value:function(e){var t=this._canvas.getBoundingClientRect();return new f.default(e.clientX-t.left,e.clientY-t.top)}},{key:"_addPoint",value:function(e){var t,n,r,o,a=this.points;a.push(e),a.length>2&&(3===a.length&&a.unshift(a[0]),o=this._calculateCurveControlPoints(a[0],a[1],a[2]),t=o.c2,o=this._calculateCurveControlPoints(a[1],a[2],a[3]),n=o.c1,r=new c.default(a[1],t,n,a[2]),this._addCurve(r),a.shift())}},{key:"_calculateCurveControlPoints",value:function(e,t,n){var r=e.x-t.x,o=e.y-t.y,a=t.x-n.x,i=t.y-n.y,s={x:(e.x+t.x)/2,y:(e.y+t.y)/2},u={x:(t.x+n.x)/2,y:(t.y+n.y)/2},c=Math.sqrt(r*r+o*o),l=Math.sqrt(a*a+i*i),d=s.x-u.x,p=s.y-u.y,h=l/(c+l),m={x:u.x+d*h,y:u.y+p*h},g=t.x-m.x,v=t.y-m.y;return{c1:new f.default(s.x+g,s.y+v),c2:new f.default(u.x+g,u.y+v)}}},{key:"_addCurve",value:function(e){var t,n,r=e.startPoint,o=e.endPoint;t=o.velocityFrom(r),t=this.velocityFilterWeight*t+(1-this.velocityFilterWeight)*this._lastVelocity,n=this._strokeWidth(t),this._drawCurve(e,this._lastWidth,n),this._lastVelocity=t,this._lastWidth=n}},{key:"_drawPoint",value:function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}},{key:"_drawCurve",value:function(e,t,n){var r,o,a,i,s,u,c,l,f,d,p,h=this._ctx,m=n-t;for(r=Math.floor(e.length()),h.beginPath(),a=0;r>a;a++)u=(s=(i=a/r)*i)*i,d=(f=(l=(c=1-i)*c)*c)*e.startPoint.x,d+=3*l*i*e.control1.x,d+=3*c*s*e.control2.x,d+=u*e.endPoint.x,p=f*e.startPoint.y,p+=3*l*i*e.control1.y,p+=3*c*s*e.control2.y,p+=u*e.endPoint.y,o=t+u*m,this._drawPoint(d,p,o);h.closePath(),h.fill()}},{key:"_strokeWidth",value:function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}},{key:"render",value:function(){return s.default.createElement("div",{id:"signature-pad",className:"m-signature-pad"},s.default.createElement("div",{className:"m-signature-pad--body"},s.default.createElement("canvas",{ref:"cv"})),this.props.clearButton&&s.default.createElement("div",{className:"m-signature-pad--footer"},s.default.createElement("button",{className:"btn btn-default button clear",onClick:this.clear.bind(this)},"Clear")))}}]),t}(s.default.Component);t.default=d,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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}}(),r=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.x=t,this.y=n,this.time=r||(new Date).getTime()}return n(e,[{key:"velocityFrom",value:function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1}},{key:"distanceTo",value:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}}]),e}();t.default=r,e.exports=t.default},function(e,t){e.exports=r}]))},function(e,t,n){"use strict";var r=function(){var e={tolerance:0,duration:800,easing:"easeOutQuart",container:window,callback:function(){}};function t(e,t,n,r){return e/=r,-n*(--e*e*e*e-1)+t}function n(e,t){var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function r(e){return e instanceof HTMLElement?e.scrollTop:e.pageYOffset}function o(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=n(e,r),this.easeFunctions=n({easeOutQuart:t},o)}return o.prototype.registerTrigger=function(e,t){var r=this;if(e){var o=e.getAttribute("href")||e.getAttribute("data-target"),a=o&&"#"!==o?document.getElementById(o.substring(1)):document.body,i=n(this.options,function(e,t){var n={};return Object.keys(t).forEach(function(t){var r=e.getAttribute("data-mt-".concat(t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})));r&&(n[t]=isNaN(r)?r:parseInt(r,10))}),n}(e,this.options));"function"==typeof t&&(i.callback=t);var s=function(e){e.preventDefault(),r.move(a,i)};return e.addEventListener("click",s,!1),function(){return e.removeEventListener("click",s,!1)}}},o.prototype.move=function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===e||e){o=n(this.options,o);var a,i="number"==typeof e?e:e.getBoundingClientRect().top,s=r(o.container),u=null;i-=o.tolerance;window.requestAnimationFrame(function n(c){var l=r(t.options.container);u||(u=c-1);var f=c-u;if(a&&(i>0&&a>l||i<0&&a<l))return o.callback(e);a=l;var d=t.easeFunctions[o.easing](f,s,i,o.duration);o.container.scroll(0,d),f<o.duration?window.requestAnimationFrame(n):(o.container.scroll(0,i+s),o.callback(e))})}},o.prototype.addEaseFunction=function(e,t){this.easeFunctions[e]=t},o}();e.exports=r},function(e,t,n){var r=n(4);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(12),o=n(61),a=n(15),i="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&r(e)==i}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=n&&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()},r))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function i(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=i(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:u(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?l:10===e?f:l||f}function p(e){if(!e)return document.documentElement;for(var t=d(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"===i(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(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,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,u=a.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(i=u).nodeName)||"HTML"!==s&&p(i.firstElementChild)!==i?p(u):u;var c=h(e);return c.host?m(c.host,t):m(e,h(t).host)}function g(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function v(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 b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function y(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=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}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},x=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 D(e){return x({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=g(e,"top"),r=g(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},a="HTML"===e.nodeName?y(e.ownerDocument):{},s=a.width||e.clientWidth||o.width,u=a.height||e.clientHeight||o.height,c=e.offsetWidth-s,l=e.offsetHeight-u;if(c||l){var f=i(e);c-=v(f,"x"),l-=v(f,"y"),o.width-=c,o.height-=l}return D(o)}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),o="HTML"===t.nodeName,a=k(e),s=k(t),c=u(e),l=i(t),f=parseFloat(l.borderTopWidth),p=parseFloat(l.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=D({top:a.top-s.top-f,left:a.left-s.left-p,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var m=parseFloat(l.marginTop),v=parseFloat(l.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-v,h.right-=p-v,h.marginTop=m,h.marginLeft=v}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(t,"top"),o=g(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(h,t)),h}function E(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function M(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},l=o?E(e):m(e,c(t));if("viewport"===r)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=S(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:g(n),s=t?0:g(n,"left");return D({top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a})}(l,o);else{var f=void 0;"scrollParent"===r?"BODY"===(f=u(s(t))).nodeName&&(f=e.ownerDocument.documentElement):f="window"===r?e.ownerDocument.documentElement:r;var d=S(f,l,o);if("HTML"!==f.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===i(t,"position"))return!0;var r=s(t);return!!r&&e(r)}(l))a=d;else{var p=y(e.ownerDocument),h=p.height,v=p.width;a.top+=d.top-d.marginTop,a.bottom=h+d.top,a.left+=d.left-d.marginLeft,a.right=v+d.left}}var b="number"==typeof(n=n||0);return a.left+=b?n:n.left||0,a.top+=b?n:n.top||0,a.right-=b?n:n.right||0,a.bottom-=b?n:n.bottom||0,a}function j(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=M(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},u=Object.keys(s).map(function(e){return x({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return S(n,r?E(t):m(t,c(n)),r)}function P(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 T(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 A(e,t,n){n=n.split("-")[0];var r=P(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",u=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[c]:t[T(s)],o}function I(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function L(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=I(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&&a(n)&&(t.offsets.popper=D(t.offsets.popper),t.offsets.reference=D(t.offsets.reference),t=n(t,e))}),t}function N(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function R(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],a=o?""+o+n:e;if(void 0!==document.body.style[a])return a}return null}function F(e){var t=e.ownerDocument;return t?t.defaultView:window}function V(e,t,n,r){n.updateBound=r,F(e).addEventListener("resize",n.updateBound,{passive:!0});var o=u(e);return function e(t,n,r,o){var a="BODY"===t.nodeName,i=a?t.ownerDocument.defaultView:t;i.addEventListener(n,r,{passive:!0}),a||e(u(i.parentNode),n,r,o),o.push(i)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function H(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,F(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))}function U(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function W(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&U(t[n])&&(r="px"),e.style[n]=t[n]+r})}var z=n&&/Firefox/i.test(navigator.userAgent);function B(e,t,n){var r=I(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 a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var Y=["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"],K=Y.slice(3);function q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=K.indexOf(e),r=K.slice(n+1).concat(K.slice(0,n));return t?r.reverse():r}var G={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function $(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=i.indexOf(I(i,function(e){return-1!==e.search(/,|\s/)}));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(u)[0]]),[i[s].split(u)[1]].concat(i.slice(s+1))]:[i];return(c=c.map(function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return D(s)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){U(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var J={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,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:C({},u,a[u]),end:C({},u,a[u]+a[c]-i[c])};e.offsets.popper=x({},i,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],u=void 0;return u=U(+n)?[+n,0]:$(n,a,i,s),"left"===s?(a.top+=u[0],a.left-=u[1]):"right"===s?(a.top+=u[0],a.left+=u[1]):"top"===s?(a.left+=u[0],a.top-=u[1]):"bottom"===s&&(a.left+=u[0],a.top+=u[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=R("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=M(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),C({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),C({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=x({},l,f[t](e))}),e.offsets.popper=l,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],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",u=i?"left":"top",c=i?"width":"height";return n[s]<a(r[u])&&(e.offsets.popper[u]=a(r[u])-n[c]),n[u]>a(r[s])&&(e.offsets.popper[u]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!B(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],a=e.offsets,s=a.popper,u=a.reference,c=-1!==["left","right"].indexOf(o),l=c?"height":"width",f=c?"Top":"Left",d=f.toLowerCase(),p=c?"left":"top",h=c?"bottom":"right",m=P(r)[l];u[h]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(u[h]-m)),u[d]+m>s[h]&&(e.offsets.popper[d]+=u[d]+m-s[h]),e.offsets.popper=D(e.offsets.popper);var g=u[d]+u[l]/2-m/2,v=i(e.instance.popper),b=parseFloat(v["margin"+f]),y=parseFloat(v["border"+f+"Width"]),w=g-e.offsets.popper[d]-b-y;return w=Math.max(Math.min(s[l]-m,w),0),e.arrowElement=r,e.offsets.arrow=(C(n={},d,Math.round(w)),C(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(N(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=M(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=T(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case G.FLIP:i=[r,o];break;case G.CLOCKWISE:i=q(r);break;case G.COUNTERCLOCKWISE:i=q(r,!0);break;default:i=t.behavior}return i.forEach(function(s,u){if(r!==s||i.length===u+1)return e;r=e.placement.split("-")[0],o=T(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),g=f(c.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&p||b&&"end"===a&&h||!b&&"start"===a&&m||!b&&"end"===a&&g),w=!!t.flipVariationsByContent&&(b&&"start"===a&&h||b&&"end"===a&&p||!b&&"start"===a&&g||!b&&"end"===a&&m),O=y||w;(d||v||O)&&(e.flipped=!0,(d||v)&&(r=i[u+1]),O&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=x({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=L(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,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=T(t),e.offsets.popper=D(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!B(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=I(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,a=I(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,s=p(e.instance.popper),u=k(s),c={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},u=a(o.width),c=a(r.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||u%2==c%2?a:i:s,p=t?a:s;return{left:d(u%2==1&&c%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||!z),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=R("transform"),m=void 0,g=void 0;if(g="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,i&&h)c[h]="translate3d("+m+"px, "+g+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var v="bottom"===f?-1:1,b="right"===d?-1:1;c[f]=g*v,c[d]=m*b,c.willChange=f+", "+d}var y={"x-placement":e.placement};return e.attributes=x({},y,e.attributes),e.styles=x({},c,e.styles),e.arrowStyles=x({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return W(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&&W(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=_(o,t,e,n.positionFixed),i=j(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),W(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},X=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=x({},e.Defaults,i),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(x({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=x({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return x({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return O(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=j(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=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=L(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,N(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[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=V(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return H.call(this)}}]),e}();X.Utils=("undefined"!=typeof window?window:e).PopperUtils,X.placements=Y,X.Defaults=J,t.a=X}).call(this,n(14))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=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}}(),a=v(n(0)),i=v(n(3)),s=v(n(7)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(28)),c=v(n(36)),l=v(n(9)),f=v(n(37)),d=v(n(38)),p=v(n(39)),h=v(n(40)),m=n(6),g=n(41);function v(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var y=(b((r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.startValue=null,n.node=null,n.trackNode=null,n.isSliderDragging=!1,n.lastKeyMoved=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,null,[{key:"propTypes",get:function(){return{allowSameValues:i.default.bool,ariaLabelledby:i.default.string,ariaControls:i.default.string,classNames:i.default.objectOf(i.default.string),disabled:i.default.bool,draggableTrack:i.default.bool,formatLabel:i.default.func,maxValue:f.default,minValue:f.default,name:i.default.string,onChangeStart:i.default.func,onChange:i.default.func.isRequired,onChangeComplete:i.default.func,step:i.default.number,value:d.default}}},{key:"defaultProps",get:function(){return{allowSameValues:!1,classNames:c.default,disabled:!1,maxValue:10,minValue:0,step:1}}}]),o(t,[{key:"componentWillUnmount",value:function(){this.removeDocumentMouseUpListener(),this.removeDocumentTouchEndListener()}},{key:"getComponentClassName",value:function(){return this.props.disabled?this.props.classNames.disabledInputRange:this.props.classNames.inputRange}},{key:"getTrackClientRect",value:function(){return this.trackNode.getClientRect()}},{key:"getKeyByPosition",value:function(e){var t=u.getValueFromProps(this.props,this.isMultiValue()),n=u.getPositionsFromValues(t,this.props.minValue,this.props.maxValue,this.getTrackClientRect());if(this.isMultiValue()&&(0,m.distanceTo)(e,n.min)<(0,m.distanceTo)(e,n.max))return"min";return"max"}},{key:"getKeys",value:function(){return this.isMultiValue()?["min","max"]:["max"]}},{key:"hasStepDifference",value:function(e){var t=u.getValueFromProps(this.props,this.isMultiValue());return(0,m.length)(e.min,t.min)>=this.props.step||(0,m.length)(e.max,t.max)>=this.props.step}},{key:"isMultiValue",value:function(){return(0,m.isObject)(this.props.value)}},{key:"isWithinRange",value:function(e){return this.isMultiValue()?e.min>=this.props.minValue&&e.max<=this.props.maxValue&&this.props.allowSameValues?e.min<=e.max:e.min<e.max:e.max>=this.props.minValue&&e.max<=this.props.maxValue}},{key:"shouldUpdate",value:function(e){return this.isWithinRange(e)&&this.hasStepDifference(e)}},{key:"updatePosition",value:function(e,t){var n=u.getValueFromProps(this.props,this.isMultiValue()),r=u.getPositionsFromValues(n,this.props.minValue,this.props.maxValue,this.getTrackClientRect());r[e]=t,this.lastKeyMoved=e,this.updatePositions(r)}},{key:"updatePositions",value:function(e){var t={min:u.getValueFromPosition(e.min,this.props.minValue,this.props.maxValue,this.getTrackClientRect()),max:u.getValueFromPosition(e.max,this.props.minValue,this.props.maxValue,this.getTrackClientRect())},n={min:u.getStepValueFromValue(t.min,this.props.step),max:u.getStepValueFromValue(t.max,this.props.step)};this.updateValues(n)}},{key:"updateValue",value:function(e,t){var n=u.getValueFromProps(this.props,this.isMultiValue());n[e]=t,this.updateValues(n)}},{key:"updateValues",value:function(e){this.shouldUpdate(e)&&this.props.onChange(this.isMultiValue()?e:e.max)}},{key:"incrementValue",value:function(e){var t=u.getValueFromProps(this.props,this.isMultiValue())[e]+this.props.step;this.updateValue(e,t)}},{key:"decrementValue",value:function(e){var t=u.getValueFromProps(this.props,this.isMultiValue())[e]-this.props.step;this.updateValue(e,t)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"addDocumentTouchEndListener",value:function(){this.removeDocumentTouchEndListener(),this.node.ownerDocument.addEventListener("touchend",this.handleTouchEnd)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentTouchEndListener",value:function(){this.node.ownerDocument.removeEventListener("touchend",this.handleTouchEnd)}},{key:"handleSliderDrag",value:function(e,t){var n=this;if(!this.props.disabled){var r=u.getPositionFromEvent(e,this.getTrackClientRect());this.isSliderDragging=!0,requestAnimationFrame(function(){return n.updatePosition(t,r)})}}},{key:"handleTrackDrag",value:function(e,t){if(!this.props.disabled&&this.props.draggableTrack&&!this.isSliderDragging){var n=this.props,r=n.maxValue,o=n.minValue,a=n.value,i=a.max,s=a.min,c=u.getPositionFromEvent(e,this.getTrackClientRect()),l=u.getValueFromPosition(c,o,r,this.getTrackClientRect()),f=u.getStepValueFromValue(l,this.props.step),d=u.getPositionFromEvent(t,this.getTrackClientRect()),p=u.getValueFromPosition(d,o,r,this.getTrackClientRect()),h=u.getStepValueFromValue(p,this.props.step)-f,m={min:s-h,max:i-h};this.updateValues(m)}}},{key:"handleSliderKeyDown",value:function(e,t){if(!this.props.disabled)switch(e.keyCode){case g.LEFT_ARROW:case g.DOWN_ARROW:e.preventDefault(),this.decrementValue(t);break;case g.RIGHT_ARROW:case g.UP_ARROW:e.preventDefault(),this.incrementValue(t)}}},{key:"handleTrackMouseDown",value:function(e,t){if(!this.props.disabled){var n=this.props,r=n.maxValue,o=n.minValue,a=n.value,i=a.max,s=a.min;e.preventDefault();var c=u.getValueFromPosition(t,o,r,this.getTrackClientRect()),l=u.getStepValueFromValue(c,this.props.step);(!this.props.draggableTrack||l>i||l<s)&&this.updatePosition(this.getKeyByPosition(t),t)}}},{key:"handleInteractionStart",value:function(){this.props.onChangeStart&&this.props.onChangeStart(this.props.value),this.props.onChangeComplete&&!(0,m.isDefined)(this.startValue)&&(this.startValue=this.props.value)}},{key:"handleInteractionEnd",value:function(){this.isSliderDragging&&(this.isSliderDragging=!1),this.props.onChangeComplete&&(0,m.isDefined)(this.startValue)&&(this.startValue!==this.props.value&&this.props.onChangeComplete(this.props.value),this.startValue=null)}},{key:"handleKeyDown",value:function(e){this.handleInteractionStart(e)}},{key:"handleKeyUp",value:function(e){this.handleInteractionEnd(e)}},{key:"handleMouseDown",value:function(e){this.handleInteractionStart(e),this.addDocumentMouseUpListener()}},{key:"handleMouseUp",value:function(e){this.handleInteractionEnd(e),this.removeDocumentMouseUpListener()}},{key:"handleTouchStart",value:function(e){this.handleInteractionStart(e),this.addDocumentTouchEndListener()}},{key:"handleTouchEnd",value:function(e){this.handleInteractionEnd(e),this.removeDocumentTouchEndListener()}},{key:"renderSliders",value:function(){var e=this,t=u.getValueFromProps(this.props,this.isMultiValue()),n=u.getPercentagesFromValues(t,this.props.minValue,this.props.maxValue);return(this.props.allowSameValues&&"min"===this.lastKeyMoved?this.getKeys().reverse():this.getKeys()).map(function(r){var o=t[r],i=n[r],s=e.props,u=s.maxValue,c=s.minValue;return"min"===r?u=t.max:c=t.min,a.default.createElement(p.default,{ariaLabelledby:e.props.ariaLabelledby,ariaControls:e.props.ariaControls,classNames:e.props.classNames,formatLabel:e.props.formatLabel,key:r,maxValue:u,minValue:c,onSliderDrag:e.handleSliderDrag,onSliderKeyDown:e.handleSliderKeyDown,percentage:i,type:r,value:o})})}},{key:"renderHiddenInputs",value:function(){var e=this;if(!this.props.name)return[];var t=this.isMultiValue(),n=u.getValueFromProps(this.props,t);return this.getKeys().map(function(r){var o=n[r],i=t?""+e.props.name+(0,m.captialize)(r):e.props.name;return a.default.createElement("input",{key:r,type:"hidden",name:i,value:o})})}},{key:"render",value:function(){var e=this,t=this.getComponentClassName(),n=u.getValueFromProps(this.props,this.isMultiValue()),r=u.getPercentagesFromValues(n,this.props.minValue,this.props.maxValue);return a.default.createElement("div",{"aria-disabled":this.props.disabled,ref:function(t){e.node=t},className:t,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart},a.default.createElement(l.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"min"},this.props.minValue),a.default.createElement(h.default,{classNames:this.props.classNames,draggableTrack:this.props.draggableTrack,ref:function(t){e.trackNode=t},percentages:r,onTrackDrag:this.handleTrackDrag,onTrackMouseDown:this.handleTrackMouseDown},this.renderSliders()),a.default.createElement(l.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"max"},this.props.maxValue),this.renderHiddenInputs())}}]),t}()).prototype,"handleSliderDrag",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleSliderDrag"),r.prototype),b(r.prototype,"handleTrackDrag",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTrackDrag"),r.prototype),b(r.prototype,"handleSliderKeyDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleSliderKeyDown"),r.prototype),b(r.prototype,"handleTrackMouseDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTrackMouseDown"),r.prototype),b(r.prototype,"handleInteractionStart",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleInteractionStart"),r.prototype),b(r.prototype,"handleInteractionEnd",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleInteractionEnd"),r.prototype),b(r.prototype,"handleKeyDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyDown"),r.prototype),b(r.prototype,"handleKeyUp",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyUp"),r.prototype),b(r.prototype,"handleMouseDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),b(r.prototype,"handleMouseUp",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),b(r.prototype,"handleTouchStart",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),b(r.prototype,"handleTouchEnd",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchEnd"),r.prototype),r);t.default=y,e.exports=t.default},function(e,t,n){"use strict";var r=n(27);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.getPercentageFromPosition=a,t.getValueFromPosition=function(e,t,n,r){var o=a(e,r);return t+(n-t)*o},t.getValueFromProps=function(e,t){if(t)return r({},e.value);return{min:e.minValue,max:e.value}},t.getPercentageFromValue=i,t.getPercentagesFromValues=function(e,t,n){return{min:i(e.min,t,n),max:i(e.max,t,n)}},t.getPositionFromValue=s,t.getPositionsFromValues=function(e,t,n,r){return{min:s(e.min,t,n,r),max:s(e.max,t,n,r)}},t.getPositionFromEvent=function(e,t){var n=t.width,r=(e.touches?e.touches[0]:e).clientX;return{x:(0,o.clamp)(r-t.left,0,n),y:0}},t.getStepValueFromValue=function(e,t){return Math.round(e/t)*t};var o=n(6);function a(e,t){var n=t.width;return e.x/n||0}function i(e,t,n){return((0,o.clamp)(e,t,n)-t)/(n-t)||0}function s(e,t,n,r){var o=r.width;return{x:i(e,t,n)*o,y:0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return Math.min(Math.max(e,t),n)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=Math.pow(t.x-e.x,2),r=Math.pow(t.y-e.y,2);return Math.sqrt(n+r)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!=e},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"number"==typeof e},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.default=function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Math.abs(e-t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={activeTrack:"input-range__track input-range__track--active",disabledInputRange:"input-range input-range--disabled",inputRange:"input-range",labelContainer:"input-range__label-container",maxLabel:"input-range__label input-range__label--max",minLabel:"input-range__label input-range__label--min",slider:"input-range__slider",sliderContainer:"input-range__slider-container",track:"input-range__track input-range__track--background",valueLabel:"input-range__label input-range__label--value"},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.maxValue,n=e.minValue;if(!(0,r.isNumber)(n)||!(0,r.isNumber)(t))return new Error('"minValue" and "maxValue" must be a number');if(n>=t)return new Error('"minValue" must be smaller than "maxValue"')};var r=n(6);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.maxValue,o=e.minValue,a=e[t];if(!((0,r.isNumber)(a)||(0,r.isObject)(a)&&(0,r.isNumber)(a.min)&&(0,r.isNumber)(a.max)))return new Error('"'+t+'" must be a number or a range object');if((0,r.isNumber)(a)&&(a<o||a>n))return new Error('"'+t+'" must be in between "minValue" and "maxValue"');if((0,r.isObject)(a)&&(a.min<o||a.min>n||a.max<o||a.max>n))return new Error('"'+t+'" must be in between "minValue" and "maxValue"')};var r=n(6);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=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}}(),a=c(n(0)),i=c(n(3)),s=c(n(7)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var f=(l((r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.node=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,null,[{key:"propTypes",get:function(){return{ariaLabelledby:i.default.string,ariaControls:i.default.string,classNames:i.default.objectOf(i.default.string).isRequired,formatLabel:i.default.func,maxValue:i.default.number,minValue:i.default.number,onSliderDrag:i.default.func.isRequired,onSliderKeyDown:i.default.func.isRequired,percentage:i.default.number.isRequired,type:i.default.string.isRequired,value:i.default.number.isRequired}}}]),o(t,[{key:"componentWillUnmount",value:function(){this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener(),this.removeDocumentTouchEndListener(),this.removeDocumentTouchMoveListener()}},{key:"getStyle",value:function(){return{position:"absolute",left:100*(this.props.percentage||0)+"%"}}},{key:"addDocumentMouseMoveListener",value:function(){this.removeDocumentMouseMoveListener(),this.node.ownerDocument.addEventListener("mousemove",this.handleMouseMove)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"addDocumentTouchMoveListener",value:function(){this.removeDocumentTouchMoveListener(),this.node.ownerDocument.addEventListener("touchmove",this.handleTouchMove)}},{key:"addDocumentTouchEndListener",value:function(){this.removeDocumentTouchEndListener(),this.node.ownerDocument.addEventListener("touchend",this.handleTouchEnd)}},{key:"removeDocumentMouseMoveListener",value:function(){this.node.ownerDocument.removeEventListener("mousemove",this.handleMouseMove)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentTouchMoveListener",value:function(){this.node.ownerDocument.removeEventListener("touchmove",this.handleTouchMove)}},{key:"removeDocumentTouchEndListener",value:function(){this.node.ownerDocument.removeEventListener("touchend",this.handleTouchEnd)}},{key:"handleMouseDown",value:function(){this.addDocumentMouseMoveListener(),this.addDocumentMouseUpListener()}},{key:"handleMouseUp",value:function(){this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener()}},{key:"handleMouseMove",value:function(e){this.props.onSliderDrag(e,this.props.type)}},{key:"handleTouchStart",value:function(){this.addDocumentTouchEndListener(),this.addDocumentTouchMoveListener()}},{key:"handleTouchMove",value:function(e){this.props.onSliderDrag(e,this.props.type)}},{key:"handleTouchEnd",value:function(){this.removeDocumentTouchMoveListener(),this.removeDocumentTouchEndListener()}},{key:"handleKeyDown",value:function(e){this.props.onSliderKeyDown(e,this.props.type)}},{key:"render",value:function(){var e=this,t=this.getStyle();return a.default.createElement("span",{className:this.props.classNames.sliderContainer,ref:function(t){e.node=t},style:t},a.default.createElement(u.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"value"},this.props.value),a.default.createElement("div",{"aria-labelledby":this.props.ariaLabelledby,"aria-controls":this.props.ariaControls,"aria-valuemax":this.props.maxValue,"aria-valuemin":this.props.minValue,"aria-valuenow":this.props.value,className:this.props.classNames.slider,draggable:"false",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,role:"slider",tabIndex:"0"}))}}]),t}()).prototype,"handleMouseDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),l(r.prototype,"handleMouseUp",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),l(r.prototype,"handleMouseMove",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseMove"),r.prototype),l(r.prototype,"handleTouchStart",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),l(r.prototype,"handleTouchMove",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchMove"),r.prototype),l(r.prototype,"handleTouchEnd",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchEnd"),r.prototype),l(r.prototype,"handleKeyDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyDown"),r.prototype),r);t.default=f,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=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}}(),a=u(n(0)),i=u(n(3)),s=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var l=(c((r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.node=null,n.trackDragEvent=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,null,[{key:"propTypes",get:function(){return{children:i.default.node.isRequired,classNames:i.default.objectOf(i.default.string).isRequired,draggableTrack:i.default.bool,onTrackDrag:i.default.func,onTrackMouseDown:i.default.func.isRequired,percentages:i.default.objectOf(i.default.number).isRequired}}}]),o(t,[{key:"getClientRect",value:function(){return this.node.getBoundingClientRect()}},{key:"getActiveTrackStyle",value:function(){var e=100*(this.props.percentages.max-this.props.percentages.min)+"%";return{left:100*this.props.percentages.min+"%",width:e}}},{key:"addDocumentMouseMoveListener",value:function(){this.removeDocumentMouseMoveListener(),this.node.ownerDocument.addEventListener("mousemove",this.handleMouseMove)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentMouseMoveListener",value:function(){this.node.ownerDocument.removeEventListener("mousemove",this.handleMouseMove)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseMove",value:function(e){this.props.draggableTrack&&(null!==this.trackDragEvent&&this.props.onTrackDrag(e,this.trackDragEvent),this.trackDragEvent=e)}},{key:"handleMouseUp",value:function(){this.props.draggableTrack&&(this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener(),this.trackDragEvent=null)}},{key:"handleMouseDown",value:function(e){var t={x:(e.touches?e.touches[0].clientX:e.clientX)-this.getClientRect().left,y:0};this.props.onTrackMouseDown(e,t),this.props.draggableTrack&&(this.addDocumentMouseMoveListener(),this.addDocumentMouseUpListener())}},{key:"handleTouchStart",value:function(e){e.preventDefault(),this.handleMouseDown(e)}},{key:"render",value:function(){var e=this,t=this.getActiveTrackStyle();return a.default.createElement("div",{className:this.props.classNames.track,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,ref:function(t){e.node=t}},a.default.createElement("div",{style:t,className:this.props.classNames.activeTrack}),this.props.children)}}]),t}()).prototype,"handleMouseMove",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseMove"),r.prototype),c(r.prototype,"handleMouseUp",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),c(r.prototype,"handleMouseDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),c(r.prototype,"handleTouchStart",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),r);t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DOWN_ARROW=40,t.LEFT_ARROW=37,t.RIGHT_ARROW=39,t.UP_ARROW=38},function(e,t,n){e.exports=function(){"use strict";var e=function(){return(e=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 t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],r={_disable:[],_enable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},o={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},a=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},i=function(e){return!0===e?1:0};function s(e,t,n){var r;return void 0===n&&(n=!1),function(){var o=this,a=arguments;null!==r&&clearTimeout(r),r=window.setTimeout(function(){r=null,n||e.apply(o,a)},t),n&&!r&&e.apply(o,a)}}var u=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function l(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function f(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function d(e,t){var n=l("div","numInputWrapper"),r=l("input","numInput "+e),o=l("span","arrowUp"),a=l("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var i in t)r.setAttribute(i,t[i]);return n.appendChild(r),n.appendChild(o),n.appendChild(a),n}function p(e){try{if("function"==typeof e.composedPath){var t=e.composedPath();return t[0]}return e.target}catch(t){return e.target}}var h=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},g={D:h,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*i(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var r=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:h,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:h,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},v={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[b.w(e,t,n)]},F:function(e,t,n){return m(b.n(e,t,n)-1,!1,t)},G:function(e,t,n){return a(b.h(e,t,n))},H:function(e){return a(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[i(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return a(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return a(e.getFullYear(),4)},d:function(e){return a(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return a(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return a(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},y=function(e){var t=e.config,n=void 0===t?r:t,a=e.l10n,i=void 0===a?o:a,s=e.isMobile,u=void 0!==s&&s;return function(e,t,r){var o=r||i;return void 0===n.formatDate||u?t.split("").map(function(t,r,a){return b[t]&&"\\"!==a[r-1]?b[t](e,o,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,o)}},w=function(e){var t=e.config,n=void 0===t?r:t,a=e.l10n,i=void 0===a?o:a;return function(e,t,o,a){if(0===e||e){var s,u=a||i,c=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var l=t||(n||r).dateFormat,f=String(e).trim();if("today"===f)s=new Date,o=!0;else if(/Z$/.test(f)||/GMT$/.test(f))s=new Date(e);else if(n&&n.parseDate)s=n.parseDate(e,l);else{s=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var d=void 0,p=[],h=0,m=0,b="";h<l.length;h++){var y=l[h],w="\\"===y,O="\\"===l[h-1]||w;if(v[y]&&!O){b+=v[y];var C=new RegExp(b).exec(e);C&&(d=!0)&&p["Y"!==y?"push":"unshift"]({fn:g[y],val:C[++m]})}else w||(b+=".");p.forEach(function(e){var t=e.fn,n=e.val;return s=t(s,n,u)||s})}s=d?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===o&&s.setHours(0,0,0,0),s;n.errorHandler(new Error("Invalid date provided: "+c))}}};function O(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var C=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},x={DAY:864e5};"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},o=0,a=t;o<a.length;o++){var i=a[o];r(i)}return e});var D=300;function k(h,g){var b={config:e(e({},r),E.defaultConfig),l10n:o};function k(e){return e.bind(b)}function S(){var e=b.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==b.calendarContainer&&(b.calendarContainer.style.visibility="hidden",b.calendarContainer.style.display="block"),void 0!==b.daysContainer){var t=(b.days.offsetWidth+1)*e.showMonths;b.daysContainer.style.width=t+"px",b.calendarContainer.style.width=t+(void 0!==b.weekWrapper?b.weekWrapper.offsetWidth:0)+"px",b.calendarContainer.style.removeProperty("visibility"),b.calendarContainer.style.removeProperty("display")}})}function M(e){if(0===b.selectedDates.length){var t=void 0!==b.config.minDate?new Date(b.config.minDate.getTime()):new Date,n=P(),r=n.hours,o=n.minutes,s=n.seconds;t.setHours(r,o,s,0),b.setDate(t,!1)}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=p(e),r=n;void 0!==b.amPM&&n===b.amPM&&(b.amPM.textContent=b.l10n.amPM[i(b.amPM.textContent===b.l10n.amPM[0])]);var o=parseFloat(r.getAttribute("min")),s=parseFloat(r.getAttribute("max")),u=parseFloat(r.getAttribute("step")),c=parseInt(r.value,10),l=e.delta||(t?38===e.which?1:-1:0),f=c+u*l;if(void 0!==r.value&&2===r.value.length){var d=r===b.hourElement,h=r===b.minuteElement;f<o?(f=s+f+i(!d)+(i(d)&&i(!b.amPM)),h&&V(void 0,-1,b.hourElement)):f>s&&(f=r===b.hourElement?f-s-i(!b.amPM):o,h&&V(void 0,1,b.hourElement)),b.amPM&&d&&(1===u?f+c===23:Math.abs(f-c)>u)&&(b.amPM.textContent=b.l10n.amPM[i(b.amPM.textContent===b.l10n.amPM[0])]),r.value=a(f)}}(e);var u=b._input.value;j(),xe(),b._input.value!==u&&b._debouncedChange()}function j(){if(void 0!==b.hourElement&&void 0!==b.minuteElement){var e,t,n=(parseInt(b.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(b.minuteElement.value,10)||0)%60,o=void 0!==b.secondElement?(parseInt(b.secondElement.value,10)||0)%60:0;void 0!==b.amPM&&(e=n,t=b.amPM.textContent,n=e%12+12*i(t===b.l10n.amPM[1]));var a=void 0!==b.config.minTime||b.config.minDate&&b.minDateHasTime&&b.latestSelectedDateObj&&0===O(b.latestSelectedDateObj,b.config.minDate,!0),s=void 0!==b.config.maxTime||b.config.maxDate&&b.maxDateHasTime&&b.latestSelectedDateObj&&0===O(b.latestSelectedDateObj,b.config.maxDate,!0);if(s){var u=void 0!==b.config.maxTime?b.config.maxTime:b.config.maxDate;(n=Math.min(n,u.getHours()))===u.getHours()&&(r=Math.min(r,u.getMinutes())),r===u.getMinutes()&&(o=Math.min(o,u.getSeconds()))}if(a){var c=void 0!==b.config.minTime?b.config.minTime:b.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(r=Math.max(r,c.getMinutes())),r===c.getMinutes()&&(o=Math.max(o,c.getSeconds()))}T(n,r,o)}}function _(e){var t=e||b.latestSelectedDateObj;t&&T(t.getHours(),t.getMinutes(),t.getSeconds())}function P(){var e=b.config.defaultHour,t=b.config.defaultMinute,n=b.config.defaultSeconds;if(void 0!==b.config.minDate){var r=b.config.minDate.getHours(),o=b.config.minDate.getMinutes();(e=Math.max(e,r))===r&&(t=Math.max(o,t)),e===r&&t===o&&(n=b.config.minDate.getSeconds())}if(void 0!==b.config.maxDate){var a=b.config.maxDate.getHours(),i=b.config.maxDate.getMinutes();(e=Math.min(e,a))===a&&(t=Math.min(i,t)),e===a&&t===i&&(n=b.config.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:n}}function T(e,t,n){void 0!==b.latestSelectedDateObj&&b.latestSelectedDateObj.setHours(e%24,t,n||0,0),b.hourElement&&b.minuteElement&&!b.isMobile&&(b.hourElement.value=a(b.config.time_24hr?e:(12+e)%12+12*i(e%12==0)),b.minuteElement.value=a(t),void 0!==b.amPM&&(b.amPM.textContent=b.l10n.amPM[i(e>=12)]),void 0!==b.secondElement&&(b.secondElement.value=a(n)))}function A(e){var t=p(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&te(n)}function I(e,t,n,r){return t instanceof Array?t.forEach(function(t){return I(e,t,n,r)}):e instanceof Array?e.forEach(function(e){return I(e,t,n,r)}):(e.addEventListener(t,n,r),void b._handlers.push({element:e,event:t,handler:n,options:r}))}function L(){be("onChange")}function N(){if(b.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(b.element.querySelectorAll("[data-"+e+"]"),function(t){return I(t,"click",b[e])})}),b.isMobile)!function(){var e=b.config.enableTime?b.config.noCalendar?"time":"datetime-local":"date";b.mobileInput=l("input",b.input.className+" flatpickr-mobile"),b.mobileInput.tabIndex=1,b.mobileInput.type=e,b.mobileInput.disabled=b.input.disabled,b.mobileInput.required=b.input.required,b.mobileInput.placeholder=b.input.placeholder,b.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",b.selectedDates.length>0&&(b.mobileInput.defaultValue=b.mobileInput.value=b.formatDate(b.selectedDates[0],b.mobileFormatStr)),b.config.minDate&&(b.mobileInput.min=b.formatDate(b.config.minDate,"Y-m-d")),b.config.maxDate&&(b.mobileInput.max=b.formatDate(b.config.maxDate,"Y-m-d")),b.input.getAttribute("step")&&(b.mobileInput.step=String(b.input.getAttribute("step"))),b.input.type="hidden",void 0!==b.altInput&&(b.altInput.type="hidden");try{b.input.parentNode&&b.input.parentNode.insertBefore(b.mobileInput,b.input.nextSibling)}catch(e){}I(b.mobileInput,"change",function(e){b.setDate(p(e).value,!1,b.mobileFormatStr),be("onChange"),be("onClose")})}();else{var e=s(se,50);b._debouncedChange=s(L,D),b.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&I(b.daysContainer,"mouseover",function(e){"range"===b.config.mode&&ie(p(e))}),I(window.document.body,"keydown",ae),b.config.inline||b.config.static||I(window,"resize",e),void 0!==window.ontouchstart?I(window.document,"touchstart",ee):I(window.document,"click",ee),I(window.document,"focus",ee,{capture:!0}),!0===b.config.clickOpens&&(I(b._input,"focus",b.open),I(b._input,"click",b.open)),void 0!==b.daysContainer&&(I(b.monthNav,"click",De),I(b.monthNav,["keyup","increment"],A),I(b.daysContainer,"click",he)),void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement&&(I(b.timeContainer,["increment"],M),I(b.timeContainer,"blur",M,{capture:!0}),I(b.timeContainer,"click",F),I([b.hourElement,b.minuteElement],["focus","click"],function(e){return p(e).select()}),void 0!==b.secondElement&&I(b.secondElement,"focus",function(){return b.secondElement&&b.secondElement.select()}),void 0!==b.amPM&&I(b.amPM,"click",function(e){M(e),L()})),b.config.allowInput&&I(b._input,"blur",oe)}}function R(e,t){var n=void 0!==e?b.parseDate(e):b.latestSelectedDateObj||(b.config.minDate&&b.config.minDate>b.now?b.config.minDate:b.config.maxDate&&b.config.maxDate<b.now?b.config.maxDate:b.now),r=b.currentYear,o=b.currentMonth;try{void 0!==n&&(b.currentYear=n.getFullYear(),b.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,b.config.errorHandler(e)}t&&b.currentYear!==r&&(be("onYearChange"),q()),!t||b.currentYear===r&&b.currentMonth===o||be("onMonthChange"),b.redraw()}function F(e){var t=p(e);~t.className.indexOf("arrow")&&V(e,t.classList.contains("arrowUp")?1:-1)}function V(e,t,n){var r=e&&p(e),o=n||r&&r.parentNode&&r.parentNode.firstChild,a=ye("increment");a.delta=t,o&&o.dispatchEvent(a)}function H(){var e=window.document.createDocumentFragment();if(b.calendarContainer=l("div","flatpickr-calendar"),b.calendarContainer.tabIndex=-1,!b.config.noCalendar){if(e.appendChild((b.monthNav=l("div","flatpickr-months"),b.yearElements=[],b.monthElements=[],b.prevMonthNav=l("span","flatpickr-prev-month"),b.prevMonthNav.innerHTML=b.config.prevArrow,b.nextMonthNav=l("span","flatpickr-next-month"),b.nextMonthNav.innerHTML=b.config.nextArrow,$(),Object.defineProperty(b,"_hidePrevMonthArrow",{get:function(){return b.__hidePrevMonthArrow},set:function(e){b.__hidePrevMonthArrow!==e&&(c(b.prevMonthNav,"flatpickr-disabled",e),b.__hidePrevMonthArrow=e)}}),Object.defineProperty(b,"_hideNextMonthArrow",{get:function(){return b.__hideNextMonthArrow},set:function(e){b.__hideNextMonthArrow!==e&&(c(b.nextMonthNav,"flatpickr-disabled",e),b.__hideNextMonthArrow=e)}}),b.currentYearElement=b.yearElements[0],Oe(),b.monthNav)),b.innerContainer=l("div","flatpickr-innerContainer"),b.config.weekNumbers){var t=function(){b.calendarContainer.classList.add("hasWeeks");var e=l("div","flatpickr-weekwrapper");e.appendChild(l("span","flatpickr-weekday",b.l10n.weekAbbreviation));var t=l("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,r=t.weekNumbers;b.innerContainer.appendChild(n),b.weekNumbers=r,b.weekWrapper=n}b.rContainer=l("div","flatpickr-rContainer"),b.rContainer.appendChild(J()),b.daysContainer||(b.daysContainer=l("div","flatpickr-days"),b.daysContainer.tabIndex=-1),K(),b.rContainer.appendChild(b.daysContainer),b.innerContainer.appendChild(b.rContainer),e.appendChild(b.innerContainer)}b.config.enableTime&&e.appendChild(function(){b.calendarContainer.classList.add("hasTime"),b.config.noCalendar&&b.calendarContainer.classList.add("noCalendar"),b.timeContainer=l("div","flatpickr-time"),b.timeContainer.tabIndex=-1;var e=l("span","flatpickr-time-separator",":"),t=d("flatpickr-hour",{"aria-label":b.l10n.hourAriaLabel});b.hourElement=t.getElementsByTagName("input")[0];var n=d("flatpickr-minute",{"aria-label":b.l10n.minuteAriaLabel});if(b.minuteElement=n.getElementsByTagName("input")[0],b.hourElement.tabIndex=b.minuteElement.tabIndex=-1,b.hourElement.value=a(b.latestSelectedDateObj?b.latestSelectedDateObj.getHours():b.config.time_24hr?b.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(b.config.defaultHour)),b.minuteElement.value=a(b.latestSelectedDateObj?b.latestSelectedDateObj.getMinutes():b.config.defaultMinute),b.hourElement.setAttribute("step",b.config.hourIncrement.toString()),b.minuteElement.setAttribute("step",b.config.minuteIncrement.toString()),b.hourElement.setAttribute("min",b.config.time_24hr?"0":"1"),b.hourElement.setAttribute("max",b.config.time_24hr?"23":"12"),b.minuteElement.setAttribute("min","0"),b.minuteElement.setAttribute("max","59"),b.timeContainer.appendChild(t),b.timeContainer.appendChild(e),b.timeContainer.appendChild(n),b.config.time_24hr&&b.timeContainer.classList.add("time24hr"),b.config.enableSeconds){b.timeContainer.classList.add("hasSeconds");var r=d("flatpickr-second");b.secondElement=r.getElementsByTagName("input")[0],b.secondElement.value=a(b.latestSelectedDateObj?b.latestSelectedDateObj.getSeconds():b.config.defaultSeconds),b.secondElement.setAttribute("step",b.minuteElement.getAttribute("step")),b.secondElement.setAttribute("min","0"),b.secondElement.setAttribute("max","59"),b.timeContainer.appendChild(l("span","flatpickr-time-separator",":")),b.timeContainer.appendChild(r)}return b.config.time_24hr||(b.amPM=l("span","flatpickr-am-pm",b.l10n.amPM[i((b.latestSelectedDateObj?b.hourElement.value:b.config.defaultHour)>11)]),b.amPM.title=b.l10n.toggleTitle,b.amPM.tabIndex=-1,b.timeContainer.appendChild(b.amPM)),b.timeContainer}()),c(b.calendarContainer,"rangeMode","range"===b.config.mode),c(b.calendarContainer,"animate",!0===b.config.animate),c(b.calendarContainer,"multiMonth",b.config.showMonths>1),b.calendarContainer.appendChild(e);var o=void 0!==b.config.appendTo&&void 0!==b.config.appendTo.nodeType;if((b.config.inline||b.config.static)&&(b.calendarContainer.classList.add(b.config.inline?"inline":"static"),b.config.inline&&(!o&&b.element.parentNode?b.element.parentNode.insertBefore(b.calendarContainer,b._input.nextSibling):void 0!==b.config.appendTo&&b.config.appendTo.appendChild(b.calendarContainer)),b.config.static)){var s=l("div","flatpickr-wrapper");b.element.parentNode&&b.element.parentNode.insertBefore(s,b.element),s.appendChild(b.element),b.altInput&&s.appendChild(b.altInput),s.appendChild(b.calendarContainer)}b.config.static||b.config.inline||(void 0!==b.config.appendTo?b.config.appendTo:window.document.body).appendChild(b.calendarContainer)}function U(e,t,n,r){var o=ne(t,!0),a=l("span","flatpickr-day "+e,t.getDate().toString());return a.dateObj=t,a.$i=r,a.setAttribute("aria-label",b.formatDate(t,b.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===O(t,b.now)&&(b.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),o?(a.tabIndex=-1,we(t)&&(a.classList.add("selected"),b.selectedDateElem=a,"range"===b.config.mode&&(c(a,"startRange",b.selectedDates[0]&&0===O(t,b.selectedDates[0],!0)),c(a,"endRange",b.selectedDates[1]&&0===O(t,b.selectedDates[1],!0)),"nextMonthDay"===e&&a.classList.add("inRange")))):a.classList.add("flatpickr-disabled"),"range"===b.config.mode&&function(e){return!("range"!==b.config.mode||b.selectedDates.length<2)&&O(e,b.selectedDates[0])>=0&&O(e,b.selectedDates[1])<=0}(t)&&!we(t)&&a.classList.add("inRange"),b.weekNumbers&&1===b.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&b.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+b.config.getWeek(t)+"</span>"),be("onDayCreate",a),a}function W(e){e.focus(),"range"===b.config.mode&&ie(e)}function z(e){for(var t=e>0?0:b.config.showMonths-1,n=e>0?b.config.showMonths:-1,r=t;r!=n;r+=e)for(var o=b.daysContainer.children[r],a=e>0?0:o.children.length-1,i=e>0?o.children.length:-1,s=a;s!=i;s+=e){var u=o.children[s];if(-1===u.className.indexOf("hidden")&&ne(u.dateObj))return u}}function B(e,t){var n=re(document.activeElement||document.body),r=void 0!==e?e:n?document.activeElement:void 0!==b.selectedDateElem&&re(b.selectedDateElem)?b.selectedDateElem:void 0!==b.todayDateElem&&re(b.todayDateElem)?b.todayDateElem:z(t>0?1:-1);void 0===r?b._input.focus():n?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():b.currentMonth,r=t>0?b.config.showMonths:-1,o=t>0?1:-1,a=n-b.currentMonth;a!=r;a+=o)for(var i=b.daysContainer.children[a],s=n-b.currentMonth===a?e.$i+t:t<0?i.children.length-1:0,u=i.children.length,c=s;c>=0&&c<u&&c!=(t>0?u:-1);c+=o){var l=i.children[c];if(-1===l.className.indexOf("hidden")&&ne(l.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return W(l)}b.changeMonth(o),B(z(o),0)}(r,t):W(r)}function Y(e,t){for(var n=(new Date(e,t,1).getDay()-b.l10n.firstDayOfWeek+7)%7,r=b.utils.getDaysInMonth((t-1+12)%12,e),o=b.utils.getDaysInMonth(t,e),a=window.document.createDocumentFragment(),i=b.config.showMonths>1,s=i?"prevMonthDay hidden":"prevMonthDay",u=i?"nextMonthDay hidden":"nextMonthDay",c=r+1-n,f=0;c<=r;c++,f++)a.appendChild(U(s,new Date(e,t-1,c),c,f));for(c=1;c<=o;c++,f++)a.appendChild(U("",new Date(e,t,c),c,f));for(var d=o+1;d<=42-n&&(1===b.config.showMonths||f%7!=0);d++,f++)a.appendChild(U(u,new Date(e,t+1,d%o),d,f));var p=l("div","dayContainer");return p.appendChild(a),p}function K(){if(void 0!==b.daysContainer){f(b.daysContainer),b.weekNumbers&&f(b.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<b.config.showMonths;t++){var n=new Date(b.currentYear,b.currentMonth,1);n.setMonth(b.currentMonth+t),e.appendChild(Y(n.getFullYear(),n.getMonth()))}b.daysContainer.appendChild(e),b.days=b.daysContainer.firstChild,"range"===b.config.mode&&1===b.selectedDates.length&&ie()}}function q(){if(!(b.config.showMonths>1||"dropdown"!==b.config.monthSelectorType)){var e=function(e){return!(void 0!==b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&e<b.config.minDate.getMonth()||void 0!==b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()&&e>b.config.maxDate.getMonth())};b.monthsDropdownContainer.tabIndex=-1,b.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=l("option","flatpickr-monthDropdown-month");n.value=new Date(b.currentYear,t).getMonth().toString(),n.textContent=m(t,b.config.shorthandCurrentMonth,b.l10n),n.tabIndex=-1,b.currentMonth===t&&(n.selected=!0),b.monthsDropdownContainer.appendChild(n)}}}function G(){var e,t=l("div","flatpickr-month"),n=window.document.createDocumentFragment();b.config.showMonths>1||"static"===b.config.monthSelectorType?e=l("span","cur-month"):(b.monthsDropdownContainer=l("select","flatpickr-monthDropdown-months"),b.monthsDropdownContainer.setAttribute("aria-label",b.l10n.monthAriaLabel),I(b.monthsDropdownContainer,"change",function(e){var t=p(e),n=parseInt(t.value,10);b.changeMonth(n-b.currentMonth),be("onMonthChange")}),q(),e=b.monthsDropdownContainer);var r=d("cur-year",{tabindex:"-1"}),o=r.getElementsByTagName("input")[0];o.setAttribute("aria-label",b.l10n.yearAriaLabel),b.config.minDate&&o.setAttribute("min",b.config.minDate.getFullYear().toString()),b.config.maxDate&&(o.setAttribute("max",b.config.maxDate.getFullYear().toString()),o.disabled=!!b.config.minDate&&b.config.minDate.getFullYear()===b.config.maxDate.getFullYear());var a=l("div","flatpickr-current-month");return a.appendChild(e),a.appendChild(r),n.appendChild(a),t.appendChild(n),{container:t,yearElement:o,monthElement:e}}function $(){f(b.monthNav),b.monthNav.appendChild(b.prevMonthNav),b.config.showMonths&&(b.yearElements=[],b.monthElements=[]);for(var e=b.config.showMonths;e--;){var t=G();b.yearElements.push(t.yearElement),b.monthElements.push(t.monthElement),b.monthNav.appendChild(t.container)}b.monthNav.appendChild(b.nextMonthNav)}function J(){b.weekdayContainer?f(b.weekdayContainer):b.weekdayContainer=l("div","flatpickr-weekdays");for(var e=b.config.showMonths;e--;){var t=l("div","flatpickr-weekdaycontainer");b.weekdayContainer.appendChild(t)}return X(),b.weekdayContainer}function X(){if(b.weekdayContainer){var e=b.l10n.firstDayOfWeek,n=t(b.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=t(n.splice(e,n.length),n.splice(0,e)));for(var r=b.config.showMonths;r--;)b.weekdayContainer.children[r].innerHTML="\n <span class='flatpickr-weekday'>\n "+n.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,t){void 0===t&&(t=!0);var n=t?e:e-b.currentMonth;n<0&&!0===b._hidePrevMonthArrow||n>0&&!0===b._hideNextMonthArrow||(b.currentMonth+=n,(b.currentMonth<0||b.currentMonth>11)&&(b.currentYear+=b.currentMonth>11?1:-1,b.currentMonth=(b.currentMonth+12)%12,be("onYearChange"),q()),K(),be("onMonthChange"),Oe())}function Z(e){return!(!b.config.appendTo||!b.config.appendTo.contains(e))||b.calendarContainer.contains(e)}function ee(e){if(b.isOpen&&!b.config.inline){var t=p(e),n=Z(t),r=t===b.input||t===b.altInput||b.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(b.input)||~e.path.indexOf(b.altInput)),o="blur"===e.type?r&&e.relatedTarget&&!Z(e.relatedTarget):!r&&!n&&!Z(e.relatedTarget),a=!b.config.ignoredFocusElements.some(function(e){return e.contains(t)});o&&a&&(void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement&&""!==b.input.value&&void 0!==b.input.value&&M(),b.close(),b.config&&"range"===b.config.mode&&1===b.selectedDates.length&&(b.clear(!1),b.redraw()))}}function te(e){if(!(!e||b.config.minDate&&e<b.config.minDate.getFullYear()||b.config.maxDate&&e>b.config.maxDate.getFullYear())){var t=e,n=b.currentYear!==t;b.currentYear=t||b.currentYear,b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth=Math.min(b.config.maxDate.getMonth(),b.currentMonth):b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&(b.currentMonth=Math.max(b.config.minDate.getMonth(),b.currentMonth)),n&&(b.redraw(),be("onYearChange"),q())}}function ne(e,t){void 0===t&&(t=!0);var n=b.parseDate(e,void 0,t);if(b.config.minDate&&n&&O(n,b.config.minDate,void 0!==t?t:!b.minDateHasTime)<0||b.config.maxDate&&n&&O(n,b.config.maxDate,void 0!==t?t:!b.maxDateHasTime)>0)return!1;if(0===b.config.enable.length&&0===b.config.disable.length)return!0;if(void 0===n)return!1;for(var r=b.config.enable.length>0,o=r?b.config.enable:b.config.disable,a=0,i=void 0;a<o.length;a++){if("function"==typeof(i=o[a])&&i(n))return r;if(i instanceof Date&&void 0!==n&&i.getTime()===n.getTime())return r;if("string"==typeof i&&void 0!==n){var s=b.parseDate(i,void 0,!0);return s&&s.getTime()===n.getTime()?r:!r}if("object"==typeof i&&void 0!==n&&i.from&&i.to&&n.getTime()>=i.from.getTime()&&n.getTime()<=i.to.getTime())return r}return!r}function re(e){return void 0!==b.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&b.daysContainer.contains(e)}function oe(e){var t=e.target===b._input;!t||e.relatedTarget&&Z(e.relatedTarget)||b.setDate(b._input.value,!0,e.target===b.altInput?b.config.altFormat:b.config.dateFormat)}function ae(e){var t=p(e),n=b.config.wrap?h.contains(t):t===b._input,r=b.config.allowInput,o=b.isOpen&&(!r||!n),a=b.config.inline&&n&&!r;if(13===e.keyCode&&n){if(r)return b.setDate(b._input.value,!0,t===b.altInput?b.config.altFormat:b.config.dateFormat),t.blur();b.open()}else if(Z(t)||o||a){var i=!!b.timeContainer&&b.timeContainer.contains(t);switch(e.keyCode){case 13:i?(e.preventDefault(),M(),pe()):he(e);break;case 27:e.preventDefault(),pe();break;case 8:case 46:n&&!b.config.allowInput&&(e.preventDefault(),b.clear());break;case 37:case 39:if(i||n)b.hourElement&&b.hourElement.focus();else if(e.preventDefault(),void 0!==b.daysContainer&&(!1===r||document.activeElement&&re(document.activeElement))){var s=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),Q(s),B(z(1),0)):B(void 0,s)}break;case 38:case 40:e.preventDefault();var u=40===e.keyCode?1:-1;b.daysContainer&&void 0!==t.$i||t===b.input||t===b.altInput?e.ctrlKey?(e.stopPropagation(),te(b.currentYear-u),B(z(1),0)):i||B(void 0,7*u):t===b.currentYearElement?te(b.currentYear-u):b.config.enableTime&&(!i&&b.hourElement&&b.hourElement.focus(),M(e),b._debouncedChange());break;case 9:if(i){var c=[b.hourElement,b.minuteElement,b.secondElement,b.amPM].concat(b.pluginElements).filter(function(e){return e}),l=c.indexOf(t);if(-1!==l){var f=c[l+(e.shiftKey?-1:1)];e.preventDefault(),(f||b._input).focus()}}else!b.config.noCalendar&&b.daysContainer&&b.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),b._input.focus())}}if(void 0!==b.amPM&&t===b.amPM)switch(e.key){case b.l10n.amPM[0].charAt(0):case b.l10n.amPM[0].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[0],j(),xe();break;case b.l10n.amPM[1].charAt(0):case b.l10n.amPM[1].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[1],j(),xe()}(n||Z(t))&&be("onKeyDown",e)}function ie(e){if(1===b.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():b.days.firstElementChild.dateObj.getTime(),n=b.parseDate(b.selectedDates[0],void 0,!0).getTime(),r=Math.min(t,b.selectedDates[0].getTime()),o=Math.max(t,b.selectedDates[0].getTime()),a=!1,i=0,s=0,u=r;u<o;u+=x.DAY)ne(new Date(u),!0)||(a=a||u>r&&u<o,u<n&&(!i||u>i)?i=u:u>n&&(!s||u<s)&&(s=u));for(var c=0;c<b.config.showMonths;c++)for(var l=b.daysContainer.children[c],f=function(r,o){var u=l.children[r],c=u.dateObj,f=c.getTime(),d=i>0&&f<i||s>0&&f>s;return d?(u.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){u.classList.remove(e)}),"continue"):a&&!d?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){u.classList.remove(e)}),void(void 0!==e&&(e.classList.add(t<=b.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&f===n?u.classList.add("startRange"):n>t&&f===n&&u.classList.add("endRange"),f>=i&&(0===s||f<=s)&&C(f,n,t)&&u.classList.add("inRange"))))},d=0,p=l.children.length;d<p;d++)f(d)}}function se(){!b.isOpen||b.config.static||b.config.inline||fe()}function ue(e){return function(t){var n=b.config["_"+e+"Date"]=b.parseDate(t,b.config.dateFormat),r=b.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(b["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),b.selectedDates&&(b.selectedDates=b.selectedDates.filter(function(e){return ne(e)}),b.selectedDates.length||"min"!==e||_(n),xe()),b.daysContainer&&(de(),void 0!==n?b.currentYearElement[e]=n.getFullYear().toString():b.currentYearElement.removeAttribute(e),b.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function ce(){return b.config.wrap?h.querySelector("[data-input]"):h}function le(){"object"!=typeof b.config.locale&&void 0===E.l10ns[b.config.locale]&&b.config.errorHandler(new Error("flatpickr: invalid locale "+b.config.locale)),b.l10n=e(e({},E.l10ns.default),"object"==typeof b.config.locale?b.config.locale:"default"!==b.config.locale?E.l10ns[b.config.locale]:void 0),v.K="("+b.l10n.amPM[0]+"|"+b.l10n.amPM[1]+"|"+b.l10n.amPM[0].toLowerCase()+"|"+b.l10n.amPM[1].toLowerCase()+")";var t=e(e({},g),JSON.parse(JSON.stringify(h.dataset||{})));void 0===t.time_24hr&&void 0===E.defaultConfig.time_24hr&&(b.config.time_24hr=b.l10n.time_24hr),b.formatDate=y(b),b.parseDate=w({config:b.config,l10n:b.l10n})}function fe(e){if(void 0!==b.calendarContainer){be("onPreCalendarPosition");var t=e||b._positionElement,n=Array.prototype.reduce.call(b.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),r=b.calendarContainer.offsetWidth,o=b.config.position.split(" "),a=o[0],i=o.length>1?o[1]:null,s=t.getBoundingClientRect(),u=window.innerHeight-s.bottom,l="above"===a||"below"!==a&&u<n&&s.top>n,f=window.pageYOffset+s.top+(l?-n-2:t.offsetHeight+2);if(c(b.calendarContainer,"arrowTop",!l),c(b.calendarContainer,"arrowBottom",l),!b.config.inline){var d=window.pageXOffset+s.left,p=!1,h=!1;"center"===i?(d-=(r-s.width)/2,p=!0):"right"===i&&(d-=r-s.width,h=!0),c(b.calendarContainer,"arrowLeft",!p&&!h),c(b.calendarContainer,"arrowCenter",p),c(b.calendarContainer,"arrowRight",h);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),g=d+r>window.document.body.offsetWidth,v=m+r>window.document.body.offsetWidth;if(c(b.calendarContainer,"rightMost",g),!b.config.static)if(b.calendarContainer.style.top=f+"px",g)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return null!=e?e:(r=document.createElement("style"),document.head.appendChild(r),r.sheet);var r}();if(void 0===y)return;var w=window.document.body.offsetWidth,O=Math.max(0,w/2-r/2),C=y.cssRules.length,x="{left:"+s.left+"px;right:auto;}";c(b.calendarContainer,"rightMost",!1),c(b.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,C),b.calendarContainer.style.left=O+"px",b.calendarContainer.style.right="auto"}else b.calendarContainer.style.left="auto",b.calendarContainer.style.right=m+"px";else b.calendarContainer.style.left=d+"px",b.calendarContainer.style.right="auto"}}}function de(){b.config.noCalendar||b.isMobile||(q(),Oe(),K())}function pe(){b._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(b.close,0):b.close()}function he(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(p(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,r=b.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(r.getMonth()<b.currentMonth||r.getMonth()>b.currentMonth+b.config.showMonths-1)&&"range"!==b.config.mode;if(b.selectedDateElem=n,"single"===b.config.mode)b.selectedDates=[r];else if("multiple"===b.config.mode){var a=we(r);a?b.selectedDates.splice(parseInt(a),1):b.selectedDates.push(r)}else"range"===b.config.mode&&(2===b.selectedDates.length&&b.clear(!1,!1),b.latestSelectedDateObj=r,b.selectedDates.push(r),0!==O(r,b.selectedDates[0],!0)&&b.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(j(),o){var i=b.currentYear!==r.getFullYear();b.currentYear=r.getFullYear(),b.currentMonth=r.getMonth(),i&&(be("onYearChange"),q()),be("onMonthChange")}if(Oe(),K(),xe(),o||"range"===b.config.mode||1!==b.config.showMonths?void 0!==b.selectedDateElem&&void 0===b.hourElement&&b.selectedDateElem&&b.selectedDateElem.focus():W(n),void 0!==b.hourElement&&void 0!==b.hourElement&&b.hourElement.focus(),b.config.closeOnSelect){var s="single"===b.config.mode&&!b.config.enableTime,u="range"===b.config.mode&&2===b.selectedDates.length&&!b.config.enableTime;(s||u)&&pe()}L()}}b.parseDate=w({config:b.config,l10n:b.l10n}),b._handlers=[],b.pluginElements=[],b.loadedPlugins=[],b._bind=I,b._setHoursFromDate=_,b._positionCalendar=fe,b.changeMonth=Q,b.changeYear=te,b.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),b.input.value="",void 0!==b.altInput&&(b.altInput.value=""),void 0!==b.mobileInput&&(b.mobileInput.value=""),b.selectedDates=[],b.latestSelectedDateObj=void 0,!0===t&&(b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth()),!0===b.config.enableTime){var n=P(),r=n.hours,o=n.minutes,a=n.seconds;T(r,o,a)}b.redraw(),e&&be("onChange")},b.close=function(){b.isOpen=!1,b.isMobile||(void 0!==b.calendarContainer&&b.calendarContainer.classList.remove("open"),void 0!==b._input&&b._input.classList.remove("active")),be("onClose")},b._createElement=l,b.destroy=function(){void 0!==b.config&&be("onDestroy");for(var e=b._handlers.length;e--;){var t=b._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(b._handlers=[],b.mobileInput)b.mobileInput.parentNode&&b.mobileInput.parentNode.removeChild(b.mobileInput),b.mobileInput=void 0;else if(b.calendarContainer&&b.calendarContainer.parentNode)if(b.config.static&&b.calendarContainer.parentNode){var n=b.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else b.calendarContainer.parentNode.removeChild(b.calendarContainer);b.altInput&&(b.input.type="text",b.altInput.parentNode&&b.altInput.parentNode.removeChild(b.altInput),delete b.altInput),b.input&&(b.input.type=b.input._type,b.input.classList.remove("flatpickr-input"),b.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete b[e]}catch(e){}})},b.isEnabled=ne,b.jumpToDate=R,b.open=function(e,t){if(void 0===t&&(t=b._positionElement),!0===b.isMobile){if(e){e.preventDefault();var n=p(e);n&&n.blur()}return void 0!==b.mobileInput&&(b.mobileInput.focus(),b.mobileInput.click()),void be("onOpen")}if(!b._input.disabled&&!b.config.inline){var r=b.isOpen;b.isOpen=!0,r||(b.calendarContainer.classList.add("open"),b._input.classList.add("active"),be("onOpen"),fe(t)),!0===b.config.enableTime&&!0===b.config.noCalendar&&(!1!==b.config.allowInput||void 0!==e&&b.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return b.hourElement.select()},50))}},b.redraw=de,b.set=function(e,t){if(null!==e&&"object"==typeof e)for(var r in Object.assign(b.config,e),e)void 0!==me[r]&&me[r].forEach(function(e){return e()});else b.config[e]=t,void 0!==me[e]?me[e].forEach(function(e){return e()}):n.indexOf(e)>-1&&(b.config[e]=u(t));b.redraw(),xe(!0)},b.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=b.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return b.clear(t);ge(e,n),b.latestSelectedDateObj=b.selectedDates[b.selectedDates.length-1],b.redraw(),R(void 0,t),_(),0===b.selectedDates.length&&b.clear(!1),xe(t),t&&be("onChange")},b.toggle=function(e){if(!0===b.isOpen)return b.close();b.open(e)};var me={locale:[le,X],showMonths:[$,S,J],minDate:[R],maxDate:[R]};function ge(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return b.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[b.parseDate(e,t)];else if("string"==typeof e)switch(b.config.mode){case"single":case"time":n=[b.parseDate(e,t)];break;case"multiple":n=e.split(b.config.conjunction).map(function(e){return b.parseDate(e,t)});break;case"range":n=e.split(b.l10n.rangeSeparator).map(function(e){return b.parseDate(e,t)})}else b.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));b.selectedDates=b.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&ne(e,!1)}),"range"===b.config.mode&&b.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ve(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?b.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:b.parseDate(e.from,void 0),to:b.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function be(e,t){if(void 0!==b.config){var n=b.config[e];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&r<n.length;r++)n[r](b.selectedDates,b.input.value,b,t);"onChange"===e&&(b.input.dispatchEvent(ye("change")),b.input.dispatchEvent(ye("input")))}}function ye(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function we(e){for(var t=0;t<b.selectedDates.length;t++)if(0===O(b.selectedDates[t],e))return""+t;return!1}function Oe(){b.config.noCalendar||b.isMobile||!b.monthNav||(b.yearElements.forEach(function(e,t){var n=new Date(b.currentYear,b.currentMonth,1);n.setMonth(b.currentMonth+t),b.config.showMonths>1||"static"===b.config.monthSelectorType?b.monthElements[t].textContent=m(n.getMonth(),b.config.shorthandCurrentMonth,b.l10n)+" ":b.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),b._hidePrevMonthArrow=void 0!==b.config.minDate&&(b.currentYear===b.config.minDate.getFullYear()?b.currentMonth<=b.config.minDate.getMonth():b.currentYear<b.config.minDate.getFullYear()),b._hideNextMonthArrow=void 0!==b.config.maxDate&&(b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth+1>b.config.maxDate.getMonth():b.currentYear>b.config.maxDate.getFullYear()))}function Ce(e){return b.selectedDates.map(function(t){return b.formatDate(t,e)}).filter(function(e,t,n){return"range"!==b.config.mode||b.config.enableTime||n.indexOf(e)===t}).join("range"!==b.config.mode?b.config.conjunction:b.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==b.mobileInput&&b.mobileFormatStr&&(b.mobileInput.value=void 0!==b.latestSelectedDateObj?b.formatDate(b.latestSelectedDateObj,b.mobileFormatStr):""),b.input.value=Ce(b.config.dateFormat),void 0!==b.altInput&&(b.altInput.value=Ce(b.config.altFormat)),!1!==e&&be("onValueUpdate")}function De(e){var t=p(e),n=b.prevMonthNav.contains(t),r=b.nextMonthNav.contains(t);n||r?Q(n?-1:1):b.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?b.changeYear(b.currentYear+1):t.classList.contains("arrowDown")&&b.changeYear(b.currentYear-1)}return function(){b.element=b.input=h,b.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=e(e({},JSON.parse(JSON.stringify(h.dataset||{}))),g),a={};b.config.parseDate=o.parseDate,b.config.formatDate=o.formatDate,Object.defineProperty(b.config,"enable",{get:function(){return b.config._enable},set:function(e){b.config._enable=ve(e)}}),Object.defineProperty(b.config,"disable",{get:function(){return b.config._disable},set:function(e){b.config._disable=ve(e)}});var i="time"===o.mode;if(!o.dateFormat&&(o.enableTime||i)){var s=E.defaultConfig.dateFormat||r.dateFormat;a.dateFormat=o.noCalendar||i?"H:i"+(o.enableSeconds?":S":""):s+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||i)&&!o.altFormat){var c=E.defaultConfig.altFormat||r.altFormat;a.altFormat=o.noCalendar||i?"h:i"+(o.enableSeconds?":S K":" K"):c+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(b.config,"minDate",{get:function(){return b.config._minDate},set:ue("min")}),Object.defineProperty(b.config,"maxDate",{get:function(){return b.config._maxDate},set:ue("max")});var l=function(e){return function(t){b.config["min"===e?"_minTime":"_maxTime"]=b.parseDate(t,"H:i:S")}};Object.defineProperty(b.config,"minTime",{get:function(){return b.config._minTime},set:l("min")}),Object.defineProperty(b.config,"maxTime",{get:function(){return b.config._maxTime},set:l("max")}),"time"===o.mode&&(b.config.noCalendar=!0,b.config.enableTime=!0),Object.assign(b.config,a,o);for(var f=0;f<t.length;f++)b.config[t[f]]=!0===b.config[t[f]]||"true"===b.config[t[f]];n.filter(function(e){return void 0!==b.config[e]}).forEach(function(e){b.config[e]=u(b.config[e]||[]).map(k)}),b.isMobile=!b.config.disableMobile&&!b.config.inline&&"single"===b.config.mode&&!b.config.disable.length&&!b.config.enable.length&&!b.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var f=0;f<b.config.plugins.length;f++){var d=b.config.plugins[f](b)||{};for(var p in d)n.indexOf(p)>-1?b.config[p]=u(d[p]).map(k).concat(b.config[p]):void 0===o[p]&&(b.config[p]=d[p])}o.altInputClass||(b.config.altInputClass=ce().className+" "+b.config.altInputClass),be("onParseConfig")}(),le(),b.input=ce(),b.input?(b.input._type=b.input.type,b.input.type="text",b.input.classList.add("flatpickr-input"),b._input=b.input,b.config.altInput&&(b.altInput=l(b.input.nodeName,b.config.altInputClass),b._input=b.altInput,b.altInput.placeholder=b.input.placeholder,b.altInput.disabled=b.input.disabled,b.altInput.required=b.input.required,b.altInput.tabIndex=b.input.tabIndex,b.altInput.type="text",b.input.setAttribute("type","hidden"),!b.config.static&&b.input.parentNode&&b.input.parentNode.insertBefore(b.altInput,b.input.nextSibling)),b.config.allowInput||b._input.setAttribute("readonly","readonly"),b._positionElement=b.config.positionElement||b._input):b.config.errorHandler(new Error("Invalid input element specified")),function(){b.selectedDates=[],b.now=b.parseDate(b.config.now)||new Date;var e=b.config.defaultDate||("INPUT"!==b.input.nodeName&&"TEXTAREA"!==b.input.nodeName||!b.input.placeholder||b.input.value!==b.input.placeholder?b.input.value:null);e&&ge(e,b.config.dateFormat),b._initialDate=b.selectedDates.length>0?b.selectedDates[0]:b.config.minDate&&b.config.minDate.getTime()>b.now.getTime()?b.config.minDate:b.config.maxDate&&b.config.maxDate.getTime()<b.now.getTime()?b.config.maxDate:b.now,b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth(),b.selectedDates.length>0&&(b.latestSelectedDateObj=b.selectedDates[0]),void 0!==b.config.minTime&&(b.config.minTime=b.parseDate(b.config.minTime,"H:i")),void 0!==b.config.maxTime&&(b.config.maxTime=b.parseDate(b.config.maxTime,"H:i")),b.minDateHasTime=!!b.config.minDate&&(b.config.minDate.getHours()>0||b.config.minDate.getMinutes()>0||b.config.minDate.getSeconds()>0),b.maxDateHasTime=!!b.config.maxDate&&(b.config.maxDate.getHours()>0||b.config.maxDate.getMinutes()>0||b.config.maxDate.getSeconds()>0)}(),b.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=b.currentMonth),void 0===t&&(t=b.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:b.l10n.daysInMonth[e]}},b.isMobile||H(),N(),(b.selectedDates.length||b.config.noCalendar)&&(b.config.enableTime&&_(b.config.noCalendar?b.latestSelectedDateObj||b.config.minDate:void 0),xe(!1)),S();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!b.isMobile&&t&&fe(),be("onReady")}(),b}function S(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),r=[],o=0;o<n.length;o++){var a=n[o];try{if(null!==a.getAttribute("data-fp-omit"))continue;void 0!==a._flatpickr&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=k(a,t||{}),r.push(a._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return S(this,e)},HTMLElement.prototype.flatpickr=function(e){return S([this],e)});var E=function(e,t){return"string"==typeof e?S(window.document.querySelectorAll(e),t):e instanceof Node?S([e],t):S(e,t)};return E.defaultConfig={},E.l10ns={en:e({},o),default:e({},o)},E.localize=function(t){E.l10ns.default=e(e({},E.l10ns.default),t)},E.setDefaults=function(t){E.defaultConfig=e(e({},E.defaultConfig),t)},E.parseDate=w({}),E.formatDate=y({}),E.compareDates=O,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return S(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=E),E}()},function(e,t,n){var r=n(2);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){var r=n(45),o=n(46),a=n(10),i=n(47);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}},function(e,t){e.exports=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(e,t,n){var r=n(49),o=n(50),a=n(10),i=n(51);e.exports=function(e){return r(e)||o(e)||a(e)||i()}},function(e,t,n){var r=n(11);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=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(e,t){e.exports=function(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){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,n){var r=n(58),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(14))},function(e,t,n){var r=n(13),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=e=>e instanceof HTMLElement;const i={BLUR:"blur",CHANGE:"change",INPUT:"input"},s={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},u="max",c="min",l="maxLength",f="minLength",d="pattern",p="required",h="validate";var m=e=>null==e;const g=e=>"object"==typeof e;var v=e=>!m(e)&&!Array.isArray(e)&&g(e)&&!(e instanceof Date),b=e=>/^\w*$/.test(e),y=e=>e.filter(Boolean),w=e=>y(e.replace(/["|']/g,"").replace(/\[/g,".").replace(/\]/g,"").split("."));function O(e,t,n){let r=-1;const o=b(t)?[t]:w(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=v(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var C=(e,t={})=>{for(const n in e)b(n)?t[n]=e[n]:O(t,n,e[n]);return t},x=e=>void 0===e,D=(e={},t,n)=>{const r=y(t.split(/[,[\].]+?/)).reduce((e,t)=>m(e)?e:e[t],e);return x(r)||r===e?x(e[t])?n:e[t]:r},k=(e,t)=>{for(const n in e)if(D(t,n)){const t=e[n];if(t){if(t.ref.focus&&x(t.ref.focus()))break;if(t.options){t.options[0].ref.focus();break}}}},S=(e,t)=>{a(e)&&e.removeEventListener&&(e.removeEventListener(i.INPUT,t),e.removeEventListener(i.CHANGE,t),e.removeEventListener(i.BLUR,t))};const E={isValid:!1,value:""};var M=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e,E):E,j=e=>[...e].filter(({selected:e})=>e).map(({value:e})=>e),_=e=>"radio"===e.type,P=e=>"file"===e.type,T=e=>"checkbox"===e.type,A=e=>"select-multiple"===e.type;const I={value:!1,isValid:!1},L={value:!0,isValid:!0};var N=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.ref.checked).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!x(r.value)?x(n)||""===n?L:{value:n,isValid:!0}:L:I}return I};function R(e,t,n,r){const o=e.current[t];if(o){const{ref:{value:e,disabled:t},ref:n,valueAsNumber:a,valueAsDate:i,setValueAs:s}=o;if(t&&r)return;return P(n)?n.files:_(n)?M(o.options).value:A(n)?j(n.options):T(n)?N(o.options).value:a?+e:i?n.valueAsDate:s?s(e):e}if(n)return D(n.current,t)}function F(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&F(e.parentNode)}var V=e=>v(e)&&!Object.keys(e).length,H=e=>"boolean"==typeof e;function U(e,t){const n=b(t)?[t]:w(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=x(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let a;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const i=n.slice(0,-(t+1)),s=i.length-1;for(t>0&&(a=e);++o<i.length;){const t=i[o];r=r?r[t]:e[t],s===o&&(v(r)&&V(r)||Array.isArray(r)&&!r.filter(e=>v(e)&&!V(e)||H(e)).length)&&(a?delete a[t]:delete e[t]),a=r}}return e}const W=(e,t)=>e&&e.ref===t;var z=e=>m(e)||!g(e);function B(e,t){if(z(e)||z(t))return t;for(const n in t){const r=e[n],o=t[n];try{e[n]=v(r)&&v(o)||Array.isArray(r)&&Array.isArray(o)?B(r,o):o}catch(e){}}return e}function Y(e,t,n,r,o){let a=-1;for(;++a<e.length;){for(const r in e[a])Array.isArray(e[a][r])?(!n[a]&&(n[a]={}),n[a][r]=[],Y(e[a][r],D(t[a]||{},r,[]),n[a][r],n[a],r)):D(t[a]||{},r)===e[a][r]?O(n[a]||{},r):n[a]=Object.assign(Object.assign({},n[a]),{[r]:!0});r&&!n.length&&delete r[o]}return n}var K=(e,t,n)=>B(Y(e,t,n),Y(t,e,n)),q=e=>"string"==typeof e,G=(e,t,n,r,o)=>{const a={};for(const t in e.current)(x(o)||(q(o)?t.startsWith(o):Array.isArray(o)&&o.find(e=>t.startsWith(e))))&&(a[t]=R(e,t,void 0,r));return n?C(a):B(t,C(a))};function $(e,t,n){if(z(e)||z(t)||e instanceof Date||t instanceof Date)return e===t;if(!Object(r.isValidElement)(e)){const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(const o of r){const r=e[o];if(!n||"ref"!==o){const e=t[o];if((v(r)||Array.isArray(r))&&(v(e)||Array.isArray(e))?!$(r,e,n):r!==e)return!1}}}return!0}var J=({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o})=>{const a=x(n),i=D(e,t);return a&&!!i||!a&&!$(i,n,!0)||a&&D(o,t)&&!D(r,t)},X=e=>e instanceof RegExp,Q=e=>v(e)&&!X(e)?e:{value:e,message:""},Z=e=>"function"==typeof e,ee=e=>q(e)||Object(r.isValidElement)(e);function te(e,t,n="validate"){if(ee(e)||H(e)&&!e)return{type:n,message:ee(e)?e:"",ref:t}}var ne=async(e,t,{ref:n,ref:{value:r},options:o,required:a,maxLength:i,minLength:s,min:g,max:b,pattern:y,validate:w},O)=>{const C=n.name,x={},D=_(n),k=T(n),S=D||k,E=""===r,j=((e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{}).bind(null,C,t,x),P=(e,t,r,o=l,a=f)=>{const i=e?t:r;x[C]=Object.assign({type:e?o:a,message:i,ref:n},j(e?o:a,i))};if(a&&(!D&&!k&&(E||m(r))||H(r)&&!r||k&&!N(o).isValid||D&&!M(o).isValid)){const{value:r,message:o}=ee(a)?{value:!!a,message:a}:Q(a);if(r&&(x[C]=Object.assign({type:p,message:o,ref:S?((e.current[C].options||[])[0]||{}).ref:n},j(p,o)),!t))return x}if(!(m(g)&&m(b)||""===r)){let e,o;const a=Q(b),i=Q(g);if(isNaN(r)){const t=n.valueAsDate||new Date(r);q(a.value)&&(e=t>new Date(a.value)),q(i.value)&&(o=t<new Date(i.value))}else{const t=n.valueAsNumber||parseFloat(r);m(a.value)||(e=t>a.value),m(i.value)||(o=t<i.value)}if((e||o)&&(P(!!e,a.message,i.message,u,c),!t))return x}if(q(r)&&!E&&(i||s)){const e=Q(i),n=Q(s),o=!m(e.value)&&r.length>e.value,a=!m(n.value)&&r.length<n.value;if((o||a)&&(P(o,e.message,n.message),!t))return x}if(y&&!E){const{value:e,message:o}=Q(y);if(X(e)&&!e.test(r)&&(x[C]=Object.assign({type:d,message:o,ref:n},j(d,o)),!t))return x}if(w){const r=R(e,C,O),a=S&&o?o[0].ref:n;if(Z(w)){const e=te(await w(r),a);if(e&&(x[C]=Object.assign(Object.assign({},e),j(h,e.message)),!t))return x}else if(v(w)){let e={};for(const[n,o]of Object.entries(w)){if(!V(e)&&!t)break;const i=te(await o(r),a,n);i&&(e=Object.assign(Object.assign({},i),j(n,i.message)),t&&(x[C]=e))}if(!V(e)&&(x[C]=Object.assign({ref:a},e),!t))return x}}return x};const re=(e,t,n=[])=>{for(const r in t){const o=e+(v(t)?`.${r}`:`[${r}]`);z(t[r])?n.push(o):re(o,t[r],n)}return n};var oe=(e,t,n,r,o)=>{let a=void 0;return n.add(t),V(e)||(a=D(e,t),(v(a)||Array.isArray(a))&&re(t,a).forEach(e=>n.add(e))),x(a)?o?r:D(r,t):a},ae=({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:o,isReValidateOnChange:a,isBlurEvent:i,isSubmitted:s,isOnAll:u})=>!u&&(!s&&n?!(r||i):(s?o:e)?!i:(s?!a:!t)||i),ie=e=>e.substring(0,e.indexOf("["));const se=(e,t)=>RegExp(`^${t}([|.)\\d+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e);var ue=(e,t)=>[...e].some(e=>se(t,e)),ce=e=>"select-one"===e.type;var le="undefined"!=typeof window&&"undefined"!=typeof document;function fe(e){let t;if(z(e)||le&&e instanceof File)return e;if(e instanceof Date)return t=new Date(e.getTime());if(e instanceof Set){t=new Set;for(const n of e)t.add(n);return t}if(e instanceof Map){t=new Map;for(const n of e.keys())t.set(n,fe(e.get(n)));return t}t=Array.isArray(e)?[]:{};for(const n in e)t[n]=fe(e[n]);return t}var de=e=>({isOnSubmit:!e||e===s.onSubmit,isOnBlur:e===s.onBlur,isOnChange:e===s.onChange,isOnAll:e===s.all,isOnTouch:e===s.onTouched}),pe=e=>_(e)||T(e);const he="undefined"==typeof window,me=le?"Proxy"in window:"undefined"!=typeof Proxy;function ge({mode:e=s.onSubmit,reValidateMode:t=s.onChange,resolver:n,context:o,defaultValues:u={},shouldFocusError:c=!0,shouldUnregister:l=!0,criteriaMode:f}={}){const d=Object(r.useRef)({}),p=Object(r.useRef)({}),h=Object(r.useRef)({}),g=Object(r.useRef)(new Set),w=Object(r.useRef)({}),E=Object(r.useRef)({}),M=Object(r.useRef)({}),j=Object(r.useRef)({}),I=Object(r.useRef)(u),L=Object(r.useRef)({}),N=Object(r.useRef)(!1),H=Object(r.useRef)(!1),B=Object(r.useRef)(),Y=Object(r.useRef)({}),X=Object(r.useRef)({}),Q=Object(r.useRef)(o),ee=Object(r.useRef)(n),te=Object(r.useRef)(new Set),se=Object(r.useRef)(de(e)),{isOnSubmit:ge,isOnTouch:ve}=se.current,be=f===s.all,[ye,we]=Object(r.useState)({isDirty:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!ge,errors:{}}),Oe=Object(r.useRef)({isDirty:!me,dirtyFields:!me,touched:!me||ve,isSubmitting:!me,isValid:!me}),Ce=Object(r.useRef)(ye),xe=Object(r.useRef)(),{isOnBlur:De,isOnChange:ke}=Object(r.useRef)(de(t)).current;Q.current=o,ee.current=n,Ce.current=ye,Y.current=l?{}:V(Y.current)?fe(u):Y.current;const Se=Object(r.useCallback)((e={})=>{N.current||(Ce.current=Object.assign(Object.assign({},Ce.current),e),we(Ce.current))},[]),Ee=Object(r.useCallback)((e,t,n=!1,r={},o)=>{let a=n||J({errors:Ce.current.errors,error:t,name:e,validFields:j.current,fieldsWithValidation:M.current});const i=D(Ce.current.errors,e);t?(U(j.current,e),a=a||!i||!$(i,t,!0),O(Ce.current.errors,e,t)):((D(M.current,e)||ee.current)&&(O(j.current,e,!0),a=a||i),U(Ce.current.errors,e)),(a&&!m(n)||!V(r))&&Se(Object.assign(Object.assign({},r),ee.current?{isValid:!!o}:{}))},[]),Me=Object(r.useCallback)((e,t)=>{const{ref:n,options:r}=d.current[e],o=le&&a(n)&&m(t)?"":t;_(n)?(r||[]).forEach(({ref:e})=>e.checked=e.value===o):P(n)&&!q(o)?n.files=o:A(n)?[...n.options].forEach(e=>e.selected=o.includes(e.value)):T(n)&&r?r.length>1?r.forEach(({ref:e})=>e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value):r[0].ref.checked=!!o:n.value=o},[]),je=Object(r.useCallback)((e,t)=>{if(Oe.current.isDirty){const n=Ve();return e&&t&&O(n,e,t),!$(n,V(I.current)?L.current:I.current)}return!1},[]),_e=Object(r.useCallback)((e,t=!0)=>{if(Oe.current.isDirty||Oe.current.dirtyFields){const n=!$(D(L.current,e),R(d,e,Y)),r=D(Ce.current.dirtyFields,e),o=Ce.current.isDirty;n?O(Ce.current.dirtyFields,e,!0):U(Ce.current.dirtyFields,e);const a={isDirty:je(),dirtyFields:Ce.current.dirtyFields},i=Oe.current.isDirty&&o!==a.isDirty||Oe.current.dirtyFields&&r!==D(Ce.current.dirtyFields,e);return i&&t&&Se(a),i?a:{}}return{}},[]),Pe=Object(r.useCallback)(async(e,t)=>{const n=(await ne(d,be,d.current[e],Y))[e];return Ee(e,n,t),x(n)},[Ee,be]),Te=Object(r.useCallback)(async e=>{const{errors:t}=await ee.current(Ve(),Q.current,be),n=Ce.current.isValid;if(Array.isArray(e)){const n=e.map(e=>{const n=D(t,e);return n?O(Ce.current.errors,e,n):U(Ce.current.errors,e),!n}).every(Boolean);return Se({isValid:V(t)}),n}{const r=D(t,e);return Ee(e,r,n!==V(t),{},V(t)),!r}},[Ee,be]),Ae=Object(r.useCallback)(async e=>{const t=e||Object.keys(d.current);if(ee.current)return Te(t);if(Array.isArray(t)){!e&&(Ce.current.errors={});const n=await Promise.all(t.map(async e=>await Pe(e,null)));return Se(),n.every(Boolean)}return await Pe(t)},[Te,Pe]),Ie=Object(r.useCallback)((e,t,{shouldDirty:n,shouldValidate:r})=>{const o={};O(o,e,t);for(const a of re(e,t))d.current[a]&&(Me(a,D(o,a)),n&&_e(a),r&&Ae(a))},[Ae,Me,_e]),Le=Object(r.useCallback)((e,t,n)=>{!z(t)&&O(Y.current,e,fe(t)),d.current[e]?(Me(e,t),n.shouldDirty&&_e(e),n.shouldValidate&&Ae(e)):z(t)||(Ie(e,t,n),te.current.has(e)&&(p.current[e]=t,X.current[e]({[e]:t}),(Oe.current.isDirty||Oe.current.dirtyFields)&&n.shouldDirty&&(O(Ce.current.dirtyFields,e,K(t,D(I.current,e,[]),D(Ce.current.dirtyFields,e,[]))),Se({isDirty:!$(Object.assign(Object.assign({},Ve()),{[e]:t}),I.current)})))),!l&&O(Y.current,e,t)},[_e,Me,Ie]),Ne=e=>H.current||g.current.has(e)||g.current.has((e.match(/\w+/)||[])[0]),Re=(e,t=!0)=>{if(!V(w.current))for(const n in w.current)e&&w.current[n].size&&!w.current[n].has(e)&&!w.current[n].has(ie(e))||(E.current[n](),t=!1);return t};function Fe(e){if(!l){let t=fe(e);for(const e of te.current)b(e)&&!t[e]&&(t=Object.assign(Object.assign({},t),{[e]:[]}));return t}return e}function Ve(e){if(q(e))return R(d,e,Y);if(Array.isArray(e)){const t={};for(const n of e)O(t,n,R(d,n,Y));return t}return Fe(G(d,fe(Y.current),l))}B.current=B.current?B.current:async({type:e,target:t})=>{let n=t.name;const r=d.current[n];let o,a;if(r){const s=e===i.BLUR,u=ae(Object.assign({isBlurEvent:s,isReValidateOnChange:ke,isReValidateOnBlur:De,isTouched:!!D(Ce.current.touched,n),isSubmitted:Ce.current.isSubmitted},se.current));let c=_e(n,!1),f=!V(c)||Ne(n);if(s&&!D(Ce.current.touched,n)&&Oe.current.touched&&(O(Ce.current.touched,n,!0),c=Object.assign(Object.assign({},c),{touched:Ce.current.touched})),!l&&T(t)&&O(Y.current,n,R(d,n)),u)return Re(n),(!V(c)||f&&V(c))&&Se(c);if(ee.current){const{errors:e}=await ee.current(Ve(),Q.current,be),r=Ce.current.isValid;if(o=D(e,n),T(t)&&!o&&ee.current){const t=ie(n),r=D(e,t,{});r.type&&r.message&&(o=r),t&&(r||D(Ce.current.errors,t))&&(n=t)}r!==(a=V(e))&&(f=!0)}else o=(await ne(d,be,r,Y))[n];Re(n),Ee(n,o,f,c,a)}};const He=Object(r.useCallback)(async(e={})=>{const{errors:t}=await ee.current(Object.assign(Object.assign({},Ve()),e),Q.current,be),n=V(t);Ce.current.isValid!==n&&Se({isValid:n})},[be]),Ue=Object(r.useCallback)((e,t)=>(function(e,t,n,r,o,a){const{ref:i,ref:{name:s}}=n,u=e.current[s];if(!o){const t=R(e,s,r);!x(t)&&O(r.current,s,t)}i.type&&u?_(i)||T(i)?Array.isArray(u.options)&&u.options.length?(y(u.options).forEach((e={},n)=>{(F(e.ref)&&W(e,e.ref)||a)&&(S(e.ref,t),U(u.options,`[${n}]`))}),u.options&&!y(u.options).length&&delete e.current[s]):delete e.current[s]:(F(i)&&W(u,i)||a)&&(S(i,t),delete e.current[s]):delete e.current[s]})(d,B.current,e,Y,l,t),[l]),We=Object(r.useCallback)(e=>{if(H.current)Se();else{for(const t of g.current)if(t.startsWith(e)){Se();break}Re(e)}},[]),ze=Object(r.useCallback)((e,t)=>{e&&(Ue(e,t),l&&!y(e.options||[]).length&&(U(L.current,e.ref.name),U(j.current,e.ref.name),U(M.current,e.ref.name),U(Ce.current.errors,e.ref.name),O(Ce.current.dirtyFields,e.ref.name,!0),Se({isDirty:je()}),Oe.current.isValid&&ee.current&&He(),We(e.ref.name)))},[He,Ue]);const Be=Object(r.useCallback)((e,t,n)=>{const r=n?w.current[n]:g.current;let o=G(d,fe(Y.current),l,!1,e);if(q(e)){if(te.current.has(e)){const t=D(h.current,e,[]);o=t.length&&t.length===y(D(o,e,[])).length?o:h.current}return oe(o,e,r,x(D(I.current,e))?t:D(I.current,e),!0)}const a=x(t)?I.current:t;return Array.isArray(e)?e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:oe(o,t,r,a)}),{}):(H.current=x(n),C(!V(o)&&o||a))},[]);function Ye(e,t={}){const{name:n,type:r,value:o}=e,s=Object.assign({ref:e},t),u=d.current,c=pe(e),l=ue(te.current,n),f=t=>le&&(!a(e)||t===e);let p,h=u[n],m=!0;if(h&&(c?Array.isArray(h.options)&&y(h.options).find(e=>o===e.ref.value&&f(e.ref)):f(h.ref)))return void(u[n]=Object.assign(Object.assign({},h),t));h=r?c?Object.assign({options:[...y(h&&h.options||[]),{ref:e}],ref:{type:r,name:n}},t):Object.assign({},s):s,u[n]=h;const g=x(D(Y.current,n));if(V(I.current)&&g||(p=D(g?I.current:Y.current,n),(m=x(p))||l||Me(n,p)),V(t)||(O(M.current,n,!0),!ge&&Oe.current.isValid&&ne(d,be,h,Y).then(e=>{const t=Ce.current.isValid;V(e)?O(j.current,n,!0):U(j.current,n),t!==V(e)&&Se()})),!(L.current[n]||l&&m)){const e=R(d,n,Y);O(L.current,n,m?v(e)?Object.assign({},e):e:p),!l&&U(Ce.current.dirtyFields,n)}r&&function({ref:e},t,n){a(e)&&n&&(e.addEventListener(t?i.CHANGE:i.INPUT,n),e.addEventListener(i.BLUR,n))}(c&&h.options?h.options[h.options.length-1]:h,c||ce(e),B.current)}const Ke=Object(r.useCallback)((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},o=Fe(G(d,fe(Y.current),l,!0));Oe.current.isSubmitting&&Se({isSubmitting:!0});try{if(ee.current){const{errors:e,values:t}=await ee.current(o,Q.current,be);Ce.current.errors=r=e,o=t}else for(const e of Object.values(d.current))if(e){const{name:t}=e.ref,n=await ne(d,be,e,Y);n[t]?(O(r,t,n[t]),U(j.current,t)):D(M.current,t)&&(U(Ce.current.errors,t),O(j.current,t,!0))}V(r)&&Object.keys(Ce.current.errors).every(e=>e in d.current)?(Se({errors:{},isSubmitting:!0}),await e(o,n)):(Ce.current.errors=Object.assign(Object.assign({},Ce.current.errors),r),t&&await t(Ce.current.errors,n),c&&k(d.current,Ce.current.errors))}finally{Ce.current.isSubmitting=!1,Se({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V(Ce.current.errors),submitCount:Ce.current.submitCount+1})}},[c,be]);Object(r.useEffect)(()=>{n&&Oe.current.isValid&&He(),xe.current=xe.current||!le?xe.current:function(e,t){const n=new MutationObserver(()=>{for(const n of Object.values(e.current))if(n&&n.options)for(const e of n.options)e&&e.ref&&F(e.ref)&&t(n);else n&&F(n.ref)&&t(n)});return n.observe(window.document,{childList:!0,subtree:!0}),n}(d,ze)},[ze,I.current]),Object(r.useEffect)(()=>()=>{xe.current&&xe.current.disconnect(),N.current=!0,Object.values(d.current).forEach(e=>ze(e,!0))},[]),!n&&Oe.current.isValid&&(ye.isValid=$(j.current,M.current)&&V(Ce.current.errors));const qe={trigger:Ae,setValue:Object(r.useCallback)(function(e,t,n){Le(e,t,n||{}),Ne(e)&&Se(),Re(e)},[Le,Ae]),getValues:Object(r.useCallback)(Ve,[]),register:Object(r.useCallback)(function(e,t){if(!he)if(q(e))Ye({name:e},t);else{if(!(v(e)&&"name"in e))return t=>t&&Ye(t,e);Ye(e,t)}},[I.current]),unregister:Object(r.useCallback)(function(e){for(const t of Array.isArray(e)?e:[e])ze(d.current[t],!0)},[]),formState:me?new Proxy(ye,{get:(e,t)=>{if(t in e)return Oe.current[t]=!0,e[t]}}):ye},Ge=Object(r.useMemo)(()=>Object.assign({isFormDirty:je,updateWatchedValue:We,shouldUnregister:l,updateFormState:Se,removeFieldEventListener:Ue,watchInternal:Be,mode:se.current,reValidateMode:{isReValidateOnBlur:De,isReValidateOnChange:ke},validateResolver:n?He:void 0,fieldsRef:d,resetFieldArrayFunctionRef:X,useWatchFieldsRef:w,useWatchRenderFunctionsRef:E,fieldArrayDefaultValuesRef:p,validFieldsRef:j,fieldsWithValidationRef:M,fieldArrayNamesRef:te,readFormStateRef:Oe,formStateRef:Ce,defaultValuesRef:I,shallowFieldsStateRef:Y,fieldArrayValuesRef:h},qe),[I.current,We,l,Ue,Be]);return Object.assign({watch:function(e,t){return Be(e,t)},control:Ge,handleSubmit:Ke,reset:Object(r.useCallback)((e,t={})=>{if(le)for(const e of Object.values(d.current))if(e){const{ref:t,options:n}=e,r=pe(t)&&Array.isArray(n)?n[0].ref:t;if(a(r))try{r.closest("form").reset();break}catch(e){}}d.current={},I.current=Object.assign({},e||I.current),e&&Re(""),Object.values(X.current).forEach(e=>Z(e)&&e()),Y.current=l?{}:fe(e||I.current),(({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:o,submitCount:a,dirtyFields:i})=>{o||(j.current={},M.current={}),L.current={},p.current={},g.current=new Set,H.current=!1,Se({submitCount:a?Ce.current.submitCount:0,isDirty:!!t&&Ce.current.isDirty,isSubmitted:!!n&&Ce.current.isSubmitted,isValid:!!o&&Ce.current.isValid,dirtyFields:i?Ce.current.dirtyFields:{},touched:r?Ce.current.touched:{},errors:e?Ce.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)},[]),clearErrors:Object(r.useCallback)(function(e){e&&(Array.isArray(e)?e:[e]).forEach(e=>d.current[e]&&b(e)?delete Ce.current.errors[e]:U(Ce.current.errors,e)),Se({errors:e?Ce.current.errors:{}})},[]),setError:Object(r.useCallback)(function(e,t){const n=(d.current[e]||{}).ref;O(Ce.current.errors,e,Object.assign(Object.assign({},t),{ref:n})),Se({isValid:!1}),t.shouldFocus&&n&&n.focus&&n.focus()},[]),errors:ye.errors},qe)}const ve=Object(r.createContext)(null);ve.displayName="RHFContext";const be=()=>Object(r.useContext)(ve);var ye=function(e){var t=e.as,n=e.errors,o=e.name,a=e.message,i=e.render,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,["as","errors","name","message","render"]),u=be(),c=D(n||u.errors,o);if(!c)return null;var l=c.message,f=c.types,d=Object.assign({},s,{children:l||a});return Object(r.isValidElement)(t)?Object(r.cloneElement)(t,d):i?i({message:l||a,messages:f}):Object(r.createElement)(t||r.Fragment,d)},we=(n(43),n(1)),Oe=n.n(we);n(44),n(48),n(52);function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(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 De(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),e}n(53);function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(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&&ke(e,t)}function Ee(e){return(Ee="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 Me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function je(e,t){return!t||"object"!==Ee(t)&&"function"!=typeof t?Me(e):t}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pe(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}var Te=function(e,t){var n;void 0===t&&(t=Pe);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)?r:(r=e.apply(this,i),a=!0,n=this,o=i,r)}};var Ae=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();var Ie=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<a;++s)for(var c=0;c<i;++c)t[u++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",s=2*t+3*n+4*a;if(944===s){e=i.indexOf(":",9)+1;var u=i.substring(e,i.length-1).trim();return u=i.substring(0,e).trim()+u+";",1===j||2===j&&o(u,1)?"-webkit-"+u+u:u}if(0===j||2===j&&!o(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(k,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(u=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+u+i;case 1005:return d.test(i)?i.replace(f,":-webkit-")+i.replace(f,":-moz-")+i:i;case 1e3:switch(t=(u=i.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=i.replace(y,"tb");break;case 232:u=i.replace(y,"tb-rl");break;case 220:u=i.replace(y,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+u+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(u=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(u,"-webkit-"+u)+";"+i.replace(u,"-ms-"+u+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return u=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+u+"-ms-flex-"+u+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(C,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(C,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===D.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(u,"-webkit-"+u)+i.replace(u,"-moz-"+u.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),A(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,s,c,l){for(var f,d=0,p=t;d<T;++d)switch(f=P[d].call(u,e,p,n,r,o,a,i,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!=typeof e?j=1:(j=2,A=e):j=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<T){var u=i(-1,n,s,s,E,S,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var f=function e(n,s,u,f,d){for(var p,h,m,y,O,C=0,x=0,D=0,k=0,P=0,A=0,L=m=p=0,N=0,R=0,F=0,V=0,H=u.length,U=H-1,W="",z="",B="",Y="";N<H;){if(h=u.charCodeAt(N),N===U&&0!==x+k+D+C&&(0!==x&&(h=47===x?10:47),k=D=C=0,H++,U++),0===x+k+D+C){if(N===U&&(0<R&&(W=W.replace(l,"")),0<W.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(N)}h=59}switch(h){case 123:for(p=(W=W.trim()).charCodeAt(0),m=1,V=++N;N<H;){switch(h=u.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(N+1)){case 42:case 47:e:{for(L=N+1;L<U;++L)switch(u.charCodeAt(L)){case 47:if(42===h&&42===u.charCodeAt(L-1)&&N+2!==L){N=L+1;break e}break;case 10:if(47===h){N=L+1;break e}}N=L}}break;case 91:h++;case 40:h++;case 34:case 39:for(;N++<U&&u.charCodeAt(N)!==h;);}if(0===m)break;N++}switch(m=u.substring(V,N),0===p&&(p=(W=W.replace(c,"").trim()).charCodeAt(0)),p){case 64:switch(0<R&&(W=W.replace(l,"")),h=W.charCodeAt(1)){case 100:case 109:case 115:case 45:R=s;break;default:R=_}if(V=(m=e(s,R,m,h,d+1)).length,0<T&&(O=i(3,m,R=t(_,W,F),s,E,S,V,h,d,f),W=R.join(""),void 0!==O&&0===(V=(m=O.trim()).length)&&(h=0,m="")),0<V)switch(h){case 115:W=W.replace(w,a);case 100:case 109:case 45:m=W+"{"+m+"}";break;case 107:m=(W=W.replace(g,"$1 $2"))+"{"+m+"}",m=1===j||2===j&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=W+m,112===f&&(z+=m,m="")}else m="";break;default:m=e(s,t(s,W,F),m,f,d+1)}B+=m,m=F=R=L=p=0,W="",h=u.charCodeAt(++N);break;case 125:case 59:if(1<(V=(W=(0<R?W.replace(l,""):W).trim()).length))switch(0===L&&(p=W.charCodeAt(0),45===p||96<p&&123>p)&&(V=(W=W.replace(" ",":")).length),0<T&&void 0!==(O=i(1,W,s,n,E,S,z.length,f,d,f))&&0===(V=(W=O.trim()).length)&&(W="\0\0"),p=W.charCodeAt(0),h=W.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){Y+=W+u.charAt(N);break}default:58!==W.charCodeAt(V-1)&&(z+=r(W,p,h,W.charCodeAt(2)))}F=R=L=p=0,W="",h=u.charCodeAt(++N)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==f&&0<W.length&&(R=1,W+="\0"),0<T*I&&i(0,W,s,n,E,S,z.length,f,d,f),S=1,E++;break;case 59:case 125:if(0===x+k+D+C){S++;break}default:switch(S++,y=u.charAt(N),h){case 9:case 32:if(0===k+C+x)switch(P){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===k+x+C&&(R=F=1,y="\f"+y);break;case 108:if(0===k+x+C+M&&0<L)switch(N-L){case 2:112===P&&58===u.charCodeAt(N-3)&&(M=P);case 8:111===A&&(M=A)}break;case 58:0===k+x+C&&(L=N);break;case 44:0===x+D+k+C&&(R=1,y+="\r");break;case 34:case 39:0===x&&(k=k===h?0:0===k?h:k);break;case 91:0===k+x+D&&C++;break;case 93:0===k+x+D&&C--;break;case 41:0===k+x+C&&D--;break;case 40:if(0===k+x+C){if(0===p)switch(2*P+3*A){case 533:break;default:p=1}D++}break;case 64:0===x+D+k+C+L+m&&(m=1);break;case 42:case 47:if(!(0<k+C+D))switch(x){case 0:switch(2*h+3*u.charCodeAt(N+1)){case 235:x=47;break;case 220:V=N,x=42}break;case 42:47===h&&42===P&&V+2!==N&&(33===u.charCodeAt(V+2)&&(z+=u.substring(V,N+1)),y="",x=0)}}0===x&&(W+=y)}A=P,P=h,N++}if(0<(V=z.length)){if(R=s,0<T&&void 0!==(O=i(2,z,R,n,E,S,V,f,d,f))&&0===(z=O).length)return Y+z+B;if(z=R.join(",")+"{"+z+"}",0!=j*M){switch(2!==j||o(z,2)||(M=0),M){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(v,"::-webkit-input-$1")+z.replace(v,"::-moz-$1")+z.replace(v,":-ms-input-$1")+z}M=0}}return Y+z+B}(_,s,n,0,0);return 0<T&&void 0!==(u=i(-2,f,s,s,E,S,f.length,0,0,0))&&(f=u),M=0,S=E=1,f}var c=/^\0+/g,l=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,C=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,D=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,S=1,E=1,M=0,j=1,_=[],P=[],T=0,A=null,I=0;return u.use=function e(t){switch(t){case void 0:case null:T=P.length=0;break;default:if("function"==typeof t)P[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},u.set=s,void 0!==e&&s(e),u};function Le(e){e&&Ne.current.insert(e+"}")}var Ne={current:null},Re=function(e,t,n,r,o,a,i,s,u,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ne.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return Ne.current.insert(n[0]+t),"";default:return t+(0===c?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Le)}},Fe=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Ie(t);var o,a={};o=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach(function(e){a[e]=!0}),e.parentNode!==o&&o.appendChild(e)}),r.use(e.stylisPlugins)(Re),i=function(e,t,n,o){var a=t.name;Ne.current=n,r(e,t.styles),o&&(u.inserted[a]=!0)};var u={key:n,sheet:new Ae({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return u};n(54);function Ve(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "}),r}var He=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var Ue=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},We={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ze=/[A-Z]|^ms/g,Be=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ye=function(e){return 45===e.charCodeAt(1)},Ke=function(e){return null!=e&&"boolean"!=typeof e},qe=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return Ye(e)?e:e.replace(ze,"-$&").toLowerCase()}),Ge=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Be,function(e,t,n){return Je={name:t,styles:n,next:Je},t})}return 1===We[e]||Ye(e)||"number"!=typeof t||0===t?t:t+"px"};function $e(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Je={name:n.name,styles:n.styles,next:Je},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Je={name:o.name,styles:o.styles,next:Je},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$e(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Ke(i)&&(r+=qe(a)+":"+Ge(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=$e(e,t,i,!1);switch(a){case"animation":case"animationName":r+=qe(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)Ke(i[u])&&(r+=qe(a)+":"+Ge(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=Je,i=n(e);return Je=a,$e(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Je,Xe=/label:\s*([^\s;\n{]+)\s*;/g;var Qe=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Je=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=$e(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=$e(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);Xe.lastIndex=0;for(var s,u="";null!==(s=Xe.exec(o));)u+="-"+s[1];return{name:Ue(o)+u,styles:o,next:Je}},Ze=Object.prototype.hasOwnProperty,et=Object(r.createContext)("undefined"!=typeof HTMLElement?Fe():null),tt=Object(r.createContext)({}),nt=(et.Provider,function(e){var t=function(t,n){return Object(r.createElement)(et.Consumer,null,function(r){return e(t,r,n)})};return Object(r.forwardRef)(t)}),rt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ot=function(e,t,n,o){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var i=t[rt],s=[a],u="";"string"==typeof t.className?u=Ve(e.registered,s,t.className):null!=t.className&&(u=t.className+" ");var c=Qe(s);He(e,c,"string"==typeof i);u+=e.key+"-"+c.name;var l={};for(var f in t)Ze.call(t,f)&&"css"!==f&&f!==rt&&(l[f]=t[f]);return l.ref=o,l.className=u,Object(r.createElement)(i,l)},at=nt(function(e,t,n){return"function"==typeof e.css?Object(r.createElement)(tt.Consumer,null,function(r){return ot(t,e,r,n)}):ot(t,e,null,n)});var it=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qe(t)},st=function(e,t){var n=arguments;if(null==t||!Ze.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=at,a[1]=function(e,t){var n={};for(var r in t)Ze.call(t,r)&&(n[r]=t[r]);return n[rt]=e,n}(e,t);for(var i=2;i<o;i++)a[i]=n[i];return r.createElement.apply(null,a)},ut=nt(function(e,t){var n=e.styles;if("function"==typeof n)return Object(r.createElement)(tt.Consumer,null,function(e){var o=Qe([n(e)]);return Object(r.createElement)(ct,{serialized:o,cache:t})});var o=Qe([n]);return Object(r.createElement)(ct,{serialized:o,cache:t})}),ct=function(e){var t,n;function r(t,n,r){return e.call(this,t,n,r)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.sheet=new Ae({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},o.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},o.insertStyles=function(){if(void 0!==this.props.serialized.next&&He(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},o.componentWillUnmount=function(){this.sheet.flush()},o.render=function(){return null},r}(r.Component);var lt=nt(function(e,t){return Object(r.createElement)(tt.Consumer,null,function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Qe(n,t.registered);return He(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=Ve(e,r,n);return r.length<2?n:o+t(r)}(t.registered,r,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o}(n))},theme:n},a=e.children(o);return!0,a})}),ft=n(5);n(55);function dt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pt(){return(pt=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 ht(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 mt(e,t){if(e){if("string"==typeof e)return ht(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)?ht(e,t):void 0}}function gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||mt(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 vt(e){return function(e){if(Array.isArray(e))return ht(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||mt(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 bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=n(8),wt=n.n(yt),Ot=function(){};function Ct(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}var xt=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ee(e)&&null!==e?[e]:[]};function Dt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function kt(e){return Dt(e)?window.pageYOffset:e.scrollTop}function St(e,t){Dt(e)?window.scrollTo(0,t):e.scrollTop=t}function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ot,o=kt(e),a=t-o,i=10,s=0;!function t(){var u,c=a*((u=(u=s+=i)/n-1)*u*u+1)+o;St(e,c),s<n?window.requestAnimationFrame(t):r(e)}()}function Mt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pt(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}function Tt(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,h=f.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=kt(u),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=m-y,O=g-h,C=w+v,x=l-v-h,D=d-g+v+b,k=v+h-y;switch(o){case"auto":case"bottom":if(O>=p)return{placement:"bottom",maxHeight:t};if(x>=p&&!i)return a&&Et(u,D,160),{placement:"bottom",maxHeight:t};if(!i&&x>=r||i&&O>=r)return a&&Et(u,D,160),{placement:"bottom",maxHeight:i?O-b:x-b};if("auto"===o||i){var S=t,E=i?w:C;return E>=r&&(S=Math.min(E-b-s.controlHeight,t)),{placement:"top",maxHeight:S}}if("bottom"===o)return St(u,D),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(C>=p&&!i)return a&&Et(u,k,160),{placement:"top",maxHeight:t};if(!i&&C>=r||i&&w>=r){var M=t;return(!i&&C>=r||i&&w>=r)&&(M=i?w-y:C-y),a&&Et(u,k,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var At=function(e){return"auto"===e?"bottom":e},It=Object(r.createContext)({getPortalPlacement:null}),Lt=function(e){Se(n,r["Component"]);var t=Pt(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme;if(t){var c="fixed"===i,l=Tt({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:s&&!c,isFixedPosition:c,theme:u}),f=e.context.getPortalPlacement;f&&f(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||At(t);return _t(_t({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return De(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}();Lt.contextType=It;var Nt=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Rt=Nt,Ft=Nt,Vt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Vt.defaultProps={children:"No options"};var Ht=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Ht.defaultProps={children:"Loading..."};var Ut=function(e){Se(n,r["Component"]);var t=Pt(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==At(e.props.menuPlacement)&&e.setState({placement:n})},e}return De(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,a=e.menuPosition,i=e.getStyles,s="fixed"===a;if(!t&&!s||!r)return null;var u=this.state.placement||At(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),l=s?0:window.pageYOffset,f=c[u]+l,d=st("div",{css:i("menuPortal",{offset:f,position:a,rect:c})},n);return st(It.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(ft.createPortal)(d,t):d)}}]),n}(),Wt=Array.isArray,zt=Object.keys,Bt=Object.prototype.hasOwnProperty;function Yt(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==Ee(t)&&"object"==Ee(n)){var r,o,a,i=Wt(t),s=Wt(n);if(i&&s){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=s)return!1;var u=t instanceof Date,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==n.getTime();var l=t instanceof RegExp,f=n instanceof RegExp;if(l!=f)return!1;if(l&&f)return t.toString()==n.toString();var d=zt(t);if((o=d.length)!==zt(n).length)return!1;for(r=o;0!=r--;)if(!Bt.call(n,d[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(a=d[r])&&t.$$typeof||e(t[a],n[a])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function Kt(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Kt=function(){return n},n}var qt={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Gt=function(e){var t=e.size,n=dt(e,["size"]);return st("svg",pt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qt},n))},$t=function(e){return st(Gt,pt({size:20},e),st("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Jt=function(e){return st(Gt,pt({size:20},e),st("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Xt=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Qt=Xt,Zt=Xt,en=function(){var e=it.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Kt()),tn=function(e){var t=e.delay,n=e.offset;return st("span",{css:it({animation:"".concat(en," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},nn=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return st("div",pt({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),st(tn,{delay:0,offset:a}),st(tn,{delay:160,offset:!0}),st(tn,{delay:320,offset:!a}))};nn.defaultProps={size:4};function rn(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 on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function an(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 sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var un=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function cn(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 ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fn=function(e){var t=e.children,n=e.innerProps;return st("div",n,t)},dn=fn,pn=fn;var hn=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,s=e.innerProps,u=e.isDisabled,c=e.removeProps,l=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return st(lt,null,function(r){var h=r.css,m=r.cx;return st(f,{data:a,innerProps:ln(ln({},s),{},{className:m(h(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))}),selectProps:l},st(d,{data:a,innerProps:{className:m(h(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:l},t),st(p,{data:a,innerProps:ln({className:m(h(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:l}))})};hn.defaultProps={cropWithEllipsis:!0};function mn(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 gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}for(var vn={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||st($t,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,s=e.innerRef,u=e.innerProps,c=e.menuIsOpen;return st("div",pt({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":c},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||st(Jt,null))},DownChevron:Jt,CrossIcon:$t,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,s=e.label,u=e.theme,c=e.selectProps;return st("div",{css:o("group",e),className:r({group:!0},n)},st(a,pt({},i,{selectProps:c,theme:u,getStyles:o,cx:r}),s),st("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,dt(e,["className","cx","getStyles","theme","selectProps"]));return st("div",pt({css:r("groupHeading",on({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return st("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return st("span",pt({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,s=e.theme,u=(e.selectProps,dt(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return st("div",{css:r("input",sn({theme:s},u))},st(wt.a,pt({className:n({input:!0},t),inputRef:o,inputStyle:un(a),disabled:i},u)))},LoadingIndicator:nn,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return st("div",pt({css:o("menu",e),className:r({menu:!0},n)},i,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,i=e.innerRef;return st("div",{css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:i},t)},MenuPortal:Ut,LoadingMessage:Ht,NoOptionsMessage:Vt,MultiValue:hn,MultiValueContainer:dn,MultiValueLabel:pn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return st("div",n,t||st($t,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,s=e.isSelected,u=e.innerRef,c=e.innerProps;return st("div",pt({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":s},n),ref:u},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,s=e.isRtl;return st("div",pt({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return st("div",pt({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return st("div",{css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}},bn=function(e){return gn(gn({},vn),e.components)},yn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],wn=new RegExp("["+yn.map(function(e){return e.letters}).join("")+"]","g"),On={},Cn=0;Cn<yn.length;Cn++)for(var xn=yn[Cn],Dn=0;Dn<xn.letters.length;Dn++)On[xn.letters[Dn]]=xn.base;var kn=function(e){return e.replace(wn,function(e){return On[e]})};function Sn(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}var En=function(e){return e.replace(/^\s+|\s+$/g,"")},Mn=function(e){return"".concat(e.label," ").concat(e.value)};var jn={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},_n=function(e){return st("span",pt({css:jn},e))};function Pn(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,dt(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return st("input",pt({ref:t},n,{css:it({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function Tn(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var An=function(e){Se(n,r["Component"]);var t=Tn(n);function n(){return Ce(this,n),t.apply(this,arguments)}return De(n,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(ft.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(),In=["boxSizing","height","overflow","paddingRight","position"],Ln={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Nn(e){e.preventDefault()}function Rn(e){e.stopPropagation()}function Fn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Vn(){return"ontouchstart"in window||navigator.maxTouchPoints}function Hn(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var Un=!(!window.document||!window.document.createElement),Wn=0,zn=function(e){Se(n,r["Component"]);var t=Hn(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return De(n,[{key:"componentDidMount",value:function(){var e=this;if(Un){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&In.forEach(function(t){var n=a&&a[t];e.originalStyles[t]=n}),n&&Wn<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,u=window.innerWidth-s+i||0;Object.keys(Ln).forEach(function(e){var t=Ln[e];a&&(a[e]=t)}),a&&(a.paddingRight="".concat(u,"px"))}o&&Vn()&&(o.addEventListener("touchmove",Nn,this.listenerOptions),r&&(r.addEventListener("touchstart",Fn,this.listenerOptions),r.addEventListener("touchmove",Rn,this.listenerOptions))),Wn+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Un){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;Wn=Math.max(Wn-1,0),n&&Wn<1&&In.forEach(function(t){var n=e.originalStyles[t];a&&(a[t]=n)}),o&&Vn()&&(o.removeEventListener("touchmove",Nn,this.listenerOptions),r&&(r.removeEventListener("touchstart",Fn,this.listenerOptions),r.removeEventListener("touchmove",Rn,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}();function Bn(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}zn.defaultProps={accountForScrollbars:!0};var Yn={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Kn=function(e){Se(n,r["PureComponent"]);var t=Bn(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return De(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?st("div",null,st("div",{onClick:this.blurSelectInput,css:Yn}),st(An,{innerRef:this.getScrollTarget},t),r?st(zn,{touchScrollTarget:r}):null):t}}]),n}();function qn(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var Gn=function(e){Se(n,r["Component"]);var t=qn(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,u=e.scrollTarget,c=u.scrollTop,l=u.scrollHeight,f=u.clientHeight,d=e.scrollTarget,p=n>0,h=l-f-c,m=!1;h>n&&e.isBottom&&(a&&a(t),e.isBottom=!1),p&&e.isTop&&(s&&s(t),e.isTop=!1),p&&n>h?(o&&!e.isBottom&&o(t),d.scrollTop=l,m=!0,e.isBottom=!0):!p&&-n>c&&(i&&!e.isTop&&i(t),d.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return De(n,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return o.a.createElement(An,{innerRef:this.getScrollTarget},this.props.children)}}]),n}();function $n(e){var t=e.isEnabled,n=void 0===t||t,r=dt(e,["isEnabled"]);return n?o.a.createElement(Gn,r):r.children}var Jn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Xn=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},Qn=function(e){return!!e.isDisabled};var Zn={clearIndicator:Zt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Qt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Ft,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return bt(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),bt(t,"backgroundColor",i.neutral0),bt(t,"borderRadius",o),bt(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),bt(t,"marginBottom",a.menuGutter),bt(t,"marginTop",a.menuGutter),bt(t,"position","absolute"),bt(t,"width","100%"),bt(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Rt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var er={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function tr(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 nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rr(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var or,ar={backspaceRemovesValue:!0,blurInputOnSelect:Mt(),captureMenuScroll:!Mt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:Mn,trim:!0,matchFrom:"any"},or),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,u=i?En(t):t,c=i?En(a(e)):a(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=kn(u),c=kn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Qn,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},ir=1,sr=function(e){Se(n,r["Component"]);var t=rr(n);function n(e){var r;Ce(this,n),(r=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},r.blockOptionHover=!1,r.isComposing=!1,r.clearFocusValueOnUpdate=!1,r.commonProps=void 0,r.components=void 0,r.hasGroups=!1,r.initialTouchX=0,r.initialTouchY=0,r.inputIsHiddenAfterUpdate=void 0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.cacheComponents=function(e){r.components=bn({components:e})},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;o(e,nr(nr({},t),{},{name:a}))},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,a=o.closeMenuOnSelect,i=o.isMulti;r.onInputChange("",{action:"set-value"}),a&&(r.inputIsHiddenAfterUpdate=!i,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=r.state.selectValue;if(o)if(r.isOptionSelected(e,a)){var i=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==i}),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(vt(a),[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.state.selectValue,n=r.getOptionValue(e),o=t.filter(function(e){return r.getOptionValue(e)!==n});r.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){var e=r.props.isMulti;r.onChange(e?[]:null,{action:"clear"})},r.popValue=function(){var e=r.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:t?r.getOptionLabel(t):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},r.getOptionLabel=function(e){return r.props.getOptionLabel(e)},r.getOptionValue=function(e){return r.props.getOptionValue(e)},r.getStyles=function(e,t){var n=Zn[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getActiveDescendentId=function(){var e=r.props.menuIsOpen,t=r.state,n=t.menuOptions,o=t.focusedOption;if(o&&e){var a=n.focusable.indexOf(o),i=n.render[a];return i&&i.key}},r.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;r.setState({ariaLiveSelection:Xn(t,n)})},r.announceAriaLiveContext=function(e){var t=e.event,n=e.context;r.setState({ariaLiveContext:Jn(t,nr(nr({},n),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.inputIsHiddenAfterUpdate=!n,r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Dt(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,o=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:o}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){var e=r.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,u=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!f||!h||d&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(i)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.buildMenuOptions=function(e,t){var n=e.inputValue,o=void 0===n?"":n,a=e.options,i=function(e,n){var a=r.isOptionDisabled(e,t),i=r.isOptionSelected(e,t),s=r.getOptionLabel(e),u=r.getOptionValue(e);if(!(r.shouldHideSelectedOptions()&&i||!r.filterOption({label:s,value:u,data:e},o))){var c=a?void 0:function(){return r.onOptionHover(e)},l=a?void 0:function(){return r.selectOption(e)},f="".concat(r.getElementId("option"),"-").concat(n);return{innerProps:{id:f,onClick:l,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:f,label:s,type:"option",value:u}}};return a.reduce(function(e,t,n){if(t.options){r.hasGroups||(r.hasGroups=!0);var o=t.options.map(function(t,r){var o=i(t,"".concat(n,"-").concat(r));return o&&e.focusable.push(t),o}).filter(Boolean);if(o.length){var a="".concat(r.getElementId("group"),"-").concat(n);e.render.push({type:"group",key:a,data:t,options:o})}}else{var s=i(t,"".concat(n));s&&(e.render.push(s),e.focusable.push(t))}return e},{render:[],focusable:[]})};var o=e.value;r.cacheComponents=Te(r.cacheComponents,Yt).bind(Me(r)),r.cacheComponents(e.components),r.instancePrefix="react-select-"+(r.props.instanceId||++ir);var a=xt(o);r.buildMenuOptions=Te(r.buildMenuOptions,function(e,t){var n=gt(e,2),r=n[0],o=n[1],a=gt(t,2),i=a[0];return Yt(o,a[1])&&Yt(r.inputValue,i.inputValue)&&Yt(r.options,i.options)}).bind(Me(r));var i=e.menuIsOpen?r.buildMenuOptions(e,a):{render:[],focusable:[]};return r.state.menuOptions=i,r.state.selectValue=a,r}return De(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=xt(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},u=this.getNextFocusedValue(i),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:c,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,s=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&u&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?St(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&St(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildMenuOptions(this.props,r),i=this.props.isMulti,s="first"===e?0:a.focusable.length-1;if(!i){var u=a.focusable.indexOf(r[0]);u>-1&&(s=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[s]},function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var s=a.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=a.length-1,c=-1;if(a.length){switch(e){case"previous":c=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s<u&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var a=0,i=o.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=i>0?i-1:o.length-1:"down"===e?a=(i+1)%o.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>o.length-1&&(a=o.length-1):"last"===e&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Qn(o[a])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(er):nr(nr({},er),this.props.theme):er}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,a=o.classNamePrefix,i=o.isMulti,s=o.isRtl,u=o.options,c=this.state.selectValue,l=this.hasValue();return{cx:function(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Ct(e,o)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}.bind(null,a),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:l,isMulti:i,isRtl:s,options:u,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===r})}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,s=a.menuIsOpen,u=a.inputValue,c=a.screenReaderStatus,l=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:c({count:this.countOptions()})});return"".concat(l," ").concat(f," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,i=e.tabIndex,s=e.form,u=this.components.Input,c=this.state.inputIsHidden,l=r||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return o.a.createElement(Pn,pt({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ot,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:s,value:""},f));var d=this.commonProps,p=d.cx,h=d.theme,m=d.selectProps;return o.a.createElement(u,pt({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:i,form:s,theme:h,type:"text",value:a},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,c=this.commonProps,l=this.props,f=l.controlShouldRenderValue,d=l.isDisabled,p=l.isMulti,h=l.inputValue,m=l.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!f)return h?null:o.a.createElement(u,pt({},c,{key:"placeholder",isDisabled:d,isFocused:y}),m);if(p)return v.map(function(t,s){var u=t===b;return o.a.createElement(n,pt({},c,{components:{Container:r,Label:a,Remove:i},isFocused:u,isDisabled:d,key:e.getOptionValue(t),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var w=v[0];return o.a.createElement(s,pt({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,pt({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!e||!a)return null;return o.a.createElement(e,pt({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return o.a.createElement(n,pt({},r,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,pt({},t,{innerProps:a,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,i=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,c=t.NoOptionsMessage,l=t.Option,f=this.commonProps,d=this.state,p=d.focusedOption,h=d.menuOptions,m=this.props,g=m.captureMenuScroll,v=m.inputValue,b=m.isLoading,y=m.loadingMessage,w=m.minMenuHeight,O=m.maxMenuHeight,C=m.menuIsOpen,x=m.menuPlacement,D=m.menuPosition,k=m.menuPortalTarget,S=m.menuShouldBlockScroll,E=m.menuShouldScrollIntoView,M=m.noOptionsMessage,j=m.onMenuScrollToTop,_=m.onMenuScrollToBottom;if(!C)return null;var P,T=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,o.a.createElement(l,pt({},f,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=h.render.map(function(t){if("group"===t.type){t.type;var a=dt(t,["type"]),i="".concat(t.key,"-heading");return o.a.createElement(n,pt({},f,a,{Heading:r,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return T(e)}))}if("option"===t.type)return T(t)});else if(b){var A=y({inputValue:v});if(null===A)return null;P=o.a.createElement(u,f,A)}else{var I=M({inputValue:v});if(null===I)return null;P=o.a.createElement(c,f,I)}var L={minMenuHeight:w,maxMenuHeight:O,menuPlacement:x,menuPosition:D,menuShouldScrollIntoView:E},N=o.a.createElement(Lt,pt({},f,L),function(t){var n=t.ref,r=t.placerProps,s=r.placement,u=r.maxHeight;return o.a.createElement(a,pt({},f,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),o.a.createElement($n,{isEnabled:g,onTopArrive:j,onBottomArrive:_},o.a.createElement(Kn,{isEnabled:S},o.a.createElement(i,pt({},f,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:u}),P))))});return k||"fixed"===D?o.a.createElement(s,pt({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:D}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,i=t.name,s=this.state.selectValue;if(i&&!r){if(a){if(n){var u=s.map(function(t){return e.getOptionValue(t)}).join(n);return o.a.createElement("input",{name:i,type:"hidden",value:u})}var c=s.length>0?s.map(function(t,n){return o.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):o.a.createElement("input",{name:i,type:"hidden"});return o.a.createElement("div",null,c)}var l=s[0]?this.getOptionValue(s[0]):"";return o.a.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?o.a.createElement(_n,{"aria-live":"polite"},o.a.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),o.a.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,u=i.id,c=i.isDisabled,l=i.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.a.createElement(r,pt({},d,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),o.a.createElement(t,pt({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:l}),o.a.createElement(a,pt({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.a.createElement(n,pt({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}();sr.defaultProps=ar;n(56);function ur(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var cr={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};var lr,fr,dr,pr=(lr=sr,dr=fr=function(e){Se(n,r.Component);var t=ur(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return De(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,dt(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return o.a.createElement(lr,pt({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(),fr.defaultProps=cr,dr),hr=n(16),mr=n.n(hr),gr=n(17),vr=n.n(gr),br=n(2),yr=n.n(br),wr=["mousedown","touchstart"];var Or=n(24);n(23);var Cr=function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e},xr=("undefined"!=typeof window&&void 0!==window.document&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,{name:"kpm0v2",styles:"position:absolute;display:block;width:16px;height:8px;margin:0 5px;&:before,&:after{position:absolute;display:block;content:'';border-color:transparent;border-style:solid;}"}),Dr=function(e){e.placement;var t=yr()(e,["placement"]);return st(r.Fragment,null,st(ut,{styles:kr}),st("div",Oe()({},t,{"data-arrow":"true",css:xr})))},kr={name:"rvo98s",styles:"[x-placement^='top']{margin-bottom:8px;[data-arrow]{bottom:-9px;}[data-arrow]:before{bottom:0;border-width:8px 8px 0;border-top-color:rgba(0,0,0,0.25);}[data-arrow]:after{bottom:1px;border-width:8px 8px 0;border-top-color:#fff;}}[x-placement^='right']{margin-left:8px;[data-arrow]{left:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{left:0;border-width:8px 8px 8px 0;border-right-color:rgba(0,0,0,0.25);}[data-arrow]:after{left:1px;border-width:8px 8px 8px 0;border-right-color:#fff;}}[x-placement^='bottom']{margin-top:8px;[data-arrow]{top:-9px;}[data-arrow]:before{top:0;border-width:0 8px 8px 8px;border-bottom-color:rgba(0,0,0,0.25);}[data-arrow]:after{top:1px;border-width:0 8px 8px 8px;border-bottom-color:#fff;}}[x-placement^='left']{margin-right:8px;[data-arrow]{right:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{right:0;border-width:8px 0 8px 8px;border-left-color:rgba(0,0,0,0.25);}[data-arrow]:after{right:1px;border-width:8px 0 8px 8px;border-left-color:#fff;}}"},Sr=function(e){var t,n,a,i=e.header,s=e.body,u=e.children,c=e.placement,l=e.trigger,f=e.styles,d=yr()(e,["header","body","children","placement","trigger","styles"]),p=o.a.Children.only(u),h=Object(r.useRef)(null),m=Object(r.useState)(!1),g=m[0],v=m[1],b=Object(r.useState)(!1),y=b[0],w=b[1],O=Object(r.useState)({popoverId:null,referenceId:null,arrowId:null}),C=O[0],x=O[1],D=C.popoverId,k=C.referenceId,S=C.arrowId;t=h,n=function(e){e.target.id===k||document.getElementById(k).contains(e.target)||v(!1)},a=Object(r.useRef)(),Object(r.useEffect)(function(){a.current=n},[n]),Object(r.useEffect)(function(){var e=function(e){t.current&&!t.current.contains(e.target)&&a.current(event)};return wr.forEach(function(t){document.addEventListener(t,e,{passive:!0})}),function(){wr.forEach(function(t){document.removeEventListener(t,e,{passive:!0})})}},[t,n]),Object(r.useEffect)(function(){if(!D)return x({popoverId:Cr("popover"),referenceId:Cr("reference"),arrowId:Cr("arrow")});var e=document.getElementById(D),t=document.getElementById(k),n=document.getElementById(S);e&&t&&n&&(new Or.a(t,e,{placement:c,modifiers:{arrow:{element:n}}}),w(g))},[g]);var E={content:[Er.content,f.content],header:[Er.header,f.header],body:[Er.body,f.body]};return st(r.Fragment,null,D?st("div",Oe()({},d,{id:D,ref:h,css:E.content,style:y?{display:"block"}:{}}),st(Dr,{id:S}),i?st("div",{css:E.header},i):null,st("div",{css:E.body},s)):null,o.a.cloneElement(p,Oe()({},p.props,{id:k,onClick:function(){"click"===l&&v(!g)}})))};Sr.defaultProps={placement:"right",trigger:"click",styles:{}};var Er={content:{name:"106ha8s",styles:"display:none;max-width:300px;background-color:#fff;border-radius:4px;border:1px solid rgba(0,0,0,0.2);z-index:1060;"},header:{name:"12koz1z",styles:"padding:8px 12px;background-color:#f7f7f7;font-size:16px;font-weight:bold;border-top-left-radius:4px;border-top-right-radius:4px;"},body:{name:"k7kym8",styles:"padding:8px 12px;font-size:14px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;"}},Mr=Sr;function jr(e){var t=e.touches;if(t&&t.length){var n=t[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}}var _r={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Pr={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Tr={position:"relative",display:"block",content:'""',width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",cursor:"pointer",boxSizing:"border-box"},Ar={x:{track:Oe()({},_r,{width:200,height:10}),active:Oe()({},Pr,{top:0,height:"100%"}),thumb:Oe()({},Tr)},y:{track:Oe()({},_r,{width:10,height:200}),active:Oe()({},Pr,{left:0,width:"100%"}),thumb:Oe()({},Tr)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:Oe()({},Tr)},disabled:{opacity:.5}},Ir=function(e){var t=e.disabled,n=e.axis,o=e.x,a=e.y,i=e.xmin,s=e.xmax,u=e.ymin,c=e.ymax,l=e.xstep,f=e.ystep,d=e.onChange,p=e.onDragStart,h=e.onDragEnd,m=e.onClick,g=e.xreverse,v=e.yreverse,b=e.styles,y=yr()(e,["disabled","axis","x","y","xmin","xmax","ymin","ymax","xstep","ystep","onChange","onDragStart","onDragEnd","onClick","xreverse","yreverse","styles"]),w=Object(r.useRef)(null),O=Object(r.useRef)(null),C=Object(r.useRef)({}),x=Object(r.useRef)({});function D(e){var t=e.top,r=e.left;if(d){var o=w.current.getBoundingClientRect(),a=o.width,p=o.height,h=0,m=0;r<0&&(r=0),r>a&&(r=a),t<0&&(t=0),t>p&&(t=p),"x"!==n&&"xy"!==n||(h=r/a*(s-i)),"y"!==n&&"xy"!==n||(m=t/p*(c-u));var b=(0!==h?parseInt(h/l,10)*l:0)+i,y=(0!==m?parseInt(m/f,10)*f:0)+u;d({x:g?s-b+i:b,y:v?c-y+u:y})}}function k(e){if(!t){e.preventDefault();var n=O.current,r=jr(e);C.current={x:n.offsetLeft,y:n.offsetTop},x.current={x:r.x,y:r.y},document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",E),document.addEventListener("touchcancel",E),p&&p(e)}}function S(e){t||(e.preventDefault(),D(function(e){var t=jr(e);return{left:t.x+C.current.x-x.current.x,top:t.y+C.current.y-x.current.y}}(e)))}function E(e){t||(e.preventDefault(),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",S,{passive:!1}),document.removeEventListener("touchend",E),document.removeEventListener("touchcancel",E),h&&h(e))}var M,j,_=((M=(a-u)/(c-u)*100)>100&&(M=100),M<0&&(M=0),"x"===n&&(M=0),(j=(o-i)/(s-i)*100)>100&&(j=100),j<0&&(j=0),"y"===n&&(j=0),{top:M,left:j}),P={};"x"===n&&(P.width=_.left+"%"),"y"===n&&(P.height=_.top+"%"),g&&(P.left=100-_.left+"%"),v&&(P.top=100-_.top+"%");var T={position:"absolute",transform:"translate(-50%, -50%)",left:g?100-_.left+"%":_.left+"%",top:v?100-_.top+"%":_.top+"%"};"x"===n?T.top="50%":"y"===n&&(T.left="50%");var A={track:Oe()({},Ar[n].track,{},b.track),active:Oe()({},Ar[n].active,{},b.active),thumb:Oe()({},Ar[n].thumb,{},b.thumb),disabled:Oe()({},Ar.disabled,{},b.disabled)};return st("div",Oe()({},y,{ref:w,css:it([A.track,t&&A.disabled],";label:Slider;"),onClick:function(e){if(!t){var n=jr(e),r=w.current.getBoundingClientRect();D({left:n.x-r.left,top:n.y-r.top}),m&&m(e)}}}),st("div",{css:A.active,style:P}),st("div",{ref:O,style:T,onTouchStart:k,onMouseDown:k,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},st("div",{css:A.thumb})))};Ir.defaultProps={disabled:!1,axis:"x",x:50,xmin:0,xmax:100,y:50,ymin:0,ymax:100,xstep:1,ystep:1,xreverse:!1,yreverse:!1,styles:{}};var Lr=Ir,Nr=n(21),Rr=n.n(Nr),Fr=n(4),Vr=n.n(Fr),Hr=n(22),Ur=n.n(Hr),Wr=38,zr=40,Br="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),Yr=function(e){var t=e.step,n=e.min,o=e.max,a=e.value,i=e.onChange,s=e.onKeyDown,u=e.enableMobileNumericKeyboard,c=e.component,l=yr()(e,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),f=Object(r.useState)(a),d=f[0],p=f[1];Object(r.useEffect)(function(){p(a)},[a]);var h={value:d,onChange:function(e){var t=function(e){if(Vr()(e))return e;if(Ur()(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!Rr()(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){e.keyCode===Wr?i&&i(qr("+",a,o,n,t)):e.keyCode===zr&&i&&i(qr("-",a,o,n,t)),s&&s(e)},onWheel:function(e){e.target.blur()}};return st(c,u?Oe()({},l,h,{css:Kr,type:"number",inputMode:"numeric",pattern:Br?"[0-9]*":"",step:t,min:n,max:o}):Oe()({},l,h,{css:Kr,type:"text"}))};Yr.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=yr()(e,["onChange"]);return st("input",Oe()({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var Kr={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function qr(e,t,n,r,o){if(""===t)return Vr()(r)?r:"";if(t="+"===e?t+o:t-o,Vr()(n)&&t>n)return n;if(Vr()(r)&&t<r)return r;var a=(o.toString().split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}var Gr=Yr;function $r(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}}function Jr(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,i=o*(1-Math.abs(a%2-1)),s=n-o;return r=a>=0&&a<1?[o,i,0]:a>=1&&a<2?[i,o,0]:a>=2&&a<3?[0,o,i]:e>=3&&a<4?[0,i,o]:e>=4&&a<5?[i,0,o]:e>=5&&a<=6?[o,0,i]:[0,0,0],{r:Math.round(255*(r[0]+s)),g:Math.round(255*(r[1]+s)),b:Math.round(255*(r[2]+s))}}function Xr(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Qr(e,t,n){return"#"+[Xr(e),Xr(t),Xr(n)].join("")}function Zr(e,t,n){var r,o=Math.max(e,t,n),a=o-Math.min(e,t,n);return r=0===a?0:e===o?(t-n)/a%6:t===o?(n-e)/a+2:(e-t)/a+4,(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:a/o)),v:Math.round(o/255*100)}}function eo(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}var to=13,no={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},ro={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},oo=function(e){var t=e.color,n=e.onChange,r=t.r,o=t.g,a=t.b,i=t.a,s=t.h,u=t.s,c=t.v;function l(e){n&&n(Oe()({},e,{rgba:eo(e.r,e.g,e.b,e.a)}))}function f(e,n,r){var o=Jr(e,n,r),a=o.r,i=o.g,s=o.b,u=Qr(a,i,s);l(Oe()({},t,{h:e,s:n,v:r,r:a,g:i,b:s,hex:u}))}function d(e,n,r){var o=Qr(e,n,r),a=Zr(e,n,r),i=a.h,s=a.s,u=a.v;l(Oe()({},t,{r:e,g:n,b:r,h:i,s:s,v:u,hex:o}))}function p(e){l(Oe()({},t,{a:e}))}var h=eo(r,o,a,i),m="linear-gradient(to right, "+eo(r,o,a,0)+", "+eo(r,o,a,100)+")",g=function(e,t,n){var r=Jr(e,t,n);return Qr(r.r,r.g,r.b)}(s,100,100);return st("div",{css:ao.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},st("div",{css:ao.selector,style:{backgroundColor:g}},st("div",{css:ao.gradientWhite}),st("div",{css:ao.gradientDark}),st(Lr,{axis:"xy",x:u,xmax:100,y:100-c,ymax:100,onChange:function(e){var t=e.x,n=e.y;return f(s,t,100-n)},styles:{track:{width:"100%",height:"100%",background:"none"},thumb:{width:12,height:12,backgroundColor:"rgba(0,0,0,0)",border:"2px solid #fff",borderRadius:"50%"}}})),st("div",{css:no},st("div",{css:ro},st(Lr,{axis:"x",x:s,xmax:359,onChange:function(e){return f(e.x,u,c)},styles:{track:{width:"100%",height:12,borderRadius:0,background:"linear-gradient(to left, #FF0000 0%, #FF0099 10%, #CD00FF 20%, #3200FF 30%, #0066FF 40%, #00FFFD 50%, #00FF66 60%, #35FF00 70%, #CDFF00 80%, #FF9900 90%, #FF0000 100%)"},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}}),st(Lr,{axis:"x",x:i,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:m},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return p(e.x)}})),st("div",{style:{backgroundColor:h,width:30,height:30}})),st("div",{css:ao.inputs},st("div",{css:ao.input},st("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return n=e.target.value,r=$r(n),o=r.r,a=r.g,i=r.b,s=Zr(o,a,i),u=s.h,c=s.s,f=s.v,void l(Oe()({},t,{r:o,g:a,b:i,h:u,s:c,v:f,hex:n}));var n,r,o,a,i,s,u,c,f},onKeyUp:function(e){if(e.keyCode===to){var n=e.target.value.trim(),r=$r(n),o=r.r,a=r.g,s=r.b;l(Oe()({},t,{r:o,g:a,b:s,a:i,hex:n}))}}}),st("div",null,"Hex")),st("div",{css:ao.input},st(Gr,{min:0,max:255,value:r,onChange:function(e){return d(e,o,a)}}),st("div",null,"R")),st("div",{css:ao.input},st(Gr,{min:0,max:255,value:o,onChange:function(e){return d(r,e,a)}}),st("div",null,"G")),st("div",{css:ao.input},st(Gr,{min:0,max:255,value:a,onChange:function(e){return d(r,o,e)}}),st("div",null,"B")),st("div",{css:ao.input},st(Gr,{min:0,max:100,value:i,onChange:function(e){return p(e)}}),st("div",null,"A"))))};oo.defaultProps={initialValue:"#5e72e4"};var ao={picker:{fontFamily:"'Helvetica Neue',Helvetica,Arial,sans-serif",width:230,"*":{userSelect:"none"}},selector:{position:"relative",width:230,height:230},gradientWhite:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%)"},gradientDark:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, transparent 0%, #000000 100%)"},inputs:{display:"flex",justifyContent:"space-between",width:"100%"},input:{textAlign:"center",fontSize:13,fontWeight:"normal",color:"#000",input:{width:30,textAlign:"center"},div:{marginTop:4}}};function io(e){var t,n=(e=e.toLowerCase()).substr(0,7),r=$r(n),o=r.r,a=r.g,i=r.b,s=Zr(o,a,i),u=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return Oe()({},s,{r:o,g:a,b:i,a:u,hex:n,rgba:eo(o,a,i,u)})}var so={name:"j4ndc3",styles:"position:relative;display:inline-block;box-sizing:border-box;width:49px;height:24px;padding:4px;background-color:#ffffff;border:1px solid #bebebe;border-radius:3px;user-select:none;"},uo={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},co=function(e){var t=e.initialValue,n=e.onChange,o=e.placement,a=yr()(e,["initialValue","onChange","placement"]),i=Object(r.useState)(io(t)),s=i[0],u=i[1];function c(e){n&&(u(e),n(e))}return Object(r.useEffect)(function(){c(io(t))},[t]),st(Mr,{placement:o,body:st(oo,{color:s,onChange:c})},st("span",Oe()({},a,{css:so}),st("span",{css:uo,style:{backgroundColor:s.rgba}})))};co.defaultProps={placement:"bottom"};var lo=co,fo=n(18),po=n.n(fo),ho=n(19),mo=n.n(ho),go=n(20),vo=n.n(go);function bo(e){return(bo="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 yo,wo=function(e){var t=function(){this.parser=new i},n=t.prototype;function r(e,t){for(var n=[],r=t,o=e.length;r<o;r++)n.push(e[r]);return n}var o=function(){var e=function e(t,n,r){this.prefix=(t||"")+":",this.level=n||e.NONE,this.out=r||window.console&&window.console.log.bind(window.console),this.warn=this.log.bind(this,e.WARN),this.info=this.log.bind(this,e.INFO),this.debug=this.log.bind(this,e.DEBUG)},t=e.prototype;return e.DEBUG=1,e.INFO=2,e.WARN=3,e.NONE=4,t.log=function(e,t){if(e>=this.level&&"function"==typeof this.out){var n=r(arguments,2);n=[this.prefix+t].concat(n),this.out.apply(this,n)}},e}(),a=function(){var e=function(e){this.obj=e||{}},t=e.prototype;return t.get=function(e){var t=this.obj[e];return void 0===t&&this.parent&&(t=this.parent.get(e)),t},t.set=function(e,t){return this.obj[e]=t,this.get(e)},e}(),i=function(){var e=new o("PARSER",o.NONE),t=new o("EMIT",o.NONE),n=function(){};function i(e){var t={};return e.forEach(function(e,n){t[e]=n}),t}function s(n){if(void 0!==n)switch(n.id){case"Expr":case"Tuple":return s(n.expr);case"OpenTuple":return n.expr?u(n.expr):u(n.left,n.right);case"Assign":return n.expr?s(n.expr):(c=n.left,l=s(l=n.right),function(e){return e.set(c.value,l.apply(null,arguments))});case"Sums":case"Prod":case"Power":return n.expr?s(n.expr):function(t,n,o){n=s(n),o=s(o);var a=void 0;function i(e){var t=r(arguments,1);return e(n.apply(this,t),o.apply(this,t))}switch(t.id){case"Plus":return i.bind(a,function(e,t){return+e+t});case"Minus":return i.bind(a,function(e,t){return e-t});case"Mul":return i.bind(a,function(e,t){return e*t});case"Div":return i.bind(a,function(e,t){return e/t});case"Mod":return i.bind(a,function(e,t){return e%t});case"Pow":return i.bind(a,function(e,t){return Math.pow(e,t)})}return e.warn("No emitter for %o",t),function(){}}(n.op,n.left,n.right);case"Unary":return n.expr?s(n.expr):function(t,n){switch(n=s(n),t.id){case"Plus":return function(){return n.apply(this,arguments)};case"Minus":return function(){return-n.apply(this,arguments)}}return e.warn("No emitter for %o",t),function(){}}(n.op,n.right);case"Call":return o=n.token,a=n.args,i=function e(t){if(void 0!==t)switch(t.id){case"Expr":case"Tuple":return e(t.expr);case"OpenTuple":return!0}return!1}(a),a=s(a),function(e){var t=e.get(o.value);if("function"==typeof t){var n=a.apply(null,arguments);return i||(n=[n]),t.apply(null,n)}e.set("runtimeError",{text:'Call to undefined "'+o.value+'"'})};case"Parens":return s(n.expr);case"Value":return s(n.token);case"Number":return function(){return n.value};case"Var":return function(e){return e.get(n.value)};default:t.warn("No emitter for %o",n)}var o,a,i,c,l;return function(){}}function u(e,t){if(void 0===e)return function(){return[]};var n="OpenTuple"===e.id;return e=s(e),void 0===t?function(){return[e.apply(null,arguments)]}:(t=s(t),n?function(){var n=e.apply(null,arguments);return n.push(t.apply(null,arguments)),n}:function(){return[e.apply(null,arguments),t.apply(null,arguments)]})}n.prototype.parse=function(n){this.error=void 0;var r=function(e){var t,n,r=[],o=0;for(;void 0!==(t=S(e,o));)t.error?n=t.error:"Space"!==t.id&&r.push(t),o=t.end;return{tokens:r,error:n}}(n),o=function(t){for(var n={tokens:t,pos:0,stack:[],scope:{}},r=0,o=t.length,a=!1;!a&&r<=o;){var i=t[r],s=n.stack[n.stack.length-1],u=(s?s.id:"(empty)")+":"+(i?i.id:"(eof)"),l=p[u];switch(l){case f:e.debug("shift %s %o",u,m(n.stack)),n=g(n,i),r++;break;case d:e.debug("reduce %s %o",u,m(n.stack)),n=b(n,i);break;case c:e.debug("done %s %o",u,m(n.stack)),a=!0;break;default:if(void 0!==i){var h={pos:i.pos,text:'Unexpected token "'+i.string+'"'};n.error=h,e.warn("%s at %d (%s)",h.text,h.pos,u)}else{var h={text:"Unexpected EOF",pos:n.pos+1};n.error=h,e.warn("%s (%s)",h.text,u)}a=!0}}if(!n.error&&n.stack.length>1){var v=y(n,1),w=v.pos||0,O="LParen"===v.id,h={pos:w,text:O?"Open paren":"Invalid expression"};n.error=h,e.warn("%s at %d (eof)",h.text,h.pos)}return{root:n.stack.pop(),vars:Object.keys(n.scope),error:n.error}}(r.tokens);t.debug("AST: %o",o);var u,h,v=(u=s(o.root),function(e){try{return u.apply(null,arguments)}catch(t){e.set("runtimeError",{text:""+t})}});return h={},{error:r.error||o.error,args:i(o.vars),eval:function(){return v(function(e,t,n){if(1===n.length&&"object"===bo(n[0])){var r=n[0];t.forEach(function(t){e[t]=r[t]})}else for(var o=0,i=t.length,s=n.length;o<i&&o<s;o++)e[t[o]]=n[o];delete e.runtimeError;var u=new a(e);return u.parent=l,u}(h,o.vars,arguments))},set scope(e){h=e||{}},get scope(){return h}}};var c=0,f=1,d=2,p={};function h(e,t,n){for(var r=0,o=t.length;r<o;r++)for(var a=0,i=n.length;a<i;a++){var s=t[r]+":"+n[a];p[s]=e}}function m(t){return e.level>=o.DEBUG?t.map(function(e){return e.id}):""}function g(e,t){return v(e,0,t)}function v(e,t,n){var r=e.stack.slice(0,e.stack.length-t),o=e.pos;return n&&(r.push(n),void 0!==n.pos&&(o=n.pos)),{tokens:e.tokens,pos:o,stack:r,scope:e.scope,error:e.error}}function b(t,n){switch(y(t,0).id){case"Tuple":return function(e){var t=y(e,0);return v(e,1,{id:"Expr",expr:t})}(t);case"OpenTuple":case"Comma":return w(t,n);case"Assign":case"Sums":return function(e,t){var n=y(e,1),r=y(e,0);if(void 0!==r&&"Sums"===r.id)return O(e,["Eq"],"Assign");if(void 0!==n&&"Eq"===n.id)return O(e,["Eq"],"Assign");return w(e,t)}(t,n);case"Prod":return function(e){return O(e,["Plus","Minus"],"Sums")}(t);case"Power":case"Unary":return function(e){var t=y(e,1),n=y(e,0);if(void 0!==n&&"Unary"===n.id){var r=x(e,!1);if(r)return r;var o={id:"Power",expr:n};return v(e,1,o)}if(void 0!==n&&"Power"===n.id&&void 0!==t&&"Pow"===t.id)return O(e,["Pow"],"Power");return function(e){return O(e,["Mul","Div","Mod"],"Prod")}(e)}(t);case"Call":case"Parens":return x(t);case"Value":case"RParen":return function(t){var n=y(t,3),r=y(t,2),o=y(t,1),a=y(t,0),i={id:"Parens"};if("RParen"===a.id){if(void 0!==o&&"LParen"===o.id)return void 0!==r&&"Var"===r.id?v(t,3,i={id:"Call",token:r}):v(t,2,i={id:"OpenTuple"});if(void 0===r||"LParen"!==r.id){var s={pos:a.pos,text:"Unmatched paren"};return t.error=s,e.warn("%s at %d",s.text,s.pos),v(t,1)}return void 0!==n&&"Var"===n.id?v(t,4,i={id:"Call",token:n,args:o}):(i.expr=o,v(t,3,i))}return i.expr=a,v(t,1,i)}(t);case"Number":case"Var":return function(e){var t=y(e,0);e=v(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t);return e}(t)}return t}function y(e,t){return void 0===t&&(t=0),e.stack[e.stack.length-(t+1)]}function w(e,t){var n=y(e,2),r=y(e,1),o=y(e,0),a={id:"OpenTuple"};return"Comma"===o.id?v(e,2,r):void 0!==r&&"Comma"===r.id?(a.op=r,a.left=n,a.right=o,v(e,3,a)):void 0!==t&&"Comma"===t.id?(a.expr=o,v(e,1,a)):v(e,1,a={id:"Tuple",expr:o})}function O(e,t,n){var r=y(e,2),o=y(e,1),a=y(e,0),i={id:n};return void 0!==o&&-1!==t.indexOf(o.id)?(i.op=o,i.left=r,i.right=a,v(e,3,i)):(i.expr=a,v(e,1,i))}h(f,["(empty)","Plus","Minus","Mul","Div","Mod","Pow","LParen","Eq","Comma"],["Plus","Minus","LParen","Number","Var"]),h(f,["Var"],["LParen","Eq"]),h(f,["Sums"],["Plus","Minus"]),h(f,["Prod"],["Mul","Div","Mod"]),h(f,["Unary"],["Pow"]),h(f,["OpenTuple","Tuple"],["Comma"]),h(f,["LParen","Expr"],["RParen"]),h(d,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign"],["Comma"]),h(d,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod"],["Plus","Minus"]),h(d,["Number","Var","Value","RParen","Parens","Call","Unary","Power"],["Mul","Div","Mod"]),h(d,["Number","Var","Value","RParen","Parens","Call"],["Pow"]),h(d,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign","Comma","OpenTuple","Tuple"],["RParen","(eof)"]),h(c,["(empty)","Expr"],["(eof)"]);var C=["Pow","Mul","Div","Mod","Plus","Minus","Eq","Comma","LParen"];function x(e,t){var n=y(e,2),r=y(e,1),o=y(e,0),a={id:"Unary"};return void 0===r||"Minus"!==r.id&&"Plus"!==r.id||void 0!==n&&-1===C.indexOf(n.id)?!1!==t?(a.expr=o,v(e,1,a)):void 0:(a.op=r,a.right=o,v(e,2,a))}var D=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,k=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function S(t,n){var r=t.slice(n);if(0!==r.length){var o=D.exec(r);if(null===o){var a=function(e,t){for(var n=e.length;t<n;t++){var r=e.slice(t);if(0===r.length)break;var o=D.exec(r);if(null!==o)break}return t}(t,n),i={pos:n,text:'Unexpected symbol "'+t.slice(n,a)+'"'};return e.warn("%s at %d",i.text,i.pos),{error:i,end:a}}for(var s=0,u=k.length;s<u;s++){var c=o[s+1];if(void 0!==c)return{id:k[s],string:c,pos:n,end:n+c.length,value:M(k[s],c)}}}}var E=Number.parseFloat||parseFloat;function M(e,t){switch(e){case"Number":return E(t);default:return t}}return n}(),s=function(e,t){return Array.isArray(e)?function(e,t){return e.length?e.reduce(function(e,n){return"decrease_first_value"===t?Number(n)-Number(e):Number(e)+Number(n)}):NaN}(e,t):Number(e)};var u,c,l=((c=new a).set("pi",Math.PI),c.set("e",Math.E),c.set("inf",Number.POSITIVE_INFINITY),u=Math,Object.getOwnPropertyNames(Math).forEach(function(e){c.set(e,u[e])}),c);return n.parse=function(e,t,n){e=(e=e.replace(/\[|\]|-/g,"__")).replace(/\s+(__|–)\s+/g," - "),t=void 0===t?{}:t;var r=/\[|\]|-/g,o={};for(var a in t)o[a.replace(r,"__")]=s(t[a],n);var i=this.parser.parse(e);return i.scope.numberFormat=function(e){if(!Number.isNaN(e))return(new Intl.NumberFormat).format(e)},i.scope.floor=function(e){return Math.floor(e)},i.scope.round=function(e){return Math.round(e)},i.scope.float=function(e,t){return t=void 0===t?0:t,e.toFixed(t)},i.scope.ceil=function(e){return Math.ceil(e)},i.eval(o)},t}(),Oo=function(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t;case"<":return e<t;case"<=":return e<=t;case">":return e>t;case">=":return e>=t;case"==":return e==t;case"!=":return e!=t;case"not-empty":return void 0!==e&&String(e).length>0;case"empty":return void 0!==e&&0==String(e).length;default:return!1}},Co="";yo=jQuery,Element.prototype.getElSettings=function(e){if("settings"in this.dataset)return JSON.parse(this.dataset.settings.replace(/(&quot\;)/g,'"'))[e]||""},Co=function(e,t){var n=e.find(".mf-multistep-container");if(n.length){var r=[];n.find(".elementor-top-section").each(function(e){var t=this.getElSettings("metform_multistep_settings_title")||"Step-"+yo(this).data("id"),o=this.getElSettings("metform_multistep_settings_icon"),a="",i="";o&&(a="svg"===o.library?'<img class="metform-step-svg-icon" src="'+o.value.url+'" alt="SVG Icon" />':o.value.length?'<i class="metform-step-icon '+o.value+'"></i>':""),0===e?(i="active",n.hasClass("mf_slide_direction_vertical")&&yo(this).parents(".elementor-section-wrap").css("height",yo(this).height())):1===e&&(i="next"),t&&r.push("<li class='metform-step-item "+i+"' id='metform-step-item-"+yo(this).attr("data-id")+"' data-value='"+yo(this).attr("data-id")+"'>"+a+'<span class="metform-step-title">'+t+"</span></li>")}),r&&(n.find(".metform-form-content > .elementor").before("<ul class='metform-steps'>"+r.join("")+"</ul>"),n.find(".elementor-top-section:first-of-type").addClass("active"),n.find(".mf-progress-step-bar span").attr("data-portion",100/r.length).css("width",100/r.length+"%"))}n.find(".elementor-top-section .metform-btn").attr("type","button"),n.find(".mf-input").on("keypress",function(e){13!==e.which||yo(this).hasClass("mf-textarea")||n.find(".metform-step-item.next").trigger("click")}),n.find(".elementor-top-section").on("keydown",function(e){var t=yo(this),n=yo(":focus");if(9==e.which)if(t.hasClass("active")){var r=t.find(":focusable"),o=r.index(n),a=r.eq(o),i=r.eq(r.length-1);a.is(i)&&(a.focus(),e.preventDefault())}else n.focus(),e.preventDefault()}),n.find(".metform-steps").on("click",".metform-step-item",function(){var e,r=this,o=yo(this).parents(".mf-form-wrapper").eq(0),a=o.find(".elementor-top-section.active .mf-input"),i=(yo("body").hasClass("rtl")?100:-100)*yo(this).index()+"%",s=(o.find(".mf-progress-step-bar").attr("data-total"),yo(this.nextElementSibling).hasClass("active")),u=[];a.each(function(){var e=yo(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)}),e=function(e){e&&(o.find(".elementor-top-section.active .metform-btn").attr("type","button"),(yo(r).hasClass("prev")||yo(r).hasClass("next"))&&(yo(r).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),o.find('.elementor-top-section[data-id="'+yo(r).data("value")+'"]').addClass("active").siblings().removeClass("active"),n.hasClass("mf_slide_direction_vertical")?(o.find(".elementor-section-wrap .elementor-top-section").css({transform:"translateY("+i+")"}),o.find(".elementor-section-wrap").css("height","calc("+o.find('.elementor-top-section[data-id="'+yo(r).data("value")+'"]').height()+"px)")):o.find(".elementor-section-wrap").css({transform:"translateX("+i+")"})),o.find(".mf-progress-step-bar span").css("width",(yo(r).index()+1)*o.find(".mf-progress-step-bar span").attr("data-portion")+"%"),o.find(".elementor-top-section.active").find(".metform-submit-btn").length&&setTimeout(function(){o.find(".elementor-top-section.active").find(".metform-submit-btn").attr("type","submit")},0))},s?e(!0):t.doValidate(u).then(e)})};var xo=function(){document.querySelectorAll(".mf-input-map-location").forEach(function(e){if("undefined"!=typeof google){var t=new google.maps.places.Autocomplete(e,{types:["geocode"]});google.maps.event.addListener(t,"place_changed",function(){e.dispatchEvent(new Event("input",{bubbles:!0}))})}})};function Do(e){return(Do="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 ko(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||Eo(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 So(e){return function(e){if(Array.isArray(e))return Mo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Eo(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 Eo(e,t){if(e){if("string"==typeof e)return Mo(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)?Mo(e,t):void 0}}function Mo(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 jo(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){return(_o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Po(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Ao(e);if(t){var o=Ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Do(t)||"function"==typeof t))return t;return To(e)}(this,n)}}function To(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ao(e){return(Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Io(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 Lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach(function(t){No(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.mfMapLocation=xo;var Ro=new vo.a({tolerance:200}),Fo=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&&_o(e,t)}(a,React.Component);var t,n,r,o=Po(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),No(To(t=o.call(this,e)),"handleFormSubmit",function(e,n){n.preventDefault();var r=t.state,o=r.formData,a=r.defaultData,i=t.props,s=i.action,u=i.wpNonce,c=i.validation.reset,l=new FormData,f=Lo(Lo({},a),o);for(var d in jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/before_submit",f),jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!0),f)l.append(d,f[d]);fetch(s,{method:"POST",headers:{"X-WP-Nonce":u},body:l}).then(function(e){return e.json()}).then(function(e){if(t.getValue("mf-captcha-challenge")&&t.refreshCaptcha(),t.getValue("g-recaptcha-response")&&t.handleReCAPTCHA("reset"),jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!1),e.status?t.setState({success:e.data.message?e.data.message:"",form_res:1}):(t.setValue("mf-captcha-challenge","",!0),t.setState({errors:So(e.error),form_res:1})),e.data.store&&"stripe"===e.data.store["mf-payment-method"]&&t.stripePayment(e),t.props.stopVerticalEffect||Ro.move(t.mfRefs.mainForm),jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/after_submit",{data:f,response:e}),e.status&&e.data.redirect_to){var n=e.data.entry_id,r=e.data.redirect_to;n&&""!=n&&(r+=(r.includes("?")?"&":"?")+"mf_entry_id="+n),setTimeout(function(){window.location.href=r},1500)}setTimeout(function(){t.setState({formData:{}})},350),c(),setTimeout(function(){t.setState({success:"",errors:[],form_res:0}),e.status&&e.data.hide_form&&t.setState({formHide:!0})},2e3)})}),No(To(t),"handleCalculations",function(e,n){var r=e.target.calc_behavior,o=ReactDOM.findDOMNode(To(t));(o.length?o.querySelectorAll(".mf-input-calculation"):[]).forEach(function(e){n[e.name]=t.MfMathCalc.parse(e.dataset.equation,n,r)||0})}),No(To(t),"handleConditionals",function(e){var n=t.state,r=n.formData,o=n.defaultData,a=t.props,i=a.widgets;a.conditionalRefs.forEach(function(e){(e=i[e]).list=e.settings.mf_conditional_logic_form_list,e.operator=e.settings.mf_conditional_logic_form_and_or_operators,e.action=e.settings.mf_conditional_logic_form_action,e.validatedValues=[],e.isValidated=!1,e.list.forEach(function(n){n.name=n.mf_conditional_logic_form_if,n.value=r[n.name]||o[n.name]||"",n.match=n.mf_conditional_logic_form_value,n.operator=t.decodeEntities(n.mf_conditional_logic_form_comparison_operators),Array.isArray(n.value)&&-1!=n.value.indexOf(n.match)&&(n.value=n.value[n.value.indexOf(n.match)]),e.validatedValues.push(Oo(n.value,n.match,n.operator))}),e.isValidated=e.validatedValues.some(function(e){return!0===e}),"and"===e.operator&&(e.isValidated=e.validatedValues.every(function(e){return!0===e})),e.isValidated&&"show"===e.action?e.el.classList.remove("mf-condition--hidden"):e.el.classList.add("mf-condition--hidden")})}),No(To(t),"getValue",function(e){return e in t.state.formData?t.state.formData[e]:""}),No(To(t),"getFileLabel",function(e,n){var r=t.state.formData[e];return r?r.name:t.decodeEntities(n)}),No(To(t),"getInputLabel",function(e,n){var r=ReactDOM.findDOMNode(To(t)).querySelector('[name="'+e+'"]').closest(".mf-input-wrapper").querySelector("label");return r?r.innerText.replace(/\*/g,"").trim():n}),No(To(t),"decodeEntities",function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}),No(To(t),"setDefault",function(e){var n=e.name,r=e.value,o=t.state.defaultData;o[n]=r,t.setState({defaultData:o})}),No(To(t),"isNumeric",function(e){return!isNaN(parseFloat(e))&&isFinite(e)}),No(To(t),"handleChange",function(e){var n=e.target,r=n.name,o=n.value,a=n.type,i=t.state.formData;i[r]="number"==a&&"mobile"!=a?Number(o):o,t.handleCalculations(e,i),t.setState({formData:i}),t.trigger(r)}),No(To(t),"handleDateTime",function(e){var n=e.target,r=n.name,o=n.value;t.setValue(r,o,!0),t.handleChange(e)}),No(To(t),"handleSelect",function(e,n){var r=n.name,o=e.value;e.target={name:n.name,value:o},t.setValue(r,o,!0),t.handleChange(e)}),No(To(t),"handleCheckbox",function(e){var n,r=t.state.formData[e.target.name];Array.isArray(r)||(r=[]),n=r.indexOf(e.target.value),e.target.checked&&-1===n?r.push(e.target.value):r.splice(n,1),t.handleChange({target:{name:e.target.name,value:r}})}),No(To(t),"handleSwitch",function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),t.handleChange(e)}),No(To(t),"handleOptin",function(e){e.target.checked||(e.target.value=""),t.handleChange(e)}),No(To(t),"handleFileUpload",function(e){t.handleChange({target:{name:e.target.name,value:e.target.files[0]}})}),No(To(t),"handleMultiStepBtns",function(e){var n=jQuery(e.currentTarget).parents(".elementor-top-section.active"),r=e.currentTarget.dataset.direction,o=("next"===r?n.next()[0]?n.next()[0].dataset:"":n.prev()[0]?n.prev()[0].dataset:"").id,a=jQuery(e.currentTarget).parents(".metform-form-content").find('.metform-step-item[data-value="'+o+'"]'),i=[];if(!o)return!1;n.find(".mf-input").each(function(){var e=jQuery(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&i.push(t)}),jQuery(e.currentTarget).parents(".mf-scroll-top-yes").length&&Ro.move(t.mfRefs.mainForm),"next"===r?t.trigger(i).then(function(e){e&&a.trigger("click")}):a.trigger("click")}),No(To(t),"handleImagePreview",function(e){var t=e.target,n=e.clientX,r=e.clientY,o=e.type,a=t.nextElementSibling;if(a){if("mouseleave"===o)return a.style.opacity="",void(a.style.visibility="hidden");a.style.opacity||(a.style.opacity="1",a.style.visibility="visible"),a.offsetHeight+r>window.innerHeight?(a.className="mf-select-hover-image mf-preview-top",r-=45):a.className="mf-select-hover-image",a.style.top=r+30+"px",a.style.left=n-28+"px"}}),No(To(t),"handleSignature",function(e){e.target={name:e.props.name,value:e.toDataURL()},t.handleChange(e),t.setValue(e.target.name,e.target.value,!0)}),No(To(t),"refreshCaptcha",function(e){t.setState({captcha_img:t.state.captcha_path+Date.now()})}),No(To(t),"handleReCAPTCHA",function(e){"reset"===e&&(e="",grecaptcha.reset());var n={target:{name:"g-recaptcha-response",value:(e=e||"")||""}};t.handleChange(n)}),No(To(t),"activateValidation",function(e,n,r){var o=t.props.validation.register,a=e.type,i=e.required,s=e.message,u=e.minLength,c=e.maxLength,l=e.expression,f={};if(n&&n.closest(".elementor-element").classList.contains("mf-condition--hidden")&&i)f.required=!1;else if((a&&"none"!=a||i)&&(f.required=s),n&&"email"==n.type?f.pattern={value:/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,message:e.emailMessage}:n&&"url"===n.type&&(f.pattern={value:/^(http[s]?:\/\/(www\.)?|ftp:\/\/(www\.)?|www\.){1}([0-9A-Za-z-\.@:%_\+~#=]+)+((\.[a-zA-Z]{2,3})+)(\/(.)*)?(\?(.)*)?/g,message:e.urlMessage}),"by_character_length"===a){var d=n&&"number"==n.type?"min":"minLength",p=n&&"number"==n.type?"max":"maxLength";u&&(f[d]={value:u,message:s}),c&&(f[p]={value:c,message:s})}else"by_word_length"===a?f.validate={wordLength:function(e){return t.handleWordValidate(e,u,c,s)}}:"by_expresssion_based"===a&&(f.validate={expression:function(e){return t.handleExpressionValidate(e,l,s)}});return n?o(n,f):f}),No(To(t),"handleWordValidate",function(e,t,n,r){var o=e.trim().split(/\s+/).length;return!!(n?o>=t&&o<=n:o>=t)||r}),No(To(t),"handleExpressionValidate",function(e,t,n){if(t)return!!new RegExp(t).test(e)||n}),No(To(t),"colorChange",function(e,n){t.handleChange({target:{name:n,value:e.hex}})}),No(To(t),"colorChangeInput",function(e){t.handleChange({target:{name:e.target.name,value:e.target.value}})}),No(To(t),"multiSelectChange",function(e,n){var r=[];null!=e&&e.filter(function(e){r.push(e.value)}),t.handleChange({target:{name:n,value:r}})}),No(To(t),"handleRangeChange",function(e,n){t.handleChange({target:{name:n,value:e.toFixed(2)}})}),No(To(t),"handleMultipileRangeChange",function(e,n){t.handleChange({target:{name:n,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})}),No(To(t),"handleOnChangePhoneInput",function(e,n){t.handleChange({target:{name:n,value:e,type:"mobile"}})}),No(To(t),"toggleResponseMsg",function(e){e.removeAttribute("data-show"),e.style.height=e.clientHeight+"px",e.setAttribute("data-show",0)}),t.state={formData:{},defaultData:{form_nonce:e.formNonce},result_not_foud:"",total_result:0,formHide:!1,form_res:0,errors:[],success:""},t.MfMathCalc=new wo,t.setValue=e.validation.setValue,t.trigger=e.validation.trigger,t.mfRefs={},window.handleReCAPTCHA=t.handleReCAPTCHA;var n=e.templateEl.innerHTML;return t.jsx=new Function("parent","props","state","validation","register","setValue","html",n),e.templateEl.remove(),t}return t=a,(n=[{key:"stripePayment",value:function(e){var t=e.data.payment_data,n=this;if(t.keys&&""!=t.keys){var r=StripeCheckout.configure({key:t.keys,image:t.image_url,locale:"auto",token:function(r){if(r.id){t.stripe_token=r.id;var o={sandbox:t.sandbox};fetch(e.data.ajax_stripe+"&token="+r.id,{headers:{"X-WP-Nonce":n.props.wpNonce},data:o}).then(function(e){return e.json()}).then(function(e){e.status?window.location.href=e.redirect_url:alert(e)})}else alert("Sorry!! Payment token invalid")}});r.open({name:String(t.name_post),description:" Form No.: "+String(t.description),amount:100*Number(t.amount),currency:t.currency_code}),window.addEventListener("popstate",function(){r.close()})}else alert("Please set your Stripe Keys in form settings.")}},{key:"responseMegCom",value:function(e){var t=e.errors,n=e.success,r=e.form_res;return React.createElement("div",{className:"mf-response-msg-wrap".concat(t.length>0?" wf-error-res":""),"data-show":r,style:{height:"120px"}},React.createElement("div",{className:"mf-response-msg"},t.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-alert-icon fas fa-exclamation-triangle"}),t.map(function(e,t){return React.createElement("p",{key:t},e)})):"",n.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-success-icon fas fa-check"}),React.createElement("p",null,n)):""))}},{key:"componentDidUpdate",value:function(e){if(this.handleConditionals(),!this.props.validation.formState.isValid&&!this.props.stopVerticalEffect){var t=this.mfRefs.mainForm.querySelector(".mf-error-message");t&&Ro.move(t.parentElement.parentElement)}}},{key:"componentDidMount",value:function(e){var t=this,n=ReactDOM.findDOMNode(this),r=n.length?n.querySelectorAll(".elementor-element"):[];this.mfRefs.mainForm=n;var o=n.getElementsByTagName("input");for(var a in o)"email"==o[a].type&&""!==o[a].value&&this.setDefault(o[a]);r.forEach(function(e){var n=e.getAttribute("data-element_type"),r=e.getAttribute("data-widget_type"),o=null==r?n:r;if(window.elementorFrontend.hooks.doAction("frontend/element_ready/"+o,jQuery(e)),e.className.search("elementor-widget-mf-")>0&&e.dataset.settings){var a=JSON.parse(e.dataset.settings.replace(/&quot;/g,'"')),i=a.mf_input_name+"-"+e.getAttribute("data-id");t.props.widgets[i]={el:e,settings:a},a.mf_conditional_logic_form_enable&&t.props.conditionalRefs.push(i)}}),this.handleConditionals(),this.props.formId&&fetch(mf.restURI+this.props.formId,{method:"POST",headers:{"X-WP-Nonce":this.props.wpNonce}}),xo(),Co(jQuery(n).parents(".mf-multistep-container").parent(),{doValidate:this.trigger}),jQuery(n).on("change",".mf-repeater-field, .mf-repater-range-input, .mf-repeater-checkbox",this.handleChange)}},{key:"render",value:function(){var e=this.props,t=this.state,n=e.validation,r=n.register,o=n.setValue,a=htm.bind(React.createElement);return React.createElement(React.Fragment,null,this.jsx(this,e,t,n,r,o,a))}}])&&jo(t.prototype,n),r&&jo(t,r),a}(),Vo=function(e){var t=ko(e.find(".mf-form-wrapper"),1)[0];if(t){var n,r=t.dataset,o=r.action,a=r.wpNonce,i=r.formNonce,s=r.formId,u=r.stopVerticalEffect,c=ko(e.find(".mf-template"),1)[0];if(c)ReactDOM.render(React.createElement((n=Fo,function(e){var t=Lo(Lo({},ge()),{},{ErrorMessage:ye});return React.createElement(n,Lo({validation:t},e))}),{formId:s,templateEl:c,action:o,wpNonce:a,formNonce:i,widgets:{},conditionalRefs:[],stopVerticalEffect:u,Select:pr,InputColor:lo,Flatpickr:po.a,InputRange:mr.a,ReactPhoneInput:vr.a,SignaturePad:mo.a,moveTo:Ro}),t)}};jQuery(window).on("elementor/frontend/init",function(){var e=["metform","shortcode","text-editor"];"metform-form"!==mf.postType||elementorFrontend.isEditMode()?("metform-form"===mf.postType&&elementorFrontend.isEditMode()&&(e=["mf-date","mf-time","mf-select","mf-multi-select","mf-range","mf-file-upload","mf-mobile","mf-image-select","mf-map-location","mf-color-picker","mf-signature"]),e.forEach(function(e){elementorFrontend.hooks.addAction("frontend/element_ready/"+e+".default",Vo)})):Vo(elementorFrontend.elements.$body)}).on("load",function(){document.querySelectorAll(".mf-form-shortcode").forEach(function(e){Vo(jQuery(e))})})}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=62)}([function(e,t){e.exports=React},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){e.exports=n(26)()},function(e,t,n){var r=n(12),o=n(15),a="[object Number]";e.exports=function(e){return"number"==typeof e||o(e)&&r(e)==a}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);Object.defineProperty(t,"captialize",{enumerable:!0,get:function(){return l(r).default}});var o=n(30);Object.defineProperty(t,"clamp",{enumerable:!0,get:function(){return l(o).default}});var a=n(31);Object.defineProperty(t,"distanceTo",{enumerable:!0,get:function(){return l(a).default}});var i=n(32);Object.defineProperty(t,"isDefined",{enumerable:!0,get:function(){return l(i).default}});var s=n(33);Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return l(s).default}});var u=n(34);Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return l(u).default}});var c=n(35);function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"length",{enumerable:!0,get:function(){return l(c).default}})},function(e,t,n){"use strict";function r(e,t,n){var r=n.value;if("function"!=typeof r)throw new Error("@autobind decorator can only be applied to methods not: "+typeof r);var o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t))return r;var n=r.bind(this);return o=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),o=!1,n}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length?function(e){var t=void 0;"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype))));return t.forEach(function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof n.value&&Object.defineProperty(e.prototype,t,r(e,t,n))}}),e}.apply(void 0,t):r.apply(void 0,t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=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}}(),a=n(0),i=u(a),s=u(n(3));function u(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},l=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],f=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||p()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(f(e,this.sizer),this.placeHolderSizer&&f(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!=e?e:t}),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=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}(this.props,[]);return function(e){l.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},o,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}();h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=a(n(0)),o=a(n(3));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.formatLabel?e.formatLabel(e.children,e.type):e.children;return r.default.createElement("span",{className:e.classNames[e.type+"Label"]},r.default.createElement("span",{className:e.classNames.labelContainer},t))}i.propTypes={children:o.default.node.isRequired,classNames:o.default.objectOf(o.default.string).isRequired,formatLabel:o.default.func,type:o.default.string.isRequired},e.exports=t.default},function(e,t,n){var r=n(11);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}},function(e,t){e.exports=function(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(e,t,n){var r=n(13),o=n(59),a=n(60),i="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:i:u&&u in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(57).Symbol;e.exports=r},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(25),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t){e.exports=n(0)},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(t){var n=1/0,r=1.7976931348623157e308,o=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,f="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),h=Object.prototype.toString,m=p.Symbol,g=m?m.prototype:void 0,v=g?g.toString:void 0;function b(e){if("string"==typeof e)return e;if(w(e))return v?v.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==a}function O(e){return e?(e=function(e){if("number"==typeof e)return e;if(w(e))return o;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?o:+e}(e))===n||e===-n?(e<0?-1:1)*r:e==e?e:0:0===e?e:0}e.exports=function(e,t,n){var r,o,a;return e=null==(r=e)?"":b(r),o=function(e){var t=O(e),n=t%1;return t==t?n?t-n:t:0}(n),0,a=e.length,o==o&&(void 0!==a&&(o=o<=a?o:a),o=o>=0?o:0),n=o,t=b(t),e.slice(n,n+t.length)==t}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n,r="Expected a function",o="__lodash_hash_undefined__",a="[object Function]",i="[object GeneratorFunction]",s=/^\[object .+?Constructor\]$/,u="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=Array.prototype,d=Function.prototype,p=Object.prototype,h=l["__core-js_shared__"],m=(n=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",g=d.toString,v=p.hasOwnProperty,b=p.toString,y=RegExp("^"+g.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=f.splice,O=M(l,"Map"),C=M(Object,"create");function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function D(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function k(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function E(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function M(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!_(e)||(t=e,m&&m in t))&&(function(e){var t=_(e)?b.call(e):"";return t==a||t==i}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?y:s).test(function(e){if(null!=e){try{return g.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}(n)?n:void 0}function j(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(j.Cache||k),n}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}x.prototype.clear=function(){this.__data__=C?C(null):{}},x.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},x.prototype.get=function(e){var t=this.__data__;if(C){var n=t[e];return n===o?void 0:n}return v.call(t,e)?t[e]:void 0},x.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:v.call(t,e)},x.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?o:t,this},D.prototype.clear=function(){this.__data__=[]},D.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0||(n==t.length-1?t.pop():w.call(t,n,1),0))},D.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},D.prototype.has=function(e){return S(this.__data__,e)>-1},D.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new x,map:new(O||D),string:new x}},k.prototype.delete=function(e){return E(this,e).delete(e)},k.prototype.get=function(e){return E(this,e).get(e)},k.prototype.has=function(e){return E(this,e).has(e)},k.prototype.set=function(e,t){return E(this,e).set(e,t),this},j.Cache=k,e.exports=j}).call(this,n(3))},function(e,t,n){(function(t){var n=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,f=c||l||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return f.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==r}(e))return n;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var c=i.test(e);return c||s.test(e)?u(e.slice(2),c?2:8):a.test(e)?n:+e}e.exports=function(e,t,n){var r,o,a,i,s,u,c=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function y(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-c>=a}function w(){var e=m();if(y(e))return O(e);s=setTimeout(w,function(e){var n=t-(e-u);return f?h(n,a-(e-c)):n}(e))}function O(e){return s=void 0,d&&r?b(e):(r=o=void 0,i)}function C(){var e=m(),n=y(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(w,t),l?b(e):i}(u);if(f)return s=setTimeout(w,t),b(u)}return void 0===s&&(s=setTimeout(w,t)),i}return t=v(t)||0,g(n)&&(l=!!n.leading,a=(f="maxWait"in n)?p(v(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),C.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},C.flush=function(){return void 0===s?i:O(m())},C}}).call(this,n(3))},function(e,t,n){(function(e,n){var r="Expected a function",o="__lodash_hash_undefined__",a=1,i=2,s=1/0,u=9007199254740991,c="[object Arguments]",l="[object Array]",f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Object]",y="[object RegExp]",w="[object Set]",O="[object String]",C="[object Symbol]",x="[object ArrayBuffer]",D="[object DataView]",k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,E=/^\./,M=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j=/\\(\\)?/g,_=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[c]=T[l]=T[x]=T[f]=T[D]=T[d]=T[p]=T[h]=T[g]=T[v]=T[b]=T[y]=T[w]=T[O]=T["[object WeakMap]"]=!1;var A="object"==typeof e&&e&&e.Object===Object&&e,I="object"==typeof self&&self&&self.Object===Object&&self,L=A||I||Function("return this")(),N=t&&!t.nodeType&&t,R=N&&"object"==typeof n&&n&&!n.nodeType&&n,F=R&&R.exports===N&&A.process,V=function(){try{return F&&F.binding("util")}catch(e){}}(),H=V&&V.isTypedArray;function U(e,t,n,r){var o=-1,a=e?e.length:0;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function W(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function z(e,t,n,r,o){return o(e,function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)}),n}function B(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function K(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var q,G,$,J=Array.prototype,X=Function.prototype,Q=Object.prototype,Z=L["__core-js_shared__"],ee=(q=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",te=X.toString,ne=Q.hasOwnProperty,re=Q.toString,oe=RegExp("^"+te.call(ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ae=L.Symbol,ie=L.Uint8Array,se=Q.propertyIsEnumerable,ue=J.splice,ce=(G=Object.keys,$=Object,function(e){return G($(e))}),le=Ve(L,"DataView"),fe=Ve(L,"Map"),de=Ve(L,"Promise"),pe=Ve(L,"Set"),he=Ve(L,"WeakMap"),me=Ve(Object,"create"),ge=qe(le),ve=qe(fe),be=qe(de),ye=qe(pe),we=qe(he),Oe=ae?ae.prototype:void 0,Ce=Oe?Oe.valueOf:void 0,xe=Oe?Oe.toString:void 0;function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.__data__=new Se;++t<n;)this.add(e[t])}function Me(e){this.__data__=new ke(e)}function je(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}De.prototype.clear=function(){this.__data__=me?me(null):{}},De.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},De.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===o?void 0:n}return ne.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ne.call(t,e)},De.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?o:t,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(e){var t=this.__data__,n=je(t,e);return!(n<0||(n==t.length-1?t.pop():ue.call(t,n,1),0))},ke.prototype.get=function(e){var t=this.__data__,n=je(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return je(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,r=je(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Se.prototype.clear=function(){this.__data__={hash:new De,map:new(fe||ke),string:new De}},Se.prototype.delete=function(e){return Fe(this,e).delete(e)},Se.prototype.get=function(e){return Fe(this,e).get(e)},Se.prototype.has=function(e){return Fe(this,e).has(e)},Se.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,o),this},Ee.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.clear=function(){this.__data__=new ke},Me.prototype.delete=function(e){return this.__data__.delete(e)},Me.prototype.get=function(e){return this.__data__.get(e)},Me.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ke){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Se(r)}return n.set(e,t),this};var _e,Pe=(_e=function(e,t){return e&&Te(e,t,at)},function(e,t){if(null==e)return e;if(!Qe(e))return _e(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),Te=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[++r];if(!1===t(o[s],s,o))break}return e};function Ae(e,t){for(var n=0,r=(t=We(t,e)?[t]:Ne(t)).length;null!=e&&n<r;)e=e[Ke(t[n++])];return n&&n==r?e:void 0}function Ie(e,t){return null!=e&&t in Object(e)}function Le(e,t,n,r,o){return e===t||(null==e||null==t||!tt(e)&&!nt(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var u=Xe(e),h=Xe(t),m=l,k=l;u||(m=(m=He(e))==c?b:m),h||(k=(k=He(t))==c?b:k);var S=m==b&&!B(e),E=k==b&&!B(t),M=m==k;if(M&&!S)return s||(s=new Me),u||ot(e)?Re(e,t,n,r,o,s):function(e,t,n,r,o,s,u){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!r(new ie(e),new ie(t)));case f:case d:case v:return $e(+e,+t);case p:return e.name==t.name&&e.message==t.message;case y:case O:return e==t+"";case g:var c=Y;case w:var l=s&i;if(c||(c=K),e.size!=t.size&&!l)return!1;var h=u.get(e);if(h)return h==t;s|=a,u.set(e,t);var m=Re(c(e),c(t),r,o,s,u);return u.delete(e),m;case C:if(Ce)return Ce.call(e)==Ce.call(t)}return!1}(e,t,m,n,r,o,s);if(!(o&i)){var j=S&&ne.call(e,"__wrapped__"),_=E&&ne.call(t,"__wrapped__");if(j||_){var P=j?e.value():e,T=_?t.value():t;return s||(s=new Me),n(P,T,r,o,s)}}return!!M&&(s||(s=new Me),function(e,t,n,r,o,a){var s=o&i,u=at(e),c=u.length;if(c!=at(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:ne.call(t,f)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var p=!0;a.set(e,t),a.set(t,e);for(var h=s;++l<c;){var m=e[f=u[l]],g=t[f];if(r)var v=s?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(!(void 0===v?m===g||n(m,g,r,o,a):v)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,o,s))}(e,t,Le,n,r,o))}function Ne(e){return Xe(e)?e:Ye(e)}function Re(e,t,n,r,o,s){var u=o&i,c=e.length,l=t.length;if(c!=l&&!(u&&l>c))return!1;var f=s.get(e);if(f&&s.get(t))return f==t;var d=-1,p=!0,h=o&a?new Ee:void 0;for(s.set(e,t),s.set(t,e);++d<c;){var m=e[d],g=t[d];if(r)var v=u?r(g,m,d,t,e,s):r(m,g,d,e,t,s);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!W(t,function(e,t){if(!h.has(t)&&(m===e||n(m,e,r,o,s)))return h.add(t)})){p=!1;break}}else if(m!==g&&!n(m,g,r,o,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Fe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!tt(e)||function(e){return!!ee&&ee in e}(e))&&(Ze(e)||B(e)?oe:_).test(qe(e))}(n)?n:void 0}var He=function(e){return re.call(e)};function Ue(e,t){return!!(t=null==t?u:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function We(e,t){if(Xe(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!rt(e))||S.test(e)||!k.test(e)||null!=t&&e in Object(t)}function ze(e){return e==e&&!tt(e)}function Be(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(le&&He(new le(new ArrayBuffer(1)))!=D||fe&&He(new fe)!=g||de&&"[object Promise]"!=He(de.resolve())||pe&&He(new pe)!=w||he&&"[object WeakMap]"!=He(new he))&&(He=function(e){var t=re.call(e),n=t==b?e.constructor:void 0,r=n?qe(n):void 0;if(r)switch(r){case ge:return D;case ve:return g;case be:return"[object Promise]";case ye:return w;case we:return"[object WeakMap]"}return t});var Ye=Ge(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(rt(e))return xe?xe.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}(t);var n=[];return E.test(e)&&n.push(""),e.replace(M,function(e,t,r,o){n.push(r?o.replace(j,"$1"):t||e)}),n});function Ke(e){if("string"==typeof e||rt(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}function qe(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ge(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(Ge.Cache||Se),n}function $e(e,t){return e===t||e!=e&&t!=t}function Je(e){return function(e){return nt(e)&&Qe(e)}(e)&&ne.call(e,"callee")&&(!se.call(e,"callee")||re.call(e)==c)}Ge.Cache=Se;var Xe=Array.isArray;function Qe(e){return null!=e&&et(e.length)&&!Ze(e)}function Ze(e){var t=tt(e)?re.call(e):"";return t==h||t==m}function et(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function tt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function nt(e){return!!e&&"object"==typeof e}function rt(e){return"symbol"==typeof e||nt(e)&&re.call(e)==C}var ot=H?function(e){return function(t){return e(t)}}(H):function(e){return nt(e)&&et(e.length)&&!!T[re.call(e)]};function at(e){return Qe(e)?function(e,t){var n=Xe(e)||Je(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!ne.call(e,a)||o&&("length"==a||Ue(a,r))||n.push(a);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Q))return ce(e);var t,n,r=[];for(var o in Object(e))ne.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function it(e){return e}n.exports=function(e,t,n){var r=Xe(e)?U:z,o=arguments.length<3;return r(e,function(e){return"function"==typeof e?e:null==e?it:"object"==typeof e?Xe(e)?function(e,t){return We(e)&&ze(t)?Be(Ke(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Ae(e,t);return void 0===r?void 0:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=n&&function(e,t,n){for(var r,o=-1,a=(t=We(t,e)?[t]:Ne(t)).length;++o<a;){var i=Ke(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}return r||!!(a=e?e.length:0)&&et(a)&&Ue(i,a)&&(Xe(e)||Je(e))}(n,t,Ie)}(0,e):Le(t,r,void 0,a|i)}}(e[0],e[1]):function(e){var t=function(e){for(var t=at(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ze(o)]}return t}(e);return 1==t.length&&t[0][2]?Be(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,s=o;if(null==e)return!s;for(e=Object(e);o--;){var u=n[o];if(u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var c=(u=n[o])[0],l=e[c],f=u[1];if(u[2]){if(void 0===l&&!(c in e))return!1}else{var d,p=new Me;if(!(void 0===d?Le(f,l,r,a|i,p):d))return!1}}return!0}(n,0,t)}}(e):We(t=e)?(n=Ke(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Ae(t,e)}}(t);var t,n}(t),n,o,Pe)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},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}function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){if(Array.isArray(e))return e}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 l(e){return(l="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 f(e){return(f="function"==typeof Symbol&&"symbol"===l(Symbol.iterator)?function(e){return l(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":l(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t);var m=n(0),g=n.n(m),v=n(5),b=n.n(v),y=n(4),w=n.n(y),O=n(6),C=n.n(O),x=n(2),D=n.n(x),k=n(1),S=n.n(k);function E(e,t){return i(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||s()}n(8);var M=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994"],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57"],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420"],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996"],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371"],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998"],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],j=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function _(e,t,n,r,o){return!n||o?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n}function P(e,t,n,o,i){var s,u,c=[];return u=!0===t,[(s=[]).concat.apply(s,a(e.map(function(e){var a={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:_(n,e[3],e[4],o,i),priority:e[5]||0},s=[];return e[6]&&e[6].map(function(t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}({},a);n.dialCode=e[3]+t,n.isAreaCode=!0,n.areaCodeLength=t.length,s.push(n)}),s.length>0?(a.mainCode=!0,u||"Array"===t.constructor.name&&t.includes(e[2])?(a.hasAreaCodes=!0,[a].concat(s)):(c=c.concat(s),[a])):[a]}))),c]}function T(e,t,n,r){if(null!==n){var o=Object.keys(n),a=Object.values(n);o.forEach(function(n,o){if(r)return e.push([n,a[o]]);var i=e.findIndex(function(e){return e[0]===n});if(-1===i){var s=[n];s[t]=a[o],e.push(s)}else e[i][t]=a[o]})}}function A(e,t){return 0===t.length?e:e.map(function(e){var n=t.findIndex(function(t){return t[0]===e[2]});if(-1===n)return e;var r=t[n];return r[1]&&(e[4]=r[1]),r[3]&&(e[5]=r[3]),r[2]&&(e[6]=r[2]),e})}var I=function e(t,n,r,o,i,s,c,l,f,d,p,h,m,g){u(this,e),this.filterRegions=function(e,t){if("string"==typeof e){var n=e;return t.filter(function(e){return e.regions.some(function(e){return e===n})})}return t.filter(function(t){return e.map(function(e){return t.regions.some(function(t){return t===e})}).some(function(e){return e})})},this.sortTerritories=function(e,t){var n=[].concat(a(e),a(t));return n.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}),n},this.getFilteredCountryList=function(e,t,n){return 0===e.length?t:n?e.map(function(e){var n=t.find(function(t){return t.iso2===e});if(n)return n}).filter(function(e){return e}):t.filter(function(t){return e.some(function(e){return e===t.iso2})})},this.localizeCountries=function(e,t,n){for(var r=0;r<e.length;r++)void 0!==t[e[r].iso2]?e[r].localName=t[e[r].iso2]:void 0!==t[e[r].name]&&(e[r].localName=t[e[r].name]);return n||e.sort(function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0}),e},this.getCustomAreas=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=JSON.parse(JSON.stringify(e));o.dialCode+=t[r],n.push(o)}return n},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter(function(e){return!t.includes(e.iso2)})};var v=function(e,t,n){var r=[];return T(r,1,l,!0),T(r,3,t),T(r,2,n),r}(0,f,d),b=A(JSON.parse(JSON.stringify(M)),v),y=A(JSON.parse(JSON.stringify(j)),v),w=E(P(b,t,h,m,g),2),O=w[0],C=w[1];if(n){var x=E(P(y,t,h,m,g),2),D=x[0];x[1],O=this.sortTerritories(D,O)}r&&(O=this.filterRegions(r,O)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(o,O,c.includes("onlyCountries")),s),p,c.includes("onlyCountries")),this.preferredCountries=0===i.length?[]:this.localizeCountries(this.getFilteredCountryList(i,O,c.includes("preferredCountries")),p,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(o,C),s)},L=function(e){function t(e){var n;u(this,t),(n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?d(e):t}(this,p(t).call(this,e))).getProbableCandidate=w()(function(e){return e&&0!==e.length?n.state.onlyCountries.filter(function(t){return D()(t.name.toLowerCase(),e.toLowerCase())},d(d(n)))[0]:null}),n.guessSelectedCountry=w()(function(e,t,r,o){var a;if(!1===n.props.enableAreaCodes&&(o.some(function(t){if(D()(e,t.dialCode))return r.some(function(e){if(t.iso2===e.iso2&&e.mainCode)return a=e,!0}),!0}),a))return a;var i=r.find(function(e){return e.iso2==t});if(""===e.trim())return i;var s=r.reduce(function(t,n){if(D()(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t},{dialCode:"",priority:10001},d(d(n)));return s.name?s:i}),n.updateCountry=function(e){var t,r=n.state.onlyCountries;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?r.find(function(t){return t.dialCode==+e}):r.find(function(t){return t.iso2==e}))&&t.dialCode&&n.setState({selectedCountry:t,formattedNumber:n.props.disableCountryCode?"":n.formatNumber(t.dialCode,t)})},n.scrollTo=function(e,t){if(e){var r=n.dropdownRef;if(r&&document.body){var o=r.offsetHeight,a=r.getBoundingClientRect().top+document.body.scrollTop,i=a+o,s=e,u=s.getBoundingClientRect(),c=s.offsetHeight,l=u.top+document.body.scrollTop,f=l+c,d=l-a+r.scrollTop,p=o/2-c/2;if(n.props.enableSearch?l<a+32:l<a)t&&(d-=p),r.scrollTop=d;else if(f>i){t&&(d+=p);var h=o-c;r.scrollTop=d-h}}}},n.scrollToTop=function(){var e=n.dropdownRef;e&&document.body&&(e.scrollTop=0)},n.formatNumber=function(e,t){if(!t)return e;var r,a=t.format,u=n.props,c=u.disableCountryCode,l=u.enableAreaCodeStretch,f=u.enableLongNumbers,d=u.autoFormat;if(c?((r=a.split(" ")).shift(),r=r.join(" ")):l&&t.isAreaCode?((r=a.split(" "))[1]=r[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),r=r.join(" ")):r=a,!e||0===e.length)return c?"":n.props.prefix;if(e&&e.length<2||!r||!d)return c?e:n.props.prefix+e;var p,h=C()(r,function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var n,r=i(n=e.remainingText)||o(n)||s(),a=r[0],u=r.slice(1);return{formattedText:e.formattedText+a,remainingText:u}},{formattedText:"",remainingText:e.split("")});return(p=f?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!p.includes(")")&&(p+=")"),p},n.cursorToEnd=function(){var e=n.numberInputRef;e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)},n.getElement=function(e){return n["flag_no_".concat(e)]},n.getCountryData=function(){return n.state.selectedCountry?{name:n.state.selectedCountry.name||"",dialCode:n.state.selectedCountry.dialCode||"",countryCode:n.state.selectedCountry.iso2||"",format:n.state.selectedCountry.format||""}:{}},n.handleFlagDropdownClick=function(e){if(e.preventDefault(),n.state.showDropdown||!n.props.disabled){var t=n.state,r=t.preferredCountries,o=t.selectedCountry,a=r.concat(n.state.onlyCountries).findIndex(function(e){return e.dialCode===o.dialCode&&e.iso2===o.iso2});n.setState({showDropdown:!n.state.showDropdown,highlightCountryIndex:a},function(){n.state.showDropdown&&n.scrollTo(n.getElement(n.state.highlightCountryIndex))})}},n.handleInput=function(e){var t=e.target.value,r=n.props,o=r.prefix,a=r.onChange,i=n.props.disableCountryCode?"":o,s=n.state.selectedCountry,u=n.state.freezeSelection;if(!n.props.countryCodeEditable){var c=o+(s.hasAreaCodes?n.state.onlyCountries.find(function(e){return e.iso2===s.iso2&&e.mainCode}).dialCode:s.dialCode);if(t.slice(0,c.length)!==c)return}if(t===o)return a&&a("",n.getCountryData(),e,""),n.setState({formattedNumber:""});if(t.replace(/\D/g,"").length>15){if(!1===n.props.enableLongNumbers)return;if("number"==typeof n.props.enableLongNumbers&&t.replace(/\D/g,"").length>n.props.enableLongNumbers)return}if(t!==n.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var l=n.props.country,f=n.state,d=f.onlyCountries,p=f.selectedCountry,h=f.hiddenAreaCodes;if(a&&e.persist(),t.length>0){var m=t.replace(/\D/g,"");(!n.state.freezeSelection||p.dialCode.length>m.length)&&(s=n.props.disableCountryGuess?p:n.guessSelectedCountry(m.substring(0,6),l,d,h)||p,u=!1),i=n.formatNumber(m,s),s=s.dialCode?s:p}var g=e.target.selectionStart,v=n.state.formattedNumber,b=i.length-v.length;n.setState({formattedNumber:i,freezeSelection:u,selectedCountry:s},function(){b>0&&(g-=b),")"==i.charAt(i.length-1)?n.numberInputRef.setSelectionRange(i.length-1,i.length-1):g>0&&v.length>=i.length&&n.numberInputRef.setSelectionRange(g,g),a&&a(i.replace(/[^0-9]+/g,""),n.getCountryData(),e,i)})}},n.handleInputClick=function(e){n.setState({showDropdown:!1}),n.props.onClick&&n.props.onClick(e,n.getCountryData())},n.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},n.handleFlagItemClick=function(e,t){var r=n.state.selectedCountry,o=n.state.onlyCountries.find(function(t){return t==e});if(o){var a=n.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),i=a.length>1?a.replace(r.dialCode,o.dialCode):o.dialCode,s=n.formatNumber(i.replace(/\D/g,""),o);n.setState({showDropdown:!1,selectedCountry:o,freezeSelection:!0,formattedNumber:s},function(){n.cursorToEnd(),n.props.onChange&&n.props.onChange(s.replace(/[^0-9]+/g,""),n.getCountryData(),t,s)})}},n.handleInputFocus=function(e){n.numberInputRef&&n.numberInputRef.value===n.props.prefix&&n.state.selectedCountry&&!n.props.disableCountryCode&&n.setState({formattedNumber:n.props.prefix+n.state.selectedCountry.dialCode},function(){n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)}),n.setState({placeholder:""}),n.props.onFocus&&n.props.onFocus(e,n.getCountryData()),n.props.jumpCursorToEnd&&setTimeout(n.cursorToEnd,0)},n.handleInputBlur=function(e){e.target.value||n.setState({placeholder:n.props.placeholder}),n.props.onBlur&&n.props.onBlur(e,n.getCountryData())},n.handleInputCopy=function(e){if(n.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},n.getHighlightCountryIndex=function(e){var t=n.state.highlightCountryIndex+e;return t<0||t>=n.state.onlyCountries.length+n.state.preferredCountries.length?t-e:n.props.enableSearch&&t>n.getSearchFilteredCountries().length?0:t},n.searchCountry=function(){var e=n.getProbableCandidate(n.state.queryString)||n.state.onlyCountries[0],t=n.state.onlyCountries.findIndex(function(t){return t==e})+n.state.preferredCountries.length;n.scrollTo(n.getElement(t),!0),n.setState({queryString:"",highlightCountryIndex:t})},n.handleKeydown=function(e){var t=n.props.keys,r=e.target.className;if(r.includes("selected-flag")&&e.which===t.ENTER&&!n.state.showDropdown)return n.handleFlagDropdownClick(e);if(r.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(n.state.showDropdown&&!n.props.disabled&&(!r.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var o=function(e){n.setState({highlightCountryIndex:n.getHighlightCountryIndex(e)},function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)})};switch(e.which){case t.DOWN:o(1);break;case t.UP:o(-1);break;case t.ENTER:n.props.enableSearch?n.handleFlagItemClick(n.getSearchFilteredCountries()[n.state.highlightCountryIndex]||n.getSearchFilteredCountries()[0],e):n.handleFlagItemClick([].concat(a(n.state.preferredCountries),a(n.state.onlyCountries))[n.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:n.setState({showDropdown:!1},n.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&n.setState({queryString:n.state.queryString+String.fromCharCode(e.which)},n.state.debouncedQueryStingSearcher)}}},n.handleInputKeyDown=function(e){var t=n.props,r=t.keys,o=t.onEnterKeyPress,a=t.onKeyDown;e.which===r.ENTER&&o&&o(e),a&&a(e)},n.handleClickOutside=function(e){n.dropdownRef&&!n.dropdownContainerRef.contains(e.target)&&n.state.showDropdown&&n.setState({showDropdown:!1})},n.handleSearchChange=function(e){var t=e.currentTarget.value,r=n.state,o=r.preferredCountries,a=r.selectedCountry,i=0;if(""===t&&a){var s=n.state.onlyCountries;i=o.concat(s).findIndex(function(e){return e==a}),setTimeout(function(){return n.scrollTo(n.getElement(i))},100)}n.setState({searchValue:t,highlightCountryIndex:i})},n.getDropdownCountryName=function(e){return e.localName||e.name},n.getSearchFilteredCountries=function(){var e=n.state,t=e.preferredCountries,r=e.onlyCountries,o=e.searchValue,i=n.props.enableSearch,s=t.concat(r),u=o.trim().toLowerCase();if(i&&u){if(/^\d+$/.test(u))return s.filter(function(e){var t=e.dialCode;return["".concat(t)].some(function(e){return e.toLowerCase().includes(u)})});var c=s.filter(function(e){var t=e.iso2;return["".concat(t)].some(function(e){return e.toLowerCase().includes(u)})}),l=s.filter(function(e){var t=e.name,n=e.localName;return e.iso2,["".concat(t),"".concat(n||"")].some(function(e){return e.toLowerCase().includes(u)})});return n.scrollToTop(),a(new Set([].concat(c,l)))}return s},n.getCountryDropdownList=function(){var e,t=n.state,o=t.preferredCountries,a=t.highlightCountryIndex,i=t.showDropdown,s=t.searchValue,u=n.props,c=u.disableDropdown,l=u.prefix,f=n.props,d=f.enableSearch,p=f.searchNotFound,h=f.disableSearchIcon,m=f.searchClass,v=f.searchStyle,b=f.searchPlaceholder,y=f.autocompleteSearch,w=n.getSearchFilteredCountries().map(function(e,t){var r=a===t,o=S()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:r}),i="flag ".concat(e.iso2);return g.a.createElement("li",Object.assign({ref:function(e){return n["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:o,"data-dial-code":"1",tabIndex:c?"-1":"0","data-country-code":e.iso2,onClick:function(t){return n.handleFlagItemClick(e,t)},role:"option"},r?{"aria-selected":!0}:{}),g.a.createElement("div",{className:i}),g.a.createElement("span",{className:"country-name"},n.getDropdownCountryName(e)),g.a.createElement("span",{className:"dial-code"},e.format?n.formatNumber(e.dialCode,e):l+e.dialCode))}),O=g.a.createElement("li",{key:"dashes",className:"divider"});o.length>0&&(!d||d&&!s.trim())&&w.splice(o.length,0,O);var C=S()((r(e={},n.props.dropdownClass,!0),r(e,"country-list",!0),r(e,"hide",!i),e));return g.a.createElement("ul",{ref:function(e){return!d&&e&&e.focus(),n.dropdownRef=e},className:C,style:n.props.dropdownStyle,role:"listbox",tabIndex:"0"},d&&g.a.createElement("li",{className:S()(r({search:!0},m,m))},!h&&g.a.createElement("span",{className:S()(r({"search-emoji":!0},"".concat(m,"-emoji"),m)),role:"img","aria-label":"Magnifying glass"},"🔎"),g.a.createElement("input",{className:S()(r({"search-box":!0},"".concat(m,"-box"),m)),style:v,type:"search",placeholder:b,autoFocus:!0,autoComplete:y?"on":"off",value:s,onChange:n.handleSearchChange})),w.length>0?w:g.a.createElement("li",{className:"no-entries-message"},g.a.createElement("span",null,p)))};var c,l=new I(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),h=l.onlyCountries,m=l.preferredCountries,v=l.hiddenAreaCodes,y=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:y.length>1?n.guessSelectedCountry(y.substring(0,6),e.country,h,v)||0:e.country&&h.find(function(t){return t.iso2==e.country})||0;var O,x=y.length<2&&c&&!D()(y,c.dialCode)?c.dialCode:"";O=""===y&&0===c?"":n.formatNumber((e.disableCountryCode?"":x)+y,c.name?c:void 0);var k=h.findIndex(function(e){return e==c});return n.state={showDropdown:e.showDropdown,formattedNumber:O,onlyCountries:h,preferredCountries:m,hiddenAreaCodes:v,selectedCountry:c,highlightCountryIndex:k,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:b()(n.searchCountry,250),searchValue:""},n}var n,l;return 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&&h(e,t)}(t,g.a.Component),n=t,(l=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,n){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,n=t.onlyCountries,r=t.selectedCountry,o=t.hiddenAreaCodes,a=this.props,i=a.country,s=a.prefix;if(""===e)return this.setState({selectedCountry:r,formattedNumber:""});var u,c,l=e.replace(/\D/g,"");if(r&&D()(e,s+r.dialCode))c=this.formatNumber(l,r),this.setState({formattedNumber:c});else{var f=(u=this.props.disableCountryGuess?r:this.guessSelectedCountry(l.substring(0,6),i,n,o)||r)&&D()(l,s+u.dialCode)?u.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":f)+l,u||void 0),this.setState({selectedCountry:u,formattedNumber:c})}}},{key:"render",value:function(){var e,t,n,o,a,i=this,s=this.state,u=s.onlyCountries,c=s.selectedCountry,l=s.showDropdown,f=s.formattedNumber,d=s.hiddenAreaCodes,p=this.props,h=p.disableDropdown,m=p.renderStringAsFlag,v=p.isValid,b=p.defaultErrorMessage,y=p.specialLabel;if("boolean"==typeof v)o=v;else{var w=v(f.replace(/\D/g,""),c,u,d);"boolean"==typeof w?!1===(o=w)&&(a=b):(o=!1,a=w)}var O=S()((r(e={},this.props.containerClass,!0),r(e,"react-tel-input",!0),e)),C=S()({arrow:!0,up:l}),x=S()((r(t={},this.props.inputClass,!0),r(t,"form-control",!0),r(t,"invalid-number",!o),r(t,"open",l),t)),D=S()({"selected-flag":!0,open:l}),k=S()((r(n={},this.props.buttonClass,!0),r(n,"flag-dropdown",!0),r(n,"invalid-number",!o),r(n,"open",l),n)),E="flag ".concat(c&&c.iso2);return g.a.createElement("div",{className:O,style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},y&&g.a.createElement("div",{className:"special-label"},y),a&&g.a.createElement("div",{className:"invalid-number-message"},a),g.a.createElement("input",Object.assign({className:x,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:f,ref:function(e){return i.numberInputRef=e},onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps)),g.a.createElement("div",{className:k,style:this.props.buttonStyle,ref:function(e){return i.dropdownContainerRef=e}},m?g.a.createElement("div",{className:D},m):g.a.createElement("div",{onClick:h?void 0:this.handleFlagDropdownClick,className:D,title:c?"".concat(c.name,": + ").concat(c.dialCode):"",tabIndex:h?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!l||void 0},g.a.createElement("div",{className:E},!h&&g.a.createElement("div",{className:C}))),l&&this.getCountryDropdownList()))}}])&&c(n.prototype,l),t}();L.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=L}])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=i(n(3)),a=i(n(42));function i(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){return(u="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 c(){return(c=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 l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(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 h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return g(e)}(this,n)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=["onChange","onOpen","onClose","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"],w=o.default.oneOfType([o.default.func,o.default.arrayOf(o.default.func)]),O=["onCreate","onDestroy"],C=o.default.func,x=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&&h(e,t)}(s,r.Component);var t,n,o,i=m(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(g(e=i.call.apply(i,[this].concat(n))),"createFlatpickrInstance",function(){var t=d({onClose:function(){e.node.blur&&e.node.blur()}},e.props.options);y.forEach(function(n){e.props[n]&&(t[n]=e.props[n])}),e.flatpickr=(0,a.default)(e.node,t),e.props.hasOwnProperty("value")&&e.flatpickr.setDate(e.props.value,!1);var n=e.props.onCreate;n&&n(e.flatpickr)}),b(g(e),"destroyFlatpickrInstance",function(){var t=e.props.onDestroy;t&&t(e.flatpickr),e.flatpickr.destroy(),e.flatpickr=null}),b(g(e),"handleNodeChange",function(t){e.node=t,e.flatpickr&&(e.destroyFlatpickrInstance(),e.createFlatpickrInstance())}),e}return t=s,(n=[{key:"componentDidUpdate",value:function(e){var t=this,n=this.props.options,r=e.options;y.forEach(function(o){t.props.hasOwnProperty(o)&&(n[o]=t.props[o]),e.hasOwnProperty(o)&&(r[o]=e[o])});for(var o=Object.getOwnPropertyNames(n),a=o.length-1;a>=0;a--){var i=o[a],s=n[i];s!==r[i]&&(-1===y.indexOf(i)||Array.isArray(s)||(s=[s]),this.flatpickr.set(i,s))}this.props.hasOwnProperty("value")&&this.props.value!==e.value&&this.flatpickr.setDate(this.props.value,!1)}},{key:"componentDidMount",value:function(){this.createFlatpickrInstance()}},{key:"componentWillUnmount",value:function(){this.destroyFlatpickrInstance()}},{key:"render",value:function(){var e=this.props,t=e.options,n=e.defaultValue,o=e.value,a=e.children,i=e.render,s=l(e,["options","defaultValue","value","children","render"]);return y.forEach(function(e){delete s[e]}),O.forEach(function(e){delete s[e]}),i?i(d(d({},s),{},{defaultValue:n,value:o}),this.handleNodeChange):t.wrap?r.default.createElement("div",c({},s,{ref:this.handleNodeChange}),a):r.default.createElement("input",c({},s,{defaultValue:n,ref:this.handleNodeChange}))}}])&&p(t.prototype,n),o&&p(t,o),s}();b(x,"propTypes",{defaultValue:o.default.string,options:o.default.object,onChange:w,onOpen:w,onClose:w,onMonthChange:w,onYearChange:w,onReady:w,onValueUpdate:w,onDayCreate:w,onCreate:C,onDestroy:C,value:o.default.oneOfType([o.default.string,o.default.array,o.default.object,o.default.number]),children:o.default.node,className:o.default.string,render:o.default.func}),b(x,"defaultProps",{options:{}});var D=x;t.default=D},function(e,t,n){var r;e.exports=(r=n(0),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(2)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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}}(),r=function(){function e(t,n,r,o){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.startPoint=t,this.control1=n,this.control2=r,this.endPoint=o}return n(e,[{key:"length",value:function(){var e,t,n,r,o,a,i,s,u=0;for(e=0;10>=e;e++)t=e/10,n=this._point(t,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),r=this._point(t,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y),e>0&&(i=n-o,s=r-a,u+=Math.sqrt(i*i+s*s)),o=n,a=r;return u}},{key:"_point",value:function(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}]),e}();t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),a=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=a,n=i,r=!0}},i=n(4),s=r(i),u=n(1),c=r(u),l=n(3),f=r(l),d=function(e){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.velocityFilterWeight=this.props.velocityFilterWeight||.7,this.minWidth=this.props.minWidth||.5,this.maxWidth=this.props.maxWidth||2.5,this.dotSize=this.props.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=this.props.penColor||"black",this.backgroundColor=this.props.backgroundColor||"rgba(0,0,0,0)",this.onEnd=this.props.onEnd,this.onBegin=this.props.onBegin}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this._canvas=this.refs.cv,this._ctx=this._canvas.getContext("2d"),this.clear(),this._handleMouseEvents(),this._handleTouchEvents(),this._resizeCanvas()}},{key:"componentWillUnmount",value:function(){this.off()}},{key:"clear",value:function(e){e&&e.preventDefault();var t=this._ctx,n=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,n.width,n.height),t.fillRect(0,0,n.width,n.height),this._reset()}},{key:"toDataURL",value:function(e,t){var n=this._canvas;return n.toDataURL.apply(n,arguments)}},{key:"fromDataURL",value:function(e){var t=this,n=new Image,r=window.devicePixelRatio||1,o=this._canvas.width/r,a=this._canvas.height/r;this._reset(),n.src=e,n.onload=function(){t._ctx.drawImage(n,0,0,o,a)},this._isEmpty=!1}},{key:"isEmpty",value:function(){return this._isEmpty}},{key:"_resizeCanvas",value:function(){var e=this._ctx,t=this._canvas,n=Math.max(window.devicePixelRatio||1,1);t.width=t.offsetWidth*n,t.height=t.offsetHeight*n,e.scale(n,n),this._isEmpty=!0}},{key:"_reset",value:function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._isEmpty=!0,this._ctx.fillStyle=this.penColor}},{key:"_handleMouseEvents",value:function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown.bind(this)),this._canvas.addEventListener("mousemove",this._handleMouseMove.bind(this)),document.addEventListener("mouseup",this._handleMouseUp.bind(this)),window.addEventListener("resize",this._resizeCanvas.bind(this))}},{key:"_handleTouchEvents",value:function(){this._canvas.style.msTouchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart.bind(this)),this._canvas.addEventListener("touchmove",this._handleTouchMove.bind(this)),document.addEventListener("touchend",this._handleTouchEnd.bind(this))}},{key:"off",value:function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),document.removeEventListener("touchend",this._handleTouchEnd),window.removeEventListener("resize",this._resizeCanvas)}},{key:"_handleMouseDown",value:function(e){1===e.which&&(this._mouseButtonDown=!0,this._strokeBegin(e))}},{key:"_handleMouseMove",value:function(e){this._mouseButtonDown&&this._strokeUpdate(e)}},{key:"_handleMouseUp",value:function(e){1===e.which&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(e))}},{key:"_handleTouchStart",value:function(e){var t=e.changedTouches[0];this._strokeBegin(t)}},{key:"_handleTouchMove",value:function(e){e.preventDefault();var t=e.changedTouches[0];this._strokeUpdate(t)}},{key:"_handleTouchEnd",value:function(e){var t=e.target===this._canvas;t&&this._strokeEnd(e)}},{key:"_strokeUpdate",value:function(e){var t=this._createPoint(e);this._addPoint(t)}},{key:"_strokeBegin",value:function(e){this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)}},{key:"_strokeDraw",value:function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()}},{key:"_strokeEnd",value:function(e){var t=this.points.length>2,n=this.points[0];!t&&n&&this._strokeDraw(n),"function"==typeof this.onEnd&&this.onEnd(e)}},{key:"_createPoint",value:function(e){var t=this._canvas.getBoundingClientRect();return new f.default(e.clientX-t.left,e.clientY-t.top)}},{key:"_addPoint",value:function(e){var t,n,r,o,a=this.points;a.push(e),a.length>2&&(3===a.length&&a.unshift(a[0]),o=this._calculateCurveControlPoints(a[0],a[1],a[2]),t=o.c2,o=this._calculateCurveControlPoints(a[1],a[2],a[3]),n=o.c1,r=new c.default(a[1],t,n,a[2]),this._addCurve(r),a.shift())}},{key:"_calculateCurveControlPoints",value:function(e,t,n){var r=e.x-t.x,o=e.y-t.y,a=t.x-n.x,i=t.y-n.y,s={x:(e.x+t.x)/2,y:(e.y+t.y)/2},u={x:(t.x+n.x)/2,y:(t.y+n.y)/2},c=Math.sqrt(r*r+o*o),l=Math.sqrt(a*a+i*i),d=s.x-u.x,p=s.y-u.y,h=l/(c+l),m={x:u.x+d*h,y:u.y+p*h},g=t.x-m.x,v=t.y-m.y;return{c1:new f.default(s.x+g,s.y+v),c2:new f.default(u.x+g,u.y+v)}}},{key:"_addCurve",value:function(e){var t,n,r=e.startPoint,o=e.endPoint;t=o.velocityFrom(r),t=this.velocityFilterWeight*t+(1-this.velocityFilterWeight)*this._lastVelocity,n=this._strokeWidth(t),this._drawCurve(e,this._lastWidth,n),this._lastVelocity=t,this._lastWidth=n}},{key:"_drawPoint",value:function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}},{key:"_drawCurve",value:function(e,t,n){var r,o,a,i,s,u,c,l,f,d,p,h=this._ctx,m=n-t;for(r=Math.floor(e.length()),h.beginPath(),a=0;r>a;a++)u=(s=(i=a/r)*i)*i,d=(f=(l=(c=1-i)*c)*c)*e.startPoint.x,d+=3*l*i*e.control1.x,d+=3*c*s*e.control2.x,d+=u*e.endPoint.x,p=f*e.startPoint.y,p+=3*l*i*e.control1.y,p+=3*c*s*e.control2.y,p+=u*e.endPoint.y,o=t+u*m,this._drawPoint(d,p,o);h.closePath(),h.fill()}},{key:"_strokeWidth",value:function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}},{key:"render",value:function(){return s.default.createElement("div",{id:"signature-pad",className:"m-signature-pad"},s.default.createElement("div",{className:"m-signature-pad--body"},s.default.createElement("canvas",{ref:"cv"})),this.props.clearButton&&s.default.createElement("div",{className:"m-signature-pad--footer"},s.default.createElement("button",{className:"btn btn-default button clear",onClick:this.clear.bind(this)},"Clear")))}}]),t}(s.default.Component);t.default=d,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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}}(),r=function(){function e(t,n,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.x=t,this.y=n,this.time=r||(new Date).getTime()}return n(e,[{key:"velocityFrom",value:function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1}},{key:"distanceTo",value:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}}]),e}();t.default=r,e.exports=t.default},function(e,t){e.exports=r}]))},function(e,t,n){"use strict";var r=function(){var e={tolerance:0,duration:800,easing:"easeOutQuart",container:window,callback:function(){}};function t(e,t,n,r){return e/=r,-n*(--e*e*e*e-1)+t}function n(e,t){var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function r(e){return e instanceof HTMLElement?e.scrollTop:e.pageYOffset}function o(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=n(e,r),this.easeFunctions=n({easeOutQuart:t},o)}return o.prototype.registerTrigger=function(e,t){var r=this;if(e){var o=e.getAttribute("href")||e.getAttribute("data-target"),a=o&&"#"!==o?document.getElementById(o.substring(1)):document.body,i=n(this.options,function(e,t){var n={};return Object.keys(t).forEach(function(t){var r=e.getAttribute("data-mt-".concat(t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})));r&&(n[t]=isNaN(r)?r:parseInt(r,10))}),n}(e,this.options));"function"==typeof t&&(i.callback=t);var s=function(e){e.preventDefault(),r.move(a,i)};return e.addEventListener("click",s,!1),function(){return e.removeEventListener("click",s,!1)}}},o.prototype.move=function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===e||e){o=n(this.options,o);var a,i="number"==typeof e?e:e.getBoundingClientRect().top,s=r(o.container),u=null;i-=o.tolerance;window.requestAnimationFrame(function n(c){var l=r(t.options.container);u||(u=c-1);var f=c-u;if(a&&(i>0&&a>l||i<0&&a<l))return o.callback(e);a=l;var d=t.easeFunctions[o.easing](f,s,i,o.duration);o.container.scroll(0,d),f<o.duration?window.requestAnimationFrame(n):(o.container.scroll(0,i+s),o.callback(e))})}},o.prototype.addEaseFunction=function(e,t){this.easeFunctions[e]=t},o}();e.exports=r},function(e,t,n){var r=n(4);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(12),o=n(61),a=n(15),i="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&r(e)==i}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=n&&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()},r))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function i(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=i(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:u(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?l:10===e?f:l||f}function p(e){if(!e)return document.documentElement;for(var t=d(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"===i(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(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,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,u=a.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(i=u).nodeName)||"HTML"!==s&&p(i.firstElementChild)!==i?p(u):u;var c=h(e);return c.host?m(c.host,t):m(e,h(t).host)}function g(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function v(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 b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function y(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=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}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},x=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 D(e){return x({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=g(e,"top"),r=g(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},a="HTML"===e.nodeName?y(e.ownerDocument):{},s=a.width||e.clientWidth||o.width,u=a.height||e.clientHeight||o.height,c=e.offsetWidth-s,l=e.offsetHeight-u;if(c||l){var f=i(e);c-=v(f,"x"),l-=v(f,"y"),o.width-=c,o.height-=l}return D(o)}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),o="HTML"===t.nodeName,a=k(e),s=k(t),c=u(e),l=i(t),f=parseFloat(l.borderTopWidth),p=parseFloat(l.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=D({top:a.top-s.top-f,left:a.left-s.left-p,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var m=parseFloat(l.marginTop),v=parseFloat(l.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-v,h.right-=p-v,h.marginTop=m,h.marginLeft=v}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(t,"top"),o=g(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(h,t)),h}function E(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function M(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},l=o?E(e):m(e,c(t));if("viewport"===r)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=S(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:g(n),s=t?0:g(n,"left");return D({top:i-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:a})}(l,o);else{var f=void 0;"scrollParent"===r?"BODY"===(f=u(s(t))).nodeName&&(f=e.ownerDocument.documentElement):f="window"===r?e.ownerDocument.documentElement:r;var d=S(f,l,o);if("HTML"!==f.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===i(t,"position"))return!0;var r=s(t);return!!r&&e(r)}(l))a=d;else{var p=y(e.ownerDocument),h=p.height,v=p.width;a.top+=d.top-d.marginTop,a.bottom=h+d.top,a.left+=d.left-d.marginLeft,a.right=v+d.left}}var b="number"==typeof(n=n||0);return a.left+=b?n:n.left||0,a.top+=b?n:n.top||0,a.right-=b?n:n.right||0,a.bottom-=b?n:n.bottom||0,a}function j(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=M(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},u=Object.keys(s).map(function(e){return x({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return S(n,r?E(t):m(t,c(n)),r)}function P(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 T(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 A(e,t,n){n=n.split("-")[0];var r=P(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",u=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[c]:t[T(s)],o}function I(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function L(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=I(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&&a(n)&&(t.offsets.popper=D(t.offsets.popper),t.offsets.reference=D(t.offsets.reference),t=n(t,e))}),t}function N(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function R(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],a=o?""+o+n:e;if(void 0!==document.body.style[a])return a}return null}function F(e){var t=e.ownerDocument;return t?t.defaultView:window}function V(e,t,n,r){n.updateBound=r,F(e).addEventListener("resize",n.updateBound,{passive:!0});var o=u(e);return function e(t,n,r,o){var a="BODY"===t.nodeName,i=a?t.ownerDocument.defaultView:t;i.addEventListener(n,r,{passive:!0}),a||e(u(i.parentNode),n,r,o),o.push(i)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function H(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,F(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))}function U(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function W(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&U(t[n])&&(r="px"),e.style[n]=t[n]+r})}var z=n&&/Firefox/i.test(navigator.userAgent);function B(e,t,n){var r=I(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 a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var Y=["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"],K=Y.slice(3);function q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=K.indexOf(e),r=K.slice(n+1).concat(K.slice(0,n));return t?r.reverse():r}var G={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function $(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=i.indexOf(I(i,function(e){return-1!==e.search(/,|\s/)}));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(u)[0]]),[i[s].split(u)[1]].concat(i.slice(s+1))]:[i];return(c=c.map(function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return D(s)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){U(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var J={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,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:C({},u,a[u]),end:C({},u,a[u]+a[c]-i[c])};e.offsets.popper=x({},i,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],u=void 0;return u=U(+n)?[+n,0]:$(n,a,i,s),"left"===s?(a.top+=u[0],a.left-=u[1]):"right"===s?(a.top+=u[0],a.left+=u[1]):"top"===s?(a.left+=u[0],a.top-=u[1]):"bottom"===s&&(a.left+=u[0],a.top+=u[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=R("transform"),o=e.instance.popper.style,a=o.top,i=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=M(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),C({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),C({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=x({},l,f[t](e))}),e.offsets.popper=l,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],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",u=i?"left":"top",c=i?"width":"height";return n[s]<a(r[u])&&(e.offsets.popper[u]=a(r[u])-n[c]),n[u]>a(r[s])&&(e.offsets.popper[u]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!B(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],a=e.offsets,s=a.popper,u=a.reference,c=-1!==["left","right"].indexOf(o),l=c?"height":"width",f=c?"Top":"Left",d=f.toLowerCase(),p=c?"left":"top",h=c?"bottom":"right",m=P(r)[l];u[h]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(u[h]-m)),u[d]+m>s[h]&&(e.offsets.popper[d]+=u[d]+m-s[h]),e.offsets.popper=D(e.offsets.popper);var g=u[d]+u[l]/2-m/2,v=i(e.instance.popper),b=parseFloat(v["margin"+f]),y=parseFloat(v["border"+f+"Width"]),w=g-e.offsets.popper[d]-b-y;return w=Math.max(Math.min(s[l]-m,w),0),e.arrowElement=r,e.offsets.arrow=(C(n={},d,Math.round(w)),C(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(N(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=M(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=T(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case G.FLIP:i=[r,o];break;case G.CLOCKWISE:i=q(r);break;case G.COUNTERCLOCKWISE:i=q(r,!0);break;default:i=t.behavior}return i.forEach(function(s,u){if(r!==s||i.length===u+1)return e;r=e.placement.split("-")[0],o=T(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),g=f(c.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&p||b&&"end"===a&&h||!b&&"start"===a&&m||!b&&"end"===a&&g),w=!!t.flipVariationsByContent&&(b&&"start"===a&&h||b&&"end"===a&&p||!b&&"start"===a&&g||!b&&"end"===a&&m),O=y||w;(d||v||O)&&(e.flipped=!0,(d||v)&&(r=i[u+1]),O&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=x({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=L(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,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=T(t),e.offsets.popper=D(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!B(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=I(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,a=I(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,s=p(e.instance.popper),u=k(s),c={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,a=Math.round,i=Math.floor,s=function(e){return e},u=a(o.width),c=a(r.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||u%2==c%2?a:i:s,p=t?a:s;return{left:d(u%2==1&&c%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||!z),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=R("transform"),m=void 0,g=void 0;if(g="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,i&&h)c[h]="translate3d("+m+"px, "+g+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var v="bottom"===f?-1:1,b="right"===d?-1:1;c[f]=g*v,c[d]=m*b,c.willChange=f+", "+d}var y={"x-placement":e.placement};return e.attributes=x({},y,e.attributes),e.styles=x({},c,e.styles),e.arrowStyles=x({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return W(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&&W(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=_(o,t,e,n.positionFixed),i=j(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),W(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},X=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=x({},e.Defaults,i),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(x({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=x({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return x({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return O(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=j(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=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=L(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,N(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[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=V(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return H.call(this)}}]),e}();X.Utils=("undefined"!=typeof window?window:e).PopperUtils,X.placements=Y,X.Defaults=J,t.a=X}).call(this,n(14))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=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}}(),a=v(n(0)),i=v(n(3)),s=v(n(7)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(28)),c=v(n(36)),l=v(n(9)),f=v(n(37)),d=v(n(38)),p=v(n(39)),h=v(n(40)),m=n(6),g=n(41);function v(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var y=(b((r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.startValue=null,n.node=null,n.trackNode=null,n.isSliderDragging=!1,n.lastKeyMoved=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,null,[{key:"propTypes",get:function(){return{allowSameValues:i.default.bool,ariaLabelledby:i.default.string,ariaControls:i.default.string,classNames:i.default.objectOf(i.default.string),disabled:i.default.bool,draggableTrack:i.default.bool,formatLabel:i.default.func,maxValue:f.default,minValue:f.default,name:i.default.string,onChangeStart:i.default.func,onChange:i.default.func.isRequired,onChangeComplete:i.default.func,step:i.default.number,value:d.default}}},{key:"defaultProps",get:function(){return{allowSameValues:!1,classNames:c.default,disabled:!1,maxValue:10,minValue:0,step:1}}}]),o(t,[{key:"componentWillUnmount",value:function(){this.removeDocumentMouseUpListener(),this.removeDocumentTouchEndListener()}},{key:"getComponentClassName",value:function(){return this.props.disabled?this.props.classNames.disabledInputRange:this.props.classNames.inputRange}},{key:"getTrackClientRect",value:function(){return this.trackNode.getClientRect()}},{key:"getKeyByPosition",value:function(e){var t=u.getValueFromProps(this.props,this.isMultiValue()),n=u.getPositionsFromValues(t,this.props.minValue,this.props.maxValue,this.getTrackClientRect());if(this.isMultiValue()&&(0,m.distanceTo)(e,n.min)<(0,m.distanceTo)(e,n.max))return"min";return"max"}},{key:"getKeys",value:function(){return this.isMultiValue()?["min","max"]:["max"]}},{key:"hasStepDifference",value:function(e){var t=u.getValueFromProps(this.props,this.isMultiValue());return(0,m.length)(e.min,t.min)>=this.props.step||(0,m.length)(e.max,t.max)>=this.props.step}},{key:"isMultiValue",value:function(){return(0,m.isObject)(this.props.value)}},{key:"isWithinRange",value:function(e){return this.isMultiValue()?e.min>=this.props.minValue&&e.max<=this.props.maxValue&&this.props.allowSameValues?e.min<=e.max:e.min<e.max:e.max>=this.props.minValue&&e.max<=this.props.maxValue}},{key:"shouldUpdate",value:function(e){return this.isWithinRange(e)&&this.hasStepDifference(e)}},{key:"updatePosition",value:function(e,t){var n=u.getValueFromProps(this.props,this.isMultiValue()),r=u.getPositionsFromValues(n,this.props.minValue,this.props.maxValue,this.getTrackClientRect());r[e]=t,this.lastKeyMoved=e,this.updatePositions(r)}},{key:"updatePositions",value:function(e){var t={min:u.getValueFromPosition(e.min,this.props.minValue,this.props.maxValue,this.getTrackClientRect()),max:u.getValueFromPosition(e.max,this.props.minValue,this.props.maxValue,this.getTrackClientRect())},n={min:u.getStepValueFromValue(t.min,this.props.step),max:u.getStepValueFromValue(t.max,this.props.step)};this.updateValues(n)}},{key:"updateValue",value:function(e,t){var n=u.getValueFromProps(this.props,this.isMultiValue());n[e]=t,this.updateValues(n)}},{key:"updateValues",value:function(e){this.shouldUpdate(e)&&this.props.onChange(this.isMultiValue()?e:e.max)}},{key:"incrementValue",value:function(e){var t=u.getValueFromProps(this.props,this.isMultiValue())[e]+this.props.step;this.updateValue(e,t)}},{key:"decrementValue",value:function(e){var t=u.getValueFromProps(this.props,this.isMultiValue())[e]-this.props.step;this.updateValue(e,t)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"addDocumentTouchEndListener",value:function(){this.removeDocumentTouchEndListener(),this.node.ownerDocument.addEventListener("touchend",this.handleTouchEnd)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentTouchEndListener",value:function(){this.node.ownerDocument.removeEventListener("touchend",this.handleTouchEnd)}},{key:"handleSliderDrag",value:function(e,t){var n=this;if(!this.props.disabled){var r=u.getPositionFromEvent(e,this.getTrackClientRect());this.isSliderDragging=!0,requestAnimationFrame(function(){return n.updatePosition(t,r)})}}},{key:"handleTrackDrag",value:function(e,t){if(!this.props.disabled&&this.props.draggableTrack&&!this.isSliderDragging){var n=this.props,r=n.maxValue,o=n.minValue,a=n.value,i=a.max,s=a.min,c=u.getPositionFromEvent(e,this.getTrackClientRect()),l=u.getValueFromPosition(c,o,r,this.getTrackClientRect()),f=u.getStepValueFromValue(l,this.props.step),d=u.getPositionFromEvent(t,this.getTrackClientRect()),p=u.getValueFromPosition(d,o,r,this.getTrackClientRect()),h=u.getStepValueFromValue(p,this.props.step)-f,m={min:s-h,max:i-h};this.updateValues(m)}}},{key:"handleSliderKeyDown",value:function(e,t){if(!this.props.disabled)switch(e.keyCode){case g.LEFT_ARROW:case g.DOWN_ARROW:e.preventDefault(),this.decrementValue(t);break;case g.RIGHT_ARROW:case g.UP_ARROW:e.preventDefault(),this.incrementValue(t)}}},{key:"handleTrackMouseDown",value:function(e,t){if(!this.props.disabled){var n=this.props,r=n.maxValue,o=n.minValue,a=n.value,i=a.max,s=a.min;e.preventDefault();var c=u.getValueFromPosition(t,o,r,this.getTrackClientRect()),l=u.getStepValueFromValue(c,this.props.step);(!this.props.draggableTrack||l>i||l<s)&&this.updatePosition(this.getKeyByPosition(t),t)}}},{key:"handleInteractionStart",value:function(){this.props.onChangeStart&&this.props.onChangeStart(this.props.value),this.props.onChangeComplete&&!(0,m.isDefined)(this.startValue)&&(this.startValue=this.props.value)}},{key:"handleInteractionEnd",value:function(){this.isSliderDragging&&(this.isSliderDragging=!1),this.props.onChangeComplete&&(0,m.isDefined)(this.startValue)&&(this.startValue!==this.props.value&&this.props.onChangeComplete(this.props.value),this.startValue=null)}},{key:"handleKeyDown",value:function(e){this.handleInteractionStart(e)}},{key:"handleKeyUp",value:function(e){this.handleInteractionEnd(e)}},{key:"handleMouseDown",value:function(e){this.handleInteractionStart(e),this.addDocumentMouseUpListener()}},{key:"handleMouseUp",value:function(e){this.handleInteractionEnd(e),this.removeDocumentMouseUpListener()}},{key:"handleTouchStart",value:function(e){this.handleInteractionStart(e),this.addDocumentTouchEndListener()}},{key:"handleTouchEnd",value:function(e){this.handleInteractionEnd(e),this.removeDocumentTouchEndListener()}},{key:"renderSliders",value:function(){var e=this,t=u.getValueFromProps(this.props,this.isMultiValue()),n=u.getPercentagesFromValues(t,this.props.minValue,this.props.maxValue);return(this.props.allowSameValues&&"min"===this.lastKeyMoved?this.getKeys().reverse():this.getKeys()).map(function(r){var o=t[r],i=n[r],s=e.props,u=s.maxValue,c=s.minValue;return"min"===r?u=t.max:c=t.min,a.default.createElement(p.default,{ariaLabelledby:e.props.ariaLabelledby,ariaControls:e.props.ariaControls,classNames:e.props.classNames,formatLabel:e.props.formatLabel,key:r,maxValue:u,minValue:c,onSliderDrag:e.handleSliderDrag,onSliderKeyDown:e.handleSliderKeyDown,percentage:i,type:r,value:o})})}},{key:"renderHiddenInputs",value:function(){var e=this;if(!this.props.name)return[];var t=this.isMultiValue(),n=u.getValueFromProps(this.props,t);return this.getKeys().map(function(r){var o=n[r],i=t?""+e.props.name+(0,m.captialize)(r):e.props.name;return a.default.createElement("input",{key:r,type:"hidden",name:i,value:o})})}},{key:"render",value:function(){var e=this,t=this.getComponentClassName(),n=u.getValueFromProps(this.props,this.isMultiValue()),r=u.getPercentagesFromValues(n,this.props.minValue,this.props.maxValue);return a.default.createElement("div",{"aria-disabled":this.props.disabled,ref:function(t){e.node=t},className:t,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart},a.default.createElement(l.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"min"},this.props.minValue),a.default.createElement(h.default,{classNames:this.props.classNames,draggableTrack:this.props.draggableTrack,ref:function(t){e.trackNode=t},percentages:r,onTrackDrag:this.handleTrackDrag,onTrackMouseDown:this.handleTrackMouseDown},this.renderSliders()),a.default.createElement(l.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"max"},this.props.maxValue),this.renderHiddenInputs())}}]),t}()).prototype,"handleSliderDrag",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleSliderDrag"),r.prototype),b(r.prototype,"handleTrackDrag",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTrackDrag"),r.prototype),b(r.prototype,"handleSliderKeyDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleSliderKeyDown"),r.prototype),b(r.prototype,"handleTrackMouseDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTrackMouseDown"),r.prototype),b(r.prototype,"handleInteractionStart",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleInteractionStart"),r.prototype),b(r.prototype,"handleInteractionEnd",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleInteractionEnd"),r.prototype),b(r.prototype,"handleKeyDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyDown"),r.prototype),b(r.prototype,"handleKeyUp",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyUp"),r.prototype),b(r.prototype,"handleMouseDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),b(r.prototype,"handleMouseUp",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),b(r.prototype,"handleTouchStart",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),b(r.prototype,"handleTouchEnd",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchEnd"),r.prototype),r);t.default=y,e.exports=t.default},function(e,t,n){"use strict";var r=n(27);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.getPercentageFromPosition=a,t.getValueFromPosition=function(e,t,n,r){var o=a(e,r);return t+(n-t)*o},t.getValueFromProps=function(e,t){if(t)return r({},e.value);return{min:e.minValue,max:e.value}},t.getPercentageFromValue=i,t.getPercentagesFromValues=function(e,t,n){return{min:i(e.min,t,n),max:i(e.max,t,n)}},t.getPositionFromValue=s,t.getPositionsFromValues=function(e,t,n,r){return{min:s(e.min,t,n,r),max:s(e.max,t,n,r)}},t.getPositionFromEvent=function(e,t){var n=t.width,r=(e.touches?e.touches[0]:e).clientX;return{x:(0,o.clamp)(r-t.left,0,n),y:0}},t.getStepValueFromValue=function(e,t){return Math.round(e/t)*t};var o=n(6);function a(e,t){var n=t.width;return e.x/n||0}function i(e,t,n){return((0,o.clamp)(e,t,n)-t)/(n-t)||0}function s(e,t,n,r){var o=r.width;return{x:i(e,t,n)*o,y:0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return Math.min(Math.max(e,t),n)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=Math.pow(t.x-e.x,2),r=Math.pow(t.y-e.y,2);return Math.sqrt(n+r)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!=e},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"number"==typeof e},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.default=function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Math.abs(e-t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={activeTrack:"input-range__track input-range__track--active",disabledInputRange:"input-range input-range--disabled",inputRange:"input-range",labelContainer:"input-range__label-container",maxLabel:"input-range__label input-range__label--max",minLabel:"input-range__label input-range__label--min",slider:"input-range__slider",sliderContainer:"input-range__slider-container",track:"input-range__track input-range__track--background",valueLabel:"input-range__label input-range__label--value"},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.maxValue,n=e.minValue;if(!(0,r.isNumber)(n)||!(0,r.isNumber)(t))return new Error('"minValue" and "maxValue" must be a number');if(n>=t)return new Error('"minValue" must be smaller than "maxValue"')};var r=n(6);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.maxValue,o=e.minValue,a=e[t];if(!((0,r.isNumber)(a)||(0,r.isObject)(a)&&(0,r.isNumber)(a.min)&&(0,r.isNumber)(a.max)))return new Error('"'+t+'" must be a number or a range object');if((0,r.isNumber)(a)&&(a<o||a>n))return new Error('"'+t+'" must be in between "minValue" and "maxValue"');if((0,r.isObject)(a)&&(a.min<o||a.min>n||a.max<o||a.max>n))return new Error('"'+t+'" must be in between "minValue" and "maxValue"')};var r=n(6);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=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}}(),a=c(n(0)),i=c(n(3)),s=c(n(7)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var f=(l((r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.node=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,null,[{key:"propTypes",get:function(){return{ariaLabelledby:i.default.string,ariaControls:i.default.string,classNames:i.default.objectOf(i.default.string).isRequired,formatLabel:i.default.func,maxValue:i.default.number,minValue:i.default.number,onSliderDrag:i.default.func.isRequired,onSliderKeyDown:i.default.func.isRequired,percentage:i.default.number.isRequired,type:i.default.string.isRequired,value:i.default.number.isRequired}}}]),o(t,[{key:"componentWillUnmount",value:function(){this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener(),this.removeDocumentTouchEndListener(),this.removeDocumentTouchMoveListener()}},{key:"getStyle",value:function(){return{position:"absolute",left:100*(this.props.percentage||0)+"%"}}},{key:"addDocumentMouseMoveListener",value:function(){this.removeDocumentMouseMoveListener(),this.node.ownerDocument.addEventListener("mousemove",this.handleMouseMove)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"addDocumentTouchMoveListener",value:function(){this.removeDocumentTouchMoveListener(),this.node.ownerDocument.addEventListener("touchmove",this.handleTouchMove)}},{key:"addDocumentTouchEndListener",value:function(){this.removeDocumentTouchEndListener(),this.node.ownerDocument.addEventListener("touchend",this.handleTouchEnd)}},{key:"removeDocumentMouseMoveListener",value:function(){this.node.ownerDocument.removeEventListener("mousemove",this.handleMouseMove)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentTouchMoveListener",value:function(){this.node.ownerDocument.removeEventListener("touchmove",this.handleTouchMove)}},{key:"removeDocumentTouchEndListener",value:function(){this.node.ownerDocument.removeEventListener("touchend",this.handleTouchEnd)}},{key:"handleMouseDown",value:function(){this.addDocumentMouseMoveListener(),this.addDocumentMouseUpListener()}},{key:"handleMouseUp",value:function(){this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener()}},{key:"handleMouseMove",value:function(e){this.props.onSliderDrag(e,this.props.type)}},{key:"handleTouchStart",value:function(){this.addDocumentTouchEndListener(),this.addDocumentTouchMoveListener()}},{key:"handleTouchMove",value:function(e){this.props.onSliderDrag(e,this.props.type)}},{key:"handleTouchEnd",value:function(){this.removeDocumentTouchMoveListener(),this.removeDocumentTouchEndListener()}},{key:"handleKeyDown",value:function(e){this.props.onSliderKeyDown(e,this.props.type)}},{key:"render",value:function(){var e=this,t=this.getStyle();return a.default.createElement("span",{className:this.props.classNames.sliderContainer,ref:function(t){e.node=t},style:t},a.default.createElement(u.default,{classNames:this.props.classNames,formatLabel:this.props.formatLabel,type:"value"},this.props.value),a.default.createElement("div",{"aria-labelledby":this.props.ariaLabelledby,"aria-controls":this.props.ariaControls,"aria-valuemax":this.props.maxValue,"aria-valuemin":this.props.minValue,"aria-valuenow":this.props.value,className:this.props.classNames.slider,draggable:"false",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,role:"slider",tabIndex:"0"}))}}]),t}()).prototype,"handleMouseDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),l(r.prototype,"handleMouseUp",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),l(r.prototype,"handleMouseMove",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseMove"),r.prototype),l(r.prototype,"handleTouchStart",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),l(r.prototype,"handleTouchMove",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchMove"),r.prototype),l(r.prototype,"handleTouchEnd",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchEnd"),r.prototype),l(r.prototype,"handleKeyDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyDown"),r.prototype),r);t.default=f,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=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}}(),a=u(n(0)),i=u(n(3)),s=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var l=(c((r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.node=null,n.trackDragEvent=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,null,[{key:"propTypes",get:function(){return{children:i.default.node.isRequired,classNames:i.default.objectOf(i.default.string).isRequired,draggableTrack:i.default.bool,onTrackDrag:i.default.func,onTrackMouseDown:i.default.func.isRequired,percentages:i.default.objectOf(i.default.number).isRequired}}}]),o(t,[{key:"getClientRect",value:function(){return this.node.getBoundingClientRect()}},{key:"getActiveTrackStyle",value:function(){var e=100*(this.props.percentages.max-this.props.percentages.min)+"%";return{left:100*this.props.percentages.min+"%",width:e}}},{key:"addDocumentMouseMoveListener",value:function(){this.removeDocumentMouseMoveListener(),this.node.ownerDocument.addEventListener("mousemove",this.handleMouseMove)}},{key:"addDocumentMouseUpListener",value:function(){this.removeDocumentMouseUpListener(),this.node.ownerDocument.addEventListener("mouseup",this.handleMouseUp)}},{key:"removeDocumentMouseMoveListener",value:function(){this.node.ownerDocument.removeEventListener("mousemove",this.handleMouseMove)}},{key:"removeDocumentMouseUpListener",value:function(){this.node.ownerDocument.removeEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseMove",value:function(e){this.props.draggableTrack&&(null!==this.trackDragEvent&&this.props.onTrackDrag(e,this.trackDragEvent),this.trackDragEvent=e)}},{key:"handleMouseUp",value:function(){this.props.draggableTrack&&(this.removeDocumentMouseMoveListener(),this.removeDocumentMouseUpListener(),this.trackDragEvent=null)}},{key:"handleMouseDown",value:function(e){var t={x:(e.touches?e.touches[0].clientX:e.clientX)-this.getClientRect().left,y:0};this.props.onTrackMouseDown(e,t),this.props.draggableTrack&&(this.addDocumentMouseMoveListener(),this.addDocumentMouseUpListener())}},{key:"handleTouchStart",value:function(e){e.preventDefault(),this.handleMouseDown(e)}},{key:"render",value:function(){var e=this,t=this.getActiveTrackStyle();return a.default.createElement("div",{className:this.props.classNames.track,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,ref:function(t){e.node=t}},a.default.createElement("div",{style:t,className:this.props.classNames.activeTrack}),this.props.children)}}]),t}()).prototype,"handleMouseMove",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseMove"),r.prototype),c(r.prototype,"handleMouseUp",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseUp"),r.prototype),c(r.prototype,"handleMouseDown",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),c(r.prototype,"handleTouchStart",[s.default],Object.getOwnPropertyDescriptor(r.prototype,"handleTouchStart"),r.prototype),r);t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DOWN_ARROW=40,t.LEFT_ARROW=37,t.RIGHT_ARROW=39,t.UP_ARROW=38},function(e,t,n){e.exports=function(){"use strict";var e=function(){return(e=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 t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],r={_disable:[],_enable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},o={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},a=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},i=function(e){return!0===e?1:0};function s(e,t,n){var r;return void 0===n&&(n=!1),function(){var o=this,a=arguments;null!==r&&clearTimeout(r),r=window.setTimeout(function(){r=null,n||e.apply(o,a)},t),n&&!r&&e.apply(o,a)}}var u=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function l(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function f(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function d(e,t){var n=l("div","numInputWrapper"),r=l("input","numInput "+e),o=l("span","arrowUp"),a=l("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var i in t)r.setAttribute(i,t[i]);return n.appendChild(r),n.appendChild(o),n.appendChild(a),n}function p(e){try{if("function"==typeof e.composedPath){var t=e.composedPath();return t[0]}return e.target}catch(t){return e.target}}var h=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},g={D:h,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*i(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var r=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:h,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:h,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},v={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[b.w(e,t,n)]},F:function(e,t,n){return m(b.n(e,t,n)-1,!1,t)},G:function(e,t,n){return a(b.h(e,t,n))},H:function(e){return a(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[i(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return a(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return a(e.getFullYear(),4)},d:function(e){return a(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return a(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return a(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},y=function(e){var t=e.config,n=void 0===t?r:t,a=e.l10n,i=void 0===a?o:a,s=e.isMobile,u=void 0!==s&&s;return function(e,t,r){var o=r||i;return void 0===n.formatDate||u?t.split("").map(function(t,r,a){return b[t]&&"\\"!==a[r-1]?b[t](e,o,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,o)}},w=function(e){var t=e.config,n=void 0===t?r:t,a=e.l10n,i=void 0===a?o:a;return function(e,t,o,a){if(0===e||e){var s,u=a||i,c=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var l=t||(n||r).dateFormat,f=String(e).trim();if("today"===f)s=new Date,o=!0;else if(/Z$/.test(f)||/GMT$/.test(f))s=new Date(e);else if(n&&n.parseDate)s=n.parseDate(e,l);else{s=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var d=void 0,p=[],h=0,m=0,b="";h<l.length;h++){var y=l[h],w="\\"===y,O="\\"===l[h-1]||w;if(v[y]&&!O){b+=v[y];var C=new RegExp(b).exec(e);C&&(d=!0)&&p["Y"!==y?"push":"unshift"]({fn:g[y],val:C[++m]})}else w||(b+=".");p.forEach(function(e){var t=e.fn,n=e.val;return s=t(s,n,u)||s})}s=d?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===o&&s.setHours(0,0,0,0),s;n.errorHandler(new Error("Invalid date provided: "+c))}}};function O(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var C=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},x={DAY:864e5};"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},o=0,a=t;o<a.length;o++){var i=a[o];r(i)}return e});var D=300;function k(h,g){var b={config:e(e({},r),E.defaultConfig),l10n:o};function k(e){return e.bind(b)}function S(){var e=b.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==b.calendarContainer&&(b.calendarContainer.style.visibility="hidden",b.calendarContainer.style.display="block"),void 0!==b.daysContainer){var t=(b.days.offsetWidth+1)*e.showMonths;b.daysContainer.style.width=t+"px",b.calendarContainer.style.width=t+(void 0!==b.weekWrapper?b.weekWrapper.offsetWidth:0)+"px",b.calendarContainer.style.removeProperty("visibility"),b.calendarContainer.style.removeProperty("display")}})}function M(e){if(0===b.selectedDates.length){var t=void 0!==b.config.minDate?new Date(b.config.minDate.getTime()):new Date,n=P(),r=n.hours,o=n.minutes,s=n.seconds;t.setHours(r,o,s,0),b.setDate(t,!1)}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=p(e),r=n;void 0!==b.amPM&&n===b.amPM&&(b.amPM.textContent=b.l10n.amPM[i(b.amPM.textContent===b.l10n.amPM[0])]);var o=parseFloat(r.getAttribute("min")),s=parseFloat(r.getAttribute("max")),u=parseFloat(r.getAttribute("step")),c=parseInt(r.value,10),l=e.delta||(t?38===e.which?1:-1:0),f=c+u*l;if(void 0!==r.value&&2===r.value.length){var d=r===b.hourElement,h=r===b.minuteElement;f<o?(f=s+f+i(!d)+(i(d)&&i(!b.amPM)),h&&V(void 0,-1,b.hourElement)):f>s&&(f=r===b.hourElement?f-s-i(!b.amPM):o,h&&V(void 0,1,b.hourElement)),b.amPM&&d&&(1===u?f+c===23:Math.abs(f-c)>u)&&(b.amPM.textContent=b.l10n.amPM[i(b.amPM.textContent===b.l10n.amPM[0])]),r.value=a(f)}}(e);var u=b._input.value;j(),xe(),b._input.value!==u&&b._debouncedChange()}function j(){if(void 0!==b.hourElement&&void 0!==b.minuteElement){var e,t,n=(parseInt(b.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(b.minuteElement.value,10)||0)%60,o=void 0!==b.secondElement?(parseInt(b.secondElement.value,10)||0)%60:0;void 0!==b.amPM&&(e=n,t=b.amPM.textContent,n=e%12+12*i(t===b.l10n.amPM[1]));var a=void 0!==b.config.minTime||b.config.minDate&&b.minDateHasTime&&b.latestSelectedDateObj&&0===O(b.latestSelectedDateObj,b.config.minDate,!0),s=void 0!==b.config.maxTime||b.config.maxDate&&b.maxDateHasTime&&b.latestSelectedDateObj&&0===O(b.latestSelectedDateObj,b.config.maxDate,!0);if(s){var u=void 0!==b.config.maxTime?b.config.maxTime:b.config.maxDate;(n=Math.min(n,u.getHours()))===u.getHours()&&(r=Math.min(r,u.getMinutes())),r===u.getMinutes()&&(o=Math.min(o,u.getSeconds()))}if(a){var c=void 0!==b.config.minTime?b.config.minTime:b.config.minDate;(n=Math.max(n,c.getHours()))===c.getHours()&&(r=Math.max(r,c.getMinutes())),r===c.getMinutes()&&(o=Math.max(o,c.getSeconds()))}T(n,r,o)}}function _(e){var t=e||b.latestSelectedDateObj;t&&T(t.getHours(),t.getMinutes(),t.getSeconds())}function P(){var e=b.config.defaultHour,t=b.config.defaultMinute,n=b.config.defaultSeconds;if(void 0!==b.config.minDate){var r=b.config.minDate.getHours(),o=b.config.minDate.getMinutes();(e=Math.max(e,r))===r&&(t=Math.max(o,t)),e===r&&t===o&&(n=b.config.minDate.getSeconds())}if(void 0!==b.config.maxDate){var a=b.config.maxDate.getHours(),i=b.config.maxDate.getMinutes();(e=Math.min(e,a))===a&&(t=Math.min(i,t)),e===a&&t===i&&(n=b.config.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:n}}function T(e,t,n){void 0!==b.latestSelectedDateObj&&b.latestSelectedDateObj.setHours(e%24,t,n||0,0),b.hourElement&&b.minuteElement&&!b.isMobile&&(b.hourElement.value=a(b.config.time_24hr?e:(12+e)%12+12*i(e%12==0)),b.minuteElement.value=a(t),void 0!==b.amPM&&(b.amPM.textContent=b.l10n.amPM[i(e>=12)]),void 0!==b.secondElement&&(b.secondElement.value=a(n)))}function A(e){var t=p(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&te(n)}function I(e,t,n,r){return t instanceof Array?t.forEach(function(t){return I(e,t,n,r)}):e instanceof Array?e.forEach(function(e){return I(e,t,n,r)}):(e.addEventListener(t,n,r),void b._handlers.push({element:e,event:t,handler:n,options:r}))}function L(){be("onChange")}function N(){if(b.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(b.element.querySelectorAll("[data-"+e+"]"),function(t){return I(t,"click",b[e])})}),b.isMobile)!function(){var e=b.config.enableTime?b.config.noCalendar?"time":"datetime-local":"date";b.mobileInput=l("input",b.input.className+" flatpickr-mobile"),b.mobileInput.tabIndex=1,b.mobileInput.type=e,b.mobileInput.disabled=b.input.disabled,b.mobileInput.required=b.input.required,b.mobileInput.placeholder=b.input.placeholder,b.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",b.selectedDates.length>0&&(b.mobileInput.defaultValue=b.mobileInput.value=b.formatDate(b.selectedDates[0],b.mobileFormatStr)),b.config.minDate&&(b.mobileInput.min=b.formatDate(b.config.minDate,"Y-m-d")),b.config.maxDate&&(b.mobileInput.max=b.formatDate(b.config.maxDate,"Y-m-d")),b.input.getAttribute("step")&&(b.mobileInput.step=String(b.input.getAttribute("step"))),b.input.type="hidden",void 0!==b.altInput&&(b.altInput.type="hidden");try{b.input.parentNode&&b.input.parentNode.insertBefore(b.mobileInput,b.input.nextSibling)}catch(e){}I(b.mobileInput,"change",function(e){b.setDate(p(e).value,!1,b.mobileFormatStr),be("onChange"),be("onClose")})}();else{var e=s(se,50);b._debouncedChange=s(L,D),b.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&I(b.daysContainer,"mouseover",function(e){"range"===b.config.mode&&ie(p(e))}),I(window.document.body,"keydown",ae),b.config.inline||b.config.static||I(window,"resize",e),void 0!==window.ontouchstart?I(window.document,"touchstart",ee):I(window.document,"click",ee),I(window.document,"focus",ee,{capture:!0}),!0===b.config.clickOpens&&(I(b._input,"focus",b.open),I(b._input,"click",b.open)),void 0!==b.daysContainer&&(I(b.monthNav,"click",De),I(b.monthNav,["keyup","increment"],A),I(b.daysContainer,"click",he)),void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement&&(I(b.timeContainer,["increment"],M),I(b.timeContainer,"blur",M,{capture:!0}),I(b.timeContainer,"click",F),I([b.hourElement,b.minuteElement],["focus","click"],function(e){return p(e).select()}),void 0!==b.secondElement&&I(b.secondElement,"focus",function(){return b.secondElement&&b.secondElement.select()}),void 0!==b.amPM&&I(b.amPM,"click",function(e){M(e),L()})),b.config.allowInput&&I(b._input,"blur",oe)}}function R(e,t){var n=void 0!==e?b.parseDate(e):b.latestSelectedDateObj||(b.config.minDate&&b.config.minDate>b.now?b.config.minDate:b.config.maxDate&&b.config.maxDate<b.now?b.config.maxDate:b.now),r=b.currentYear,o=b.currentMonth;try{void 0!==n&&(b.currentYear=n.getFullYear(),b.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,b.config.errorHandler(e)}t&&b.currentYear!==r&&(be("onYearChange"),q()),!t||b.currentYear===r&&b.currentMonth===o||be("onMonthChange"),b.redraw()}function F(e){var t=p(e);~t.className.indexOf("arrow")&&V(e,t.classList.contains("arrowUp")?1:-1)}function V(e,t,n){var r=e&&p(e),o=n||r&&r.parentNode&&r.parentNode.firstChild,a=ye("increment");a.delta=t,o&&o.dispatchEvent(a)}function H(){var e=window.document.createDocumentFragment();if(b.calendarContainer=l("div","flatpickr-calendar"),b.calendarContainer.tabIndex=-1,!b.config.noCalendar){if(e.appendChild((b.monthNav=l("div","flatpickr-months"),b.yearElements=[],b.monthElements=[],b.prevMonthNav=l("span","flatpickr-prev-month"),b.prevMonthNav.innerHTML=b.config.prevArrow,b.nextMonthNav=l("span","flatpickr-next-month"),b.nextMonthNav.innerHTML=b.config.nextArrow,$(),Object.defineProperty(b,"_hidePrevMonthArrow",{get:function(){return b.__hidePrevMonthArrow},set:function(e){b.__hidePrevMonthArrow!==e&&(c(b.prevMonthNav,"flatpickr-disabled",e),b.__hidePrevMonthArrow=e)}}),Object.defineProperty(b,"_hideNextMonthArrow",{get:function(){return b.__hideNextMonthArrow},set:function(e){b.__hideNextMonthArrow!==e&&(c(b.nextMonthNav,"flatpickr-disabled",e),b.__hideNextMonthArrow=e)}}),b.currentYearElement=b.yearElements[0],Oe(),b.monthNav)),b.innerContainer=l("div","flatpickr-innerContainer"),b.config.weekNumbers){var t=function(){b.calendarContainer.classList.add("hasWeeks");var e=l("div","flatpickr-weekwrapper");e.appendChild(l("span","flatpickr-weekday",b.l10n.weekAbbreviation));var t=l("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,r=t.weekNumbers;b.innerContainer.appendChild(n),b.weekNumbers=r,b.weekWrapper=n}b.rContainer=l("div","flatpickr-rContainer"),b.rContainer.appendChild(J()),b.daysContainer||(b.daysContainer=l("div","flatpickr-days"),b.daysContainer.tabIndex=-1),K(),b.rContainer.appendChild(b.daysContainer),b.innerContainer.appendChild(b.rContainer),e.appendChild(b.innerContainer)}b.config.enableTime&&e.appendChild(function(){b.calendarContainer.classList.add("hasTime"),b.config.noCalendar&&b.calendarContainer.classList.add("noCalendar"),b.timeContainer=l("div","flatpickr-time"),b.timeContainer.tabIndex=-1;var e=l("span","flatpickr-time-separator",":"),t=d("flatpickr-hour",{"aria-label":b.l10n.hourAriaLabel});b.hourElement=t.getElementsByTagName("input")[0];var n=d("flatpickr-minute",{"aria-label":b.l10n.minuteAriaLabel});if(b.minuteElement=n.getElementsByTagName("input")[0],b.hourElement.tabIndex=b.minuteElement.tabIndex=-1,b.hourElement.value=a(b.latestSelectedDateObj?b.latestSelectedDateObj.getHours():b.config.time_24hr?b.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(b.config.defaultHour)),b.minuteElement.value=a(b.latestSelectedDateObj?b.latestSelectedDateObj.getMinutes():b.config.defaultMinute),b.hourElement.setAttribute("step",b.config.hourIncrement.toString()),b.minuteElement.setAttribute("step",b.config.minuteIncrement.toString()),b.hourElement.setAttribute("min",b.config.time_24hr?"0":"1"),b.hourElement.setAttribute("max",b.config.time_24hr?"23":"12"),b.minuteElement.setAttribute("min","0"),b.minuteElement.setAttribute("max","59"),b.timeContainer.appendChild(t),b.timeContainer.appendChild(e),b.timeContainer.appendChild(n),b.config.time_24hr&&b.timeContainer.classList.add("time24hr"),b.config.enableSeconds){b.timeContainer.classList.add("hasSeconds");var r=d("flatpickr-second");b.secondElement=r.getElementsByTagName("input")[0],b.secondElement.value=a(b.latestSelectedDateObj?b.latestSelectedDateObj.getSeconds():b.config.defaultSeconds),b.secondElement.setAttribute("step",b.minuteElement.getAttribute("step")),b.secondElement.setAttribute("min","0"),b.secondElement.setAttribute("max","59"),b.timeContainer.appendChild(l("span","flatpickr-time-separator",":")),b.timeContainer.appendChild(r)}return b.config.time_24hr||(b.amPM=l("span","flatpickr-am-pm",b.l10n.amPM[i((b.latestSelectedDateObj?b.hourElement.value:b.config.defaultHour)>11)]),b.amPM.title=b.l10n.toggleTitle,b.amPM.tabIndex=-1,b.timeContainer.appendChild(b.amPM)),b.timeContainer}()),c(b.calendarContainer,"rangeMode","range"===b.config.mode),c(b.calendarContainer,"animate",!0===b.config.animate),c(b.calendarContainer,"multiMonth",b.config.showMonths>1),b.calendarContainer.appendChild(e);var o=void 0!==b.config.appendTo&&void 0!==b.config.appendTo.nodeType;if((b.config.inline||b.config.static)&&(b.calendarContainer.classList.add(b.config.inline?"inline":"static"),b.config.inline&&(!o&&b.element.parentNode?b.element.parentNode.insertBefore(b.calendarContainer,b._input.nextSibling):void 0!==b.config.appendTo&&b.config.appendTo.appendChild(b.calendarContainer)),b.config.static)){var s=l("div","flatpickr-wrapper");b.element.parentNode&&b.element.parentNode.insertBefore(s,b.element),s.appendChild(b.element),b.altInput&&s.appendChild(b.altInput),s.appendChild(b.calendarContainer)}b.config.static||b.config.inline||(void 0!==b.config.appendTo?b.config.appendTo:window.document.body).appendChild(b.calendarContainer)}function U(e,t,n,r){var o=ne(t,!0),a=l("span","flatpickr-day "+e,t.getDate().toString());return a.dateObj=t,a.$i=r,a.setAttribute("aria-label",b.formatDate(t,b.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===O(t,b.now)&&(b.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),o?(a.tabIndex=-1,we(t)&&(a.classList.add("selected"),b.selectedDateElem=a,"range"===b.config.mode&&(c(a,"startRange",b.selectedDates[0]&&0===O(t,b.selectedDates[0],!0)),c(a,"endRange",b.selectedDates[1]&&0===O(t,b.selectedDates[1],!0)),"nextMonthDay"===e&&a.classList.add("inRange")))):a.classList.add("flatpickr-disabled"),"range"===b.config.mode&&function(e){return!("range"!==b.config.mode||b.selectedDates.length<2)&&O(e,b.selectedDates[0])>=0&&O(e,b.selectedDates[1])<=0}(t)&&!we(t)&&a.classList.add("inRange"),b.weekNumbers&&1===b.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&b.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+b.config.getWeek(t)+"</span>"),be("onDayCreate",a),a}function W(e){e.focus(),"range"===b.config.mode&&ie(e)}function z(e){for(var t=e>0?0:b.config.showMonths-1,n=e>0?b.config.showMonths:-1,r=t;r!=n;r+=e)for(var o=b.daysContainer.children[r],a=e>0?0:o.children.length-1,i=e>0?o.children.length:-1,s=a;s!=i;s+=e){var u=o.children[s];if(-1===u.className.indexOf("hidden")&&ne(u.dateObj))return u}}function B(e,t){var n=re(document.activeElement||document.body),r=void 0!==e?e:n?document.activeElement:void 0!==b.selectedDateElem&&re(b.selectedDateElem)?b.selectedDateElem:void 0!==b.todayDateElem&&re(b.todayDateElem)?b.todayDateElem:z(t>0?1:-1);void 0===r?b._input.focus():n?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():b.currentMonth,r=t>0?b.config.showMonths:-1,o=t>0?1:-1,a=n-b.currentMonth;a!=r;a+=o)for(var i=b.daysContainer.children[a],s=n-b.currentMonth===a?e.$i+t:t<0?i.children.length-1:0,u=i.children.length,c=s;c>=0&&c<u&&c!=(t>0?u:-1);c+=o){var l=i.children[c];if(-1===l.className.indexOf("hidden")&&ne(l.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return W(l)}b.changeMonth(o),B(z(o),0)}(r,t):W(r)}function Y(e,t){for(var n=(new Date(e,t,1).getDay()-b.l10n.firstDayOfWeek+7)%7,r=b.utils.getDaysInMonth((t-1+12)%12,e),o=b.utils.getDaysInMonth(t,e),a=window.document.createDocumentFragment(),i=b.config.showMonths>1,s=i?"prevMonthDay hidden":"prevMonthDay",u=i?"nextMonthDay hidden":"nextMonthDay",c=r+1-n,f=0;c<=r;c++,f++)a.appendChild(U(s,new Date(e,t-1,c),c,f));for(c=1;c<=o;c++,f++)a.appendChild(U("",new Date(e,t,c),c,f));for(var d=o+1;d<=42-n&&(1===b.config.showMonths||f%7!=0);d++,f++)a.appendChild(U(u,new Date(e,t+1,d%o),d,f));var p=l("div","dayContainer");return p.appendChild(a),p}function K(){if(void 0!==b.daysContainer){f(b.daysContainer),b.weekNumbers&&f(b.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<b.config.showMonths;t++){var n=new Date(b.currentYear,b.currentMonth,1);n.setMonth(b.currentMonth+t),e.appendChild(Y(n.getFullYear(),n.getMonth()))}b.daysContainer.appendChild(e),b.days=b.daysContainer.firstChild,"range"===b.config.mode&&1===b.selectedDates.length&&ie()}}function q(){if(!(b.config.showMonths>1||"dropdown"!==b.config.monthSelectorType)){var e=function(e){return!(void 0!==b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&e<b.config.minDate.getMonth()||void 0!==b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()&&e>b.config.maxDate.getMonth())};b.monthsDropdownContainer.tabIndex=-1,b.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=l("option","flatpickr-monthDropdown-month");n.value=new Date(b.currentYear,t).getMonth().toString(),n.textContent=m(t,b.config.shorthandCurrentMonth,b.l10n),n.tabIndex=-1,b.currentMonth===t&&(n.selected=!0),b.monthsDropdownContainer.appendChild(n)}}}function G(){var e,t=l("div","flatpickr-month"),n=window.document.createDocumentFragment();b.config.showMonths>1||"static"===b.config.monthSelectorType?e=l("span","cur-month"):(b.monthsDropdownContainer=l("select","flatpickr-monthDropdown-months"),b.monthsDropdownContainer.setAttribute("aria-label",b.l10n.monthAriaLabel),I(b.monthsDropdownContainer,"change",function(e){var t=p(e),n=parseInt(t.value,10);b.changeMonth(n-b.currentMonth),be("onMonthChange")}),q(),e=b.monthsDropdownContainer);var r=d("cur-year",{tabindex:"-1"}),o=r.getElementsByTagName("input")[0];o.setAttribute("aria-label",b.l10n.yearAriaLabel),b.config.minDate&&o.setAttribute("min",b.config.minDate.getFullYear().toString()),b.config.maxDate&&(o.setAttribute("max",b.config.maxDate.getFullYear().toString()),o.disabled=!!b.config.minDate&&b.config.minDate.getFullYear()===b.config.maxDate.getFullYear());var a=l("div","flatpickr-current-month");return a.appendChild(e),a.appendChild(r),n.appendChild(a),t.appendChild(n),{container:t,yearElement:o,monthElement:e}}function $(){f(b.monthNav),b.monthNav.appendChild(b.prevMonthNav),b.config.showMonths&&(b.yearElements=[],b.monthElements=[]);for(var e=b.config.showMonths;e--;){var t=G();b.yearElements.push(t.yearElement),b.monthElements.push(t.monthElement),b.monthNav.appendChild(t.container)}b.monthNav.appendChild(b.nextMonthNav)}function J(){b.weekdayContainer?f(b.weekdayContainer):b.weekdayContainer=l("div","flatpickr-weekdays");for(var e=b.config.showMonths;e--;){var t=l("div","flatpickr-weekdaycontainer");b.weekdayContainer.appendChild(t)}return X(),b.weekdayContainer}function X(){if(b.weekdayContainer){var e=b.l10n.firstDayOfWeek,n=t(b.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=t(n.splice(e,n.length),n.splice(0,e)));for(var r=b.config.showMonths;r--;)b.weekdayContainer.children[r].innerHTML="\n <span class='flatpickr-weekday'>\n "+n.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,t){void 0===t&&(t=!0);var n=t?e:e-b.currentMonth;n<0&&!0===b._hidePrevMonthArrow||n>0&&!0===b._hideNextMonthArrow||(b.currentMonth+=n,(b.currentMonth<0||b.currentMonth>11)&&(b.currentYear+=b.currentMonth>11?1:-1,b.currentMonth=(b.currentMonth+12)%12,be("onYearChange"),q()),K(),be("onMonthChange"),Oe())}function Z(e){return!(!b.config.appendTo||!b.config.appendTo.contains(e))||b.calendarContainer.contains(e)}function ee(e){if(b.isOpen&&!b.config.inline){var t=p(e),n=Z(t),r=t===b.input||t===b.altInput||b.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(b.input)||~e.path.indexOf(b.altInput)),o="blur"===e.type?r&&e.relatedTarget&&!Z(e.relatedTarget):!r&&!n&&!Z(e.relatedTarget),a=!b.config.ignoredFocusElements.some(function(e){return e.contains(t)});o&&a&&(void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement&&""!==b.input.value&&void 0!==b.input.value&&M(),b.close(),b.config&&"range"===b.config.mode&&1===b.selectedDates.length&&(b.clear(!1),b.redraw()))}}function te(e){if(!(!e||b.config.minDate&&e<b.config.minDate.getFullYear()||b.config.maxDate&&e>b.config.maxDate.getFullYear())){var t=e,n=b.currentYear!==t;b.currentYear=t||b.currentYear,b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth=Math.min(b.config.maxDate.getMonth(),b.currentMonth):b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&(b.currentMonth=Math.max(b.config.minDate.getMonth(),b.currentMonth)),n&&(b.redraw(),be("onYearChange"),q())}}function ne(e,t){void 0===t&&(t=!0);var n=b.parseDate(e,void 0,t);if(b.config.minDate&&n&&O(n,b.config.minDate,void 0!==t?t:!b.minDateHasTime)<0||b.config.maxDate&&n&&O(n,b.config.maxDate,void 0!==t?t:!b.maxDateHasTime)>0)return!1;if(0===b.config.enable.length&&0===b.config.disable.length)return!0;if(void 0===n)return!1;for(var r=b.config.enable.length>0,o=r?b.config.enable:b.config.disable,a=0,i=void 0;a<o.length;a++){if("function"==typeof(i=o[a])&&i(n))return r;if(i instanceof Date&&void 0!==n&&i.getTime()===n.getTime())return r;if("string"==typeof i&&void 0!==n){var s=b.parseDate(i,void 0,!0);return s&&s.getTime()===n.getTime()?r:!r}if("object"==typeof i&&void 0!==n&&i.from&&i.to&&n.getTime()>=i.from.getTime()&&n.getTime()<=i.to.getTime())return r}return!r}function re(e){return void 0!==b.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&b.daysContainer.contains(e)}function oe(e){var t=e.target===b._input;!t||e.relatedTarget&&Z(e.relatedTarget)||b.setDate(b._input.value,!0,e.target===b.altInput?b.config.altFormat:b.config.dateFormat)}function ae(e){var t=p(e),n=b.config.wrap?h.contains(t):t===b._input,r=b.config.allowInput,o=b.isOpen&&(!r||!n),a=b.config.inline&&n&&!r;if(13===e.keyCode&&n){if(r)return b.setDate(b._input.value,!0,t===b.altInput?b.config.altFormat:b.config.dateFormat),t.blur();b.open()}else if(Z(t)||o||a){var i=!!b.timeContainer&&b.timeContainer.contains(t);switch(e.keyCode){case 13:i?(e.preventDefault(),M(),pe()):he(e);break;case 27:e.preventDefault(),pe();break;case 8:case 46:n&&!b.config.allowInput&&(e.preventDefault(),b.clear());break;case 37:case 39:if(i||n)b.hourElement&&b.hourElement.focus();else if(e.preventDefault(),void 0!==b.daysContainer&&(!1===r||document.activeElement&&re(document.activeElement))){var s=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),Q(s),B(z(1),0)):B(void 0,s)}break;case 38:case 40:e.preventDefault();var u=40===e.keyCode?1:-1;b.daysContainer&&void 0!==t.$i||t===b.input||t===b.altInput?e.ctrlKey?(e.stopPropagation(),te(b.currentYear-u),B(z(1),0)):i||B(void 0,7*u):t===b.currentYearElement?te(b.currentYear-u):b.config.enableTime&&(!i&&b.hourElement&&b.hourElement.focus(),M(e),b._debouncedChange());break;case 9:if(i){var c=[b.hourElement,b.minuteElement,b.secondElement,b.amPM].concat(b.pluginElements).filter(function(e){return e}),l=c.indexOf(t);if(-1!==l){var f=c[l+(e.shiftKey?-1:1)];e.preventDefault(),(f||b._input).focus()}}else!b.config.noCalendar&&b.daysContainer&&b.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),b._input.focus())}}if(void 0!==b.amPM&&t===b.amPM)switch(e.key){case b.l10n.amPM[0].charAt(0):case b.l10n.amPM[0].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[0],j(),xe();break;case b.l10n.amPM[1].charAt(0):case b.l10n.amPM[1].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[1],j(),xe()}(n||Z(t))&&be("onKeyDown",e)}function ie(e){if(1===b.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():b.days.firstElementChild.dateObj.getTime(),n=b.parseDate(b.selectedDates[0],void 0,!0).getTime(),r=Math.min(t,b.selectedDates[0].getTime()),o=Math.max(t,b.selectedDates[0].getTime()),a=!1,i=0,s=0,u=r;u<o;u+=x.DAY)ne(new Date(u),!0)||(a=a||u>r&&u<o,u<n&&(!i||u>i)?i=u:u>n&&(!s||u<s)&&(s=u));for(var c=0;c<b.config.showMonths;c++)for(var l=b.daysContainer.children[c],f=function(r,o){var u=l.children[r],c=u.dateObj,f=c.getTime(),d=i>0&&f<i||s>0&&f>s;return d?(u.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){u.classList.remove(e)}),"continue"):a&&!d?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){u.classList.remove(e)}),void(void 0!==e&&(e.classList.add(t<=b.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&f===n?u.classList.add("startRange"):n>t&&f===n&&u.classList.add("endRange"),f>=i&&(0===s||f<=s)&&C(f,n,t)&&u.classList.add("inRange"))))},d=0,p=l.children.length;d<p;d++)f(d)}}function se(){!b.isOpen||b.config.static||b.config.inline||fe()}function ue(e){return function(t){var n=b.config["_"+e+"Date"]=b.parseDate(t,b.config.dateFormat),r=b.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(b["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),b.selectedDates&&(b.selectedDates=b.selectedDates.filter(function(e){return ne(e)}),b.selectedDates.length||"min"!==e||_(n),xe()),b.daysContainer&&(de(),void 0!==n?b.currentYearElement[e]=n.getFullYear().toString():b.currentYearElement.removeAttribute(e),b.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function ce(){return b.config.wrap?h.querySelector("[data-input]"):h}function le(){"object"!=typeof b.config.locale&&void 0===E.l10ns[b.config.locale]&&b.config.errorHandler(new Error("flatpickr: invalid locale "+b.config.locale)),b.l10n=e(e({},E.l10ns.default),"object"==typeof b.config.locale?b.config.locale:"default"!==b.config.locale?E.l10ns[b.config.locale]:void 0),v.K="("+b.l10n.amPM[0]+"|"+b.l10n.amPM[1]+"|"+b.l10n.amPM[0].toLowerCase()+"|"+b.l10n.amPM[1].toLowerCase()+")";var t=e(e({},g),JSON.parse(JSON.stringify(h.dataset||{})));void 0===t.time_24hr&&void 0===E.defaultConfig.time_24hr&&(b.config.time_24hr=b.l10n.time_24hr),b.formatDate=y(b),b.parseDate=w({config:b.config,l10n:b.l10n})}function fe(e){if(void 0!==b.calendarContainer){be("onPreCalendarPosition");var t=e||b._positionElement,n=Array.prototype.reduce.call(b.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),r=b.calendarContainer.offsetWidth,o=b.config.position.split(" "),a=o[0],i=o.length>1?o[1]:null,s=t.getBoundingClientRect(),u=window.innerHeight-s.bottom,l="above"===a||"below"!==a&&u<n&&s.top>n,f=window.pageYOffset+s.top+(l?-n-2:t.offsetHeight+2);if(c(b.calendarContainer,"arrowTop",!l),c(b.calendarContainer,"arrowBottom",l),!b.config.inline){var d=window.pageXOffset+s.left,p=!1,h=!1;"center"===i?(d-=(r-s.width)/2,p=!0):"right"===i&&(d-=r-s.width,h=!0),c(b.calendarContainer,"arrowLeft",!p&&!h),c(b.calendarContainer,"arrowCenter",p),c(b.calendarContainer,"arrowRight",h);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),g=d+r>window.document.body.offsetWidth,v=m+r>window.document.body.offsetWidth;if(c(b.calendarContainer,"rightMost",g),!b.config.static)if(b.calendarContainer.style.top=f+"px",g)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return null!=e?e:(r=document.createElement("style"),document.head.appendChild(r),r.sheet);var r}();if(void 0===y)return;var w=window.document.body.offsetWidth,O=Math.max(0,w/2-r/2),C=y.cssRules.length,x="{left:"+s.left+"px;right:auto;}";c(b.calendarContainer,"rightMost",!1),c(b.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,C),b.calendarContainer.style.left=O+"px",b.calendarContainer.style.right="auto"}else b.calendarContainer.style.left="auto",b.calendarContainer.style.right=m+"px";else b.calendarContainer.style.left=d+"px",b.calendarContainer.style.right="auto"}}}function de(){b.config.noCalendar||b.isMobile||(q(),Oe(),K())}function pe(){b._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(b.close,0):b.close()}function he(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(p(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,r=b.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(r.getMonth()<b.currentMonth||r.getMonth()>b.currentMonth+b.config.showMonths-1)&&"range"!==b.config.mode;if(b.selectedDateElem=n,"single"===b.config.mode)b.selectedDates=[r];else if("multiple"===b.config.mode){var a=we(r);a?b.selectedDates.splice(parseInt(a),1):b.selectedDates.push(r)}else"range"===b.config.mode&&(2===b.selectedDates.length&&b.clear(!1,!1),b.latestSelectedDateObj=r,b.selectedDates.push(r),0!==O(r,b.selectedDates[0],!0)&&b.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(j(),o){var i=b.currentYear!==r.getFullYear();b.currentYear=r.getFullYear(),b.currentMonth=r.getMonth(),i&&(be("onYearChange"),q()),be("onMonthChange")}if(Oe(),K(),xe(),o||"range"===b.config.mode||1!==b.config.showMonths?void 0!==b.selectedDateElem&&void 0===b.hourElement&&b.selectedDateElem&&b.selectedDateElem.focus():W(n),void 0!==b.hourElement&&void 0!==b.hourElement&&b.hourElement.focus(),b.config.closeOnSelect){var s="single"===b.config.mode&&!b.config.enableTime,u="range"===b.config.mode&&2===b.selectedDates.length&&!b.config.enableTime;(s||u)&&pe()}L()}}b.parseDate=w({config:b.config,l10n:b.l10n}),b._handlers=[],b.pluginElements=[],b.loadedPlugins=[],b._bind=I,b._setHoursFromDate=_,b._positionCalendar=fe,b.changeMonth=Q,b.changeYear=te,b.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),b.input.value="",void 0!==b.altInput&&(b.altInput.value=""),void 0!==b.mobileInput&&(b.mobileInput.value=""),b.selectedDates=[],b.latestSelectedDateObj=void 0,!0===t&&(b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth()),!0===b.config.enableTime){var n=P(),r=n.hours,o=n.minutes,a=n.seconds;T(r,o,a)}b.redraw(),e&&be("onChange")},b.close=function(){b.isOpen=!1,b.isMobile||(void 0!==b.calendarContainer&&b.calendarContainer.classList.remove("open"),void 0!==b._input&&b._input.classList.remove("active")),be("onClose")},b._createElement=l,b.destroy=function(){void 0!==b.config&&be("onDestroy");for(var e=b._handlers.length;e--;){var t=b._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}if(b._handlers=[],b.mobileInput)b.mobileInput.parentNode&&b.mobileInput.parentNode.removeChild(b.mobileInput),b.mobileInput=void 0;else if(b.calendarContainer&&b.calendarContainer.parentNode)if(b.config.static&&b.calendarContainer.parentNode){var n=b.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else b.calendarContainer.parentNode.removeChild(b.calendarContainer);b.altInput&&(b.input.type="text",b.altInput.parentNode&&b.altInput.parentNode.removeChild(b.altInput),delete b.altInput),b.input&&(b.input.type=b.input._type,b.input.classList.remove("flatpickr-input"),b.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete b[e]}catch(e){}})},b.isEnabled=ne,b.jumpToDate=R,b.open=function(e,t){if(void 0===t&&(t=b._positionElement),!0===b.isMobile){if(e){e.preventDefault();var n=p(e);n&&n.blur()}return void 0!==b.mobileInput&&(b.mobileInput.focus(),b.mobileInput.click()),void be("onOpen")}if(!b._input.disabled&&!b.config.inline){var r=b.isOpen;b.isOpen=!0,r||(b.calendarContainer.classList.add("open"),b._input.classList.add("active"),be("onOpen"),fe(t)),!0===b.config.enableTime&&!0===b.config.noCalendar&&(!1!==b.config.allowInput||void 0!==e&&b.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return b.hourElement.select()},50))}},b.redraw=de,b.set=function(e,t){if(null!==e&&"object"==typeof e)for(var r in Object.assign(b.config,e),e)void 0!==me[r]&&me[r].forEach(function(e){return e()});else b.config[e]=t,void 0!==me[e]?me[e].forEach(function(e){return e()}):n.indexOf(e)>-1&&(b.config[e]=u(t));b.redraw(),xe(!0)},b.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=b.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return b.clear(t);ge(e,n),b.latestSelectedDateObj=b.selectedDates[b.selectedDates.length-1],b.redraw(),R(void 0,t),_(),0===b.selectedDates.length&&b.clear(!1),xe(t),t&&be("onChange")},b.toggle=function(e){if(!0===b.isOpen)return b.close();b.open(e)};var me={locale:[le,X],showMonths:[$,S,J],minDate:[R],maxDate:[R]};function ge(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return b.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[b.parseDate(e,t)];else if("string"==typeof e)switch(b.config.mode){case"single":case"time":n=[b.parseDate(e,t)];break;case"multiple":n=e.split(b.config.conjunction).map(function(e){return b.parseDate(e,t)});break;case"range":n=e.split(b.l10n.rangeSeparator).map(function(e){return b.parseDate(e,t)})}else b.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));b.selectedDates=b.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&ne(e,!1)}),"range"===b.config.mode&&b.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ve(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?b.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:b.parseDate(e.from,void 0),to:b.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function be(e,t){if(void 0!==b.config){var n=b.config[e];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&r<n.length;r++)n[r](b.selectedDates,b.input.value,b,t);"onChange"===e&&(b.input.dispatchEvent(ye("change")),b.input.dispatchEvent(ye("input")))}}function ye(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function we(e){for(var t=0;t<b.selectedDates.length;t++)if(0===O(b.selectedDates[t],e))return""+t;return!1}function Oe(){b.config.noCalendar||b.isMobile||!b.monthNav||(b.yearElements.forEach(function(e,t){var n=new Date(b.currentYear,b.currentMonth,1);n.setMonth(b.currentMonth+t),b.config.showMonths>1||"static"===b.config.monthSelectorType?b.monthElements[t].textContent=m(n.getMonth(),b.config.shorthandCurrentMonth,b.l10n)+" ":b.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),b._hidePrevMonthArrow=void 0!==b.config.minDate&&(b.currentYear===b.config.minDate.getFullYear()?b.currentMonth<=b.config.minDate.getMonth():b.currentYear<b.config.minDate.getFullYear()),b._hideNextMonthArrow=void 0!==b.config.maxDate&&(b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth+1>b.config.maxDate.getMonth():b.currentYear>b.config.maxDate.getFullYear()))}function Ce(e){return b.selectedDates.map(function(t){return b.formatDate(t,e)}).filter(function(e,t,n){return"range"!==b.config.mode||b.config.enableTime||n.indexOf(e)===t}).join("range"!==b.config.mode?b.config.conjunction:b.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==b.mobileInput&&b.mobileFormatStr&&(b.mobileInput.value=void 0!==b.latestSelectedDateObj?b.formatDate(b.latestSelectedDateObj,b.mobileFormatStr):""),b.input.value=Ce(b.config.dateFormat),void 0!==b.altInput&&(b.altInput.value=Ce(b.config.altFormat)),!1!==e&&be("onValueUpdate")}function De(e){var t=p(e),n=b.prevMonthNav.contains(t),r=b.nextMonthNav.contains(t);n||r?Q(n?-1:1):b.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?b.changeYear(b.currentYear+1):t.classList.contains("arrowDown")&&b.changeYear(b.currentYear-1)}return function(){b.element=b.input=h,b.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=e(e({},JSON.parse(JSON.stringify(h.dataset||{}))),g),a={};b.config.parseDate=o.parseDate,b.config.formatDate=o.formatDate,Object.defineProperty(b.config,"enable",{get:function(){return b.config._enable},set:function(e){b.config._enable=ve(e)}}),Object.defineProperty(b.config,"disable",{get:function(){return b.config._disable},set:function(e){b.config._disable=ve(e)}});var i="time"===o.mode;if(!o.dateFormat&&(o.enableTime||i)){var s=E.defaultConfig.dateFormat||r.dateFormat;a.dateFormat=o.noCalendar||i?"H:i"+(o.enableSeconds?":S":""):s+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||i)&&!o.altFormat){var c=E.defaultConfig.altFormat||r.altFormat;a.altFormat=o.noCalendar||i?"h:i"+(o.enableSeconds?":S K":" K"):c+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(b.config,"minDate",{get:function(){return b.config._minDate},set:ue("min")}),Object.defineProperty(b.config,"maxDate",{get:function(){return b.config._maxDate},set:ue("max")});var l=function(e){return function(t){b.config["min"===e?"_minTime":"_maxTime"]=b.parseDate(t,"H:i:S")}};Object.defineProperty(b.config,"minTime",{get:function(){return b.config._minTime},set:l("min")}),Object.defineProperty(b.config,"maxTime",{get:function(){return b.config._maxTime},set:l("max")}),"time"===o.mode&&(b.config.noCalendar=!0,b.config.enableTime=!0),Object.assign(b.config,a,o);for(var f=0;f<t.length;f++)b.config[t[f]]=!0===b.config[t[f]]||"true"===b.config[t[f]];n.filter(function(e){return void 0!==b.config[e]}).forEach(function(e){b.config[e]=u(b.config[e]||[]).map(k)}),b.isMobile=!b.config.disableMobile&&!b.config.inline&&"single"===b.config.mode&&!b.config.disable.length&&!b.config.enable.length&&!b.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var f=0;f<b.config.plugins.length;f++){var d=b.config.plugins[f](b)||{};for(var p in d)n.indexOf(p)>-1?b.config[p]=u(d[p]).map(k).concat(b.config[p]):void 0===o[p]&&(b.config[p]=d[p])}o.altInputClass||(b.config.altInputClass=ce().className+" "+b.config.altInputClass),be("onParseConfig")}(),le(),b.input=ce(),b.input?(b.input._type=b.input.type,b.input.type="text",b.input.classList.add("flatpickr-input"),b._input=b.input,b.config.altInput&&(b.altInput=l(b.input.nodeName,b.config.altInputClass),b._input=b.altInput,b.altInput.placeholder=b.input.placeholder,b.altInput.disabled=b.input.disabled,b.altInput.required=b.input.required,b.altInput.tabIndex=b.input.tabIndex,b.altInput.type="text",b.input.setAttribute("type","hidden"),!b.config.static&&b.input.parentNode&&b.input.parentNode.insertBefore(b.altInput,b.input.nextSibling)),b.config.allowInput||b._input.setAttribute("readonly","readonly"),b._positionElement=b.config.positionElement||b._input):b.config.errorHandler(new Error("Invalid input element specified")),function(){b.selectedDates=[],b.now=b.parseDate(b.config.now)||new Date;var e=b.config.defaultDate||("INPUT"!==b.input.nodeName&&"TEXTAREA"!==b.input.nodeName||!b.input.placeholder||b.input.value!==b.input.placeholder?b.input.value:null);e&&ge(e,b.config.dateFormat),b._initialDate=b.selectedDates.length>0?b.selectedDates[0]:b.config.minDate&&b.config.minDate.getTime()>b.now.getTime()?b.config.minDate:b.config.maxDate&&b.config.maxDate.getTime()<b.now.getTime()?b.config.maxDate:b.now,b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth(),b.selectedDates.length>0&&(b.latestSelectedDateObj=b.selectedDates[0]),void 0!==b.config.minTime&&(b.config.minTime=b.parseDate(b.config.minTime,"H:i")),void 0!==b.config.maxTime&&(b.config.maxTime=b.parseDate(b.config.maxTime,"H:i")),b.minDateHasTime=!!b.config.minDate&&(b.config.minDate.getHours()>0||b.config.minDate.getMinutes()>0||b.config.minDate.getSeconds()>0),b.maxDateHasTime=!!b.config.maxDate&&(b.config.maxDate.getHours()>0||b.config.maxDate.getMinutes()>0||b.config.maxDate.getSeconds()>0)}(),b.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=b.currentMonth),void 0===t&&(t=b.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:b.l10n.daysInMonth[e]}},b.isMobile||H(),N(),(b.selectedDates.length||b.config.noCalendar)&&(b.config.enableTime&&_(b.config.noCalendar?b.latestSelectedDateObj||b.config.minDate:void 0),xe(!1)),S();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!b.isMobile&&t&&fe(),be("onReady")}(),b}function S(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),r=[],o=0;o<n.length;o++){var a=n[o];try{if(null!==a.getAttribute("data-fp-omit"))continue;void 0!==a._flatpickr&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=k(a,t||{}),r.push(a._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return S(this,e)},HTMLElement.prototype.flatpickr=function(e){return S([this],e)});var E=function(e,t){return"string"==typeof e?S(window.document.querySelectorAll(e),t):e instanceof Node?S([e],t):S(e,t)};return E.defaultConfig={},E.l10ns={en:e({},o),default:e({},o)},E.localize=function(t){E.l10ns.default=e(e({},E.l10ns.default),t)},E.setDefaults=function(t){E.defaultConfig=e(e({},E.defaultConfig),t)},E.parseDate=w({}),E.formatDate=y({}),E.compareDates=O,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return S(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=E),E}()},function(e,t,n){var r=n(2);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){var r=n(45),o=n(46),a=n(10),i=n(47);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}},function(e,t){e.exports=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(e,t,n){var r=n(49),o=n(50),a=n(10),i=n(51);e.exports=function(e){return r(e)||o(e)||a(e)||i()}},function(e,t,n){var r=n(11);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=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(e,t){e.exports=function(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){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,n){var r=n(58),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(14))},function(e,t,n){var r=n(13),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=e=>e instanceof HTMLElement;const i={BLUR:"blur",CHANGE:"change",INPUT:"input"},s={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},u="max",c="min",l="maxLength",f="minLength",d="pattern",p="required",h="validate";var m=e=>null==e;const g=e=>"object"==typeof e;var v=e=>!m(e)&&!Array.isArray(e)&&g(e)&&!(e instanceof Date),b=e=>/^\w*$/.test(e),y=e=>e.filter(Boolean),w=e=>y(e.replace(/["|']/g,"").replace(/\[/g,".").replace(/\]/g,"").split("."));function O(e,t,n){let r=-1;const o=b(t)?[t]:w(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=v(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var C=(e,t={})=>{for(const n in e)b(n)?t[n]=e[n]:O(t,n,e[n]);return t},x=e=>void 0===e,D=(e={},t,n)=>{const r=y(t.split(/[,[\].]+?/)).reduce((e,t)=>m(e)?e:e[t],e);return x(r)||r===e?x(e[t])?n:e[t]:r},k=(e,t)=>{for(const n in e)if(D(t,n)){const t=e[n];if(t){if(t.ref.focus&&x(t.ref.focus()))break;if(t.options){t.options[0].ref.focus();break}}}},S=(e,t)=>{a(e)&&e.removeEventListener&&(e.removeEventListener(i.INPUT,t),e.removeEventListener(i.CHANGE,t),e.removeEventListener(i.BLUR,t))};const E={isValid:!1,value:""};var M=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e,E):E,j=e=>[...e].filter(({selected:e})=>e).map(({value:e})=>e),_=e=>"radio"===e.type,P=e=>"file"===e.type,T=e=>"checkbox"===e.type,A=e=>"select-multiple"===e.type;const I={value:!1,isValid:!1},L={value:!0,isValid:!0};var N=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.ref.checked).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!x(r.value)?x(n)||""===n?L:{value:n,isValid:!0}:L:I}return I};function R(e,t,n,r){const o=e.current[t];if(o){const{ref:{value:e,disabled:t},ref:n,valueAsNumber:a,valueAsDate:i,setValueAs:s}=o;if(t&&r)return;return P(n)?n.files:_(n)?M(o.options).value:A(n)?j(n.options):T(n)?N(o.options).value:a?+e:i?n.valueAsDate:s?s(e):e}if(n)return D(n.current,t)}function F(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&F(e.parentNode)}var V=e=>v(e)&&!Object.keys(e).length,H=e=>"boolean"==typeof e;function U(e,t){const n=b(t)?[t]:w(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=x(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let a;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const i=n.slice(0,-(t+1)),s=i.length-1;for(t>0&&(a=e);++o<i.length;){const t=i[o];r=r?r[t]:e[t],s===o&&(v(r)&&V(r)||Array.isArray(r)&&!r.filter(e=>v(e)&&!V(e)||H(e)).length)&&(a?delete a[t]:delete e[t]),a=r}}return e}const W=(e,t)=>e&&e.ref===t;var z=e=>m(e)||!g(e);function B(e,t){if(z(e)||z(t))return t;for(const n in t){const r=e[n],o=t[n];try{e[n]=v(r)&&v(o)||Array.isArray(r)&&Array.isArray(o)?B(r,o):o}catch(e){}}return e}function Y(e,t,n,r,o){let a=-1;for(;++a<e.length;){for(const r in e[a])Array.isArray(e[a][r])?(!n[a]&&(n[a]={}),n[a][r]=[],Y(e[a][r],D(t[a]||{},r,[]),n[a][r],n[a],r)):D(t[a]||{},r)===e[a][r]?O(n[a]||{},r):n[a]=Object.assign(Object.assign({},n[a]),{[r]:!0});r&&!n.length&&delete r[o]}return n}var K=(e,t,n)=>B(Y(e,t,n),Y(t,e,n)),q=e=>"string"==typeof e,G=(e,t,n,r,o)=>{const a={};for(const t in e.current)(x(o)||(q(o)?t.startsWith(o):Array.isArray(o)&&o.find(e=>t.startsWith(e))))&&(a[t]=R(e,t,void 0,r));return n?C(a):B(t,C(a))};function $(e,t,n){if(z(e)||z(t)||e instanceof Date||t instanceof Date)return e===t;if(!Object(r.isValidElement)(e)){const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(const o of r){const r=e[o];if(!n||"ref"!==o){const e=t[o];if((v(r)||Array.isArray(r))&&(v(e)||Array.isArray(e))?!$(r,e,n):r!==e)return!1}}}return!0}var J=({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o})=>{const a=x(n),i=D(e,t);return a&&!!i||!a&&!$(i,n,!0)||a&&D(o,t)&&!D(r,t)},X=e=>e instanceof RegExp,Q=e=>v(e)&&!X(e)?e:{value:e,message:""},Z=e=>"function"==typeof e,ee=e=>q(e)||Object(r.isValidElement)(e);function te(e,t,n="validate"){if(ee(e)||H(e)&&!e)return{type:n,message:ee(e)?e:"",ref:t}}var ne=async(e,t,{ref:n,ref:{value:r},options:o,required:a,maxLength:i,minLength:s,min:g,max:b,pattern:y,validate:w},O)=>{const C=n.name,x={},D=_(n),k=T(n),S=D||k,E=""===r,j=((e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{}).bind(null,C,t,x),P=(e,t,r,o=l,a=f)=>{const i=e?t:r;x[C]=Object.assign({type:e?o:a,message:i,ref:n},j(e?o:a,i))};if(a&&(!D&&!k&&(E||m(r))||H(r)&&!r||k&&!N(o).isValid||D&&!M(o).isValid)){const{value:r,message:o}=ee(a)?{value:!!a,message:a}:Q(a);if(r&&(x[C]=Object.assign({type:p,message:o,ref:S?((e.current[C].options||[])[0]||{}).ref:n},j(p,o)),!t))return x}if(!(m(g)&&m(b)||""===r)){let e,o;const a=Q(b),i=Q(g);if(isNaN(r)){const t=n.valueAsDate||new Date(r);q(a.value)&&(e=t>new Date(a.value)),q(i.value)&&(o=t<new Date(i.value))}else{const t=n.valueAsNumber||parseFloat(r);m(a.value)||(e=t>a.value),m(i.value)||(o=t<i.value)}if((e||o)&&(P(!!e,a.message,i.message,u,c),!t))return x}if(q(r)&&!E&&(i||s)){const e=Q(i),n=Q(s),o=!m(e.value)&&r.length>e.value,a=!m(n.value)&&r.length<n.value;if((o||a)&&(P(o,e.message,n.message),!t))return x}if(y&&!E){const{value:e,message:o}=Q(y);if(X(e)&&!e.test(r)&&(x[C]=Object.assign({type:d,message:o,ref:n},j(d,o)),!t))return x}if(w){const r=R(e,C,O),a=S&&o?o[0].ref:n;if(Z(w)){const e=te(await w(r),a);if(e&&(x[C]=Object.assign(Object.assign({},e),j(h,e.message)),!t))return x}else if(v(w)){let e={};for(const[n,o]of Object.entries(w)){if(!V(e)&&!t)break;const i=te(await o(r),a,n);i&&(e=Object.assign(Object.assign({},i),j(n,i.message)),t&&(x[C]=e))}if(!V(e)&&(x[C]=Object.assign({ref:a},e),!t))return x}}return x};const re=(e,t,n=[])=>{for(const r in t){const o=e+(v(t)?`.${r}`:`[${r}]`);z(t[r])?n.push(o):re(o,t[r],n)}return n};var oe=(e,t,n,r,o)=>{let a=void 0;return n.add(t),V(e)||(a=D(e,t),(v(a)||Array.isArray(a))&&re(t,a).forEach(e=>n.add(e))),x(a)?o?r:D(r,t):a},ae=({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:o,isReValidateOnChange:a,isBlurEvent:i,isSubmitted:s,isOnAll:u})=>!u&&(!s&&n?!(r||i):(s?o:e)?!i:(s?!a:!t)||i),ie=e=>e.substring(0,e.indexOf("["));const se=(e,t)=>RegExp(`^${t}([|.)\\d+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e);var ue=(e,t)=>[...e].some(e=>se(t,e)),ce=e=>"select-one"===e.type;var le="undefined"!=typeof window&&"undefined"!=typeof document;function fe(e){let t;if(z(e)||le&&e instanceof File)return e;if(e instanceof Date)return t=new Date(e.getTime());if(e instanceof Set){t=new Set;for(const n of e)t.add(n);return t}if(e instanceof Map){t=new Map;for(const n of e.keys())t.set(n,fe(e.get(n)));return t}t=Array.isArray(e)?[]:{};for(const n in e)t[n]=fe(e[n]);return t}var de=e=>({isOnSubmit:!e||e===s.onSubmit,isOnBlur:e===s.onBlur,isOnChange:e===s.onChange,isOnAll:e===s.all,isOnTouch:e===s.onTouched}),pe=e=>_(e)||T(e);const he="undefined"==typeof window,me=le?"Proxy"in window:"undefined"!=typeof Proxy;function ge({mode:e=s.onSubmit,reValidateMode:t=s.onChange,resolver:n,context:o,defaultValues:u={},shouldFocusError:c=!0,shouldUnregister:l=!0,criteriaMode:f}={}){const d=Object(r.useRef)({}),p=Object(r.useRef)({}),h=Object(r.useRef)({}),g=Object(r.useRef)(new Set),w=Object(r.useRef)({}),E=Object(r.useRef)({}),M=Object(r.useRef)({}),j=Object(r.useRef)({}),I=Object(r.useRef)(u),L=Object(r.useRef)({}),N=Object(r.useRef)(!1),H=Object(r.useRef)(!1),B=Object(r.useRef)(),Y=Object(r.useRef)({}),X=Object(r.useRef)({}),Q=Object(r.useRef)(o),ee=Object(r.useRef)(n),te=Object(r.useRef)(new Set),se=Object(r.useRef)(de(e)),{isOnSubmit:ge,isOnTouch:ve}=se.current,be=f===s.all,[ye,we]=Object(r.useState)({isDirty:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!ge,errors:{}}),Oe=Object(r.useRef)({isDirty:!me,dirtyFields:!me,touched:!me||ve,isSubmitting:!me,isValid:!me}),Ce=Object(r.useRef)(ye),xe=Object(r.useRef)(),{isOnBlur:De,isOnChange:ke}=Object(r.useRef)(de(t)).current;Q.current=o,ee.current=n,Ce.current=ye,Y.current=l?{}:V(Y.current)?fe(u):Y.current;const Se=Object(r.useCallback)((e={})=>{N.current||(Ce.current=Object.assign(Object.assign({},Ce.current),e),we(Ce.current))},[]),Ee=Object(r.useCallback)((e,t,n=!1,r={},o)=>{let a=n||J({errors:Ce.current.errors,error:t,name:e,validFields:j.current,fieldsWithValidation:M.current});const i=D(Ce.current.errors,e);t?(U(j.current,e),a=a||!i||!$(i,t,!0),O(Ce.current.errors,e,t)):((D(M.current,e)||ee.current)&&(O(j.current,e,!0),a=a||i),U(Ce.current.errors,e)),(a&&!m(n)||!V(r))&&Se(Object.assign(Object.assign({},r),ee.current?{isValid:!!o}:{}))},[]),Me=Object(r.useCallback)((e,t)=>{const{ref:n,options:r}=d.current[e],o=le&&a(n)&&m(t)?"":t;_(n)?(r||[]).forEach(({ref:e})=>e.checked=e.value===o):P(n)&&!q(o)?n.files=o:A(n)?[...n.options].forEach(e=>e.selected=o.includes(e.value)):T(n)&&r?r.length>1?r.forEach(({ref:e})=>e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value):r[0].ref.checked=!!o:n.value=o},[]),je=Object(r.useCallback)((e,t)=>{if(Oe.current.isDirty){const n=Ve();return e&&t&&O(n,e,t),!$(n,V(I.current)?L.current:I.current)}return!1},[]),_e=Object(r.useCallback)((e,t=!0)=>{if(Oe.current.isDirty||Oe.current.dirtyFields){const n=!$(D(L.current,e),R(d,e,Y)),r=D(Ce.current.dirtyFields,e),o=Ce.current.isDirty;n?O(Ce.current.dirtyFields,e,!0):U(Ce.current.dirtyFields,e);const a={isDirty:je(),dirtyFields:Ce.current.dirtyFields},i=Oe.current.isDirty&&o!==a.isDirty||Oe.current.dirtyFields&&r!==D(Ce.current.dirtyFields,e);return i&&t&&Se(a),i?a:{}}return{}},[]),Pe=Object(r.useCallback)(async(e,t)=>{const n=(await ne(d,be,d.current[e],Y))[e];return Ee(e,n,t),x(n)},[Ee,be]),Te=Object(r.useCallback)(async e=>{const{errors:t}=await ee.current(Ve(),Q.current,be),n=Ce.current.isValid;if(Array.isArray(e)){const n=e.map(e=>{const n=D(t,e);return n?O(Ce.current.errors,e,n):U(Ce.current.errors,e),!n}).every(Boolean);return Se({isValid:V(t)}),n}{const r=D(t,e);return Ee(e,r,n!==V(t),{},V(t)),!r}},[Ee,be]),Ae=Object(r.useCallback)(async e=>{const t=e||Object.keys(d.current);if(ee.current)return Te(t);if(Array.isArray(t)){!e&&(Ce.current.errors={});const n=await Promise.all(t.map(async e=>await Pe(e,null)));return Se(),n.every(Boolean)}return await Pe(t)},[Te,Pe]),Ie=Object(r.useCallback)((e,t,{shouldDirty:n,shouldValidate:r})=>{const o={};O(o,e,t);for(const a of re(e,t))d.current[a]&&(Me(a,D(o,a)),n&&_e(a),r&&Ae(a))},[Ae,Me,_e]),Le=Object(r.useCallback)((e,t,n)=>{!z(t)&&O(Y.current,e,fe(t)),d.current[e]?(Me(e,t),n.shouldDirty&&_e(e),n.shouldValidate&&Ae(e)):z(t)||(Ie(e,t,n),te.current.has(e)&&(p.current[e]=t,X.current[e]({[e]:t}),(Oe.current.isDirty||Oe.current.dirtyFields)&&n.shouldDirty&&(O(Ce.current.dirtyFields,e,K(t,D(I.current,e,[]),D(Ce.current.dirtyFields,e,[]))),Se({isDirty:!$(Object.assign(Object.assign({},Ve()),{[e]:t}),I.current)})))),!l&&O(Y.current,e,t)},[_e,Me,Ie]),Ne=e=>H.current||g.current.has(e)||g.current.has((e.match(/\w+/)||[])[0]),Re=(e,t=!0)=>{if(!V(w.current))for(const n in w.current)e&&w.current[n].size&&!w.current[n].has(e)&&!w.current[n].has(ie(e))||(E.current[n](),t=!1);return t};function Fe(e){if(!l){let t=fe(e);for(const e of te.current)b(e)&&!t[e]&&(t=Object.assign(Object.assign({},t),{[e]:[]}));return t}return e}function Ve(e){if(q(e))return R(d,e,Y);if(Array.isArray(e)){const t={};for(const n of e)O(t,n,R(d,n,Y));return t}return Fe(G(d,fe(Y.current),l))}B.current=B.current?B.current:async({type:e,target:t})=>{let n=t.name;const r=d.current[n];let o,a;if(r){const s=e===i.BLUR,u=ae(Object.assign({isBlurEvent:s,isReValidateOnChange:ke,isReValidateOnBlur:De,isTouched:!!D(Ce.current.touched,n),isSubmitted:Ce.current.isSubmitted},se.current));let c=_e(n,!1),f=!V(c)||Ne(n);if(s&&!D(Ce.current.touched,n)&&Oe.current.touched&&(O(Ce.current.touched,n,!0),c=Object.assign(Object.assign({},c),{touched:Ce.current.touched})),!l&&T(t)&&O(Y.current,n,R(d,n)),u)return Re(n),(!V(c)||f&&V(c))&&Se(c);if(ee.current){const{errors:e}=await ee.current(Ve(),Q.current,be),r=Ce.current.isValid;if(o=D(e,n),T(t)&&!o&&ee.current){const t=ie(n),r=D(e,t,{});r.type&&r.message&&(o=r),t&&(r||D(Ce.current.errors,t))&&(n=t)}r!==(a=V(e))&&(f=!0)}else o=(await ne(d,be,r,Y))[n];Re(n),Ee(n,o,f,c,a)}};const He=Object(r.useCallback)(async(e={})=>{const{errors:t}=await ee.current(Object.assign(Object.assign({},Ve()),e),Q.current,be),n=V(t);Ce.current.isValid!==n&&Se({isValid:n})},[be]),Ue=Object(r.useCallback)((e,t)=>(function(e,t,n,r,o,a){const{ref:i,ref:{name:s}}=n,u=e.current[s];if(!o){const t=R(e,s,r);!x(t)&&O(r.current,s,t)}i.type&&u?_(i)||T(i)?Array.isArray(u.options)&&u.options.length?(y(u.options).forEach((e={},n)=>{(F(e.ref)&&W(e,e.ref)||a)&&(S(e.ref,t),U(u.options,`[${n}]`))}),u.options&&!y(u.options).length&&delete e.current[s]):delete e.current[s]:(F(i)&&W(u,i)||a)&&(S(i,t),delete e.current[s]):delete e.current[s]})(d,B.current,e,Y,l,t),[l]),We=Object(r.useCallback)(e=>{if(H.current)Se();else{for(const t of g.current)if(t.startsWith(e)){Se();break}Re(e)}},[]),ze=Object(r.useCallback)((e,t)=>{e&&(Ue(e,t),l&&!y(e.options||[]).length&&(U(L.current,e.ref.name),U(j.current,e.ref.name),U(M.current,e.ref.name),U(Ce.current.errors,e.ref.name),O(Ce.current.dirtyFields,e.ref.name,!0),Se({isDirty:je()}),Oe.current.isValid&&ee.current&&He(),We(e.ref.name)))},[He,Ue]);const Be=Object(r.useCallback)((e,t,n)=>{const r=n?w.current[n]:g.current;let o=G(d,fe(Y.current),l,!1,e);if(q(e)){if(te.current.has(e)){const t=D(h.current,e,[]);o=t.length&&t.length===y(D(o,e,[])).length?o:h.current}return oe(o,e,r,x(D(I.current,e))?t:D(I.current,e),!0)}const a=x(t)?I.current:t;return Array.isArray(e)?e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:oe(o,t,r,a)}),{}):(H.current=x(n),C(!V(o)&&o||a))},[]);function Ye(e,t={}){const{name:n,type:r,value:o}=e,s=Object.assign({ref:e},t),u=d.current,c=pe(e),l=ue(te.current,n),f=t=>le&&(!a(e)||t===e);let p,h=u[n],m=!0;if(h&&(c?Array.isArray(h.options)&&y(h.options).find(e=>o===e.ref.value&&f(e.ref)):f(h.ref)))return void(u[n]=Object.assign(Object.assign({},h),t));h=r?c?Object.assign({options:[...y(h&&h.options||[]),{ref:e}],ref:{type:r,name:n}},t):Object.assign({},s):s,u[n]=h;const g=x(D(Y.current,n));if(V(I.current)&&g||(p=D(g?I.current:Y.current,n),(m=x(p))||l||Me(n,p)),V(t)||(O(M.current,n,!0),!ge&&Oe.current.isValid&&ne(d,be,h,Y).then(e=>{const t=Ce.current.isValid;V(e)?O(j.current,n,!0):U(j.current,n),t!==V(e)&&Se()})),!(L.current[n]||l&&m)){const e=R(d,n,Y);O(L.current,n,m?v(e)?Object.assign({},e):e:p),!l&&U(Ce.current.dirtyFields,n)}r&&function({ref:e},t,n){a(e)&&n&&(e.addEventListener(t?i.CHANGE:i.INPUT,n),e.addEventListener(i.BLUR,n))}(c&&h.options?h.options[h.options.length-1]:h,c||ce(e),B.current)}const Ke=Object(r.useCallback)((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},o=Fe(G(d,fe(Y.current),l,!0));Oe.current.isSubmitting&&Se({isSubmitting:!0});try{if(ee.current){const{errors:e,values:t}=await ee.current(o,Q.current,be);Ce.current.errors=r=e,o=t}else for(const e of Object.values(d.current))if(e){const{name:t}=e.ref,n=await ne(d,be,e,Y);n[t]?(O(r,t,n[t]),U(j.current,t)):D(M.current,t)&&(U(Ce.current.errors,t),O(j.current,t,!0))}V(r)&&Object.keys(Ce.current.errors).every(e=>e in d.current)?(Se({errors:{},isSubmitting:!0}),await e(o,n)):(Ce.current.errors=Object.assign(Object.assign({},Ce.current.errors),r),t&&await t(Ce.current.errors,n),c&&k(d.current,Ce.current.errors))}finally{Ce.current.isSubmitting=!1,Se({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V(Ce.current.errors),submitCount:Ce.current.submitCount+1})}},[c,be]);Object(r.useEffect)(()=>{n&&Oe.current.isValid&&He(),xe.current=xe.current||!le?xe.current:function(e,t){const n=new MutationObserver(()=>{for(const n of Object.values(e.current))if(n&&n.options)for(const e of n.options)e&&e.ref&&F(e.ref)&&t(n);else n&&F(n.ref)&&t(n)});return n.observe(window.document,{childList:!0,subtree:!0}),n}(d,ze)},[ze,I.current]),Object(r.useEffect)(()=>()=>{xe.current&&xe.current.disconnect(),N.current=!0,Object.values(d.current).forEach(e=>ze(e,!0))},[]),!n&&Oe.current.isValid&&(ye.isValid=$(j.current,M.current)&&V(Ce.current.errors));const qe={trigger:Ae,setValue:Object(r.useCallback)(function(e,t,n){Le(e,t,n||{}),Ne(e)&&Se(),Re(e)},[Le,Ae]),getValues:Object(r.useCallback)(Ve,[]),register:Object(r.useCallback)(function(e,t){if(!he)if(q(e))Ye({name:e},t);else{if(!(v(e)&&"name"in e))return t=>t&&Ye(t,e);Ye(e,t)}},[I.current]),unregister:Object(r.useCallback)(function(e){for(const t of Array.isArray(e)?e:[e])ze(d.current[t],!0)},[]),formState:me?new Proxy(ye,{get:(e,t)=>{if(t in e)return Oe.current[t]=!0,e[t]}}):ye},Ge=Object(r.useMemo)(()=>Object.assign({isFormDirty:je,updateWatchedValue:We,shouldUnregister:l,updateFormState:Se,removeFieldEventListener:Ue,watchInternal:Be,mode:se.current,reValidateMode:{isReValidateOnBlur:De,isReValidateOnChange:ke},validateResolver:n?He:void 0,fieldsRef:d,resetFieldArrayFunctionRef:X,useWatchFieldsRef:w,useWatchRenderFunctionsRef:E,fieldArrayDefaultValuesRef:p,validFieldsRef:j,fieldsWithValidationRef:M,fieldArrayNamesRef:te,readFormStateRef:Oe,formStateRef:Ce,defaultValuesRef:I,shallowFieldsStateRef:Y,fieldArrayValuesRef:h},qe),[I.current,We,l,Ue,Be]);return Object.assign({watch:function(e,t){return Be(e,t)},control:Ge,handleSubmit:Ke,reset:Object(r.useCallback)((e,t={})=>{if(le)for(const e of Object.values(d.current))if(e){const{ref:t,options:n}=e,r=pe(t)&&Array.isArray(n)?n[0].ref:t;if(a(r))try{r.closest("form").reset();break}catch(e){}}d.current={},I.current=Object.assign({},e||I.current),e&&Re(""),Object.values(X.current).forEach(e=>Z(e)&&e()),Y.current=l?{}:fe(e||I.current),(({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:o,submitCount:a,dirtyFields:i})=>{o||(j.current={},M.current={}),L.current={},p.current={},g.current=new Set,H.current=!1,Se({submitCount:a?Ce.current.submitCount:0,isDirty:!!t&&Ce.current.isDirty,isSubmitted:!!n&&Ce.current.isSubmitted,isValid:!!o&&Ce.current.isValid,dirtyFields:i?Ce.current.dirtyFields:{},touched:r?Ce.current.touched:{},errors:e?Ce.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)},[]),clearErrors:Object(r.useCallback)(function(e){e&&(Array.isArray(e)?e:[e]).forEach(e=>d.current[e]&&b(e)?delete Ce.current.errors[e]:U(Ce.current.errors,e)),Se({errors:e?Ce.current.errors:{}})},[]),setError:Object(r.useCallback)(function(e,t){const n=(d.current[e]||{}).ref;O(Ce.current.errors,e,Object.assign(Object.assign({},t),{ref:n})),Se({isValid:!1}),t.shouldFocus&&n&&n.focus&&n.focus()},[]),errors:ye.errors},qe)}const ve=Object(r.createContext)(null);ve.displayName="RHFContext";const be=()=>Object(r.useContext)(ve);var ye=function(e){var t=e.as,n=e.errors,o=e.name,a=e.message,i=e.render,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,["as","errors","name","message","render"]),u=be(),c=D(n||u.errors,o);if(!c)return null;var l=c.message,f=c.types,d=Object.assign({},s,{children:l||a});return Object(r.isValidElement)(t)?Object(r.cloneElement)(t,d):i?i({message:l||a,messages:f}):Object(r.createElement)(t||r.Fragment,d)},we=(n(43),n(1)),Oe=n.n(we);n(44),n(48),n(52);function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(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 De(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),e}n(53);function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(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&&ke(e,t)}function Ee(e){return(Ee="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 Me(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function je(e,t){return!t||"object"!==Ee(t)&&"function"!=typeof t?Me(e):t}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pe(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}var Te=function(e,t){var n;void 0===t&&(t=Pe);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)?r:(r=e.apply(this,i),a=!0,n=this,o=i,r)}};var Ae=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();var Ie=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<a;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<a;++s)for(var c=0;c<i;++c)t[u++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var i=e+";",s=2*t+3*n+4*a;if(944===s){e=i.indexOf(":",9)+1;var u=i.substring(e,i.length-1).trim();return u=i.substring(0,e).trim()+u+";",1===j||2===j&&o(u,1)?"-webkit-"+u+u:u}if(0===j||2===j&&!o(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(k,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(u=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+u+i;case 1005:return d.test(i)?i.replace(f,":-webkit-")+i.replace(f,":-moz-")+i:i;case 1e3:switch(t=(u=i.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=i.replace(y,"tb");break;case 232:u=i.replace(y,"tb-rl");break;case 220:u=i.replace(y,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+u+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(u=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(u,"-webkit-"+u)+";"+i.replace(u,"-ms-"+u+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return u=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+u+"-ms-flex-"+u+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(C,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(C,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===D.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):i.replace(u,"-webkit-"+u)+i.replace(u,"-moz-"+u.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),A(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function i(e,t,n,r,o,a,i,s,c,l){for(var f,d=0,p=t;d<T;++d)switch(f=P[d].call(u,e,p,n,r,o,a,i,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(A=null,e?"function"!=typeof e?j=1:(j=2,A=e):j=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<T){var u=i(-1,n,s,s,E,S,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var f=function e(n,s,u,f,d){for(var p,h,m,y,O,C=0,x=0,D=0,k=0,P=0,A=0,L=m=p=0,N=0,R=0,F=0,V=0,H=u.length,U=H-1,W="",z="",B="",Y="";N<H;){if(h=u.charCodeAt(N),N===U&&0!==x+k+D+C&&(0!==x&&(h=47===x?10:47),k=D=C=0,H++,U++),0===x+k+D+C){if(N===U&&(0<R&&(W=W.replace(l,"")),0<W.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(N)}h=59}switch(h){case 123:for(p=(W=W.trim()).charCodeAt(0),m=1,V=++N;N<H;){switch(h=u.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(N+1)){case 42:case 47:e:{for(L=N+1;L<U;++L)switch(u.charCodeAt(L)){case 47:if(42===h&&42===u.charCodeAt(L-1)&&N+2!==L){N=L+1;break e}break;case 10:if(47===h){N=L+1;break e}}N=L}}break;case 91:h++;case 40:h++;case 34:case 39:for(;N++<U&&u.charCodeAt(N)!==h;);}if(0===m)break;N++}switch(m=u.substring(V,N),0===p&&(p=(W=W.replace(c,"").trim()).charCodeAt(0)),p){case 64:switch(0<R&&(W=W.replace(l,"")),h=W.charCodeAt(1)){case 100:case 109:case 115:case 45:R=s;break;default:R=_}if(V=(m=e(s,R,m,h,d+1)).length,0<T&&(O=i(3,m,R=t(_,W,F),s,E,S,V,h,d,f),W=R.join(""),void 0!==O&&0===(V=(m=O.trim()).length)&&(h=0,m="")),0<V)switch(h){case 115:W=W.replace(w,a);case 100:case 109:case 45:m=W+"{"+m+"}";break;case 107:m=(W=W.replace(g,"$1 $2"))+"{"+m+"}",m=1===j||2===j&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=W+m,112===f&&(z+=m,m="")}else m="";break;default:m=e(s,t(s,W,F),m,f,d+1)}B+=m,m=F=R=L=p=0,W="",h=u.charCodeAt(++N);break;case 125:case 59:if(1<(V=(W=(0<R?W.replace(l,""):W).trim()).length))switch(0===L&&(p=W.charCodeAt(0),45===p||96<p&&123>p)&&(V=(W=W.replace(" ",":")).length),0<T&&void 0!==(O=i(1,W,s,n,E,S,z.length,f,d,f))&&0===(V=(W=O.trim()).length)&&(W="\0\0"),p=W.charCodeAt(0),h=W.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){Y+=W+u.charAt(N);break}default:58!==W.charCodeAt(V-1)&&(z+=r(W,p,h,W.charCodeAt(2)))}F=R=L=p=0,W="",h=u.charCodeAt(++N)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==f&&0<W.length&&(R=1,W+="\0"),0<T*I&&i(0,W,s,n,E,S,z.length,f,d,f),S=1,E++;break;case 59:case 125:if(0===x+k+D+C){S++;break}default:switch(S++,y=u.charAt(N),h){case 9:case 32:if(0===k+C+x)switch(P){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===k+x+C&&(R=F=1,y="\f"+y);break;case 108:if(0===k+x+C+M&&0<L)switch(N-L){case 2:112===P&&58===u.charCodeAt(N-3)&&(M=P);case 8:111===A&&(M=A)}break;case 58:0===k+x+C&&(L=N);break;case 44:0===x+D+k+C&&(R=1,y+="\r");break;case 34:case 39:0===x&&(k=k===h?0:0===k?h:k);break;case 91:0===k+x+D&&C++;break;case 93:0===k+x+D&&C--;break;case 41:0===k+x+C&&D--;break;case 40:if(0===k+x+C){if(0===p)switch(2*P+3*A){case 533:break;default:p=1}D++}break;case 64:0===x+D+k+C+L+m&&(m=1);break;case 42:case 47:if(!(0<k+C+D))switch(x){case 0:switch(2*h+3*u.charCodeAt(N+1)){case 235:x=47;break;case 220:V=N,x=42}break;case 42:47===h&&42===P&&V+2!==N&&(33===u.charCodeAt(V+2)&&(z+=u.substring(V,N+1)),y="",x=0)}}0===x&&(W+=y)}A=P,P=h,N++}if(0<(V=z.length)){if(R=s,0<T&&void 0!==(O=i(2,z,R,n,E,S,V,f,d,f))&&0===(z=O).length)return Y+z+B;if(z=R.join(",")+"{"+z+"}",0!=j*M){switch(2!==j||o(z,2)||(M=0),M){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(v,"::-webkit-input-$1")+z.replace(v,"::-moz-$1")+z.replace(v,":-ms-input-$1")+z}M=0}}return Y+z+B}(_,s,n,0,0);return 0<T&&void 0!==(u=i(-2,f,s,s,E,S,f.length,0,0,0))&&(f=u),M=0,S=E=1,f}var c=/^\0+/g,l=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,C=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,D=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,S=1,E=1,M=0,j=1,_=[],P=[],T=0,A=null,I=0;return u.use=function e(t){switch(t){case void 0:case null:T=P.length=0;break;default:if("function"==typeof t)P[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},u.set=s,void 0!==e&&s(e),u};function Le(e){e&&Ne.current.insert(e+"}")}var Ne={current:null},Re=function(e,t,n,r,o,a,i,s,u,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ne.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return Ne.current.insert(n[0]+t),"";default:return t+(0===c?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Le)}},Fe=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Ie(t);var o,a={};o=e.container||document.head;var i,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach(function(e){a[e]=!0}),e.parentNode!==o&&o.appendChild(e)}),r.use(e.stylisPlugins)(Re),i=function(e,t,n,o){var a=t.name;Ne.current=n,r(e,t.styles),o&&(u.inserted[a]=!0)};var u={key:n,sheet:new Ae({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return u};n(54);function Ve(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "}),r}var He=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var Ue=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},We={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ze=/[A-Z]|^ms/g,Be=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ye=function(e){return 45===e.charCodeAt(1)},Ke=function(e){return null!=e&&"boolean"!=typeof e},qe=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return Ye(e)?e:e.replace(ze,"-$&").toLowerCase()}),Ge=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Be,function(e,t,n){return Je={name:t,styles:n,next:Je},t})}return 1===We[e]||Ye(e)||"number"!=typeof t||0===t?t:t+"px"};function $e(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Je={name:n.name,styles:n.styles,next:Je},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Je={name:o.name,styles:o.styles,next:Je},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$e(e,t,n[o],!1);else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Ke(i)&&(r+=qe(a)+":"+Ge(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=$e(e,t,i,!1);switch(a){case"animation":case"animationName":r+=qe(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)Ke(i[u])&&(r+=qe(a)+":"+Ge(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=Je,i=n(e);return Je=a,$e(e,t,i,r)}break;case"string":}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Je,Xe=/label:\s*([^\s;\n{]+)\s*;/g;var Qe=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Je=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=$e(n,t,a,!1)):o+=a[0];for(var i=1;i<e.length;i++)o+=$e(n,t,e[i],46===o.charCodeAt(o.length-1)),r&&(o+=a[i]);Xe.lastIndex=0;for(var s,u="";null!==(s=Xe.exec(o));)u+="-"+s[1];return{name:Ue(o)+u,styles:o,next:Je}},Ze=Object.prototype.hasOwnProperty,et=Object(r.createContext)("undefined"!=typeof HTMLElement?Fe():null),tt=Object(r.createContext)({}),nt=(et.Provider,function(e){var t=function(t,n){return Object(r.createElement)(et.Consumer,null,function(r){return e(t,r,n)})};return Object(r.forwardRef)(t)}),rt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ot=function(e,t,n,o){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var i=t[rt],s=[a],u="";"string"==typeof t.className?u=Ve(e.registered,s,t.className):null!=t.className&&(u=t.className+" ");var c=Qe(s);He(e,c,"string"==typeof i);u+=e.key+"-"+c.name;var l={};for(var f in t)Ze.call(t,f)&&"css"!==f&&f!==rt&&(l[f]=t[f]);return l.ref=o,l.className=u,Object(r.createElement)(i,l)},at=nt(function(e,t,n){return"function"==typeof e.css?Object(r.createElement)(tt.Consumer,null,function(r){return ot(t,e,r,n)}):ot(t,e,null,n)});var it=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qe(t)},st=function(e,t){var n=arguments;if(null==t||!Ze.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=at,a[1]=function(e,t){var n={};for(var r in t)Ze.call(t,r)&&(n[r]=t[r]);return n[rt]=e,n}(e,t);for(var i=2;i<o;i++)a[i]=n[i];return r.createElement.apply(null,a)},ut=nt(function(e,t){var n=e.styles;if("function"==typeof n)return Object(r.createElement)(tt.Consumer,null,function(e){var o=Qe([n(e)]);return Object(r.createElement)(ct,{serialized:o,cache:t})});var o=Qe([n]);return Object(r.createElement)(ct,{serialized:o,cache:t})}),ct=function(e){var t,n;function r(t,n,r){return e.call(this,t,n,r)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.sheet=new Ae({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},o.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},o.insertStyles=function(){if(void 0!==this.props.serialized.next&&He(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},o.componentWillUnmount=function(){this.sheet.flush()},o.render=function(){return null},r}(r.Component);var lt=nt(function(e,t){return Object(r.createElement)(tt.Consumer,null,function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Qe(n,t.registered);return He(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=Ve(e,r,n);return r.length<2?n:o+t(r)}(t.registered,r,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o}(n))},theme:n},a=e.children(o);return!0,a})}),ft=n(5);n(55);function dt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pt(){return(pt=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 ht(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 mt(e,t){if(e){if("string"==typeof e)return ht(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)?ht(e,t):void 0}}function gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}}(e,t)||mt(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 vt(e){return function(e){if(Array.isArray(e))return ht(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||mt(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 bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=n(8),wt=n.n(yt),Ot=function(){};function Ct(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}var xt=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Ee(e)&&null!==e?[e]:[]};function Dt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function kt(e){return Dt(e)?window.pageYOffset:e.scrollTop}function St(e,t){Dt(e)?window.scrollTo(0,t):e.scrollTop=t}function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ot,o=kt(e),a=t-o,i=10,s=0;!function t(){var u,c=a*((u=(u=s+=i)/n-1)*u*u+1)+o;St(e,c),s<n?window.requestAnimationFrame(t):r(e)}()}function Mt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pt(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}function Tt(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,h=f.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=kt(u),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=m-y,O=g-h,C=w+v,x=l-v-h,D=d-g+v+b,k=v+h-y;switch(o){case"auto":case"bottom":if(O>=p)return{placement:"bottom",maxHeight:t};if(x>=p&&!i)return a&&Et(u,D,160),{placement:"bottom",maxHeight:t};if(!i&&x>=r||i&&O>=r)return a&&Et(u,D,160),{placement:"bottom",maxHeight:i?O-b:x-b};if("auto"===o||i){var S=t,E=i?w:C;return E>=r&&(S=Math.min(E-b-s.controlHeight,t)),{placement:"top",maxHeight:S}}if("bottom"===o)return St(u,D),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(C>=p&&!i)return a&&Et(u,k,160),{placement:"top",maxHeight:t};if(!i&&C>=r||i&&w>=r){var M=t;return(!i&&C>=r||i&&w>=r)&&(M=i?w-y:C-y),a&&Et(u,k,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var At=function(e){return"auto"===e?"bottom":e},It=Object(r.createContext)({getPortalPlacement:null}),Lt=function(e){Se(n,r["Component"]);var t=Pt(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme;if(t){var c="fixed"===i,l=Tt({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:s&&!c,isFixedPosition:c,theme:u}),f=e.context.getPortalPlacement;f&&f(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||At(t);return _t(_t({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return De(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}();Lt.contextType=It;var Nt=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Rt=Nt,Ft=Nt,Vt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Vt.defaultProps={children:"No options"};var Ht=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Ht.defaultProps={children:"Loading..."};var Ut=function(e){Se(n,r["Component"]);var t=Pt(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==At(e.props.menuPlacement)&&e.setState({placement:n})},e}return De(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,a=e.menuPosition,i=e.getStyles,s="fixed"===a;if(!t&&!s||!r)return null;var u=this.state.placement||At(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),l=s?0:window.pageYOffset,f=c[u]+l,d=st("div",{css:i("menuPortal",{offset:f,position:a,rect:c})},n);return st(It.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(ft.createPortal)(d,t):d)}}]),n}(),Wt=Array.isArray,zt=Object.keys,Bt=Object.prototype.hasOwnProperty;function Yt(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==Ee(t)&&"object"==Ee(n)){var r,o,a,i=Wt(t),s=Wt(n);if(i&&s){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(i!=s)return!1;var u=t instanceof Date,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==n.getTime();var l=t instanceof RegExp,f=n instanceof RegExp;if(l!=f)return!1;if(l&&f)return t.toString()==n.toString();var d=zt(t);if((o=d.length)!==zt(n).length)return!1;for(r=o;0!=r--;)if(!Bt.call(n,d[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(a=d[r])&&t.$$typeof||e(t[a],n[a])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function Kt(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Kt=function(){return n},n}var qt={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},Gt=function(e){var t=e.size,n=dt(e,["size"]);return st("svg",pt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qt},n))},$t=function(e){return st(Gt,pt({size:20},e),st("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Jt=function(e){return st(Gt,pt({size:20},e),st("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Xt=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Qt=Xt,Zt=Xt,en=function(){var e=it.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Kt()),tn=function(e){var t=e.delay,n=e.offset;return st("span",{css:it({animation:"".concat(en," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},nn=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return st("div",pt({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),st(tn,{delay:0,offset:a}),st(tn,{delay:160,offset:!0}),st(tn,{delay:320,offset:!a}))};nn.defaultProps={size:4};function rn(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 on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function an(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 sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var un=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function cn(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 ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fn=function(e){var t=e.children,n=e.innerProps;return st("div",n,t)},dn=fn,pn=fn;var hn=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,s=e.innerProps,u=e.isDisabled,c=e.removeProps,l=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return st(lt,null,function(r){var h=r.css,m=r.cx;return st(f,{data:a,innerProps:ln(ln({},s),{},{className:m(h(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))}),selectProps:l},st(d,{data:a,innerProps:{className:m(h(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:l},t),st(p,{data:a,innerProps:ln({className:m(h(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:l}))})};hn.defaultProps={cropWithEllipsis:!0};function mn(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 gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}for(var vn={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({},a,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||st($t,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,s=e.innerRef,u=e.innerProps,c=e.menuIsOpen;return st("div",pt({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":c},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({},a,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||st(Jt,null))},DownChevron:Jt,CrossIcon:$t,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,s=e.label,u=e.theme,c=e.selectProps;return st("div",{css:o("group",e),className:r({group:!0},n)},st(a,pt({},i,{selectProps:c,theme:u,getStyles:o,cx:r}),s),st("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,a=(e.selectProps,dt(e,["className","cx","getStyles","theme","selectProps"]));return st("div",pt({css:r("groupHeading",on({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return st("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return st("span",pt({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,s=e.theme,u=(e.selectProps,dt(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return st("div",{css:r("input",sn({theme:s},u))},st(wt.a,pt({className:n({input:!0},t),inputRef:o,inputStyle:un(a),disabled:i},u)))},LoadingIndicator:nn,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return st("div",pt({css:o("menu",e),className:r({menu:!0},n)},i,{ref:a}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isMulti,i=e.innerRef;return st("div",{css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":a},n),ref:i},t)},MenuPortal:Ut,LoadingMessage:Ht,NoOptionsMessage:Vt,MultiValue:hn,MultiValueContainer:dn,MultiValueLabel:pn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return st("div",n,t||st($t,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,s=e.isSelected,u=e.innerRef,c=e.innerProps;return st("div",pt({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":s},n),ref:u},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return st("div",pt({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,s=e.isRtl;return st("div",pt({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":s},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return st("div",pt({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.isMulti,a=e.getStyles,i=e.hasValue;return st("div",{css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i},n)},t)}},bn=function(e){return gn(gn({},vn),e.components)},yn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],wn=new RegExp("["+yn.map(function(e){return e.letters}).join("")+"]","g"),On={},Cn=0;Cn<yn.length;Cn++)for(var xn=yn[Cn],Dn=0;Dn<xn.letters.length;Dn++)On[xn.letters[Dn]]=xn.base;var kn=function(e){return e.replace(wn,function(e){return On[e]})};function Sn(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}var En=function(e){return e.replace(/^\s+|\s+$/g,"")},Mn=function(e){return"".concat(e.label," ").concat(e.value)};var jn={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},_n=function(e){return st("span",pt({css:jn},e))};function Pn(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,dt(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return st("input",pt({ref:t},n,{css:it({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function Tn(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var An=function(e){Se(n,r["Component"]);var t=Tn(n);function n(){return Ce(this,n),t.apply(this,arguments)}return De(n,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(ft.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),n}(),In=["boxSizing","height","overflow","paddingRight","position"],Ln={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Nn(e){e.preventDefault()}function Rn(e){e.stopPropagation()}function Fn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Vn(){return"ontouchstart"in window||navigator.maxTouchPoints}function Hn(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var Un=!(!window.document||!window.document.createElement),Wn=0,zn=function(e){Se(n,r["Component"]);var t=Hn(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return De(n,[{key:"componentDidMount",value:function(){var e=this;if(Un){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;if(n&&In.forEach(function(t){var n=a&&a[t];e.originalStyles[t]=n}),n&&Wn<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,u=window.innerWidth-s+i||0;Object.keys(Ln).forEach(function(e){var t=Ln[e];a&&(a[e]=t)}),a&&(a.paddingRight="".concat(u,"px"))}o&&Vn()&&(o.addEventListener("touchmove",Nn,this.listenerOptions),r&&(r.addEventListener("touchstart",Fn,this.listenerOptions),r.addEventListener("touchmove",Rn,this.listenerOptions))),Wn+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Un){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,a=o&&o.style;Wn=Math.max(Wn-1,0),n&&Wn<1&&In.forEach(function(t){var n=e.originalStyles[t];a&&(a[t]=n)}),o&&Vn()&&(o.removeEventListener("touchmove",Nn,this.listenerOptions),r&&(r.removeEventListener("touchstart",Fn,this.listenerOptions),r.removeEventListener("touchmove",Rn,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),n}();function Bn(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}zn.defaultProps={accountForScrollbars:!0};var Yn={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},Kn=function(e){Se(n,r["PureComponent"]);var t=Bn(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return De(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?st("div",null,st("div",{onClick:this.blurSelectInput,css:Yn}),st(An,{innerRef:this.getScrollTarget},t),r?st(zn,{touchScrollTarget:r}):null):t}}]),n}();function qn(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var Gn=function(e){Se(n,r["Component"]);var t=qn(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,n){var r=e.props,o=r.onBottomArrive,a=r.onBottomLeave,i=r.onTopArrive,s=r.onTopLeave,u=e.scrollTarget,c=u.scrollTop,l=u.scrollHeight,f=u.clientHeight,d=e.scrollTarget,p=n>0,h=l-f-c,m=!1;h>n&&e.isBottom&&(a&&a(t),e.isBottom=!1),p&&e.isTop&&(s&&s(t),e.isTop=!1),p&&n>h?(o&&!e.isBottom&&o(t),d.scrollTop=l,m=!0,e.isBottom=!0):!p&&-n>c&&(i&&!e.isTop&&i(t),d.scrollTop=0,m=!0,e.isTop=!0),m&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return De(n,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return o.a.createElement(An,{innerRef:this.getScrollTarget},this.props.children)}}]),n}();function $n(e){var t=e.isEnabled,n=void 0===t||t,r=dt(e,["isEnabled"]);return n?o.a.createElement(Gn,r):r.children}var Jn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Xn=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},Qn=function(e){return!!e.isDisabled};var Zn={clearIndicator:Zt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Qt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Ft,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return bt(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),bt(t,"backgroundColor",i.neutral0),bt(t,"borderRadius",o),bt(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),bt(t,"marginBottom",a.menuGutter),bt(t,"marginTop",a.menuGutter),bt(t,"position","absolute"),bt(t,"width","100%"),bt(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Rt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var er={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function tr(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 nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rr(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var or,ar={backspaceRemovesValue:!0,blurInputOnSelect:Mt(),captureMenuScroll:!Mt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ignoreCase:!0,ignoreAccents:!0,stringify:Mn,trim:!0,matchFrom:"any"},or),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,s=n.matchFrom,u=i?En(t):t,c=i?En(a(e)):a(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=kn(u),c=kn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Qn,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},ir=1,sr=function(e){Se(n,r["Component"]);var t=rr(n);function n(e){var r;Ce(this,n),(r=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},r.blockOptionHover=!1,r.isComposing=!1,r.clearFocusValueOnUpdate=!1,r.commonProps=void 0,r.components=void 0,r.hasGroups=!1,r.initialTouchX=0,r.initialTouchY=0,r.inputIsHiddenAfterUpdate=void 0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.cacheComponents=function(e){r.components=bn({components:e})},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;o(e,nr(nr({},t),{},{name:a}))},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,a=o.closeMenuOnSelect,i=o.isMulti;r.onInputChange("",{action:"set-value"}),a&&(r.inputIsHiddenAfterUpdate=!i,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=r.state.selectValue;if(o)if(r.isOptionSelected(e,a)){var i=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==i}),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(vt(a),[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.state.selectValue,n=r.getOptionValue(e),o=t.filter(function(e){return r.getOptionValue(e)!==n});r.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){var e=r.props.isMulti;r.onChange(e?[]:null,{action:"clear"})},r.popValue=function(){var e=r.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:t?r.getOptionLabel(t):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},r.getOptionLabel=function(e){return r.props.getOptionLabel(e)},r.getOptionValue=function(e){return r.props.getOptionValue(e)},r.getStyles=function(e,t){var n=Zn[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getActiveDescendentId=function(){var e=r.props.menuIsOpen,t=r.state,n=t.menuOptions,o=t.focusedOption;if(o&&e){var a=n.focusable.indexOf(o),i=n.render[a];return i&&i.key}},r.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;r.setState({ariaLiveSelection:Xn(t,n)})},r.announceAriaLiveContext=function(e){var t=e.event,n=e.context;r.setState({ariaLiveContext:Jn(t,nr(nr({},n),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.inputIsHiddenAfterUpdate=!n,r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Dt(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,o=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:o}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){var e=r.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,u=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!f||!h||d&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(i)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.buildMenuOptions=function(e,t){var n=e.inputValue,o=void 0===n?"":n,a=e.options,i=function(e,n){var a=r.isOptionDisabled(e,t),i=r.isOptionSelected(e,t),s=r.getOptionLabel(e),u=r.getOptionValue(e);if(!(r.shouldHideSelectedOptions()&&i||!r.filterOption({label:s,value:u,data:e},o))){var c=a?void 0:function(){return r.onOptionHover(e)},l=a?void 0:function(){return r.selectOption(e)},f="".concat(r.getElementId("option"),"-").concat(n);return{innerProps:{id:f,onClick:l,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:f,label:s,type:"option",value:u}}};return a.reduce(function(e,t,n){if(t.options){r.hasGroups||(r.hasGroups=!0);var o=t.options.map(function(t,r){var o=i(t,"".concat(n,"-").concat(r));return o&&e.focusable.push(t),o}).filter(Boolean);if(o.length){var a="".concat(r.getElementId("group"),"-").concat(n);e.render.push({type:"group",key:a,data:t,options:o})}}else{var s=i(t,"".concat(n));s&&(e.render.push(s),e.focusable.push(t))}return e},{render:[],focusable:[]})};var o=e.value;r.cacheComponents=Te(r.cacheComponents,Yt).bind(Me(r)),r.cacheComponents(e.components),r.instancePrefix="react-select-"+(r.props.instanceId||++ir);var a=xt(o);r.buildMenuOptions=Te(r.buildMenuOptions,function(e,t){var n=gt(e,2),r=n[0],o=n[1],a=gt(t,2),i=a[0];return Yt(o,a[1])&&Yt(r.inputValue,i.inputValue)&&Yt(r.options,i.options)}).bind(Me(r));var i=e.menuIsOpen?r.buildMenuOptions(e,a):{render:[],focusable:[]};return r.state.menuOptions=i,r.state.selectValue=a,r}return De(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=xt(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},u=this.getNextFocusedValue(i),c=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:i,focusedOption:c,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,s=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&u&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?St(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&St(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildMenuOptions(this.props,r),i=this.props.isMulti,s="first"===e?0:a.focusable.length-1;if(!i){var u=a.focusable.indexOf(r[0]);u>-1&&(s=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[s]},function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var s=a.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=a.length-1,c=-1;if(a.length){switch(e){case"previous":c=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s<u&&(c=s+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var a=0,i=o.indexOf(r);r||(i=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=i>0?i-1:o.length-1:"down"===e?a=(i+1)%o.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>o.length-1&&(a=o.length-1):"last"===e&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Qn(o[a])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(er):nr(nr({},er),this.props.theme):er}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,a=o.classNamePrefix,i=o.isMulti,s=o.isRtl,u=o.options,c=this.state.selectValue,l=this.hasValue();return{cx:function(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Ct(e,o)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}.bind(null,a),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:l,isMulti:i,isRtl:s,options:u,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===r})}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,s=a.menuIsOpen,u=a.inputValue,c=a.screenReaderStatus,l=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:c({count:this.countOptions()})});return"".concat(l," ").concat(f," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,i=e.tabIndex,s=e.form,u=this.components.Input,c=this.state.inputIsHidden,l=r||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return o.a.createElement(Pn,pt({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ot,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:s,value:""},f));var d=this.commonProps,p=d.cx,h=d.theme,m=d.selectProps;return o.a.createElement(u,pt({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:i,form:s,theme:h,type:"text",value:a},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,c=this.commonProps,l=this.props,f=l.controlShouldRenderValue,d=l.isDisabled,p=l.isMulti,h=l.inputValue,m=l.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!f)return h?null:o.a.createElement(u,pt({},c,{key:"placeholder",isDisabled:d,isFocused:y}),m);if(p)return v.map(function(t,s){var u=t===b;return o.a.createElement(n,pt({},c,{components:{Container:r,Label:a,Remove:i},isFocused:u,isDisabled:d,key:e.getOptionValue(t),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var w=v[0];return o.a.createElement(s,pt({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,pt({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!e||!a)return null;return o.a.createElement(e,pt({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return o.a.createElement(n,pt({},r,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,pt({},t,{innerProps:a,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,a=t.Menu,i=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,c=t.NoOptionsMessage,l=t.Option,f=this.commonProps,d=this.state,p=d.focusedOption,h=d.menuOptions,m=this.props,g=m.captureMenuScroll,v=m.inputValue,b=m.isLoading,y=m.loadingMessage,w=m.minMenuHeight,O=m.maxMenuHeight,C=m.menuIsOpen,x=m.menuPlacement,D=m.menuPosition,k=m.menuPortalTarget,S=m.menuShouldBlockScroll,E=m.menuShouldScrollIntoView,M=m.noOptionsMessage,j=m.onMenuScrollToTop,_=m.onMenuScrollToBottom;if(!C)return null;var P,T=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,o.a.createElement(l,pt({},f,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=h.render.map(function(t){if("group"===t.type){t.type;var a=dt(t,["type"]),i="".concat(t.key,"-heading");return o.a.createElement(n,pt({},f,a,{Heading:r,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return T(e)}))}if("option"===t.type)return T(t)});else if(b){var A=y({inputValue:v});if(null===A)return null;P=o.a.createElement(u,f,A)}else{var I=M({inputValue:v});if(null===I)return null;P=o.a.createElement(c,f,I)}var L={minMenuHeight:w,maxMenuHeight:O,menuPlacement:x,menuPosition:D,menuShouldScrollIntoView:E},N=o.a.createElement(Lt,pt({},f,L),function(t){var n=t.ref,r=t.placerProps,s=r.placement,u=r.maxHeight;return o.a.createElement(a,pt({},f,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),o.a.createElement($n,{isEnabled:g,onTopArrive:j,onBottomArrive:_},o.a.createElement(Kn,{isEnabled:S},o.a.createElement(i,pt({},f,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:u}),P))))});return k||"fixed"===D?o.a.createElement(s,pt({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:D}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,i=t.name,s=this.state.selectValue;if(i&&!r){if(a){if(n){var u=s.map(function(t){return e.getOptionValue(t)}).join(n);return o.a.createElement("input",{name:i,type:"hidden",value:u})}var c=s.length>0?s.map(function(t,n){return o.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):o.a.createElement("input",{name:i,type:"hidden"});return o.a.createElement("div",null,c)}var l=s[0]?this.getOptionValue(s[0]):"";return o.a.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?o.a.createElement(_n,{"aria-live":"polite"},o.a.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),o.a.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,u=i.id,c=i.isDisabled,l=i.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.a.createElement(r,pt({},d,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),o.a.createElement(t,pt({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:l}),o.a.createElement(a,pt({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.a.createElement(n,pt({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}();sr.defaultProps=ar;n(56);function ur(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}var cr={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};var lr,fr,dr,pr=(lr=sr,dr=fr=function(e){Se(n,r.Component);var t=ur(n);function n(){var e;Ce(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return De(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue,dt(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return o.a.createElement(lr,pt({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(),fr.defaultProps=cr,dr),hr=n(16),mr=n.n(hr),gr=n(17),vr=n.n(gr),br=n(2),yr=n.n(br),wr=["mousedown","touchstart"];var Or=n(24);n(23);var Cr=function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e},xr=("undefined"!=typeof window&&void 0!==window.document&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,{name:"kpm0v2",styles:"position:absolute;display:block;width:16px;height:8px;margin:0 5px;&:before,&:after{position:absolute;display:block;content:'';border-color:transparent;border-style:solid;}"}),Dr=function(e){e.placement;var t=yr()(e,["placement"]);return st(r.Fragment,null,st(ut,{styles:kr}),st("div",Oe()({},t,{"data-arrow":"true",css:xr})))},kr={name:"rvo98s",styles:"[x-placement^='top']{margin-bottom:8px;[data-arrow]{bottom:-9px;}[data-arrow]:before{bottom:0;border-width:8px 8px 0;border-top-color:rgba(0,0,0,0.25);}[data-arrow]:after{bottom:1px;border-width:8px 8px 0;border-top-color:#fff;}}[x-placement^='right']{margin-left:8px;[data-arrow]{left:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{left:0;border-width:8px 8px 8px 0;border-right-color:rgba(0,0,0,0.25);}[data-arrow]:after{left:1px;border-width:8px 8px 8px 0;border-right-color:#fff;}}[x-placement^='bottom']{margin-top:8px;[data-arrow]{top:-9px;}[data-arrow]:before{top:0;border-width:0 8px 8px 8px;border-bottom-color:rgba(0,0,0,0.25);}[data-arrow]:after{top:1px;border-width:0 8px 8px 8px;border-bottom-color:#fff;}}[x-placement^='left']{margin-right:8px;[data-arrow]{right:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{right:0;border-width:8px 0 8px 8px;border-left-color:rgba(0,0,0,0.25);}[data-arrow]:after{right:1px;border-width:8px 0 8px 8px;border-left-color:#fff;}}"},Sr=function(e){var t,n,a,i=e.header,s=e.body,u=e.children,c=e.placement,l=e.trigger,f=e.styles,d=yr()(e,["header","body","children","placement","trigger","styles"]),p=o.a.Children.only(u),h=Object(r.useRef)(null),m=Object(r.useState)(!1),g=m[0],v=m[1],b=Object(r.useState)(!1),y=b[0],w=b[1],O=Object(r.useState)({popoverId:null,referenceId:null,arrowId:null}),C=O[0],x=O[1],D=C.popoverId,k=C.referenceId,S=C.arrowId;t=h,n=function(e){e.target.id===k||document.getElementById(k).contains(e.target)||v(!1)},a=Object(r.useRef)(),Object(r.useEffect)(function(){a.current=n},[n]),Object(r.useEffect)(function(){var e=function(e){t.current&&!t.current.contains(e.target)&&a.current(event)};return wr.forEach(function(t){document.addEventListener(t,e,{passive:!0})}),function(){wr.forEach(function(t){document.removeEventListener(t,e,{passive:!0})})}},[t,n]),Object(r.useEffect)(function(){if(!D)return x({popoverId:Cr("popover"),referenceId:Cr("reference"),arrowId:Cr("arrow")});var e=document.getElementById(D),t=document.getElementById(k),n=document.getElementById(S);e&&t&&n&&(new Or.a(t,e,{placement:c,modifiers:{arrow:{element:n}}}),w(g))},[g]);var E={content:[Er.content,f.content],header:[Er.header,f.header],body:[Er.body,f.body]};return st(r.Fragment,null,D?st("div",Oe()({},d,{id:D,ref:h,css:E.content,style:y?{display:"block"}:{}}),st(Dr,{id:S}),i?st("div",{css:E.header},i):null,st("div",{css:E.body},s)):null,o.a.cloneElement(p,Oe()({},p.props,{id:k,onClick:function(){"click"===l&&v(!g)}})))};Sr.defaultProps={placement:"right",trigger:"click",styles:{}};var Er={content:{name:"106ha8s",styles:"display:none;max-width:300px;background-color:#fff;border-radius:4px;border:1px solid rgba(0,0,0,0.2);z-index:1060;"},header:{name:"12koz1z",styles:"padding:8px 12px;background-color:#f7f7f7;font-size:16px;font-weight:bold;border-top-left-radius:4px;border-top-right-radius:4px;"},body:{name:"k7kym8",styles:"padding:8px 12px;font-size:14px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;"}},Mr=Sr;function jr(e){var t=e.touches;if(t&&t.length){var n=t[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}}var _r={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Pr={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},Tr={position:"relative",display:"block",content:'""',width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",cursor:"pointer",boxSizing:"border-box"},Ar={x:{track:Oe()({},_r,{width:200,height:10}),active:Oe()({},Pr,{top:0,height:"100%"}),thumb:Oe()({},Tr)},y:{track:Oe()({},_r,{width:10,height:200}),active:Oe()({},Pr,{left:0,width:"100%"}),thumb:Oe()({},Tr)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:Oe()({},Tr)},disabled:{opacity:.5}},Ir=function(e){var t=e.disabled,n=e.axis,o=e.x,a=e.y,i=e.xmin,s=e.xmax,u=e.ymin,c=e.ymax,l=e.xstep,f=e.ystep,d=e.onChange,p=e.onDragStart,h=e.onDragEnd,m=e.onClick,g=e.xreverse,v=e.yreverse,b=e.styles,y=yr()(e,["disabled","axis","x","y","xmin","xmax","ymin","ymax","xstep","ystep","onChange","onDragStart","onDragEnd","onClick","xreverse","yreverse","styles"]),w=Object(r.useRef)(null),O=Object(r.useRef)(null),C=Object(r.useRef)({}),x=Object(r.useRef)({});function D(e){var t=e.top,r=e.left;if(d){var o=w.current.getBoundingClientRect(),a=o.width,p=o.height,h=0,m=0;r<0&&(r=0),r>a&&(r=a),t<0&&(t=0),t>p&&(t=p),"x"!==n&&"xy"!==n||(h=r/a*(s-i)),"y"!==n&&"xy"!==n||(m=t/p*(c-u));var b=(0!==h?parseInt(h/l,10)*l:0)+i,y=(0!==m?parseInt(m/f,10)*f:0)+u;d({x:g?s-b+i:b,y:v?c-y+u:y})}}function k(e){if(!t){e.preventDefault();var n=O.current,r=jr(e);C.current={x:n.offsetLeft,y:n.offsetTop},x.current={x:r.x,y:r.y},document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",E),document.addEventListener("touchcancel",E),p&&p(e)}}function S(e){t||(e.preventDefault(),D(function(e){var t=jr(e);return{left:t.x+C.current.x-x.current.x,top:t.y+C.current.y-x.current.y}}(e)))}function E(e){t||(e.preventDefault(),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",S,{passive:!1}),document.removeEventListener("touchend",E),document.removeEventListener("touchcancel",E),h&&h(e))}var M,j,_=((M=(a-u)/(c-u)*100)>100&&(M=100),M<0&&(M=0),"x"===n&&(M=0),(j=(o-i)/(s-i)*100)>100&&(j=100),j<0&&(j=0),"y"===n&&(j=0),{top:M,left:j}),P={};"x"===n&&(P.width=_.left+"%"),"y"===n&&(P.height=_.top+"%"),g&&(P.left=100-_.left+"%"),v&&(P.top=100-_.top+"%");var T={position:"absolute",transform:"translate(-50%, -50%)",left:g?100-_.left+"%":_.left+"%",top:v?100-_.top+"%":_.top+"%"};"x"===n?T.top="50%":"y"===n&&(T.left="50%");var A={track:Oe()({},Ar[n].track,{},b.track),active:Oe()({},Ar[n].active,{},b.active),thumb:Oe()({},Ar[n].thumb,{},b.thumb),disabled:Oe()({},Ar.disabled,{},b.disabled)};return st("div",Oe()({},y,{ref:w,css:it([A.track,t&&A.disabled],";label:Slider;"),onClick:function(e){if(!t){var n=jr(e),r=w.current.getBoundingClientRect();D({left:n.x-r.left,top:n.y-r.top}),m&&m(e)}}}),st("div",{css:A.active,style:P}),st("div",{ref:O,style:T,onTouchStart:k,onMouseDown:k,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},st("div",{css:A.thumb})))};Ir.defaultProps={disabled:!1,axis:"x",x:50,xmin:0,xmax:100,y:50,ymin:0,ymax:100,xstep:1,ystep:1,xreverse:!1,yreverse:!1,styles:{}};var Lr=Ir,Nr=n(21),Rr=n.n(Nr),Fr=n(4),Vr=n.n(Fr),Hr=n(22),Ur=n.n(Hr),Wr=38,zr=40,Br="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),Yr=function(e){var t=e.step,n=e.min,o=e.max,a=e.value,i=e.onChange,s=e.onKeyDown,u=e.enableMobileNumericKeyboard,c=e.component,l=yr()(e,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),f=Object(r.useState)(a),d=f[0],p=f[1];Object(r.useEffect)(function(){p(a)},[a]);var h={value:d,onChange:function(e){var t=function(e){if(Vr()(e))return e;if(Ur()(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!Rr()(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){e.keyCode===Wr?i&&i(qr("+",a,o,n,t)):e.keyCode===zr&&i&&i(qr("-",a,o,n,t)),s&&s(e)},onWheel:function(e){e.target.blur()}};return st(c,u?Oe()({},l,h,{css:Kr,type:"number",inputMode:"numeric",pattern:Br?"[0-9]*":"",step:t,min:n,max:o}):Oe()({},l,h,{css:Kr,type:"text"}))};Yr.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=yr()(e,["onChange"]);return st("input",Oe()({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var Kr={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function qr(e,t,n,r,o){if(""===t)return Vr()(r)?r:"";if(t="+"===e?t+o:t-o,Vr()(n)&&t>n)return n;if(Vr()(r)&&t<r)return r;var a=(o.toString().split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}var Gr=Yr;function $r(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}}function Jr(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,i=o*(1-Math.abs(a%2-1)),s=n-o;return r=a>=0&&a<1?[o,i,0]:a>=1&&a<2?[i,o,0]:a>=2&&a<3?[0,o,i]:e>=3&&a<4?[0,i,o]:e>=4&&a<5?[i,0,o]:e>=5&&a<=6?[o,0,i]:[0,0,0],{r:Math.round(255*(r[0]+s)),g:Math.round(255*(r[1]+s)),b:Math.round(255*(r[2]+s))}}function Xr(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Qr(e,t,n){return"#"+[Xr(e),Xr(t),Xr(n)].join("")}function Zr(e,t,n){var r,o=Math.max(e,t,n),a=o-Math.min(e,t,n);return r=0===a?0:e===o?(t-n)/a%6:t===o?(n-e)/a+2:(e-t)/a+4,(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:a/o)),v:Math.round(o/255*100)}}function eo(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}var to=13,no={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},ro={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},oo=function(e){var t=e.color,n=e.onChange,r=t.r,o=t.g,a=t.b,i=t.a,s=t.h,u=t.s,c=t.v;function l(e){n&&n(Oe()({},e,{rgba:eo(e.r,e.g,e.b,e.a)}))}function f(e,n,r){var o=Jr(e,n,r),a=o.r,i=o.g,s=o.b,u=Qr(a,i,s);l(Oe()({},t,{h:e,s:n,v:r,r:a,g:i,b:s,hex:u}))}function d(e,n,r){var o=Qr(e,n,r),a=Zr(e,n,r),i=a.h,s=a.s,u=a.v;l(Oe()({},t,{r:e,g:n,b:r,h:i,s:s,v:u,hex:o}))}function p(e){l(Oe()({},t,{a:e}))}var h=eo(r,o,a,i),m="linear-gradient(to right, "+eo(r,o,a,0)+", "+eo(r,o,a,100)+")",g=function(e,t,n){var r=Jr(e,t,n);return Qr(r.r,r.g,r.b)}(s,100,100);return st("div",{css:ao.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},st("div",{css:ao.selector,style:{backgroundColor:g}},st("div",{css:ao.gradientWhite}),st("div",{css:ao.gradientDark}),st(Lr,{axis:"xy",x:u,xmax:100,y:100-c,ymax:100,onChange:function(e){var t=e.x,n=e.y;return f(s,t,100-n)},styles:{track:{width:"100%",height:"100%",background:"none"},thumb:{width:12,height:12,backgroundColor:"rgba(0,0,0,0)",border:"2px solid #fff",borderRadius:"50%"}}})),st("div",{css:no},st("div",{css:ro},st(Lr,{axis:"x",x:s,xmax:359,onChange:function(e){return f(e.x,u,c)},styles:{track:{width:"100%",height:12,borderRadius:0,background:"linear-gradient(to left, #FF0000 0%, #FF0099 10%, #CD00FF 20%, #3200FF 30%, #0066FF 40%, #00FFFD 50%, #00FF66 60%, #35FF00 70%, #CDFF00 80%, #FF9900 90%, #FF0000 100%)"},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}}),st(Lr,{axis:"x",x:i,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:m},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return p(e.x)}})),st("div",{style:{backgroundColor:h,width:30,height:30}})),st("div",{css:ao.inputs},st("div",{css:ao.input},st("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return n=e.target.value,r=$r(n),o=r.r,a=r.g,i=r.b,s=Zr(o,a,i),u=s.h,c=s.s,f=s.v,void l(Oe()({},t,{r:o,g:a,b:i,h:u,s:c,v:f,hex:n}));var n,r,o,a,i,s,u,c,f},onKeyUp:function(e){if(e.keyCode===to){var n=e.target.value.trim(),r=$r(n),o=r.r,a=r.g,s=r.b;l(Oe()({},t,{r:o,g:a,b:s,a:i,hex:n}))}}}),st("div",null,"Hex")),st("div",{css:ao.input},st(Gr,{min:0,max:255,value:r,onChange:function(e){return d(e,o,a)}}),st("div",null,"R")),st("div",{css:ao.input},st(Gr,{min:0,max:255,value:o,onChange:function(e){return d(r,e,a)}}),st("div",null,"G")),st("div",{css:ao.input},st(Gr,{min:0,max:255,value:a,onChange:function(e){return d(r,o,e)}}),st("div",null,"B")),st("div",{css:ao.input},st(Gr,{min:0,max:100,value:i,onChange:function(e){return p(e)}}),st("div",null,"A"))))};oo.defaultProps={initialValue:"#5e72e4"};var ao={picker:{fontFamily:"'Helvetica Neue',Helvetica,Arial,sans-serif",width:230,"*":{userSelect:"none"}},selector:{position:"relative",width:230,height:230},gradientWhite:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%)"},gradientDark:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, transparent 0%, #000000 100%)"},inputs:{display:"flex",justifyContent:"space-between",width:"100%"},input:{textAlign:"center",fontSize:13,fontWeight:"normal",color:"#000",input:{width:30,textAlign:"center"},div:{marginTop:4}}};function io(e){var t,n=(e=e.toLowerCase()).substr(0,7),r=$r(n),o=r.r,a=r.g,i=r.b,s=Zr(o,a,i),u=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return Oe()({},s,{r:o,g:a,b:i,a:u,hex:n,rgba:eo(o,a,i,u)})}var so={name:"j4ndc3",styles:"position:relative;display:inline-block;box-sizing:border-box;width:49px;height:24px;padding:4px;background-color:#ffffff;border:1px solid #bebebe;border-radius:3px;user-select:none;"},uo={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},co=function(e){var t=e.initialValue,n=e.onChange,o=e.placement,a=yr()(e,["initialValue","onChange","placement"]),i=Object(r.useState)(io(t)),s=i[0],u=i[1];function c(e){n&&(u(e),n(e))}return Object(r.useEffect)(function(){c(io(t))},[t]),st(Mr,{placement:o,body:st(oo,{color:s,onChange:c})},st("span",Oe()({},a,{css:so}),st("span",{css:uo,style:{backgroundColor:s.rgba}})))};co.defaultProps={placement:"bottom"};var lo=co,fo=n(18),po=n.n(fo),ho=n(19),mo=n.n(ho),go=n(20),vo=n.n(go);function bo(e){return(bo="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 yo,wo=function(e){var t=function(){this.parser=new i},n=t.prototype;function r(e,t){for(var n=[],r=t,o=e.length;r<o;r++)n.push(e[r]);return n}var o=function(){var e=function e(t,n,r){this.prefix=(t||"")+":",this.level=n||e.NONE,this.out=r||window.console&&window.console.log.bind(window.console),this.warn=this.log.bind(this,e.WARN),this.info=this.log.bind(this,e.INFO),this.debug=this.log.bind(this,e.DEBUG)},t=e.prototype;return e.DEBUG=1,e.INFO=2,e.WARN=3,e.NONE=4,t.log=function(e,t){if(e>=this.level&&"function"==typeof this.out){var n=r(arguments,2);n=[this.prefix+t].concat(n),this.out.apply(this,n)}},e}(),a=function(){var e=function(e){this.obj=e||{}},t=e.prototype;return t.get=function(e){var t=this.obj[e];return void 0===t&&this.parent&&(t=this.parent.get(e)),t},t.set=function(e,t){return this.obj[e]=t,this.get(e)},e}(),i=function(){var e=new o("PARSER",o.NONE),t=new o("EMIT",o.NONE),n=function(){};function i(e){var t={};return e.forEach(function(e,n){t[e]=n}),t}function s(n){if(void 0!==n)switch(n.id){case"Expr":case"Tuple":return s(n.expr);case"OpenTuple":return n.expr?u(n.expr):u(n.left,n.right);case"Assign":return n.expr?s(n.expr):(c=n.left,l=s(l=n.right),function(e){return e.set(c.value,l.apply(null,arguments))});case"Sums":case"Prod":case"Power":return n.expr?s(n.expr):function(t,n,o){n=s(n),o=s(o);var a=void 0;function i(e){var t=r(arguments,1);return e(n.apply(this,t),o.apply(this,t))}switch(t.id){case"Plus":return i.bind(a,function(e,t){return+e+t});case"Minus":return i.bind(a,function(e,t){return e-t});case"Mul":return i.bind(a,function(e,t){return e*t});case"Div":return i.bind(a,function(e,t){return e/t});case"Mod":return i.bind(a,function(e,t){return e%t});case"Pow":return i.bind(a,function(e,t){return Math.pow(e,t)})}return e.warn("No emitter for %o",t),function(){}}(n.op,n.left,n.right);case"Unary":return n.expr?s(n.expr):function(t,n){switch(n=s(n),t.id){case"Plus":return function(){return n.apply(this,arguments)};case"Minus":return function(){return-n.apply(this,arguments)}}return e.warn("No emitter for %o",t),function(){}}(n.op,n.right);case"Call":return o=n.token,a=n.args,i=function e(t){if(void 0!==t)switch(t.id){case"Expr":case"Tuple":return e(t.expr);case"OpenTuple":return!0}return!1}(a),a=s(a),function(e){var t=e.get(o.value);if("function"==typeof t){var n=a.apply(null,arguments);return i||(n=[n]),t.apply(null,n)}e.set("runtimeError",{text:'Call to undefined "'+o.value+'"'})};case"Parens":return s(n.expr);case"Value":return s(n.token);case"Number":return function(){return n.value};case"Var":return function(e){return e.get(n.value)};default:t.warn("No emitter for %o",n)}var o,a,i,c,l;return function(){}}function u(e,t){if(void 0===e)return function(){return[]};var n="OpenTuple"===e.id;return e=s(e),void 0===t?function(){return[e.apply(null,arguments)]}:(t=s(t),n?function(){var n=e.apply(null,arguments);return n.push(t.apply(null,arguments)),n}:function(){return[e.apply(null,arguments),t.apply(null,arguments)]})}n.prototype.parse=function(n){this.error=void 0;var r=function(e){var t,n,r=[],o=0;for(;void 0!==(t=S(e,o));)t.error?n=t.error:"Space"!==t.id&&r.push(t),o=t.end;return{tokens:r,error:n}}(n),o=function(t){for(var n={tokens:t,pos:0,stack:[],scope:{}},r=0,o=t.length,a=!1;!a&&r<=o;){var i=t[r],s=n.stack[n.stack.length-1],u=(s?s.id:"(empty)")+":"+(i?i.id:"(eof)"),l=p[u];switch(l){case f:e.debug("shift %s %o",u,m(n.stack)),n=g(n,i),r++;break;case d:e.debug("reduce %s %o",u,m(n.stack)),n=b(n,i);break;case c:e.debug("done %s %o",u,m(n.stack)),a=!0;break;default:if(void 0!==i){var h={pos:i.pos,text:'Unexpected token "'+i.string+'"'};n.error=h,e.warn("%s at %d (%s)",h.text,h.pos,u)}else{var h={text:"Unexpected EOF",pos:n.pos+1};n.error=h,e.warn("%s (%s)",h.text,u)}a=!0}}if(!n.error&&n.stack.length>1){var v=y(n,1),w=v.pos||0,O="LParen"===v.id,h={pos:w,text:O?"Open paren":"Invalid expression"};n.error=h,e.warn("%s at %d (eof)",h.text,h.pos)}return{root:n.stack.pop(),vars:Object.keys(n.scope),error:n.error}}(r.tokens);t.debug("AST: %o",o);var u,h,v=(u=s(o.root),function(e){try{return u.apply(null,arguments)}catch(t){e.set("runtimeError",{text:""+t})}});return h={},{error:r.error||o.error,args:i(o.vars),eval:function(){return v(function(e,t,n){if(1===n.length&&"object"===bo(n[0])){var r=n[0];t.forEach(function(t){e[t]=r[t]})}else for(var o=0,i=t.length,s=n.length;o<i&&o<s;o++)e[t[o]]=n[o];delete e.runtimeError;var u=new a(e);return u.parent=l,u}(h,o.vars,arguments))},set scope(e){h=e||{}},get scope(){return h}}};var c=0,f=1,d=2,p={};function h(e,t,n){for(var r=0,o=t.length;r<o;r++)for(var a=0,i=n.length;a<i;a++){var s=t[r]+":"+n[a];p[s]=e}}function m(t){return e.level>=o.DEBUG?t.map(function(e){return e.id}):""}function g(e,t){return v(e,0,t)}function v(e,t,n){var r=e.stack.slice(0,e.stack.length-t),o=e.pos;return n&&(r.push(n),void 0!==n.pos&&(o=n.pos)),{tokens:e.tokens,pos:o,stack:r,scope:e.scope,error:e.error}}function b(t,n){switch(y(t,0).id){case"Tuple":return function(e){var t=y(e,0);return v(e,1,{id:"Expr",expr:t})}(t);case"OpenTuple":case"Comma":return w(t,n);case"Assign":case"Sums":return function(e,t){var n=y(e,1),r=y(e,0);if(void 0!==r&&"Sums"===r.id)return O(e,["Eq"],"Assign");if(void 0!==n&&"Eq"===n.id)return O(e,["Eq"],"Assign");return w(e,t)}(t,n);case"Prod":return function(e){return O(e,["Plus","Minus"],"Sums")}(t);case"Power":case"Unary":return function(e){var t=y(e,1),n=y(e,0);if(void 0!==n&&"Unary"===n.id){var r=x(e,!1);if(r)return r;var o={id:"Power",expr:n};return v(e,1,o)}if(void 0!==n&&"Power"===n.id&&void 0!==t&&"Pow"===t.id)return O(e,["Pow"],"Power");return function(e){return O(e,["Mul","Div","Mod"],"Prod")}(e)}(t);case"Call":case"Parens":return x(t);case"Value":case"RParen":return function(t){var n=y(t,3),r=y(t,2),o=y(t,1),a=y(t,0),i={id:"Parens"};if("RParen"===a.id){if(void 0!==o&&"LParen"===o.id)return void 0!==r&&"Var"===r.id?v(t,3,i={id:"Call",token:r}):v(t,2,i={id:"OpenTuple"});if(void 0===r||"LParen"!==r.id){var s={pos:a.pos,text:"Unmatched paren"};return t.error=s,e.warn("%s at %d",s.text,s.pos),v(t,1)}return void 0!==n&&"Var"===n.id?v(t,4,i={id:"Call",token:n,args:o}):(i.expr=o,v(t,3,i))}return i.expr=a,v(t,1,i)}(t);case"Number":case"Var":return function(e){var t=y(e,0);e=v(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t);return e}(t)}return t}function y(e,t){return void 0===t&&(t=0),e.stack[e.stack.length-(t+1)]}function w(e,t){var n=y(e,2),r=y(e,1),o=y(e,0),a={id:"OpenTuple"};return"Comma"===o.id?v(e,2,r):void 0!==r&&"Comma"===r.id?(a.op=r,a.left=n,a.right=o,v(e,3,a)):void 0!==t&&"Comma"===t.id?(a.expr=o,v(e,1,a)):v(e,1,a={id:"Tuple",expr:o})}function O(e,t,n){var r=y(e,2),o=y(e,1),a=y(e,0),i={id:n};return void 0!==o&&-1!==t.indexOf(o.id)?(i.op=o,i.left=r,i.right=a,v(e,3,i)):(i.expr=a,v(e,1,i))}h(f,["(empty)","Plus","Minus","Mul","Div","Mod","Pow","LParen","Eq","Comma"],["Plus","Minus","LParen","Number","Var"]),h(f,["Var"],["LParen","Eq"]),h(f,["Sums"],["Plus","Minus"]),h(f,["Prod"],["Mul","Div","Mod"]),h(f,["Unary"],["Pow"]),h(f,["OpenTuple","Tuple"],["Comma"]),h(f,["LParen","Expr"],["RParen"]),h(d,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign"],["Comma"]),h(d,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod"],["Plus","Minus"]),h(d,["Number","Var","Value","RParen","Parens","Call","Unary","Power"],["Mul","Div","Mod"]),h(d,["Number","Var","Value","RParen","Parens","Call"],["Pow"]),h(d,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign","Comma","OpenTuple","Tuple"],["RParen","(eof)"]),h(c,["(empty)","Expr"],["(eof)"]);var C=["Pow","Mul","Div","Mod","Plus","Minus","Eq","Comma","LParen"];function x(e,t){var n=y(e,2),r=y(e,1),o=y(e,0),a={id:"Unary"};return void 0===r||"Minus"!==r.id&&"Plus"!==r.id||void 0!==n&&-1===C.indexOf(n.id)?!1!==t?(a.expr=o,v(e,1,a)):void 0:(a.op=r,a.right=o,v(e,2,a))}var D=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,k=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function S(t,n){var r=t.slice(n);if(0!==r.length){var o=D.exec(r);if(null===o){var a=function(e,t){for(var n=e.length;t<n;t++){var r=e.slice(t);if(0===r.length)break;var o=D.exec(r);if(null!==o)break}return t}(t,n),i={pos:n,text:'Unexpected symbol "'+t.slice(n,a)+'"'};return e.warn("%s at %d",i.text,i.pos),{error:i,end:a}}for(var s=0,u=k.length;s<u;s++){var c=o[s+1];if(void 0!==c)return{id:k[s],string:c,pos:n,end:n+c.length,value:M(k[s],c)}}}}var E=Number.parseFloat||parseFloat;function M(e,t){switch(e){case"Number":return E(t);default:return t}}return n}(),s=function(e,t){return Array.isArray(e)?function(e,t){return e.length?e.reduce(function(e,n){return"decrease_first_value"===t?Number(n)-Number(e):Number(e)+Number(n)}):NaN}(e,t):Number(e)};var u,c,l=((c=new a).set("pi",Math.PI),c.set("e",Math.E),c.set("inf",Number.POSITIVE_INFINITY),u=Math,Object.getOwnPropertyNames(Math).forEach(function(e){c.set(e,u[e])}),c);return n.parse=function(e,t,n){e=(e=e.replace(/\[|\]|-/g,"__")).replace(/\s+(__|–)\s+/g," - "),t=void 0===t?{}:t;var r=/\[|\]|-/g,o={};for(var a in t)o[a.replace(r,"__")]=s(t[a],n);var i=this.parser.parse(e);return i.scope.numberFormat=function(e){if(!Number.isNaN(e))return(new Intl.NumberFormat).format(e)},i.scope.floor=function(e){return Math.floor(e)},i.scope.round=function(e){return Math.round(e)},i.scope.float=function(e,t){return t=void 0===t?0:t,e.toFixed(t)},i.scope.ceil=function(e){return Math.ceil(e)},i.eval(o)},t}(),Oo=function(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t;case"<":return e<t;case"<=":return e<=t;case">":return e>t;case">=":return e>=t;case"==":return e==t;case"!=":return e!=t;case"not-empty":return void 0!==e&&String(e).length>0;case"empty":return void 0!==e&&0==String(e).length;default:return!1}},Co="";yo=jQuery,Element.prototype.getElSettings=function(e){if("settings"in this.dataset)return JSON.parse(this.dataset.settings.replace(/(&quot\;)/g,'"'))[e]||""},Co=function(e,t){var n=e.find(".mf-multistep-container");if(n.length){var r=[];n.find(".elementor-top-section").each(function(e){var t=this.getElSettings("metform_multistep_settings_title")||"Step-"+yo(this).data("id"),o=this.getElSettings("metform_multistep_settings_icon"),a="",i="";o&&(a="svg"===o.library?'<img class="metform-step-svg-icon" src="'+o.value.url+'" alt="SVG Icon" />':o.value.length?'<i class="metform-step-icon '+o.value+'"></i>':""),0===e?(i="active",n.hasClass("mf_slide_direction_vertical")&&yo(this).parents(".elementor-section-wrap").css("height",yo(this).height())):1===e&&(i="next"),t&&r.push("<li class='metform-step-item "+i+"' id='metform-step-item-"+yo(this).attr("data-id")+"' data-value='"+yo(this).attr("data-id")+"'>"+a+'<span class="metform-step-title">'+t+"</span></li>")}),r&&(n.find(".metform-form-content > .elementor").before("<ul class='metform-steps'>"+r.join("")+"</ul>"),n.find(".elementor-top-section:first-of-type").addClass("active"),n.find(".mf-progress-step-bar span").attr("data-portion",100/r.length).css("width",100/r.length+"%"))}n.find(".elementor-top-section .metform-btn").attr("type","button"),n.find(".mf-input").on("keypress",function(e){13!==e.which||yo(this).hasClass("mf-textarea")||n.find(".metform-step-item.next").trigger("click")}),n.find(".elementor-top-section").on("keydown",function(e){var t=yo(this),n=yo(":focus");if(9==e.which)if(t.hasClass("active")){var r=t.find(":focusable"),o=r.index(n),a=r.eq(o),i=r.eq(r.length-1);a.is(i)&&(a.focus(),e.preventDefault())}else n.focus(),e.preventDefault()}),n.find(".metform-steps").on("click",".metform-step-item",function(){var e,r=this,o=yo(this).parents(".mf-form-wrapper").eq(0),a=o.find(".elementor-top-section.active .mf-input"),i=(yo("body").hasClass("rtl")?100:-100)*yo(this).index()+"%",s=(o.find(".mf-progress-step-bar").attr("data-total"),yo(this.nextElementSibling).hasClass("active")),u=[];a.each(function(){var e=yo(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&u.push(t)}),e=function(e){e&&(o.find(".elementor-top-section.active .metform-btn").attr("type","button"),(yo(r).hasClass("prev")||yo(r).hasClass("next"))&&(yo(r).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),o.find('.elementor-top-section[data-id="'+yo(r).data("value")+'"]').addClass("active").siblings().removeClass("active"),n.hasClass("mf_slide_direction_vertical")?(o.find(".elementor-section-wrap .elementor-top-section").css({transform:"translateY("+i+")"}),o.find(".elementor-section-wrap").css("height","calc("+o.find('.elementor-top-section[data-id="'+yo(r).data("value")+'"]').height()+"px)")):o.find(".elementor-section-wrap").css({transform:"translateX("+i+")"})),o.find(".mf-progress-step-bar span").css("width",(yo(r).index()+1)*o.find(".mf-progress-step-bar span").attr("data-portion")+"%"),o.find(".elementor-top-section.active").find(".metform-submit-btn").length&&setTimeout(function(){o.find(".elementor-top-section.active").find(".metform-submit-btn").attr("type","submit")},0))},s?e(!0):t.doValidate(u).then(e)})};var xo=function(){document.querySelectorAll(".mf-input-map-location").forEach(function(e){if("undefined"!=typeof google){var t=new google.maps.places.Autocomplete(e,{types:["geocode"]});google.maps.event.addListener(t,"place_changed",function(){e.dispatchEvent(new Event("input",{bubbles:!0}))})}})};function Do(e){return(Do="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 ko(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||Eo(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 So(e){return function(e){if(Array.isArray(e))return Mo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Eo(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 Eo(e,t){if(e){if("string"==typeof e)return Mo(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)?Mo(e,t):void 0}}function Mo(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 jo(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){return(_o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Po(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 Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Ao(e);if(t){var o=Ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Do(t)||"function"==typeof t))return t;return To(e)}(this,n)}}function To(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ao(e){return(Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Io(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 Lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach(function(t){No(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.mfMapLocation=xo;var Ro=new vo.a({tolerance:200}),Fo=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&&_o(e,t)}(a,React.Component);var t,n,r,o=Po(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),No(To(t=o.call(this,e)),"handleFormSubmit",function(e,n){n.preventDefault();var r=t.state,o=r.formData,a=r.defaultData,i=t.props,s=i.action,u=i.wpNonce,c=i.validation.reset,l=new FormData,f=Lo(Lo({},a),o);for(var d in jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/before_submit",f),jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!0),f)l.append(d,f[d]);fetch(s,{method:"POST",headers:{"X-WP-Nonce":u},body:l}).then(function(e){return e.json()}).then(function(e){if(t.getValue("mf-captcha-challenge")&&t.refreshCaptcha(),t.getValue("g-recaptcha-response")&&t.handleReCAPTCHA("reset"),jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!1),e.status?t.setState({success:e.data.message?e.data.message:"",form_res:1}):(t.setValue("mf-captcha-challenge","",!0),t.setState({errors:So(e.error),form_res:1})),e.data.store&&"stripe"===e.data.store["mf-payment-method"]&&t.stripePayment(e),t.props.stopVerticalEffect||Ro.move(t.mfRefs.mainForm),jQuery(t.mfRefs.mainForm.parentElement).trigger("metform/after_submit",{data:f,response:e}),e.status&&e.data.redirect_to){var n=e.data.entry_id,r=e.data.redirect_to;n&&""!=n&&(r+=(r.includes("?")?"&":"?")+"mf_entry_id="+n),setTimeout(function(){window.location.href=r},1500)}setTimeout(function(){t.setState({formData:{}})},350),c(),setTimeout(function(){t.setState({success:"",errors:[],form_res:0}),e.status&&e.data.hide_form&&t.setState({formHide:!0})},2e3)}).catch(function(e){t.getValue("mf-captcha-challenge")&&t.refreshCaptcha(),t.getValue("g-recaptcha-response")&&t.handleReCAPTCHA("reset"),jQuery(t.mfRefs.mainForm).find(".metform-submit-btn").attr("disabled",!1),t.setValue("mf-captcha-challenge","",!0),t.setState({errors:["Something went wrong"],form_res:1}),console.error(e.message),t.props.stopVerticalEffect||Ro.move(t.mfRefs.mainForm),c(),setTimeout(function(){t.setState({errors:[],form_res:0})},2e3)})}),No(To(t),"handleCalculations",function(e,n){var r=e.target.calc_behavior,o=ReactDOM.findDOMNode(To(t));(o.length?o.querySelectorAll(".mf-input-calculation"):[]).forEach(function(e){n[e.name]=t.MfMathCalc.parse(e.dataset.equation,n,r)||0})}),No(To(t),"handleConditionals",function(e){var n=t.state,r=n.formData,o=n.defaultData,a=t.props,i=a.widgets;a.conditionalRefs.forEach(function(e){(e=i[e]).list=e.settings.mf_conditional_logic_form_list,e.operator=e.settings.mf_conditional_logic_form_and_or_operators,e.action=e.settings.mf_conditional_logic_form_action,e.validatedValues=[],e.isValidated=!1,e.list.forEach(function(n){n.name=n.mf_conditional_logic_form_if,n.value=r[n.name]||o[n.name]||"",n.match=n.mf_conditional_logic_form_value,n.operator=t.decodeEntities(n.mf_conditional_logic_form_comparison_operators),Array.isArray(n.value)&&-1!=n.value.indexOf(n.match)&&(n.value=n.value[n.value.indexOf(n.match)]),e.validatedValues.push(Oo(n.value,n.match,n.operator))}),e.isValidated=e.validatedValues.some(function(e){return!0===e}),"and"===e.operator&&(e.isValidated=e.validatedValues.every(function(e){return!0===e})),e.isValidated&&"show"===e.action?e.el.classList.remove("mf-condition--hidden"):e.el.classList.add("mf-condition--hidden")})}),No(To(t),"getValue",function(e){return e in t.state.formData?t.state.formData[e]:""}),No(To(t),"getFileLabel",function(e,n){var r=t.state.formData[e];return r?r.name:t.decodeEntities(n)}),No(To(t),"getInputLabel",function(e,n){var r=ReactDOM.findDOMNode(To(t)).querySelector('[name="'+e+'"]').closest(".mf-input-wrapper").querySelector("label");return r?r.innerText.replace(/\*/g,"").trim():n}),No(To(t),"decodeEntities",function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}),No(To(t),"setDefault",function(e){var n=e.name,r=e.value,o=t.state.defaultData;o[n]=r,t.setState({defaultData:o})}),No(To(t),"isNumeric",function(e){return!isNaN(parseFloat(e))&&isFinite(e)}),No(To(t),"handleChange",function(e){var n=e.target,r=n.name,o=n.value,a=n.type,i=t.state.formData;i[r]="number"==a&&"mobile"!=a?Number(o):o,t.handleCalculations(e,i),t.setState({formData:i}),t.trigger(r)}),No(To(t),"handleDateTime",function(e){var n=e.target,r=n.name,o=n.value;t.setValue(r,o,!0),t.handleChange(e)}),No(To(t),"handleSelect",function(e,n){var r=n.name,o=e.value;e.target={name:n.name,value:o},t.setValue(r,o,!0),t.handleChange(e)}),No(To(t),"handleCheckbox",function(e){var n,r=t.state.formData[e.target.name];Array.isArray(r)||(r=[]),n=r.indexOf(e.target.value),e.target.checked&&-1===n?r.push(e.target.value):r.splice(n,1),t.handleChange({target:{name:e.target.name,value:r}})}),No(To(t),"handleSwitch",function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),t.handleChange(e)}),No(To(t),"handleOptin",function(e){e.target.checked||(e.target.value=""),t.handleChange(e)}),No(To(t),"handleFileUpload",function(e){t.handleChange({target:{name:e.target.name,value:e.target.files[0]}})}),No(To(t),"handleMultiStepBtns",function(e){var n=jQuery(e.currentTarget).parents(".elementor-top-section.active"),r=e.currentTarget.dataset.direction,o=("next"===r?n.next()[0]?n.next()[0].dataset:"":n.prev()[0]?n.prev()[0].dataset:"").id,a=jQuery(e.currentTarget).parents(".metform-form-content").find('.metform-step-item[data-value="'+o+'"]'),i=[];if(!o)return!1;n.find(".mf-input").each(function(){var e=jQuery(this),t=this.name;(e.hasClass("mf-input-select")||e.hasClass("mf-input-multiselect"))&&(t=e.find('input[type="hidden"]')[0].name),e.parents(".mf-input-repeater").length&&(t=""),t&&i.push(t)}),jQuery(e.currentTarget).parents(".mf-scroll-top-yes").length&&Ro.move(t.mfRefs.mainForm),"next"===r?t.trigger(i).then(function(e){e&&a.trigger("click")}):a.trigger("click")}),No(To(t),"handleImagePreview",function(e){var t=e.target,n=e.clientX,r=e.clientY,o=e.type,a=t.nextElementSibling;if(a){if("mouseleave"===o)return a.style.opacity="",void(a.style.visibility="hidden");a.style.opacity||(a.style.opacity="1",a.style.visibility="visible"),a.offsetHeight+r>window.innerHeight?(a.className="mf-select-hover-image mf-preview-top",r-=45):a.className="mf-select-hover-image",a.style.top=r+30+"px",a.style.left=n-28+"px"}}),No(To(t),"handleSignature",function(e){e.target={name:e.props.name,value:e.toDataURL()},t.handleChange(e),t.setValue(e.target.name,e.target.value,!0)}),No(To(t),"refreshCaptcha",function(e){t.setState({captcha_img:t.state.captcha_path+Date.now()})}),No(To(t),"handleReCAPTCHA",function(e){"reset"===e&&(e="",grecaptcha.reset());var n={target:{name:"g-recaptcha-response",value:(e=e||"")||""}};t.handleChange(n)}),No(To(t),"activateValidation",function(e,n,r){var o=t.props.validation.register,a=e.type,i=e.required,s=e.message,u=e.minLength,c=e.maxLength,l=e.expression,f={};if(n&&n.closest(".elementor-element").classList.contains("mf-condition--hidden")&&i)f.required=!1;else if((a&&"none"!=a||i)&&(f.required=s),n&&"email"==n.type?f.pattern={value:/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,message:e.emailMessage}:n&&"url"===n.type&&(f.pattern={value:/^(http[s]?:\/\/(www\.)?|ftp:\/\/(www\.)?|www\.){1}([0-9A-Za-z-\.@:%_\+~#=]+)+((\.[a-zA-Z]{2,3})+)(\/(.)*)?(\?(.)*)?/g,message:e.urlMessage}),"by_character_length"===a){var d=n&&"number"==n.type?"min":"minLength",p=n&&"number"==n.type?"max":"maxLength";u&&(f[d]={value:u,message:s}),c&&(f[p]={value:c,message:s})}else"by_word_length"===a?f.validate={wordLength:function(e){return t.handleWordValidate(e,u,c,s)}}:"by_expresssion_based"===a&&(f.validate={expression:function(e){return t.handleExpressionValidate(e,l,s)}});return n?o(n,f):f}),No(To(t),"handleWordValidate",function(e,t,n,r){var o=e.trim().split(/\s+/).length;return!!(n?o>=t&&o<=n:o>=t)||r}),No(To(t),"handleExpressionValidate",function(e,t,n){if(t)return!!new RegExp(t).test(e)||n}),No(To(t),"colorChange",function(e,n){t.handleChange({target:{name:n,value:e.hex}})}),No(To(t),"colorChangeInput",function(e){t.handleChange({target:{name:e.target.name,value:e.target.value}})}),No(To(t),"multiSelectChange",function(e,n){var r=[];null!=e&&e.filter(function(e){r.push(e.value)}),t.handleChange({target:{name:n,value:r}})}),No(To(t),"handleRangeChange",function(e,n){t.handleChange({target:{name:n,value:e.toFixed(2)}})}),No(To(t),"handleMultipileRangeChange",function(e,n){t.handleChange({target:{name:n,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})}),No(To(t),"handleOnChangePhoneInput",function(e,n){t.handleChange({target:{name:n,value:e,type:"mobile"}})}),No(To(t),"toggleResponseMsg",function(e){e.removeAttribute("data-show"),e.style.height=e.clientHeight+"px",e.setAttribute("data-show",0)}),t.state={formData:{},defaultData:{form_nonce:e.formNonce},result_not_foud:"",total_result:0,formHide:!1,form_res:0,errors:[],success:""},t.MfMathCalc=new wo,t.setValue=e.validation.setValue,t.trigger=e.validation.trigger,t.mfRefs={},window.handleReCAPTCHA=t.handleReCAPTCHA;var n=e.templateEl.innerHTML;return t.jsx=new Function("parent","props","state","validation","register","setValue","html",n),e.templateEl.remove(),t}return t=a,(n=[{key:"stripePayment",value:function(e){var t=e.data.payment_data,n=this;if(t.keys&&""!=t.keys){var r=StripeCheckout.configure({key:t.keys,image:t.image_url,locale:"auto",token:function(r){if(r.id){t.stripe_token=r.id;var o={sandbox:t.sandbox};fetch(e.data.ajax_stripe+"&token="+r.id,{headers:{"X-WP-Nonce":n.props.wpNonce},data:o}).then(function(e){return e.json()}).then(function(e){e.status?window.location.href=e.redirect_url:alert(e)})}else alert("Sorry!! Payment token invalid")}});r.open({name:String(t.name_post),description:" Form No.: "+String(t.description),amount:100*Number(t.amount),currency:t.currency_code}),window.addEventListener("popstate",function(){r.close()})}else alert("Please set your Stripe Keys in form settings.")}},{key:"responseMegCom",value:function(e){var t=e.errors,n=e.success,r=e.form_res;return React.createElement("div",{className:"mf-response-msg-wrap".concat(t.length>0?" wf-error-res":""),"data-show":r,style:{height:"120px"}},React.createElement("div",{className:"mf-response-msg"},t.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-alert-icon fas fa-exclamation-triangle"}),t.map(function(e,t){return React.createElement("p",{key:t},e)})):"",n.length>0?React.createElement(React.Fragment,null,React.createElement("i",{className:"mf-success-icon fas fa-check"}),React.createElement("p",null,n)):""))}},{key:"componentDidUpdate",value:function(e){if(this.handleConditionals(),!this.props.validation.formState.isValid&&!this.props.stopVerticalEffect){var t=this.mfRefs.mainForm.querySelector(".mf-error-message");t&&Ro.move(t.parentElement.parentElement)}}},{key:"componentDidMount",value:function(e){var t=this,n=ReactDOM.findDOMNode(this),r=n.length?n.querySelectorAll(".elementor-element"):[];this.mfRefs.mainForm=n;var o=n.getElementsByTagName("input");for(var a in o)"email"==o[a].type&&""!==o[a].value&&this.setDefault(o[a]);r.forEach(function(e){var n=e.getAttribute("data-element_type"),r=e.getAttribute("data-widget_type"),o=null==r?n:r;if(window.elementorFrontend.hooks.doAction("frontend/element_ready/"+o,jQuery(e)),e.className.search("elementor-widget-mf-")>0&&e.dataset.settings){var a=JSON.parse(e.dataset.settings.replace(/&quot;/g,'"')),i=a.mf_input_name+"-"+e.getAttribute("data-id");t.props.widgets[i]={el:e,settings:a},a.mf_conditional_logic_form_enable&&t.props.conditionalRefs.push(i)}}),this.handleConditionals(),this.props.formId&&fetch(mf.restURI+this.props.formId,{method:"POST",headers:{"X-WP-Nonce":this.props.wpNonce}}),xo(),Co(jQuery(n).parents(".mf-multistep-container").parent(),{doValidate:this.trigger}),jQuery(n).on("change",".mf-repeater-field, .mf-repater-range-input, .mf-repeater-checkbox",this.handleChange)}},{key:"render",value:function(){var e=this.props,t=this.state,n=e.validation,r=n.register,o=n.setValue,a=htm.bind(React.createElement);return React.createElement(React.Fragment,null,this.jsx(this,e,t,n,r,o,a))}}])&&jo(t.prototype,n),r&&jo(t,r),a}(),Vo=function(e){var t=ko(e.find(".mf-form-wrapper"),1)[0];if(t){var n,r=t.dataset,o=r.action,a=r.wpNonce,i=r.formNonce,s=r.formId,u=r.stopVerticalEffect,c=ko(e.find(".mf-template"),1)[0];if(c)ReactDOM.render(React.createElement((n=Fo,function(e){var t=Lo(Lo({},ge()),{},{ErrorMessage:ye});return React.createElement(n,Lo({validation:t},e))}),{formId:s,templateEl:c,action:o,wpNonce:a,formNonce:i,widgets:{},conditionalRefs:[],stopVerticalEffect:u,Select:pr,InputColor:lo,Flatpickr:po.a,InputRange:mr.a,ReactPhoneInput:vr.a,SignaturePad:mo.a,moveTo:Ro}),t)}};jQuery(window).on("elementor/frontend/init",function(){var e=["metform","shortcode","text-editor"];"metform-form"!==mf.postType||elementorFrontend.isEditMode()?("metform-form"===mf.postType&&elementorFrontend.isEditMode()&&(e=["mf-date","mf-time","mf-select","mf-multi-select","mf-range","mf-file-upload","mf-mobile","mf-image-select","mf-map-location","mf-color-picker","mf-signature"]),e.forEach(function(e){elementorFrontend.hooks.addAction("frontend/element_ready/"+e+".default",Vo)})):Vo(elementorFrontend.elements.$body)}).on("load",function(){document.querySelectorAll(".mf-form-shortcode").forEach(function(e){Vo(jQuery(e))})})}]);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ataurr, wpmet, emranio, prappo_p, atiqsu, easin55474, enamulhoquem
3
  Tags: Form builder, Elementor form builder, contact form, custom form, forms, drag & drop form builder
4
  Requires at least: 4.8
5
  Tested up to: 5.5.1
6
- Stable tag: 1.3.15
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -22,8 +22,12 @@ MetForm is not only a contact form plugin, but it is also a complete drag & drop
22
  Metform builder contact form gives you full flexibility to build any form on the fly with metform. Want to make any complex from? complex style? no problem you can build any types of from with metform. Like you want to use an image or video under a form and want to show the user, you can do so... use any elementor addons inside metform builder form without any restrictions.
23
  Metform built with elementor. Every field is an elementor widget.
24
 
 
 
 
 
 
25
 
26
- [ **Check our Live Demos** ](https://products.wpmet.com/metform/#demo) - [ **Buy Pro** ](https://products.wpmet.com/metform/pricing/)
27
 
28
 
29
  Metform allows you to create any beautiful contact forms, feedback form, subscription forms, and other types of forms for your site in minutes, not hours! Full flexibility on your own hand.
@@ -221,6 +225,12 @@ Connect with Gmail, Slack, Mailchimp, and many more.
221
 
222
 
223
  == Changelog ==
 
 
 
 
 
 
224
  Version 1.3.15
225
  Fix: Google Map Error
226
  Fix: Text Input field removing leading 0
3
  Tags: Form builder, Elementor form builder, contact form, custom form, forms, drag & drop form builder
4
  Requires at least: 4.8
5
  Tested up to: 5.5.1
6
+ Stable tag: 1.3.17
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
22
  Metform builder contact form gives you full flexibility to build any form on the fly with metform. Want to make any complex from? complex style? no problem you can build any types of from with metform. Like you want to use an image or video under a form and want to show the user, you can do so... use any elementor addons inside metform builder form without any restrictions.
23
  Metform built with elementor. Every field is an elementor widget.
24
 
25
+
26
+
27
+ > **[BUY PRO](https://products.wpmet.com/metform/pricing/)** | **[Our Demo](https://products.wpmet.com/metform/#demo)** | **[Support](https://account.wpmet.com/support-help/)** | **[Docs](https://help.wpmet.com/docs-cat/metform/)** | **[Video Tutorials](https://www.youtube.com/watch?v=zg1QIouKO_Q&list=PL3t2OjZ6gY8NoB_48DwWKUDRtBEuBOxSc&ab_channel=Wpmet)**
28
+
29
+
30
 
 
31
 
32
 
33
  Metform allows you to create any beautiful contact forms, feedback form, subscription forms, and other types of forms for your site in minutes, not hours! Full flexibility on your own hand.
225
 
226
 
227
  == Changelog ==
228
+ Version 1.3.17
229
+ Fix: 'Something went wrong' problem fix
230
+
231
+ Version 1.3.16
232
+ Added: Form submission error handling
233
+
234
  Version 1.3.15
235
  Fix: Google Map Error
236
  Fix: Text Input field removing leading 0
trunk/autoloader.php DELETED
@@ -1,57 +0,0 @@
1
- <?php
2
- namespace MetForm;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- /**
6
- * MetForm autoloader.
7
- * Handles dynamically loading classes only when needed.
8
- *
9
- * @since 1.0.0
10
- */
11
- class Autoloader {
12
-
13
- /**
14
- * Run autoloader.
15
- * Register a function as `__autoload()` implementation.
16
- *
17
- * @since 1.0.0
18
- * @access public
19
- */
20
- public static function run() {
21
- spl_autoload_register( [ __CLASS__, 'autoload' ] );
22
- }
23
-
24
- /**
25
- * Autoload.
26
- * For a given class, check if it exist and load it.
27
- *
28
- * @since 1.0.0
29
- * @access private
30
- * @param string $class Class name.
31
- */
32
- private static function autoload( $class_name ) {
33
-
34
- // If the class being requested does not start with our prefix
35
- // we know it's not one in our project.
36
- if ( 0 !== strpos( $class_name, __NAMESPACE__ ) ) {
37
- return;
38
- }
39
-
40
- $file_name = strtolower(
41
- preg_replace(
42
- [ '/\b'.__NAMESPACE__.'\\\/', '/([a-z])([A-Z])/', '/_/', '/\\\/' ],
43
- [ '', '$1-$2', '-', DIRECTORY_SEPARATOR],
44
- $class_name
45
- )
46
- );
47
-
48
- // Compile our path from the corosponding location.
49
- $file = plugin_dir_path(__FILE__) . $file_name . '.php';
50
-
51
- // If a file is found.
52
- if ( file_exists( $file ) ) {
53
- // Then load it up!
54
- require_once( $file );
55
- }
56
- }
57
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/base/api.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Base;
4
-
5
- defined('ABSPATH') || exit;
6
-
7
- abstract class Api
8
- {
9
-
10
- public $prefix = '';
11
- public $param = '';
12
- public $request = null;
13
-
14
- public function __construct()
15
- {
16
- $this->config();
17
- $this->init();
18
- }
19
-
20
- public abstract function config();
21
-
22
- public function init()
23
- {
24
- add_action('rest_api_init', function () {
25
- register_rest_route(untrailingslashit('metform/v1/' . $this->prefix), '/(?P<action>\w+)/' . ltrim($this->param, '/'), array(
26
- 'methods' => \WP_REST_Server::ALLMETHODS,
27
- 'callback' => [$this, 'action'],
28
- 'permission_callback' => '__return_true',
29
- ));
30
- });
31
- }
32
-
33
- public function action($request)
34
- {
35
- $this->request = $request;
36
- $action_class = strtolower($this->request->get_method()) . '_' . $this->request['action'];
37
-
38
- if (method_exists($this, $action_class)) {
39
-
40
- return $this->{$action_class}();
41
-
42
- }
43
- }
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/base/common.php DELETED
@@ -1,37 +0,0 @@
1
- <?php
2
- namespace MetForm\Base;
3
-
4
- defined('ABSPATH') || exit;
5
-
6
- abstract class Common {
7
-
8
- public function get_name() {
9
- return null;
10
- }
11
-
12
-
13
- public function get_title() {
14
- return $this->get_name();
15
- }
16
-
17
-
18
- public function get_dir() {
19
- return dirname(__FILE__);
20
- }
21
-
22
-
23
- public function get_base() {
24
- return str_replace(\MetForm\Plugin::instance()->plugin_dir(), '', $this->get_dir());
25
-
26
- return $this->get_dir();
27
- }
28
-
29
-
30
- public function get_url() {
31
- return \MetForm\Plugin::instance()->plugin_url() . $this->get_base();
32
- }
33
-
34
-
35
- public abstract function init();
36
-
37
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/base/cpt.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- namespace MetForm\Base;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- abstract Class Cpt{
6
-
7
- public function __construct() {
8
-
9
- $name = $this->get_name();
10
- $args = $this->post_type();
11
-
12
- add_action('init',function() use($name,$args) {
13
- register_post_type( $name, $args );
14
- });
15
-
16
- }
17
-
18
- public abstract function post_type();
19
-
20
- }
21
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/base/shortcode.php DELETED
@@ -1,171 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Base;
4
-
5
- defined('ABSPATH') || exit;
6
-
7
- class Shortcode
8
- {
9
-
10
- use \MetForm\Traits\Singleton;
11
-
12
-
13
- public function __construct()
14
- {
15
- add_shortcode('metform', [$this, 'render_shortcode']);
16
- add_shortcode('mf_thankyou', [$this, 'render_thank_you_page']);
17
- add_shortcode('mf_first_name', [$this, 'render_first_name']);
18
- add_shortcode('mf_last_name', [$this, 'render_last_name']);
19
- add_shortcode('mf_payment_status', [$this, 'render_payment_status']);
20
- add_shortcode('mf_transaction_id', [$this, 'render_transaction_id']);
21
- add_shortcode('mf',[$this,'render_mf_field']);
22
- }
23
-
24
-
25
- public function render_shortcode($atts)
26
- {
27
- $attributes = shortcode_atts(array(
28
- 'form_id' => 'test',
29
- ), $atts);
30
-
31
- return '<div class="mf-form-shortcode">' . \MetForm\Utils\Util::render_form_content($attributes['form_id'], $attributes['form_id']) . '</div>';
32
- }
33
-
34
- public function render_thank_you_page($atts)
35
- {
36
- if($GLOBALS['pagenow'] == 'post.php'){
37
- return;
38
- }
39
- global $post;
40
-
41
- /**
42
- *
43
- * =============================
44
- * Atts for thank you page start
45
- * =============================
46
- *
47
- */
48
-
49
-
50
-
51
- $a = shortcode_atts(array(
52
- 'fname' => '',
53
- 'lname' => '',
54
- ), $atts);
55
-
56
- $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
57
- $page_id = $settings['mf_thank_you_page'];
58
- $post_id = $_GET['id'];
59
-
60
- error_log($post_id);
61
-
62
- $postMeta = get_post_meta(
63
- $post_id,
64
- 'metform_entries__form_data',
65
- true
66
- );
67
- $first_name = !empty($postMeta[$a['fname']]) ? $postMeta[$a['fname']] : '';
68
-
69
- $payment_status = get_post_meta(
70
- $post_id,
71
- 'metform_entries__payment_status',
72
- true
73
- );
74
-
75
- $tnx_id = get_post_meta(
76
- $post_id,
77
- 'metform_entries__payment_trans',
78
- true
79
- );
80
-
81
- $msg = '';
82
-
83
- if ($payment_status == 'paid') {
84
- $msg = $first_name . ' Thank you for your payment. <br>' . ' Your transcation ID : ' . $tnx_id;
85
- } else {
86
- $msg = 'Thank you . Your payment status : ' . $payment_status;
87
- }
88
-
89
- return $msg;
90
-
91
-
92
- /**
93
- *
94
- *
95
- * ===================================
96
- * Atts for thank you page ends here :D
97
- * ====================================
98
- *
99
- */
100
-
101
-
102
-
103
- }
104
-
105
- public function render_mf_field($atts){
106
- $a = shortcode_atts(array(
107
- 'field' => ''
108
- ),$atts);
109
-
110
- $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
111
- $page_id = $settings['mf_thank_you_page'];
112
- $post_id = $_GET['id'];
113
-
114
- $field = get_post_meta(
115
- $post_id,
116
- 'metform_entries__form_data',
117
- true
118
- )[$a['field']];
119
-
120
- return $field;
121
-
122
-
123
-
124
- }
125
-
126
- public function render_first_name($atts)
127
- {
128
-
129
- $post_id = $_GET['id'];
130
- $first_name = get_post_meta(
131
- $post_id,
132
- 'metform_entries__form_data',
133
- true
134
- )['mf-listing-fname'];
135
- return $first_name;
136
- }
137
-
138
- public function render_last_name($atts)
139
- {
140
- $post_id = $_GET['id'];
141
- $last_name = get_post_meta(
142
- $post_id,
143
- 'metform_entries__form_data',
144
- true
145
- )['mf-listing-lname'];
146
- return $last_name;
147
- }
148
-
149
- public function render_payment_status($atts)
150
- {
151
- $post_id = $_GET['id'];
152
- $payment_status = get_post_meta(
153
- $post_id,
154
- 'metform_entries__payment_status',
155
- true
156
- );
157
- return $payment_status;
158
- }
159
-
160
- public function render_transaction_id($atts)
161
- {
162
- $post_id = $_GET['id'];
163
- $tnx_id = get_post_meta(
164
- $post_id,
165
- 'metform_entries__payment_trans',
166
- true
167
- );
168
-
169
- return $tnx_id;
170
- }
171
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/controls/assets/css/form-picker-editor.css DELETED
@@ -1 +0,0 @@
1
- .formpicker_warper_edit{display:none;position:absolute;top:0;right:0;bottom:0;width:0;z-index:99999}.formpicker_warper_editable{min-height:30px;min-width:100px;position:relative}.formpicker_iframe_modal{display:none}.formpicker_iframe_modal .dialog-widget-content{position:static!important;margin-top:10px}.elementor-editor-active .formpicker_warper_editable:hover{outline:1px solid #71d7f7}.elementor-editor-active .formpicker_warper_editable:hover>.formpicker_warper_edit{display:block}.metform-builder-edit{display:block;position:sticky;top:0;width:26px;height:26px;margin-top:-1px;margin-left:-25px;background:linear-gradient(45deg,#ff6b11 0,#ff324d 100%);border-bottom-left-radius:3px;cursor:pointer}.metform-builder-edit:before{content:" ";position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(../img/edit_icon.svg);background-size:17px;background-repeat:no-repeat;background-position:center}.elementor-editor-active .formpicker_warper_editable .formpicker_warper_editable .formpicker_warper_edit,.elementor-widget-metform .elementor-element-overlay{display:none!important}
 
trunk/controls/assets/css/form-picker-inspactor.css DELETED
@@ -1 +0,0 @@
1
- .formpicker_warper_editable{position:relative}.formpicker_warper_editable:hover{outline:1px solid #71d7f7}.formpicker_warper_editable:hover .formpicker_warper_edit{display:block}.formpicker_iframe_mini_modal,.formpicker_iframe_modal{display:block}.formpicker_iframe_modal .dialog-message{position:relative}.formpicker_iframe_modal iframe{position:absolute;top:0;bottom:0;right:0;left:0;width:100%;height:100%}.formpicker_iframe_modal .dialog-widget-content{position:static!important;margin-top:10px}.formpicker_warper_edit{display:none;position:absolute;top:0;right:0;color:#fff;background:#71d7f7;line-height:1;padding:7px 8px;font-size:11px;border-bottom-left-radius:3px;cursor:pointer}.metform-dynamic-content-modal .dialog-widget-content{max-width:90%!important;margin-top:20px!important;margin-bottom:20px!important}.metform-dynamic-content-modal .elementor-templates-modal__header{background-color:#f1f3f5}.elementor-device-desktop #elementor-preview-responsive-wrapper{min-width:auto!important}.metform-dynamic-content-modal .dialog-message{overflow:unset!important}.formpicker_iframe_mini_modal{position:fixed;top:50%;left:50%;z-index:9999;background:#fff;border:1px solid}#metform-open-content-editor{background-color:rgba(0,0,0,.8);width:100%;height:100%;position:fixed;left:0;top:0;z-index:2;overflow-y:auto}.metform-open-content-inner{position:relative;top:50px;left:50%;transform:translateX(-50%);z-index:999;width:622px;background-color:#fff;box-shadow:-15px 20px 50px rgba(0,0,0,.16);padding:50px 0 80px;border-radius:5px;text-align:center}.rtl .metform-open-content-inner{direction:ltr;left:auto;right:50%;transform:translateX(50%)}#metform-open-content-editor .metform-close-editor-modals{color:#ff433c;border:2px solid #ff433c;width:30px;height:30px;line-height:27px;text-align:center;border-radius:100px;font-size:17px;position:absolute;top:-10px;right:-10px;background-color:#fff;cursor:pointer;box-shadow:0 5px 15px rgba(0,0,0,.2)}.rtl #metform-open-content-editor .metform-close-editor-modals{left:-10px;right:auto}.metform-editor-input{height:56px;width:100%;display:block;box-sizing:border-box;background-color:#fff;box-shadow:0 15px 25px rgba(0,0,0,.07);border-radius:10px;border:none;padding:0 25px;color:#101010;font-size:14px;line-height:42px;border:1px solid #ccc}.metform-open-content-editor-button{position:fixed;bottom:15px;left:50%;transform:translateX(-50%);background-color:#4285f4;border:none;font-size:16px;line-height:42px;color:#fff;border-radius:5px;padding:4px 30px;min-width:170px;box-sizing:border-box;margin-top:30px;cursor:pointer}.metform-open-content-editor-button>span{margin-right:12px}.metform-editor-tab-content-item{display:none}.metform-editor-tab-content-item .metform-error{color:red;font-style:italic;margin-top:10px}.metform-editor-tab-content-item.active{display:block}.metform-content{overflow:scroll;max-height:70vh;padding:0 50px 30px;border-bottom:1px solid #f2f2f2}.metform-content::-webkit-scrollbar{display:none}.metform-content-editor-tab{display:flex;justify-content:center;flex-wrap:wrap;margin-bottom:20px}.metform-content-editor-tab-item{padding:0 15px}#metform-open-content-editor .metform-content-editor-radio{-webkit-appearance:none;appearance:none;outline:0;width:20px;height:20px;border:2px solid #747474;border-radius:100px;position:relative;margin:0;margin-right:8px;cursor:pointer}#metform-open-content-editor .metform-content-editor-radio:checked{border-color:#4285f4}#metform-open-content-editor .metform-content-editor-radio:checked:before{content:'';background-color:#4285f4;width:10px;height:10px;display:inline-block;position:absolute;left:50%;border-radius:100px;top:50%;transform:translate(-50%,-50%)}.metform-content-editor-tab-item label{display:flex;text-align:left;cursor:pointer}.metform-content-editor-radio-data p{color:#101010;font-size:16px;line-height:20px;margin:0}.metform-content-editor-radio-data span{color:#999;font-size:12px;line-height:25px;margin:0}.metform-template-input-con{margin-bottom:20px}.metform-templates-list{display:flex;flex-wrap:wrap}.metform-templates-list li{margin:5px;flex:0 0 31.4%;box-sizing:border-box}.metform-templates-list li input{display:none;cursor:pointer}.metform-template-radio-data{min-height:101px;border:1px solid #ccc;display:flex;justify-content:center;align-items:center;box-shadow:0 15px 25px rgba(0,0,0,.07);cursor:pointer;height:100%;position:relative;flex-direction:column}.metform-templates-list li input:checked+.metform-template-radio-data{border:1px solid #4285f4}.metform-template-radio-data--pro_tag{background:linear-gradient(45deg,#ff6b11 0,#ff324d 100%);color:#fff;padding:3px 5px;display:inline-block;position:absolute;right:2px;top:2px;text-transform:uppercase;font-size:10px;border-radius:3px;text-align:center}.metform-template-radio-data--demo_link{position:absolute;left:0;top:0;background-color:#4285f4;color:#fff;font-size:12px;border-bottom-right-radius:5px;padding:5px 8px;opacity:0;visibility:hidden;transition:all .4s}.metform-template-radio-data--demo_link:hover{color:#fff}.metform-template-radio-data:hover .metform-template-radio-data--demo_link{opacity:1;visibility:visible}.metform-template-item--go_pro .metform-template-radio-data{cursor:default}.metform-template-footer-content{align-self:normal;padding:10px;min-height:50px;border-top:1px solid rgba(204,204,204,.5);justify-self:auto;display:flex;align-items:center}.metform-template-footer-links a{color:#4285f4;font-size:13px;line-height:15px}.metform-template-footer-links--icon{margin-right:5px}.metform-template-footer-title{position:static;opacity:1;visibility:visible;transition:opacity 1s}.metform-template-footer-title h2{font-size:13px;text-align:left;font-weight:500;color:#6d7882}.metform-template-footer-links{display:flex;width:100%;justify-content:space-between;opacity:0;visibility:hidden;position:absolute;transition:opacity .4s}.metform-template-radio-data:hover .metform-template-footer-links{opacity:1;visibility:visible;position:static}.metform-template-radio-data:hover .metform-template-footer-title{opacity:0;visibility:hidden;position:absolute}.metform-templates-list img{max-width:100%;padding:5px;max-height:180px}.metform-form-edit-btn{position:absolute;left:135px;top:0;color:#4285f4;font-size:15px;text-transform:uppercase;padding:18px 0}.metform-form-update-close-btn{position:absolute;right:10px;top:7px;font-size:14px;text-transform:uppercase;background-color:#39b54a;color:#fff;padding:10px 25px;border-radius:100px;z-index:1;cursor:pointer;line-height:15px;padding-top:10px;transition:all .4s}.metform-form-update-close-btn:hover{background-color:#2d963c;color:#fff}.metform-form-edit-btn:hover{color:#4285f4}.rtl .metform-form-edit-btn{left:60px;right:auto}.metform-form-edit-btn i{margin-right:5px;font-size:18px;margin-top:-4px}.rtl .metform-form-edit-btn>i{margin-left:5px;margin-right:0}.metform-open-content-editor-templates{-webkit-appearance:none;-moz-appearance:none;background:0 0;background-image:url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");background-repeat:no-repeat;background-position-x:98%;background-position-y:50%}#metform-open-content-editor .metform-picker-close{display:none;position:static;border:none;background-color:transparent;box-shadow:none;margin-left:10px}.mf-edit-form{display:block;background-color:#39b54a;border:none;color:#fff;margin-top:15px;padding:12px 20px;font-weight:700;cursor:pointer;font-size:14px;border-radius:3px;transition:all .4s}.mf-edit-form:hover{background-color:#da3419}
 
trunk/controls/assets/img/edit_icon.svg DELETED
@@ -1,39 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 23.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 200 216.59" enable-background="new 0 0 512 512" xml:space="preserve">
5
- <g>
6
- <g>
7
- <path style="fill: #ffffff;" d="M72.76,176.77H4.71c-2.6,0-4.71-2.11-4.71-4.71V4.71C0,2.11,2.11,0,4.71,0h172.06c2.6,0,4.71,2.11,4.71,4.71V82.5
8
- c0,2.6-2.11,4.71-4.71,4.71c-2.6,0-4.71-2.11-4.71-4.71V9.42H9.42v157.94h63.34c2.6,0,4.71,2.11,4.71,4.71
9
- S75.36,176.77,72.76,176.77z"/>
10
- </g>
11
- <g>
12
- <path style="fill: #ffffff;" d="M143.81,49.22H37.67c-2.6,0-4.71-2.11-4.71-4.71s2.11-4.71,4.71-4.71h106.14c2.6,0,4.71,2.11,4.71,4.71
13
- S146.41,49.22,143.81,49.22z"/>
14
- </g>
15
- <g>
16
- <path style="fill: #ffffff;" d="M143.81,83.67H37.67c-2.6,0-4.71-2.11-4.71-4.71c0-2.6,2.11-4.71,4.71-4.71h106.14c2.6,0,4.71,2.11,4.71,4.71
17
- C148.52,81.56,146.41,83.67,143.81,83.67z"/>
18
- </g>
19
- <g>
20
- <path style="fill: #ffffff;" d="M101.43,118.12H37.67c-2.6,0-4.71-2.11-4.71-4.71s2.11-4.71,4.71-4.71h63.76c2.6,0,4.71,2.11,4.71,4.71
21
- S104.04,118.12,101.43,118.12z"/>
22
- </g>
23
- <g>
24
- <g>
25
- <path style="fill: #ffffff;" d="M118.37,202.09l-24.55-24.55l66.95-66.95l24.55,24.55L118.37,202.09z M107.14,177.54l11.23,11.23l53.64-53.64
26
- l-11.23-11.23L107.14,177.54z"/>
27
- </g>
28
- <g>
29
- <path style="fill: #ffffff;" d="M182.42,138.04l-24.55-24.55l12.49-12.49c6.77-6.77,17.78-6.77,24.55,0c3.28,3.27,5.09,7.64,5.09,12.27
30
- c0,4.64-1.81,9-5.09,12.28L182.42,138.04z M171.19,113.48l11.23,11.23l5.84-5.84c1.5-1.5,2.33-3.49,2.33-5.62
31
- c0-2.12-0.82-4.12-2.33-5.61c-3.1-3.09-8.13-3.09-11.23,0L171.19,113.48z"/>
32
- </g>
33
- <g>
34
- <path style="fill: #ffffff;" d="M79.55,209.64l7.59-25.42l13.34-13.34l24.55,24.55l-13.34,13.34l-25.42,7.59C82.15,217.58,78.32,213.75,79.55,209.64z
35
- M95.48,189.19L90.7,205.2l16.01-4.78l4.99-4.99l-11.23-11.23L95.48,189.19z"/>
36
- </g>
37
- </g>
38
- </g>
39
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/controls/assets/js/form-picker-editor.js DELETED
@@ -1 +0,0 @@
1
- !function(e,t,o){"use strict";if(void 0===window.parent)return;let r=window.parent;var n=function(){t.hooks.addAction("frontend/element_ready/metform.default",function(o){if(t.isEditMode()){var n=o.find(".formpicker_warper_edit");if(n.off("click.metform").on("click.metform",function(){var t=r.jQuery("#metform-open-content-editor"),o=n.attr("data-metform-formpicker-key"),i=e(this).attr("data-nonce");t.find(".metform-error").remove(),t.find(".metform-content-editor-radio").on("click",function(o){var r=e(this).closest("li").data("target");t.find("#"+r).fadeIn().siblings().hide()}),e.ajax({url:e(this).attr("resturl")+(o||0),type:"get",headers:{"X-WP-Nonce":i},dataType:"html",success:function(e){e?(t.find(".metform-content-editor-radio").first().trigger("click"),t.find(".metform-open-content-editor-templates").html(e)):(t.find(".metform-content-editor-radio").last().trigger("click"),t.find(".metform-open-content-editor-templates").parent().append("<p class='metform-error'>No forms were created yet!</p>"))}}),t.show()}),r.jQuery("#metform-open-content-editor").off("click.metform").on("click.metform",".metform-open-content-editor-button",function(){var t=r.jQuery(".metform-dynamic-content-modal"),o=t.find("#formpicker-control-iframe"),n=t.find(".dialog-lightbox-loading"),i=t.find(".dialog-type-lightbox"),m=e(this).parents(".metform-open-content-inner"),a=m.find(".metform-open-content-editor-templates").val(),d=m.find(".metform-content-editor-radio:checked").val(),f=m.find(".metform-template-radio:checked").val(),c=m.find(".metform-template-input-con input").val(),l=r.jQuery("#metform-form-modalinput-settings").data("nonce");"saved"==d?r.jQuery("body").attr("data-metform-template-key",a):e.ajax({url:e(this).attr("resturl")+"builder_form_id/"+f+"?title="+c,type:"GET",headers:{"X-WP-Nonce":l},success:function(e){r.jQuery("body").attr("data-metform-template-key",e),m.find(".metform-template-input-con input").val(""),m.find(".metform-template-radio").removeAttr("checked").first().attr("checked","checked"),a=e},async:!1});var s=e(this).attr("resturl")+"builder/"+a;r.jQuery("body").attr("data-metform-template-load","false"),i.show(),t.show(),n.show(),o.contents().find("#elementor-loading").show(),o.css("z-index","-1"),o.attr("src",s),o.on("load",function(){n.hide(),o.show(),o.contents().find("#elementor-loading").hide(),o.css("z-index","1")})}),r.jQuery("#elementor-editor-wrapper").on("click","#metform-inspactor-edit-button",function(){}),void 0!==r.jQuery)r.jQuery(".metform-close-editor-modals").off("click.metform").on("click.metform",function(){if(e(this).hasClass("metform-editor-close")){var t=r.jQuery(".metform-dynamic-content-modal").find("#formpicker-control-iframe"),o=t[0].contentWindow||t[0].contentDocument;o.jQuery("#elementor-panel-saver-button-publish").hasClass("elementor-disabled")?i(r):confirm("Leaving? Changes you made may not be saved.")?(o.jQuery(o).off("beforeunload"),i(r)):o.jQuery(o).off("beforeunload")}else if(e(this).hasClass("metform-picker-close")){i(r);var n=r.jQuery("#metform-open-content-editor"),m=n.find(".metform-content-editor-radio:checked").val(),a=n.find(".metform-open-content-editor-templates").val();"saved"==m&&r.jQuery("body").attr("data-metform-template-key",a),i(r)}else i(r);r.jQuery("#metform-open-content-editor").find(".metform-picker-close").hide(),r.jQuery("#metform-open-content-editor").find(".metform-template-radio").removeAttr("checked").first().attr("checked","checked")});r.jQuery("#metform-open-content-editor").find(".metform-open-content-editor-templates").on("change",function(){r.jQuery("#metform-open-content-editor").find(".metform-picker-close").fadeIn()}),r.jQuery(".metform-form-update-close-btn").off("click.metform").on("click.metform",function(){var e=r.jQuery(".metform-dynamic-content-modal").find("#formpicker-control-iframe"),t=e[0].contentWindow||e[0].contentDocument;if(t.jQuery("#elementor-panel-saver-button-publish:not([disabled])").hasClass("elementor-disabled"))r.jQuery(".metform-close-editor-modals").trigger("click.metform");else{t.jQuery("#elementor-panel-saver-button-publish:not([disabled])").trigger("click");var o=setInterval(function(){t.jQuery("#elementor-panel-saver-button-publish:not([disabled])").hasClass("elementor-disabled")&&(r.jQuery(".metform-close-editor-modals").trigger("click.metform"),clearInterval(o))},100)}})}function i(e){e.jQuery("body").attr("data-metform-template-load","true"),e.jQuery(".metform-dynamic-content-modal").hide(),e.jQuery("#metform-open-content-editor").hide()}})};e(window).on("elementor/frontend/init",n)}(jQuery,window.elementorFrontend);
 
trunk/controls/assets/js/form-picker-inspactor.js DELETED
@@ -1 +0,0 @@
1
- jQuery(window).on("elementor:init",function(){"use strict";var e=elementor.modules.controls.BaseData,t=e.extend({interval:null,ui:function(){var t=e.prototype.ui.apply(this,arguments);return t.inputs="textarea",t},events:function(){return _.extend(e.prototype.events.apply(this,arguments),{"change @ui.inputs":"onBaseInputChange"})},onBaseInputChange:function(e){clearTimeout(this.correctionTimeout);var t=e.currentTarget,n=this.getInputValue(t);this.updateElementModel(n,t)},onDestroy:function(){clearInterval(window.metFormPickerInterval2555)},onRender:function(){e.prototype.onRender.apply(this,arguments);var t=this;jQuery(document).on("click",".mf-edit-form",function(){let e=jQuery("#elementor-preview-iframe")[0].contentDocument;jQuery(e).find(".elementor-element-editable .formpicker_warper_edit").trigger("click")}),window.metFormPickerInterval2555=setInterval(function(){var e=jQuery("body").attr("data-metform-template-load"),n=jQuery("body").attr("data-metform-template-key");if("true"==e&&1==t.isRendered&&void 0!==n){var r,o=(new Date).getTime(),a=n.split("***");r=(a=a[0])+"***"+o,jQuery("body").attr("data-metform-template-load","false"),t.setValue(r)}},200)}},{});elementor.addControlView("formpicker",t)});
 
trunk/controls/base.php DELETED
@@ -1,57 +0,0 @@
1
- <?php
2
- namespace MetForm\Controls;
3
-
4
- defined( 'ABSPATH' ) || exit;
5
-
6
- class Base{
7
-
8
- use \MetForm\Traits\Singleton;
9
-
10
- // Instance of all control's base class
11
- // ##readhere
12
- public static function get_url(){
13
- return \MetForm\Plugin::instance()->plugin_url() . 'controls/';
14
- }
15
- public static function get_dir(){
16
- return \MetForm\Plugin::instance()->plugin_dir() . 'controls/';
17
- }
18
-
19
- public function init() {
20
-
21
- // Includes necessary files
22
- $this->include_files();
23
-
24
- // Initilizating control hooks
25
- add_action('elementor/controls/controls_registered', array( $this, 'formpicker' ), 11 );
26
-
27
- // Initilizating control scripts
28
- add_action( 'elementor/frontend/after_enqueue_styles', array( $this, 'formpicker_enqueue_styles_editor' ) );
29
- add_action( 'elementor/frontend/after_enqueue_scripts', array( $this, 'formpicker_enqueue_scripts_editor' ) );
30
-
31
- // Initilizating control classes
32
- $formpicker_utils = new Form_Picker_Utils();
33
- $formpicker_utils->init();
34
- }
35
-
36
- private function include_files(){
37
- // Controls_Manager
38
- include_once self::get_dir() . 'control-manager.php';
39
-
40
- // formpicker
41
- include_once self::get_dir() . 'form-picker-utils.php';
42
- include_once self::get_dir() . 'form-picker.php';
43
- }
44
-
45
- public function formpicker( $controls_manager ) {
46
- $controls_manager->register_control( 'formpicker', new \MetForm\Controls\Form_Picker());
47
- }
48
-
49
- public function formpicker_enqueue_scripts_editor() {
50
- wp_enqueue_script( 'metform-js-formpicker-control-editor', self::get_url() . 'assets/js/form-picker-editor.js', [], \MetForm\Plugin::instance()->version() );
51
- }
52
-
53
- public function formpicker_enqueue_styles_editor() {
54
- wp_enqueue_style( 'metform-css-formpicker-control-editor', self::get_url() . 'assets/css/form-picker-editor.css', [], '1.0.0' );
55
- }
56
-
57
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/controls/control-manager.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- namespace MetForm\Controls;
3
-
4
- defined( 'ABSPATH' ) || exit;
5
-
6
- /**
7
- * Elementor controls manager.
8
- *
9
- * Elementor controls manager handler class is responsible for registering and
10
- * initializing all the supported controls, both regular controls and the group
11
- * controls.
12
- *
13
- * @since 1.0.0
14
- */
15
- abstract class Controls_Manager extends \Elementor\Controls_Manager{
16
- const FORMPICKER = 'formpicker';
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/controls/form-editor-modal.php DELETED
@@ -1,53 +0,0 @@
1
- <?php defined( 'ABSPATH' ) || exit; ?>
2
-
3
- <div class="dialog-widget dialog-lightbox-widget dialog-type-buttons dialog-type-lightbox elementor-templates-modal metform-dynamic-content-modal column-title" id="elementor-template-form-picker-modal-container" style="display: none;">
4
- <div class="dialog-widget-content dialog-lightbox-widget-content">
5
- <div class="dialog-header dialog-lightbox-header">
6
- <div class="elementor-templates-modal__header">
7
- <div class="elementor-templates-modal__header__logo-area">
8
- <div class="elementor-templates-modal__header__logo">
9
- <span class="elementor-templates-modal__header__logo__icon-wrapper">
10
- <i class="eicon-elementor"></i>
11
- </span>
12
- <span class="elementor-templates-modal__header__logo__title"><?php esc_html_e('MetForm', 'metform'); ?></span>
13
- </div>
14
- <a class="metform-form-edit-btn" href="#"><i class="eicon-cog"></i><?php esc_html_e('Form settings', 'metform') ?></a>
15
- <a class="metform-form-update-close-btn" href="#"><?php esc_html_e('Update & Close', 'metform') ?></a>
16
- </div>
17
-
18
- <div class="elementor-templates-modal__header__items-area">
19
- <div class="elementor-templates-modal__header__close elementor-templates-modal__header__close--normal elementor-templates-modal__header__item">
20
- <i class="eicon-close metform-close-editor-modals metform-editor-close" aria-hidden="true" title="<?php echo esc_attr__('Close', 'metform'); ?>"></i>
21
- <span class="elementor-screen-only"><?php esc_html_e('Close', 'metform'); ?></span>
22
- </div>
23
- </div>
24
- </div>
25
- </div>
26
- <div class="dialog-message dialog-lightbox-message">
27
- <div class="dialog-content dialog-lightbox-content" style="display: block;">
28
- <div id="elementor-template-library-templates" data-template-source="remote">
29
-
30
- <div id="elementor-template-library-templates-container">
31
- <iframe id="formpicker-control-iframe"></iframe>
32
- </div>
33
- </div>
34
- </div>
35
- <div class="dialog-loading dialog-lightbox-loading" style="display: block;">
36
- <div id="elementor-template-library-loading">
37
- <div class="elementor-loader-wrapper">
38
- <div class="elementor-loader">
39
- <div class="elementor-loader-boxes">
40
- <div class="elementor-loader-box"></div>
41
- <div class="elementor-loader-box"></div>
42
- <div class="elementor-loader-box"></div>
43
- <div class="elementor-loader-box"></div>
44
- </div>
45
- </div>
46
- <div class="elementor-loading-title"><?php esc_html_e('Loading', 'metform'); ?></div>
47
- </div>
48
- </div>
49
- </div>
50
- </div>
51
- <div class="dialog-buttons-wrapper dialog-lightbox-buttons-wrapper"></div>
52
- </div>
53
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/controls/form-picker-modal.php DELETED
@@ -1,96 +0,0 @@
1
- <?php defined('ABSPATH') || exit; ?>
2
-
3
- <div id="metform-open-content-editor" style="display:none;">
4
- <div class="metform-open-content-inner">
5
- <div class="metform-content">
6
- <ul class="metform-content-editor-tab">
7
- <li class="metform-content-editor-tab-item active" data-target="metform-select-form-content">
8
- <label>
9
- <input class="metform-content-editor-radio" name="metform-editor-tab" type="radio" checked value="saved">
10
-
11
- <div class="metform-content-editor-radio-data">
12
- <p><?php esc_html_e('Select Form', 'metform') ?></p>
13
- <span><?php esc_html_e('Select saved form', 'metform') ?></span>
14
- </div>
15
- </label>
16
- </li>
17
-
18
- <li class="metform-content-editor-tab-item" data-target="metform-templates-content">
19
- <label>
20
- <input class="metform-content-editor-radio" name="metform-editor-tab" type="radio" value="template">
21
-
22
- <div class="metform-content-editor-radio-data">
23
- <p><?php esc_html_e('New', 'metform') ?></p>
24
- <span><?php esc_html_e('Create new form', 'metform') ?></span>
25
- </div>
26
- </label>
27
- </li>
28
- </ul>
29
-
30
- <div class="metform-editor-tab-content">
31
- <div class="metform-editor-tab-content-item active" id="metform-select-form-content">
32
- <select name="metform-saved-form" class="metform-open-content-editor-templates metform-editor-input"></select>
33
- </div>
34
- <div class="metform-editor-tab-content-item" id="metform-templates-content">
35
-
36
- <div class="metform-template-input-con">
37
- <input type="text" class="metform-editor-input" placeholder="<?php esc_html_e('Enter a form name', 'metform'); ?>">
38
- </div>
39
-
40
- <ul class="metform-templates-list">
41
- <li>
42
- <label>
43
- <input class="metform-template-radio" name="metform-editor-template" type="radio" value="0" checked>
44
- <div class="metform-template-radio-data"> </div>
45
- </label>
46
- </li>
47
-
48
- <?php foreach(\MetForm\Templates\Base::instance()->get_templates() as $template): ?>
49
- <li class="metform-template-item<?php echo isset($template['package']) ? ' metform-template-item--' . esc_attr($template['package']) : ''; ?> <?php echo (isset($template['package']) && $template['file'] === '') ? ' metform-template-item--go_pro' : ''; ?>">
50
- <label>
51
- <input class="metform-template-radio" name="metform-editor-template" type="radio" value="<?php echo ($template['file'] != '') ? esc_attr($template['id']) : ''; ?>" <?php echo $template['file'] === '' ? 'disabled=disabled' : '' ?>>
52
- <div class="metform-template-radio-data">
53
- <img src="<?php echo esc_url($template['preview-thumb']); ?>" alt="<?php echo esc_attr($template['title']) ?>">
54
-
55
- <?php if(isset($template['package']) && $template['package'] === 'pro') : ?>
56
- <div class="metform-template-radio-data--tag">
57
- <span class="metform-template-radio-data--pro_tag"><?php echo esc_html(ucfirst($template['package'])); ?></span>
58
- </div>
59
- <?php endif; ?>
60
-
61
- <div class="metform-template-footer-content">
62
- <?php if(isset($template['title']) && $template['title'] != '') : ?>
63
- <div class="metform-template-footer-title">
64
- <h2><?php echo esc_html($template['title']); ?></h2>
65
- </div>
66
- <?php endif; ?>
67
-
68
- <div class="metform-template-footer-links">
69
- <?php if(isset($template['package']) && $template['package'] === 'pro' && isset($template['file']) && $template['file'] == '') : ?>
70
- <a target="_blank" href="https://products.wpmet.com/metform/pricing/?utm_source=metform&utm_medium=inplugin_campaign&utm_campaign=go_pro" class="metform-template-footer-links--pro_tag"><i class="metform-template-footer-links--icon fas fa-external-link-square-alt"></i><?php echo esc_html__('Buy Pro'); ?></a>
71
- <?php endif; ?>
72
-
73
- <?php if(isset($template['demo-url']) && $template['demo-url'] != '') : ?>
74
- <a target="_blank" class="metform-template-footer-links--demo_link" href="<?php echo esc_attr(ucfirst($template['demo-url'])); ?>"><i class="metform-template-footer-links--icon far fa-eye"></i><?php echo esc_html__('Demo', 'metform'); ?></a>
75
- <?php endif; ?>
76
- </div>
77
-
78
- </div>
79
- </div>
80
- </label>
81
- </li>
82
- <?php endforeach; ?>
83
-
84
- </ul>
85
-
86
- </div>
87
- </div>
88
-
89
- <button resturl="<?php echo get_rest_url() ?>metform/v1/forms/" class="metform-open-content-editor-button"><span class="eicon-elementor"></span><?php esc_html_e('Edit form', 'metform') ?></button>
90
-
91
- <span class="metform-close-editor-modals metform-picker-close"><?php esc_html_e('Save & close', 'metform'); ?></span>
92
-
93
- <i class="eicon-close metform-close-editor-modals" aria-hidden="true" title="<?php echo esc_attr__('Close', 'metform'); ?>"></i>
94
- </div>
95
- </div>
96
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/controls/form-picker-utils.php DELETED
@@ -1,53 +0,0 @@
1
- <?php
2
- namespace MetForm\Controls;
3
-
4
- defined( 'ABSPATH' ) || exit;
5
-
6
- class Form_Picker_Utils{
7
-
8
- function init(){
9
- add_action('elementor/editor/after_enqueue_styles', array( $this, 'modal_content' ) );
10
- }
11
-
12
- public function modal_content() {
13
- ?>
14
- <div class="metform_open_content_editor_modal">
15
- <?php include 'form-picker-modal.php'; ?>
16
- <?php include \MetForm\Plugin::instance()->core_dir() . 'forms/views/modal-editor.php'; ?>
17
- </div>
18
- <div class="formpicker_iframe_modal">
19
- <?php include 'form-editor-modal.php'; ?>
20
- </div>
21
- <?php
22
- }
23
-
24
- public static function parse($key, $widget_key){
25
- $extract_key = explode('***', $key);
26
- $extract_key = $extract_key[0];
27
- ob_start(); ?>
28
-
29
- <div class="formpicker_warper formpicker_warper_editable" data-metform-formpicker-key="<?php echo esc_attr($extract_key); ?>" >
30
- <?php if(\Elementor\Plugin::$instance->editor->is_edit_mode() == true) : ?>
31
- <div class="formpicker_warper_edit" data-metform-formpicker-key="<?php echo esc_attr($extract_key); ?>" data-nonce="<?php echo wp_create_nonce('wp_rest');?>" resturl="<?php echo get_rest_url() ?>metform/v1/forms/templates/" >
32
- <i class="metform-builder-edit" aria-hidden="true"></i>
33
- <a href="#" class="elementor-screen-only" title="<?php esc_html_e('Edit Form Content', 'metform'); ?>"><?php esc_html_e('Edit', 'metform'); ?></a>
34
- </div>
35
- <?php endif; ?>
36
-
37
- <div class="elementor-widget-container">
38
- <?php
39
- if($extract_key == ''){
40
- echo esc_html__('No content is added yet.', 'metform');
41
- }else{
42
- echo \MetForm\Utils\Util::render_form_content($extract_key, $widget_key);
43
- }
44
- ?>
45
- </div>
46
- </div>
47
- <?php
48
- $output = ob_get_contents();
49
- ob_end_clean();
50
-
51
- return $output;
52
- }
53
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/controls/form-picker.php DELETED
@@ -1,80 +0,0 @@
1
- <?php
2
- namespace MetForm\Controls;
3
-
4
- defined( 'ABSPATH' ) || exit;
5
-
6
- class Form_Picker extends \Elementor\Base_Data_Control {
7
- /**
8
- * Get choose control type.
9
- *
10
- * Retrieve the control type, in this case `choose`.
11
- *
12
- * @since 1.0.0
13
- * @access public
14
- *
15
- * @return string Control type.
16
- */
17
- public function get_type() {
18
- return 'formpicker';
19
- }
20
-
21
- /**
22
- * Enqueue ontrol scripts and styles.
23
- *
24
- * @since 1.0.0
25
- * @access public
26
- */
27
- public function enqueue() {
28
- // Styles
29
- wp_register_style( 'metform-css-formpicker-control-inspactor', Base::get_url() . 'assets/css/form-picker-inspactor.css', [], '1.0.0' );
30
- wp_enqueue_style( 'metform-css-formpicker-control-inspactor' );
31
-
32
- // Script
33
- wp_register_script( 'metform-js-formpicker-control-inspactor', Base::get_url() . 'assets/js/form-picker-inspactor.js' );
34
- wp_enqueue_script( 'metform-js-formpicker-control-inspactor' );
35
- }
36
-
37
-
38
- /**
39
- * Render choose control output in the editor.
40
- *
41
- * Used to generate the control HTML in the editor using Underscore JS
42
- * template. The variables for the class are available using `data` JS
43
- * object.
44
- *
45
- * @since 1.0.0
46
- * @access public
47
- */
48
- public function content_template() {
49
- $control_uid = $this->get_control_uid();
50
- ?>
51
- <div style="display:none" class="elementor-control-field">
52
- <label for="<?php echo esc_attr($control_uid); ?>" class="elementor-control-title">{{{ data.label }}}</label>
53
- <div class="elementor-control-input-wrapper">
54
- <textarea id="<?php echo $control_uid; ?>" data-setting="{{ data.name }}"></textarea>
55
- </div>
56
- </div>
57
- <!-- <button id="metform-inspactor-edit-button">Edit Form Content</button> -->
58
- <# if ( data.description ) { #>
59
- <div class="elementor-control-field-description">{{{ data.description }}}</div>
60
- <# } #>
61
- <?php
62
- }
63
-
64
- /**
65
- * Get choose control default settings.
66
- *
67
- * Retrieve the default settings of the choose control. Used to return the
68
- * default settings while initializing the choose control.
69
- *
70
- * @since 1.0.0
71
- * @access protected
72
- *
73
- * @return array Control default settings.
74
- */
75
- protected function get_default_settings() {
76
- return [
77
- 'label_block' => true,
78
- ];
79
- }
80
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/admin/base.php DELETED
@@ -1,95 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Admin;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- /**
6
- * Metform settings related all functionalities.
7
- *
8
- * @version 1.1.8
9
- */
10
- class Base {
11
- use \MetForm\Traits\Singleton;
12
- private $key_settings_option;
13
-
14
- public function __construct(){
15
- $this->key_settings_option = 'metform_option__settings';
16
- }
17
-
18
- public static function parent_slug(){
19
- return 'metform-menu';
20
- }
21
-
22
- public function init(){
23
- add_action('admin_menu', [$this, 'register_settings'], 999);
24
- add_action('admin_init', [$this, 'register_actions'], 999);
25
- }
26
-
27
- public function register_settings(){
28
- add_submenu_page( self::parent_slug(), esc_html__( 'Settings', 'metform' ), esc_html__( 'Settings', 'metform' ), 'manage_options', self::parent_slug().'-settings', [$this, 'register_settings_contents__settings'], 11);
29
- }
30
-
31
- public function register_settings_contents__settings(){
32
-
33
- $code = '';
34
- $disabledAttr = '';
35
- $selectTheTab= false;
36
-
37
- if(did_action('xpd_metform_pro/plugin_loaded')) {
38
- #Must be pro loaded....
39
-
40
- if(!empty($_REQUEST['code'])) {
41
-
42
- $code = $_REQUEST['code'];
43
- $nonce = $_REQUEST['state'];
44
- $option = get_option(\MetForm_Pro\Core\Integrations\Aweber::NONCE_VERIFICATION_KEY);
45
-
46
- if($option == $nonce) {
47
- update_option(\MetForm_Pro\Core\Integrations\Aweber::NONCE_VERIFICATION_KEY, '');
48
- update_option(\MetForm_Pro\Core\Integrations\Aweber::AUTHORIZATION_CODE_KEY, $code);
49
- }
50
-
51
- $disabledAttr = 'disabled';
52
- $selectTheTab = true;
53
-
54
- } else {
55
-
56
- $code = get_option(\MetForm_Pro\Core\Integrations\Aweber::AUTHORIZATION_CODE_KEY);
57
-
58
- $disabledAttr = empty($code)? '': 'disabled';
59
- }
60
- }
61
- #Let check if this is returned from aweber..
62
- #Give state check
63
-
64
- include('views/settings.php');
65
- }
66
-
67
- public function get_settings_option($key = null , $default = null){
68
- if($key != null){
69
- $this->key_settings_option = $key;
70
- }
71
- return get_option($this->key_settings_option);
72
- }
73
-
74
- public function set_option($key, $default = null){
75
-
76
- }
77
-
78
- public function register_actions(){
79
-
80
- if(isset( $_POST['mf_settings_page_action'])) {
81
- // run a quick security check
82
- $request = $_POST;
83
-
84
- if( !check_admin_referer('metform-settings-page', 'metform-settings-page')){
85
- return;
86
- }
87
-
88
- $status = \MetForm\Core\Forms\Action::instance()->store( -1, $request);
89
-
90
- return $status;
91
-
92
- }
93
- }
94
-
95
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/admin/images/banner.png DELETED
Binary file
trunk/core/admin/images/feature-preview.png DELETED
Binary file
trunk/core/admin/images/metform_logo.png DELETED
Binary file
trunk/core/admin/images/rate-now-thumb.png DELETED
Binary file
trunk/core/admin/views/settings.php DELETED
@@ -1,903 +0,0 @@
1
- <?php
2
- defined('ABSPATH') || exit;
3
-
4
- $settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
5
-
6
- ?>
7
- <div class="wrap mf-settings-dashboard">
8
- <div class="attr-row">
9
- <div class="attr-col-lg-3 attr-col-sm-4 mf-setting-sidebar-column">
10
- <div class="mf-setting-sidebar">
11
- <div class="mf_setting_logo">
12
- <img src="<?php echo plugin_dir_url(__FILE__) . '../images/metform_logo.png'; ?>">
13
- </div>
14
- <div class="mf-settings-tab">
15
- <ul class="nav-tab-wrapper">
16
- <li><a href="#" class="mf-setting-nav-link mf-setting-nav-hidden"></a></li>
17
-
18
- <li>
19
- <a href="#mf-dashboard_options" class="mf-setting-nav-link">
20
- <div class="mf-setting-tab-content">
21
- <span class="mf-setting-title"><?php echo esc_html__('Dashboard', 'metform'); ?></span>
22
- <span class="mf-setting-subtitle"><?php echo esc_html__('All dashboard info here', 'metform'); ?></span>
23
- </div>
24
- </a>
25
- </li>
26
-
27
- <li>
28
- <a href="#mf-general_options" class="mf-setting-nav-link">
29
- <div class="mf-setting-tab-content">
30
- <span class="mf-setting-title"><?php echo esc_html__('General', 'metform'); ?></span>
31
- <span class="mf-setting-subtitle"><?php echo esc_html__('All General info here', 'metform'); ?></span>
32
- </div>
33
- </a>
34
- </li>
35
-
36
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Paypal') || class_exists('\MetForm_Pro\Core\Integrations\Payment\Stripe')) : ?>
37
- <li>
38
- <a href="#mf-payment_options" class="mf-setting-nav-link">
39
- <div class="mf-setting-tab-content">
40
- <span class="mf-setting-title"><?php echo esc_html__('Payment', 'metform'); ?></span>
41
- <span class="mf-setting-subtitle"><?php echo esc_html__('All payment info here', 'metform'); ?></span>
42
- </div>
43
- </a>
44
- </li>
45
- <?php endif; ?>
46
- <li>
47
- <a href="#mf-newsletter_integration" class="mf-setting-nav-link">
48
- <div class="mf-setting-tab-content">
49
- <span class="mf-setting-title"><?php echo esc_html__('Newsletter Integration', 'metform'); ?></span>
50
- <span class="mf-setting-subtitle"><?php echo esc_html__('All newsletter integration info here', 'metform'); ?></span>
51
- </div>
52
- </a>
53
- </li>
54
-
55
- <?php echo do_action('metform_settings_tab'); ?>
56
-
57
- <li><a href="#" class="mf-setting-nav-link mf-setting-nav-hidden"></a></li>
58
- </ul>
59
- </div>
60
- </div>
61
- </div>
62
-
63
- <div class="attr-col-lg-9 attr-col-sm-8 mf-setting-main-content-column">
64
- <div class="metform-admin-container stuffbox">
65
- <div class="attr-card-body metform-admin-container--body">
66
- <form action="" method="post" class="form-group mf-admin-input-text mf-admin-input-text--metform-license-key">
67
-
68
- <!-- Dashboard Tab -->
69
- <div class="mf-settings-section" id="mf-dashboard_options">
70
- <div class="mf-settings-single-section">
71
- <div class="mf-setting-header">
72
- <h3 class="mf-settings-single-section--title"><span class="mf mf-home"></span><?php esc_html_e('Dashboard', 'metform'); ?></h3>
73
- <button type="submit" name="submit" id="submit" class="mf-admin-setting-btn active"><span class="mf mf-icon-checked-fillpng"></span><?php esc_attr_e('Save Changes', 'metform'); ?></button>
74
- </div>
75
-
76
- <div class="mf-setting-dashboard-banner">
77
- <img src="<?php echo plugin_dir_url(__FILE__) . '../images/banner.png'; ?>" class="mf-admin-dashboard-banner">
78
- </div>
79
-
80
- <div class="mf-set-dash-section">
81
- <div class="mf-setting-dash-section-heading">
82
- <h2 class="mf-setting-dash-section-heading--title">
83
- <?php esc_html_e('Top Notch', 'metform'); ?>
84
- <strong><?php esc_html_e('Features', 'metform'); ?></strong></h2>
85
- <span class="mf-setting-dash-section-heading--subtitle"><?php esc_html_e('features', 'metform'); ?></span>
86
- <div class="mf-setting-dash-section-heading--content">
87
- <p><?php esc_html_e('Get started by spending some time with the documentation to get familiar with ElementsKit.', 'metform') ?>
88
- </p>
89
- </div>
90
- </div> <!-- ./End Section heading -->
91
-
92
- <div class="mf-set-dash-top-notch">
93
- <div class="mf-set-dash-top-notch--item" data-count="01">
94
- <h3 class="mf-set-dash-top-notch--item__title">
95
- <?php esc_html_e('Easy to use', 'metform'); ?></h3>
96
- <p class="mf-set-dash-top-notch--item__desc">
97
- <?php esc_html_e('Get started by spending some time with the documentation to get familiar with MetForm', 'metform'); ?>
98
- </p>
99
- </div>
100
- <div class="mf-set-dash-top-notch--item" data-count="02">
101
- <h3 class="mf-set-dash-top-notch--item__title">
102
- <?php esc_html_e('Moden Typography', 'metform'); ?></h3>
103
- <p class="mf-set-dash-top-notch--item__desc">
104
- <?php esc_html_e('Get started by spending some time with the documentation to get familiar with MetForm', 'metform'); ?>
105
- </p>
106
- </div>
107
- <div class="mf-set-dash-top-notch--item" data-count="03">
108
- <h3 class="mf-set-dash-top-notch--item__title">
109
- <?php esc_html_e('Perfectly Match', 'metform'); ?></h3>
110
- <p class="mf-set-dash-top-notch--item__desc">
111
- <?php esc_html_e('Get started by spending some time with the documentation to get familiar with MetForm', 'metform'); ?>
112
- </p>
113
- </div>
114
- <div class="mf-set-dash-top-notch--item" data-count="04">
115
- <h3 class="mf-set-dash-top-notch--item__title">
116
- <?php esc_html_e('Dynamic Forms', 'metform'); ?></h3>
117
- <p class="mf-set-dash-top-notch--item__desc">
118
- <?php esc_html_e('Get started by spending some time with the documentation to get familiar with MetForm', 'metform'); ?>
119
- </p>
120
- </div>
121
- <div class="mf-set-dash-top-notch--item" data-count="05">
122
- <h3 class="mf-set-dash-top-notch--item__title">
123
- <?php esc_html_e('Create Faster', 'metform'); ?></h3>
124
- <p class="mf-set-dash-top-notch--item__desc">
125
- <?php esc_html_e('Get started by spending some time with the documentation to get familiar with MetForm', 'metform'); ?>
126
- </p>
127
- </div>
128
- <div class="mf-set-dash-top-notch--item" data-count="06">
129
- <h3 class="mf-set-dash-top-notch--item__title">
130
- <?php esc_html_e('Awesome Layout', 'metform'); ?></h3>
131
- <p class="mf-set-dash-top-notch--item__desc">
132
- <?php esc_html_e('Get started by spending some time with the documentation to get familiar with MetForm', 'metform'); ?>
133
- </p>
134
- </div>
135
- </div> <!-- ./End Section heading -->
136
- </div> <!-- setting top notch section -->
137
-
138
- <!-- Dashboard setting free and pro -->
139
- <div id="mf-set-dash-free-pro" class="mf-set-dash-section">
140
- <div class="mf-setting-dash-section-heading">
141
- <h2 class="mf-setting-dash-section-heading--title">
142
- <?php esc_html_e('What included with Free &', 'metform'); ?>
143
- <strong><?php esc_html_e('PRO', 'metform'); ?></strong></h2>
144
- <span class="mf-setting-dash-section-heading--subtitle"><?php esc_html_e('features', 'metform'); ?></span>
145
- <div class="mf-setting-dash-section-heading--content">
146
- <p><?php esc_html_e('Get started by spending some time with the documentation to get familiar with ElementsKit.', 'metform') ?>
147
- </p>
148
- </div>
149
- </div> <!-- ./End Section heading -->
150
-
151
- <div class="mf-set-dash-free-pro-content">
152
- <ul class="attr-nav attr-nav-tabs" id="myTab" role="tablist">
153
- <li class="attr-nav-item attr-active">
154
- <a class="attr-nav-link" data-toggle="tab" href="#mf-set-feature-1"><span class="mf-icon mf mf-document"></span><?php esc_html_e('Easy to use', 'metform'); ?><span class="mf-set-dash-badge"><?php esc_html_e('Pro', 'metform'); ?></span></a>
155
- </li>
156
- <li class="attr-nav-item">
157
- <a class="attr-nav-link" data-toggle="tab" href="#mf-set-feature-2"><span class="mf-icon mf mf-document"></span><?php esc_html_e('Modern Typography', 'metform'); ?><span class="mf-set-dash-badge"><?php esc_html_e('Pro', 'metform'); ?></span></a>
158
- </li>
159
- <li class="attr-nav-item">
160
- <a class="attr-nav-link" id="contact-tab" data-toggle="tab" href="#mf-set-feature-3"><span class="mf-icon mf mf-document"></span><?php esc_html_e('Perfectly Match', 'metform'); ?><span class="mf-set-dash-badge"><?php esc_html_e('Pro', 'metform'); ?></span></a>
161
- </li>
162
- </ul>
163
-
164
- <div class="attr-tab-content" id="myTabContent">
165
- <div class="attr-tab-pane attr-fade attr-active attr-in" id="mf-set-feature-1">
166
- <div class="mf-set-dash-tab-img">
167
- <img src="<?php echo plugin_dir_url(__FILE__) . '../images/feature-preview.png'; ?>" class="">
168
- </div>
169
- <p><?php esc_html_e('Get started by spending some time with the documentation to get familiar with MetForm Get started by spending some time with the documentation to get notification in real time.', 'metform'); ?>
170
- </p>
171
- <ul>
172
- <li><?php esc_html_e('Success Message', 'metform'); ?></li>
173
- <li><?php esc_html_e('Required Login', 'metform'); ?></li>
174
- <li><?php esc_html_e('Hide Form After Submission', 'metform'); ?>
175
- </li>
176
- <li><?php esc_html_e('Store Entries', 'metform'); ?></li>
177
- </ul>
178
-
179
- <a href="#" class="mf-admin-setting-btn medium"><span class="mf mf-icon-checked-fillpng"></span><?php esc_html_e('View Details', 'metform'); ?></a>
180
- </div>
181
- <div class="attr-tab-pane attr-fade" id="mf-set-feature-2">
182
- <div class="mf-set-dash-tab-img">
183
- <img src="<?php echo plugin_dir_url(__FILE__) . '../images/feature-preview.png'; ?>" class="">
184
- </div>
185
- <p><?php esc_html_e('Get started by spending some time with the documentation to get familiar with MetForm Get started by spending some time with the documentation to get notification in real time.', 'metform'); ?>
186
- </p>
187
- <ul>
188
- <li><?php esc_html_e('Success Message', 'metform'); ?></li>
189
- <li><?php esc_html_e('Required Login', 'metform'); ?></li>
190
- <li><?php esc_html_e('Hide Form After Submission', 'metform'); ?>
191
- </li>
192
- <li><?php esc_html_e('Store Entries', 'metform'); ?></li>
193
- </ul>
194
- </div>
195
- <div class="attr-tab-pane attr-fade" id="mf-set-feature-3">
196
- <div class="mf-set-dash-tab-img">
197
- <img src="<?php echo plugin_dir_url(__FILE__) . '../images/feature-preview.png'; ?>" class="">
198
- </div>
199
- <p><?php esc_html_e('Get started by spending some time with the documentation to get familiar with MetForm Get started by spending some time with the documentation to get notification in real time.', 'metform'); ?>
200
- </p>
201
- <ul>
202
- <li><?php esc_html_e('Success Message', 'metform'); ?></li>
203
- <li><?php esc_html_e('Required Login', 'metform'); ?></li>
204
- <li><?php esc_html_e('Hide Form After Submission', 'metform'); ?>
205
- </li>
206
- <li><?php esc_html_e('Store Entries', 'metform'); ?></li>
207
- </ul>
208
- </div>
209
- </div>
210
- </div>
211
- </div> <!-- Dashboard setting free and pro -->
212
-
213
- <!-- Dashboard setting faq -->
214
- <div id="mf-set-dash-faq" class="mf-set-dash-section">
215
- <div class="mf-setting-dash-section-heading">
216
- <h2 class="mf-setting-dash-section-heading--title">
217
- <?php esc_html_e('General Knowledge Base', 'metform'); ?></h2>
218
- <span class="mf-setting-dash-section-heading--subtitle"><?php esc_html_e('FAQ', 'metform'); ?></span>
219
- <div class="mf-setting-dash-section-heading--content">
220
- <p><?php esc_html_e('Get started by spending some time with the documentation to get familiar with ElementsKit.', 'metform') ?>
221
- </p>
222
- </div>
223
- </div> <!-- ./End Section heading -->
224
-
225
- <div class="mf-admin-accordion">
226
- <div class="mf-admin-single-accordion">
227
- <h2 class="mf-admin-single-accordion--heading">
228
- <?php esc_html_e('1. How to create a Invitation Form using MetForm?', 'metform'); ?>
229
- </h2>
230
- <div class="mf-admin-single-accordion--body">
231
- <div class="mf-admin-single-accordion--body__content">
232
- <p><?php esc_html_e('You will get 20+ complete homepages and total 450+ blocks in our layout library and we’re continuously updating the numbers there.', 'metform') ?>
233
- </p>
234
- </div>
235
- </div>
236
- </div>
237
- <div class="mf-admin-single-accordion">
238
- <h2 class="mf-admin-single-accordion--heading">
239
- <?php esc_html_e('2. How to translate language with WPML?', 'metform'); ?>
240
- </h2>
241
- <div class="mf-admin-single-accordion--body">
242
- <div class="mf-admin-single-accordion--body__content">
243
- <p><?php esc_html_e('You will get 20+ complete homepages and total 450+ blocks in our layout library and we’re continuously updating the numbers there.', 'metform') ?>
244
- </p>
245
- </div>
246
- </div>
247
- </div>
248
- <div class="mf-admin-single-accordion">
249
- <h2 class="mf-admin-single-accordion--heading">
250
- <?php esc_html_e('3. How to add custom css in specific section shortcode?', 'metform'); ?>
251
- </h2>
252
- <div class="mf-admin-single-accordion--body">
253
- <div class="mf-admin-single-accordion--body__content">
254
- <p><?php esc_html_e('You will get 20+ complete homepages and total 450+ blocks in our layout library and we’re continuously updating the numbers there.', 'metform') ?>
255
- </p>
256
- </div>
257
- </div>
258
- </div>
259
- </div>
260
-
261
- <a href="#" class="mf-admin-setting-btn fatty active"><span class="mf mf-question"></span><?php esc_html_e('View all faq’s', 'metform'); ?></a>
262
- </div> <!-- Dashboard setting faq -->
263
-
264
- <!-- Dashboard setting rate now -->
265
- <div id="mf-set-dash-rate-now" class="mf-set-dash-section">
266
- <div class="mf-admin-right-content">
267
-
268
- <div class="mf-setting-dash-section-heading">
269
- <h2 class="mf-setting-dash-section-heading--title">
270
- <strong><?php esc_html_e('Satisfied!', 'metform'); ?></strong><br><?php esc_html_e('Don’t forget to rate our item.', 'metform'); ?>
271
- </h2>
272
- <span class="mf-setting-dash-section-heading--subtitle"><?php esc_html_e('review', 'metform'); ?></span>
273
- <div class="mf-setting-dash-section-heading--content">
274
- <p></p>
275
- </div>
276
- </div> <!-- ./End Section heading -->
277
- <div class="mf-admin-right-content--button">
278
- <a target="_blank" href="https://wordpress.org/support/plugin/metform/reviews/?rate=5#new-post" class="mf-admin-setting-btn fatty"><span class="mf mf-star-1"></span><?php esc_html_e('Rate it now', 'elementskit'); ?></a>
279
- </div>
280
- </div>
281
-
282
- <div class="mf-admin-left-thumb">
283
- <img src="<?php echo plugin_dir_url(__FILE__) . '../images/rate-now-thumb.png'; ?>" alt="<?php esc_attr_e('Rate Now Thumb', 'elementskit'); ?>">
284
- </div>
285
- </div>
286
-
287
- </div>
288
- </div>
289
-
290
- <!-- General Tab -->
291
- <div class="mf-settings-section" id="mf-general_options">
292
- <div class="mf-settings-single-section">
293
- <div class="mf-setting-header">
294
- <h3 class="mf-settings-single-section--title"><span class="mf mf-settings"></span><?php esc_html_e('General', 'metform'); ?></h3>
295
- <button type="submit" name="submit" id="submit" class="mf-admin-setting-btn active"><span class="mf mf-icon-checked-fillpng"></span><?php esc_attr_e('Save Changes', 'metform'); ?></button>
296
- </div>
297
- <div class="attr-form-group">
298
- <div class="mf-setting-tab-nav">
299
- <ul class="attr-nav attr-nav-tabs" id="nav-tab" role="attr-tablist">
300
- <li class="attr-active attr-in">
301
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#mf-recaptcha-tab" role="tab"><?php esc_attr_e('reCaptcha', 'metform'); ?></a>
302
- </li>
303
-
304
- <?php if (class_exists('\MetForm_Pro\Base\Package')) : ?>
305
- <li>
306
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#mf-map-tab" role="tab" aria-controls="nav-profile" aria-selected="false"><?php esc_html_e('Map', 'metform'); ?></a>
307
- </li>
308
- <?php endif; ?>
309
-
310
-
311
- </ul>
312
- </div>
313
-
314
- <div class="attr-tab-content" id="nav-tabContent">
315
- <div class="attr-tab-pane attr-fade attr-active attr-in" id="mf-recaptcha-tab" role="tabpanel" aria-labelledby="nav-home-tab">
316
- <div class="attr-row">
317
- <div class="attr-col-lg-6">
318
- <div class="mf-setting-input-group">
319
- <label class="mf-setting-label" for="captcha-method"><?php esc_html_e('Select version:', 'metform'); ?></label>
320
- <div class="mf-setting-select-container">
321
- <select name="mf_recaptcha_version" class="mf-setting-input attr-form-control mf-recaptcha-version" id="captcha-method">
322
- <option <?php echo esc_attr((isset($settings['mf_recaptcha_version']) && ($settings['mf_recaptcha_version'] == 'recaptcha-v2')) ? 'Selected' : ''); ?> value="recaptcha-v2">
323
- <?php esc_html_e('reCAPTCHA V2', 'metform'); ?>
324
- </option>
325
- <option <?php echo esc_attr((isset($settings['mf_recaptcha_version']) && ($settings['mf_recaptcha_version'] == 'recaptcha-v3')) ? 'Selected' : ''); ?> value="recaptcha-v3">
326
- <?php esc_html_e('reCAPTCHA V3', 'metform'); ?>
327
- </option>
328
- </select>
329
- </div>
330
- <p class="description">
331
- <?php esc_html_e('Select google reCaptcha version which one want to use.', 'metform'); ?>
332
- </p>
333
- </div>
334
-
335
- <div class="mf-recaptcha-settings-wrapper">
336
- <div class="mf-recaptcha-settings" id="mf-recaptcha-v2">
337
- <div class="mf-setting-input-group">
338
- <label class="mf-setting-label"><?php esc_html_e('Site key:', 'metform'); ?>
339
- </label>
340
- <input type="text" name="mf_recaptcha_site_key" value="<?php echo esc_attr((isset($settings['mf_recaptcha_site_key'])) ? $settings['mf_recaptcha_site_key'] : ''); ?>" class="mf-setting-input attr-form-control mf-recaptcha-site-key" placeholder="<?php esc_html_e('Insert site key', 'metform'); ?>">
341
- <p class="description">
342
- <?php esc_html_e('Create google reCaptcha site key from reCaptcha admin panel. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://www.google.com/recaptcha/admin/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
343
- </p>
344
- </div>
345
- <div class="mf-setting-input-group">
346
- <label class="mf-setting-label"><?php esc_html_e('Secret key:', 'metform'); ?>
347
- </label>
348
- <input type="text" name="mf_recaptcha_secret_key" value="<?php echo esc_attr((isset($settings['mf_recaptcha_secret_key'])) ? $settings['mf_recaptcha_secret_key'] : ''); ?>" class="mf-setting-input attr-form-control mf-recaptcha-secret-key" placeholder="<?php esc_html_e('Insert secret key', 'metform'); ?>">
349
- <p class="description">
350
- <?php esc_html_e('Create google reCaptcha secret key from reCaptcha admin panel. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://www.google.com/recaptcha/admin/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
351
- </p>
352
- </div>
353
- </div>
354
-
355
- <div class="mf-recaptcha-settings" id="mf-recaptcha-v3">
356
- <div class="mf-setting-input-group">
357
- <label class="mf-setting-label"><?php esc_html_e('Site key:', 'metform'); ?>
358
- </label>
359
- <input type="text" name="mf_recaptcha_site_key_v3" value="<?php echo esc_attr((isset($settings['mf_recaptcha_site_key_v3'])) ? $settings['mf_recaptcha_site_key_v3'] : ''); ?>" class="mf-setting-input attr-form-control mf-recaptcha-site-key" placeholder="<?php esc_html_e('Insert site key', 'metform'); ?>">
360
- <p class="description">
361
- <?php esc_html_e('Create google reCaptcha site key from reCaptcha admin panel. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://www.google.com/recaptcha/admin/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
362
- </p>
363
- </div>
364
- <div class="mf-setting-input-group">
365
- <label class="mf-setting-label"><?php esc_html_e('Secret key:', 'metform'); ?>
366
- </label>
367
- <input type="text" name="mf_recaptcha_secret_key_v3" value="<?php echo esc_attr((isset($settings['mf_recaptcha_secret_key_v3'])) ? $settings['mf_recaptcha_secret_key_v3'] : ''); ?>" class="mf-setting-input attr-form-control mf-recaptcha-secret-key" placeholder="<?php esc_html_e('Insert secret key', 'metform'); ?>">
368
- <p class="description">
369
- <?php esc_html_e('Create google reCaptcha secret key from reCaptcha admin panel. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://www.google.com/recaptcha/admin/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
370
- </p>
371
- </div>
372
- </div>
373
- </div>
374
- </div>
375
- </div>
376
- </div>
377
-
378
- <?php if (class_exists('\MetForm_Pro\Base\Package')) : ?>
379
- <div class="attr-tab-pane attr-fade" id="mf-map-tab" role="tabpanel" aria-labelledby="nav-home-tab">
380
- <div class="attr-row">
381
- <div class="attr-col-lg-6">
382
- <div class="mf-setting-input-group">
383
- <label class="mf-setting-label"><?php esc_html_e('API:', 'metform'); ?>
384
- </label>
385
- <input type="text" name="mf_google_map_api_key" value="<?php echo esc_attr((isset($settings['mf_google_map_api_key'])) ? $settings['mf_google_map_api_key'] : ''); ?>" class="mf-setting-input attr-form-control mf-google-map-api-key" placeholder="<?php esc_html_e('Insert map api key', 'metform'); ?>">
386
- <p class="description">
387
- <?php esc_html_e('Create google map api key from google developer console. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://console.cloud.google.com/google/maps-apis/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
388
- </p>
389
- </div>
390
- </div>
391
- </div>
392
- </div>
393
- <?php endif; ?>
394
-
395
-
396
-
397
-
398
-
399
-
400
- </div>
401
-
402
-
403
- </div>
404
- </div>
405
-
406
- </div>
407
- <!-- ./End General Tab -->
408
-
409
- <!-- Payment Tab -->
410
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Paypal')) : ?>
411
- <div class="mf-settings-section" id="mf-payment_options">
412
- <div class="mf-settings-single-section">
413
-
414
- <div class="mf-setting-header">
415
- <h3 class="mf-settings-single-section--title"><span class="mf mf-settings"></span><?php esc_html_e('Payment', 'metform'); ?></h3>
416
- <button type="submit" name="submit" id="submit" class="mf-admin-setting-btn active"><span class="mf mf-icon-checked-fillpng"></span><?php esc_attr_e('Save Changes', 'metform'); ?></button>
417
- </div>
418
-
419
- <div class="mf-setting-tab-nav">
420
- <ul class="attr-nav attr-nav-tabs" id="nav-tab" role="attr-tablist">
421
- <li class="attr-active attr-in">
422
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#mf-paypal-tab" role="tab"><?php esc_attr_e('Paypal', 'metform'); ?></a>
423
- </li>
424
-
425
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Stripe')) : ?>
426
- <li>
427
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#attr-stripe-tab" role="tab" aria-controls="nav-profile" aria-selected="false"><?php esc_html_e('Stripe', 'metform'); ?></a>
428
- </li>
429
- <?php endif; ?>
430
-
431
- <li>
432
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#mf-thankyou-tab" role="tab"><?php esc_attr_e('Tankyou Page', 'metform'); ?></a>
433
- </li>
434
- </ul>
435
- </div>
436
-
437
- <div class="attr-form-group">
438
- <div class="attr-tab-content" id="nav-tabContent">
439
- <div class="attr-tab-pane attr-fade attr-active attr-in" id="mf-paypal-tab" role="tabpanel" aria-labelledby="nav-home-tab">
440
- <div class="attr-row">
441
- <div class="attr-col-lg-6">
442
- <div class="mf-setting-input-group">
443
- <label class="mf-setting-label"><?php esc_html_e('Paypal email:', 'metform'); ?></label>
444
- <input type="email" name="mf_paypal_email" value="<?php echo esc_attr((isset($settings['mf_paypal_email'])) ? $settings['mf_paypal_email'] : ''); ?>" class="mf-setting-input mf-paypal-email attr-form-control" placeholder="<?php esc_html_e('Paypal email', 'metform'); ?>">
445
- <p class="description">
446
- <?php esc_html_e('Enter here your paypal email. ', 'metform'); ?><a class="mf-setting-btn-link" target="__blank" href="<?php echo esc_url('https://www.paypal.com/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
447
- </p>
448
- </div>
449
-
450
- <div class="mf-setting-input-group">
451
- <label class="mf-setting-label"><?php esc_html_e('Paypal token:', 'metform'); ?></label>
452
- <input type="text" name="mf_paypal_token" value="<?php echo esc_attr((isset($settings['mf_paypal_token'])) ? $settings['mf_paypal_token'] : ''); ?>" class="mf-setting-input mf-paypal-token attr-form-control" placeholder="<?php esc_html_e('Paypal token', 'metform'); ?>">
453
- <p class="description">
454
- <?php esc_html_e('Enter here your paypal token. This is optional. ', 'metform'); ?><a class="mf-setting-btn-link" target="__blank" href="<?php echo esc_url('https://www.paypal.com/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
455
- </p>
456
- </div>
457
-
458
- <div class="mf-setting-input-group">
459
- <label class="mf-setting-label"><?php esc_html_e('Enable sandbox mode:', 'metform'); ?>
460
- <input type="checkbox" value="1" name="mf_paypal_sandbox" <?php echo esc_attr((isset($settings['mf_paypal_sandbox'])) ? 'Checked' : ''); ?> class="mf-admin-control-input mf-form-modalinput-paypal_sandbox">
461
- <p class="description">
462
- <?php esc_html_e('Enable this for testing payment method. ', 'metform'); ?>
463
- </p>
464
- </label>
465
- </div>
466
- </div>
467
- </div>
468
- </div>
469
-
470
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Stripe')) : ?>
471
- <div class="attr-tab-pane attr-fade" id="attr-stripe-tab" role="tabpanel" aria-labelledby="nav-profile-tab">
472
- <div class="attr-row">
473
- <div class="attr-col-lg-6">
474
- <div class="mf-setting-input-group">
475
- <label for="attr-input-label" class="mf-setting-label attr-input-label"><?php esc_html_e('Image url:', 'metform'); ?></label>
476
- <input type="text" name="mf_stripe_image_url" value="<?php echo esc_attr((isset($settings['mf_stripe_image_url'])) ? $settings['mf_stripe_image_url'] : ''); ?>" class="mf-setting-input mf-stripe-image-url attr-form-control" placeholder="<?php esc_html_e('Stripe image url', 'metform'); ?>">
477
- <p class="description">
478
- <?php esc_html_e('Enter here your stripe image url. This image will show on stripe payment pop up modal. ', 'metform'); ?>
479
- </p>
480
- </div>
481
-
482
- <div class="mf-setting-input-group">
483
- <label for="attr-input-label" class="mf-setting-label attr-input-label"><?php esc_html_e('Live publishiable key:', 'metform'); ?></label>
484
- <input type="text" name="mf_stripe_live_publishiable_key" value="<?php echo esc_attr((isset($settings['mf_stripe_live_publishiable_key'])) ? $settings['mf_stripe_live_publishiable_key'] : ''); ?>" class="mf-setting-input mf-stripe-live-publishiable-key attr-form-control" placeholder="<?php esc_html_e('Stripe live publishiable key', 'metform'); ?>">
485
- <p class="description">
486
- <?php esc_html_e('Enter here your stripe live publishiable key. ', 'metform'); ?><a class="mf-setting-btn-link" target="__blank" href="<?php echo esc_url('https://stripe.com/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
487
- </p>
488
- </div>
489
-
490
- <div class="mf-setting-input-group">
491
- <label for="attr-input-label" class="mf-setting-label attr-input-label"><?php esc_html_e('Live secret key:', 'metform'); ?></label>
492
- <input type="text" name="mf_stripe_live_secret_key" value="<?php echo esc_attr((isset($settings['mf_stripe_live_secret_key'])) ? $settings['mf_stripe_live_secret_key'] : ''); ?>" class="mf-setting-input mf-stripe-live-secret-key attr-form-control" placeholder="<?php esc_html_e('Stripe live secret key', 'metform'); ?>">
493
- <p class="description">
494
- <?php esc_html_e('Enter here your stripe live secret key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://stripe.com/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
495
- </p>
496
- </div>
497
-
498
- <div class="mf-setting-input-group">
499
- <label class="mf-setting-label attr-input-label">
500
- <?php esc_html_e('Enable sandbox mode:', 'metform'); ?>
501
- <input type="checkbox" value="1" name="mf_stripe_sandbox" <?php echo esc_attr((isset($settings['mf_stripe_sandbox'])) ? 'Checked' : ''); ?> class="mf-admin-control-input mf-form-modalinput-stripe_sandbox">
502
- <p class="description">
503
- <?php esc_html_e('Enable this for testing your payment system. ', 'metform'); ?>
504
- </p>
505
- </label>
506
- </div>
507
-
508
- <div class="mf-form-modalinput-stripe_sandbox_keys">
509
- <div class="mf-setting-input-group">
510
- <label for="attr-input-label" class="mf-setting-label attr-input-label"><?php esc_html_e('Test publishiable key:', 'metform'); ?></label>
511
- <input type="text" name="mf_stripe_test_publishiable_key" value="<?php echo esc_attr((isset($settings['mf_stripe_test_publishiable_key'])) ? $settings['mf_stripe_test_publishiable_key'] : ''); ?>" class="mf-setting-input mf-stripe-test-publishiable-key attr-form-control" placeholder="<?php esc_html_e('Stripe test publishiable key', 'metform'); ?>">
512
- <p class="description">
513
- <?php esc_html_e('Enter here your test publishiable key. ', 'metform'); ?><a class="mf-setting-btn-link" target="__blank" href="<?php echo esc_url('https://stripe.com/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
514
- </p>
515
- </div>
516
- <div class="mf-setting-input-group">
517
- <label for="attr-input-label" class="mf-setting-label attr-input-label"><?php esc_html_e('Test secret key:', 'metform'); ?></label>
518
- <input type="text" name="mf_stripe_test_secret_key" value="<?php echo esc_attr((isset($settings['mf_stripe_test_secret_key'])) ? $settings['mf_stripe_test_secret_key'] : ''); ?>" class="mf-setting-input mf-stripe-test-secret-key attr-form-control" placeholder="<?php esc_html_e('Stripe test secret key', 'metform'); ?>">
519
- <p class="description">
520
- <?php esc_html_e('Enter here your test secret key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://stripe.com/', 'metform'); ?>"><?php esc_html_e('Create from here', 'metform'); ?></a>
521
- </p>
522
- </div>
523
- </div>
524
-
525
- </div>
526
- </div>
527
- </div>
528
- <?php endif; ?>
529
-
530
- <!-- Thank you page section -->
531
-
532
- <div class="attr-tab-pane attr-fade" id="mf-thankyou-tab" role="tabpanel" aria-labelledby="nav-home-tab">
533
- <div class="attr-row">
534
- <div class="attr-col-lg-6">
535
- <div class="mf-setting-input-group">
536
- <h3>Select Thankyou Page :</h3>
537
- <?php $page_ids = get_all_page_ids(); ?>
538
- <select name="mf_thank_you_page" class="mf-setting-input attr-form-control">
539
- <?php foreach ($page_ids as $page) : ?>
540
- <option <?php
541
- if(isset($settings['mf_thank_you_page'])){
542
- if ($settings['mf_thank_you_page'] == $page) {
543
- echo 'selected';
544
- }
545
-
546
- }
547
-
548
- ?> value="<?php echo $page; ?>"> <?php echo get_the_title($page); ?>
549
- <?php endforeach; ?>
550
-
551
-
552
- </select>
553
- <br><br>
554
- <p>Handle both payment successfull and cancel redirection page. Learn more about Thank you page <a href="https://help.wpmet.com/docs/thank-you-page/" target="_blank">Here</a></p>
555
- <a class="mf-setting-btn-link" href="<?php echo get_admin_url() . 'post-new.php?post_type=page'; ?>">Create Thankyou Page</a>
556
- </div>
557
- </div>
558
- </div>
559
- </div>
560
-
561
- </div>
562
- </div>
563
-
564
-
565
- </div>
566
-
567
- </div>
568
- <?php endif; ?>
569
-
570
- <!-- ./End Payment Tab -->
571
-
572
- <!-- newsletter Integration Tab -->
573
- <div class="mf-settings-section" id="mf-newsletter_integration">
574
- <div class="mf-settings-single-section">
575
- <?php if (class_exists('\MetForm\Core\Integrations\Mail_Chimp')) : ?>
576
- <div class="mf-setting-header">
577
- <h3 class="mf-settings-single-section--title"><span class="mf mf-settings"></span><?php esc_html_e('Newsletter Integration', 'metform'); ?>
578
- </h3>
579
- <button type="submit" name="submit" id="submit" class="mf-admin-setting-btn active"><span class="mf mf-icon-checked-fillpng"></span><?php esc_attr_e('Save Changes', 'metform'); ?></button>
580
- </div>
581
-
582
-
583
- <div class="mf-setting-tab-nav">
584
- <ul class="attr-nav attr-nav-tabs" id="nav-tab" role="attr-tablist">
585
- <li class="attr-active attr-in">
586
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#mf-mailchimp-tab" role="tab"><?php esc_attr_e('MailChimp', 'metform'); ?></a>
587
- </li>
588
-
589
- <?php if (did_action('xpd_metform_pro/plugin_loaded')) : ?>
590
- <li>
591
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#attr-aweber-tab" role="tab" aria-controls="nav-profile" aria-selected="false"><?php esc_html_e('Aweber', 'metform'); ?></a>
592
- </li>
593
-
594
- <li>
595
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#attr-activeCampaign-tab" role="tab" aria-controls="nav-contact" aria-selected="false"><?php esc_html_e('ActiveCampaign', 'metform'); ?></a>
596
- </li>
597
-
598
- <li>
599
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#attr-getresponse-tab" role="tab" aria-controls="nav-contact" aria-selected="false"><?php esc_html_e('Get Response', 'metform'); ?></a>
600
- </li>
601
-
602
- <li>
603
- <a class="attr-nav-item attr-nav-link" data-toggle="tab" href="#attr-ckit-tab" role="tab" aria-controls="nav-profile" aria-selected="false"><?php esc_html_e('ConvertKit', 'metform'); ?></a>
604
- </li>
605
-
606
- <?php endif; ?>
607
- </ul>
608
- </div>
609
- <div class="attr-form-group">
610
- <div class="attr-tab-content" id="nav-tabContent">
611
- <div class="attr-tab-pane attr-fade attr-active attr-in" id="mf-mailchimp-tab" role="tabpanel" aria-labelledby="nav-home-tab">
612
-
613
- <div class="attr-row">
614
- <div class="attr-col-lg-6">
615
- <div class="mf-setting-input-group">
616
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('API Key:', 'metform'); ?></label>
617
- <input type="text" name="mf_mailchimp_api_key" value="<?php echo esc_attr((isset($settings['mf_mailchimp_api_key'])) ? $settings['mf_mailchimp_api_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('Mailchimp api key', 'metform'); ?>">
618
- <p class="description">
619
- <?php esc_html_e('Enter here your Mailchimp api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://admin.mailchimp.com/'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
620
- </p>
621
- </div>
622
- </div>
623
-
624
- <div class="attr-col-lg-6">
625
- <div class="mf-setting-input-desc">
626
- <div class="mf-setting-input-desc-data">
627
- <h2 class="mf-setting-input-desc--title">
628
- <?php esc_html_e('How To', 'metfrom') ?></h2>
629
- <p><?php esc_html_e('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'metform') ?>
630
- </p>
631
- <ol>
632
- <li><?php esc_html_e('Item 1', 'metform') ?></li>
633
- <li><?php esc_html_e('Item 2', 'metform') ?></li>
634
- <li><?php esc_html_e('Item 3', 'metform') ?></li>
635
- </ol>
636
- </div>
637
- <a href="https://help.wpmet.com/docs-cat/metform/" class="mf-setting-btn-link" target="_blank"><?php esc_html_e('View Documentation', 'metform'); ?></a>
638
- </div>
639
- </div>
640
- </div>
641
- </div>
642
-
643
- <?php if (did_action('xpd_metform_pro/plugin_loaded')) : ?>
644
-
645
- <div class="attr-tab-pane attr-fade" id="attr-aweber-tab" role="tabpanel" aria-labelledby="nav-profile-tab">
646
- <div class="attr-row">
647
- <div class="attr-col-lg-6">
648
-
649
- <div class="mf-setting-input-group">
650
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('Developer App ID:', 'metform'); ?></label>
651
- <input type="text" <?php echo $disabledAttr; ?> name="mf_aweber_dev_api_key" id="mf_aweber_dev_api_key" value="<?php echo esc_attr((isset($settings['mf_aweber_dev_api_key'])) ? $settings['mf_aweber_dev_api_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('Aweber developer clientId key', 'metform'); ?>">
652
- <p class="description">
653
- <?php esc_html_e('Enter here your Aweber developer app key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://labs.aweber.com/apps/'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
654
- </p>
655
- </div>
656
-
657
- <div class="mf-setting-input-group">
658
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('Developer App Secret:', 'metform'); ?></label>
659
- <input type="text" <?php echo $disabledAttr; ?> id="mf_aweber_dev_api_sec" name="mf_aweber_dev_api_sec" value="<?php echo esc_attr((isset($settings['mf_aweber_dev_api_sec'])) ? $settings['mf_aweber_dev_api_sec'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('Aweber developer secret key', 'metform'); ?>">
660
- <p class="description">
661
- <?php esc_html_e('Enter here your Aweber developer secret key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://labs.aweber.com/apps/'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
662
- </p>
663
- </div>
664
-
665
- <div class="mf-setting-input-group">
666
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php echo __('Redirect url:', 'metform'); ?></label>
667
- <p class="description">
668
- <?php echo get_admin_url() . 'admin.php?page=metform-menu-settings'; ?>
669
- </p>
670
- </div>
671
-
672
- <?php if (!empty($code)) : ?>
673
- <div class="mf-setting-input-group">
674
- <p class="description">
675
- <a id="met_pro_aweber_propmpt_re_auth" class="button-primary mf-setting-btn"> Re Authorize </a>
676
- </p>
677
- </div>
678
- <?php else : ?>
679
- <div class="mf-setting-input-group">
680
-
681
- <p class="description">
682
- <button class="mf-setting-btn-link" id="met_pro_aweber_authorize"> Get Authorization URL
683
- </button>
684
- </p>
685
- </div>
686
- <?php endif; ?>
687
-
688
- </div>
689
- <div class="attr-col-lg-6">
690
- <div class="mf-setting-input-desc">
691
- <div class="mf-setting-input-desc-data">
692
- <h2 class="mf-setting-input-desc--title">
693
- <?php esc_html_e('How To', 'metfrom') ?></h2>
694
- <p><?php esc_html_e('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'metform') ?>
695
- </p>
696
- <ol>
697
- <li><?php esc_html_e('Item 1', 'metform') ?></li>
698
- <li><?php esc_html_e('Item 2', 'metform') ?></li>
699
- <li><?php esc_html_e('Item 3', 'metform') ?></li>
700
- </ol>
701
- </div>
702
- <a href="https://help.wpmet.com/docs-cat/metform/" class="mf-setting-btn-link" target="_blank"><?php esc_html_e('View Documentation', 'metform'); ?></a>
703
- </div>
704
- </div>
705
-
706
- </div>
707
- </div>
708
-
709
- <div class="attr-tab-pane attr-fade" id="attr-ckit-tab" role="tabpanel" aria-labelledby="nav-contact-tab">
710
- <div class="attr-row">
711
- <div class="attr-col-lg-6">
712
- <div class="mf-setting-input-group">
713
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('API Key:', 'metform'); ?></label>
714
- <input type="text" name="mf_ckit_api_key" value="<?php echo esc_attr((isset($settings['mf_ckit_api_key'])) ? $settings['mf_ckit_api_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('ConvertKit api key', 'metform'); ?>">
715
- <p class="description">
716
- <?php esc_html_e('Enter here your ConvertKit api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://app.convertkit.com/users/login'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
717
- </p>
718
- </div>
719
-
720
-
721
- <div class="mf-setting-input-group">
722
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('Secret Key:', 'metform'); ?></label>
723
- <input type="text" name="mf_ckit_sec_key" value="<?php echo esc_attr((isset($settings['mf_ckit_sec_key'])) ? $settings['mf_ckit_sec_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('ConvertKit api key', 'metform'); ?>">
724
- <p class="description">
725
- <?php esc_html_e('Enter here your ConvertKit api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://app.convertkit.com/users/login'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
726
- </p>
727
- </div>
728
-
729
-
730
- </div>
731
- <div class="attr-col-lg-6">
732
- <div class="mf-setting-input-desc">
733
- <div class="mf-setting-input-desc-data">
734
- <h2 class="mf-setting-input-desc--title">
735
- <?php esc_html_e('How To', 'metfrom') ?></h2>
736
- <p><?php esc_html_e('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'metform') ?>
737
- </p>
738
- <ol>
739
- <li><?php esc_html_e('Item 1', 'metform') ?></li>
740
- <li><?php esc_html_e('Item 2', 'metform') ?></li>
741
- <li><?php esc_html_e('Item 3', 'metform') ?></li>
742
- </ol>
743
- </div>
744
- <a href="https://help.wpmet.com/docs-cat/metform/" class="mf-setting-btn-link" target="_blank"><?php esc_html_e('View Documentation', 'metform'); ?></a>
745
- </div>
746
- </div>
747
- </div>
748
- </div>
749
-
750
- <?php endif; ?>
751
-
752
- <div class="attr-tab-pane attr-fade" id="attr-activeCampaign-tab" role="tabpanel" aria-labelledby="nav-contact-tab">
753
- <div class="attr-row">
754
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Email\Activecampaign\Active_Campaign')) : ?>
755
- <div class="attr-col-lg-6">
756
- <div class="mf-setting-input-group">
757
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('API URL:', 'metform'); ?></label>
758
- <input type="text" name="mf_active_campaign_url" value="<?php echo esc_attr((isset($settings['mf_active_campaign_url'])) ? $settings['mf_active_campaign_url'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('ActiveCampaign API URL', 'metform'); ?>">
759
- <p class="description">
760
- <?php esc_html_e('Enter here your ActiveCampaign api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://www.activecampaign.com/'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
761
- </p>
762
- </div>
763
-
764
- <div class="mf-setting-input-group">
765
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('API Key:', 'metform'); ?></label>
766
- <input type="text" name="mf_active_campaign_api_key" value="<?php echo esc_attr((isset($settings['mf_active_campaign_api_key'])) ? $settings['mf_active_campaign_api_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('ActiveCampaign api key', 'metform'); ?>">
767
- <p class="description">
768
- <?php esc_html_e('Enter here your ActiveCampaign api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://www.activecampaign.com/'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
769
- </p>
770
- </div>
771
- </div>
772
- <div class="attr-col-lg-6">
773
- <div class="mf-setting-input-desc">
774
- <div class="mf-setting-input-desc-data">
775
- <h2 class="mf-setting-input-desc--title">
776
- <?php esc_html_e('How To', 'metfrom') ?></h2>
777
- <p><?php esc_html_e('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'metform') ?>
778
- </p>
779
- <ol>
780
- <li><?php esc_html_e('Item 1', 'metform') ?></li>
781
- <li><?php esc_html_e('Item 2', 'metform') ?></li>
782
- <li><?php esc_html_e('Item 3', 'metform') ?></li>
783
- </ol>
784
- </div>
785
- <a href="https://help.wpmet.com/docs-cat/metform/" class="mf-setting-btn-link" target="_blank"><?php esc_html_e('View Documentation', 'metform'); ?></a>
786
- </div>
787
- </div>
788
-
789
- <?php else : ?>
790
- <div class="attr-col-lg-6">
791
- <div class="mf-setting-input-group">
792
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('API Key:', 'metform'); ?></label>
793
- <input type="text" disabled name="mf_activecampaign_api_key_field" value="" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('ActiveCampaign api key', 'metform'); ?>">
794
- <p class="description">
795
- <?php esc_html_e('Enter here your ActiveCampaign api key. ', 'metform'); ?><a target="__blank" class="mf-setting-btn-link" href="<?php echo esc_url('https://admin.mailchimp.com/'); ?>"><?php esc_html_e('Get API.', 'metform'); ?></a>
796
- </p>
797
- </div>
798
- </div>
799
- <div class="attr-col-lg-6">
800
- <div class="mf-setting-input-desc">
801
- <div class="mf-setting-input-desc-data">
802
- <h2 class="mf-setting-input-desc--title">
803
- <?php esc_html_e('How To', 'metfrom') ?></h2>
804
- <p><?php esc_html_e('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'metform') ?>
805
- </p>
806
- <ol>
807
- <li><?php esc_html_e('Item 1', 'metform') ?></li>
808
- <li><?php esc_html_e('Item 2', 'metform') ?></li>
809
- <li><?php esc_html_e('Item 3', 'metform') ?></li>
810
- </ol>
811
- </div>
812
- <a href="https://help.wpmet.com/docs-cat/metform/" class="mf-setting-btn-link" target="_blank"><?php esc_html_e('View Documentation', 'metform'); ?></a>
813
- </div>
814
- </div>
815
- <?php endif; ?>
816
- </div>
817
- </div>
818
-
819
- <div class="attr-tab-pane attr-fade" id="attr-getresponse-tab" role="tabpanel" aria-labelledby="nav-contact-tab">
820
- <div class="attr-row">
821
-
822
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Email\Getresponse\Get_Response')) : ?>
823
- <div class="attr-col-lg-6">
824
- <div class="mf-setting-input-group">
825
- <div class="attr-form-group">
826
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('GetResponse API Key:', 'metform'); ?></label>
827
- <input type="text" name="mf_get_reponse_api_key" value="<?php echo esc_attr((isset($settings['mf_get_reponse_api_key'])) ? $settings['mf_get_reponse_api_key'] : ''); ?>" class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('GetResponse api key', 'metform'); ?>">
828
-
829
- </div>
830
- </div>
831
- </div>
832
- <div class="attr-col-lg-6">
833
- <div class="mf-setting-input-desc">
834
- <div class="mf-setting-input-desc-data">
835
- <h2 class="mf-setting-input-desc--title">
836
- <?php esc_html_e('How To', 'metfrom') ?></h2>
837
- <p><?php esc_html_e('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'metform') ?>
838
- </p>
839
- <ol>
840
- <li><?php esc_html_e('Item 1', 'metform') ?></li>
841
- <li><?php esc_html_e('Item 2', 'metform') ?></li>
842
- <li><?php esc_html_e('Item 3', 'metform') ?></li>
843
- </ol>
844
- </div>
845
- <a href="https://help.wpmet.com/docs-cat/metform/" class="mf-setting-btn-link" target="_blank"><?php esc_html_e('View Documentation', 'metform'); ?></a>
846
- </div>
847
- </div>
848
-
849
- <?php else : ?>
850
- <div class="attr-col-lg-6">
851
- <div class="mf-setting-input-group">
852
- <div class="attr-form-group">
853
- <label for="attr-input-label" class="mf-setting-label mf-setting-label attr-input-label"><?php esc_html_e('GetResponse API Key:', 'metform'); ?></label>
854
- <input type="text" name="mf_getreponse_api_key_field" value="" disabled class="mf-setting-input mf-mailchimp-api-key attr-form-control" placeholder="<?php esc_html_e('GetResponse api key', 'metform'); ?>">
855
-
856
- </div>
857
- </div>
858
- </div>
859
- <div class="attr-col-lg-6">
860
- <div class="mf-setting-input-desc">
861
- <div class="mf-setting-input-desc-data">
862
- <h2 class="mf-setting-input-desc--title">
863
- <?php esc_html_e('How To', 'metfrom') ?></h2>
864
- <p><?php esc_html_e('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.', 'metform') ?>
865
- </p>
866
- <ol>
867
- <li><?php esc_html_e('Item 1', 'metform') ?></li>
868
- <li><?php esc_html_e('Item 2', 'metform') ?></li>
869
- <li><?php esc_html_e('Item 3', 'metform') ?></li>
870
- </ol>
871
- </div>
872
- <a href="https://help.wpmet.com/docs-cat/metform/" class="mf-setting-btn-link" target="_blank"><?php esc_html_e('View Documentation', 'metform'); ?></a>
873
- </div>
874
- </div>
875
-
876
- <?php endif; ?>
877
-
878
- </div>
879
- </div>
880
-
881
-
882
- </div>
883
- </div>
884
- <!-- <hr class="mf-setting-separator"> -->
885
- <?php endif; ?>
886
- </div>
887
- </div>
888
- <!-- ./End Mail Integration Tab -->
889
-
890
- <!-- Integrations settings action -->
891
-
892
- <?php echo do_action('metform_settings_content'); ?>
893
-
894
- <!-- Integrations settings action end -->
895
-
896
- <input type="hidden" name="mf_settings_page_action" value="save">
897
- <?php wp_nonce_field('metform-settings-page', 'metform-settings-page'); ?>
898
- </form>
899
- </div>
900
- </div>
901
- </div>
902
- </div>
903
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/action.php DELETED
@@ -1,936 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Entries;
4
-
5
- use MetForm_Pro\Utils\Helper;
6
-
7
- defined('ABSPATH') || exit;
8
-
9
- class Action
10
- {
11
- use \MetForm\Traits\Singleton;
12
-
13
- private $key_form_id;
14
- private $key_form_data;
15
- //private $key_form_settings;
16
- private $key_browser_data;
17
- private $key_form_total_entries;
18
- private $key_form_file;
19
- private $key_payment_status;
20
- private $post_type;
21
-
22
- private $fields;
23
- private $entry_id;
24
- private $form_id;
25
- private $form_data;
26
- private $form_settings;
27
- private $title;
28
- private $entry_count;
29
- private $email_name;
30
- private $file_upload_info;
31
-
32
- private $inserted_form_data;
33
-
34
- private $response;
35
-
36
- public function __construct()
37
- {
38
- $this->response = (object) [
39
- 'status' => 0,
40
- 'error' => [
41
- esc_html__('Some thing went wrong.', 'metrom'),
42
- ],
43
- 'data' => [
44
- 'message' => '',
45
- ],
46
- ];
47
-
48
- //$this->key_form_settings = 'metform_form__form_setting';
49
- $this->key_form_total_entries = 'metform_form__form_total_entries';
50
- $this->key_browser_data = 'metform_form__entry_browser_data';
51
- $this->key_form_id = 'metform_entries__form_id';
52
- $this->key_form_data = 'metform_entries__form_data';
53
- $this->key_form_file = 'metform_entries__file_upload';
54
- $this->key_payment_status = 'metform_entries__payment_status';
55
- $this->post_type = Base::instance()->cpt->get_name();
56
- }
57
-
58
- public function submit($form_id, $form_data, $file_data, $page_id = '')
59
- {
60
-
61
- $this->form_id = $form_id;
62
- $this->title = get_the_title($this->form_id);
63
- //$this->form_settings = $this->get_form_settings($form_id);
64
- $this->form_settings = \MetForm\Core\Forms\Action::instance()->get_all_data($form_id);
65
- $this->fields = $this->get_fields($form_id);
66
-
67
- $this->response->data['redirect_to'] = (!isset($this->form_settings['redirect_to'])) ? '' : $this->form_settings['redirect_to'];
68
- $this->response->data['hide_form'] = (!isset($this->form_settings['hide_form_after_submission']) ? '' : $this->form_settings['hide_form_after_submission']);
69
- $this->response->data['form_data'] = $form_data;
70
- //$this->response->data['form_setting'] = $this->form_settings;
71
- //$this->response->data['map_data'] = $this->fields;
72
-
73
- $email_name = $this->get_input_name_by_widget_type('mf-email');
74
- $this->email_name = (isset($email_name[0]) ? $email_name[0] : null);
75
-
76
- // nonce check
77
- if( ! Helper::mf_is_woo_exists() ) {
78
- if (!isset($form_data['form_nonce']) || !wp_verify_nonce($form_data['form_nonce'], 'form_nonce')) {
79
- $this->response->status = 0;
80
- $this->response->error[] = esc_html__('Unauthorized submission.', 'metform');
81
- return $this->response;
82
- }
83
- }
84
-
85
-
86
- // validate form with max length, min length, length type and expression
87
- $validate = $this->validate_form_data($form_data);
88
- if ($validate == false) {
89
- $this->response->status = 0;
90
- return $this->response;
91
- }
92
-
93
- // google recaptcha condition and action
94
- if ((isset($form_data['g-recaptcha-response']) || isset($form_data['g-recaptcha-response-v3'])) && (isset($this->fields['mf-recaptcha'])) && (isset($this->form_settings['mf_recaptcha_site_key'])) && $this->form_settings['mf_recaptcha_site_key'] != '') {
95
- if (isset($form_data['g-recaptcha-response']) && ($form_data['g-recaptcha-response'] == "")) {
96
- $this->response->status = 0;
97
- $this->response->error[] = esc_html__('Please solve the recaptcha.', 'metform');
98
- return $this->response;
99
- }
100
-
101
- if ((isset($this->form_settings['mf_recaptcha_version']) && ($this->form_settings['mf_recaptcha_version'] == 'recaptcha-v3')) && (!isset($form_data['g-recaptcha-response-v3']) || ($form_data['g-recaptcha-response-v3'] == ""))) {
102
- $this->response->status = 0;
103
- $this->response->error[] = esc_html__('Google captcha token not found.', 'metform');
104
- return $this->response;
105
- }
106
-
107
- if ((isset($this->form_settings['mf_recaptcha_version']) && ($this->form_settings['mf_recaptcha_version'] == 'recaptcha-v2')) && isset($form_data['g-recaptcha-response'])) {
108
- $response = \MetForm\Core\Integrations\Google_Recaptcha::instance()->verify_captcha_v2($form_data, $this->form_settings);
109
- }
110
-
111
- if ((isset($this->form_settings['mf_recaptcha_version']) && ($this->form_settings['mf_recaptcha_version'] == 'recaptcha-v3')) && isset($form_data['g-recaptcha-response-v3'])) {
112
- $response = \MetForm\Core\Integrations\Google_Recaptcha::instance()->verify_captcha_v3($form_data, $this->form_settings);
113
- }
114
-
115
- //$this->response->data['responseKeys'] = $response['responseKeys'];
116
- $this->response->status = $response['status'];
117
- if ($response['status'] == 0) {
118
- $this->response->error[] = (isset($response['error']) ? $response['error'] : '');
119
- return $this->response;
120
- }
121
- }
122
-
123
- // Captcha solve conditiona and action
124
- if (isset($form_data['mf-captcha-challenge'])) {
125
- if (($form_data['mf-captcha-challenge']) == "") {
126
- $this->response->status = 0;
127
- $this->response->error[] = esc_html__('Please solve the recaptcha.', 'metform');
128
- return $this->response;
129
- }
130
-
131
- session_start();
132
-
133
- $time = $_SERVER['REQUEST_TIME'];
134
-
135
- $timeout_duration = 1800;
136
-
137
- if (
138
- isset($_SESSION['LAST_ACTIVITY']) && ($time - $_SESSION['LAST_ACTIVITY']) > $timeout_duration
139
- ) {
140
- session_unset();
141
- session_destroy();
142
- session_start();
143
- }
144
-
145
- $_SESSION['LAST_ACTIVITY'] = $time;
146
-
147
- if (!isset($_SESSION['mf_captcha_text'])) {
148
- $this->response->status = 0;
149
- $this->response->error[] = esc_html__('Time out of this captcha. Please reload or choose another one.', 'metform');
150
- return $this->response;
151
- }
152
-
153
- if (isset($form_data['mf-captcha-challenge']) && isset($_SESSION['mf_captcha_text']) && ($form_data['mf-captcha-challenge'] == $_SESSION['mf_captcha_text'])) {
154
- $this->response->status = 1;
155
- //$this->response->data['captcha'] = esc_html__('Captcha is verified.', 'metform');
156
- } else {
157
- $this->response->status = 0;
158
- $this->response->error[] = esc_html__('Enter correct captcha.', 'metform');
159
- return $this->response;
160
- }
161
- }
162
-
163
- // user login check and action
164
- $required_loggin = isset($this->form_settings['require_login']) ? ((int) ($this->form_settings['require_login'])) : 0;
165
-
166
- if (($required_loggin == 1) && (!is_user_logged_in())) {
167
- $this->response->status = 0;
168
- $this->response->error[] = esc_html__('You must be logged in to submit form.', 'metform');
169
- return $this->response;
170
- }
171
-
172
- // Total entry limit check and prevent
173
- if (isset($this->form_settings['limit_total_entries_status'])) {
174
- $entry_limit = ((int) ($this->form_settings['limit_total_entries_status']));
175
-
176
- if (($entry_limit == 1) && ($this->get_entry_count() >= $this->form_settings['limit_total_entries'])) {
177
- $this->response->status = 0;
178
- $this->response->error[] = esc_html__('Form submission limit execed.', 'metform');
179
-
180
- return $this->response;
181
- }
182
- }
183
-
184
- // signature input upload as image from base64
185
- if (class_exists('\MetForm_Pro\Base\Package') && isset($form_data['mf-signature'])) {
186
-
187
- $signature_input = $this->get_input_name_by_widget_type('mf-signature');
188
- $this->response->data['signature_name'] = $signature_input;
189
- $this->response->data['signature_input_data'] = $form_data['mf-signature'];
190
-
191
- if ($signature_input != null) {
192
- $inputs = (is_array($signature_input) ? $signature_input : []);
193
- foreach ($inputs as $input) {
194
- $b64string = isset($form_data[$input]) ? $form_data[$input] : '';
195
- $status = $this->covert_base64_to_png($input, $b64string);
196
- $form_data[$input] = (isset($status['url']) ? $status['url'] : '');
197
- }
198
- }
199
- //$this->response->data['signature_input'] = $signature_input;
200
- }
201
-
202
- // Hubspot CRM integration
203
-
204
- if (class_exists('\MetForm_Pro\Core\Integrations\Crm\Hubspot\Hubspot')) {
205
-
206
- $hubspot = new \MetForm_Pro\Core\Integrations\Crm\Hubspot\Hubspot();
207
-
208
- if (isset($this->form_settings['mf_hubspot']) && $this->form_settings['mf_hubspot'] == '1') {
209
-
210
- $hubspot->create_contact($form_data, ['email_name' => $this->email_name]);
211
-
212
- }
213
-
214
- if (isset($this->form_settings['mf_hubspot_forms']) && $this->form_settings['mf_hubspot_forms'] == '1') {
215
-
216
- $hubspot->submit_data($form_id, $form_data, $this->form_settings);
217
-
218
- }
219
-
220
- }
221
-
222
- /**
223
- * ============================
224
- * Zoho Integrations
225
- * ============================
226
- */
227
-
228
- if (class_exists('\MetForm_Pro\Core\Integrations\Crm\Zoho\Zoho')) {
229
-
230
- // Check if settings exists or enabled
231
-
232
- if (isset($this->form_settings['mf_zoho']) && $this->form_settings['mf_zoho'] == '1') {
233
-
234
- $zoho = new \MetForm_Pro\Core\Integrations\Crm\Zoho\Zoho();
235
- $zoho->create_contact($form_data, ['email_name' => $this->email_name]);
236
-
237
- }
238
-
239
- }
240
-
241
- /**
242
- * ================================
243
- * Auth / Registrations
244
- * ================================
245
- */
246
-
247
- if (class_exists('\MetForm_Pro\Core\Integrations\Auth\Register\Register')) {
248
-
249
- if (isset($this->form_settings['mf_registration']) && $this->form_settings['mf_registration'] == '1') {
250
-
251
- $register = new \MetForm_Pro\Core\Integrations\Auth\Register\Register();
252
- $register->action($form_id, $form_data);
253
-
254
- }
255
-
256
- }
257
-
258
- /**
259
- * ==============================
260
- * Mailster action
261
- * ==============================
262
- */
263
-
264
- if(class_exists('\MetForm_Pro\Core\Integrations\Email\Mailster\Mailster')){
265
-
266
- if(isset($this->form_settings['mf_mailster']) && $this->form_settings['mf_mailster'] == '1'){
267
- $mailster = new \MetForm_Pro\Core\Integrations\Email\Mailster\Mailster();
268
- $mailster->action($form_id,$form_data, $this->form_settings);
269
- }
270
-
271
- }
272
-
273
- /**
274
- * ========================
275
- * Auth / Login
276
- * ========================
277
- */
278
-
279
- if (class_exists('\MetForm_Pro\Core\Integrations\Auth\Login\Login')) {
280
-
281
- if (isset($this->form_settings['mf_login']) && $this->form_settings['mf_login'] == '1') {
282
-
283
- $login = new \MetForm_Pro\Core\Integrations\Auth\Login\Login();
284
- $login->action($form_id, $form_data);
285
-
286
- }
287
-
288
- }
289
-
290
- // mailchimp email store action
291
- if (class_exists('\MetForm\Core\Integrations\Mail_Chimp')) {
292
- if (isset($this->form_settings['mf_mail_chimp']) && $this->form_settings['mf_mail_chimp'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
293
-
294
- $mail_chimp = new \MetForm\Core\Integrations\Mail_Chimp();
295
-
296
- if (array_key_exists("mf-listing-optin", $this->fields) && isset($form_data['mf-listing-optin'])) {
297
- $response = $mail_chimp->call_api($form_data, ['auth' => $this->form_settings, 'email_name' => $this->email_name]);
298
- } elseif (!array_key_exists('mf-listing-optin', $this->fields)) {
299
- $response = $mail_chimp->call_api($form_data, ['auth' => $this->form_settings, 'email_name' => $this->email_name]);
300
- }
301
-
302
- $this->response->status = isset($response['status']) ? $response['status'] : 0;
303
- }
304
- }
305
-
306
- // ActiveCampaign email store action
307
-
308
- if (class_exists('MetForm_Pro\Core\Integrations\Email\Activecampaign\Active_Campaign')) {
309
- if (isset($this->form_settings['mf_active_campaign']) && $this->form_settings['mf_active_campaign'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
310
-
311
- $active_campaign = new \MetForm_Pro\Core\Integrations\Email\Activecampaign\Active_Campaign();
312
-
313
- $response = $active_campaign->call_api($form_data, ['auth' => $this->form_settings, 'email_name' => $this->email_name]);
314
-
315
- $this->response->status = isset($response['status']) ? $response['status'] : 0;
316
- }
317
- }
318
-
319
- // GetResponse email store action
320
-
321
- if (class_exists('\MetForm_Pro\Core\Integrations\Email\Getresponse\Get_Response')) {
322
-
323
- if (isset($this->form_settings['mf_get_response']) && $this->form_settings['mf_get_response'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
324
-
325
- $get_response = new \MetForm\Core\Integrations\Get_Response();
326
-
327
- $response = $get_response->call_api($form_data, ['auth' => $this->form_settings, 'email_name' => $this->email_name]);
328
-
329
- $this->response->status = isset($response['status']) ? $response['status'] : 0;
330
- }
331
- }
332
-
333
- // data submit to zapier action and check
334
- if (class_exists('\MetForm_Pro\Core\Integrations\Zapier')) {
335
- if (isset($this->form_settings['mf_zapier']) && $this->form_settings['mf_zapier'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
336
-
337
- $url = $this->form_settings['mf_zapier_webhook'];
338
-
339
- if (array_key_exists('mf-listing-optin', $this->fields) && isset($form_data['mf-listing-optin'])) {
340
-
341
- $zapier = new \MetForm_Pro\Core\Integrations\Zapier();
342
- $response = $zapier->call_webhook($form_data, ['url' => $url, 'email_name' => $this->email_name]);
343
- } elseif (!array_key_exists('mf-listing-optin', $this->fields)) {
344
-
345
- $zapier = new \MetForm_Pro\Core\Integrations\Zapier();
346
- $response = $zapier->call_webhook($form_data, ['url' => $url, 'email_name' => $this->email_name]);
347
- }
348
-
349
- $this->response->status = isset($response['status']) ? $response['status'] : 0;
350
- }
351
- }
352
-
353
- // data submit to slack check and action
354
- if (class_exists('\MetForm\Core\Integrations\Slack')) {
355
- if (isset($this->form_settings['mf_slack']) && $this->form_settings['mf_slack'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
356
-
357
- $url = $this->form_settings['mf_slack_webhook'];
358
-
359
- //$this->response->data['slack_hook'] = $url;
360
-
361
- if (array_key_exists('mf-listing-optin', $this->fields) && isset($form_data['mf-listing-optin'])) {
362
-
363
- $slack = new \MetForm\Core\Integrations\Slack();
364
- $response = $slack->call_webhook($form_data, ['url' => $url, 'email_name' => $this->email_name]);
365
- } elseif (!array_key_exists('mf-listing-optin', $this->fields)) {
366
-
367
- $slack = new \MetForm\Core\Integrations\Slack();
368
- $response = $slack->call_webhook($form_data, ['url' => $url, 'email_name' => $this->email_name]);
369
- }
370
-
371
- $this->response->status = isset($response['status']) ? $response['status'] : 0;
372
- }
373
- }
374
-
375
- /**
376
- * Checking if convertKit is exists
377
- * If exists calling the api
378
- */
379
- if (class_exists('\MetForm_Pro\Core\Integrations\Convert_Kit')) {
380
- if (isset($this->form_settings['mf_convert_kit']) && $this->form_settings['mf_convert_kit'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
381
-
382
- $cKit = new \MetForm_Pro\Core\Integrations\Convert_Kit(false);
383
-
384
- $response = $cKit->call_api($form_data, ['mail_settings' => $this->form_settings, 'email_name' => $this->email_name]);
385
-
386
- $this->response->status = isset($response['status']) ? $response['status'] : 0;
387
- }
388
- }
389
-
390
- /*
391
- * Aweber integration
392
- *
393
- */
394
- if (class_exists('\MetForm_Pro\Core\Integrations\Aweber')) {
395
- if (isset($this->form_settings['mf_mail_aweber']) && $this->form_settings['mf_mail_aweber'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
396
-
397
- $aweber = new \MetForm_Pro\Core\Integrations\Aweber(false);
398
-
399
- $response = $aweber->call_api($form_data, ['mail_settings' => $this->form_settings, 'email_name' => $this->email_name]);
400
-
401
- $this->response->status = isset($response['status']) ? $response['status'] : 0;
402
- }
403
- }
404
-
405
-
406
-
407
- if (defined('MAILPOET_VERSION') && class_exists('\MetForm_Pro\Core\Integrations\Mail_Poet')) {
408
- if (isset($this->form_settings['mf_mail_poet']) && $this->form_settings['mf_mail_poet'] == '1' && $this->email_name != null && $form_data[$this->email_name] != '') {
409
-
410
- $mPoet = new \MetForm_Pro\Core\Integrations\Mail_Poet(false);
411
-
412
- $response = $mPoet->call_api($form_data, ['mail_settings' => $this->form_settings, 'email_name' => $this->email_name]);
413
-
414
- $this->response->status = isset($response['status']) ? $response['status'] : 0;
415
- }
416
- }
417
-
418
- // file upload check and action
419
- $file_input_names = $this->get_input_name_by_widget_type('mf-file-upload');
420
-
421
- if ((!empty($file_data)) && ($file_input_names != null)) {
422
- $this->upload_file($file_data, $file_input_names);
423
- }
424
-
425
- // sanitize form submitted data
426
- $this->sanitize($form_data);
427
-
428
- //set submitted data array and key to a class
429
- $all_data = !empty($this->form_data) && is_array($this->form_data) ? $this->form_data : [];
430
-
431
- if (isset($this->form_settings['store_entries']) && $this->form_settings['store_entries'] == 1) {
432
-
433
- $defaults = [
434
- 'post_title' => '',
435
- 'post_status' => 'draft',
436
- 'post_content' => '',
437
- 'post_type' => $this->post_type,
438
- ];
439
-
440
- $this->entry_id = wp_insert_post($defaults);
441
-
442
- update_post_meta($this->entry_id, 'mf_page_id', $page_id);
443
-
444
- $all_data = array_merge($all_data, ['mf_id' => $this->entry_id, 'mf_form_name' => $this->title]);
445
- }
446
-
447
- Metform_Shortcode::instance()->set_values($all_data);
448
-
449
- // Store data in database
450
- $this->store($form_id, $this->form_data);
451
-
452
- // data submit to a rest api check and action
453
- if (class_exists('\MetForm_Pro\Core\Integrations\Rest_Api') && isset($this->form_settings['mf_rest_api']) && ($this->form_settings['mf_rest_api_url'] != '')) {
454
- $url = $this->form_settings['mf_rest_api_url'];
455
- $method = $this->form_settings['mf_rest_api_method'];
456
- $rest_api = new \MetForm_Pro\Core\Integrations\Rest_Api();
457
- $response = $rest_api->call_api(
458
- [
459
- 'entries' => json_encode($this->form_data),
460
- 'entry_id' => (($this->entry_id != null) ? $this->entry_id : ''),
461
- 'form_id' => $form_data['id'],
462
- 'version' => \MetForm\Plugin::instance()->version(),
463
- ],
464
- [
465
- 'url' => $url,
466
- 'method' => $method,
467
- ]
468
- );
469
- $this->response->status = isset($response['status']) ? $response['status'] : 0;
470
- }
471
-
472
- // send confirmation email to user
473
- if (isset($this->form_settings['enable_user_notification']) && $this->form_settings['enable_user_notification'] == 1) {
474
-
475
- $this->send_user_email($this->form_data, $this->file_upload_info);
476
- }
477
-
478
- // send notification email to admins
479
- if (isset($this->form_settings['enable_admin_notification']) && $this->form_settings['enable_admin_notification'] == 1) {
480
-
481
- $this->send_admin_email($this->form_data, $this->file_upload_info);
482
- }
483
-
484
- $this->response->data['message'] = isset($this->form_settings['success_message']) ? $this->form_settings['success_message'] : '';
485
-
486
- $paymet_method = $this->get_input_name_by_widget_type('mf-payment-method');
487
-
488
- if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Paypal') && isset($this->form_settings['mf_paypal']) && isset($this->form_settings['mf_paypal_email']) && ($this->form_settings['mf_paypal_email'] != '') && ($paymet_method[0] != null)) {
489
- if (isset($this->form_data[$paymet_method[0]]) && $this->form_data[$paymet_method[0]] == 'paypal') {
490
- update_post_meta($this->entry_id, $this->key_payment_status, 'unpaid');
491
- $rest_url = get_rest_url(null, 'metform/v1/entries/');
492
- $this->response->data['redirect_to'] = $rest_url . "paypal/pay?entry_id=" . $this->entry_id;
493
- $this->response->data['message'] = $this->form_settings['success_message'] . esc_html__(' Please wait... Redirecting to paypal.', 'metform');
494
- }
495
- }
496
-
497
- if(!isset($paymet_method[0])){
498
- $paymet_method[0] = null;
499
- }
500
-
501
- if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Stripe') && ($paymet_method[0] != null)) {
502
- if (isset($this->form_data[$paymet_method[0]]) && $this->form_data[$paymet_method[0]] == 'stripe') {
503
- update_post_meta($this->entry_id, $this->key_payment_status, 'unpaid');
504
-
505
- $payment_widget_name = \MetForm\Core\Entries\Action::instance()->get_input_name_by_widget_type('mf-payment-method', $this->fields);
506
- $widget = is_array($payment_widget_name) ? current($payment_widget_name) : '';
507
-
508
- $amount_filed = isset($this->fields[$widget]->mf_input_payment_field_name) ? $this->fields[$widget]->mf_input_payment_field_name : '';
509
- $amount = isset($this->form_data[$amount_filed]) ? $this->form_data[$amount_filed] : 0;
510
-
511
- //$this->response->data['payment_method'] = $this->form_data[$paymet_method[0]];
512
-
513
- $icon_url = !empty($this->form_settings['mf_stripe_image_url']) ? $this->form_settings['mf_stripe_image_url'] : 'https://stripe.com/img/documentation/checkout/marketplace.png';
514
-
515
- // set key for check payment
516
- $livekey = isset($this->form_settings['mf_stripe_live_publishiable_key']) ? $this->form_settings['mf_stripe_live_publishiable_key'] : '';
517
- $livekey_test = isset($this->form_settings['mf_stripe_test_publishiable_key']) ? $this->form_settings['mf_stripe_test_publishiable_key'] : '';
518
- $sandbox = isset($this->form_settings['mf_stripe_sandbox']) ? true : false;
519
-
520
- $live_keys = ($sandbox) ? $livekey_test : $livekey;
521
-
522
- $payment['name_post'] = $this->form_settings['form_title'];
523
- $payment['description'] = $this->form_id;
524
- $payment['amount'] = $amount;
525
- $payment['currency_code'] = 'USD';
526
- $payment['keys'] = $live_keys;
527
- $payment['image_url'] = $icon_url;
528
- $payment['entry_id'] = $this->entry_id;
529
- $payment['form_id'] = $this->form_id;
530
- $payment['sandbox'] = $sandbox;
531
-
532
- $this->response->data['payment_data'] = (object) $payment;
533
- $rest_url = get_rest_url(null, 'metform/v1/entries/');
534
- $this->response->data['ajax_stripe'] = $rest_url . "stripe/pay?entry_id=" . $this->entry_id;
535
- $this->response->data['message'] = $this->form_settings['success_message'] . esc_html__(' Please wait... Open a Stripe Popup Box.', 'metform');
536
- }
537
- }
538
-
539
- /**
540
- * Woocommerce
541
- */
542
-
543
- if(class_exists('WooCommerce')){
544
- if(class_exists('\MetForm_Pro\Core\Integrations\Ecommerce\Woocommerce\Pay')){
545
-
546
- $woo_pay = new \MetForm_Pro\Core\Integrations\Ecommerce\Woocommerce\Pay();
547
- $woo_pay->action($form_data, $this->entry_id);
548
- }
549
- }
550
-
551
- /**
552
- * Post submission
553
- */
554
-
555
- if(class_exists('\MetForm_Pro\Core\Integrations\Post\Form_To_Post\Post')){
556
- if(isset($this->form_settings['mf_form_to_post']) && $this->form_settings['mf_form_to_post'] == 1){
557
- $post_submission = new \MetForm_Pro\Core\Integrations\Post\Form_To_Post\Post();
558
- $post_submission->create_post(
559
- $form_data ,
560
- $this->form_settings ,
561
- $this->form_id,
562
- $this->entry_id ,
563
- $this->file_upload_info
564
- );
565
- }
566
- }
567
- return $this->response;
568
- }
569
-
570
- public function validate_form_data($form_data)
571
- {
572
-
573
- $field_count = 0;
574
- $errors = 0;
575
-
576
- foreach ($form_data as $key => $value) {
577
- if (!is_array($value)) {
578
- $field_count++;
579
- $min = ((isset($this->fields[$key]->mf_input_min_length) && $this->fields[$key]->mf_input_min_length != '') ? $this->fields[$key]->mf_input_min_length : '');
580
- $max = ((isset($this->fields[$key]->mf_input_max_length) && $this->fields[$key]->mf_input_max_length != '') ? $this->fields[$key]->mf_input_max_length : '');
581
- $validation_type = ((isset($this->fields[$key]->mf_input_validation_type) && $this->fields[$key]->mf_input_validation_type != '') ? $this->fields[$key]->mf_input_validation_type : 'none');
582
- $expression = ((isset($this->fields[$key]->mf_input_validation_expression) && $this->fields[$key]->mf_input_validation_expression != '') ? $this->fields[$key]->mf_input_validation_expression : '');
583
- $type = str_replace(['by_', '_length'], '', $validation_type);
584
- $str_length = '';
585
-
586
- if($validation_type == 'by_word_length'){
587
- $str_length = str_word_count($value);
588
- } else if($validation_type == 'by_character_length'){
589
- $str_length = strlen($value);
590
- if($this->fields[$key]->widgetType === 'mf-number'){
591
- $str_length = $value;
592
- }
593
- }
594
-
595
- if ((!in_array($validation_type, ['none', 'by_expresssion_based'])) && ($min != '') && ($min > $str_length)) {
596
- $errors++;
597
- $this->response->status = 0;
598
- $this->response->error[] = esc_html((($this->fields[$key]->mf_input_label != '') ? $this->fields[$key]->mf_input_label : $key) . " minimum input " . $min . " " . $type);
599
- }
600
- if ((!in_array($validation_type, ['none', 'by_expresssion_based'])) && ($max != '') && ($max < $str_length)) {
601
- $errors++;
602
- $this->response->status = 0;
603
- $this->response->error[] = esc_html((($this->fields[$key]->mf_input_label != '') ? $this->fields[$key]->mf_input_label : $key) . " maximum input " . $max . " " . $type);
604
- }
605
- if (($validation_type == 'by_expresssion_based') && ($expression != '') && (!preg_match("/" . $expression . "/", $value))) {
606
- $errors++;
607
- $this->response->status = 0;
608
- $this->response->error[] = esc_html((($this->fields[$key]->mf_input_label != '') ? $this->fields[$key]->mf_input_label : $key) . " input criteria is not matched.");
609
- }
610
- }
611
- }
612
-
613
- return (($errors > 0) ? false : true);
614
- }
615
-
616
- public function store($form_id, $form_data)
617
- {
618
- $this->form_id = $form_id;
619
- //$this->sanitize($form_data);
620
-
621
- if (isset($this->form_settings['store_entries']) && $this->form_settings['store_entries'] == 1) {
622
- $this->insert();
623
- }
624
- }
625
-
626
- private function insert()
627
- {
628
-
629
- $form_settings = $this->form_settings;
630
- $form_id = $this->form_id;
631
-
632
- $this->form_settings['entry_title'] = (isset($this->form_settings['entry_title']) ? $this->form_settings['entry_title'] : 'Entry # [mf_id]');
633
-
634
- $update = array(
635
- 'ID' => $this->entry_id,
636
- 'post_title' => Metform_Shortcode::instance()->get_process_shortcode($this->form_settings['entry_title']),
637
- 'post_status' => 'publish',
638
- 'post_content' => '',
639
- );
640
-
641
- wp_update_post($update);
642
-
643
- $this->response->data['form_id'] = $form_id;
644
- $this->response->data['entry_id'] = $this->entry_id;
645
-
646
- $entry_count = $this->get_entry_count();
647
- $entry_count++;
648
-
649
- update_post_meta($form_id, $this->key_form_total_entries, $entry_count);
650
- update_post_meta($this->entry_id, $this->key_form_id, $form_id);
651
- update_post_meta($this->entry_id, $this->key_form_data, $this->form_data);
652
-
653
- update_post_meta($this->entry_id, $this->key_form_file, $this->file_upload_info);
654
-
655
- if (isset($form_settings['capture_user_browser_data']) && $form_settings['capture_user_browser_data'] == '1') {
656
- update_post_meta($this->entry_id, $this->key_browser_data, $this->get_browser_data());
657
- $this->response->status = 1;
658
- }
659
-
660
- $this->response->status = 1;
661
- $this->response->data['store'] = $this->form_data;
662
- }
663
-
664
- private function update()
665
- {
666
-
667
- update_post_meta($this->entry_id, $this->key_form_id, $this->form_id);
668
- update_post_meta($this->entry_id, $this->key_form_data, $this->form_data);
669
-
670
- $this->response->status = 1;
671
- }
672
-
673
- public function send_user_email($form_data, $file_info)
674
- {
675
-
676
- $user_mail = (isset($form_data[$this->email_name]) ? $form_data[$this->email_name] : null);
677
- $subject = isset($this->form_settings['user_email_subject']) ? $this->form_settings['user_email_subject'] : get_bloginfo('name');
678
- $from = isset($this->form_settings['user_email_from']) ? $this->form_settings['user_email_from'] : null;
679
- $reply_to = isset($this->form_settings['user_email_reply_to']) ? $this->form_settings['user_email_reply_to'] : null;
680
- $body = nl2br(isset($this->form_settings['user_email_body']) ? $this->form_settings['user_email_body'] : null);
681
- $user_email_attached_submision_copy = isset($this->form_settings['user_email_attach_submission_copy']) ? $this->form_settings['user_email_attach_submission_copy'] : null;
682
-
683
- //replace data from shortcode
684
- $body = Metform_Shortcode::instance()->get_process_shortcode($body);
685
- $reply_to = Metform_Shortcode::instance()->get_process_shortcode($reply_to);
686
- $subject = Metform_Shortcode::instance()->get_process_shortcode($subject);
687
-
688
- $body = "<html><body><h2 style='text-align: center;'>" . get_the_title($this->form_id) . "</h2><h4 style='text-align: center;'>" . $body . "</h4>";
689
- $form_html = \MetForm\Core\Entries\Form_Data::format_data_for_mail($this->form_id, $form_data, $file_info);
690
- $body .= $form_html . "</body></html>";
691
-
692
- $headers = 'MIME-Version: 1.0' . "\r\n";
693
- $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
694
-
695
- $headers .= 'From: ' . $from . "\r\n" .
696
- 'Reply-To: ' . $reply_to . "\r\n" .
697
- 'X-Mailer: PHP/' . phpversion();
698
-
699
- if (!$user_mail) {
700
- $this->response->status = 0;
701
- $this->response->error[] = esc_html__('Mail not found.', 'metform');
702
- } else {
703
- $status = wp_mail($user_mail, $subject, $body, $headers);
704
- $this->response->status = ($status) ? 1 : 0;
705
- }
706
- }
707
-
708
- public function send_admin_email($form_data, $file_info)
709
- {
710
-
711
- $subject = isset($this->form_settings['admin_email_subject']) ? $this->form_settings['admin_email_subject'] : null;
712
- $from = isset($this->form_settings['admin_email_from']) ? $this->form_settings['admin_email_from'] : null;
713
- $reply_to = isset($this->form_settings['admin_email_reply_to']) ? $this->form_settings['admin_email_reply_to'] : null;
714
- $body = nl2br(isset($this->form_settings['admin_email_body']) ? $this->form_settings['admin_email_body'] : null);
715
- $admin_email_attached_submision_copy = isset($this->form_settings['admin_email_attach_submission_copy']) ? $this->form_settings['admin_email_attach_submission_copy'] : null;
716
-
717
- //replace data from shortcode
718
- $body = Metform_Shortcode::instance()->get_process_shortcode($body);
719
- $from = Metform_Shortcode::instance()->get_process_shortcode($from);
720
- $reply_to = Metform_Shortcode::instance()->get_process_shortcode($reply_to);
721
- $subject = Metform_Shortcode::instance()->get_process_shortcode($subject);
722
-
723
- $body = "<html><body><h2 style='text-align: center;'>" . get_the_title($this->form_id) . "</h2><h4 style='text-align: center;'>" . $body . "</h4>";
724
- $form_html = \MetForm\Core\Entries\Form_Data::format_data_for_mail($this->form_id, $form_data, $file_info);
725
- $body .= $form_html;
726
- if (isset($this->form_settings['store_entries']) && $this->form_settings['store_entries'] == 1) {
727
- $edit_link = get_edit_post_link($this->entry_id);
728
- $body .= '<a href="' . $edit_link . '">' . $edit_link . '</a>';
729
- }
730
- $body .= "</body></html>";
731
-
732
- $headers = 'MIME-Version: 1.0' . "\r\n";
733
- $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
734
-
735
- $headers .= 'From: ' . $from . "\r\n" .
736
- 'Reply-To: ' . $reply_to . "\r\n" .
737
- 'X-Mailer: PHP/' . phpversion();
738
-
739
- $mail = isset($this->form_settings['admin_email_to']) ? $this->form_settings['admin_email_to'] : null;
740
-
741
- if (!$mail) {
742
- $this->response->status = 0;
743
- $this->response->error[] = esc_html__('Admin mail not found to send email.', 'metform');
744
- } else {
745
- $admin_email = preg_replace('/\s+/', '', $mail);
746
- $admin_emails = explode(",", $admin_email);
747
- foreach ($admin_emails as $email) {
748
- $status = wp_mail($email, $subject, $body, $headers);
749
- }
750
-
751
- $this->response->status = ($status) ? 1 : 0;
752
- }
753
- }
754
-
755
- public function get_fields($form_id = null)
756
- {
757
- if ($form_id != null) {
758
- $this->form_id = $form_id;
759
- }
760
-
761
- $input_widgets = \Metform\Widgets\Manifest::instance()->get_input_widgets();
762
-
763
- $widget_input_data = get_post_meta($this->form_id, '_elementor_data', true);
764
- $widget_input_data = json_decode($widget_input_data);
765
-
766
- return Map_El::data($widget_input_data, $input_widgets)->get_el();
767
- }
768
-
769
- public function sanitize($form_data, $fields = null)
770
- {
771
- if ($fields == null) {
772
- $fields = $this->fields;
773
- }
774
-
775
- foreach ($form_data as $key => $value) {
776
-
777
- if (isset($fields[$key])) {
778
- $this->form_data[$key] = $value;
779
- }
780
- }
781
-
782
- $repeaters = $this->get_input_name_by_widget_type('mf-simple-repeater');
783
-
784
- $repeaters = (is_array($repeaters) ? $repeaters : []);
785
-
786
- foreach ($repeaters as $repeater) {
787
- $repeater_process_data = $this->process_repeater_data($this->form_data[$repeater]);
788
- $this->form_data[$repeater] = $repeater_process_data;
789
- }
790
- }
791
-
792
- public function upload_file($file_data, $file_input_names)
793
- {
794
-
795
- foreach ($file_input_names as $i => $input_name) {
796
- // initial upload status, status use as array for multiple file
797
- $upload[$input_name]['status'] = false;
798
- // empty file upload check by file name
799
- if ($file_data[$input_name]['name'] != '') {
800
- $file_data[$input_name]['name'] = time() . "-" . $file_data[$input_name]['name'];
801
- $upload[$input_name] = wp_upload_bits($file_data[$input_name]['name'], null, file_get_contents($file_data[$input_name]['tmp_name']), time());
802
- // status updated as true if file uploaded
803
- $upload[$input_name]['status'] = true;
804
- } else {
805
- // status updated as false for showing file not uploaded
806
- $upload[$input_name]['status'] = false;
807
- }
808
- if (isset($upload['error']) && $upload['error'] != 0) {
809
- $this->response->status = 0;
810
- $this->response->error[] = esc_html__('There was an error uploading your file. The error is: ', 'metform') . $upload['error'];
811
- } else {
812
- $this->file_upload_info = $upload;
813
- $this->response->status = 1;
814
- }
815
- }
816
- }
817
-
818
- /**
819
- * Converting an png image string to png image file.
820
- *
821
- * @param $input
822
- * @param $b64string
823
- *
824
- * @return array
825
- */
826
- public function covert_base64_to_png($input, $b64string)
827
- {
828
- $status = [];
829
-
830
- $upload_dir = wp_upload_dir();
831
- $upload_path = $upload_dir['path'];
832
- $upload_url = $upload_dir['url'];
833
-
834
- $bin = str_replace('data:image/png;base64,', '', $b64string, $ct);
835
-
836
- $decoded = base64_decode($bin);
837
-
838
- $img_name = '/' . $input . time() . '.png';
839
-
840
- $img_file = $upload_path . $img_name;
841
- $img_url = $upload_url . $img_name;
842
-
843
- $img = file_put_contents($img_file, $decoded);
844
-
845
- if ($img) {
846
- $status['status'] = true;
847
- $status['url'] = $img_url;
848
- } else {
849
- $status['status'] = false;
850
- }
851
-
852
- return $status;
853
- }
854
-
855
- public function get_entry_count($form_id = null)
856
- {
857
-
858
- if ($form_id != null) {
859
- $this->form_id = $form_id;
860
- }
861
- global $wpdb;
862
- $entry_count = $wpdb->get_results(" SELECT COUNT( `post_id` ) as `count` FROM `" . $wpdb->prefix . "postmeta` WHERE `meta_key` LIKE 'metform_entries__form_id' AND `meta_value` = $this->form_id ", OBJECT);
863
-
864
- $entry_count = $entry_count[0]->count;
865
-
866
- $this->entry_count = $entry_count;
867
-
868
- return $entry_count;
869
- }
870
-
871
- public function get_browser_data()
872
- {
873
-
874
- if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
875
- $ip = sanitize_text_field($_SERVER['HTTP_CLIENT_IP']);
876
- } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
877
- $ip = sanitize_text_field($_SERVER['HTTP_X_FORWARDED_FOR']);
878
- } else {
879
- $ip = sanitize_text_field($_SERVER['REMOTE_ADDR']);
880
- }
881
-
882
- $user_agent = sanitize_text_field($_SERVER['HTTP_USER_AGENT']);
883
-
884
- return [
885
- 'IP' => $ip,
886
- 'User_Agent' => $user_agent,
887
- ];
888
- }
889
-
890
- public function get_input_name_by_widget_type($widget_type, $fields = null)
891
- {
892
- global $w;
893
- if ($fields != null) {
894
- $this->fields = $fields;
895
- }
896
- $response = [];
897
-
898
- $w = $widget_type;
899
- $files = array_values(array_filter($this->fields, function ($v) {
900
- global $w;
901
- if ($v->widgetType == $w) {
902
- return $v;
903
- }
904
- }));
905
- foreach ($files as $file) {
906
- $response[] = $file->mf_input_name;
907
- }
908
-
909
- if (!empty($response)) {
910
- return $response;
911
- } else {
912
- return null;
913
- }
914
- }
915
-
916
- public function process_repeater_data($repeater_data)
917
- {
918
- $data = [];
919
- if (is_array($repeater_data)) {
920
- foreach ($repeater_data as $index => $value) {
921
- if (is_array($value)) {
922
- foreach ($value as $input_name => $input_value) {
923
- $proc_key = $input_name . "-" . ($index + 1);
924
- if (is_array($input_value)) {
925
- $data[$proc_key] = implode(', ', $input_value);
926
- } else {
927
- $data[$proc_key] = $input_value;
928
- }
929
- }
930
- }
931
- }
932
- }
933
-
934
- return $data;
935
- }
936
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/api.php DELETED
@@ -1,138 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Entries;
4
-
5
- use MetForm\Core\Integrations\Get_Response;
6
- use MetForm\Core\Integrations\Mail_Chimp;
7
-
8
- defined('ABSPATH') || exit;
9
-
10
- class Api extends \MetForm\Base\Api
11
- {
12
-
13
- public function config()
14
- {
15
- $this->prefix = 'entries';
16
- $this->param = "/(?P<id>\w+)";
17
- }
18
-
19
- public function post_insert()
20
- {
21
- /**
22
- * Get page id
23
- */
24
-
25
- $url = wp_get_referer();
26
- $post_id = url_to_postid($url);
27
- $post_id;
28
-
29
- $id = $this->request['id'];
30
-
31
- $form_data = $this->request->get_params();
32
-
33
- $file_data = $this->request->get_file_params();
34
-
35
- return Action::instance()->submit($id, $form_data, $file_data,$post_id);
36
- }
37
-
38
- public function get_export()
39
- {
40
-
41
- $id = $this->request['id'];
42
-
43
- return Export::instance()->export_data($id);
44
- }
45
-
46
- public function get_get_response_list_id()
47
- {
48
- $post_id = $this->request['id'];
49
- return get_option('wpmet_get_response_list_' . $post_id);
50
- }
51
-
52
- public function get_paypal()
53
- {
54
-
55
- $args = [
56
- 'method' => (isset($this->request['action']) ? $this->request['action'] : ''),
57
- 'action' => (isset($this->request['id']) ? $this->request['id'] : ''),
58
- 'entry_id' => (isset($this->request['entry_id']) ? $this->request['entry_id'] : ''),
59
- ];
60
-
61
- if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Paypal')) {
62
- return \MetForm_Pro\Core\Integrations\Payment\Paypal::instance()->init($args, $this->request);
63
- }
64
- return 'Pro needed';
65
- }
66
-
67
- public function get_stripe()
68
- {
69
- $args = [
70
- 'method' => (isset($this->request['action']) ? $this->request['action'] : ''),
71
- 'action' => (isset($this->request['id']) ? $this->request['id'] : ''),
72
- 'entry_id' => (isset($this->request['entry_id']) ? $this->request['entry_id'] : ''),
73
- 'token' => (isset($this->request['token']) ? $this->request['token'] : ''),
74
- ];
75
- if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Stripe')) {
76
- return \MetForm_Pro\Core\Integrations\Payment\Stripe::instance()->init($args);
77
- }
78
- return 'Pro needed';
79
- }
80
-
81
- public function get_views()
82
- {
83
- return $this->request->get_params();
84
- }
85
-
86
- public function get_get_response_list()
87
- {
88
- $post_id = $this->request['id'];
89
- return get_option('wpmet_get_response_list_' . $post_id);
90
- }
91
-
92
- public function get_store_get_response_list()
93
- {
94
-
95
- if (class_exists('\MetForm_Pro\Core\Integrations\Email\Getresponse\Get_Response')) {
96
-
97
- $post_id = $this->request['id'];
98
- $data = \MetForm\Core\Forms\Action::instance()->get_all_data($post_id);
99
- $api_key = isset($data['mf_get_reponse_api_key']) ? $data['mf_get_reponse_api_key'] : null;
100
-
101
- $get_response_list = \MetForm_Pro\Core\Integrations\Email\Getresponse\Get_Response::get_list($api_key);
102
-
103
- delete_option('wpmet_get_response_list_' . $post_id, $get_response_list);
104
- update_option('wpmet_get_response_list_' . $post_id, $get_response_list);
105
-
106
- return get_option('wpmet_get_response_list_' . $post_id);
107
- }
108
-
109
- return 'error';
110
- }
111
-
112
- public function get_get_mailchimp_list()
113
- {
114
- $post_id = $this->request['id'];
115
- return get_option('wpmet_get_mailchimp_list_' . $post_id);
116
- }
117
-
118
- public function get_store_mailchimp_list()
119
- {
120
-
121
- $post_id = $this->request['id'];
122
- $data = \MetForm\Core\Forms\Action::instance()->get_all_data($post_id);
123
- $api_key = $data['mf_mailchimp_api_key'];
124
-
125
- $mailChimp_list = json_decode(Mail_Chimp::get_list($api_key)['body']);
126
-
127
- delete_option('wpmet_get_mailchimp_list_' . $post_id, $mailChimp_list);
128
- update_option('wpmet_get_mailchimp_list_' . $post_id, $mailChimp_list);
129
-
130
- return get_option('wpmet_get_mailchimp_list_' . $post_id, $mailChimp_list);
131
- }
132
-
133
- public function get_test()
134
- {
135
-
136
- }
137
-
138
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/base.php DELETED
@@ -1,23 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Entries;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- Class Base{
6
-
7
- use \MetForm\Traits\Singleton;
8
-
9
- public $cpt;
10
-
11
- public $api;
12
-
13
- public $meta_data;
14
-
15
- public function __construct(){
16
- Hooks::instance();
17
- $this->cpt = new Cpt();
18
- $this->api = new Api();
19
- $this->meta_data = new Meta_Data();
20
-
21
- }
22
-
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/cpt.php DELETED
@@ -1,73 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Entries;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- Class Cpt extends \MetForm\Base\Cpt {
6
-
7
- public function get_name(){
8
- return 'metform-entry';
9
- }
10
-
11
- public function post_type()
12
- {
13
- $labels = array(
14
- 'name' => esc_html_x( 'Entries', 'Post Type General Name', 'metform' ),
15
- 'singular_name' => esc_html_x( 'Entry', 'Post Type Singular Name', 'metform' ),
16
- 'menu_name' => esc_html__( 'Entry', 'metform' ),
17
- 'name_admin_bar' => esc_html__( 'Entry', 'metform' ),
18
- 'archives' => esc_html__( 'Entry Archives', 'metform' ),
19
- 'attributes' => esc_html__( 'Entry Attributes', 'metform' ),
20
- 'parent_item_colon' => esc_html__( 'Parent Item:', 'metform' ),
21
- 'all_items' => esc_html__( 'Entries', 'metform' ),
22
- 'add_new_item' => esc_html__( 'Add New Item', 'metform' ),
23
- 'add_new' => esc_html__( 'Add New', 'metform' ),
24
- 'new_item' => esc_html__( 'New Item', 'metform' ),
25
- 'edit_item' => esc_html__( 'Edit Item', 'metform' ),
26
- 'update_item' => esc_html__( 'Update Item', 'metform' ),
27
- 'view_item' => esc_html__( 'View Item', 'metform' ),
28
- 'view_items' => esc_html__( 'View Items', 'metform' ),
29
- 'search_items' => esc_html__( 'Search Item', 'metform' ),
30
- 'not_found' => esc_html__( 'Not found', 'metform' ),
31
- 'not_found_in_trash' => esc_html__( 'Not found in Trash', 'metform' ),
32
- 'featured_image' => esc_html__( 'Featured Image', 'metform' ),
33
- 'set_featured_image' => esc_html__( 'Set featured image', 'metform' ),
34
- 'remove_featured_image' => esc_html__( 'Remove featured image', 'metform' ),
35
- 'use_featured_image' => esc_html__( 'Use as featured image', 'metform' ),
36
- 'insert_into_item' => esc_html__( 'Insert into item', 'metform' ),
37
- 'uploaded_to_this_item' => esc_html__( 'Uploaded to this item', 'metform' ),
38
- 'items_list' => esc_html__( 'Form entries list', 'metform' ),
39
- 'items_list_navigation' => esc_html__( 'Form entries list navigation', 'metform' ),
40
- 'filter_items_list' => esc_html__( 'Filter from entry list', 'metform' ),
41
- );
42
-
43
- $args = array(
44
- 'label' => esc_html__( 'Form entry', 'metform' ),
45
- 'description' => esc_html__( 'metform-entry', 'metform' ),
46
- 'labels' => $labels,
47
- 'supports' => ['title'],
48
- 'capabilities' => ['create_posts' => 'do_not_allow'],
49
- 'map_meta_cap' => true,
50
- 'hierarchical' => false,
51
- 'public' => false,
52
- 'show_ui' => true,
53
- 'show_in_menu' => "metform-menu",
54
- 'menu_icon' => 'dashicons-format-aside',
55
- 'menu_position' => 5,
56
- 'show_in_admin_bar' => false,
57
- 'show_in_nav_menus' => false,
58
- 'can_export' => true,
59
- 'has_archive' => false,
60
- 'publicly_queryable' => false,
61
- 'rewrite' => false,
62
- 'query_var' => true,
63
- 'exclude_from_search' => true,
64
- 'capability_type' => 'page',
65
- 'show_in_rest' => true,
66
- 'rest_base' => $this->get_name(),
67
- );
68
-
69
- return $args;
70
-
71
- }
72
-
73
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/export.php DELETED
@@ -1,90 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Entries;
4
-
5
- use MetForm\Traits\Singleton;
6
-
7
- defined('ABSPATH') || exit;
8
-
9
- class Export {
10
-
11
- use Singleton;
12
-
13
- public function export_data($form_id) {
14
-
15
- if( !current_user_can( 'manage_options' ) ){
16
- return;
17
- }
18
-
19
- $fields = Action::instance()->get_fields($form_id);
20
- $title = get_the_title( $form_id );
21
-
22
- global $wpdb;
23
-
24
- $entries = $wpdb->get_results( "SELECT `post_id` FROM `".$wpdb->prefix."postmeta` WHERE `meta_key` = 'metform_entries__form_id' AND `meta_value` = $form_id", OBJECT );
25
- $entries = (is_array($entries)) ? $entries : [];
26
- $export = [];
27
- $header = [];
28
-
29
- foreach($entries as $entry){
30
- $entry_modify = [];
31
-
32
- $form_entry = get_post_meta( $entry->post_id, 'metform_entries__form_data', true );
33
- $form_entry = (is_array($form_entry) ? $form_entry : []);
34
- $file_entry = get_post_meta( $entry->post_id, 'metform_entries__file_upload', true );
35
- $file_entry = (is_array($file_entry) ? $file_entry : []);
36
-
37
- $entry_data = array_merge($form_entry, $file_entry);
38
- $entry_data = (is_array($entry_data)) ? $entry_data : [] ;
39
-
40
- $entry_modify ['ID'] = $entry->post_id;
41
- $header['__id'] = 'ID';
42
-
43
- foreach( $fields as $key => $value ) {
44
- $header_key = (($value->mf_input_name != '') ? $value->mf_input_name : $key);
45
- $header[$header_key] = empty($value->mf_input_label) ? $key : $value->mf_input_label;
46
-
47
- if($value->widgetType == 'mf-file-upload'){
48
- $entry_modify[$header_key] = (isset($entry_data[$key]) ? ((isset($entry_data[$key]['url'])) ? $entry_data[$key]['url'] : ' ' ) : ' ' );
49
- }else if($value->widgetType == 'mf-simple-repeater'){
50
- $data_string = '';
51
- if(is_array($entry_data[$key])){
52
- foreach( $entry_data[$key] as $key => $value ){
53
- $data_string .= $key.": ".$value." \n";
54
- }
55
- }
56
- $entry_modify[$header_key] = $data_string;
57
- }else{
58
- $entry_modify[$header_key] = (isset($entry_data[$key]) ? ((is_array($entry_data[$key])) ? implode(', ', $entry_data[$key]) : $entry_data[$key]) : ' ' );
59
- }
60
- }
61
-
62
- $entry_modify ['DATE'] = get_the_date( 'd-m-Y', $entry->post_id );
63
- $export[] = $entry_modify;
64
- $header['__dt'] = 'DATE';
65
- }
66
-
67
- $file_name = $title."-export-".time().".csv";
68
- header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
69
- header('Content-Description: File Transfer');
70
- header("Content-type: text/csv");
71
- header("Content-Disposition: attachment; filename={$file_name}");
72
- header("Expires: 0");
73
- header("Pragma: public");
74
- $file_pointer = @fopen( 'php://output', 'w' );
75
- $csv_header = false;
76
- foreach ( $export as $data ) {
77
- // Add a header row if it hasn't been added yet
78
- if ( !$csv_header ) {
79
- // Use the keys from $data as the titles
80
- fputcsv($file_pointer, $header);
81
- $csv_header = true;
82
- }
83
- // Put the data into the stream
84
- fputcsv($file_pointer, $data);
85
- }
86
- // Close the file
87
- fclose($file_pointer);
88
- exit;
89
- }
90
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/form-data.php DELETED
@@ -1,146 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Entries;
4
-
5
- defined('ABSPATH') || exit;
6
-
7
- class Form_Data
8
- {
9
- public static function format_form_data($form_id, $form_data)
10
- {
11
- $map_data = \MetForm\Core\Entries\Action::instance()->get_fields($form_id);
12
- $map_data = json_decode(json_encode($map_data), true);
13
- ob_start();
14
- ?>
15
- <div class="metform-entry-data container">
16
- <table class='mf-entry-data' cellpadding="5" cellspacing="0">
17
- <tbody>
18
- <?php
19
- foreach ($map_data as $key => $value) {
20
- if (in_array($value['widgetType'], ['mf-simple-captcha', 'mf-recaptcha', 'mf-file-upload'])) {
21
- continue;
22
- }
23
-
24
- echo "<tr class='mf-data-label'>";
25
- echo "<td colspan='2'><strong>" . esc_html(($map_data[$key]['mf_input_label'] != '') ? $map_data[$key]['mf_input_label'] : $key) . "</strong></td>";
26
- echo "</tr>";
27
- echo "<tr class='mf-data-value'>";
28
- echo "<td class='mf-value-space'>&nbsp;</td>";
29
-
30
- if (!in_array($value['widgetType'], ['mf-file-upload', 'mf-textarea', 'mf-simple-repeater', 'mf-signature', 'mf-like-dislike'])) {
31
- echo "<td>" . esc_html((array_key_exists($key, $form_data) ? ((is_array($form_data[$key])) ? implode(', ', $form_data[$key]) : $form_data[$key]) : ' ')) . "</td>";
32
- }
33
-
34
- if ($value['widgetType'] == 'mf-signature') {
35
- echo "<td><img class='signature-img' src='" . (isset($form_data[$key]) ? $form_data[$key] : '') . "'></td>";
36
- }
37
-
38
- if ($value['widgetType'] == 'mf-textarea') {
39
- echo "<td><pre style='font:inherit;margin:0;'>" . (isset($form_data[$key]) ? $form_data[$key] : '') . "</pre></td>";
40
- }
41
-
42
- if ($value['widgetType'] == 'mf-simple-repeater') {
43
- echo "<td>";
44
- $repeater_data = ((array_key_exists($key, $form_data)) ? $form_data[$key] : []);
45
- foreach ($repeater_data as $k => $v) {
46
- echo "<strong>" . esc_html($k) . ": </strong>";
47
- echo "<span>" . esc_html($v) . "</span>";
48
- echo "<br>";
49
- }
50
- echo "</td>";
51
- }
52
-
53
- if (isset($value['widgetType']) && ($value['widgetType'] == 'mf-like-dislike')) {
54
- $like_dislike = (isset($form_data[$key]) ? $form_data[$key] : '');
55
- echo "<td>";
56
- echo (($like_dislike == '1') ? "<span class='dashicons dashicons-thumbs-up'></span>" : "");
57
- echo (($like_dislike == '0') ? "<span class='dashicons dashicons-thumbs-down'></span>" : "");
58
- echo "</td>";
59
- }
60
-
61
- echo "</tr>";
62
- }
63
- ?>
64
- </tbody>
65
- </table>
66
- </div>
67
- <?php
68
- $data_html = ob_get_contents();
69
- ob_end_clean();
70
- return $data_html;
71
- }
72
-
73
- public static function format_data_for_mail($form_id, $form_data, $file_info)
74
- {
75
- $map_data = \MetForm\Core\Entries\Action::instance()->get_fields($form_id);
76
- $map_data = json_decode(json_encode($map_data), true);
77
-
78
- //$file_meta_data = get_post_meta( $post_id, 'metform_entries__file_upload', true );
79
-
80
- ob_start();
81
-
82
- ?>
83
- <div>
84
- <table width="100%" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF" style="border: 1px solid #EAF2FA">
85
- <tbody>
86
- <?php
87
- foreach ($map_data as $key => $value) {
88
-
89
- if (in_array($value['widgetType'], ['mf-simple-captcha', 'mf-recaptcha', 'mf-file-upload'])) {
90
- continue;
91
- }
92
-
93
- echo "<tr bgcolor='#EAF2FA'>";
94
- echo "<td colspan='2'><strong>" . esc_html(($map_data[$key]['mf_input_label'] != '') ? $map_data[$key]['mf_input_label'] : $key) . "</strong></td>";
95
- echo "</tr>";
96
- echo "<tr bgcolor='#FFFFFF'>";
97
- echo "<td width='20'>&nbsp;</td>";
98
-
99
- if (!in_array($value['widgetType'], ['mf-file-upload', 'mf-textarea', 'mf-simple-repeater', 'mf-signature'])) {
100
- echo "<td>" . esc_html((array_key_exists($key, $form_data) ? ((is_array($form_data[$key])) ? implode(', ', $form_data[$key]) : $form_data[$key]) : ' ')) . "</td>";
101
- }
102
-
103
- if ($value['widgetType'] == 'mf-textarea') {
104
- echo "<td><pre style='font:inherit;margin:0;'>" . (isset($form_data[$key]) ? $form_data[$key] : '') . "</pre></td>";
105
- }
106
-
107
- if ($value['widgetType'] == 'mf-signature') {
108
- echo "<td><img width='200' height='100' src='" . (isset($form_data[$key]) ? $form_data[$key] : '') . "'></td>";
109
- }
110
-
111
- if ($value['widgetType'] == 'mf-simple-repeater') {
112
- echo "<td>";
113
- $repeater_data = ((array_key_exists($key, $form_data)) ? $form_data[$key] : []);
114
- foreach ($repeater_data as $key => $value) {
115
- echo "<strong>" . esc_html($key) . ": </strong>";
116
- echo "<span>" . esc_html($value) . "</span>";
117
- echo "<br>";
118
- }
119
- echo "</td>";
120
- }
121
-
122
- echo "</tr>";
123
- }
124
-
125
- if (!empty($file_info)) {
126
- foreach ($file_info as $key => $file) {
127
- echo "<tr bgcolor='#EAF2FA'>";
128
- echo "<td colspan='2'><strong>" . esc_html(($map_data[$key]['mf_input_label'] != '') ? $map_data[$key]['mf_input_label'] : $key) . "</strong></td>";
129
- echo "</tr>";
130
- echo "<tr bgcolor='#FFFFFF'>";
131
- echo "<td width='20'>&nbsp;</td>";
132
- echo "<td><a href='" . (isset($file['url']) ? $file['url'] : '') . "'>Download</a></td>";
133
- echo "</tr>";
134
- }
135
- }
136
-
137
- ?>
138
- </tbody>
139
- </table>
140
- </div>
141
- <?php
142
- $data_html = ob_get_contents();
143
- ob_end_clean();
144
- return $data_html;
145
- }
146
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/hooks.php DELETED
@@ -1,105 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Entries;
3
-
4
- defined('ABSPATH') || exit;
5
-
6
- class Hooks
7
- {
8
- use \MetForm\Traits\Singleton;
9
-
10
- public function __construct()
11
- {
12
-
13
- add_filter('manage_metform-entry_posts_columns', [$this, 'set_columns']);
14
- add_action('manage_metform-entry_posts_custom_column', [$this, 'render_column'], 10, 2);
15
- add_filter('parse_query', [$this, 'query_filter']);
16
- add_filter('wp_mail_from_name', [$this, 'wp_mail_from']);
17
-
18
- }
19
-
20
- public function set_columns($columns)
21
- {
22
-
23
- $date_column = $columns['date'];
24
-
25
- unset($columns['date']);
26
-
27
- $columns['form_name'] = esc_html__('Form Name', 'metform');
28
-
29
- $columns['referral'] = esc_html__('Referral','metform');
30
-
31
- $columns['date'] = esc_html($date_column);
32
-
33
-
34
-
35
- return $columns;
36
- }
37
-
38
- public function render_column($column, $post_id)
39
- {
40
- switch ($column) {
41
- case 'form_name':
42
- $form_id = get_post_meta($post_id, 'metform_entries__form_id', true);
43
- $form_name = get_post((int) $form_id);
44
- $post_title = (isset($form_name->post_title) ? $form_name->post_title : '');
45
-
46
- global $wp;
47
- $current_url = add_query_arg($wp->query_string . "&mf_form_id=" . $form_id, '', home_url($wp->request));
48
-
49
- echo "<a data-metform-form-id=" . esc_attr($form_id) . " class='mf-entry-filter mf-entry-flter-form_id' href=" . esc_url($current_url) . ">" . esc_html($post_title) . "</a>";
50
- break;
51
-
52
- case 'referral':
53
- $page_id = get_post_meta( $post_id, 'mf_page_id',true );
54
-
55
- global $wp;
56
- $current_url = add_query_arg($wp->query_string . "&mf_ref_id=" . $page_id, '', home_url($wp->request));
57
-
58
- echo "<a class='mf-entry-filter mf-entry-flter-form_id' href='" . esc_url($current_url) . "'>".get_the_title($page_id)."</a>";
59
- break;
60
- }
61
- }
62
-
63
- public function query_filter($query)
64
- {
65
- global $pagenow;
66
- $current_page = isset($_GET['post_type']) ? sanitize_key($_GET['post_type']) : '';
67
-
68
- if (
69
- is_admin()
70
- && 'metform-entry' == $current_page
71
- && 'edit.php' == $pagenow
72
- && $query->query_vars['post_type'] == 'metform-entry'
73
- && isset($_GET['mf_form_id'])
74
- && $_GET['mf_form_id'] != 'all'
75
- ) {
76
- $form_id = sanitize_key($_GET['mf_form_id']);
77
- $query->query_vars['meta_key'] = 'metform_entries__form_id';
78
- $query->query_vars['meta_value'] = $form_id;
79
- $query->query_vars['meta_compare'] = '=';
80
- }
81
-
82
- if (
83
- is_admin()
84
- && 'metform-entry' == $current_page
85
- && 'edit.php' == $pagenow
86
- && $query->query_vars['post_type'] == 'metform-entry'
87
- && isset($_GET['mf_ref_id'])
88
- && $_GET['mf_ref_id'] != 'all'
89
- ) {
90
- $page_id = sanitize_key($_GET['mf_ref_id']);
91
- $query->query_vars['meta_key'] = 'mf_page_id';
92
- $query->query_vars['meta_value'] = $page_id;
93
- $query->query_vars['meta_compare'] = '=';
94
- }
95
- }
96
-
97
-
98
-
99
-
100
- public function wp_mail_from($name)
101
- {
102
- return get_bloginfo('name');
103
- }
104
-
105
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/map-el.php DELETED
@@ -1,57 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Entries;
3
-
4
- defined( 'ABSPATH' ) || exit;
5
-
6
- Class Map_El{
7
-
8
- private $_el = [];
9
- private $_el_list;
10
-
11
- private static $instance;
12
-
13
- public static function data($data, $el_list) {
14
- self::$instance = new self($data, $el_list);
15
- return self::$instance;
16
- }
17
-
18
- public function __construct($data, $el_list) {
19
- $this->_el_list = $el_list;
20
- $this->search_el($data);
21
- return $this;
22
- }
23
-
24
- public function get_el(){
25
- return $this->_el;
26
- }
27
-
28
- private function search_el($data){
29
- if(!is_array($data)) return;
30
-
31
- foreach($data as $k => $v){
32
- if(is_array($v->elements) && !empty($v->elements)){
33
- $this->search_el($v->elements);
34
- }else{
35
- if($v->elType == 'widget' && in_array(str_replace('[]','',$v->widgetType), $this->_el_list)){
36
-
37
- if(isset($v->settings->mf_input_name)){
38
- $this->_el[$v->settings->mf_input_name] = $v->settings;
39
- $this->_el[$v->settings->mf_input_name]->widgetType = $v->widgetType;
40
- }else{
41
- $this->_el[$v->widgetType] = (object) [
42
- 'mf_input_label' => ( isset($v->settings->mf_input_label) ? $v->settings->mf_input_label: '' ) ,
43
- 'mf_input_name' => ( isset($v->widgetType) ? $v->widgetType : '' ),
44
- 'mf_input_placeholder' => ( isset($v->settings->mf_input_placeholder) ? $v->settings->mf_input_placeholder : '' ),
45
- 'mf_input_min_length' => ( isset($v->settings->mf_input_min_length) ? $v->settings->mf_input_min_length : '' ),
46
- 'mf_input_max_length' => ( isset($v->settings->mf_input_max_length) ? $v->settings->mf_input_max_length : '' ),
47
- 'mf_input_length_type' => ( isset($v->settings->mf_input_length_type) ? $v->settings->mf_input_length_type : '' ),
48
- 'mf_input_validation_expression' => ( isset($v->settings->mf_input_validation_expression) ? $v->settings->mf_input_validation_expression : '' ),
49
- 'widgetType' => ( isset($v->widgetType) ? $v->widgetType : '' ),
50
- ];
51
- }
52
- }
53
- }
54
- }
55
- }
56
-
57
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/meta-data.php DELETED
@@ -1,304 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Entries;
4
-
5
- defined('ABSPATH') || exit;
6
-
7
- class Meta_Data
8
- {
9
-
10
- private $browser_data = null;
11
- private $file_meta_data = null;
12
-
13
- private $form_id;
14
- private $form_data;
15
- private $form_settings;
16
-
17
- private $fields;
18
-
19
- public function __construct()
20
- {
21
- $this->cpt = new Cpt();
22
- add_action('save_post', [$this, 'store_form_data_cmb']);
23
- add_action('add_meta_boxes', [$this, 'add_form_id_cmb']);
24
- add_action('add_meta_boxes', [$this, 'add_form_data_cmb']);
25
-
26
- add_action('add_meta_boxes', [$this, 'add_browser_data_cmb']);
27
- add_action('add_meta_boxes', [$this, 'add_file_upload_cmb']);
28
- add_action('add_meta_boxes', [$this, 'add_form_payment_status_cmb']);
29
- add_action('add_meta_boxes', [$this, 'add_woo_payment_status_cmb']);
30
- }
31
-
32
- function add_form_id_cmb()
33
- {
34
- add_meta_box(
35
- 'metform_entries__form_id',
36
- esc_html__('Info', 'metform'),
37
- [$this, 'show_form_id_cmb'],
38
- $this->cpt->get_name(),
39
- 'side',
40
- 'high'
41
- );
42
- }
43
-
44
- function show_form_id_cmb($post)
45
- {
46
- wp_nonce_field('meta_nonce', 'meta_nonce');
47
-
48
- $this->form_id = get_post_meta($post->ID, 'metform_entries__form_id', true);
49
- // get fields by form id for further use
50
- $this->fields = Action::instance()->get_fields($this->form_id);
51
- $form_title = get_the_title((int)$this->form_id);
52
-
53
- ?>
54
-
55
- <div class="metform-entry-data container">
56
- <table class='mf-entry-data' cellpadding="5" cellspacing="0">
57
- <tbody>
58
- <tr class="mf-data-label">
59
- <td colspan='2'><strong><?php esc_html_e('Form Name ', 'metform'); ?></strong></td>
60
- </tr>
61
- <tr class='mf-data-value'>
62
- <td><?php echo esc_attr($form_title); ?></td>
63
- </tr>
64
- <tr class="mf-data-label">
65
- <td colspan='2'><strong><?php esc_html_e('Entry ID', 'metform'); ?></strong></td>
66
- </tr>
67
- <tr class='mf-data-value'>
68
- <td><?php echo esc_attr($post->ID); ?></td>
69
- </tr>
70
-
71
- </tbody>
72
- </table>
73
- </div>
74
-
75
- <?php
76
- }
77
-
78
- function add_form_data_cmb()
79
- {
80
- add_meta_box(
81
- 'metform_entries__form_data',
82
- esc_html__('Data'),
83
- [$this, 'show_form_data_cmb'],
84
- $this->cpt->get_name(),
85
- 'normal',
86
- 'high'
87
- );
88
- }
89
-
90
- function add_browser_data_cmb()
91
- {
92
- // call browser data meta when browser data present
93
- $post_id = (isset($_GET['post']) ? $_GET['post'] : '');
94
- $form_id = get_post_meta($post_id, 'metform_entries__form_id', true);
95
- $form_settings = \MetForm\Core\Forms\Action::instance()->get_all_data($form_id);
96
-
97
- $this->browser_data = get_post_meta($post_id, 'metform_form__entry_browser_data', true);
98
- if ($this->browser_data == '' && !isset($form_settings['capture_user_browser_data'])) {
99
- return;
100
- }
101
-
102
- add_meta_box(
103
- 'metform_form__entry_browser_data',
104
- esc_html__('Browser Data'),
105
- [$this, 'show_browser_data_cmb'],
106
- $this->cpt->get_name(),
107
- 'side',
108
- 'low'
109
- );
110
- }
111
-
112
- function show_browser_data_cmb($post)
113
- {
114
- if ($this->browser_data != '') {
115
- ?>
116
- <div class="metform-entry-data container">
117
- <table class='mf-entry-data' cellpadding="5" cellspacing="0">
118
- <?php
119
- foreach ($this->browser_data as $key => $value) {
120
- ?>
121
- <tbody>
122
- <tr class="mf-data-label">
123
- <td colspan='2'><strong><?php echo esc_attr($key); ?></strong></td>
124
- </tr>
125
- <tr class='mf-data-value'>
126
- <td><?php echo esc_attr($value); ?></td>
127
- </tr>
128
- </tbody>
129
- <?php
130
- }
131
- ?>
132
- </table>
133
- </div>
134
- <?php
135
- } else {
136
- echo esc_html__('Browser data not captured.', 'metform');
137
- }
138
- }
139
-
140
- function add_file_upload_cmb()
141
- {
142
- // call file meta when file data present
143
- $post_id = (isset($_GET['post']) ? $_GET['post'] : '');
144
-
145
- $this->file_meta_data = get_post_meta($post_id, 'metform_entries__file_upload', true);
146
- if (!is_array($this->file_meta_data)) {
147
- return;
148
- }
149
-
150
- add_meta_box(
151
- 'metform_entries__file_upload',
152
- esc_html__('Files'),
153
- [$this, 'show_file_upload_cmb'],
154
- $this->cpt->get_name(),
155
- 'normal',
156
- 'low'
157
- );
158
- }
159
-
160
- function show_form_data_cmb($post)
161
- {
162
- wp_nonce_field('meta_nonce', 'meta_nonce');
163
-
164
- $this->form_data = get_post_meta($post->ID, 'metform_entries__form_data', true);
165
- $this->form_data = (isset($this->form_data)) ? $this->form_data : "";
166
- // format all form data into html table
167
- if ($this->form_data != '') {
168
- $form_html = \MetForm\Core\Entries\Form_Data::format_form_data($this->form_id, $this->form_data);
169
- echo $form_html;
170
- }
171
- }
172
-
173
- function show_file_upload_cmb($post)
174
- {
175
- echo "<div class='mf-file-show'><p>";
176
- foreach ($this->file_meta_data as $key => $value) {
177
- if (empty($this->fields)) {
178
- return;
179
- }
180
- echo "<i class='mf mf-file-2'></i> ";
181
- $file_url = isset($value['url']) ? $value['url'] : '';
182
- $file_type = isset($value['type']) ? $value['type'] : '';
183
- if ($file_url != '') {
184
- echo esc_html(((isset($this->fields[$key]->mf_input_label)) ? $this->fields[$key]->mf_input_label : $key) . " : ") . "<a target='_blank' class='mf-file-url' href=" . esc_url($file_url) . ">" . esc_html__('Download', 'elementskit') . "</a>";
185
- echo((in_array($file_type, ['image/jpeg', 'image/png', 'image/jpg', 'image/gif', 'image/ico'])) ? ' | <a href="#" class="" data-toggle="modal" data-target="#mfFileUploadModal' . $key . '">' . esc_html__('View', 'metform') . '</a>' : '');
186
- } else {
187
- echo esc_html(((isset($this->fields[$key]->mf_input_label)) ? $this->fields[$key]->mf_input_label : $key) . " : ") . esc_html__('This file is not uploaded.', 'metform');
188
- }
189
-
190
- ?>
191
- <!-- Modal -->
192
- <div class="attr-modal attr-fade mf-modal-container" id="mfFileUploadModal<?php echo $key ?>" tabindex="-1"
193
- role="dialog" aria-labelledby="mfFileUploadodalMLabel" aria-hidden="true">
194
- <div class="attr-modal-dialog" role="document">
195
- <div class="attr-modal-content">
196
- <div class="attr-modal-header">
197
- <button type="button" class="attr-close" data-dismiss="modal" aria-label="Close">
198
- <span aria-hidden="true">&times;</span>
199
- </button>
200
- </div>
201
- <div class="attr-modal-body">
202
- <img class="attr-img-responsive" src="<?php echo $file_url ?>">
203
- </div>
204
- </div>
205
- </div>
206
- </div>
207
- <?php
208
- }
209
- echo "</p></div>";
210
- }
211
-
212
- function store_form_data_cmb($post_id)
213
- {
214
-
215
- // add save code here
216
-
217
- }
218
-
219
- function add_woo_payment_status_cmb()
220
- {
221
- add_meta_box(
222
- 'metform_entries__woo_checkout_status',
223
- esc_html__('Woocommerce Checkout'),
224
- [$this, 'show_woo_checkout_status_cmb'],
225
- $this->cpt->get_name(),
226
- 'side',
227
- 'high'
228
- );
229
- }
230
-
231
- function show_woo_checkout_status_cmb($post)
232
- {
233
- $order_id = get_post_meta($post->ID, 'mf_woo_order_id', true);
234
- if($order_id == null) {
235
- return;
236
- }
237
- $order = wc_get_order($order_id);
238
- $order_url = get_admin_url() . 'post.php?post=' . $order_id . '&action=edit';
239
- ?>
240
-
241
- <div class="metform-entry-data container">
242
- <table class='mf-entry-data' cellpadding="5" cellspacing="0">
243
- <tbody>
244
- <tr class="mf-data-label">
245
- <td colspan='2'><strong><?php esc_html_e('Order ID ', 'metform'); ?></strong></td>
246
- </tr>
247
- <tr class='mf-data-value'>
248
- <td><?php echo esc_attr($order_id); ?></td>
249
- </tr>
250
- <tr class="mf-data-label">
251
- <td colspan='2'><strong><?php esc_html_e('Order Status', 'metform'); ?></strong></td>
252
- </tr>
253
- <tr class='mf-data-value'>
254
- <td><?php echo esc_attr($order->get_status()); ?></td>
255
- </tr>
256
-
257
- <tr class="mf-data-label">
258
- <td colspan='2'><strong><?php esc_html_e('Total', 'metform'); ?></strong></td>
259
- </tr>
260
- <tr class='mf-data-value'>
261
- <td><?php echo esc_attr($order->get_total() . ' ' . $order->get_currency()); ?></td>
262
- </tr>
263
-
264
- <tr class="mf-data-label">
265
-
266
- </tr>
267
- <tr class='mf-data-value'>
268
- <td><a class="button" href="<?php echo $order_url; ?>" target="__blank">Order Details</a></td>
269
- </tr>
270
-
271
- </tbody>
272
- </table>
273
- </div>
274
-
275
-
276
- <?php
277
-
278
- }
279
-
280
- function add_form_payment_status_cmb()
281
- {
282
-
283
- add_meta_box(
284
- 'metform_entries__payment_status',
285
- esc_html__('Payment'),
286
- [$this, 'show_form_payment_status_cmb'],
287
- $this->cpt->get_name(),
288
- 'side',
289
- 'high'
290
-
291
- );
292
- }
293
-
294
- function show_form_payment_status_cmb($post)
295
- {
296
- echo "Status : " . get_post_meta($post->ID, 'metform_entries__payment_status', true) . "<br>";
297
-
298
- if (get_post_meta($post->ID, 'metform_entries__payment_invoice', true)) {
299
- echo "Invoice : ";
300
- echo get_post_meta($post->ID, 'metform_entries__payment_invoice', true) . "<br>";
301
- }
302
-
303
- }
304
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/entries/metform-shortcode.php DELETED
@@ -1,61 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Entries;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- Class Metform_Shortcode{
6
- use \MetForm\Traits\Singleton;
7
-
8
- private $all_keys;
9
- private $all_values;
10
- private $main_data;
11
-
12
- public function get_process_shortcode($string){
13
- $replace = str_replace($this->all_keys, $this->all_values, $string);
14
- return $replace;
15
-
16
- }
17
-
18
- public function set_values($main_data){
19
- $this->main_data = $main_data;
20
- $this->formate_keys();
21
- $this->formate_values();
22
- return $this;
23
- }
24
-
25
- public function get_all_keys(){
26
- return $this->all_keys;
27
- }
28
-
29
- public function get_all_values(){
30
- return $this->all_values;
31
- }
32
-
33
- public function set_all_keys($main_data){
34
- $this->main_data = $main_data;
35
- $this->formate_keys();
36
- return $this;
37
- }
38
-
39
- public function set_all_values($main_data){
40
- $this->main_data = $main_data;
41
- $this->formate_values();
42
- return $this;
43
- }
44
-
45
- public function formate_keys(){
46
-
47
- $this->all_keys = array_map(function($v){
48
- return "[".$v."]";
49
- }, array_keys($this->main_data) );
50
-
51
- }
52
-
53
- public function formate_values(){
54
-
55
- $this->all_values = array_map(function($value){
56
- return (is_array($value) ? implode(', ', $value) : $value);
57
- }, $this->main_data);
58
-
59
- }
60
-
61
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/forms/action.php DELETED
@@ -1,263 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Forms;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- Class Action{
6
-
7
- use \MetForm\Traits\Singleton;
8
-
9
- private $key_form_settings;
10
- private $key_option_settings;
11
- private $key_form_count_views;
12
- private $post_type;
13
-
14
- private $fields;
15
- private $form_id;
16
- private $form_setting;
17
- private $title;
18
- private $response = [];
19
-
20
- public function __construct(){
21
-
22
- $this->key_form_settings = Base::instance()->form->get_key_form_settings();
23
- $this->key_option_settings = 'metform_option__settings';
24
- $this->key_form_count_views = 'metform_form__count_views';
25
- $this->post_type = Base::instance()->form->get_name();
26
-
27
- $this->response = [
28
- 'saved' => false,
29
- 'status' => esc_html("Something went wrong.", 'metform'),
30
- 'data' => [
31
- ]
32
- ];
33
- }
34
-
35
- public function store( $form_id, $form_setting ){
36
- if( !current_user_can( 'manage_options' ) ){
37
- return;
38
- }
39
-
40
- $this->fields = $this->get_fields();
41
- $this->sanitize( $form_setting );
42
- $this->form_id = $form_id;
43
-
44
- if(isset($form_setting['mf_zapier']) && isset($form_setting['mf_zapier_webhook']) && $form_setting['mf_zapier_webhook'] != ''){
45
-
46
- $map_data = \MetForm\Core\Entries\Action::instance()->get_fields($form_id);
47
- $email_name = \MetForm\Core\Entries\Action::instance()->get_input_name_by_widget_type('mf-email', $map_data);
48
-
49
- $existing_settings = \MetForm\Core\Forms\Action::instance()->get_all_data($this->form_id);
50
- $zapier = new \MetForm_Pro\Core\Integrations\Zapier();
51
-
52
- $url = $form_setting['mf_zapier_webhook'];
53
-
54
- if(!empty($existing_settings) && ($existing_settings['mf_zapier_webhook'] != $form_setting['mf_zapier_webhook'])){
55
- $this->response['data']['zapier'] = $zapier->call_webhook($form_data[] = null, ['url' => $url, 'email_name' => $email_name]);
56
- }elseif(empty($existing_settings)){
57
- $this->response['data']['zapier'] = $zapier->call_webhook($form_data[] = null, ['url' => $url, 'email_name' => $email_name]);
58
- }
59
-
60
- }
61
-
62
- if($this->form_id == -1 ){
63
- $this->update_option_settings();
64
- } else if($this->form_id == 0){
65
- $this->insert();
66
- } else{
67
- $this->update();
68
- }
69
-
70
- return $this->response;
71
-
72
- }
73
-
74
- public function update_option_settings(){
75
- $status = update_option( $this->key_option_settings, $this->form_setting );
76
- if($status){
77
- $this->response['saved'] = true;
78
- $this->response['status'] = esc_html__('Form settings inserted','metform');
79
- $this->response['key'] = $this->key_option_settings;
80
- $this->response['data'] = $this->form_setting;
81
- }
82
- }
83
-
84
- public function insert(){
85
- if( !current_user_can( 'manage_options' ) ){
86
- return;
87
- }
88
-
89
- $this->title = ($this->form_setting['form_title'] != '') ? $this->form_setting['form_title'] : 'New Form # '.time();
90
-
91
- $defaults = array(
92
- 'post_title' => $this->title,
93
- 'post_status' => 'publish',
94
- 'post_type' => $this->post_type,
95
- );
96
- $this->form_id = wp_insert_post( $defaults );
97
-
98
- update_post_meta( $this->form_id, $this->key_form_settings, $this->form_setting );
99
- update_post_meta( $this->form_id, '_wp_page_template', 'elementor_canvas' );
100
-
101
- $this->response['saved'] = true;
102
- $this->response['status'] = esc_html__('Form settings inserted','metform');
103
-
104
- if((!array_key_exists('store_entries',$this->form_setting)) && (!array_key_exists('enable_user_notification',$this->form_setting)) && (!array_key_exists('enable_admin_notification',$this->form_setting)) && (!array_key_exists('mf_mail_chimp',$this->form_setting)) && (!array_key_exists('mf_zapier',$this->form_setting))){
105
- $this->response['saved'] = false;
106
- $this->response['status'] = esc_html__('You must active at least one field of these fields "store entry/ Confirmation/ Notification/ MailChimp/ Zapier". ','metform');
107
- }
108
- if( (array_key_exists('mf_paypal', $this->form_setting)) && (!array_key_exists('store_entries', $this->form_setting)) ){
109
- $this->response['saved'] = false;
110
- $this->response['status'] = esc_html__('You must enable "store entries" for integrating payment method.','metform');
111
- }
112
-
113
- $this->response['data']['id'] = $this->form_id;
114
- $this->response['data']['title'] = $this->title;
115
- $this->response['data']['type'] = $this->post_type;
116
-
117
- }
118
-
119
- public function update(){
120
- if( !current_user_can( 'manage_options' ) ){
121
- return;
122
- }
123
-
124
- $this->title = ($this->form_setting['form_title'] != '') ? $this->form_setting['form_title'] : 'New Form # '.time();
125
-
126
- if( isset( $this->form_setting['form_title'] ) ){
127
- $update_post = array(
128
- 'ID' => $this->form_id,
129
- 'post_title' => $this->title,
130
- );
131
- wp_update_post( $update_post );
132
- }
133
-
134
- update_post_meta( $this->form_id, $this->key_form_settings, $this->form_setting );
135
- update_post_meta( $this->form_id, '_wp_page_template', 'elementor_canvas' );
136
-
137
- $this->response['saved'] = true;
138
- $this->response['status'] = esc_html('Form settings updated','metform');
139
-
140
- if((!array_key_exists('store_entries',$this->form_setting)) && (!array_key_exists('enable_user_notification',$this->form_setting)) && (!array_key_exists('enable_admin_notification',$this->form_setting)) && (!array_key_exists('mf_mail_chimp',$this->form_setting)) && (!array_key_exists('mf_zapier',$this->form_setting)) && (!array_key_exists('mf_rest_api', $this->form_setting)) && (!array_key_exists('mf_slack', $this->form_setting))){
141
- $this->response['saved'] = false;
142
- $this->response['status'] = esc_html('You must active at least one field of these fields "store entries/ Confirmation/ Notification/ REST API/ MailChimp/ Slack/ Zapier". ','metform');
143
- }
144
- if( (array_key_exists('mf_paypal', $this->form_setting)) && (!array_key_exists('store_entries', $this->form_setting)) ){
145
- $this->response['saved'] = false;
146
- $this->response['status'] = esc_html__('You must enable "store entries" for integrating payment method.','metform');
147
- }
148
-
149
- $this->response['data']['id'] = $this->form_id;
150
- $this->response['data']['title'] = $this->title;
151
- $this->response['data']['type'] = $this->post_type;
152
-
153
- }
154
-
155
- public function get_fields(){
156
- return Base::instance()->form->get_form_settings_fields();
157
- }
158
-
159
- public function sanitize( $form_setting, $fields = null ){
160
- if( $fields == null ){
161
- $fields = $this->fields;
162
- }
163
- foreach( $form_setting as $key => $value ){
164
-
165
- if( isset( $fields[$key] ) ){
166
- $this->form_setting[ $key ] = $value;
167
- }
168
-
169
- }
170
- }
171
-
172
-
173
- /**
174
- *
175
- * @param $post_id
176
- *
177
- * @return array|null
178
- */
179
- public function get_all_data( $post_id ){
180
-
181
- $post = get_post( $post_id );
182
-
183
- if(!is_object($post)){
184
- return null;
185
- }
186
-
187
- if( ! property_exists($post, 'ID')){
188
- return null;
189
- }
190
-
191
- $settings = get_post_meta( $post->ID, $this->key_form_settings, true );
192
- $settings = (is_array($settings) ? $settings : []);
193
- $settings['entry_title'] = (!isset($settings['entry_title']) ? 'Entry # [mf_id]' :$settings['entry_title']);
194
-
195
- $global_settings = \MetForm\Core\Admin\Base::instance()->get_settings_option();
196
- $global_settings = (is_array($global_settings) ? $global_settings : []);
197
-
198
- $cKitCache = [];
199
- $awbCache = [];
200
- $mpCache = [];
201
-
202
- if(class_exists('\MetForm_Pro\Core\Integrations\Convert_Kit')) {
203
-
204
- $cKitCache = get_option(\MetForm_Pro\Core\Integrations\Convert_Kit::CKIT_FORMS_CACHE_KEY);
205
- }
206
-
207
- if(class_exists('\MetForm_Pro\Core\Integrations\Aweber')) {
208
-
209
- $awbCache = get_option(\MetForm_Pro\Core\Integrations\Aweber::AWEBER_LISTS_CACHE_KEY);
210
- }
211
-
212
- if(class_exists('\MetForm_Pro\Core\Integrations\Mail_Poet')) {
213
-
214
- $mpCache = get_option(\MetForm_Pro\Core\Integrations\Mail_Poet::MAIL_POET_LISTS_CACHE_KEY);
215
- }
216
-
217
-
218
- if(empty($global_settings)) {
219
- $all_settings = $settings;
220
- $all_settings['mf_recaptcha_version'] = 'recaptcha-v2';
221
- } else {
222
- $all_settings = array_merge( $settings, $global_settings );
223
- }
224
-
225
- $all_settings['form_title'] = get_the_title($post_id);
226
-
227
- $map_data = \MetForm\Core\Entries\Action::instance()->get_fields($post_id);
228
-
229
- \MetForm\Core\Entries\Metform_Shortcode::instance()->set_all_keys($map_data);
230
- $formated_keys = \MetForm\Core\Entries\Metform_Shortcode::instance()->get_all_keys();
231
-
232
- $all_settings['input_names'] = (!empty($formated_keys) ? implode(' ', $formated_keys) : 'Example: [mf-inputname]');
233
-
234
- $all_settings['ckit_opt'] = $cKitCache;
235
- $all_settings['aweber_opt'] = $awbCache;
236
- $all_settings['mp_opt'] = $mpCache;
237
-
238
- return $all_settings;
239
-
240
- }
241
-
242
- public function get_count_views( $form_id ){
243
- return get_post_meta( $form_id, $this->key_form_count_views, true );
244
- }
245
-
246
- public function count_views( $form_id ){
247
-
248
- if( current_user_can( 'manage_options' ) ){
249
- return;
250
- }
251
-
252
- $form_setting = $this->get_all_data( $form_id );
253
- //return $form_setting;
254
-
255
- if(isset($form_setting['count_views']) && $form_setting['count_views'] == '1'){
256
- $count = $this->get_count_views( $form_id );
257
- $count = (int)$count;
258
- $count++;
259
- update_post_meta( $form_id, $this->key_form_count_views, $count );
260
- return $count;
261
- }
262
- }
263
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/forms/api.php DELETED
@@ -1,297 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Forms;
4
-
5
- use MetForm\Core\Entries\Map_El;
6
-
7
- defined('ABSPATH') || exit;
8
-
9
- class Api extends \MetForm\Base\Api
10
- {
11
-
12
- public function config()
13
- {
14
- $this->prefix = 'forms';
15
- $this->param = "/(?P<id>\w+)";
16
- }
17
-
18
- public function post_update()
19
- {
20
- $form_id = $this->request['id'];
21
-
22
- $form_setting = $this->request->get_params();
23
-
24
-
25
- /**
26
- * Hubspot form settings save
27
- */
28
-
29
- if (class_exists('\MetForm_Pro\Core\Integrations\Crm\Hubspot\Hubspot')) {
30
-
31
-
32
- if (isset($form_setting['mf_hubspot_form_guid'])) {
33
- $fields = [];
34
-
35
- foreach ($form_setting as $key => $value) {
36
-
37
- if (strpos($key, 'mf_hubspot_form_field_name_') !== false) {
38
- array_push($fields, [$key => $value]);
39
- }
40
- }
41
-
42
- update_option('mf_hubspot_form_guid_' . $form_id, $form_setting['mf_hubspot_form_guid']);
43
- update_option('mf_hubspot_form_portalId_' . $form_id, $form_setting['mf_hubspot_form_portalId']);
44
- update_option('mf_hubspot_form_data_' . $form_id, $fields);
45
- }
46
-
47
-
48
- }
49
-
50
- /**
51
- * Mailster form settings
52
- */
53
-
54
- if (class_exists('\MetForm_Pro\Core\Integrations\Crm\Hubspot\Hubspot')) {
55
-
56
-
57
- if (isset($form_setting['mf_mailster_list_id'])) {
58
- $fields = [];
59
-
60
-
61
- foreach ($form_setting as $key => $value) {
62
-
63
- if (strpos($key, 'mailster_field_') !== false) {
64
- array_push($fields, [$key => $value]);
65
- }
66
- }
67
-
68
- update_option('mf_mailster_form_data_' . $form_id, $fields);
69
- }
70
-
71
-
72
- }
73
-
74
-
75
- /**
76
- * Auth / Registration settings save
77
- */
78
-
79
-
80
- if (class_exists('\MetForm_Pro\Core\Integrations\Email\Mailster\Mailster')) {
81
-
82
- if (isset($form_setting['mf_auth_reg_user_name'])) {
83
-
84
- $data = [
85
-
86
- 'mf_auth_reg_user_name' => $form_setting['mf_auth_reg_user_name'],
87
- 'mf_auth_reg_user_email' => $form_setting['mf_auth_reg_user_email'],
88
- 'mf_auth_reg_role' => $form_setting['mf_auth_reg_role']
89
-
90
- ];
91
-
92
- update_option('mf_auth_reg_settings_' . $form_id, $data);
93
- }
94
-
95
-
96
- }
97
-
98
- /**
99
- * Auth / Login settings save
100
- */
101
- if (class_exists('\MetForm_Pro\Core\Integrations\Auth\Login\Login')) {
102
-
103
-
104
- if (isset($form_setting['mf_auth_login_user_name'])) {
105
- $data = [
106
-
107
- 'mf_auth_login_user_name' => $form_setting['mf_auth_login_user_name'],
108
- 'mf_auth_login_user_password' => $form_setting['mf_auth_login_user_password']
109
-
110
- ];
111
-
112
- update_option('mf_auth_login_settings_' . $form_id, $data);
113
- }
114
-
115
-
116
- }
117
-
118
- /**
119
- * Post submission
120
- */
121
- if (class_exists('MetForm_Pro\Core\Integrations\Post\Form_To_Post\Post')) {
122
-
123
-
124
- if (isset($form_setting['mf_post_submission_post_type'])) {
125
- $data = [
126
-
127
- 'mf_post_submission_post_type' => $form_setting['mf_post_submission_post_type'],
128
- 'mf_post_submission_title' => $form_setting['mf_post_submission_title'],
129
- 'mf_post_submission_content' => $form_setting['mf_post_submission_content'],
130
- 'mf_post_submission_author' => $form_setting['mf_post_submission_author'],
131
- 'mf_post_submission_featured_image' => $form_setting['mf_post_submission_featured_image'],
132
-
133
- ];
134
-
135
- /**
136
- * If Custom field settings available
137
- */
138
- if (isset($form_setting['mf_post_submission_custom_fields_name'])) {
139
- $custom_fields_settings = [];
140
- $mf_custom_fields = $form_setting['mf_post_submission_custom_fields_name'];
141
- $mf_field_names = $form_setting['mf_post_submission_mf_field_name'];
142
- $total_field_count = count($mf_custom_fields);
143
- for ($index = 0; $index <= $total_field_count; $index++) {
144
- if (!empty($mf_custom_fields[$index])) {
145
- $custom_fields_settings[$mf_custom_fields[$index]] = $mf_field_names[$index];
146
- }
147
- }
148
-
149
- update_option('mf_post_submission_custom_fields_' . $form_id, $custom_fields_settings );
150
- }
151
-
152
- update_option('mf_post_submission_' . $form_id, $data);
153
- }
154
-
155
-
156
- }
157
-
158
-
159
- return Action::instance()->store($form_id, $form_setting);
160
- }
161
-
162
- public function get_get()
163
- {
164
- $form_id = $this->request['id'];
165
-
166
- return Action::instance()->get_all_data($form_id);
167
- }
168
-
169
- public function get_builder()
170
- {
171
- $form_id = $this->request['id'];
172
- return Builder::instance()->get_editor($form_id);
173
- }
174
-
175
- public function get_form_content()
176
- {
177
- $form_id = $this->request['id'];
178
- return Builder::instance()->get_form_content($form_id);
179
- }
180
-
181
- public function get_builder_form_id()
182
- {
183
- $title = $this->request['title'];
184
- $template_id = $this->request['id'];
185
- return Builder::instance()->create_form($title, $template_id);
186
- }
187
-
188
- public function get_templates()
189
- {
190
- $form_id = $this->request['id'];
191
- $args = array(
192
- 'post_type' => Base::instance()->form->get_name(),
193
- 'post_status' => 'publish',
194
- 'posts_per_page' => -1,
195
- );
196
-
197
- $forms = get_posts($args);
198
-
199
- foreach ($forms as $form) {
200
- echo '<option value="' . $form->ID . '" ' . selected($form_id, $form->ID, false) . '>' . $form->post_title . '</option>';
201
- }
202
-
203
- exit();
204
- }
205
-
206
- public function post_views()
207
- {
208
- $form_id = $this->request['id'];
209
- return Action::instance()->count_views($form_id);
210
- }
211
-
212
- /**
213
- * Store hubspot forms
214
- */
215
-
216
- public function get_hubspot_forms()
217
- {
218
-
219
- $form_id = $this->request['id'];
220
-
221
- $key = 'hubsopt_forms_' . $form_id . '_';
222
-
223
- $data = \MetForm\Core\Forms\Action::instance()->get_all_data($form_id);
224
-
225
- $token = $data['mf_hubsopt_token'];
226
-
227
- $forms = json_decode(file_get_contents('https://api.hubapi.com/forms/v2/forms?hapikey=' . $token));
228
-
229
- $save_forms = [];
230
- foreach ($forms as $form) {
231
- array_push($save_forms, [
232
- 'portalId' => $form->portalId,
233
- 'guid' => $form->guid,
234
- 'name' => $form->name,
235
- ]);
236
- }
237
-
238
- update_option('mf_hubspot_saved_forms', $save_forms);
239
-
240
- update_option($key, $forms);
241
- return get_option($key);
242
- }
243
-
244
- public function get_get_hubspot_forms()
245
- {
246
- $key = $form_id = $this->request['id'];
247
-
248
- $key = 'hubsopt_forms_' . $form_id . '_';
249
-
250
- return get_option($key);
251
- }
252
-
253
- public function post_hubspot_form_fields()
254
- {
255
- $form_id = $this->request['id'];
256
-
257
- $form_guid = $this->request['guid'];
258
-
259
- $data = \MetForm\Core\Forms\Action::instance()->get_all_data($form_id);
260
-
261
- $token = $data['mf_hubsopt_token'];
262
-
263
- $fields = json_decode(file_get_contents('https://api.hubapi.com/forms/v2/fields/' . $form_guid . '?hapikey=' . $token));
264
- return $fields;
265
-
266
- }
267
-
268
- public function get_get_fields_data()
269
- {
270
-
271
- $form_id = $this->request['id'];
272
- $input_widgets = \Metform\Widgets\Manifest::instance()->get_input_widgets();
273
-
274
- $widget_input_data = get_post_meta($form_id, '_elementor_data', true);
275
- $widget_input_data = json_decode($widget_input_data);
276
-
277
- return Map_El::data($widget_input_data, $input_widgets)->get_el();
278
- }
279
-
280
- public function get_get_mailster_forms()
281
- {
282
- return (new \MetForm_Pro\Core\Integrations\Email\Mailster\Api())->get_forms();
283
- }
284
-
285
- public function get_get_mailster_form()
286
- {
287
- $form_id = $this->request['id'];
288
- return (new \MetForm_Pro\Core\Integrations\Email\Mailster\Api())->get_form($form_id);
289
- }
290
-
291
- public function get_get_mailster_form_data()
292
- {
293
- $form_id = $this->request['id'];
294
- return get_option('mf_mailster_form_data_' . $form_id);
295
- }
296
-
297
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/forms/base.php DELETED
@@ -1,38 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Forms;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- Class Base extends \MetForm\Base\Common{
6
-
7
- use \MetForm\Traits\Singleton;
8
-
9
- public $form;
10
-
11
- public $api;
12
-
13
- public function get_dir(){
14
- return dirname(__FILE__);
15
- }
16
-
17
- public function __construct(){
18
-
19
- }
20
-
21
- public function init(){
22
- $this->form = new Cpt();
23
- $this->api = new Api();
24
- Hooks::instance()->Init();
25
- \MetForm\Base\Shortcode::instance();
26
-
27
- add_action('admin_footer', [$this, 'modal_view']);
28
- }
29
-
30
- public function modal_view(){
31
-
32
- $screen = get_current_screen();
33
-
34
- if($screen->id == 'edit-metform-form' || $screen->id == 'metform_page_mt-form-settings'){
35
- include_once 'views/modal-editor.php';
36
- }
37
- }
38
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/forms/builder.php DELETED
@@ -1,56 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Forms;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- Class Builder{
6
-
7
- use \MetForm\Traits\Singleton;
8
-
9
- public function get_editor( $form_id ){
10
- $builder_form_id = get_post($form_id);
11
- $builder_form_id = $builder_form_id->ID;
12
-
13
- $url = get_admin_url() . '/post.php?post='.$builder_form_id.'&action=elementor';
14
- wp_redirect( $url );
15
- exit;
16
- }
17
-
18
- public function create_form($title, $template_id = 0, $data = []){
19
- $template_id = 'template-' . (($template_id == '') ? 0 : $template_id);
20
- $title = ($title == '' ? 'New Form # ' . time() : $title);
21
- $template_content = \MetForm\Templates\Base::instance()->get_template_contents($template_id);
22
-
23
- $user_id = get_current_user_id();
24
-
25
- $defaults = array(
26
- 'post_author' => $user_id,
27
- 'post_content' => '',
28
- 'post_title' => $title,
29
- 'post_status' => 'publish',
30
- 'post_type' => 'metform-form',
31
- );
32
- $builder_form_id = wp_insert_post($defaults);
33
-
34
- $default_settings = array_map(function(){
35
- return '';
36
- }, \MetForm\Core\Forms\Base::instance()->form->get_form_settings_fields());
37
-
38
- $default_settings['success_message'] = esc_html('Thank you! Form submitted successfully.');
39
- $default_settings['store_entries'] = '1';
40
- $default_settings['form_title'] = $defaults['post_title'];
41
-
42
- update_post_meta( $builder_form_id, '_wp_page_template', 'elementor_canvas' );
43
- update_post_meta( $builder_form_id, \MetForm\Core\Forms\Base::instance()->form->get_key_form_settings(), $default_settings );
44
- update_post_meta( $builder_form_id, '_elementor_edit_mode', 'builder');
45
-
46
- if($data != ''){
47
- update_post_meta( $builder_form_id, '_metform_cloned_id', $template_id);
48
- }
49
-
50
- if($template_content != null){
51
- update_post_meta($builder_form_id, '_elementor_data', json_encode($template_content));
52
- }
53
-
54
- return $builder_form_id;
55
- }
56
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/forms/cpt.php DELETED
@@ -1,414 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Forms;
4
-
5
- defined('ABSPATH') || exit;
6
-
7
- class Cpt extends \MetForm\Base\Cpt
8
- {
9
-
10
-
11
- public function get_name()
12
- {
13
- return 'metform-form';
14
- }
15
-
16
- public function get_key_form_settings()
17
- {
18
- return 'metform_form__form_setting';
19
- }
20
-
21
- public function get_form_settings_fields()
22
- {
23
-
24
-
25
- $cpt = [
26
-
27
- 'form_title' => [
28
- 'name' => 'form_title',
29
- ],
30
- 'success_message' => [
31
- 'name' => 'success_message',
32
- ],
33
- 'store_entries' => [
34
- 'name' => 'store_entries',
35
- ],
36
-
37
- 'entry_title' => [
38
- 'name' => 'entry_title',
39
- ],
40
- 'hide_form_after_submission' => [
41
- 'name' => 'hide_form_after_submission',
42
- ],
43
- 'redirect_to' => [
44
- 'name' => 'redirect_to',
45
- ],
46
- 'success_url' => [
47
- 'name' => 'success_url',
48
- ],
49
- 'failed_cancel_url' => [
50
- 'name' => 'failed_cancel_url',
51
- ],
52
- 'require_login' => [
53
- 'name' => 'require_login',
54
- ],
55
- 'limit_total_entries_status' => [
56
- 'name' => 'limit_total_entries_status',
57
- ],
58
- 'limit_total_entries' => [
59
- 'name' => 'limit_total_entries',
60
- ],
61
- 'count_views' => [
62
- 'name' => 'count_views',
63
- ],
64
- 'mf_stop_vertical_scrolling' => [
65
- 'name' => 'mf_stop_vertical_scrolling',
66
- ],
67
- 'multiple_submission' => [
68
- 'name' => 'multiple_submission',
69
- ],
70
- 'enable_recaptcha' => [
71
- 'name' => 'enable_recaptcha',
72
- ],
73
- 'capture_user_browser_data' => [
74
- 'name' => 'capture_user_browser_data',
75
- ],
76
- 'enable_user_notification' => [
77
- 'name' => 'enable_user_notification',
78
- ],
79
- 'user_email_subject' => [
80
- 'name' => 'user_email_subject',
81
- ],
82
- 'user_email_from' => [
83
- 'name' => 'user_email_from',
84
- ],
85
- 'user_email_reply_to' => [
86
- 'name' => 'user_email_reply_to',
87
- ],
88
- 'user_email_body' => [
89
- 'name' => 'user_email_body',
90
- ],
91
- 'user_email_attach_submission_copy' => [
92
- 'name' => 'user_email_attach_submission_copy',
93
- ],
94
- 'enable_admin_notification' => [
95
- 'name' => 'enable_admin_notification',
96
- ],
97
- 'admin_email_subject' => [
98
- 'name' => 'admin_email_subject',
99
- ],
100
- 'admin_email_from' => [
101
- 'name' => 'admin_email_from',
102
- ],
103
- 'admin_email_to' => [
104
- 'name' => 'admin_email_to',
105
- ],
106
- 'admin_email_reply_to' => [
107
- 'name' => 'admin_email_reply_to',
108
- ],
109
- 'admin_email_body' => [
110
- 'name' => 'admin_email_body',
111
- ],
112
- 'admin_email_attach_submission_copy' => [
113
- 'name' => 'admin_email_attach_submission_copy',
114
- ],
115
- 'mf_mail_chimp' => [
116
- 'name' => 'mf_mail_chimp',
117
- ],
118
-
119
- 'mf_get_response' => [
120
- 'name' => 'mf_get_response',
121
- ],
122
- 'mf_get_reponse_api_key' => [
123
- 'name' => 'mf_get_reponse_api_key'
124
- ],
125
- 'mf_get_response_list_id' => [
126
- 'name' => 'mf_get_response_list_id'
127
- ],
128
- 'mf_active_campaign' => [
129
- 'name' => 'mf_active_campaign'
130
- ],
131
-
132
- 'mf_rest_api' => [
133
- 'name' => 'mf_rest_api',
134
- ],
135
- 'mf_rest_api_url' => [
136
- 'name' => 'mf_rest_api_url',
137
- ],
138
- 'mf_rest_api_method' => [
139
- 'name' => 'mf_rest_api_method',
140
- ],
141
- 'mf_mailchimp_api_key' => [
142
- 'name' => 'mf_mailchimp_api_key',
143
- ],
144
- 'mf_active_campaign_api_key' => [
145
- 'name' => 'mf_active_campaign_api_key'
146
- ],
147
- 'mf_active_campaign_url' => [
148
- 'name' => 'mf_active_campaign_url'
149
- ],
150
- 'mf_mailchimp_list_id' => [
151
- 'name' => 'mf_mailchimp_list_id',
152
- ],
153
- 'mf_zapier' => [
154
- 'name' => 'mf_zapier',
155
- ],
156
- 'mf_zapier_webhook' => [
157
- 'name' => 'mf_zapier_webhook',
158
- ],
159
- 'mf_slack' => [
160
- 'name' => 'mf_slack',
161
- ],
162
- 'mf_slack_webhook' => [
163
- 'name' => 'mf_slack_webhook',
164
- ],
165
-
166
- 'mf_thank_you_page' => [
167
- 'name' => 'mf_thank_you_page'
168
- ],
169
- 'mf_paypal' => [
170
- 'name' => 'mf_paypal',
171
- ],
172
- 'mf_paypal_email' => [
173
- 'name' => 'mf_paypal_email',
174
- ],
175
- 'mf_paypal_token' => [
176
- 'name' => 'mf_paypal_token',
177
- ],
178
- 'mf_paypal_sandbox' => [
179
- 'name' => 'mf_paypal_sandbox',
180
- ],
181
- 'mf_stripe' => [
182
- 'name' => 'mf_stripe',
183
- ],
184
- 'mf_stripe_image_url' => [
185
- 'name' => 'mf_stripe_image_url',
186
- ],
187
- 'mf_stripe_live_publishiable_key' => [
188
- 'name' => 'mf_stripe_live_publishiable_key',
189
- ],
190
- 'mf_stripe_live_secret_key' => [
191
- 'name' => 'mf_stripe_live_secret_key',
192
- ],
193
- 'mf_stripe_sandbox' => [
194
- 'name' => 'mf_stripe_sandbox',
195
- ],
196
- 'mf_stripe_test_publishiable_key' => [
197
- 'name' => 'mf_stripe_test_publishiable_key',
198
- ],
199
- 'mf_stripe_test_secret_key' => [
200
- 'name' => 'mf_stripe_test_secret_key',
201
- ],
202
- 'mf_google_map_api_key' => [
203
- 'name' => 'mf_google_map_api_key',
204
- ],
205
- 'mf_recaptcha' => [
206
- 'name' => 'mf_recaptcha',
207
- ],
208
- 'mf_recaptcha_version' => [
209
- 'name' => 'mf_recaptcha_version',
210
- ],
211
- 'mf_recaptcha_site_key' => [
212
- 'name' => 'mf_recaptcha_site_key',
213
- ],
214
- 'mf_recaptcha_secret_key' => [
215
- 'name' => 'mf_recaptcha_secret_key',
216
- ],
217
- 'mf_recaptcha_site_key_v3' => [
218
- 'name' => 'mf_recaptcha_site_key_v3',
219
- ],
220
- 'mf_recaptcha_secret_key_v3' => [
221
- 'name' => 'mf_recaptcha_secret_key_v3',
222
- ],
223
-
224
- 'mf_convert_kit' => [
225
- 'name' => 'mf_convert_kit',
226
- ],
227
- 'mf_ckit_list_id' => [
228
- 'name' => 'mf_ckit_list_id',
229
- ],
230
- 'mf_ckit_api_key' => [
231
- 'name' => 'mf_ckit_api_key',
232
- ],
233
- 'mf_ckit_sec_key' => [
234
- 'name' => 'mf_ckit_sec_key',
235
- ],
236
-
237
- 'mf_aweber_dev_api_key' => [
238
- 'name' => 'mf_aweber_dev_api_key',
239
- ],
240
- 'mf_aweber_dev_api_sec' => [
241
- 'name' => 'mf_aweber_dev_api_sec',
242
- ],
243
- 'mf_mail_aweber' => [
244
- 'name' => 'mf_mail_aweber',
245
- ],
246
- 'mf_aweber_list_id' => [
247
- 'name' => 'mf_aweber_list_id',
248
- ],
249
-
250
- #checkBox
251
- 'mf_mail_poet' => [
252
- 'name' => 'mf_mail_poet',
253
- ],
254
- #SelectBox
255
- 'mf_mail_poet_list_id' => [
256
- 'name' => 'mf_mail_poet_list_id',
257
- ],
258
-
259
- // Hubsopt
260
-
261
- 'mf_hubspot' => [
262
- 'name' => 'mf_hubspot',
263
- ],
264
-
265
- 'mf_hubspot_forms' => [
266
- 'name' => 'mf_hubspot_forms',
267
- ],
268
-
269
- 'mf_hubsopt_token' => [
270
- 'name' => 'mf_hubsopt_token',
271
- ],
272
- 'mf_hubspot_form_guid' => [
273
- 'name' => 'mf_hubspot_form_guid'
274
- ],
275
- 'mf_hubspot_form_portalId' => [
276
- 'name' => 'mf_hubspot_form_portalId'
277
- ],
278
-
279
- // Zoho
280
-
281
- 'mf_zoho' => [
282
- 'name' => 'mf_zoho'
283
- ],
284
-
285
- 'mf_zoho_token' => [
286
- 'name' => 'mf_zoho_token'
287
- ],
288
-
289
- // Auth
290
-
291
- 'mf_registration' => [
292
- 'name' => 'mf_registration'
293
- ],
294
-
295
- 'mf_login' => [
296
- 'name' => 'mf_login'
297
- ],
298
-
299
- // Post
300
-
301
- 'mf_form_to_post' => [
302
- 'name' => 'mf_form_to_post'
303
- ],
304
-
305
- // Mailster
306
-
307
- 'mf_mailster' => [
308
- 'name' => 'mf_mailster'
309
- ],
310
-
311
- 'mf_mailster_list_id' => [
312
- 'name' => 'mf_mailster_list_id'
313
- ],
314
- 'mf_mailster_fields' => [
315
- 'name' => 'mf_mailster_fields'
316
- ],
317
-
318
- // Post submission
319
- 'mf_post_submission_post_type' => [
320
- 'name' => 'mf_post_submission_post_type'
321
- ],
322
- 'mf_post_submission_title' => [
323
- 'name' => 'mf_post_submission_title',
324
- ],
325
- 'mf_post_submission_content' => [
326
- 'name' => 'mf_post_submission_content'
327
- ],
328
- 'mf_post_submission_author' => [
329
- 'name' => 'mf_post_submission_author'
330
- ],
331
- 'mf_post_submission_featured_image' => [
332
- 'name' => 'mf_post_submission_featured_image'
333
- ],
334
-
335
- ];
336
-
337
-
338
- return $cpt;
339
- }
340
-
341
- public function post_type()
342
- {
343
- $labels = array(
344
- 'name' => esc_html_x('Forms', 'Post Type General Name', 'metform'),
345
- 'singular_name' => esc_html_x('Form', 'Post Type Singular Name', 'metform'),
346
- 'menu_name' => esc_html__('Form', 'metform'),
347
- 'name_admin_bar' => esc_html__('Form', 'metform'),
348
- 'archives' => esc_html__('Form Archives', 'metform'),
349
- 'attributes' => esc_html__('Form Attributes', 'metform'),
350
- 'parent_item_colon' => esc_html__('Parent Item:', 'metform'),
351
- 'all_items' => esc_html__('Forms', 'metform'),
352
- 'add_new_item' => esc_html__('Add New Form', 'metform'),
353
- 'add_new' => esc_html__('Add New', 'metform'),
354
- 'new_item' => esc_html__('New Form', 'metform'),
355
- 'edit_item' => esc_html__('Edit Form', 'metform'),
356
- 'update_item' => esc_html__('Update Form', 'metform'),
357
- 'view_item' => esc_html__('View Form', 'metform'),
358
- 'view_items' => esc_html__('View Forms', 'metform'),
359
- 'search_items' => esc_html__('Search Forms', 'metform'),
360
- 'not_found' => esc_html__('Not found', 'metform'),
361
- 'not_found_in_trash' => esc_html__('Not found in Trash', 'metform'),
362
- 'featured_image' => esc_html__('Featured Image', 'metform'),
363
- 'set_featured_image' => esc_html__('Set featured image', 'metform'),
364
- 'remove_featured_image' => esc_html__('Remove featured image', 'metform'),
365
- 'use_featured_image' => esc_html__('Use as featured image', 'metform'),
366
- 'insert_into_item' => esc_html__('Insert into form', 'metform'),
367
- 'uploaded_to_this_item' => esc_html__('Uploaded to this form', 'metform'),
368
- 'items_list' => esc_html__('Forms list', 'metform'),
369
- 'items_list_navigation' => esc_html__('Forms list navigation', 'metform'),
370
- 'filter_items_list' => esc_html__('Filter froms list', 'metform'),
371
- );
372
- $rewrite = array(
373
- 'slug' => 'metform-form',
374
- 'with_front' => true,
375
- 'pages' => false,
376
- 'feeds' => false,
377
- );
378
- $args = array(
379
- 'label' => esc_html__('Forms', 'metform'),
380
- 'description' => esc_html__('metform form', 'metform'),
381
- 'labels' => $labels,
382
- 'supports' => array('title', 'editor', 'elementor', 'permalink'),
383
- 'hierarchical' => true,
384
- 'public' => true,
385
- 'show_ui' => true,
386
- 'show_in_menu' => "metform-menu",
387
- 'menu_icon' => 'dashicons-text-page',
388
- 'menu_position' => 5,
389
- 'show_in_admin_bar' => false,
390
- 'show_in_nav_menus' => false,
391
- 'can_export' => true,
392
- 'has_archive' => false,
393
- 'publicly_queryable' => true,
394
- 'rewrite' => $rewrite,
395
- 'query_var' => true,
396
- 'exclude_from_search' => true,
397
- 'publicly_queryable' => true,
398
- 'capability_type' => 'page',
399
- 'show_in_rest' => false,
400
- 'rest_base' => $this->get_name(),
401
- );
402
-
403
- return $args;
404
- }
405
-
406
- public function flush_rewrites()
407
- {
408
- $name = $this->get_name();
409
- $args = $this->post_type();
410
- register_post_type($name, $args);
411
-
412
- flush_rewrite_rules();
413
- }
414
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/forms/hooks.php DELETED
@@ -1,82 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Forms;
3
- defined( 'ABSPATH' ) || exit;
4
- Class Hooks{
5
-
6
- use \MetForm\Traits\Singleton;
7
-
8
- public function Init(){
9
- add_filter( 'the_content', [ $this, 'get_form_content_on_preview' ] );
10
- add_action( 'admin_init', [ $this, 'add_author_support' ], 10 );
11
- add_filter( 'manage_metform-form_posts_columns', [ $this, 'set_columns' ] );
12
- add_action( 'manage_metform-form_posts_custom_column', [ $this, 'render_column' ], 10, 2 );
13
- }
14
-
15
- public function get_form_content_on_preview($content) {
16
-
17
- if ($GLOBALS['post']->post_type == 'metform-form') {
18
- return \MetForm\Utils\Util::render_form_content($content, get_the_ID());
19
- }
20
- return $content;
21
- }
22
-
23
- public function add_author_support(){
24
- add_post_type_support( 'metform-form', 'author' );
25
- }
26
-
27
- public function set_columns( $columns ) {
28
-
29
- $date_column = $columns['date'];
30
- $author_column = $columns['author'];
31
-
32
- unset( $columns['date'] );
33
- unset( $columns['author'] );
34
-
35
- $columns['shortcode'] = esc_html__( 'Shortcode', 'metform' );
36
- $columns['count'] = esc_html__( 'Entries', 'metform' );
37
- $columns['views_conversion'] = esc_html__( 'Views/ Conversion', 'metform' );
38
- $columns['author'] = esc_html( $author_column );
39
- $columns['date'] = esc_html( $date_column );
40
-
41
- return $columns;
42
- }
43
-
44
- public function render_column( $column, $post_id ) {
45
- switch ( $column ) {
46
- case 'shortcode':
47
- echo '<input class="wp-ui-text-highlight code" type="text" onfocus="this.select();" readonly="readonly" value="'.esc_attr('[metform form_id="'.$post_id.'"]').'" style="width:99%">';
48
- break;
49
- case 'count':
50
- $count = \MetForm\Core\Entries\Action::instance()->get_entry_count($post_id);
51
-
52
- global $wp;
53
- $current_url = admin_url();
54
- $current_url .="edit.php?post_type=metform-entry&form_id=".esc_attr($post_id);
55
-
56
- $rest_url = get_rest_url();
57
- $mf_ex_nonce = wp_create_nonce('wp_rest');
58
- $url = $rest_url."metform/v1/entries/export/".$post_id;
59
- $export_url = \MetForm\Utils\Util::add_param_url($url, "_wpnonce", $mf_ex_nonce);
60
-
61
- echo "<a data-metform-form-id=".esc_attr($post_id)." class='attr-btn attr-btn-primary mf-entry-filter' href=".esc_url($current_url).">".esc_html($count)."</a>";
62
- echo "<a class='attr-btn attr-btn-info mf-entry-export-csv' href=".esc_url($export_url).">".esc_html__('Export CSV', 'metform')."</a>";
63
- break;
64
- case 'views_conversion':
65
- $views = \MetForm\Core\Forms\Action::instance()->get_count_views($post_id);
66
- $views = (int)$views;
67
-
68
- $count = \MetForm\Core\Entries\Action::instance()->get_entry_count($post_id);
69
- $count = (int)$count;
70
-
71
- if($views != 0){
72
- $conversion = ($count*100)/$views;
73
- $conversion = round($conversion, 2);
74
- }else{
75
- $conversion = 0;
76
- }
77
- echo esc_html($views."/ ".$conversion."%");
78
- break;
79
- }
80
- }
81
-
82
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/forms/views/modal-editor.php DELETED
@@ -1,761 +0,0 @@
1
- <?php defined('ABSPATH') || exit; ?>
2
-
3
- <div class="attr-modal attr-fade" id="metform_form_modal" tabindex="-1" role="dialog"
4
- aria-labelledby="metform_form_modalLabel" style="display:none;">
5
- <div class="attr-modal-dialog attr-modal-dialog-centered" id="metform-form-modalinput-form" role="document">
6
- <form action="" mathod="post" id="metform-form-modalinput-settings" data-open-editor="0"
7
- data-editor-url="<?php echo get_admin_url(); ?>" data-nonce="<?php echo wp_create_nonce('wp_rest'); ?>">
8
- <input type="hidden" name="post_author" value="<?php echo get_current_user_id(); ?>">
9
- <div class="attr-modal-content">
10
- <div class="attr-modal-header">
11
- <button type="button" class="attr-close" data-dismiss="modal" aria-label="Close"><span
12
- aria-hidden="true">&times;</span></button>
13
- <h4 class="attr-modal-title" id="metform_form_modalLabel">
14
- <?php esc_html_e('Form Settings', 'metform'); ?></h4>
15
- <div id="message" style="display:none" class="attr-alert attr-alert-success mf-success-msg"></div>
16
- <ul class="attr-nav attr-nav-tabs" role="tablist">
17
- <li role="presentation" class="attr-active"><a href="#mf-general" aria-controls="general"
18
- role="tab"
19
- data-toggle="tab"><?php esc_html_e('General', 'metform'); ?></a>
20
- </li>
21
- <li role="presentation"><a href="#mf-confirmation" aria-controls="confirmation" role="tab"
22
- data-toggle="tab"><?php esc_html_e('Confirmation', 'metform'); ?></a>
23
- </li>
24
- <li role="presentation"><a href="#mf-notification" aria-controls="notification" role="tab"
25
- data-toggle="tab"><?php esc_html_e('Notification', 'metform'); ?></a>
26
- </li>
27
- <li role="presentation"><a href="#mf-integration" aria-controls="integration" role="tab"
28
- data-toggle="tab"><?php esc_html_e('Integration', 'metform'); ?></a>
29
- </li>
30
- <?php if (class_exists('MetForm_Pro\Base\Package')): ?>
31
- <li role="presentation"><a href="#mf-payment" aria-controls="payment" role="tab"
32
- data-toggle="tab"><?php esc_html_e('Payment', 'metform'); ?></a>
33
- </li>
34
- <li role="presentation"><a href="#mf-crm" aria-controls="crm" role="tab"
35
- data-toggle="tab"><?php esc_html_e('CRM', 'metform'); ?></a></li>
36
- <?php endif; ?>
37
-
38
- <?php do_action('mf_form_settings_tab'); ?>
39
- </ul>
40
- </div>
41
-
42
- <div class="attr-tab-content">
43
- <div role="tabpanel" class="attr-tab-pane attr-active" id="mf-general">
44
-
45
- <div class="attr-modal-body" id="metform_form_modal_body">
46
- <div class="mf-input-group">
47
- <label for="attr-input-label"
48
- class="attr-input-label"><?php esc_html_e('Title:', 'metform'); ?></label>
49
- <input type="text" name="form_title" class="mf-form-modalinput-title attr-form-control"
50
- data-default-value="<?php echo esc_html__('New Form # ', 'meform') . time(); ?>">
51
- <span
52
- class='mf-input-help'><?php esc_html_e('This is the form title', 'metform'); ?></span>
53
- </div>
54
-
55
- <div class="mf-input-group">
56
- <label for="attr-input-label"
57
- class="attr-input-label"><?php esc_html_e('Success Message:', 'metform'); ?></label>
58
- <input type="text" name="success_message"
59
- class="mf-form-modalinput-success_message attr-form-control"
60
- data-default-value="<?php esc_html_e('Thank you! Form submitted successfully.', 'metform'); ?>">
61
- <span
62
- class='mf-input-help'><?php esc_html_e('This mesage will be shown after a successful submission.', 'metform'); ?></span>
63
- </div>
64
-
65
- <div class="mf-input-group">
66
- <label class="attr-input-label">
67
- <input type="checkbox" value="1" name="require_login"
68
- class="mf-admin-control-input mf-form-modalinput-require_login">
69
- <span><?php esc_html_e('Required Login:', 'metform'); ?></span>
70
- </label>
71
- <span
72
- class='mf-input-help'><?php esc_html_e('Without login, users can\'t submit the form.', 'metform'); ?></span>
73
- </div>
74
-
75
- <div class="mf-input-group">
76
- <label class="attr-input-label">
77
- <input type="checkbox" value="1" name="capture_user_browser_data"
78
- class="mf-admin-control-input mf-form-modalinput-capture_user_browser_data">
79
- <span><?php esc_html_e('Capture User Browser Data:', 'metform'); ?></span>
80
- </label>
81
- <span
82
- class='mf-input-help'><?php esc_html_e('Store user\'s browser data (ip, browser name, etc)', 'metform'); ?></span>
83
- </div>
84
-
85
- <div class="mf-input-group">
86
- <label class="attr-input-label">
87
- <input type="checkbox" value="1" name="hide_form_after_submission"
88
- class="mf-admin-control-input mf-form-modalinput-hide_form_after_submission">
89
- <span><?php esc_html_e('Hide Form After Submission:', 'metform'); ?></span>
90
- </label>
91
- <span
92
- class='mf-input-help'><?php esc_html_e('After submission, hide the form for preventing multiple submission.', 'metform'); ?></span>
93
- </div>
94
-
95
- <div class="mf-input-group">
96
- <label class="attr-input-label">
97
- <input type="checkbox" value="1" name="store_entries"
98
- class="mf-admin-control-input mf-form-modalinput-store_entries">
99
- <span><?php esc_html_e('Store Entries:', 'metform'); ?></span>
100
- </label>
101
- <span
102
- class='mf-input-help'><?php esc_html_e('Save submitted form data to database.', 'metform'); ?></span>
103
- </div>
104
-
105
- <div class="mf-input-group mf-entry-title">
106
- <label for="attr-input-label"
107
- class="attr-input-label"><?php esc_html_e('Entry Title', 'metform'); ?></label>
108
- <input type="text" name="entry_title" class="mf-entry-title-input attr-form-control"
109
- placeholder="Entry Title">
110
- <span
111
- class="mf-input-help"><?php esc_html_e('Enter here title of this form entries.', 'metform'); ?></span>
112
- </div>
113
-
114
- <div class="mf-input-group">
115
- <div class="mf-input-group-inner">
116
- <label class="attr-input-label">
117
- <input type="checkbox" value="1" name="limit_total_entries_status"
118
- class="mf-admin-control-input mf-form-modalinput-limit_status">
119
- <span><?php esc_html_e('Limit Total Entries:', 'metform'); ?></span>
120
- </label>
121
- <div class="mf-input-group" id='limit_status'>
122
- <input type="number" min="1" name="limit_total_entries"
123
- class="mf-form-modalinput-limit_total_entries attr-form-control">
124
- </div>
125
- </div>
126
- <span
127
- class='mf-input-help'><?php esc_html_e('Limit the total number of submissions for this form.', 'metform'); ?></span>
128
- </div>
129
-
130
- <div class="mf-input-group">
131
- <label class="attr-input-label">
132
- <input type="checkbox" value="1" name="count_views"
133
- class="mf-admin-control-input mf-form-modalinput-count_views">
134
- <span><?php esc_html_e('Count views:', 'metform'); ?></span>
135
- </label>
136
- <span class='mf-input-help'><?php esc_html_e('Track form views.', 'metform'); ?></span>
137
- </div>
138
-
139
- <div class="mf-input-group">
140
- <label class="attr-input-label">
141
- <input type="checkbox" value="1" name="mf_stop_vertical_scrolling"
142
- class="mf-admin-control-input mf-form-modalinput-stop_vertical_scrolling">
143
- <span><?php esc_html_e('Stop Vertical Scrolling:', 'metform'); ?></span>
144
- </label>
145
- <span
146
- class='mf-input-help'><?php esc_html_e('Stop scrolling effect when submitting the form.', 'metform'); ?></span>
147
- </div>
148
-
149
- <div class="mf-input-group">
150
- <label for="attr-input-label"
151
- class="attr-input-label"><?php esc_html_e('Redirect To:', 'metform'); ?></label>
152
- <input type="text" name="redirect_to"
153
- class="mf-form-modalinput-redirect_to attr-form-control"
154
- placeholder="<?php esc_html_e('Redirection link', 'metform'); ?>">
155
- <span
156
- class='mf-input-help'><?php esc_html_e('Users will be redirected to the this link after submission.', 'metform'); ?></span>
157
- </div>
158
-
159
-
160
- </div>
161
-
162
- </div>
163
- <div role="tabpanel" class="attr-tab-pane" id="mf-confirmation">
164
-
165
- <div class="attr-modal-body" id="metform_form_modal_body">
166
-
167
- <div class="mf-input-group">
168
- <label class="attr-input-label">
169
- <input type="checkbox" value="1" name="enable_user_notification"
170
- class="mf-admin-control-input mf-form-user-enable">
171
- <span><?php esc_html_e('Confirmation mail to user :', 'metform'); ?></span>
172
- </label>
173
- <span
174
- class='mf-input-help'><?php esc_html_e('Want to send a submission copy to user by email? Active this one.', 'metform'); ?><strong><?php esc_html_e('The form must have at least one Email widget and it should be required.', 'metform'); ?></strong></span>
175
- </div>
176
-
177
- <div class="mf-input-group mf-form-user-confirmation">
178
- <label for="attr-input-label"
179
- class="attr-input-label"><?php esc_html_e('Email Subject:', 'metform'); ?></label>
180
- <input type="text" name="user_email_subject"
181
- class="mf-form-user-email-subject attr-form-control"
182
- placeholder="<?php esc_html_e('Email subject', 'metform'); ?>">
183
- <span
184
- class='mf-input-help'><?php esc_html_e('Enter here email subject.', 'metform'); ?></span>
185
- </div>
186
-
187
- <div class="mf-input-group mf-form-user-confirmation">
188
- <label for="attr-input-label"
189
- class="attr-input-label"><?php esc_html_e('Email From:', 'metform'); ?></label>
190
- <input type="email" name="user_email_from"
191
- class="mf-form-user-email-from attr-form-control"
192
- placeholder="<?php esc_html_e('From email', 'metform'); ?>">
193
- <span
194
- class='mf-input-help'><?php esc_html_e('Enter the email by which you want to send email to user.', 'metform'); ?></span>
195
- </div>
196
-
197
- <div class="mf-input-group mf-form-user-confirmation">
198
- <label for="attr-input-label"
199
- class="attr-input-label"><?php esc_html_e('Email Reply To:', 'metform'); ?></label>
200
- <input type="email" name="user_email_reply_to"
201
- class="mf-form-user-reply-to attr-form-control"
202
- placeholder="<?php esc_html_e('Reply to email', 'metform'); ?>">
203
- <span
204
- class='mf-input-help'><?php esc_html_e('Enter email where user can reply/ you want to get reply.', 'metform'); ?></span>
205
- </div>
206
-
207
- <div class="mf-input-group mf-form-user-confirmation">
208
- <label for="attr-input-label"
209
- class="attr-input-label"><?php esc_html_e('Thank you message :', 'metform'); ?></label>
210
- <textarea name="user_email_body" id="" class="mf-form-user-email-body attr-form-control"
211
- cols="30" rows="5"
212
- placeholder="<?php esc_html_e('Thank you message!', 'metform'); ?>"></textarea>
213
- <span
214
- class='mf-input-help'><?php esc_html_e('Enter here your message to include it in email body. Which will be send to user.', 'metform'); ?></span>
215
- </div>
216
-
217
- <!-- <div class="mf-input-group">
218
- <label for="attr-input-label" class="attr-input-label"><?php esc_html_e('Email Attached Submission Copy:', 'metform'); ?></label>
219
- <input type="checkbox" value="1" name="user_email_attach_submission_copy" class="mf-admin-control-input mf-form-user-submission-copy">
220
- </div> -->
221
-
222
- </div>
223
-
224
- </div>
225
- <div role="tabpanel" class="attr-tab-pane" id="mf-notification">
226
-
227
- <div class="attr-modal-body" id="metform_form_modal_body">
228
-
229
- <div class="mf-input-group">
230
- <label class="attr-input-label">
231
- <input type="checkbox" value="1" name="enable_admin_notification"
232
- class="mf-admin-control-input mf-form-admin-enable">
233
- <span><?php esc_html_e('Notification mail to admin :', 'metform'); ?></span>
234
- </label>
235
- <span
236
- class='mf-input-help'><?php esc_html_e('Want to send a submission copy to admin by email? Active this one.', 'metform'); ?></span>
237
- </div>
238
-
239
- <div class="mf-input-group mf-form-admin-notification">
240
- <label for="attr-input-label"
241
- class="attr-input-label"><?php esc_html_e('Email Subject:', 'metform'); ?></label>
242
- <input type="text" name="admin_email_subject"
243
- class="mf-form-admin-email-subject attr-form-control"
244
- placeholder="<?php esc_html_e('Email subject', 'metform'); ?>">
245
- <span
246
- class='mf-input-help'><?php esc_html_e('Enter here email subject.', 'metform'); ?></span>
247
- </div>
248
-
249
- <div class="mf-input-group mf-form-admin-notification">
250
- <label for="attr-input-label"
251
- class="attr-input-label"><?php esc_html_e('Email To:', 'metform'); ?></label>
252
- <input type="text" name="admin_email_to"
253
- class="mf-form-admin-email-to attr-form-control"
254
- placeholder="<?php esc_html_e('example@mail.com, example@email.com', 'metform'); ?>">
255
- <span
256
- class='mf-input-help'><?php esc_html_e('Enter admin email where you want to send mail.', 'metform'); ?><strong><?php esc_html_e(' for multiple email addresses please use "," separator.', 'metform'); ?></strong></span>
257
- </div>
258
-
259
- <div class="mf-input-group mf-form-admin-notification">
260
- <label for="attr-input-label"
261
- class="attr-input-label"><?php esc_html_e('Email From:', 'metform'); ?></label>
262
- <input type="text" name="admin_email_from"
263
- class="mf-form-admin-email-from attr-form-control"
264
- placeholder="<?php esc_html_e('Email from', 'metform'); ?>">
265
- <span
266
- class='mf-input-help'><?php esc_html_e('Enter the email by which you want to send email to admin.', 'metform'); ?></span>
267
- </div>
268
-
269
- <div class="mf-input-group mf-form-admin-notification">
270
- <label for="attr-input-label"
271
- class="attr-input-label"><?php esc_html_e('Email Reply To:', 'metform'); ?></label>
272
- <input type="text" name="admin_email_reply_to"
273
- class="mf-form-admin-reply-to attr-form-control"
274
- placeholder="<?php esc_html_e('Email reply to', 'metform'); ?>">
275
- <span
276
- class='mf-input-help'><?php esc_html_e('Enter email where admin can reply/ you want to get reply.', 'metform'); ?></span>
277
- </div>
278
-
279
- <div class="mf-input-group mf-form-admin-notification">
280
- <label for="attr-input-label"
281
- class="attr-input-label"><?php esc_html_e('Admin Note : ', 'metform'); ?></label>
282
- <textarea name="admin_email_body" class="mf-form-admin-email-body attr-form-control"
283
- cols="30" rows="5"
284
- placeholder="<?php esc_html_e('Admin note!', 'metform'); ?>"></textarea>
285
- <span
286
- class='mf-input-help'><?php esc_html_e('Enter here your email body. Which will be send to admin.', 'metform'); ?></span>
287
- </div>
288
- </div>
289
-
290
- </div>
291
- <div role="tabpanel" class="attr-tab-pane" id="mf-integration">
292
-
293
- <div class="attr-modal-body" id="metform_form_modal_body">
294
-
295
- <?php if (class_exists('MetForm_Pro\Core\Integrations\Rest_Api')): ?>
296
- <div class="mf-input-group mf-input-group-inner">
297
- <label class="attr-input-label">
298
- <input type="checkbox" value="1" name="mf_rest_api"
299
- class="mf-admin-control-input mf-form-modalinput-rest_api">
300
- <span><?php esc_html_e('REST API:', 'metform'); ?></span>
301
- </label>
302
- <span
303
- class='mf-input-help'><?php esc_html_e('Send entry data to third party api/webhook', 'metform'); ?></span>
304
- </div>
305
-
306
- <div class="mf-input-group mf-input-rest-api-group">
307
- <div class="mf-rest-api">
308
- <label for="attr-input-label"
309
- class="attr-input-label"><?php esc_html_e('URL/Webhook:', 'metform'); ?></label>
310
- <input type="text" name="mf_rest_api_url"
311
- class="mf-rest-api-url attr-form-control"
312
- placeholder="<?php esc_html_e('Rest api url/webhook', 'metform'); ?>">
313
- <span
314
- class='mf-input-help'><?php esc_html_e('Enter rest api url/webhook here.', 'metform'); ?></span>
315
- </div>
316
- <div class="mf-rest-api-key">
317
- <div id='rest_api_method'>
318
- <select name="mf_rest_api_method"
319
- class="mf-rest-api-method attr-form-control">
320
- <option value="POST"><?php esc_html_e('POST', 'metform'); ?></option>
321
- <option value="GET"><?php esc_html_e('GET', 'metform'); ?></option>
322
- </select>
323
- </div>
324
- </div>
325
-
326
- </div>
327
-
328
- <?php endif ?>
329
-
330
- <?php if (class_exists('\MetForm\Core\Integrations\Mail_Chimp')): ?>
331
- <div class="mf-input-group">
332
- <label class="attr-input-label">
333
- <input type="checkbox" value="1" name="mf_mail_chimp"
334
- class="mf-admin-control-input mf-form-modalinput-mail_chimp">
335
- <span><?php esc_html_e('Mail Chimp:', 'metform'); ?></span>
336
- </label>
337
- <span
338
- class='mf-input-help'><?php esc_html_e('Integrate mailchimp with this form.', 'metform'); ?><strong><?php esc_html_e('The form must have at least one Email widget and it should be required. ', 'metform'); ?><a
339
- target="_blank"
340
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings'; ?>"><?php esc_html_e('Configure Mail Chimp.', 'metform'); ?></a></strong></span>
341
- </div>
342
-
343
- <div class="mf-input-group mf-mailchimp">
344
- <label for="attr-input-label"
345
- class="attr-input-label"><?php esc_html_e('MailChimp List ID:', 'metform'); ?>
346
- <span
347
- class="dashicons dashicons-update metfrom-btn-refresh-mailchimp-list"></span></label>
348
-
349
- <select class="attr-form-control mailchimp_list">
350
-
351
- </select>
352
-
353
- <input type="hidden" name="mf_mailchimp_list_id"
354
- class="mf-mailchimp-list-id attr-form-control"
355
- placeholder="<?php esc_html_e('Mailchimp contact list id', 'metform'); ?>">
356
-
357
- </div>
358
-
359
- <?php endif ?>
360
-
361
-
362
- <?php if (did_action('xpd_metform_pro/plugin_loaded')):
363
-
364
- if (class_exists('\MetForm_Pro\Core\Integrations\Mail_Poet')): ?>
365
-
366
- <div class="mf-input-group">
367
- <label class="attr-input-label">
368
- <input type="checkbox" value="1" name="mf_mail_poet"
369
- class="mf-admin-control-input mf-form-modalinput-mail_poet">
370
- <span><?php esc_html_e('MailPoet:', 'metform'); ?></span>
371
- </label>
372
- <span class='mf-input-help'>
373
- <?php esc_html_e('Integrate MailPoet with this form.', 'metform'); ?>
374
- <strong><?php esc_html_e('The form must have at least one Email widget and it should be required. ', 'metform'); ?>
375
- <a target="_blank"
376
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings#mf-newsletter_integration'; ?>">
377
- <?php esc_html_e('Configure MailPoet.', 'metform'); ?>
378
- </a>
379
- </strong>
380
- </span>
381
- </div>
382
-
383
- <div class="mf-input-group mf-mail-poet">
384
- <label for="attr-input-label"
385
- class="attr-input-label"><?php esc_html_e('MailPoet List ID:', 'metform'); ?></label>
386
-
387
- <select name="mf_mail_poet_list_id"
388
- class="mf-mail-poet-list-id attr-form-control">
389
- <option value=""> None</option>
390
- </select>
391
-
392
- <span
393
- class='mf-input-help'><?php esc_html_e('Enter here MailPoet list id. ', 'metform'); ?>
394
- <a id="met_form_mail_poet_get_list"
395
- href="#"><?php esc_html_e('Refresh List', 'metform'); ?></a>
396
- <span id="mf_mail_poet_info"></span>
397
- </span>
398
- </div>
399
-
400
-
401
- <?php endif; ?>
402
-
403
- <div class="mf-input-group">
404
- <label class="attr-input-label">
405
- <input type="checkbox" value="1" name="mf_mail_aweber"
406
- class="mf-admin-control-input mf-form-modalinput-mail_aweber">
407
- <span><?php esc_html_e('Aweber:', 'metform'); ?></span>
408
- </label>
409
- <span
410
- class='mf-input-help'><?php esc_html_e('Integrate aweber with this form.', 'metform'); ?><strong><?php esc_html_e('The form must have at least one Email widget and it should be required. ', 'metform'); ?><a
411
- target="_blank"
412
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings#mf-newsletter_integration'; ?>"><?php esc_html_e('Configure aweber.', 'metform'); ?></a></strong></span>
413
- </div>
414
-
415
- <div class="mf-input-group mf-aweber">
416
- <label for="attr-input-label"
417
- class="attr-input-label"><?php esc_html_e('Aweber List ID:', 'metform'); ?></label>
418
-
419
- <select name="mf_aweber_list_id" class="mf-aweber-list-id attr-form-control">
420
- <option value=""> None</option>
421
- </select>
422
-
423
- <span
424
- class='mf-input-help'><?php esc_html_e('Enter here aweber list id. ', 'metform'); ?>
425
- <a id="met_form_aweber_get_list"
426
- href="#"><?php esc_html_e('Refresh List', 'metform'); ?></a>
427
- <span id="mf_aweber_info"></span>
428
- </span>
429
- </div>
430
-
431
-
432
- <div class="mf-input-group">
433
- <label class="attr-input-label">
434
- <input type="checkbox" value="1" name="mf_convert_kit"
435
- class="mf-admin-control-input mf-form-modalinput-ckit"/>
436
- <span><?php esc_html_e('ConvertKit:', 'metform'); ?></span>
437
- </label>
438
- <span
439
- class='mf-input-help'><?php esc_html_e('Integrate convertKit with this form.', 'metform'); ?><strong><?php esc_html_e('The form must have at least one Email widget and it should be required. ', 'metform'); ?><a
440
- target="_blank"
441
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings'; ?>"><?php esc_html_e('Configure ConvertKit.', 'metform'); ?></a></strong></span>
442
- </div>
443
-
444
- <div class="mf-input-group mf-ckit">
445
- <label for="attr-input-label"
446
- class="attr-input-label"><?php esc_html_e('ConvertKit Forms ID:', 'metform'); ?></label>
447
-
448
- <select name="mf_ckit_list_id" class="attr-form-control mf-ckit-list-id">
449
- <option value=""> None</option>
450
- </select>
451
-
452
- <span
453
- class='mf-input-help'><?php esc_html_e('Enter here ConvertKit form id. ', 'metform'); ?>
454
- <a id="met_form_ckit_get_list" href="#">
455
- <?php esc_html_e('Refresh List', 'metform'); ?>
456
- </a>
457
- </span>
458
- </div>
459
-
460
-
461
- <?php endif ?>
462
-
463
-
464
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Email\Getresponse\Get_Response')): ?>
465
- <div class="mf-input-group">
466
- <label class="attr-input-label">
467
- <input type="checkbox" value="1" name="mf_get_response"
468
- class="mf-admin-control-input mf-form-modalinput-get_response">
469
- <span><?php esc_html_e('GetResponse:', 'metform'); ?></span>
470
- </label>
471
-
472
- <span
473
- class='mf-input-help'><?php esc_html_e('Integrate GetResponse with this form.', 'metform'); ?><strong><?php esc_html_e('The form must have at least one Email widget and it should be required. ', 'metform'); ?><a
474
- target="_blank"
475
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings'; ?>"><?php esc_html_e('Configure GetResponse.', 'metform'); ?></a></strong></span>
476
-
477
- </div>
478
-
479
-
480
- <div class="mf-input-group mf-get_response">
481
- <label for="attr-input-label"
482
- class="attr-input-label"><?php esc_html_e('GetResponse List ID:', 'metform'); ?>
483
- <span
484
- class="dashicons dashicons-update metfrom-btn-refresh-get-response-list"></span></label>
485
-
486
-
487
- <select class="attr-form-control get-response-campaign-list">
488
-
489
- </select>
490
-
491
- <input type="hidden" name="mf_get_response_list_id"
492
- class="mf-get_response-list-id attr-form-control"
493
- placeholder="<?php esc_html_e('GetResponse contact list id', 'metform'); ?>">
494
- <span
495
- class='mf-input-help'><?php esc_html_e('Enter here GetResponse list id. ', 'metform'); ?></span>
496
- </div>
497
-
498
- <?php endif; ?>
499
-
500
-
501
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Email\Activecampaign\Active_Campaign')): ?>
502
-
503
- <div class="mf-input-group">
504
- <label class="attr-input-label">
505
- <input type="checkbox" value="1" name="mf_active_campaign"
506
- class="mf-admin-control-input mf-form-modalinput-active_campaign">
507
- <span><?php esc_html_e('ActiveCampaign:', 'metform'); ?></span>
508
- </label>
509
- <span
510
- class='mf-input-help'><?php esc_html_e('Integrate ActiveCampaign with this form.', 'metform'); ?><strong><?php esc_html_e('The form must have at least one Email widget and it should be required. ', 'metform'); ?><a
511
- target="_blank"
512
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings'; ?>"><?php esc_html_e('Configure ActiveCampaign.', 'metform'); ?></a></strong></span>
513
-
514
- </div>
515
-
516
-
517
- <?php endif ?>
518
-
519
-
520
- <?php
521
- if (function_exists('mailster')) {
522
- if (class_exists('\MetForm_Pro\Core\Integrations\Email\Mailster\Mailster')):
523
- ?>
524
- <div class="mf-input-group">
525
-
526
- <label class="attr-input-label">
527
- <input type="checkbox" value="1" name="mf_mailster"
528
- class="mf-admin-control-input mf-form-modalinput-mailster">
529
- <span><?php esc_html_e('Mailster:', 'metform'); ?></span>
530
- </label>
531
-
532
- <span class='mf-input-help'><?php esc_html_e('Integrate Mailster with this form.', 'metform'); ?><strong><?php esc_html_e('The form must have at least one Email widget and it should be required. ', 'metform'); ?></strong></span>
533
-
534
- </div>
535
-
536
-
537
- <div class="mf-input-group mf-mailster-forms">
538
- <label for="attr-input-label"
539
- class="attr-input-label"><?php esc_html_e('Mailster Forms', 'metform'); ?></label>
540
-
541
- <select name="mf_mailster_list_id"
542
- class="mf-mailster-list-id attr-form-control">
543
-
544
- <?php
545
-
546
- $forms = mailster('forms')->get();
547
- foreach ($forms as $form):
548
- ?>
549
- <option value="<?php esc_html_e($form->ID); ?>"><?php esc_html_e($form->name); ?></option>
550
- <?php
551
- endforeach;
552
-
553
- ?>
554
- </select>
555
- </div>
556
- <div class="mf-input-group mf-mailster-settings-section">
557
-
558
-
559
- </div>
560
-
561
- <?php
562
- endif;
563
- }
564
- ?>
565
-
566
-
567
-
568
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Zapier')): ?>
569
- <div class="mf-input-group">
570
- <label class="attr-input-label">
571
- <input type="checkbox" value="1" name="mf_zapier"
572
- class="mf-admin-control-input mf-form-modalinput-zapier">
573
- <span><?php esc_html_e('Zapier:', 'metform'); ?></span>
574
- </label>
575
- <span
576
- class='mf-input-help'><?php esc_html_e('Integrate zapier with this form.', 'metform'); ?><strong><?php esc_html_e('The form must have at least one Email widget and it should be required.', 'metform'); ?></strong></span>
577
- </div>
578
-
579
- <div class="mf-input-group mf-zapier">
580
- <label for="attr-input-label"
581
- class="attr-input-label"><?php esc_html_e('Zapier webhook:', 'metform'); ?></label>
582
- <input type="text" name="mf_zapier_webhook"
583
- class="mf-zapier-web-hook attr-form-control"
584
- placeholder="<?php esc_html_e('Zapier webhook', 'metform'); ?>">
585
- <span
586
- class='mf-input-help'><?php esc_html_e('Enter here zapier web hook.', 'metform'); ?></span>
587
- </div>
588
-
589
- <?php endif ?>
590
-
591
- <?php if (class_exists('\MetForm\Core\Integrations\Slack')): ?>
592
- <div class="mf-input-group">
593
- <label class="attr-input-label">
594
- <input type="checkbox" value="1" name="mf_slack"
595
- class="mf-admin-control-input mf-form-modalinput-slack">
596
- <span><?php esc_html_e('Slack:', 'metform'); ?></span>
597
- </label>
598
- <span
599
- class='mf-input-help'><?php esc_html_e('Integrate slack with this form.', 'metform'); ?><strong><?php esc_html_e('slack info.', 'metform'); ?></strong></span>
600
- </div>
601
-
602
- <div class="mf-input-group mf-slack">
603
- <label for="attr-input-label"
604
- class="attr-input-label"><?php esc_html_e('Slack webhook:', 'metform'); ?></label>
605
- <input type="text" name="mf_slack_webhook"
606
- class="mf-slack-web-hook attr-form-control"
607
- placeholder="<?php esc_html_e('Slack webhook', 'metform'); ?>">
608
- <span
609
- class='mf-input-help'><?php esc_html_e('Enter here slack web hook.', 'metform'); ?><a
610
- href="http://slack.com/apps/A0F7XDUAZ-incoming-webhooks"><?php esc_html_e('create from here', 'metform'); ?></a></span>
611
- </div>
612
-
613
- <?php endif ?>
614
-
615
- </div>
616
-
617
- </div>
618
-
619
- <?php if (class_exists('MetForm_Pro\Base\Package')): ?>
620
- <div role="tabpanel" class="attr-tab-pane" id="mf-payment">
621
- <div class="attr-modal-body" id="metform_form_modal_body">
622
- <!-- <div class="mf-input-group">
623
- <label for="attr-input-label"
624
- class="attr-input-label"><?php esc_html_e('Success url:', 'metform'); ?></label>
625
- <input type="text" name="success_url"
626
- class="mf-form-modalinput-success_url attr-form-control"
627
- placeholder="<?php esc_html_e('Success url', 'metform'); ?>">
628
- <span
629
- class='mf-input-help'><?php esc_html_e('Users will be redirected to the this link after successfully form submission.', 'metform'); ?></span>
630
- </div>
631
-
632
- <div class="mf-input-group">
633
- <label for="attr-input-label"
634
- class="attr-input-label"><?php esc_html_e('Failed/ Cancel url:', 'metform'); ?></label>
635
- <input type="text" name="mf_payment_failed_cancel_url"
636
- class="mf-form-modalinput-mf_payment_failed_cancel_url attr-form-control"
637
- placeholder="<?php esc_html_e('Failed/Cancel url', 'metform'); ?>">
638
- <span
639
- class='mf-input-help'><?php esc_html_e('Users will be redirected to the this link after any failure/ cancelation of form submission.', 'metform'); ?></span>
640
- </div> -->
641
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Paypal')): ?>
642
- <div class="mf-input-group">
643
- <label class="attr-input-label">
644
- <input type="checkbox" value="1" name="mf_paypal"
645
- class="mf-admin-control-input mf-form-modalinput-paypal">
646
- <span><?php esc_html_e('Paypal:', 'metform'); ?></span>
647
- </label>
648
- <span
649
- class='mf-input-help'><?php esc_html_e('Integrate paypal payment with this form.', 'metform'); ?><a
650
- target="_blank"
651
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings'; ?>"><?php esc_html_e('Configure paypal payment.', 'metform'); ?></a></span>
652
- </div>
653
- <?php endif ?>
654
-
655
-
656
- <?php if (class_exists('\MetForm_Pro\Core\Integrations\Payment\Stripe')): ?>
657
- <div class="mf-input-group">
658
- <label class="attr-input-label">
659
- <input type="checkbox" value="1" name="mf_stripe"
660
- class="mf-admin-control-input mf-form-modalinput-stripe">
661
- <span><?php esc_html_e('Stripe:', 'metform'); ?></span>
662
- </label>
663
- <span
664
- class='mf-input-help'><?php esc_html_e('Integrate stripe payment with this form. ', 'metform'); ?><a
665
- target="_blank"
666
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings'; ?>"><?php esc_html_e('Configure stripe payment.', 'metform'); ?></a></span>
667
- </div>
668
- <?php endif ?>
669
-
670
-
671
- </div>
672
-
673
- </div>
674
-
675
- <div role="tabpanel" class="attr-tab-pane" id="mf-crm">
676
-
677
- <div class="attr-modal-body" id="metform_form_modal_body">
678
-
679
- <div class="mf-input-group">
680
- <label class="attr-input-label">
681
- <input type="checkbox" value="1" name="mf_hubspot"
682
- class="mf-admin-control-input mf-hubsopt">
683
- <span><?php esc_html_e('Hubspot Contact:', 'metform'); ?></span>
684
- </label>
685
- <span
686
- class='mf-input-help'><?php esc_html_e('Integrate hubspot with this form. ', 'metform'); ?><a
687
- target="_blank"
688
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings'; ?>"><?php esc_html_e('Configure Hubspot.', 'metform'); ?></a></span>
689
- </div>
690
-
691
- <div class="mf-input-group">
692
-
693
- <label class="attr-input-label">
694
- <input type="checkbox" value="1" name="mf_hubspot_forms"
695
- class="mf-admin-control-input mf-hubspot-forms">
696
- <span><?php esc_html_e('Hubspot Forms:', 'metform'); ?></span>
697
- </label>
698
-
699
-
700
- <div class="hubspot_forms_section">
701
-
702
- <label class="attr-input-label">
703
-
704
- <span><?php esc_html_e('Fetch hubspot forms'); ?><span
705
- class="dashicons dashicons-update metfrom-btn-refresh-hubsopt-list"></span></span>
706
- </label>
707
-
708
- <select name='hubspot_forms' class="attr-form-control hubspot_forms">
709
-
710
- </select>
711
-
712
- <input type="hidden" class="mf_hubspot_form_guid" name="mf_hubspot_form_guid">
713
- <input type="hidden" class="mf_hubspot_form_portalId"
714
- name="mf_hubspot_form_portalId">
715
-
716
- <div id="mf-hubsopt-fileds"></div>
717
-
718
- </div>
719
-
720
-
721
- </div>
722
-
723
- <!-- Zoho integration -->
724
-
725
-
726
- <div class="mf-input-group">
727
- <label class="attr-input-label">
728
- <input type="checkbox" value="1" name="mf_zoho"
729
- class="mf-admin-control-input mf-zoho">
730
- <span><?php esc_html_e('Zoho Contact:', 'metform'); ?></span>
731
- </label>
732
- <span
733
- class='mf-input-help'><?php esc_html_e('Integrate Zoho contacts with this form. ', 'metform'); ?><a
734
- target="_blank"
735
- href="<?php echo get_dashboard_url() . 'admin.php?page=metform-menu-settings'; ?>"><?php esc_html_e('Configure Zoho.', 'metform'); ?></a></span>
736
- </div>
737
-
738
- </div>
739
-
740
- </div>
741
-
742
- <?php endif; ?>
743
-
744
- <?php do_action('mf_form_settings_tab_content'); ?>
745
-
746
- </div>
747
-
748
- <div class="attr-modal-footer">
749
- <button type="button" class="attr-btn attr-btn-default metform-form-save-btn-editor"><img
750
- class="form-editor-icon"
751
- src="<?php echo \MetForm\Plugin::instance()->public_url() . 'assets/img/elementor-edit-logo.png'; ?>"><?php esc_html_e('Edit content', 'metform'); ?>
752
- </button>
753
- <button type="submit"
754
- class="attr-btn attr-btn-primary metform-form-save-btn"><?php esc_html_e('Save changes', 'metform'); ?></button>
755
- </div>
756
-
757
- <div class="mf-spinner"></div>
758
- </div>
759
- </form>
760
- </div>
761
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/integrations/Mail_Adapter.php DELETED
@@ -1,18 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Integrations;
4
-
5
-
6
- class Mail_Adapter implements Mail_Adapter_Contract {
7
-
8
-
9
-
10
- public function get_token() {
11
-
12
- }
13
-
14
-
15
- public function get_adapter(){
16
-
17
- }
18
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/integrations/Mail_Adapter_Contract.php DELETED
@@ -1,13 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Integrations;
4
-
5
-
6
- interface Mail_Adapter_Contract {
7
-
8
-
9
- public function get_token();
10
-
11
- public function get_adapter();
12
-
13
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/integrations/google-recaptcha.php DELETED
@@ -1,85 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Integrations;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- class Google_Recaptcha {
6
-
7
- use \MetForm\Traits\Singleton;
8
-
9
- private $return;
10
-
11
- public function verify_captcha_v2( $form_data, $form_settings ){
12
-
13
- $secretKey = ((isset($form_settings['mf_recaptcha_secret_key']) && ($form_settings['mf_recaptcha_secret_key'] != '')) ? $form_settings['mf_recaptcha_secret_key'] : '');
14
-
15
- $captcha = (isset($form_data['g-recaptcha-response']) ? $form_data['g-recaptcha-response'] : '');
16
-
17
- $url = 'https://www.google.com/recaptcha/api/siteverify';
18
- $data = array(
19
- 'secret' => $secretKey,
20
- 'response' => $captcha,
21
- 'remoteip' => $_SERVER['REMOTE_ADDR']
22
- );
23
-
24
- $curlConfig = array(
25
- CURLOPT_URL => $url,
26
- CURLOPT_POST => true,
27
- CURLOPT_RETURNTRANSFER => true,
28
- CURLOPT_POSTFIELDS => $data
29
- );
30
-
31
- $ch = curl_init();
32
- curl_setopt_array($ch, $curlConfig);
33
- $response = curl_exec($ch);
34
- curl_close($ch);
35
-
36
- $responseKeys = json_decode($response,true);
37
- $this->return['responseKeys'] = $responseKeys;
38
-
39
- if($responseKeys["success"]) {
40
- $this->return['status'] = 1;
41
- } else {
42
- $this->return['status'] = 0;
43
- $this->return['error'] = esc_html__('Captcha is not verified.','metform');
44
- }
45
-
46
- return $this->return;
47
- }
48
-
49
- public function verify_captcha_v3( $form_data, $form_settings ){
50
-
51
- $secretKey = ((isset($form_settings['mf_recaptcha_secret_key_v3']) && ($form_settings['mf_recaptcha_secret_key_v3'] != '')) ? $form_settings['mf_recaptcha_secret_key_v3'] : '');
52
-
53
- $captcha = (isset($form_data['g-recaptcha-response-v3']) ? $form_data['g-recaptcha-response-v3'] : '');
54
-
55
- $url = 'https://www.google.com/recaptcha/api/siteverify';
56
- $data = array(
57
- 'secret' => $secretKey,
58
- 'response' => $captcha,
59
- );
60
-
61
- $curlConfig = array(
62
- CURLOPT_URL => $url,
63
- CURLOPT_POST => true,
64
- CURLOPT_POSTFIELDS => $data,
65
- CURLOPT_RETURNTRANSFER => true,
66
- );
67
-
68
- $ch = curl_init();
69
- curl_setopt_array($ch, $curlConfig);
70
- $response = curl_exec($ch);
71
- curl_close($ch);
72
-
73
- $responseKeys = json_decode($response,true);
74
- $this->return['responseKeys'] = $responseKeys;
75
-
76
- if($responseKeys["success"]) {
77
- $this->return['status'] = 1;
78
- } else {
79
- $this->return['status'] = 0;
80
- $this->return['error'] = esc_html__('Captcha is not verified.','metform');
81
- }
82
-
83
- return $this->return;
84
- }
85
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/integrations/mail-chimp.php DELETED
@@ -1,80 +0,0 @@
1
- <?php
2
-
3
- namespace MetForm\Core\Integrations;
4
-
5
- defined('ABSPATH') || exit;
6
-
7
- class Mail_Chimp
8
- {
9
-
10
- public function call_api($form_data, $settings)
11
- {
12
-
13
- $return = [];
14
- $auth = [
15
- 'api_key' => ($settings['auth']['mf_mailchimp_api_key'] != '') ? $settings['auth']['mf_mailchimp_api_key'] : null,
16
- 'list_id' => ($settings['auth']['mf_mailchimp_list_id'] != '') ? $settings['auth']['mf_mailchimp_list_id'] : null,
17
-
18
- ];
19
-
20
- $data = [
21
- 'email_address' => (isset($form_data[$settings['email_name']]) ? $form_data[$settings['email_name']] : ''),
22
- 'status' => 'subscribed',
23
- 'status_if_new' => 'subscribed',
24
- 'merge_fields' => [
25
- 'FNAME' => (isset($form_data['mf-listing-fname']) ? $form_data['mf-listing-fname'] : ''),
26
- 'LNAME' => (isset($form_data['mf-listing-lname']) ? $form_data['mf-listing-lname'] : ''),
27
- ],
28
- ];
29
- $server = explode('-', $auth['api_key']);
30
- $url = 'https://' . $server[1] . '.api.mailchimp.com/3.0/lists/' . $auth['list_id'] . '/members/';
31
-
32
- $response = wp_remote_post(
33
- $url,
34
- [
35
- 'method' => 'POST',
36
- 'data_format' => 'body',
37
- 'timeout' => 45,
38
- 'headers' => [
39
-
40
- 'Authorization' => 'apikey ' . $auth['api_key'],
41
- 'Content-Type' => 'application/json; charset=utf-8'
42
- ],
43
- 'body' => json_encode($data)
44
- ]
45
- );
46
-
47
- if (is_wp_error($response)) {
48
- $error_message = $response->get_error_message();
49
- $return['status'] = 0;
50
- $return['msg'] = "Something went wrong: " . esc_html($error_message);
51
- } else {
52
- $return['status'] = 1;
53
- $return['msg'] = esc_html__('Your data inserted on ActiveCampaign.', 'metform');
54
- }
55
-
56
- return $return;
57
- }
58
-
59
- public static function get_list($api_key){
60
-
61
- $server = explode('-',$api_key);
62
-
63
- $url = 'https://'.$server[1].'.api.mailchimp.com/3.0/lists';
64
-
65
- $response = wp_remote_post( $url, [
66
- 'method' => 'GET',
67
- 'data_format' => 'body',
68
- 'timeout' => 45,
69
- 'headers' => [
70
-
71
- 'Authorization' => 'apikey '.$api_key,
72
- 'Content-Type' => 'application/json; charset=utf-8'
73
- ],
74
- 'body' => ''
75
- ]
76
- );
77
-
78
- return $response;
79
- }
80
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/core/integrations/provider/aweber/test DELETED
File without changes
trunk/core/integrations/slack.php DELETED
@@ -1,50 +0,0 @@
1
- <?php
2
- namespace MetForm\Core\Integrations;
3
- defined( 'ABSPATH' ) || exit;
4
-
5
- class Slack {
6
-
7
- public function call_webhook( $form_data, $settings ){
8
- $msg = [];
9
- $data = [
10
- "text" => "New form submitted.",
11
- "pretext" => "from slack Webhook",
12
- "color" => "#36a64f",
13
- "fields" => [
14
- [
15
- "title" => "First Name",
16
- "value" => isset($form_data["mf-listing-fname"]) ? $form_data["mf-listing-fname"] : '',
17
- ],
18
- [
19
- "title" => "Last Name",
20
- "value" => isset($form_data["mf-listing-lname"]) ? $form_data["mf-listing-lname"] : '',
21
- ],
22
- [
23
- "title" => "Email",
24
- "value" => isset($form_data[$settings['email_name']]) ? $form_data[$settings['email_name']] : '',
25
- ],
26
- ],
27
- ];
28
-
29
- $status = wp_remote_post( $settings['url'], array(
30
- 'method' => 'POST',
31
- 'timeout' => 30,
32
- 'redirection' => 5,
33
- 'httpversion' => '1.0',
34
- 'blocking' => true,
35
- 'headers' => array(),
36
- 'body' => json_encode($data),
37
- 'cookies' => array()
38
- )
39
- );
40
-
41
- if(is_wp_error($status)){
42
- $msg['status'] = 0;
43
- $msg['msg'] = "Something went wrong : ".$status->get_error_message();
44
- }else{
45
- $msg['status'] = 1;
46
- $msg['msg'] = esc_html__('Your data inserted on slack.', 'metform');
47
- }
48
- return $msg;
49
- }
50
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
trunk/languages/metform.pot DELETED
@@ -1,2913 +0,0 @@
1
- #, fuzzy
2
- msgid ""
3
- msgstr ""
4
- "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
- "Project-Id-Version: MetForm\n"
6
- "POT-Creation-Date: 2020-05-05 20:23+0600\n"
7
- "PO-Revision-Date: 2020-05-05 20:23+0600\n"
8
- "Last-Translator: \n"
9
- "Language-Team: \n"
10
- "MIME-Version: 1.0\n"
11
- "Content-Type: text/plain; charset=UTF-8\n"
12
- "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 2.3\n"
14
- "X-Poedit-Basepath: ..\n"
15
- "X-Poedit-Flags-xgettext: --add-comments=translators:\n"
16
- "X-Poedit-WPHeader: metform.php\n"
17
- "X-Poedit-SourceCharset: UTF-8\n"
18
- "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
19
- "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
20
- "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
21
- "X-Poedit-SearchPath-0: .\n"
22
- "X-Poedit-SearchPathExcluded-0: *.min.js\n"
23
-
24
- #. Plugin Name of the plugin/theme
25
- #: controls/form-editor-modal.php:12 plugin.php:242 plugin.php:243
26
- #: widgets/form.php:16
27
- msgid "MetForm"
28
- msgstr ""
29
-
30
- #: controls/form-editor-modal.php:14
31
- msgid "Form settings"
32
- msgstr ""
33
-
34
- #: controls/form-editor-modal.php:15
35
- msgid "Update & Close"
36
- msgstr ""
37
-
38
- #: controls/form-editor-modal.php:20 controls/form-editor-modal.php:21
39
- #: controls/form-picker-modal.php:93
40
- msgid "Close"
41
- msgstr ""
42
-
43
- #: controls/form-editor-modal.php:46
44
- msgid "Loading"
45
- msgstr ""
46
-
47
- #: controls/form-picker-modal.php:12
48
- msgid "Select Form"
49
- msgstr ""
50
-
51
- #: controls/form-picker-modal.php:13
52
- msgid "Select saved form"
53
- msgstr ""
54
-
55
- #: controls/form-picker-modal.php:23
56
- msgid "New"
57
- msgstr ""
58
-
59
- #: controls/form-picker-modal.php:24
60
- msgid "Create new form"
61
- msgstr ""
62
-
63
- #: controls/form-picker-modal.php:37
64
- msgid "Enter a form name"
65
- msgstr ""
66
-
67
- #: controls/form-picker-modal.php:70
68
- msgid "Buy Pro"
69
- msgstr ""
70
-
71
- #: controls/form-picker-modal.php:74
72
- msgid "Demo"
73
- msgstr ""
74
-
75
- #: controls/form-picker-modal.php:89
76
- msgid "Edit form"
77
- msgstr ""
78
-
79
- #: controls/form-picker-modal.php:91
80
- msgid "Save & close"
81
- msgstr ""
82
-
83
- #: controls/form-picker-utils.php:33
84
- msgid "Edit Form Content"
85
- msgstr ""
86
-
87
- #: controls/form-picker-utils.php:33
88
- msgid "Edit"
89
- msgstr ""
90
-
91
- #: controls/form-picker-utils.php:40
92
- msgid "No content is added yet."
93
- msgstr ""
94
-
95
- #: core/admin/base.php:28 traits/button-controls.php:37
96
- #: widgets/checkbox/checkbox.php:217 widgets/date/date.php:52
97
- #: widgets/email/email.php:48 widgets/file-upload/file-upload.php:79
98
- #: widgets/listing-fname/listing-fname.php:48
99
- #: widgets/listing-lname/listing-lname.php:48
100
- #: widgets/listing-optin/listing-optin.php:156
101
- #: widgets/multi-select/multi-select.php:123 widgets/number/number.php:48
102
- #: widgets/password/password.php:48 widgets/radio/radio.php:218
103
- #: widgets/range/range.php:48 widgets/rating/rating.php:48
104
- #: widgets/select/select.php:123 widgets/summary/summary.php:48
105
- #: widgets/switch/switch.php:65 widgets/telephone/telephone.php:48
106
- #: widgets/text/text.php:48 widgets/textarea/textarea.php:49
107
- #: widgets/time/time.php:52 widgets/url/url.php:49
108
- msgid "Settings"
109
- msgstr ""
110
-
111
- #: core/admin/views/settings.php:21 core/admin/views/settings.php:72
112
- msgid "Dashboard"
113
- msgstr ""
114
-
115
- #: core/admin/views/settings.php:22
116
- msgid "All dashboard info here"
117
- msgstr ""
118
-
119
- #: core/admin/views/settings.php:30 core/admin/views/settings.php:294
120
- #: core/forms/views/modal-editor.php:18
121
- msgid "General"
122
- msgstr ""
123
-
124
- #: core/admin/views/settings.php:31
125
- msgid "All General info here"
126
- msgstr ""
127
-
128
- #: core/admin/views/settings.php:40 core/admin/views/settings.php:406
129
- #: core/entries/meta-data.php:221 core/forms/views/modal-editor.php:27
130
- msgid "Payment"
131
- msgstr ""
132
-
133
- #: core/admin/views/settings.php:41
134
- msgid "All payment info here"
135
- msgstr ""
136
-
137
- #: core/admin/views/settings.php:49 core/admin/views/settings.php:530
138
- msgid "Newsletter Integration"
139
- msgstr ""
140
-
141
- #: core/admin/views/settings.php:50
142
- msgid "All newsletter integration info here"
143
- msgstr ""
144
-
145
- #: core/admin/views/settings.php:73 core/admin/views/settings.php:295
146
- #: core/admin/views/settings.php:407 core/admin/views/settings.php:532
147
- msgid "Save Changes"
148
- msgstr ""
149
-
150
- #: core/admin/views/settings.php:83
151
- msgid "Top Notch"
152
- msgstr ""
153
-
154
- #: core/admin/views/settings.php:84
155
- msgid "Features"
156
- msgstr ""
157
-
158
- #: core/admin/views/settings.php:85 core/admin/views/settings.php:144
159
- msgid "features"
160
- msgstr ""
161
-
162
- #: core/admin/views/settings.php:87 core/admin/views/settings.php:146
163
- #: core/admin/views/settings.php:220
164
- msgid ""
165
- "Get started by spending some time with the documentation to get familiar "
166
- "with ElementsKit."
167
- msgstr ""
168
-
169
- #: core/admin/views/settings.php:95 core/admin/views/settings.php:154
170
- msgid "Easy to use"
171
- msgstr ""
172
-
173
- #: core/admin/views/settings.php:97 core/admin/views/settings.php:104
174
- #: core/admin/views/settings.php:111 core/admin/views/settings.php:118
175
- #: core/admin/views/settings.php:125 core/admin/views/settings.php:132
176
- msgid ""
177
- "Get started by spending some time with the documentation to get familiar "
178
- "with MetForm"
179
- msgstr ""
180
-
181
- #: core/admin/views/settings.php:102
182
- msgid "Moden Typography"
183
- msgstr ""
184
-
185
- #: core/admin/views/settings.php:109 core/admin/views/settings.php:160
186
- msgid "Perfectly Match"
187
- msgstr ""
188
-
189
- #: core/admin/views/settings.php:116
190
- msgid "Dynamic Forms"
191
- msgstr ""
192
-
193
- #: core/admin/views/settings.php:123
194
- msgid "Create Faster"
195
- msgstr ""
196
-
197
- #: core/admin/views/settings.php:130
198
- msgid "Awesome Layout"
199
- msgstr ""
200
-
201
- #: core/admin/views/settings.php:142
202
- msgid "What included with Free &"
203
- msgstr ""
204
-
205
- #: core/admin/views/settings.php:143
206
- msgid "PRO"
207
- msgstr ""
208
-
209
- #: core/admin/views/settings.php:154 core/admin/views/settings.php:157
210
- #: core/admin/views/settings.php:160
211
- msgid "Pro"
212
- msgstr ""
213
-
214
- #: core/admin/views/settings.php:157
215
- msgid "Modern Typography"
216
- msgstr ""
217
-
218
- #: core/admin/views/settings.php:169 core/admin/views/settings.php:185
219
- #: core/admin/views/settings.php:199
220
- msgid ""
221
- "Get started by spending some time with the documentation to get familiar "
222
- "with MetForm Get started by spending some time with the documentation to get "
223
- "notification in real time."
224
- msgstr ""
225
-
226
- #: core/admin/views/settings.php:172 core/admin/views/settings.php:188
227
- #: core/admin/views/settings.php:202
228
- msgid "Success Message"
229
- msgstr ""
230
-
231
- #: core/admin/views/settings.php:173 core/admin/views/settings.php:189
232
- #: core/admin/views/settings.php:203
233
- msgid "Required Login"
234
- msgstr ""
235
-
236
- #: core/admin/views/settings.php:174 core/admin/views/settings.php:190
237
- #: core/admin/views/settings.php:204
238
- msgid "Hide Form After Submission"
239
- msgstr ""
240
-
241
- #: core/admin/views/settings.php:176 core/admin/views/settings.php:192
242
- #: core/admin/views/settings.php:206
243
- msgid "Store Entries"
244
- msgstr ""
245
-
246
- #: core/admin/views/settings.php:179
247
- msgid "View Details"
248
- msgstr ""
249
-
250
- #: core/admin/views/settings.php:217
251
- msgid "General Knowledge Base"
252
- msgstr ""
253
-
254
- #: core/admin/views/settings.php:218
255
- msgid "FAQ"
256
- msgstr ""
257
-
258
- #: core/admin/views/settings.php:228
259
- msgid "1. How to create a Invitation Form using MetForm?"
260
- msgstr ""
261
-
262
- #: core/admin/views/settings.php:232 core/admin/views/settings.php:243
263
- #: core/admin/views/settings.php:254
264
- msgid ""
265
- "You will get 20+ complete homepages and total 450+ blocks in our layout "
266
- "library and we’re continuously updating the numbers there."
267
- msgstr ""
268
-
269
- #: core/admin/views/settings.php:239
270
- msgid "2. How to translate language with WPML?"
271
- msgstr ""
272
-
273
- #: core/admin/views/settings.php:250
274
- msgid "3. How to add custom css in specific section shortcode?"
275
- msgstr ""
276
-
277
- #: core/admin/views/settings.php:261
278
- msgid "View all faq’s"
279
- msgstr ""
280
-
281
- #: core/admin/views/settings.php:270
282
- msgid "Satisfied!"
283
- msgstr ""
284
-
285
- #: core/admin/views/settings.php:270
286
- msgid "Don’t forget to rate our item."
287
- msgstr ""
288
-
289
- #: core/admin/views/settings.php:272
290
- msgid "review"
291
- msgstr ""
292
-
293
- #: core/admin/views/settings.php:278
294
- msgid "Rate it now"
295
- msgstr ""
296
-
297
- #: core/admin/views/settings.php:283
298
- msgid "Rate Now Thumb"
299
- msgstr ""
300
-
301
- #: core/admin/views/settings.php:301
302
- msgid "reCaptcha"
303
- msgstr ""
304
-
305
- #: core/admin/views/settings.php:306
306
- msgid "Map"
307
- msgstr ""
308
-
309
- #: core/admin/views/settings.php:317
310
- msgid "Select version:"
311
- msgstr ""
312
-
313
- #: core/admin/views/settings.php:321
314
- msgid "reCAPTCHA V2"
315
- msgstr ""
316
-
317
- #: core/admin/views/settings.php:324
318
- msgid "reCAPTCHA V3"
319
- msgstr ""
320
-
321
- #: core/admin/views/settings.php:329
322
- msgid "Select google reCaptcha version which one want to use."
323
- msgstr ""
324
-
325
- #: core/admin/views/settings.php:336 core/admin/views/settings.php:355
326
- msgid "Site key:"
327
- msgstr ""
328
-
329
- #: core/admin/views/settings.php:338 core/admin/views/settings.php:357
330
- msgid "Insert site key"
331
- msgstr ""
332
-
333
- #: core/admin/views/settings.php:340 core/admin/views/settings.php:359
334
- msgid "Create google reCaptcha site key from reCaptcha admin panel. "
335
- msgstr ""
336
-
337
- #: core/admin/views/settings.php:340 core/admin/views/settings.php:348
338
- #: core/admin/views/settings.php:359 core/admin/views/settings.php:367
339
- #: core/admin/views/settings.php:385 core/admin/views/settings.php:433
340
- #: core/admin/views/settings.php:441 core/admin/views/settings.php:473
341
- #: core/admin/views/settings.php:481 core/admin/views/settings.php:500
342
- #: core/admin/views/settings.php:507
343
- msgid "Create from here"
344
- msgstr ""
345
-
346
- #: core/admin/views/settings.php:344 core/admin/views/settings.php:363
347
- msgid "Secret key:"
348
- msgstr ""
349
-
350
- #: core/admin/views/settings.php:346 core/admin/views/settings.php:365
351
- msgid "Insert secret key"
352
- msgstr ""
353
-
354
- #: core/admin/views/settings.php:348 core/admin/views/settings.php:367
355
- msgid "Create google reCaptcha secret key from reCaptcha admin panel. "
356
- msgstr ""
357
-
358
- #: core/admin/views/settings.php:381
359
- msgid "API:"
360
- msgstr ""
361
-
362
- #: core/admin/views/settings.php:383
363
- msgid "Insert map api key"
364
- msgstr ""
365
-
366
- #: core/admin/views/settings.php:385
367
- msgid "Create google map api key from google developer console. "
368
- msgstr ""
369
-
370
- #: core/admin/views/settings.php:413
371
- msgid "Paypal"
372
- msgstr ""
373
-
374
- #: core/admin/views/settings.php:418
375
- msgid "Stripe"
376
- msgstr ""
377
-
378
- #: core/admin/views/settings.php:430
379
- msgid "Paypal email:"
380
- msgstr ""
381
-
382
- #: core/admin/views/settings.php:431
383
- msgid "Paypal email"
384
- msgstr ""
385
-
386
- #: core/admin/views/settings.php:433
387
- msgid "Enter here your paypal email. "
388
- msgstr ""
389
-
390
- #: core/admin/views/settings.php:438
391
- msgid "Paypal token:"
392
- msgstr ""
393
-
394
- #: core/admin/views/settings.php:439
395
- msgid "Paypal token"
396
- msgstr ""
397
-
398
- #: core/admin/views/settings.php:441
399
- msgid "Enter here your paypal token. This is optional. "
400
- msgstr ""
401
-
402
- #: core/admin/views/settings.php:446 core/admin/views/settings.php:487
403
- msgid "Enable sandbox mode:"
404
- msgstr ""
405
-
406
- #: core/admin/views/settings.php:449
407
- msgid "Enable this for testing payment method. "
408
- msgstr ""
409
-
410
- #: core/admin/views/settings.php:462
411
- msgid "Image url:"
412
- msgstr ""
413
-
414
- #: core/admin/views/settings.php:463
415
- msgid "Stripe image url"
416
- msgstr ""
417
-
418
- #: core/admin/views/settings.php:465
419
- msgid ""
420
- "Enter here your stripe image url. This image will show on stripe payment pop "
421
- "up modal. "
422
- msgstr ""
423
-
424
- #: core/admin/views/settings.php:470
425
- msgid "Live publishiable key:"
426
- msgstr ""
427
-
428
- #: core/admin/views/settings.php:471
429
- msgid "Stripe live publishiable key"
430
- msgstr ""
431
-
432
- #: core/admin/views/settings.php:473
433
- msgid "Enter here your stripe live publishiable key. "
434
- msgstr ""
435
-
436
- #: core/admin/views/settings.php:478
437
- msgid "Live secret key:"
438
- msgstr ""
439
-
440
- #: core/admin/views/settings.php:479
441
- msgid "Stripe live secret key"
442
- msgstr ""
443
-
444
- #: core/admin/views/settings.php:481
445
- msgid "Enter here your stripe live secret key. "
446
- msgstr ""
447
-
448
- #: core/admin/views/settings.php:490
449
- msgid "Enable this for testing your payment system. "
450
- msgstr ""
451
-
452
- #: core/admin/views/settings.php:497
453
- msgid "Test publishiable key:"
454
- msgstr ""
455
-
456
- #: core/admin/views/settings.php:498
457
- msgid "Stripe test publishiable key"
458
- msgstr ""
459
-
460
- #: core/admin/views/settings.php:500
461
- msgid "Enter here your test publishiable key. "
462
- msgstr ""
463
-
464
- #: core/admin/views/settings.php:504
465
- msgid "Test secret key:"
466
- msgstr ""
467
-
468
- #: core/admin/views/settings.php:505
469
- msgid "Stripe test secret key"
470
- msgstr ""
471
-
472
- #: core/admin/views/settings.php:507
473
- msgid "Enter here your test secret key. "
474
- msgstr ""
475
-
476
- #: core/admin/views/settings.php:539
477
- msgid "MailChimp"
478
- msgstr ""
479
-
480
- #: core/admin/views/settings.php:544
481
- msgid "Aweber"
482
- msgstr ""
483
-
484
- #: core/admin/views/settings.php:548
485
- msgid "ActiveCampaign"
486
- msgstr ""
487
-
488
- #: core/admin/views/settings.php:552
489
- msgid "Get Response"
490
- msgstr ""
491
-
492
- #: core/admin/views/settings.php:556
493
- msgid "ConvertKit"
494
- msgstr ""
495
-
496
- #: core/admin/views/settings.php:569 core/admin/views/settings.php:666
497
- #: core/admin/views/settings.php:718 core/admin/views/settings.php:745
498
- msgid "API Key:"
499
- msgstr ""
500
-
501
- #: core/admin/views/settings.php:570
502
- msgid "Mailchimp api key"
503
- msgstr ""
504
-
505
- #: core/admin/views/settings.php:572
506
- msgid "Enter here your Mailchimp api key. "
507
- msgstr ""
508
-
509
- #: core/admin/views/settings.php:572 core/admin/views/settings.php:606
510
- #: core/admin/views/settings.php:614 core/admin/views/settings.php:669
511
- #: core/admin/views/settings.php:678 core/admin/views/settings.php:713
512
- #: core/admin/views/settings.php:721 core/admin/views/settings.php:748
513
- msgid "Get API."
514
- msgstr ""
515
-
516
- #: core/admin/views/settings.php:581 core/admin/views/settings.php:646
517
- #: core/admin/views/settings.php:688 core/admin/views/settings.php:729
518
- #: core/admin/views/settings.php:756 core/admin/views/settings.php:789
519
- #: core/admin/views/settings.php:816
520
- msgid "How To"
521
- msgstr ""
522
-
523
- #: core/admin/views/settings.php:582 core/admin/views/settings.php:647
524
- #: core/admin/views/settings.php:689 core/admin/views/settings.php:730
525
- #: core/admin/views/settings.php:757 core/admin/views/settings.php:790
526
- #: core/admin/views/settings.php:817
527
- msgid ""
528
- "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. "
529
- "Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse "
530
- "urna nibh, viverra non, semper suscipit, posuere a, pede."
531
- msgstr ""
532
-
533
- #: core/admin/views/settings.php:585 core/admin/views/settings.php:650
534
- #: core/admin/views/settings.php:692 core/admin/views/settings.php:733
535
- #: core/admin/views/settings.php:760 core/admin/views/settings.php:793
536
- #: core/admin/views/settings.php:820
537
- msgid "Item 1"
538
- msgstr ""
539
-
540
- #: core/admin/views/settings.php:586 core/admin/views/settings.php:651
541
- #: core/admin/views/settings.php:693 core/admin/views/settings.php:734
542
- #: core/admin/views/settings.php:761 core/admin/views/settings.php:794
543
- #: core/admin/views/settings.php:821
544
- msgid "Item 2"
545
- msgstr ""
546
-
547
- #: core/admin/views/settings.php:587 core/admin/views/settings.php:652
548
- #: core/admin/views/settings.php:694 core/admin/views/settings.php:735
549
- #: core/admin/views/settings.php:762 core/admin/views/settings.php:795
550
- #: core/admin/views/settings.php:822
551
- msgid "Item 3"
552
- msgstr ""
553
-
554
- #: core/admin/views/settings.php:590 core/admin/views/settings.php:655
555
- #: core/admin/views/settings.php:697 core/admin/views/settings.php:738
556
- #: core/admin/views/settings.php:765 core/admin/views/settings.php:798
557
- #: core/admin/views/settings.php:825
558
- msgid "View Documentation"
559
- msgstr ""
560
-
561
- #: core/admin/views/settings.php:603
562
- msgid "Developer App ID:"
563
- msgstr ""
564
-
565
- #: core/admin/views/settings.php:604
566
- msgid "Aweber developer clientId key"
567
- msgstr ""
568
-
569
- #: core/admin/views/settings.php:606
570
- msgid "Enter here your Aweber developer app key. "
571
- msgstr ""
572
-
573
- #: core/admin/views/settings.php:611
574
- msgid "Developer App Secret:"
575
- msgstr ""
576
-
577
- #: core/admin/views/settings.php:612
578
- msgid "Aweber developer secret key"
579
- msgstr ""
580
-
581
- #: core/admin/views/settings.php:614
582
- msgid "Enter here your Aweber developer secret key. "
583
- msgstr ""
584
-
585
- #: core/admin/views/settings.php:619
586
- msgid "Redirect url:"
587
- msgstr ""
588
-
589
- #: core/admin/views/settings.php:667 core/admin/views/settings.php:676
590
- msgid "ConvertKit api key"
591
- msgstr ""
592
-
593
- #: core/admin/views/settings.php:669 core/admin/views/settings.php:678
594
- msgid "Enter here your ConvertKit api key. "
595
- msgstr ""
596
-
597
- #: core/admin/views/settings.php:675
598
- msgid "Secret Key:"
599
- msgstr ""
600
-
601
- #: core/admin/views/settings.php:710
602
- msgid "API URL:"
603
- msgstr ""
604
-
605
- #: core/admin/views/settings.php:711
606
- msgid "ActiveCampaign API URL"
607
- msgstr ""
608
-
609
- #: core/admin/views/settings.php:713 core/admin/views/settings.php:721
610
- #: core/admin/views/settings.php:748
611
- msgid "Enter here your ActiveCampaign api key. "
612
- msgstr ""
613
-
614
- #: core/admin/views/settings.php:719 core/admin/views/settings.php:746
615
- msgid "ActiveCampaign api key"
616
- msgstr ""
617
-
618
- #: core/admin/views/settings.php:779 core/admin/views/settings.php:806
619
- msgid "GetResponse API Key:"
620
- msgstr ""
621
-
622
- #: core/admin/views/settings.php:780 core/admin/views/settings.php:807
623
- msgid "GetResponse api key"
624
- msgstr ""
625
-
626
- #: core/entries/action.php:39
627
- msgid "Some thing went wrong."
628
- msgstr ""
629
-
630
- #: core/entries/action.php:77
631
- msgid "Unauthorized submission."
632
- msgstr ""
633
-
634
- #: core/entries/action.php:92 core/entries/action.php:122
635
- msgid "Please solve the recaptcha."
636
- msgstr ""
637
-
638
- #: core/entries/action.php:98
639
- msgid "Google captcha token not found."
640
- msgstr ""
641
-
642
- #: core/entries/action.php:144
643
- msgid "Time out of this captcha. Please reload or choose another one."
644
- msgstr ""
645
-
646
- #: core/entries/action.php:153
647
- msgid "Enter correct captcha."
648
- msgstr ""
649
-
650
- #: core/entries/action.php:163
651
- msgid "You must be logged in to submit form."
652
- msgstr ""
653
-
654
- #: core/entries/action.php:173
655
- msgid "Form submission limit execed."
656
- msgstr ""
657
-
658
- #: core/entries/action.php:479
659
- msgid " Please wait... Redirecting to paypal."
660
- msgstr ""
661
-
662
- #: core/entries/action.php:517
663
- msgid " Please wait... Open a Stripe Popup Box."
664
- msgstr ""
665
-
666
- #: core/entries/action.php:645
667
- msgid "Mail not found."
668
- msgstr ""
669
-
670
- #: core/entries/action.php:687
671
- msgid "Admin mail not found to send email."
672
- msgstr ""
673
-
674
- #: core/entries/action.php:754
675
- msgid "There was an error uploading your file. The error is: "
676
- msgstr ""
677
-
678
- #: core/entries/cpt.php:14
679
- msgctxt "Post Type General Name"
680
- msgid "Entries"
681
- msgstr ""
682
-
683
- #: core/entries/cpt.php:15
684
- msgctxt "Post Type Singular Name"
685
- msgid "Entry"
686
- msgstr ""
687
-
688
- #: core/entries/cpt.php:16 core/entries/cpt.php:17
689
- msgid "Entry"
690
- msgstr ""
691
-
692
- #: core/entries/cpt.php:18
693
- msgid "Entry Archives"
694
- msgstr ""
695
-
696
- #: core/entries/cpt.php:19
697
- msgid "Entry Attributes"
698
- msgstr ""
699
-
700
- #: core/entries/cpt.php:20 core/forms/cpt.php:320
701
- msgid "Parent Item:"
702
- msgstr ""
703
-
704
- #: core/entries/cpt.php:21 core/forms/hooks.php:36
705
- msgid "Entries"
706
- msgstr ""
707
-
708
- #: core/entries/cpt.php:22
709
- msgid "Add New Item"
710
- msgstr ""
711
-
712
- #: core/entries/cpt.php:23 core/forms/cpt.php:323
713
- msgid "Add New"
714
- msgstr ""
715
-
716
- #: core/entries/cpt.php:24
717
- msgid "New Item"
718
- msgstr ""
719
-
720
- #: core/entries/cpt.php:25
721
- msgid "Edit Item"
722
- msgstr ""
723
-
724
- #: core/entries/cpt.php:26
725
- msgid "Update Item"
726
- msgstr ""
727
-
728
- #: core/entries/cpt.php:27
729
- msgid "View Item"
730
- msgstr ""
731
-
732
- #: core/entries/cpt.php:28
733
- msgid "View Items"
734
- msgstr ""
735
-
736
- #: core/entries/cpt.php:29
737
- msgid "Search Item"
738
- msgstr ""
739
-
740
- #: core/entries/cpt.php:30 core/forms/cpt.php:330
741
- msgid "Not found"
742
- msgstr ""
743
-
744
- #: core/entries/cpt.php:31 core/forms/cpt.php:331
745
- msgid "Not found in Trash"
746
- msgstr ""
747
-
748
- #: core/entries/cpt.php:32 core/forms/cpt.php:332
749
- msgid "Featured Image"
750
- msgstr ""
751
-
752
- #: core/entries/cpt.php:33 core/forms/cpt.php:333
753
- msgid "Set featured image"
754
- msgstr ""
755
-
756
- #: core/entries/cpt.php:34 core/forms/cpt.php:334
757
- msgid "Remove featured image"
758
- msgstr ""
759
-
760
- #: core/entries/cpt.php:35 core/forms/cpt.php:335
761
- msgid "Use as featured image"
762
- msgstr ""
763
-
764
- #: core/entries/cpt.php:36
765
- msgid "Insert into item"
766
- msgstr ""
767
-
768
- #: core/entries/cpt.php:37
769
- msgid "Uploaded to this item"
770
- msgstr ""
771
-
772
- #: core/entries/cpt.php:38
773
- msgid "Form entries list"
774
- msgstr ""
775
-
776
- #: core/entries/cpt.php:39
777
- msgid "Form entries list navigation"
778
- msgstr ""
779
-
780
- #: core/entries/cpt.php:40
781
- msgid "Filter from entry list"
782
- msgstr ""
783
-
784
- #: core/entries/cpt.php:44
785
- msgid "Form entry"
786
- msgstr ""
787
-
788
- #: core/entries/cpt.php:45
789
- msgid "metform-entry"
790
- msgstr ""
791
-
792
- #: core/entries/hooks.php:27
793
- msgid "Form Name"
794
- msgstr ""
795
-
796
- #: core/entries/hooks.php:29
797
- msgid "Referral"
798
- msgstr ""
799
-
800
- #: core/entries/meta-data.php:35
801
- msgid "Info"
802
- msgstr ""
803
-
804
- #: core/entries/meta-data.php:58
805
- msgid "Form Name "
806
- msgstr ""
807
-
808
- #: core/entries/meta-data.php:64
809
- msgid "Entry ID"
810
- msgstr ""
811
-
812
- #: core/entries/meta-data.php:81
813
- msgid "Data"
814
- msgstr ""
815
-
816
- #: core/entries/meta-data.php:103
817
- msgid "Browser Data"
818
- msgstr ""
819
-
820
- #: core/entries/meta-data.php:135
821
- msgid "Browser data not captured."
822
- msgstr ""
823
-
824
- #: core/entries/meta-data.php:151
825
- msgid "Files"
826
- msgstr ""
827
-
828
- #: core/entries/meta-data.php:182
829
- msgid "Download"
830
- msgstr ""
831
-
832
- #: core/entries/meta-data.php:183
833
- msgid "View"
834
- msgstr ""
835
-
836
- #: core/entries/meta-data.php:185
837
- msgid "This file is not uploaded."
838
- msgstr ""
839
-
840
- #: core/forms/action.php:78 core/forms/action.php:102
841
- msgid "Form settings inserted"
842
- msgstr ""
843
-
844
- #: core/forms/action.php:106
845
- msgid ""
846
- "You must active at least one field of these fields \"store entry/ "
847
- "Confirmation/ Notification/ MailChimp/ Zapier\". "
848
- msgstr ""
849
-
850
- #: core/forms/action.php:110 core/forms/action.php:146
851
- msgid "You must enable \"store entries\" for integrating payment method."
852
- msgstr ""
853
-
854
- #: core/forms/cpt.php:314
855
- msgctxt "Post Type General Name"
856
- msgid "Forms"
857
- msgstr ""
858
-
859
- #: core/forms/cpt.php:315
860
- msgctxt "Post Type Singular Name"
861
- msgid "Form"
862
- msgstr ""
863
-
864
- #: core/forms/cpt.php:316 core/forms/cpt.php:317
865
- msgid "Form"
866
- msgstr ""
867
-
868
- #: core/forms/cpt.php:318
869
- msgid "Form Archives"
870
- msgstr ""
871
-
872
- #: core/forms/cpt.php:319
873
- msgid "Form Attributes"
874
- msgstr ""
875
-
876
- #: core/forms/cpt.php:321 core/forms/cpt.php:349
877
- msgid "Forms"
878
- msgstr ""
879
-
880
- #: core/forms/cpt.php:322
881
- msgid "Add New Form"
882
- msgstr ""
883
-
884
- #: core/forms/cpt.php:324
885
- msgid "New Form"
886
- msgstr ""
887
-
888
- #: core/forms/cpt.php:325
889
- msgid "Edit Form"
890
- msgstr ""
891
-
892
- #: core/forms/cpt.php:326
893
- msgid "Update Form"
894
- msgstr ""
895
-
896
- #: core/forms/cpt.php:327
897
- msgid "View Form"
898
- msgstr ""
899
-
900
- #: core/forms/cpt.php:328
901
- msgid "View Forms"
902
- msgstr ""
903
-
904
- #: core/forms/cpt.php:329
905
- msgid "Search Forms"
906
- msgstr ""
907
-
908
- #: core/forms/cpt.php:336
909
- msgid "Insert into form"
910
- msgstr ""
911
-
912
- #: core/forms/cpt.php:337
913
- msgid "Uploaded to this form"
914
- msgstr ""
915
-
916
- #: core/forms/cpt.php:338
917
- msgid "Forms list"
918
- msgstr ""
919
-
920
- #: core/forms/cpt.php:339
921
- msgid "Forms list navigation"
922
- msgstr ""
923
-
924
- #: core/forms/cpt.php:340
925
- msgid "Filter froms list"
926
- msgstr ""
927
-
928
- #: core/forms/cpt.php:350
929
- msgid "metform form"
930
- msgstr ""
931
-
932
- #: core/forms/hooks.php:35
933
- msgid "Shortcode"
934
- msgstr ""
935
-
936
- #: core/forms/hooks.php:37
937
- msgid "Views/ Conversion"
938
- msgstr ""
939
-
940
- #: core/forms/hooks.php:62
941
- msgid "Export CSV"
942
- msgstr ""
943
-
944
- #: core/forms/views/modal-editor.php:14
945
- msgid "Form Settings"
946
- msgstr ""
947
-
948
- #: core/forms/views/modal-editor.php:20
949
- msgid "Confirmation"
950
- msgstr ""
951
-
952
- #: core/forms/views/modal-editor.php:22
953
- msgid "Notification"
954
- msgstr ""
955
-
956
- #: core/forms/views/modal-editor.php:24
957
- msgid "Integration"
958
- msgstr ""
959
-
960
- #: core/forms/views/modal-editor.php:29
961
- msgid "CRM"
962
- msgstr ""
963
-
964
- #: core/forms/views/modal-editor.php:42
965
- msgid "Title:"
966
- msgstr ""
967
-
968
- #: core/forms/views/modal-editor.php:44
969
- msgid "New Form # "
970
- msgstr ""
971
-
972
- #: core/forms/views/modal-editor.php:46
973
- msgid "This is the form title"
974
- msgstr ""
975
-
976
- #: core/forms/views/modal-editor.php:51
977
- msgid "Success Message:"
978
- msgstr ""
979
-
980
- #: core/forms/views/modal-editor.php:54
981
- msgid "Thank you! Form submitted successfully."
982
- msgstr ""
983
-
984
- #: core/forms/views/modal-editor.php:56
985
- msgid "This mesage will be shown after a successful submission."
986
- msgstr ""
987
-
988
- #: core/forms/views/modal-editor.php:63
989
- msgid "Required Login:"
990
- msgstr ""
991
-
992
- #: core/forms/views/modal-editor.php:66
993
- msgid "Without login, users can't submit the form."
994
- msgstr ""
995
-
996
- #: core/forms/views/modal-editor.php:73
997
- msgid "Capture User Browser Data:"
998
- msgstr ""
999
-
1000
- #: core/forms/views/modal-editor.php:76
1001
- msgid "Store user's browser data (ip, browser name, etc)"
1002
- msgstr ""
1003
-
1004
- #: core/forms/views/modal-editor.php:83
1005
- msgid "Hide Form After Submission:"
1006
- msgstr ""
1007
-
1008
- #: core/forms/views/modal-editor.php:86
1009
- msgid "After submission, hide the form for preventing multiple submission."
1010
- msgstr ""
1011
-
1012
- #: core/forms/views/modal-editor.php:93
1013
- msgid "Store Entries:"
1014
- msgstr ""
1015
-
1016
- #: core/forms/views/modal-editor.php:96
1017
- msgid "Save submitted form data to database."
1018
- msgstr ""
1019
-
1020
- #: core/forms/views/modal-editor.php:101
1021
- msgid "Entry Title"
1022
- msgstr ""
1023
-
1024
- #: core/forms/views/modal-editor.php:105
1025
- msgid "Enter here title of this form entries."
1026
- msgstr ""
1027
-
1028
- #: core/forms/views/modal-editor.php:113
1029
- msgid "Limit Total Entries:"
1030
- msgstr ""
1031
-
1032
- #: core/forms/views/modal-editor.php:121
1033
- msgid "Limit the total number of submissions for this form."
1034
- msgstr ""
1035
-
1036
- #: core/forms/views/modal-editor.php:128
1037
- msgid "Count views:"
1038
- msgstr ""
1039
-
1040
- #: core/forms/views/modal-editor.php:130
1041
- msgid "Track form views."
1042
- msgstr ""
1043
-
1044
- #: core/forms/views/modal-editor.php:137
1045
- msgid "Stop Vertical Scrolling:"
1046
- msgstr ""
1047
-
1048
- #: core/forms/views/modal-editor.php:140
1049
- msgid "Stop scrolling effect when submitting the form."
1050
- msgstr ""
1051
-
1052
- #: core/forms/views/modal-editor.php:145
1053
- msgid "Redirect To:"
1054
- msgstr ""
1055
-
1056
- #: core/forms/views/modal-editor.php:148
1057
- msgid "Redirection link"
1058
- msgstr ""
1059
-
1060
- #: core/forms/views/modal-editor.php:150
1061
- msgid "Users will be redirected to the this link after submission."
1062
- msgstr ""
1063
-
1064
- #: core/forms/views/modal-editor.php:165
1065
- msgid "Confirmation mail to user :"
1066
- msgstr ""
1067
-
1068
- #: core/forms/views/modal-editor.php:168
1069
- msgid "Want to send a submission copy to user by email? Active this one."
1070
- msgstr ""
1071
-
1072
- #: core/forms/views/modal-editor.php:168 core/forms/views/modal-editor.php:520
1073
- msgid "The form must have at least one Email widget and it should be required."
1074
- msgstr ""
1075
-
1076
- #: core/forms/views/modal-editor.php:173 core/forms/views/modal-editor.php:235
1077
- msgid "Email Subject:"
1078
- msgstr ""
1079
-
1080
- #: core/forms/views/modal-editor.php:176 core/forms/views/modal-editor.php:238
1081
- msgid "Email subject"
1082
- msgstr ""
1083
-
1084
- #: core/forms/views/modal-editor.php:178 core/forms/views/modal-editor.php:240
1085
- msgid "Enter here email subject."
1086
- msgstr ""
1087
-
1088
- #: core/forms/views/modal-editor.php:183 core/forms/views/modal-editor.php:255
1089
- msgid "Email From:"
1090
- msgstr ""
1091
-
1092
- #: core/forms/views/modal-editor.php:186
1093
- msgid "From email"
1094
- msgstr ""
1095
-
1096
- #: core/forms/views/modal-editor.php:188
1097
- msgid "Enter the email by which you want to send email to user."
1098
- msgstr ""
1099
-
1100
- #: core/forms/views/modal-editor.php:193 core/forms/views/modal-editor.php:265
1101
- msgid "Email Reply To:"
1102
- msgstr ""
1103
-
1104
- #: core/forms/views/modal-editor.php:196
1105
- msgid "Reply to email"
1106
- msgstr ""
1107
-
1108
- #: core/forms/views/modal-editor.php:198
1109
- msgid "Enter email where user can reply/ you want to get reply."
1110
- msgstr ""
1111
-
1112
- #: core/forms/views/modal-editor.php:203
1113
- msgid "Thank you message :"
1114
- msgstr ""
1115
-
1116
- #: core/forms/views/modal-editor.php:206
1117
- msgid "Thank you message!"
1118
- msgstr ""
1119
-
1120
- #: core/forms/views/modal-editor.php:208
1121
- msgid ""
1122
- "Enter here your message to include it in email body. Which will be send to "
1123
- "user."
1124
- msgstr ""
1125
-
1126
- #: core/forms/views/modal-editor.php:212
1127
- msgid "Email Attached Submission Copy:"
1128
- msgstr ""
1129
-
1130
- #: core/forms/views/modal-editor.php:227
1131
- msgid "Notification mail to admin :"
1132
- msgstr ""
1133
-
1134
- #: core/forms/views/modal-editor.php:230
1135
- msgid "Want to send a submission copy to admin by email? Active this one."
1136
- msgstr ""
1137
-
1138
- #: core/forms/views/modal-editor.php:245
1139
- msgid "Email To:"
1140
- msgstr ""
1141
-
1142
- #: core/forms/views/modal-editor.php:248
1143
- msgid "example@mail.com, example@email.com"
1144
- msgstr ""
1145
-
1146
- #: core/forms/views/modal-editor.php:250
1147
- msgid "Enter admin email where you want to send mail."
1148
- msgstr ""
1149
-
1150
- #: core/forms/views/modal-editor.php:250
1151
- msgid " for multiple email addresses please use \",\" separator."
1152
- msgstr ""
1153
-
1154
- #: core/forms/views/modal-editor.php:258
1155
- msgid "Email from"
1156
- msgstr ""
1157
-
1158
- #: core/forms/views/modal-editor.php:260
1159
- msgid "Enter the email by which you want to send email to admin."
1160
- msgstr ""
1161
-
1162
- #: core/forms/views/modal-editor.php:268
1163
- msgid "Email reply to"
1164
- msgstr ""
1165
-
1166
- #: core/forms/views/modal-editor.php:270
1167
- msgid "Enter email where admin can reply/ you want to get reply."
1168
- msgstr ""
1169
-
1170
- #: core/forms/views/modal-editor.php:275
1171
- msgid "Admin Note : "
1172
- msgstr ""
1173
-
1174
- #: core/forms/views/modal-editor.php:278
1175
- msgid "Admin note!"
1176
- msgstr ""
1177
-
1178
- #: core/forms/views/modal-editor.php:280
1179
- msgid "Enter here your email body. Which will be send to admin."
1180
- msgstr ""
1181
-
1182
- #: core/forms/views/modal-editor.php:294
1183
- msgid "REST API:"
1184
- msgstr ""
1185
-
1186
- #: core/forms/views/modal-editor.php:297
1187
- msgid "Send entry data to third party api/webhook"
1188
- msgstr ""
1189
-
1190
- #: core/forms/views/modal-editor.php:303
1191
- msgid "URL/Webhook:"
1192
- msgstr ""
1193
-
1194
- #: core/forms/views/modal-editor.php:305
1195
- msgid "Rest api url/webhook"
1196
- msgstr ""
1197
-
1198
- #: core/forms/views/modal-editor.php:307
1199
- msgid "Enter rest api url/webhook here."
1200
- msgstr ""
1201
-
1202
- #: core/forms/views/modal-editor.php:312
1203
- msgid "POST"
1204
- msgstr ""
1205
-
1206
- #: core/forms/views/modal-editor.php:313
1207
- msgid "GET"
1208
- msgstr ""
1209
-
1210
- #: core/forms/views/modal-editor.php:327
1211
- msgid "Mail Chimp:"
1212
- msgstr ""
1213
-
1214
- #: core/forms/views/modal-editor.php:330
1215
- msgid "Integrate mailchimp with this form."
1216
- msgstr ""
1217
-
1218
- #: core/forms/views/modal-editor.php:330 core/forms/views/modal-editor.php:365
1219
- #: core/forms/views/modal-editor.php:400 core/forms/views/modal-editor.php:429
1220
- #: core/forms/views/modal-editor.php:463 core/forms/views/modal-editor.php:500
1221
- msgid ""
1222
- "The form must have at least one Email widget and it should be required. "
1223
- msgstr ""
1224
-
1225
- #: core/forms/views/modal-editor.php:332
1226
- msgid "Configure Mail Chimp."
1227
- msgstr ""
1228
-
1229
- #: core/forms/views/modal-editor.php:337
1230
- msgid "MailChimp List ID:"
1231
- msgstr ""
1232
-
1233
- #: core/forms/views/modal-editor.php:346
1234
- msgid "Mailchimp contact list id"
1235
- msgstr ""
1236
-
1237
- #: core/forms/views/modal-editor.php:361
1238
- msgid "MailPoet:"
1239
- msgstr ""
1240
-
1241
- #: core/forms/views/modal-editor.php:364
1242
- msgid "Integrate MailPoet with this form."
1243
- msgstr ""
1244
-
1245
- #: core/forms/views/modal-editor.php:368
1246
- msgid "Configure MailPoet."
1247
- msgstr ""
1248
-
1249
- #: core/forms/views/modal-editor.php:376
1250
- msgid "MailPoet List ID:"
1251
- msgstr ""
1252
-
1253
- #: core/forms/views/modal-editor.php:383
1254
- msgid "Enter here MailPoet list id. "
1255
- msgstr ""
1256
-
1257
- #: core/forms/views/modal-editor.php:385 core/forms/views/modal-editor.php:416
1258
- #: core/forms/views/modal-editor.php:445
1259
- msgid "Refresh List"
1260
- msgstr ""
1261
-
1262
- #: core/forms/views/modal-editor.php:397
1263
- msgid "Aweber:"
1264
- msgstr ""
1265
-
1266
- #: core/forms/views/modal-editor.php:400
1267
- msgid "Integrate aweber with this form."
1268
- msgstr ""
1269
-
1270
- #: core/forms/views/modal-editor.php:402
1271
- msgid "Configure aweber."
1272
- msgstr ""
1273
-
1274
- #: core/forms/views/modal-editor.php:407
1275
- msgid "Aweber List ID:"
1276
- msgstr ""
1277
-
1278
- #: core/forms/views/modal-editor.php:414
1279
- msgid "Enter here aweber list id. "
1280
- msgstr ""
1281
-
1282
- #: core/forms/views/modal-editor.php:426
1283
- msgid "ConvertKit:"
1284
- msgstr ""
1285
-
1286
- #: core/forms/views/modal-editor.php:429
1287
- msgid "Integrate convertKit with this form."
1288
- msgstr ""
1289
-
1290
- #: core/forms/views/modal-editor.php:431
1291
- msgid "Configure ConvertKit."
1292
- msgstr ""
1293
-
1294
- #: core/forms/views/modal-editor.php:436
1295
- msgid "ConvertKit Forms ID:"
1296
- msgstr ""
1297
-
1298
- #: core/forms/views/modal-editor.php:443
1299
- msgid "Enter here ConvertKit form id. "
1300
- msgstr ""
1301
-
1302
- #: core/forms/views/modal-editor.php:459
1303
- msgid "GetResponse:"
1304
- msgstr ""
1305
-
1306
- #: core/forms/views/modal-editor.php:463
1307
- msgid "Integrate GetResponse with this form."
1308
- msgstr ""
1309
-
1310
- #: core/forms/views/modal-editor.php:465
1311
- msgid "Configure GetResponse."
1312
- msgstr ""
1313
-
1314
- #: core/forms/views/modal-editor.php:472
1315
- msgid "GetResponse List ID:"
1316
- msgstr ""
1317
-
1318
- #: core/forms/views/modal-editor.php:483
1319
- msgid "GetResponse contact list id"
1320
- msgstr ""
1321
-
1322
- #: core/forms/views/modal-editor.php:485
1323
- msgid "Enter here GetResponse list id. "
1324
- msgstr ""
1325
-
1326
- #: core/forms/views/modal-editor.php:497
1327
- msgid "ActiveCampaign:"
1328
- msgstr ""
1329
-
1330
- #: core/forms/views/modal-editor.php:500
1331
- msgid "Integrate ActiveCampaign with this form."
1332
- msgstr ""
1333
-
1334
- #: core/forms/views/modal-editor.php:502
1335
- msgid "Configure ActiveCampaign."
1336
- msgstr ""
1337
-
1338
- #: core/forms/views/modal-editor.php:517
1339
- msgid "Zapier:"
1340
- msgstr ""
1341
-
1342
- #: core/forms/views/modal-editor.php:520
1343
- msgid "Integrate zapier with this form."
1344
- msgstr ""
1345
-
1346
- #: core/forms/views/modal-editor.php:525
1347
- msgid "Zapier webhook:"
1348
- msgstr ""
1349
-
1350
- #: core/forms/views/modal-editor.php:527
1351
- msgid "Zapier webhook"
1352
- msgstr ""
1353
-
1354
- #: core/forms/views/modal-editor.php:529
1355
- msgid "Enter here zapier web hook."
1356
- msgstr ""
1357
-
1358
- #: core/forms/views/modal-editor.php:539
1359
- msgid "Slack:"
1360
- msgstr ""
1361
-
1362
- #: core/forms/views/modal-editor.php:542
1363
- msgid "Integrate slack with this form."
1364
- msgstr ""
1365
-
1366
- #: core/forms/views/modal-editor.php:542
1367
- msgid "slack info."
1368
- msgstr ""
1369
-
1370
- #: core/forms/views/modal-editor.php:547
1371
- msgid "Slack webhook:"
1372
- msgstr ""
1373
-
1374
- #: core/forms/views/modal-editor.php:549
1375
- msgid "Slack webhook"
1376
- msgstr ""
1377
-
1378
- #: core/forms/views/modal-editor.php:551
1379
- msgid "Enter here slack web hook."
1380
- msgstr ""
1381
-
1382
- #: core/forms/views/modal-editor.php:552
1383
- msgid "create from here"
1384
- msgstr ""
1385
-
1386
- #: core/forms/views/modal-editor.php:566
1387
- msgid "Success url:"
1388
- msgstr ""
1389
-
1390
- #: core/forms/views/modal-editor.php:569
1391
- msgid "Success url"
1392
- msgstr ""
1393
-
1394
- #: core/forms/views/modal-editor.php:571
1395
- msgid ""
1396
- "Users will be redirected to the this link after successfully form submission."
1397
- msgstr ""
1398
-
1399
- #: core/forms/views/modal-editor.php:576
1400
- msgid "Failed/ Cancel url:"
1401
- msgstr ""
1402
-
1403
- #: core/forms/views/modal-editor.php:579
1404
- msgid "Failed/Cancel url"
1405
- msgstr ""
1406
-
1407
- #: core/forms/views/modal-editor.php:581
1408
- msgid ""
1409
- "Users will be redirected to the this link after any failure/ cancelation of "
1410
- "form submission."
1411
- msgstr ""
1412
-
1413
- #: core/forms/views/modal-editor.php:588
1414
- msgid "Paypal:"
1415
- msgstr ""
1416
-
1417
- #: core/forms/views/modal-editor.php:591
1418
- msgid "Integrate paypal payment with this form."
1419
- msgstr ""
1420
-
1421
- #: core/forms/views/modal-editor.php:593
1422
- msgid "Configure paypal payment."
1423
- msgstr ""
1424
-
1425
- #: core/forms/views/modal-editor.php:603
1426
- msgid "Stripe:"
1427
- msgstr ""
1428
-
1429
- #: core/forms/views/modal-editor.php:606
1430
- msgid "Integrate stripe payment with this form. "
1431
- msgstr ""
1432
-
1433
- #: core/forms/views/modal-editor.php:608
1434
- msgid "Configure stripe payment."
1435
- msgstr ""
1436
-
1437
- #: core/forms/views/modal-editor.php:625
1438
- msgid "Hubsopt Contact:"
1439
- msgstr ""
1440
-
1441
- #: core/forms/views/modal-editor.php:628
1442
- msgid "Integrate hubsopt with this form. "
1443
- msgstr ""
1444
-
1445
- #: core/forms/views/modal-editor.php:630
1446
- msgid "Configure Hubsopt."
1447
- msgstr ""
1448
-
1449
- #: core/forms/views/modal-editor.php:638
1450
- msgid "Hubsopt Forms:"
1451
- msgstr ""
1452
-
1453
- #: core/forms/views/modal-editor.php:646
1454
- msgid "Fetch hubsopt forms"
1455
- msgstr ""
1456
-
1457
- #: core/forms/views/modal-editor.php:671
1458
- msgid "Zoho Contact:"
1459
- msgstr ""
1460
-
1461
- #: core/forms/views/modal-editor.php:674
1462
- msgid "Integrate Zoho contacts with this form. "
1463
- msgstr ""
1464
-
1465
- #: core/forms/views/modal-editor.php:676
1466
- msgid "Configure Zoho."
1467
- msgstr ""
1468
-
1469
- #: core/forms/views/modal-editor.php:692
1470
- msgid "Edit content"
1471
- msgstr ""
1472
-
1473
- #: core/forms/views/modal-editor.php:694
1474
- msgid "Save changes"
1475
- msgstr ""
1476
-
1477
- #: core/integrations/google-recaptcha.php:43
1478
- #: core/integrations/google-recaptcha.php:80
1479
- msgid "Captcha is not verified."
1480
- msgstr ""
1481
-
1482
- #: core/integrations/mail-chimp.php:54
1483
- msgid "Your data inserted on ActiveCampaign."
1484
- msgstr ""
1485
-
1486
- #: core/integrations/slack.php:50
1487
- msgid "Your data inserted on slack."
1488
- msgstr ""
1489
-
1490
- #: plugin.php:258
1491
- msgid "Activate Elementor"
1492
- msgstr ""
1493
-
1494
- #: plugin.php:261
1495
- msgid "Install Elementor"
1496
- msgstr ""
1497
-
1498
- #: plugin.php:271 plugin.php:306
1499
- #, php-format
1500
- msgid ""
1501
- "MetForm requires Elementor version %1$s+, which is currently NOT RUNNING."
1502
- msgstr ""
1503
-
1504
- #: plugin.php:281
1505
- msgid "MetForm Pro"
1506
- msgstr ""
1507
-
1508
- #: plugin.php:290
1509
- msgid "We have MetForm Pro version. Check out our pro feature."
1510
- msgstr ""
1511
-
1512
- #: plugin.php:297
1513
- msgid "Update Elementor"
1514
- msgstr ""
1515
-
1516
- #: traits/button-controls.php:24 widgets/date/date.php:321
1517
- #: widgets/email/email.php:64 widgets/file-upload/file-upload.php:170
1518
- #: widgets/listing-fname/listing-fname.php:64
1519
- #: widgets/listing-lname/listing-lname.php:64
1520
- #: widgets/multi-select/multi-select.php:148 widgets/number/number.php:64
1521
- #: widgets/password/password.php:64 widgets/range/range.php:133
1522
- #: widgets/rating/rating.php:85 widgets/recaptcha/recaptcha.php:59
1523
- #: widgets/select/select.php:148 widgets/simple-captcha/simple-captcha.php:123
1524
- #: widgets/summary/summary.php:69 widgets/switch/switch.php:91
1525
- #: widgets/telephone/telephone.php:64 widgets/text/text.php:64
1526
- #: widgets/textarea/textarea.php:65 widgets/time/time.php:89
1527
- #: widgets/url/url.php:74
1528
- msgid "Label"
1529
- msgstr ""
1530
-
1531
- #: traits/button-controls.php:46
1532
- msgid "Button alignment"
1533
- msgstr ""
1534
-
1535
- #: traits/button-controls.php:50 traits/common-controls.php:47
1536
- #: widgets/checkbox/checkbox.php:69 widgets/gdpr-consent/gdpr-consent.php:62
1537
- #: widgets/listing-optin/listing-optin.php:62 widgets/radio/radio.php:70
1538
- #: widgets/simple-captcha/simple-captcha.php:67
1539
- msgid "Left"
1540
- msgstr ""
1541
-
1542
- #: traits/button-controls.php:54
1543
- msgid "Center"
1544
- msgstr ""
1545
-
1546
- #: traits/button-controls.php:58 widgets/file-upload/file-upload.php:251
1547
- msgid "Right"
1548
- msgstr ""
1549
-
1550
- #: traits/button-controls.php:72 widgets/button/button.php:104
1551
- msgid "Icon"
1552
- msgstr ""
1553
-
1554
- #: traits/button-controls.php:81
1555
- msgid "Icon Position"
1556
- msgstr ""
1557
-
1558
- #: traits/button-controls.php:85 widgets/file-upload/file-upload.php:60
1559
- msgid "Before"
1560
- msgstr ""
1561
-
1562
- #: traits/button-controls.php:86 widgets/file-upload/file-upload.php:61
1563
- msgid "After"
1564
- msgstr ""
1565
-
1566
- #: traits/button-controls.php:97
1567
- msgid "Class"
1568
- msgstr ""
1569
-
1570
- #: traits/button-controls.php:99
1571
- msgid "Class Name"
1572
- msgstr ""
1573
-
1574
- #: traits/button-controls.php:106
1575
- msgid "id"
1576
- msgstr ""
1577
-
1578
- #: traits/button-controls.php:108
1579
- msgid "ID"
1580
- msgstr ""
1581
-
1582
- #: traits/button-controls.php:119
1583
- msgid "Input Name : "
1584
- msgstr ""
1585
-
1586
- #: traits/button-controls.php:127 widgets/multi-select/multi-select.php:58
1587
- #: widgets/select/select.php:58
1588
- msgid "Input Value"
1589
- msgstr ""
1590
-
1591
- #: traits/button-controls.php:136
1592
- msgid "Input Class"
1593
- msgstr ""
1594
-
1595
- #: traits/button-controls.php:145
1596
- msgid "Input List"
1597
- msgstr ""
1598
-
1599
- #: traits/button-controls.php:157 traits/common-controls.php:341
1600
- #: traits/common-controls.php:405 traits/common-controls.php:749
1601
- #: widgets/checkbox/checkbox.php:283 widgets/checkbox/checkbox.php:341
1602
- #: widgets/checkbox/checkbox.php:534 widgets/file-upload/file-upload.php:336
1603
- #: widgets/gdpr-consent/gdpr-consent.php:202
1604
- #: widgets/gdpr-consent/gdpr-consent.php:269
1605
- #: widgets/listing-optin/listing-optin.php:222
1606
- #: widgets/listing-optin/listing-optin.php:292 widgets/radio/radio.php:284
1607
- #: widgets/radio/radio.php:354 widgets/radio/radio.php:547
1608
- #: widgets/rating/rating.php:108 widgets/simple-captcha/simple-captcha.php:192
1609
- #: widgets/simple-captcha/simple-captcha.php:248 widgets/switch/switch.php:208
1610
- #: widgets/switch/switch.php:250
1611
- msgid "Padding"
1612
- msgstr ""
1613
-
1614
- #: traits/button-controls.php:177 traits/common-controls.php:330
1615
- #: traits/common-controls.php:632 traits/common-controls.php:685
1616
- #: traits/common-controls.php:724 widgets/checkbox/checkbox.php:272
1617
- #: widgets/checkbox/checkbox.php:509 widgets/gdpr-consent/gdpr-consent.php:191
1618
- #: widgets/listing-optin/listing-optin.php:211 widgets/radio/radio.php:273
1619
- #: widgets/radio/radio.php:522 widgets/rating/rating.php:250
1620
- #: widgets/simple-captcha/simple-captcha.php:181 widgets/switch/switch.php:200
1621
- #: widgets/switch/switch.php:242
1622
- msgid "Typography"
1623
- msgstr ""
1624
-
1625
- #: traits/button-controls.php:195 traits/button-controls.php:293
1626
- #: traits/common-controls.php:437 widgets/checkbox/checkbox.php:383
1627
- #: widgets/file-upload/file-upload.php:264
1628
- #: widgets/gdpr-consent/gdpr-consent.php:311
1629
- #: widgets/listing-optin/listing-optin.php:334 widgets/radio/radio.php:395
1630
- #: widgets/rating/rating.php:141
1631
- msgid "Normal"
1632
- msgstr ""
1633
-
1634
- #: traits/button-controls.php:202 traits/button-controls.php:231
1635
- #: widgets/checkbox/checkbox.php:364 widgets/gdpr-consent/gdpr-consent.php:292
1636
- #: widgets/listing-optin/listing-optin.php:315 widgets/radio/radio.php:377
1637
- #: widgets/switch/switch.php:187 widgets/switch/switch.php:229
1638
- msgid "Text Color"
1639
- msgstr ""
1640
-
1641
- #: traits/button-controls.php:224 traits/button-controls.php:317
1642
- #: traits/common-controls.php:501 widgets/file-upload/file-upload.php:295
1643
- msgid "Hover"
1644
- msgstr ""
1645
-
1646
- #: traits/button-controls.php:257
1647
- msgctxt "Border Control"
1648
- msgid "Border Type"
1649
- msgstr ""
1650
-
1651
- #: traits/button-controls.php:260 traits/common-controls.php:141
1652
- msgid "None"
1653
- msgstr ""
1654
-
1655
- #: traits/button-controls.php:261
1656
- msgctxt "Border Control"
1657
- msgid "Solid"
1658
- msgstr ""
1659
-
1660
- #: traits/button-controls.php:262
1661
- msgctxt "Border Control"
1662
- msgid "Double"
1663
- msgstr ""
1664
-
1665
- #: traits/button-controls.php:263
1666
- msgctxt "Border Control"
1667
- msgid "Dotted"
1668
- msgstr ""
1669
-
1670
- #: traits/button-controls.php:264
1671
- msgctxt "Border Control"
1672
- msgid "Dashed"
1673
- msgstr ""
1674
-
1675
- #: traits/button-controls.php:265
1676
- msgctxt "Border Control"
1677
- msgid "Groove"
1678
- msgstr ""
1679
-
1680
- #: traits/button-controls.php:277
1681
- msgctxt "Border Control"
1682
- msgid "Width"
1683
- msgstr ""
1684
-
1685
- #: traits/button-controls.php:303 traits/button-controls.php:326
1686
- msgctxt "Border Control"
1687
- msgid "Color"
1688
- msgstr ""
1689
-
1690
- #: traits/button-controls.php:342 traits/common-controls.php:247
1691
- #: traits/common-controls.php:643 widgets/file-upload/file-upload.php:369
1692
- #: widgets/range/range.php:199 widgets/rating/rating.php:212
1693
- msgid "Border Radius"
1694
- msgstr ""
1695
-
1696
- #: traits/button-controls.php:373
1697
- msgid "Icon Color"
1698
- msgstr ""
1699
-
1700
- #: traits/button-controls.php:389
1701
- msgid "Font Size"
1702
- msgstr ""
1703
-
1704
- #: traits/button-controls.php:409
1705
- msgid "Padding Right"
1706
- msgstr ""
1707
-
1708
- #: traits/button-controls.php:435
1709
- msgid "Padding Left"
1710
- msgstr ""
1711
-
1712
- #: traits/button-controls.php:461
1713
- msgid "Vertical Align"
1714
- msgstr ""
1715
-
1716
- #: traits/common-controls.php:29 widgets/checkbox/checkbox.php:51
1717
- #: widgets/gdpr-consent/gdpr-consent.php:44
1718
- #: widgets/listing-optin/listing-optin.php:44 widgets/radio/radio.php:52
1719
- #: widgets/simple-captcha/simple-captcha.php:49
1720
- msgid "Show Label"
1721
- msgstr ""
1722
-
1723
- #: traits/common-controls.php:31 widgets/checkbox/checkbox.php:53
1724
- #: widgets/gdpr-consent/gdpr-consent.php:46
1725
- #: widgets/listing-optin/listing-optin.php:46 widgets/radio/radio.php:54
1726
- #: widgets/simple-captcha/simple-captcha.php:51
1727
- msgid "Show"
1728
- msgstr ""
1729
-
1730
- #: traits/common-controls.php:32 widgets/checkbox/checkbox.php:54
1731
- #: widgets/gdpr-consent/gdpr-consent.php:47
1732
- #: widgets/listing-optin/listing-optin.php:47 widgets/radio/radio.php:55
1733
- #: widgets/simple-captcha/simple-captcha.php:52
1734
- msgid "Hide"
1735
- msgstr ""
1736
-
1737
- #: traits/common-controls.php:35 widgets/checkbox/checkbox.php:57
1738
- #: widgets/gdpr-consent/gdpr-consent.php:50
1739
- #: widgets/listing-optin/listing-optin.php:50 widgets/radio/radio.php:58
1740
- #: widgets/simple-captcha/simple-captcha.php:55
1741
- msgid ""
1742
- "for adding label on input turn it on. Don't want to use label? turn it off."
1743
- msgstr ""
1744
-
1745
- #: traits/common-controls.php:42 widgets/checkbox/checkbox.php:64
1746
- #: widgets/file-upload/file-upload.php:247
1747
- #: widgets/gdpr-consent/gdpr-consent.php:57
1748
- #: widgets/listing-optin/listing-optin.php:57 widgets/radio/radio.php:65
1749
- msgid "Position"
1750
- msgstr ""
1751
-
1752
- #: traits/common-controls.php:46 widgets/checkbox/checkbox.php:68
1753
- #: widgets/file-upload/file-upload.php:62
1754
- #: widgets/gdpr-consent/gdpr-consent.php:61
1755
- #: widgets/listing-optin/listing-optin.php:61 widgets/radio/radio.php:69
1756
- #: widgets/simple-captcha/simple-captcha.php:66
1757
- msgid "Top"
1758
- msgstr ""
1759
-
1760
- #: traits/common-controls.php:55 widgets/checkbox/checkbox.php:78
1761
- #: widgets/gdpr-consent/gdpr-consent.php:71
1762
- #: widgets/listing-optin/listing-optin.php:71 widgets/radio/radio.php:79
1763
- #: widgets/simple-captcha/simple-captcha.php:75
1764
- msgid ""
1765
- "Select label position. where you want to see it. top of the input or left of "
1766
- "the input."
1767
- msgstr ""
1768
-
1769
- #: traits/common-controls.php:63 widgets/simple-captcha/simple-captcha.php:98
1770
- msgid "Label : "
1771
- msgstr ""
1772
-
1773
- #: traits/common-controls.php:66 widgets/checkbox/checkbox.php:89
1774
- #: widgets/gdpr-consent/gdpr-consent.php:82
1775
- #: widgets/listing-optin/listing-optin.php:82 widgets/radio/radio.php:90
1776
- #: widgets/simple-captcha/simple-captcha.php:101
1777
- msgid "Enter here label of input"
1778
- msgstr ""
1779
-
1780
- #: traits/common-controls.php:77 widgets/gdpr-consent/gdpr-consent.php:92
1781
- #: widgets/listing-optin/listing-optin.php:92
1782
- msgid "Name : "
1783
- msgstr ""
1784
-
1785
- #: traits/common-controls.php:89 widgets/checkbox/checkbox.php:99
1786
- #: widgets/radio/radio.php:100
1787
- msgid "Name"
1788
- msgstr ""
1789
-
1790
- #: traits/common-controls.php:92 widgets/checkbox/checkbox.php:102
1791
- #: widgets/radio/radio.php:103
1792
- msgid "Enter here name of the input"
1793
- msgstr ""
1794
-
1795
- #: traits/common-controls.php:93 widgets/checkbox/checkbox.php:103
1796
- msgid ""
1797
- "Name is must required. Enter name without space or any special character. "
1798
- "use only underscore/ hyphen (_/-) for multiple word. Name must be different."
1799
- msgstr ""
1800
-
1801
- #: traits/common-controls.php:103
1802
- msgid "Place holder"
1803
- msgstr ""
1804
-
1805
- #: traits/common-controls.php:106
1806
- msgid "Enter here place holder"
1807
- msgstr ""
1808
-
1809
- #: traits/common-controls.php:114 widgets/checkbox/checkbox.php:205
1810
- #: widgets/gdpr-consent/gdpr-consent.php:145
1811
- #: widgets/listing-optin/listing-optin.php:144 widgets/radio/radio.php:206
1812
- #: widgets/simple-captcha/simple-captcha.php:111
1813
- msgid "Help Text : "
1814
- msgstr ""
1815
-
1816
- #: traits/common-controls.php:117 widgets/checkbox/checkbox.php:208
1817
- #: widgets/gdpr-consent/gdpr-consent.php:148
1818
- #: widgets/listing-optin/listing-optin.php:147 widgets/radio/radio.php:209
1819
- #: widgets/simple-captcha/simple-captcha.php:114
1820
- msgid "Type your help text here"
1821
- msgstr ""
1822
-
1823
- #: traits/common-controls.php:129
1824
- msgid "Required ?"
1825
- msgstr ""
1826
-
1827
- #: traits/common-controls.php:131 widgets/date/date.php:119
1828
- #: widgets/date/date.php:131 widgets/date/date.php:143
1829
- #: widgets/date/date.php:155 widgets/date/date.php:305
1830
- #: widgets/multi-select/multi-select.php:83 widgets/range/range.php:97
1831
- #: widgets/select/select.php:83 widgets/switch/switch.php:48
1832
- #: widgets/time/time.php:73
1833
- msgid "Yes"
1834
- msgstr ""
1835
-
1836
- #: traits/common-controls.php:132 widgets/date/date.php:120
1837
- #: widgets/date/date.php:132 widgets/date/date.php:144
1838
- #: widgets/date/date.php:156 widgets/date/date.php:306
1839
- #: widgets/multi-select/multi-select.php:84 widgets/range/range.php:98
1840
- #: widgets/select/select.php:84 widgets/switch/switch.php:56
1841
- #: widgets/time/time.php:74
1842
- msgid "No"
1843
- msgstr ""
1844
-
1845
- #: traits/common-controls.php:135
1846
- msgid "Is this field is required for submit the form?. Make it \"Yes\"."
1847
- msgstr ""
1848
-
1849
- #: traits/common-controls.php:142
1850
- msgid "By character length"
1851
- msgstr ""
1852
-
1853
- #: traits/common-controls.php:143
1854
- msgid "By Word length"
1855
- msgstr ""
1856
-
1857
- #: traits/common-controls.php:147
1858
- msgid "By expression based"
1859
- msgstr ""
1860
-
1861
- #: traits/common-controls.php:154
1862
- msgid "Validation type"
1863
- msgstr ""
1864
-
1865
- #: traits/common-controls.php:165 widgets/range/range.php:67
1866
- msgid "Min Length"
1867
- msgstr ""
1868
-
1869
- #: traits/common-controls.php:176 widgets/range/range.php:76
1870
- msgid "Max Length"
1871
- msgstr ""
1872
-
1873
- #: traits/common-controls.php:189
1874
- msgid "Expression for validate "
1875
- msgstr ""
1876
-
1877
- #: traits/common-controls.php:192
1878
- msgid "Ex: [a-zA-Z]+ "
1879
- msgstr ""
1880
-
1881
- #: traits/common-controls.php:203 traits/common-controls.php:205
1882
- msgid "Warning message"
1883
- msgstr ""
1884
-
1885
- #: traits/common-controls.php:206 widgets/checkbox/checkbox.php:557
1886
- #: widgets/date/date.php:430 widgets/email/email.php:128
1887
- #: widgets/file-upload/file-upload.php:419
1888
- #: widgets/gdpr-consent/gdpr-consent.php:448
1889
- #: widgets/listing-fname/listing-fname.php:141
1890
- #: widgets/listing-lname/listing-lname.php:141
1891
- #: widgets/listing-optin/listing-optin.php:471
1892
- #: widgets/multi-select/multi-select.php:208 widgets/number/number.php:127
1893
- #: widgets/password/password.php:141 widgets/radio/radio.php:570
1894
- #: widgets/rating/rating.php:295 widgets/select/select.php:218
1895
- #: widgets/switch/switch.php:291 widgets/telephone/telephone.php:127
1896
- #: widgets/text/text.php:127 widgets/textarea/textarea.php:151
1897
- #: widgets/time/time.php:161 widgets/url/url.php:137
1898
- msgid "This field is required."
1899
- msgstr ""
1900
-
1901
- #: traits/common-controls.php:232 traits/common-controls.php:673
1902
- #: widgets/gdpr-consent/gdpr-consent.php:232
1903
- #: widgets/listing-optin/listing-optin.php:252 widgets/radio/radio.php:314
1904
- #: widgets/rating/rating.php:261
1905
- msgid "Box Shadow"
1906
- msgstr ""
1907
-
1908
- #: traits/common-controls.php:240 traits/common-controls.php:489
1909
- #: traits/common-controls.php:547 traits/common-controls.php:610
1910
- #: widgets/button/button.php:80 widgets/file-upload/file-upload.php:361
1911
- #: widgets/rating/rating.php:165 widgets/rating/rating.php:199
1912
- msgid "Border"
1913
- msgstr ""
1914
-
1915
- #: traits/common-controls.php:280 widgets/range/range.php:168
1916
- #: widgets/simple-captcha/simple-captcha.php:134 widgets/switch/switch.php:115
1917
- msgid "Width"
1918
- msgstr ""
1919
-
1920
- #: traits/common-controls.php:311 traits/common-controls.php:694
1921
- #: traits/common-controls.php:733 widgets/checkbox/checkbox.php:253
1922
- #: widgets/checkbox/checkbox.php:518 widgets/file-upload/file-upload.php:271
1923
- #: widgets/file-upload/file-upload.php:302
1924
- #: widgets/gdpr-consent/gdpr-consent.php:172
1925
- #: widgets/listing-optin/listing-optin.php:192 widgets/radio/radio.php:254
1926
- #: widgets/radio/radio.php:531 widgets/simple-captcha/simple-captcha.php:162
1927
- #: widgets/simple-captcha/simple-captcha.php:272
1928
- msgid "Color"
1929
- msgstr ""
1930
-
1931
- #: traits/common-controls.php:355 traits/common-controls.php:420
1932
- #: widgets/checkbox/checkbox.php:297 widgets/checkbox/checkbox.php:352
1933
- #: widgets/file-upload/file-upload.php:348
1934
- #: widgets/gdpr-consent/gdpr-consent.php:216
1935
- #: widgets/gdpr-consent/gdpr-consent.php:280
1936
- #: widgets/listing-optin/listing-optin.php:236
1937
- #: widgets/listing-optin/listing-optin.php:303 widgets/radio/radio.php:298
1938
- #: widgets/radio/radio.php:365 widgets/rating/rating.php:120
1939
- #: widgets/simple-captcha/simple-captcha.php:206
1940
- #: widgets/simple-captcha/simple-captcha.php:260
1941
- msgid "Margin"
1942
- msgstr ""
1943
-
1944
- #: traits/common-controls.php:370 widgets/checkbox/checkbox.php:312
1945
- #: widgets/gdpr-consent/gdpr-consent.php:243
1946
- #: widgets/listing-optin/listing-optin.php:263 widgets/radio/radio.php:325
1947
- #: widgets/recaptcha/recaptcha.php:66
1948
- #: widgets/simple-captcha/simple-captcha.php:221
1949
- msgid "Required Indicator Color:"
1950
- msgstr ""
1951
-
1952
- #: traits/common-controls.php:444 traits/common-controls.php:508
1953
- #: traits/common-controls.php:567 widgets/rating/rating.php:148
1954
- #: widgets/rating/rating.php:182
1955
- msgid "Input Color"
1956
- msgstr ""
1957
-
1958
- #: traits/common-controls.php:476 traits/common-controls.php:535
1959
- #: traits/common-controls.php:596 widgets/file-upload/file-upload.php:284
1960
- #: widgets/file-upload/file-upload.php:315
1961
- msgid "Background"
1962
- msgstr ""
1963
-
1964
- #: traits/common-controls.php:560
1965
- msgid "Focus"
1966
- msgstr ""
1967
-
1968
- #: traits/conditional-controls.php:25
1969
- msgid "Conditional logic"
1970
- msgstr ""
1971
-
1972
- #: traits/conditional-controls.php:33 widgets/multi-select/multi-select.php:70
1973
- #: widgets/select/select.php:70
1974
- msgid "Enable"
1975
- msgstr ""
1976
-
1977
- #: traits/conditional-controls.php:36
1978
- msgid "This feature only works on the frontend."
1979
- msgstr ""
1980
-
1981
- #: traits/conditional-controls.php:47
1982
- msgid "Condition match criteria"
1983
- msgstr ""
1984
-
1985
- #: traits/conditional-controls.php:52
1986
- msgid "AND"
1987
- msgstr ""
1988
-
1989
- #: traits/conditional-controls.php:53
1990
- msgid "OR"
1991
- msgstr ""
1992
-
1993
- #: traits/conditional-controls.php:65
1994
- msgid "Action"
1995
- msgstr ""
1996
-
1997
- #: traits/conditional-controls.php:87
1998
- msgid "If"
1999
- msgstr ""
2000
-
2001
- #: traits/conditional-controls.php:90
2002
- msgid "Input field name"
2003
- msgstr ""
2004
-
2005
- #: traits/conditional-controls.php:97
2006
- msgid "Match ( comparison )"
2007
- msgstr ""
2008
-
2009
- #: traits/conditional-controls.php:101
2010
- msgid "not empty"
2011
- msgstr ""
2012
-
2013
- #: traits/conditional-controls.php:102
2014
- msgid "empty"
2015
- msgstr ""
2016
-
2017
- #: traits/conditional-controls.php:103
2018
- msgid "equals"
2019
- msgstr ""
2020
-
2021
- #: traits/conditional-controls.php:104
2022
- msgid "not equals"
2023
- msgstr ""
2024
-
2025
- #: traits/conditional-controls.php:105
2026
- msgid "greater than"
2027
- msgstr ""
2028
-
2029
- #: traits/conditional-controls.php:106
2030
- msgid "greater than equal"
2031
- msgstr ""
2032
-
2033
- #: traits/conditional-controls.php:107
2034
- msgid "smaller than"
2035
- msgstr ""
2036
-
2037
- #: traits/conditional-controls.php:108
2038
- msgid "smaller than equal"
2039
- msgstr ""
2040
-
2041
- #: traits/conditional-controls.php:117
2042
- msgid "Match value"
2043
- msgstr ""
2044
-
2045
- #: traits/conditional-controls.php:120
2046
- msgid "50"
2047
- msgstr ""
2048
-
2049
- #: traits/conditional-controls.php:132
2050
- msgid "Value for set"
2051
- msgstr ""
2052
-
2053
- #: traits/conditional-controls.php:134
2054
- msgid "Enter value for set"
2055
- msgstr ""
2056
-
2057
- #: traits/conditional-controls.php:135
2058
- msgid "E.g 100, name, anything"
2059
- msgstr ""
2060
-
2061
- #: widgets/button/button.php:16
2062
- msgid "Submit Button"
2063
- msgstr ""
2064
-
2065
- #: widgets/button/button.php:36 widgets/checkbox/checkbox.php:43
2066
- #: widgets/date/date.php:40 widgets/email/email.php:36
2067
- #: widgets/file-upload/file-upload.php:37 widgets/form-basic.php:49
2068
- #: widgets/form.php:36 widgets/gdpr-consent/gdpr-consent.php:36
2069
- #: widgets/listing-fname/listing-fname.php:36
2070
- #: widgets/listing-lname/listing-lname.php:36
2071
- #: widgets/listing-optin/listing-optin.php:36
2072
- #: widgets/multi-select/multi-select.php:36 widgets/number/number.php:36
2073
- #: widgets/password/password.php:36 widgets/radio/radio.php:44
2074
- #: widgets/range/range.php:36 widgets/rating/rating.php:36
2075
- #: widgets/recaptcha/recaptcha.php:32 widgets/select/select.php:36
2076
- #: widgets/simple-captcha/simple-captcha.php:41 widgets/summary/summary.php:36
2077
- #: widgets/switch/switch.php:36 widgets/telephone/telephone.php:36
2078
- #: widgets/text/text.php:36 widgets/textarea/textarea.php:37
2079
- #: widgets/time/time.php:40 widgets/url/url.php:37
2080
- msgid "Content"
2081
- msgstr ""
2082
-
2083
- #: widgets/button/button.php:52
2084
- msgid "Hidden"
2085
- msgstr ""
2086
-
2087
- #: widgets/button/button.php:65
2088
- msgid "Button"
2089
- msgstr ""
2090
-
2091
- #: widgets/button/button.php:92
2092
- msgid "Shadow"
2093
- msgstr ""
2094
-
2095
- #: widgets/checkbox/checkbox.php:24 widgets/checkbox/checkbox.php:333
2096
- #: widgets/gdpr-consent/gdpr-consent.php:261
2097
- #: widgets/listing-optin/listing-optin.php:284
2098
- msgid "Checkbox"
2099
- msgstr ""
2100
-
2101
- #: widgets/checkbox/checkbox.php:86 widgets/gdpr-consent/gdpr-consent.php:79
2102
- #: widgets/listing-optin/listing-optin.php:79 widgets/radio/radio.php:87
2103
- msgid "Input Label : "
2104
- msgstr ""
2105
-
2106
- #: widgets/checkbox/checkbox.php:111 widgets/gdpr-consent/gdpr-consent.php:102
2107
- #: widgets/listing-optin/listing-optin.php:102 widgets/radio/radio.php:112
2108
- msgid "Option Display : "
2109
- msgstr ""
2110
-
2111
- #: widgets/checkbox/checkbox.php:115 widgets/gdpr-consent/gdpr-consent.php:106
2112
- #: widgets/listing-optin/listing-optin.php:106 widgets/radio/radio.php:116
2113
- msgid "Horizontal"
2114
- msgstr ""
2115
-
2116
- #: widgets/checkbox/checkbox.php:116 widgets/gdpr-consent/gdpr-consent.php:107
2117
- #: widgets/listing-optin/listing-optin.php:107 widgets/radio/radio.php:117
2118
- msgid "Vertical"
2119
- msgstr ""
2120
-
2121
- #: widgets/checkbox/checkbox.php:122 widgets/gdpr-consent/gdpr-consent.php:113
2122
- #: widgets/listing-optin/listing-optin.php:113
2123
- msgid "Checkbox option display style. "
2124
- msgstr ""
2125
-
2126
- #: widgets/checkbox/checkbox.php:129 widgets/gdpr-consent/gdpr-consent.php:120
2127
- #: widgets/listing-optin/listing-optin.php:120 widgets/radio/radio.php:130
2128
- msgid "Option Text Position : "
2129
- msgstr ""
2130
-
2131
- #: widgets/checkbox/checkbox.php:132 widgets/gdpr-consent/gdpr-consent.php:123
2132
- #: widgets/listing-optin/listing-optin.php:123
2133
- msgid "After Checkbox"
2134
- msgstr ""
2135
-
2136
- #: widgets/checkbox/checkbox.php:133 widgets/gdpr-consent/gdpr-consent.php:124
2137
- #: widgets/listing-optin/listing-optin.php:124
2138
- msgid "Before Checkbox"
2139
- msgstr ""
2140
-
2141
- #: widgets/checkbox/checkbox.php:136 widgets/gdpr-consent/gdpr-consent.php:127
2142
- #: widgets/listing-optin/listing-optin.php:127 widgets/radio/radio.php:137
2143
- msgid "Where do you want to label?"
2144
- msgstr ""
2145
-
2146
- #: widgets/checkbox/checkbox.php:144 widgets/gdpr-consent/gdpr-consent.php:133
2147
- #: widgets/listing-optin/listing-optin.php:133
2148
- msgid "Checkbox Option Text"
2149
- msgstr ""
2150
-
2151
- #: widgets/checkbox/checkbox.php:146 widgets/radio/radio.php:147
2152
- msgid "Option Text"
2153
- msgstr ""
2154
-
2155
- #: widgets/checkbox/checkbox.php:148 widgets/radio/radio.php:149
2156
- msgid "Select option text that will be show to user."
2157
- msgstr ""
2158
-
2159
- #: widgets/checkbox/checkbox.php:153 widgets/checkbox/checkbox.php:155
2160
- #: widgets/radio/radio.php:154 widgets/radio/radio.php:156
2161
- msgid "Option Value"
2162
- msgstr ""
2163
-
2164
- #: widgets/checkbox/checkbox.php:157 widgets/radio/radio.php:158
2165
- msgid "Select option value that will be store/mail to desired person."
2166
- msgstr ""
2167
-
2168
- #: widgets/checkbox/checkbox.php:162 widgets/radio/radio.php:163
2169
- msgid "Option Status"
2170
- msgstr ""
2171
-
2172
- #: widgets/checkbox/checkbox.php:165 widgets/radio/radio.php:166
2173
- #: widgets/rating/rating.php:175 widgets/switch/switch.php:222
2174
- msgid "Active"
2175
- msgstr ""
2176
-
2177
- #: widgets/checkbox/checkbox.php:166 widgets/multi-select/multi-select.php:71
2178
- #: widgets/radio/radio.php:167 widgets/select/select.php:71
2179
- msgid "Disable"
2180
- msgstr ""
2181
-
2182
- #: widgets/checkbox/checkbox.php:170 widgets/multi-select/multi-select.php:73
2183
- #: widgets/radio/radio.php:171 widgets/select/select.php:73
2184
- msgid ""
2185
- "Want to make a option? which user can see the option but can't select it. "
2186
- "make it disable."
2187
- msgstr ""
2188
-
2189
- #: widgets/checkbox/checkbox.php:177
2190
- msgid "Checkbox Options"
2191
- msgstr ""
2192
-
2193
- #: widgets/checkbox/checkbox.php:198 widgets/multi-select/multi-select.php:114
2194
- #: widgets/radio/radio.php:199 widgets/select/select.php:114
2195
- msgid "You can add/edit here your selector options."
2196
- msgstr ""
2197
-
2198
- #: widgets/checkbox/checkbox.php:227 widgets/date/date.php:62
2199
- #: widgets/file-upload/file-upload.php:89
2200
- #: widgets/listing-optin/listing-optin.php:166
2201
- #: widgets/multi-select/multi-select.php:133 widgets/radio/radio.php:228
2202
- #: widgets/range/range.php:58 widgets/rating/rating.php:58
2203
- #: widgets/select/select.php:133 widgets/summary/summary.php:58
2204
- #: widgets/switch/switch.php:76 widgets/time/time.php:62 widgets/url/url.php:59
2205
- msgid "Validation Type"
2206
- msgstr ""
2207
-
2208
- #: widgets/checkbox/checkbox.php:242 widgets/gdpr-consent/gdpr-consent.php:161
2209
- #: widgets/listing-optin/listing-optin.php:181 widgets/radio/radio.php:243
2210
- msgid "Input Label"
2211
- msgstr ""
2212
-
2213
- #: widgets/checkbox/checkbox.php:390 widgets/checkbox/checkbox.php:415
2214
- #: widgets/gdpr-consent/gdpr-consent.php:318
2215
- #: widgets/gdpr-consent/gdpr-consent.php:343
2216
- #: widgets/listing-optin/listing-optin.php:341
2217
- #: widgets/listing-optin/listing-optin.php:366
2218
- msgid "Checkbox Color"
2219
- msgstr ""
2220
-
2221
- #: widgets/checkbox/checkbox.php:408 widgets/gdpr-consent/gdpr-consent.php:336
2222
- #: widgets/listing-optin/listing-optin.php:359 widgets/radio/radio.php:420
2223
- msgid "Checked"
2224
- msgstr ""
2225
-
2226
- #: widgets/checkbox/checkbox.php:435 widgets/gdpr-consent/gdpr-consent.php:363
2227
- #: widgets/listing-optin/listing-optin.php:386 widgets/radio/radio.php:447
2228
- msgid "Horizontal position of icon"
2229
- msgstr ""
2230
-
2231
- #: widgets/checkbox/checkbox.php:458 widgets/gdpr-consent/gdpr-consent.php:386
2232
- #: widgets/listing-optin/listing-optin.php:409
2233
- msgid "Add space after checkbox"
2234
- msgstr ""
2235
-
2236
- #: widgets/checkbox/checkbox.php:474 widgets/gdpr-consent/gdpr-consent.php:402
2237
- #: widgets/listing-optin/listing-optin.php:425 widgets/radio/radio.php:487
2238
- msgid "Typography for icon"
2239
- msgstr ""
2240
-
2241
- #: widgets/checkbox/checkbox.php:485 widgets/gdpr-consent/gdpr-consent.php:413
2242
- #: widgets/listing-optin/listing-optin.php:436 widgets/radio/radio.php:498
2243
- msgid "Typography for text"
2244
- msgstr ""
2245
-
2246
- #: widgets/checkbox/checkbox.php:497 widgets/date/date.php:371
2247
- #: widgets/email/email.php:103 widgets/file-upload/file-upload.php:384
2248
- #: widgets/gdpr-consent/gdpr-consent.php:424
2249
- #: widgets/listing-fname/listing-fname.php:103
2250
- #: widgets/listing-lname/listing-lname.php:103
2251
- #: widgets/listing-optin/listing-optin.php:447
2252
- #: widgets/multi-select/multi-select.php:175 widgets/number/number.php:103
2253
- #: widgets/password/password.php:103 widgets/radio/radio.php:510
2254
- #: widgets/range/range.php:214 widgets/rating/rating.php:271
2255
- #: widgets/select/select.php:185 widgets/simple-captcha/simple-captcha.php:290
2256
- #: widgets/summary/summary.php:96 widgets/switch/switch.php:267
2257
- #: widgets/telephone/telephone.php:103 widgets/text/text.php:103
2258
- #: widgets/textarea/textarea.php:127 widgets/time/time.php:128
2259
- #: widgets/url/url.php:113
2260
- msgid "Help Text"
2261
- msgstr ""
2262
-
2263
- #: widgets/date/date.php:20
2264
- msgid "Date"
2265
- msgstr ""
2266
-
2267
- #: widgets/date/date.php:71
2268
- msgid "Set minimum date:"
2269
- msgstr ""
2270
-
2271
- #: widgets/date/date.php:82
2272
- msgid "Set maximum date:"
2273
- msgstr ""
2274
-
2275
- #: widgets/date/date.php:95
2276
- msgid "Disable date : "
2277
- msgstr ""
2278
-
2279
- #: widgets/date/date.php:106
2280
- msgid "Disable date List"
2281
- msgstr ""
2282
-
2283
- #: widgets/date/date.php:117
2284
- msgid "Range date input ?"
2285
- msgstr ""
2286
-
2287
- #: widgets/date/date.php:129
2288
- msgid "Year input ?"
2289
- msgstr ""
2290
-
2291
- #: widgets/date/date.php:141
2292
- msgid "Month input ?"
2293
- msgstr ""
2294
-
2295
- #: widgets/date/date.php:153
2296
- msgid "Date input ?"
2297
- msgstr ""
2298
-
2299
- #: widgets/date/date.php:165 widgets/date/date.php:201
2300
- #: widgets/date/date.php:235 widgets/date/date.php:269
2301
- msgid "Date format : "
2302
- msgstr ""
2303
-
2304
- #: widgets/date/date.php:169
2305
- msgid "YYYY-MM-DD"
2306
- msgstr ""
2307
-
2308
- #: widgets/date/date.php:170
2309
- msgid "DD-MM-YYYY"
2310
- msgstr ""
2311
-
2312
- #: widgets/date/date.php:171
2313
- msgid "MM-DD-YYYY"
2314
- msgstr ""
2315
-
2316
- #: widgets/date/date.php:172
2317
- msgid "YYYY.MM.DD"
2318
- msgstr ""
2319
-
2320
- #: widgets/date/date.php:173
2321
- msgid "DD.MM.YYYY"
2322
- msgstr ""
2323
-
2324
- #: widgets/date/date.php:174
2325
- msgid "MM.DD.YYYY"
2326
- msgstr ""
2327
-
2328
- #: widgets/date/date.php:205
2329
- msgid "MM-DD"
2330
- msgstr ""
2331
-
2332
- #: widgets/date/date.php:206
2333
- msgid "DD-MM"
2334
- msgstr ""
2335
-
2336
- #: widgets/date/date.php:207
2337
- msgid "MM.DD"
2338
- msgstr ""
2339
-
2340
- #: widgets/date/date.php:208
2341
- msgid "DD.MM"
2342
- msgstr ""
2343
-
2344
- #: widgets/date/date.php:239
2345
- msgid "MM-YY"
2346
- msgstr ""
2347
-
2348
- #: widgets/date/date.php:240
2349
- msgid "YY-MM"
2350
- msgstr ""
2351
-
2352
- #: widgets/date/date.php:241
2353
- msgid "MM.YY"
2354
- msgstr ""
2355
-
2356
- #: widgets/date/date.php:242
2357
- msgid "YY.MM"
2358
- msgstr ""
2359
-
2360
- #: widgets/date/date.php:273
2361
- msgid "DD-YY"
2362
- msgstr ""
2363
-
2364
- #: widgets/date/date.php:274
2365
- msgid "YY-DD"
2366
- msgstr ""
2367
-
2368
- #: widgets/date/date.php:275
2369
- msgid "DD.YY"
2370
- msgstr ""
2371
-
2372
- #: widgets/date/date.php:276
2373
- msgid "YY.DD"
2374
- msgstr ""
2375
-
2376
- #: widgets/date/date.php:303
2377
- msgid "Want to input time with it ?"
2378
- msgstr ""
2379
-
2380
- #: widgets/date/date.php:336 widgets/email/email.php:79
2381
- #: widgets/file-upload/file-upload.php:185
2382
- #: widgets/listing-fname/listing-fname.php:79
2383
- #: widgets/listing-lname/listing-lname.php:79
2384
- #: widgets/multi-select/multi-select.php:163 widgets/number/number.php:79
2385
- #: widgets/password/password.php:79 widgets/rating/rating.php:100
2386
- #: widgets/summary/summary.php:84 widgets/switch/switch.php:107
2387
- #: widgets/telephone/telephone.php:79 widgets/text/text.php:79
2388
- #: widgets/textarea/textarea.php:80 widgets/time/time.php:104
2389
- #: widgets/url/url.php:89
2390
- msgid "Input"
2391
- msgstr ""
2392
-
2393
- #: widgets/date/date.php:347
2394
- msgid "Calendar Typography"
2395
- msgstr ""
2396
-
2397
- #: widgets/date/date.php:359 widgets/email/email.php:91
2398
- #: widgets/listing-fname/listing-fname.php:91
2399
- #: widgets/listing-lname/listing-lname.php:91 widgets/number/number.php:91
2400
- #: widgets/password/password.php:91 widgets/select/select.php:173
2401
- #: widgets/simple-captcha/simple-captcha.php:305
2402
- #: widgets/telephone/telephone.php:91 widgets/text/text.php:91
2403
- #: widgets/textarea/textarea.php:115 widgets/time/time.php:116
2404
- #: widgets/url/url.php:101
2405
- msgid "Place Holder"
2406
- msgstr ""
2407
-
2408
- #: widgets/email/email.php:16
2409
- msgid "Email"
2410
- msgstr ""
2411
-
2412
- #: widgets/email/email.php:129
2413
- msgid "Please enter a valid Email address"
2414
- msgstr ""
2415
-
2416
- #: widgets/file-upload/file-upload.php:16
2417
- msgid "File Upload"
2418
- msgstr ""
2419
-
2420
- #: widgets/file-upload/file-upload.php:47
2421
- msgid "File Upload Icon:"
2422
- msgstr ""
2423
-
2424
- #: widgets/file-upload/file-upload.php:56
2425
- msgid "File Upload Icon Position"
2426
- msgstr ""
2427
-
2428
- #: widgets/file-upload/file-upload.php:98
2429
- msgid "File Size Limit : "
2430
- msgstr ""
2431
-
2432
- #: widgets/file-upload/file-upload.php:109
2433
- msgid "Maximum File Size (KB) : "
2434
- msgstr ""
2435
-
2436
- #: widgets/file-upload/file-upload.php:111
2437
- msgid "128"
2438
- msgstr ""
2439
-
2440
- #: widgets/file-upload/file-upload.php:121
2441
- msgid "File Types : "
2442
- msgstr ""
2443
-
2444
- #: widgets/file-upload/file-upload.php:125
2445
- msgid ".jpg"
2446
- msgstr ""
2447
-
2448
- #: widgets/file-upload/file-upload.php:126
2449
- msgid ".jpeg"
2450
- msgstr ""
2451
-
2452
- #: widgets/file-upload/file-upload.php:127
2453
- msgid ".gif"
2454
- msgstr ""
2455
-
2456
- #: widgets/file-upload/file-upload.php:128
2457
- msgid ".png"
2458
- msgstr ""
2459
-
2460
- #: widgets/file-upload/file-upload.php:129
2461
- msgid ".ico"
2462
- msgstr ""
2463
-
2464
- #: widgets/file-upload/file-upload.php:130
2465
- msgid ".pdf"
2466
- msgstr ""
2467
-
2468
- #: widgets/file-upload/file-upload.php:131
2469
- msgid ".doc"
2470
- msgstr ""
2471
-
2472
- #: widgets/file-upload/file-upload.php:132
2473
- msgid ".docx"
2474
- msgstr ""
2475
-
2476
- #: widgets/file-upload/file-upload.php:133
2477
- msgid ".ppt"
2478
- msgstr ""
2479
-
2480
- #: widgets/file-upload/file-upload.php:134
2481
- msgid ".pptx"
2482
- msgstr ""
2483
-
2484
- #: widgets/file-upload/file-upload.php:135
2485
- msgid ".pps"
2486
- msgstr ""
2487
-
2488
- #: widgets/file-upload/file-upload.php:136
2489
- msgid ".ppsx"
2490
- msgstr ""
2491
-
2492
- #: widgets/file-upload/file-upload.php:137
2493
- msgid ".odt"
2494
- msgstr ""
2495
-
2496
- #: widgets/file-upload/file-upload.php:138
2497
- msgid ".xls"
2498
- msgstr ""
2499
-
2500
- #: widgets/file-upload/file-upload.php:139
2501
- msgid ".xlsx"
2502
- msgstr ""
2503
-
2504
- #: widgets/file-upload/file-upload.php:140
2505
- msgid ".psd"
2506
- msgstr ""
2507
-
2508
- #: widgets/file-upload/file-upload.php:141
2509
- msgid ".mp3"
2510
- msgstr ""
2511
-
2512
- #: widgets/file-upload/file-upload.php:142
2513
- msgid ".m4a"
2514
- msgstr ""
2515
-
2516
- #: widgets/file-upload/file-upload.php:143
2517
- msgid ".ogg"
2518
- msgstr ""
2519
-
2520
- #: widgets/file-upload/file-upload.php:144
2521
- msgid ".wav"
2522
- msgstr ""
2523
-
2524
- #: widgets/file-upload/file-upload.php:145
2525
- msgid ".mp4"
2526
- msgstr ""
2527
-
2528
- #: widgets/file-upload/file-upload.php:146
2529
- msgid ".m4v"
2530
- msgstr ""
2531
-
2532
- #: widgets/file-upload/file-upload.php:147
2533
- msgid ".mov"
2534
- msgstr ""
2535
-
2536
- #: widgets/file-upload/file-upload.php:148
2537
- msgid ".wmv"
2538
- msgstr ""
2539
-
2540
- #: widgets/file-upload/file-upload.php:149
2541
- msgid ".avi"
2542
- msgstr ""
2543
-
2544
- #: widgets/file-upload/file-upload.php:150
2545
- msgid ".mpg"
2546
- msgstr ""
2547
-
2548
- #: widgets/file-upload/file-upload.php:151
2549
- msgid ".ogv"
2550
- msgstr ""
2551
-
2552
- #: widgets/file-upload/file-upload.php:152
2553
- msgid ".3gp"
2554
- msgstr ""
2555
-
2556
- #: widgets/file-upload/file-upload.php:153
2557
- msgid ".3g2"
2558
- msgstr ""
2559
-
2560
- #: widgets/file-upload/file-upload.php:154
2561
- msgid ".zip"
2562
- msgstr ""
2563
-
2564
- #: widgets/file-upload/file-upload.php:155
2565
- msgid ".csv"
2566
- msgstr ""
2567
-
2568
- #: widgets/file-upload/file-upload.php:195
2569
- msgid "Icon Size"
2570
- msgstr ""
2571
-
2572
- #: widgets/file-upload/file-upload.php:223
2573
- msgid "Icon Spacing"
2574
- msgstr ""
2575
-
2576
- #: widgets/file-upload/file-upload.php:238
2577
- msgid "File Name:"
2578
- msgstr ""
2579
-
2580
- #: widgets/file-upload/file-upload.php:252
2581
- msgid "Bottom"
2582
- msgstr ""
2583
-
2584
- #: widgets/file-upload/file-upload.php:446
2585
- msgid "Choose a file"
2586
- msgstr ""
2587
-
2588
- #: widgets/file-upload/file-upload.php:452
2589
- msgid "No file chosen."
2590
- msgstr ""
2591
-
2592
- #: widgets/form-basic.php:12
2593
- msgid "MetForm Basic"
2594
- msgstr ""
2595
-
2596
- #: widgets/form-basic.php:58
2597
- msgid "Select Form : "
2598
- msgstr ""
2599
-
2600
- #: widgets/form.php:51
2601
- msgid "Select Form: "
2602
- msgstr ""
2603
-
2604
- #: widgets/form.php:54
2605
- msgid "Click on the \"red\" edit icon to edit form content."
2606
- msgstr ""
2607
-
2608
- #: widgets/gdpr-consent/gdpr-consent.php:16
2609
- msgid "GDPR Consent"
2610
- msgstr ""
2611
-
2612
- #: widgets/gdpr-consent/gdpr-consent.php:138
2613
- #: widgets/listing-optin/listing-optin.php:137
2614
- msgid "Select option name that will be show to user."
2615
- msgstr ""
2616
-
2617
- #: widgets/listing-fname/listing-fname.php:16
2618
- msgid "First Name (Listing)"
2619
- msgstr ""
2620
-
2621
- #: widgets/listing-lname/listing-lname.php:16
2622
- msgid "Last Name (Listing)"
2623
- msgstr ""
2624
-
2625
- #: widgets/listing-optin/listing-optin.php:16
2626
- msgid "Opt in ( Listing )"
2627
- msgstr ""
2628
-
2629
- #: widgets/listing-optin/listing-optin.php:135
2630
- msgid "Subscribe to ours newsletter."
2631
- msgstr ""
2632
-
2633
- #: widgets/manifest.php:116
2634
- msgid "Metform"
2635
- msgstr ""
2636
-
2637
- #: widgets/multi-select/multi-select.php:16
2638
- msgid "Multi Select"
2639
- msgstr ""
2640
-
2641
- #: widgets/multi-select/multi-select.php:47 widgets/select/select.php:47
2642
- msgid "Input Field Text"
2643
- msgstr ""
2644
-
2645
- #: widgets/multi-select/multi-select.php:49 widgets/select/select.php:49
2646
- msgid "Input Text"
2647
- msgstr ""
2648
-
2649
- #: widgets/multi-select/multi-select.php:51 widgets/select/select.php:51
2650
- msgid "Select list text that will be show to user."
2651
- msgstr ""
2652
-
2653
- #: widgets/multi-select/multi-select.php:56 widgets/select/select.php:56
2654
- msgid "Input Field Value"
2655
- msgstr ""
2656
-
2657
- #: widgets/multi-select/multi-select.php:60 widgets/select/select.php:60
2658
- msgid "Select list value that will be store/mail to desired person."
2659
- msgstr ""
2660
-
2661
- #: widgets/multi-select/multi-select.php:66 widgets/select/select.php:66
2662
- msgid "Status"
2663
- msgstr ""
2664
-
2665
- #: widgets/multi-select/multi-select.php:79 widgets/select/select.php:79
2666
- msgid "Select it default ? "
2667
- msgstr ""
2668
-
2669
- #: widgets/multi-select/multi-select.php:86 widgets/select/select.php:86
2670
- msgid "Make this option default selected"
2671
- msgstr ""
2672
-
2673
- #: widgets/multi-select/multi-select.php:93
2674
- msgid "Multi Select List"
2675
- msgstr ""
2676
-
2677
- #: widgets/number/number.php:16
2678
- msgid "Number"
2679
- msgstr ""
2680
-
2681
- #: widgets/password/password.php:16
2682
- msgid "Password"
2683
- msgstr ""
2684
-
2685
- #: widgets/radio/radio.php:24 widgets/radio/radio.php:346
2686
- msgid "Radio"
2687
- msgstr ""
2688
-
2689
- #: widgets/radio/radio.php:104
2690
- msgid ""
2691
- "Name is must required. Enter name without space or any special character. "
2692
- "use only underscore/ hyphen (_/-) for multiple word."
2693
- msgstr ""
2694
-
2695
- #: widgets/radio/radio.php:123
2696
- msgid "Radio option display style."
2697
- msgstr ""
2698
-
2699
- #: widgets/radio/radio.php:133
2700
- msgid "After Radio"
2701
- msgstr ""
2702
-
2703
- #: widgets/radio/radio.php:134
2704
- msgid "Before Radio"
2705
- msgstr ""
2706
-
2707
- #: widgets/radio/radio.php:145
2708
- msgid "Radio Option Text"
2709
- msgstr ""
2710
-
2711
- #: widgets/radio/radio.php:178
2712
- msgid "Radio Options"
2713
- msgstr ""
2714
-
2715
- #: widgets/radio/radio.php:402 widgets/radio/radio.php:427
2716
- msgid "Radio Color"
2717
- msgstr ""
2718
-
2719
- #: widgets/radio/radio.php:471
2720
- msgid "Add space after radio"
2721
- msgstr ""
2722
-
2723
- #: widgets/range/range.php:16
2724
- msgid "Range Slider"
2725
- msgstr ""
2726
-
2727
- #: widgets/range/range.php:86
2728
- msgid "Steps"
2729
- msgstr ""
2730
-
2731
- #: widgets/range/range.php:95
2732
- msgid "Dual range input:"
2733
- msgstr ""
2734
-
2735
- #: widgets/range/range.php:108
2736
- msgid ""
2737
- "<strong>Important Note : </strong> For taking dual range input, You have to "
2738
- "enter dual default value in the field Value (Exactly bottom of this notice "
2739
- "field. ). Example: Min:10, Max:20"
2740
- msgstr ""
2741
-
2742
- #: widgets/range/range.php:119
2743
- msgid "Value"
2744
- msgstr ""
2745
-
2746
- #: widgets/range/range.php:148
2747
- msgid "Range"
2748
- msgstr ""
2749
-
2750
- #: widgets/range/range.php:160
2751
- msgid "Counter"
2752
- msgstr ""
2753
-
2754
- #: widgets/range/range.php:183 widgets/switch/switch.php:132
2755
- #: widgets/textarea/textarea.php:88
2756
- msgid "Height"
2757
- msgstr ""
2758
-
2759
- #: widgets/rating/rating.php:16
2760
- msgid "Rating"
2761
- msgstr ""
2762
-
2763
- #: widgets/rating/rating.php:67
2764
- msgid "Number of rating star : "
2765
- msgstr ""
2766
-
2767
- #: widgets/recaptcha/recaptcha.php:13
2768
- msgid "reCAPTCHA"
2769
- msgstr ""
2770
-
2771
- #: widgets/recaptcha/recaptcha.php:40
2772
- msgid "reCAPTCHA configure: "
2773
- msgstr ""
2774
-
2775
- #: widgets/recaptcha/recaptcha.php:50
2776
- msgid "Add Extra Class Name : "
2777
- msgstr ""
2778
-
2779
- #: widgets/recaptcha/recaptcha.php:91
2780
- msgid "reCAPTCHA is required."
2781
- msgstr ""
2782
-
2783
- #: widgets/recaptcha/recaptcha.php:127 widgets/recaptcha/recaptcha.php:144
2784
- msgid "reCAPTCHA will be shown on preview."
2785
- msgstr ""
2786
-
2787
- #: widgets/select/select.php:16 widgets/select/select.php:163
2788
- msgid "Select"
2789
- msgstr ""
2790
-
2791
- #: widgets/select/select.php:93
2792
- msgid "Dropdown List"
2793
- msgstr ""
2794
-
2795
- #: widgets/simple-captcha/simple-captcha.php:22
2796
- msgid "Simple Captcha"
2797
- msgstr ""
2798
-
2799
- #: widgets/simple-captcha/simple-captcha.php:62
2800
- msgid "Label Position"
2801
- msgstr ""
2802
-
2803
- #: widgets/simple-captcha/simple-captcha.php:83
2804
- msgid "Input captcha display"
2805
- msgstr ""
2806
-
2807
- #: widgets/simple-captcha/simple-captcha.php:87
2808
- msgid "Block"
2809
- ms