Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.15.2

Version Description

  • Improved: Allow HTML tags in Paragraph text field.
  • Fixed: Date field validation with y+m format.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.15.2
Comparing to
See all releases

Code changes from version 1.15.1 to 1.15.2

admin/views/FormMakerSubmits.php CHANGED
@@ -86,6 +86,11 @@ class FMViewFormMakerSubmits extends FMAdminView {
86
  <td class="field_value"><img src="<?php echo $element_value; ?>" style="width:50px; border: 1px solid #ddd;"></td>
87
  <?php
88
  }
 
 
 
 
 
89
  else if ( $labels_type[$key] != 'type_matrix' ) {
90
  ?>
91
  <td class="field_value"><?php echo wpautop(str_replace("***br***", '<br>', wpautop(esc_html($element_value)))); ?></td>
86
  <td class="field_value"><img src="<?php echo $element_value; ?>" style="width:50px; border: 1px solid #ddd;"></td>
87
  <?php
88
  }
89
+ else if( $labels_type[$key] == 'type_textarea' ) {
90
+ ?>
91
+ <td class="field_value"><?php echo html_entity_decode( str_replace("***br***", '<br>', wpautop(esc_html($element_value))) ); ?></td>
92
+ <?php
93
+ }
94
  else if ( $labels_type[$key] != 'type_matrix' ) {
95
  ?>
96
  <td class="field_value"><?php echo wpautop(str_replace("***br***", '<br>', wpautop(esc_html($element_value)))); ?></td>
admin/views/Submissions_fm.php CHANGED
@@ -742,6 +742,9 @@ class FMViewSubmissions_fm extends FMAdminView {
742
  }
743
  else {
744
  $element_value = str_replace("***br***", '<br>', $temp[$g]->element_value );
 
 
 
745
  $textdata = $this->gen_shorter_text($element_value, 100);
746
  $status_column_width = ( $sorted_label_types[$h] == 'type_paypal_payment_status' ) ? '300px' : '';
747
 
742
  }
743
  else {
744
  $element_value = str_replace("***br***", '<br>', $temp[$g]->element_value );
745
+ if ( $sorted_label_types[$h] == "type_textarea" ) {
746
+ $element_value = esc_html( strip_tags( html_entity_decode($element_value) ) );
747
+ }
748
  $textdata = $this->gen_shorter_text($element_value, 100);
749
  $status_column_width = ( $sorted_label_types[$h] == 'type_paypal_payment_status' ) ? '300px' : '';
750
 
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://10web.io/plugins/wordpress-form-maker/?utm_source=form_maker&utm_medium=free_plugin
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
- * Version: 1.15.1
7
  * Author: 10Web Form Builder Team
8
  * Author URI: https://10web.io/plugins/?utm_source=form_maker&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -103,8 +103,8 @@ final class WDFM {
103
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
104
  $this->front_urls = $this->get_front_urls();
105
  $this->main_file = plugin_basename(__FILE__);
106
- $this->plugin_version = '1.15.1';
107
- $this->db_version = '2.15.1';
108
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
109
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
110
  $this->menu_slug = 'manage' . $this->menu_postfix;
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://10web.io/plugins/wordpress-form-maker/?utm_source=form_maker&utm_medium=free_plugin
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
+ * Version: 1.15.2
7
  * Author: 10Web Form Builder Team
8
  * Author URI: https://10web.io/plugins/?utm_source=form_maker&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
103
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
104
  $this->front_urls = $this->get_front_urls();
105
  $this->main_file = plugin_basename(__FILE__);
106
+ $this->plugin_version = '1.15.2';
107
+ $this->db_version = '2.15.2';
108
  $this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
109
  $this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
110
  $this->menu_slug = 'manage' . $this->menu_postfix;
frontend/models/form_maker.php CHANGED
@@ -1648,7 +1648,12 @@ class FMModelForm_maker {
1648
  case "type_send_copy":
1649
  case "type_spinner":
1650
  case 'type_password':{
1651
- $value = trim( WDW_FM_Library(self::PLUGIN)->get('wdform_' . $i . "_element" . $id ) );
 
 
 
 
 
1652
  $key_values[$i] = ($type == 'type_password') ? __('Your chosen password.', WDFMInstance(self::PLUGIN)->prefix) : $value;
1653
  if ( $required && $value === '' ) {
1654
  $missing_required_field = TRUE;
@@ -3631,7 +3636,13 @@ class FMModelForm_maker {
3631
  case "type_country":
3632
  case "type_number":
3633
  case "type_phone_new": {
3634
- $element = WDW_FM_Library(self::PLUGIN)->get( 'wdform_' . $i . "_element" . $id, NULL, 'esc_html' );
 
 
 
 
 
 
3635
  if ( isset( $element ) && $this->empty_field( $element, $row->mail_emptyfields ) ) {
3636
  $list = $list . '<tr valign="top"><td ' . $td_style . '>' . $element_label . '</td><td ' . $td_style . '>' . $element . '</td></tr>';
3637
  $list_text_mode = $list_text_mode . $element_label . ' - ' . $element . "\r\n";
1648
  case "type_send_copy":
1649
  case "type_spinner":
1650
  case 'type_password':{
1651
+ $value = trim( WDW_FM_Library(self::PLUGIN)->get('wdform_' . $i . '_element' . $id ) );
1652
+ if ( $type == 'type_textarea' ) {
1653
+ $value = html_entity_decode(WDW_FM_Library(self::PLUGIN)->get('wdform_' . $i . '_element' . $id, '', FALSE));
1654
+ $allowed_html_tags = WDW_FM_Library(self::PLUGIN)->allowed_html_tags();
1655
+ $value = htmlentities(wp_kses($value, $allowed_html_tags));
1656
+ }
1657
  $key_values[$i] = ($type == 'type_password') ? __('Your chosen password.', WDFMInstance(self::PLUGIN)->prefix) : $value;
1658
  if ( $required && $value === '' ) {
1659
  $missing_required_field = TRUE;
3636
  case "type_country":
3637
  case "type_number":
3638
  case "type_phone_new": {
3639
+ $element = WDW_FM_Library(self::PLUGIN)->get( 'wdform_' . $i . '_element' . $id, NULL, 'esc_html' );
3640
+ if ( $type == 'type_textarea' ) {
3641
+ $element = html_entity_decode(WDW_FM_Library(self::PLUGIN)->get( 'wdform_' . $i . '_element' . $id, '', FALSE));
3642
+ $allowed_html_tags = WDW_FM_Library(self::PLUGIN)->allowed_html_tags();
3643
+ $element = wp_kses($element, $allowed_html_tags);
3644
+ }
3645
+
3646
  if ( isset( $element ) && $this->empty_field( $element, $row->mail_emptyfields ) ) {
3647
  $list = $list . '<tr valign="top"><td ' . $td_style . '>' . $element_label . '</td><td ' . $td_style . '>' . $element . '</td></tr>';
3648
  $list_text_mode = $list_text_mode . $element_label . ' - ' . $element . "\r\n";
js/main_div_front_end.js CHANGED
@@ -517,26 +517,65 @@ function min_max_date_with_operator( date_min_max, date_format ) {
517
  if ( typeof moment !== "function") {
518
  return;
519
  }
520
- if ( date_min_max.indexOf('+') === 0 ) {
521
- count = date_min_max.replace(/[^\d]/g, '');
522
- dateOper = date_min_max.replace('+'+count, '').toLowerCase();
523
- /* accordin dayjs month must be uppercase as there m-minute */
524
- if(dateOper === 'm') {
525
- dateOper = dateOper.toUpperCase();
526
- }
527
- date_min_max = moment().add(count, dateOper).format(date_format);
528
- } else if ( date_min_max.indexOf('-') === 0 ){
529
- count = parseInt(date_min.replace(/[^\d]/g, ''));
530
- dateOper = date_min_max.replace('-'+count, '').toLowerCase();
531
- if(dateOper === 'm') {
532
- dateOper = dateOper.toUpperCase();
533
- }
534
- date_min_max = moment().subtract(count, dateOper).format(date_format);
535
- } else if ( date_min_max === 'today' ){
536
- date_min_max = moment().format(date_format);
537
- }
538
- else {
539
- date_min_max = moment(date_min_max, date_format)._i;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
540
  }
541
 
542
  return date_min_max;
517
  if ( typeof moment !== "function") {
518
  return;
519
  }
520
+
521
+ var chars = '';
522
+ /* Collect array like [0 => +1y, 1 => -3m, 2 => +5w] */
523
+ var myArray = [];
524
+
525
+ /* Case when there are + or - in min/max condition */
526
+ if ( date_min_max.indexOf('+') >= 0 || date_min_max.indexOf('-') >= 0 ) {
527
+ /* Checking every char and split to parts for y/m/w/d and add to array */
528
+ for (var i = 0; i < date_min_max.length; i++) {
529
+
530
+ if ( (date_min_max[i] === '+' || date_min_max[i] === '-') && i !== 0 ) {
531
+ myArray.push(chars);
532
+ chars = '';
533
+ }
534
+ chars += date_min_max[i];
535
+ }
536
+ myArray.push(chars);
537
+
538
+ /* Collect object with moment format ex. {days:7,months:1} */
539
+ var obj = {};
540
+ for (var i = 0; i < myArray.length; i++) {
541
+ count = parseInt(myArray[i].replace(/[^\d]/g, ''));
542
+ dateOper = myArray[i].replace('+'+count, '').replace('-'+count, '').toLowerCase();
543
+
544
+ switch( dateOper ) {
545
+ case 'y':
546
+ if( myArray[i].indexOf('+') === 0 ) {
547
+ obj['years'] = count;
548
+ } else if( myArray[i].indexOf('-') === 0) {
549
+ obj['years'] = -count;
550
+ }
551
+ break;
552
+ case 'm':
553
+ if( myArray[i].indexOf('+') === 0 ) {
554
+ obj['months'] = count;
555
+ } else if( myArray[i].indexOf('-') === 0) {
556
+ obj['months'] = -count;
557
+ }
558
+ break;
559
+ case 'w':
560
+ if( myArray[i].indexOf('+') === 0 ) {
561
+ obj['weeks'] = count;
562
+ } else if( myArray[i].indexOf('-') === 0) {
563
+ obj['weeks'] = -count;
564
+ }
565
+ break;
566
+ default:
567
+ if( myArray[i].indexOf('+') === 0 ) {
568
+ obj['days'] = -count;
569
+ } else if( myArray[i].indexOf('-') === 0) {
570
+ obj['days'] = -count;
571
+ }
572
+ }
573
+ }
574
+ date_min_max = moment().add(obj).format(date_format);
575
+ } else if ( date_min_max === 'today' ) {
576
+ date_min_max = moment().format(date_format);
577
+ } else {
578
+ date_min_max = moment(date_min_max, date_format)._i;
579
  }
580
 
581
  return date_min_max;
js/scripts.min.js CHANGED
@@ -1 +1 @@
1
- var fm_rated=!1;function form_load_actions(){jQuery(".wd-datepicker").each(function(){jQuery(this).datepicker(),jQuery(this).datepicker("option","dateFormat",jQuery(this).data("format"))});var e=jQuery(".fm-form").find(".fm-message");0!==e.length&&0==e.closest(".fm-popover-content").length&&0==e.closest(".fm-scrollbox-form").length&&0==e.closest(".fm-topbar").length&&(jQuery(window).scrollTop(jQuery(".fm-message").offset().top-100),-1<navigator.userAgent.toLowerCase().indexOf("safari/")&&(document.scrollingElement.scrollTop=jQuery(".fm-message").offset().top-100));if(0!==jQuery(".fm-form").find(".message_captcha").length){var t=jQuery(".fm-form").attr("name").split("form")[1];if(0!==jQuery("#form"+t+" .message_captcha").length){var i=jQuery(jQuery("#form"+t+" .message_captcha")).offset().top;jQuery(".fm-form").find(".message_captcha").parents(".wdform-field").find(".wdform-label").addClass("error_label"),jQuery("html").animate({scrollTop:i-150},500),document.scrollingElement.scrollTop=i-150}}}function set_total_value(form_id){var getDataHideCurreny=jQuery(".paypal_total"+form_id).parent().parent().attr("data-hide-currency");if("yes"==getDataHideCurreny)var toggle_currency="wd-hidden",FormCurrency="";else var toggle_currency="wd-inline-block",FormCurrency=window["FormCurrency_"+form_id]+" ";if(0!=jQuery(".paypal_total"+form_id).length){var div_paypal_show=jQuery(".paypal_total"+form_id),div_paypal_products=jQuery(".paypal_products"+form_id),div_paypal_tax=jQuery(".paypal_tax"+form_id),input_paypal_total=jQuery(".input_paypal_total"+form_id),total=0,total_shipping=0;div_paypal_products.html(""),div_paypal_tax.html(""),n=parseInt(jQuery("#counter"+form_id).val()),jQuery("#form"+form_id+" div[type='type_paypal_checkbox'], #form"+form_id+" div[type='type_paypal_radio']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_checkbox_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,jQuery(this).find("input:checked").each(function(){label=jQuery("label[for='"+jQuery(this).attr("id")+"']").html(),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_checkbox_qty:""),total+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_checkbox_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")})}}),jQuery("#form"+form_id+" div[type='type_paypal_shipping']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_shipping_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,jQuery(this).find("input:checked").each(function(){label=jQuery("label[for='"+jQuery(this).attr("id")+"']").html(),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_shipping_qty:""),total_shipping+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_shipping_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")})}}),jQuery("#form"+form_id+" div[type='type_paypal_select']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_select_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,""!=jQuery(this).find("select").val()&&(label=jQuery(this).find("select option:selected").html(),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+jQuery(this).find("select").val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_select_qty:""),total+=jQuery(this).find("select").val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_select_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),cents="00",dollars="0",""!=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()),""!=jQuery("#wdform_"+t+"_element_cents"+form_id).val()&&(1==jQuery("#wdform_"+t+"_element_cents"+form_id).val().length?cents="0"+jQuery("#wdform_"+t+"_element_cents"+form_id).val():cents=jQuery("#wdform_"+t+"_element_cents"+form_id).val(),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+dollars+"."+cents,total+=parseFloat(dollars+"."+cents),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price_new']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),dollars="0",""!=jQuery("#wdform_"+t+"_element"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element"+form_id).val()),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+dollars,total+=parseFloat(dollars),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")}});var FormPaypalTax=eval("FormPaypalTax_"+form_id);0!=FormPaypalTax&&div_paypal_tax.html("Tax: "+FormCurrency+(total*FormPaypalTax/100).toFixed(2)),jQuery(".div_total"+form_id).html('<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2)),input_paypal_total.val(FormCurrency+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2))}}function check_isnum_or_minus(e){var t=e.which||e.keyCode;return!(45!=t&&31<t&&(t<48||57<t))}function sum_grading_values(e,t){for(var i=0,r=0;r<100;r++)document.getElementById(e+"_element"+t+"_"+r)&&document.getElementById(e+"_element"+t+"_"+r).value&&(i+=parseInt(document.getElementById(e+"_element"+t+"_"+r).value)),document.getElementById(e+"_total_element"+t)&&(i>document.getElementById(e+"_total_element"+t).innerHTML?document.getElementById(e+"_text_element"+t).innerHTML=" "+fm_objectL10n.fm_grading_text+" "+document.getElementById(e+"_total_element"+t).innerHTML:document.getElementById(e+"_text_element"+t).innerHTML="");document.getElementById(e+"_sum_element"+t)&&(document.getElementById(e+"_sum_element"+t).innerHTML=i)}function change_src(e,t,i,r){if(0==fm_rated)for(var n=0;n<=e;n++)document.getElementById(t+"_star_"+n+"_"+i).src=fm_objectL10n.plugin_url+"/images/star_"+r+".png"}function reset_src(e,t,i){if(0==fm_rated)for(var r=0;r<=e;r++)document.getElementById(t+"_star_"+r+"_"+i).src=fm_objectL10n.plugin_url+"/images/star.png"}function select_star_rating(e,t,i,r,n){fm_rated=!0;for(var a=0;a<=e;a++)document.getElementById(t+"_star_"+a+"_"+i).src=fm_objectL10n.plugin_url+"/images/star_"+r+".png";for(var o=e+1;o<=n-1;o++)document.getElementById(t+"_star_"+o+"_"+i).src=fm_objectL10n.plugin_url+"/images/star.png";document.getElementById(t+"_selected_star_amount"+i).value=e+1,jQuery("#"+t+"_selected_star_amount"+i).trigger("change")}function show_other_input(e,t){var i=jQuery(".form"+t+" [id^="+e+"_element"+t+'][other="1"]').parent(),r=document.createElement("br");r.setAttribute("id",e+"_other_br"+t);var n=e.split("_")[1],a=document.createElement("input");a.setAttribute("id",e+"_other_input"+t),a.setAttribute("name",e+"_other_input"+t),a.setAttribute("type","text"),a.setAttribute("class","other_input"),a.setAttribute("onchange","other_input_change(this, '"+t+"', '"+n+"')"),i.children("input").length<2&&(i.append(r),i.append(a))}function other_input_change(e,t,i){""==jQuery(e).val()?wd_is_filled(t,i):(jQuery("#form"+t+" #wd_required_"+i).remove(),jQuery("#form"+t+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"))}function check_isnum(e){var t=e.which||e.keyCode;return-1!=jQuery.inArray(t,[46,8,9,27,13,190])||!0===e.ctrlKey||35<=t&&t<39||45==t||!(31<t&&(t<48||57<t))}function captcha_refresh(e,t){srcArr=document.getElementById(e+t).src.split("&r="),document.getElementById(e+t).src=srcArr[0]+"&r="+Math.floor(100*Math.random()),document.getElementById(e+"_input"+t).value="",document.getElementById(e+t).style.display="inline-block"}function set_checked(e,t,i){return checking=document.getElementById(e+"_element"+i+t),!(checking.getAttribute("other")&&1==checking.getAttribute("other")&&!checking.checked)||(document.getElementById(e+"_other_input"+i)&&(document.getElementById(e+"_other_input"+i).parentNode.removeChild(document.getElementById(e+"_other_br"+i)),document.getElementById(e+"_other_input"+i).parentNode.removeChild(document.getElementById(e+"_other_input"+i))),!1)}function set_default(e,t,i){document.getElementById(e+"_other_input"+i)&&(document.getElementById(e+"_other_input"+i).parentNode.removeChild(document.getElementById(e+"_other_br"+i)),document.getElementById(e+"_other_input"+i).parentNode.removeChild(document.getElementById(e+"_other_input"+i)))}function add_0(e){1==jQuery(e).val().length&&jQuery(e).val("0"+jQuery(e).val())}function wd_validate(e,t){if(!jQuery(e).is("input"))return!0;jQuery(e).attr("id");var i,r,n,a=jQuery(e).parent().find(".hidden_date"),o=jQuery(e).data("valid-type"),s=jQuery(e).data("form-id"),d=jQuery(e).data("wdid"),l=a.data("format").toUpperCase(),u=jQuery(e).val(),c=(l.match(/Y/g)||[]).length;2===c?l=l.replace("YY","YYYY"):1===c&&(l=l.replace("Y","YY"));var m=u;"function"==typeof moment&&(m=moment(u,l)._i);var f=a.data("min"),_=a.data("max");f=min_max_date_with_operator(f,l),_=min_max_date_with_operator(_,l);var h=!1;"OO"===l?"function"!=typeof moment?h=!0:f<=m&&m<=_&&(h=!0):"function"!=typeof moment?h=!0:!moment(f,l).isSameOrBefore(moment(u,l))&&""!=f||!moment(u,l).isSameOrBefore(moment(_,l))&&""!=_||(h=!0);var p=parseInt(jQuery(e).attr("from")),y=parseInt(jQuery(e).attr("to"));if(void 0===t)t=jQuery(e).data("addiotional-fields");var v="#form"+s+" div[wdid='"+d+"']",w=jQuery(v+" .wdform-label-section:first .wdform-label"),g=jQuery(v+" .wdform-element-section");switch(o){case"hour24":i=fm_objectL10n.time_validation,n=/^(0?[0-1]?[0-9]|2[0-3])?$/;break;case"hour12":i=fm_objectL10n.time_validation,n=/^(0?[0-9]|1[0-2])?$/;break;case"minute":case"second":i=fm_objectL10n.time_validation,n=/^([0-5]?[0-9])?$/;break;case"number":i=fm_objectL10n.number_validation,n=/^\-{0,1}\d+(.\d+){0,1}$/;break;case"quantity":i=fm_objectL10n.number_validation,n=/^[+]?\d+([.]\d+)?$/;break;case"day":i=fm_objectL10n.date_validation,n=/^(0?[0-2]?[0-9]|3[0-1])?$/;break;case"month":i=fm_objectL10n.date_validation,n=/^(0?[0-9]|1[0-2])?$/;break;case"year":i=fm_objectL10n.date_validation,n=/^([1-2]?[0-9]?[0-9]?[0-9])?$/;break;case"date":n="mm/dd/yy"==l?(i=fm_objectL10n.date_validation,/^(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[01])\/\d{4}$/):(i="",/^$/)}if(r=n.test(u),""!=u&&"MM/DD/YY"==l||(r=!0),r)for(var b in t)if(!(r=wd_validate("#"+t[b],"")))break;return"year"==o&&(parseInt(u)<p||parseInt(u)>y)&&(r=!1,i=fm_objectL10n.year_validation.replace("%%start%%",p).replace("%%end%%",y)),"date"==o&&(h||(r=!1,i=fm_objectL10n.date_validation)),jQuery("#check_email_"+d+"_"+s).remove(),r?(w.removeClass("wd-error-label"),delete window["check_before_submit"+s][d+"_"+s]):(g.parent().parent().append("<div id='check_email_"+d+"_"+s+"' class='fm-not-filled'>"+i+"</div>"),w.addClass("wd-error-label"),window["check_before_submit"+s][d+"_"+s]=!1),r}function min_max_date_with_operator(e,t){var i,r;if("function"==typeof moment)return e=0===e.indexOf("+")?(i=e.replace(/[^\d]/g,""),"m"===(r=e.replace("+"+i,"").toLowerCase())&&(r=r.toUpperCase()),moment().add(i,r).format(t)):0===e.indexOf("-")?(i=parseInt(date_min.replace(/[^\d]/g,"")),"m"===(r=e.replace("-"+i,"").toLowerCase())&&(r=r.toUpperCase()),moment().subtract(i,r).format(t)):"today"===e?moment().format(t):moment(e,t)._i}function check_isnum_interval(e,t,i,r){var n=e.which||e.keyCode;return-1!=jQuery.inArray(n,[46,8,9,27,13,190])||!0===e.ctrlKey||35<=n&&n<39||!(31<n&&(n<48||57<n))&&(val1=""+jQuery(t).val()+String.fromCharCode(n),!(2<val1.length)&&("00"!=val1&&!(val1<i||val1>r)))}function destroyChildren(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function generate_page_nav(e,t,i){var r;if(form_view=e,page_nav=document.getElementById(t+"page_nav"+e),destroyChildren(page_nav),form_view_elemet=document.getElementById(t+"form_view"+e),remove_whitespace(form_view_elemet.parentNode.parentNode),display_none_form_views_all(t),form_view_elemet.parentNode.style.display="",(r=document.createElement("div")).setAttribute("valign","middle"),r.setAttribute("align","left"),r.style.display="table-cell",r.style.width="40%",page_nav.appendChild(r),form_view_elemet.parentNode.previousSibling&&-1!=form_view_elemet.parentNode.previousSibling.className.indexOf("wdform-page-and-images")&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:"DIV"==form_view_elemet.parentNode.previousSibling.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling.previousSibling:table="none","none"!=table&&(table.firstChild.tagName||table.removeChild(table.firstChild),previous_title=form_view_elemet.getAttribute("previous_title"),previous_type=form_view_elemet.getAttribute("previous_type"),"text"==previous_type&&r.setAttribute("class","previous-page"),previous_class=form_view_elemet.getAttribute("previous_class"),previous_checkable=form_view_elemet.getAttribute("previous_checkable"),next_or_previous="previous",previous=make_pagebreak_button(next_or_previous,previous_title,previous_type,previous_class,previous_checkable,e,t,i),r.appendChild(previous))),(r=document.createElement("div")).setAttribute("id",t+"page_numbers"+form_view),r.setAttribute("valign","middle"),r.setAttribute("class","page-numbers"),r.setAttribute("align","center"),r.style.display="table-cell","true"==document.getElementById("fm-pages"+t).getAttribute("show_numbers")){var n=document.createElement("span");n.setAttribute("class","page_numbers"),r.appendChild(n)}page_nav.appendChild(r),(r=document.createElement("div")).setAttribute("valign","middle"),r.setAttribute("align","right"),r.style.cssText="display:table-cell; width:40%; text-align:right;",page_nav.appendChild(r),not_next=!1,form_view_elemet.parentNode.nextSibling?("DIV"==form_view_elemet.parentNode.nextSibling.tagName&&-1!=form_view_elemet.parentNode.nextSibling.className.indexOf("wdform-page-and-images")?table=form_view_elemet.parentNode.nextSibling:form_view_elemet.parentNode.nextSibling.nextSibling&&"DIV"==form_view_elemet.parentNode.nextSibling.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling.nextSibling:table="none","none"!=table?(next_title=form_view_elemet.getAttribute("next_title"),next_type=form_view_elemet.getAttribute("next_type"),"text"==next_type&&r.setAttribute("class","next-page"),next_class=form_view_elemet.getAttribute("next_class"),next_checkable=form_view_elemet.getAttribute("next_checkable"),next_or_previous="next",next=make_pagebreak_button(next_or_previous,next_title,next_type,next_class,next_checkable,e,t,i),r.appendChild(next)):not_next=!0):not_next=!0,generate_page_bar(e,t,i),fm_initilize_form(t)}function fm_initilize_form(e){jQuery("#form"+e+" div[type='type_map']").each(function(){for(id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0;q<20;q++)jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!1))}),jQuery("#form"+e+" div[type='type_mark_map']").each(function(){id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0,jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!0))}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().attr("type")){jQuery(this).parent().parent().find(".stripe_more_info .wdform-label-section").removeClass("wd-hidden");return!0}jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15))}),jQuery("#form"+e+" div[type='type_signature']").length&&"undefined"!=typeof fm_signature_init&&fm_signature_init()}function display_none_form_views_all(e){jQuery("#form"+e+" .wdform-page-and-images").css("display","none")}function generate_page_bar(t,i,e){if("steps"==document.getElementById("fm-pages"+i).getAttribute("type")?make_page_steps_front(t,i,e):"percentage"==document.getElementById("fm-pages"+i).getAttribute("type")?make_page_percentage_front(t,i,e):make_page_none_front(i),"true"==document.getElementById("fm-pages"+i).getAttribute("show_numbers")){if(td=document.getElementById(i+"page_numbers"+t),td){destroyChildren(td);var r=0,n=0;jQuery("#form"+i+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(i+"form_view"+j)&&(r++,j==t&&(n=r))});var a=document.createElement("span");a.setAttribute("class","page_numbers"),a.innerHTML=n+"/"+r,td.appendChild(a)}}else td=document.getElementById(i+"page_numbers"+t),td&&destroyChildren(document.getElementById(i+"page_numbers"+t))}function make_page_steps_front(t,i,r){destroyChildren(document.getElementById("fm-pages"+i)),show_title="true"==document.getElementById("fm-pages"+i).getAttribute("show_title"),next_checkable="true"==document.getElementById(i+"form_view"+t).getAttribute("next_checkable"),previous_checkable="true"==document.getElementById(i+"form_view"+t).getAttribute("previous_checkable"),k=0,jQuery("#form"+i+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(i+"form_view"+j)&&(document.getElementById(i+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(i+"form_view"+j).getAttribute("page_title"):w_pages="",k++,page_number=document.createElement("span"),page_number.setAttribute("id","page_"+j),j<t&&(previous_checkable?page_number.setAttribute("onClick","if(fm_check("+t+", "+i+', false)) generate_page_nav("'+j+'", "'+i+'", "'+r+'")'):page_number.setAttribute("onClick",'generate_page_nav("'+j+'", "'+i+'", "'+r+'")')),j>t&&(next_checkable?page_number.setAttribute("onClick","if(fm_check("+t+", "+i+', false)) generate_page_nav("'+j+'", "'+i+'", "'+r+'")'):page_number.setAttribute("onClick",'generate_page_nav("'+j+'", "'+i+'", "'+r+'")')),j==t?page_number.setAttribute("class","page_active"):page_number.setAttribute("class","page_deactive"),show_title?page_number.innerHTML=w_pages:page_number.innerHTML=k,document.getElementById("fm-pages"+i).appendChild(page_number))})}function make_page_percentage_front(t,i,e){destroyChildren(document.getElementById("fm-pages"+i)),show_title="true"==document.getElementById("fm-pages"+i).getAttribute("show_title");var r=document.createElement("div");r.setAttribute("class","page_percentage_deactive");var n=document.createElement("div");n.setAttribute("id","div_percentage"),n.setAttribute("class","page_percentage_active"),n.setAttribute("align","right");var a=document.createElement("div");a.setAttribute("class","wdform_percentage_arrow");var o=document.createElement("b");o.setAttribute("class","wdform_percentage_text"),n.appendChild(o),k=0,cur_page_title="",jQuery(".form"+i+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(i+"form_view"+j)&&(document.getElementById(i+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(i+"form_view"+j).getAttribute("page_title"):w_pages="",k++,j==t&&(show_title&&(cur_page_title=document.createElement("div"),cur_page_title.innerHTML=w_pages,cur_page_title.innerHTML=w_pages,cur_page_title.setAttribute("class","wdform_percentage_title")),page_number=k))}),o.innerHTML=Math.round((page_number-1)/(k-1)*100)+"%",n.style.width=(page_number-1)/(k-1)*100+"%",1==page_number&&(a.style.display="none"),r.appendChild(n),r.appendChild(a),cur_page_title&&r.appendChild(cur_page_title),document.getElementById("fm-pages"+i).appendChild(r)}function make_page_none_front(e){destroyChildren(document.getElementById("fm-pages"+e))}function make_pagebreak_button(e,t,i,r,n,a,o,s){switch(i){case"text":return(d=document.createElement("div")).setAttribute("id","page_"+e+"_"+a+"_"+o),d.setAttribute("class",r),"true"==n?d.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+s+")"):d.setAttribute("onClick","page_"+e+"("+a+","+o+","+s+")"),d.innerHTML=t,d;case"img":var d;return(d=document.createElement("img")).setAttribute("id","page_"+e+"_"+a),d.setAttribute("class",r),"true"==n?d.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+s+")"):d.setAttribute("onClick","page_"+e+"("+a+","+o+","+s+")"),0==t.indexOf("http")?d.src=t:d.src=fm_objectL10n.plugin_url+"/"+t,d}}function form_maker_findPos(e){var t=0;if(e.offsetParent){for(;t+=e.offsetTop,e=e.offsetParent;);return[t]}}function page_previous(e,t,i){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.previousSibling&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:table=form_view_elemet.parentNode.previousSibling.previousSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,i),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function page_next(e,t,i){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.nextSibling&&("DIV"==form_view_elemet.parentNode.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling:table=form_view_elemet.parentNode.nextSibling.nextSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,i),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function fm_go_to_page(e,t,i){form_view_elemet=document.getElementById(t+"form_view"+e),table=form_view_elemet.parentNode,table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,i),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function getfileextension(e,t){if(void 0===e||0==e.length)return!0;var i=e.lastIndexOf("."),r=e.substr(i+1,e.length);t=t.split(",");for(var n=0;n<t.length;n++)if(t[n]=t[n].replace(/\./g,""),t[n]=t[n].replace(/ /g,""),r.toLowerCase()==t[n].toLowerCase())return!0;return!1}function reselect(e,t){t=void 0!==t?t:"",jQuery(e).wrap('<div class="sel-wrap '+t+'"/>');var i="",r=!1;jQuery(e).children("option").each(function(){jQuery(this).is(":selected")&&(r=jQuery(this).index()),i=i+'<div class="sel-option" value="'+jQuery(this).val()+'">'+jQuery(this).html()+"</div>"}),w=jQuery(e)[0].style.width,"100%"==w?w="100%":w=jQuery(e).width()+32+"px";var n='<div class="sel-imul" style="width:'+w+'"> <div class="sel-selected"> <div class="selected-text">'+jQuery(e).children("option").eq(r).html()+'</div> <div class="sel-arraw"></div> </div> <div class="sel-options">'+i+"</div> </div>";jQuery(e).addClass("no-width"),jQuery(e).before(n)}jQuery(window).on("load",function(){0<jQuery(".g-recaptcha").length&&1!=jQuery(".g-recaptcha").data("render")&&fmRecaptchaInit(0),validate_received_data_from_url(),jQuery(".submissions").length&&jQuery(".submissions td").each(function(){"0"==jQuery(this).data("status")&&jQuery(this).parent().hide()})}),jQuery(document).on("change",'.wdform-element-section input[type="checkbox"],.wdform-element-section input[type="radio"], .wdform-quantity',function(){var e=jQuery(this).closest(".wdform-field").attr("data-limit"),t=jQuery(this).closest(".wdform-field").attr("data-limit-text"),i=jQuery(this).closest(".wdform-element-section").find("input[type='checkbox']:checked").length,r=jQuery(this).closest(".wdform-element-section").find(".other_input");e<i?(this.checked=!1,1==this.getAttribute("other")&&(i.checked||r&&(r.prev("br").remove(),r.remove())),jQuery(this).closest(".wdform-field").find(".wdform-label").addClass("error_label"),0==jQuery(".fm-error").length&&jQuery(this).closest(".wdform_row").append("<div class='fm-error'>"+t+"</div>")):(jQuery(this).closest(".wdform-field").find(".wdform-label").removeClass("error_label"),jQuery(".fm-error").remove())}),jQuery(document).on("change",".wdform-element-section select",function(){var e=jQuery(this).children("option:selected").text();jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-selected").children(".selected-text").html(e),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").children(".sel-option").removeClass("sel-ed"),jQuery(this).addClass("sel-ed"),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").each(function(){jQuery(this).html()==e&&jQuery(this).addClass("sel-ed")})}),jQuery(document).on("change",'div[type="type_date_fields"]',function(){2<jQuery(this).find("select.sel-ed").length&&(jQuery(this).next(".fm-not-valid-date, .fm-not-filled").remove(),jQuery(this).find(".wdform-label").removeClass("error_label"))}),jQuery(document).on("click",".sel-imul",function(){jQuery(".sel-imul").removeClass("act"),jQuery(this).addClass("act"),jQuery(this).children(".sel-options").is(":visible")?jQuery(".sel-options").hide():(jQuery(".sel-options").hide(),jQuery(this).children(".sel-options").show(),jQuery(this).children(".sel-options").css("width",jQuery(this).width()))}),jQuery(document).on("click",".sel-option",function(){var e=jQuery(this).html();jQuery(this).parent(".sel-options").parent(".sel-imul").children(".sel-selected").children(".selected-text").html(e),jQuery(this).parent(".sel-options").children(".sel-option").removeClass("sel-ed"),jQuery(this).addClass("sel-ed");var t=jQuery(this).attr("value");t=void 0!==t?t:e,jQuery(this).parent(".sel-options").parent(".sel-imul").parent(".sel-wrap").children("select").children("option").prop("selected",!1).each(function(){jQuery(this).html()==e&&jQuery(this).attr("selected","select")}),jQuery(this).parent(".sel-options").parent(".sel-imul").parent(".sel-wrap").children("select").change()});var selenter=!1;function remove_whitespace(e){var t;for(t=0;t<e.childNodes.length;t++)e.childNodes[t]&&"3"==e.childNodes[t].nodeType&&!/\S/.test(e.childNodes[t].nodeValue)?(e.removeChild(e.childNodes[t]),t--):e.childNodes[t].childNodes.length&&remove_whitespace(e.childNodes[t])}function change_value_range(e,t,i,r,n,a){var o=((n=n.toUpperCase()).match(/Y/g)||[]).length;2===o?n=n.replace("YY","YYYY"):1===o&&(n=n.replace("Y","YY")),r=min_max_date_with_operator(r,n),check_min_max=!1,"OO"===n?"minDate"===t?check_min=r<=i:check_max=!(r<i):"function"!=typeof moment?check_min_max=!0:(moment(r,n).isSameOrBefore(moment(i,n))&&"minDate"===t&&(check_min_max=!0),moment(i,n).isSameOrBefore(moment(r,n))&&"maxDate"===t&&(check_min_max=!0));var s=jQuery(a).data("form-id"),d=jQuery(a).data("wdid"),l="#form"+s+" div[wdid='"+d+"']",u=jQuery(l+" .wdform-label-section:first .wdform-label");if(check_min_max)jQuery("#check_email_"+d+"_"+s).remove(),u.removeClass("wd-error-label");else{error_message=fm_objectL10n.date_validation;var c=jQuery(l+" .wdform-element-section");jQuery("#check_email_"+d+"_"+s).remove(),c.parent().parent().append("<div id='check_email_"+d+"_"+s+"' class='fm-not-filled'>"+error_message+"</div>"),u.addClass("wd-error-label")}i?jQuery("#"+e).datepicker("option",t,i):"today"==r?jQuery("#"+e).datepicker("option",t,new Date):(-1==r.indexOf("d")&&-1==r.indexOf("m")&&-1==r.indexOf("y")&&-1==r.indexOf("w")&&""!=r&&(r=jQuery.datepicker.formatDate(n,new Date(r))),jQuery("#"+e).datepicker("option",t,r))}function wd_check_confirmation_email(e,t,i,r){var n=jQuery("#wdform_"+e+"_element"+t),a=jQuery("#wdform_"+e+"_1_element"+t);0==window["check_before_submit"+t][e+"_"+t]||jQuery(n).val()!=jQuery(a).val()?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),jQuery(n).val()!=jQuery(a).val()&&(jQuery(a).parent().parent().parent().append("<div id='confirm_"+e+"_"+t+"' class='fm-not-filled'>"+i+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_confirm")),window["check_before_submit"+t][e+"_"+t]=!(e+"_"+t in window["check_before_submit"+t])||window["check_before_submit"+t][e+"_"+t]):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),1==window["check_before_submit"+t][e+"_"+t]&&delete window["check_before_submit"+t][e+"_"+t])}function wd_check_email(e,t,i){var r=jQuery("#wdform_"+e+"_element"+t),n=jQuery("#wdform_"+e+"_1_element"+t);if(""==jQuery(r).val()||/^[\u0400-\u04FFa-zA-Z0-9'.+_-]+@[\u0400-\u04FFa-zA-Z0-9.-]+\.[\u0400-\u04FFa-zA-Z]{2,61}$/.test(jQuery.trim(jQuery(r).val()))||jQuery(r).attr("title")==jQuery(r).val())jQuery("#check_email_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_check_mail").removeClass("error_label_check_mail"),window["check_before_submit"+t][e+"_"+t]=!0,void 0===n.val()&&delete window["check_before_submit"+t][e+"_"+t];else{jQuery("#check_email_"+e+"_"+t).remove();var a=jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first"),o=0;a.hasClass("wd-width-30")&&!a.hasClass("wd-hidden")&&(o=a.width()),jQuery(r).parent().parent().parent().append("<div id='check_email_"+e+"_"+t+"' class='fm-not-filled' style='margin-left: "+o+"px'>"+i+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_check_mail"),r.val()==n.val()&&(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm")),delete window["check_before_submit"+t][e+"_"+t],window["check_before_submit"+t][e+"_"+t]=!1}}function wd_check_confirmation_pass(e,t,i){var r,n=jQuery("#wdform_"+e+"_element"+t),a=jQuery("#wdform_"+e+"_1_element"+t);r=n.val()!==a.val();var o=jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first"),s=0;o.hasClass("wd-width-30")&&!o.hasClass("wd-hidden")&&(s=o.width()),r?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery(a).parent().parent().parent().append("<div id='confirm_"+e+"_"+t+"' class='fm-not-filled' style='margin-left: "+s+"px'>"+i+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_check_pass"),window["check_before_submit"+t][e+"_"+t]=!1):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_check_pass").removeClass("error_label_check_pass"),delete window["check_before_submit"+t][e+"_"+t])}function minimize_form(e){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown fm-minimized"),jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeOutDown").addClass("fm-show fm-animated fadeInUp")}function fm_show_scrollbox(e){jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown fm-minimized").addClass("fm-show fm-animated fadeInUp")}function fm_hide_form(e,t,i){var r=new Date;r.setDate(r.getDate()+t),0<t&&localStorage.setItem("hide-"+e,r.getTime()),"function"==typeof i&&i()}function wd_check_regExp(o,s){var d=jQuery("#form"+o),l=!1,e=s||window["check_regExp_all"+o];return jQuery.each(e,function(e,t){var i="#wdform_"+e+"_element"+o,r="",n=unescape(t[0]),a=d.find(jQuery("div[wdid='"+e+"']"));r=t[1].length<=0?new RegExp(n):new RegExp(n,t[1]),0!=d.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=d.find(jQuery("div[wdid='"+e+"']")).css("display")&&(jQuery("#form"+o+" #wd_exp_"+e).remove(),""==jQuery(i).val()&&0==a.find(".wdform-required").length?(l=!0,d.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_exp_"+e+"' class='fm-not-filled'>"+t[2]+"</div>"),jQuery("#form"+o+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"),scroll_on_element(o)):jQuery(i).val()!=jQuery(i).attr("title")&&1!=r.test(jQuery(i).val())&&(d.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_exp_"+e+"' class='fm-not-filled'>"+t[2]+"</div>"),jQuery("#form"+o+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"),l=!0,s||scroll_on_element(o)))}),!1===l}function scroll_on_element(e){if(0==jQuery("#form"+e+" .fm-not-filled").length)return!0;var t=!0;0==jQuery("#fm_shake"+e).val()&&(t=!1);var i=jQuery("#form"+e+" .fm-not-filled").closest(".wdform_row"),r=i.closest(".wdform_page");if("none"==r.parent().css("display")){var n=jQuery("#form"+e+" .wdform-page-and-images").length,a=jQuery("#form"+e+" .wdform_page").last().attr("id");a=a.split("form_view");var o=r.attr("id");fm_go_to_page(o=o.split("form_view")[1],e,n,a[1])}var s=jQuery(document).scrollTop(),d=document.body.clientHeight,l=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,c=function(){document.body.clientHeight!==d&&(d=document.body.clientHeight,l=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,jQuery("html").stop(),f())};function m(e){e&&(old_bg=jQuery(i).css("background-color"),jQuery(i).effect("shake",{},500).css("background-color","#FF8F8B").animate({backgroundColor:old_bg},{duration:500,queue:!1}))}function f(){jQuery("html").animate({scrollTop:u-(l+40)},500,function(){document.scrollingElement.scrollTop=u-(l+40),jQuery(window).off("scroll",c),m(t)})}jQuery(window).on("scroll",c),u<s?f():m(t)}function wd_file_upload_check(d,e){var l=jQuery("#form"+d),u=!1,t=e||window["file_upload_check"+d];return jQuery.each(t,function(e,t){var i="#wdform_"+e+"_element"+d;if(0!=l.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=l.find(jQuery("div[wdid='"+e+"']")).css("display")){var r=getfileextension(jQuery(i).val(),t.extension),n=parseFloat(t.max_size),a=void 0!==jQuery(i)[0]&&void 0!==jQuery(i)[0].files[0]?jQuery(i)[0].files[0].size/1024:"undefined",o=void 0!==a&&n<a;if(!r||o){var s=o?fm_objectL10n.fm_file_type_allowed_size_error.replace(/%s/g,n):fm_objectL10n.fm_file_type_error;jQuery("#form"+d+" #wd_upload_type_"+e).remove(),l.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_upload_type_"+e+"' class='fm-not-filled'>"+s+"</div>"),jQuery("#form"+d+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_upload"),u=!0}else jQuery("#form"+d+" #wd_upload_type_"+e).remove(),jQuery("#form"+d+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_upload").removeClass("error_label_upload")}}),e||!0!==u||scroll_on_element(d),!1===u}function wd_is_filled(l,u,c){null==c&&(c=!0);var m=jQuery("#form"+l),e=u?u.split():window["required_fields"+l],f={};return jQuery(e).each(function(e,r){if("none"===m.find(jQuery("div[wdid='"+r+"']")).css("display")&&(m.find(jQuery("div[wdid='"+r+"']")).find(".fm-not-filled").remove(),m.find(jQuery("div[wdid='"+r+"']")).css("background-color",""),m.find(jQuery("div[wdid='"+r+"'] label")).removeClass("error_label")),0!=m.find(jQuery("div[wdid='"+r+"']")).length&&"none"!==m.find(jQuery("div[wdid='"+r+"']")).css("display"))switch(window["labels_and_ids"+l][r]){case"type_text":case"type_textarea":case"type_paypal_price_new":case"type_spinner":case"type_number":case"type_phone_new":case"type_submitter_mail":var t="#wdform_"+r+"_element"+l,i=jQuery(t).val();i=jQuery.trim(i),(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==i&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)});break;case"type_own_select":case"type_country":case"type_paypal_select":t="#wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&(""==jQuery(t).val()||0<jQuery("#wdform_"+r+"_element_quantity"+l).length&&!parseInt(jQuery("#wdform_"+r+"_element_quantity"+l).val()))&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)}).change(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(l,r)});break;case"type_phone":t=["#wdform_"+r+"_element_first"+l,"#wdform_"+r+"_element_last"+l];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)})});break;case"type_name":t=["#wdform_"+r+"_element_title"+l,"#wdform_"+r+"_element_first"+l,"#wdform_"+r+"_element_last"+l,"#wdform_"+r+"_element_middle"+l];jQuery.each(t,function(e,t){if((c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&jQuery(t).length){var i=jQuery(t).val();""==(i=jQuery.trim(i))&&void 0!==i&&(f[r]=t)}u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_address":t=["#wdform_"+r+"_street1"+l,"#wdform_"+r+"_city"+l,"#wdform_"+r+"_state"+l,"#wdform_"+r+"_postal"+l,"#wdform_"+r+"_country"+l];jQuery.each(t,function(e,t){if(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display")){var i=jQuery(t).val();void 0!==i&&(i=jQuery.trim(i)),""==i&&void 0!==jQuery(t).closest(".wd-address").css("display")&&"none"!=jQuery(t).closest(".wd-address").css("display")&&0<jQuery(t).length&&(f[r]=t)}u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_checkbox":case"type_radio":case"type_scale_rating":case"type_paypal_checkbox":case"type_paypal_radio":case"type_paypal_shipping":(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&(0==m.find(jQuery("div[wdid='"+r+"'] input:checked")).length||""==jQuery("#wdform_"+r+"_other_input"+l).val()||0<jQuery("#wdform_"+r+"_element_quantity"+l).length&&!parseInt(jQuery("#wdform_"+r+"_element_quantity"+l).val()))&&(f[r]=!0),u||window["check_submit"+l]||jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] input"),function(e,t){jQuery(this).change(function(){0==m.find(jQuery("div[wdid='"+r+"'] input:checked")).length||""==jQuery("#wdform_"+r+"_other_input"+l).val()||0<jQuery("#wdform_"+r+"_element_quantity"+l).length&&!parseInt(jQuery("#wdform_"+r+"_element_quantity"+l).val())?wd_is_filled(l,r):(jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"))})});break;case"type_star_rating":t="#wdform_"+r+"_selected_star_amount"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=!0),u||window["check_submit"+l]||jQuery("#wdform_"+r+"_element"+l).click(function(){""!=jQuery(t).val()&&(jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove())});break;case"type_range":t=["#wdform_"+r+"_element"+l+"0","#wdform_"+r+"_element"+l+"1"];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_grading":if(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display")){var n=0;jQuery.each(jQuery("#wdform_"+r+"_element"+l+" input"),function(e,t){""!=jQuery(this).val()&&n++}),0==n&&(f[r]=!0)}u||window["check_submit"+l]||jQuery.each(jQuery("#wdform_"+r+"_element"+l+" input"),function(e,t){jQuery(this).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_slider":var a="#wdform_"+r+"_element"+l,o=(t="#wdform_"+r+"_slider_value"+l,"#wdform_"+r+"_element_min"+l);(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&jQuery(t).val()==jQuery(o).html()&&(f[r]=!0),u||window["check_submit"+l]||jQuery(a).slider({change:function(e,t){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove(),wd_is_filled(l,r)}});break;case"type_date":case"type_date_new":t="#wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove()}).change(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(l,r)});break;case"type_date_range":t=["#wdform_"+r+"_element"+l+"0","#wdform_"+r+"_element"+l+"1"];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).change(function(){wd_is_filled(l,r)})});break;case"type_date_fields":t=["#wdform_"+r+"_day"+l,"#wdform_"+r+"_month"+l,"#wdform_"+r+"_year"+l];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+"div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+"#wd_required_"+r).remove(),jQuery("#check_min_date_"+r+"_"+l).remove()}).blur(function(){wd_is_filled(l,r)}).change(function(){wd_is_filled(l,r)})});break;case"type_time":t=["#wdform_"+r+"_hh"+l,"#wdform_"+r+"_mm"+l,"#wdform_"+r+"_ss"+l];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&void 0!==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_password":t="#wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)});break;case"type_file_upload":t="#wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).change(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(l,r)});break;case"type_matrix":if(jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),"radio"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type")||"checkbox"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type"))(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&(0==m.find(jQuery("div[wdid='"+r+"'] input:checked")).length&&(f[r]=!0),"radio"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type")&&jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] div[class^='wdform-matrix-row']"),function(e,t){0==jQuery(t).find('input[type="radio"]:checked').length&&(f[r]=!0)})),"checkbox"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type")&&(u||window["check_submit"+l]||jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] input"),function(e,t){jQuery(this).change(function(){0==m.find(jQuery("div[wdid='"+r+"'] input:checked")).length?wd_is_filled(l,r):(jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove())})}));else if("text"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type")){if(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display")){var s=0;jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] input"),function(e,t){""!=jQuery(this).val()&&s++}),0==s&&(f[r]=!0)}u||window["check_submit"+l]||jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] input"),function(e,t){jQuery(this).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)})})}else{if(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display")){var d=0;jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] select"),function(e,t){""!=jQuery(this).val()&&d++}),0==d&&(f[r]=!0)}u||window["check_submit"+l]||jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] select"),function(e,t){jQuery(this).focus(function(){""==jQuery(this).val()&&(jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"))}).change(function(){wd_is_filled(l,r)}).blur(function(){wd_is_filled(l,r)})})}break;case"type_send_copy":(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&0==jQuery("div[wdid='"+r+"'] input:checked").length&&(f[r]=!0),u||window["check_submit"+l]||jQuery("#form"+l+" div[wdid='"+r+"'] input").change(function(){0==jQuery("div[wdid='"+r+"'] input:checked").length?wd_is_filled(l,r):(jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"))});break;case"type_captcha":case"type_arithmetic_captcha":t="";t="type_captcha"==window["labels_and_ids"+l][r]?"#wd_captcha_input"+l:"#wd_arithmetic_captcha_input"+l,(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(jQuery(".message_captcha").html(""),f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)});break;case"type_signature":jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .wdform-label").removeClass("error_label");t="#signature-file-wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .wdform-label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).change(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .wdform-label").removeClass("error_label"),wd_is_filled(l,r)})}}),0===Object.keys(f).length&&0===Object.keys(window["check_before_submit"+l]).length||(0!==Object.keys(f).length&&jQuery.each(f,function(e,t){var i=jQuery("#form"+l+" div[wdid='"+e+"'] .wdform-label-section:first"),r=0;i.hasClass("wd-width-30")&&!i.hasClass("wd-hidden")&&(r=i.width()),jQuery("#form"+l+" #wd_required_"+e).remove(),jQuery("#form"+l+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label"),"type_password"===window["labels_and_ids"+l][e]||"type_submitter_mail"===window["labels_and_ids"+l][e]?jQuery("#form"+l+" div[wdid='"+e+"'] .wdform-element-section:first").parent().after("<div id='wd_required_"+e+"' class='fm-not-filled fm-password-not-filled' style='margin-left: "+r+"px'>"+fm_objectL10n.fm_field_is_required+"</div>"):jQuery("#form"+l+" div[wdid='"+e+"'] .wdform-element-section:first").parent().parent().append("<div id='wd_required_"+e+"' class='fm-not-filled' style='margin-left: "+r+"px'>"+fm_objectL10n.fm_field_is_required+"</div>")}),u||scroll_on_element(l),!(window["check_submit"+l]=1))}function wd_check_price_min_max(a,o){var s=jQuery("#form"+a),e=o||window["check_paypal_price_min_max"+a],d=!1;return jQuery.each(e,function(e,t){var i="#wdform_"+e+"_element"+a,r=t[3]?t[3]:0,n=t[4]?t[4]:-1;!t[2]&&jQuery(i).val()==t[1]||(-1!=n&&parseFloat(jQuery(i).val())>n||parseFloat(jQuery(i).val())<r)&&(jQuery("#form"+a+" #wd_price_"+e).remove(),s.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_min_max_check_1+t[0]+fm_objectL10n.fm_min_max_check_2+(t[3]?t[3]:0)+"-"+(t[4]?t[4]:"any")+"</div>"),jQuery("#form"+a+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),d=!0,o||scroll_on_element(a))}),!1===d}function wd_check_min_date_dob(u){var c=!0;return jQuery("#form"+u+" div[type='type_date_fields']").each(function(){var e=parseInt(jQuery(this).data("min-day"));if(!e)return!0;var t=jQuery(this).parent(),i=t.attr("wdid"),r=parseInt(jQuery("#wdform_"+i+"_day"+u).val()),n=parseInt(jQuery("#wdform_"+i+"_month"+u).val()),a=parseInt(jQuery("#wdform_"+i+"_year"+u).val());if(!(r||n||a))return!0;var o=parseInt(jQuery(this).data("min-month")),s=parseInt(jQuery(this).data("min-year")),d=new Date(a+"-"+n+"-"+r),l=new Date(s+"-"+o+"-"+e);(isNaN(d)||isNaN(a)||d-l<0)&&(c=!1,jQuery("#check_min_date_"+i+"_"+u).remove(),t.append("<div id='check_min_date_"+i+"_"+u+"' class='fm-not-valid-date'>"+jQuery(this).attr("data-min-date-alert")+"</div>"),t.find(".wdform-label").addClass("error_label"),scroll_on_element(u))}),c}function wd_spinner_check(r,n){var a=jQuery("#form"+r),o=!1,e=n||window["spinner_check"+r];return jQuery.each(e,function(e,t){var i="#wdform_"+e+"_element"+r;0!=a.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=a.find(jQuery("div[wdid='"+e+"']")).css("display")&&(parseInt(jQuery(i).val())<parseInt(t[0])||parseInt(jQuery(i).val())>parseInt(t[1]))&&(jQuery("#form"+r+" #wd_price_"+e).remove(),a.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_spinner_check+(t[0]?t[0]:0)+"-"+(t[1]?t[1]:"any")+"</div>"),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),o=!0,n||scroll_on_element(r))}),!1===o}function fmscrollHandler(e){var t=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height());!jQuery("#fm-scrollbox"+e).hasClass("fm-minimized")&&t>=window["scrollbox_trigger_point"+e]?setTimeout(function(){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp"),jQuery("#fm-scrollbox"+e).css("visibility",""),jQuery("#fm-scrollbox"+e+" .fm-header-img").addClass("fm-animated "+window["header_image_animation"+e])},1e3*window["scrollbox_loading_delay"+e]):"1"==window["scrollbox_auto_hide"+e]&&(jQuery("#fm-scrollbox"+e+" .fm-header-img").removeClass("fm-animated "+window["header_image_animation"+e]),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"))}function fm_submit_form(e){if("function"==typeof window["before_submit"+e]&&window["before_submit"+e]())return!1;if(!fm_check(0,e))return!1;(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery('<input type="hidden" name="save_or_submit'+e+'" value ="submit" />').appendTo("#form"+e),window["onsubmit_js"+e](),1==window["checkStripe"+e])?"none"!=jQuery("form[id='form"+e+"']").find(".StripeElement").first().parents(".wdform_row").css("display")?wdfm_call_stripe(!0):0<jQuery("#form"+e).find(".g-recaptcha[data-size=invisible]").length?grecaptcha.execute():fm_submit(e):0<jQuery("#form"+e).find(".g-recaptcha[data-size=invisible]").length?grecaptcha.execute():fm_submit(e)}function getHostName(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);return null!=t&&2<t.length&&"string"==typeof t[2]&&0<t[2].length?t[2]:null}function isJson(e){try{JSON.parse(e)}catch(e){return!1}return!0}function fm_submit(u){if(fm_set_input_value("fm_empty_field_validation"+u,jQuery("#fm_empty_field_validation"+u).attr("data-value")),"0"!=jQuery("#form"+u+" .button-submit:not(.save_button)").attr("data-ajax")){jQuery("#form"+u+" .fm-submit-loading").css("display","inline-block");var e=jQuery("#form"+u)[0],t=new FormData(e),i=jQuery("#fm_ajax_url"+u).data("ajax_url"),c=jQuery("#form"+u+" #fm_ajax_redirect_url"+u).data("ajax_redirect_url");jQuery.ajax({type:"POST",enctype:"multipart/form-data",url:i,data:t,contentType:!1,processData:!1,success:function(e){if(isJson(e)){var t=JSON.parse(e);if(void 0!==t.after_submit_redirect_url&&""!=jQuery.trim(t.after_submit_redirect_url))return void window.location.replace(t.after_submit_redirect_url);var i=new Date,r=window.location.href,n=i.getTime();if(void 0!==t.success&&(n=t.success),-1<r.indexOf("&succes="))r=r.split("&succes=")[0];else if(-1<r.indexOf("?succes=")){r=r.split("?succes=")[0]}r=-1<r.indexOf("?")?r+"&succes="+n:r+"?succes="+n;var a="&return="+encodeURIComponent(r);if(void 0!==t.paypal_url){var o=t.paypal_url+a;return void window.location.replace(o)}}jQuery("#form"+u+" .button-submit").prop("disabled",!1),jQuery("#form"+u+" .fm-submit-loading").hide();var s=jQuery(e).find("#form"+u).html();if(0==c||0!=jQuery(s).find(".fm-not-filled.message_captcha").length||0!=jQuery(s).filter(".fm-notice-error").length){jQuery("#form"+u).html(s),"function"==typeof window["fm_save_progress_buttons_"+u]&&window["fm_save_progress_buttons_"+u](),0<jQuery(document).find(".g-recaptcha").length&&fmRecaptchaInit(1);var d="fm_script_ready"+u;if(void 0!==window[d]&&window[d](),0<jQuery(s).find(".fm-not-filled.message_captcha").length){var l=jQuery(s).find(".fm-not-filled.message_captcha").text();jQuery("#form"+u+" .fm-message").remove(),jQuery("#form"+u).prepend('<div class="fm-message fm-notice-error">'+l+"</div>")}window["check_submit"+u]=0}else window.location.replace(c)},complete:function(){0==jQuery("#form"+u+" .fm-message").length?(jQuery("#closing-form"+u).remove(),jQuery("#fm-popover-background"+u).css("display","none")):jQuery("#fm-popover-container"+u).addClass("fm-submit-message"),"function"!=typeof window["after_submit"+u]||jQuery("#form"+u).find(".message_captcha").length||window["after_submit"+u]()}})}else jQuery("#form"+u).submit()}function fm_reset_form(form_id){"function"==typeof window["before_reset"+form_id]&&window["before_reset"+form_id]();var privacy_policy_check=jQuery("#fm_privacy_policy"+form_id);privacy_policy_check&&(privacy_policy_check.prop("checked",!1),fm_privacy_policy_check(privacy_policy_check)),jQuery.each(window["labels_and_ids"+form_id],function(index,elem){switch(elem){case"type_text":case"type_textarea":case"type_number":case"type_spinner":case"type_own_select":case"type_country":case"type_date":case"type_date_new":case"type_hidden":case"type_paypal_price_new":case"type_phone_new":case"type_time":jQuery("#wdform_"+index+"_element"+form_id).val("");break;case"type_submitter_mail":case"type_password":jQuery("#wdform_"+index+"_element"+form_id).val(""),jQuery("#wdform_"+index+"_1_element"+form_id)&&(jQuery("#wdform_"+index+"_1_element"+form_id).val(""),jQuery("#confirm_"+index+"_"+form_id)&&jQuery("#confirm_"+index+"_"+form_id).remove(),"type_submitter_mail"==elem&&jQuery("#check_email_"+index+"_"+form_id)&&jQuery("#check_email_"+index+"_"+form_id).remove());break;case"type_date_range":jQuery("#wdform_"+index+"_element"+form_id+"0").val(""),jQuery("#wdform_"+index+"_element"+form_id+"1").val("");break;case"type_send_copy":jQuery("#wdform_"+index+"_element"+form_id).prop("checked",!1);break;case"type_phone":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val("");break;case"type_name":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val("");break;case"type_address":jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val("");break;case"type_checkbox":jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_radio":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_time":jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val("");break;case"type_date_fields":jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val("");break;case"type_file_upload":jQuery("#wdform_"+index+"_element"+form_id+"_save").remove();break;case"type_paypal_price":jQuery("#wdform_"+index+"_element_dollars"+form_id+", #wdform_"+index+"_element_cents"+form_id).val("");break;case"type_paypal_select":jQuery("#wdform_"+index+"_element"+form_id+", #wdform_"+index+"_element_quantity"+form_id+", #form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val("");break;case"type_paypal_radio":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_shipping":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_checkbox":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1);break;case"type_star_rating":jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(""),jQuery("#wdform_"+index+"_element"+form_id+" img").attr("src",fm_objectL10n.plugin_url+"/images/star.png");break;case"type_scale_rating":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_slider":jQuery("#wdform_"+index+"_element"+form_id).slider({value:eval(0)}),jQuery("#wdform_"+index+"_element_value"+form_id).html("0");break;case"type_range":jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val("");break;case"type_grading":jQuery("#wdform_"+index+"_element"+form_id+" input").val("");break;case"type_matrix":jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(""),jQuery("#wdform_"+index+"_element"+form_id+" select").val("");break;case"type_paypal_total":jQuery("#wdform_"+index+"div_total"+form_id).html("$0"),jQuery("#wdform_"+index+"paypal_products"+form_id).empty();break;case"type_captcha":jQuery("#wd_captcha_input"+form_id).val("");case"type_arithmetic_captcha":jQuery("#wd_arithmetic_captcha_input"+form_id).val("");case"type_signature":jQuery("#signature-file-wdform_"+index+"_element"+form_id).val(""),jQuery("#signature-signs-wdform_"+index+"_element"+form_id).val(""),jQuery("#signature-clear-wdform_"+index+"_element"+form_id).trigger("click")}})}function fm_save_form(e){jQuery('<input type="hidden" name="save_or_submit'+e+'" value ="save" />').appendTo("#form"+e),window["onsubmit_js"+e](),jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),fm_set_input_value("fm_empty_field_validation"+e,jQuery("#fm_empty_field_validation"+e).attr("data-value")),jQuery("#form"+e).submit()}function fm_clear_form(e){1==confirm(fm_objectL10n.fm_clear_data)&&(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery.get(fm_objectL10n.form_maker_admin_ajax+"?action=FMClearProg&addon_task=clear_data&nonce="+fm_ajax.ajaxnonce+"&form_id="+e).done(function(){window.location=jQuery("#form"+e).attr("action")}))}function fm_set_input_value(e,t){jQuery("#"+e).val(t)}function formOnload(r){var n;-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&8===parseInt(navigator.userAgent.toLowerCase().split("msie")[1])&&(jQuery("#form"+r).find(jQuery("input[type='radio']")).click(function(){jQuery("input[type='radio']+label").removeClass("if-ie-div-label"),jQuery("input[type='radio']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+r).find(jQuery("input[type='radio']:checked+label")).addClass("if-ie-div-label"),jQuery("#form"+r).find(jQuery("input[type='checkbox']")).click(function(){jQuery("input[type='checkbox']+label").removeClass("if-ie-div-label"),jQuery("input[type='checkbox']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+r).find(jQuery("input[type='checkbox']:checked+label")).addClass("if-ie-div-label")),jQuery.each(window["check_regExp_all"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_regExp(r,i)}).focus(function(){jQuery("#form"+r+" #wd_exp_"+e).remove(),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")})}),jQuery.each(window["check_paypal_price_min_max"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_price_min_max(r,i)}).focus(function(){jQuery("#form"+r+" #wd_price_"+e).remove(),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["spinner_check"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_spinner_check(r,i)}).focus(function(){jQuery("#form"+r+" #wd_price_"+e).remove(),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["file_upload_check"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").change(function(){wd_file_upload_check(r,i)})}),jQuery("#form"+r+" input").on("keypress",function(e){if(13==(e.keyCode?e.keyCode:e.which))return!1}),jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_phone_new'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity, div[type='type_paypal_price_new'] input").keypress(function(e){return check_isnum(e)}),jQuery("div[type='type_grading'] input").keypress(function(e){return check_isnum_or_minus(e)}),jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function(){set_total_value(r)}),jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input").change(function(){set_total_value(r)}),jQuery(".wdform-quantity").change(function(){set_total_value(r)}),jQuery("div[type='type_address'] select").change(function(){set_total_value(r)}),jQuery("div[type='type_time'] input").blur(function(){add_0(this)}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().parent().attr("type"))return!0;jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15)),parseInt(jQuery(this)[0].style.width.replace("px",""))<parseInt(jQuery(this).css("min-width").replace("px",""))&&jQuery(this).css("min-width",parseInt(jQuery(this)[0].style.width.replace("px",""))-10)}),jQuery(".wdform-label").each(function(){parseInt(jQuery(this).height())>=2*parseInt(jQuery(this).css("line-height").replace("px",""))&&(jQuery(this).parent().css("max-width",jQuery(this).parent().width()),jQuery(this).parent().css("width",""))}),(n=jQuery).fn.shuffle=function(){var r=n(this).find(".wd-choice"),t=n.map(r,function(){var e,t=(e=r.length,Math.floor(Math.random()*e)),i=n(r[parseInt(t)]).clone(!0)[0];return r.splice(t,1),i});return n(this).find(".wd-choice").each(function(e){n(this).replaceWith(n(t[e]))}),n(t)},"function"==typeof window["onload_js"+r]&&window["onload_js"+r](),"function"==typeof window["before_load"+r]&&window["before_load"+r]()}function fm_document_ready(e){jQuery("#form"+e).hasClass("fm-form-submitted")&&!jQuery("#form"+e).find(".message_captcha").length&&"function"==typeof window["after_submit"+e]&&window["after_submit"+e]();var t=jQuery("#form"+e+" .wdform-page-and-images").length;window["form_view_count"+e]=t,1<window["form_view_count"+e]&&(firstid=jQuery("#form"+e+" .wdform_page").first().attr("id"),firstid=firstid.split("form_view"),window["first_form_view"+e]=firstid[1],generate_page_nav(window["first_form_view"+e],e,window["form_view_count"+e])),fm_initilize_form(e),window["condition_js"+e](),jQuery(document).trigger("fm_document_ready")}function fm_check(e,t,i){if(!wd_is_filled(t,void 0,i))return!1;if(1==window["checkStripe"+t]){var r=jQuery("form[id='form"+t+"']");if("none"!=r.find(".StripeElement").first().closest(".wdform-page-and-images").css("display")&&"none"!=r.find(".StripeElement").first().parents(".wdform_row").css("display")&&0==wdfm_call_stripe(!1))return!1}return!!wd_check_regExp(t)&&(!!wd_check_price_min_max(t)&&(!!wd_spinner_check(t)&&(!!wd_file_upload_check(t)&&(!!wd_check_min_date_dob(t)&&0!=window["check_js"+t](e,t)))))}function fmRecaptchaInit(e){void 0===e&&(e=0),jQuery(".g-recaptcha").each(function(){if(type=jQuery(this).attr("data-size"),jQuery(this).attr("data-render",1),"invisible"==type)i=jQuery(this).attr("data-form_id"),grecaptcha.render(jQuery(this).attr("id"),{sitekey:jQuery(this).attr("data-sitekey"),badge:jQuery(this).attr("data-badge"),callback:function(){fm_submit(i)}});else if("v3"==type){if("undefined"==jQuery(this).attr("data-sitekey")||""==jQuery(this).attr("data-sitekey"))return;var t=jQuery(this).attr("data-id"),i=jQuery(this).attr("data-form-id"),e=jQuery(this).attr("data-sitekey");grecaptcha.ready(function(){grecaptcha.execute(e).then(function(e){document.getElementById("recaptchaV3Response_"+i+t).value=e})})}else grecaptcha.render(jQuery(this).attr("id"),{sitekey:jQuery(this).attr("data-sitekey"),theme:"light"})})}function wd_change_state_input(e,t){if(document.getElementById(e+"_country"+t)&&document.getElementById(e+"_state"+t)){var i=!1,r=document.getElementById(e+"_state"+t);if("United States"==document.getElementById(e+"_country"+t).value){var n=document.createElement("select"),a=fm_objectL10n.states;for(var o in a){(s=document.createElement("option")).setAttribute("value",o),s.innerHTML=a[o],n.appendChild(s)}i=!0}else if("Canada"==document.getElementById(e+"_country"+t).value){n=document.createElement("select"),a=fm_objectL10n.provinces;for(var o in a){var s;(s=document.createElement("option")).setAttribute("value",o),s.innerHTML=a[o],n.appendChild(s)}i=!0}else if("SELECT"==document.getElementById(e+"_state"+t).tagName){n=document.createElement("input");i=!0}if(i){n.setAttribute("type","text"),n.setAttribute("id",e+"_state"+t),n.setAttribute("name","wdform_"+(parseInt(e.replace("wdform_",""))+3)+"_state"+t),n.setAttribute("class","wd-width-100");var d=r.parentNode;d.removeChild(r),d.insertBefore(n,d.firstChild)}}}function fm_privacy_policy_check(e){var t=jQuery(e),i=t.parents(".wdform_row").find(".button-submit");t.is(":checked")?i.prop("disabled",!1):i.prop("disabled",!0)}function fm_html_entities(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function validate_received_data_from_url(){new URLSearchParams(window.location.search).forEach(function(e,t){jQuery("#"+t).each(function(){jQuery(this).keyup(),jQuery(this).keydown(),jQuery(this).trigger("change")})})}jQuery(document).on("mouseenter",".sel-imul",function(){selenter=!0}),jQuery(document).on("mouseleave",".sel-imul",function(){selenter=!1}),jQuery(document).click(function(){selenter||(jQuery(".sel-options").hide(),jQuery(".sel-imul").removeClass("act"))}),function(e){"object"==typeof module&&module.exports?module.exports=e():window.intlTelInput=e()}(function(m){"use strict";return function(){function r(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}for(var a=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","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 (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],e=0;e<a.length;e++){var t=a[e];a[e]={name:t[0],iso2:t[1],dialCode:t[2],priority:t[3]||0,areaCodes:t[4]||null}}var i={getInstance:function(e){var t=e.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[t]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=i);var o=0,s={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},d=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],l=function(e,t){for(var i=Object.keys(e),r=0;r<i.length;r++)t(i[r],e[i[r]])},u=function(t){l(window.intlTelInputGlobals.instances,function(e){window.intlTelInputGlobals.instances[e][t]()})},n=function(){function n(e,t){var i=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this.id=o++,this.a=e,this.b=null,this.c=null;var r=t||{};this.d={},l(s,function(e,t){i.d[e]=r.hasOwnProperty(e)?r[e]:t}),this.e=Boolean(e.getAttribute("placeholder"))}return e=n,(t=[{key:"_init",value:function(){var i=this;if(this.d.nationalMode&&(this.d.autoHideDialCode=!1),this.d.separateDialCode&&(this.d.autoHideDialCode=this.d.nationalMode=!1),this.g=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.g&&(document.body.classList.add("iti-mobile"),this.d.dropdownContainer||(this.d.dropdownContainer=document.body)),"undefined"!=typeof Promise){var e=new Promise(function(e,t){i.h=e,i.i=t}),t=new Promise(function(e,t){i.i0=e,i.i1=t});this.promise=Promise.all([e,t])}else this.h=this.i=function(){},this.i0=this.i1=function(){};this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}},{key:"_b",value:function(){this._d(),this._d2(),this._e(),this.d.localizedCountries&&this._d0(),(this.d.onlyCountries.length||this.d.localizedCountries)&&this.p.sort(this._d1)}},{key:"_c",value:function(e,t,i){t.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=t.length),this.q.hasOwnProperty(t)||(this.q[t]=[]);for(var r=0;r<this.q[t].length;r++)if(this.q[t][r]===e)return;var n=i!==m?i:this.q[t].length;this.q[t][n]=e}},{key:"_d",value:function(){if(this.d.onlyCountries.length){var t=this.d.onlyCountries.map(function(e){return e.toLowerCase()});this.p=a.filter(function(e){return-1<t.indexOf(e.iso2)})}else if(this.d.excludeCountries.length){var i=this.d.excludeCountries.map(function(e){return e.toLowerCase()});this.p=a.filter(function(e){return-1===i.indexOf(e.iso2)})}else this.p=a}},{key:"_d0",value:function(){for(var e=0;e<this.p.length;e++){var t=this.p[e].iso2.toLowerCase();this.d.localizedCountries.hasOwnProperty(t)&&(this.p[e].name=this.d.localizedCountries[t])}}},{key:"_d1",value:function(e,t){return e.name.localeCompare(t.name)}},{key:"_d2",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.q={};for(var e=0;e<this.p.length;e++){var t=this.p[e];this.dialCodes[t.dialCode]||(this.dialCodes[t.dialCode]=!0),this._c(t.iso2,t.dialCode,t.priority)}for(var i=0;i<this.p.length;i++){var r=this.p[i];if(r.areaCodes)for(var n=this.q[r.dialCode][0],a=0;a<r.areaCodes.length;a++){for(var o=r.areaCodes[a],s=1;s<o.length;s++){var d=r.dialCode+o.substr(0,s);this._c(n,d),this._c(r.iso2,d)}this._c(r.iso2,r.dialCode+o)}}}},{key:"_e",value:function(){this.preferredCountries=[];for(var e=0;e<this.d.preferredCountries.length;e++){var t=this.d.preferredCountries[e].toLowerCase(),i=this._y(t,!1,!0);i&&this.preferredCountries.push(i)}}},{key:"_e2",value:function(e,t,i){var r=document.createElement(e);return t&&l(t,function(e,t){return r.setAttribute(e,t)}),i&&i.appendChild(r),r}},{key:"_f",value:function(){this.a.hasAttribute("autocomplete")||this.a.form&&this.a.form.hasAttribute("autocomplete")||this.a.setAttribute("autocomplete","off");var e="iti";this.d.allowDropdown&&(e+=" iti--allow-dropdown"),this.d.separateDialCode&&(e+=" iti--separate-dial-code"),this.d.customContainer&&(e+=" ",e+=this.d.customContainer);var t=this._e2("div",{class:e});if(this.a.parentNode.insertBefore(t,this.a),this.k=this._e2("div",{class:"iti__flag-container"},t),t.appendChild(this.a),this.selectedFlag=this._e2("div",{class:"iti__selected-flag",role:"combobox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.k),this.l=this._e2("div",{class:"iti__flag"},this.selectedFlag),this.d.separateDialCode&&(this.t=this._e2("div",{class:"iti__selected-dial-code"},this.selectedFlag)),this.d.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.u=this._e2("div",{class:"iti__arrow"},this.selectedFlag),this.m=this._e2("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._g(this.preferredCountries,"iti__preferred",!0),this._e2("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.m)),this._g(this.p,"iti__standard"),this.d.dropdownContainer?(this.dropdown=this._e2("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.m)):this.k.appendChild(this.m)),this.d.hiddenInput){var i=this.d.hiddenInput,r=this.a.getAttribute("name");if(r){var n=r.lastIndexOf("[");-1!==n&&(i="".concat(r.substr(0,n),"[").concat(i,"]"))}this.hiddenInput=this._e2("input",{type:"hidden",name:i}),t.appendChild(this.hiddenInput)}}},{key:"_g",value:function(e,t,i){for(var r="",n=0;n<e.length;n++){var a=e[n],o=i?"-preferred":"";r+="<li class='iti__country ".concat(t,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(a.iso2).concat(o,"' role='option' data-dial-code='").concat(a.dialCode,"' data-country-code='").concat(a.iso2,"' aria-selected='false'>"),r+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(a.iso2,"'></div></div>"),r+="<span class='iti__country-name'>".concat(a.name,"</span>"),r+="<span class='iti__dial-code'>+".concat(a.dialCode,"</span>"),r+="</li>"}this.m.insertAdjacentHTML("beforeend",r)}},{key:"_h",value:function(){var e=this.a.getAttribute("value"),t=this.a.value,i=e&&"+"===e.charAt(0)&&(!t||"+"!==t.charAt(0))?e:t,r=this._5(i),n=this._w(i),a=this.d,o=a.initialCountry,s=a.nationalMode,d=a.autoHideDialCode,l=a.separateDialCode;r&&!n?this._v(i):"auto"!==o&&(o?this._z(o.toLowerCase()):r&&n?this._z("us"):(this.j=this.preferredCountries.length?this.preferredCountries[0].iso2:this.p[0].iso2,i||this._z(this.j)),i||s||d||l||(this.a.value="+".concat(this.s.dialCode))),i&&this._u(i)}},{key:"_i",value:function(){this._j(),this.d.autoHideDialCode&&this._l(),this.d.allowDropdown&&this._i2(),this.hiddenInput&&this._i0()}},{key:"_i0",value:function(){var e=this;this._a14=function(){e.hiddenInput.value=e.getNumber()},this.a.form&&this.a.form.addEventListener("submit",this._a14)}},{key:"_i1",value:function(){for(var e=this.a;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_i2",value:function(){var t=this;this._a9=function(e){t.m.classList.contains("iti__hide")?t.a.focus():e.preventDefault()};var e=this._i1();e&&e.addEventListener("click",this._a9),this._a10=function(){!t.m.classList.contains("iti__hide")||t.a.disabled||t.a.readOnly||t._n()},this.selectedFlag.addEventListener("click",this._a10),this._a11=function(e){t.m.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(e.key)&&(e.preventDefault(),e.stopPropagation(),t._n()),"Tab"===e.key&&t._2()},this.k.addEventListener("keydown",this._a11)}},{key:"_i3",value:function(){var e=this;this.d.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.d.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(e.d.utilsScript)}):this.i0(),"auto"===this.d.initialCountry?this._i4():this.h()}},{key:"_i4",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.d.geoIpLookup&&this.d.geoIpLookup(function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout(function(){return u("handleAutoCountry")})},function(){return u("rejectAutoCountryPromise")}))}},{key:"_j",value:function(){var e=this;this._a12=function(){e._v(e.a.value)&&e._m2CountryChange()},this.a.addEventListener("keyup",this._a12),this._a13=function(){setTimeout(e._a12)},this.a.addEventListener("cut",this._a13),this.a.addEventListener("paste",this._a13)}},{key:"_j2",value:function(e){var t=this.a.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_l",value:function(){var e=this;this._a8=function(){e._l2()},this.a.form&&this.a.form.addEventListener("submit",this._a8),this.a.addEventListener("blur",this._a8)}},{key:"_l2",value:function(){if("+"===this.a.value.charAt(0)){var e=this._m(this.a.value);e&&this.s.dialCode!==e||(this.a.value="")}}},{key:"_m",value:function(e){return e.replace(/\D/g,"")}},{key:"_m2",value:function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),this.a.dispatchEvent(t)}},{key:"_n",value:function(){this.m.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._o(),this.b&&(this._x(this.b,!1),this._3(this.b,!0)),this._p(),this.u.classList.add("iti__arrow--up"),this._m2("open:countrydropdown")}},{key:"_n2",value:function(e,t,i){i&&!e.classList.contains(t)?e.classList.add(t):!i&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_o",value:function(){var e=this;if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.g){var t=this.a.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,r=t.top+i,n=this.m.offsetHeight,a=r+this.a.offsetHeight+n<i+window.innerHeight,o=i<r-n;if(this._n2(this.m,"iti__country-list--dropup",!a&&o),this.d.dropdownContainer){var s=!a&&o?0:this.a.offsetHeight;this.dropdown.style.top="".concat(r+s,"px"),this.dropdown.style.left="".concat(t.left+document.body.scrollLeft,"px"),this._a4=function(){return e._2()},window.addEventListener("scroll",this._a4)}}}},{key:"_o2",value:function(e){for(var t=e;t&&t!==this.m&&!t.classList.contains("iti__country");)t=t.parentNode;return t===this.m?null:t}},{key:"_p",value:function(){var i=this;this._a0=function(e){var t=i._o2(e.target);t&&i._x(t,!1)},this.m.addEventListener("mouseover",this._a0),this._a1=function(e){var t=i._o2(e.target);t&&i._1(t)},this.m.addEventListener("click",this._a1);var e=!0;this._a2=function(){e||i._2(),e=!1},document.documentElement.addEventListener("click",this._a2);var t="",r=null;this._a3=function(e){e.preventDefault(),"ArrowUp"===e.key||"Up"===e.key||"ArrowDown"===e.key||"Down"===e.key?i._q(e.key):"Enter"===e.key?i._r():"Escape"===e.key?i._2():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e.key)&&(r&&clearTimeout(r),t+=e.key.toLowerCase(),i._s(t),r=setTimeout(function(){t=""},1e3))},document.addEventListener("keydown",this._a3)}},{key:"_q",value:function(e){var t="ArrowUp"===e||"Up"===e?this.c.previousElementSibling:this.c.nextElementSibling;t&&(t.classList.contains("iti__divider")&&(t="ArrowUp"===e||"Up"===e?t.previousElementSibling:t.nextElementSibling),this._x(t,!0))}},{key:"_r",value:function(){this.c&&this._1(this.c)}},{key:"_s",value:function(e){for(var t=0;t<this.p.length;t++)if(this._t(this.p[t].name,e)){var i=this.m.querySelector("#iti-".concat(this.id,"__item-").concat(this.p[t].iso2));this._x(i,!1),this._3(i,!0);break}}},{key:"_t",value:function(e,t){return e.substr(0,t.length).toLowerCase()===t}},{key:"_u",value:function(e){var t=e;if(this.d.formatOnDisplay&&window.intlTelInputUtils&&this.s){var i=!this.d.separateDialCode&&(this.d.nationalMode||"+"!==t.charAt(0)),r=intlTelInputUtils.numberFormat,n=r.NATIONAL,a=r.INTERNATIONAL,o=i?n:a;t=intlTelInputUtils.formatNumber(t,this.s.iso2,o)}t=this._7(t),this.a.value=t}},{key:"_v",value:function(e){var t=e,i=this.s.dialCode,r="1"===i;t&&this.d.nationalMode&&r&&"+"!==t.charAt(0)&&("1"!==t.charAt(0)&&(t="1".concat(t)),t="+".concat(t)),this.d.separateDialCode&&i&&"+"!==t.charAt(0)&&(t="+".concat(i).concat(t));var n=this._5(t,!0),a=this._m(t),o=null;if(n){var s=this.q[this._m(n)],d=-1!==s.indexOf(this.s.iso2)&&a.length<=n.length-1;if(!("1"===i&&this._w(a)||d))for(var l=0;l<s.length;l++)if(s[l]){o=s[l];break}}else"+"===t.charAt(0)&&a.length?o="":t&&"+"!==t||(o=this.j);return null!==o&&this._z(o)}},{key:"_w",value:function(e){var t=this._m(e);if("1"!==t.charAt(0))return!1;var i=t.substr(1,3);return-1!==d.indexOf(i)}},{key:"_x",value:function(e,t){var i=this.c;i&&i.classList.remove("iti__highlight"),this.c=e,this.c.classList.add("iti__highlight"),t&&this.c.focus()}},{key:"_y",value:function(e,t,i){for(var r=t?a:this.p,n=0;n<r.length;n++)if(r[n].iso2===e)return r[n];if(i)return null;throw new Error("No country data for '".concat(e,"'"))}},{key:"_z",value:function(e){var t=this.s.iso2?this.s:{};this.s=e?this._y(e,!1,!1):{},this.s.iso2&&(this.j=this.s.iso2),this.l.setAttribute("class","iti__flag iti__".concat(e));var i=e?"".concat(this.s.name,": +").concat(this.s.dialCode):"Unknown";if(this.selectedFlag.setAttribute("title",i),this.d.separateDialCode){var r=this.s.dialCode?"+".concat(this.s.dialCode):"";this.t.innerHTML=r;var n=this.selectedFlag.offsetWidth||this._z2();this.a.style.paddingLeft="".concat(n+6,"px")}if(this._0(),this.d.allowDropdown){var a=this.b;if(a&&(a.classList.remove("iti__active"),a.setAttribute("aria-selected","false")),e){var o=this.m.querySelector("#iti-".concat(this.id,"__item-").concat(e,"-preferred"))||this.m.querySelector("#iti-".concat(this.id,"__item-").concat(e));o.setAttribute("aria-selected","true"),o.classList.add("iti__active"),this.b=o,this.selectedFlag.setAttribute("aria-activedescendant",o.getAttribute("id"))}}return t.iso2!==e}},{key:"_z2",value:function(){var e=this.a.parentNode.cloneNode();e.style.visibility="hidden",document.body.appendChild(e);var t=this.k.cloneNode();e.appendChild(t);var i=this.selectedFlag.cloneNode(!0);t.appendChild(i);var r=i.offsetWidth;return e.parentNode.removeChild(e),r}},{key:"_0",value:function(){var e="aggressive"===this.d.autoPlaceholder||!this.e&&"polite"===this.d.autoPlaceholder;if(window.intlTelInputUtils&&e){var t=intlTelInputUtils.numberType[this.d.placeholderNumberType],i=this.s.iso2?intlTelInputUtils.getExampleNumber(this.s.iso2,this.d.nationalMode,t):"";i=this._7(i),"function"==typeof this.d.customPlaceholder&&(i=this.d.customPlaceholder(i,this.s)),this.a.setAttribute("placeholder",i)}}},{key:"_1",value:function(e){var t=this._z(e.getAttribute("data-country-code"));this._2(),this._4(e.getAttribute("data-dial-code"),!0),this.a.focus();var i=this.a.value.length;this.a.setSelectionRange(i,i),t&&this._m2CountryChange()}},{key:"_2",value:function(){this.m.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),document.documentElement.removeEventListener("click",this._a2),this.m.removeEventListener("mouseover",this._a0),this.m.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.g||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._m2("close:countrydropdown")}},{key:"_3",value:function(e,t){var i=this.m,r=window.pageYOffset||document.documentElement.scrollTop,n=i.offsetHeight,a=i.getBoundingClientRect().top+r,o=a+n,s=e.offsetHeight,d=e.getBoundingClientRect().top+r,l=d+s,u=d-a+i.scrollTop,c=n/2-s/2;if(d<a)t&&(u-=c),i.scrollTop=u;else if(o<l){t&&(u+=c);var m=n-s;i.scrollTop=u-m}}},{key:"_4",value:function(e,t){var i,r=this.a.value,n="+".concat(e);if("+"===r.charAt(0)){var a=this._5(r);i=a?r.replace(a,n):n}else{if(this.d.nationalMode||this.d.separateDialCode)return;if(r)i=n+r;else{if(!t&&this.d.autoHideDialCode)return;i=n}}this.a.value=i}},{key:"_5",value:function(e,t){var i="";if("+"===e.charAt(0))for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(!isNaN(parseInt(a,10))){if(r+=a,t)this.q[r]&&(i=e.substr(0,n+1));else if(this.dialCodes[r]){i=e.substr(0,n+1);break}if(r.length===this.countryCodeMaxLen)break}}return i}},{key:"_6",value:function(){var e=this.a.value.trim(),t=this.s.dialCode,i=this._m(e);return(this.d.separateDialCode&&"+"!==e.charAt(0)&&t&&i?"+".concat(t):"")+e}},{key:"_7",value:function(e){var t=e;if(this.d.separateDialCode){var i=this._5(t);if(i){var r=" "===t[(i="+".concat(this.s.dialCode)).length]||"-"===t[i.length]?i.length+1:i.length;t=t.substr(r)}}return this._j2(t)}},{key:"_m2CountryChange",value:function(){this._m2("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.d.initialCountry&&(this.j=window.intlTelInputGlobals.autoCountry,this.a.value||this.setCountry(this.j),this.h())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.a.value&&this._u(this.a.value),this._0()),this.i0()}},{key:"destroy",value:function(){var e=this.a.form;if(this.d.allowDropdown){this._2(),this.selectedFlag.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);var t=this._i1();t&&t.removeEventListener("click",this._a9)}this.hiddenInput&&e&&e.removeEventListener("submit",this._a14),this.d.autoHideDialCode&&(e&&e.removeEventListener("submit",this._a8),this.a.removeEventListener("blur",this._a8)),this.a.removeEventListener("keyup",this._a12),this.a.removeEventListener("cut",this._a13),this.a.removeEventListener("paste",this._a13),this.a.removeAttribute("data-intl-tel-input-id");var i=this.a.parentNode;i.parentNode.insertBefore(this.a,i),i.parentNode.removeChild(i),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._6(),this.s.iso2):""}},{key:"getNumber",value:function(e){if(window.intlTelInputUtils){var t=this.s.iso2;return intlTelInputUtils.formatNumber(this._6(),t,e)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._6(),this.s.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.s}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var e=this.s.iso2;return intlTelInputUtils.getValidationError(this._6(),e)}return-99}},{key:"isValidNumber",value:function(){var e=this._6().trim(),t=this.d.nationalMode?this.s.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null}},{key:"setCountry",value:function(e){var t=e.toLowerCase();this.l.classList.contains("iti__".concat(t))||(this._z(t),this._4(this.s.dialCode,!1),this._m2CountryChange())}},{key:"setNumber",value:function(e){var t=this._v(e);this._u(e),t&&this._m2CountryChange()}},{key:"setPlaceholderNumberType",value:function(e){this.d.placeholderNumberType=e,this._0()}}])&&r(e.prototype,t),i&&r(e,i),n;var e,t,i}();i.getCountryData=function(){return a};var c=function(e,t,i){var r=document.createElement("script");r.onload=function(){u("handleUtils"),t&&t()},r.onerror=function(){u("rejectUtilsScriptPromise"),i&&i()},r.className="iti-load-utils",r.async=!0,r.src=e,document.body.appendChild(r)};return i.loadUtils=function(i){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(e,t){return c(i,e,t)});c(i)}return null},i.defaults=s,i.version="17.0.13",function(e,t){var i=new n(e,t);return i._init(),e.setAttribute("data-intl-tel-input-id",i.id),window.intlTelInputGlobals.instances[i.id]=i}}()});var gmapdata=new Array,gmapmarker=new Array;function if_gmap_init(e,t){if(document.getElementById(e+"_element"+t)){map=document.getElementById(e+"_element"+t);var i=parseInt(map.getAttribute("zoom")),r=map.getAttribute("center_x"),n=map.getAttribute("center_y"),a=new google.maps.LatLng(n,r);return gmapdata[e]=new google.maps.Map(document.getElementById(e+"_element"+t),{center:a,zoom:i,mapTypeId:"roadmap"}),gmapmarker[e]=new Array,!1}draggab=!1,map=document.getElementById(e);i=parseInt(map.getAttribute("zoom")),r=map.getAttribute("long"),n=map.getAttribute("lat"),a=new google.maps.LatLng(n,r);return gmapdata=new google.maps.Map(document.getElementById(e),{center:a,zoom:i,mapTypeId:"roadmap"}),geocoder=new google.maps.Geocoder,(gmapmarker=new google.maps.Marker({map:gmapdata,position:a,draggable:draggab})).setDraggable(draggab),infoW=new google.maps.InfoWindow,google.maps.event.addListener(gmapdata,"mouseover",function(e){document.getElementById("longval")||(gmapmarker.draggable=!1)}),google.maps.event.addListener(gmapdata,"click",function(e){document.getElementById("longval")&&(document.getElementById("longval").value=e.latLng.lng().toFixed(6),document.getElementById("latval").value=e.latLng.lat().toFixed(6),gmapmarker.setPosition(e.latLng),if_gmap_updateMap(),geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)}))}),google.maps.event.addListener(gmapmarker,"drag",function(){document.getElementById("longval")&&(geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)}),if_gmap_updateMap(),document.getElementById("latval").value=gmapmarker.getPosition().lat().toFixed(6),document.getElementById("longval").value=gmapmarker.getPosition().lng().toFixed(6))}),google.maps.event.addListener(gmapmarker,"click",function(){infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(e).getAttribute("info")+"</div>");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),document.getElementById("longval")&&(document.getElementById("longval").value=r,document.getElementById("latval").value=n,geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)})),!1}function add_marker_on_map(e,t,i,r,n,a,o){var s=new google.maps.LatLng(r,i);return gmapmarker[e][t]=new google.maps.Marker({map:gmapdata[e],position:s,draggable:o}),gmapmarker[e][t].setDraggable(o),o&&google.maps.event.addListener(gmapmarker[e][t],"drag",function(){document.getElementById(e+"_lat"+a).value=gmapmarker[e][t].getPosition().lat().toFixed(6),document.getElementById(e+"_long"+a).value=gmapmarker[e][t].getPosition().lng().toFixed(6)}),infoW=new google.maps.InfoWindow,google.maps.event.addListener(gmapmarker[e][t],"click",function(){infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(e+"_element"+a).getAttribute("info"+t)+"</div>");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),!1}!function(I){function i(e,t){var a=this,o=I.extend({},I.fn.signaturePad.defaults,t),s=I(e),i=I(o.canvas,s),d=i.get(0),l=null,u={x:null,y:null},c=[],m=!1,r=!1,n=!1,f=!1,_=30,h=_,p=0;function y(){clearTimeout(m),r=m=!1}function v(e,t){var i,r,n;if(e.preventDefault(),i=I(e.target).offset(),clearTimeout(m),m=!1,n=void 0!==e.targetTouches?(r=Math.floor(e.targetTouches[0].pageX-i.left),Math.floor(e.targetTouches[0].pageY-i.top)):(r=Math.floor(e.pageX-i.left),Math.floor(e.pageY-i.top)),u.x===r&&u.y===n)return!0;null===u.x&&(u.x=r),null===u.y&&(u.y=n),t&&(n+=t),l.beginPath(),l.moveTo(u.x,u.y),l.lineTo(r,n),l.lineCap=o.penCap,l.stroke(),l.closePath(),c.push({lx:r,ly:n,mx:u.x,my:u.y}),u.x=r,u.y=n,o.onDraw&&"function"==typeof o.onDraw&&o.onDraw.apply(a)}function w(){g()}function g(e){e?v(e,1):(n?i.each(function(){this.removeEventListener("touchmove",v)}):i.unbind("mousemove.signaturepad"),0<c.length&&o.onDrawEnd&&"function"==typeof o.onDrawEnd&&o.onDrawEnd.apply(a)),u.x=null,u.y=null,o.output&&0<c.length&&I(o.output,s).val(JSON.stringify(c))}function b(){l.clearRect(0,0,d.width,d.height),l.fillStyle=o.bgColour,l.fillRect(0,0,d.width,d.height),o.displayOnly||o.lineWidth&&(l.beginPath(),l.lineWidth=o.lineWidth,l.strokeStyle=o.lineColour,l.moveTo(o.lineMargin,o.lineTop),l.lineTo(d.width-o.lineMargin,o.lineTop),l.stroke(),l.closePath()),l.lineWidth=o.penWidth,l.strokeStyle=o.penColour,I(o.output,s).val(""),c=[],g()}function j(e,t){null==u.x?v(e,1):v(e,t)}function k(e,t){n?t.addEventListener("touchmove",j,!1):i.bind("mousemove.signaturepad",j),v(e,1)}function Q(e){if(f)return!1;f=!0,I("input").blur(),void 0!==e.targetTouches&&(n=!0),n?(i.each(function(){this.addEventListener("touchend",w,!1),this.addEventListener("touchcancel",w,!1)}),i.unbind("mousedown.signaturepad")):(I(document).bind("mouseup.signaturepad",function(){r&&(g(),y())}),i.bind("mouseleave.signaturepad",function(e){r&&g(e),r&&!m&&(m=setTimeout(function(){g(),y()},500))}),i.each(function(){this.ontouchstart=null}))}function x(){I(o.typed,s).hide(),b(),i.each(function(){this.addEventListener("touchstart",function(e){e.preventDefault(),r=!0,Q(e),k(e,this)})}),i.bind("mousedown.signaturepad",function(e){if(e.preventDefault(),1<e.which)return!1;r=!0,Q(e),k(e)}),I(o.clear,s).bind("click.signaturepad",function(e){e.preventDefault(),b()}),I(o.typeIt,s).bind("click.signaturepad",function(e){e.preventDefault(),C()}),I(o.drawIt,s).unbind("click.signaturepad"),I(o.drawIt,s).bind("click.signaturepad",function(e){e.preventDefault()}),I(o.typeIt,s).removeClass(o.currentClass),I(o.drawIt,s).addClass(o.currentClass),I(o.sig,s).addClass(o.currentClass),I(o.typeItDesc,s).hide(),I(o.drawItDesc,s).show(),I(o.clear,s).show()}function C(){b(),f=!1,i.each(function(){this.removeEventListener&&(this.removeEventListener("touchend",w),this.removeEventListener("touchcancel",w),this.removeEventListener("touchmove",v)),this.ontouchstart&&(this.ontouchstart=null)}),I(document).unbind("mouseup.signaturepad"),i.unbind("mousedown.signaturepad"),i.unbind("mousemove.signaturepad"),i.unbind("mouseleave.signaturepad"),I(o.clear,s).unbind("click.signaturepad"),I(o.typed,s).show(),I(o.drawIt,s).bind("click.signaturepad",function(e){e.preventDefault(),x()}),I(o.typeIt,s).unbind("click.signaturepad"),I(o.typeIt,s).bind("click.signaturepad",function(e){e.preventDefault()}),I(o.output,s).val(""),I(o.drawIt,s).removeClass(o.currentClass),I(o.typeIt,s).addClass(o.currentClass),I(o.sig,s).removeClass(o.currentClass),I(o.drawItDesc,s).hide(),I(o.clear,s).hide(),I(o.typeItDesc,s).show(),h=_=I(o.typed,s).css("font-size").replace(/px/,"")}function S(e){var t=I(o.typed,s),i=I.trim(e.replace(/>/g,"&gt;").replace(/</g,"&lt;")),r=p,n=.5*h;if(p=i.length,t.html(i),i){if(r<p&&t.outerWidth()>d.width)for(;t.outerWidth()>d.width;)h--,t.css("font-size",h+"px");if(p<r&&t.outerWidth()+n<d.width&&h<_)for(;t.outerWidth()+n<d.width&&h<_;)h++,t.css("font-size",h+"px")}else t.css("font-size",_+"px")}function M(){var e=!0,t={drawInvalid:!1,nameInvalid:!1},i=[s,o],r=[t,s,o];return o.onBeforeValidate&&"function"==typeof o.onBeforeValidate?o.onBeforeValidate.apply(a,i):function(e,t){I("p."+t.errorClass,e).remove(),e.removeClass(t.errorClass),I("input, label",e).removeClass(t.errorClass)}.apply(a,i),o.drawOnly&&c.length<1&&(e=!(t.drawInvalid=!0)),""===I(o.name,s).val()&&(e=!(t.nameInvalid=!0)),o.onFormError&&"function"==typeof o.onFormError?o.onFormError.apply(a,r):function(e,t,i){e.nameInvalid&&(t.prepend(['<p class="',i.errorClass,'">',i.errorMessage,"</p>"].join("")),I(i.name,t).focus(),I(i.name,t).addClass(i.errorClass),I("label[for="+I(i.name).attr("id")+"]",t).addClass(i.errorClass)),e.drawInvalid&&t.prepend(['<p class="',i.errorClass,'">',i.errorMessageDraw,"</p>"].join(""))}.apply(a,r),e}function D(e,t,i){for(var r in e)"object"==typeof e[r]&&(t.beginPath(),t.moveTo(e[r].mx,e[r].my),t.lineTo(e[r].lx,e[r].ly),t.lineCap=o.penCap,t.stroke(),t.closePath(),i&&e[r].lx&&c.push({lx:e[r].lx,ly:e[r].ly,mx:e[r].mx,my:e[r].my}))}I.extend(a,{signaturePad:"2.5.2",init:function(){parseFloat((/CPU.+OS ([0-9_]{3}).*AppleWebkit.*Mobile/i.exec(navigator.userAgent)||[0,"4_2"])[1].replace("_","."))<4.1&&(I.fn.Oldoffset=I.fn.offset,I.fn.offset=function(){var e=I(this).Oldoffset();return e.top-=window.scrollY,e.left-=window.scrollX,e}),I(o.typed,s).bind("selectstart.signaturepad",function(e){return I(e.target).is(":input")}),i.bind("selectstart.signaturepad",function(e){return I(e.target).is(":input")}),!d.getContext&&FlashCanvas&&FlashCanvas.initElement(d),d.getContext&&(l=d.getContext("2d"),I(o.sig,s).show(),o.displayOnly||(o.drawOnly||(I(o.name,s).bind("keyup.signaturepad",function(){S(I(this).val())}),I(o.name,s).bind("blur.signaturepad",function(){S(I(this).val())}),I(o.drawIt,s).bind("click.signaturepad",function(e){e.preventDefault(),x()})),o.drawOnly||"drawIt"===o.defaultAction?x():C(),o.validateFields&&(I(e).is("form")?I(e).bind("submit.signaturepad",function(){return M()}):I(e).parents("form").bind("submit.signaturepad",function(){return M()})),I(o.sigNav,s).show()))},updateOptions:function(e){I.extend(o,e)},regenerate:function(e){a.clearCanvas(),I(o.typed,s).hide(),"string"==typeof e&&(e=JSON.parse(e)),D(e,l,!0),o.output&&0<I(o.output,s).length&&I(o.output,s).val(JSON.stringify(c))},clearCanvas:function(){b()},getSignature:function(){return c},getSignatureString:function(){return JSON.stringify(c)},getSignatureImage:function(){var e,t=document.createElement("canvas"),i=null;return t.style.position="absolute",t.style.top="-999em",t.width=d.width,t.height=d.height,document.body.appendChild(t),!t.getContext&&FlashCanvas&&FlashCanvas.initElement(t),(i=t.getContext("2d")).fillStyle=o.bgColour,i.fillRect(0,0,d.width,d.height),i.lineWidth=o.penWidth,i.strokeStyle=o.penColour,D(c,i),e=t.toDataURL.apply(t,arguments),document.body.removeChild(t),t=null,e},validateForm:function(){return M()}})}I.fn.signaturePad=function(e){var t=null;return this.each(function(){I.data(this,"plugin-signaturePad")?(t=I.data(this,"plugin-signaturePad")).updateOptions(e):((t=new i(this,e)).init(),I.data(this,"plugin-signaturePad",t))}),t},I.fn.signaturePad.defaults={defaultAction:"typeIt",displayOnly:!1,drawOnly:!1,canvas:"canvas",sig:".sig",sigNav:".sigNav",bgColour:"#ffffff",penColour:"#145394",penWidth:2,penCap:"round",lineColour:"#ccc",lineWidth:2,lineMargin:5,lineTop:35,name:".name",typed:".typed",clear:".clearButton",typeIt:".typeIt a",drawIt:".drawIt a",typeItDesc:".typeItDesc",drawItDesc:".drawItDesc",output:".output",currentClass:"current",validateFields:!0,errorClass:"error",errorMessage:"Please enter your name",errorMessageDraw:"Please sign the document",onBeforeValidate:null,onFormError:null,onDraw:null,onDrawEnd:null}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e;function y(){return e.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function d(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(v(e,t))return;return 1}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){for(var i=[],r=e.length,n=0;n<r;++n)i.push(t(e[n],n));return i}function f(e,t){for(var i in t)v(t,i)&&(e[i]=t[i]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,i,r){return Qt(e,t,i,r,!0).utc()}function w(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function h(e){if(null==e._isValid){var t=w(e),i=r.call(t.parsedDateParts,function(e){return null!=e});i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function p(e){var t=_(NaN);return null!=e?f(w(t),e):w(t).userInvalidated=!0,t}var r=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,r=0;r<i;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},g=y.momentProperties=[],t=!1;function b(e,t){var i,r,n,a=g.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=w(t)),o(t._locale)||(e._locale=t._locale),0<a)for(i=0;i<a;i++)o(n=t[r=g[i]])||(e[r]=n);return e}function j(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,y.updateOffset(this),t=!1)}function k(e){return e instanceof j||null!=e&&null!=e._isAMomentObject}function Q(e){!1===y.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function i(a,o){var s=!0;return f(function(){if(null!=y.deprecationHandler&&y.deprecationHandler(null,a),s){for(var e,t,i=[],r=arguments.length,n=0;n<r;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])v(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];i.push(e)}Q(a+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return o.apply(this,arguments)},o)}var n={};function a(e,t){null!=y.deprecationHandler&&y.deprecationHandler(e,t),n[e]||(Q(t),n[e]=!0)}function x(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var i,r=f({},e);for(i in t)v(t,i)&&(d(e[i])&&d(t[i])?(r[i]={},f(r[i],e[i]),f(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in e)v(e,i)&&!v(t,i)&&d(e[i])&&(r[i]=f({},r[i]));return r}function S(e){null!=e&&this.set(e)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;var M=Object.keys||function(e){var t,i=[];for(t in e)v(e,t)&&i.push(t);return i};function D(e,t,i){var r=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,T=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},Y={};function N(e,t,i,r){var n="string"==typeof r?function(){return this[r]()}:r;e&&(Y[e]=n),t&&(Y[t[0]]=function(){return D(n.apply(this,arguments),t[1],t[2])}),i&&(Y[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function O(e,t){return e.isValid()?(t=L(t,e.localeData()),E[t]=E[t]||function(r){for(var e,n=r.match(I),t=0,a=n.length;t<a;t++)Y[n[t]]?n[t]=Y[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",i=0;i<a;i++)t+=x(n[i])?n[i].call(e,r):n[i];return t}}(t),E[t](e)):e.localeData().invalidDate()}function L(e,t){var i=5;function r(e){return t.longDateFormat(e)||e}for(T.lastIndex=0;0<=i&&T.test(e);)e=e.replace(T,r),T.lastIndex=0,--i;return e}var A={};function P(e,t){var i=e.toLowerCase();A[i]=A[i+"s"]=A[t]=e}function F(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function B(e){var t,i,r={};for(i in e)v(e,i)&&(t=F(i))&&(r[t]=e[i]);return r}var R={};function U(e,t){R[e]=t}function W(e){return e%4==0&&e%100!=0||e%400==0}function q(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function H(e){var t=0;return 0!=(e=+e)&&isFinite(e)?q(e):t}function G(t,i){return function(e){return null!=e?(V(this,t,e),y.updateOffset(this,i),this):z(this,t)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function V(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&W(e.year())&&1===e.month()&&29===e.date()?(i=H(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Se(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var Z=/\d/,$=/\d\d/,J=/\d{3}/,K=/\d{4}/,X=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,re=/\d{1,3}/,ne=/\d{1,4}/,ae=/[+-]?\d{1,6}/,oe=/\d+/,se=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ce(e,i,r){fe[e]=x(i)?i:function(e,t){return e&&r?r:i}}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={},_e={};function he(e,i){var t,r,n=i;for("string"==typeof e&&(e=[e]),u(i)&&(n=function(e,t){t[i]=H(e)}),r=e.length,t=0;t<r;t++)_e[e[t]]=n}function pe(e,n){he(e,function(e,t,i,r){i._w=i._w||{},n(e,i._w,i,r)})}var ye,ve=0,we=1,ge=2,be=3,je=4,ke=5,Qe=6,xe=7,Ce=8;function Se(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%(i=12)+i)%i;return e+=(t-i)/12,1==i?W(e)?29:28:31-i%7%2}ye=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),U("month",8),ce("M",ee),ce("MM",ee,$),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[we]=H(e)-1}),he(["MMM","MMMM"],function(e,t,i,r){null!=(r=i._locale.monthsParse(e,r,i._strict))?t[we]=r:w(i).invalidMonth=e});var Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=ue,Ee=ue;function Ye(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=H(t);else if(!u(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function Ne(e){return null!=e?(Ye(this,e),y.updateOffset(this,!0),this):z(this,"Month")}function Oe(){function e(e,t){return t.length-e.length}for(var t,i=[],r=[],n=[],a=0;a<12;a++)t=_([2e3,a]),i.push(this.monthsShort(t,"")),r.push(this.months(t,"")),n.push(this.months(t,"")),n.push(this.monthsShort(t,""));for(i.sort(e),r.sort(e),n.sort(e),a=0;a<12;a++)i[a]=me(i[a]),r[a]=me(r[a]);for(a=0;a<24;a++)n[a]=me(n[a]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Le(e){return W(e)?366:365}N("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),P("year","y"),U("year",1),ce("Y",se),ce("YY",ee,$),ce("YYYY",ne,K),ce("YYYYY",ae,X),ce("YYYYYY",ae,X),he(["YYYYY","YYYYYY"],ve),he("YYYY",function(e,t){t[ve]=2===e.length?y.parseTwoDigitYear(e):H(e)}),he("YY",function(e,t){t[ve]=y.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ve]=parseInt(e,10)}),y.parseTwoDigitYear=function(e){return H(e)+(68<H(e)?1900:2e3)};var Ae=G("FullYear",!0);function Pe(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,i){return(i=7+t-i)-(7+Pe(e,0,i).getUTCDay()-t)%7-1}function Be(e,t,i,r,n){var a;i=(t=1+7*(t-1)+(7+i-r)%7+Fe(e,r,n))<=0?Le(a=e-1)+t:t>Le(e)?(a=e+1,t-Le(e)):(a=e,t);return{year:a,dayOfYear:i}}function Re(e,t,i){var r,n,a=Fe(e.year(),t,i);return(a=Math.floor((e.dayOfYear()-a-1)/7)+1)<1?r=a+Ue(n=e.year()-1,t,i):a>Ue(e.year(),t,i)?(r=a-Ue(e.year(),t,i),n=e.year()+1):(n=e.year(),r=a),{week:r,year:n}}function Ue(e,t,i){var r=Fe(e,t,i);t=Fe(e+1,t,i);return(Le(e)-r+t)/7}function We(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),U("week",5),U("isoWeek",5),ce("w",ee),ce("ww",ee,$),ce("W",ee),ce("WW",ee,$),pe(["w","ww","W","WW"],function(e,t,i,r){t[r.substr(0,1)]=H(e)}),N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),ce("d",ee),ce("e",ee),ce("E",ee),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,i,r){null!=(r=i._locale.weekdaysParse(e,r,i._strict))?t.d=r:w(i).invalidWeekday=e}),pe(["d","e","E"],function(e,t,i,r){t[r]=H(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=ue,Ve=ue,Ze=ue;function $e(){function e(e,t){return t.length-e.length}for(var t,i,r,n=[],a=[],o=[],s=[],d=0;d<7;d++)r=_([2e3,1]).day(d),t=me(this.weekdaysMin(r,"")),i=me(this.weekdaysShort(r,"")),r=me(this.weekdays(r,"")),n.push(t),a.push(i),o.push(r),s.push(t),s.push(i),s.push(r);n.sort(e),a.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Je(){return this.hours()%12||12}function Ke(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xe(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Je),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+Je.apply(this)+D(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Je.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),P("hour","h"),U("hour",13),ce("a",Xe),ce("A",Xe),ce("H",ee),ce("h",ee),ce("k",ee),ce("HH",ee,$),ce("hh",ee,$),ce("kk",ee,$),ce("hmm",te),ce("hmmss",ie),ce("Hmm",te),ce("Hmmss",ie),he(["H","HH"],be),he(["k","kk"],function(e,t,i){e=H(e),t[be]=24===e?0:e}),he(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),he(["h","hh"],function(e,t,i){t[be]=H(e),w(i).bigHour=!0}),he("hmm",function(e,t,i){var r=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r)),w(i).bigHour=!0}),he("hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r,2)),t[ke]=H(e.substr(n)),w(i).bigHour=!0}),he("Hmm",function(e,t,i){var r=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r))}),he("Hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r,2)),t[ke]=H(e.substr(n))}),ue=G("Hours",!0);var et,tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Me,monthsShort:De,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ge,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function nt(e){return e&&e.toLowerCase().replace("_","-")}function at(e){var t;if(void 0===it[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=et._abbr,require("./locale/"+e),ot(t)}catch(t){it[e]=null}return it[e]}function ot(e,t){return e&&((t=o(t)?dt(e):st(e,t))?et=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function st(e,t){if(null===t)return delete it[e],null;var i,r=tt;if(t.abbr=e,null!=it[e])a("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])r=it[t.parentLocale]._config;else{if(null==(i=at(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;r=i._config}return it[e]=new S(C(r,t)),rt[e]&&rt[e].forEach(function(e){st(e.name,e.config)}),ot(e),it[e]}function dt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return et;if(!s(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,i,r,n,a=0;a<e.length;){for(t=(n=nt(e[a]).split("-")).length,i=(i=nt(e[a+1]))?i.split("-"):null;0<t;){if(r=at(n.slice(0,t).join("-")))return r;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}(n,i)>=t-1)break;t--}a++}return et}(e)}function lt(e){var t=e._a;return t&&-2===w(e).overflow&&(t=t[we]<0||11<t[we]?we:t[ge]<1||t[ge]>Se(t[ve],t[we])?ge:t[be]<0||24<t[be]||24===t[be]&&(0!==t[je]||0!==t[ke]||0!==t[Qe])?be:t[je]<0||59<t[je]?je:t[ke]<0||59<t[ke]?ke:t[Qe]<0||999<t[Qe]?Qe:-1,w(e)._overflowDayOfYear&&(t<ve||ge<t)&&(t=ge),w(e)._overflowWeeks&&-1===t&&(t=xe),w(e)._overflowWeekday&&-1===t&&(t=Ce),w(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,i,r,n,a,o,s=e._i,d=ut.exec(s)||ct.exec(s),l=(s=ft.length,_t.length);if(d){for(w(e).iso=!0,t=0,i=s;t<i;t++)if(ft[t][1].exec(d[1])){n=ft[t][0],r=!1!==ft[t][2];break}if(null==n)e._isValid=!1;else{if(d[3]){for(t=0,i=l;t<i;t++)if(_t[t][1].exec(d[3])){a=(d[2]||" ")+_t[t][0];break}if(null==a)return void(e._isValid=!1)}if(r||null==a){if(d[4]){if(!mt.exec(d[4]))return void(e._isValid=!1);o="Z"}e._f=n+(a||"")+(o||""),jt(e)}else e._isValid=!1}}else e._isValid=!1}function wt(e){var t,i,r,n,a,o,s,d,l,u,c,m=pt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));m?(a=m[4],o=m[3],s=m[2],d=m[5],l=m[6],u=m[7],a=[(c=a,(c=parseInt(c,10))<=49?2e3+c:c<=999?1900+c:c),De.indexOf(o),parseInt(s,10),parseInt(d,10),parseInt(l,10)],u&&a.push(parseInt(u,10)),r=t=a,n=e,(i=m[1])&&He.indexOf(i)!==new Date(r[0],r[1],r[2]).getDay()?(w(n).weekdayMismatch=!0,n._isValid=!1):(e._a=t,e._tzm=(i=m[8],r=m[9],n=m[10],i?yt[i]:r?0:((i=parseInt(n,10))-(r=i%100))/100*60+r),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),w(e).rfc2822=!0)):e._isValid=!1}function gt(e,t,i){return null!=e?e:null!=t?t:i}function bt(e){var t,i,r,n,a,o,s,d,l,u,c,m=[];if(!e._d){for(r=e,n=new Date(y.now()),i=r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()],e._w&&null==e._a[ge]&&null==e._a[we]&&(null!=(n=(r=e)._w).GG||null!=n.W||null!=n.E?(d=1,l=4,a=gt(n.GG,r._a[ve],Re(xt(),1,4).year),o=gt(n.W,1),((s=gt(n.E,1))<1||7<s)&&(u=!0)):(d=r._locale._week.dow,l=r._locale._week.doy,c=Re(xt(),d,l),a=gt(n.gg,r._a[ve],c.year),o=gt(n.w,c.week),null!=n.d?((s=n.d)<0||6<s)&&(u=!0):null!=n.e?(s=n.e+d,(n.e<0||6<n.e)&&(u=!0)):s=d),o<1||o>Ue(a,d,l)?w(r)._overflowWeeks=!0:null!=u?w(r)._overflowWeekday=!0:(c=Be(a,o,s,d,l),r._a[ve]=c.year,r._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(n=gt(e._a[ve],i[ve]),(e._dayOfYear>Le(n)||0===e._dayOfYear)&&(w(e)._overflowDayOfYear=!0),u=Pe(n,0,e._dayOfYear),e._a[we]=u.getUTCMonth(),e._a[ge]=u.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=m[t]=i[t];for(;t<7;t++)e._a[t]=m[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[je]&&0===e._a[ke]&&0===e._a[Qe]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Pe:function(e,t,i,r,n,a,o){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,r,n,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,r,n,a,o),s}).apply(null,m),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(w(e).weekdayMismatch=!0)}}function jt(e){if(e._f===y.ISO_8601)vt(e);else if(e._f===y.RFC_2822)wt(e);else{e._a=[],w(e).empty=!0;for(var t,i,r,n,a,o=""+e._i,s=o.length,d=0,l=L(e._f,e._locale).match(I)||[],u=l.length,c=0;c<u;c++)i=l[c],(t=(o.match((h=i,p=e,v(fe,h)?fe[h](p._strict,p._locale):new RegExp(me(h.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,n){return t||i||r||n})))))||[])[0])&&(0<(r=o.substr(0,o.indexOf(t))).length&&w(e).unusedInput.push(r),o=o.slice(o.indexOf(t)+t.length),d+=t.length),Y[i]?(t?w(e).empty=!1:w(e).unusedTokens.push(i),r=i,a=e,null!=(n=t)&&v(_e,r)&&_e[r](n,a._a,a,r)):e._strict&&!t&&w(e).unusedTokens.push(i);w(e).charsLeftOver=s-d,0<o.length&&w(e).unusedInput.push(o),e._a[be]<=12&&!0===w(e).bigHour&&0<e._a[be]&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[be]=(m=e._locale,f=e._a[be],null==(_=e._meridiem)?f:null!=m.meridiemHour?m.meridiemHour(f,_):null!=m.isPM?((m=m.isPM(_))&&f<12&&(f+=12),f=m||12!==f?f:0):f),null!==(s=w(e).era)&&(e._a[ve]=e._locale.erasConvertYear(s,e._a[ve])),bt(e),lt(e)}var m,f,_,h,p}function kt(e){var t,i,r,n=e._i,a=e._f;return e._locale=e._locale||dt(e._l),null===n||void 0===a&&""===n?p({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),k(n)?new j(lt(n)):(c(n)?e._d=n:s(a)?function(e){var t,i,r,n,a,o,s=!1,d=e._f.length;if(0===d)return w(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<d;n++)a=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],jt(t),h(t)&&(o=!0),a=(a+=w(t).charsLeftOver)+10*w(t).unusedTokens.length,w(t).score=a,s?a<r&&(r=a,i=t):(null==r||a<r||o)&&(r=a,i=t,o&&(s=!0));f(e,i||t)}(e):a?jt(e):o(a=(n=e)._i)?n._d=new Date(y.now()):c(a)?n._d=new Date(a.valueOf()):"string"==typeof a?(i=n,null!==(t=ht.exec(i._i))?i._d=new Date(+t[1]):(vt(i),!1===i._isValid&&(delete i._isValid,wt(i),!1===i._isValid&&(delete i._isValid,i._strict?i._isValid=!1:y.createFromInputFallback(i))))):s(a)?(n._a=m(a.slice(0),function(e){return parseInt(e,10)}),bt(n)):d(a)?(t=n)._d||(r=void 0===(i=B(t._i)).day?i.date:i.day,t._a=m([i.year,i.month,r,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),bt(t)):u(a)?n._d=new Date(a):y.createFromInputFallback(n),h(e)||(e._d=null),e))}function Qt(e,t,i,r,n){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(d(e)&&l(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=i,a._i=e,a._f=t,a._strict=r,(n=new j(lt(kt(n=a))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function xt(e,t,i,r){return Qt(e,t,i,r,!1)}function Ct(e,t){var i,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return xt();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}y.createFromInputFallback=i("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),y.ISO_8601=function(){},y.RFC_2822=function(){},te=i("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),ie=i("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p()});var St=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Mt(e){var t=(e=B(e)).year||0,i=e.quarter||0,r=e.month||0,n=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,s=e.minute||0,d=e.second||0,l=e.millisecond||0;this._isValid=function(e){var t,i,r=!1,n=St.length;for(t in e)if(v(e,t)&&(-1===ye.call(St,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<n;++i)if(e[St[i]]){if(r)return!1;parseFloat(e[St[i]])!==H(e[St[i]])&&(r=!0)}return!0}(e),this._milliseconds=+l+1e3*d+6e4*s+1e3*o*60*60,this._days=+a+7*n,this._months=+r+3*i+12*t,this._data={},this._locale=dt(),this._bubble()}function Dt(e){return e instanceof Mt}function It(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Tt(e,i){N(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+D(~~(e/60),2)+i+D(~~e%60,2)})}Tt("Z",":"),Tt("ZZ",""),ce("Z",le),ce("ZZ",le),he(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Yt(le,e)});var Et=/([\+\-]|\d\d)/gi;function Yt(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Et)||["-",0,0])[1]+H(e[2]))?0:"+"===e[0]?t:-t}function Nt(e,t){var i;return t._isUTC?(t=t.clone(),i=(k(e)||c(e)?e:xt(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),y.updateOffset(t,!1),t):xt(e).local()}function Ot(e){return-Math.round(e._d.getTimezoneOffset())}function Lt(){return!!this.isValid()&&this._isUTC&&0===this._offset}y.updateOffset=function(){};var At=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ft(e,t){var i,r,n,a,o=e,s=null;return Dt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=At.exec(e))?(i="-"===s[1]?-1:1,o={y:0,d:H(s[ge])*i,h:H(s[be])*i,m:H(s[je])*i,s:H(s[ke])*i,ms:H(It(1e3*s[Qe]))*i}):(s=Pt.exec(e))?(i="-"===s[1]?-1:1,o={y:Bt(s[2],i),M:Bt(s[3],i),w:Bt(s[4],i),d:Bt(s[5],i),h:Bt(s[6],i),m:Bt(s[7],i),s:Bt(s[8],i)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=xt(o.from),n=xt(o.to),t=r.isValid()&&n.isValid()?(n=Nt(n,r),r.isBefore(n)?a=Rt(r,n):((a=Rt(n,r)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(o={}).ms=t.milliseconds,o.M=t.months),s=new Mt(o),Dt(e)&&v(e,"_locale")&&(s._locale=e._locale),Dt(e)&&v(e,"_isValid")&&(s._isValid=e._isValid),s}function Bt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Rt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Ut(r,n){return function(e,t){var i;return null===t||isNaN(+t)||(a(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),Wt(this,Ft(e,t),r),this}}function Wt(e,t,i,r){var n=t._milliseconds,a=It(t._days);t=It(t._months);e.isValid()&&(r=null==r||r,t&&Ye(e,z(e,"Month")+t*i),a&&V(e,"Date",z(e,"Date")+a*i),n&&e._d.setTime(e._d.valueOf()+n*i),r&&y.updateOffset(e,a||t))}function qt(e){return"string"==typeof e||e instanceof String}function Ht(e,t){if(e.date()<t.date())return-Ht(t,e);var i=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(i,"months");return-(i+(t=t-r<0?(t-r)/(r-e.clone().add(i-1,"months")):(t-r)/(e.clone().add(1+i,"months")-r)))||0}function Gt(e){return void 0===e?this._locale._abbr:(null!=(e=dt(e))&&(this._locale=e),this)}function zt(){return this._locale}Ft.fn=Mt.prototype,Ft.invalid=function(){return Ft(NaN)},Me=Ut(1,"add"),qe=Ut(-1,"subtract"),y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Ge=i("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});var Vt=126227808e5;function Zt(e,t){return(e%t+t)%t}function $t(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-Vt:new Date(e,t,i).valueOf()}function Jt(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-Vt:Date.UTC(e,t,i)}function Kt(e,t){return t.erasAbbrRegex(e)}function Xt(){for(var e=[],t=[],i=[],r=[],n=this.eras(),a=0,o=n.length;a<o;++a)t.push(me(n[a].name)),e.push(me(n[a].abbr)),i.push(me(n[a].narrow)),r.push(me(n[a].name)),r.push(me(n[a].abbr)),r.push(me(n[a].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ei(e,t){N(0,[e,e.length],0,t)}function ti(e,t,i,r,n){var a;return null==e?Re(this,r,n).year:(a=Ue(e,r,n),function(e,t,i,r,n){return t=Pe((e=Be(e,t,i,r,n)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=a<t?a:t,i,r,n))}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),ce("N",Kt),ce("NN",Kt),ce("NNN",Kt),ce("NNNN",function(e,t){return t.erasNameRegex(e)}),ce("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),he(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,r){(r=i._locale.erasParse(e,r,i._strict))?w(i).era=r:w(i).invalidEra=e}),ce("y",oe),ce("yy",oe),ce("yyy",oe),ce("yyyy",oe),ce("yo",function(e,t){return t._eraYearOrdinalRegex||oe}),he(["y","yy","yyy","yyyy"],ve),he(["yo"],function(e,t,i,r){var n;i._locale._eraYearOrdinalRegex&&(n=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[ve]=i._locale.eraYearOrdinalParse(e,n):t[ve]=parseInt(e,10)}),N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ei("gggg","weekYear"),ei("ggggg","weekYear"),ei("GGGG","isoWeekYear"),ei("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),ce("G",se),ce("g",se),ce("GG",ee,$),ce("gg",ee,$),ce("GGGG",ne,K),ce("gggg",ne,K),ce("GGGGG",ae,X),ce("ggggg",ae,X),pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,r){t[r.substr(0,2)]=H(e)}),pe(["gg","GG"],function(e,t,i,r){t[r]=y.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),P("quarter","Q"),U("quarter",7),ce("Q",Z),he("Q",function(e,t){t[we]=3*(H(e)-1)}),N("D",["DD",2],"Do","date"),P("date","D"),U("date",9),ce("D",ee),ce("DD",ee,$),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ge),he("Do",function(e,t){t[ge]=H(e.match(ee)[0])}),ne=G("Date",!0),N("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),U("dayOfYear",4),ce("DDD",re),ce("DDDD",J),he(["DDD","DDDD"],function(e,t,i){i._dayOfYear=H(e)}),N("m",["mm",2],0,"minute"),P("minute","m"),U("minute",14),ce("m",ee),ce("mm",ee,$),he(["m","mm"],je);var ii;K=G("Minutes",!1),N("s",["ss",2],0,"second"),P("second","s"),U("second",15),ce("s",ee),ce("ss",ee,$),he(["s","ss"],ke),ae=G("Seconds",!1);for(N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),U("millisecond",16),ce("S",re,Z),ce("SS",re,$),ce("SSS",re,J),ii="SSSS";ii.length<=9;ii+="S")ce(ii,oe);function ri(e,t){t[Qe]=H(1e3*("0."+e))}for(ii="S";ii.length<=9;ii+="S")he(ii,ri);function ni(e){return e}function ai(e,t,i,r){var n=dt();r=_().set(r,t);return n[i](r,e)}function oi(e,t,i){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return ai(e,t,i,"month");for(var r=[],n=0;n<12;n++)r[n]=ai(e,n,i,"month");return r}function si(e,t,i,r){"boolean"==typeof e?u(t)&&(i=t,t=void 0):(t=e,e=!1,u(i=t)&&(i=t,t=void 0)),t=t||"";var n,a=dt(),o=e?a._week.dow:0,s=[];if(null!=i)return ai(t,(i+o)%7,r,"day");for(n=0;n<7;n++)s[n]=ai(t,(n+o)%7,r,"day");return s}X=G("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName"),(Z=j.prototype).add=Me,Z.calendar=function(e,t){var i,r,n,a;1===arguments.length&&(arguments[0]?k(i=arguments[0])||c(i)||qt(i)||u(i)||(n=s(r=i),a=!1,n&&(a=0===r.filter(function(e){return!u(e)&&qt(r)}).length),n&&a)||function(e){var t,i=d(e)&&!l(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=n.length;for(t=0;t<a;t+=1)r=r||v(e,n[t]);return i&&r}(i)||null==i?(e=arguments[0],t=void 0):function(e){for(var t=d(e)&&!l(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<r.length;n+=1)i=i||v(e,r[n]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var o=Nt(e=e||xt(),this).startOf("day");o=y.calendarFormat(this,o)||"sameElse",t=t&&(x(t[o])?t[o].call(this,e):t[o]);return this.format(t||this.localeData().calendar(o,this,xt(e)))},Z.clone=function(){return new j(this)},Z.diff=function(e,t,i){var r,n,a;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(n=6e4*(r.utcOffset()-this.utcOffset()),t=F(t)){case"year":a=Ht(this,r)/12;break;case"month":a=Ht(this,r);break;case"quarter":a=Ht(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-n)/864e5;break;case"week":a=(this-r-n)/6048e5;break;default:a=this-r}return i?a:q(a)},Z.endOf=function(e){var t,i;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?Jt:$t,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Zt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Zt(t,1e3)-1}return this._d.setTime(t),y.updateOffset(this,!0),this},Z.format=function(e){return e=O(this,e=e||(this.isUtc()?y.defaultFormatUtc:y.defaultFormat)),this.localeData().postformat(e)},Z.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||xt(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Z.fromNow=function(e){return this.from(xt(),e)},Z.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||xt(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Z.toNow=function(e){return this.to(xt(),e)},Z.get=function(e){return x(this[e=F(e)])?this[e]():this},Z.invalidAt=function(){return w(this).overflow},Z.isAfter=function(e,t){return e=k(e)?e:xt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},Z.isBefore=function(e,t){return e=k(e)?e:xt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},Z.isBetween=function(e,t,i,r){return e=k(e)?e:xt(e),t=k(t)?t:xt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))},Z.isSame=function(e,t){e=k(e)?e:xt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},Z.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Z.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Z.isValid=function(){return h(this)},Z.lang=Ge,Z.locale=Gt,Z.localeData=zt,Z.max=ie,Z.min=te,Z.parsingFlags=function(){return f({},w(this))},Z.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)v(e,t)&&i.push({unit:t,priority:R[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=B(e)),r=i.length,n=0;n<r;n++)this[i[n].unit](e[i[n].unit]);else if(x(this[e=F(e)]))return this[e](t);return this},Z.startOf=function(e){var t,i;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?Jt:$t,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Zt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Zt(t,1e3)}return this._d.setTime(t),y.updateOffset(this,!0),this},Z.subtract=qe,Z.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Z.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Z.toDate=function(){return new Date(this.valueOf())},Z.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?O(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",O(t,"Z")):O(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Z.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",i="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Z[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Z.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Z.eraName=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},Z.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},Z.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},Z.eraYear=function(){for(var e,t,i=this.localeData().eras(),r=0,n=i.length;r<n;++r)if(e=i[r].since<=i[r].until?1:-1,t=this.clone().startOf("day").valueOf(),i[r].since<=t&&t<=i[r].until||i[r].until<=t&&t<=i[r].since)return(this.year()-y(i[r].since).year())*e+i[r].offset;return this.year()},Z.year=Ae,Z.isLeapYear=function(){return W(this.year())},Z.weekYear=function(e){return ti.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Z.isoWeekYear=function(e){return ti.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Z.quarter=Z.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Z.month=Ne,Z.daysInMonth=function(){return Se(this.year(),this.month())},Z.week=Z.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Z.isoWeek=Z.isoWeeks=function(e){var t=Re(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Z.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},Z.weeksInWeekYear=function(){var e=this.localeData()._week;return Ue(this.weekYear(),e.dow,e.doy)},Z.isoWeeksInYear=function(){return Ue(this.year(),1,4)},Z.isoWeeksInISOWeekYear=function(){return Ue(this.isoWeekYear(),1,4)},Z.date=ne,Z.day=Z.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},Z.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Z.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN;var t,i},Z.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Z.hour=Z.hours=ue,Z.minute=Z.minutes=K,Z.second=Z.seconds=ae,Z.millisecond=Z.milliseconds=X,Z.utcOffset=function(e,t,i){var r,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?n:Ot(this);if("string"==typeof e){if(null===(e=Yt(le,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=Ot(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==e&&(!t||this._changeInProgress?Wt(this,Ft(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this},Z.utc=function(e){return this.utcOffset(0,e)},Z.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ot(this),"m")),this},Z.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Yt(de,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},Z.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Z.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Z.isLocal=function(){return!!this.isValid()&&!this._isUTC},Z.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Z.isUtc=Lt,Z.isUTC=Lt,Z.zoneAbbr=function(){return this._isUTC?"UTC":""},Z.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Z.dates=i("dates accessor is deprecated. Use date instead.",ne),Z.months=i("months accessor is deprecated. Use month instead",Ne),Z.years=i("years accessor is deprecated. Use year instead",Ae),Z.zone=i("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),Z.isDSTShifted=i("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=kt(t))._a?(e=(t._isUTC?_:xt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,o=0;o<r;o++)H(e[o])!==H(t[o])&&a++;return a+n}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted}),($=S.prototype).calendar=function(e,t,i){return x(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},$.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(I).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},$.invalidDate=function(){return this._invalidDate},$.ordinal=function(e){return this._ordinal.replace("%d",e)},$.preparse=ni,$.postformat=ni,$.relativeTime=function(e,t,i,r){var n=this._relativeTime[i];return x(n)?n(e,t,i,r):n.replace(/%d/i,e)},$.pastFuture=function(e,t){return x(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},$.set=function(e){var t,i;for(i in e)v(e,i)&&(x(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},$.eras=function(e,t){for(var i,r=this._eras||dt("en")._eras,n=0,a=r.length;n<a;++n){switch(typeof r[n].since){case"string":i=y(r[n].since).startOf("day"),r[n].since=i.valueOf()}switch(typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=y(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf()}}return r},$.erasParse=function(e,t,i){var r,n,a,o,s,d=this.eras();for(e=e.toUpperCase(),r=0,n=d.length;r<n;++r)if(a=d[r].name.toUpperCase(),o=d[r].abbr.toUpperCase(),s=d[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(o===e)return d[r];break;case"NNNN":if(a===e)return d[r];break;case"NNNNN":if(s===e)return d[r]}else if(0<=[a,o,s].indexOf(e))return d[r]},$.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?y(e.since).year():y(e.since).year()+(t-e.offset)*i},$.erasAbbrRegex=function(e){return v(this,"_erasAbbrRegex")||Xt.call(this),e?this._erasAbbrRegex:this._erasRegex},$.erasNameRegex=function(e){return v(this,"_erasNameRegex")||Xt.call(this),e?this._erasNameRegex:this._erasRegex},$.erasNarrowRegex=function(e){return v(this,"_erasNarrowRegex")||Xt.call(this),e?this._erasNarrowRegex:this._erasRegex},$.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},$.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Ie.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},$.monthsParse=function(e,t,i){var r,n;if(this._monthsParseExact)return function(e,t,i){var r,n,a;e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=_([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(n=ye.call(this._shortMonthsParse,e))?n:null:-1!==(n=ye.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=ye.call(this._shortMonthsParse,e))||-1!==(n=ye.call(this._longMonthsParse,e))?n:null:-1!==(n=ye.call(this._longMonthsParse,e))||-1!==(n=ye.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=_([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(i&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!i&&this._monthsParse[r].test(e))return r}},$.monthsRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Oe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},$.monthsShortRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Oe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},$.week=function(e){return Re(e,this._week.dow,this._week.doy).week},$.firstDayOfYear=function(){return this._week.doy},$.firstDayOfWeek=function(){return this._week.dow},$.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?We(t,this._week.dow):e?t[e.day()]:t},$.weekdaysMin=function(e){return!0===e?We(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},$.weekdaysShort=function(e){return!0===e?We(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},$.weekdaysParse=function(e,t,i){var r,n;if(this._weekdaysParseExact)return function(e,t,i){var r,n,a;e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(n=ye.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=ye.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=ye.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=ye.call(this._weekdaysParse,e))||-1!==(n=ye.call(this._shortWeekdaysParse,e))||-1!==(n=ye.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=ye.call(this._shortWeekdaysParse,e))||-1!==(n=ye.call(this._weekdaysParse,e))||-1!==(n=ye.call(this._minWeekdaysParse,e))?n:null:-1!==(n=ye.call(this._minWeekdaysParse,e))||-1!==(n=ye.call(this._weekdaysParse,e))||-1!==(n=ye.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=_([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(i&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(i&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!i&&this._weekdaysParse[r].test(e))return r}},$.weekdaysRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},$.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},$.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},$.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},$.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===H(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),y.lang=i("moment.lang is deprecated. Use moment.locale instead.",ot),y.langData=i("moment.langData is deprecated. Use moment.localeData instead.",dt);var di=Math.abs;function li(e,t,i,r){return t=Ft(t,i),e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function ui(e){return e<0?Math.floor(e):Math.ceil(e)}function ci(e){return 4800*e/146097}function mi(e){return 146097*e/4800}function fi(e){return function(){return this.as(e)}}function _i(e){return function(){return this.isValid()?this._data[e]:NaN}}re=fi("ms"),J=fi("s"),Me=fi("m"),ie=fi("h"),te=fi("d"),qe=fi("w"),ue=fi("M"),K=fi("Q"),ae=fi("y");X=_i("milliseconds"),ne=_i("seconds"),Ae=_i("minutes"),$=_i("hours");var hi=_i("days"),pi=_i("months"),yi=_i("years"),vi=Math.round,wi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var gi=Math.abs;function bi(e){return(0<e)-(e<0)||+e}function ji(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,r,n,a,o,s=gi(this._milliseconds)/1e3,d=gi(this._days),l=gi(this._months),u=this.asSeconds();return u?(t=q((e=q(s/60))/60),s%=60,e%=60,i=q(l/12),l%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",n=bi(this._months)!==bi(u)?"-":"",a=bi(this._days)!==bi(u)?"-":"",o=bi(this._milliseconds)!==bi(u)?"-":"",(u<0?"-":"")+"P"+(i?n+i+"Y":"")+(l?n+l+"M":"")+(d?a+d+"D":"")+(t||e||s?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(s?o+r+"S":"")):"P0D"}var ki=Mt.prototype;return ki.isValid=function(){return this._isValid},ki.abs=function(){var e=this._data;return this._milliseconds=di(this._milliseconds),this._days=di(this._days),this._months=di(this._months),e.milliseconds=di(e.milliseconds),e.seconds=di(e.seconds),e.minutes=di(e.minutes),e.hours=di(e.hours),e.months=di(e.months),e.years=di(e.years),this},ki.add=function(e,t){return li(this,e,t,1)},ki.subtract=function(e,t){return li(this,e,t,-1)},ki.as=function(e){if(!this.isValid())return NaN;var t,i,r=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,i=this._months+ci(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(mi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},ki.asMilliseconds=re,ki.asSeconds=J,ki.asMinutes=Me,ki.asHours=ie,ki.asDays=te,ki.asWeeks=qe,ki.asMonths=ue,ki.asQuarters=K,ki.asYears=ae,ki.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*H(this._months/12):NaN},ki._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,r=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*ui(mi(i)+t),i=t=0),r.milliseconds=e%1e3,e=q(e/1e3),r.seconds=e%60,e=q(e/60),r.minutes=e%60,e=q(e/60),r.hours=e%24,i+=e=q(ci(t+=q(e/24))),t-=ui(mi(e)),e=q(i/12),i%=12,r.days=t,r.months=i,r.years=e,this},ki.clone=function(){return Ft(this)},ki.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},ki.milliseconds=X,ki.seconds=ne,ki.minutes=Ae,ki.hours=$,ki.days=hi,ki.weeks=function(){return q(this.days()/7)},ki.months=pi,ki.years=yi,ki.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,r,n,a,o,s,d,l,u,c,m,f=!1,_=wi;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(f=e),"object"==typeof t&&(_=Object.assign({},wi,t),null!=t.s&&null==t.ss&&(_.ss=t.s-1)),e=this.localeData(),r=!f,n=_,a=e,o=Ft(i=this).abs(),s=vi(o.as("s")),d=vi(o.as("m")),l=vi(o.as("h")),u=vi(o.as("d")),c=vi(o.as("M")),m=vi(o.as("w")),o=vi(o.as("y")),s=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||d<=1&&["m"]||d<n.m&&["mm",d]||l<=1&&["h"]||l<n.h&&["hh",l]||u<=1&&["d"]||u<n.d&&["dd",u],(s=(s=null!=n.w?s||m<=1&&["w"]||m<n.w&&["ww",m]:s)||c<=1&&["M"]||c<n.M&&["MM",c]||o<=1&&["y"]||["yy",o])[2]=r,s[3]=0<+i,s[4]=a,t=function(e,t,i,r,n){return n.relativeTime(t||1,!!i,e,r)}.apply(null,s),f&&(t=e.pastFuture(+this,t)),e.postformat(t)},ki.toISOString=ji,ki.toString=ji,ki.toJSON=ji,ki.locale=Gt,ki.localeData=zt,ki.toIsoString=i("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ji),ki.lang=Ge,N("X",0,0,"unix"),N("x",0,0,"valueOf"),ce("x",se),ce("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),he("x",function(e,t,i){i._d=new Date(H(e))}),y.version="2.29.2",e=xt,y.fn=Z,y.min=function(){return Ct("isBefore",[].slice.call(arguments,0))},y.max=function(){return Ct("isAfter",[].slice.call(arguments,0))},y.now=function(){return Date.now?Date.now():+new Date},y.utc=_,y.unix=function(e){return xt(1e3*e)},y.months=function(e,t){return oi(e,t,"months")},y.isDate=c,y.locale=ot,y.invalid=p,y.duration=Ft,y.isMoment=k,y.weekdays=function(e,t,i){return si(e,t,i,"weekdays")},y.parseZone=function(){return xt.apply(null,arguments).parseZone()},y.localeData=dt,y.isDuration=Dt,y.monthsShort=function(e,t){return oi(e,t,"monthsShort")},y.weekdaysMin=function(e,t,i){return si(e,t,i,"weekdaysMin")},y.defineLocale=st,y.updateLocale=function(e,t){var i,r;return null!=t?(r=tt,null!=it[e]&&null!=it[e].parentLocale?it[e].set(C(it[e]._config,t)):(t=C(r=null!=(i=at(e))?i._config:r,t),null==i&&(t.abbr=e),(r=new S(t)).parentLocale=it[e],it[e]=r),ot(e)):null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===ot()&&ot(e)):null!=it[e]&&delete it[e]),it[e]},y.locales=function(){return M(it)},y.weekdaysShort=function(e,t,i){return si(e,t,i,"weekdaysShort")},y.normalizeUnits=F,y.relativeTimeRounding=function(e){return void 0===e?vi:"function"==typeof e&&(vi=e,!0)},y.relativeTimeThreshold=function(e,t){return void 0!==wi[e]&&(void 0===t?wi[e]:(wi[e]=t,"s"===e&&(wi.ss=t-1),!0))},y.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},y.prototype=Z,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},y});
1
+ var fm_rated=!1;function form_load_actions(){jQuery(".wd-datepicker").each(function(){jQuery(this).datepicker(),jQuery(this).datepicker("option","dateFormat",jQuery(this).data("format"))});var e=jQuery(".fm-form").find(".fm-message");0!==e.length&&0==e.closest(".fm-popover-content").length&&0==e.closest(".fm-scrollbox-form").length&&0==e.closest(".fm-topbar").length&&(jQuery(window).scrollTop(jQuery(".fm-message").offset().top-100),-1<navigator.userAgent.toLowerCase().indexOf("safari/")&&(document.scrollingElement.scrollTop=jQuery(".fm-message").offset().top-100));if(0!==jQuery(".fm-form").find(".message_captcha").length){var t=jQuery(".fm-form").attr("name").split("form")[1];if(0!==jQuery("#form"+t+" .message_captcha").length){var i=jQuery(jQuery("#form"+t+" .message_captcha")).offset().top;jQuery(".fm-form").find(".message_captcha").parents(".wdform-field").find(".wdform-label").addClass("error_label"),jQuery("html").animate({scrollTop:i-150},500),document.scrollingElement.scrollTop=i-150}}}function set_total_value(form_id){var getDataHideCurreny=jQuery(".paypal_total"+form_id).parent().parent().attr("data-hide-currency");if("yes"==getDataHideCurreny)var toggle_currency="wd-hidden",FormCurrency="";else var toggle_currency="wd-inline-block",FormCurrency=window["FormCurrency_"+form_id]+" ";if(0!=jQuery(".paypal_total"+form_id).length){var div_paypal_show=jQuery(".paypal_total"+form_id),div_paypal_products=jQuery(".paypal_products"+form_id),div_paypal_tax=jQuery(".paypal_tax"+form_id),input_paypal_total=jQuery(".input_paypal_total"+form_id),total=0,total_shipping=0;div_paypal_products.html(""),div_paypal_tax.html(""),n=parseInt(jQuery("#counter"+form_id).val()),jQuery("#form"+form_id+" div[type='type_paypal_checkbox'], #form"+form_id+" div[type='type_paypal_radio']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_checkbox_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,jQuery(this).find("input:checked").each(function(){label=jQuery("label[for='"+jQuery(this).attr("id")+"']").html(),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_checkbox_qty:""),total+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_checkbox_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")})}}),jQuery("#form"+form_id+" div[type='type_paypal_shipping']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_shipping_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,jQuery(this).find("input:checked").each(function(){label=jQuery("label[for='"+jQuery(this).attr("id")+"']").html(),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+jQuery(this).val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_shipping_qty:""),total_shipping+=jQuery(this).val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_shipping_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")})}}),jQuery("#form"+form_id+" div[type='type_paypal_select']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");paypal_select_qty=jQuery("#wdform_"+t+"_element_quantity"+form_id).val()?jQuery("#wdform_"+t+"_element_quantity"+form_id).val():0,""!=jQuery(this).find("select").val()&&(label=jQuery(this).find("select option:selected").html(),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+jQuery(this).find("select").val()+(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?" x "+paypal_select_qty:""),total+=jQuery(this).find("select").val()*parseInt(0!=jQuery("#wdform_"+t+"_element_quantity"+form_id).length?paypal_select_qty:1),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),cents="00",dollars="0",""!=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element_dollars"+form_id).val()),""!=jQuery("#wdform_"+t+"_element_cents"+form_id).val()&&(1==jQuery("#wdform_"+t+"_element_cents"+form_id).val().length?cents="0"+jQuery("#wdform_"+t+"_element_cents"+form_id).val():cents=jQuery("#wdform_"+t+"_element_cents"+form_id).val(),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+dollars+"."+cents,total+=parseFloat(dollars+"."+cents),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>"))}}),jQuery("#form"+form_id+" div[type='type_paypal_price_new']").each(function(){var e=jQuery(this).parent();if("none"!=e.css("display")){var t=e.attr("wdid");label=jQuery(this).find(".wdform-label").html(),dollars="0",""!=jQuery("#wdform_"+t+"_element"+form_id).val()&&(dollars=jQuery("#wdform_"+t+"_element"+form_id).val()),span_value='<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+dollars,total+=parseFloat(dollars),div_paypal_products.html(div_paypal_products.html()+"<div>"+label+" - "+span_value+"</div>")}});var FormPaypalTax=eval("FormPaypalTax_"+form_id);0!=FormPaypalTax&&div_paypal_tax.html("Tax: "+FormCurrency+(total*FormPaypalTax/100).toFixed(2)),jQuery(".div_total"+form_id).html('<span class="'+toggle_currency+'">'+FormCurrency+"</span>"+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2)),input_paypal_total.val(FormCurrency+(parseFloat((total*(1+FormPaypalTax/100)).toFixed(2))+total_shipping).toFixed(2))}}function check_isnum_or_minus(e){var t=e.which||e.keyCode;return!(45!=t&&31<t&&(t<48||57<t))}function sum_grading_values(e,t){for(var i=0,r=0;r<100;r++)document.getElementById(e+"_element"+t+"_"+r)&&document.getElementById(e+"_element"+t+"_"+r).value&&(i+=parseInt(document.getElementById(e+"_element"+t+"_"+r).value)),document.getElementById(e+"_total_element"+t)&&(i>document.getElementById(e+"_total_element"+t).innerHTML?document.getElementById(e+"_text_element"+t).innerHTML=" "+fm_objectL10n.fm_grading_text+" "+document.getElementById(e+"_total_element"+t).innerHTML:document.getElementById(e+"_text_element"+t).innerHTML="");document.getElementById(e+"_sum_element"+t)&&(document.getElementById(e+"_sum_element"+t).innerHTML=i)}function change_src(e,t,i,r){if(0==fm_rated)for(var n=0;n<=e;n++)document.getElementById(t+"_star_"+n+"_"+i).src=fm_objectL10n.plugin_url+"/images/star_"+r+".png"}function reset_src(e,t,i){if(0==fm_rated)for(var r=0;r<=e;r++)document.getElementById(t+"_star_"+r+"_"+i).src=fm_objectL10n.plugin_url+"/images/star.png"}function select_star_rating(e,t,i,r,n){fm_rated=!0;for(var a=0;a<=e;a++)document.getElementById(t+"_star_"+a+"_"+i).src=fm_objectL10n.plugin_url+"/images/star_"+r+".png";for(var o=e+1;o<=n-1;o++)document.getElementById(t+"_star_"+o+"_"+i).src=fm_objectL10n.plugin_url+"/images/star.png";document.getElementById(t+"_selected_star_amount"+i).value=e+1,jQuery("#"+t+"_selected_star_amount"+i).trigger("change")}function show_other_input(e,t){var i=jQuery(".form"+t+" [id^="+e+"_element"+t+'][other="1"]').parent(),r=document.createElement("br");r.setAttribute("id",e+"_other_br"+t);var n=e.split("_")[1],a=document.createElement("input");a.setAttribute("id",e+"_other_input"+t),a.setAttribute("name",e+"_other_input"+t),a.setAttribute("type","text"),a.setAttribute("class","other_input"),a.setAttribute("onchange","other_input_change(this, '"+t+"', '"+n+"')"),i.children("input").length<2&&(i.append(r),i.append(a))}function other_input_change(e,t,i){""==jQuery(e).val()?wd_is_filled(t,i):(jQuery("#form"+t+" #wd_required_"+i).remove(),jQuery("#form"+t+" div[wdid='"+i+"'] .wdform-label-section:first .error_label").removeClass("error_label"))}function check_isnum(e){var t=e.which||e.keyCode;return-1!=jQuery.inArray(t,[46,8,9,27,13,190])||!0===e.ctrlKey||35<=t&&t<39||45==t||!(31<t&&(t<48||57<t))}function captcha_refresh(e,t){srcArr=document.getElementById(e+t).src.split("&r="),document.getElementById(e+t).src=srcArr[0]+"&r="+Math.floor(100*Math.random()),document.getElementById(e+"_input"+t).value="",document.getElementById(e+t).style.display="inline-block"}function set_checked(e,t,i){return checking=document.getElementById(e+"_element"+i+t),!(checking.getAttribute("other")&&1==checking.getAttribute("other")&&!checking.checked)||(document.getElementById(e+"_other_input"+i)&&(document.getElementById(e+"_other_input"+i).parentNode.removeChild(document.getElementById(e+"_other_br"+i)),document.getElementById(e+"_other_input"+i).parentNode.removeChild(document.getElementById(e+"_other_input"+i))),!1)}function set_default(e,t,i){document.getElementById(e+"_other_input"+i)&&(document.getElementById(e+"_other_input"+i).parentNode.removeChild(document.getElementById(e+"_other_br"+i)),document.getElementById(e+"_other_input"+i).parentNode.removeChild(document.getElementById(e+"_other_input"+i)))}function add_0(e){1==jQuery(e).val().length&&jQuery(e).val("0"+jQuery(e).val())}function wd_validate(e,t){if(!jQuery(e).is("input"))return!0;jQuery(e).attr("id");var i,r,n,a=jQuery(e).parent().find(".hidden_date"),o=jQuery(e).data("valid-type"),s=jQuery(e).data("form-id"),d=jQuery(e).data("wdid"),l=a.data("format").toUpperCase(),u=jQuery(e).val(),c=(l.match(/Y/g)||[]).length;2===c?l=l.replace("YY","YYYY"):1===c&&(l=l.replace("Y","YY"));var m=u;"function"==typeof moment&&(m=moment(u,l)._i);var f=a.data("min"),_=a.data("max");f=min_max_date_with_operator(f,l),_=min_max_date_with_operator(_,l);var h=!1;"OO"===l?"function"!=typeof moment?h=!0:f<=m&&m<=_&&(h=!0):"function"!=typeof moment?h=!0:!moment(f,l).isSameOrBefore(moment(u,l))&&""!=f||!moment(u,l).isSameOrBefore(moment(_,l))&&""!=_||(h=!0);var p=parseInt(jQuery(e).attr("from")),y=parseInt(jQuery(e).attr("to"));if(void 0===t)t=jQuery(e).data("addiotional-fields");var v="#form"+s+" div[wdid='"+d+"']",w=jQuery(v+" .wdform-label-section:first .wdform-label"),g=jQuery(v+" .wdform-element-section");switch(o){case"hour24":i=fm_objectL10n.time_validation,n=/^(0?[0-1]?[0-9]|2[0-3])?$/;break;case"hour12":i=fm_objectL10n.time_validation,n=/^(0?[0-9]|1[0-2])?$/;break;case"minute":case"second":i=fm_objectL10n.time_validation,n=/^([0-5]?[0-9])?$/;break;case"number":i=fm_objectL10n.number_validation,n=/^\-{0,1}\d+(.\d+){0,1}$/;break;case"quantity":i=fm_objectL10n.number_validation,n=/^[+]?\d+([.]\d+)?$/;break;case"day":i=fm_objectL10n.date_validation,n=/^(0?[0-2]?[0-9]|3[0-1])?$/;break;case"month":i=fm_objectL10n.date_validation,n=/^(0?[0-9]|1[0-2])?$/;break;case"year":i=fm_objectL10n.date_validation,n=/^([1-2]?[0-9]?[0-9]?[0-9])?$/;break;case"date":n="mm/dd/yy"==l?(i=fm_objectL10n.date_validation,/^(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[01])\/\d{4}$/):(i="",/^$/)}if(r=n.test(u),""!=u&&"MM/DD/YY"==l||(r=!0),r)for(var b in t)if(!(r=wd_validate("#"+t[b],"")))break;return"year"==o&&(parseInt(u)<p||parseInt(u)>y)&&(r=!1,i=fm_objectL10n.year_validation.replace("%%start%%",p).replace("%%end%%",y)),"date"==o&&(h||(r=!1,i=fm_objectL10n.date_validation)),jQuery("#check_email_"+d+"_"+s).remove(),r?(w.removeClass("wd-error-label"),delete window["check_before_submit"+s][d+"_"+s]):(g.parent().parent().append("<div id='check_email_"+d+"_"+s+"' class='fm-not-filled'>"+i+"</div>"),w.addClass("wd-error-label"),window["check_before_submit"+s][d+"_"+s]=!1),r}function min_max_date_with_operator(e,t){var i;if("function"==typeof moment){var r="",n=[];if(0<=e.indexOf("+")||0<=e.indexOf("-")){for(var a=0;a<e.length;a++)"+"!==e[a]&&"-"!==e[a]||0===a||(n.push(r),r=""),r+=e[a];n.push(r);var o={};for(a=0;a<n.length;a++)switch(i=parseInt(n[a].replace(/[^\d]/g,"")),n[a].replace("+"+i,"").replace("-"+i,"").toLowerCase()){case"y":0===n[a].indexOf("+")?o.years=i:0===n[a].indexOf("-")&&(o.years=-i);break;case"m":0===n[a].indexOf("+")?o.months=i:0===n[a].indexOf("-")&&(o.months=-i);break;case"w":0===n[a].indexOf("+")?o.weeks=i:0===n[a].indexOf("-")&&(o.weeks=-i);break;default:0===n[a].indexOf("+")?o.days=-i:0===n[a].indexOf("-")&&(o.days=-i)}e=moment().add(o).format(t)}else e="today"===e?moment().format(t):moment(e,t)._i;return e}}function check_isnum_interval(e,t,i,r){var n=e.which||e.keyCode;return-1!=jQuery.inArray(n,[46,8,9,27,13,190])||!0===e.ctrlKey||35<=n&&n<39||!(31<n&&(n<48||57<n))&&(val1=""+jQuery(t).val()+String.fromCharCode(n),!(2<val1.length)&&("00"!=val1&&!(val1<i||val1>r)))}function destroyChildren(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function generate_page_nav(e,t,i){var r;if(form_view=e,page_nav=document.getElementById(t+"page_nav"+e),destroyChildren(page_nav),form_view_elemet=document.getElementById(t+"form_view"+e),remove_whitespace(form_view_elemet.parentNode.parentNode),display_none_form_views_all(t),form_view_elemet.parentNode.style.display="",(r=document.createElement("div")).setAttribute("valign","middle"),r.setAttribute("align","left"),r.style.display="table-cell",r.style.width="40%",page_nav.appendChild(r),form_view_elemet.parentNode.previousSibling&&-1!=form_view_elemet.parentNode.previousSibling.className.indexOf("wdform-page-and-images")&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:"DIV"==form_view_elemet.parentNode.previousSibling.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling.previousSibling:table="none","none"!=table&&(table.firstChild.tagName||table.removeChild(table.firstChild),previous_title=form_view_elemet.getAttribute("previous_title"),previous_type=form_view_elemet.getAttribute("previous_type"),"text"==previous_type&&r.setAttribute("class","previous-page"),previous_class=form_view_elemet.getAttribute("previous_class"),previous_checkable=form_view_elemet.getAttribute("previous_checkable"),next_or_previous="previous",previous=make_pagebreak_button(next_or_previous,previous_title,previous_type,previous_class,previous_checkable,e,t,i),r.appendChild(previous))),(r=document.createElement("div")).setAttribute("id",t+"page_numbers"+form_view),r.setAttribute("valign","middle"),r.setAttribute("class","page-numbers"),r.setAttribute("align","center"),r.style.display="table-cell","true"==document.getElementById("fm-pages"+t).getAttribute("show_numbers")){var n=document.createElement("span");n.setAttribute("class","page_numbers"),r.appendChild(n)}page_nav.appendChild(r),(r=document.createElement("div")).setAttribute("valign","middle"),r.setAttribute("align","right"),r.style.cssText="display:table-cell; width:40%; text-align:right;",page_nav.appendChild(r),not_next=!1,form_view_elemet.parentNode.nextSibling?("DIV"==form_view_elemet.parentNode.nextSibling.tagName&&-1!=form_view_elemet.parentNode.nextSibling.className.indexOf("wdform-page-and-images")?table=form_view_elemet.parentNode.nextSibling:form_view_elemet.parentNode.nextSibling.nextSibling&&"DIV"==form_view_elemet.parentNode.nextSibling.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling.nextSibling:table="none","none"!=table?(next_title=form_view_elemet.getAttribute("next_title"),next_type=form_view_elemet.getAttribute("next_type"),"text"==next_type&&r.setAttribute("class","next-page"),next_class=form_view_elemet.getAttribute("next_class"),next_checkable=form_view_elemet.getAttribute("next_checkable"),next_or_previous="next",next=make_pagebreak_button(next_or_previous,next_title,next_type,next_class,next_checkable,e,t,i),r.appendChild(next)):not_next=!0):not_next=!0,generate_page_bar(e,t,i),fm_initilize_form(t)}function fm_initilize_form(e){jQuery("#form"+e+" div[type='type_map']").each(function(){for(id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0;q<20;q++)jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!1))}),jQuery("#form"+e+" div[type='type_mark_map']").each(function(){id=jQuery(this).parent().attr("wdid"),if_gmap_init("wdform_"+id,e),q=0,jQuery("#wdform_"+id+"_element"+e)[0].getAttribute("long"+q)&&(w_long=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("long"+q)),w_lat=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("lat"+q)),w_info=parseFloat(document.getElementById("wdform_"+id+"_element"+e).getAttribute("info"+q)),add_marker_on_map("wdform_"+id,q,w_long,w_lat,w_info,e,!0))}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().attr("type")){jQuery(this).parent().parent().find(".stripe_more_info .wdform-label-section").removeClass("wd-hidden");return!0}jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15))}),jQuery("#form"+e+" div[type='type_signature']").length&&"undefined"!=typeof fm_signature_init&&fm_signature_init()}function display_none_form_views_all(e){jQuery("#form"+e+" .wdform-page-and-images").css("display","none")}function generate_page_bar(t,i,e){if("steps"==document.getElementById("fm-pages"+i).getAttribute("type")?make_page_steps_front(t,i,e):"percentage"==document.getElementById("fm-pages"+i).getAttribute("type")?make_page_percentage_front(t,i,e):make_page_none_front(i),"true"==document.getElementById("fm-pages"+i).getAttribute("show_numbers")){if(td=document.getElementById(i+"page_numbers"+t),td){destroyChildren(td);var r=0,n=0;jQuery("#form"+i+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(i+"form_view"+j)&&(r++,j==t&&(n=r))});var a=document.createElement("span");a.setAttribute("class","page_numbers"),a.innerHTML=n+"/"+r,td.appendChild(a)}}else td=document.getElementById(i+"page_numbers"+t),td&&destroyChildren(document.getElementById(i+"page_numbers"+t))}function make_page_steps_front(t,i,r){destroyChildren(document.getElementById("fm-pages"+i)),show_title="true"==document.getElementById("fm-pages"+i).getAttribute("show_title"),next_checkable="true"==document.getElementById(i+"form_view"+t).getAttribute("next_checkable"),previous_checkable="true"==document.getElementById(i+"form_view"+t).getAttribute("previous_checkable"),k=0,jQuery("#form"+i+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(i+"form_view"+j)&&(document.getElementById(i+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(i+"form_view"+j).getAttribute("page_title"):w_pages="",k++,page_number=document.createElement("span"),page_number.setAttribute("id","page_"+j),j<t&&(previous_checkable?page_number.setAttribute("onClick","if(fm_check("+t+", "+i+', false)) generate_page_nav("'+j+'", "'+i+'", "'+r+'")'):page_number.setAttribute("onClick",'generate_page_nav("'+j+'", "'+i+'", "'+r+'")')),j>t&&(next_checkable?page_number.setAttribute("onClick","if(fm_check("+t+", "+i+', false)) generate_page_nav("'+j+'", "'+i+'", "'+r+'")'):page_number.setAttribute("onClick",'generate_page_nav("'+j+'", "'+i+'", "'+r+'")')),j==t?page_number.setAttribute("class","page_active"):page_number.setAttribute("class","page_deactive"),show_title?page_number.innerHTML=w_pages:page_number.innerHTML=k,document.getElementById("fm-pages"+i).appendChild(page_number))})}function make_page_percentage_front(t,i,e){destroyChildren(document.getElementById("fm-pages"+i)),show_title="true"==document.getElementById("fm-pages"+i).getAttribute("show_title");var r=document.createElement("div");r.setAttribute("class","page_percentage_deactive");var n=document.createElement("div");n.setAttribute("id","div_percentage"),n.setAttribute("class","page_percentage_active"),n.setAttribute("align","right");var a=document.createElement("div");a.setAttribute("class","wdform_percentage_arrow");var o=document.createElement("b");o.setAttribute("class","wdform_percentage_text"),n.appendChild(o),k=0,cur_page_title="",jQuery(".form"+i+" .wdform-page-and-images").each(function(){var e=jQuery(this).find(".wdform_page").attr("id");j=e.split("form_view")[1],document.getElementById(i+"form_view"+j)&&(document.getElementById(i+"form_view"+j).getAttribute("page_title")?w_pages=document.getElementById(i+"form_view"+j).getAttribute("page_title"):w_pages="",k++,j==t&&(show_title&&(cur_page_title=document.createElement("div"),cur_page_title.innerHTML=w_pages,cur_page_title.innerHTML=w_pages,cur_page_title.setAttribute("class","wdform_percentage_title")),page_number=k))}),o.innerHTML=Math.round((page_number-1)/(k-1)*100)+"%",n.style.width=(page_number-1)/(k-1)*100+"%",1==page_number&&(a.style.display="none"),r.appendChild(n),r.appendChild(a),cur_page_title&&r.appendChild(cur_page_title),document.getElementById("fm-pages"+i).appendChild(r)}function make_page_none_front(e){destroyChildren(document.getElementById("fm-pages"+e))}function make_pagebreak_button(e,t,i,r,n,a,o,s){switch(i){case"text":return(d=document.createElement("div")).setAttribute("id","page_"+e+"_"+a+"_"+o),d.setAttribute("class",r),"true"==n?d.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+s+")"):d.setAttribute("onClick","page_"+e+"("+a+","+o+","+s+")"),d.innerHTML=t,d;case"img":var d;return(d=document.createElement("img")).setAttribute("id","page_"+e+"_"+a),d.setAttribute("class",r),"true"==n?d.setAttribute("onClick","if(fm_check("+a+", "+o+", false)) page_"+e+"("+a+","+o+","+s+")"):d.setAttribute("onClick","page_"+e+"("+a+","+o+","+s+")"),0==t.indexOf("http")?d.src=t:d.src=fm_objectL10n.plugin_url+"/"+t,d}}function form_maker_findPos(e){var t=0;if(e.offsetParent){for(;t+=e.offsetTop,e=e.offsetParent;);return[t]}}function page_previous(e,t,i){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.previousSibling&&form_view_elemet.parentNode.previousSibling.previousSibling&&("DIV"==form_view_elemet.parentNode.previousSibling.tagName?table=form_view_elemet.parentNode.previousSibling:table=form_view_elemet.parentNode.previousSibling.previousSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,i),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function page_next(e,t,i){form_view_elemet=document.getElementById(t+"form_view"+e),form_view_elemet.parentNode.nextSibling&&("DIV"==form_view_elemet.parentNode.nextSibling.tagName?table=form_view_elemet.parentNode.nextSibling:table=form_view_elemet.parentNode.nextSibling.nextSibling),table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,i),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function fm_go_to_page(e,t,i){form_view_elemet=document.getElementById(t+"form_view"+e),table=form_view_elemet.parentNode,table.firstChild.tagName||table.removeChild(table.firstChild),generate_page_nav(table.firstChild.id.replace(t+"form_view",""),t,i),form=jQuery("#form"+t),form.parent().hasClass("fm-scrollbox-form")||(jQuery("html").animate({scrollTop:form.offset().top-150},500),document.scrollingElement.scrollTop=form.offset().top-150)}function getfileextension(e,t){if(void 0===e||0==e.length)return!0;var i=e.lastIndexOf("."),r=e.substr(i+1,e.length);t=t.split(",");for(var n=0;n<t.length;n++)if(t[n]=t[n].replace(/\./g,""),t[n]=t[n].replace(/ /g,""),r.toLowerCase()==t[n].toLowerCase())return!0;return!1}function reselect(e,t){t=void 0!==t?t:"",jQuery(e).wrap('<div class="sel-wrap '+t+'"/>');var i="",r=!1;jQuery(e).children("option").each(function(){jQuery(this).is(":selected")&&(r=jQuery(this).index()),i=i+'<div class="sel-option" value="'+jQuery(this).val()+'">'+jQuery(this).html()+"</div>"}),w=jQuery(e)[0].style.width,"100%"==w?w="100%":w=jQuery(e).width()+32+"px";var n='<div class="sel-imul" style="width:'+w+'"> <div class="sel-selected"> <div class="selected-text">'+jQuery(e).children("option").eq(r).html()+'</div> <div class="sel-arraw"></div> </div> <div class="sel-options">'+i+"</div> </div>";jQuery(e).addClass("no-width"),jQuery(e).before(n)}jQuery(window).on("load",function(){0<jQuery(".g-recaptcha").length&&1!=jQuery(".g-recaptcha").data("render")&&fmRecaptchaInit(0),validate_received_data_from_url(),jQuery(".submissions").length&&jQuery(".submissions td").each(function(){"0"==jQuery(this).data("status")&&jQuery(this).parent().hide()})}),jQuery(document).on("change",'.wdform-element-section input[type="checkbox"],.wdform-element-section input[type="radio"], .wdform-quantity',function(){var e=jQuery(this).closest(".wdform-field").attr("data-limit"),t=jQuery(this).closest(".wdform-field").attr("data-limit-text"),i=jQuery(this).closest(".wdform-element-section").find("input[type='checkbox']:checked").length,r=jQuery(this).closest(".wdform-element-section").find(".other_input");e<i?(this.checked=!1,1==this.getAttribute("other")&&(i.checked||r&&(r.prev("br").remove(),r.remove())),jQuery(this).closest(".wdform-field").find(".wdform-label").addClass("error_label"),0==jQuery(".fm-error").length&&jQuery(this).closest(".wdform_row").append("<div class='fm-error'>"+t+"</div>")):(jQuery(this).closest(".wdform-field").find(".wdform-label").removeClass("error_label"),jQuery(".fm-error").remove())}),jQuery(document).on("change",".wdform-element-section select",function(){var e=jQuery(this).children("option:selected").text();jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-selected").children(".selected-text").html(e),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").children(".sel-option").removeClass("sel-ed"),jQuery(this).addClass("sel-ed"),jQuery(this).parent(".sel-wrap ").children(".sel-imul").children(".sel-options").each(function(){jQuery(this).html()==e&&jQuery(this).addClass("sel-ed")})}),jQuery(document).on("change",'div[type="type_date_fields"]',function(){2<jQuery(this).find("select.sel-ed").length&&(jQuery(this).next(".fm-not-valid-date, .fm-not-filled").remove(),jQuery(this).find(".wdform-label").removeClass("error_label"))}),jQuery(document).on("click",".sel-imul",function(){jQuery(".sel-imul").removeClass("act"),jQuery(this).addClass("act"),jQuery(this).children(".sel-options").is(":visible")?jQuery(".sel-options").hide():(jQuery(".sel-options").hide(),jQuery(this).children(".sel-options").show(),jQuery(this).children(".sel-options").css("width",jQuery(this).width()))}),jQuery(document).on("click",".sel-option",function(){var e=jQuery(this).html();jQuery(this).parent(".sel-options").parent(".sel-imul").children(".sel-selected").children(".selected-text").html(e),jQuery(this).parent(".sel-options").children(".sel-option").removeClass("sel-ed"),jQuery(this).addClass("sel-ed");var t=jQuery(this).attr("value");t=void 0!==t?t:e,jQuery(this).parent(".sel-options").parent(".sel-imul").parent(".sel-wrap").children("select").children("option").prop("selected",!1).each(function(){jQuery(this).html()==e&&jQuery(this).attr("selected","select")}),jQuery(this).parent(".sel-options").parent(".sel-imul").parent(".sel-wrap").children("select").change()});var selenter=!1;function remove_whitespace(e){var t;for(t=0;t<e.childNodes.length;t++)e.childNodes[t]&&"3"==e.childNodes[t].nodeType&&!/\S/.test(e.childNodes[t].nodeValue)?(e.removeChild(e.childNodes[t]),t--):e.childNodes[t].childNodes.length&&remove_whitespace(e.childNodes[t])}function change_value_range(e,t,i,r,n,a){var o=((n=n.toUpperCase()).match(/Y/g)||[]).length;2===o?n=n.replace("YY","YYYY"):1===o&&(n=n.replace("Y","YY")),r=min_max_date_with_operator(r,n),check_min_max=!1,"OO"===n?"minDate"===t?check_min=r<=i:check_max=!(r<i):"function"!=typeof moment?check_min_max=!0:(moment(r,n).isSameOrBefore(moment(i,n))&&"minDate"===t&&(check_min_max=!0),moment(i,n).isSameOrBefore(moment(r,n))&&"maxDate"===t&&(check_min_max=!0));var s=jQuery(a).data("form-id"),d=jQuery(a).data("wdid"),l="#form"+s+" div[wdid='"+d+"']",u=jQuery(l+" .wdform-label-section:first .wdform-label");if(check_min_max)jQuery("#check_email_"+d+"_"+s).remove(),u.removeClass("wd-error-label");else{error_message=fm_objectL10n.date_validation;var c=jQuery(l+" .wdform-element-section");jQuery("#check_email_"+d+"_"+s).remove(),c.parent().parent().append("<div id='check_email_"+d+"_"+s+"' class='fm-not-filled'>"+error_message+"</div>"),u.addClass("wd-error-label")}i?jQuery("#"+e).datepicker("option",t,i):"today"==r?jQuery("#"+e).datepicker("option",t,new Date):(-1==r.indexOf("d")&&-1==r.indexOf("m")&&-1==r.indexOf("y")&&-1==r.indexOf("w")&&""!=r&&(r=jQuery.datepicker.formatDate(n,new Date(r))),jQuery("#"+e).datepicker("option",t,r))}function wd_check_confirmation_email(e,t,i,r){var n=jQuery("#wdform_"+e+"_element"+t),a=jQuery("#wdform_"+e+"_1_element"+t);0==window["check_before_submit"+t][e+"_"+t]||jQuery(n).val()!=jQuery(a).val()?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),jQuery(n).val()!=jQuery(a).val()&&(jQuery(a).parent().parent().parent().append("<div id='confirm_"+e+"_"+t+"' class='fm-not-filled'>"+i+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_confirm")),window["check_before_submit"+t][e+"_"+t]=!(e+"_"+t in window["check_before_submit"+t])||window["check_before_submit"+t][e+"_"+t]):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm"),1==window["check_before_submit"+t][e+"_"+t]&&delete window["check_before_submit"+t][e+"_"+t])}function wd_check_email(e,t,i){var r=jQuery("#wdform_"+e+"_element"+t),n=jQuery("#wdform_"+e+"_1_element"+t);if(""==jQuery(r).val()||/^[\u0400-\u04FFa-zA-Z0-9'.+_-]+@[\u0400-\u04FFa-zA-Z0-9.-]+\.[\u0400-\u04FFa-zA-Z]{2,61}$/.test(jQuery.trim(jQuery(r).val()))||jQuery(r).attr("title")==jQuery(r).val())jQuery("#check_email_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_check_mail").removeClass("error_label_check_mail"),window["check_before_submit"+t][e+"_"+t]=!0,void 0===n.val()&&delete window["check_before_submit"+t][e+"_"+t];else{jQuery("#check_email_"+e+"_"+t).remove();var a=jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first"),o=0;a.hasClass("wd-width-30")&&!a.hasClass("wd-hidden")&&(o=a.width()),jQuery(r).parent().parent().parent().append("<div id='check_email_"+e+"_"+t+"' class='fm-not-filled' style='margin-left: "+o+"px'>"+i+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_check_mail"),r.val()==n.val()&&(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_confirm").removeClass("error_label_confirm")),delete window["check_before_submit"+t][e+"_"+t],window["check_before_submit"+t][e+"_"+t]=!1}}function wd_check_confirmation_pass(e,t,i){var r,n=jQuery("#wdform_"+e+"_element"+t),a=jQuery("#wdform_"+e+"_1_element"+t);r=n.val()!==a.val();var o=jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:first"),s=0;o.hasClass("wd-width-30")&&!o.hasClass("wd-hidden")&&(s=o.width()),r?(jQuery("#confirm_"+e+"_"+t).remove(),jQuery(a).parent().parent().parent().append("<div id='confirm_"+e+"_"+t+"' class='fm-not-filled' style='margin-left: "+s+"px'>"+i+"</div>"),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .wdform-label").addClass("error_label_check_pass"),window["check_before_submit"+t][e+"_"+t]=!1):(jQuery("#confirm_"+e+"_"+t).remove(),jQuery("#form"+t+" div[wdid='"+e+"'] .wdform-label-section:eq( 1 ) .error_label_check_pass").removeClass("error_label_check_pass"),delete window["check_before_submit"+t][e+"_"+t])}function minimize_form(e){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown fm-minimized"),jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeOutDown").addClass("fm-show fm-animated fadeInUp")}function fm_show_scrollbox(e){jQuery("#fm-minimize-text"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown fm-minimized").addClass("fm-show fm-animated fadeInUp")}function fm_hide_form(e,t,i){var r=new Date;r.setDate(r.getDate()+t),0<t&&localStorage.setItem("hide-"+e,r.getTime()),"function"==typeof i&&i()}function wd_check_regExp(o,s){var d=jQuery("#form"+o),l=!1,e=s||window["check_regExp_all"+o];return jQuery.each(e,function(e,t){var i="#wdform_"+e+"_element"+o,r="",n=unescape(t[0]),a=d.find(jQuery("div[wdid='"+e+"']"));r=t[1].length<=0?new RegExp(n):new RegExp(n,t[1]),0!=d.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=d.find(jQuery("div[wdid='"+e+"']")).css("display")&&(jQuery("#form"+o+" #wd_exp_"+e).remove(),""==jQuery(i).val()&&0==a.find(".wdform-required").length?(l=!0,d.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_exp_"+e+"' class='fm-not-filled'>"+t[2]+"</div>"),jQuery("#form"+o+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"),scroll_on_element(o)):jQuery(i).val()!=jQuery(i).attr("title")&&1!=r.test(jQuery(i).val())&&(d.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_exp_"+e+"' class='fm-not-filled'>"+t[2]+"</div>"),jQuery("#form"+o+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_exp"),l=!0,s||scroll_on_element(o)))}),!1===l}function scroll_on_element(e){if(0==jQuery("#form"+e+" .fm-not-filled").length)return!0;var t=!0;0==jQuery("#fm_shake"+e).val()&&(t=!1);var i=jQuery("#form"+e+" .fm-not-filled").closest(".wdform_row"),r=i.closest(".wdform_page");if("none"==r.parent().css("display")){var n=jQuery("#form"+e+" .wdform-page-and-images").length,a=jQuery("#form"+e+" .wdform_page").last().attr("id");a=a.split("form_view");var o=r.attr("id");fm_go_to_page(o=o.split("form_view")[1],e,n,a[1])}var s=jQuery(document).scrollTop(),d=document.body.clientHeight,l=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,c=function(){document.body.clientHeight!==d&&(d=document.body.clientHeight,l=jQuery("#form"+e+" .fm-not-filled").closest("div[wdid]").height(),u=jQuery("#form"+e+" .fm-not-filled").offset().top,jQuery("html").stop(),f())};function m(e){e&&(old_bg=jQuery(i).css("background-color"),jQuery(i).effect("shake",{},500).css("background-color","#FF8F8B").animate({backgroundColor:old_bg},{duration:500,queue:!1}))}function f(){jQuery("html").animate({scrollTop:u-(l+40)},500,function(){document.scrollingElement.scrollTop=u-(l+40),jQuery(window).off("scroll",c),m(t)})}jQuery(window).on("scroll",c),u<s?f():m(t)}function wd_file_upload_check(d,e){var l=jQuery("#form"+d),u=!1,t=e||window["file_upload_check"+d];return jQuery.each(t,function(e,t){var i="#wdform_"+e+"_element"+d;if(0!=l.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=l.find(jQuery("div[wdid='"+e+"']")).css("display")){var r=getfileextension(jQuery(i).val(),t.extension),n=parseFloat(t.max_size),a=void 0!==jQuery(i)[0]&&void 0!==jQuery(i)[0].files[0]?jQuery(i)[0].files[0].size/1024:"undefined",o=void 0!==a&&n<a;if(!r||o){var s=o?fm_objectL10n.fm_file_type_allowed_size_error.replace(/%s/g,n):fm_objectL10n.fm_file_type_error;jQuery("#form"+d+" #wd_upload_type_"+e).remove(),l.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_upload_type_"+e+"' class='fm-not-filled'>"+s+"</div>"),jQuery("#form"+d+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_upload"),u=!0}else jQuery("#form"+d+" #wd_upload_type_"+e).remove(),jQuery("#form"+d+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_upload").removeClass("error_label_upload")}}),e||!0!==u||scroll_on_element(d),!1===u}function wd_is_filled(l,u,c){null==c&&(c=!0);var m=jQuery("#form"+l),e=u?u.split():window["required_fields"+l],f={};return jQuery(e).each(function(e,r){if("none"===m.find(jQuery("div[wdid='"+r+"']")).css("display")&&(m.find(jQuery("div[wdid='"+r+"']")).find(".fm-not-filled").remove(),m.find(jQuery("div[wdid='"+r+"']")).css("background-color",""),m.find(jQuery("div[wdid='"+r+"'] label")).removeClass("error_label")),0!=m.find(jQuery("div[wdid='"+r+"']")).length&&"none"!==m.find(jQuery("div[wdid='"+r+"']")).css("display"))switch(window["labels_and_ids"+l][r]){case"type_text":case"type_textarea":case"type_paypal_price_new":case"type_spinner":case"type_number":case"type_phone_new":case"type_submitter_mail":var t="#wdform_"+r+"_element"+l,i=jQuery(t).val();i=jQuery.trim(i),(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==i&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)});break;case"type_own_select":case"type_country":case"type_paypal_select":t="#wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&(""==jQuery(t).val()||0<jQuery("#wdform_"+r+"_element_quantity"+l).length&&!parseInt(jQuery("#wdform_"+r+"_element_quantity"+l).val()))&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)}).change(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(l,r)});break;case"type_phone":t=["#wdform_"+r+"_element_first"+l,"#wdform_"+r+"_element_last"+l];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)})});break;case"type_name":t=["#wdform_"+r+"_element_title"+l,"#wdform_"+r+"_element_first"+l,"#wdform_"+r+"_element_last"+l,"#wdform_"+r+"_element_middle"+l];jQuery.each(t,function(e,t){if((c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&jQuery(t).length){var i=jQuery(t).val();""==(i=jQuery.trim(i))&&void 0!==i&&(f[r]=t)}u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_address":t=["#wdform_"+r+"_street1"+l,"#wdform_"+r+"_city"+l,"#wdform_"+r+"_state"+l,"#wdform_"+r+"_postal"+l,"#wdform_"+r+"_country"+l];jQuery.each(t,function(e,t){if(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display")){var i=jQuery(t).val();void 0!==i&&(i=jQuery.trim(i)),""==i&&void 0!==jQuery(t).closest(".wd-address").css("display")&&"none"!=jQuery(t).closest(".wd-address").css("display")&&0<jQuery(t).length&&(f[r]=t)}u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_checkbox":case"type_radio":case"type_scale_rating":case"type_paypal_checkbox":case"type_paypal_radio":case"type_paypal_shipping":(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&(0==m.find(jQuery("div[wdid='"+r+"'] input:checked")).length||""==jQuery("#wdform_"+r+"_other_input"+l).val()||0<jQuery("#wdform_"+r+"_element_quantity"+l).length&&!parseInt(jQuery("#wdform_"+r+"_element_quantity"+l).val()))&&(f[r]=!0),u||window["check_submit"+l]||jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] input"),function(e,t){jQuery(this).change(function(){0==m.find(jQuery("div[wdid='"+r+"'] input:checked")).length||""==jQuery("#wdform_"+r+"_other_input"+l).val()||0<jQuery("#wdform_"+r+"_element_quantity"+l).length&&!parseInt(jQuery("#wdform_"+r+"_element_quantity"+l).val())?wd_is_filled(l,r):(jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"))})});break;case"type_star_rating":t="#wdform_"+r+"_selected_star_amount"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=!0),u||window["check_submit"+l]||jQuery("#wdform_"+r+"_element"+l).click(function(){""!=jQuery(t).val()&&(jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove())});break;case"type_range":t=["#wdform_"+r+"_element"+l+"0","#wdform_"+r+"_element"+l+"1"];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_grading":if(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display")){var n=0;jQuery.each(jQuery("#wdform_"+r+"_element"+l+" input"),function(e,t){""!=jQuery(this).val()&&n++}),0==n&&(f[r]=!0)}u||window["check_submit"+l]||jQuery.each(jQuery("#wdform_"+r+"_element"+l+" input"),function(e,t){jQuery(this).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_slider":var a="#wdform_"+r+"_element"+l,o=(t="#wdform_"+r+"_slider_value"+l,"#wdform_"+r+"_element_min"+l);(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&jQuery(t).val()==jQuery(o).html()&&(f[r]=!0),u||window["check_submit"+l]||jQuery(a).slider({change:function(e,t){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove(),wd_is_filled(l,r)}});break;case"type_date":case"type_date_new":t="#wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove()}).change(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(l,r)});break;case"type_date_range":t=["#wdform_"+r+"_element"+l+"0","#wdform_"+r+"_element"+l+"1"];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).change(function(){wd_is_filled(l,r)})});break;case"type_date_fields":t=["#wdform_"+r+"_day"+l,"#wdform_"+r+"_month"+l,"#wdform_"+r+"_year"+l];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+"div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+"#wd_required_"+r).remove(),jQuery("#check_min_date_"+r+"_"+l).remove()}).blur(function(){wd_is_filled(l,r)}).change(function(){wd_is_filled(l,r)})});break;case"type_time":t=["#wdform_"+r+"_hh"+l,"#wdform_"+r+"_mm"+l,"#wdform_"+r+"_ss"+l];jQuery.each(t,function(e,t){(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&void 0!==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).blur(function(){wd_is_filled(l,r)})});break;case"type_password":t="#wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)});break;case"type_file_upload":t="#wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).change(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),wd_is_filled(l,r)});break;case"type_matrix":if(jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),"radio"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type")||"checkbox"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type"))(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&(0==m.find(jQuery("div[wdid='"+r+"'] input:checked")).length&&(f[r]=!0),"radio"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type")&&jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] div[class^='wdform-matrix-row']"),function(e,t){0==jQuery(t).find('input[type="radio"]:checked').length&&(f[r]=!0)})),"checkbox"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type")&&(u||window["check_submit"+l]||jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] input"),function(e,t){jQuery(this).change(function(){0==m.find(jQuery("div[wdid='"+r+"'] input:checked")).length?wd_is_filled(l,r):(jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove())})}));else if("text"==jQuery("#form"+l+" div[wdid='"+r+"'] input").attr("type")){if(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display")){var s=0;jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] input"),function(e,t){""!=jQuery(this).val()&&s++}),0==s&&(f[r]=!0)}u||window["check_submit"+l]||jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] input"),function(e,t){jQuery(this).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)})})}else{if(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display")){var d=0;jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] select"),function(e,t){""!=jQuery(this).val()&&d++}),0==d&&(f[r]=!0)}u||window["check_submit"+l]||jQuery.each(jQuery("#form"+l+" div[wdid='"+r+"'] select"),function(e,t){jQuery(this).focus(function(){""==jQuery(this).val()&&(jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"))}).change(function(){wd_is_filled(l,r)}).blur(function(){wd_is_filled(l,r)})})}break;case"type_send_copy":(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&0==jQuery("div[wdid='"+r+"'] input:checked").length&&(f[r]=!0),u||window["check_submit"+l]||jQuery("#form"+l+" div[wdid='"+r+"'] input").change(function(){0==jQuery("div[wdid='"+r+"'] input:checked").length?wd_is_filled(l,r):(jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label"))});break;case"type_captcha":case"type_arithmetic_captcha":t="";t="type_captcha"==window["labels_and_ids"+l][r]?"#wd_captcha_input"+l:"#wd_arithmetic_captcha_input"+l,(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(jQuery(".message_captcha").html(""),f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .error_label").removeClass("error_label")}).blur(function(){wd_is_filled(l,r)});break;case"type_signature":jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .wdform-label").removeClass("error_label");t="#signature-file-wdform_"+r+"_element"+l;(c||"none"!=m.find(jQuery("div[wdid='"+r+"']")).closest(".wdform-page-and-images").css("display"))&&""==jQuery(t).val()&&(f[r]=t),u||window["check_submit"+l]||jQuery(t).focus(function(){jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .wdform-label").removeClass("error_label"),jQuery("#form"+l+" #wd_required_"+r).remove()}).change(function(){jQuery("#form"+l+" #wd_required_"+r).remove(),jQuery("#form"+l+" div[wdid='"+r+"'] .wdform-label-section:first .wdform-label").removeClass("error_label"),wd_is_filled(l,r)})}}),0===Object.keys(f).length&&0===Object.keys(window["check_before_submit"+l]).length||(0!==Object.keys(f).length&&jQuery.each(f,function(e,t){var i=jQuery("#form"+l+" div[wdid='"+e+"'] .wdform-label-section:first"),r=0;i.hasClass("wd-width-30")&&!i.hasClass("wd-hidden")&&(r=i.width()),jQuery("#form"+l+" #wd_required_"+e).remove(),jQuery("#form"+l+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label"),"type_password"===window["labels_and_ids"+l][e]||"type_submitter_mail"===window["labels_and_ids"+l][e]?jQuery("#form"+l+" div[wdid='"+e+"'] .wdform-element-section:first").parent().after("<div id='wd_required_"+e+"' class='fm-not-filled fm-password-not-filled' style='margin-left: "+r+"px'>"+fm_objectL10n.fm_field_is_required+"</div>"):jQuery("#form"+l+" div[wdid='"+e+"'] .wdform-element-section:first").parent().parent().append("<div id='wd_required_"+e+"' class='fm-not-filled' style='margin-left: "+r+"px'>"+fm_objectL10n.fm_field_is_required+"</div>")}),u||scroll_on_element(l),!(window["check_submit"+l]=1))}function wd_check_price_min_max(a,o){var s=jQuery("#form"+a),e=o||window["check_paypal_price_min_max"+a],d=!1;return jQuery.each(e,function(e,t){var i="#wdform_"+e+"_element"+a,r=t[3]?t[3]:0,n=t[4]?t[4]:-1;!t[2]&&jQuery(i).val()==t[1]||(-1!=n&&parseFloat(jQuery(i).val())>n||parseFloat(jQuery(i).val())<r)&&(jQuery("#form"+a+" #wd_price_"+e).remove(),s.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_min_max_check_1+t[0]+fm_objectL10n.fm_min_max_check_2+(t[3]?t[3]:0)+"-"+(t[4]?t[4]:"any")+"</div>"),jQuery("#form"+a+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),d=!0,o||scroll_on_element(a))}),!1===d}function wd_check_min_date_dob(u){var c=!0;return jQuery("#form"+u+" div[type='type_date_fields']").each(function(){var e=parseInt(jQuery(this).data("min-day"));if(!e)return!0;var t=jQuery(this).parent(),i=t.attr("wdid"),r=parseInt(jQuery("#wdform_"+i+"_day"+u).val()),n=parseInt(jQuery("#wdform_"+i+"_month"+u).val()),a=parseInt(jQuery("#wdform_"+i+"_year"+u).val());if(!(r||n||a))return!0;var o=parseInt(jQuery(this).data("min-month")),s=parseInt(jQuery(this).data("min-year")),d=new Date(a+"-"+n+"-"+r),l=new Date(s+"-"+o+"-"+e);(isNaN(d)||isNaN(a)||d-l<0)&&(c=!1,jQuery("#check_min_date_"+i+"_"+u).remove(),t.append("<div id='check_min_date_"+i+"_"+u+"' class='fm-not-valid-date'>"+jQuery(this).attr("data-min-date-alert")+"</div>"),t.find(".wdform-label").addClass("error_label"),scroll_on_element(u))}),c}function wd_spinner_check(r,n){var a=jQuery("#form"+r),o=!1,e=n||window["spinner_check"+r];return jQuery.each(e,function(e,t){var i="#wdform_"+e+"_element"+r;0!=a.find(jQuery("div[wdid='"+e+"']")).length&&"none"!=a.find(jQuery("div[wdid='"+e+"']")).css("display")&&(parseInt(jQuery(i).val())<parseInt(t[0])||parseInt(jQuery(i).val())>parseInt(t[1]))&&(jQuery("#form"+r+" #wd_price_"+e).remove(),a.find(jQuery("div[wdid='"+e+"'] .wdform-element-section")).parent().parent().append("<div id='wd_price_"+e+"' class='fm-not-filled'>"+fm_objectL10n.fm_spinner_check+(t[0]?t[0]:0)+"-"+(t[1]?t[1]:"any")+"</div>"),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"),o=!0,n||scroll_on_element(r))}),!1===o}function fmscrollHandler(e){var t=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height());!jQuery("#fm-scrollbox"+e).hasClass("fm-minimized")&&t>=window["scrollbox_trigger_point"+e]?setTimeout(function(){jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeOutDown").addClass("fm-animated fadeInUp"),jQuery("#fm-scrollbox"+e).css("visibility",""),jQuery("#fm-scrollbox"+e+" .fm-header-img").addClass("fm-animated "+window["header_image_animation"+e])},1e3*window["scrollbox_loading_delay"+e]):"1"==window["scrollbox_auto_hide"+e]&&(jQuery("#fm-scrollbox"+e+" .fm-header-img").removeClass("fm-animated "+window["header_image_animation"+e]),jQuery("#fm-scrollbox"+e).removeClass("fm-animated fadeInUp").addClass("fm-animated fadeOutDown"))}function fm_submit_form(e){if("function"==typeof window["before_submit"+e]&&window["before_submit"+e]())return!1;if(!fm_check(0,e))return!1;(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery('<input type="hidden" name="save_or_submit'+e+'" value ="submit" />').appendTo("#form"+e),window["onsubmit_js"+e](),1==window["checkStripe"+e])?"none"!=jQuery("form[id='form"+e+"']").find(".StripeElement").first().parents(".wdform_row").css("display")?wdfm_call_stripe(!0):0<jQuery("#form"+e).find(".g-recaptcha[data-size=invisible]").length?grecaptcha.execute():fm_submit(e):0<jQuery("#form"+e).find(".g-recaptcha[data-size=invisible]").length?grecaptcha.execute():fm_submit(e)}function getHostName(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);return null!=t&&2<t.length&&"string"==typeof t[2]&&0<t[2].length?t[2]:null}function isJson(e){try{JSON.parse(e)}catch(e){return!1}return!0}function fm_submit(u){if(fm_set_input_value("fm_empty_field_validation"+u,jQuery("#fm_empty_field_validation"+u).attr("data-value")),"0"!=jQuery("#form"+u+" .button-submit:not(.save_button)").attr("data-ajax")){jQuery("#form"+u+" .fm-submit-loading").css("display","inline-block");var e=jQuery("#form"+u)[0],t=new FormData(e),i=jQuery("#fm_ajax_url"+u).data("ajax_url"),c=jQuery("#form"+u+" #fm_ajax_redirect_url"+u).data("ajax_redirect_url");jQuery.ajax({type:"POST",enctype:"multipart/form-data",url:i,data:t,contentType:!1,processData:!1,success:function(e){if(isJson(e)){var t=JSON.parse(e);if(void 0!==t.after_submit_redirect_url&&""!=jQuery.trim(t.after_submit_redirect_url))return void window.location.replace(t.after_submit_redirect_url);var i=new Date,r=window.location.href,n=i.getTime();if(void 0!==t.success&&(n=t.success),-1<r.indexOf("&succes="))r=r.split("&succes=")[0];else if(-1<r.indexOf("?succes=")){r=r.split("?succes=")[0]}r=-1<r.indexOf("?")?r+"&succes="+n:r+"?succes="+n;var a="&return="+encodeURIComponent(r);if(void 0!==t.paypal_url){var o=t.paypal_url+a;return void window.location.replace(o)}}jQuery("#form"+u+" .button-submit").prop("disabled",!1),jQuery("#form"+u+" .fm-submit-loading").hide();var s=jQuery(e).find("#form"+u).html();if(0==c||0!=jQuery(s).find(".fm-not-filled.message_captcha").length||0!=jQuery(s).filter(".fm-notice-error").length){jQuery("#form"+u).html(s),"function"==typeof window["fm_save_progress_buttons_"+u]&&window["fm_save_progress_buttons_"+u](),0<jQuery(document).find(".g-recaptcha").length&&fmRecaptchaInit(1);var d="fm_script_ready"+u;if(void 0!==window[d]&&window[d](),0<jQuery(s).find(".fm-not-filled.message_captcha").length){var l=jQuery(s).find(".fm-not-filled.message_captcha").text();jQuery("#form"+u+" .fm-message").remove(),jQuery("#form"+u).prepend('<div class="fm-message fm-notice-error">'+l+"</div>")}window["check_submit"+u]=0}else window.location.replace(c)},complete:function(){0==jQuery("#form"+u+" .fm-message").length?(jQuery("#closing-form"+u).remove(),jQuery("#fm-popover-background"+u).css("display","none")):jQuery("#fm-popover-container"+u).addClass("fm-submit-message"),"function"!=typeof window["after_submit"+u]||jQuery("#form"+u).find(".message_captcha").length||window["after_submit"+u]()}})}else jQuery("#form"+u).submit()}function fm_reset_form(form_id){"function"==typeof window["before_reset"+form_id]&&window["before_reset"+form_id]();var privacy_policy_check=jQuery("#fm_privacy_policy"+form_id);privacy_policy_check&&(privacy_policy_check.prop("checked",!1),fm_privacy_policy_check(privacy_policy_check)),jQuery.each(window["labels_and_ids"+form_id],function(index,elem){switch(elem){case"type_text":case"type_textarea":case"type_number":case"type_spinner":case"type_own_select":case"type_country":case"type_date":case"type_date_new":case"type_hidden":case"type_paypal_price_new":case"type_phone_new":case"type_time":jQuery("#wdform_"+index+"_element"+form_id).val("");break;case"type_submitter_mail":case"type_password":jQuery("#wdform_"+index+"_element"+form_id).val(""),jQuery("#wdform_"+index+"_1_element"+form_id)&&(jQuery("#wdform_"+index+"_1_element"+form_id).val(""),jQuery("#confirm_"+index+"_"+form_id)&&jQuery("#confirm_"+index+"_"+form_id).remove(),"type_submitter_mail"==elem&&jQuery("#check_email_"+index+"_"+form_id)&&jQuery("#check_email_"+index+"_"+form_id).remove());break;case"type_date_range":jQuery("#wdform_"+index+"_element"+form_id+"0").val(""),jQuery("#wdform_"+index+"_element"+form_id+"1").val("");break;case"type_send_copy":jQuery("#wdform_"+index+"_element"+form_id).prop("checked",!1);break;case"type_phone":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val("");break;case"type_name":jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val("");break;case"type_address":jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val("");break;case"type_checkbox":jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_radio":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_other_br"+form_id).remove(),jQuery("#wdform_"+index+"_other_input"+form_id).remove();break;case"type_time":jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val("");break;case"type_date_fields":jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val("");break;case"type_file_upload":jQuery("#wdform_"+index+"_element"+form_id+"_save").remove();break;case"type_paypal_price":jQuery("#wdform_"+index+"_element_dollars"+form_id+", #wdform_"+index+"_element_cents"+form_id).val("");break;case"type_paypal_select":jQuery("#wdform_"+index+"_element"+form_id+", #wdform_"+index+"_element_quantity"+form_id+", #form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val("");break;case"type_paypal_radio":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_shipping":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_paypal_checkbox":jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(""),jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop("checked",!1);break;case"type_star_rating":jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(""),jQuery("#wdform_"+index+"_element"+form_id+" img").attr("src",fm_objectL10n.plugin_url+"/images/star.png");break;case"type_scale_rating":jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop("checked",!1);break;case"type_slider":jQuery("#wdform_"+index+"_element"+form_id).slider({value:eval(0)}),jQuery("#wdform_"+index+"_element_value"+form_id).html("0");break;case"type_range":jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val("");break;case"type_grading":jQuery("#wdform_"+index+"_element"+form_id+" input").val("");break;case"type_matrix":jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop("checked",!1),jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(""),jQuery("#wdform_"+index+"_element"+form_id+" select").val("");break;case"type_paypal_total":jQuery("#wdform_"+index+"div_total"+form_id).html("$0"),jQuery("#wdform_"+index+"paypal_products"+form_id).empty();break;case"type_captcha":jQuery("#wd_captcha_input"+form_id).val("");case"type_arithmetic_captcha":jQuery("#wd_arithmetic_captcha_input"+form_id).val("");case"type_signature":jQuery("#signature-file-wdform_"+index+"_element"+form_id).val(""),jQuery("#signature-signs-wdform_"+index+"_element"+form_id).val(""),jQuery("#signature-clear-wdform_"+index+"_element"+form_id).trigger("click")}})}function fm_save_form(e){jQuery('<input type="hidden" name="save_or_submit'+e+'" value ="save" />').appendTo("#form"+e),window["onsubmit_js"+e](),jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),fm_set_input_value("fm_empty_field_validation"+e,jQuery("#fm_empty_field_validation"+e).attr("data-value")),jQuery("#form"+e).submit()}function fm_clear_form(e){1==confirm(fm_objectL10n.fm_clear_data)&&(jQuery("#form"+e+" button").each(function(){jQuery(this).attr("disabled","disabled")}),jQuery.get(fm_objectL10n.form_maker_admin_ajax+"?action=FMClearProg&addon_task=clear_data&nonce="+fm_ajax.ajaxnonce+"&form_id="+e).done(function(){window.location=jQuery("#form"+e).attr("action")}))}function fm_set_input_value(e,t){jQuery("#"+e).val(t)}function formOnload(r){var n;-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&8===parseInt(navigator.userAgent.toLowerCase().split("msie")[1])&&(jQuery("#form"+r).find(jQuery("input[type='radio']")).click(function(){jQuery("input[type='radio']+label").removeClass("if-ie-div-label"),jQuery("input[type='radio']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+r).find(jQuery("input[type='radio']:checked+label")).addClass("if-ie-div-label"),jQuery("#form"+r).find(jQuery("input[type='checkbox']")).click(function(){jQuery("input[type='checkbox']+label").removeClass("if-ie-div-label"),jQuery("input[type='checkbox']:checked+label").addClass("if-ie-div-label")}),jQuery("#form"+r).find(jQuery("input[type='checkbox']:checked+label")).addClass("if-ie-div-label")),jQuery.each(window["check_regExp_all"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_regExp(r,i)}).focus(function(){jQuery("#form"+r+" #wd_exp_"+e).remove(),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")})}),jQuery.each(window["check_paypal_price_min_max"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_check_price_min_max(r,i)}).focus(function(){jQuery("#form"+r+" #wd_price_"+e).remove(),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["spinner_check"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").blur(function(){wd_spinner_check(r,i)}).focus(function(){jQuery("#form"+r+" #wd_price_"+e).remove(),jQuery("#form"+r+" div[wdid='"+e+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")})}),jQuery.each(window["file_upload_check"+r],function(e,t){var i={};i[e]=t,jQuery("div[wdid='"+e+"'] input").change(function(){wd_file_upload_check(r,i)})}),jQuery("#form"+r+" input").on("keypress",function(e){if(13==(e.keyCode?e.keyCode:e.which))return!1}),jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_phone_new'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity, div[type='type_paypal_price_new'] input").keypress(function(e){return check_isnum(e)}),jQuery("div[type='type_grading'] input").keypress(function(e){return check_isnum_or_minus(e)}),jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function(){set_total_value(r)}),jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input").change(function(){set_total_value(r)}),jQuery(".wdform-quantity").change(function(){set_total_value(r)}),jQuery("div[type='type_address'] select").change(function(){set_total_value(r)}),jQuery("div[type='type_time'] input").blur(function(){add_0(this)}),jQuery(".wdform-element-section").each(function(){if("type_stripe"==jQuery(this).parent().parent().attr("type"))return!0;jQuery(this).parent()[0].style.width||0==parseInt(jQuery(this).width())||0==jQuery(this).parent().find(jQuery(".wdform-label-section")).length||"table-cell"==jQuery(this).css("display")&&("type_captcha"!=jQuery(this).parent().attr("type")?jQuery(this).parent().css("width",parseInt(jQuery(this).width())+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15):jQuery(this).parent().css("width",2*parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)+50+parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15)),parseInt(jQuery(this)[0].style.width.replace("px",""))<parseInt(jQuery(this).css("min-width").replace("px",""))&&jQuery(this).css("min-width",parseInt(jQuery(this)[0].style.width.replace("px",""))-10)}),jQuery(".wdform-label").each(function(){parseInt(jQuery(this).height())>=2*parseInt(jQuery(this).css("line-height").replace("px",""))&&(jQuery(this).parent().css("max-width",jQuery(this).parent().width()),jQuery(this).parent().css("width",""))}),(n=jQuery).fn.shuffle=function(){var r=n(this).find(".wd-choice"),t=n.map(r,function(){var e,t=(e=r.length,Math.floor(Math.random()*e)),i=n(r[parseInt(t)]).clone(!0)[0];return r.splice(t,1),i});return n(this).find(".wd-choice").each(function(e){n(this).replaceWith(n(t[e]))}),n(t)},"function"==typeof window["onload_js"+r]&&window["onload_js"+r](),"function"==typeof window["before_load"+r]&&window["before_load"+r]()}function fm_document_ready(e){jQuery("#form"+e).hasClass("fm-form-submitted")&&!jQuery("#form"+e).find(".message_captcha").length&&"function"==typeof window["after_submit"+e]&&window["after_submit"+e]();var t=jQuery("#form"+e+" .wdform-page-and-images").length;window["form_view_count"+e]=t,1<window["form_view_count"+e]&&(firstid=jQuery("#form"+e+" .wdform_page").first().attr("id"),firstid=firstid.split("form_view"),window["first_form_view"+e]=firstid[1],generate_page_nav(window["first_form_view"+e],e,window["form_view_count"+e])),fm_initilize_form(e),window["condition_js"+e](),jQuery(document).trigger("fm_document_ready")}function fm_check(e,t,i){if(!wd_is_filled(t,void 0,i))return!1;if(1==window["checkStripe"+t]){var r=jQuery("form[id='form"+t+"']");if("none"!=r.find(".StripeElement").first().closest(".wdform-page-and-images").css("display")&&"none"!=r.find(".StripeElement").first().parents(".wdform_row").css("display")&&0==wdfm_call_stripe(!1))return!1}return!!wd_check_regExp(t)&&(!!wd_check_price_min_max(t)&&(!!wd_spinner_check(t)&&(!!wd_file_upload_check(t)&&(!!wd_check_min_date_dob(t)&&0!=window["check_js"+t](e,t)))))}function fmRecaptchaInit(e){void 0===e&&(e=0),jQuery(".g-recaptcha").each(function(){if(type=jQuery(this).attr("data-size"),jQuery(this).attr("data-render",1),"invisible"==type)i=jQuery(this).attr("data-form_id"),grecaptcha.render(jQuery(this).attr("id"),{sitekey:jQuery(this).attr("data-sitekey"),badge:jQuery(this).attr("data-badge"),callback:function(){fm_submit(i)}});else if("v3"==type){if("undefined"==jQuery(this).attr("data-sitekey")||""==jQuery(this).attr("data-sitekey"))return;var t=jQuery(this).attr("data-id"),i=jQuery(this).attr("data-form-id"),e=jQuery(this).attr("data-sitekey");grecaptcha.ready(function(){grecaptcha.execute(e).then(function(e){document.getElementById("recaptchaV3Response_"+i+t).value=e})})}else grecaptcha.render(jQuery(this).attr("id"),{sitekey:jQuery(this).attr("data-sitekey"),theme:"light"})})}function wd_change_state_input(e,t){if(document.getElementById(e+"_country"+t)&&document.getElementById(e+"_state"+t)){var i=!1,r=document.getElementById(e+"_state"+t);if("United States"==document.getElementById(e+"_country"+t).value){var n=document.createElement("select"),a=fm_objectL10n.states;for(var o in a){(s=document.createElement("option")).setAttribute("value",o),s.innerHTML=a[o],n.appendChild(s)}i=!0}else if("Canada"==document.getElementById(e+"_country"+t).value){n=document.createElement("select"),a=fm_objectL10n.provinces;for(var o in a){var s;(s=document.createElement("option")).setAttribute("value",o),s.innerHTML=a[o],n.appendChild(s)}i=!0}else if("SELECT"==document.getElementById(e+"_state"+t).tagName){n=document.createElement("input");i=!0}if(i){n.setAttribute("type","text"),n.setAttribute("id",e+"_state"+t),n.setAttribute("name","wdform_"+(parseInt(e.replace("wdform_",""))+3)+"_state"+t),n.setAttribute("class","wd-width-100");var d=r.parentNode;d.removeChild(r),d.insertBefore(n,d.firstChild)}}}function fm_privacy_policy_check(e){var t=jQuery(e),i=t.parents(".wdform_row").find(".button-submit");t.is(":checked")?i.prop("disabled",!1):i.prop("disabled",!0)}function fm_html_entities(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function validate_received_data_from_url(){new URLSearchParams(window.location.search).forEach(function(e,t){jQuery("#"+t).each(function(){jQuery(this).keyup(),jQuery(this).keydown(),jQuery(this).trigger("change")})})}jQuery(document).on("mouseenter",".sel-imul",function(){selenter=!0}),jQuery(document).on("mouseleave",".sel-imul",function(){selenter=!1}),jQuery(document).click(function(){selenter||(jQuery(".sel-options").hide(),jQuery(".sel-imul").removeClass("act"))}),function(e){"object"==typeof module&&module.exports?module.exports=e():window.intlTelInput=e()}(function(m){"use strict";return function(){function r(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}for(var a=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","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 (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],e=0;e<a.length;e++){var t=a[e];a[e]={name:t[0],iso2:t[1],dialCode:t[2],priority:t[3]||0,areaCodes:t[4]||null}}var i={getInstance:function(e){var t=e.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[t]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=i);var o=0,s={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},d=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],l=function(e,t){for(var i=Object.keys(e),r=0;r<i.length;r++)t(i[r],e[i[r]])},u=function(t){l(window.intlTelInputGlobals.instances,function(e){window.intlTelInputGlobals.instances[e][t]()})},n=function(){function n(e,t){var i=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this.id=o++,this.a=e,this.b=null,this.c=null;var r=t||{};this.d={},l(s,function(e,t){i.d[e]=r.hasOwnProperty(e)?r[e]:t}),this.e=Boolean(e.getAttribute("placeholder"))}return e=n,(t=[{key:"_init",value:function(){var i=this;if(this.d.nationalMode&&(this.d.autoHideDialCode=!1),this.d.separateDialCode&&(this.d.autoHideDialCode=this.d.nationalMode=!1),this.g=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.g&&(document.body.classList.add("iti-mobile"),this.d.dropdownContainer||(this.d.dropdownContainer=document.body)),"undefined"!=typeof Promise){var e=new Promise(function(e,t){i.h=e,i.i=t}),t=new Promise(function(e,t){i.i0=e,i.i1=t});this.promise=Promise.all([e,t])}else this.h=this.i=function(){},this.i0=this.i1=function(){};this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}},{key:"_b",value:function(){this._d(),this._d2(),this._e(),this.d.localizedCountries&&this._d0(),(this.d.onlyCountries.length||this.d.localizedCountries)&&this.p.sort(this._d1)}},{key:"_c",value:function(e,t,i){t.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=t.length),this.q.hasOwnProperty(t)||(this.q[t]=[]);for(var r=0;r<this.q[t].length;r++)if(this.q[t][r]===e)return;var n=i!==m?i:this.q[t].length;this.q[t][n]=e}},{key:"_d",value:function(){if(this.d.onlyCountries.length){var t=this.d.onlyCountries.map(function(e){return e.toLowerCase()});this.p=a.filter(function(e){return-1<t.indexOf(e.iso2)})}else if(this.d.excludeCountries.length){var i=this.d.excludeCountries.map(function(e){return e.toLowerCase()});this.p=a.filter(function(e){return-1===i.indexOf(e.iso2)})}else this.p=a}},{key:"_d0",value:function(){for(var e=0;e<this.p.length;e++){var t=this.p[e].iso2.toLowerCase();this.d.localizedCountries.hasOwnProperty(t)&&(this.p[e].name=this.d.localizedCountries[t])}}},{key:"_d1",value:function(e,t){return e.name.localeCompare(t.name)}},{key:"_d2",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.q={};for(var e=0;e<this.p.length;e++){var t=this.p[e];this.dialCodes[t.dialCode]||(this.dialCodes[t.dialCode]=!0),this._c(t.iso2,t.dialCode,t.priority)}for(var i=0;i<this.p.length;i++){var r=this.p[i];if(r.areaCodes)for(var n=this.q[r.dialCode][0],a=0;a<r.areaCodes.length;a++){for(var o=r.areaCodes[a],s=1;s<o.length;s++){var d=r.dialCode+o.substr(0,s);this._c(n,d),this._c(r.iso2,d)}this._c(r.iso2,r.dialCode+o)}}}},{key:"_e",value:function(){this.preferredCountries=[];for(var e=0;e<this.d.preferredCountries.length;e++){var t=this.d.preferredCountries[e].toLowerCase(),i=this._y(t,!1,!0);i&&this.preferredCountries.push(i)}}},{key:"_e2",value:function(e,t,i){var r=document.createElement(e);return t&&l(t,function(e,t){return r.setAttribute(e,t)}),i&&i.appendChild(r),r}},{key:"_f",value:function(){this.a.hasAttribute("autocomplete")||this.a.form&&this.a.form.hasAttribute("autocomplete")||this.a.setAttribute("autocomplete","off");var e="iti";this.d.allowDropdown&&(e+=" iti--allow-dropdown"),this.d.separateDialCode&&(e+=" iti--separate-dial-code"),this.d.customContainer&&(e+=" ",e+=this.d.customContainer);var t=this._e2("div",{class:e});if(this.a.parentNode.insertBefore(t,this.a),this.k=this._e2("div",{class:"iti__flag-container"},t),t.appendChild(this.a),this.selectedFlag=this._e2("div",{class:"iti__selected-flag",role:"combobox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.k),this.l=this._e2("div",{class:"iti__flag"},this.selectedFlag),this.d.separateDialCode&&(this.t=this._e2("div",{class:"iti__selected-dial-code"},this.selectedFlag)),this.d.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.u=this._e2("div",{class:"iti__arrow"},this.selectedFlag),this.m=this._e2("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._g(this.preferredCountries,"iti__preferred",!0),this._e2("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.m)),this._g(this.p,"iti__standard"),this.d.dropdownContainer?(this.dropdown=this._e2("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.m)):this.k.appendChild(this.m)),this.d.hiddenInput){var i=this.d.hiddenInput,r=this.a.getAttribute("name");if(r){var n=r.lastIndexOf("[");-1!==n&&(i="".concat(r.substr(0,n),"[").concat(i,"]"))}this.hiddenInput=this._e2("input",{type:"hidden",name:i}),t.appendChild(this.hiddenInput)}}},{key:"_g",value:function(e,t,i){for(var r="",n=0;n<e.length;n++){var a=e[n],o=i?"-preferred":"";r+="<li class='iti__country ".concat(t,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(a.iso2).concat(o,"' role='option' data-dial-code='").concat(a.dialCode,"' data-country-code='").concat(a.iso2,"' aria-selected='false'>"),r+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(a.iso2,"'></div></div>"),r+="<span class='iti__country-name'>".concat(a.name,"</span>"),r+="<span class='iti__dial-code'>+".concat(a.dialCode,"</span>"),r+="</li>"}this.m.insertAdjacentHTML("beforeend",r)}},{key:"_h",value:function(){var e=this.a.getAttribute("value"),t=this.a.value,i=e&&"+"===e.charAt(0)&&(!t||"+"!==t.charAt(0))?e:t,r=this._5(i),n=this._w(i),a=this.d,o=a.initialCountry,s=a.nationalMode,d=a.autoHideDialCode,l=a.separateDialCode;r&&!n?this._v(i):"auto"!==o&&(o?this._z(o.toLowerCase()):r&&n?this._z("us"):(this.j=this.preferredCountries.length?this.preferredCountries[0].iso2:this.p[0].iso2,i||this._z(this.j)),i||s||d||l||(this.a.value="+".concat(this.s.dialCode))),i&&this._u(i)}},{key:"_i",value:function(){this._j(),this.d.autoHideDialCode&&this._l(),this.d.allowDropdown&&this._i2(),this.hiddenInput&&this._i0()}},{key:"_i0",value:function(){var e=this;this._a14=function(){e.hiddenInput.value=e.getNumber()},this.a.form&&this.a.form.addEventListener("submit",this._a14)}},{key:"_i1",value:function(){for(var e=this.a;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_i2",value:function(){var t=this;this._a9=function(e){t.m.classList.contains("iti__hide")?t.a.focus():e.preventDefault()};var e=this._i1();e&&e.addEventListener("click",this._a9),this._a10=function(){!t.m.classList.contains("iti__hide")||t.a.disabled||t.a.readOnly||t._n()},this.selectedFlag.addEventListener("click",this._a10),this._a11=function(e){t.m.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(e.key)&&(e.preventDefault(),e.stopPropagation(),t._n()),"Tab"===e.key&&t._2()},this.k.addEventListener("keydown",this._a11)}},{key:"_i3",value:function(){var e=this;this.d.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.d.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(e.d.utilsScript)}):this.i0(),"auto"===this.d.initialCountry?this._i4():this.h()}},{key:"_i4",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.d.geoIpLookup&&this.d.geoIpLookup(function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout(function(){return u("handleAutoCountry")})},function(){return u("rejectAutoCountryPromise")}))}},{key:"_j",value:function(){var e=this;this._a12=function(){e._v(e.a.value)&&e._m2CountryChange()},this.a.addEventListener("keyup",this._a12),this._a13=function(){setTimeout(e._a12)},this.a.addEventListener("cut",this._a13),this.a.addEventListener("paste",this._a13)}},{key:"_j2",value:function(e){var t=this.a.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_l",value:function(){var e=this;this._a8=function(){e._l2()},this.a.form&&this.a.form.addEventListener("submit",this._a8),this.a.addEventListener("blur",this._a8)}},{key:"_l2",value:function(){if("+"===this.a.value.charAt(0)){var e=this._m(this.a.value);e&&this.s.dialCode!==e||(this.a.value="")}}},{key:"_m",value:function(e){return e.replace(/\D/g,"")}},{key:"_m2",value:function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),this.a.dispatchEvent(t)}},{key:"_n",value:function(){this.m.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._o(),this.b&&(this._x(this.b,!1),this._3(this.b,!0)),this._p(),this.u.classList.add("iti__arrow--up"),this._m2("open:countrydropdown")}},{key:"_n2",value:function(e,t,i){i&&!e.classList.contains(t)?e.classList.add(t):!i&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_o",value:function(){var e=this;if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.g){var t=this.a.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,r=t.top+i,n=this.m.offsetHeight,a=r+this.a.offsetHeight+n<i+window.innerHeight,o=i<r-n;if(this._n2(this.m,"iti__country-list--dropup",!a&&o),this.d.dropdownContainer){var s=!a&&o?0:this.a.offsetHeight;this.dropdown.style.top="".concat(r+s,"px"),this.dropdown.style.left="".concat(t.left+document.body.scrollLeft,"px"),this._a4=function(){return e._2()},window.addEventListener("scroll",this._a4)}}}},{key:"_o2",value:function(e){for(var t=e;t&&t!==this.m&&!t.classList.contains("iti__country");)t=t.parentNode;return t===this.m?null:t}},{key:"_p",value:function(){var i=this;this._a0=function(e){var t=i._o2(e.target);t&&i._x(t,!1)},this.m.addEventListener("mouseover",this._a0),this._a1=function(e){var t=i._o2(e.target);t&&i._1(t)},this.m.addEventListener("click",this._a1);var e=!0;this._a2=function(){e||i._2(),e=!1},document.documentElement.addEventListener("click",this._a2);var t="",r=null;this._a3=function(e){e.preventDefault(),"ArrowUp"===e.key||"Up"===e.key||"ArrowDown"===e.key||"Down"===e.key?i._q(e.key):"Enter"===e.key?i._r():"Escape"===e.key?i._2():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e.key)&&(r&&clearTimeout(r),t+=e.key.toLowerCase(),i._s(t),r=setTimeout(function(){t=""},1e3))},document.addEventListener("keydown",this._a3)}},{key:"_q",value:function(e){var t="ArrowUp"===e||"Up"===e?this.c.previousElementSibling:this.c.nextElementSibling;t&&(t.classList.contains("iti__divider")&&(t="ArrowUp"===e||"Up"===e?t.previousElementSibling:t.nextElementSibling),this._x(t,!0))}},{key:"_r",value:function(){this.c&&this._1(this.c)}},{key:"_s",value:function(e){for(var t=0;t<this.p.length;t++)if(this._t(this.p[t].name,e)){var i=this.m.querySelector("#iti-".concat(this.id,"__item-").concat(this.p[t].iso2));this._x(i,!1),this._3(i,!0);break}}},{key:"_t",value:function(e,t){return e.substr(0,t.length).toLowerCase()===t}},{key:"_u",value:function(e){var t=e;if(this.d.formatOnDisplay&&window.intlTelInputUtils&&this.s){var i=!this.d.separateDialCode&&(this.d.nationalMode||"+"!==t.charAt(0)),r=intlTelInputUtils.numberFormat,n=r.NATIONAL,a=r.INTERNATIONAL,o=i?n:a;t=intlTelInputUtils.formatNumber(t,this.s.iso2,o)}t=this._7(t),this.a.value=t}},{key:"_v",value:function(e){var t=e,i=this.s.dialCode,r="1"===i;t&&this.d.nationalMode&&r&&"+"!==t.charAt(0)&&("1"!==t.charAt(0)&&(t="1".concat(t)),t="+".concat(t)),this.d.separateDialCode&&i&&"+"!==t.charAt(0)&&(t="+".concat(i).concat(t));var n=this._5(t,!0),a=this._m(t),o=null;if(n){var s=this.q[this._m(n)],d=-1!==s.indexOf(this.s.iso2)&&a.length<=n.length-1;if(!("1"===i&&this._w(a)||d))for(var l=0;l<s.length;l++)if(s[l]){o=s[l];break}}else"+"===t.charAt(0)&&a.length?o="":t&&"+"!==t||(o=this.j);return null!==o&&this._z(o)}},{key:"_w",value:function(e){var t=this._m(e);if("1"!==t.charAt(0))return!1;var i=t.substr(1,3);return-1!==d.indexOf(i)}},{key:"_x",value:function(e,t){var i=this.c;i&&i.classList.remove("iti__highlight"),this.c=e,this.c.classList.add("iti__highlight"),t&&this.c.focus()}},{key:"_y",value:function(e,t,i){for(var r=t?a:this.p,n=0;n<r.length;n++)if(r[n].iso2===e)return r[n];if(i)return null;throw new Error("No country data for '".concat(e,"'"))}},{key:"_z",value:function(e){var t=this.s.iso2?this.s:{};this.s=e?this._y(e,!1,!1):{},this.s.iso2&&(this.j=this.s.iso2),this.l.setAttribute("class","iti__flag iti__".concat(e));var i=e?"".concat(this.s.name,": +").concat(this.s.dialCode):"Unknown";if(this.selectedFlag.setAttribute("title",i),this.d.separateDialCode){var r=this.s.dialCode?"+".concat(this.s.dialCode):"";this.t.innerHTML=r;var n=this.selectedFlag.offsetWidth||this._z2();this.a.style.paddingLeft="".concat(n+6,"px")}if(this._0(),this.d.allowDropdown){var a=this.b;if(a&&(a.classList.remove("iti__active"),a.setAttribute("aria-selected","false")),e){var o=this.m.querySelector("#iti-".concat(this.id,"__item-").concat(e,"-preferred"))||this.m.querySelector("#iti-".concat(this.id,"__item-").concat(e));o.setAttribute("aria-selected","true"),o.classList.add("iti__active"),this.b=o,this.selectedFlag.setAttribute("aria-activedescendant",o.getAttribute("id"))}}return t.iso2!==e}},{key:"_z2",value:function(){var e=this.a.parentNode.cloneNode();e.style.visibility="hidden",document.body.appendChild(e);var t=this.k.cloneNode();e.appendChild(t);var i=this.selectedFlag.cloneNode(!0);t.appendChild(i);var r=i.offsetWidth;return e.parentNode.removeChild(e),r}},{key:"_0",value:function(){var e="aggressive"===this.d.autoPlaceholder||!this.e&&"polite"===this.d.autoPlaceholder;if(window.intlTelInputUtils&&e){var t=intlTelInputUtils.numberType[this.d.placeholderNumberType],i=this.s.iso2?intlTelInputUtils.getExampleNumber(this.s.iso2,this.d.nationalMode,t):"";i=this._7(i),"function"==typeof this.d.customPlaceholder&&(i=this.d.customPlaceholder(i,this.s)),this.a.setAttribute("placeholder",i)}}},{key:"_1",value:function(e){var t=this._z(e.getAttribute("data-country-code"));this._2(),this._4(e.getAttribute("data-dial-code"),!0),this.a.focus();var i=this.a.value.length;this.a.setSelectionRange(i,i),t&&this._m2CountryChange()}},{key:"_2",value:function(){this.m.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),document.documentElement.removeEventListener("click",this._a2),this.m.removeEventListener("mouseover",this._a0),this.m.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.g||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._m2("close:countrydropdown")}},{key:"_3",value:function(e,t){var i=this.m,r=window.pageYOffset||document.documentElement.scrollTop,n=i.offsetHeight,a=i.getBoundingClientRect().top+r,o=a+n,s=e.offsetHeight,d=e.getBoundingClientRect().top+r,l=d+s,u=d-a+i.scrollTop,c=n/2-s/2;if(d<a)t&&(u-=c),i.scrollTop=u;else if(o<l){t&&(u+=c);var m=n-s;i.scrollTop=u-m}}},{key:"_4",value:function(e,t){var i,r=this.a.value,n="+".concat(e);if("+"===r.charAt(0)){var a=this._5(r);i=a?r.replace(a,n):n}else{if(this.d.nationalMode||this.d.separateDialCode)return;if(r)i=n+r;else{if(!t&&this.d.autoHideDialCode)return;i=n}}this.a.value=i}},{key:"_5",value:function(e,t){var i="";if("+"===e.charAt(0))for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(!isNaN(parseInt(a,10))){if(r+=a,t)this.q[r]&&(i=e.substr(0,n+1));else if(this.dialCodes[r]){i=e.substr(0,n+1);break}if(r.length===this.countryCodeMaxLen)break}}return i}},{key:"_6",value:function(){var e=this.a.value.trim(),t=this.s.dialCode,i=this._m(e);return(this.d.separateDialCode&&"+"!==e.charAt(0)&&t&&i?"+".concat(t):"")+e}},{key:"_7",value:function(e){var t=e;if(this.d.separateDialCode){var i=this._5(t);if(i){var r=" "===t[(i="+".concat(this.s.dialCode)).length]||"-"===t[i.length]?i.length+1:i.length;t=t.substr(r)}}return this._j2(t)}},{key:"_m2CountryChange",value:function(){this._m2("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.d.initialCountry&&(this.j=window.intlTelInputGlobals.autoCountry,this.a.value||this.setCountry(this.j),this.h())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.a.value&&this._u(this.a.value),this._0()),this.i0()}},{key:"destroy",value:function(){var e=this.a.form;if(this.d.allowDropdown){this._2(),this.selectedFlag.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);var t=this._i1();t&&t.removeEventListener("click",this._a9)}this.hiddenInput&&e&&e.removeEventListener("submit",this._a14),this.d.autoHideDialCode&&(e&&e.removeEventListener("submit",this._a8),this.a.removeEventListener("blur",this._a8)),this.a.removeEventListener("keyup",this._a12),this.a.removeEventListener("cut",this._a13),this.a.removeEventListener("paste",this._a13),this.a.removeAttribute("data-intl-tel-input-id");var i=this.a.parentNode;i.parentNode.insertBefore(this.a,i),i.parentNode.removeChild(i),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._6(),this.s.iso2):""}},{key:"getNumber",value:function(e){if(window.intlTelInputUtils){var t=this.s.iso2;return intlTelInputUtils.formatNumber(this._6(),t,e)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._6(),this.s.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.s}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var e=this.s.iso2;return intlTelInputUtils.getValidationError(this._6(),e)}return-99}},{key:"isValidNumber",value:function(){var e=this._6().trim(),t=this.d.nationalMode?this.s.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null}},{key:"setCountry",value:function(e){var t=e.toLowerCase();this.l.classList.contains("iti__".concat(t))||(this._z(t),this._4(this.s.dialCode,!1),this._m2CountryChange())}},{key:"setNumber",value:function(e){var t=this._v(e);this._u(e),t&&this._m2CountryChange()}},{key:"setPlaceholderNumberType",value:function(e){this.d.placeholderNumberType=e,this._0()}}])&&r(e.prototype,t),i&&r(e,i),n;var e,t,i}();i.getCountryData=function(){return a};var c=function(e,t,i){var r=document.createElement("script");r.onload=function(){u("handleUtils"),t&&t()},r.onerror=function(){u("rejectUtilsScriptPromise"),i&&i()},r.className="iti-load-utils",r.async=!0,r.src=e,document.body.appendChild(r)};return i.loadUtils=function(i){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(e,t){return c(i,e,t)});c(i)}return null},i.defaults=s,i.version="17.0.13",function(e,t){var i=new n(e,t);return i._init(),e.setAttribute("data-intl-tel-input-id",i.id),window.intlTelInputGlobals.instances[i.id]=i}}()});var gmapdata=new Array,gmapmarker=new Array;function if_gmap_init(e,t){if(document.getElementById(e+"_element"+t)){map=document.getElementById(e+"_element"+t);var i=parseInt(map.getAttribute("zoom")),r=map.getAttribute("center_x"),n=map.getAttribute("center_y"),a=new google.maps.LatLng(n,r);return gmapdata[e]=new google.maps.Map(document.getElementById(e+"_element"+t),{center:a,zoom:i,mapTypeId:"roadmap"}),gmapmarker[e]=new Array,!1}draggab=!1,map=document.getElementById(e);i=parseInt(map.getAttribute("zoom")),r=map.getAttribute("long"),n=map.getAttribute("lat"),a=new google.maps.LatLng(n,r);return gmapdata=new google.maps.Map(document.getElementById(e),{center:a,zoom:i,mapTypeId:"roadmap"}),geocoder=new google.maps.Geocoder,(gmapmarker=new google.maps.Marker({map:gmapdata,position:a,draggable:draggab})).setDraggable(draggab),infoW=new google.maps.InfoWindow,google.maps.event.addListener(gmapdata,"mouseover",function(e){document.getElementById("longval")||(gmapmarker.draggable=!1)}),google.maps.event.addListener(gmapdata,"click",function(e){document.getElementById("longval")&&(document.getElementById("longval").value=e.latLng.lng().toFixed(6),document.getElementById("latval").value=e.latLng.lat().toFixed(6),gmapmarker.setPosition(e.latLng),if_gmap_updateMap(),geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)}))}),google.maps.event.addListener(gmapmarker,"drag",function(){document.getElementById("longval")&&(geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)}),if_gmap_updateMap(),document.getElementById("latval").value=gmapmarker.getPosition().lat().toFixed(6),document.getElementById("longval").value=gmapmarker.getPosition().lng().toFixed(6))}),google.maps.event.addListener(gmapmarker,"click",function(){infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(e).getAttribute("info")+"</div>");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),document.getElementById("longval")&&(document.getElementById("longval").value=r,document.getElementById("latval").value=n,geocoder.geocode({latLng:gmapmarker.getPosition()},function(e,t){t==google.maps.GeocoderStatus.OK&&e[0]&&document.getElementById("addrval")&&(document.getElementById("addrval").value=e[0].formatted_address)})),!1}function add_marker_on_map(e,t,i,r,n,a,o){var s=new google.maps.LatLng(r,i);return gmapmarker[e][t]=new google.maps.Marker({map:gmapdata[e],position:s,draggable:o}),gmapmarker[e][t].setDraggable(o),o&&google.maps.event.addListener(gmapmarker[e][t],"drag",function(){document.getElementById(e+"_lat"+a).value=gmapmarker[e][t].getPosition().lat().toFixed(6),document.getElementById(e+"_long"+a).value=gmapmarker[e][t].getPosition().lng().toFixed(6)}),infoW=new google.maps.InfoWindow,google.maps.event.addListener(gmapmarker[e][t],"click",function(){infoW.setContent('<div style="overflow: hidden;">'+document.getElementById(e+"_element"+a).getAttribute("info"+t)+"</div>");infoW.setOptions({maxWidth:"300"}),infoW.open(this.getMap(),this)}),!1}!function(I){function i(e,t){var a=this,o=I.extend({},I.fn.signaturePad.defaults,t),s=I(e),i=I(o.canvas,s),d=i.get(0),l=null,u={x:null,y:null},c=[],m=!1,r=!1,n=!1,f=!1,_=30,h=_,p=0;function y(){clearTimeout(m),r=m=!1}function v(e,t){var i,r,n;if(e.preventDefault(),i=I(e.target).offset(),clearTimeout(m),m=!1,n=void 0!==e.targetTouches?(r=Math.floor(e.targetTouches[0].pageX-i.left),Math.floor(e.targetTouches[0].pageY-i.top)):(r=Math.floor(e.pageX-i.left),Math.floor(e.pageY-i.top)),u.x===r&&u.y===n)return!0;null===u.x&&(u.x=r),null===u.y&&(u.y=n),t&&(n+=t),l.beginPath(),l.moveTo(u.x,u.y),l.lineTo(r,n),l.lineCap=o.penCap,l.stroke(),l.closePath(),c.push({lx:r,ly:n,mx:u.x,my:u.y}),u.x=r,u.y=n,o.onDraw&&"function"==typeof o.onDraw&&o.onDraw.apply(a)}function w(){g()}function g(e){e?v(e,1):(n?i.each(function(){this.removeEventListener("touchmove",v)}):i.unbind("mousemove.signaturepad"),0<c.length&&o.onDrawEnd&&"function"==typeof o.onDrawEnd&&o.onDrawEnd.apply(a)),u.x=null,u.y=null,o.output&&0<c.length&&I(o.output,s).val(JSON.stringify(c))}function b(){l.clearRect(0,0,d.width,d.height),l.fillStyle=o.bgColour,l.fillRect(0,0,d.width,d.height),o.displayOnly||o.lineWidth&&(l.beginPath(),l.lineWidth=o.lineWidth,l.strokeStyle=o.lineColour,l.moveTo(o.lineMargin,o.lineTop),l.lineTo(d.width-o.lineMargin,o.lineTop),l.stroke(),l.closePath()),l.lineWidth=o.penWidth,l.strokeStyle=o.penColour,I(o.output,s).val(""),c=[],g()}function j(e,t){null==u.x?v(e,1):v(e,t)}function k(e,t){n?t.addEventListener("touchmove",j,!1):i.bind("mousemove.signaturepad",j),v(e,1)}function Q(e){if(f)return!1;f=!0,I("input").blur(),void 0!==e.targetTouches&&(n=!0),n?(i.each(function(){this.addEventListener("touchend",w,!1),this.addEventListener("touchcancel",w,!1)}),i.unbind("mousedown.signaturepad")):(I(document).bind("mouseup.signaturepad",function(){r&&(g(),y())}),i.bind("mouseleave.signaturepad",function(e){r&&g(e),r&&!m&&(m=setTimeout(function(){g(),y()},500))}),i.each(function(){this.ontouchstart=null}))}function x(){I(o.typed,s).hide(),b(),i.each(function(){this.addEventListener("touchstart",function(e){e.preventDefault(),r=!0,Q(e),k(e,this)})}),i.bind("mousedown.signaturepad",function(e){if(e.preventDefault(),1<e.which)return!1;r=!0,Q(e),k(e)}),I(o.clear,s).bind("click.signaturepad",function(e){e.preventDefault(),b()}),I(o.typeIt,s).bind("click.signaturepad",function(e){e.preventDefault(),C()}),I(o.drawIt,s).unbind("click.signaturepad"),I(o.drawIt,s).bind("click.signaturepad",function(e){e.preventDefault()}),I(o.typeIt,s).removeClass(o.currentClass),I(o.drawIt,s).addClass(o.currentClass),I(o.sig,s).addClass(o.currentClass),I(o.typeItDesc,s).hide(),I(o.drawItDesc,s).show(),I(o.clear,s).show()}function C(){b(),f=!1,i.each(function(){this.removeEventListener&&(this.removeEventListener("touchend",w),this.removeEventListener("touchcancel",w),this.removeEventListener("touchmove",v)),this.ontouchstart&&(this.ontouchstart=null)}),I(document).unbind("mouseup.signaturepad"),i.unbind("mousedown.signaturepad"),i.unbind("mousemove.signaturepad"),i.unbind("mouseleave.signaturepad"),I(o.clear,s).unbind("click.signaturepad"),I(o.typed,s).show(),I(o.drawIt,s).bind("click.signaturepad",function(e){e.preventDefault(),x()}),I(o.typeIt,s).unbind("click.signaturepad"),I(o.typeIt,s).bind("click.signaturepad",function(e){e.preventDefault()}),I(o.output,s).val(""),I(o.drawIt,s).removeClass(o.currentClass),I(o.typeIt,s).addClass(o.currentClass),I(o.sig,s).removeClass(o.currentClass),I(o.drawItDesc,s).hide(),I(o.clear,s).hide(),I(o.typeItDesc,s).show(),h=_=I(o.typed,s).css("font-size").replace(/px/,"")}function S(e){var t=I(o.typed,s),i=I.trim(e.replace(/>/g,"&gt;").replace(/</g,"&lt;")),r=p,n=.5*h;if(p=i.length,t.html(i),i){if(r<p&&t.outerWidth()>d.width)for(;t.outerWidth()>d.width;)h--,t.css("font-size",h+"px");if(p<r&&t.outerWidth()+n<d.width&&h<_)for(;t.outerWidth()+n<d.width&&h<_;)h++,t.css("font-size",h+"px")}else t.css("font-size",_+"px")}function M(){var e=!0,t={drawInvalid:!1,nameInvalid:!1},i=[s,o],r=[t,s,o];return o.onBeforeValidate&&"function"==typeof o.onBeforeValidate?o.onBeforeValidate.apply(a,i):function(e,t){I("p."+t.errorClass,e).remove(),e.removeClass(t.errorClass),I("input, label",e).removeClass(t.errorClass)}.apply(a,i),o.drawOnly&&c.length<1&&(e=!(t.drawInvalid=!0)),""===I(o.name,s).val()&&(e=!(t.nameInvalid=!0)),o.onFormError&&"function"==typeof o.onFormError?o.onFormError.apply(a,r):function(e,t,i){e.nameInvalid&&(t.prepend(['<p class="',i.errorClass,'">',i.errorMessage,"</p>"].join("")),I(i.name,t).focus(),I(i.name,t).addClass(i.errorClass),I("label[for="+I(i.name).attr("id")+"]",t).addClass(i.errorClass)),e.drawInvalid&&t.prepend(['<p class="',i.errorClass,'">',i.errorMessageDraw,"</p>"].join(""))}.apply(a,r),e}function D(e,t,i){for(var r in e)"object"==typeof e[r]&&(t.beginPath(),t.moveTo(e[r].mx,e[r].my),t.lineTo(e[r].lx,e[r].ly),t.lineCap=o.penCap,t.stroke(),t.closePath(),i&&e[r].lx&&c.push({lx:e[r].lx,ly:e[r].ly,mx:e[r].mx,my:e[r].my}))}I.extend(a,{signaturePad:"2.5.2",init:function(){parseFloat((/CPU.+OS ([0-9_]{3}).*AppleWebkit.*Mobile/i.exec(navigator.userAgent)||[0,"4_2"])[1].replace("_","."))<4.1&&(I.fn.Oldoffset=I.fn.offset,I.fn.offset=function(){var e=I(this).Oldoffset();return e.top-=window.scrollY,e.left-=window.scrollX,e}),I(o.typed,s).bind("selectstart.signaturepad",function(e){return I(e.target).is(":input")}),i.bind("selectstart.signaturepad",function(e){return I(e.target).is(":input")}),!d.getContext&&FlashCanvas&&FlashCanvas.initElement(d),d.getContext&&(l=d.getContext("2d"),I(o.sig,s).show(),o.displayOnly||(o.drawOnly||(I(o.name,s).bind("keyup.signaturepad",function(){S(I(this).val())}),I(o.name,s).bind("blur.signaturepad",function(){S(I(this).val())}),I(o.drawIt,s).bind("click.signaturepad",function(e){e.preventDefault(),x()})),o.drawOnly||"drawIt"===o.defaultAction?x():C(),o.validateFields&&(I(e).is("form")?I(e).bind("submit.signaturepad",function(){return M()}):I(e).parents("form").bind("submit.signaturepad",function(){return M()})),I(o.sigNav,s).show()))},updateOptions:function(e){I.extend(o,e)},regenerate:function(e){a.clearCanvas(),I(o.typed,s).hide(),"string"==typeof e&&(e=JSON.parse(e)),D(e,l,!0),o.output&&0<I(o.output,s).length&&I(o.output,s).val(JSON.stringify(c))},clearCanvas:function(){b()},getSignature:function(){return c},getSignatureString:function(){return JSON.stringify(c)},getSignatureImage:function(){var e,t=document.createElement("canvas"),i=null;return t.style.position="absolute",t.style.top="-999em",t.width=d.width,t.height=d.height,document.body.appendChild(t),!t.getContext&&FlashCanvas&&FlashCanvas.initElement(t),(i=t.getContext("2d")).fillStyle=o.bgColour,i.fillRect(0,0,d.width,d.height),i.lineWidth=o.penWidth,i.strokeStyle=o.penColour,D(c,i),e=t.toDataURL.apply(t,arguments),document.body.removeChild(t),t=null,e},validateForm:function(){return M()}})}I.fn.signaturePad=function(e){var t=null;return this.each(function(){I.data(this,"plugin-signaturePad")?(t=I.data(this,"plugin-signaturePad")).updateOptions(e):((t=new i(this,e)).init(),I.data(this,"plugin-signaturePad",t))}),t},I.fn.signaturePad.defaults={defaultAction:"typeIt",displayOnly:!1,drawOnly:!1,canvas:"canvas",sig:".sig",sigNav:".sigNav",bgColour:"#ffffff",penColour:"#145394",penWidth:2,penCap:"round",lineColour:"#ccc",lineWidth:2,lineMargin:5,lineTop:35,name:".name",typed:".typed",clear:".clearButton",typeIt:".typeIt a",drawIt:".drawIt a",typeItDesc:".typeItDesc",drawItDesc:".drawItDesc",output:".output",currentClass:"current",validateFields:!0,errorClass:"error",errorMessage:"Please enter your name",errorMessageDraw:"Please sign the document",onBeforeValidate:null,onFormError:null,onDraw:null,onDrawEnd:null}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e;function y(){return e.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function d(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(v(e,t))return;return 1}function o(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){for(var i=[],r=e.length,n=0;n<r;++n)i.push(t(e[n],n));return i}function f(e,t){for(var i in t)v(t,i)&&(e[i]=t[i]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,i,r){return Qt(e,t,i,r,!0).utc()}function w(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function h(e){if(null==e._isValid){var t=w(e),i=r.call(t.parsedDateParts,function(e){return null!=e});i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function p(e){var t=_(NaN);return null!=e?f(w(t),e):w(t).userInvalidated=!0,t}var r=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,r=0;r<i;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},g=y.momentProperties=[],t=!1;function b(e,t){var i,r,n,a=g.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=w(t)),o(t._locale)||(e._locale=t._locale),0<a)for(i=0;i<a;i++)o(n=t[r=g[i]])||(e[r]=n);return e}function j(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,y.updateOffset(this),t=!1)}function k(e){return e instanceof j||null!=e&&null!=e._isAMomentObject}function Q(e){!1===y.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function i(a,o){var s=!0;return f(function(){if(null!=y.deprecationHandler&&y.deprecationHandler(null,a),s){for(var e,t,i=[],r=arguments.length,n=0;n<r;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])v(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];i.push(e)}Q(a+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return o.apply(this,arguments)},o)}var n={};function a(e,t){null!=y.deprecationHandler&&y.deprecationHandler(e,t),n[e]||(Q(t),n[e]=!0)}function x(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var i,r=f({},e);for(i in t)v(t,i)&&(d(e[i])&&d(t[i])?(r[i]={},f(r[i],e[i]),f(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in e)v(e,i)&&!v(t,i)&&d(e[i])&&(r[i]=f({},r[i]));return r}function S(e){null!=e&&this.set(e)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;var M=Object.keys||function(e){var t,i=[];for(t in e)v(e,t)&&i.push(t);return i};function D(e,t,i){var r=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,T=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},Y={};function N(e,t,i,r){var n="string"==typeof r?function(){return this[r]()}:r;e&&(Y[e]=n),t&&(Y[t[0]]=function(){return D(n.apply(this,arguments),t[1],t[2])}),i&&(Y[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function O(e,t){return e.isValid()?(t=L(t,e.localeData()),E[t]=E[t]||function(r){for(var e,n=r.match(I),t=0,a=n.length;t<a;t++)Y[n[t]]?n[t]=Y[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",i=0;i<a;i++)t+=x(n[i])?n[i].call(e,r):n[i];return t}}(t),E[t](e)):e.localeData().invalidDate()}function L(e,t){var i=5;function r(e){return t.longDateFormat(e)||e}for(T.lastIndex=0;0<=i&&T.test(e);)e=e.replace(T,r),T.lastIndex=0,--i;return e}var A={};function P(e,t){var i=e.toLowerCase();A[i]=A[i+"s"]=A[t]=e}function F(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function B(e){var t,i,r={};for(i in e)v(e,i)&&(t=F(i))&&(r[t]=e[i]);return r}var R={};function U(e,t){R[e]=t}function W(e){return e%4==0&&e%100!=0||e%400==0}function q(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function H(e){var t=0;return 0!=(e=+e)&&isFinite(e)?q(e):t}function G(t,i){return function(e){return null!=e?(V(this,t,e),y.updateOffset(this,i),this):z(this,t)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function V(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&W(e.year())&&1===e.month()&&29===e.date()?(i=H(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Se(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var Z=/\d/,$=/\d\d/,J=/\d{3}/,K=/\d{4}/,X=/[+-]?\d{6}/,ee=/\d\d?/,te=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,re=/\d{1,3}/,ne=/\d{1,4}/,ae=/[+-]?\d{1,6}/,oe=/\d+/,se=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ce(e,i,r){fe[e]=x(i)?i:function(e,t){return e&&r?r:i}}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={},_e={};function he(e,i){var t,r,n=i;for("string"==typeof e&&(e=[e]),u(i)&&(n=function(e,t){t[i]=H(e)}),r=e.length,t=0;t<r;t++)_e[e[t]]=n}function pe(e,n){he(e,function(e,t,i,r){i._w=i._w||{},n(e,i._w,i,r)})}var ye,ve=0,we=1,ge=2,be=3,je=4,ke=5,Qe=6,xe=7,Ce=8;function Se(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%(i=12)+i)%i;return e+=(t-i)/12,1==i?W(e)?29:28:31-i%7%2}ye=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),U("month",8),ce("M",ee),ce("MM",ee,$),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[we]=H(e)-1}),he(["MMM","MMMM"],function(e,t,i,r){null!=(r=i._locale.monthsParse(e,r,i._strict))?t[we]=r:w(i).invalidMonth=e});var Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=ue,Ee=ue;function Ye(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=H(t);else if(!u(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function Ne(e){return null!=e?(Ye(this,e),y.updateOffset(this,!0),this):z(this,"Month")}function Oe(){function e(e,t){return t.length-e.length}for(var t,i=[],r=[],n=[],a=0;a<12;a++)t=_([2e3,a]),i.push(this.monthsShort(t,"")),r.push(this.months(t,"")),n.push(this.months(t,"")),n.push(this.monthsShort(t,""));for(i.sort(e),r.sort(e),n.sort(e),a=0;a<12;a++)i[a]=me(i[a]),r[a]=me(r[a]);for(a=0;a<24;a++)n[a]=me(n[a]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Le(e){return W(e)?366:365}N("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),P("year","y"),U("year",1),ce("Y",se),ce("YY",ee,$),ce("YYYY",ne,K),ce("YYYYY",ae,X),ce("YYYYYY",ae,X),he(["YYYYY","YYYYYY"],ve),he("YYYY",function(e,t){t[ve]=2===e.length?y.parseTwoDigitYear(e):H(e)}),he("YY",function(e,t){t[ve]=y.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ve]=parseInt(e,10)}),y.parseTwoDigitYear=function(e){return H(e)+(68<H(e)?1900:2e3)};var Ae=G("FullYear",!0);function Pe(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,i){return(i=7+t-i)-(7+Pe(e,0,i).getUTCDay()-t)%7-1}function Be(e,t,i,r,n){var a;i=(t=1+7*(t-1)+(7+i-r)%7+Fe(e,r,n))<=0?Le(a=e-1)+t:t>Le(e)?(a=e+1,t-Le(e)):(a=e,t);return{year:a,dayOfYear:i}}function Re(e,t,i){var r,n,a=Fe(e.year(),t,i);return(a=Math.floor((e.dayOfYear()-a-1)/7)+1)<1?r=a+Ue(n=e.year()-1,t,i):a>Ue(e.year(),t,i)?(r=a-Ue(e.year(),t,i),n=e.year()+1):(n=e.year(),r=a),{week:r,year:n}}function Ue(e,t,i){var r=Fe(e,t,i);t=Fe(e+1,t,i);return(Le(e)-r+t)/7}function We(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),U("week",5),U("isoWeek",5),ce("w",ee),ce("ww",ee,$),ce("W",ee),ce("WW",ee,$),pe(["w","ww","W","WW"],function(e,t,i,r){t[r.substr(0,1)]=H(e)}),N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),ce("d",ee),ce("e",ee),ce("E",ee),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),pe(["dd","ddd","dddd"],function(e,t,i,r){null!=(r=i._locale.weekdaysParse(e,r,i._strict))?t.d=r:w(i).invalidWeekday=e}),pe(["d","e","E"],function(e,t,i,r){t[r]=H(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=ue,Ve=ue,Ze=ue;function $e(){function e(e,t){return t.length-e.length}for(var t,i,r,n=[],a=[],o=[],s=[],d=0;d<7;d++)r=_([2e3,1]).day(d),t=me(this.weekdaysMin(r,"")),i=me(this.weekdaysShort(r,"")),r=me(this.weekdays(r,"")),n.push(t),a.push(i),o.push(r),s.push(t),s.push(i),s.push(r);n.sort(e),a.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Je(){return this.hours()%12||12}function Ke(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Xe(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Je),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+Je.apply(this)+D(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Je.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),P("hour","h"),U("hour",13),ce("a",Xe),ce("A",Xe),ce("H",ee),ce("h",ee),ce("k",ee),ce("HH",ee,$),ce("hh",ee,$),ce("kk",ee,$),ce("hmm",te),ce("hmmss",ie),ce("Hmm",te),ce("Hmmss",ie),he(["H","HH"],be),he(["k","kk"],function(e,t,i){e=H(e),t[be]=24===e?0:e}),he(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),he(["h","hh"],function(e,t,i){t[be]=H(e),w(i).bigHour=!0}),he("hmm",function(e,t,i){var r=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r)),w(i).bigHour=!0}),he("hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r,2)),t[ke]=H(e.substr(n)),w(i).bigHour=!0}),he("Hmm",function(e,t,i){var r=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r))}),he("Hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[be]=H(e.substr(0,r)),t[je]=H(e.substr(r,2)),t[ke]=H(e.substr(n))}),ue=G("Hours",!0);var et,tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Me,monthsShort:De,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ge,weekdaysShort:He,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function nt(e){return e&&e.toLowerCase().replace("_","-")}function at(e){var t;if(void 0===it[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=et._abbr,require("./locale/"+e),ot(t)}catch(t){it[e]=null}return it[e]}function ot(e,t){return e&&((t=o(t)?dt(e):st(e,t))?et=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),et._abbr}function st(e,t){if(null===t)return delete it[e],null;var i,r=tt;if(t.abbr=e,null!=it[e])a("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])r=it[t.parentLocale]._config;else{if(null==(i=at(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;r=i._config}return it[e]=new S(C(r,t)),rt[e]&&rt[e].forEach(function(e){st(e.name,e.config)}),ot(e),it[e]}function dt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return et;if(!s(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,i,r,n,a=0;a<e.length;){for(t=(n=nt(e[a]).split("-")).length,i=(i=nt(e[a+1]))?i.split("-"):null;0<t;){if(r=at(n.slice(0,t).join("-")))return r;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}(n,i)>=t-1)break;t--}a++}return et}(e)}function lt(e){var t=e._a;return t&&-2===w(e).overflow&&(t=t[we]<0||11<t[we]?we:t[ge]<1||t[ge]>Se(t[ve],t[we])?ge:t[be]<0||24<t[be]||24===t[be]&&(0!==t[je]||0!==t[ke]||0!==t[Qe])?be:t[je]<0||59<t[je]?je:t[ke]<0||59<t[ke]?ke:t[Qe]<0||999<t[Qe]?Qe:-1,w(e)._overflowDayOfYear&&(t<ve||ge<t)&&(t=ge),w(e)._overflowWeeks&&-1===t&&(t=xe),w(e)._overflowWeekday&&-1===t&&(t=Ce),w(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,i,r,n,a,o,s=e._i,d=ut.exec(s)||ct.exec(s),l=(s=ft.length,_t.length);if(d){for(w(e).iso=!0,t=0,i=s;t<i;t++)if(ft[t][1].exec(d[1])){n=ft[t][0],r=!1!==ft[t][2];break}if(null==n)e._isValid=!1;else{if(d[3]){for(t=0,i=l;t<i;t++)if(_t[t][1].exec(d[3])){a=(d[2]||" ")+_t[t][0];break}if(null==a)return void(e._isValid=!1)}if(r||null==a){if(d[4]){if(!mt.exec(d[4]))return void(e._isValid=!1);o="Z"}e._f=n+(a||"")+(o||""),jt(e)}else e._isValid=!1}}else e._isValid=!1}function wt(e){var t,i,r,n,a,o,s,d,l,u,c,m=pt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));m?(a=m[4],o=m[3],s=m[2],d=m[5],l=m[6],u=m[7],a=[(c=a,(c=parseInt(c,10))<=49?2e3+c:c<=999?1900+c:c),De.indexOf(o),parseInt(s,10),parseInt(d,10),parseInt(l,10)],u&&a.push(parseInt(u,10)),r=t=a,n=e,(i=m[1])&&He.indexOf(i)!==new Date(r[0],r[1],r[2]).getDay()?(w(n).weekdayMismatch=!0,n._isValid=!1):(e._a=t,e._tzm=(i=m[8],r=m[9],n=m[10],i?yt[i]:r?0:((i=parseInt(n,10))-(r=i%100))/100*60+r),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),w(e).rfc2822=!0)):e._isValid=!1}function gt(e,t,i){return null!=e?e:null!=t?t:i}function bt(e){var t,i,r,n,a,o,s,d,l,u,c,m=[];if(!e._d){for(r=e,n=new Date(y.now()),i=r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()],e._w&&null==e._a[ge]&&null==e._a[we]&&(null!=(n=(r=e)._w).GG||null!=n.W||null!=n.E?(d=1,l=4,a=gt(n.GG,r._a[ve],Re(xt(),1,4).year),o=gt(n.W,1),((s=gt(n.E,1))<1||7<s)&&(u=!0)):(d=r._locale._week.dow,l=r._locale._week.doy,c=Re(xt(),d,l),a=gt(n.gg,r._a[ve],c.year),o=gt(n.w,c.week),null!=n.d?((s=n.d)<0||6<s)&&(u=!0):null!=n.e?(s=n.e+d,(n.e<0||6<n.e)&&(u=!0)):s=d),o<1||o>Ue(a,d,l)?w(r)._overflowWeeks=!0:null!=u?w(r)._overflowWeekday=!0:(c=Be(a,o,s,d,l),r._a[ve]=c.year,r._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(n=gt(e._a[ve],i[ve]),(e._dayOfYear>Le(n)||0===e._dayOfYear)&&(w(e)._overflowDayOfYear=!0),u=Pe(n,0,e._dayOfYear),e._a[we]=u.getUTCMonth(),e._a[ge]=u.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=m[t]=i[t];for(;t<7;t++)e._a[t]=m[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[je]&&0===e._a[ke]&&0===e._a[Qe]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Pe:function(e,t,i,r,n,a,o){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,r,n,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,r,n,a,o),s}).apply(null,m),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(w(e).weekdayMismatch=!0)}}function jt(e){if(e._f===y.ISO_8601)vt(e);else if(e._f===y.RFC_2822)wt(e);else{e._a=[],w(e).empty=!0;for(var t,i,r,n,a,o=""+e._i,s=o.length,d=0,l=L(e._f,e._locale).match(I)||[],u=l.length,c=0;c<u;c++)i=l[c],(t=(o.match((h=i,p=e,v(fe,h)?fe[h](p._strict,p._locale):new RegExp(me(h.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,n){return t||i||r||n})))))||[])[0])&&(0<(r=o.substr(0,o.indexOf(t))).length&&w(e).unusedInput.push(r),o=o.slice(o.indexOf(t)+t.length),d+=t.length),Y[i]?(t?w(e).empty=!1:w(e).unusedTokens.push(i),r=i,a=e,null!=(n=t)&&v(_e,r)&&_e[r](n,a._a,a,r)):e._strict&&!t&&w(e).unusedTokens.push(i);w(e).charsLeftOver=s-d,0<o.length&&w(e).unusedInput.push(o),e._a[be]<=12&&!0===w(e).bigHour&&0<e._a[be]&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[be]=(m=e._locale,f=e._a[be],null==(_=e._meridiem)?f:null!=m.meridiemHour?m.meridiemHour(f,_):null!=m.isPM?((m=m.isPM(_))&&f<12&&(f+=12),f=m||12!==f?f:0):f),null!==(s=w(e).era)&&(e._a[ve]=e._locale.erasConvertYear(s,e._a[ve])),bt(e),lt(e)}var m,f,_,h,p}function kt(e){var t,i,r,n=e._i,a=e._f;return e._locale=e._locale||dt(e._l),null===n||void 0===a&&""===n?p({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),k(n)?new j(lt(n)):(c(n)?e._d=n:s(a)?function(e){var t,i,r,n,a,o,s=!1,d=e._f.length;if(0===d)return w(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<d;n++)a=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],jt(t),h(t)&&(o=!0),a=(a+=w(t).charsLeftOver)+10*w(t).unusedTokens.length,w(t).score=a,s?a<r&&(r=a,i=t):(null==r||a<r||o)&&(r=a,i=t,o&&(s=!0));f(e,i||t)}(e):a?jt(e):o(a=(n=e)._i)?n._d=new Date(y.now()):c(a)?n._d=new Date(a.valueOf()):"string"==typeof a?(i=n,null!==(t=ht.exec(i._i))?i._d=new Date(+t[1]):(vt(i),!1===i._isValid&&(delete i._isValid,wt(i),!1===i._isValid&&(delete i._isValid,i._strict?i._isValid=!1:y.createFromInputFallback(i))))):s(a)?(n._a=m(a.slice(0),function(e){return parseInt(e,10)}),bt(n)):d(a)?(t=n)._d||(r=void 0===(i=B(t._i)).day?i.date:i.day,t._a=m([i.year,i.month,r,i.hour,i.minute,i.second,i.millisecond],function(e){return e&&parseInt(e,10)}),bt(t)):u(a)?n._d=new Date(a):y.createFromInputFallback(n),h(e)||(e._d=null),e))}function Qt(e,t,i,r,n){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(d(e)&&l(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=i,a._i=e,a._f=t,a._strict=r,(n=new j(lt(kt(n=a))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function xt(e,t,i,r){return Qt(e,t,i,r,!1)}function Ct(e,t){var i,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return xt();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}y.createFromInputFallback=i("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),y.ISO_8601=function(){},y.RFC_2822=function(){},te=i("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),ie=i("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:p()});var St=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Mt(e){var t=(e=B(e)).year||0,i=e.quarter||0,r=e.month||0,n=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,s=e.minute||0,d=e.second||0,l=e.millisecond||0;this._isValid=function(e){var t,i,r=!1,n=St.length;for(t in e)if(v(e,t)&&(-1===ye.call(St,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<n;++i)if(e[St[i]]){if(r)return!1;parseFloat(e[St[i]])!==H(e[St[i]])&&(r=!0)}return!0}(e),this._milliseconds=+l+1e3*d+6e4*s+1e3*o*60*60,this._days=+a+7*n,this._months=+r+3*i+12*t,this._data={},this._locale=dt(),this._bubble()}function Dt(e){return e instanceof Mt}function It(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Tt(e,i){N(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+D(~~(e/60),2)+i+D(~~e%60,2)})}Tt("Z",":"),Tt("ZZ",""),ce("Z",le),ce("ZZ",le),he(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Yt(le,e)});var Et=/([\+\-]|\d\d)/gi;function Yt(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Et)||["-",0,0])[1]+H(e[2]))?0:"+"===e[0]?t:-t}function Nt(e,t){var i;return t._isUTC?(t=t.clone(),i=(k(e)||c(e)?e:xt(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),y.updateOffset(t,!1),t):xt(e).local()}function Ot(e){return-Math.round(e._d.getTimezoneOffset())}function Lt(){return!!this.isValid()&&this._isUTC&&0===this._offset}y.updateOffset=function(){};var At=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ft(e,t){var i,r,n,a,o=e,s=null;return Dt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=At.exec(e))?(i="-"===s[1]?-1:1,o={y:0,d:H(s[ge])*i,h:H(s[be])*i,m:H(s[je])*i,s:H(s[ke])*i,ms:H(It(1e3*s[Qe]))*i}):(s=Pt.exec(e))?(i="-"===s[1]?-1:1,o={y:Bt(s[2],i),M:Bt(s[3],i),w:Bt(s[4],i),d:Bt(s[5],i),h:Bt(s[6],i),m:Bt(s[7],i),s:Bt(s[8],i)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=xt(o.from),n=xt(o.to),t=r.isValid()&&n.isValid()?(n=Nt(n,r),r.isBefore(n)?a=Rt(r,n):((a=Rt(n,r)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(o={}).ms=t.milliseconds,o.M=t.months),s=new Mt(o),Dt(e)&&v(e,"_locale")&&(s._locale=e._locale),Dt(e)&&v(e,"_isValid")&&(s._isValid=e._isValid),s}function Bt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Rt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Ut(r,n){return function(e,t){var i;return null===t||isNaN(+t)||(a(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),Wt(this,Ft(e,t),r),this}}function Wt(e,t,i,r){var n=t._milliseconds,a=It(t._days);t=It(t._months);e.isValid()&&(r=null==r||r,t&&Ye(e,z(e,"Month")+t*i),a&&V(e,"Date",z(e,"Date")+a*i),n&&e._d.setTime(e._d.valueOf()+n*i),r&&y.updateOffset(e,a||t))}function qt(e){return"string"==typeof e||e instanceof String}function Ht(e,t){if(e.date()<t.date())return-Ht(t,e);var i=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(i,"months");return-(i+(t=t-r<0?(t-r)/(r-e.clone().add(i-1,"months")):(t-r)/(e.clone().add(1+i,"months")-r)))||0}function Gt(e){return void 0===e?this._locale._abbr:(null!=(e=dt(e))&&(this._locale=e),this)}function zt(){return this._locale}Ft.fn=Mt.prototype,Ft.invalid=function(){return Ft(NaN)},Me=Ut(1,"add"),qe=Ut(-1,"subtract"),y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Ge=i("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});var Vt=126227808e5;function Zt(e,t){return(e%t+t)%t}function $t(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-Vt:new Date(e,t,i).valueOf()}function Jt(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-Vt:Date.UTC(e,t,i)}function Kt(e,t){return t.erasAbbrRegex(e)}function Xt(){for(var e=[],t=[],i=[],r=[],n=this.eras(),a=0,o=n.length;a<o;++a)t.push(me(n[a].name)),e.push(me(n[a].abbr)),i.push(me(n[a].narrow)),r.push(me(n[a].name)),r.push(me(n[a].abbr)),r.push(me(n[a].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ei(e,t){N(0,[e,e.length],0,t)}function ti(e,t,i,r,n){var a;return null==e?Re(this,r,n).year:(a=Ue(e,r,n),function(e,t,i,r,n){return t=Pe((e=Be(e,t,i,r,n)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=a<t?a:t,i,r,n))}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),ce("N",Kt),ce("NN",Kt),ce("NNN",Kt),ce("NNNN",function(e,t){return t.erasNameRegex(e)}),ce("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),he(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,r){(r=i._locale.erasParse(e,r,i._strict))?w(i).era=r:w(i).invalidEra=e}),ce("y",oe),ce("yy",oe),ce("yyy",oe),ce("yyyy",oe),ce("yo",function(e,t){return t._eraYearOrdinalRegex||oe}),he(["y","yy","yyy","yyyy"],ve),he(["yo"],function(e,t,i,r){var n;i._locale._eraYearOrdinalRegex&&(n=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[ve]=i._locale.eraYearOrdinalParse(e,n):t[ve]=parseInt(e,10)}),N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ei("gggg","weekYear"),ei("ggggg","weekYear"),ei("GGGG","isoWeekYear"),ei("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),ce("G",se),ce("g",se),ce("GG",ee,$),ce("gg",ee,$),ce("GGGG",ne,K),ce("gggg",ne,K),ce("GGGGG",ae,X),ce("ggggg",ae,X),pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,r){t[r.substr(0,2)]=H(e)}),pe(["gg","GG"],function(e,t,i,r){t[r]=y.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),P("quarter","Q"),U("quarter",7),ce("Q",Z),he("Q",function(e,t){t[we]=3*(H(e)-1)}),N("D",["DD",2],"Do","date"),P("date","D"),U("date",9),ce("D",ee),ce("DD",ee,$),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ge),he("Do",function(e,t){t[ge]=H(e.match(ee)[0])}),ne=G("Date",!0),N("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),U("dayOfYear",4),ce("DDD",re),ce("DDDD",J),he(["DDD","DDDD"],function(e,t,i){i._dayOfYear=H(e)}),N("m",["mm",2],0,"minute"),P("minute","m"),U("minute",14),ce("m",ee),ce("mm",ee,$),he(["m","mm"],je);var ii;K=G("Minutes",!1),N("s",["ss",2],0,"second"),P("second","s"),U("second",15),ce("s",ee),ce("ss",ee,$),he(["s","ss"],ke),ae=G("Seconds",!1);for(N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),U("millisecond",16),ce("S",re,Z),ce("SS",re,$),ce("SSS",re,J),ii="SSSS";ii.length<=9;ii+="S")ce(ii,oe);function ri(e,t){t[Qe]=H(1e3*("0."+e))}for(ii="S";ii.length<=9;ii+="S")he(ii,ri);function ni(e){return e}function ai(e,t,i,r){var n=dt();r=_().set(r,t);return n[i](r,e)}function oi(e,t,i){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return ai(e,t,i,"month");for(var r=[],n=0;n<12;n++)r[n]=ai(e,n,i,"month");return r}function si(e,t,i,r){"boolean"==typeof e?u(t)&&(i=t,t=void 0):(t=e,e=!1,u(i=t)&&(i=t,t=void 0)),t=t||"";var n,a=dt(),o=e?a._week.dow:0,s=[];if(null!=i)return ai(t,(i+o)%7,r,"day");for(n=0;n<7;n++)s[n]=ai(t,(n+o)%7,r,"day");return s}X=G("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName"),(Z=j.prototype).add=Me,Z.calendar=function(e,t){var i,r,n,a;1===arguments.length&&(arguments[0]?k(i=arguments[0])||c(i)||qt(i)||u(i)||(n=s(r=i),a=!1,n&&(a=0===r.filter(function(e){return!u(e)&&qt(r)}).length),n&&a)||function(e){var t,i=d(e)&&!l(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=n.length;for(t=0;t<a;t+=1)r=r||v(e,n[t]);return i&&r}(i)||null==i?(e=arguments[0],t=void 0):function(e){for(var t=d(e)&&!l(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<r.length;n+=1)i=i||v(e,r[n]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var o=Nt(e=e||xt(),this).startOf("day");o=y.calendarFormat(this,o)||"sameElse",t=t&&(x(t[o])?t[o].call(this,e):t[o]);return this.format(t||this.localeData().calendar(o,this,xt(e)))},Z.clone=function(){return new j(this)},Z.diff=function(e,t,i){var r,n,a;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(n=6e4*(r.utcOffset()-this.utcOffset()),t=F(t)){case"year":a=Ht(this,r)/12;break;case"month":a=Ht(this,r);break;case"quarter":a=Ht(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-n)/864e5;break;case"week":a=(this-r-n)/6048e5;break;default:a=this-r}return i?a:q(a)},Z.endOf=function(e){var t,i;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?Jt:$t,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Zt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Zt(t,1e3)-1}return this._d.setTime(t),y.updateOffset(this,!0),this},Z.format=function(e){return e=O(this,e=e||(this.isUtc()?y.defaultFormatUtc:y.defaultFormat)),this.localeData().postformat(e)},Z.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||xt(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Z.fromNow=function(e){return this.from(xt(),e)},Z.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||xt(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Z.toNow=function(e){return this.to(xt(),e)},Z.get=function(e){return x(this[e=F(e)])?this[e]():this},Z.invalidAt=function(){return w(this).overflow},Z.isAfter=function(e,t){return e=k(e)?e:xt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},Z.isBefore=function(e,t){return e=k(e)?e:xt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},Z.isBetween=function(e,t,i,r){return e=k(e)?e:xt(e),t=k(t)?t:xt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))},Z.isSame=function(e,t){e=k(e)?e:xt(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},Z.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Z.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Z.isValid=function(){return h(this)},Z.lang=Ge,Z.locale=Gt,Z.localeData=zt,Z.max=ie,Z.min=te,Z.parsingFlags=function(){return f({},w(this))},Z.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)v(e,t)&&i.push({unit:t,priority:R[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=B(e)),r=i.length,n=0;n<r;n++)this[i[n].unit](e[i[n].unit]);else if(x(this[e=F(e)]))return this[e](t);return this},Z.startOf=function(e){var t,i;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?Jt:$t,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Zt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Zt(t,1e3)}return this._d.setTime(t),y.updateOffset(this,!0),this},Z.subtract=qe,Z.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Z.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Z.toDate=function(){return new Date(this.valueOf())},Z.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?O(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",O(t,"Z")):O(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Z.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",i="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Z[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Z.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Z.eraName=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},Z.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},Z.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},Z.eraYear=function(){for(var e,t,i=this.localeData().eras(),r=0,n=i.length;r<n;++r)if(e=i[r].since<=i[r].until?1:-1,t=this.clone().startOf("day").valueOf(),i[r].since<=t&&t<=i[r].until||i[r].until<=t&&t<=i[r].since)return(this.year()-y(i[r].since).year())*e+i[r].offset;return this.year()},Z.year=Ae,Z.isLeapYear=function(){return W(this.year())},Z.weekYear=function(e){return ti.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Z.isoWeekYear=function(e){return ti.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Z.quarter=Z.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Z.month=Ne,Z.daysInMonth=function(){return Se(this.year(),this.month())},Z.week=Z.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Z.isoWeek=Z.isoWeeks=function(e){var t=Re(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Z.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},Z.weeksInWeekYear=function(){var e=this.localeData()._week;return Ue(this.weekYear(),e.dow,e.doy)},Z.isoWeeksInYear=function(){return Ue(this.year(),1,4)},Z.isoWeeksInISOWeekYear=function(){return Ue(this.isoWeekYear(),1,4)},Z.date=ne,Z.day=Z.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},Z.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Z.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN;var t,i},Z.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Z.hour=Z.hours=ue,Z.minute=Z.minutes=K,Z.second=Z.seconds=ae,Z.millisecond=Z.milliseconds=X,Z.utcOffset=function(e,t,i){var r,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?n:Ot(this);if("string"==typeof e){if(null===(e=Yt(le,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=Ot(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==e&&(!t||this._changeInProgress?Wt(this,Ft(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this},Z.utc=function(e){return this.utcOffset(0,e)},Z.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ot(this),"m")),this},Z.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Yt(de,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},Z.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Z.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Z.isLocal=function(){return!!this.isValid()&&!this._isUTC},Z.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Z.isUtc=Lt,Z.isUTC=Lt,Z.zoneAbbr=function(){return this._isUTC?"UTC":""},Z.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Z.dates=i("dates accessor is deprecated. Use date instead.",ne),Z.months=i("months accessor is deprecated. Use month instead",Ne),Z.years=i("years accessor is deprecated. Use year instead",Ae),Z.zone=i("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),Z.isDSTShifted=i("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=kt(t))._a?(e=(t._isUTC?_:xt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,o=0;o<r;o++)H(e[o])!==H(t[o])&&a++;return a+n}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted}),($=S.prototype).calendar=function(e,t,i){return x(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},$.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(I).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},$.invalidDate=function(){return this._invalidDate},$.ordinal=function(e){return this._ordinal.replace("%d",e)},$.preparse=ni,$.postformat=ni,$.relativeTime=function(e,t,i,r){var n=this._relativeTime[i];return x(n)?n(e,t,i,r):n.replace(/%d/i,e)},$.pastFuture=function(e,t){return x(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},$.set=function(e){var t,i;for(i in e)v(e,i)&&(x(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},$.eras=function(e,t){for(var i,r=this._eras||dt("en")._eras,n=0,a=r.length;n<a;++n){switch(typeof r[n].since){case"string":i=y(r[n].since).startOf("day"),r[n].since=i.valueOf()}switch(typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=y(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf()}}return r},$.erasParse=function(e,t,i){var r,n,a,o,s,d=this.eras();for(e=e.toUpperCase(),r=0,n=d.length;r<n;++r)if(a=d[r].name.toUpperCase(),o=d[r].abbr.toUpperCase(),s=d[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(o===e)return d[r];break;case"NNNN":if(a===e)return d[r];break;case"NNNNN":if(s===e)return d[r]}else if(0<=[a,o,s].indexOf(e))return d[r]},$.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?y(e.since).year():y(e.since).year()+(t-e.offset)*i},$.erasAbbrRegex=function(e){return v(this,"_erasAbbrRegex")||Xt.call(this),e?this._erasAbbrRegex:this._erasRegex},$.erasNameRegex=function(e){return v(this,"_erasNameRegex")||Xt.call(this),e?this._erasNameRegex:this._erasRegex},$.erasNarrowRegex=function(e){return v(this,"_erasNarrowRegex")||Xt.call(this),e?this._erasNarrowRegex:this._erasRegex},$.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},$.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Ie.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},$.monthsParse=function(e,t,i){var r,n;if(this._monthsParseExact)return function(e,t,i){var r,n,a;e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=_([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(n=ye.call(this._shortMonthsParse,e))?n:null:-1!==(n=ye.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=ye.call(this._shortMonthsParse,e))||-1!==(n=ye.call(this._longMonthsParse,e))?n:null:-1!==(n=ye.call(this._longMonthsParse,e))||-1!==(n=ye.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=_([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(i&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!i&&this._monthsParse[r].test(e))return r}},$.monthsRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Oe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},$.monthsShortRegex=function(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Oe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},$.week=function(e){return Re(e,this._week.dow,this._week.doy).week},$.firstDayOfYear=function(){return this._week.doy},$.firstDayOfWeek=function(){return this._week.dow},$.weekdays=function(e,t){return t=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?We(t,this._week.dow):e?t[e.day()]:t},$.weekdaysMin=function(e){return!0===e?We(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},$.weekdaysShort=function(e){return!0===e?We(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},$.weekdaysParse=function(e,t,i){var r,n;if(this._weekdaysParseExact)return function(e,t,i){var r,n,a;e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(n=ye.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=ye.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=ye.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=ye.call(this._weekdaysParse,e))||-1!==(n=ye.call(this._shortWeekdaysParse,e))||-1!==(n=ye.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=ye.call(this._shortWeekdaysParse,e))||-1!==(n=ye.call(this._weekdaysParse,e))||-1!==(n=ye.call(this._minWeekdaysParse,e))?n:null:-1!==(n=ye.call(this._minWeekdaysParse,e))||-1!==(n=ye.call(this._weekdaysParse,e))||-1!==(n=ye.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=_([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(i&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(i&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!i&&this._weekdaysParse[r].test(e))return r}},$.weekdaysRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},$.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},$.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},$.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},$.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===H(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),y.lang=i("moment.lang is deprecated. Use moment.locale instead.",ot),y.langData=i("moment.langData is deprecated. Use moment.localeData instead.",dt);var di=Math.abs;function li(e,t,i,r){return t=Ft(t,i),e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function ui(e){return e<0?Math.floor(e):Math.ceil(e)}function ci(e){return 4800*e/146097}function mi(e){return 146097*e/4800}function fi(e){return function(){return this.as(e)}}function _i(e){return function(){return this.isValid()?this._data[e]:NaN}}re=fi("ms"),J=fi("s"),Me=fi("m"),ie=fi("h"),te=fi("d"),qe=fi("w"),ue=fi("M"),K=fi("Q"),ae=fi("y");X=_i("milliseconds"),ne=_i("seconds"),Ae=_i("minutes"),$=_i("hours");var hi=_i("days"),pi=_i("months"),yi=_i("years"),vi=Math.round,wi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var gi=Math.abs;function bi(e){return(0<e)-(e<0)||+e}function ji(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,r,n,a,o,s=gi(this._milliseconds)/1e3,d=gi(this._days),l=gi(this._months),u=this.asSeconds();return u?(t=q((e=q(s/60))/60),s%=60,e%=60,i=q(l/12),l%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",n=bi(this._months)!==bi(u)?"-":"",a=bi(this._days)!==bi(u)?"-":"",o=bi(this._milliseconds)!==bi(u)?"-":"",(u<0?"-":"")+"P"+(i?n+i+"Y":"")+(l?n+l+"M":"")+(d?a+d+"D":"")+(t||e||s?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(s?o+r+"S":"")):"P0D"}var ki=Mt.prototype;return ki.isValid=function(){return this._isValid},ki.abs=function(){var e=this._data;return this._milliseconds=di(this._milliseconds),this._days=di(this._days),this._months=di(this._months),e.milliseconds=di(e.milliseconds),e.seconds=di(e.seconds),e.minutes=di(e.minutes),e.hours=di(e.hours),e.months=di(e.months),e.years=di(e.years),this},ki.add=function(e,t){return li(this,e,t,1)},ki.subtract=function(e,t){return li(this,e,t,-1)},ki.as=function(e){if(!this.isValid())return NaN;var t,i,r=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,i=this._months+ci(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(mi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},ki.asMilliseconds=re,ki.asSeconds=J,ki.asMinutes=Me,ki.asHours=ie,ki.asDays=te,ki.asWeeks=qe,ki.asMonths=ue,ki.asQuarters=K,ki.asYears=ae,ki.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*H(this._months/12):NaN},ki._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,r=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*ui(mi(i)+t),i=t=0),r.milliseconds=e%1e3,e=q(e/1e3),r.seconds=e%60,e=q(e/60),r.minutes=e%60,e=q(e/60),r.hours=e%24,i+=e=q(ci(t+=q(e/24))),t-=ui(mi(e)),e=q(i/12),i%=12,r.days=t,r.months=i,r.years=e,this},ki.clone=function(){return Ft(this)},ki.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},ki.milliseconds=X,ki.seconds=ne,ki.minutes=Ae,ki.hours=$,ki.days=hi,ki.weeks=function(){return q(this.days()/7)},ki.months=pi,ki.years=yi,ki.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,r,n,a,o,s,d,l,u,c,m,f=!1,_=wi;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(f=e),"object"==typeof t&&(_=Object.assign({},wi,t),null!=t.s&&null==t.ss&&(_.ss=t.s-1)),e=this.localeData(),r=!f,n=_,a=e,o=Ft(i=this).abs(),s=vi(o.as("s")),d=vi(o.as("m")),l=vi(o.as("h")),u=vi(o.as("d")),c=vi(o.as("M")),m=vi(o.as("w")),o=vi(o.as("y")),s=(s<=n.ss?["s",s]:s<n.s&&["ss",s])||d<=1&&["m"]||d<n.m&&["mm",d]||l<=1&&["h"]||l<n.h&&["hh",l]||u<=1&&["d"]||u<n.d&&["dd",u],(s=(s=null!=n.w?s||m<=1&&["w"]||m<n.w&&["ww",m]:s)||c<=1&&["M"]||c<n.M&&["MM",c]||o<=1&&["y"]||["yy",o])[2]=r,s[3]=0<+i,s[4]=a,t=function(e,t,i,r,n){return n.relativeTime(t||1,!!i,e,r)}.apply(null,s),f&&(t=e.pastFuture(+this,t)),e.postformat(t)},ki.toISOString=ji,ki.toString=ji,ki.toJSON=ji,ki.locale=Gt,ki.localeData=zt,ki.toIsoString=i("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ji),ki.lang=Ge,N("X",0,0,"unix"),N("x",0,0,"valueOf"),ce("x",se),ce("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),he("x",function(e,t,i){i._d=new Date(H(e))}),y.version="2.29.2",e=xt,y.fn=Z,y.min=function(){return Ct("isBefore",[].slice.call(arguments,0))},y.max=function(){return Ct("isAfter",[].slice.call(arguments,0))},y.now=function(){return Date.now?Date.now():+new Date},y.utc=_,y.unix=function(e){return xt(1e3*e)},y.months=function(e,t){return oi(e,t,"months")},y.isDate=c,y.locale=ot,y.invalid=p,y.duration=Ft,y.isMoment=k,y.weekdays=function(e,t,i){return si(e,t,i,"weekdays")},y.parseZone=function(){return xt.apply(null,arguments).parseZone()},y.localeData=dt,y.isDuration=Dt,y.monthsShort=function(e,t){return oi(e,t,"monthsShort")},y.weekdaysMin=function(e,t,i){return si(e,t,i,"weekdaysMin")},y.defineLocale=st,y.updateLocale=function(e,t){var i,r;return null!=t?(r=tt,null!=it[e]&&null!=it[e].parentLocale?it[e].set(C(it[e]._config,t)):(t=C(r=null!=(i=at(e))?i._config:r,t),null==i&&(t.abbr=e),(r=new S(t)).parentLocale=it[e],it[e]=r),ot(e)):null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===ot()&&ot(e)):null!=it[e]&&delete it[e]),it[e]},y.locales=function(){return M(it)},y.weekdaysShort=function(e,t,i){return si(e,t,i,"weekdaysShort")},y.normalizeUnits=F,y.relativeTimeRounding=function(e){return void 0===e?vi:"function"==typeof e&&(vi=e,!0)},y.relativeTimeThreshold=function(e,t){return void 0!==wi[e]&&(void 0===t?wi[e]:(wi[e]=t,"s"===e&&(wi.ss=t-1),!0))},y.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},y.prototype=Z,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},y});
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: webdorado,10web,wdsupport,formmakersupport
3
  Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
4
  Requires at least: 4.6
5
- Tested up to: 6.0
6
- Stable tag: 1.15.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -561,6 +561,10 @@ Where **{{field_id}}** is the ID of the field you wish to prefill. Also, **{{par
561
 
562
 
563
  == Changelog ==
 
 
 
 
564
  = 1.15.1 =
565
  * Fixed: Date field validation.
566
 
2
  Contributors: webdorado,10web,wdsupport,formmakersupport
3
  Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
4
  Requires at least: 4.6
5
+ Tested up to: 5.9
6
+ Stable tag: 1.15.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
561
 
562
 
563
  == Changelog ==
564
+ = 1.15.2 =
565
+ * Improved: Allow HTML tags in Paragraph text field.
566
+ * Fixed: Date field validation with y+m format.
567
+
568
  = 1.15.1 =
569
  * Fixed: Date field validation.
570