Hueman Addons - Version 2.1.2

Version Description

  • improved : customizer compatibility with network installs

=

Download this release

Release Info

Developer nikeo
Plugin Icon 128x128 Hueman Addons
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

addons/ha-init.php CHANGED
@@ -258,7 +258,19 @@ if ( ! class_exists( 'HU_AD' ) ) :
258
  */
259
  function ha_is_customize_left_panel() {
260
  global $pagenow;
261
- return is_admin() && isset( $pagenow ) && 'customize.php' == $pagenow;
 
 
 
 
 
 
 
 
 
 
 
 
262
  }
263
 
264
 
258
  */
259
  function ha_is_customize_left_panel() {
260
  global $pagenow;
261
+ // the check on $pagenow does NOT work on multisite install @see https://github.com/presscustomizr/nimble-builder/issues/240
262
+ // That's why we also check with other global vars
263
+ // @see wp-includes/theme.php, _wp_customize_include()
264
+ $is_customize_php_page = ( is_admin() && 'customize.php' == basename( $_SERVER['PHP_SELF'] ) );
265
+ $is_customize_admin_page_one = (
266
+ $is_customize_php_page
267
+ ||
268
+ ( isset( $_REQUEST['wp_customize'] ) && 'on' == $_REQUEST['wp_customize'] )
269
+ ||
270
+ ( ! empty( $_GET['customize_changeset_uuid'] ) || ! empty( $_POST['customize_changeset_uuid'] ) )
271
+ );
272
+ $is_customize_admin_page_two = is_admin() && isset( $pagenow ) && 'customize.php' == $pagenow;
273
+ return $is_customize_admin_page_one || $is_customize_admin_page_two;
274
  }
275
 
276
 
ha-fire.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Hueman Addons
4
  * Plugin URI: https://presscustomizr.com
5
  * Description: Hueman Theme Addons
6
- * Version: 2.1.1
7
  * Text Domain: hueman-addons
8
  * Author: Press Customizr
9
  * Author URI: https://presscustomizr.com
3
  * Plugin Name: Hueman Addons
4
  * Plugin URI: https://presscustomizr.com
5
  * Description: Hueman Theme Addons
6
+ * Version: 2.1.2
7
  * Text Domain: hueman-addons
8
  * Author: Press Customizr
9
  * Author URI: https://presscustomizr.com
inc/czr-base-fmk/assets/css/czr-ccat-control-base.css CHANGED
@@ -2073,37 +2073,37 @@ section .czr-sub-set:first-child {
2073
 
2074
 
2075
  /* SELECT 2 SPECIFICS */
2076
- body .select2-container {
2077
  z-index: 1000000;
2078
  width: 100%!important;
2079
  }
2080
 
2081
- .customize-control-czr_layouts .select2-selection--single {
2082
  height: 33px;
2083
  }
2084
- .customize-control-czr_layouts .select2-container--default .select2-selection--single .select2-selection__arrow {
2085
  height: 30px;
2086
  }
2087
- .select2-selection__rendered:focus, .customize-control-czr_layouts .select2-selection--single:focus {
2088
  outline: none;
2089
  }
2090
 
2091
  /* Old SELECT2
2092
  * https://github.com/presscustomizr/themes-customizer-fmk/issues/30
2093
  */
2094
- body .select2-drop {
2095
  z-index: 1000000;
2096
  }
2097
 
2098
 
2099
  /* SPECIFIC INPUT STYLE */
2100
- span.select2-results, body .select2-container {
2101
  font-size: 14px;
2102
  }
2103
 
2104
 
2105
  /* for multipe picker */
2106
- .select2-container--default .select2-selection--multiple {
2107
  -webkit-border-radius: 0px;
2108
  -moz-border-radius: 0px;
2109
  border-radius: 0;
@@ -2113,15 +2113,15 @@ span.select2-results, body .select2-container {
2113
  -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 );
2114
  box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 );
2115
  }
2116
- .select2-container--default.select2-container--focus .select2-selection--multiple {
2117
  border-color: #00a0d2!important;
2118
  -webkit-box-shadow: 0 0 2px rgba(26, 188, 156, 0.8)!important;
2119
  box-shadow: 0 0 2px rgba(26, 188, 156, 0.8)!important;
2120
  }
2121
- .select2-results__options li {
2122
  margin-bottom: 0
2123
  }
2124
- .select2-container--default .select2-selection--multiple .select2-selection__choice {
2125
  padding: 2px;
2126
  font-size: 13px;
2127
  -webkit-border-radius: 2px;
@@ -2129,10 +2129,10 @@ span.select2-results, body .select2-container {
2129
  border-radius: 2px;
2130
  margin-bottom: 0;
2131
  }
2132
- .select2-container--default .select2-results__option--highlighted[aria-selected] {
2133
  background-color: #00a0d2;
2134
  }
2135
- .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
2136
  font-size: 17px;
2137
  position: relative;
2138
  top: 2px;
@@ -2140,7 +2140,7 @@ span.select2-results, body .select2-container {
2140
  }
2141
 
2142
  /* Socials Specifics */
2143
- .customize-control-czr_socials .select2-container--default .select2-selection--single .select2-selection__rendered {
2144
  padding: 5px;
2145
  line-height: 16px;
2146
  }
2073
 
2074
 
2075
  /* SELECT 2 SPECIFICS */
2076
+ body .czrSelect2-container {
2077
  z-index: 1000000;
2078
  width: 100%!important;
2079
  }
2080
 
2081
+ .customize-control-czr_layouts .czrSelect2-selection--single {
2082
  height: 33px;
2083
  }
2084
+ .customize-control-czr_layouts .czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__arrow {
2085
  height: 30px;
2086
  }
2087
+ .czrSelect2-selection__rendered:focus, .customize-control-czr_layouts .czrSelect2-selection--single:focus {
2088
  outline: none;
2089
  }
2090
 
2091
  /* Old SELECT2
2092
  * https://github.com/presscustomizr/themes-customizer-fmk/issues/30
2093
  */
2094
+ body .czrSelect2-drop {
2095
  z-index: 1000000;
2096
  }
2097
 
2098
 
2099
  /* SPECIFIC INPUT STYLE */
2100
+ span.czrSelect2-results, body .czrSelect2-container {
2101
  font-size: 14px;
2102
  }
2103
 
2104
 
2105
  /* for multipe picker */
2106
+ .czrSelect2-container--default .czrSelect2-selection--multiple {
2107
  -webkit-border-radius: 0px;
2108
  -moz-border-radius: 0px;
2109
  border-radius: 0;
2113
  -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 );
2114
  box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 );
2115
  }
2116
+ .czrSelect2-container--default.czrSelect2-container--focus .czrSelect2-selection--multiple {
2117
  border-color: #00a0d2!important;
2118
  -webkit-box-shadow: 0 0 2px rgba(26, 188, 156, 0.8)!important;
2119
  box-shadow: 0 0 2px rgba(26, 188, 156, 0.8)!important;
2120
  }
2121
+ .czrSelect2-results__options li {
2122
  margin-bottom: 0
2123
  }
2124
+ .czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice {
2125
  padding: 2px;
2126
  font-size: 13px;
2127
  -webkit-border-radius: 2px;
2129
  border-radius: 2px;
2130
  margin-bottom: 0;
2131
  }
2132
+ .czrSelect2-container--default .czrSelect2-results__option--highlighted[aria-selected] {
2133
  background-color: #00a0d2;
2134
  }
2135
+ .czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove {
2136
  font-size: 17px;
2137
  position: relative;
2138
  top: 2px;
2140
  }
2141
 
2142
  /* Socials Specifics */
2143
+ .customize-control-czr_socials .czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__rendered {
2144
  padding: 5px;
2145
  line-height: 16px;
2146
  }
inc/czr-base-fmk/assets/css/czr-ccat-control-base.min.css CHANGED
@@ -1 +1 @@
1
- .wp-customizer a{color:#000}.wp-customizer a:focus,.wp-customizer a:hover{color:#0073aa}.wp-customizer .wp-full-overlay.expanded{margin-left:440px}.wp-customizer .wp-full-overlay-sidebar{width:440px}.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-440px}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{left:-440px}.accordion-sub-container.control-panel-content{left:440px}.rtl.wp-customizer .wp-full-overlay.expanded{margin-right:440px;margin-left:0}.rtl.wp-customizer .wp-full-overlay-sidebar{width:440px}.rtl.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-440px;margin-left:0}.rtl #customize-theme-controls .control-section.current-panel>h3.accordion-section-title{right:-440px}.rtl .accordion-sub-container.control-panel-content{right:440px}.customize-section-description-container+#customize-control-custom_css:last-child{margin:0;width:100%}li#customize-control-custom_css textarea{font-size:13px;background:#394143;color:#95ff0c;min-height:300px}@media screen and (max-width:1400px){.wp-customizer .wp-full-overlay.expanded{margin-left:380px}.wp-customizer .wp-full-overlay-sidebar{width:380px}.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-380px}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{left:-380px}.accordion-sub-container.control-panel-content{left:380px}.rtl.wp-customizer .wp-full-overlay.expanded{margin-right:380px;margin-left:0}.rtl.wp-customizer .wp-full-overlay-sidebar{width:380px}.rtl.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-380px;margin-left:0}.rtl #customize-theme-controls .control-section.current-panel>h3.accordion-section-title{right:-380px}.rtl .accordion-sub-container.control-panel-content{right:380px}}@media screen and (max-width:979px){.wp-customizer .wp-full-overlay.expanded{margin-left:300px}.wp-customizer .wp-full-overlay-sidebar{width:300px}.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-300px}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{left:-300px}.accordion-sub-container.control-panel-content{left:300px}.rtl.wp-customizer .wp-full-overlay.expanded{margin-right:300px;margin-left:0}.rtl.wp-customizer .wp-full-overlay-sidebar{width:300px}.rtl.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-300px;margin-left:0}.rtl #customize-theme-controls .control-section.current-panel>h3.accordion-section-title{right:-300px}.rtl .accordion-sub-container.control-panel-content{right:300px}}@media screen and (max-width:640px){.wp-customizer .customize-controls-preview-toggle{height:46px;border-bottom:1px solid #ddd;left:87px}.wp-customizer .wp-full-overlay.expanded{margin-left:0}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{left:-100%}.accordion-sub-container.control-panel-content{left:100%}.rtl.wp-customizer .wp-full-overlay.expanded{margin-right:0}.rtl #customize-theme-controls .control-section.current-panel>h3.accordion-section-title,.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-100%;left:auto}.rtl .accordion-sub-container.control-panel-content{right:100%}}.wp-customizer .control-section.control-panel .accordion-section-title .panel-title{font-size:24px;font-weight:inherit;line-height:30px}.wp-core-ui h3{color:#555}.accordion-section-content{padding:10px 10px 15px 20px}.accordion-section-title:after,.handlediv,.item-edit,.sidebar-name-arrow,.widget-action{color:#00a0d2}.control-section.control-panel>.accordion-section-title:after{color:#00a0d2}.customize-control-title{line-height:19px;font-family:Roboto;font-weight:400}.customize-control span.customize-control-title:first-child{position:relative;padding:10px 0 5px}.wp-customizer #customize-theme-controls .accordion-section-content{background:#fff}.wp-customizer #customize-controls .customize-info .customize-help-toggle:focus,.wp-customizer #customize-controls .customize-info .customize-help-toggle:hover,.wp-customizer #customize-controls .customize-info.open .customize-help-toggle{color:#00a0d2}.wp-customizer #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-customizer .customize-screen-options-toggle:focus:before{-webkit-box-shadow:0 0 0 1px #00a0d2;box-shadow:0 0 0 1px #00a0d2;-webkit-border-radius:100%;border-radius:100%}.wp-customizer #available-menu-items .menu-item-handle:hover .item-add,.wp-customizer .menu-item-handle:hover,.wp-customizer .menu-item-handle:hover .item-edit,.wp-customizer .menu-item-handle:hover .item-type{color:#00a0d2}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#00a0d2!important}.customize-control input[type=text]{line-height:23px}#customize-outer-theme-controls li[id*=customize-control-]{width:100%}#customize-outer-theme-controls input[type=checkbox],#customize-outer-theme-controls input[type=radio]{float:none;min-height:inherit}.control-section .accordion-section-content{overflow-y:auto}.wp-customizer .control-section h3.accordion-section-title{padding:10px 25px 11px 14px}.wp-customizer #customize-controls h3{font-size:15px;font-weight:400}.control-section .accordion-section-title:after{top:7px}.control-section.control-panel .accordion-section-title:after{top:11px;-webkit-transition:right .3s ease-in-out,opacity .3s ease-in-out;-moz-transition:right .3s ease-in-out,opacity .3s ease-in-out;-ms-transition:right .3s ease-in-out,opacity .3s ease-in-out;-o-transition:right .3s ease-in-out,opacity .3s ease-in-out;transition:right .3s ease-in-out,opacity .3s ease-in-out;right:10px;opacity:.7}.rtl .control-section.control-panel .accordion-section-title:after{-webkit-transition:left .3s ease-in-out,opacity .3s ease-in-out;-moz-transition:left .3s ease-in-out,opacity .3s ease-in-out;-ms-transition:left .3s ease-in-out,opacity .3s ease-in-out;-o-transition:left .3s ease-in-out,opacity .3s ease-in-out;transition:left .3s ease-in-out,opacity .3s ease-in-out;left:10px;right:initial}#customize-theme-controls .control-section.control-panel h3.accordion-section-title:focus:after,#customize-theme-controls .control-section.control-panel h3.accordion-section-title:hover:after{right:8px;opacity:1;color:#666!important}.rtl #customize-theme-controls .control-section.control-panel h3.accordion-section-title:focus:after,.rtl #customize-theme-controls .control-section.control-panel h3.accordion-section-title:hover:after{left:6px;right:initial}#customize-theme-controls .control-section.control-panel>h3.accordion-section-title:focus:after,#customize-theme-controls .control-section.control-panel>h3.accordion-section-title:hover:after,.control-section.control-panel>.accordion-section-title:after{background:0 0!important;border:none!important}#customize-theme-controls h3.accordion-section-title{-webkit-transition:background .1s ease-in-out;-moz-transition:background .1s ease-in-out;-ms-transition:background .1s ease-in-out;-o-transition:background .1s ease-in-out;transition:background .1s ease-in-out}.customize-control-checkbox label,.customize-control-nav_menu_auto_add label,.customize-control-radio label{line-height:16px;margin-left:0}input::-webkit-input-placeholder{color:#9a9a9a;font-style:italic}input:-moz-placeholder{color:#9a9a9a;font-style:italic}input::-moz-placeholder{color:#9a9a9a;font-style:italic}input:-ms-input-placeholder{color:#9a9a9a;font-style:italic}.czr-customizr-title{text-transform:uppercase;margin:1em 0 5px 0;font-size:15px!important;border-bottom:1px dotted #555;padding-bottom:5px;text-align:center}h3.czr-customizr-title::before{content:'\00b7';padding-right:3px}h3.czr-customizr-title::after{content:'\00b7';padding-left:3px}.czr-after-button{border-color:#fff;margin-top:15px}.czr-emphasize{line-height:1.2em;color:#2e2e2e}i.czr-notice{display:block;clear:both}span.czr-notice{color:#313131;font-size:12px;font-style:italic;clear:both;display:block;line-height:18px}.czr-customizer-separator-invisible{border:none;margin-top:15px}.czr-skin-gen-label{float:left}.czr-skin-gen-color-picker{float:right}.czr-number-label{float:left}.czr-number-input{float:right}.czr-check-label{float:left;max-width:85%}.rtl .czr-check-label{float:right}input[type=checkbox],input[type=radio]{float:right;min-height:18px}.czr-font-select{float:left}li#customize-control-tc_theme_options-tc_custom_css textarea{font-size:14px;background:#394143;color:#e2e728;min-height:300px}.customize-control .czr-navigate-to-post-list{color:#00a0d2;font-weight:700;float:left;clear:both;width:100%;margin-bottom:8px}.czr-sub-control{padding-left:13%;max-width:87%;position:relative}.czr-sub-control:before{content:'';height:116%;background:#00a0d2;width:2%;position:absolute;left:7%}.customize-control-tc_cropped_image .upload-button{float:right}.customize-control-tc_cropped_image .remove-button{float:left;margin-right:3px}.customize-control-tc_cropped_image .actions{margin-bottom:32px}.customize-control-tc_cropped_image .current{margin-bottom:8px}.customize-control-tc_cropped_image .remove-button,.customize-control-tc_cropped_image .upload-button{white-space:normal;width:48%;height:auto}.customize-control-tc_cropped_image .current .container{min-height:40px;overflow:hidden;border:1px solid #eee;-webkit-border-radius:2px;border-radius:2px}.customize-control-tc_cropped_image img{width:100%;-webkit-border-radius:2px;border-radius:2px}.customize-control-tc_cropped_image .inner{line-height:20px;top:10px}.rtl .customize-control-tc_cropped_image .upload-button{float:left}.rtl .customize-control-tc_cropped_image .remove-button{float:right;margin-left:3px}.czr-layout-img{height:22px;margin-top:2px;outline:1px solid #fff}.czr-layout-title{padding:0 0 18px 12px;display:inline-block;line-height:0;vertical-align:middle}.customize-control-czr_multi_input{width:96%;border:1px solid #ccc;padding:2%}.czr-multi-input-wrapper{width:95%;padding:0 0 0 5%}.czr-multi-input-wrapper [data-input-type=color] .czr-input{float:left;clear:both}#customize-theme-controls #accordion-panel-czr-footer-panel{border-bottom:1px solid #ddd}#customize-theme-controls #accordion-panel-hu-advanced-panel,#customize-theme-controls #accordion-panel-nav_menus,#customize-theme-controls .control-panel-widgets{margin-top:10px}#customize-theme-controls #accordion-panel-hu-advanced-panel,#customize-theme-controls #accordion-panel-hu-header-panel,#customize-theme-controls #accordion-panel-nav_menus,#customize-theme-controls .control-panel-widgets{border-top:1px solid #ddd}#customize-theme-controls #accordion-panel-hu-general-panel,#customize-theme-controls #accordion-panel-tc-global-panel{margin-bottom:10px}#customize-theme-controls #accordion-section-frontpage_sec,#customize-theme-controls #accordion-section-static_front_page{margin-bottom:10px}#customize-theme-controls #accordion-section-tc_fpu{margin-bottom:10px}#customize-theme-controls #accordion-section-tc_font_customizer_settings{margin-bottom:10px}#customize-theme-controls #accordion-panel-__sektions__{margin-bottom:10px}#customize-header-actions .customize-controls-close{left:45px}.customize-controls-close,.customize-controls-home-or-add{top:-1px}.customize-controls-home-or-add{display:block;position:absolute;left:0;width:45px;height:41px;padding:0 2px 0 0;background:#eee;border:none;border-top:4px solid #eee;border-right:1px solid #ddd;border-bottom:1px solid #ddd;color:#444;text-align:left;cursor:pointer;text-decoration:none;-webkit-transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;transition:color .1s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.customize-controls-home-or-add>.material-icons{line-height:39px;text-align:center;display:block}.customize-controls-home-or-add:before{font-size:17px;line-height:45px;position:relative;top:-4px;left:15px}.customize-controls-home-or-add:hover{background:#fff;color:#0073aa;border-top-color:#0073aa;outline:0;-webkit-box-shadow:none;box-shadow:none}.rtl.wp-customizer #customize-header-actions .customize-controls-close{right:45px;left:auto}.rtl.wp-customizer .customize-controls-home-or-add{left:auto;right:0;border-right:0;border-left:1px solid #ddd}.control-panel-content .hu-menu-notice{margin-left:3%}span.czr-panel-subtitle{display:block;font-size:12px;font-style:italic}.pro-title-block{border:1px solid #eea236;padding:0 6px;font-size:.7em;display:inline-block;margin-right:3px;bottom:2px;position:relative;color:#f0ad4e;webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);border-radius:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}#customize-controls .control-section-czr-customize-section-pro .accordion-section-title:focus,#customize-controls .control-section-czr-customize-section-pro .accordion-section-title:hover{background-color:#fff}#customize-theme-controls .control-section-czr-customize-section-pro .accordion-section-title:after{content:none}#accordion-section-go_pro_sec .accordion-section-title{margin:0 0 15px}.control-section-czr-customize-section-pro .accordion-section-title .button{font-size:15px;line-height:24px;height:30px;padding:1px 20px;display:inline-block;color:#f59000;background:#fff;border:1px solid #eea236;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border-radius:3px;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;-ms-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:-4px;font-weight:400;margin-left:8px}.control-section-czr-customize-section-pro .accordion-section-title .button:hover{color:#fff;background:#ed9c28;border-color:#d58512}.rtl .control-section-czr-customize-section-pro .accordion-section-title .button{margin-left:0;margin-right:8px}@-webkit-keyframes czr-mr-loader{0%{-webkit-transform:scale(.1);transform:scale(.1);opacity:1}70%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}100%{opacity:0}}@keyframes czr-mr-loader{0%{-webkit-transform:scale(.1);transform:scale(.1);opacity:1}70%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}100%{opacity:0}}.czr-css-loader{display:none;width:50px;height:50px;position:absolute;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);top:50%;left:50%}.csstransforms3d .czr-css-loader{display:block}.czr-mr-loader>div:nth-child(0){-webkit-animation-delay:-.8s;animation-delay:-.8s}.czr-mr-loader>div:nth-child(1){-webkit-animation-delay:-.6s;animation-delay:-.6s}.czr-mr-loader>div:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.czr-mr-loader>div:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}.czr-mr-loader>div{-webkit-animation-fill-mode:both;animation-fill-mode:both;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;border:2px solid #777;-webkit-animation:czr-mr-loader 1.25s 0s infinite cubic-bezier(.21,.53,.56,.8);animation:czr-mr-loader 1.25s 0s infinite cubic-bezier(.21,.53,.56,.8)}.in-sub-panel #czr-donate-customizer,.in-sub-panel .czr-cta-wrap{left:-450px;height:0}.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-450px}@media screen and (max-width:1400px){.in-sub-panel #czr-donate-customizer,.in-sub-panel .czr-cta-wrap{left:-380px}.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-380px}}@media screen and (max-width:979px){.in-sub-panel #czr-donate-customizer,.in-sub-panel .czr-cta-wrap{left:-300px}.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-300px}}@media screen and (max-width:640px){.in-sub-panel #czr-donate-customizer,.in-sub-panel .czr-cta-wrap{left:-100%}.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-100%;left:auto}}@media screen and (min-width:980px){.wp-customizer .expanded #customize-footer-actions{width:380px}}@media screen and (min-width:1401px){.wp-customizer .expanded #customize-footer-actions{width:440px}}li.customize-control[data-module] li{margin-bottom:0;font-size:.85em}li.customize-control[data-module] [class*=czr-]{font-size:.9rem}li.customize-control[data-module] [class*=czr-] .hidden{display:none}li.customize-control[data-module] .czr-notice{font-size:12px!important}.czr-open-pre-add-new{display:block;float:left;margin:2% 2% 0;width:99%;padding:2%;background:#fff;color:inherit;opacity:1;font-size:16px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:opacity 1s ease-in-out;-moz-transition:opacity 1s ease-in-out;-ms-transition:opacity 1s ease-in-out;-o-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}.czr-open-pre-add-new.active{background:#646464;color:#000;opacity:.8;border-radius:3px 3px 0 0}.czr-single-item{padding:0;margin:1% 0 0 2%;float:left;width:98%;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:opacity 1s ease-in-out;-moz-transition:opacity 1s ease-in-out;-ms-transition:opacity 1s ease-in-out;-o-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}#customize-theme-controls .czr-single-item.open{outline:1px solid #ccc}#customize-theme-controls .mono-item-mod .czr-single-item{outline:0}.czr-single-item .czr-item-content,.czr-single-item .czr-item-header{padding:1%;background:0 0}.czr-items-wrapper .czr-single-item .czr-builtin-model{background:#e1dfdf;color:#555}.czr-items-wrapper .inactive{opacity:.6}.czr-item-sort-handle{cursor:move}.czr-single-item .czr-item-header{position:relative;background:#ededed;color:#fff;float:left;width:98%;-webkit-transition:background .1s ease-in-out;-moz-transition:background .1s ease-in-out;-ms-transition:background .1s ease-in-out;-o-transition:background .1s ease-in-out;transition:background .1s ease-in-out}.czr_widget_areas_module .czr-single-item .czr-custom-model{background:#3b8dbd}. .czr-single-item .czr-custom-model:hover{background:#aaa}.czr-single-item .czr-item-header:hover{background:#ccc}.czr-items-wrapper .czr-single-item .czr-builtin-model:hover{background:#ccc}.czr-move-icon{position:absolute;top:-2px;left:3px;font-size:10px;color:#999}.czr-item-title{float:left;font-size:17px;color:#000;padding:4px;width:67%}.czr-inactive-alert{font-size:12px;font-style:italic}.czr_widget_areas_module .czr-item-title{color:#fff}.czr-builtin-model .czr-item-title{color:#23282d}.czr-item-title h4{margin:0}.czr-item-title .fab::before,.czr-item-title .far::before,.czr-item-title .fas::before{padding-right:2px}.czr-item-btns{float:right}.czr-item-btns a{font-size:17px;padding:7px 5px;color:#9e9e9e;-webkit-transition:color .25s ease-in-out;-moz-transition:color .25s ease-in-out;-ms-transition:color .25s ease-in-out;-o-transition:color .25s ease-in-out;transition:color .25s ease-in-ou}.czr-item-btns a:active,.czr-item-btns a:focus{outline:0;outline:0;-webkit-box-shadow:none;box-shadow:none}.czr-item-btns a.active,.czr-item-btns a:hover{color:#23282d}.czr_widget_areas_module .czr-item-btns a{color:#fff}.czr-builtin-model .czr-item-btns a{color:#555}.czr-builtin-model .czr-item-btns .czr-edit-view.active,.czr-builtin-model .czr-item-btns .czr-edit-view:hover{color:#00a0d2}.czr-item-btns .czr-edit-view.active,.czr-item-btns .czr-edit-view:hover{color:#00a0d2}.czr_widget_areas_module .czr-edit-view:hover,.czr_widget_areas_module .czr-item-btns .czr-edit-view.active{color:#000}.czr_widget_areas_module .czr-builtin-model .czr-edit-view.active,.czr_widget_areas_module .czr-builtin-model .czr-edit-view:hover{color:#00a0d2}.czr-item-btns .czr-display-alert.active,.czr-item-btns .czr-display-alert:hover{color:#23282d}.czr-single-item .czr-item-content{float:left;display:none;clear:both;width:96%;padding:2%}.czr-single-item .czr-item-content input{margin-bottom:0}.czr-sub-set{margin-bottom:0;display:block;float:left;width:100%;padding:1% 0;position:relative}.czr-sub-set .czr-input{float:right;width:60%}.czr-sub-set .customize-control-title.width-100,.width-100,.width-100 .czr-input{width:100%}.czr-sub-set .customize-control-title{float:left;width:40%;padding:1px 0;font-size:13px}.customize-control-title.width-80{width:80%!important}.czr-input.width-20{width:20%!important}.rtl.wp-customizer .czr-sub-set .customize-control-title{float:right}.disabled .customize-control-title,.disabled .czr-input{opacity:.6;filter:blur(1px);-webkit-filter:blur(1px)}.czr-item-title .fab,.czr-item-title .far,.czr-item-title .fas{font-size:18px}.czr-remove-alert-wrapper{display:none;clear:both;float:left;padding:2%;width:95%;margin:10px 0;text-shadow:0 1px 0 rgba(255,255,255,.5);background-color:#eee;color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.czr-remove-alert-wrapper p{padding:5px;margin:0}.czr-pre-add-wrapper{position:relative;float:left;width:100%}.czr-adding-new .czr-items-wrapper{opacity:.6}.czr-pre-add-view-content{display:none;padding:3%;border:1px solid #ccc;background:#fff;border-top:none;margin:0 0 0 2%;float:left;width:92%;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;position:relative;opacity:1;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-ms-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear}.czr-model-added .czr-pre-add-view-content{opacity:.2}.czr-pre-add-wrapper .czr-add-new{background:#3b8dbd;color:#fff;-webkit-transition:background .5s linear;-moz-transition:background .5s linear;-ms-transition:background .5s linear;-o-transition:background .5s linear;transition:background .5s linear;float:right;border:none}.czr-add-success{width:100%;margin:0 0 0 2%;position:absolute;top:0;left:0;font-size:25px;text-align:center;opacity:0;-webkit-transition:opacity .1s linear;-moz-transition:opacity .1s linear;-ms-transition:opacity .1s linear;-o-transition:opacity .1s linear;transition:opacity .1s linear}.czr-model-added .czr-add-success{opacity:1}.czr-add-success p{vertical-align:middle;display:inline-block;line-height:35px;margin:0;font-size:25px;color:#82b965;padding:0 3%}.control-section-widget_zones_management{margin:10px 0;z-index:1}.czr-zone-infos{width:96%;padding:0 2%;font-size:12px;float:left;font-style:italic}.czr-unavailable-location{opacity:.7}.czr-location-alert{float:left;width:100%;padding:1% 0;margin:1% 0;text-align:center;border:1px solid orange;background:#fee5b6;color:#000;font-size:11px;font-style:italic}.czr-toggle-modopt{color:#495050;text-shadow:1px 1px 0 #fff;-webkit-transition:color .4s;transition:color .4s;position:absolute;right:0;padding-left:3px;font-size:25px;line-height:24px}.rtl.wp-customizer .czr-toggle-modopt{left:0;right:auto;padding-left:0;padding-right:3px}.czr-modopt-visible .czr-toggle-modopt,.czr-toggle-modopt:hover{color:#3b8dbd}body.czr-editing-modopt #customize-preview{opacity:.7}body #customize-controls{-webkit-transition:opacity .4s ease-in-out;-moz-transition:opacity .4s ease-in-out;-ms-transition:opacity .4s ease-in-out;-o-transition:opacity .4s ease-in-out;transition:opacity .4s ease-in-out}body.czr-editing-modopt #customize-controls{opacity:.4}.czr-mod-opt-wrapper{position:absolute;top:0;bottom:0;left:-301px;opacity:0;overflow-x:hidden;overflow-y:auto;margin:0;z-index:999999;width:60%;min-width:300px;padding:1% 2%;color:#fff;background:rgba(0,0,0,.8);-webkit-transition:all .18s ease-in-out;-moz-transition:all .18s ease-in-out;-ms-transition:all .18s ease-in-out;-o-transition:all .18s ease-in-out;transition:all .18s ease-in-out;border-right:1px solid #4c4c4c}body.czr-editing-modopt .czr-mod-opt-wrapper{left:0;visibility:visible;opacity:1}.czr-close-modopt{position:absolute;top:10px;right:25px;font-size:31px;cursor:pointer}.czr-mod-opt-wrapper .czr-sub-set{background:rgba(238,238,238,.13);padding:3% 2%;width:96%;margin:5px 0}.czr-mod-opt-wrapper .czr-notice{color:#fff}.czr-mod-opt-wrapper .mod-opt-title{color:#fff;border-bottom:1px solid #fff;padding:5% 0;text-align:center}.tabs{position:relative;display:none;overflow:hidden;margin:0 auto;width:100%;font-weight:300;font-size:1.25em}.tabs nav{text-align:center}.tabs nav ul{position:relative;overflow:hidden;display:-ms-flexbox;display:-webkit-flex;display:-moz-flex;display:-ms-flex;display:flex;margin:0 auto;padding:0;max-width:1200px;list-style:none;-ms-box-orient:horizontal;-ms-box-pack:center;-webkit-flex-flow:row wrap;-moz-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-justify-content:center;-moz-justify-content:center;-ms-justify-content:center;justify-content:center}.tabs nav ul li{font-size:14px;position:relative;z-index:1;display:block;margin:0;text-align:center;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.tabs nav ul li.cols-4{width:25%}.tabs nav ul li.cols-3{width:33%}.tabs nav ul li.cols-2{width:50%}.tabs nav ul li.cols-1{width:100%}.tabs nav a{position:relative;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5}.tabs nav a span{vertical-align:middle;font-size:.75em}.tabs nav li.tab-current a{color:#74777b}.tabs nav a:focus{outline:0}li.tab-current::after,li.tab-current::before{content:'';height:100%;position:absolute;-webkit-box-shadow:4px 0 15px 0 rgba(37,37,37,.63);box-shadow:4px 0 15px 0 rgba(37,37,37,.63);top:0;width:0;right:0;z-index:4;width:100%}li.tab-current::before{left:0;-webkit-box-shadow:0 0 15px 4px rgba(37,37,37,.63);box-shadow:0 0 15px 4px rgba(37,37,37,.63)}li.tab-inactive::after{content:'';width:100%;position:absolute;height:2px;bottom:-7px;left:0;-webkit-box-shadow:4px 0 15px 0 rgba(119,119,119,.58);box-shadow:4px 0 15px 0 rgba(0,0,0,.86)}.content-wrap{position:relative}.content-wrap section{display:none;margin:0 auto;max-width:1200px}section .czr-sub-set:first-child{margin:0}.content-wrap section.content-current{display:block}.no-flexbox nav ul{display:block}.no-flexbox nav ul li{min-width:15%;display:inline-block}.tabs-style-topline{max-width:1200px}.tabs-style-topline nav li{border:1px solid rgba(40,44,42,.1)}.czr-items-wrapper .tabs-style-topline nav li{border:none}.tabs-style-topline nav li:not(:last-child){border-right:none}.tabs-style-topline nav li.tab-current{border-top-color:#fff;border-bottom:none;background:rgba(238,238,238,.13)}.tabs-style-topline nav a{padding:.65em .5em;background:rgba(40,44,42,.05);color:#fff;line-height:1;-webkit-transition:color .2s;transition:color .2s;text-decoration:none}.czr-items-wrapper .tabs-style-topline nav a{background:rgba(40,44,42,.45)}.tabs-style-topline nav a:focus,.tabs-style-topline nav a:hover{text-decoration:underline}.tabs-style-topline nav li.tab-current a{background:0 0;box-shadow:inset 0 3px 0 #fff;color:#fff;text-decoration:underline}.czr-items-wrapper .tabs-style-topline nav li.tab-current a{color:#000}.tabs-style-topline .icon::before{display:block;margin:0}.tabs-style-topline nav a span{text-transform:uppercase;font-weight:700}@media screen and (max-width:58em){.tabs nav a.icon span{display:none}.tabs nav a:before{margin-right:0}}.czr_slide_module .czr-item-title{padding:0 7px;height:32px}.czr_slide_module .slide-thumb,.czr_slide_module .slide-title{display:block;height:32px;line-height:32px;float:left}.czr_slide_module .slide-title{padding-left:5px}.slide-mod-skope-notice{padding:3%;background:#fff;border-left:4px solid #00a0d2;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);float:left;font-size:12px;line-height:1.5em}.slide-mod-skope-notice .czr-skope-switch{cursor:pointer;text-decoration:underline}.modopts-top-buttons{width:100%;float:left;margin-bottom:4%;text-align:center}.item-bottom-buttons{width:100%;float:left;padding:1% 0}.item-bottom-btn,.modopt-top-btn{opacity:1;color:#fff;font-size:14px;cursor:pointer;border-width:1px;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-ms-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;opacity:1}.item-bottom-btn{background:#868686;width:47%;margin-right:2%;padding:1% 0}.modopt-top-btn{background:rgba(171,171,171,.5);width:170px;padding:2px 0}.item-bottom-btn:hover{background:#5d5d5d}.modopt-top-btn:hover{background:rgba(41,41,41,.53)}.item-bottom-btn[disabled],.item-bottom-btn[disabled]:hover,.modopt-top-btn[disabled],.modopt-top-btn[disabled]:hover{opacity:.4;cursor:default;-webkit-box-shadow:none!important;box-shadow:none!important;background:inherit}.czr-notice{font-size:12px;font-weight:400}.selecter-element{position:absolute;opacity:0}.selecter{display:block;float:right;margin:2px 0;position:relative;width:100%;z-index:100}.selecter .selecter-selected{background:#f9f9f9 url(img/jquery.fs.selecter-arrow.png) no-repeat right center;border:1px solid #ccc;border-radius:3px;color:#333;cursor:pointer;display:block;font-size:13px;margin:0;overflow:hidden;padding:4px 4%;position:relative;text-overflow:clip;z-index:49;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);height:auto;line-height:18px;width:90%}.selecter .selecter-options{border:1px solid #ccc;border-width:0 1px 1px;background-color:#fefefe;border-radius:0 0 3px 3px;box-shadow:0 1px 4px rgba(0,0,0,.15);display:none;left:0;margin:0;max-height:260px;overflow:auto;overflow-x:hidden;padding:0;position:relative;top:100%;width:99%;z-index:50}.selecter .selecter-group{background:#f9f9f9;border-bottom:1px solid #e3e3e3;color:#999;display:block;font-size:11px;padding:5px 6px 4px;text-transform:uppercase}.selecter .selecter-item{background:#fff;border-bottom:1px solid #e3e3e3;color:#333;cursor:pointer;display:block;font-size:13px;margin:0;overflow:hidden;padding:8px 10px;text-overflow:ellipsis;width:86%;height:auto;line-height:14px;padding:8px 24px 8px 10px}.selecter .selecter-item.selected{background:#f9f9f9}.selecter .selecter-item.disabled{color:#999;cursor:default}.selecter .selecter-item:first-child{border-radius:0}.selecter .selecter-item:last-child{border-radius:0 0 2px 2px;border-bottom:0}.rtl .selecter .selecter-selected{background:#f9f9f9 url(img/jquery.fs.selecter-arrow.png) no-repeat 4% center}@media screen and (min-width:980px){.selecter .selecter-item.selected:hover,.selecter .selecter-item:hover{background-color:#f3f3f3}.selecter .selecter-item.disabled:hover{background-color:#fff}.selecter:hover .selecter-selected{background-color:#fff}.selecter.disabled .selecter-item:hover{background:#fff}}.selecter.open{z-index:101}.selecter.open .selecter-selected{border-radius:3px 3px 0 0;z-index:51}.selecter.focus .selecter-selected,.selecter.open .selecter-selected{background-color:#fff;box-shadow:0 0 5px rgba(0,0,0,.1)}.selecter.cover .selecter-options{border-radius:3px;border-width:1px;top:0}.selecter.cover .selecter-options .selecter-item.first{border-radius:3px 3px 0 0}.selecter.cover.open .selecter-selected{border-radius:3px 3px 0 0;z-index:49}.selecter.bottom .selecter-options{border-width:1px 1px 0;bottom:100%;top:auto}.selecter.bottom .selecter-item:last-child{border:none}.selecter.bottom.open .selecter-selected{border-radius:0 0 3px 3px}.selecter.bottom.open .selecter-options{border-radius:3px 3px 0 0}.selecter.bottom.cover .selecter-options{bottom:0;top:auto}.selecter.bottom.cover.open .selecter-selected{border-radius:3px}.selecter.bottom.cover.open .selecter-options{border-radius:3px}.selecter.multiple .selecter-options{border-radius:3px;border-width:1px;box-shadow:none;display:block;position:static;width:100%}.selecter.disabled .selecter-selected{background:#fff;border-color:#eee;color:#ccc;cursor:default}.selecter.disabled .selecter-options{background:#fff;border-color:#eee}.selecter.disabled .selecter-group,.selecter.disabled .selecter-item{border-color:#eee;color:#ccc;cursor:default}.selecter.disabled .selecter-item.selected{background:#fafafa}.selecter .selecter-options.scroller{overflow:hidden}.selecter .selecter-options.scroller .scroller-content{max-height:260px;padding:0}@media screen and (max-width:740px){.selecter{max-width:100%}}@media screen and (max-width:500px){.selecter{max-width:100%}}.stepper{border-radius:3px;margin:0 0 10px 0;overflow:hidden;position:relative;width:35%;float:left;clear:both}.stepper .stepper-input{background:#f9f9f9;border:1px solid #ccc;border-radius:3px;color:#333;font-size:13px;line-height:1.2;margin:0;overflow:hidden;padding:5px 10px 5px!important;width:100%!important;z-index:49;-moz-appearance:textfield;max-width:none!important}.stepper .stepper-input::-webkit-inner-spin-button,.stepper .stepper-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.stepper .stepper-input:focus{background-color:#fff}.stepper .stepper-arrow{background:#eee url(img/jquery.fs.stepper-arrows.png) no-repeat;border:1px solid #ccc;cursor:pointer;display:block;height:46%;position:absolute;right:0;text-indent:-99999px;width:20px;z-index:50}.stepper .stepper-arrow.up{background-position:center top;border-bottom:none;top:0}.stepper .stepper-arrow.down{background-position:center bottom;bottom:0}.rtl .stepper .stepper-input{text-align:left}@media screen and (min-width:740px){.stepper:hover .stepper-input{background-color:#fff}.stepper .stepper-step:hover{background-color:#f9f9f9}.stepper.disabled .stepper-arrow{background:#fff;border-color:#eee;cursor:default}}.stepper.disabled .stepper-input{background:#fff;border-color:#eee;color:#ccc}.stepper.disabled .stepper-arrow{background:#fff;border-color:#eee;cursor:default}.icheckbox_flat-green,.iradio_flat-green{display:inline-block;vertical-align:middle;margin:0;padding:0;width:20px;height:20px;background:url(img/green.png) no-repeat;border:none;cursor:pointer;top:4px;float:right}.rtl [class*=icheckbox_flat-]{float:left}.icheckbox_flat-green{background-position:0 0}.icheckbox_flat-green.checked{background-position:-22px 0}.icheckbox_flat-green.disabled{background-position:-44px 0;cursor:default}.icheckbox_flat-green.checked.disabled{background-position:-66px 0}.iradio_flat-green{background-position:-88px 0}.iradio_flat-green.checked{background-position:-110px 0}.iradio_flat-green.disabled{background-position:-132px 0;cursor:default}.iradio_flat-green.checked.disabled{background-position:-154px 0}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (-moz-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:3/2),only screen and (min-device-pixel-ratio:1.5){.icheckbox_flat-green,.iradio_flat-green{background-image:url(img/green@2x.png);-webkit-background-size:176px 22px;background-size:176px 22px}}.icheckbox_flat-grey,.iradio_flat-grey{display:inline-block;vertical-align:middle;margin:0;padding:0;width:20px;height:20px;background:url(img/grey.png) no-repeat;border:none;cursor:pointer;top:4px;float:right}.icheckbox_flat-grey{background-position:0 0}.icheckbox_flat-grey.checked{background-position:-22px 0}.icheckbox_flat-grey.disabled{background-position:-44px 0;cursor:default}.icheckbox_flat-grey.checked.disabled{background-position:-66px 0}.iradio_flat-grey{background-position:-88px 0}.iradio_flat-grey.checked{background-position:-110px 0}.iradio_flat-grey.disabled{background-position:-132px 0;cursor:default}.iradio_flat-grey.checked.disabled{background-position:-154px 0}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (-moz-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:3/2),only screen and (min-device-pixel-ratio:1.5){.icheckbox_flat-grey,.iradio_flat-grey{background-image:url(img/grey@2x.png);-webkit-background-size:176px 22px;background-size:176px 22px}}.czr-sub-set .icheckbox_flat-green,.iradio_flat-green{float:left}body .select2-container{z-index:1000000;width:100%!important}.customize-control-czr_layouts .select2-selection--single{height:33px}.customize-control-czr_layouts .select2-container--default .select2-selection--single .select2-selection__arrow{height:30px}.customize-control-czr_layouts .select2-selection--single:focus,.select2-selection__rendered:focus{outline:0}body .select2-drop{z-index:1000000}body .select2-container,span.select2-results{font-size:14px}.select2-container--default .select2-selection--multiple{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;width:99%;min-height:36px;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}.select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#00a0d2!important;-webkit-box-shadow:0 0 2px rgba(26,188,156,.8)!important;box-shadow:0 0 2px rgba(26,188,156,.8)!important}.select2-results__options li{margin-bottom:0}.select2-container--default .select2-selection--multiple .select2-selection__choice{padding:2px;font-size:13px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;margin-bottom:0}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#00a0d2}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{font-size:17px;position:relative;top:2px;color:#23282d}.customize-control-czr_socials .select2-container--default .select2-selection--single .select2-selection__rendered{padding:5px;line-height:16px}#czr-customize-content_editor-pane{border-top:solid 1px #ddd;position:absolute;height:300px;bottom:-301px;right:0;left:0;z-index:20;background:#f1f1f1;display:block;-webkit-transition:all .2s;transition:all .2s;visibility:hidden}.czr-close-editor{position:absolute;cursor:pointer;right:20px;top:-33px;color:#444;background:#eee;font-size:13px;line-height:19px;height:20px;margin:5px 0 0 5px;padding:3px 8px 4px;border:1px solid #e5e5e5;border-bottom:none}body.czr-customize-content_editor-pane-resize #customize-preview,body.czr-customize-content_editor-pane-resize #czr-customize-content_editor-pane{-webkit-transition:none;transition:none}body.mce-fullscreen.czr-customize-content_editor-pane-open #czr-customize-content_editor-pane{top:0}body.czr-customize-content_editor-pane-open #czr-customize-content_editor-pane{bottom:40px;visibility:inherit}#czr-customize-content_editor-pane .wp-editor-tools{padding-top:5px;padding-right:10px}#czr-customize-content_editor-pane .wp-media-buttons{padding-left:5px}#customize-preview{height:auto}body.czr-customize-content_editor-pane-open #customize-preview{bottom:300px}body.mce-fullscreen #customize-preview{bottom:0}body.mce-fullscreen.czr-customize-content_editor-pane-open div.mce-fullscreen{position:relative;left:0}#wp-czr-customize-content_editor-container{border-left:0}#czr-customize-content_editor-dragbar{top:0;cursor:row-resize;display:block;height:4px;position:absolute;width:100%;z-index:21;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}body.czr-customize-content_editor-pane-resize #customize-preview:before{top:0;right:0;bottom:0;left:0;position:absolute;height:100%;width:100%;z-index:999999}.wp-customizer .ui-autocomplete.wplink-autocomplete{z-index:500110}.wp-customizer #wp-link-wrap{z-index:500105}.wp-customizer #wp_editbtns,.wp-customizer #wp_gallerybtns{z-index:500020}.wp-customizer #TB_overlay,.wp-customizer #TB_window{z-index:500050}.wp-customizer .mce-panel,.wp-customizer .mce-tooltip{z-index:500100!important}.czr-customize-content_editor-pane-open .wp-full-overlay.collapsed .wp-full-overlay-sidebar{z-index:30}.czr-customize-content_editor-pane-open .wp-full-overlay.collapsed .collapse-sidebar{bottom:308px}.czr-customize-content_editor-pane-open .wp-full-overlay.expanded .collapse-sidebar{bottom:0!important}.czr-customize-content_editor-pane-resize .wp-full-overlay.collapsed .collapse-sidebar{-webkit-transition:none;transition:none}.czr-customize-content_editor-pane-open.mce-fullscreen .wp-full-overlay.collapsed .collapse-sidebar{bottom:8px!important}.czr-resize-handle{color:#23282d;font-size:12px;position:relative;bottom:2px}.czr-sub-set[data-input-type=content_picker] .customize-control-title{width:100%}.czr-sub-set[data-input-type=content_picker] .czr-input{width:100%}.content-picker-item{height:2em}.content-picker-item .czr-picker-item-type{float:right;display:inline-block}.content-item-bar{line-height:1.2em;font-size:.9em}.content-item-bar .czr-picker-item-title{display:block;float:left;max-width:80%;text-overflow:ellipsis;overflow:hidden;font-size:13px;line-height:1.3em}.czr-sub-set[data-input-type=content_picker] span.czr-picker-item-title{display:block;float:left;max-width:80%;text-overflow:ellipsis;overflow:hidden;font-size:14px;line-height:2em;color:#000}.czr-sub-set[data-input-type=content_picker] span.czr-picker-item-type{display:inline-block;padding:0;padding-right:10px;float:right;line-height:2em}.czr-sub-set[data-input-type=range_slider]{padding:20px 0}.rangeslider,.rangeslider__fill{display:block;-moz-box-shadow:inset 0 1px 3px rgba(0,0,0,.3);-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.3);box-shadow:inset 0 1px 3px rgba(0,0,0,.3);-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}.rangeslider{background:#e6e6e6;position:relative}.rangeslider--horizontal{height:12px;width:100%}.rangeslider--vertical{width:12px;min-height:150px;max-height:100%}.rangeslider--disabled{opacity:.4}.rangeslider__fill{background:#3b8dbd;position:absolute}.rangeslider--horizontal .rangeslider__fill{top:0;height:100%}.rangeslider--vertical .rangeslider__fill{bottom:0;width:100%}.rangeslider__handle{background:#fff;border:1px solid #ccc;cursor:pointer;display:inline-block;width:34px;height:34px;position:absolute;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwLjAiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4xIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g);background-size:100%;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0,rgba(255,255,255,0)),color-stop(100%,rgba(0,0,0,.1)));background-image:-moz-linear-gradient(rgba(255,255,255,0),rgba(0,0,0,.1));background-image:-webkit-linear-gradient(rgba(255,255,255,0),rgba(0,0,0,.1));background-image:linear-gradient(rgba(255,255,255,0),rgba(0,0,0,.1));-moz-box-shadow:0 0 8px rgba(0,0,0,.3);-webkit-box-shadow:0 0 8px rgba(0,0,0,.3);box-shadow:0 0 8px rgba(0,0,0,.3);-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%;line-height:35px;text-align:center;color:#000;font-size:13px}.rangeslider__handle:after{content:"";display:block;width:18px;height:18px;margin:auto;position:absolute;top:0;right:0;bottom:0;left:0;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjEzIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjAuMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==);background-size:100%;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0,rgba(0,0,0,.13)),color-stop(100%,rgba(255,255,255,0)));background-image:-moz-linear-gradient(rgba(0,0,0,.13),rgba(255,255,255,0));background-image:-webkit-linear-gradient(rgba(0,0,0,.13),rgba(255,255,255,0));background-image:linear-gradient(rgba(0,0,0,.13),rgba(255,255,255,0));-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%}.rangeslider--active .rangeslider__handle,.rangeslider__handle:active{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4xMiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==);background-size:100%;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0,rgba(0,0,0,.1)),color-stop(100%,rgba(0,0,0,.12)));background-image:-moz-linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.12));background-image:-webkit-linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.12));background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.12))}.rangeslider--horizontal .rangeslider__handle{top:-13px;touch-action:pan-y;-ms-touch-action:pan-y}.rangeslider--vertical .rangeslider__handle{left:-13px;touch-action:pan-x;-ms-touch-action:pan-x}input[type=range]:focus+.rangeslider .rangeslider__handle{-moz-box-shadow:0 0 8px rgba(255,0,255,.9);-webkit-box-shadow:0 0 8px rgba(255,0,255,.9);box-shadow:0 0 8px rgba(255,0,255,.9)}.attachment-media-view button{color:#000;padding:5px 7px;line-height:1.5em}.czr-toggle-check{position:relative;float:right}.czr-toggle-check__input[type=checkbox]{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1}.czr-toggle-check__input[type=checkbox]:checked:before{content:"\f147";margin:-3px 0 0 -4px;color:#1e8cbe;float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 21px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.czr-toggle-check .czr-toggle-check__track{content:"";display:inline-block;vertical-align:top;box-sizing:border-box;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}.czr-toggle-check.is-checked .czr-toggle-check__track{background-color:#33b3db;border:2px solid #33b3db;border:9px solid transparent}.czr-toggle-check .czr-toggle-check__thumb{display:block;position:absolute;top:4px;left:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781;box-sizing:border-box}.czr-toggle-check.is-checked .czr-toggle-check__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.czr-toggle-check .czr-toggle-check__off{color:#6c7781;fill:currentColor;right:6px}.czr-toggle-check .czr-toggle-check__on{left:8px;-webkit-filter:invert(100%) contrast(500%);filter:invert(100%) contrast(500%);outline:1px solid transparent;outline-offset:-1px}.czr-toggle-check .czr-toggle-check__off,.czr-toggle-check .czr-toggle-check__on{position:absolute;top:6px}
1
+ .wp-customizer a{color:#000}.wp-customizer a:focus,.wp-customizer a:hover{color:#0073aa}.wp-customizer .wp-full-overlay.expanded{margin-left:440px}.wp-customizer .wp-full-overlay-sidebar{width:440px}.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-440px}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{left:-440px}.accordion-sub-container.control-panel-content{left:440px}.rtl.wp-customizer .wp-full-overlay.expanded{margin-right:440px;margin-left:0}.rtl.wp-customizer .wp-full-overlay-sidebar{width:440px}.rtl.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-440px;margin-left:0}.rtl #customize-theme-controls .control-section.current-panel>h3.accordion-section-title{right:-440px}.rtl .accordion-sub-container.control-panel-content{right:440px}.customize-section-description-container+#customize-control-custom_css:last-child{margin:0;width:100%}li#customize-control-custom_css textarea{font-size:13px;background:#394143;color:#95ff0c;min-height:300px}@media screen and (max-width:1400px){.wp-customizer .wp-full-overlay.expanded{margin-left:380px}.wp-customizer .wp-full-overlay-sidebar{width:380px}.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-380px}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{left:-380px}.accordion-sub-container.control-panel-content{left:380px}.rtl.wp-customizer .wp-full-overlay.expanded{margin-right:380px;margin-left:0}.rtl.wp-customizer .wp-full-overlay-sidebar{width:380px}.rtl.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-380px;margin-left:0}.rtl #customize-theme-controls .control-section.current-panel>h3.accordion-section-title{right:-380px}.rtl .accordion-sub-container.control-panel-content{right:380px}}@media screen and (max-width:979px){.wp-customizer .wp-full-overlay.expanded{margin-left:300px}.wp-customizer .wp-full-overlay-sidebar{width:300px}.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-300px}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{left:-300px}.accordion-sub-container.control-panel-content{left:300px}.rtl.wp-customizer .wp-full-overlay.expanded{margin-right:300px;margin-left:0}.rtl.wp-customizer .wp-full-overlay-sidebar{width:300px}.rtl.wp-customizer .wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-300px;margin-left:0}.rtl #customize-theme-controls .control-section.current-panel>h3.accordion-section-title{right:-300px}.rtl .accordion-sub-container.control-panel-content{right:300px}}@media screen and (max-width:640px){.wp-customizer .customize-controls-preview-toggle{height:46px;border-bottom:1px solid #ddd;left:87px}.wp-customizer .wp-full-overlay.expanded{margin-left:0}#customize-theme-controls .control-section.current-panel>h3.accordion-section-title{left:-100%}.accordion-sub-container.control-panel-content{left:100%}.rtl.wp-customizer .wp-full-overlay.expanded{margin-right:0}.rtl #customize-theme-controls .control-section.current-panel>h3.accordion-section-title,.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-100%;left:auto}.rtl .accordion-sub-container.control-panel-content{right:100%}}.wp-customizer .control-section.control-panel .accordion-section-title .panel-title{font-size:24px;font-weight:inherit;line-height:30px}.wp-core-ui h3{color:#555}.accordion-section-content{padding:10px 10px 15px 20px}.accordion-section-title:after,.handlediv,.item-edit,.sidebar-name-arrow,.widget-action{color:#00a0d2}.control-section.control-panel>.accordion-section-title:after{color:#00a0d2}.customize-control-title{line-height:19px;font-family:Roboto;font-weight:400}.customize-control span.customize-control-title:first-child{position:relative;padding:10px 0 5px}.wp-customizer #customize-theme-controls .accordion-section-content{background:#fff}.wp-customizer #customize-controls .customize-info .customize-help-toggle:focus,.wp-customizer #customize-controls .customize-info .customize-help-toggle:hover,.wp-customizer #customize-controls .customize-info.open .customize-help-toggle{color:#00a0d2}.wp-customizer #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-customizer .customize-screen-options-toggle:focus:before{-webkit-box-shadow:0 0 0 1px #00a0d2;box-shadow:0 0 0 1px #00a0d2;-webkit-border-radius:100%;border-radius:100%}.wp-customizer #available-menu-items .menu-item-handle:hover .item-add,.wp-customizer .menu-item-handle:hover,.wp-customizer .menu-item-handle:hover .item-edit,.wp-customizer .menu-item-handle:hover .item-type{color:#00a0d2}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:#00a0d2!important}.customize-control input[type=text]{line-height:23px}#customize-outer-theme-controls li[id*=customize-control-]{width:100%}#customize-outer-theme-controls input[type=checkbox],#customize-outer-theme-controls input[type=radio]{float:none;min-height:inherit}.control-section .accordion-section-content{overflow-y:auto}.wp-customizer .control-section h3.accordion-section-title{padding:10px 25px 11px 14px}.wp-customizer #customize-controls h3{font-size:15px;font-weight:400}.control-section .accordion-section-title:after{top:7px}.control-section.control-panel .accordion-section-title:after{top:11px;-webkit-transition:right .3s ease-in-out,opacity .3s ease-in-out;-moz-transition:right .3s ease-in-out,opacity .3s ease-in-out;-ms-transition:right .3s ease-in-out,opacity .3s ease-in-out;-o-transition:right .3s ease-in-out,opacity .3s ease-in-out;transition:right .3s ease-in-out,opacity .3s ease-in-out;right:10px;opacity:.7}.rtl .control-section.control-panel .accordion-section-title:after{-webkit-transition:left .3s ease-in-out,opacity .3s ease-in-out;-moz-transition:left .3s ease-in-out,opacity .3s ease-in-out;-ms-transition:left .3s ease-in-out,opacity .3s ease-in-out;-o-transition:left .3s ease-in-out,opacity .3s ease-in-out;transition:left .3s ease-in-out,opacity .3s ease-in-out;left:10px;right:initial}#customize-theme-controls .control-section.control-panel h3.accordion-section-title:focus:after,#customize-theme-controls .control-section.control-panel h3.accordion-section-title:hover:after{right:8px;opacity:1;color:#666!important}.rtl #customize-theme-controls .control-section.control-panel h3.accordion-section-title:focus:after,.rtl #customize-theme-controls .control-section.control-panel h3.accordion-section-title:hover:after{left:6px;right:initial}#customize-theme-controls .control-section.control-panel>h3.accordion-section-title:focus:after,#customize-theme-controls .control-section.control-panel>h3.accordion-section-title:hover:after,.control-section.control-panel>.accordion-section-title:after{background:0 0!important;border:none!important}#customize-theme-controls h3.accordion-section-title{-webkit-transition:background .1s ease-in-out;-moz-transition:background .1s ease-in-out;-ms-transition:background .1s ease-in-out;-o-transition:background .1s ease-in-out;transition:background .1s ease-in-out}.customize-control-checkbox label,.customize-control-nav_menu_auto_add label,.customize-control-radio label{line-height:16px;margin-left:0}input::-webkit-input-placeholder{color:#9a9a9a;font-style:italic}input:-moz-placeholder{color:#9a9a9a;font-style:italic}input::-moz-placeholder{color:#9a9a9a;font-style:italic}input:-ms-input-placeholder{color:#9a9a9a;font-style:italic}.czr-customizr-title{text-transform:uppercase;margin:1em 0 5px 0;font-size:15px!important;border-bottom:1px dotted #555;padding-bottom:5px;text-align:center}h3.czr-customizr-title::before{content:'\00b7';padding-right:3px}h3.czr-customizr-title::after{content:'\00b7';padding-left:3px}.czr-after-button{border-color:#fff;margin-top:15px}.czr-emphasize{line-height:1.2em;color:#2e2e2e}i.czr-notice{display:block;clear:both}span.czr-notice{color:#313131;font-size:12px;font-style:italic;clear:both;display:block;line-height:18px}.czr-customizer-separator-invisible{border:none;margin-top:15px}.czr-skin-gen-label{float:left}.czr-skin-gen-color-picker{float:right}.czr-number-label{float:left}.czr-number-input{float:right}.czr-check-label{float:left;max-width:85%}.rtl .czr-check-label{float:right}input[type=checkbox],input[type=radio]{float:right;min-height:18px}.czr-font-select{float:left}li#customize-control-tc_theme_options-tc_custom_css textarea{font-size:14px;background:#394143;color:#e2e728;min-height:300px}.customize-control .czr-navigate-to-post-list{color:#00a0d2;font-weight:700;float:left;clear:both;width:100%;margin-bottom:8px}.czr-sub-control{padding-left:13%;max-width:87%;position:relative}.czr-sub-control:before{content:'';height:116%;background:#00a0d2;width:2%;position:absolute;left:7%}.customize-control-tc_cropped_image .upload-button{float:right}.customize-control-tc_cropped_image .remove-button{float:left;margin-right:3px}.customize-control-tc_cropped_image .actions{margin-bottom:32px}.customize-control-tc_cropped_image .current{margin-bottom:8px}.customize-control-tc_cropped_image .remove-button,.customize-control-tc_cropped_image .upload-button{white-space:normal;width:48%;height:auto}.customize-control-tc_cropped_image .current .container{min-height:40px;overflow:hidden;border:1px solid #eee;-webkit-border-radius:2px;border-radius:2px}.customize-control-tc_cropped_image img{width:100%;-webkit-border-radius:2px;border-radius:2px}.customize-control-tc_cropped_image .inner{line-height:20px;top:10px}.rtl .customize-control-tc_cropped_image .upload-button{float:left}.rtl .customize-control-tc_cropped_image .remove-button{float:right;margin-left:3px}.czr-layout-img{height:22px;margin-top:2px;outline:1px solid #fff}.czr-layout-title{padding:0 0 18px 12px;display:inline-block;line-height:0;vertical-align:middle}.customize-control-czr_multi_input{width:96%;border:1px solid #ccc;padding:2%}.czr-multi-input-wrapper{width:95%;padding:0 0 0 5%}.czr-multi-input-wrapper [data-input-type=color] .czr-input{float:left;clear:both}#customize-theme-controls #accordion-panel-czr-footer-panel{border-bottom:1px solid #ddd}#customize-theme-controls #accordion-panel-hu-advanced-panel,#customize-theme-controls #accordion-panel-nav_menus,#customize-theme-controls .control-panel-widgets{margin-top:10px}#customize-theme-controls #accordion-panel-hu-advanced-panel,#customize-theme-controls #accordion-panel-hu-header-panel,#customize-theme-controls #accordion-panel-nav_menus,#customize-theme-controls .control-panel-widgets{border-top:1px solid #ddd}#customize-theme-controls #accordion-panel-hu-general-panel,#customize-theme-controls #accordion-panel-tc-global-panel{margin-bottom:10px}#customize-theme-controls #accordion-section-frontpage_sec,#customize-theme-controls #accordion-section-static_front_page{margin-bottom:10px}#customize-theme-controls #accordion-section-tc_fpu{margin-bottom:10px}#customize-theme-controls #accordion-section-tc_font_customizer_settings{margin-bottom:10px}#customize-theme-controls #accordion-panel-__sektions__{margin-bottom:10px}#customize-header-actions .customize-controls-close{left:45px}.customize-controls-close,.customize-controls-home-or-add{top:-1px}.customize-controls-home-or-add{display:block;position:absolute;left:0;width:45px;height:41px;padding:0 2px 0 0;background:#eee;border:none;border-top:4px solid #eee;border-right:1px solid #ddd;border-bottom:1px solid #ddd;color:#444;text-align:left;cursor:pointer;text-decoration:none;-webkit-transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;transition:color .1s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.customize-controls-home-or-add>.material-icons{line-height:39px;text-align:center;display:block}.customize-controls-home-or-add:before{font-size:17px;line-height:45px;position:relative;top:-4px;left:15px}.customize-controls-home-or-add:hover{background:#fff;color:#0073aa;border-top-color:#0073aa;outline:0;-webkit-box-shadow:none;box-shadow:none}.rtl.wp-customizer #customize-header-actions .customize-controls-close{right:45px;left:auto}.rtl.wp-customizer .customize-controls-home-or-add{left:auto;right:0;border-right:0;border-left:1px solid #ddd}.control-panel-content .hu-menu-notice{margin-left:3%}span.czr-panel-subtitle{display:block;font-size:12px;font-style:italic}.pro-title-block{border:1px solid #eea236;padding:0 6px;font-size:.7em;display:inline-block;margin-right:3px;bottom:2px;position:relative;color:#f0ad4e;webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);border-radius:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}#customize-controls .control-section-czr-customize-section-pro .accordion-section-title:focus,#customize-controls .control-section-czr-customize-section-pro .accordion-section-title:hover{background-color:#fff}#customize-theme-controls .control-section-czr-customize-section-pro .accordion-section-title:after{content:none}#accordion-section-go_pro_sec .accordion-section-title{margin:0 0 15px}.control-section-czr-customize-section-pro .accordion-section-title .button{font-size:15px;line-height:24px;height:30px;padding:1px 20px;display:inline-block;color:#f59000;background:#fff;border:1px solid #eea236;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border-radius:3px;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;-ms-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:-4px;font-weight:400;margin-left:8px}.control-section-czr-customize-section-pro .accordion-section-title .button:hover{color:#fff;background:#ed9c28;border-color:#d58512}.rtl .control-section-czr-customize-section-pro .accordion-section-title .button{margin-left:0;margin-right:8px}@-webkit-keyframes czr-mr-loader{0%{-webkit-transform:scale(.1);transform:scale(.1);opacity:1}70%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}100%{opacity:0}}@keyframes czr-mr-loader{0%{-webkit-transform:scale(.1);transform:scale(.1);opacity:1}70%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}100%{opacity:0}}.czr-css-loader{display:none;width:50px;height:50px;position:absolute;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);top:50%;left:50%}.csstransforms3d .czr-css-loader{display:block}.czr-mr-loader>div:nth-child(0){-webkit-animation-delay:-.8s;animation-delay:-.8s}.czr-mr-loader>div:nth-child(1){-webkit-animation-delay:-.6s;animation-delay:-.6s}.czr-mr-loader>div:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.czr-mr-loader>div:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}.czr-mr-loader>div{-webkit-animation-fill-mode:both;animation-fill-mode:both;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;border:2px solid #777;-webkit-animation:czr-mr-loader 1.25s 0s infinite cubic-bezier(.21,.53,.56,.8);animation:czr-mr-loader 1.25s 0s infinite cubic-bezier(.21,.53,.56,.8)}.in-sub-panel #czr-donate-customizer,.in-sub-panel .czr-cta-wrap{left:-450px;height:0}.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-450px}@media screen and (max-width:1400px){.in-sub-panel #czr-donate-customizer,.in-sub-panel .czr-cta-wrap{left:-380px}.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-380px}}@media screen and (max-width:979px){.in-sub-panel #czr-donate-customizer,.in-sub-panel .czr-cta-wrap{left:-300px}.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-300px}}@media screen and (max-width:640px){.in-sub-panel #czr-donate-customizer,.in-sub-panel .czr-cta-wrap{left:-100%}.rtl .in-sub-panel #czr-donate-customizer,.rtl .in-sub-panel .czr-cta-wrap{right:-100%;left:auto}}@media screen and (min-width:980px){.wp-customizer .expanded #customize-footer-actions{width:380px}}@media screen and (min-width:1401px){.wp-customizer .expanded #customize-footer-actions{width:440px}}li.customize-control[data-module] li{margin-bottom:0;font-size:.85em}li.customize-control[data-module] [class*=czr-]{font-size:.9rem}li.customize-control[data-module] [class*=czr-] .hidden{display:none}li.customize-control[data-module] .czr-notice{font-size:12px!important}.czr-open-pre-add-new{display:block;float:left;margin:2% 2% 0;width:99%;padding:2%;background:#fff;color:inherit;opacity:1;font-size:16px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:opacity 1s ease-in-out;-moz-transition:opacity 1s ease-in-out;-ms-transition:opacity 1s ease-in-out;-o-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}.czr-open-pre-add-new.active{background:#646464;color:#000;opacity:.8;border-radius:3px 3px 0 0}.czr-single-item{padding:0;margin:1% 0 0 2%;float:left;width:98%;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:opacity 1s ease-in-out;-moz-transition:opacity 1s ease-in-out;-ms-transition:opacity 1s ease-in-out;-o-transition:opacity 1s ease-in-out;transition:opacity 1s ease-in-out}#customize-theme-controls .czr-single-item.open{outline:1px solid #ccc}#customize-theme-controls .mono-item-mod .czr-single-item{outline:0}.czr-single-item .czr-item-content,.czr-single-item .czr-item-header{padding:1%;background:0 0}.czr-items-wrapper .czr-single-item .czr-builtin-model{background:#e1dfdf;color:#555}.czr-items-wrapper .inactive{opacity:.6}.czr-item-sort-handle{cursor:move}.czr-single-item .czr-item-header{position:relative;background:#ededed;color:#fff;float:left;width:98%;-webkit-transition:background .1s ease-in-out;-moz-transition:background .1s ease-in-out;-ms-transition:background .1s ease-in-out;-o-transition:background .1s ease-in-out;transition:background .1s ease-in-out}.czr_widget_areas_module .czr-single-item .czr-custom-model{background:#3b8dbd}. .czr-single-item .czr-custom-model:hover{background:#aaa}.czr-single-item .czr-item-header:hover{background:#ccc}.czr-items-wrapper .czr-single-item .czr-builtin-model:hover{background:#ccc}.czr-move-icon{position:absolute;top:-2px;left:3px;font-size:10px;color:#999}.czr-item-title{float:left;font-size:17px;color:#000;padding:4px;width:67%}.czr-inactive-alert{font-size:12px;font-style:italic}.czr_widget_areas_module .czr-item-title{color:#fff}.czr-builtin-model .czr-item-title{color:#23282d}.czr-item-title h4{margin:0}.czr-item-title .fab::before,.czr-item-title .far::before,.czr-item-title .fas::before{padding-right:2px}.czr-item-btns{float:right}.czr-item-btns a{font-size:17px;padding:7px 5px;color:#9e9e9e;-webkit-transition:color .25s ease-in-out;-moz-transition:color .25s ease-in-out;-ms-transition:color .25s ease-in-out;-o-transition:color .25s ease-in-out;transition:color .25s ease-in-ou}.czr-item-btns a:active,.czr-item-btns a:focus{outline:0;outline:0;-webkit-box-shadow:none;box-shadow:none}.czr-item-btns a.active,.czr-item-btns a:hover{color:#23282d}.czr_widget_areas_module .czr-item-btns a{color:#fff}.czr-builtin-model .czr-item-btns a{color:#555}.czr-builtin-model .czr-item-btns .czr-edit-view.active,.czr-builtin-model .czr-item-btns .czr-edit-view:hover{color:#00a0d2}.czr-item-btns .czr-edit-view.active,.czr-item-btns .czr-edit-view:hover{color:#00a0d2}.czr_widget_areas_module .czr-edit-view:hover,.czr_widget_areas_module .czr-item-btns .czr-edit-view.active{color:#000}.czr_widget_areas_module .czr-builtin-model .czr-edit-view.active,.czr_widget_areas_module .czr-builtin-model .czr-edit-view:hover{color:#00a0d2}.czr-item-btns .czr-display-alert.active,.czr-item-btns .czr-display-alert:hover{color:#23282d}.czr-single-item .czr-item-content{float:left;display:none;clear:both;width:96%;padding:2%}.czr-single-item .czr-item-content input{margin-bottom:0}.czr-sub-set{margin-bottom:0;display:block;float:left;width:100%;padding:1% 0;position:relative}.czr-sub-set .czr-input{float:right;width:60%}.czr-sub-set .customize-control-title.width-100,.width-100,.width-100 .czr-input{width:100%}.czr-sub-set .customize-control-title{float:left;width:40%;padding:1px 0;font-size:13px}.customize-control-title.width-80{width:80%!important}.czr-input.width-20{width:20%!important}.rtl.wp-customizer .czr-sub-set .customize-control-title{float:right}.disabled .customize-control-title,.disabled .czr-input{opacity:.6;filter:blur(1px);-webkit-filter:blur(1px)}.czr-item-title .fab,.czr-item-title .far,.czr-item-title .fas{font-size:18px}.czr-remove-alert-wrapper{display:none;clear:both;float:left;padding:2%;width:95%;margin:10px 0;text-shadow:0 1px 0 rgba(255,255,255,.5);background-color:#eee;color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.czr-remove-alert-wrapper p{padding:5px;margin:0}.czr-pre-add-wrapper{position:relative;float:left;width:100%}.czr-adding-new .czr-items-wrapper{opacity:.6}.czr-pre-add-view-content{display:none;padding:3%;border:1px solid #ccc;background:#fff;border-top:none;margin:0 0 0 2%;float:left;width:92%;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;position:relative;opacity:1;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-ms-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear}.czr-model-added .czr-pre-add-view-content{opacity:.2}.czr-pre-add-wrapper .czr-add-new{background:#3b8dbd;color:#fff;-webkit-transition:background .5s linear;-moz-transition:background .5s linear;-ms-transition:background .5s linear;-o-transition:background .5s linear;transition:background .5s linear;float:right;border:none}.czr-add-success{width:100%;margin:0 0 0 2%;position:absolute;top:0;left:0;font-size:25px;text-align:center;opacity:0;-webkit-transition:opacity .1s linear;-moz-transition:opacity .1s linear;-ms-transition:opacity .1s linear;-o-transition:opacity .1s linear;transition:opacity .1s linear}.czr-model-added .czr-add-success{opacity:1}.czr-add-success p{vertical-align:middle;display:inline-block;line-height:35px;margin:0;font-size:25px;color:#82b965;padding:0 3%}.control-section-widget_zones_management{margin:10px 0;z-index:1}.czr-zone-infos{width:96%;padding:0 2%;font-size:12px;float:left;font-style:italic}.czr-unavailable-location{opacity:.7}.czr-location-alert{float:left;width:100%;padding:1% 0;margin:1% 0;text-align:center;border:1px solid orange;background:#fee5b6;color:#000;font-size:11px;font-style:italic}.czr-toggle-modopt{color:#495050;text-shadow:1px 1px 0 #fff;-webkit-transition:color .4s;transition:color .4s;position:absolute;right:0;padding-left:3px;font-size:25px;line-height:24px}.rtl.wp-customizer .czr-toggle-modopt{left:0;right:auto;padding-left:0;padding-right:3px}.czr-modopt-visible .czr-toggle-modopt,.czr-toggle-modopt:hover{color:#3b8dbd}body.czr-editing-modopt #customize-preview{opacity:.7}body #customize-controls{-webkit-transition:opacity .4s ease-in-out;-moz-transition:opacity .4s ease-in-out;-ms-transition:opacity .4s ease-in-out;-o-transition:opacity .4s ease-in-out;transition:opacity .4s ease-in-out}body.czr-editing-modopt #customize-controls{opacity:.4}.czr-mod-opt-wrapper{position:absolute;top:0;bottom:0;left:-301px;opacity:0;overflow-x:hidden;overflow-y:auto;margin:0;z-index:999999;width:60%;min-width:300px;padding:1% 2%;color:#fff;background:rgba(0,0,0,.8);-webkit-transition:all .18s ease-in-out;-moz-transition:all .18s ease-in-out;-ms-transition:all .18s ease-in-out;-o-transition:all .18s ease-in-out;transition:all .18s ease-in-out;border-right:1px solid #4c4c4c}body.czr-editing-modopt .czr-mod-opt-wrapper{left:0;visibility:visible;opacity:1}.czr-close-modopt{position:absolute;top:10px;right:25px;font-size:31px;cursor:pointer}.czr-mod-opt-wrapper .czr-sub-set{background:rgba(238,238,238,.13);padding:3% 2%;width:96%;margin:5px 0}.czr-mod-opt-wrapper .czr-notice{color:#fff}.czr-mod-opt-wrapper .mod-opt-title{color:#fff;border-bottom:1px solid #fff;padding:5% 0;text-align:center}.tabs{position:relative;display:none;overflow:hidden;margin:0 auto;width:100%;font-weight:300;font-size:1.25em}.tabs nav{text-align:center}.tabs nav ul{position:relative;overflow:hidden;display:-ms-flexbox;display:-webkit-flex;display:-moz-flex;display:-ms-flex;display:flex;margin:0 auto;padding:0;max-width:1200px;list-style:none;-ms-box-orient:horizontal;-ms-box-pack:center;-webkit-flex-flow:row wrap;-moz-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-justify-content:center;-moz-justify-content:center;-ms-justify-content:center;justify-content:center}.tabs nav ul li{font-size:14px;position:relative;z-index:1;display:block;margin:0;text-align:center;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.tabs nav ul li.cols-4{width:25%}.tabs nav ul li.cols-3{width:33%}.tabs nav ul li.cols-2{width:50%}.tabs nav ul li.cols-1{width:100%}.tabs nav a{position:relative;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5}.tabs nav a span{vertical-align:middle;font-size:.75em}.tabs nav li.tab-current a{color:#74777b}.tabs nav a:focus{outline:0}li.tab-current::after,li.tab-current::before{content:'';height:100%;position:absolute;-webkit-box-shadow:4px 0 15px 0 rgba(37,37,37,.63);box-shadow:4px 0 15px 0 rgba(37,37,37,.63);top:0;width:0;right:0;z-index:4;width:100%}li.tab-current::before{left:0;-webkit-box-shadow:0 0 15px 4px rgba(37,37,37,.63);box-shadow:0 0 15px 4px rgba(37,37,37,.63)}li.tab-inactive::after{content:'';width:100%;position:absolute;height:2px;bottom:-7px;left:0;-webkit-box-shadow:4px 0 15px 0 rgba(119,119,119,.58);box-shadow:4px 0 15px 0 rgba(0,0,0,.86)}.content-wrap{position:relative}.content-wrap section{display:none;margin:0 auto;max-width:1200px}section .czr-sub-set:first-child{margin:0}.content-wrap section.content-current{display:block}.no-flexbox nav ul{display:block}.no-flexbox nav ul li{min-width:15%;display:inline-block}.tabs-style-topline{max-width:1200px}.tabs-style-topline nav li{border:1px solid rgba(40,44,42,.1)}.czr-items-wrapper .tabs-style-topline nav li{border:none}.tabs-style-topline nav li:not(:last-child){border-right:none}.tabs-style-topline nav li.tab-current{border-top-color:#fff;border-bottom:none;background:rgba(238,238,238,.13)}.tabs-style-topline nav a{padding:.65em .5em;background:rgba(40,44,42,.05);color:#fff;line-height:1;-webkit-transition:color .2s;transition:color .2s;text-decoration:none}.czr-items-wrapper .tabs-style-topline nav a{background:rgba(40,44,42,.45)}.tabs-style-topline nav a:focus,.tabs-style-topline nav a:hover{text-decoration:underline}.tabs-style-topline nav li.tab-current a{background:0 0;box-shadow:inset 0 3px 0 #fff;color:#fff;text-decoration:underline}.czr-items-wrapper .tabs-style-topline nav li.tab-current a{color:#000}.tabs-style-topline .icon::before{display:block;margin:0}.tabs-style-topline nav a span{text-transform:uppercase;font-weight:700}@media screen and (max-width:58em){.tabs nav a.icon span{display:none}.tabs nav a:before{margin-right:0}}.czr_slide_module .czr-item-title{padding:0 7px;height:32px}.czr_slide_module .slide-thumb,.czr_slide_module .slide-title{display:block;height:32px;line-height:32px;float:left}.czr_slide_module .slide-title{padding-left:5px}.slide-mod-skope-notice{padding:3%;background:#fff;border-left:4px solid #00a0d2;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);float:left;font-size:12px;line-height:1.5em}.slide-mod-skope-notice .czr-skope-switch{cursor:pointer;text-decoration:underline}.modopts-top-buttons{width:100%;float:left;margin-bottom:4%;text-align:center}.item-bottom-buttons{width:100%;float:left;padding:1% 0}.item-bottom-btn,.modopt-top-btn{opacity:1;color:#fff;font-size:14px;cursor:pointer;border-width:1px;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-ms-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;opacity:1}.item-bottom-btn{background:#868686;width:47%;margin-right:2%;padding:1% 0}.modopt-top-btn{background:rgba(171,171,171,.5);width:170px;padding:2px 0}.item-bottom-btn:hover{background:#5d5d5d}.modopt-top-btn:hover{background:rgba(41,41,41,.53)}.item-bottom-btn[disabled],.item-bottom-btn[disabled]:hover,.modopt-top-btn[disabled],.modopt-top-btn[disabled]:hover{opacity:.4;cursor:default;-webkit-box-shadow:none!important;box-shadow:none!important;background:inherit}.czr-notice{font-size:12px;font-weight:400}.selecter-element{position:absolute;opacity:0}.selecter{display:block;float:right;margin:2px 0;position:relative;width:100%;z-index:100}.selecter .selecter-selected{background:#f9f9f9 url(img/jquery.fs.selecter-arrow.png) no-repeat right center;border:1px solid #ccc;border-radius:3px;color:#333;cursor:pointer;display:block;font-size:13px;margin:0;overflow:hidden;padding:4px 4%;position:relative;text-overflow:clip;z-index:49;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);height:auto;line-height:18px;width:90%}.selecter .selecter-options{border:1px solid #ccc;border-width:0 1px 1px;background-color:#fefefe;border-radius:0 0 3px 3px;box-shadow:0 1px 4px rgba(0,0,0,.15);display:none;left:0;margin:0;max-height:260px;overflow:auto;overflow-x:hidden;padding:0;position:relative;top:100%;width:99%;z-index:50}.selecter .selecter-group{background:#f9f9f9;border-bottom:1px solid #e3e3e3;color:#999;display:block;font-size:11px;padding:5px 6px 4px;text-transform:uppercase}.selecter .selecter-item{background:#fff;border-bottom:1px solid #e3e3e3;color:#333;cursor:pointer;display:block;font-size:13px;margin:0;overflow:hidden;padding:8px 10px;text-overflow:ellipsis;width:86%;height:auto;line-height:14px;padding:8px 24px 8px 10px}.selecter .selecter-item.selected{background:#f9f9f9}.selecter .selecter-item.disabled{color:#999;cursor:default}.selecter .selecter-item:first-child{border-radius:0}.selecter .selecter-item:last-child{border-radius:0 0 2px 2px;border-bottom:0}.rtl .selecter .selecter-selected{background:#f9f9f9 url(img/jquery.fs.selecter-arrow.png) no-repeat 4% center}@media screen and (min-width:980px){.selecter .selecter-item.selected:hover,.selecter .selecter-item:hover{background-color:#f3f3f3}.selecter .selecter-item.disabled:hover{background-color:#fff}.selecter:hover .selecter-selected{background-color:#fff}.selecter.disabled .selecter-item:hover{background:#fff}}.selecter.open{z-index:101}.selecter.open .selecter-selected{border-radius:3px 3px 0 0;z-index:51}.selecter.focus .selecter-selected,.selecter.open .selecter-selected{background-color:#fff;box-shadow:0 0 5px rgba(0,0,0,.1)}.selecter.cover .selecter-options{border-radius:3px;border-width:1px;top:0}.selecter.cover .selecter-options .selecter-item.first{border-radius:3px 3px 0 0}.selecter.cover.open .selecter-selected{border-radius:3px 3px 0 0;z-index:49}.selecter.bottom .selecter-options{border-width:1px 1px 0;bottom:100%;top:auto}.selecter.bottom .selecter-item:last-child{border:none}.selecter.bottom.open .selecter-selected{border-radius:0 0 3px 3px}.selecter.bottom.open .selecter-options{border-radius:3px 3px 0 0}.selecter.bottom.cover .selecter-options{bottom:0;top:auto}.selecter.bottom.cover.open .selecter-selected{border-radius:3px}.selecter.bottom.cover.open .selecter-options{border-radius:3px}.selecter.multiple .selecter-options{border-radius:3px;border-width:1px;box-shadow:none;display:block;position:static;width:100%}.selecter.disabled .selecter-selected{background:#fff;border-color:#eee;color:#ccc;cursor:default}.selecter.disabled .selecter-options{background:#fff;border-color:#eee}.selecter.disabled .selecter-group,.selecter.disabled .selecter-item{border-color:#eee;color:#ccc;cursor:default}.selecter.disabled .selecter-item.selected{background:#fafafa}.selecter .selecter-options.scroller{overflow:hidden}.selecter .selecter-options.scroller .scroller-content{max-height:260px;padding:0}@media screen and (max-width:740px){.selecter{max-width:100%}}@media screen and (max-width:500px){.selecter{max-width:100%}}.stepper{border-radius:3px;margin:0 0 10px 0;overflow:hidden;position:relative;width:35%;float:left;clear:both}.stepper .stepper-input{background:#f9f9f9;border:1px solid #ccc;border-radius:3px;color:#333;font-size:13px;line-height:1.2;margin:0;overflow:hidden;padding:5px 10px 5px!important;width:100%!important;z-index:49;-moz-appearance:textfield;max-width:none!important}.stepper .stepper-input::-webkit-inner-spin-button,.stepper .stepper-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.stepper .stepper-input:focus{background-color:#fff}.stepper .stepper-arrow{background:#eee url(img/jquery.fs.stepper-arrows.png) no-repeat;border:1px solid #ccc;cursor:pointer;display:block;height:46%;position:absolute;right:0;text-indent:-99999px;width:20px;z-index:50}.stepper .stepper-arrow.up{background-position:center top;border-bottom:none;top:0}.stepper .stepper-arrow.down{background-position:center bottom;bottom:0}.rtl .stepper .stepper-input{text-align:left}@media screen and (min-width:740px){.stepper:hover .stepper-input{background-color:#fff}.stepper .stepper-step:hover{background-color:#f9f9f9}.stepper.disabled .stepper-arrow{background:#fff;border-color:#eee;cursor:default}}.stepper.disabled .stepper-input{background:#fff;border-color:#eee;color:#ccc}.stepper.disabled .stepper-arrow{background:#fff;border-color:#eee;cursor:default}.icheckbox_flat-green,.iradio_flat-green{display:inline-block;vertical-align:middle;margin:0;padding:0;width:20px;height:20px;background:url(img/green.png) no-repeat;border:none;cursor:pointer;top:4px;float:right}.rtl [class*=icheckbox_flat-]{float:left}.icheckbox_flat-green{background-position:0 0}.icheckbox_flat-green.checked{background-position:-22px 0}.icheckbox_flat-green.disabled{background-position:-44px 0;cursor:default}.icheckbox_flat-green.checked.disabled{background-position:-66px 0}.iradio_flat-green{background-position:-88px 0}.iradio_flat-green.checked{background-position:-110px 0}.iradio_flat-green.disabled{background-position:-132px 0;cursor:default}.iradio_flat-green.checked.disabled{background-position:-154px 0}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (-moz-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:3/2),only screen and (min-device-pixel-ratio:1.5){.icheckbox_flat-green,.iradio_flat-green{background-image:url(img/green@2x.png);-webkit-background-size:176px 22px;background-size:176px 22px}}.icheckbox_flat-grey,.iradio_flat-grey{display:inline-block;vertical-align:middle;margin:0;padding:0;width:20px;height:20px;background:url(img/grey.png) no-repeat;border:none;cursor:pointer;top:4px;float:right}.icheckbox_flat-grey{background-position:0 0}.icheckbox_flat-grey.checked{background-position:-22px 0}.icheckbox_flat-grey.disabled{background-position:-44px 0;cursor:default}.icheckbox_flat-grey.checked.disabled{background-position:-66px 0}.iradio_flat-grey{background-position:-88px 0}.iradio_flat-grey.checked{background-position:-110px 0}.iradio_flat-grey.disabled{background-position:-132px 0;cursor:default}.iradio_flat-grey.checked.disabled{background-position:-154px 0}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (-moz-min-device-pixel-ratio:1.5),only screen and (-o-min-device-pixel-ratio:3/2),only screen and (min-device-pixel-ratio:1.5){.icheckbox_flat-grey,.iradio_flat-grey{background-image:url(img/grey@2x.png);-webkit-background-size:176px 22px;background-size:176px 22px}}.czr-sub-set .icheckbox_flat-green,.iradio_flat-green{float:left}body .czrSelect2-container{z-index:1000000;width:100%!important}.customize-control-czr_layouts .czrSelect2-selection--single{height:33px}.customize-control-czr_layouts .czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__arrow{height:30px}.customize-control-czr_layouts .czrSelect2-selection--single:focus,.czrSelect2-selection__rendered:focus{outline:0}body .czrSelect2-drop{z-index:1000000}body .czrSelect2-container,span.czrSelect2-results{font-size:14px}.czrSelect2-container--default .czrSelect2-selection--multiple{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;width:99%;min-height:36px;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}.czrSelect2-container--default.czrSelect2-container--focus .czrSelect2-selection--multiple{border-color:#00a0d2!important;-webkit-box-shadow:0 0 2px rgba(26,188,156,.8)!important;box-shadow:0 0 2px rgba(26,188,156,.8)!important}.czrSelect2-results__options li{margin-bottom:0}.czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice{padding:2px;font-size:13px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;margin-bottom:0}.czrSelect2-container--default .czrSelect2-results__option--highlighted[aria-selected]{background-color:#00a0d2}.czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove{font-size:17px;position:relative;top:2px;color:#23282d}.customize-control-czr_socials .czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__rendered{padding:5px;line-height:16px}#czr-customize-content_editor-pane{border-top:solid 1px #ddd;position:absolute;height:300px;bottom:-301px;right:0;left:0;z-index:20;background:#f1f1f1;display:block;-webkit-transition:all .2s;transition:all .2s;visibility:hidden}.czr-close-editor{position:absolute;cursor:pointer;right:20px;top:-33px;color:#444;background:#eee;font-size:13px;line-height:19px;height:20px;margin:5px 0 0 5px;padding:3px 8px 4px;border:1px solid #e5e5e5;border-bottom:none}body.czr-customize-content_editor-pane-resize #customize-preview,body.czr-customize-content_editor-pane-resize #czr-customize-content_editor-pane{-webkit-transition:none;transition:none}body.mce-fullscreen.czr-customize-content_editor-pane-open #czr-customize-content_editor-pane{top:0}body.czr-customize-content_editor-pane-open #czr-customize-content_editor-pane{bottom:40px;visibility:inherit}#czr-customize-content_editor-pane .wp-editor-tools{padding-top:5px;padding-right:10px}#czr-customize-content_editor-pane .wp-media-buttons{padding-left:5px}#customize-preview{height:auto}body.czr-customize-content_editor-pane-open #customize-preview{bottom:300px}body.mce-fullscreen #customize-preview{bottom:0}body.mce-fullscreen.czr-customize-content_editor-pane-open div.mce-fullscreen{position:relative;left:0}#wp-czr-customize-content_editor-container{border-left:0}#czr-customize-content_editor-dragbar{top:0;cursor:row-resize;display:block;height:4px;position:absolute;width:100%;z-index:21;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}body.czr-customize-content_editor-pane-resize #customize-preview:before{top:0;right:0;bottom:0;left:0;position:absolute;height:100%;width:100%;z-index:999999}.wp-customizer .ui-autocomplete.wplink-autocomplete{z-index:500110}.wp-customizer #wp-link-wrap{z-index:500105}.wp-customizer #wp_editbtns,.wp-customizer #wp_gallerybtns{z-index:500020}.wp-customizer #TB_overlay,.wp-customizer #TB_window{z-index:500050}.wp-customizer .mce-panel,.wp-customizer .mce-tooltip{z-index:500100!important}.czr-customize-content_editor-pane-open .wp-full-overlay.collapsed .wp-full-overlay-sidebar{z-index:30}.czr-customize-content_editor-pane-open .wp-full-overlay.collapsed .collapse-sidebar{bottom:308px}.czr-customize-content_editor-pane-open .wp-full-overlay.expanded .collapse-sidebar{bottom:0!important}.czr-customize-content_editor-pane-resize .wp-full-overlay.collapsed .collapse-sidebar{-webkit-transition:none;transition:none}.czr-customize-content_editor-pane-open.mce-fullscreen .wp-full-overlay.collapsed .collapse-sidebar{bottom:8px!important}.czr-resize-handle{color:#23282d;font-size:12px;position:relative;bottom:2px}.czr-sub-set[data-input-type=content_picker] .customize-control-title{width:100%}.czr-sub-set[data-input-type=content_picker] .czr-input{width:100%}.content-picker-item{height:2em}.content-picker-item .czr-picker-item-type{float:right;display:inline-block}.content-item-bar{line-height:1.2em;font-size:.9em}.content-item-bar .czr-picker-item-title{display:block;float:left;max-width:80%;text-overflow:ellipsis;overflow:hidden;font-size:13px;line-height:1.3em}.czr-sub-set[data-input-type=content_picker] span.czr-picker-item-title{display:block;float:left;max-width:80%;text-overflow:ellipsis;overflow:hidden;font-size:14px;line-height:2em;color:#000}.czr-sub-set[data-input-type=content_picker] span.czr-picker-item-type{display:inline-block;padding:0;padding-right:10px;float:right;line-height:2em}.czr-sub-set[data-input-type=range_slider]{padding:20px 0}.rangeslider,.rangeslider__fill{display:block;-moz-box-shadow:inset 0 1px 3px rgba(0,0,0,.3);-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.3);box-shadow:inset 0 1px 3px rgba(0,0,0,.3);-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}.rangeslider{background:#e6e6e6;position:relative}.rangeslider--horizontal{height:12px;width:100%}.rangeslider--vertical{width:12px;min-height:150px;max-height:100%}.rangeslider--disabled{opacity:.4}.rangeslider__fill{background:#3b8dbd;position:absolute}.rangeslider--horizontal .rangeslider__fill{top:0;height:100%}.rangeslider--vertical .rangeslider__fill{bottom:0;width:100%}.rangeslider__handle{background:#fff;border:1px solid #ccc;cursor:pointer;display:inline-block;width:34px;height:34px;position:absolute;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwLjAiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4xIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g);background-size:100%;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0,rgba(255,255,255,0)),color-stop(100%,rgba(0,0,0,.1)));background-image:-moz-linear-gradient(rgba(255,255,255,0),rgba(0,0,0,.1));background-image:-webkit-linear-gradient(rgba(255,255,255,0),rgba(0,0,0,.1));background-image:linear-gradient(rgba(255,255,255,0),rgba(0,0,0,.1));-moz-box-shadow:0 0 8px rgba(0,0,0,.3);-webkit-box-shadow:0 0 8px rgba(0,0,0,.3);box-shadow:0 0 8px rgba(0,0,0,.3);-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%;line-height:35px;text-align:center;color:#000;font-size:13px}.rangeslider__handle:after{content:"";display:block;width:18px;height:18px;margin:auto;position:absolute;top:0;right:0;bottom:0;left:0;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjEzIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjAuMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==);background-size:100%;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0,rgba(0,0,0,.13)),color-stop(100%,rgba(255,255,255,0)));background-image:-moz-linear-gradient(rgba(0,0,0,.13),rgba(255,255,255,0));background-image:-webkit-linear-gradient(rgba(0,0,0,.13),rgba(255,255,255,0));background-image:linear-gradient(rgba(0,0,0,.13),rgba(255,255,255,0));-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%}.rangeslider--active .rangeslider__handle,.rangeslider__handle:active{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4xMiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==);background-size:100%;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0,rgba(0,0,0,.1)),color-stop(100%,rgba(0,0,0,.12)));background-image:-moz-linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.12));background-image:-webkit-linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.12));background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.12))}.rangeslider--horizontal .rangeslider__handle{top:-13px;touch-action:pan-y;-ms-touch-action:pan-y}.rangeslider--vertical .rangeslider__handle{left:-13px;touch-action:pan-x;-ms-touch-action:pan-x}input[type=range]:focus+.rangeslider .rangeslider__handle{-moz-box-shadow:0 0 8px rgba(255,0,255,.9);-webkit-box-shadow:0 0 8px rgba(255,0,255,.9);box-shadow:0 0 8px rgba(255,0,255,.9)}.attachment-media-view button{color:#000;padding:5px 7px;line-height:1.5em}.czr-toggle-check{position:relative;float:right}.czr-toggle-check__input[type=checkbox]{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;margin:0;padding:0;z-index:1}.czr-toggle-check__input[type=checkbox]:checked:before{content:"\f147";margin:-3px 0 0 -4px;color:#1e8cbe;float:left;display:inline-block;vertical-align:middle;width:16px;font:normal 21px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.czr-toggle-check .czr-toggle-check__track{content:"";display:inline-block;vertical-align:top;box-sizing:border-box;background-color:#fff;border:2px solid #6c7781;width:36px;height:18px;border-radius:9px;transition:background .2s ease}.czr-toggle-check.is-checked .czr-toggle-check__track{background-color:#33b3db;border:2px solid #33b3db;border:9px solid transparent}.czr-toggle-check .czr-toggle-check__thumb{display:block;position:absolute;top:4px;left:4px;width:10px;height:10px;border-radius:50%;transition:transform .1s ease;background-color:#6c7781;border:5px solid #6c7781;box-sizing:border-box}.czr-toggle-check.is-checked .czr-toggle-check__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.czr-toggle-check .czr-toggle-check__off{color:#6c7781;fill:currentColor;right:6px}.czr-toggle-check .czr-toggle-check__on{left:8px;-webkit-filter:invert(100%) contrast(500%);filter:invert(100%) contrast(500%);outline:1px solid transparent;outline-offset:-1px}.czr-toggle-check .czr-toggle-check__off,.czr-toggle-check .czr-toggle-check__on{position:absolute;top:6px}
inc/czr-base-fmk/assets/css/lib/czrSelect2.css ADDED
@@ -0,0 +1,482 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .czrSelect2-container {
2
+ box-sizing: border-box;
3
+ display: inline-block;
4
+ margin: 0;
5
+ position: relative;
6
+ vertical-align: middle; }
7
+ .czrSelect2-container .czrSelect2-selection--single {
8
+ box-sizing: border-box;
9
+ cursor: pointer;
10
+ display: block;
11
+ height: 28px;
12
+ user-select: none;
13
+ -webkit-user-select: none; }
14
+ .czrSelect2-container .czrSelect2-selection--single .czrSelect2-selection__rendered {
15
+ display: block;
16
+ padding-left: 8px;
17
+ padding-right: 20px;
18
+ overflow: hidden;
19
+ text-overflow: ellipsis;
20
+ white-space: nowrap; }
21
+ .czrSelect2-container .czrSelect2-selection--single .czrSelect2-selection__clear {
22
+ position: relative; }
23
+ .czrSelect2-container[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__rendered {
24
+ padding-right: 8px;
25
+ padding-left: 20px; }
26
+ .czrSelect2-container .czrSelect2-selection--multiple {
27
+ box-sizing: border-box;
28
+ cursor: pointer;
29
+ display: block;
30
+ min-height: 32px;
31
+ user-select: none;
32
+ -webkit-user-select: none; }
33
+ .czrSelect2-container .czrSelect2-selection--multiple .czrSelect2-selection__rendered {
34
+ display: inline-block;
35
+ overflow: hidden;
36
+ padding-left: 8px;
37
+ text-overflow: ellipsis;
38
+ white-space: nowrap; }
39
+ .czrSelect2-container .czrSelect2-search--inline {
40
+ float: left; }
41
+ .czrSelect2-container .czrSelect2-search--inline .czrSelect2-search__field {
42
+ box-sizing: border-box;
43
+ border: none;
44
+ font-size: 100%;
45
+ margin-top: 5px;
46
+ padding: 0; }
47
+ .czrSelect2-container .czrSelect2-search--inline .czrSelect2-search__field::-webkit-search-cancel-button {
48
+ -webkit-appearance: none; }
49
+
50
+ .czrSelect2-dropdown {
51
+ background-color: white;
52
+ border: 1px solid #aaa;
53
+ border-radius: 4px;
54
+ box-sizing: border-box;
55
+ display: block;
56
+ position: absolute;
57
+ left: -100000px;
58
+ width: 100%;
59
+ z-index: 1051; }
60
+
61
+ .czrSelect2-results {
62
+ display: block; }
63
+
64
+ .czrSelect2-results__options {
65
+ list-style: none;
66
+ margin: 0;
67
+ padding: 0; }
68
+
69
+ .czrSelect2-results__option {
70
+ padding: 6px;
71
+ user-select: none;
72
+ -webkit-user-select: none; }
73
+ .czrSelect2-results__option[aria-selected] {
74
+ cursor: pointer; }
75
+
76
+ .czrSelect2-container--open .czrSelect2-dropdown {
77
+ left: 0; }
78
+
79
+ .czrSelect2-container--open .czrSelect2-dropdown--above {
80
+ border-bottom: none;
81
+ border-bottom-left-radius: 0;
82
+ border-bottom-right-radius: 0; }
83
+
84
+ .czrSelect2-container--open .czrSelect2-dropdown--below {
85
+ border-top: none;
86
+ border-top-left-radius: 0;
87
+ border-top-right-radius: 0; }
88
+
89
+ .czrSelect2-search--dropdown {
90
+ display: block;
91
+ padding: 4px; }
92
+ .czrSelect2-search--dropdown .czrSelect2-search__field {
93
+ padding: 4px;
94
+ width: 100%;
95
+ box-sizing: border-box; }
96
+ .czrSelect2-search--dropdown .czrSelect2-search__field::-webkit-search-cancel-button {
97
+ -webkit-appearance: none; }
98
+ .czrSelect2-search--dropdown.czrSelect2-search--hide {
99
+ display: none; }
100
+
101
+ .czrSelect2-close-mask {
102
+ border: 0;
103
+ margin: 0;
104
+ padding: 0;
105
+ display: block;
106
+ position: fixed;
107
+ left: 0;
108
+ top: 0;
109
+ min-height: 100%;
110
+ min-width: 100%;
111
+ height: auto;
112
+ width: auto;
113
+ opacity: 0;
114
+ z-index: 99;
115
+ background-color: #fff;
116
+ filter: alpha(opacity=0); }
117
+
118
+ .czrSelect2-hidden-accessible {
119
+ border: 0 !important;
120
+ clip: rect(0 0 0 0) !important;
121
+ height: 1px !important;
122
+ margin: -1px !important;
123
+ overflow: hidden !important;
124
+ padding: 0 !important;
125
+ position: absolute !important;
126
+ width: 1px !important; }
127
+
128
+ .czrSelect2-container--default .czrSelect2-selection--single {
129
+ background-color: #fff;
130
+ border: 1px solid #aaa;
131
+ border-radius: 4px; }
132
+ .czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__rendered {
133
+ color: #444;
134
+ line-height: 28px; }
135
+ .czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__clear {
136
+ cursor: pointer;
137
+ float: right;
138
+ font-weight: bold; }
139
+ .czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__placeholder {
140
+ color: #999; }
141
+ .czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__arrow {
142
+ height: 26px;
143
+ position: absolute;
144
+ top: 1px;
145
+ right: 1px;
146
+ width: 20px; }
147
+ .czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__arrow b {
148
+ border-color: #888 transparent transparent transparent;
149
+ border-style: solid;
150
+ border-width: 5px 4px 0 4px;
151
+ height: 0;
152
+ left: 50%;
153
+ margin-left: -4px;
154
+ margin-top: -2px;
155
+ position: absolute;
156
+ top: 50%;
157
+ width: 0; }
158
+
159
+ .czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__clear {
160
+ float: left; }
161
+
162
+ .czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__arrow {
163
+ left: 1px;
164
+ right: auto; }
165
+
166
+ .czrSelect2-container--default.czrSelect2-container--disabled .czrSelect2-selection--single {
167
+ background-color: #eee;
168
+ cursor: default; }
169
+ .czrSelect2-container--default.czrSelect2-container--disabled .czrSelect2-selection--single .czrSelect2-selection__clear {
170
+ display: none; }
171
+
172
+ .czrSelect2-container--default.czrSelect2-container--open .czrSelect2-selection--single .czrSelect2-selection__arrow b {
173
+ border-color: transparent transparent #888 transparent;
174
+ border-width: 0 4px 5px 4px; }
175
+
176
+ .czrSelect2-container--default .czrSelect2-selection--multiple {
177
+ background-color: white;
178
+ border: 1px solid #aaa;
179
+ border-radius: 4px;
180
+ cursor: text; }
181
+ .czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__rendered {
182
+ box-sizing: border-box;
183
+ list-style: none;
184
+ margin: 0;
185
+ padding: 0 5px;
186
+ width: 100%; }
187
+ .czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__placeholder {
188
+ color: #999;
189
+ margin-top: 5px;
190
+ float: left; }
191
+ .czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__clear {
192
+ cursor: pointer;
193
+ float: right;
194
+ font-weight: bold;
195
+ margin-top: 5px;
196
+ margin-right: 10px; }
197
+ .czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice {
198
+ background-color: #e4e4e4;
199
+ border: 1px solid #aaa;
200
+ border-radius: 4px;
201
+ cursor: default;
202
+ float: left;
203
+ margin-right: 5px;
204
+ margin-top: 5px;
205
+ padding: 0 5px; }
206
+ .czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove {
207
+ color: #999;
208
+ cursor: pointer;
209
+ display: inline-block;
210
+ font-weight: bold;
211
+ margin-right: 2px; }
212
+ .czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove:hover {
213
+ color: #333; }
214
+
215
+ .czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice, .czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__placeholder, .czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-search--inline {
216
+ float: right; }
217
+
218
+ .czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice {
219
+ margin-left: 5px;
220
+ margin-right: auto; }
221
+
222
+ .czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove {
223
+ margin-left: 2px;
224
+ margin-right: auto; }
225
+
226
+ .czrSelect2-container--default.czrSelect2-container--focus .czrSelect2-selection--multiple {
227
+ border: solid black 1px;
228
+ outline: 0; }
229
+
230
+ .czrSelect2-container--default.czrSelect2-container--disabled .czrSelect2-selection--multiple {
231
+ background-color: #eee;
232
+ cursor: default; }
233
+
234
+ .czrSelect2-container--default.czrSelect2-container--disabled .czrSelect2-selection__choice__remove {
235
+ display: none; }
236
+
237
+ .czrSelect2-container--default.czrSelect2-container--open.czrSelect2-container--above .czrSelect2-selection--single, .czrSelect2-container--default.czrSelect2-container--open.czrSelect2-container--above .czrSelect2-selection--multiple {
238
+ border-top-left-radius: 0;
239
+ border-top-right-radius: 0; }
240
+
241
+ .czrSelect2-container--default.czrSelect2-container--open.czrSelect2-container--below .czrSelect2-selection--single, .czrSelect2-container--default.czrSelect2-container--open.czrSelect2-container--below .czrSelect2-selection--multiple {
242
+ border-bottom-left-radius: 0;
243
+ border-bottom-right-radius: 0; }
244
+
245
+ .czrSelect2-container--default .czrSelect2-search--dropdown .czrSelect2-search__field {
246
+ border: 1px solid #aaa; }
247
+
248
+ .czrSelect2-container--default .czrSelect2-search--inline .czrSelect2-search__field {
249
+ background: transparent;
250
+ border: none;
251
+ outline: 0;
252
+ box-shadow: none;
253
+ -webkit-appearance: textfield; }
254
+
255
+ .czrSelect2-container--default .czrSelect2-results > .czrSelect2-results__options {
256
+ max-height: 200px;
257
+ overflow-y: auto; }
258
+
259
+ .czrSelect2-container--default .czrSelect2-results__option[role=group] {
260
+ padding: 0; }
261
+
262
+ .czrSelect2-container--default .czrSelect2-results__option[aria-disabled=true] {
263
+ color: #999; }
264
+
265
+ .czrSelect2-container--default .czrSelect2-results__option[aria-selected=true] {
266
+ background-color: #ddd; }
267
+
268
+ .czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option {
269
+ padding-left: 1em; }
270
+ .czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__group {
271
+ padding-left: 0; }
272
+ .czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option {
273
+ margin-left: -1em;
274
+ padding-left: 2em; }
275
+ .czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option {
276
+ margin-left: -2em;
277
+ padding-left: 3em; }
278
+ .czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option {
279
+ margin-left: -3em;
280
+ padding-left: 4em; }
281
+ .czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option {
282
+ margin-left: -4em;
283
+ padding-left: 5em; }
284
+ .czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option {
285
+ margin-left: -5em;
286
+ padding-left: 6em; }
287
+
288
+ .czrSelect2-container--default .czrSelect2-results__option--highlighted[aria-selected] {
289
+ background-color: #5897fb;
290
+ color: white; }
291
+
292
+ .czrSelect2-container--default .czrSelect2-results__group {
293
+ cursor: default;
294
+ display: block;
295
+ padding: 6px; }
296
+
297
+ .czrSelect2-container--classic .czrSelect2-selection--single {
298
+ background-color: #f7f7f7;
299
+ border: 1px solid #aaa;
300
+ border-radius: 4px;
301
+ outline: 0;
302
+ background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
303
+ background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
304
+ background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
305
+ background-repeat: repeat-x;
306
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
307
+ .czrSelect2-container--classic .czrSelect2-selection--single:focus {
308
+ border: 1px solid #5897fb; }
309
+ .czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__rendered {
310
+ color: #444;
311
+ line-height: 28px; }
312
+ .czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__clear {
313
+ cursor: pointer;
314
+ float: right;
315
+ font-weight: bold;
316
+ margin-right: 10px; }
317
+ .czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__placeholder {
318
+ color: #999; }
319
+ .czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__arrow {
320
+ background-color: #ddd;
321
+ border: none;
322
+ border-left: 1px solid #aaa;
323
+ border-top-right-radius: 4px;
324
+ border-bottom-right-radius: 4px;
325
+ height: 26px;
326
+ position: absolute;
327
+ top: 1px;
328
+ right: 1px;
329
+ width: 20px;
330
+ background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
331
+ background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
332
+ background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
333
+ background-repeat: repeat-x;
334
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
335
+ .czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__arrow b {
336
+ border-color: #888 transparent transparent transparent;
337
+ border-style: solid;
338
+ border-width: 5px 4px 0 4px;
339
+ height: 0;
340
+ left: 50%;
341
+ margin-left: -4px;
342
+ margin-top: -2px;
343
+ position: absolute;
344
+ top: 50%;
345
+ width: 0; }
346
+
347
+ .czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__clear {
348
+ float: left; }
349
+
350
+ .czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__arrow {
351
+ border: none;
352
+ border-right: 1px solid #aaa;
353
+ border-radius: 0;
354
+ border-top-left-radius: 4px;
355
+ border-bottom-left-radius: 4px;
356
+ left: 1px;
357
+ right: auto; }
358
+
359
+ .czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-selection--single {
360
+ border: 1px solid #5897fb; }
361
+ .czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-selection--single .czrSelect2-selection__arrow {
362
+ background: transparent;
363
+ border: none; }
364
+ .czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-selection--single .czrSelect2-selection__arrow b {
365
+ border-color: transparent transparent #888 transparent;
366
+ border-width: 0 4px 5px 4px; }
367
+
368
+ .czrSelect2-container--classic.czrSelect2-container--open.czrSelect2-container--above .czrSelect2-selection--single {
369
+ border-top: none;
370
+ border-top-left-radius: 0;
371
+ border-top-right-radius: 0;
372
+ background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
373
+ background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
374
+ background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
375
+ background-repeat: repeat-x;
376
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
377
+
378
+ .czrSelect2-container--classic.czrSelect2-container--open.czrSelect2-container--below .czrSelect2-selection--single {
379
+ border-bottom: none;
380
+ border-bottom-left-radius: 0;
381
+ border-bottom-right-radius: 0;
382
+ background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
383
+ background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
384
+ background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
385
+ background-repeat: repeat-x;
386
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
387
+
388
+ .czrSelect2-container--classic .czrSelect2-selection--multiple {
389
+ background-color: white;
390
+ border: 1px solid #aaa;
391
+ border-radius: 4px;
392
+ cursor: text;
393
+ outline: 0; }
394
+ .czrSelect2-container--classic .czrSelect2-selection--multiple:focus {
395
+ border: 1px solid #5897fb; }
396
+ .czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__rendered {
397
+ list-style: none;
398
+ margin: 0;
399
+ padding: 0 5px; }
400
+ .czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__clear {
401
+ display: none; }
402
+ .czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__choice {
403
+ background-color: #e4e4e4;
404
+ border: 1px solid #aaa;
405
+ border-radius: 4px;
406
+ cursor: default;
407
+ float: left;
408
+ margin-right: 5px;
409
+ margin-top: 5px;
410
+ padding: 0 5px; }
411
+ .czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove {
412
+ color: #888;
413
+ cursor: pointer;
414
+ display: inline-block;
415
+ font-weight: bold;
416
+ margin-right: 2px; }
417
+ .czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove:hover {
418
+ color: #555; }
419
+
420
+ .czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice {
421
+ float: right; }
422
+
423
+ .czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice {
424
+ margin-left: 5px;
425
+ margin-right: auto; }
426
+
427
+ .czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove {
428
+ margin-left: 2px;
429
+ margin-right: auto; }
430
+
431
+ .czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-selection--multiple {
432
+ border: 1px solid #5897fb; }
433
+
434
+ .czrSelect2-container--classic.czrSelect2-container--open.czrSelect2-container--above .czrSelect2-selection--multiple {
435
+ border-top: none;
436
+ border-top-left-radius: 0;
437
+ border-top-right-radius: 0; }
438
+
439
+ .czrSelect2-container--classic.czrSelect2-container--open.czrSelect2-container--below .czrSelect2-selection--multiple {
440
+ border-bottom: none;
441
+ border-bottom-left-radius: 0;
442
+ border-bottom-right-radius: 0; }
443
+
444
+ .czrSelect2-container--classic .czrSelect2-search--dropdown .czrSelect2-search__field {
445
+ border: 1px solid #aaa;
446
+ outline: 0; }
447
+
448
+ .czrSelect2-container--classic .czrSelect2-search--inline .czrSelect2-search__field {
449
+ outline: 0;
450
+ box-shadow: none; }
451
+
452
+ .czrSelect2-container--classic .czrSelect2-dropdown {
453
+ background-color: white;
454
+ border: 1px solid transparent; }
455
+
456
+ .czrSelect2-container--classic .czrSelect2-dropdown--above {
457
+ border-bottom: none; }
458
+
459
+ .czrSelect2-container--classic .czrSelect2-dropdown--below {
460
+ border-top: none; }
461
+
462
+ .czrSelect2-container--classic .czrSelect2-results > .czrSelect2-results__options {
463
+ max-height: 200px;
464
+ overflow-y: auto; }
465
+
466
+ .czrSelect2-container--classic .czrSelect2-results__option[role=group] {
467
+ padding: 0; }
468
+
469
+ .czrSelect2-container--classic .czrSelect2-results__option[aria-disabled=true] {
470
+ color: grey; }
471
+
472
+ .czrSelect2-container--classic .czrSelect2-results__option--highlighted[aria-selected] {
473
+ background-color: #3875d7;
474
+ color: white; }
475
+
476
+ .czrSelect2-container--classic .czrSelect2-results__group {
477
+ cursor: default;
478
+ display: block;
479
+ padding: 6px; }
480
+
481
+ .czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-dropdown {
482
+ border-color: #5897fb; }
inc/czr-base-fmk/assets/css/lib/czrSelect2.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .czrSelect2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.czrSelect2-container .czrSelect2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.czrSelect2-container .czrSelect2-selection--single .czrSelect2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.czrSelect2-container .czrSelect2-selection--single .czrSelect2-selection__clear{position:relative}.czrSelect2-container[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__rendered{padding-right:8px;padding-left:20px}.czrSelect2-container .czrSelect2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.czrSelect2-container .czrSelect2-selection--multiple .czrSelect2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.czrSelect2-container .czrSelect2-search--inline{float:left}.czrSelect2-container .czrSelect2-search--inline .czrSelect2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.czrSelect2-container .czrSelect2-search--inline .czrSelect2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.czrSelect2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.czrSelect2-results{display:block}.czrSelect2-results__options{list-style:none;margin:0;padding:0}.czrSelect2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.czrSelect2-results__option[aria-selected]{cursor:pointer}.czrSelect2-container--open .czrSelect2-dropdown{left:0}.czrSelect2-container--open .czrSelect2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.czrSelect2-container--open .czrSelect2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.czrSelect2-search--dropdown{display:block;padding:4px}.czrSelect2-search--dropdown .czrSelect2-search__field{padding:4px;width:100%;box-sizing:border-box}.czrSelect2-search--dropdown .czrSelect2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.czrSelect2-search--dropdown.czrSelect2-search--hide{display:none}.czrSelect2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.czrSelect2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important}.czrSelect2-container--default .czrSelect2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__rendered{color:#444;line-height:28px}.czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__clear{cursor:pointer;float:right;font-weight:bold}.czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__placeholder{color:#999}.czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.czrSelect2-container--default .czrSelect2-selection--single .czrSelect2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__clear{float:left}.czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__arrow{left:1px;right:auto}.czrSelect2-container--default.czrSelect2-container--disabled .czrSelect2-selection--single{background-color:#eee;cursor:default}.czrSelect2-container--default.czrSelect2-container--disabled .czrSelect2-selection--single .czrSelect2-selection__clear{display:none}.czrSelect2-container--default.czrSelect2-container--open .czrSelect2-selection--single .czrSelect2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.czrSelect2-container--default .czrSelect2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__placeholder{color:#999;margin-top:5px;float:left}.czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px}.czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.czrSelect2-container--default .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove:hover{color:#333}.czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice,.czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__placeholder,.czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-search--inline{float:right}.czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice{margin-left:5px;margin-right:auto}.czrSelect2-container--default[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove{margin-left:2px;margin-right:auto}.czrSelect2-container--default.czrSelect2-container--focus .czrSelect2-selection--multiple{border:solid #000 1px;outline:0}.czrSelect2-container--default.czrSelect2-container--disabled .czrSelect2-selection--multiple{background-color:#eee;cursor:default}.czrSelect2-container--default.czrSelect2-container--disabled .czrSelect2-selection__choice__remove{display:none}.czrSelect2-container--default.czrSelect2-container--open.czrSelect2-container--above .czrSelect2-selection--single,.czrSelect2-container--default.czrSelect2-container--open.czrSelect2-container--above .czrSelect2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.czrSelect2-container--default.czrSelect2-container--open.czrSelect2-container--below .czrSelect2-selection--single,.czrSelect2-container--default.czrSelect2-container--open.czrSelect2-container--below .czrSelect2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.czrSelect2-container--default .czrSelect2-search--dropdown .czrSelect2-search__field{border:1px solid #aaa}.czrSelect2-container--default .czrSelect2-search--inline .czrSelect2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.czrSelect2-container--default .czrSelect2-results>.czrSelect2-results__options{max-height:200px;overflow-y:auto}.czrSelect2-container--default .czrSelect2-results__option[role=group]{padding:0}.czrSelect2-container--default .czrSelect2-results__option[aria-disabled=true]{color:#999}.czrSelect2-container--default .czrSelect2-results__option[aria-selected=true]{background-color:#ddd}.czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option{padding-left:1em}.czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__group{padding-left:0}.czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option{margin-left:-1em;padding-left:2em}.czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option{margin-left:-2em;padding-left:3em}.czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option{margin-left:-3em;padding-left:4em}.czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option{margin-left:-4em;padding-left:5em}.czrSelect2-container--default .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option .czrSelect2-results__option{margin-left:-5em;padding-left:6em}.czrSelect2-container--default .czrSelect2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.czrSelect2-container--default .czrSelect2-results__group{cursor:default;display:block;padding:6px}.czrSelect2-container--classic .czrSelect2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.czrSelect2-container--classic .czrSelect2-selection--single:focus{border:1px solid #5897fb}.czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__rendered{color:#444;line-height:28px}.czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__placeholder{color:#999}.czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.czrSelect2-container--classic .czrSelect2-selection--single .czrSelect2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__clear{float:left}.czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--single .czrSelect2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-selection--single{border:1px solid #5897fb}.czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-selection--single .czrSelect2-selection__arrow{background:transparent;border:none}.czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-selection--single .czrSelect2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.czrSelect2-container--classic.czrSelect2-container--open.czrSelect2-container--above .czrSelect2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.czrSelect2-container--classic.czrSelect2-container--open.czrSelect2-container--below .czrSelect2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.czrSelect2-container--classic .czrSelect2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.czrSelect2-container--classic .czrSelect2-selection--multiple:focus{border:1px solid #5897fb}.czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__rendered{list-style:none;margin:0;padding:0 5px}.czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__clear{display:none}.czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.czrSelect2-container--classic .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove:hover{color:#555}.czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice{float:right}.czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice{margin-left:5px;margin-right:auto}.czrSelect2-container--classic[dir="rtl"] .czrSelect2-selection--multiple .czrSelect2-selection__choice__remove{margin-left:2px;margin-right:auto}.czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-selection--multiple{border:1px solid #5897fb}.czrSelect2-container--classic.czrSelect2-container--open.czrSelect2-container--above .czrSelect2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.czrSelect2-container--classic.czrSelect2-container--open.czrSelect2-container--below .czrSelect2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.czrSelect2-container--classic .czrSelect2-search--dropdown .czrSelect2-search__field{border:1px solid #aaa;outline:0}.czrSelect2-container--classic .czrSelect2-search--inline .czrSelect2-search__field{outline:0;box-shadow:none}.czrSelect2-container--classic .czrSelect2-dropdown{background-color:#fff;border:1px solid transparent}.czrSelect2-container--classic .czrSelect2-dropdown--above{border-bottom:none}.czrSelect2-container--classic .czrSelect2-dropdown--below{border-top:none}.czrSelect2-container--classic .czrSelect2-results>.czrSelect2-results__options{max-height:200px;overflow-y:auto}.czrSelect2-container--classic .czrSelect2-results__option[role=group]{padding:0}.czrSelect2-container--classic .czrSelect2-results__option[aria-disabled=true]{color:grey}.czrSelect2-container--classic .czrSelect2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.czrSelect2-container--classic .czrSelect2-results__group{cursor:default;display:block;padding:6px}.czrSelect2-container--classic.czrSelect2-container--open .czrSelect2-dropdown{border-color:#5897fb}
inc/czr-base-fmk/assets/js/_0_ccat_czr-base-fmk.js CHANGED
@@ -21,9 +21,9 @@ if ( 'function' != typeof(jQuery.fn.selecter) ) {
21
  */
22
  if ( 'function' != typeof(jQuery.fn.stepper) ) {
23
  !function(a){"use strict";function b(b){b=a.extend({},k,b||{});for(var d=a(this),e=0,f=d.length;f>e;e++)c(d.eq(e),b);return d}function c(b,c){if(!b.hasClass("stepper-input")){c=a.extend({},c,b.data("stepper-options"));var e=parseFloat(b.attr("min")),f=parseFloat(b.attr("max")),g=parseFloat(b.attr("step"))||1;b.addClass("stepper-input").wrap('<div class="stepper '+c.customClass+'" />').after('<span class="stepper-arrow up">'+c.labels.up+'</span><span class="stepper-arrow down">'+c.labels.down+"</span>");var h=b.parent(".stepper"),j=a.extend({$stepper:h,$input:b,$arrow:h.find(".stepper-arrow"),min:void 0===typeof e||isNaN(e)?!1:e,max:void 0===typeof f||isNaN(f)?!1:f,step:void 0===typeof g||isNaN(g)?1:g,timer:null},c);j.digits=i(j.step),b.is(":disabled")&&h.addClass("disabled"),h.on("touchstart.stepper mousedown.stepper",".stepper-arrow",j,d).data("stepper",j)}}function d(b){b.preventDefault(),b.stopPropagation(),e(b);var c=b.data;if(!c.$input.is(":disabled")&&!c.$stepper.hasClass("disabled")){var d=a(b.target).hasClass("up")?c.step:-c.step;c.timer=g(c.timer,125,function(){f(c,d,!1)}),f(c,d),a("body").on("touchend.stepper mouseup.stepper",c,e)}}function e(b){b.preventDefault(),b.stopPropagation();var c=b.data;h(c.timer),a("body").off(".stepper")}function f(a,b){var c=parseFloat(a.$input.val()),d=b;void 0===typeof c||isNaN(c)?d=a.min!==!1?a.min:0:a.min!==!1&&c<a.min?d=a.min:d+=c;var e=(d-a.min)%a.step;0!==e&&(d-=e),a.min!==!1&&d<a.min&&(d=a.min),a.max!==!1&&d>a.max&&(d-=a.step),d!==c&&(d=j(d,a.digits),a.$input.val(d).trigger("change"))}function g(a,b,c){return h(a),setInterval(c,b)}function h(a){a&&(clearInterval(a),a=null)}function i(a){var b=String(a);return b.indexOf(".")>-1?b.length-b.indexOf(".")-1:0}function j(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c}var k={customClass:"",labels:{up:"Up",down:"Down"}},l={defaults:function(b){return k=a.extend(k,b||{}),a(this)},destroy:function(){return a(this).each(function(){var b=a(this).data("stepper");b&&(b.$stepper.off(".stepper").find(".stepper-arrow").remove(),b.$input.unwrap().removeClass("stepper-input"))})},disable:function(){return a(this).each(function(){var b=a(this).data("stepper");b&&(b.$input.attr("disabled","disabled"),b.$stepper.addClass("disabled"))})},enable:function(){return a(this).each(function(){var b=a(this).data("stepper");b&&(b.$input.attr("disabled",null),b.$stepper.removeClass("disabled"))})}};a.fn.stepper=function(a){return l[a]?l[a].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof a&&a?this:b.apply(this,arguments)},a.stepper=function(a){"defaults"===a&&l.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,this);
24
- }/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.slice(0,n.length-1).concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=v.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),n.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".select2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".select2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):0>h-g&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");return"true"===c.attr("aria-selected")?void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{})):void d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},d.prototype.selectionContainer=function(){var b=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">&times;</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}});var f=document.documentMode,g=f&&11>=f;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){return g?void e.$selection.off("input.search input.searchcheck"):void e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");
25
- if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-select2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){var c=(this._lastTag,this.$element.find("option[data-select2-tag]"));c.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b),d=g.$element.find("option").filter(function(){return a(this).val()===c.id});if(!d.length){var e=g.option(c);e.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([e])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()&&e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id,h=this.$container.parents().filter(b.hasScroll);h.off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalSelect2Event){var c=b.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null;
26
- },e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery-mousewheel",["jquery"],function(a){return a}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});/*! rangeslider.js - v2.3.2 | (c) 2018 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
27
  !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";function b(){var a=document.createElement("input");return a.setAttribute("type","range"),"text"!==a.type}function c(a,b){var c=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)}function d(a,b){return b=b||100,function(){if(!a.debouncing){var c=Array.prototype.slice.apply(arguments);a.lastReturnVal=a.apply(window,c),a.debouncing=!0}return clearTimeout(a.debounceTimeout),a.debounceTimeout=setTimeout(function(){a.debouncing=!1},b),a.lastReturnVal}}function e(a){return a&&(0===a.offsetWidth||0===a.offsetHeight||!1===a.open)}function f(a){for(var b=[],c=a.parentNode;e(c);)b.push(c),c=c.parentNode;return b}function g(a,b){function c(a){void 0!==a.open&&(a.open=!a.open)}var d=f(a),e=d.length,g=[],h=a[b];if(e){for(var i=0;i<e;i++)g[i]=d[i].style.cssText,d[i].style.setProperty?d[i].style.setProperty("display","block","important"):d[i].style.cssText+=";display: block !important",d[i].style.height="0",d[i].style.overflow="hidden",d[i].style.visibility="hidden",c(d[i]);h=a[b];for(var j=0;j<e;j++)d[j].style.cssText=g[j],c(d[j])}return h}function h(a,b){var c=parseFloat(a);return Number.isNaN(c)?b:c}function i(a){return a.charAt(0).toUpperCase()+a.substr(1)}function j(b,e){if(this.$window=a(window),this.$document=a(document),this.$element=a(b),this.options=a.extend({},n,e),this.polyfill=this.options.polyfill,this.orientation=this.$element[0].getAttribute("data-orientation")||this.options.orientation,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.DIMENSION=o.orientation[this.orientation].dimension,this.DIRECTION=o.orientation[this.orientation].direction,this.DIRECTION_STYLE=o.orientation[this.orientation].directionStyle,this.COORDINATE=o.orientation[this.orientation].coordinate,this.polyfill&&m)return!1;this.identifier="js-"+k+"-"+l++,this.startEvent=this.options.startEvent.join("."+this.identifier+" ")+"."+this.identifier,this.moveEvent=this.options.moveEvent.join("."+this.identifier+" ")+"."+this.identifier,this.endEvent=this.options.endEvent.join("."+this.identifier+" ")+"."+this.identifier,this.toFixed=(this.step+"").replace(".","").length-1,this.$fill=a('<div class="'+this.options.fillClass+'" />'),this.$handle=a('<div class="'+this.options.handleClass+'" />'),this.$range=a('<div class="'+this.options.rangeClass+" "+this.options[this.orientation+"Class"]+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=a.proxy(this.handleDown,this),this.handleMove=a.proxy(this.handleMove,this),this.handleEnd=a.proxy(this.handleEnd,this),this.init();var f=this;this.$window.on("resize."+this.identifier,d(function(){c(function(){f.update(!1,!1)},300)},20)),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(a,b){if(!b||b.origin!==f.identifier){var c=a.target.value,d=f.getPositionFromValue(c);f.setPosition(d)}})}Number.isNaN=Number.isNaN||function(a){return"number"==typeof a&&a!==a};var k="rangeslider",l=0,m=b(),n={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",activeClass:"rangeslider--active",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},o={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};return j.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},j.prototype.update=function(a,b){a=a||!1,a&&(this.min=h(this.$element[0].getAttribute("min"),0),this.max=h(this.$element[0].getAttribute("max"),100),this.value=h(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=h(this.$element[0].getAttribute("step"),1)),this.handleDimension=g(this.$handle[0],"offset"+i(this.DIMENSION)),this.rangeDimension=g(this.$range[0],"offset"+i(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,b)},j.prototype.handleDown=function(a){if(a.preventDefault(),!(a.button&&0!==a.button||(this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),this.$range.addClass(this.options.activeClass),(" "+a.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)>-1))){var b=this.getRelativePosition(a),c=this.$range[0].getBoundingClientRect()[this.DIRECTION],d=this.getPositionFromNode(this.$handle[0])-c,e="vertical"===this.orientation?this.maxHandlePos-(b-this.grabPos):b-this.grabPos;this.setPosition(e),b>=d&&b<d+this.handleDimension&&(this.grabPos=b-d)}},j.prototype.handleMove=function(a){a.preventDefault();var b=this.getRelativePosition(a),c="vertical"===this.orientation?this.maxHandlePos-(b-this.grabPos):b-this.grabPos;this.setPosition(c)},j.prototype.handleEnd=function(a){a.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd),this.$range.removeClass(this.options.activeClass),this.$element.trigger("change",{origin:this.identifier}),this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(this.position,this.value)},j.prototype.cap=function(a,b,c){return a<b?b:a>c?c:a},j.prototype.setPosition=function(a,b){var c,d;void 0===b&&(b=!0),c=this.getValueFromPosition(this.cap(a,0,this.maxHandlePos)),d=this.getPositionFromValue(c),this.$fill[0].style[this.DIMENSION]=d+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=d+"px",this.setValue(c),this.position=d,this.value=c,b&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(d,c)},j.prototype.getPositionFromNode=function(a){for(var b=0;null!==a;)b+=a.offsetLeft,a=a.offsetParent;return b},j.prototype.getRelativePosition=function(a){var b=i(this.COORDINATE),c=this.$range[0].getBoundingClientRect()[this.DIRECTION],d=0;return void 0!==a.originalEvent["client"+b]?d=a.originalEvent["client"+b]:a.originalEvent.touches&&a.originalEvent.touches[0]&&void 0!==a.originalEvent.touches[0]["client"+b]?d=a.originalEvent.touches[0]["client"+b]:a.currentPoint&&void 0!==a.currentPoint[this.COORDINATE]&&(d=a.currentPoint[this.COORDINATE]),d-c},j.prototype.getPositionFromValue=function(a){var b;return b=(a-this.min)/(this.max-this.min),Number.isNaN(b)?0:b*this.maxHandlePos},j.prototype.getValueFromPosition=function(a){var b,c;return b=a/(this.maxHandlePos||1),c=this.step*Math.round(b*(this.max-this.min)/this.step)+this.min,Number(c.toFixed(this.toFixed))},j.prototype.setValue=function(a){a===this.value&&""!==this.$element[0].value||this.$element.val(a).trigger("input",{origin:this.identifier})},j.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+k),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},a.fn[k]=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),e=d.data("plugin_"+k);e||d.data("plugin_"+k,e=new j(this,b)),"string"==typeof b&&e[b].apply(e,c)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"});
28
  ( function ( api, $, _ ) {
29
  /*****************************************************************************
@@ -2198,7 +2198,7 @@ $.extend( CZRInputMths , {
2198
  return _fallbackmap;
2199
  }
2200
  });//$.extend
2201
- })( wp.customize , jQuery, _ );/* Fix caching, select2 default one seems to not correctly work, or it doesn't what I think it should */
2202
  // the content_picker options are set in the module with :
2203
  // $.extend( module.inputOptions, {
2204
  // 'content_picker' : {
@@ -2258,7 +2258,7 @@ $.extend( CZRInputMths , {
2258
  name : 'set_input_value',
2259
  actions : function( obj ){
2260
  var $_changed_input = $( obj.dom_event.currentTarget, obj.dom_el ),
2261
- _raw_val = $( $_changed_input, obj.dom_el ).select2( 'data' ),
2262
  _val_candidate = {},
2263
  _default = {
2264
  id : '',
@@ -2274,7 +2274,7 @@ $.extend( CZRInputMths , {
2274
  return;
2275
  }
2276
 
2277
- //normalize and purge useless select2 fields
2278
  //=> skip a possible _custom_ id, used for example in the slider module to set a custom url
2279
  _.each( _default, function( val, k ){
2280
  if ( '_custom_' !== _raw_val.id ) {
@@ -2332,11 +2332,11 @@ $.extend( CZRInputMths , {
2332
 
2333
  // reset the rendering status of the defaultContentPickerOption
2334
  // fixes "Set Custom Url" being printed multiple times, @see https://github.com/presscustomizr/nimble-builder/issues/207
2335
- input.container.find( 'select' ).on('select2:select select2:unselect select2:close select2:open', function (e) {
2336
  input.defaultValueHasBeenPushed = false;
2337
  });
2338
 
2339
- input.container.find( 'select' ).select2( {
2340
  placeholder: {
2341
  id: '-1', // the value of the option
2342
  title: 'Select'
@@ -2434,7 +2434,7 @@ $.extend( CZRInputMths , {
2434
  templateSelection: input.czrFormatContentSelected,
2435
  templateResult: input.czrFormatContentSelected,
2436
  escapeMarkup: function ( markup ) { return markup; },
2437
- });//select2 setup
2438
  },
2439
 
2440
  // item is structured this way :
21
  */
22
  if ( 'function' != typeof(jQuery.fn.stepper) ) {
23
  !function(a){"use strict";function b(b){b=a.extend({},k,b||{});for(var d=a(this),e=0,f=d.length;f>e;e++)c(d.eq(e),b);return d}function c(b,c){if(!b.hasClass("stepper-input")){c=a.extend({},c,b.data("stepper-options"));var e=parseFloat(b.attr("min")),f=parseFloat(b.attr("max")),g=parseFloat(b.attr("step"))||1;b.addClass("stepper-input").wrap('<div class="stepper '+c.customClass+'" />').after('<span class="stepper-arrow up">'+c.labels.up+'</span><span class="stepper-arrow down">'+c.labels.down+"</span>");var h=b.parent(".stepper"),j=a.extend({$stepper:h,$input:b,$arrow:h.find(".stepper-arrow"),min:void 0===typeof e||isNaN(e)?!1:e,max:void 0===typeof f||isNaN(f)?!1:f,step:void 0===typeof g||isNaN(g)?1:g,timer:null},c);j.digits=i(j.step),b.is(":disabled")&&h.addClass("disabled"),h.on("touchstart.stepper mousedown.stepper",".stepper-arrow",j,d).data("stepper",j)}}function d(b){b.preventDefault(),b.stopPropagation(),e(b);var c=b.data;if(!c.$input.is(":disabled")&&!c.$stepper.hasClass("disabled")){var d=a(b.target).hasClass("up")?c.step:-c.step;c.timer=g(c.timer,125,function(){f(c,d,!1)}),f(c,d),a("body").on("touchend.stepper mouseup.stepper",c,e)}}function e(b){b.preventDefault(),b.stopPropagation();var c=b.data;h(c.timer),a("body").off(".stepper")}function f(a,b){var c=parseFloat(a.$input.val()),d=b;void 0===typeof c||isNaN(c)?d=a.min!==!1?a.min:0:a.min!==!1&&c<a.min?d=a.min:d+=c;var e=(d-a.min)%a.step;0!==e&&(d-=e),a.min!==!1&&d<a.min&&(d=a.min),a.max!==!1&&d>a.max&&(d-=a.step),d!==c&&(d=j(d,a.digits),a.$input.val(d).trigger("change"))}function g(a,b,c){return h(a),setInterval(c,b)}function h(a){a&&(clearInterval(a),a=null)}function i(a){var b=String(a);return b.indexOf(".")>-1?b.length-b.indexOf(".")-1:0}function j(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c}var k={customClass:"",labels:{up:"Up",down:"Down"}},l={defaults:function(b){return k=a.extend(k,b||{}),a(this)},destroy:function(){return a(this).each(function(){var b=a(this).data("stepper");b&&(b.$stepper.off(".stepper").find(".stepper-arrow").remove(),b.$input.unwrap().removeClass("stepper-input"))})},disable:function(){return a(this).each(function(){var b=a(this).data("stepper");b&&(b.$input.attr("disabled","disabled"),b.$stepper.addClass("disabled"))})},enable:function(){return a(this).each(function(){var b=a(this).data("stepper");b&&(b.$input.attr("disabled",null),b.$stepper.removeClass("disabled"))})}};a.fn.stepper=function(a){return l[a]?l[a].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof a&&a?this:b.apply(this,arguments)},a.stepper=function(a){"defaults"===a&&l.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,this);
24
+ }/*! CzrSelect2 namespaced version of Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.czrSelect2&&a.fn.czrSelect2.amd)var b=a.fn.czrSelect2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.slice(0,n.length-1).concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=v.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),n.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("CzrSelect2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before CzrSelect2 on your web page."),b}),b.define("czrSelect2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("czrSelect2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="czrSelect2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="czrSelect2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" czrSelect2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".czrSelect2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".czrSelect2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".czrSelect2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".czrSelect2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="czrSelect2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="czrSelect2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"czrSelect2-results__options czrSelect2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):0>h-g&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("czrSelect2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".czrSelect2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");return"true"===c.attr("aria-selected")?void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{})):void d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".czrSelect2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("czrSelect2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".czrSelect2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("czrSelect2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return a}),b.define("czrSelect2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="czrSelect2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.czrSelect2."+b.id,function(b){var c=a(b.target),d=c.closest(".czrSelect2"),e=a(".czrSelect2.czrSelect2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.czrSelect2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.czrSelect2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("czrSelect2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("czrSelect2-selection--single"),a.html('<span class="czrSelect2-selection__rendered"></span><span class="czrSelect2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".czrSelect2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".czrSelect2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".czrSelect2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("czrSelect2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("czrSelect2-selection--multiple"),a.html('<ul class="czrSelect2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".czrSelect2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".czrSelect2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},d.prototype.selectionContainer=function(){var b=a('<li class="czrSelect2-selection__choice"><span class="czrSelect2-selection__choice__remove" role="presentation">&times;</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".czrSelect2-selection__rendered");c.appendMany(h,b)}},d}),b.define("czrSelect2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("czrSelect2-selection__placeholder").removeClass("czrSelect2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".czrSelect2-selection__rendered").append(e)},b}),b.define("czrSelect2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("CzrSelect2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".czrSelect2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".czrSelect2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".czrSelect2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="czrSelect2-selection__clear">&times;</span>');d.data("data",c),this.$selection.find(".czrSelect2-selection__rendered").prepend(d)}},c}),b.define("czrSelect2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="czrSelect2-search czrSelect2-search--inline"><input class="czrSelect2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".czrSelect2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".czrSelect2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".czrSelect2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".czrSelect2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}});var f=document.documentMode,g=f&&11>=f;this.$selection.on("input.searchcheck",".czrSelect2-search--inline",function(a){return g?void e.$selection.off("input.search input.searchcheck"):void e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".czrSelect2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".czrSelect2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".czrSelect2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("czrSelect2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("czrSelect2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("czrSelect2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("czrSelect2/diacritics",[],function(){var a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("czrSelect2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("czrSelect2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");
25
+ if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("czrSelect2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("czrSelect2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("CzrSelect2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("czrSelect2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-czrSelect2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){var c=(this._lastTag,this.$element.find("option[data-czrSelect2-tag]"));c.each(function(){this.selected||a(this).remove()})},b}),b.define("czrSelect2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".czrSelect2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b),d=g.$element.find("option").filter(function(){return a(this).val()===c.id});if(!d.length){var e=g.option(c);e.attr("data-czrSelect2-tag",!0),g._removeOldTags(),g.addOptions([e])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("czrSelect2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("czrSelect2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("czrSelect2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("czrSelect2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="czrSelect2-dropdown"><span class="czrSelect2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("czrSelect2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="czrSelect2-search czrSelect2-search--dropdown"><input class="czrSelect2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()&&e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("czrSelect2-search--hide"):e.$searchContainer.addClass("czrSelect2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("czrSelect2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("czrSelect2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="czrSelect2-results__option czrSelect2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("czrSelect2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("czrSelect2"),b.addClass("czrSelect2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.czrSelect2."+d.id,g="resize.czrSelect2."+d.id,h="orientationchange.czrSelect2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("czrSelect2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("czrSelect2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.czrSelect2."+d.id,f="resize.czrSelect2."+d.id,g="orientationchange.czrSelect2."+d.id,h=this.$container.parents().filter(b.hasScroll);h.off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("czrSelect2-dropdown--above"),d=this.$dropdown.hasClass("czrSelect2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("czrSelect2-dropdown--below czrSelect2-dropdown--above").addClass("czrSelect2-dropdown--"+e),this.$container.removeClass("czrSelect2-container--below czrSelect2-container--above").addClass("czrSelect2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("czrSelect2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("czrSelect2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalCzrSelect2Event){var c=b.originalCzrSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("czrSelect2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalCzrSelect2Event:b})},a}),b.define("czrSelect2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("czrSelect2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('CzrSelect2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("czrSelect2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["czrSelect2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("czrSelect2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('CzrSelect2: The `data-czrSelect2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of CzrSelect2.'),a.data("data",a.data("czrSelect2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("CzrSelect2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of CzrSelect2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("czrSelect2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("czrSelect2")&&a.data("czrSelect2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("czrSelect2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("czrSelect2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="czrSelect2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.czrSelect2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.czrSelect2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("czrSelect2-container--open")}),this.on("close",function(){a.$container.removeClass("czrSelect2-container--open")}),this.on("enable",function(){a.$container.removeClass("czrSelect2-container--disabled")}),this.on("disable",function(){a.$container.addClass("czrSelect2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("czrSelect2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("czrSelect2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("czrSelect2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("czrSelect2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('CzrSelect2: The `czrSelect2("enable")` method has been deprecated and will be removed in later CzrSelect2 versions. Use $element.prop("disabled") instead.'),(null==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('CzrSelect2: Data can no longer be set using `czrSelect2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('CzrSelect2: The `czrSelect2("val")` method has been deprecated and will be removed in later CzrSelect2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".czrSelect2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("czrSelect2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("czrSelect2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null;
26
+ },e.prototype.render=function(){var b=a('<span class="czrSelect2 czrSelect2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("czrSelect2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery-mousewheel",["jquery"],function(a){return a}),b.define("jquery.czrSelect2",["jquery","jquery-mousewheel","./czrSelect2/core","./czrSelect2/defaults"],function(a,b,c,d){if(null==a.fn.czrSelect2){var e=["open","close","destroy"];a.fn.czrSelect2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("czrSelect2");null==c&&window.console&&console.error&&console.error("The czrSelect2('"+b+"') method was called on an element that is not using CzrSelect2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for CzrSelect2: "+b)}}return null==a.fn.czrSelect2.defaults&&(a.fn.czrSelect2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.czrSelect2");return a.fn.czrSelect2.amd=b,c});/*! rangeslider.js - v2.3.2 | (c) 2018 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
27
  !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";function b(){var a=document.createElement("input");return a.setAttribute("type","range"),"text"!==a.type}function c(a,b){var c=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)}function d(a,b){return b=b||100,function(){if(!a.debouncing){var c=Array.prototype.slice.apply(arguments);a.lastReturnVal=a.apply(window,c),a.debouncing=!0}return clearTimeout(a.debounceTimeout),a.debounceTimeout=setTimeout(function(){a.debouncing=!1},b),a.lastReturnVal}}function e(a){return a&&(0===a.offsetWidth||0===a.offsetHeight||!1===a.open)}function f(a){for(var b=[],c=a.parentNode;e(c);)b.push(c),c=c.parentNode;return b}function g(a,b){function c(a){void 0!==a.open&&(a.open=!a.open)}var d=f(a),e=d.length,g=[],h=a[b];if(e){for(var i=0;i<e;i++)g[i]=d[i].style.cssText,d[i].style.setProperty?d[i].style.setProperty("display","block","important"):d[i].style.cssText+=";display: block !important",d[i].style.height="0",d[i].style.overflow="hidden",d[i].style.visibility="hidden",c(d[i]);h=a[b];for(var j=0;j<e;j++)d[j].style.cssText=g[j],c(d[j])}return h}function h(a,b){var c=parseFloat(a);return Number.isNaN(c)?b:c}function i(a){return a.charAt(0).toUpperCase()+a.substr(1)}function j(b,e){if(this.$window=a(window),this.$document=a(document),this.$element=a(b),this.options=a.extend({},n,e),this.polyfill=this.options.polyfill,this.orientation=this.$element[0].getAttribute("data-orientation")||this.options.orientation,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.DIMENSION=o.orientation[this.orientation].dimension,this.DIRECTION=o.orientation[this.orientation].direction,this.DIRECTION_STYLE=o.orientation[this.orientation].directionStyle,this.COORDINATE=o.orientation[this.orientation].coordinate,this.polyfill&&m)return!1;this.identifier="js-"+k+"-"+l++,this.startEvent=this.options.startEvent.join("."+this.identifier+" ")+"."+this.identifier,this.moveEvent=this.options.moveEvent.join("."+this.identifier+" ")+"."+this.identifier,this.endEvent=this.options.endEvent.join("."+this.identifier+" ")+"."+this.identifier,this.toFixed=(this.step+"").replace(".","").length-1,this.$fill=a('<div class="'+this.options.fillClass+'" />'),this.$handle=a('<div class="'+this.options.handleClass+'" />'),this.$range=a('<div class="'+this.options.rangeClass+" "+this.options[this.orientation+"Class"]+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=a.proxy(this.handleDown,this),this.handleMove=a.proxy(this.handleMove,this),this.handleEnd=a.proxy(this.handleEnd,this),this.init();var f=this;this.$window.on("resize."+this.identifier,d(function(){c(function(){f.update(!1,!1)},300)},20)),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(a,b){if(!b||b.origin!==f.identifier){var c=a.target.value,d=f.getPositionFromValue(c);f.setPosition(d)}})}Number.isNaN=Number.isNaN||function(a){return"number"==typeof a&&a!==a};var k="rangeslider",l=0,m=b(),n={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",activeClass:"rangeslider--active",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},o={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};return j.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},j.prototype.update=function(a,b){a=a||!1,a&&(this.min=h(this.$element[0].getAttribute("min"),0),this.max=h(this.$element[0].getAttribute("max"),100),this.value=h(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=h(this.$element[0].getAttribute("step"),1)),this.handleDimension=g(this.$handle[0],"offset"+i(this.DIMENSION)),this.rangeDimension=g(this.$range[0],"offset"+i(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,b)},j.prototype.handleDown=function(a){if(a.preventDefault(),!(a.button&&0!==a.button||(this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),this.$range.addClass(this.options.activeClass),(" "+a.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)>-1))){var b=this.getRelativePosition(a),c=this.$range[0].getBoundingClientRect()[this.DIRECTION],d=this.getPositionFromNode(this.$handle[0])-c,e="vertical"===this.orientation?this.maxHandlePos-(b-this.grabPos):b-this.grabPos;this.setPosition(e),b>=d&&b<d+this.handleDimension&&(this.grabPos=b-d)}},j.prototype.handleMove=function(a){a.preventDefault();var b=this.getRelativePosition(a),c="vertical"===this.orientation?this.maxHandlePos-(b-this.grabPos):b-this.grabPos;this.setPosition(c)},j.prototype.handleEnd=function(a){a.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd),this.$range.removeClass(this.options.activeClass),this.$element.trigger("change",{origin:this.identifier}),this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(this.position,this.value)},j.prototype.cap=function(a,b,c){return a<b?b:a>c?c:a},j.prototype.setPosition=function(a,b){var c,d;void 0===b&&(b=!0),c=this.getValueFromPosition(this.cap(a,0,this.maxHandlePos)),d=this.getPositionFromValue(c),this.$fill[0].style[this.DIMENSION]=d+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=d+"px",this.setValue(c),this.position=d,this.value=c,b&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(d,c)},j.prototype.getPositionFromNode=function(a){for(var b=0;null!==a;)b+=a.offsetLeft,a=a.offsetParent;return b},j.prototype.getRelativePosition=function(a){var b=i(this.COORDINATE),c=this.$range[0].getBoundingClientRect()[this.DIRECTION],d=0;return void 0!==a.originalEvent["client"+b]?d=a.originalEvent["client"+b]:a.originalEvent.touches&&a.originalEvent.touches[0]&&void 0!==a.originalEvent.touches[0]["client"+b]?d=a.originalEvent.touches[0]["client"+b]:a.currentPoint&&void 0!==a.currentPoint[this.COORDINATE]&&(d=a.currentPoint[this.COORDINATE]),d-c},j.prototype.getPositionFromValue=function(a){var b;return b=(a-this.min)/(this.max-this.min),Number.isNaN(b)?0:b*this.maxHandlePos},j.prototype.getValueFromPosition=function(a){var b,c;return b=a/(this.maxHandlePos||1),c=this.step*Math.round(b*(this.max-this.min)/this.step)+this.min,Number(c.toFixed(this.toFixed))},j.prototype.setValue=function(a){a===this.value&&""!==this.$element[0].value||this.$element.val(a).trigger("input",{origin:this.identifier})},j.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+k),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},a.fn[k]=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),e=d.data("plugin_"+k);e||d.data("plugin_"+k,e=new j(this,b)),"string"==typeof b&&e[b].apply(e,c)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"});
28
  ( function ( api, $, _ ) {
29
  /*****************************************************************************
2198
  return _fallbackmap;
2199
  }
2200
  });//$.extend
2201
+ })( wp.customize , jQuery, _ );/* Fix caching, czrSelect2 default one seems to not correctly work, or it doesn't what I think it should */
2202
  // the content_picker options are set in the module with :
2203
  // $.extend( module.inputOptions, {
2204
  // 'content_picker' : {
2258
  name : 'set_input_value',
2259
  actions : function( obj ){
2260
  var $_changed_input = $( obj.dom_event.currentTarget, obj.dom_el ),
2261
+ _raw_val = $( $_changed_input, obj.dom_el ).czrSelect2( 'data' ),
2262
  _val_candidate = {},
2263
  _default = {
2264
  id : '',
2274
  return;
2275
  }
2276
 
2277
+ //normalize and purge useless czrSelect2 fields
2278
  //=> skip a possible _custom_ id, used for example in the slider module to set a custom url
2279
  _.each( _default, function( val, k ){
2280
  if ( '_custom_' !== _raw_val.id ) {
2332
 
2333
  // reset the rendering status of the defaultContentPickerOption
2334
  // fixes "Set Custom Url" being printed multiple times, @see https://github.com/presscustomizr/nimble-builder/issues/207
2335
+ input.container.find( 'select' ).on('czrSelect2:select czrSelect2:unselect czrSelect2:close czrSelect2:open', function (e) {
2336
  input.defaultValueHasBeenPushed = false;
2337
  });
2338
 
2339
+ input.container.find( 'select' ).czrSelect2( {
2340
  placeholder: {
2341
  id: '-1', // the value of the option
2342
  title: 'Select'
2434
  templateSelection: input.czrFormatContentSelected,
2435
  templateResult: input.czrFormatContentSelected,
2436
  escapeMarkup: function ( markup ) { return markup; },
2437
+ });//czrSelect2 setup
2438
  },
2439
 
2440
  // item is structured this way :
inc/czr-base-fmk/assets/js/_0_ccat_czr-base-fmk.min.js CHANGED
@@ -1 +1 @@
1
- "function"!=typeof jQuery.fn.iCheck&&function(v){function _(e,t,n){var i=e[0],o=/er/.test(n)?R:/bl/.test(n)?$:x,r=n==z?{checked:i[x],disabled:i[$],indeterminate:"true"==e.attr(R)||"false"==e.attr(E)}:i[o];if(/^(ch|di|in)/.test(n)&&!r)y(e,o);else if(/^(un|en|de)/.test(n)&&r)b(e,o);else if(n==z)for(o in r)r[o]?y(e,o,!0):b(e,o,!0);else t&&"toggle"!=n||(t||e[P]("ifClicked"),r?i[O]!==I&&b(e,o):y(e,o))}function y(e,t,n){var i=e[0],o=e.parent(),r=t==x,s=t==R,a=t==$,l=s?E:r?g:"enabled",d=h(e,l+m(i[O])),c=h(e,t+m(i[O]));if(!0!==i[t]){if(!n&&t==x&&i[O]==I&&i.name){var u=e.closest("form"),p='input[name="'+i.name+'"]';(p=u.length?u.find(p):v(p)).each(function(){this!==i&&v(this).data(w)&&b(v(this),t)})}s?(i[t]=!0,i[x]&&b(e,x,"force")):(n||(i[t]=!0),r&&i[R]&&b(e,R,!1)),f(e,r,t,n)}i[$]&&h(e,D,!0)&&o.find("."+M).css(D,"default"),o[A](c||h(e,t)||""),a?o.attr("aria-disabled","true"):o.attr("aria-checked",s?"mixed":"true"),o[S](d||h(e,l)||"")}function b(e,t,n){var i=e[0],o=e.parent(),r=t==x,s=t==R,a=t==$,l=s?E:r?g:"enabled",d=h(e,l+m(i[O])),c=h(e,t+m(i[O]));!1!==i[t]&&((s||!n||"force"==n)&&(i[t]=!1),f(e,r,l,n)),!i[$]&&h(e,D,!0)&&o.find("."+M).css(D,"pointer"),o[S](c||h(e,t)||""),a?o.attr("aria-disabled","false"):o.attr("aria-checked","false"),o[A](d||h(e,l)||"")}function C(e,t){e.data(w)&&(e.parent().html(e.attr("style",e.data(w).s||"")),t&&e[P](t),e.off(".i").unwrap(),v(k+'[for="'+e[0].id+'"]').add(e.closest(k)).off(".i"))}function h(e,t,n){return e.data(w)?e.data(w).o[t+(n?"":"Class")]:void 0}function m(e){return e.charAt(0).toUpperCase()+e.slice(1)}function f(e,t,n,i){i||(t&&e[P]("ifToggled"),e[P]("ifChanged")[P]("if"+m(n)))}var w="iCheck",M=w+"-helper",I="radio",x="checked",g="un"+x,$="disabled",E="determinate",R="in"+E,z="update",O="type",A="addClass",S="removeClass",P="trigger",k="label",D="cursor",j=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);v.fn[w]=function(t,n){var i='input[type="checkbox"], input[type="'+I+'"]',o=v(),e=function(e){e.each(function(){var e=v(this);o=e.is(i)?o.add(e):o.add(e.find(i))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(t))return t=t.toLowerCase(),e(this),o.each(function(){var e=v(this);"destroy"==t?C(e,"ifDestroyed"):_(e,!0,t),v.isFunction(n)&&n()});if("object"!=typeof t&&t)return this;var c=v.extend({checkedClass:x,disabledClass:$,indeterminateClass:R,labelHover:!0,aria:!1},t),r=c.handle,u=c.hoverClass||"hover",p=c.focusClass||"focus",h=c.activeClass||"active",m=!!c.labelHover,f=c.labelHoverClass||"hover",g=0|(""+c.increaseArea).replace("%","");return("checkbox"==r||r==I)&&(i='input[type="'+r+'"]'),g<-50&&(g=-50),e(this),o.each(function(){var i=v(this);C(i);var o=this,e=o.id,t={position:"absolute",top:n=-g+"%",left:n,display:"block",width:t=100+2*g+"%",height:t,margin:0,padding:0,background:"#fff",border:0,opacity:0},n=j?{position:"absolute",visibility:"hidden"}:g?t:{position:"absolute",opacity:0},r="checkbox"==o[O]?c.checkboxClass||"icheckbox":c.radioClass||"i"+I,s=v(k+'[for="'+e+'"]').add(i.closest(k)),a=!!c.aria,l=w+"-"+Math.random().toString(36).substr(2,6),d='<div class="'+r+'" '+(a?'role="'+o[O]+'" ':"");a&&s.each(function(){d+='aria-labelledby="',this.id?d+=this.id:(this.id=l,d+=l),d+='"'}),d=i.wrap(d+"/>")[P]("ifCreated").parent().append(c.insert),t=v('<ins class="'+M+'"/>').css(t).appendTo(d),i.data(w,{o:c,s:i.attr("style")}).css(n),c.inheritClass&&d[A](o.className||""),c.inheritID&&e&&d.attr("id",w+"-"+e),"static"==d.css("position")&&d.css("position","relative"),_(i,!0,z),s.length&&s.on("click.i mouseover.i mouseout.i touchbegin.i touchend.i",function(e){var t=e[O],n=v(this);if(!o[$]){if("click"==t){if(v(e.target).is("a"))return;_(i,!1,!0)}else m&&(/ut|nd/.test(t)?(d[S](u),n[S](f)):(d[A](u),n[A](f)));if(!j)return!1;e.stopPropagation()}}),i.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[O];return e=e.keyCode,"click"!=t&&("keydown"==t&&32==e?(o[O]==I&&o[x]||(o[x]?b(i,x):y(i,x)),!1):void("keyup"==t&&o[O]==I?!o[x]&&y(i,x):/us|ur/.test(t)&&d["blur"==t?S:A](p)))}),t.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(e){var t=e[O],n=/wn|up/.test(t)?h:u;if(!o[$]){if("click"==t?_(i,!1,!0):(/wn|er|in/.test(t)?d[A](n):d[S](n+" "+h),s.length&&m&&n==u&&s[/ut|nd/.test(t)?S:A](f)),!j)return!1;e.stopPropagation()}})})}}(window.jQuery||window.Zepto),"function"!=typeof jQuery.fn.selecter&&function(c,o){"use strict";function r(e,t){if(!e.hasClass("selecter-element")){(t=c.extend({},t,e.data("selecter-options"))).external&&(t.links=!0);var n=e.find("option, optgroup"),i=n.filter("option"),o=i.filter(":selected"),r=""!==t.label?-1:i.index(o),s=t.links?"nav":"div";t.tabIndex=e[0].tabIndex,e[0].tabIndex=-1,t.multiple=e.prop("multiple"),t.disabled=e.is(":disabled");var a="<"+s+' class="selecter '+t.customClass;C?a+=" mobile":t.cover&&(a+=" cover"),a+=t.multiple?" multiple":" closed",t.disabled&&(a+=" disabled"),a+='" tabindex="'+t.tabIndex+'">',t.multiple||(a+='<span class="selecter-selected'+(""!==t.label?" placeholder":"")+'">',a+=c("<span></span").text(y(""!==t.label?t.label:o.text(),t.trim)).html(),a+="</span>"),a+='<div class="selecter-options">',a+="</div>",a+="</"+s+">",e.addClass("selecter-element").after(a);var l=e.next(".selecter"),d=c.extend({$select:e,$allOptions:n,$options:i,$selecter:l,$selected:l.find(".selecter-selected"),$itemsWrapper:l.find(".selecter-options"),index:-1,guid:b++},t);u(d),_(r,d),void 0!==c.fn.scroller&&d.$itemsWrapper.scroller(),d.$selecter.on("touchstart.selecter click.selecter",".selecter-selected",d,p).on("click.selecter",".selecter-item",d,m).on("close.selecter",d,h).data("selecter",d),d.$select.on("change.selecter",d,f),C||(d.$selecter.on("focus.selecter",d,g).on("blur.selecter",d,v),d.$select.on("focus.selecter",d,function(e){e.data.$selecter.trigger("focus")}))}}function u(e){for(var t="",n=e.links?"a":"span",i=0,o=e.$allOptions.length;i<o;i++){var r=e.$allOptions.eq(i);if("OPTGROUP"===r[0].tagName)t+='<span class="selecter-group',r.is(":disabled")&&(t+=" disabled"),t+='">'+r.attr("label")+"</span>";else{var s=r.val();r.attr("value")||r.attr("value",s),t+="<"+n+' class="selecter-item',r.is(":selected")&&""===e.label&&(t+=" selected"),r.is(":disabled")&&(t+=" disabled"),t+='" ',t+=e.links?'href="'+s+'"':'data-value="'+s+'"',t+=">"+c("<span></span>").text(y(r.text(),e.trim)).html()+"</"+n+">",0}}e.$itemsWrapper.html(t),e.$items=e.$selecter.find(".selecter-item")}function p(e){e.preventDefault(),e.stopPropagation();var t=e.data;if(!t.$select.is(":disabled"))if(c(".selecter").not(t.$selecter).trigger("close.selecter",[t]),C){var n=t.$select[0];if(o.document.createEvent){var i=o.document.createEvent("MouseEvents");i.initMouseEvent("mousedown",!1,!0,o,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i)}else n.fireEvent&&n.fireEvent("onmousedown")}else t.$selecter.hasClass("closed")?function(e){e.preventDefault(),e.stopPropagation();var t=e.data;if(!t.$selecter.hasClass("open")){var n=t.$selecter.offset(),i=d.outerHeight(),o=t.$itemsWrapper.outerHeight(!0),r=0<=t.index?t.$items.eq(t.index).position():{left:0,top:0};n.top+o>i&&t.$selecter.addClass("bottom"),t.$itemsWrapper.show(),t.$selecter.removeClass("closed").addClass("open"),d.on("click.selecter-"+t.guid,":not(.selecter-options)",t,s),void 0!==c.fn.scroller?t.$itemsWrapper.scroller("scroll",t.$itemsWrapper.find(".scroller-content").scrollTop()+r.top,0).scroller("reset"):t.$itemsWrapper.scrollTop(t.$itemsWrapper.scrollTop()+r.top)}}(e):t.$selecter.hasClass("open")&&h(e)}function s(e){e.preventDefault(),e.stopPropagation(),0===c(e.currentTarget).parents(".selecter").length&&h(e)}function h(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$selecter.hasClass("open")&&(t.$itemsWrapper.hide(),t.$selecter.removeClass("open bottom").addClass("closed"),d.off(".selecter-"+t.guid))}function m(e){e.preventDefault(),e.stopPropagation();var t=c(this),n=e.data;if(!n.$select.is(":disabled")){if(n.$itemsWrapper.is(":visible"))_(n.$items.index(t),n),a(n);n.multiple||h(e)}}function f(e,t){var n=c(this),i=e.data;t||i.multiple||(_(i.$options.index(i.$options.filter("[value='"+n.val().replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1")+"']")),i),a(i))}function g(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$select.is(":disabled")||t.multiple||(t.$selecter.addClass("focus").on("keydown.selecter"+t.guid,t,n),c(".selecter").not(t.$selecter).trigger("close.selecter",[t]))}function v(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$selecter.removeClass("focus").off("keydown.selecter"+t.guid+" keyup.selecter"+t.guid),c(".selecter").not(t.$selecter).trigger("close.selecter",[t])}function n(e){var t=e.data;if(13===e.keyCode)t.$selecter.hasClass("open")&&(h(e),_(t.index,t)),a(t);else if(!(9===e.keyCode||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault(),e.stopPropagation();var n=t.$items.length-1,i=t.index<0?0:t.index;if(-1<c.inArray(e.keyCode,l?[38,40,37,39]:[38,40]))(i+=38===e.keyCode||l&&37===e.keyCode?-1:1)<0&&(i=0),n<i&&(i=n);else{var o,r=String.fromCharCode(e.keyCode).toUpperCase();for(o=t.index+1;o<=n;o++)if(t.$options.eq(o).text().charAt(0).toUpperCase()===r){i=o;break}if(i<0)for(o=0;o<=n;o++)if(t.$options.eq(o).text().charAt(0).toUpperCase()===r){i=o;break}}0<=i&&_(i,t)}}function _(e,t){var n=t.$items.eq(e),i=n.hasClass("selected");if(!n.hasClass("disabled")){if(-1===e&&""!==t.label)t.$selected.html(t.label);else if(i)t.multiple&&(t.$options.eq(e).prop("selected",null),n.removeClass("selected"));else{var o=n.html();n.data("value"),t.multiple?t.$options.eq(e).prop("selected",!0):(t.$selected.html(o).removeClass("placeholder"),t.$items.filter(".selected").removeClass("selected"),t.$select[0].selectedIndex=e),n.addClass("selected")}(!i||t.multiple)&&(t.index=e)}}function a(e){var t,n;e.links?(n=(t=e).$select.val(),t.external?o.open(n):o.location.href=n):(e.callback.call(e.$selecter,e.$select.val(),e.index),e.$select.trigger("change",[!0]))}function y(e,t){return 0===t?e:e.length>t?e.substring(0,t)+"...":e}var b=0,l=-1<o.navigator.userAgent.toLowerCase().indexOf("firefox"),C=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(o.navigator.userAgent||o.navigator.vendor||o.opera),d=null,w={callback:c.noop,cover:!1,customClass:"",label:"",external:!1,links:!1,trim:0},t={defaults:function(e){return w=c.extend(w,e||{}),c(this)},disable:function(o){return c(this).each(function(e,t){var n=c(t).next(".selecter").data("selecter");if(n)if(void 0!==o){var i=n.$items.index(n.$items.filter("[data-value="+o+"]"));n.$items.eq(i).addClass("disabled"),n.$options.eq(i).prop("disabled",!0)}else n.$selecter.hasClass("open")&&n.$selecter.find(".selecter-selected").trigger("click.selecter"),n.$selecter.addClass("disabled"),n.$select.prop("disabled",!0)})},enable:function(o){return c(this).each(function(e,t){var n=c(t).next(".selecter").data("selecter");if(n)if(void 0!==o){var i=n.$items.index(n.$items.filter("[data-value="+o+"]"));n.$items.eq(i).removeClass("disabled"),n.$options.eq(i).prop("disabled",!1)}else n.$selecter.removeClass("disabled"),n.$select.prop("disabled",!1)})},destroy:function(){return c(this).each(function(e,t){var n=c(t).next(".selecter").data("selecter");n&&(n.$selecter.hasClass("open")&&n.$selecter.find(".selecter-selected").trigger("click.selecter"),void 0!==c.fn.scroller&&n.$selecter.find(".selecter-options").scroller("destroy"),n.$select[0].tabIndex=n.tabIndex,n.$select.off(".selecter").removeClass("selecter-element").show(),n.$selecter.off(".selecter").remove())})},refresh:function(){return c(this).each(function(e,t){var n=c(t).next(".selecter").data("selecter");if(n){var i=n.index;n.$allOptions=n.$select.find("option, optgroup"),n.$options=n.$allOptions.filter("option"),n.index=-1,i=n.$options.index(n.$options.filter(":selected")),u(n),_(i,n)}})}};c.fn.selecter=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?this:function(e){e=c.extend({},w,e||{}),null===d&&(d=c("body"));for(var t=c(this),n=0,i=t.length;n<i;n++)r(t.eq(n),e);return t}.apply(this,arguments)},c.selecter=function(e){"defaults"===e&&t.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,window),"function"!=typeof jQuery.fn.stepper&&function(d){"use strict";function o(e,t){if(!e.hasClass("stepper-input")){t=d.extend({},t,e.data("stepper-options"));var n=parseFloat(e.attr("min")),i=parseFloat(e.attr("max")),o=parseFloat(e.attr("step"))||1;e.addClass("stepper-input").wrap('<div class="stepper '+t.customClass+'" />').after('<span class="stepper-arrow up">'+t.labels.up+'</span><span class="stepper-arrow down">'+t.labels.down+"</span>");var r=e.parent(".stepper"),s=d.extend({$stepper:r,$input:e,$arrow:r.find(".stepper-arrow"),min:void 0!==typeof n&&!isNaN(n)&&n,max:void 0!==typeof i&&!isNaN(i)&&i,step:void 0===typeof o||isNaN(o)?1:o,timer:null},t);s.digits=(a=s.step,-1<(l=String(a)).indexOf(".")?l.length-l.indexOf(".")-1:0),e.is(":disabled")&&r.addClass("disabled"),r.on("touchstart.stepper mousedown.stepper",".stepper-arrow",s,c).data("stepper",s)}var a,l}function c(e){e.preventDefault(),e.stopPropagation(),s(e);var t,n,i,o=e.data;if(!o.$input.is(":disabled")&&!o.$stepper.hasClass("disabled")){var r=d(e.target).hasClass("up")?o.step:-o.step;o.timer=(t=o.timer,n=125,i=function(){a(o,r)},l(t),setInterval(i,n)),a(o,r),d("body").on("touchend.stepper mouseup.stepper",o,s)}}function s(e){e.preventDefault(),e.stopPropagation(),l(e.data.timer),d("body").off(".stepper")}function a(e,t){var n=parseFloat(e.$input.val()),i=t;void 0===typeof n||isNaN(n)?i=!1!==e.min?e.min:0:!1!==e.min&&n<e.min?i=e.min:i+=n;var o,r,s,a=(i-e.min)%e.step;0!==a&&(i-=a),!1!==e.min&&i<e.min&&(i=e.min),!1!==e.max&&i>e.max&&(i-=e.step),i!==n&&(o=i,r=e.digits,s=Math.pow(10,r),i=Math.round(o*s)/s,e.$input.val(i).trigger("change"))}function l(e){e&&(clearInterval(e),e=null)}var r={customClass:"",labels:{up:"Up",down:"Down"}},t={defaults:function(e){return r=d.extend(r,e||{}),d(this)},destroy:function(){return d(this).each(function(){var e=d(this).data("stepper");e&&(e.$stepper.off(".stepper").find(".stepper-arrow").remove(),e.$input.unwrap().removeClass("stepper-input"))})},disable:function(){return d(this).each(function(){var e=d(this).data("stepper");e&&(e.$input.attr("disabled","disabled"),e.$stepper.addClass("disabled"))})},enable:function(){return d(this).each(function(){var e=d(this).data("stepper");e&&(e.$input.attr("disabled",null),e.$stepper.removeClass("disabled"))})}};d.fn.stepper=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?this:function(e){e=d.extend({},r,e||{});for(var t=d(this),n=0,i=t.length;n<i;n++)o(t.eq(n),e);return t}.apply(this,arguments)},d.stepper=function(e){"defaults"===e&&t.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd)var e=n.fn.select2.amd;var t,o,d;return e&&e.requirejs||(e?o=e:e={},function(p){function h(e,t){return n.call(e,t)}function s(e,t){var n,i,o,r,s,a,l,d,c,u,p,h=t&&t.split("/"),m=C.map,f=m&&m["*"]||{};if(e&&"."===e.charAt(0))if(t){for(s=(e=e.split("/")).length-1,C.nodeIdCompat&&M.test(e[s])&&(e[s]=e[s].replace(M,"")),e=h.slice(0,h.length-1).concat(e),c=0;c<e.length;c+=1)if("."===(p=e[c]))e.splice(c,1),c-=1;else if(".."===p){if(1===c&&(".."===e[2]||".."===e[0]))break;0<c&&(e.splice(c-1,2),c-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||f)&&m){for(c=(n=e.split("/")).length;0<c;c-=1){if(i=n.slice(0,c).join("/"),h)for(u=h.length;0<u;u-=1)if((o=m[h.slice(0,u).join("/")])&&(o=o[i])){r=o,a=c;break}if(r)break;!l&&f&&f[i]&&(l=f[i],d=c)}!r&&l&&(r=l,a=d),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function m(t,n){return function(){var e=i.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),l.apply(p,e.concat([t,n]))}}function f(t){return function(e){y[t]=e}}function g(e){if(h(b,e)){var t=b[e];delete b[e],w[e]=!0,r.apply(p,t)}if(!h(y,e)&&!h(w,e))throw new Error("No "+e);return y[e]}function a(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}var r,l,v,_,y={},b={},C={},w={},n=Object.prototype.hasOwnProperty,i=[].slice,M=/\.js$/;v=function(e,t){var n,i,o=a(e),r=o[0];return e=o[1],r&&(n=g(r=s(r,t))),r?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return s(e,i)})):s(e,t):(r=(o=a(e=s(e,t)))[0],e=o[1],r&&(n=g(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},_={require:function(e){return m(e)},exports:function(e){var t=y[e];return void 0!==t?t:y[e]={}},module:function(e){return{id:e,uri:"",exports:y[e],config:(t=e,function(){return C&&C.config&&C.config[t]||{}})};var t}},r=function(e,t,n,i){var o,r,s,a,l,d,c=[],u=typeof n;if(i=i||e,"undefined"===u||"function"===u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(r=(a=v(t[l],i)).f))c[l]=_.require(e);else if("exports"===r)c[l]=_.exports(e),d=!0;else if("module"===r)o=c[l]=_.module(e);else if(h(y,r)||h(b,r)||h(w,r))c[l]=g(r);else{if(!a.p)throw new Error(e+" missing "+r);a.p.load(a.n,m(i,!0),f(r),{}),c[l]=y[r]}s=n?n.apply(y[e],c):void 0,e&&(o&&o.exports!==p&&o.exports!==y[e]?y[e]=o.exports:s===p&&d||(y[e]=s))}else e&&(y[e]=n)},t=o=l=function(e,t,n,i,o){if("string"==typeof e)return _[e]?_[e](t):g(v(e,t).f);if(!e.splice){if((C=e).deps&&l(C.deps,C.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=i,i=o),i?r(p,e,t,n):setTimeout(function(){r(p,e,t,n)},4),l},l.config=function(e){return l(e)},t._defined=y,(d=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),h(y,e)||h(b,e)||(b[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=o,e.define=d),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(r){function c(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}var e={Extend:function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var o in t)i.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(i,o){function r(){var e=Array.prototype.unshift,t=o.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=o.prototype.constructor),n.apply(this,arguments)}var e=c(o),t=c(i);o.displayName=i.displayName,r.prototype=new function(){this.constructor=r};for(var n=0;n<t.length;n++){var s=t[n];r.prototype[s]=i.prototype[s]}for(var a=function(e){var t=function(){};e in r.prototype&&(t=r.prototype[e]);var n=o.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},l=0;l<e.length;l++){var d=e[l];r.prototype[d]=a(d)}return r}},t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=r(t),i=t.style.overflowX,o=t.style.overflowY;return(i!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===i||"scroll"===o||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},e.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===r.fn.jquery.substr(0,3)){var n=r();r.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e}),e.define("select2/results",["jquery","./utils"],function(p,e){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=p('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=p('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=p.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=p(this),t=p.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<p.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var i in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var r=p(t),s=document.createElement("strong");s.className="select2-results__group",p(s),this.template(e,s);for(var a=[],l=0;l<e.children.length;l++){var d=e.children[l],c=this.option(d);a.push(c)}var u=p("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});u.append(a),r.append(s),r.append(u)}else this.template(e,t);return p.data(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var i=n-1;0===e.length&&(i=0);var o=t.eq(i);o.trigger("mouseenter");var r=l.$results.offset().top,s=o.offset().top,a=l.$results.scrollTop()+(s-r);0===i?l.$results.scrollTop(0):s-r<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var o=l.$results.offset().top+l.$results.outerHeight(!1),r=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+r-o;0===n?l.$results.scrollTop(0):o<r&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),p.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,o=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=p(this),n=t.data("data");return"true"===t.attr("aria-selected")?void(l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})):void l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=p(this).data("data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:p(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=n(e,t);null==o?t.style.display="none":"string"==typeof o?t.innerHTML=i(o):p(t).append(o)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,e,o){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},i.prototype.bind=function(e,t){var n=this,i=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===o.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},i.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){var e=n(this);this!=t[0]&&e.data("element").select2("close")})})},i.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(t,e){var n=this;o.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(e){n.update(e.data)})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)}else this.clear()},o}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,a){function o(e,t){o.__super__.constructor.apply(this,arguments)}return a.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!n.options.get("disabled")){var t=i(this).parent().data("data");n.trigger("unselect",{originalEvent:e,data:t})}})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],o=this.selectionContainer(),r=this.display(i,o);o.append(r),o.prop("title",i.title||i.text),o.data("data",i),t.push(o)}var s=this.$selection.find(".select2-selection__rendered");a.appendMany(s,t)}},o}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),e.define("select2/selection/allowClear",["jquery","../keys"],function(i,o){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),o=0;o<i.length;o++){var r={data:i[o]};if(this.trigger("unselect",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||(t.which==o.DELETE||t.which==o.BACKSPACE)&&this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=i('<span class="select2-selection__clear">&times;</span>');n.data("data",t),this.$selection.find(".select2-selection__rendered").prepend(n)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,e,s){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===s.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=t.data("data");i.searchRemoveChoice(n),e.preventDefault()}}});var o=document.documentMode,r=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){return r?void i.$selection.off("input.search input.searchcheck"):void i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(r&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=s.SHIFT&&t!=s.CTRL&&t!=s.ALT&&t!=s.TAB&&i.handleSearch(e)}})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},t}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],r=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,o)){t=t||{};var n=s.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==s.inArray(e,r)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return(n+=i.generateChars(4))+(null!=t.id?"-"+t.id.toString():"-"+i.generateChars(4))},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=a(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(o){var r=this;if(o.selected=!0,a(o.element).is("option"))return o.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(o=[o]).push.apply(o,e);for(var n=0;n<o.length;n++){var i=o[n].id;-1===a.inArray(i,t)&&t.push(i)}r.$element.val(t),r.$element.trigger("change")});else{var e=o.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(o){var r=this;if(this.$element.prop("multiple"))return o.selected=!1,a(o.element).is("option")?(o.element.selected=!1,void this.$element.trigger("change")):void this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==o.id&&-1===a.inArray(i,t)&&t.push(i)}r.$element.val(t),r.$element.trigger("change")})},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})},n.prototype.query=function(i,e){var o=[],r=this;this.$element.children().each(function(){var e=a(this);if(e.is("option")||e.is("optgroup")){var t=r.item(e),n=r.matches(i,t);null!==n&&o.push(n)}}),e({results:o})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=a(t),i=this._normalizeItem(e);return i.element=t,a.data(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=a.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],o=0;o<n.length;o++){var r=a(n[o]),s=this.item(r);i.push(s)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){a.isPlainObject(e)||(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,m,f){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return m.Extend(i,e),i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){function t(e){return function(){return f(this).val()==e.id}}for(var n=this,i=this.$element.find("option"),o=i.map(function(){return n.item(f(this)).id}).get(),r=[],s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=f.inArray(a.id,o)){var l=i.filter(t(a)),d=this.item(l),c=f.extend(!0,{},a,d),u=this.option(c);l.replaceWith(u)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);m.appendMany(p,h)}r.push(p)}}return r},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,r){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return r.extend({},e,{q:e.term})},transport:function(e,t,n){var i=r.ajax(e);return i.then(t),i.fail(n),i}};return r.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){function e(){var e=t.transport(t,function(e){var t=o.processResults(e,n);o.options.get("debug")&&window.console&&console.error&&(t&&t.results&&r.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){e.status&&"0"===e.status||o.trigger("results:message",{message:"errorLoading"})});o._request=e}var o=this;null!=this._request&&(r.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=r.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(c){function e(e,t,n){var i=n.get("tags"),o=n.get("createTag");void 0!==o&&(this.createTag=o);var r=n.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,t,n),c.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),d=this.option(l);this.$element.append(d)}}return e.prototype.query=function(e,d,c){var u=this;return this._removeOldTags(),null==d.term||null!=d.page?void e.call(this,d,c):void e.call(this,d,function e(t,n){for(var i=t.results,o=0;o<i.length;o++){var r=i[o],s=null!=r.children&&!e({results:r.children},!0);if(r.text===d.term||s)return!n&&(t.data=i,void c(t))}if(n)return!0;var a=u.createTag(d);if(null!=a){var l=u.option(a);l.attr("data-select2-tag",!0),u.addOptions([l]),u.insertTag(i,a)}t.results=i,c(t)})},e.prototype.createTag=function(e,t){var n=c.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){(this._lastTag,this.$element.find("option[data-select2-tag]")).each(function(){this.selected||c(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(u){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var o=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t,n=o._normalizeItem(e);if(!o.$element.find("option").filter(function(){return u(this).val()===n.id}).length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}t=n,o.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.focus()),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var o=n.get("tokenSeparators")||[],r=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<r.length;){var l=r[s];if(-1!==u.inArray(l,o)){var d=r.substr(0,s),c=a(u.extend({},t,{term:d}));null!=c?(i(c),r=r.substr(s+1)||"",s=0):s++}else s++}return{term:r}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,i,o){var r=this;this.current(function(e){var t=null!=e?e.length:0;return 0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void n.call(r,i,o)})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),t.on("focus",function(){t.isOpen()&&i.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(o){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var e=o.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var t=i.$results.offset().top+i.$results.outerHeight(!1);i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)<=t+50&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=o.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=o('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(m,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||m(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=m("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,o="resize.select2."+t.id,r="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){m(this).data("select2-scroll-position",{x:m(this).scrollLeft(),y:m(this).scrollTop()})}),s.on(i,function(e){var t=m(this).data("select2-scroll-position");m(this).scrollTop(t.y)}),m(window).on(i+" "+o+" "+r,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),m(window).off(n+" "+i+" "+o)},e.prototype._positionDropdown=function(){var e=m(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=o.top,r.bottom=o.top+r.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),d=a<o.top-s,c=l>o.bottom+s,u={left:o.left,top:r.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();u.top-=h.top,u.left-=h.left,t||n||(i="below"),c||!d||t?!d&&c&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(u.top=r.top-h.top-s),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(u)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var o=i.data("data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(m,f,g,v,_,y,b,C,w,M,I,t,x,$,E,R,z,O,A,S,P,k,D,j,T,Z,H,U,e){function n(){this.reset()}return n.prototype.apply=function(t){if(null==(t=m.extend(!0,{},this.defaults,t)).dataAdapter){if(null!=t.ajax?t.dataAdapter=E:null!=t.data?t.dataAdapter=$:t.dataAdapter=x,0<t.minimumInputLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,O)),0<t.maximumInputLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,A)),0<t.maximumSelectionLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,S)),t.tags&&(t.dataAdapter=M.Decorate(t.dataAdapter,R)),(null!=t.tokenSeparators||null!=t.tokenizer)&&(t.dataAdapter=M.Decorate(t.dataAdapter,z)),null!=t.query){var e=f(t.amdBase+"compat/query");t.dataAdapter=M.Decorate(t.dataAdapter,e)}if(null!=t.initSelection){var n=f(t.amdBase+"compat/initSelection");t.dataAdapter=M.Decorate(t.dataAdapter,n)}}if(null==t.resultsAdapter&&(t.resultsAdapter=g,null!=t.ajax&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,j)),null!=t.placeholder&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,D)),t.selectOnClose&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,H))),null==t.dropdownAdapter){if(t.multiple)t.dropdownAdapter=P;else{var i=M.Decorate(P,k);t.dropdownAdapter=i}if(0!==t.minimumResultsForSearch&&(t.dropdownAdapter=M.Decorate(t.dropdownAdapter,Z)),t.closeOnSelect&&(t.dropdownAdapter=M.Decorate(t.dropdownAdapter,U)),null!=t.dropdownCssClass||null!=t.dropdownCss||null!=t.adaptDropdownCssClass){var o=f(t.amdBase+"compat/dropdownCss");t.dropdownAdapter=M.Decorate(t.dropdownAdapter,o)}t.dropdownAdapter=M.Decorate(t.dropdownAdapter,T)}if(null==t.selectionAdapter){if(t.multiple?t.selectionAdapter=_:t.selectionAdapter=v,null!=t.placeholder&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,y)),t.allowClear&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,b)),t.multiple&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,C)),null!=t.containerCssClass||null!=t.containerCss||null!=t.adaptContainerCssClass){var r=f(t.amdBase+"compat/containerCss");t.selectionAdapter=M.Decorate(t.selectionAdapter,r)}t.selectionAdapter=M.Decorate(t.selectionAdapter,w)}if("string"==typeof t.language)if(0<t.language.indexOf("-")){var s=t.language.split("-")[0];t.language=[t.language,s]}else t.language=[t.language];if(m.isArray(t.language)){var a=new I;t.language.push("en");for(var l=t.language,d=0;d<l.length;d++){var c=l[d],u={};try{u=I.loadPath(c)}catch(e){try{c=this.defaults.amdLanguageBase+c,u=I.loadPath(c)}catch(e){t.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+c+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(u)}t.translations=a}else{var p=I.loadPath(this.defaults.amdLanguageBase+"en"),h=new I(t.language);h.extend(p),t.translations=h}return t},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:M.escapeMarkup,language:e,matcher:function e(t,n){if(""===m.trim(t.term))return n;if(n.children&&0<n.children.length){for(var i=m.extend(!0,{},n),o=n.children.length-1;0<=o;o--)null==e(t,n.children[o])&&i.children.splice(o,1);return 0<i.children.length?i:e(t,i)}var r=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<r.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.set=function(e,t){var n={};n[m.camelCase(e)]=t;var i=M._convertData(n);m.extend(this.defaults,i)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(i,r,o,s){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=o.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=s.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n;n=r.fn.jquery&&"1."==r.fn.jquery.substr(0,2)&&e[0].dataset?r.extend(!0,{},e[0].dataset,e.data()):e.data();var i=r.extend(!0,{},n);for(var o in i=s._convertData(i))-1<r.inArray(o,t)||(r.isPlainObject(this.options[o])?r.extend(this.options[o],i[o]):this.options[o]=i[o]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,d,n,i){var c=function(e,t){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new d(t,e),c.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var o=this.render();this._placeContainer(o);var r=this.options.get("selectionAdapter");this.selection=new r(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(c,n.Observable),c.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},c.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},c.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),a=0,l=s.length;a<l;a+=1){var d=s[a].replace(/\s/g,"").match(n);if(null!==d&&1<=d.length)return d[1]}return null}return t},c.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},c.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){o.each(e,t._syncA),o.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},c.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},c.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,i)&&n.trigger(e,t)})},c.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},c.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},c.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},c.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},c.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var o=0;o<t.addedNodes.length;o++){t.addedNodes[o].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},c.prototype.trigger=function(e,t){var n=c.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var o=i[e],r={prevented:!1,name:e,args:t};if(n.call(this,o,r),r.prevented)return void(t.prevented=!0)}n.call(this,e,t)},c.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},c.prototype.open=function(){this.isOpen()||this.trigger("query",{})},c.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},c.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},c.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},c.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},c.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},c.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},c.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},c.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},c.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},c}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(o,e,r,t){if(null==o.fn.select2){var s=["open","close","destroy"];o.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=o.extend(!0,{},t);new r(o(this),e)}),this;if("string"==typeof t){var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o(this).data("select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<o.inArray(t,s)?this:n}throw new Error("Invalid arguments for Select2: "+t)}}return null==o.fn.select2.defaults&&(o.fn.select2.defaults=t),r}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return n.fn.select2.amd=e,t}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(r){"use strict";function n(e,t){function n(e){void 0!==e.open&&(e.open=!e.open)}var i=function(e){for(var t=[],n=e.parentNode;(i=n)&&(0===i.offsetWidth||0===i.offsetHeight||!1===i.open);)t.push(n),n=n.parentNode;var i;return t}(e),o=i.length,r=[],s=e[t];if(o){for(var a=0;a<o;a++)r[a]=i[a].style.cssText,i[a].style.setProperty?i[a].style.setProperty("display","block","important"):i[a].style.cssText+=";display: block !important",i[a].style.height="0",i[a].style.overflow="hidden",i[a].style.visibility="hidden",n(i[a]);s=e[t];for(var l=0;l<o;l++)i[l].style.cssText=r[l],n(i[l])}return s}function i(e,t){var n=parseFloat(e);return Number.isNaN(n)?t:n}function o(e){return e.charAt(0).toUpperCase()+e.substr(1)}function s(e,t){if(this.$window=r(window),this.$document=r(document),this.$element=r(e),this.options=r.extend({},c,t),this.polyfill=this.options.polyfill,this.orientation=this.$element[0].getAttribute("data-orientation")||this.options.orientation,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.DIMENSION=u.orientation[this.orientation].dimension,this.DIRECTION=u.orientation[this.orientation].direction,this.DIRECTION_STYLE=u.orientation[this.orientation].directionStyle,this.COORDINATE=u.orientation[this.orientation].coordinate,this.polyfill&&d)return!1;this.identifier="js-"+a+"-"+l++,this.startEvent=this.options.startEvent.join("."+this.identifier+" ")+"."+this.identifier,this.moveEvent=this.options.moveEvent.join("."+this.identifier+" ")+"."+this.identifier,this.endEvent=this.options.endEvent.join("."+this.identifier+" ")+"."+this.identifier,this.toFixed=(this.step+"").replace(".","").length-1,this.$fill=r('<div class="'+this.options.fillClass+'" />'),this.$handle=r('<div class="'+this.options.handleClass+'" />'),this.$range=r('<div class="'+this.options.rangeClass+" "+this.options[this.orientation+"Class"]+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=r.proxy(this.handleDown,this),this.handleMove=r.proxy(this.handleMove,this),this.handleEnd=r.proxy(this.handleEnd,this),this.init();var n,i,o=this;this.$window.on("resize."+this.identifier,(n=function(){!function(e,t){var n=Array.prototype.slice.call(arguments,2);setTimeout(function(){return e.apply(null,n)},t)}(function(){o.update(!1,!1)},300)},i=(i=20)||100,function(){if(!n.debouncing){var e=Array.prototype.slice.apply(arguments);n.lastReturnVal=n.apply(window,e),n.debouncing=!0}return clearTimeout(n.debounceTimeout),n.debounceTimeout=setTimeout(function(){n.debouncing=!1},i),n.lastReturnVal})),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(e,t){if(!t||t.origin!==o.identifier){var n=e.target.value,i=o.getPositionFromValue(n);o.setPosition(i)}})}Number.isNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};var e,a="rangeslider",l=0,d=((e=document.createElement("input")).setAttribute("type","range"),"text"!==e.type),c={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",activeClass:"rangeslider--active",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},u={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};return s.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},s.prototype.update=function(e,t){(e=e||!1)&&(this.min=i(this.$element[0].getAttribute("min"),0),this.max=i(this.$element[0].getAttribute("max"),100),this.value=i(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=i(this.$element[0].getAttribute("step"),1)),this.handleDimension=n(this.$handle[0],"offset"+o(this.DIMENSION)),this.rangeDimension=n(this.$range[0],"offset"+o(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,t)},s.prototype.handleDown=function(e){if(e.preventDefault(),!(e.button&&0!==e.button||(this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),this.$range.addClass(this.options.activeClass),-1<(" "+e.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)))){var t=this.getRelativePosition(e),n=this.$range[0].getBoundingClientRect()[this.DIRECTION],i=this.getPositionFromNode(this.$handle[0])-n,o="vertical"===this.orientation?this.maxHandlePos-(t-this.grabPos):t-this.grabPos;this.setPosition(o),i<=t&&t<i+this.handleDimension&&(this.grabPos=t-i)}},s.prototype.handleMove=function(e){e.preventDefault();var t=this.getRelativePosition(e),n="vertical"===this.orientation?this.maxHandlePos-(t-this.grabPos):t-this.grabPos;this.setPosition(n)},s.prototype.handleEnd=function(e){e.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd),this.$range.removeClass(this.options.activeClass),this.$element.trigger("change",{origin:this.identifier}),this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(this.position,this.value)},s.prototype.cap=function(e,t,n){return e<t?t:n<e?n:e},s.prototype.setPosition=function(e,t){var n,i;void 0===t&&(t=!0),n=this.getValueFromPosition(this.cap(e,0,this.maxHandlePos)),i=this.getPositionFromValue(n),this.$fill[0].style[this.DIMENSION]=i+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=i+"px",this.setValue(n),this.position=i,this.value=n,t&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(i,n)},s.prototype.getPositionFromNode=function(e){for(var t=0;null!==e;)t+=e.offsetLeft,e=e.offsetParent;return t},s.prototype.getRelativePosition=function(e){var t=o(this.COORDINATE),n=this.$range[0].getBoundingClientRect()[this.DIRECTION],i=0;return void 0!==e.originalEvent["client"+t]?i=e.originalEvent["client"+t]:e.originalEvent.touches&&e.originalEvent.touches[0]&&void 0!==e.originalEvent.touches[0]["client"+t]?i=e.originalEvent.touches[0]["client"+t]:e.currentPoint&&void 0!==e.currentPoint[this.COORDINATE]&&(i=e.currentPoint[this.COORDINATE]),i-n},s.prototype.getPositionFromValue=function(e){var t;return t=(e-this.min)/(this.max-this.min),Number.isNaN(t)?0:t*this.maxHandlePos},s.prototype.getValueFromPosition=function(e){var t,n;return t=e/(this.maxHandlePos||1),n=this.step*Math.round(t*(this.max-this.min)/this.step)+this.min,Number(n.toFixed(this.toFixed))},s.prototype.setValue=function(e){e===this.value&&""!==this.$element[0].value||this.$element.val(e).trigger("input",{origin:this.identifier})},s.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+a),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},r.fn[a]=function(n){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=r(this),t=e.data("plugin_"+a);t||e.data("plugin_"+a,t=new s(this,n)),"string"==typeof n&&t[n].apply(t,i)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"}),function(t,e,n){t.bind("ready",function(){t.previewedDevice&&t.previewedDevice.bind(function(e){t.previewer.send("previewed-device",e)})})}(wp.customize,jQuery,_),function(e,t,i){var o=function(e){e=i.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},e);var t,n=Array.from(e.consoleArguments);return n=i.isEmpty(i.filter(n,function(e){return!i.isString(e)}))?n.join(" "):JSON.stringify(n.join(" ")),["%c "+(t=n,i.isString(t)?300<t.length?t.substr(0,299)+"...":t:""),["background:"+e.bgCol,"color:"+e.textCol,"display: block;"].join(";")]},n=function(e,t,n){i.isUndefined(console)&&"function"!=typeof window.console.log||(serverControlParams.isDevMode?i.isUndefined(t)?console.log.apply(console,o({bgCol:n,textCol:"#000",consoleArguments:["<"+e+">"]})):(console.log.apply(console,o({bgCol:n,textCol:"#000",consoleArguments:["<"+e+">"]})),console.log(t),console.log.apply(console,o({bgCol:n,textCol:"#000",consoleArguments:["</"+e+">"]}))):console.log.apply(console,o({bgCol:n,textCol:"#000",consoleArguments:[e]})))};e.consoleLog=function(){serverControlParams.isDevMode&&(i.isUndefined(console)&&"function"!=typeof window.console.log||(console.log.apply(console,o({consoleArguments:arguments})),console.log("Unstyled console message : ",arguments)))},e.errorLog=function(){i.isUndefined(console)&&"function"!=typeof window.console.log||console.log.apply(console,o({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:arguments}))},e.errare=function(e,t){n(e,t,"#ffd5a0")},e.infoLog=function(e,t){n(e,t,"#5ed1f5")},e.czr_isChangeSetOn=function(){return serverControlParams.isChangeSetOn&&!0}}(wp.customize,jQuery,_),function(e,n,i){e.bind("ready",function(){var t=function(){i.isUndefined(window.themeServerControlParams)||i.isUndefined(themeServerControlParams.isThemeSwitchOn)||themeServerControlParams.isThemeSwitchOn||(e.panel("themes").active.callbacks=n.Callbacks(),e.panel("themes").active(themeServerControlParams.isThemeSwitchOn))};e.panel.has("themes")?t():e.panel.when("themes",function(e){t()})})}(wp.customize,jQuery,_),function(o,e,r){o.czr_activeSectionId=o.czr_activeSectionId||new o.Value(""),o.czr_activePanelId=o.czr_activePanelId||new o.Value(""),o.bind("ready",function(){if("function"!=typeof o.Section)throw new Error("Your current version of WordPress does not support the customizer sections needed for this theme. Please upgrade WordPress to the latest version.");var n=function(e,t){o.czr_activeSectionId(e?t:"")};o.section.each(function(t){"publish_settings"!=t.id&&t.expanded.bind(function(e){n(e,t.id)})}),o.section.bind("add",function(t){"publish_settings"!=t.id&&t.expanded.bind(function(e){n(e,t.id)})});var i=function(e,t){o.czr_activePanelId(e?t:""),r.isEmpty(o.czr_activePanelId())&&o.czr_activeSectionId("")};o.panel.each(function(t){t.expanded.bind(function(e){i(e,t.id)})}),o.panel.bind("add",function(t){t.expanded.bind(function(e){i(e,t.id)})})})}(wp.customize,jQuery,_),function(a,e,l){a.bind("ready",function(){serverControlParams.paramsForDynamicRegistration;l.isObject(serverControlParams.paramsForDynamicRegistration)||a.errorLog("serverControlParams.paramsForDynamicRegistration should be an array"),l.each(serverControlParams.paramsForDynamicRegistration,function(e,t){if(e.module_registration_params&&!0===e.module_registration_params.dynamic_registration)if(serverControlParams.isDevMode)n(e);else try{n(e)}catch(e){a.errorLog(e)}})});var n=function(e){if(e=l.extend({setting_id:"",module_type:"",option_value:[],setting:{},section:{id:"",title:""},control:{}},e),l.isEmpty(e.setting_id)||l.isEmpty(e.module_type))throw a.errare("registerDynamicModuleSettingControl => args",e),new Error("registerDynamicModuleSettingControl => missing params when registrating a setting");if(!l.isArray(e.option_value)&&!l.isObject(e.option_value))throw new Error("registerDynamicModuleSettingControl => the module values must be an array or an object");var t=e.setting_id,n=e.setting;a.CZR_Helpers.register({what:"setting",id:t,dirty:!l.isEmpty(e.option_value),value:e.option_value,transport:n.transport||"refresh",type:n.type||"option",track:!1});var i=e.section;if(!l.isEmpty(i)){if(!l.has(i,"id"))throw new Error("registerDynamicModuleSettingControl => missing section id for the section of setting : "+t);a.CZR_Helpers.register({what:"section",id:i.id,title:i.title||i.id,panel:l.isEmpty(i.panel)?"":i.panel,priority:i.priority||10,track:!1})}var o,r=t,s=e.control;if(o=l.isEmpty(e.section)?s.section:e.section.id,l.isEmpty(o))throw a.errare("registerDynamicModuleSettingControl => missing section id for the control",e),new Error("registerDynamicModuleSettingControl => missing section id for the section of setting : "+t);return a.CZR_Helpers.register({what:"control",id:r,label:s.label||r,type:"czr_module",module_type:e.module_type,section:o,priority:s.priority||10,settings:{default:t},track:!1}),a.section.has(o)&&a.section(o).expanded()&&a.control(r).trigger("set-module-ready"),t}}(wp.customize,jQuery,_),function(s,a,l){s.Value.prototype.set=function(t,n){var i=this._value,e=a.Deferred(),o=this,r=[];return t=this._setter.apply(this,arguments),t=this.validate(t),args=l.extend({silent:!1},l.isObject(n)?n:{}),null===t||l.isEqual(i,t)?e.resolveWith(o,[t,i,n]).promise():(this._value=t,(this._dirty=!0)===args.silent?e.resolveWith(o,[t,i,n]).promise():this._deferreds?(l.each(o._deferreds,function(e){r.push(e.apply(null,[t,i,n]))}),a.when.apply(null,r).fail(function(){s.errorLog("A deferred callback failed in api.Value::set()")}).then(function(){o.callbacks.fireWith(o,[t,i,n]),e.resolveWith(o,[t,i,n])}),e.promise(o)):(this.callbacks.fireWith(this,[t,i,n]),e.resolveWith(o,[t,i,n]).promise(o)))},s.Value.prototype.bind=function(){var t=this,n=!1,i=[];return a.each(arguments,function(e,t){n||(n=l.isObject(t)&&t.deferred),l.isFunction(t)&&i.push(t)}),n?(t._deferreds=t._deferreds||[],l.each(i,function(e){l.contains(e,t._deferreds)||t._deferreds.push(e)})):t.callbacks.add.apply(t.callbacks,arguments),this},s.Setting.prototype.silent_set=function(e,t){var n=this._value,i=s.state("saved")();return e=this._setter.apply(this,arguments),null===(e=this.validate(e))||l.isEqual(n,e)||(this._value=e,this._dirty=l.isUndefined(t)||!l.isBoolean(t)?this._dirty:t,this.callbacks.fireWith(this,[e,n,{silent:!0}]),s.state("saved")(i)),this}}(wp.customize,jQuery,_),function(s,a,l){s.Setting.prototype.preview=function(e,t,n){var i,o=this,r=a.Deferred();return i=o.transport,l.isUndefined(t)||l.isEmpty(t)||l.isNull(t)||!l.isObject(n)||!0!==n.not_preview_sent?l.has(n,"silent")&&!1!==n.silent?r.resolve(arguments).promise():("postMessage"!==i||s.state("previewerAlive").get()||(i="refresh"),"postMessage"===i?(o.previewer.send("pre_setting",{set_id:o.id,data:n,value:e}),o.previewer.send("setting",[o.id,o()]),r.resolve(arguments)):"refresh"===i&&(o.previewer.refresh(),r.resolve(arguments)),r.promise()):r.resolve(arguments).promise()}}(wp.customize,jQuery,_),function(e,o,r){if("function"==typeof e.Section){var n=e.Section.prototype.initialize;e.Section.prototype.initialize=function(e,t){n.apply(this,[e,t]);var i=this;this.expanded.callbacks.add(function(e){if(e){var t=i.container.closest(".wp-full-overlay-sidebar-content"),n=i.container.find(".accordion-section-content");_resizeContentHeight=function(){n.css("height",t.innerHeight())},_resizeContentHeight(),o(window).on("resize.customizer-section",r.debounce(_resizeContentHeight,110))}})}}}(wp.customize,jQuery,_),function(c,u,p){c.CZR_Helpers=c.CZR_Helpers||{},c.CZR_Helpers=u.extend(c.CZR_Helpers,{setupInputCollectionFromDOM:function(){var r=this;if(!p.isFunction(r))throw new Error("setupInputCollectionFromDOM => inputParentInst is not valid.");var s=r.module,a=p.has(r(),"is_mod_opt");if(p.isEmpty(r.inputCollection())){r.czr_Input=r.czr_Input||new c.Values,r.inputConstructor=a?s.inputModOptConstructor:s.inputConstructor;var e=a?r.defaultModOptModel:r.defaultItemModel;if(p.isEmpty(e)||p.isUndefined(e))throw new Error("setupInputCollectionFromDOM => No default model found in item or mod opt "+r.id+".");var l=u.extend(!0,{},r());l=p.isObject(l)?u.extend(e,l):e;var d={};return u("."+s.control.css_attr.sub_set_wrapper,r.container).length<1&&c.errare("setupInputCollectionFromDOM => no input elements found in the DOM"),u("."+s.control.css_attr.sub_set_wrapper,r.container).each(function(e){var t=u(this).find("[data-czrtype]").attr("data-czrtype"),n=p.has(l,t)?l[t]:"";if(p.isUndefined(t)||p.isEmpty(t))c.errare("setupInputCollectionFromDOM => missing data-czrtype id for input type "+u(this).data("input-type")+" in module "+s.id+". Check that the server input template is properly declared.");else{if(!p.has(l,t))throw new Error("setupInputCollectionFromDOM => The item or mod opt property : "+t+" has been found in the DOM but not in the item or mod opt model : "+r.id+". The input can not be instantiated.");var i=u(this).data("input-type"),o={id:t,type:i,transport:u(this).data("transport")||"inherit",input_value:n,input_options:p.has(s.inputOptions,i)?s.inputOptions[i]:{},container:u(this),input_parent:r,is_mod_opt:a,module:s};c.trigger("input-args-before-instantiation",o),r.czr_Input.add(t,new r.inputConstructor(t,o)),r.czr_Input(t).ready(),d[t]=n}}),r.inputCollection(d),r}}})}(wp.customize,jQuery,_),function(i,e,o){i.CZR_Helpers=i.CZR_Helpers||{},i.CZR_Helpers=e.extend(i.CZR_Helpers,{getModuleTmpl:function(t){var n=e.Deferred();if(t=o.extend({tmpl:"",module_type:"",module_id:"",cache:!0,nonce:i.settings.nonce.save},t),(o.isEmpty(t.tmpl)||o.isEmpty(t.module_type))&&n.reject("api.CZR_Helpers.getModuleTmpl => missing tmpl or module_type param"),i.CZR_Helpers.czr_cachedTmpl=i.CZR_Helpers.czr_cachedTmpl||{},i.CZR_Helpers.czr_cachedTmpl[t.module_type]=i.CZR_Helpers.czr_cachedTmpl[t.module_type]||{},!0===t.cache&&!o.isEmpty(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl])&&o.isString(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]))n.resolve(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]);else{if(o.isObject(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl])&&"pending"==i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl].state())return i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl];i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]=wp.ajax.post("ac_get_template",t).done(function(e){n.resolve(e),i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]=e}).fail(function(e){i.errare("api.CZR_Helpers.getModuleTmpl => Problem when fetching the "+t.tmpl+" tmpl from server for module : "+t.module_id+" "+t.module_type,e),n.reject(e),o.isObject(e)&&("invalid_nonce"!==e.code&&"Bad Request"!==e.statusText||window.sektionsLocalizedData&&sektionsLocalizedData.i18n&&i.previewer.trigger("sek-notify",{type:"error",duration:3e4,message:sektionsLocalizedData.i18n["Something went wrong, please refresh this page."]}))})}return n.promise()}})}(wp.customize,jQuery,_),function(p,h,m){p.CZR_Helpers=p.CZR_Helpers||{},p.CZR_Helpers=h.extend(p.CZR_Helpers,{register:function(e){if(m.has(e,"id")){var t,n={};switch(e.what){case"setting":if(p.has(e.id))break;t=h.extend(!0,{},p.Setting.prototype.defaults);var i=m.extend(t,{dirty:!m.isUndefined(e.dirty)&&e.dirty,value:m.isUndefined(e.value)?null:e.value,transport:e.transport||"refresh",type:e.type||"option"}),o=p.settingConstructor[i.type]||p.Setting;m.isObject(e.options)&&(i=m.extend(i,e.options));try{p.add(new o(e.id,i.value,i))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a setting to the api",e)}break;case"panel":if(!m.has(e,"id"))throw new Error("registerPanel => missing panel id ");if(p.panel.has(e.id))break;t=h.extend(!0,{},p.Panel.prototype.defaults);var r=m.extend(t,{id:e.id,title:e.title||e.id,priority:m.has(e,"priority")?e.priority:0}),s=m.isObject(e.constructWith)?e.constructWith:p.Panel;m.isObject(e.options)&&(r=m.extend(r,e.options)),r=m.extend({params:r},r);try{n=p.panel.add(new s(e.id,r))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a panel to the api",e)}break;case"section":if(!m.has(e,"id"))throw new Error("registerSection => missing section id ");if(p.section.has(e.id))break;t=h.extend(!0,{},p.Section.prototype.defaults);var a=m.extend(t,{content:"",id:e.id,title:e.title,panel:e.panel,priority:e.priority,description_hidden:!1,customizeAction:serverControlParams.i18n.Customizing}),l=p.Section;m.isUndefined(e.constructWith)?!m.isEmpty(e.type)&&p.sectionConstructor[e.type]&&(l=p.sectionConstructor[e.type]):l=e.constructWith,m.isObject(e.options)&&(a=m.extend(a,e.options)),a=m.extend({params:a},a);try{n=p.section.add(new l(e.id,a))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a section to the api",e)}break;case"control":if(p.control.has(e.id))break;t=h.extend(!0,{},p.Control.prototype.defaults);var d,c=m.extend(t,{content:"",label:e.label||e.id,priority:e.priority,section:e.section,settings:e.settings,type:e.type,module_type:e.module_type,input_attrs:e.input_attrs,sek_registration_params:e}),u=p.controlConstructor[c.type]||p.Control;m.isObject(e.options)&&(c=m.extend(c,e.options)),d=m.extend({params:c},c);try{n=p.control.add(new u(e.id,d))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a control to the api",e)}break;default:p.errorLog('invalid "what" when invoking the register() method')}return n=m.isEmpty(n)?{deferred:{embedded:h.Deferred(function(){this.resolve()})}}:n,!1!==e.track&&p.trigger("czr-new-registered",e),"setting"==e.what?e:n.deferred.embedded}p.errare("register => missing id ",e)}})}(wp.customize,jQuery,_),function(i,o,r){i.CZR_Helpers=i.CZR_Helpers||{},i.CZR_Helpers=o.extend(i.CZR_Helpers,{css_loader_html:'<div class="czr-css-loader czr-mr-loader" style="display:none"><div></div><div></div><div></div></div>',getControlSettingId:function(e,t){return t="default",i.control.has(e)?!r.has(i.control(e),"settings")||r.isEmpty(i.control(e).settings)?e:r.has(i.control(e).settings,t)?r.isUndefined(i.control(e).settings[t].id)?(i.consoleLog("getControlSettingId : The requested control_id has no setting id assigned : "+e),e):i.control(e).settings[t].id:(i.consoleLog("getControlSettingId : The requested control_id does not have the requested setting type : "+e+" , "+t),e):e},getDocSearchLink:function(e){var t=(e=r.isString(e)?e:"").replace(/ /g,"+");return['<a href="'+[serverControlParams.docURL,"search?query=",t].join("")+'" title="'+serverControlParams.i18n.readDocumentation+'" target="_blank">'," ",'<span class="far fa-question-circle-o"></span>'].join("")},build_setId:function(e){return r.isUndefined(window.themeServerControlParams)||!r.isArray(themeServerControlParams.wpBuiltinSettings)?e:r.contains(themeServerControlParams.wpBuiltinSettings,e)?e:r.contains(themeServerControlParams.themeSettingList,e)&&-1==e.indexOf(themeServerControlParams.themeOptions)?[themeServerControlParams.themeOptions+"[",e,"]"].join(""):e},getOptionName:function(e){if(r.isEmpty(window.themeServerControlParams)||r.isEmpty(themeServerControlParams.themeOptions))return e;return-1==e.indexOf(themeServerControlParams.themeOptions)?e:e.replace(/\[|\]/g,"").replace(themeServerControlParams.themeOptions,"")},hasPartRefresh:function(n){if(r.has(i,"czr_partials"))return r.contains(r.map(i.czr_partials(),function(e,t){return r.contains(e.settings,n)}),!0)},getSectionControlIds:function(e){return e=e||i.czr_activeSectionId(),i.section.has(e)?r.map(i.section(e).controls(),function(e){return e.id}):[]},getSectionSettingIds:function(e){if(e=e||i.czr_activeSectionId(),i.section.has(e)){var n=[],t=this.getSectionControlIds(e);return r.each(t,function(e){r.each(i.control(e).settings,function(e,t){n.push(e.id)})}),n}},capitalize:function(e){return r.isString(e)?e.charAt(0).toUpperCase()+e.slice(1):e},truncate:function(e,t,n){if(!r.isString(e))return"";t=t||20;var i=e.length>t,o=i?e.substr(0,t-1):e;return o=n&&i?o.substr(0,o.lastIndexOf(" ")):o,i?o+"...":o},isMultiItemModule:function(e,t){if(!r.isUndefined(e)||r.isObject(t)){if(r.isObject(t)&&r.has(t,"module_type"))e=t.module_type;else if(r.isUndefined(e)||r.isNull(e))return;if(r.has(i.czrModuleMap,e))return i.czrModuleMap[e].crud||i.czrModuleMap[e].multi_item||!1}},isCrudModule:function(e,t){if(!r.isUndefined(e)||r.isObject(t)){if(r.isObject(t)&&r.has(t,"module_type"))e=t.module_type;else if(r.isUndefined(e)||r.isNull(e))return;if(r.has(i.czrModuleMap,e))return i.czrModuleMap[e].crud||!1}},hasModuleModOpt:function(e,t){if(!r.isUndefined(e)||r.isObject(t)){if(r.isObject(t)&&r.has(t,"module_type"))e=t.module_type;else if(r.isUndefined(e)||r.isNull(e))return;if(r.has(i.czrModuleMap,e))return i.czrModuleMap[e].has_mod_opt||!1}},removeInputCollection:function(){var t=this;if(!r.isFunction(t))throw new Error("removeInputCollection : inputParentInst is not valid.");r.has(t,"czr_Input")&&(t.czr_Input.each(function(e){t.czr_Input.remove(e.id)}),t.inputCollection({}))},refreshModuleControl:function(e){var t=i.controlConstructor.czr_module,n=(i.control(e).params.type,i.settings.controls[e]);o.when(i.control(e).container.remove()).done(function(){i.control.remove(e),i.control.add(e,new t(e,{params:n,previewer:i.previewer}))})},isChecked:function(e){return r.isBoolean(e)?e:r.isNumber(e)?0<e:!!r.isString(e)&&("0"!==e&&""!==e&&"off"!==e)},hexToRgb:function(t){try{t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i})}catch(e){return i.errorLog("Error in Helpers::hexToRgb : "+e),t}var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgb("+(e=e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[]).join(",")+")"},rgbToHex:function(e,t,n){var i=function(e){var t=e.toString(16);return 1==t.length?"0"+t:t};return"#"+i(e)+i(t)+i(n)},parseTemplate:r.memoize(function(t){var n,i={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){return(n=n||r.template(t,i))(e)}})})}(wp.customize,jQuery,_),function(a,l,d){a.CZR_Helpers=a.CZR_Helpers||{},a.CZR_Helpers=l.extend(a.CZR_Helpers,{addActions:function(e,t,n){(n=n||this)[e]=n[e]||[],new_event_map=d.clone(n[e]),n[e]=d.union(new_event_map,d.isArray(t)?t:[t])},doActions:function(e,t,n){t.trigger(e,n)},setupDOMListeners:function(e,o,r){var s=this;r=r||s,d.isArray(e)?d.isObject(o)?(o=d.extend({model:{},dom_el:{}},o)).dom_el instanceof jQuery&&!(o.dom_el.length<1)?d.map(e,function(i){if(d.isString(i.selector)&&!d.isEmpty(i.selector))if(d.isString(i.selector)&&!d.isEmpty(i.selector)){var e=i.name&&!d.isEmpty(i.name)?i.name:[i.trigger,i.selector].join(""),t=o.dom_el.data("czr-listener-collection");if(t&&d.isArray(t)){if(t=d.isArray(t)?t:[],d.contains(t,e))return void a.errare("setupDOMListeners : aborting because listener already created for event : "+e);t.push(e)}else t=[e];o.dom_el.data("czr-listener-collection",t),o.dom_el.on(i.trigger,i.selector,function(e,t){if(e.stopPropagation(),!a.utils.isKeydownButNotEnterEvent(e)){e.preventDefault();var n=l.extend(!0,{},o);if(d.has(n,"model")&&d.has(n.model,"id")&&(d.has(r,"get")?n.model=r():n.model=r.getModel(n.model.id)),l.extend(n,{event:i,dom_event:e}),l.extend(n,t),d.has(n,"event")&&d.has(n.event,"actions"))if(serverControlParams.isDevMode)s.executeEventActionChain(n,r);else try{s.executeEventActionChain(n,r)}catch(e){a.errare("In setupDOMListeners : problem when trying to fire actions : "+n.event.actions,e)}else a.errare("executeEventActionChain : missing obj.event or obj.event.actions")}})}else a.errare("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","));else a.errare("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","))}):a.errare("setupDomListeners : dom element should be an existing dom element",o):a.errare("setupDomListeners : args should be an object",e):a.errare("setupDomListeners : event_map should be an array",o)},executeEventActionChain:function(i,o){var r=this;if("function"==typeof i.event.actions)return i.event.actions.call(o,i);d.isArray(i.event.actions)||(i.event.actions=[i.event.actions]);var s=!1;d.map(i.event.actions,function(e){if(!s){var t=function(){};if("function"==typeof e)t=e;else{if("function"!=typeof o[e])throw new Error("executeEventActionChain : the action : "+e+" has not been found when firing event : "+i.event.selector);t=o[e]}var n=d.has(i,"dom_el")&&-1!=i.dom_el.length?i.dom_el:r.container;"string"==typeof e&&n.trigger("before_"+e,d.omit(i,"event")),!1===t.call(o,i)&&(s=!0),"string"==typeof e&&n.trigger("after_"+e,d.omit(i,"event"))}})}})}(wp.customize,jQuery,_),function(i,e,o){i.czr_wpQueryDataReady=i.czr_wpQueryDataReady||e.Deferred(),i.czr_wpQueryInfos=i.czr_wpQueryInfos||new i.Value,i.bind("ready",function(){i.previewer.bind("czr-query-data-ready",function(e){i.czr_wpQueryInfos(e),"pending"==i.czr_wpQueryDataReady.state()&&i.czr_wpQueryDataReady.resolve(e)}),i.previewer.bind("czr-partial-refresh-data",function(e){i.czr_partials=i.czr_partials||new i.Value,i.czr_partials.set(e)}),i.previewer.bind("czr-partial-refresh-done",function(e){if(o.has(e,"set_id")){var t=i.CZR_Helpers.build_setId(e.set_id);if(i.has(t)){var n=i.CZR_Helpers.getControlSettingId(t);i.control.has(n)&&i.control(n).trigger("czr-partial-refresh-done")}}})})}(wp.customize,jQuery,_);var CZRInputMths=CZRInputMths||{};!function(o,r,a){r.extend(CZRInputMths,{initialize:function(e,t){if(a.isUndefined(t.input_parent)||a.isEmpty(t.input_parent))throw new Error("No input_parent assigned to input "+t.id+". Aborting");if(a.isUndefined(t.module))throw new Error("No module assigned to input "+t.id+". Aborting");o.Value.prototype.initialize.call(this,null,t);var n=this;r.extend(n,t||{}),n.constructorOptions=r.extend(!0,{},t),n.isReady=r.Deferred(),a.isUndefined(t.input_value)||n.set(t.input_value);if(n.input_event_map=[{trigger:r.trim(["change",{text:"keyup",textarea:"keyup",password:"keyup",color:"colorpickerchange",range:"input propertychange"}[n.type]||""].join(" ")),selector:"input[data-czrtype], select[data-czrtype], textarea[data-czrtype]",name:"set_input_value",actions:function(e){if(!a.has(n.input_parent,"syncElements")||!a.has(n.input_parent.syncElements,n.id))throw new Error("WARNING : THE INPUT "+n.id+" HAS NO SYNCED ELEMENT.")}}],o.czrInputMap&&a.has(o.czrInputMap,n.type)){var i=o.czrInputMap[n.type];if(a.isFunction(n[i]))try{n[i](t.input_options||null)}catch(e){o.errare("Error in input init => for input id :"+n.id+" in module type : "+n.module.module_type,e)}else if(a.isFunction(o.czrInputMap[n.type]))try{o.czrInputMap[n.type].apply(n,[t.input_options||null])}catch(e){o.errare("Error in input init => for input id :"+n.id+" in module type : "+n.module.module_type,e)}}else o.errare("Warning the input : "+n.id+" with type "+n.type+" has no corresponding method defined in api.czrInputMap.");n.visible=new o.Value(!0),n.isReady.done(function(){n.visible.bind(function(e){e?n.container.stop(!0,!0).slideDown(200):n.container.stop(!0,!0).slideUp(200)})}),n.enabled=new o.Value(!0),n.isReady.done(function(){n.enabled.bind(function(e){n.container.toggleClass("disabled",!e)})})},ready:function(){var e=this;e.setupDOMListeners(e.input_event_map,{dom_el:e.container},e),e.callbacks.add(function(){return e.inputReact.apply(e,arguments)}),r.when(e.setupSynchronizer()).done(function(){e.isReady.resolve(e)})},setupSynchronizer:function(){var e=this,t=e.input_parent,n=e.container.find("[data-czrtype]"),i=(e.container.find("[data-czrtype]").is("textarea"),new o.Element(n));t.syncElements=t.syncElements||{},(t.syncElements[e.id]=i).sync(e),i.set(e())},inputReact:function(e,t,n){var i=this,o=i.input_parent(),r=a.clone(o),s=i.is_preItemInput;i.enabled()&&((r=!a.isObject(r)||a.isEmpty(r)?{}:r)[i.id]=e,i.input_parent.set(r,{input_changed:i.id,input_value:i(),input_transport:i.transport,not_preview_sent:"postMessage"===i.transport,inputRegistrationParams:i.constructorOptions}),s||(i.input_parent.trigger(i.id+":changed",e),a.isEmpty(t)&&(a.isUndefined(t)||"postMessage"!==i.transport)||i.module.sendInputToPreview({input_id:i.id,input_parent_id:i.input_parent.id,to:e,from:t})))},setupColorPicker:function(){this.container.find("input").iris({palettes:!0,hide:!1,change:function(e,t){r(this).val(t.color.toString()).trigger("colorpickerchange").trigger("change")}})},setupColorPickerAlpha:function(){var n=this;n.container.find("input").wpColorPicker({palettes:!0,width:1440<=window.innerWidth?271:251,change:function(e,t){r(this).val(t.color.toString()).trigger("colorpickerchange").trigger("change")},clear:function(e,t){n("")}})},setupSelect:function(){r("select",this.container).not(".no-selecter-js").each(function(){r(this).selecter({})})},setupIcheck:function(e){r("input[type=checkbox]",this.container).each(function(e){0===r(this).closest('div[class^="icheckbox"]').length&&r(this).iCheck({checkboxClass:"icheckbox_flat-grey",checkedClass:"checked",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){r(this).val(!1===r(this).is(":checked")?0:1),r(e.currentTarget).trigger("change")})})},setupGutenCheck:function(e){var t=this.container.find("input[type=checkbox]"),n=r(".czr-toggle-check",this.container),i=function(){t.closest(".czr-toggle-check").toggleClass("is-checked",t.is(":checked")),n.find("svg").remove(),n.append(t.is(":checked")?'<svg class="czr-toggle-check__on" width="2" height="6" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 6"><path d="M0 0h2v6H0z"></path></svg>':'<svg class="czr-toggle-check__off" width="6" height="6" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 6"><path d="M3 1.5c.8 0 1.5.7 1.5 1.5S3.8 4.5 3 4.5 1.5 3.8 1.5 3 2.2 1.5 3 1.5M3 0C1.3 0 0 1.3 0 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z"></path></svg>')};t.on("change",i),i()},setupRadio:function(e){r("input[type=radio]",this.container).each(function(e){0===r(this).closest('div[class^="icheckbox"]').length&&r(this).iCheck({checkboxClass:"icheckbox_flat-grey",checkedClass:"checked",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){r(e.currentTarget).trigger("change")})})},setupStepper:function(e){r('input[type="number"]',this.container).each(function(e){r(this).stepper()})},setupSimpleRange:function(){},setupRangeSlider:function(e){var n,i=this,o=function(e,t){var n=i.container.find("input").data("unit");e.textContent=t+(a.isEmpty(i.container.find("input").data("unit"))?"":n)};r(i.container).find("input").rangeslider({polyfill:!1,rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",onInit:function(){n=r(".rangeslider__handle",this.$range),r(".rangeslider__handle",this.$range),o(n[0],this.value)},onSlide:function(e,t){o(n[0],t)}})},setupHAlignement:function(e){var t=this,n=r(".sek-h-align-wrapper",t.container);n.find('div[data-sek-align="'+t()+'"]').addClass("selected"),n.on("click","[data-sek-align]",function(e){e.preventDefault(),n.find(".selected").removeClass("selected"),r.when(r(this).addClass("selected")).done(function(){t(r(this).data("sek-align"))})})}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(o,i,r){i.extend(CZRInputMths,{setupImageUploaderSaveAsId:function(){this.setupImageUploader()},setupImageUploaderSaveAsUrl:function(){this.setupImageUploader({save_as_url:!0})},setupImageUploader:function(e){var t=this,n=t();if(e=r.extend({save_as_url:!1},e||{}),t.save_as_url=e.save_as_url,t.attachment={},!t.container)return this;t.tmplRendered=i.Deferred(),t.setupContentRendering(n,{}),t.tmplRendered.done(function(){t.czrImgUploaderBinding()}).fail(function(){o.errorLog("setupImageUploader => failed to fetch the template.")})},setupContentRendering:function(e,t){var n,i=this;i.attachment.id!=e&&t!==e?(r.isEmpty(e)?(i.attachment={},i.renderImageUploaderTemplate()):r.isNumber(e)||i.renderImageUploaderTemplate({fromUrl:!0,url:e}),n=wp.media.attachment(e),r.isObject(n)&&r.has(n,"attributes")&&r.has(n.attributes,"sizes")?(i.attachment=n.attributes,i.renderImageUploaderTemplate()):r.isNumber(e)&&wp.media.attachment(e).fetch().done(function(){i.attachment=this.attributes,i.renderImageUploaderTemplate()}).fail(function(){o.errorLog("renderImageUploaderTemplate => failed attempt to fetch an img with id : "+e)})):i.attachment.id&&i.attachment.id!==e||i.renderImageUploaderTemplate()},czrImgUploaderBinding:function(){var n=this;r.bindAll(n,"czrImgUploadRemoveFile","czrImgUploadOpenFrame","czrImgUploadSelect"),n.container.on("click keydown",".upload-button",n.czrImgUploadOpenFrame),n.container.on("click keydown",".thumbnail-image img",n.czrImgUploadOpenFrame),n.container.on("click keydown",".remove-button",n.czrImgUploadRemoveFile),n.bind(n.id+":changed",function(e,t){n.tmplRendered=i.Deferred(),n.setupContentRendering(e,t)})},czrImgUploadOpenFrame:function(e){o.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.frame||this.czrImgUploadInitFrame(),this.frame.open())},czrImgUploadInitFrame:function(){var e=this.getUploaderLabels();this.frame=wp.media({button:{text:e.frame_button},states:[new wp.media.controller.Library({title:e.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1})]}),this.frame.on("select",this.czrImgUploadSelect)},czrImgUploadRemoveFile:function(e){o.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.attachment={},this.set(""))},czrImgUploadSelect:function(){var e=this.frame.state().get("selection").first().toJSON();window._wpmejsSettings;this.attachment=e,this.set(this.save_as_url?e.url:e.id)},renderImageUploaderTemplate:function(e){var t=this;e=r.extend({fromUrl:!1,url:""},e||{});var n=t.container.find("."+t.module.control.css_attr.img_upload_container);if(n.length&&!(t.container.length<1)){var i={button_labels:t.getUploaderLabels(),settings:t.id,attachment:t.attachment,fromUrl:e.url,canUpload:!0};return o.CZR_Helpers.getModuleTmpl({tmpl:"img-uploader",module_type:"all_modules",module_id:t.module.id}).done(function(e){n.html(o.CZR_Helpers.parseTemplate(e)(i)),t.tmplRendered.resolve(),t.container.trigger(t.id+":content_rendered")}).fail(function(e){t.tmplRendered.reject("renderImageUploaderTemplate => Problem when fetching the tmpl from server for module : "+t.module.id)}),!0}},getUploaderLabels:function(){var e=serverControlParams.i18n,n=this,t={select:e.select_image,change:e.change_image,remove:e.remove_image,default:e.default_image,placeholder:e.placeholder_image,frame_title:e.frame_title_image,frame_button:e.frame_button_image},i={};return r.each(t,function(e,t){if(r.isEmpty(e))return o.errorLog("A translated string is missing ( "+t+" ) for the image uploader input in module : "+n.module.id),void(i[t]=t);i[t]=e}),i}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(s,a,l){a.extend(CZRInputMths,{setupContentPicker:function(e){var o=this;a.extend(l.isObject(e)?e:{},{post:"",taxonomy:""}),o.wpObjectTypes=e,o.container.find(".czr-input").append('<select data-select-type="content-picker-select" class="js-example-basic-simple"></select>'),o.input_event_map=[{trigger:"change",selector:"select[data-select-type]",name:"set_input_value",actions:function(e){var t=a(e.dom_event.currentTarget,e.dom_el),n=a(t,e.dom_el).select2("data"),i={};n=l.isArray(n)?n[0]:n,l.isObject(n)&&!l.isEmpty(n)?(l.each({id:"",type_label:"",title:"",object_type:"",url:""},function(e,t){"_custom_"===n.id||l.has(n,t)&&!l.isEmpty(n[t])?i[t]=n[t]:s.errare("content_picker : missing input param : "+t)}),o.set(i)):s.errare("Content Picker Input : the picked value should be an object not empty.")}}],o.isReady.done(function(){o.setupContentSelecter()})},setupContentSelecter:function(){var r=this;if(!l.isEmpty(r())){var e={value:r().id||"",title:r().title||"",selected:"selected"};r.container.find("select").append(a("<option>",e))}r.currentAjaxAction=r.currentAjaxAction||new s.Value,r.currentAjaxAction.bind(function(e){r.defaultValueHasBeenPushed=!1}),r.container.find("select").on("select2:select select2:unselect select2:close select2:open",function(e){r.defaultValueHasBeenPushed=!1}),r.container.find("select").select2({placeholder:{id:"-1",title:"Select"},data:r.setupSelectedContents(),ajax:{url:wp.ajax.settings.url,type:"POST",dataType:"json",delay:250,debug:!0,data:function(e){var t=e.page?e.page:0;return t=e.term?e.page:t,r.currentAjaxAction(e.term?"search-available-content-items-customizer":"load-available-content-items-customizer"),{action:r.currentAjaxAction(),search:e.term,wp_customize:"on",page:t,wp_object_types:JSON.stringify(r.wpObjectTypes),nonce:s.settings.nonce.save}},processResults:function(e,t){var n={defaultOption:{id:"",title:"",type_label:"",object_type:"",url:""}};if(r.input_parent&&r.input_parent.module?r.input_parent.module.trigger("set_default_content_picker_options",{defaultContentPickerOption:n}):s.infoLog(' content_picker input => ::processResults => event "set_default_content_picker_option" not triggered when in pre-item'),!e.success)return s.errare("request failure in setupContentPicker => processResults",e),{results:n.defaultOption};var i=e.data.items,o=[];return i=l.isArray(i)?i:[],r.defaultValueHasBeenPushed=r.defaultValueHasBeenPushed||!1,"load-available-content-items-customizer"!==r.currentAjaxAction()||l.isEmpty(n.defaultOption)||n.defaultOption.id&&!r.defaultValueHasBeenPushed&&(o.push(n.defaultOption),r.defaultValueHasBeenPushed=!0),l.each(i,function(e){o.push({id:e.id,title:e.title,type_label:e.type_label,object_type:e.object,url:e.url})}),{results:o,pagination:{more:1<=i.length}}}},templateSelection:r.czrFormatContentSelected,templateResult:r.czrFormatContentSelected,escapeMarkup:function(e){return e}})},czrFormatContentSelected:function(e){if(e.loading)return e.text;var t="<div class='content-picker-item clearfix'><div class='content-item-bar'><span class='czr-picker-item-title'>"+e.title+"</span>";return e.type_label&&(t+="<span class='czr-picker-item-type'>"+e.type_label+"</span>"),t+="</div></div>"},setupSelectedContents:function(){return this()}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(n,e,t){e.extend(CZRInputMths,{setupTinyMceEditor:function(){var t=this;if(!t.container)throw new Error("The input container is not set for WP text editor in module :"+t.module.id);t.input_parent.control.bind("tinyMceEditorUpdated",function(e){n.sekEditorSynchronizedInput().control_id==t.input_parent.control.id&&n.sekEditorSynchronizedInput().input_id==t.id&&(t(wp.editor.removep(e.html_content||n.sekTinyMceEditor.getContent())),e.modified_editor_element&&0<e.modified_editor_element.length?e.modified_editor_element.focus():n.sekTinyMceEditor.focus())})}})}(wp.customize,jQuery,_);var CZRItemMths=CZRItemMths||{};!function(o,r,s){r.extend(CZRItemMths,{initialize:function(e,t){if(s.isUndefined(t.module)||s.isEmpty(t.module))throw new Error("No module assigned to item "+e+". Aborting");var n=this;o.Value.prototype.initialize.call(n,null,t),n.isReady=r.Deferred(),n.embedded=r.Deferred(),n.container=null,n.contentContainer=null,n.czr_Input=new o.Values,n.inputCollection=new o.Value({}),n.viewState=new o.Value("closed"),n.removeDialogVisible=new o.Value(!1),r.extend(n,t||{}),n.defaultItemModel=s.clone(t.defaultItemModel)||{id:"",title:""};var i=r.extend(n.defaultItemModel,t.initial_item_model);i=n.validateItemModelOnInitialize(i),n.set(i),n.userEventMap=new o.Value([{trigger:"click keydown",selector:["."+n.module.control.css_attr.display_alert_btn,"."+n.module.control.css_attr.cancel_alert_btn].join(","),name:"toggle_remove_alert",actions:function(){var e=this.removeDialogVisible();this.module.closeRemoveDialogs(),this.removeDialogVisible(!e)}},{trigger:"click keydown",selector:"."+n.module.control.css_attr.remove_view_btn,name:"remove_item",actions:["removeItem"]},{trigger:"click keydown",selector:["."+n.module.control.css_attr.edit_view_btn,"."+n.module.control.css_attr.item_title].join(","),name:"edit_view",actions:["setViewVisibility"]},{trigger:"click keydown",selector:".tabs nav li",name:"tab_nav",actions:function(e){var t=r(e.dom_event.currentTarget,e.dom_el).data("tab-id");this.module.toggleTabVisibility.call(this,t),this.trigger("tab-switch",{id:t})}}]),n.isReady.done(function(){n.module.updateItemsCollection({item:n()}),n.callbacks.add(function(){return n.itemReact.apply(n,arguments)}),n.bind("contentRendered",function(){if(s.isEmpty(n.inputCollection()))if(serverControlParams.isDevMode)o.CZR_Helpers.setupInputCollectionFromDOM.call(n),n.module.setupTabNav.call(n);else try{o.CZR_Helpers.setupInputCollectionFromDOM.call(n),n.module.setupTabNav.call(n)}catch(e){o.errorLog("In item.isReady.done : "+e)}}),n.bind("contentRemoved",function(){s.has(n,"czr_Input")&&o.CZR_Helpers.removeInputCollection.call(n)}),n.canBeRendered()&&n.mayBeRenderItemWrapper(),n.embedded.done(function(){n.itemWrapperViewSetup(i)})})},ready:function(){this.isReady.resolve()},canBeRendered:function(){return!0},validateItemModelOnInitialize:function(e){return e},itemReact:function(e,t,n){var i=this,o=i.module;n=n||{},o.updateItemsCollection({item:e,params:n}).done(function(){i.writeItemViewTitle(e,n)})}})}(wp.customize,jQuery,_);CZRItemMths=CZRItemMths||{};!function(s,a,l){a.extend(CZRItemMths,{_sendItem:function(n,e){var t=this,i=t.module,o=[];l.each(e,function(e,t){e!=n[t]&&o.push(t)}),l.each(o,function(e){s.previewer.send("sub_setting",{set_id:i.control.id,id:n.id,changed_prop:e,value:n[e]}),i.trigger("item_sent",{item:n,dom_el:t.container,changed_prop:e})})},removeItem:function(e){var t=this,n=this.module,i=l.clone(n.itemCollection());n.trigger("pre_item_dom_remove",t()),t._destroyView(),i=l.without(i,l.findWhere(i,{id:t.id})),n.itemCollection.set(i),n.trigger("pre_item_api_remove",t());var o=a.extend(!0,{},t());if(n.czr_Item.remove(t.id),"postMessage"!=s(n.control.id).transport||!l.has(e,"dom_event")||l.has(e.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(n.control.id))n.trigger("item-removed",o),n.control.trigger("item-removed",o);else{var r=function(){s.previewer.unbind("ready",r),n.trigger("item-removed",o)};s.previewer.bind("ready",r),s.previewer.refresh()}},getModel:function(e){return this()}})}(wp.customize,jQuery,_);CZRItemMths=CZRItemMths||{};!function(d,c,u){c.extend(CZRItemMths,{mayBeRenderItemWrapper:function(){var t=this;"pending"==t.embedded.state()&&(!u.isEmpty(t.container)&&0<t.container.length||c.when(t.renderItemWrapper()).done(function(e){if(t.container=e,u.isUndefined(t.container)||!t.container.length)throw new Error("In mayBeRenderItemWrapper the Item view has not been rendered : "+t.id);t.embedded.resolve()}))},renderItemWrapper:function(e){var t,n,i=this,o=i.module,r=c.Deferred(),s=c.extend(!0,{},e||i()),a=function(e){o.isMultiItem()&&(u.isEmpty(e)&&r.reject("renderItemWrapper => Missing html template for module : "+o.id),t.append(e)),t.append(c("<div/>",{class:o.control.css_attr.item_content})),r.resolve(t)};if(i.trigger("item-model-before-item-wrapper-template-injection",s),t=c("<li>",{class:o.control.css_attr.single_item,"data-id":s.id,id:s.id}),o.itemsWrapper.append(t),o.isMultiItem())if(u.isEmpty(o.rudItemPart)){var l={tmpl:"rud-item-part",module_type:"all_modules",module_id:o.id,control_id:o.control.id};i.trigger("item-wrapper-tmpl-params-before-fetching",l),u.isEmpty(o[l.tmpl])?d.CZR_Helpers.getModuleTmpl(l).done(function(e){a(d.CZR_Helpers.parseTemplate(e)({is_sortable:o.sortable}))}).fail(function(e){r.reject("renderItemWrapper => Problem when fetching the rud-item-part tmpl from server for module : "+o.id)}):(n=o.getTemplateSelectorPart(l.tmpl,s),c("#tmpl-"+n).length<1&&r.reject("Missing template for item "+i.id+". The provided template script has no been found : #tmpl-"+n),a(wp.template(n)(s)))}else n=o.getTemplateSelectorPart("rudItemPart",s),c("#tmpl-"+n).length<1&&r.reject("Missing template for item "+i.id+". The provided template script has no been found : #tmpl-"+n),a(wp.template(n)(s));else a();return r.promise()},itemWrapperViewSetup:function(e){var o=this,i=this.module;item_model=o()||o.initial_item_model,o.writeItemViewTitle();var r=function(e,t,n){if(u.isUndefined(e)||!1===e.length)throw new Error("Module : "+o.module.id+", the item content has not been rendered for "+o.id);o.contentContainer=e,o.trigger("contentRendered",{item_content:e}),o.toggleItemExpansion(t,o.module.isMultiItem()?150:0),o.cleanLoader()};o.module.isMultiItem()?o.viewState.callbacks.add(function(t,e){var n=-1!==t.indexOf("expanded");i.hasModOpt()&&n&&d.czr_ModOptVisible(!1,{module:i,focus:!1}),n?u.isObject(o.contentContainer)&&!1!==o.contentContainer.length?o.toggleItemExpansion(t):(o.printLoader(),o.renderItemContent(o()||o.initial_item_model).done(function(e){r(e,t)}).fail(function(e){d.errorLog("multi-item module => failed item.renderItemContent for module : "+i.id,e)})):o.toggleItemExpansion(t).done(function(){u.isObject(o.contentContainer)&&!1!==o.contentContainer.length&&(o.trigger("beforeContenRemoved"),c("."+i.control.css_attr.item_content,o.container).children().each(function(){c(this).remove()}),c("."+i.control.css_attr.item_content,o.container).html(""),o.contentContainer=null,o.trigger("contentRemoved"))})}):(o.viewState.callbacks.add(function(e,t){o.toggleItemExpansion.apply(o,[e,0])}),o.printLoader(),o.renderItemContent(item_model).done(function(e){r(e,!0)}).fail(function(e){d.errare("mono-item module => failed item.renderItemContent for module : "+i.id,e)})),d.CZR_Helpers.setupDOMListeners(o.userEventMap(),{model:item_model,dom_el:o.container},o),o.removeDialogVisible.bind(function(e){var t=o.module,n=c("."+t.control.css_attr.remove_alert_wrapper,o.container).first();if(e&&t.closeAllItems(),e&&t.hasModOpt()&&d.czr_ModOptVisible(!1,{module:t,focus:!1}),e&&u.has(t,"preItem")&&t.preItemExpanded(!1),c("."+t.control.css_attr.remove_alert_wrapper,o.container).not(n).each(function(){c(this).hasClass("open")&&c(this).slideToggle({duration:200,done:function(){c(this).toggleClass("open",!1),c(this).siblings().find("."+t.control.css_attr.display_alert_btn).toggleClass("active",!1)}})}),e)if(u.isEmpty(t.alertPart))d.CZR_Helpers.getModuleTmpl({tmpl:"rud-item-alert-part",module_type:"all_modules",module_id:t.id,control_id:t.control.id}).done(function(e){n.html(d.CZR_Helpers.parseTemplate(e)({title:o().title||o.id})),o.trigger("remove-dialog-rendered")}).fail(function(e){d.errare("item.removeDialogVisible => Problem when fetching the tmpl from server for module : "+t.id,e)});else{if(c("#tmpl-"+t.alertPart).length<1||u.isEmpty(o.container))return void d.errare("No removal alert template available for items in module :"+t.id);n.html(wp.template(t.alertPart)({title:o().title||o.id})),o.trigger("remove-dialog-rendered")}var i=function(e){n.toggleClass("open",e),o.container.find("."+t.control.css_attr.display_alert_btn).toggleClass("active",e),e&&t._adjustScrollExpandedBlock(o.container)};e?n.stop(!0,!0).slideDown(200,function(){i(e)}):n.stop(!0,!0).slideUp(200,function(){i(e)})})},renderItemContent:function(e){var n=this,i=this.module,o=c.Deferred(),t=c.extend(!0,{},e||n());n.trigger("item-model-before-item-content-template-injection",t);var r=function(e){u.isEmpty(e)&&o.reject("renderItemContent => Missing html template for module : "+i.id);var t=c("."+i.control.css_attr.item_content,n.container);c(e).appendTo(t),o.resolve(t)};if(!u.isEmpty(i.itemInputList)||u.isFunction(i.itemInputList)){var s=i.getTemplateSelectorPart("itemInputList",t);c("#tmpl-"+s).length<1?o.reject("renderItemContent => No itemInputList content template defined for module "+i.id+". The template script id should be : #tmpl-"+s):r(wp.template(s)(t))}else{var a={tmpl:"item-inputs",module_type:i.module_type,module_id:i.id,control_id:i.control.id,item_model:t};i.trigger("filter-request-params-before-fetching-for-item-content-tmpl",a),d.CZR_Helpers.getModuleTmpl(a).done(function(e){r(d.CZR_Helpers.parseTemplate(e)(c.extend(t,{control_id:i.control.id})))}).fail(function(e){o.reject(e)})}return o.promise()},writeItemViewTitle:function(e){var t=this,n=t.module,i=e||t(),o=u.has(i,"title")&&!u.isEmpty(i.title)?d.CZR_Helpers.capitalize(i.title):i.id;o=d.CZR_Helpers.truncate(o,20),c("."+n.control.css_attr.item_title,t.container).text(o),d.CZR_Helpers.doActions("after_writeViewTitle",t.container,i,t)},setViewVisibility:function(e,t){var n=this.module;t?this.viewState.set("expanded_noscroll"):(n.closeAllItems(this.id),u.has(n,"preItem")&&n.preItemExpanded.set(!1),this.viewState.set("expanded"==this._getViewState()?"closed":"expanded"))},_getViewState:function(){return-1==this.viewState().indexOf("expanded")?"closed":"expanded"},toggleItemExpansion:function(n,e){var t="closed"!=n,i=this,o=this.module,r=c("."+o.control.css_attr.item_content,i.container).first(),s=c.Deferred(),a=function(e){i.container.toggleClass("open",e),e&&o.closeRemoveDialogs();var t=r.siblings().find("."+o.control.css_attr.edit_view_btn);t.toggleClass("active",e),e?t.removeClass("fa-pencil-alt").addClass("fa-minus-square").attr("title",serverControlParams.i18n.close):t.removeClass("fa-minus-square").addClass("fa-pencil-alt").attr("title",serverControlParams.i18n.edit),"expanded"==n&&o._adjustScrollExpandedBlock(i.container),s.resolve()};return e=u.isUndefined(e)?150:e,t?r.stop(!0,!0).slideDown(e,function(){a(t)}):r.stop(!0,!0).slideUp(0,function(){a(t)}),s.promise()},_destroyView:function(e){this.container.fadeOut({duration:e||400,done:function(){c(this).remove()}})},printLoader:function(){var e=this;e.container.css({position:"relative"}).append(d.CZR_Helpers.css_loader_html).find(".czr-css-loader").fadeIn("fast"),clearTimeout(c.data(this,"_czr_loader_active_timer_")),c.data(this,"_czr_loader_active_timer_",setTimeout(function(){e.cleanLoader()},5e3))},cleanLoader:function(){this.container.css({"min-height":""}).find(".czr-css-loader").remove()}})}(wp.customize,jQuery,_);var CZRModOptMths=CZRModOptMths||{};!function(o,r,s){r.extend(CZRModOptMths,{initialize:function(e){if(s.isUndefined(e.module)||s.isEmpty(e.module))throw new Error("No module assigned to modOpt.");var t=this;o.Value.prototype.initialize.call(t,null,e),t.isReady=r.Deferred(),t.container=null,t.inputCollection=new o.Value({}),r.extend(t,e||{}),t.defaultModOptModel=s.clone(e.defaultModOptModel)||{is_mod_opt:!0};var n=r.extend(t.defaultModOptModel,e.initial_modOpt_model),i=t.module.control;t.set(n),t.isReady.done(function(){r("."+i.css_attr.edit_modopt_icon,i.container).length||r.when(i.container.find(".customize-control-title").first().append(r("<span/>",{class:[i.css_attr.edit_modopt_icon,"fas fa-cog"].join(" "),title:serverControlParams.i18n.Settings}))).done(function(){r("."+i.css_attr.edit_modopt_icon,i.container).fadeIn(400)}),o.CZR_Helpers.setupDOMListeners([{trigger:"click keydown",selector:"."+i.css_attr.edit_modopt_icon,name:"toggle_mod_option",actions:function(){o.czr_ModOptVisible(!o.czr_ModOptVisible(),{module:t.module,focus:!1})}}],{dom_el:i.container},t)})},ready:function(){this.isReady.resolve()}})}(wp.customize,jQuery,_);CZRModOptMths=CZRModOptMths||{};!function(r,s,a){s.extend(CZRModOptMths,{modOptWrapperViewSetup:function(e){var n=this,i=this.module,o=s.Deferred();return e=n()||n.initial_modOpt_model,n.renderModOptContent(e).done(function(e){if(a.isEmpty(e)||!(0<e.length))throw new Error("Module : "+n.module.id+", the modOpt content has not been rendered");var t;t=e,r.CZR_Helpers.setupDOMListeners([{trigger:"click keydown",selector:"."+i.control.css_attr.close_modopt_icon,name:"close_mod_option",actions:function(){r.czr_ModOptVisible(!1,{module:i,focus:!1})}},{trigger:"click keydown",selector:".tabs nav li",name:"tab_nav",actions:function(e){var t=s(e.dom_event.currentTarget,e.dom_el).data("tab-id");this.module.toggleTabVisibility.call(this,t),this.trigger("tab-switch",{id:t})}}],{dom_el:t},n),o.resolve(e)}).fail(function(e){r.errorLog("failed modOpt.renderModOptContent for module : "+i.id,e)}).then(function(){n.module.setupTabNav.call(n)}),o.promise()},renderModOptContent:function(t){var n=this.module,i=s.Deferred();t=t||this();var o=function(e){a.isEmpty(e)&&i.reject("renderModOptContent => Missing html template for module : "+n.id);var t="";try{t=[serverControlParams.i18n["Options for"],n.control.params.label].join(" ")}catch(e){r.errorLog("renderItemContent => Problem with ctrl label => "+e),t=serverControlParams.i18n.Settings}s("#widgets-left").after(s("<div/>",{class:n.control.css_attr.mod_opt_wrapper,html:[['<h2 class="mod-opt-title">',t,"</h2>"].join(""),'<span class="fas fa-times '+n.control.css_attr.close_modopt_icon+'" title="close"></span>'].join("")})),s("."+n.control.css_attr.mod_opt_wrapper).append(e),i.resolve(s("."+n.control.css_attr.mod_opt_wrapper))};if(a.isEmpty(n.itemPreAddEl))r.CZR_Helpers.getModuleTmpl({tmpl:"mod-opt",module_type:n.module_type,module_id:n.id,control_id:n.control.id}).done(function(e){o(r.CZR_Helpers.parseTemplate(e)(t))}).fail(function(e){i.reject("renderPreItemView => Problem when fetching the mod-opt tmpl from server for module : "+n.id)});else{var e=n.getTemplateSelectorPart("modOptInputList",t);s("#tmpl-"+e).length<1&&i.reject("renderModOptContent => No modOpt content template defined for module "+n.id+". The template script id should be : #tmpl-"+e),o(wp.template(e)(t))}return i.promise()},toggleModPanelView:function(e){var t=this.module,n=(t.control,s.Deferred());return t.control.container.toggleClass("czr-modopt-visible",e),s("body").toggleClass("czr-editing-modopt",e),a.delay(function(){n.resolve()},200),n.promise()}})}(wp.customize,jQuery,_);var CZRModuleMths=CZRModuleMths||{};!function(r,s,a){s.extend(CZRModuleMths,{initialize:function(e,t){if(a.isUndefined(t.control)||a.isEmpty(t.control))throw new Error("No control assigned to module "+e);var n=this;r.Value.prototype.initialize.call(this,null,t),n.isReady=s.Deferred(),s.extend(n,t||{}),s.extend(n,{crudModulePart:"",rudItemPart:"",ruItemPart:"",alertPart:"",itemInputList:"",modOptInputList:""}),n.embedded=s.Deferred(),n.itemsWrapper="",n.container=s(n.control.selector),n.renderModuleParts().done(function(e){if(!1===e.length)throw new Error("The items wrapper has not been rendered for module : "+n.id);n.itemsWrapper=e,n.embedded.resolve()}).fail(function(e){throw new Error(["initialize module => failed module.renderModuleParts() for module : ",n.id,e].join(" "))}),n.defaultAPImodOptModel={initial_modOpt_model:{},defaultModOptModel:{},control:{},module:{}},n.defaultModOptModel={},n.modOptConstructor=n.modOptConstructor||r.CZRModOpt,n.itemCollection=new r.Value([]),n.defaultAPIitemModel={id:"",initial_item_model:{},defaultItemModel:{},control:{},module:{},is_added_by_user:!1},n.defaultItemModel=r.czrModuleMap[n.module_type].defaultItemModel||{id:"",title:""},n.itemConstructor=n.itemConstructor||r.CZRItem,n.czr_Item=new r.Values,n.inputConstructor=n.inputConstructor||r.CZRInput,n.hasModOpt()&&(n.inputModOptConstructor=n.inputModOptConstructor||r.CZRInput),n.inputOptions={},n.isReady.done(function(){n.isDirty=new r.Value(t.dirty||!1),n.initializeModuleModel(t).done(function(e){n.set(e)}).fail(function(e){r.errare("Module : "+n.id+" initialize module model failed : ",e)}).always(function(e){n.callbacks.add(function(){return n.moduleReact.apply(n,arguments)}),n.control.isModuleRegistered(n.id)||n.control.updateModulesCollection({module:t,is_registered:!1}),n.bind("items-collection-populated",function(e){n.itemCollection.callbacks.add(function(){return n.itemCollectionReact.apply(n,arguments)}),!1!==n.sortable&&n._makeItemsSortable()}),n.populateSavedItemCollection(),n.hasModOpt()&&n.instantiateModOpt()})}),!0===r.czrModuleMap[n.module_type].ready_on_section_expanded&&(a.has(r,"czr_activeSectionId")&&n.control.section()==r.czr_activeSectionId()&&"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()}),r.section(n.control.section(),function(e){e.expanded.bind(function(e){"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()})})})),this.maybeAwakeAndBindSharedModOpt()},ready:function(){this.isReady.resolve()},initializeModuleModel:function(e){var t=s.Deferred();if(!this.isMultiItem()&&!this.isCrud()&&a.isEmpty(e.items)){var n=a.clone(this.defaultItemModel);e.items=[s.extend(n,{id:this.id})]}return t.resolve(e).promise()},itemCollectionReact:function(e,t,n){var i=this(),o=s.extend(!0,{},i);o.items=e,this.isDirty.set(!0),this.set(o,n||{})},filterItemsBeforeCoreApiSettingValue:function(e){return e},moduleReact:function(e,t,n){var i=this.control;a.size(t.items)==a.size(e.items)&&a.isEmpty(a.difference(e.items,t.items)),e.column_id,t.column_id;i.updateModulesCollection({module:s.extend(!0,{},e),data:n})},getModuleSection:function(){return this.section},isMultiItem:function(){return r.CZR_Helpers.isMultiItemModule(null,this)},isCrud:function(){return r.CZR_Helpers.isCrudModule(null,this)},hasModOpt:function(){return r.CZR_Helpers.hasModuleModOpt(null,this)},instantiateModOpt:function(){var r=this,e=r.prepareModOptForAPI(r().modOpt||{});r.czr_ModOpt=new r.modOptConstructor(e),r.czr_ModOpt.ready(),r.czr_ModOpt.callbacks.add(function(e,t,n){var i=r(),o=s.extend(!0,{},i);o.modOpt=e,r.isDirty(!0),r(o,n)})},prepareModOptForAPI:function(n){var i=this,o={};return n=a.isObject(n)?n:{},a.each(i.defaultAPImodOptModel,function(e,t){n[t];switch(t){case"initial_modOpt_model":a.each(i.getDefaultModOptModel(),function(e,t){a.has(n,t)||(n[t]=e)}),o[t]=n;break;case"defaultModOptModel":o[t]=a.clone(i.defaultModOptModel);break;case"control":o[t]=i.control;break;case"module":o[t]=i}}),o},getDefaultModOptModel:function(e){return s.extend(a.clone(this.defaultModOptModel),{is_mod_opt:!0})},sendInputToPreview:function(e){var t=this;e=a.extend({input_id:"",input_parent_id:"",to:null,from:null},e),a.isEqual(e.to,e.from)||(r.previewer.send("czr_input",{set_id:r.CZR_Helpers.getControlSettingId(t.control.id),module_id:t.id,module:{items:s.extend(!0,{},t().items),modOpt:t.hasModOpt()?s.extend(!0,{},t().modOpt):{}},input_parent_id:e.input_parent_id,input_id:e.input_id,value:e.to,isPartialRefresh:e.isPartialRefresh}),t.trigger("input_sent",{input:e.to,dom_el:t.container}))},sendModuleInputsToPreview:function(i){var o=this,t=function(){var n=this,e=s.extend(!0,{},n());e=a.omit(e,"id"),a.each(e,function(e,t){o.sendInputToPreview({input_id:t,input_parent_id:n.id,to:e,from:null,isPartialRefresh:i.isPartialRefresh})})};o.czr_Item.each(function(e){t.call(e)}),o.hasModOpt()&&t.call(o.czr_ModOpt)},maybeAwakeAndBindSharedModOpt:function(){a.isUndefined(r.czr_ModOptVisible)&&(r.czr_ModOptVisible=new r.Value(!1),r.czr_ModOptVisible.bind(function(t,e,n){if(n=n||{},a.isFunction(n.module)&&a.isFunction(n.module.czr_ModOpt)){var i=n.module.czr_ModOpt,o=n.module;t?(o.closeRemoveDialogs().closeAllItems(),i.modOptWrapperViewSetup(i()).done(function(e){i.container=e;try{r.CZR_Helpers.setupInputCollectionFromDOM.call(i).toggleModPanelView(t)}catch(e){r.consoleLog(e)}o&&n.focus&&a.delay(function(){!a.isNull(i.container)&&i.container.find('[data-tab-id="'+n.focus+'"] a').length&&i.container.find('[data-tab-id="'+n.focus+'"] a').trigger("click")},200)})):i.toggleModPanelView(t).done(function(){i.container&&0<i.container.length?s.when(i.container.remove()).done(function(){r.CZR_Helpers.removeInputCollection.call(i)}):r.CZR_Helpers.removeInputCollection.call(i),i.container=null})}else r.errare("moduleCtor::maybeAwakeAndBindSharedModOpt => api.czr_ModOptVisible.bind() => incorrect arguments",n)}))}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(o,s,a){s.extend(CZRModuleMths,{populateSavedItemCollection:function(e){var t,i=this;a.isArray(e||i().items)?(t=s.extend(!0,[],e||i().items),a.each(t,function(e,t){if(a.has(e,"is_mod_opt"))throw new Error("populateSavedItemCollection => there should be no mod opt to instantiate here.")}),i.trigger("filterItemCandidatesBeforeInstantiation",t),a.each(t,function(t,e){var n=function(){var e=i.instantiateItem(t);a.isFunction(e)?e.ready():o.errare("populateSavedItemCollection => Could not instantiate item in module "+i.id,t)};if(serverControlParams.isDevMode)n();else try{n()}catch(e){o.errare("populateSavedItemCollection => "+e)}}),a.each(t,function(e){if(a.isObject(e)&&a.isUndefined(a.findWhere(i.itemCollection(),e.id)))throw new Error("populateSavedItemCollection => The saved items have not been properly populated in module : "+i.id)}),i.trigger("items-collection-populated")):o.errorLog("populateSavedItemCollection : The saved items collection must be an array in module :"+i.id)},instantiateItem:function(e,t){var n=this;if(e=a.isObject(e)?e:{},(e=n.validateItemBeforeAddition(e,t))&&!a.isNull(e))if(e=n.prepareItemForAPI(e),a.isObject(e)){if(e&&!a.isNull(e)){if(!a.has(e,"id"))throw new Error("CZRModule::instantiateItem() => an item has no id and could not be added in the collection of : "+this.id);if(n.czr_Item.has(e.id))throw new Error("CZRModule::instantiateItem() => the following item id "+e.id+" already exists in module.czr_Item() for module "+this.id);if(n.czr_Item.add(e.id,new n.itemConstructor(e.id,e)),!n.czr_Item.has(e.id))throw new Error("CZRModule::instantiateItem() => instantiation failed for item id "+e.id+" for module "+this.id);return n.czr_Item(e.id)}o.errare("CZRModule::instantiateItem() => item_candidate invalid in module "+n.id)}else o.errare("CZRModule::instantiateItem() => an item should be described by an object in module type : "+n.module_type,"module id : "+n.id);else o.errare("CZRModule::instantiateItem() => item_candidate did not pass validation in module "+n.id)},validateItemBeforeAddition:function(e,t){return e},prepareItemForAPI:function(i){var o=this,r={};return i=a.isObject(i)?i:{},a.each(o.defaultAPIitemModel,function(e,t){var n=i[t];switch(t){case"id":a.isEmpty(n)?r[t]=o.generateItemId(o.module_type):o.isItemRegistered(n)?o.generateItemId(n):r[t]=n;break;case"initial_item_model":a.each(o.getDefaultItemModel(),function(e,t){a.has(i,t)||(i[t]=e)}),r[t]=i;break;case"defaultItemModel":r[t]=a.clone(o.defaultItemModel);break;case"control":r[t]=o.control;break;case"module":r[t]=o;break;case"is_added_by_user":r[t]=!!a.isBoolean(n)&&n}}),a.has(r,"id")||(r.id=o.generateItemId(o.module_type)),r.initial_item_model.id=r.id,o.validateItemBeforeInstantiation(r)},validateItemBeforeInstantiation:function(e){return e},generateItemId:function(e,t,n){if(100<(n=n||1))throw new Error("Infinite loop when generating of a module id.");var i=this,o=e+"_"+(t=t||i._getNextItemKeyInCollection());if(!a.has(i,"itemCollection")||!a.isArray(i.itemCollection()))throw new Error("The item collection does not exist or is not properly set in module : "+i.id);return i.isItemRegistered(o)?(t++,n++,i.generateItemId(e,t,n)):o},_getNextItemKeyInCollection:function(){var e=this,t={},n=0;return a.isEmpty(e.itemCollection())||(t=a.isArray(e.itemCollection())&&1===a.size(e.itemCollection())?e.itemCollection()[0]:a.max(e.itemCollection(),function(e){return a.isNumber(e.id.replace(/[^\/\d]/g,""))?parseInt(e.id.replace(/[^\/\d]/g,""),10):0}),!a.isUndefined(t)&&a.isNumber(t.id.replace(/[^\/\d]/g,""))&&(n=parseInt(t.id.replace(/[^\/\d]/g,""),10)+1)),n},isItemRegistered:function(e){return!a.isUndefined(a.findWhere(this.itemCollection(),{id:e}))},updateItemsCollection:function(e){var t=this,n=t.itemCollection(),i=a.clone(n),o=s.Deferred();if(!a.has(e,"collection")){if(!a.has(e,"item"))throw new Error("updateItemsCollection, no item provided "+t.control.id+". Aborting");e=a.extend({params:{}},e);var r=a.clone(e.item);return a.each(t.defaultItemModel,function(e,t){if(!a.has(r,t))throw new Error('CZRModuleMths => updateItemsCollection : Missing property "'+t+'" for item candidate')}),a.findWhere(i,{id:r.id})?a.each(n,function(e,t){e.id==r.id&&(i[t]=r)}):i.push(r),t.itemCollection.set(i,e.params),o.resolve({collection:i,params:e.params}).promise()}t.itemCollection.set(e.collection)},_getSortedDOMItemCollection:function(){var n=a.clone(this.itemCollection()),i=[],e=s.Deferred();if(s("."+this.control.css_attr.single_item,this.container).each(function(e){var t=a.findWhere(n,{id:s(this).attr("data-id")});t&&(i[e]=t)}),n.length!=i.length)throw new Error("There was a problem when re-building the item collection from the DOM in module : "+this.id);return e.resolve(i).promise()},refreshItemCollection:function(){var t=this;t.czr_Item.each(function(e){t.czr_Item(e.id).container&&0<t.czr_Item(e.id).container.length&&s.when(t.czr_Item(e.id).container.remove()).done(function(){t.czr_Item.remove(e.id)})}),t.itemCollection=new o.Value([]),t.populateSavedItemCollection()}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(e,r,s){r.extend(CZRModuleMths,{getDefaultItemModel:function(e){return r.extend(s.clone(this.defaultItemModel),{id:e||""})},_initNewItem:function(e,t){var n,i=this,o={id:""};return t=void 0!==t?t:s.size(i.itemCollection()),s.isNumber(t)?n=i.module_type+"_"+t:(n=t,t=0),o=e&&!s.isEmpty(e)?r.extend(e,{id:n}):this.getDefaultItemModel(n),s.has(o,"id")&&i._isItemIdPossible(n)?(s.map(i.getDefaultItemModel(),function(e,t){s.has(o,t)||(o[t]=e)}),o):i._initNewItem(o,t+1)}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(r,s,a){s.extend(CZRModuleMths,{renderModuleParts:function(){var n=this,i=s(n.container),o=s.Deferred(),t=function(e){n.isCrud()&&(a.isEmpty(e)&&o.reject("renderModuleParts => Missing html template for module : "+n.id),i.append(e));var t=s("<ul/>",{class:[n.control.css_attr.items_wrapper,n.module_type,n.isMultiItem()?"multi-item-mod":"mono-item-mod",n.isCrud()?"crud-mod":"not-crud-mod"].join(" ")});i.append(t),o.resolve(s(t,i))};return n.isCrud()?a.isEmpty(n.crudModulePart)?r.CZR_Helpers.getModuleTmpl({tmpl:"crud-module-part",module_type:"all_modules",module_id:n.id,control_id:n.control.id}).done(function(e){t(r.CZR_Helpers.parseTemplate(e)({}))}).fail(function(e){r.errare("renderModuleParts => fail response =>",e),o.reject("renderModuleParts => Problem when fetching the crud-module-part tmpl from server for module : "+n.id)}):(s("#tmpl-"+n.crudModulePart).length<1&&o.reject("renderModuleParts => no crud Module Part template for module "+n.id+". The template script id should be : #tmpl-"+n.crudModulePart),t(wp.template(n.crudModulePart)({}))):t(),o.promise()},getTemplateSelectorPart:function(e,t){var n,i=this;switch(e){case"rudItemPart":n=i.rudItemPart;break;case"ruItemPart":n=i.ruItemPart;break;case"modOptInputList":n=i.modOptInputList;break;case"itemInputList":n=a.isFunction(i.itemInputList)?i.itemInputList(t):i.itemInputList}if(a.isEmpty(n))throw new Error("No valid template has been found in getTemplateSelectorPart() "+i.id+". Aborting");return n},getViewEl:function(e){return s('[data-id = "'+e+'"]',this.container)},closeAllItems:function(t){var n=this,e=a.clone(n.itemCollection()),i=a.filter(e,function(e){return e.id!=t});return a.each(i,function(e){n.czr_Item.has(e.id)&&"expanded"==n.czr_Item(e.id)._getViewState(e.id)&&n.czr_Item(e.id).viewState.set("closed")}),this},_adjustScrollExpandedBlock:function(e,t){if(e.length&&!a.isUndefined(this.getModuleSection())){var n,i=s(".accordion-section-content",this.section.container),o=i.scrollTop(),r=t||90;setTimeout(function(){e.offset().top+e.height()+r>s(window.top).height()&&0<(n=e.offset().top+e.height()+r-s(window.top).height())&&i.animate({scrollTop:o+n},500)},50)}},closeRemoveDialogs:function(){if(a.isArray(this.itemCollection()))return this.czr_Item.each(function(e){e.removeDialogVisible(!1)}),this},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&s.fn.sortable){var n=this;s("."+n.control.css_attr.items_wrapper,n.container).sortable({handle:"."+n.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){n._getSortedDOMItemCollection().done(function(e){n.itemCollection.set(e)}).then(function(){!function(){a.has(n,"preItem")&&n.preItemExpanded.set(!1),n.closeAllItems().closeRemoveDialogs();var e=function(){r.previewer.refresh()};"postMessage"!=r(n.control.id).transport||r.CZR_Helpers.hasPartRefresh(n.control.id)||(e=a.debounce(e,500))(),n.trigger("item-collection-sorted")}()})}})}},toggleTabVisibility:function(e){var t=this;s(t.container).find("li"),s(t.container).find("section");s(".tabs nav li",t.container).each(function(){s(this).removeClass("tab-current").addClass("tab-inactive")}),s(t.container).find('li[data-tab-id="'+e+'"]').addClass("tab-current").removeClass("tab-inactive"),s("section",t.container).each(function(){s(this).removeClass("content-current")}),s(t.container).find('section[id="'+e+'"]').addClass("content-current")},setupTabNav:function(){var i=this;setTimeout(function(){(function(){var e=s.Deferred(),t=s(".tabs nav li",i.container);t.each(function(){s(this).removeClass("tab-current").addClass("tab-inactive")}),t.first().addClass("tab-current").removeClass("tab-inactive"),s("section",i.container).first().addClass("content-current");var n=t.length;return t.each(function(){s(this).addClass(0<n?"cols-"+n:"")}),e.resolve().promise()})().done(function(){s(".tabs",i.container).show()})},20)}})}(wp.customize,jQuery,_);var CZRDynModuleMths=CZRDynModuleMths||{};!function(s,a,l){a.extend(CZRDynModuleMths,{initialize:function(e,t){var n=this;s.CZRModule.prototype.initialize.call(n,e,t),a.extend(n,{itemPreAddEl:""}),n.preItemsWrapper="",n.preItemExpanded=new s.Value(!1),n.itemAddedMessage=serverControlParams.i18n.successMessage;var i=function(e){n.addItem(e).done(function(e){n.czr_Item(e,function(e){e.embedded.then(function(){e.viewState("expanded")})})}).fail(function(e){s.errare("module.addItem failed on add_item",e)})};n.userEventMap=new s.Value([{trigger:"click keydown",selector:["."+n.control.css_attr.open_pre_add_btn,"."+n.control.css_attr.cancel_pre_add_btn].join(","),name:"pre_add_item",actions:["closeAllItems","closeRemoveDialogs",function(e){var t={addTheItem:!0};this.trigger("is-item-addition-possible",t),t.addTheItem&&this.hasPreItem?this.preItemExpanded.set(!this.preItemExpanded()):i(e)}]},{trigger:"click keydown",selector:"."+n.control.css_attr.add_new_btn,name:"add_item",actions:function(e){n.closeRemoveDialogs(e).closeAllItems(e),i(e)}}])},ready:function(){var t=this;t.setupDOMListeners(t.userEventMap(),{dom_el:t.container}),t.preItem=new s.Value(t.getDefaultItemModel()),t.preItemExpanded.callbacks.add(function(e){e?t.renderPreItemView().done(function(e){t.preItemsWrapper=e,t.preItem(t.getDefaultItemModel()),t.trigger("before-pre-item-input-collection-setup"),t.setupPreItemInputCollection()}).fail(function(e){s.errorLog("Pre-Item : "+e)}):a.when(t.preItemsWrapper.remove()).done(function(){t.preItem.czr_Input={},t.preItemsWrapper=null,t.trigger("pre-item-input-collection-destroyed")}),t._togglePreItemViewExpansion(e)}),s.CZRModule.prototype.ready.call(t)},setupPreItemInputCollection:function(){var n=this;n.preItem.czr_Input=new s.Values,a("."+n.control.css_attr.pre_add_wrapper,n.container).find("."+n.control.css_attr.sub_set_wrapper).each(function(e){var t=a(this).find("[data-czrtype]").attr("data-czrtype")||"sub_set_"+e;n.preItem.czr_Input.add(t,new n.inputConstructor(t,{id:t,type:a(this).attr("data-input-type"),container:a(this),input_parent:n.preItem,module:n,is_preItemInput:!0})),n.preItem.czr_Input(t).ready()}),n.trigger("pre-item-input-collection-ready")},itemCanBeInstantiated:function(){return!0},addItem:function(n){var t=a.Deferred();if(!this.itemCanBeInstantiated())return t.reject().promise();var i=this,o=i.preItem(),r=function(){i.preItemExpanded.set(!1)};if(l.isEmpty(o)||!l.isObject(o))return s.errorLog("addItem : an item_candidate should be an object and not empty. In : "+i.id+". Aborted."),t.reject().promise();r=l.debounce(r,200);var e=function(){var e=i.instantiateItem(o,!0);return l.isFunction(e)?e.ready():s.errare("populateSavedItemCollection => Could not instantiate item in module "+i.id,o),e};if(serverControlParams.isDevMode)e();else try{e()}catch(e){return s.errare("populateSavedItemCollection : "+e),t.reject().promise()}return i.czr_Item.has(o.id)?(a.Deferred(function(){var t=this;i.czr_Item(o.id).isReady.then(function(){r(),i.trigger("item-added",o);var e=function(){s.previewer.unbind("ready",e),t.resolve()};i.refresh_on_add_item?"postMessage"!=s(i.control.id).transport||!l.has(n,"dom_event")||l.has(n.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(i.control.id)?t.resolve():(s.previewer.bind("ready",e),s.previewer.refresh()):t.resolve()})}).always(function(){t.resolve(o.id)}),t.promise()):t.reject("populateSavedItemCollection : the item "+o.id+" has not been instantiated in module "+i.id).promise()}})}(wp.customize,jQuery,_);CZRDynModuleMths=CZRDynModuleMths||{};!function(o,r,s){r.extend(CZRDynModuleMths,{renderPreItemView:function(e){var n=this,i=r.Deferred();if(s.isObject(n.preItemsWrapper)&&0<n.preItemsWrapper.length)return i.resolve(n.preItemsWrapper).promise();var t=function(e){!s.isEmpty(e)&&n.container||i.reject("renderPreItemView => Missing html template for module : "+n.id);var t=r("."+n.control.css_attr.pre_add_item_content,n.container);t.prepend(r("<div>",{class:"pre-item-wrapper"})),t.find(".pre-item-wrapper").append(e),i.resolve(t.find(".pre-item-wrapper")).promise()};return s.isEmpty(n.itemPreAddEl)?o.CZR_Helpers.getModuleTmpl({tmpl:"pre-item",module_type:n.module_type,module_id:n.id,control_id:n.control.id}).done(function(e){t(o.CZR_Helpers.parseTemplate(e)())}).fail(function(e){i.reject(["renderPreItemView for module : ",n.id,e].join(" "))}):(r("#tmpl-"+n.itemPreAddEl).length<1&&i.reject("renderPreItemView => Missing itemPreAddEl or template in module "+n.id),t(wp.template(n.itemPreAddEl)())),i.promise()},_getPreItemView:function(){return r("."+this.control.css_attr.pre_add_item_content,this.container)},_togglePreItemViewExpansion:function(t){var n=this;r("."+n.control.css_attr.pre_add_item_content,n.container).slideToggle({duration:200,done:function(){var e=r("."+n.control.css_attr.open_pre_add_btn,n.container);r(this).toggleClass("open",t),t?e.find(".fas").removeClass("fa-plus-square").addClass("fa-minus-square"):e.find(".fas").removeClass("fa-minus-square").addClass("fa-plus-square"),e.toggleClass("active",t),r(n.container).toggleClass(n.control.css_attr.adding_new,t),n._adjustScrollExpandedBlock(r(this),120)}})},toggleSuccessMessage:function(e){var t=this,n=t.itemAddedMessage,i=r("."+t.control.css_attr.pre_add_wrapper,t.container);return $_success_wrapper=r("."+t.control.css_attr.pre_add_success,t.container),"on"==e?($_success_wrapper.find("p").text(n),$_success_wrapper.css("z-index",1000001).css("height",i.height()+"px").css("line-height",i.height()+"px")):$_success_wrapper.attr("style",""),t.container.toggleClass("czr-model-added","on"==e),this}})}(wp.customize,jQuery,_);var CZRBaseControlMths=CZRBaseControlMths||{};!function(i,e,o){e.extend(CZRBaseControlMths,{initialize:function(e,t){var n=this;n.css_attr=o.has(serverControlParams,"css_attr")?serverControlParams.css_attr:{},i.Control.prototype.initialize.call(n,e,t),n.bind("czr-partial-refresh-done",function(){o.has(n,"czr_moduleCollection")&&o.each(n.czr_moduleCollection(),function(e){n.czr_Module(e.id)&&n.czr_Module(e.id).sendModuleInputsToPreview({isPartialRefresh:!0})})})},refreshPreview:function(e){this.previewer.refresh()}})}(wp.customize,jQuery,_);var CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(l,d,c){d.extend(CZRBaseModuleControlMths,{initialize:function(e,t){var n=this;if(!l.has(e))throw new Error("Missing a registered setting for control : "+e);n.czr_Module=new l.Values,n.czr_moduleCollection=new l.Value,n.czr_moduleCollection.set([]),n.moduleCollectionReady=d.Deferred(),n.moduleCollectionReady.done(function(e){n.czr_moduleCollection.callbacks.add(function(){return n.moduleCollectionReact.apply(n,arguments)})}),l.CZRBaseControl.prototype.initialize.call(n,e,t),l.section(n.section(),function(e){e.expanded.bind(function(e){n.czr_Module.each(function(e){e.closeAllItems().closeRemoveDialogs(),c.has(e,"preItem")&&e.preItemExpanded(!1)})})})},ready:function(){var n=this,i={};try{n.getSavedModules()}catch(e){return l.errare("api.CZRBaseControl::ready() => error on control.getSavedModules()",e),void n.moduleCollectionReady.reject()}c.each(n.getSavedModules(),function(t,e){if(i=t,serverControlParams.isDevMode)n.instantiateModule(t,{});else try{n.instantiateModule(t,{})}catch(e){return void l.errare("api.CZRBaseControl::Failed to instantiate module "+t.id,e)}n.container.attr("data-module",t.id)}),n.moduleCollectionReady.resolve(i)},getDefaultModuleApiModel:function(){return{id:"",module_type:"",modOpt:{},items:[],crud:!1,hasPreItem:!0,refresh_on_add_item:!0,multi_item:!1,sortable:!1,control:{},section:""}},getSavedModules:function(){var n=this,e=[],i=n.params.module_type,o=[],r=[],s={};l.CZR_Helpers.isMultiItemModule(i)||c.isEmpty(l(n.id)())||c.isObject(l(n.id)())||l.errare("api.CZRBaseControl::getSavedModules => module Control Init for "+n.id+" : a mono item module control value should be an object if not empty.");var t=l.CZR_Helpers.getControlSettingId(n.id),a=l(t)();return o=c.isEmpty(a)?[]:c.isArray(a)?a:[a],c.each(o,function(e,t){c.isObject(e)?(c.isEmpty(e)||c.each(e,function(e,t){c.isString(t)||l.errare("api.CZRBaseControl::::getSavedModules => item not well formed in control : "+n.id+" => module type => "+n.params.module_type,o)}),l.CZR_Helpers.hasModuleModOpt(i)&&0===t&&(c.has(e,"id")?l.errare("api.CZRBaseControl::getSavedModules : the module "+i+" in control "+n.id+" has no mod_opt defined while it should."):s=e),c.has(e,"is_mod_opt")||r.push(e)):l.errare("api.CZRBaseControl::::getSavedModules => an item must be an object in control "+n.id+" => module type => "+n.params.module_type,o)}),e.push({id:l.CZR_Helpers.getOptionName(n.id)+"_"+n.params.type,module_type:n.params.module_type,section:n.section(),modOpt:d.extend(!0,{},s),items:d.extend(!0,[],r)}),e},isModuleRegistered:function(e){return!c.isUndefined(c.findWhere(this.czr_moduleCollection(),{id:e}))}})}(wp.customize,jQuery,_);CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(s,e,a){e.extend(CZRBaseModuleControlMths,{instantiateModule:function(e,t){if(!a.has(e,"id"))throw new Error("CZRModule::instantiateModule() : a module has no id and could not be added in the collection of : "+this.id+". Aborted.");var n=this;if((a.isUndefined(t)||a.isEmpty(t))&&(t=n.getModuleConstructor(e)),!a.isEmpty(e.id)&&n.czr_Module.has(e.id))throw new Error("The module id already exists in the collection in control : "+n.id);var i=n.prepareModuleForAPI(e);if(n.czr_Module.add(i.id,new t(i.id,i)),!n.czr_Module.has(i.id))throw new Error("instantiateModule() : instantiation failed for module id "+i.id+" in control "+n.id);return n.czr_Module(i.id)},getModuleConstructor:function(e){var t;if(!a.has(e,"module_type"))throw new Error("CZRModule::getModuleConstructor : no module type found for module "+e.id);if(!a.has(s.czrModuleMap,e.module_type))throw new Error("Module type "+e.module_type+" is not listed in the module map api.czrModuleMap.");var n=s.czrModuleMap[e.module_type].mthds;if(t=(s.czrModuleMap[e.module_type].crud?s.CZRDynModule:s.CZRModule).extend(n),a.isUndefined(t)||a.isEmpty(t)||!t)throw new Error("CZRModule::getModuleConstructor : no constructor found for module type : "+e.module_type+".");return t},prepareModuleForAPI:function(i){if(!a.isObject(i))throw new Error("prepareModuleForAPI : a module must be an object to be instantiated.");var o=this,r={};return a.each(o.getDefaultModuleApiModel(),function(e,t){var n=i[t];switch(t){case"id":a.isEmpty(n)?r[t]=o.generateModuleId(i.module_type):r[t]=n;break;case"module_type":if(!a.isString(n)||a.isEmpty(n))throw new Error("prepareModuleForAPI : a module type must a string not empty");r[t]=n;break;case"items":if(!a.isArray(n))throw new Error("prepareModuleForAPI : a module item list must be an array");r[t]=n;break;case"modOpt":if(!a.isObject(n))throw new Error("prepareModuleForAPI : a module modOpt property must be an object");r[t]=n;break;case"crud":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].crud,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "crud" must be a boolean');r[t]=n||!1;break;case"hasPreItem":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].hasPreItem,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "hasPreItem" must be a boolean');r[t]=n||!1;break;case"refresh_on_add_item":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].refresh_on_add_item,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "refresh_on_add_item" must be a boolean');r[t]=n||!1;break;case"multi_item":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].multi_item,a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].crud);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "multi_item" must be a boolean');r[t]=n||!1;break;case"sortable":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].sortable,a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].crud),a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].multi_item);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "sortable" must be a boolean');r[t]=n||!1;break;case"control":r[t]=o;break;case"section":if(!a.isString(n)||a.isEmpty(n))throw new Error("prepareModuleForAPI : a module section must be a string not empty");r[t]=n;break;case"dirty":r[t]=n||!1}}),r},generateModuleId:function(e,t,n){if(100<(n=n||1))throw new Error("Infinite loop when generating of a module id.");var i=this,o=e+"_"+(t=t||i._getNextModuleKeyInCollection());if(!a.has(i,"czr_moduleCollection")||!a.isArray(i.czr_moduleCollection()))throw new Error("The module collection does not exist or is not properly set in control : "+i.id);return i.isModuleRegistered(o)?(t++,n++,i.generateModuleId(e,t,n)):o},_getNextModuleKeyInCollection:function(){var e={},t=0;return a.isEmpty(this.czr_moduleCollection())||(e=a.max(this.czr_moduleCollection(),function(e){return parseInt(e.id.replace(/[^\/\d]/g,""),10)}),t=parseInt(e.id.replace(/[^\/\d]/g,""),10)+1),t}})}(wp.customize,jQuery,_);CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(s,a,l){a.extend(CZRBaseModuleControlMths,{updateModulesCollection:function(e){var t=this,n=t.czr_moduleCollection(),i=a.extend(!0,[],n);if(l.has(e,"collection"))t.czr_moduleCollection.set(e.collection,e.data||{});else{if(!l.has(e,"module"))throw new Error("updateModulesCollection, no module provided "+t.id+". Aborting");var o=t.prepareModuleForAPI(l.clone(e.module));l.findWhere(i,{id:o.id})?l.each(n,function(e,t){e.id==o.id&&(i[t]=o)}):i.push(o);var r={};l.has(e,"data")&&(r=a.extend(!0,{},e.data),a.extend(r,{module:o})),t.czr_moduleCollection.set(i,r)}},moduleCollectionReact:function(t,e,n){var i=l.size(t)>l.size(e),o=l.size(e)>l.size(t);l.size(e),l.size(t);if(is_collection_sorted=!1,o){var r=l.filter(e,function(e){return l.isUndefined(l.findWhere(t,{id:e.id}))});r=r[0],this.czr_Module.remove(r.id)}if(l.isObject(n)&&l.has(n,"module")&&(n.module_id=n.module.id,n.moduleRegistrationParams=n.module,n.module=this.prepareModuleForDB(a.extend(!0,{},n.module))),!i)if(serverControlParams.isDevMode)s(this.id).set(this.filterModuleCollectionBeforeAjax(t),n);else try{s(this.id).set(this.filterModuleCollectionBeforeAjax(t),n)}catch(e){s.errare("api.CZRBaseControl::moduleCollectionReact => error when firing control.filterModuleCollectionBeforeAjax( to )",e)}},filterModuleCollectionBeforeAjax:function(e){var t,i=this,n=a.extend(!0,[],e),o=[];if(l.each(n,function(e,t){var n=a.extend(!0,{},e);o[t]=i.prepareModuleForDB(n)}),1<l.size(n))throw new Error("There should not be several modules in the collection of control : "+i.id);if(!l.isArray(n)||l.isEmpty(n)||!l.has(n[0],"items"))throw new Error("The setting value could not be populated in control : "+i.id);var r=n[0].id;if(!i.czr_Module.has(r))throw new Error("The single module control ("+i.id+") has no module registered with the id "+r);var s=i.czr_Module(r);if(!l.isArray(s().items))throw new Error("The module "+r+" should be an array in control : "+i.id);return t=s.isMultiItem()?s().items:s().items[0]||[],t=s.filterItemsBeforeCoreApiSettingValue(t),s.hasModOpt()?l.union([s().modOpt],t):t},prepareModuleForDB:function(e){if(!l.isObject(e))throw new Error("::prepareModuleForDB : a module must be an object.");var t={};if(!l.isArray(e.items))throw new Error("::prepareModuleForDB : a module item list must be an array");return l.each(e.items,function(e){if(!l.isObject(e))throw new Error("::prepareModuleForDB : a module item must be an object")}),t.items=e.items,t}})}(wp.customize,jQuery,_),function(e,t,n){t.extend(CZRBaseControlMths,e.Events),t.extend(e.Control.prototype,e.Events),t.extend(CZRModuleMths,e.Events),t.extend(CZRItemMths,e.Events),t.extend(CZRModOptMths,e.Events),t.extend(CZRBaseControlMths,e.CZR_Helpers),t.extend(CZRInputMths,e.CZR_Helpers),t.extend(CZRModuleMths,e.CZR_Helpers),e.CZRInput=e.Value.extend(CZRInputMths),e.czrInputMap=e.czrInputMap||{},t.extend(e.czrInputMap,{text:"",textarea:"",check:"setupIcheck",checkbox:"setupIcheck",gutencheck:"setupGutenCheck",select:"setupSelect",radio:"setupRadio",number:"setupStepper",upload:"setupImageUploaderSaveAsId",upload_url:"setupImageUploaderSaveAsUrl",color:"setupColorPicker",wp_color_alpha:"setupColorPickerAlpha",wp_color:"setupWPColorPicker",content_picker:"setupContentPicker",tiny_mce_editor:"setupTinyMceEditor",password:"",range:"setupSimpleRange",range_slider:"setupRangeSlider",hidden:"",h_alignment:"setupHAlignement",h_text_alignment:"setupHAlignement"}),e.CZRItem=e.Value.extend(CZRItemMths),e.CZRModOpt=e.Value.extend(CZRModOptMths),e.CZRModule=e.Value.extend(CZRModuleMths),e.CZRDynModule=e.CZRModule.extend(CZRDynModuleMths),e.CZRBaseControl=e.Control.extend(CZRBaseControlMths),e.CZRBaseModuleControl=e.CZRBaseControl.extend(CZRBaseModuleControlMths),t.extend(e.controlConstructor,{czr_module:e.CZRBaseModuleControl})}(wp.customize,jQuery,_),function(t,e){jQuery(function(n){var i,e=t.customize||e;i=n("<span/>",{class:"customize-controls-home-or-add fas fa-home",html:'<span class="screen-reader-text">Home</span>'}),n.when(n("#customize-header-actions").append(i)).done(function(){i.keydown(function(e){9!==e.which&&(13===e.which&&this.click(),e.preventDefault())}).on("click.customize-controls-home-or-add",function(){e.section.has(e.czr_activeSectionId())?e.section(e.czr_activeSectionId()).expanded(!1):e.section.each(function(e){e.expanded(!1)}),e.panel.each(function(e){e.expanded(!1)})}),_.delay(function(){if(!i.hasClass("button-see-me")){var e=0,t=function(){n.Deferred(function(){var e=this;i.addClass("button-see-me"),_.delay(function(){i.removeClass("button-see-me"),e.resolve()},800)}).done(function(){0<=--e&&_.delay(function(){t()},50)})};t()}},2e3)})})}(wp);
1
+ "function"!=typeof jQuery.fn.iCheck&&function(v){function _(e,t,n){var i=e[0],r=/er/.test(n)?$:/bl/.test(n)?x:I,o=n==E?{checked:i[I],disabled:i[x],indeterminate:"true"==e.attr($)||"false"==e.attr(S)}:i[r];if(/^(ch|di|in)/.test(n)&&!o)y(e,r);else if(/^(un|en|de)/.test(n)&&o)C(e,r);else if(n==E)for(r in o)o[r]?y(e,r,!0):C(e,r,!0);else t&&"toggle"!=n||(t||e[P]("ifClicked"),o?i[R]!==z&&C(e,r):y(e,r))}function y(e,t,n){var i=e[0],r=e.parent(),o=t==I,s=t==$,a=t==x,l=s?S:o?g:"enabled",c=h(e,l+m(i[R])),d=h(e,t+m(i[R]));if(!0!==i[t]){if(!n&&t==I&&i[R]==z&&i.name){var u=e.closest("form"),p='input[name="'+i.name+'"]';(p=u.length?u.find(p):v(p)).each(function(){this!==i&&v(this).data(w)&&C(v(this),t)})}s?(i[t]=!0,i[I]&&C(e,I,"force")):(n||(i[t]=!0),o&&i[$]&&C(e,$,!1)),f(e,o,t,n)}i[x]&&h(e,D,!0)&&r.find("."+M).css(D,"default"),r[O](d||h(e,t)||""),a?r.attr("aria-disabled","true"):r.attr("aria-checked",s?"mixed":"true"),r[A](c||h(e,l)||"")}function C(e,t,n){var i=e[0],r=e.parent(),o=t==I,s=t==$,a=t==x,l=s?S:o?g:"enabled",c=h(e,l+m(i[R])),d=h(e,t+m(i[R]));!1!==i[t]&&((s||!n||"force"==n)&&(i[t]=!1),f(e,o,l,n)),!i[x]&&h(e,D,!0)&&r.find("."+M).css(D,"pointer"),r[A](d||h(e,t)||""),a?r.attr("aria-disabled","false"):r.attr("aria-checked","false"),r[O](c||h(e,l)||"")}function b(e,t){e.data(w)&&(e.parent().html(e.attr("style",e.data(w).s||"")),t&&e[P](t),e.off(".i").unwrap(),v(k+'[for="'+e[0].id+'"]').add(e.closest(k)).off(".i"))}function h(e,t,n){return e.data(w)?e.data(w).o[t+(n?"":"Class")]:void 0}function m(e){return e.charAt(0).toUpperCase()+e.slice(1)}function f(e,t,n,i){i||(t&&e[P]("ifToggled"),e[P]("ifChanged")[P]("if"+m(n)))}var w="iCheck",M=w+"-helper",z="radio",I="checked",g="un"+I,x="disabled",S="determinate",$="in"+S,E="update",R="type",O="addClass",A="removeClass",P="trigger",k="label",D="cursor",j=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);v.fn[w]=function(t,n){var i='input[type="checkbox"], input[type="'+z+'"]',r=v(),e=function(e){e.each(function(){var e=v(this);r=e.is(i)?r.add(e):r.add(e.find(i))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(t))return t=t.toLowerCase(),e(this),r.each(function(){var e=v(this);"destroy"==t?b(e,"ifDestroyed"):_(e,!0,t),v.isFunction(n)&&n()});if("object"!=typeof t&&t)return this;var d=v.extend({checkedClass:I,disabledClass:x,indeterminateClass:$,labelHover:!0,aria:!1},t),o=d.handle,u=d.hoverClass||"hover",p=d.focusClass||"focus",h=d.activeClass||"active",m=!!d.labelHover,f=d.labelHoverClass||"hover",g=0|(""+d.increaseArea).replace("%","");return("checkbox"==o||o==z)&&(i='input[type="'+o+'"]'),g<-50&&(g=-50),e(this),r.each(function(){var i=v(this);b(i);var r=this,e=r.id,t={position:"absolute",top:n=-g+"%",left:n,display:"block",width:t=100+2*g+"%",height:t,margin:0,padding:0,background:"#fff",border:0,opacity:0},n=j?{position:"absolute",visibility:"hidden"}:g?t:{position:"absolute",opacity:0},o="checkbox"==r[R]?d.checkboxClass||"icheckbox":d.radioClass||"i"+z,s=v(k+'[for="'+e+'"]').add(i.closest(k)),a=!!d.aria,l=w+"-"+Math.random().toString(36).substr(2,6),c='<div class="'+o+'" '+(a?'role="'+r[R]+'" ':"");a&&s.each(function(){c+='aria-labelledby="',this.id?c+=this.id:(this.id=l,c+=l),c+='"'}),c=i.wrap(c+"/>")[P]("ifCreated").parent().append(d.insert),t=v('<ins class="'+M+'"/>').css(t).appendTo(c),i.data(w,{o:d,s:i.attr("style")}).css(n),d.inheritClass&&c[O](r.className||""),d.inheritID&&e&&c.attr("id",w+"-"+e),"static"==c.css("position")&&c.css("position","relative"),_(i,!0,E),s.length&&s.on("click.i mouseover.i mouseout.i touchbegin.i touchend.i",function(e){var t=e[R],n=v(this);if(!r[x]){if("click"==t){if(v(e.target).is("a"))return;_(i,!1,!0)}else m&&(/ut|nd/.test(t)?(c[A](u),n[A](f)):(c[O](u),n[O](f)));if(!j)return!1;e.stopPropagation()}}),i.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[R];return e=e.keyCode,"click"!=t&&("keydown"==t&&32==e?(r[R]==z&&r[I]||(r[I]?C(i,I):y(i,I)),!1):void("keyup"==t&&r[R]==z?!r[I]&&y(i,I):/us|ur/.test(t)&&c["blur"==t?A:O](p)))}),t.on("click mousedown mouseup mouseover mouseout touchbegin.i touchend.i",function(e){var t=e[R],n=/wn|up/.test(t)?h:u;if(!r[x]){if("click"==t?_(i,!1,!0):(/wn|er|in/.test(t)?c[O](n):c[A](n+" "+h),s.length&&m&&n==u&&s[/ut|nd/.test(t)?A:O](f)),!j)return!1;e.stopPropagation()}})})}}(window.jQuery||window.Zepto),"function"!=typeof jQuery.fn.selecter&&function(d,r){"use strict";function o(e,t){if(!e.hasClass("selecter-element")){(t=d.extend({},t,e.data("selecter-options"))).external&&(t.links=!0);var n=e.find("option, optgroup"),i=n.filter("option"),r=i.filter(":selected"),o=""!==t.label?-1:i.index(r),s=t.links?"nav":"div";t.tabIndex=e[0].tabIndex,e[0].tabIndex=-1,t.multiple=e.prop("multiple"),t.disabled=e.is(":disabled");var a="<"+s+' class="selecter '+t.customClass;b?a+=" mobile":t.cover&&(a+=" cover"),a+=t.multiple?" multiple":" closed",t.disabled&&(a+=" disabled"),a+='" tabindex="'+t.tabIndex+'">',t.multiple||(a+='<span class="selecter-selected'+(""!==t.label?" placeholder":"")+'">',a+=d("<span></span").text(y(""!==t.label?t.label:r.text(),t.trim)).html(),a+="</span>"),a+='<div class="selecter-options">',a+="</div>",a+="</"+s+">",e.addClass("selecter-element").after(a);var l=e.next(".selecter"),c=d.extend({$select:e,$allOptions:n,$options:i,$selecter:l,$selected:l.find(".selecter-selected"),$itemsWrapper:l.find(".selecter-options"),index:-1,guid:C++},t);u(c),_(o,c),void 0!==d.fn.scroller&&c.$itemsWrapper.scroller(),c.$selecter.on("touchstart.selecter click.selecter",".selecter-selected",c,p).on("click.selecter",".selecter-item",c,m).on("close.selecter",c,h).data("selecter",c),c.$select.on("change.selecter",c,f),b||(c.$selecter.on("focus.selecter",c,g).on("blur.selecter",c,v),c.$select.on("focus.selecter",c,function(e){e.data.$selecter.trigger("focus")}))}}function u(e){for(var t="",n=e.links?"a":"span",i=0,r=e.$allOptions.length;i<r;i++){var o=e.$allOptions.eq(i);if("OPTGROUP"===o[0].tagName)t+='<span class="selecter-group',o.is(":disabled")&&(t+=" disabled"),t+='">'+o.attr("label")+"</span>";else{var s=o.val();o.attr("value")||o.attr("value",s),t+="<"+n+' class="selecter-item',o.is(":selected")&&""===e.label&&(t+=" selected"),o.is(":disabled")&&(t+=" disabled"),t+='" ',t+=e.links?'href="'+s+'"':'data-value="'+s+'"',t+=">"+d("<span></span>").text(y(o.text(),e.trim)).html()+"</"+n+">",0}}e.$itemsWrapper.html(t),e.$items=e.$selecter.find(".selecter-item")}function p(e){e.preventDefault(),e.stopPropagation();var t=e.data;if(!t.$select.is(":disabled"))if(d(".selecter").not(t.$selecter).trigger("close.selecter",[t]),b){var n=t.$select[0];if(r.document.createEvent){var i=r.document.createEvent("MouseEvents");i.initMouseEvent("mousedown",!1,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i)}else n.fireEvent&&n.fireEvent("onmousedown")}else t.$selecter.hasClass("closed")?function(e){e.preventDefault(),e.stopPropagation();var t=e.data;if(!t.$selecter.hasClass("open")){var n=t.$selecter.offset(),i=c.outerHeight(),r=t.$itemsWrapper.outerHeight(!0),o=0<=t.index?t.$items.eq(t.index).position():{left:0,top:0};n.top+r>i&&t.$selecter.addClass("bottom"),t.$itemsWrapper.show(),t.$selecter.removeClass("closed").addClass("open"),c.on("click.selecter-"+t.guid,":not(.selecter-options)",t,s),void 0!==d.fn.scroller?t.$itemsWrapper.scroller("scroll",t.$itemsWrapper.find(".scroller-content").scrollTop()+o.top,0).scroller("reset"):t.$itemsWrapper.scrollTop(t.$itemsWrapper.scrollTop()+o.top)}}(e):t.$selecter.hasClass("open")&&h(e)}function s(e){e.preventDefault(),e.stopPropagation(),0===d(e.currentTarget).parents(".selecter").length&&h(e)}function h(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$selecter.hasClass("open")&&(t.$itemsWrapper.hide(),t.$selecter.removeClass("open bottom").addClass("closed"),c.off(".selecter-"+t.guid))}function m(e){e.preventDefault(),e.stopPropagation();var t=d(this),n=e.data;if(!n.$select.is(":disabled")){if(n.$itemsWrapper.is(":visible"))_(n.$items.index(t),n),a(n);n.multiple||h(e)}}function f(e,t){var n=d(this),i=e.data;t||i.multiple||(_(i.$options.index(i.$options.filter("[value='"+n.val().replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1")+"']")),i),a(i))}function g(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$select.is(":disabled")||t.multiple||(t.$selecter.addClass("focus").on("keydown.selecter"+t.guid,t,n),d(".selecter").not(t.$selecter).trigger("close.selecter",[t]))}function v(e){e.preventDefault(),e.stopPropagation();var t=e.data;t.$selecter.removeClass("focus").off("keydown.selecter"+t.guid+" keyup.selecter"+t.guid),d(".selecter").not(t.$selecter).trigger("close.selecter",[t])}function n(e){var t=e.data;if(13===e.keyCode)t.$selecter.hasClass("open")&&(h(e),_(t.index,t)),a(t);else if(!(9===e.keyCode||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault(),e.stopPropagation();var n=t.$items.length-1,i=t.index<0?0:t.index;if(-1<d.inArray(e.keyCode,l?[38,40,37,39]:[38,40]))(i+=38===e.keyCode||l&&37===e.keyCode?-1:1)<0&&(i=0),n<i&&(i=n);else{var r,o=String.fromCharCode(e.keyCode).toUpperCase();for(r=t.index+1;r<=n;r++)if(t.$options.eq(r).text().charAt(0).toUpperCase()===o){i=r;break}if(i<0)for(r=0;r<=n;r++)if(t.$options.eq(r).text().charAt(0).toUpperCase()===o){i=r;break}}0<=i&&_(i,t)}}function _(e,t){var n=t.$items.eq(e),i=n.hasClass("selected");if(!n.hasClass("disabled")){if(-1===e&&""!==t.label)t.$selected.html(t.label);else if(i)t.multiple&&(t.$options.eq(e).prop("selected",null),n.removeClass("selected"));else{var r=n.html();n.data("value"),t.multiple?t.$options.eq(e).prop("selected",!0):(t.$selected.html(r).removeClass("placeholder"),t.$items.filter(".selected").removeClass("selected"),t.$select[0].selectedIndex=e),n.addClass("selected")}(!i||t.multiple)&&(t.index=e)}}function a(e){var t,n;e.links?(n=(t=e).$select.val(),t.external?r.open(n):r.location.href=n):(e.callback.call(e.$selecter,e.$select.val(),e.index),e.$select.trigger("change",[!0]))}function y(e,t){return 0===t?e:e.length>t?e.substring(0,t)+"...":e}var C=0,l=-1<r.navigator.userAgent.toLowerCase().indexOf("firefox"),b=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(r.navigator.userAgent||r.navigator.vendor||r.opera),c=null,w={callback:d.noop,cover:!1,customClass:"",label:"",external:!1,links:!1,trim:0},t={defaults:function(e){return w=d.extend(w,e||{}),d(this)},disable:function(r){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");if(n)if(void 0!==r){var i=n.$items.index(n.$items.filter("[data-value="+r+"]"));n.$items.eq(i).addClass("disabled"),n.$options.eq(i).prop("disabled",!0)}else n.$selecter.hasClass("open")&&n.$selecter.find(".selecter-selected").trigger("click.selecter"),n.$selecter.addClass("disabled"),n.$select.prop("disabled",!0)})},enable:function(r){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");if(n)if(void 0!==r){var i=n.$items.index(n.$items.filter("[data-value="+r+"]"));n.$items.eq(i).removeClass("disabled"),n.$options.eq(i).prop("disabled",!1)}else n.$selecter.removeClass("disabled"),n.$select.prop("disabled",!1)})},destroy:function(){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");n&&(n.$selecter.hasClass("open")&&n.$selecter.find(".selecter-selected").trigger("click.selecter"),void 0!==d.fn.scroller&&n.$selecter.find(".selecter-options").scroller("destroy"),n.$select[0].tabIndex=n.tabIndex,n.$select.off(".selecter").removeClass("selecter-element").show(),n.$selecter.off(".selecter").remove())})},refresh:function(){return d(this).each(function(e,t){var n=d(t).next(".selecter").data("selecter");if(n){var i=n.index;n.$allOptions=n.$select.find("option, optgroup"),n.$options=n.$allOptions.filter("option"),n.index=-1,i=n.$options.index(n.$options.filter(":selected")),u(n),_(i,n)}})}};d.fn.selecter=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?this:function(e){e=d.extend({},w,e||{}),null===c&&(c=d("body"));for(var t=d(this),n=0,i=t.length;n<i;n++)o(t.eq(n),e);return t}.apply(this,arguments)},d.selecter=function(e){"defaults"===e&&t.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,window),"function"!=typeof jQuery.fn.stepper&&function(c){"use strict";function r(e,t){if(!e.hasClass("stepper-input")){t=c.extend({},t,e.data("stepper-options"));var n=parseFloat(e.attr("min")),i=parseFloat(e.attr("max")),r=parseFloat(e.attr("step"))||1;e.addClass("stepper-input").wrap('<div class="stepper '+t.customClass+'" />').after('<span class="stepper-arrow up">'+t.labels.up+'</span><span class="stepper-arrow down">'+t.labels.down+"</span>");var o=e.parent(".stepper"),s=c.extend({$stepper:o,$input:e,$arrow:o.find(".stepper-arrow"),min:void 0!==typeof n&&!isNaN(n)&&n,max:void 0!==typeof i&&!isNaN(i)&&i,step:void 0===typeof r||isNaN(r)?1:r,timer:null},t);s.digits=(a=s.step,-1<(l=String(a)).indexOf(".")?l.length-l.indexOf(".")-1:0),e.is(":disabled")&&o.addClass("disabled"),o.on("touchstart.stepper mousedown.stepper",".stepper-arrow",s,d).data("stepper",s)}var a,l}function d(e){e.preventDefault(),e.stopPropagation(),s(e);var t,n,i,r=e.data;if(!r.$input.is(":disabled")&&!r.$stepper.hasClass("disabled")){var o=c(e.target).hasClass("up")?r.step:-r.step;r.timer=(t=r.timer,n=125,i=function(){a(r,o)},l(t),setInterval(i,n)),a(r,o),c("body").on("touchend.stepper mouseup.stepper",r,s)}}function s(e){e.preventDefault(),e.stopPropagation(),l(e.data.timer),c("body").off(".stepper")}function a(e,t){var n=parseFloat(e.$input.val()),i=t;void 0===typeof n||isNaN(n)?i=!1!==e.min?e.min:0:!1!==e.min&&n<e.min?i=e.min:i+=n;var r,o,s,a=(i-e.min)%e.step;0!==a&&(i-=a),!1!==e.min&&i<e.min&&(i=e.min),!1!==e.max&&i>e.max&&(i-=e.step),i!==n&&(r=i,o=e.digits,s=Math.pow(10,o),i=Math.round(r*s)/s,e.$input.val(i).trigger("change"))}function l(e){e&&(clearInterval(e),e=null)}var o={customClass:"",labels:{up:"Up",down:"Down"}},t={defaults:function(e){return o=c.extend(o,e||{}),c(this)},destroy:function(){return c(this).each(function(){var e=c(this).data("stepper");e&&(e.$stepper.off(".stepper").find(".stepper-arrow").remove(),e.$input.unwrap().removeClass("stepper-input"))})},disable:function(){return c(this).each(function(){var e=c(this).data("stepper");e&&(e.$input.attr("disabled","disabled"),e.$stepper.addClass("disabled"))})},enable:function(){return c(this).each(function(){var e=c(this).data("stepper");e&&(e.$input.attr("disabled",null),e.$stepper.removeClass("disabled"))})}};c.fn.stepper=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?this:function(e){e=c.extend({},o,e||{});for(var t=c(this),n=0,i=t.length;n<i;n++)r(t.eq(n),e);return t}.apply(this,arguments)},c.stepper=function(e){"defaults"===e&&t.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.czrSelect2&&n.fn.czrSelect2.amd)var e=n.fn.czrSelect2.amd;var t,r,c;return e&&e.requirejs||(e?r=e:e={},function(p){function h(e,t){return n.call(e,t)}function s(e,t){var n,i,r,o,s,a,l,c,d,u,p,h=t&&t.split("/"),m=b.map,f=m&&m["*"]||{};if(e&&"."===e.charAt(0))if(t){for(s=(e=e.split("/")).length-1,b.nodeIdCompat&&M.test(e[s])&&(e[s]=e[s].replace(M,"")),e=h.slice(0,h.length-1).concat(e),d=0;d<e.length;d+=1)if("."===(p=e[d]))e.splice(d,1),d-=1;else if(".."===p){if(1===d&&(".."===e[2]||".."===e[0]))break;0<d&&(e.splice(d-1,2),d-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||f)&&m){for(d=(n=e.split("/")).length;0<d;d-=1){if(i=n.slice(0,d).join("/"),h)for(u=h.length;0<u;u-=1)if((r=m[h.slice(0,u).join("/")])&&(r=r[i])){o=r,a=d;break}if(o)break;!l&&f&&f[i]&&(l=f[i],c=d)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function m(t,n){return function(){var e=i.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),l.apply(p,e.concat([t,n]))}}function f(t){return function(e){y[t]=e}}function g(e){if(h(C,e)){var t=C[e];delete C[e],w[e]=!0,o.apply(p,t)}if(!h(y,e)&&!h(w,e))throw new Error("No "+e);return y[e]}function a(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}var o,l,v,_,y={},C={},b={},w={},n=Object.prototype.hasOwnProperty,i=[].slice,M=/\.js$/;v=function(e,t){var n,i,r=a(e),o=r[0];return e=r[1],o&&(n=g(o=s(o,t))),o?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return s(e,i)})):s(e,t):(o=(r=a(e=s(e,t)))[0],e=r[1],o&&(n=g(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},_={require:function(e){return m(e)},exports:function(e){var t=y[e];return void 0!==t?t:y[e]={}},module:function(e){return{id:e,uri:"",exports:y[e],config:(t=e,function(){return b&&b.config&&b.config[t]||{}})};var t}},o=function(e,t,n,i){var r,o,s,a,l,c,d=[],u=typeof n;if(i=i||e,"undefined"===u||"function"===u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=v(t[l],i)).f))d[l]=_.require(e);else if("exports"===o)d[l]=_.exports(e),c=!0;else if("module"===o)r=d[l]=_.module(e);else if(h(y,o)||h(C,o)||h(w,o))d[l]=g(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,m(i,!0),f(o),{}),d[l]=y[o]}s=n?n.apply(y[e],d):void 0,e&&(r&&r.exports!==p&&r.exports!==y[e]?y[e]=r.exports:s===p&&c||(y[e]=s))}else e&&(y[e]=n)},t=r=l=function(e,t,n,i,r){if("string"==typeof e)return _[e]?_[e](t):g(v(e,t).f);if(!e.splice){if((b=e).deps&&l(b.deps,b.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?o(p,e,t,n):setTimeout(function(){o(p,e,t,n)},4),l},l.config=function(e){return l(e)},t._defined=y,(c=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),h(y,e)||h(C,e)||(C[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=r,e.define=c),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("CzrSelect2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before CzrSelect2 on your web page."),e}),e.define("czrSelect2/utils",["jquery"],function(o){function d(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}var e={Extend:function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(i,r){function o(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}var e=d(r),t=d(i);r.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=i.prototype[s]}for(var a=function(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o}},t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=o(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},e.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e}),e.define("czrSelect2/results",["jquery","./utils"],function(p,e){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=p('<ul class="czrSelect2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=p('<li role="treeitem" aria-live="assertive" class="czrSelect2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" czrSelect2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".czrSelect2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".czrSelect2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".czrSelect2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=p.map(e,function(e){return e.id.toString()});t.$results.find(".czrSelect2-results__option[aria-selected]").each(function(){var e=p(this),t=p.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<p.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="czrSelect2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var i in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var r=n[i];t.setAttribute(i,r)}if(e.children){var o=p(t),s=document.createElement("strong");s.className="czrSelect2-results__group",p(s),this.template(e,s);for(var a=[],l=0;l<e.children.length;l++){var c=e.children[l],d=this.option(c);a.push(d)}var u=p("<ul></ul>",{class:"czrSelect2-results__options czrSelect2-results__options--nested"});u.append(a),o.append(s),o.append(u)}else this.template(e,t);return p.data(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top,s=r.offset().top,a=l.$results.scrollTop()+(s-o);0===i?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+o-r;0===n?l.$results.scrollTop(0):r<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("czrSelect2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),p.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".czrSelect2-results__option[aria-selected]",function(e){var t=p(this),n=t.data("data");return"true"===t.attr("aria-selected")?void(l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})):void l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".czrSelect2-results__option[aria-selected]",function(e){var t=p(this).data("data");l.getHighlightedResults().removeClass("czrSelect2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:p(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".czrSelect2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):p(t).append(r)},i}),e.define("czrSelect2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("czrSelect2/selection/base",["jquery","../utils","../keys"],function(n,e,r){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=n('<span class="czrSelect2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},i.prototype.bind=function(e,t){var n=this,i=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},i.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.czrSelect2."+e.id,function(e){var t=n(e.target).closest(".czrSelect2");n(".czrSelect2.czrSelect2-container--open").each(function(){var e=n(this);this!=t[0]&&e.data("element").czrSelect2("close")})})},i.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.czrSelect2."+e.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),e.define("czrSelect2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("czrSelect2-selection--single"),e.html('<span class="czrSelect2-selection__rendered"></span><span class="czrSelect2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".czrSelect2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(e){n.update(e.data)})},r.prototype.clear=function(){this.$selection.find(".czrSelect2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".czrSelect2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)}else this.clear()},r}),e.define("czrSelect2/selection/multiple",["jquery","./base","../utils"],function(i,e,a){function r(e,t){r.__super__.constructor.apply(this,arguments)}return a.Extend(r,e),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("czrSelect2-selection--multiple"),e.html('<ul class="czrSelect2-selection__rendered"></ul>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".czrSelect2-selection__choice__remove",function(e){if(!n.options.get("disabled")){var t=i(this).parent().data("data");n.trigger("unselect",{originalEvent:e,data:t})}})},r.prototype.clear=function(){this.$selection.find(".czrSelect2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return i('<li class="czrSelect2-selection__choice"><span class="czrSelect2-selection__choice__remove" role="presentation">&times;</span></li>')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=this.selectionContainer(),o=this.display(i,r);r.append(o),r.prop("title",i.title||i.text),r.data("data",i),t.push(r)}var s=this.$selection.find(".czrSelect2-selection__rendered");a.appendMany(s,t)}},r}),e.define("czrSelect2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("czrSelect2-selection__placeholder").removeClass("czrSelect2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".czrSelect2-selection__rendered").append(i)},t}),e.define("czrSelect2/selection/allowClear",["jquery","../keys"],function(i,r){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("CzrSelect2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".czrSelect2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".czrSelect2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),r=0;r<i.length;r++){var o={data:i[r]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||(t.which==r.DELETE||t.which==r.BACKSPACE)&&this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".czrSelect2-selection__placeholder").length||0===t.length)){var n=i('<span class="czrSelect2-selection__clear">&times;</span>');n.data("data",t),this.$selection.find(".czrSelect2-selection__rendered").prepend(n)}},e}),e.define("czrSelect2/selection/search",["jquery","../utils","../keys"],function(i,e,s){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=i('<li class="czrSelect2-search czrSelect2-search--inline"><input class="czrSelect2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".czrSelect2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".czrSelect2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".czrSelect2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===s.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".czrSelect2-selection__choice");if(0<t.length){var n=t.data("data");i.searchRemoveChoice(n),e.preventDefault()}}});var r=document.documentMode,o=r&&r<=11;this.$selection.on("input.searchcheck",".czrSelect2-search--inline",function(e){return o?void i.$selection.off("input.search input.searchcheck"):void i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".czrSelect2-search--inline",function(e){if(o&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=s.SHIFT&&t!=s.CTRL&&t!=s.ALT&&t!=s.TAB&&i.handleSearch(e)}})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".czrSelect2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".czrSelect2-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},t}),e.define("czrSelect2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,r)){t=t||{};var n=s.Event("czrSelect2:"+e,{params:t});i.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("czrSelect2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("czrSelect2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("czrSelect2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return(n+=i.generateChars(4))+(null!=t.id?"-"+t.id.toString():"-"+i.generateChars(4))},n}),e.define("czrSelect2/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=a(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(r){var o=this;if(r.selected=!0,a(r.element).is("option"))return r.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===a.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(r){var o=this;if(this.$element.prop("multiple"))return r.selected=!1,a(r.element).is("option")?(r.element.selected=!1,void this.$element.trigger("change")):void this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===a.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")})},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})},n.prototype.query=function(i,e){var r=[],o=this;this.$element.children().each(function(){var e=a(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=a(t),i=this._normalizeItem(e);return i.element=t,a.data(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=a.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],r=0;r<n.length;r++){var o=a(n[r]),s=this.item(o);i.push(s)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){a.isPlainObject(e)||(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("czrSelect2/data/array",["./select","../utils","jquery"],function(e,m,f){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return m.Extend(i,e),i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){function t(e){return function(){return f(this).val()==e.id}}for(var n=this,i=this.$element.find("option"),r=i.map(function(){return n.item(f(this)).id}).get(),o=[],s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=f.inArray(a.id,r)){var l=i.filter(t(a)),c=this.item(l),d=f.extend(!0,{},a,c),u=this.option(d);l.replaceWith(u)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);m.appendMany(p,h)}o.push(p)}}return o},i}),e.define("czrSelect2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var i=o.ajax(e);return i.then(t),i.fail(n),i}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("CzrSelect2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){e.status&&"0"===e.status||r.trigger("results:message",{message:"errorLoading"})});r._request=e}var r=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("czrSelect2/data/tags",["jquery"],function(d){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),d.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,d){var u=this;return this._removeOldTags(),null==c.term||null!=c.page?void e.call(this,c,d):void e.call(this,c,function e(t,n){for(var i=t.results,r=0;r<i.length;r++){var o=i[r],s=null!=o.children&&!e({results:o.children},!0);if(o.text===c.term||s)return!n&&(t.data=i,void d(t))}if(n)return!0;var a=u.createTag(c);if(null!=a){var l=u.option(a);l.attr("data-czrSelect2-tag",!0),u.addOptions([l]),u.insertTag(i,a)}t.results=i,d(t)})},e.prototype.createTag=function(e,t){var n=d.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){(this._lastTag,this.$element.find("option[data-czrSelect2-tag]")).each(function(){this.selected||d(this).remove()})},e}),e.define("czrSelect2/data/tokenizer",["jquery"],function(u){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".czrSelect2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t,n=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return u(this).val()===n.id}).length){var i=r.option(n);i.attr("data-czrSelect2-tag",!0),r._removeOldTags(),r.addOptions([i])}t=n,r.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.focus()),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==u.inArray(l,r)){var c=o.substr(0,s),d=a(u.extend({},t,{term:c}));null!=d?(i(d),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("czrSelect2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("czrSelect2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),e.define("czrSelect2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,i,r){var o=this;this.current(function(e){var t=null!=e?e.length:0;return 0<o.maximumSelectionLength&&t>=o.maximumSelectionLength?void o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):void n.call(o,i,r)})},e}),e.define("czrSelect2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="czrSelect2-dropdown"><span class="czrSelect2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("czrSelect2/dropdown/search",["jquery","../utils"],function(r,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=r('<span class="czrSelect2-search czrSelect2-search--dropdown"><input class="czrSelect2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){r(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),t.on("focus",function(){t.isOpen()&&i.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("czrSelect2-search--hide"):i.$searchContainer.addClass("czrSelect2-search--hide"))})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("czrSelect2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("czrSelect2/dropdown/infiniteScroll",["jquery"],function(r){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var e=r.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var t=i.$results.offset().top+i.$results.outerHeight(!1);i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)<=t+50&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=r.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=r('<li class="czrSelect2-results__option czrSelect2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("czrSelect2/dropdown/attachBody",["jquery","../utils"],function(m,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||m(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this,r=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),r||(r=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("czrSelect2"),t.addClass("czrSelect2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=m("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.czrSelect2."+t.id,r="resize.czrSelect2."+t.id,o="orientationchange.czrSelect2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){m(this).data("czrSelect2-scroll-position",{x:m(this).scrollLeft(),y:m(this).scrollTop()})}),s.on(i,function(e){var t=m(this).data("czrSelect2-scroll-position");m(this).scrollTop(t.y)}),m(window).on(i+" "+r+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.czrSelect2."+t.id,i="resize.czrSelect2."+t.id,r="orientationchange.czrSelect2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),m(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=m(window),t=this.$dropdown.hasClass("czrSelect2-dropdown--above"),n=this.$dropdown.hasClass("czrSelect2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<r.top-s,d=l>r.bottom+s,u={left:r.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();u.top-=h.top,u.left-=h.left,t||n||(i="below"),d||!c||t?!c&&d&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(u.top=o.top-h.top-s),null!=i&&(this.$dropdown.removeClass("czrSelect2-dropdown--below czrSelect2-dropdown--above").addClass("czrSelect2-dropdown--"+i),this.$container.removeClass("czrSelect2-container--below czrSelect2-container--above").addClass("czrSelect2-container--"+i)),this.$dropdownContainer.css(u)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("czrSelect2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("czrSelect2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalCzrSelect2Event){var n=t.originalCzrSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=i.data("data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("czrSelect2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalCzrSelect2Event:t})},e}),e.define("czrSelect2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("czrSelect2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(m,f,g,v,_,y,C,b,w,M,z,t,I,x,S,$,E,R,O,A,P,k,D,j,T,Z,H,U,e){function n(){this.reset()}return n.prototype.apply=function(t){if(null==(t=m.extend(!0,{},this.defaults,t)).dataAdapter){if(null!=t.ajax?t.dataAdapter=S:null!=t.data?t.dataAdapter=x:t.dataAdapter=I,0<t.minimumInputLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,R)),0<t.maximumInputLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,O)),0<t.maximumSelectionLength&&(t.dataAdapter=M.Decorate(t.dataAdapter,A)),t.tags&&(t.dataAdapter=M.Decorate(t.dataAdapter,$)),(null!=t.tokenSeparators||null!=t.tokenizer)&&(t.dataAdapter=M.Decorate(t.dataAdapter,E)),null!=t.query){var e=f(t.amdBase+"compat/query");t.dataAdapter=M.Decorate(t.dataAdapter,e)}if(null!=t.initSelection){var n=f(t.amdBase+"compat/initSelection");t.dataAdapter=M.Decorate(t.dataAdapter,n)}}if(null==t.resultsAdapter&&(t.resultsAdapter=g,null!=t.ajax&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,j)),null!=t.placeholder&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,D)),t.selectOnClose&&(t.resultsAdapter=M.Decorate(t.resultsAdapter,H))),null==t.dropdownAdapter){if(t.multiple)t.dropdownAdapter=P;else{var i=M.Decorate(P,k);t.dropdownAdapter=i}if(0!==t.minimumResultsForSearch&&(t.dropdownAdapter=M.Decorate(t.dropdownAdapter,Z)),t.closeOnSelect&&(t.dropdownAdapter=M.Decorate(t.dropdownAdapter,U)),null!=t.dropdownCssClass||null!=t.dropdownCss||null!=t.adaptDropdownCssClass){var r=f(t.amdBase+"compat/dropdownCss");t.dropdownAdapter=M.Decorate(t.dropdownAdapter,r)}t.dropdownAdapter=M.Decorate(t.dropdownAdapter,T)}if(null==t.selectionAdapter){if(t.multiple?t.selectionAdapter=_:t.selectionAdapter=v,null!=t.placeholder&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,y)),t.allowClear&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,C)),t.multiple&&(t.selectionAdapter=M.Decorate(t.selectionAdapter,b)),null!=t.containerCssClass||null!=t.containerCss||null!=t.adaptContainerCssClass){var o=f(t.amdBase+"compat/containerCss");t.selectionAdapter=M.Decorate(t.selectionAdapter,o)}t.selectionAdapter=M.Decorate(t.selectionAdapter,w)}if("string"==typeof t.language)if(0<t.language.indexOf("-")){var s=t.language.split("-")[0];t.language=[t.language,s]}else t.language=[t.language];if(m.isArray(t.language)){var a=new z;t.language.push("en");for(var l=t.language,c=0;c<l.length;c++){var d=l[c],u={};try{u=z.loadPath(d)}catch(e){try{d=this.defaults.amdLanguageBase+d,u=z.loadPath(d)}catch(e){t.debug&&window.console&&console.warn&&console.warn('CzrSelect2: The language file for "'+d+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(u)}t.translations=a}else{var p=z.loadPath(this.defaults.amdLanguageBase+"en"),h=new z(t.language);h.extend(p),t.translations=h}return t},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:M.escapeMarkup,language:e,matcher:function e(t,n){if(""===m.trim(t.term))return n;if(n.children&&0<n.children.length){for(var i=m.extend(!0,{},n),r=n.children.length-1;0<=r;r--)null==e(t,n.children[r])&&i.children.splice(r,1);return 0<i.children.length?i:e(t,i)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.set=function(e,t){var n={};n[m.camelCase(e)]=t;var i=M._convertData(n);m.extend(this.defaults,i)},new n}),e.define("czrSelect2/options",["require","jquery","./defaults","./utils"],function(i,o,r,s){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=r.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=s.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["czrSelect2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("czrSelect2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('CzrSelect2: The `data-czrSelect2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of CzrSelect2.'),e.data("data",e.data("czrSelect2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("CzrSelect2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of CzrSelect2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n;n=o.fn.jquery&&"1."==o.fn.jquery.substr(0,2)&&e[0].dataset?o.extend(!0,{},e[0].dataset,e.data()):e.data();var i=o.extend(!0,{},n);for(var r in i=s._convertData(i))-1<o.inArray(r,t)||(o.isPlainObject(this.options[r])?o.extend(this.options[r],i[r]):this.options[r]=i[r]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("czrSelect2/core",["jquery","./options","./utils","./keys"],function(r,c,n,i){var d=function(e,t){null!=e.data("czrSelect2")&&e.data("czrSelect2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("czrSelect2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("czrSelect2",this)};return n.Extend(d,n.Observable),d.prototype._generateId=function(e){return"czrSelect2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null}return t},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.czrSelect2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.czrSelect2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){r.each(e,t._syncA),r.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===r.inArray(e,i)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("czrSelect2-container--open")}),this.on("close",function(){n.$container.removeClass("czrSelect2-container--open")}),this.on("enable",function(){n.$container.removeClass("czrSelect2-container--disabled")}),this.on("disable",function(){n.$container.addClass("czrSelect2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("czrSelect2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var r=0;r<t.addedNodes.length;r++){t.addedNodes[r].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var r=i[e],o={prevented:!1,name:e,args:t};if(n.call(this,r,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.trigger("query",{})},d.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},d.prototype.isOpen=function(){return this.$container.hasClass("czrSelect2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("czrSelect2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("czrSelect2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('CzrSelect2: The `czrSelect2("enable")` method has been deprecated and will be removed in later CzrSelect2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('CzrSelect2: Data can no longer be set using `czrSelect2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('CzrSelect2: The `czrSelect2("val")` method has been deprecated and will be removed in later CzrSelect2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];r.isArray(t)&&(t=r.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".czrSelect2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("czrSelect2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("czrSelect2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=r('<span class="czrSelect2 czrSelect2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("czrSelect2-container--"+this.options.get("theme")),e.data("element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.czrSelect2",["jquery","jquery-mousewheel","./czrSelect2/core","./czrSelect2/defaults"],function(r,e,o,t){if(null==r.fn.czrSelect2){var s=["open","close","destroy"];r.fn.czrSelect2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new o(r(this),e)}),this;if("string"==typeof t){var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=r(this).data("czrSelect2");null==e&&window.console&&console.error&&console.error("The czrSelect2('"+t+"') method was called on an element that is not using CzrSelect2."),n=e[t].apply(e,i)}),-1<r.inArray(t,s)?this:n}throw new Error("Invalid arguments for CzrSelect2: "+t)}}return null==r.fn.czrSelect2.defaults&&(r.fn.czrSelect2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.czrSelect2");return n.fn.czrSelect2.amd=e,t}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(o){"use strict";function n(e,t){function n(e){void 0!==e.open&&(e.open=!e.open)}var i=function(e){for(var t=[],n=e.parentNode;(i=n)&&(0===i.offsetWidth||0===i.offsetHeight||!1===i.open);)t.push(n),n=n.parentNode;var i;return t}(e),r=i.length,o=[],s=e[t];if(r){for(var a=0;a<r;a++)o[a]=i[a].style.cssText,i[a].style.setProperty?i[a].style.setProperty("display","block","important"):i[a].style.cssText+=";display: block !important",i[a].style.height="0",i[a].style.overflow="hidden",i[a].style.visibility="hidden",n(i[a]);s=e[t];for(var l=0;l<r;l++)i[l].style.cssText=o[l],n(i[l])}return s}function i(e,t){var n=parseFloat(e);return Number.isNaN(n)?t:n}function r(e){return e.charAt(0).toUpperCase()+e.substr(1)}function s(e,t){if(this.$window=o(window),this.$document=o(document),this.$element=o(e),this.options=o.extend({},d,t),this.polyfill=this.options.polyfill,this.orientation=this.$element[0].getAttribute("data-orientation")||this.options.orientation,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.DIMENSION=u.orientation[this.orientation].dimension,this.DIRECTION=u.orientation[this.orientation].direction,this.DIRECTION_STYLE=u.orientation[this.orientation].directionStyle,this.COORDINATE=u.orientation[this.orientation].coordinate,this.polyfill&&c)return!1;this.identifier="js-"+a+"-"+l++,this.startEvent=this.options.startEvent.join("."+this.identifier+" ")+"."+this.identifier,this.moveEvent=this.options.moveEvent.join("."+this.identifier+" ")+"."+this.identifier,this.endEvent=this.options.endEvent.join("."+this.identifier+" ")+"."+this.identifier,this.toFixed=(this.step+"").replace(".","").length-1,this.$fill=o('<div class="'+this.options.fillClass+'" />'),this.$handle=o('<div class="'+this.options.handleClass+'" />'),this.$range=o('<div class="'+this.options.rangeClass+" "+this.options[this.orientation+"Class"]+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=o.proxy(this.handleDown,this),this.handleMove=o.proxy(this.handleMove,this),this.handleEnd=o.proxy(this.handleEnd,this),this.init();var n,i,r=this;this.$window.on("resize."+this.identifier,(n=function(){!function(e,t){var n=Array.prototype.slice.call(arguments,2);setTimeout(function(){return e.apply(null,n)},t)}(function(){r.update(!1,!1)},300)},i=(i=20)||100,function(){if(!n.debouncing){var e=Array.prototype.slice.apply(arguments);n.lastReturnVal=n.apply(window,e),n.debouncing=!0}return clearTimeout(n.debounceTimeout),n.debounceTimeout=setTimeout(function(){n.debouncing=!1},i),n.lastReturnVal})),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(e,t){if(!t||t.origin!==r.identifier){var n=e.target.value,i=r.getPositionFromValue(n);r.setPosition(i)}})}Number.isNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};var e,a="rangeslider",l=0,c=((e=document.createElement("input")).setAttribute("type","range"),"text"!==e.type),d={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",activeClass:"rangeslider--active",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},u={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};return s.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},s.prototype.update=function(e,t){(e=e||!1)&&(this.min=i(this.$element[0].getAttribute("min"),0),this.max=i(this.$element[0].getAttribute("max"),100),this.value=i(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=i(this.$element[0].getAttribute("step"),1)),this.handleDimension=n(this.$handle[0],"offset"+r(this.DIMENSION)),this.rangeDimension=n(this.$range[0],"offset"+r(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,t)},s.prototype.handleDown=function(e){if(e.preventDefault(),!(e.button&&0!==e.button||(this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),this.$range.addClass(this.options.activeClass),-1<(" "+e.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)))){var t=this.getRelativePosition(e),n=this.$range[0].getBoundingClientRect()[this.DIRECTION],i=this.getPositionFromNode(this.$handle[0])-n,r="vertical"===this.orientation?this.maxHandlePos-(t-this.grabPos):t-this.grabPos;this.setPosition(r),i<=t&&t<i+this.handleDimension&&(this.grabPos=t-i)}},s.prototype.handleMove=function(e){e.preventDefault();var t=this.getRelativePosition(e),n="vertical"===this.orientation?this.maxHandlePos-(t-this.grabPos):t-this.grabPos;this.setPosition(n)},s.prototype.handleEnd=function(e){e.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd),this.$range.removeClass(this.options.activeClass),this.$element.trigger("change",{origin:this.identifier}),this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(this.position,this.value)},s.prototype.cap=function(e,t,n){return e<t?t:n<e?n:e},s.prototype.setPosition=function(e,t){var n,i;void 0===t&&(t=!0),n=this.getValueFromPosition(this.cap(e,0,this.maxHandlePos)),i=this.getPositionFromValue(n),this.$fill[0].style[this.DIMENSION]=i+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=i+"px",this.setValue(n),this.position=i,this.value=n,t&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(i,n)},s.prototype.getPositionFromNode=function(e){for(var t=0;null!==e;)t+=e.offsetLeft,e=e.offsetParent;return t},s.prototype.getRelativePosition=function(e){var t=r(this.COORDINATE),n=this.$range[0].getBoundingClientRect()[this.DIRECTION],i=0;return void 0!==e.originalEvent["client"+t]?i=e.originalEvent["client"+t]:e.originalEvent.touches&&e.originalEvent.touches[0]&&void 0!==e.originalEvent.touches[0]["client"+t]?i=e.originalEvent.touches[0]["client"+t]:e.currentPoint&&void 0!==e.currentPoint[this.COORDINATE]&&(i=e.currentPoint[this.COORDINATE]),i-n},s.prototype.getPositionFromValue=function(e){var t;return t=(e-this.min)/(this.max-this.min),Number.isNaN(t)?0:t*this.maxHandlePos},s.prototype.getValueFromPosition=function(e){var t,n;return t=e/(this.maxHandlePos||1),n=this.step*Math.round(t*(this.max-this.min)/this.step)+this.min,Number(n.toFixed(this.toFixed))},s.prototype.setValue=function(e){e===this.value&&""!==this.$element[0].value||this.$element.val(e).trigger("input",{origin:this.identifier})},s.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+a),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},o.fn[a]=function(n){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o(this),t=e.data("plugin_"+a);t||e.data("plugin_"+a,t=new s(this,n)),"string"==typeof n&&t[n].apply(t,i)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"}),function(t,e,n){t.bind("ready",function(){t.previewedDevice&&t.previewedDevice.bind(function(e){t.previewer.send("previewed-device",e)})})}(wp.customize,jQuery,_),function(e,t,i){var r=function(e){e=i.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},e);var t,n=Array.from(e.consoleArguments);return n=i.isEmpty(i.filter(n,function(e){return!i.isString(e)}))?n.join(" "):JSON.stringify(n.join(" ")),["%c "+(t=n,i.isString(t)?300<t.length?t.substr(0,299)+"...":t:""),["background:"+e.bgCol,"color:"+e.textCol,"display: block;"].join(";")]},n=function(e,t,n){i.isUndefined(console)&&"function"!=typeof window.console.log||(serverControlParams.isDevMode?i.isUndefined(t)?console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:["<"+e+">"]})):(console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:["<"+e+">"]})),console.log(t),console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:["</"+e+">"]}))):console.log.apply(console,r({bgCol:n,textCol:"#000",consoleArguments:[e]})))};e.consoleLog=function(){serverControlParams.isDevMode&&(i.isUndefined(console)&&"function"!=typeof window.console.log||(console.log.apply(console,r({consoleArguments:arguments})),console.log("Unstyled console message : ",arguments)))},e.errorLog=function(){i.isUndefined(console)&&"function"!=typeof window.console.log||console.log.apply(console,r({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:arguments}))},e.errare=function(e,t){n(e,t,"#ffd5a0")},e.infoLog=function(e,t){n(e,t,"#5ed1f5")},e.czr_isChangeSetOn=function(){return serverControlParams.isChangeSetOn&&!0}}(wp.customize,jQuery,_),function(e,n,i){e.bind("ready",function(){var t=function(){i.isUndefined(window.themeServerControlParams)||i.isUndefined(themeServerControlParams.isThemeSwitchOn)||themeServerControlParams.isThemeSwitchOn||(e.panel("themes").active.callbacks=n.Callbacks(),e.panel("themes").active(themeServerControlParams.isThemeSwitchOn))};e.panel.has("themes")?t():e.panel.when("themes",function(e){t()})})}(wp.customize,jQuery,_),function(r,e,o){r.czr_activeSectionId=r.czr_activeSectionId||new r.Value(""),r.czr_activePanelId=r.czr_activePanelId||new r.Value(""),r.bind("ready",function(){if("function"!=typeof r.Section)throw new Error("Your current version of WordPress does not support the customizer sections needed for this theme. Please upgrade WordPress to the latest version.");var n=function(e,t){r.czr_activeSectionId(e?t:"")};r.section.each(function(t){"publish_settings"!=t.id&&t.expanded.bind(function(e){n(e,t.id)})}),r.section.bind("add",function(t){"publish_settings"!=t.id&&t.expanded.bind(function(e){n(e,t.id)})});var i=function(e,t){r.czr_activePanelId(e?t:""),o.isEmpty(r.czr_activePanelId())&&r.czr_activeSectionId("")};r.panel.each(function(t){t.expanded.bind(function(e){i(e,t.id)})}),r.panel.bind("add",function(t){t.expanded.bind(function(e){i(e,t.id)})})})}(wp.customize,jQuery,_),function(a,e,l){a.bind("ready",function(){serverControlParams.paramsForDynamicRegistration;l.isObject(serverControlParams.paramsForDynamicRegistration)||a.errorLog("serverControlParams.paramsForDynamicRegistration should be an array"),l.each(serverControlParams.paramsForDynamicRegistration,function(e,t){if(e.module_registration_params&&!0===e.module_registration_params.dynamic_registration)if(serverControlParams.isDevMode)n(e);else try{n(e)}catch(e){a.errorLog(e)}})});var n=function(e){if(e=l.extend({setting_id:"",module_type:"",option_value:[],setting:{},section:{id:"",title:""},control:{}},e),l.isEmpty(e.setting_id)||l.isEmpty(e.module_type))throw a.errare("registerDynamicModuleSettingControl => args",e),new Error("registerDynamicModuleSettingControl => missing params when registrating a setting");if(!l.isArray(e.option_value)&&!l.isObject(e.option_value))throw new Error("registerDynamicModuleSettingControl => the module values must be an array or an object");var t=e.setting_id,n=e.setting;a.CZR_Helpers.register({what:"setting",id:t,dirty:!l.isEmpty(e.option_value),value:e.option_value,transport:n.transport||"refresh",type:n.type||"option",track:!1});var i=e.section;if(!l.isEmpty(i)){if(!l.has(i,"id"))throw new Error("registerDynamicModuleSettingControl => missing section id for the section of setting : "+t);a.CZR_Helpers.register({what:"section",id:i.id,title:i.title||i.id,panel:l.isEmpty(i.panel)?"":i.panel,priority:i.priority||10,track:!1})}var r,o=t,s=e.control;if(r=l.isEmpty(e.section)?s.section:e.section.id,l.isEmpty(r))throw a.errare("registerDynamicModuleSettingControl => missing section id for the control",e),new Error("registerDynamicModuleSettingControl => missing section id for the section of setting : "+t);return a.CZR_Helpers.register({what:"control",id:o,label:s.label||o,type:"czr_module",module_type:e.module_type,section:r,priority:s.priority||10,settings:{default:t},track:!1}),a.section.has(r)&&a.section(r).expanded()&&a.control(o).trigger("set-module-ready"),t}}(wp.customize,jQuery,_),function(s,a,l){s.Value.prototype.set=function(t,n){var i=this._value,e=a.Deferred(),r=this,o=[];return t=this._setter.apply(this,arguments),t=this.validate(t),args=l.extend({silent:!1},l.isObject(n)?n:{}),null===t||l.isEqual(i,t)?e.resolveWith(r,[t,i,n]).promise():(this._value=t,(this._dirty=!0)===args.silent?e.resolveWith(r,[t,i,n]).promise():this._deferreds?(l.each(r._deferreds,function(e){o.push(e.apply(null,[t,i,n]))}),a.when.apply(null,o).fail(function(){s.errorLog("A deferred callback failed in api.Value::set()")}).then(function(){r.callbacks.fireWith(r,[t,i,n]),e.resolveWith(r,[t,i,n])}),e.promise(r)):(this.callbacks.fireWith(this,[t,i,n]),e.resolveWith(r,[t,i,n]).promise(r)))},s.Value.prototype.bind=function(){var t=this,n=!1,i=[];return a.each(arguments,function(e,t){n||(n=l.isObject(t)&&t.deferred),l.isFunction(t)&&i.push(t)}),n?(t._deferreds=t._deferreds||[],l.each(i,function(e){l.contains(e,t._deferreds)||t._deferreds.push(e)})):t.callbacks.add.apply(t.callbacks,arguments),this},s.Setting.prototype.silent_set=function(e,t){var n=this._value,i=s.state("saved")();return e=this._setter.apply(this,arguments),null===(e=this.validate(e))||l.isEqual(n,e)||(this._value=e,this._dirty=l.isUndefined(t)||!l.isBoolean(t)?this._dirty:t,this.callbacks.fireWith(this,[e,n,{silent:!0}]),s.state("saved")(i)),this}}(wp.customize,jQuery,_),function(s,a,l){s.Setting.prototype.preview=function(e,t,n){var i,r=this,o=a.Deferred();return i=r.transport,l.isUndefined(t)||l.isEmpty(t)||l.isNull(t)||!l.isObject(n)||!0!==n.not_preview_sent?l.has(n,"silent")&&!1!==n.silent?o.resolve(arguments).promise():("postMessage"!==i||s.state("previewerAlive").get()||(i="refresh"),"postMessage"===i?(r.previewer.send("pre_setting",{set_id:r.id,data:n,value:e}),r.previewer.send("setting",[r.id,r()]),o.resolve(arguments)):"refresh"===i&&(r.previewer.refresh(),o.resolve(arguments)),o.promise()):o.resolve(arguments).promise()}}(wp.customize,jQuery,_),function(e,r,o){if("function"==typeof e.Section){var n=e.Section.prototype.initialize;e.Section.prototype.initialize=function(e,t){n.apply(this,[e,t]);var i=this;this.expanded.callbacks.add(function(e){if(e){var t=i.container.closest(".wp-full-overlay-sidebar-content"),n=i.container.find(".accordion-section-content");_resizeContentHeight=function(){n.css("height",t.innerHeight())},_resizeContentHeight(),r(window).on("resize.customizer-section",o.debounce(_resizeContentHeight,110))}})}}}(wp.customize,jQuery,_),function(d,u,p){d.CZR_Helpers=d.CZR_Helpers||{},d.CZR_Helpers=u.extend(d.CZR_Helpers,{setupInputCollectionFromDOM:function(){var o=this;if(!p.isFunction(o))throw new Error("setupInputCollectionFromDOM => inputParentInst is not valid.");var s=o.module,a=p.has(o(),"is_mod_opt");if(p.isEmpty(o.inputCollection())){o.czr_Input=o.czr_Input||new d.Values,o.inputConstructor=a?s.inputModOptConstructor:s.inputConstructor;var e=a?o.defaultModOptModel:o.defaultItemModel;if(p.isEmpty(e)||p.isUndefined(e))throw new Error("setupInputCollectionFromDOM => No default model found in item or mod opt "+o.id+".");var l=u.extend(!0,{},o());l=p.isObject(l)?u.extend(e,l):e;var c={};return u("."+s.control.css_attr.sub_set_wrapper,o.container).length<1&&d.errare("setupInputCollectionFromDOM => no input elements found in the DOM"),u("."+s.control.css_attr.sub_set_wrapper,o.container).each(function(e){var t=u(this).find("[data-czrtype]").attr("data-czrtype"),n=p.has(l,t)?l[t]:"";if(p.isUndefined(t)||p.isEmpty(t))d.errare("setupInputCollectionFromDOM => missing data-czrtype id for input type "+u(this).data("input-type")+" in module "+s.id+". Check that the server input template is properly declared.");else{if(!p.has(l,t))throw new Error("setupInputCollectionFromDOM => The item or mod opt property : "+t+" has been found in the DOM but not in the item or mod opt model : "+o.id+". The input can not be instantiated.");var i=u(this).data("input-type"),r={id:t,type:i,transport:u(this).data("transport")||"inherit",input_value:n,input_options:p.has(s.inputOptions,i)?s.inputOptions[i]:{},container:u(this),input_parent:o,is_mod_opt:a,module:s};d.trigger("input-args-before-instantiation",r),o.czr_Input.add(t,new o.inputConstructor(t,r)),o.czr_Input(t).ready(),c[t]=n}}),o.inputCollection(c),o}}})}(wp.customize,jQuery,_),function(i,e,r){i.CZR_Helpers=i.CZR_Helpers||{},i.CZR_Helpers=e.extend(i.CZR_Helpers,{getModuleTmpl:function(t){var n=e.Deferred();if(t=r.extend({tmpl:"",module_type:"",module_id:"",cache:!0,nonce:i.settings.nonce.save},t),(r.isEmpty(t.tmpl)||r.isEmpty(t.module_type))&&n.reject("api.CZR_Helpers.getModuleTmpl => missing tmpl or module_type param"),i.CZR_Helpers.czr_cachedTmpl=i.CZR_Helpers.czr_cachedTmpl||{},i.CZR_Helpers.czr_cachedTmpl[t.module_type]=i.CZR_Helpers.czr_cachedTmpl[t.module_type]||{},!0===t.cache&&!r.isEmpty(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl])&&r.isString(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]))n.resolve(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]);else{if(r.isObject(i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl])&&"pending"==i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl].state())return i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl];i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]=wp.ajax.post("ac_get_template",t).done(function(e){n.resolve(e),i.CZR_Helpers.czr_cachedTmpl[t.module_type][t.tmpl]=e}).fail(function(e){i.errare("api.CZR_Helpers.getModuleTmpl => Problem when fetching the "+t.tmpl+" tmpl from server for module : "+t.module_id+" "+t.module_type,e),n.reject(e),r.isObject(e)&&("invalid_nonce"!==e.code&&"Bad Request"!==e.statusText||window.sektionsLocalizedData&&sektionsLocalizedData.i18n&&i.previewer.trigger("sek-notify",{type:"error",duration:3e4,message:sektionsLocalizedData.i18n["Something went wrong, please refresh this page."]}))})}return n.promise()}})}(wp.customize,jQuery,_),function(p,h,m){p.CZR_Helpers=p.CZR_Helpers||{},p.CZR_Helpers=h.extend(p.CZR_Helpers,{register:function(e){if(m.has(e,"id")){var t,n={};switch(e.what){case"setting":if(p.has(e.id))break;t=h.extend(!0,{},p.Setting.prototype.defaults);var i=m.extend(t,{dirty:!m.isUndefined(e.dirty)&&e.dirty,value:m.isUndefined(e.value)?null:e.value,transport:e.transport||"refresh",type:e.type||"option"}),r=p.settingConstructor[i.type]||p.Setting;m.isObject(e.options)&&(i=m.extend(i,e.options));try{p.add(new r(e.id,i.value,i))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a setting to the api",e)}break;case"panel":if(!m.has(e,"id"))throw new Error("registerPanel => missing panel id ");if(p.panel.has(e.id))break;t=h.extend(!0,{},p.Panel.prototype.defaults);var o=m.extend(t,{id:e.id,title:e.title||e.id,priority:m.has(e,"priority")?e.priority:0}),s=m.isObject(e.constructWith)?e.constructWith:p.Panel;m.isObject(e.options)&&(o=m.extend(o,e.options)),o=m.extend({params:o},o);try{n=p.panel.add(new s(e.id,o))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a panel to the api",e)}break;case"section":if(!m.has(e,"id"))throw new Error("registerSection => missing section id ");if(p.section.has(e.id))break;t=h.extend(!0,{},p.Section.prototype.defaults);var a=m.extend(t,{content:"",id:e.id,title:e.title,panel:e.panel,priority:e.priority,description_hidden:!1,customizeAction:serverControlParams.i18n.Customizing}),l=p.Section;m.isUndefined(e.constructWith)?!m.isEmpty(e.type)&&p.sectionConstructor[e.type]&&(l=p.sectionConstructor[e.type]):l=e.constructWith,m.isObject(e.options)&&(a=m.extend(a,e.options)),a=m.extend({params:a},a);try{n=p.section.add(new l(e.id,a))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a section to the api",e)}break;case"control":if(p.control.has(e.id))break;t=h.extend(!0,{},p.Control.prototype.defaults);var c,d=m.extend(t,{content:"",label:e.label||e.id,priority:e.priority,section:e.section,settings:e.settings,type:e.type,module_type:e.module_type,input_attrs:e.input_attrs,sek_registration_params:e}),u=p.controlConstructor[d.type]||p.Control;m.isObject(e.options)&&(d=m.extend(d,e.options)),c=m.extend({params:d},d);try{n=p.control.add(new u(e.id,c))}catch(e){p.errare("api.CZR_Helpers::register => problem when adding a control to the api",e)}break;default:p.errorLog('invalid "what" when invoking the register() method')}return n=m.isEmpty(n)?{deferred:{embedded:h.Deferred(function(){this.resolve()})}}:n,!1!==e.track&&p.trigger("czr-new-registered",e),"setting"==e.what?e:n.deferred.embedded}p.errare("register => missing id ",e)}})}(wp.customize,jQuery,_),function(i,r,o){i.CZR_Helpers=i.CZR_Helpers||{},i.CZR_Helpers=r.extend(i.CZR_Helpers,{css_loader_html:'<div class="czr-css-loader czr-mr-loader" style="display:none"><div></div><div></div><div></div></div>',getControlSettingId:function(e,t){return t="default",i.control.has(e)?!o.has(i.control(e),"settings")||o.isEmpty(i.control(e).settings)?e:o.has(i.control(e).settings,t)?o.isUndefined(i.control(e).settings[t].id)?(i.consoleLog("getControlSettingId : The requested control_id has no setting id assigned : "+e),e):i.control(e).settings[t].id:(i.consoleLog("getControlSettingId : The requested control_id does not have the requested setting type : "+e+" , "+t),e):e},getDocSearchLink:function(e){var t=(e=o.isString(e)?e:"").replace(/ /g,"+");return['<a href="'+[serverControlParams.docURL,"search?query=",t].join("")+'" title="'+serverControlParams.i18n.readDocumentation+'" target="_blank">'," ",'<span class="far fa-question-circle-o"></span>'].join("")},build_setId:function(e){return o.isUndefined(window.themeServerControlParams)||!o.isArray(themeServerControlParams.wpBuiltinSettings)?e:o.contains(themeServerControlParams.wpBuiltinSettings,e)?e:o.contains(themeServerControlParams.themeSettingList,e)&&-1==e.indexOf(themeServerControlParams.themeOptions)?[themeServerControlParams.themeOptions+"[",e,"]"].join(""):e},getOptionName:function(e){if(o.isEmpty(window.themeServerControlParams)||o.isEmpty(themeServerControlParams.themeOptions))return e;return-1==e.indexOf(themeServerControlParams.themeOptions)?e:e.replace(/\[|\]/g,"").replace(themeServerControlParams.themeOptions,"")},hasPartRefresh:function(n){if(o.has(i,"czr_partials"))return o.contains(o.map(i.czr_partials(),function(e,t){return o.contains(e.settings,n)}),!0)},getSectionControlIds:function(e){return e=e||i.czr_activeSectionId(),i.section.has(e)?o.map(i.section(e).controls(),function(e){return e.id}):[]},getSectionSettingIds:function(e){if(e=e||i.czr_activeSectionId(),i.section.has(e)){var n=[],t=this.getSectionControlIds(e);return o.each(t,function(e){o.each(i.control(e).settings,function(e,t){n.push(e.id)})}),n}},capitalize:function(e){return o.isString(e)?e.charAt(0).toUpperCase()+e.slice(1):e},truncate:function(e,t,n){if(!o.isString(e))return"";t=t||20;var i=e.length>t,r=i?e.substr(0,t-1):e;return r=n&&i?r.substr(0,r.lastIndexOf(" ")):r,i?r+"...":r},isMultiItemModule:function(e,t){if(!o.isUndefined(e)||o.isObject(t)){if(o.isObject(t)&&o.has(t,"module_type"))e=t.module_type;else if(o.isUndefined(e)||o.isNull(e))return;if(o.has(i.czrModuleMap,e))return i.czrModuleMap[e].crud||i.czrModuleMap[e].multi_item||!1}},isCrudModule:function(e,t){if(!o.isUndefined(e)||o.isObject(t)){if(o.isObject(t)&&o.has(t,"module_type"))e=t.module_type;else if(o.isUndefined(e)||o.isNull(e))return;if(o.has(i.czrModuleMap,e))return i.czrModuleMap[e].crud||!1}},hasModuleModOpt:function(e,t){if(!o.isUndefined(e)||o.isObject(t)){if(o.isObject(t)&&o.has(t,"module_type"))e=t.module_type;else if(o.isUndefined(e)||o.isNull(e))return;if(o.has(i.czrModuleMap,e))return i.czrModuleMap[e].has_mod_opt||!1}},removeInputCollection:function(){var t=this;if(!o.isFunction(t))throw new Error("removeInputCollection : inputParentInst is not valid.");o.has(t,"czr_Input")&&(t.czr_Input.each(function(e){t.czr_Input.remove(e.id)}),t.inputCollection({}))},refreshModuleControl:function(e){var t=i.controlConstructor.czr_module,n=(i.control(e).params.type,i.settings.controls[e]);r.when(i.control(e).container.remove()).done(function(){i.control.remove(e),i.control.add(e,new t(e,{params:n,previewer:i.previewer}))})},isChecked:function(e){return o.isBoolean(e)?e:o.isNumber(e)?0<e:!!o.isString(e)&&("0"!==e&&""!==e&&"off"!==e)},hexToRgb:function(t){try{t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i})}catch(e){return i.errorLog("Error in Helpers::hexToRgb : "+e),t}var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgb("+(e=e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[]).join(",")+")"},rgbToHex:function(e,t,n){var i=function(e){var t=e.toString(16);return 1==t.length?"0"+t:t};return"#"+i(e)+i(t)+i(n)},parseTemplate:o.memoize(function(t){var n,i={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){return(n=n||o.template(t,i))(e)}})})}(wp.customize,jQuery,_),function(a,l,c){a.CZR_Helpers=a.CZR_Helpers||{},a.CZR_Helpers=l.extend(a.CZR_Helpers,{addActions:function(e,t,n){(n=n||this)[e]=n[e]||[],new_event_map=c.clone(n[e]),n[e]=c.union(new_event_map,c.isArray(t)?t:[t])},doActions:function(e,t,n){t.trigger(e,n)},setupDOMListeners:function(e,r,o){var s=this;o=o||s,c.isArray(e)?c.isObject(r)?(r=c.extend({model:{},dom_el:{}},r)).dom_el instanceof jQuery&&!(r.dom_el.length<1)?c.map(e,function(i){if(c.isString(i.selector)&&!c.isEmpty(i.selector))if(c.isString(i.selector)&&!c.isEmpty(i.selector)){var e=i.name&&!c.isEmpty(i.name)?i.name:[i.trigger,i.selector].join(""),t=r.dom_el.data("czr-listener-collection");if(t&&c.isArray(t)){if(t=c.isArray(t)?t:[],c.contains(t,e))return void a.errare("setupDOMListeners : aborting because listener already created for event : "+e);t.push(e)}else t=[e];r.dom_el.data("czr-listener-collection",t),r.dom_el.on(i.trigger,i.selector,function(e,t){if(e.stopPropagation(),!a.utils.isKeydownButNotEnterEvent(e)){e.preventDefault();var n=l.extend(!0,{},r);if(c.has(n,"model")&&c.has(n.model,"id")&&(c.has(o,"get")?n.model=o():n.model=o.getModel(n.model.id)),l.extend(n,{event:i,dom_event:e}),l.extend(n,t),c.has(n,"event")&&c.has(n.event,"actions"))if(serverControlParams.isDevMode)s.executeEventActionChain(n,o);else try{s.executeEventActionChain(n,o)}catch(e){a.errare("In setupDOMListeners : problem when trying to fire actions : "+n.event.actions,e)}else a.errare("executeEventActionChain : missing obj.event or obj.event.actions")}})}else a.errare("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","));else a.errare("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+i.actions.join(","))}):a.errare("setupDomListeners : dom element should be an existing dom element",r):a.errare("setupDomListeners : args should be an object",e):a.errare("setupDomListeners : event_map should be an array",r)},executeEventActionChain:function(i,r){var o=this;if("function"==typeof i.event.actions)return i.event.actions.call(r,i);c.isArray(i.event.actions)||(i.event.actions=[i.event.actions]);var s=!1;c.map(i.event.actions,function(e){if(!s){var t=function(){};if("function"==typeof e)t=e;else{if("function"!=typeof r[e])throw new Error("executeEventActionChain : the action : "+e+" has not been found when firing event : "+i.event.selector);t=r[e]}var n=c.has(i,"dom_el")&&-1!=i.dom_el.length?i.dom_el:o.container;"string"==typeof e&&n.trigger("before_"+e,c.omit(i,"event")),!1===t.call(r,i)&&(s=!0),"string"==typeof e&&n.trigger("after_"+e,c.omit(i,"event"))}})}})}(wp.customize,jQuery,_),function(i,e,r){i.czr_wpQueryDataReady=i.czr_wpQueryDataReady||e.Deferred(),i.czr_wpQueryInfos=i.czr_wpQueryInfos||new i.Value,i.bind("ready",function(){i.previewer.bind("czr-query-data-ready",function(e){i.czr_wpQueryInfos(e),"pending"==i.czr_wpQueryDataReady.state()&&i.czr_wpQueryDataReady.resolve(e)}),i.previewer.bind("czr-partial-refresh-data",function(e){i.czr_partials=i.czr_partials||new i.Value,i.czr_partials.set(e)}),i.previewer.bind("czr-partial-refresh-done",function(e){if(r.has(e,"set_id")){var t=i.CZR_Helpers.build_setId(e.set_id);if(i.has(t)){var n=i.CZR_Helpers.getControlSettingId(t);i.control.has(n)&&i.control(n).trigger("czr-partial-refresh-done")}}})})}(wp.customize,jQuery,_);var CZRInputMths=CZRInputMths||{};!function(r,o,a){o.extend(CZRInputMths,{initialize:function(e,t){if(a.isUndefined(t.input_parent)||a.isEmpty(t.input_parent))throw new Error("No input_parent assigned to input "+t.id+". Aborting");if(a.isUndefined(t.module))throw new Error("No module assigned to input "+t.id+". Aborting");r.Value.prototype.initialize.call(this,null,t);var n=this;o.extend(n,t||{}),n.constructorOptions=o.extend(!0,{},t),n.isReady=o.Deferred(),a.isUndefined(t.input_value)||n.set(t.input_value);if(n.input_event_map=[{trigger:o.trim(["change",{text:"keyup",textarea:"keyup",password:"keyup",color:"colorpickerchange",range:"input propertychange"}[n.type]||""].join(" ")),selector:"input[data-czrtype], select[data-czrtype], textarea[data-czrtype]",name:"set_input_value",actions:function(e){if(!a.has(n.input_parent,"syncElements")||!a.has(n.input_parent.syncElements,n.id))throw new Error("WARNING : THE INPUT "+n.id+" HAS NO SYNCED ELEMENT.")}}],r.czrInputMap&&a.has(r.czrInputMap,n.type)){var i=r.czrInputMap[n.type];if(a.isFunction(n[i]))try{n[i](t.input_options||null)}catch(e){r.errare("Error in input init => for input id :"+n.id+" in module type : "+n.module.module_type,e)}else if(a.isFunction(r.czrInputMap[n.type]))try{r.czrInputMap[n.type].apply(n,[t.input_options||null])}catch(e){r.errare("Error in input init => for input id :"+n.id+" in module type : "+n.module.module_type,e)}}else r.errare("Warning the input : "+n.id+" with type "+n.type+" has no corresponding method defined in api.czrInputMap.");n.visible=new r.Value(!0),n.isReady.done(function(){n.visible.bind(function(e){e?n.container.stop(!0,!0).slideDown(200):n.container.stop(!0,!0).slideUp(200)})}),n.enabled=new r.Value(!0),n.isReady.done(function(){n.enabled.bind(function(e){n.container.toggleClass("disabled",!e)})})},ready:function(){var e=this;e.setupDOMListeners(e.input_event_map,{dom_el:e.container},e),e.callbacks.add(function(){return e.inputReact.apply(e,arguments)}),o.when(e.setupSynchronizer()).done(function(){e.isReady.resolve(e)})},setupSynchronizer:function(){var e=this,t=e.input_parent,n=e.container.find("[data-czrtype]"),i=(e.container.find("[data-czrtype]").is("textarea"),new r.Element(n));t.syncElements=t.syncElements||{},(t.syncElements[e.id]=i).sync(e),i.set(e())},inputReact:function(e,t,n){var i=this,r=i.input_parent(),o=a.clone(r),s=i.is_preItemInput;i.enabled()&&((o=!a.isObject(o)||a.isEmpty(o)?{}:o)[i.id]=e,i.input_parent.set(o,{input_changed:i.id,input_value:i(),input_transport:i.transport,not_preview_sent:"postMessage"===i.transport,inputRegistrationParams:i.constructorOptions}),s||(i.input_parent.trigger(i.id+":changed",e),a.isEmpty(t)&&(a.isUndefined(t)||"postMessage"!==i.transport)||i.module.sendInputToPreview({input_id:i.id,input_parent_id:i.input_parent.id,to:e,from:t})))},setupColorPicker:function(){this.container.find("input").iris({palettes:!0,hide:!1,change:function(e,t){o(this).val(t.color.toString()).trigger("colorpickerchange").trigger("change")}})},setupColorPickerAlpha:function(){var n=this;n.container.find("input").wpColorPicker({palettes:!0,width:1440<=window.innerWidth?271:251,change:function(e,t){o(this).val(t.color.toString()).trigger("colorpickerchange").trigger("change")},clear:function(e,t){n("")}})},setupSelect:function(){o("select",this.container).not(".no-selecter-js").each(function(){o(this).selecter({})})},setupIcheck:function(e){o("input[type=checkbox]",this.container).each(function(e){0===o(this).closest('div[class^="icheckbox"]').length&&o(this).iCheck({checkboxClass:"icheckbox_flat-grey",checkedClass:"checked",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){o(this).val(!1===o(this).is(":checked")?0:1),o(e.currentTarget).trigger("change")})})},setupGutenCheck:function(e){var t=this.container.find("input[type=checkbox]"),n=o(".czr-toggle-check",this.container),i=function(){t.closest(".czr-toggle-check").toggleClass("is-checked",t.is(":checked")),n.find("svg").remove(),n.append(t.is(":checked")?'<svg class="czr-toggle-check__on" width="2" height="6" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 6"><path d="M0 0h2v6H0z"></path></svg>':'<svg class="czr-toggle-check__off" width="6" height="6" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 6"><path d="M3 1.5c.8 0 1.5.7 1.5 1.5S3.8 4.5 3 4.5 1.5 3.8 1.5 3 2.2 1.5 3 1.5M3 0C1.3 0 0 1.3 0 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z"></path></svg>')};t.on("change",i),i()},setupRadio:function(e){o("input[type=radio]",this.container).each(function(e){0===o(this).closest('div[class^="icheckbox"]').length&&o(this).iCheck({checkboxClass:"icheckbox_flat-grey",checkedClass:"checked",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){o(e.currentTarget).trigger("change")})})},setupStepper:function(e){o('input[type="number"]',this.container).each(function(e){o(this).stepper()})},setupSimpleRange:function(){},setupRangeSlider:function(e){var n,i=this,r=function(e,t){var n=i.container.find("input").data("unit");e.textContent=t+(a.isEmpty(i.container.find("input").data("unit"))?"":n)};o(i.container).find("input").rangeslider({polyfill:!1,rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",onInit:function(){n=o(".rangeslider__handle",this.$range),o(".rangeslider__handle",this.$range),r(n[0],this.value)},onSlide:function(e,t){r(n[0],t)}})},setupHAlignement:function(e){var t=this,n=o(".sek-h-align-wrapper",t.container);n.find('div[data-sek-align="'+t()+'"]').addClass("selected"),n.on("click","[data-sek-align]",function(e){e.preventDefault(),n.find(".selected").removeClass("selected"),o.when(o(this).addClass("selected")).done(function(){t(o(this).data("sek-align"))})})}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(r,i,o){i.extend(CZRInputMths,{setupImageUploaderSaveAsId:function(){this.setupImageUploader()},setupImageUploaderSaveAsUrl:function(){this.setupImageUploader({save_as_url:!0})},setupImageUploader:function(e){var t=this,n=t();if(e=o.extend({save_as_url:!1},e||{}),t.save_as_url=e.save_as_url,t.attachment={},!t.container)return this;t.tmplRendered=i.Deferred(),t.setupContentRendering(n,{}),t.tmplRendered.done(function(){t.czrImgUploaderBinding()}).fail(function(){r.errorLog("setupImageUploader => failed to fetch the template.")})},setupContentRendering:function(e,t){var n,i=this;i.attachment.id!=e&&t!==e?(o.isEmpty(e)?(i.attachment={},i.renderImageUploaderTemplate()):o.isNumber(e)||i.renderImageUploaderTemplate({fromUrl:!0,url:e}),n=wp.media.attachment(e),o.isObject(n)&&o.has(n,"attributes")&&o.has(n.attributes,"sizes")?(i.attachment=n.attributes,i.renderImageUploaderTemplate()):o.isNumber(e)&&wp.media.attachment(e).fetch().done(function(){i.attachment=this.attributes,i.renderImageUploaderTemplate()}).fail(function(){r.errorLog("renderImageUploaderTemplate => failed attempt to fetch an img with id : "+e)})):i.attachment.id&&i.attachment.id!==e||i.renderImageUploaderTemplate()},czrImgUploaderBinding:function(){var n=this;o.bindAll(n,"czrImgUploadRemoveFile","czrImgUploadOpenFrame","czrImgUploadSelect"),n.container.on("click keydown",".upload-button",n.czrImgUploadOpenFrame),n.container.on("click keydown",".thumbnail-image img",n.czrImgUploadOpenFrame),n.container.on("click keydown",".remove-button",n.czrImgUploadRemoveFile),n.bind(n.id+":changed",function(e,t){n.tmplRendered=i.Deferred(),n.setupContentRendering(e,t)})},czrImgUploadOpenFrame:function(e){r.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.frame||this.czrImgUploadInitFrame(),this.frame.open())},czrImgUploadInitFrame:function(){var e=this.getUploaderLabels();this.frame=wp.media({button:{text:e.frame_button},states:[new wp.media.controller.Library({title:e.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1})]}),this.frame.on("select",this.czrImgUploadSelect)},czrImgUploadRemoveFile:function(e){r.utils.isKeydownButNotEnterEvent(e)||(e.preventDefault(),this.attachment={},this.set(""))},czrImgUploadSelect:function(){var e=this.frame.state().get("selection").first().toJSON();window._wpmejsSettings;this.attachment=e,this.set(this.save_as_url?e.url:e.id)},renderImageUploaderTemplate:function(e){var t=this;e=o.extend({fromUrl:!1,url:""},e||{});var n=t.container.find("."+t.module.control.css_attr.img_upload_container);if(n.length&&!(t.container.length<1)){var i={button_labels:t.getUploaderLabels(),settings:t.id,attachment:t.attachment,fromUrl:e.url,canUpload:!0};return r.CZR_Helpers.getModuleTmpl({tmpl:"img-uploader",module_type:"all_modules",module_id:t.module.id}).done(function(e){n.html(r.CZR_Helpers.parseTemplate(e)(i)),t.tmplRendered.resolve(),t.container.trigger(t.id+":content_rendered")}).fail(function(e){t.tmplRendered.reject("renderImageUploaderTemplate => Problem when fetching the tmpl from server for module : "+t.module.id)}),!0}},getUploaderLabels:function(){var e=serverControlParams.i18n,n=this,t={select:e.select_image,change:e.change_image,remove:e.remove_image,default:e.default_image,placeholder:e.placeholder_image,frame_title:e.frame_title_image,frame_button:e.frame_button_image},i={};return o.each(t,function(e,t){if(o.isEmpty(e))return r.errorLog("A translated string is missing ( "+t+" ) for the image uploader input in module : "+n.module.id),void(i[t]=t);i[t]=e}),i}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(s,a,l){a.extend(CZRInputMths,{setupContentPicker:function(e){var r=this;a.extend(l.isObject(e)?e:{},{post:"",taxonomy:""}),r.wpObjectTypes=e,r.container.find(".czr-input").append('<select data-select-type="content-picker-select" class="js-example-basic-simple"></select>'),r.input_event_map=[{trigger:"change",selector:"select[data-select-type]",name:"set_input_value",actions:function(e){var t=a(e.dom_event.currentTarget,e.dom_el),n=a(t,e.dom_el).czrSelect2("data"),i={};n=l.isArray(n)?n[0]:n,l.isObject(n)&&!l.isEmpty(n)?(l.each({id:"",type_label:"",title:"",object_type:"",url:""},function(e,t){"_custom_"===n.id||l.has(n,t)&&!l.isEmpty(n[t])?i[t]=n[t]:s.errare("content_picker : missing input param : "+t)}),r.set(i)):s.errare("Content Picker Input : the picked value should be an object not empty.")}}],r.isReady.done(function(){r.setupContentSelecter()})},setupContentSelecter:function(){var o=this;if(!l.isEmpty(o())){var e={value:o().id||"",title:o().title||"",selected:"selected"};o.container.find("select").append(a("<option>",e))}o.currentAjaxAction=o.currentAjaxAction||new s.Value,o.currentAjaxAction.bind(function(e){o.defaultValueHasBeenPushed=!1}),o.container.find("select").on("czrSelect2:select czrSelect2:unselect czrSelect2:close czrSelect2:open",function(e){o.defaultValueHasBeenPushed=!1}),o.container.find("select").czrSelect2({placeholder:{id:"-1",title:"Select"},data:o.setupSelectedContents(),ajax:{url:wp.ajax.settings.url,type:"POST",dataType:"json",delay:250,debug:!0,data:function(e){var t=e.page?e.page:0;return t=e.term?e.page:t,o.currentAjaxAction(e.term?"search-available-content-items-customizer":"load-available-content-items-customizer"),{action:o.currentAjaxAction(),search:e.term,wp_customize:"on",page:t,wp_object_types:JSON.stringify(o.wpObjectTypes),nonce:s.settings.nonce.save}},processResults:function(e,t){var n={defaultOption:{id:"",title:"",type_label:"",object_type:"",url:""}};if(o.input_parent&&o.input_parent.module?o.input_parent.module.trigger("set_default_content_picker_options",{defaultContentPickerOption:n}):s.infoLog(' content_picker input => ::processResults => event "set_default_content_picker_option" not triggered when in pre-item'),!e.success)return s.errare("request failure in setupContentPicker => processResults",e),{results:n.defaultOption};var i=e.data.items,r=[];return i=l.isArray(i)?i:[],o.defaultValueHasBeenPushed=o.defaultValueHasBeenPushed||!1,"load-available-content-items-customizer"!==o.currentAjaxAction()||l.isEmpty(n.defaultOption)||n.defaultOption.id&&!o.defaultValueHasBeenPushed&&(r.push(n.defaultOption),o.defaultValueHasBeenPushed=!0),l.each(i,function(e){r.push({id:e.id,title:e.title,type_label:e.type_label,object_type:e.object,url:e.url})}),{results:r,pagination:{more:1<=i.length}}}},templateSelection:o.czrFormatContentSelected,templateResult:o.czrFormatContentSelected,escapeMarkup:function(e){return e}})},czrFormatContentSelected:function(e){if(e.loading)return e.text;var t="<div class='content-picker-item clearfix'><div class='content-item-bar'><span class='czr-picker-item-title'>"+e.title+"</span>";return e.type_label&&(t+="<span class='czr-picker-item-type'>"+e.type_label+"</span>"),t+="</div></div>"},setupSelectedContents:function(){return this()}})}(wp.customize,jQuery,_);CZRInputMths=CZRInputMths||{};!function(n,e,t){e.extend(CZRInputMths,{setupTinyMceEditor:function(){var t=this;if(!t.container)throw new Error("The input container is not set for WP text editor in module :"+t.module.id);t.input_parent.control.bind("tinyMceEditorUpdated",function(e){n.sekEditorSynchronizedInput().control_id==t.input_parent.control.id&&n.sekEditorSynchronizedInput().input_id==t.id&&(t(wp.editor.removep(e.html_content||n.sekTinyMceEditor.getContent())),e.modified_editor_element&&0<e.modified_editor_element.length?e.modified_editor_element.focus():n.sekTinyMceEditor.focus())})}})}(wp.customize,jQuery,_);var CZRItemMths=CZRItemMths||{};!function(r,o,s){o.extend(CZRItemMths,{initialize:function(e,t){if(s.isUndefined(t.module)||s.isEmpty(t.module))throw new Error("No module assigned to item "+e+". Aborting");var n=this;r.Value.prototype.initialize.call(n,null,t),n.isReady=o.Deferred(),n.embedded=o.Deferred(),n.container=null,n.contentContainer=null,n.czr_Input=new r.Values,n.inputCollection=new r.Value({}),n.viewState=new r.Value("closed"),n.removeDialogVisible=new r.Value(!1),o.extend(n,t||{}),n.defaultItemModel=s.clone(t.defaultItemModel)||{id:"",title:""};var i=o.extend(n.defaultItemModel,t.initial_item_model);i=n.validateItemModelOnInitialize(i),n.set(i),n.userEventMap=new r.Value([{trigger:"click keydown",selector:["."+n.module.control.css_attr.display_alert_btn,"."+n.module.control.css_attr.cancel_alert_btn].join(","),name:"toggle_remove_alert",actions:function(){var e=this.removeDialogVisible();this.module.closeRemoveDialogs(),this.removeDialogVisible(!e)}},{trigger:"click keydown",selector:"."+n.module.control.css_attr.remove_view_btn,name:"remove_item",actions:["removeItem"]},{trigger:"click keydown",selector:["."+n.module.control.css_attr.edit_view_btn,"."+n.module.control.css_attr.item_title].join(","),name:"edit_view",actions:["setViewVisibility"]},{trigger:"click keydown",selector:".tabs nav li",name:"tab_nav",actions:function(e){var t=o(e.dom_event.currentTarget,e.dom_el).data("tab-id");this.module.toggleTabVisibility.call(this,t),this.trigger("tab-switch",{id:t})}}]),n.isReady.done(function(){n.module.updateItemsCollection({item:n()}),n.callbacks.add(function(){return n.itemReact.apply(n,arguments)}),n.bind("contentRendered",function(){if(s.isEmpty(n.inputCollection()))if(serverControlParams.isDevMode)r.CZR_Helpers.setupInputCollectionFromDOM.call(n),n.module.setupTabNav.call(n);else try{r.CZR_Helpers.setupInputCollectionFromDOM.call(n),n.module.setupTabNav.call(n)}catch(e){r.errorLog("In item.isReady.done : "+e)}}),n.bind("contentRemoved",function(){s.has(n,"czr_Input")&&r.CZR_Helpers.removeInputCollection.call(n)}),n.canBeRendered()&&n.mayBeRenderItemWrapper(),n.embedded.done(function(){n.itemWrapperViewSetup(i)})})},ready:function(){this.isReady.resolve()},canBeRendered:function(){return!0},validateItemModelOnInitialize:function(e){return e},itemReact:function(e,t,n){var i=this,r=i.module;n=n||{},r.updateItemsCollection({item:e,params:n}).done(function(){i.writeItemViewTitle(e,n)})}})}(wp.customize,jQuery,_);CZRItemMths=CZRItemMths||{};!function(s,a,l){a.extend(CZRItemMths,{_sendItem:function(n,e){var t=this,i=t.module,r=[];l.each(e,function(e,t){e!=n[t]&&r.push(t)}),l.each(r,function(e){s.previewer.send("sub_setting",{set_id:i.control.id,id:n.id,changed_prop:e,value:n[e]}),i.trigger("item_sent",{item:n,dom_el:t.container,changed_prop:e})})},removeItem:function(e){var t=this,n=this.module,i=l.clone(n.itemCollection());n.trigger("pre_item_dom_remove",t()),t._destroyView(),i=l.without(i,l.findWhere(i,{id:t.id})),n.itemCollection.set(i),n.trigger("pre_item_api_remove",t());var r=a.extend(!0,{},t());if(n.czr_Item.remove(t.id),"postMessage"!=s(n.control.id).transport||!l.has(e,"dom_event")||l.has(e.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(n.control.id))n.trigger("item-removed",r),n.control.trigger("item-removed",r);else{var o=function(){s.previewer.unbind("ready",o),n.trigger("item-removed",r)};s.previewer.bind("ready",o),s.previewer.refresh()}},getModel:function(e){return this()}})}(wp.customize,jQuery,_);CZRItemMths=CZRItemMths||{};!function(c,d,u){d.extend(CZRItemMths,{mayBeRenderItemWrapper:function(){var t=this;"pending"==t.embedded.state()&&(!u.isEmpty(t.container)&&0<t.container.length||d.when(t.renderItemWrapper()).done(function(e){if(t.container=e,u.isUndefined(t.container)||!t.container.length)throw new Error("In mayBeRenderItemWrapper the Item view has not been rendered : "+t.id);t.embedded.resolve()}))},renderItemWrapper:function(e){var t,n,i=this,r=i.module,o=d.Deferred(),s=d.extend(!0,{},e||i()),a=function(e){r.isMultiItem()&&(u.isEmpty(e)&&o.reject("renderItemWrapper => Missing html template for module : "+r.id),t.append(e)),t.append(d("<div/>",{class:r.control.css_attr.item_content})),o.resolve(t)};if(i.trigger("item-model-before-item-wrapper-template-injection",s),t=d("<li>",{class:r.control.css_attr.single_item,"data-id":s.id,id:s.id}),r.itemsWrapper.append(t),r.isMultiItem())if(u.isEmpty(r.rudItemPart)){var l={tmpl:"rud-item-part",module_type:"all_modules",module_id:r.id,control_id:r.control.id};i.trigger("item-wrapper-tmpl-params-before-fetching",l),u.isEmpty(r[l.tmpl])?c.CZR_Helpers.getModuleTmpl(l).done(function(e){a(c.CZR_Helpers.parseTemplate(e)({is_sortable:r.sortable}))}).fail(function(e){o.reject("renderItemWrapper => Problem when fetching the rud-item-part tmpl from server for module : "+r.id)}):(n=r.getTemplateSelectorPart(l.tmpl,s),d("#tmpl-"+n).length<1&&o.reject("Missing template for item "+i.id+". The provided template script has no been found : #tmpl-"+n),a(wp.template(n)(s)))}else n=r.getTemplateSelectorPart("rudItemPart",s),d("#tmpl-"+n).length<1&&o.reject("Missing template for item "+i.id+". The provided template script has no been found : #tmpl-"+n),a(wp.template(n)(s));else a();return o.promise()},itemWrapperViewSetup:function(e){var r=this,i=this.module;item_model=r()||r.initial_item_model,r.writeItemViewTitle();var o=function(e,t,n){if(u.isUndefined(e)||!1===e.length)throw new Error("Module : "+r.module.id+", the item content has not been rendered for "+r.id);r.contentContainer=e,r.trigger("contentRendered",{item_content:e}),r.toggleItemExpansion(t,r.module.isMultiItem()?150:0),r.cleanLoader()};r.module.isMultiItem()?r.viewState.callbacks.add(function(t,e){var n=-1!==t.indexOf("expanded");i.hasModOpt()&&n&&c.czr_ModOptVisible(!1,{module:i,focus:!1}),n?u.isObject(r.contentContainer)&&!1!==r.contentContainer.length?r.toggleItemExpansion(t):(r.printLoader(),r.renderItemContent(r()||r.initial_item_model).done(function(e){o(e,t)}).fail(function(e){c.errorLog("multi-item module => failed item.renderItemContent for module : "+i.id,e)})):r.toggleItemExpansion(t).done(function(){u.isObject(r.contentContainer)&&!1!==r.contentContainer.length&&(r.trigger("beforeContenRemoved"),d("."+i.control.css_attr.item_content,r.container).children().each(function(){d(this).remove()}),d("."+i.control.css_attr.item_content,r.container).html(""),r.contentContainer=null,r.trigger("contentRemoved"))})}):(r.viewState.callbacks.add(function(e,t){r.toggleItemExpansion.apply(r,[e,0])}),r.printLoader(),r.renderItemContent(item_model).done(function(e){o(e,!0)}).fail(function(e){c.errare("mono-item module => failed item.renderItemContent for module : "+i.id,e)})),c.CZR_Helpers.setupDOMListeners(r.userEventMap(),{model:item_model,dom_el:r.container},r),r.removeDialogVisible.bind(function(e){var t=r.module,n=d("."+t.control.css_attr.remove_alert_wrapper,r.container).first();if(e&&t.closeAllItems(),e&&t.hasModOpt()&&c.czr_ModOptVisible(!1,{module:t,focus:!1}),e&&u.has(t,"preItem")&&t.preItemExpanded(!1),d("."+t.control.css_attr.remove_alert_wrapper,r.container).not(n).each(function(){d(this).hasClass("open")&&d(this).slideToggle({duration:200,done:function(){d(this).toggleClass("open",!1),d(this).siblings().find("."+t.control.css_attr.display_alert_btn).toggleClass("active",!1)}})}),e)if(u.isEmpty(t.alertPart))c.CZR_Helpers.getModuleTmpl({tmpl:"rud-item-alert-part",module_type:"all_modules",module_id:t.id,control_id:t.control.id}).done(function(e){n.html(c.CZR_Helpers.parseTemplate(e)({title:r().title||r.id})),r.trigger("remove-dialog-rendered")}).fail(function(e){c.errare("item.removeDialogVisible => Problem when fetching the tmpl from server for module : "+t.id,e)});else{if(d("#tmpl-"+t.alertPart).length<1||u.isEmpty(r.container))return void c.errare("No removal alert template available for items in module :"+t.id);n.html(wp.template(t.alertPart)({title:r().title||r.id})),r.trigger("remove-dialog-rendered")}var i=function(e){n.toggleClass("open",e),r.container.find("."+t.control.css_attr.display_alert_btn).toggleClass("active",e),e&&t._adjustScrollExpandedBlock(r.container)};e?n.stop(!0,!0).slideDown(200,function(){i(e)}):n.stop(!0,!0).slideUp(200,function(){i(e)})})},renderItemContent:function(e){var n=this,i=this.module,r=d.Deferred(),t=d.extend(!0,{},e||n());n.trigger("item-model-before-item-content-template-injection",t);var o=function(e){u.isEmpty(e)&&r.reject("renderItemContent => Missing html template for module : "+i.id);var t=d("."+i.control.css_attr.item_content,n.container);d(e).appendTo(t),r.resolve(t)};if(!u.isEmpty(i.itemInputList)||u.isFunction(i.itemInputList)){var s=i.getTemplateSelectorPart("itemInputList",t);d("#tmpl-"+s).length<1?r.reject("renderItemContent => No itemInputList content template defined for module "+i.id+". The template script id should be : #tmpl-"+s):o(wp.template(s)(t))}else{var a={tmpl:"item-inputs",module_type:i.module_type,module_id:i.id,control_id:i.control.id,item_model:t};i.trigger("filter-request-params-before-fetching-for-item-content-tmpl",a),c.CZR_Helpers.getModuleTmpl(a).done(function(e){o(c.CZR_Helpers.parseTemplate(e)(d.extend(t,{control_id:i.control.id})))}).fail(function(e){r.reject(e)})}return r.promise()},writeItemViewTitle:function(e){var t=this,n=t.module,i=e||t(),r=u.has(i,"title")&&!u.isEmpty(i.title)?c.CZR_Helpers.capitalize(i.title):i.id;r=c.CZR_Helpers.truncate(r,20),d("."+n.control.css_attr.item_title,t.container).text(r),c.CZR_Helpers.doActions("after_writeViewTitle",t.container,i,t)},setViewVisibility:function(e,t){var n=this.module;t?this.viewState.set("expanded_noscroll"):(n.closeAllItems(this.id),u.has(n,"preItem")&&n.preItemExpanded.set(!1),this.viewState.set("expanded"==this._getViewState()?"closed":"expanded"))},_getViewState:function(){return-1==this.viewState().indexOf("expanded")?"closed":"expanded"},toggleItemExpansion:function(n,e){var t="closed"!=n,i=this,r=this.module,o=d("."+r.control.css_attr.item_content,i.container).first(),s=d.Deferred(),a=function(e){i.container.toggleClass("open",e),e&&r.closeRemoveDialogs();var t=o.siblings().find("."+r.control.css_attr.edit_view_btn);t.toggleClass("active",e),e?t.removeClass("fa-pencil-alt").addClass("fa-minus-square").attr("title",serverControlParams.i18n.close):t.removeClass("fa-minus-square").addClass("fa-pencil-alt").attr("title",serverControlParams.i18n.edit),"expanded"==n&&r._adjustScrollExpandedBlock(i.container),s.resolve()};return e=u.isUndefined(e)?150:e,t?o.stop(!0,!0).slideDown(e,function(){a(t)}):o.stop(!0,!0).slideUp(0,function(){a(t)}),s.promise()},_destroyView:function(e){this.container.fadeOut({duration:e||400,done:function(){d(this).remove()}})},printLoader:function(){var e=this;e.container.css({position:"relative"}).append(c.CZR_Helpers.css_loader_html).find(".czr-css-loader").fadeIn("fast"),clearTimeout(d.data(this,"_czr_loader_active_timer_")),d.data(this,"_czr_loader_active_timer_",setTimeout(function(){e.cleanLoader()},5e3))},cleanLoader:function(){this.container.css({"min-height":""}).find(".czr-css-loader").remove()}})}(wp.customize,jQuery,_);var CZRModOptMths=CZRModOptMths||{};!function(r,o,s){o.extend(CZRModOptMths,{initialize:function(e){if(s.isUndefined(e.module)||s.isEmpty(e.module))throw new Error("No module assigned to modOpt.");var t=this;r.Value.prototype.initialize.call(t,null,e),t.isReady=o.Deferred(),t.container=null,t.inputCollection=new r.Value({}),o.extend(t,e||{}),t.defaultModOptModel=s.clone(e.defaultModOptModel)||{is_mod_opt:!0};var n=o.extend(t.defaultModOptModel,e.initial_modOpt_model),i=t.module.control;t.set(n),t.isReady.done(function(){o("."+i.css_attr.edit_modopt_icon,i.container).length||o.when(i.container.find(".customize-control-title").first().append(o("<span/>",{class:[i.css_attr.edit_modopt_icon,"fas fa-cog"].join(" "),title:serverControlParams.i18n.Settings}))).done(function(){o("."+i.css_attr.edit_modopt_icon,i.container).fadeIn(400)}),r.CZR_Helpers.setupDOMListeners([{trigger:"click keydown",selector:"."+i.css_attr.edit_modopt_icon,name:"toggle_mod_option",actions:function(){r.czr_ModOptVisible(!r.czr_ModOptVisible(),{module:t.module,focus:!1})}}],{dom_el:i.container},t)})},ready:function(){this.isReady.resolve()}})}(wp.customize,jQuery,_);CZRModOptMths=CZRModOptMths||{};!function(o,s,a){s.extend(CZRModOptMths,{modOptWrapperViewSetup:function(e){var n=this,i=this.module,r=s.Deferred();return e=n()||n.initial_modOpt_model,n.renderModOptContent(e).done(function(e){if(a.isEmpty(e)||!(0<e.length))throw new Error("Module : "+n.module.id+", the modOpt content has not been rendered");var t;t=e,o.CZR_Helpers.setupDOMListeners([{trigger:"click keydown",selector:"."+i.control.css_attr.close_modopt_icon,name:"close_mod_option",actions:function(){o.czr_ModOptVisible(!1,{module:i,focus:!1})}},{trigger:"click keydown",selector:".tabs nav li",name:"tab_nav",actions:function(e){var t=s(e.dom_event.currentTarget,e.dom_el).data("tab-id");this.module.toggleTabVisibility.call(this,t),this.trigger("tab-switch",{id:t})}}],{dom_el:t},n),r.resolve(e)}).fail(function(e){o.errorLog("failed modOpt.renderModOptContent for module : "+i.id,e)}).then(function(){n.module.setupTabNav.call(n)}),r.promise()},renderModOptContent:function(t){var n=this.module,i=s.Deferred();t=t||this();var r=function(e){a.isEmpty(e)&&i.reject("renderModOptContent => Missing html template for module : "+n.id);var t="";try{t=[serverControlParams.i18n["Options for"],n.control.params.label].join(" ")}catch(e){o.errorLog("renderItemContent => Problem with ctrl label => "+e),t=serverControlParams.i18n.Settings}s("#widgets-left").after(s("<div/>",{class:n.control.css_attr.mod_opt_wrapper,html:[['<h2 class="mod-opt-title">',t,"</h2>"].join(""),'<span class="fas fa-times '+n.control.css_attr.close_modopt_icon+'" title="close"></span>'].join("")})),s("."+n.control.css_attr.mod_opt_wrapper).append(e),i.resolve(s("."+n.control.css_attr.mod_opt_wrapper))};if(a.isEmpty(n.itemPreAddEl))o.CZR_Helpers.getModuleTmpl({tmpl:"mod-opt",module_type:n.module_type,module_id:n.id,control_id:n.control.id}).done(function(e){r(o.CZR_Helpers.parseTemplate(e)(t))}).fail(function(e){i.reject("renderPreItemView => Problem when fetching the mod-opt tmpl from server for module : "+n.id)});else{var e=n.getTemplateSelectorPart("modOptInputList",t);s("#tmpl-"+e).length<1&&i.reject("renderModOptContent => No modOpt content template defined for module "+n.id+". The template script id should be : #tmpl-"+e),r(wp.template(e)(t))}return i.promise()},toggleModPanelView:function(e){var t=this.module,n=(t.control,s.Deferred());return t.control.container.toggleClass("czr-modopt-visible",e),s("body").toggleClass("czr-editing-modopt",e),a.delay(function(){n.resolve()},200),n.promise()}})}(wp.customize,jQuery,_);var CZRModuleMths=CZRModuleMths||{};!function(o,s,a){s.extend(CZRModuleMths,{initialize:function(e,t){if(a.isUndefined(t.control)||a.isEmpty(t.control))throw new Error("No control assigned to module "+e);var n=this;o.Value.prototype.initialize.call(this,null,t),n.isReady=s.Deferred(),s.extend(n,t||{}),s.extend(n,{crudModulePart:"",rudItemPart:"",ruItemPart:"",alertPart:"",itemInputList:"",modOptInputList:""}),n.embedded=s.Deferred(),n.itemsWrapper="",n.container=s(n.control.selector),n.renderModuleParts().done(function(e){if(!1===e.length)throw new Error("The items wrapper has not been rendered for module : "+n.id);n.itemsWrapper=e,n.embedded.resolve()}).fail(function(e){throw new Error(["initialize module => failed module.renderModuleParts() for module : ",n.id,e].join(" "))}),n.defaultAPImodOptModel={initial_modOpt_model:{},defaultModOptModel:{},control:{},module:{}},n.defaultModOptModel={},n.modOptConstructor=n.modOptConstructor||o.CZRModOpt,n.itemCollection=new o.Value([]),n.defaultAPIitemModel={id:"",initial_item_model:{},defaultItemModel:{},control:{},module:{},is_added_by_user:!1},n.defaultItemModel=o.czrModuleMap[n.module_type].defaultItemModel||{id:"",title:""},n.itemConstructor=n.itemConstructor||o.CZRItem,n.czr_Item=new o.Values,n.inputConstructor=n.inputConstructor||o.CZRInput,n.hasModOpt()&&(n.inputModOptConstructor=n.inputModOptConstructor||o.CZRInput),n.inputOptions={},n.isReady.done(function(){n.isDirty=new o.Value(t.dirty||!1),n.initializeModuleModel(t).done(function(e){n.set(e)}).fail(function(e){o.errare("Module : "+n.id+" initialize module model failed : ",e)}).always(function(e){n.callbacks.add(function(){return n.moduleReact.apply(n,arguments)}),n.control.isModuleRegistered(n.id)||n.control.updateModulesCollection({module:t,is_registered:!1}),n.bind("items-collection-populated",function(e){n.itemCollection.callbacks.add(function(){return n.itemCollectionReact.apply(n,arguments)}),!1!==n.sortable&&n._makeItemsSortable()}),n.populateSavedItemCollection(),n.hasModOpt()&&n.instantiateModOpt()})}),!0===o.czrModuleMap[n.module_type].ready_on_section_expanded&&(a.has(o,"czr_activeSectionId")&&n.control.section()==o.czr_activeSectionId()&&"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()}),o.section(n.control.section(),function(e){e.expanded.bind(function(e){"resolved"!=n.isReady.state()&&n.embedded.then(function(){n.ready()})})})),this.maybeAwakeAndBindSharedModOpt()},ready:function(){this.isReady.resolve()},initializeModuleModel:function(e){var t=s.Deferred();if(!this.isMultiItem()&&!this.isCrud()&&a.isEmpty(e.items)){var n=a.clone(this.defaultItemModel);e.items=[s.extend(n,{id:this.id})]}return t.resolve(e).promise()},itemCollectionReact:function(e,t,n){var i=this(),r=s.extend(!0,{},i);r.items=e,this.isDirty.set(!0),this.set(r,n||{})},filterItemsBeforeCoreApiSettingValue:function(e){return e},moduleReact:function(e,t,n){var i=this.control;a.size(t.items)==a.size(e.items)&&a.isEmpty(a.difference(e.items,t.items)),e.column_id,t.column_id;i.updateModulesCollection({module:s.extend(!0,{},e),data:n})},getModuleSection:function(){return this.section},isMultiItem:function(){return o.CZR_Helpers.isMultiItemModule(null,this)},isCrud:function(){return o.CZR_Helpers.isCrudModule(null,this)},hasModOpt:function(){return o.CZR_Helpers.hasModuleModOpt(null,this)},instantiateModOpt:function(){var o=this,e=o.prepareModOptForAPI(o().modOpt||{});o.czr_ModOpt=new o.modOptConstructor(e),o.czr_ModOpt.ready(),o.czr_ModOpt.callbacks.add(function(e,t,n){var i=o(),r=s.extend(!0,{},i);r.modOpt=e,o.isDirty(!0),o(r,n)})},prepareModOptForAPI:function(n){var i=this,r={};return n=a.isObject(n)?n:{},a.each(i.defaultAPImodOptModel,function(e,t){n[t];switch(t){case"initial_modOpt_model":a.each(i.getDefaultModOptModel(),function(e,t){a.has(n,t)||(n[t]=e)}),r[t]=n;break;case"defaultModOptModel":r[t]=a.clone(i.defaultModOptModel);break;case"control":r[t]=i.control;break;case"module":r[t]=i}}),r},getDefaultModOptModel:function(e){return s.extend(a.clone(this.defaultModOptModel),{is_mod_opt:!0})},sendInputToPreview:function(e){var t=this;e=a.extend({input_id:"",input_parent_id:"",to:null,from:null},e),a.isEqual(e.to,e.from)||(o.previewer.send("czr_input",{set_id:o.CZR_Helpers.getControlSettingId(t.control.id),module_id:t.id,module:{items:s.extend(!0,{},t().items),modOpt:t.hasModOpt()?s.extend(!0,{},t().modOpt):{}},input_parent_id:e.input_parent_id,input_id:e.input_id,value:e.to,isPartialRefresh:e.isPartialRefresh}),t.trigger("input_sent",{input:e.to,dom_el:t.container}))},sendModuleInputsToPreview:function(i){var r=this,t=function(){var n=this,e=s.extend(!0,{},n());e=a.omit(e,"id"),a.each(e,function(e,t){r.sendInputToPreview({input_id:t,input_parent_id:n.id,to:e,from:null,isPartialRefresh:i.isPartialRefresh})})};r.czr_Item.each(function(e){t.call(e)}),r.hasModOpt()&&t.call(r.czr_ModOpt)},maybeAwakeAndBindSharedModOpt:function(){a.isUndefined(o.czr_ModOptVisible)&&(o.czr_ModOptVisible=new o.Value(!1),o.czr_ModOptVisible.bind(function(t,e,n){if(n=n||{},a.isFunction(n.module)&&a.isFunction(n.module.czr_ModOpt)){var i=n.module.czr_ModOpt,r=n.module;t?(r.closeRemoveDialogs().closeAllItems(),i.modOptWrapperViewSetup(i()).done(function(e){i.container=e;try{o.CZR_Helpers.setupInputCollectionFromDOM.call(i).toggleModPanelView(t)}catch(e){o.consoleLog(e)}r&&n.focus&&a.delay(function(){!a.isNull(i.container)&&i.container.find('[data-tab-id="'+n.focus+'"] a').length&&i.container.find('[data-tab-id="'+n.focus+'"] a').trigger("click")},200)})):i.toggleModPanelView(t).done(function(){i.container&&0<i.container.length?s.when(i.container.remove()).done(function(){o.CZR_Helpers.removeInputCollection.call(i)}):o.CZR_Helpers.removeInputCollection.call(i),i.container=null})}else o.errare("moduleCtor::maybeAwakeAndBindSharedModOpt => api.czr_ModOptVisible.bind() => incorrect arguments",n)}))}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(r,s,a){s.extend(CZRModuleMths,{populateSavedItemCollection:function(e){var t,i=this;a.isArray(e||i().items)?(t=s.extend(!0,[],e||i().items),a.each(t,function(e,t){if(a.has(e,"is_mod_opt"))throw new Error("populateSavedItemCollection => there should be no mod opt to instantiate here.")}),i.trigger("filterItemCandidatesBeforeInstantiation",t),a.each(t,function(t,e){var n=function(){var e=i.instantiateItem(t);a.isFunction(e)?e.ready():r.errare("populateSavedItemCollection => Could not instantiate item in module "+i.id,t)};if(serverControlParams.isDevMode)n();else try{n()}catch(e){r.errare("populateSavedItemCollection => "+e)}}),a.each(t,function(e){if(a.isObject(e)&&a.isUndefined(a.findWhere(i.itemCollection(),e.id)))throw new Error("populateSavedItemCollection => The saved items have not been properly populated in module : "+i.id)}),i.trigger("items-collection-populated")):r.errorLog("populateSavedItemCollection : The saved items collection must be an array in module :"+i.id)},instantiateItem:function(e,t){var n=this;if(e=a.isObject(e)?e:{},(e=n.validateItemBeforeAddition(e,t))&&!a.isNull(e))if(e=n.prepareItemForAPI(e),a.isObject(e)){if(e&&!a.isNull(e)){if(!a.has(e,"id"))throw new Error("CZRModule::instantiateItem() => an item has no id and could not be added in the collection of : "+this.id);if(n.czr_Item.has(e.id))throw new Error("CZRModule::instantiateItem() => the following item id "+e.id+" already exists in module.czr_Item() for module "+this.id);if(n.czr_Item.add(e.id,new n.itemConstructor(e.id,e)),!n.czr_Item.has(e.id))throw new Error("CZRModule::instantiateItem() => instantiation failed for item id "+e.id+" for module "+this.id);return n.czr_Item(e.id)}r.errare("CZRModule::instantiateItem() => item_candidate invalid in module "+n.id)}else r.errare("CZRModule::instantiateItem() => an item should be described by an object in module type : "+n.module_type,"module id : "+n.id);else r.errare("CZRModule::instantiateItem() => item_candidate did not pass validation in module "+n.id)},validateItemBeforeAddition:function(e,t){return e},prepareItemForAPI:function(i){var r=this,o={};return i=a.isObject(i)?i:{},a.each(r.defaultAPIitemModel,function(e,t){var n=i[t];switch(t){case"id":a.isEmpty(n)?o[t]=r.generateItemId(r.module_type):r.isItemRegistered(n)?r.generateItemId(n):o[t]=n;break;case"initial_item_model":a.each(r.getDefaultItemModel(),function(e,t){a.has(i,t)||(i[t]=e)}),o[t]=i;break;case"defaultItemModel":o[t]=a.clone(r.defaultItemModel);break;case"control":o[t]=r.control;break;case"module":o[t]=r;break;case"is_added_by_user":o[t]=!!a.isBoolean(n)&&n}}),a.has(o,"id")||(o.id=r.generateItemId(r.module_type)),o.initial_item_model.id=o.id,r.validateItemBeforeInstantiation(o)},validateItemBeforeInstantiation:function(e){return e},generateItemId:function(e,t,n){if(100<(n=n||1))throw new Error("Infinite loop when generating of a module id.");var i=this,r=e+"_"+(t=t||i._getNextItemKeyInCollection());if(!a.has(i,"itemCollection")||!a.isArray(i.itemCollection()))throw new Error("The item collection does not exist or is not properly set in module : "+i.id);return i.isItemRegistered(r)?(t++,n++,i.generateItemId(e,t,n)):r},_getNextItemKeyInCollection:function(){var e=this,t={},n=0;return a.isEmpty(e.itemCollection())||(t=a.isArray(e.itemCollection())&&1===a.size(e.itemCollection())?e.itemCollection()[0]:a.max(e.itemCollection(),function(e){return a.isNumber(e.id.replace(/[^\/\d]/g,""))?parseInt(e.id.replace(/[^\/\d]/g,""),10):0}),!a.isUndefined(t)&&a.isNumber(t.id.replace(/[^\/\d]/g,""))&&(n=parseInt(t.id.replace(/[^\/\d]/g,""),10)+1)),n},isItemRegistered:function(e){return!a.isUndefined(a.findWhere(this.itemCollection(),{id:e}))},updateItemsCollection:function(e){var t=this,n=t.itemCollection(),i=a.clone(n),r=s.Deferred();if(!a.has(e,"collection")){if(!a.has(e,"item"))throw new Error("updateItemsCollection, no item provided "+t.control.id+". Aborting");e=a.extend({params:{}},e);var o=a.clone(e.item);return a.each(t.defaultItemModel,function(e,t){if(!a.has(o,t))throw new Error('CZRModuleMths => updateItemsCollection : Missing property "'+t+'" for item candidate')}),a.findWhere(i,{id:o.id})?a.each(n,function(e,t){e.id==o.id&&(i[t]=o)}):i.push(o),t.itemCollection.set(i,e.params),r.resolve({collection:i,params:e.params}).promise()}t.itemCollection.set(e.collection)},_getSortedDOMItemCollection:function(){var n=a.clone(this.itemCollection()),i=[],e=s.Deferred();if(s("."+this.control.css_attr.single_item,this.container).each(function(e){var t=a.findWhere(n,{id:s(this).attr("data-id")});t&&(i[e]=t)}),n.length!=i.length)throw new Error("There was a problem when re-building the item collection from the DOM in module : "+this.id);return e.resolve(i).promise()},refreshItemCollection:function(){var t=this;t.czr_Item.each(function(e){t.czr_Item(e.id).container&&0<t.czr_Item(e.id).container.length&&s.when(t.czr_Item(e.id).container.remove()).done(function(){t.czr_Item.remove(e.id)})}),t.itemCollection=new r.Value([]),t.populateSavedItemCollection()}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(e,o,s){o.extend(CZRModuleMths,{getDefaultItemModel:function(e){return o.extend(s.clone(this.defaultItemModel),{id:e||""})},_initNewItem:function(e,t){var n,i=this,r={id:""};return t=void 0!==t?t:s.size(i.itemCollection()),s.isNumber(t)?n=i.module_type+"_"+t:(n=t,t=0),r=e&&!s.isEmpty(e)?o.extend(e,{id:n}):this.getDefaultItemModel(n),s.has(r,"id")&&i._isItemIdPossible(n)?(s.map(i.getDefaultItemModel(),function(e,t){s.has(r,t)||(r[t]=e)}),r):i._initNewItem(r,t+1)}})}(wp.customize,jQuery,_);CZRModuleMths=CZRModuleMths||{};!function(o,s,a){s.extend(CZRModuleMths,{renderModuleParts:function(){var n=this,i=s(n.container),r=s.Deferred(),t=function(e){n.isCrud()&&(a.isEmpty(e)&&r.reject("renderModuleParts => Missing html template for module : "+n.id),i.append(e));var t=s("<ul/>",{class:[n.control.css_attr.items_wrapper,n.module_type,n.isMultiItem()?"multi-item-mod":"mono-item-mod",n.isCrud()?"crud-mod":"not-crud-mod"].join(" ")});i.append(t),r.resolve(s(t,i))};return n.isCrud()?a.isEmpty(n.crudModulePart)?o.CZR_Helpers.getModuleTmpl({tmpl:"crud-module-part",module_type:"all_modules",module_id:n.id,control_id:n.control.id}).done(function(e){t(o.CZR_Helpers.parseTemplate(e)({}))}).fail(function(e){o.errare("renderModuleParts => fail response =>",e),r.reject("renderModuleParts => Problem when fetching the crud-module-part tmpl from server for module : "+n.id)}):(s("#tmpl-"+n.crudModulePart).length<1&&r.reject("renderModuleParts => no crud Module Part template for module "+n.id+". The template script id should be : #tmpl-"+n.crudModulePart),t(wp.template(n.crudModulePart)({}))):t(),r.promise()},getTemplateSelectorPart:function(e,t){var n,i=this;switch(e){case"rudItemPart":n=i.rudItemPart;break;case"ruItemPart":n=i.ruItemPart;break;case"modOptInputList":n=i.modOptInputList;break;case"itemInputList":n=a.isFunction(i.itemInputList)?i.itemInputList(t):i.itemInputList}if(a.isEmpty(n))throw new Error("No valid template has been found in getTemplateSelectorPart() "+i.id+". Aborting");return n},getViewEl:function(e){return s('[data-id = "'+e+'"]',this.container)},closeAllItems:function(t){var n=this,e=a.clone(n.itemCollection()),i=a.filter(e,function(e){return e.id!=t});return a.each(i,function(e){n.czr_Item.has(e.id)&&"expanded"==n.czr_Item(e.id)._getViewState(e.id)&&n.czr_Item(e.id).viewState.set("closed")}),this},_adjustScrollExpandedBlock:function(e,t){if(e.length&&!a.isUndefined(this.getModuleSection())){var n,i=s(".accordion-section-content",this.section.container),r=i.scrollTop(),o=t||90;setTimeout(function(){e.offset().top+e.height()+o>s(window.top).height()&&0<(n=e.offset().top+e.height()+o-s(window.top).height())&&i.animate({scrollTop:r+n},500)},50)}},closeRemoveDialogs:function(){if(a.isArray(this.itemCollection()))return this.czr_Item.each(function(e){e.removeDialogVisible(!1)}),this},_makeItemsSortable:function(e){if(!wp.media.isTouchDevice&&s.fn.sortable){var n=this;s("."+n.control.css_attr.items_wrapper,n.container).sortable({handle:"."+n.control.css_attr.item_sort_handle,start:function(){},update:function(e,t){n._getSortedDOMItemCollection().done(function(e){n.itemCollection.set(e)}).then(function(){!function(){a.has(n,"preItem")&&n.preItemExpanded.set(!1),n.closeAllItems().closeRemoveDialogs();var e=function(){o.previewer.refresh()};"postMessage"!=o(n.control.id).transport||o.CZR_Helpers.hasPartRefresh(n.control.id)||(e=a.debounce(e,500))(),n.trigger("item-collection-sorted")}()})}})}},toggleTabVisibility:function(e){var t=this;s(t.container).find("li"),s(t.container).find("section");s(".tabs nav li",t.container).each(function(){s(this).removeClass("tab-current").addClass("tab-inactive")}),s(t.container).find('li[data-tab-id="'+e+'"]').addClass("tab-current").removeClass("tab-inactive"),s("section",t.container).each(function(){s(this).removeClass("content-current")}),s(t.container).find('section[id="'+e+'"]').addClass("content-current")},setupTabNav:function(){var i=this;setTimeout(function(){(function(){var e=s.Deferred(),t=s(".tabs nav li",i.container);t.each(function(){s(this).removeClass("tab-current").addClass("tab-inactive")}),t.first().addClass("tab-current").removeClass("tab-inactive"),s("section",i.container).first().addClass("content-current");var n=t.length;return t.each(function(){s(this).addClass(0<n?"cols-"+n:"")}),e.resolve().promise()})().done(function(){s(".tabs",i.container).show()})},20)}})}(wp.customize,jQuery,_);var CZRDynModuleMths=CZRDynModuleMths||{};!function(s,a,l){a.extend(CZRDynModuleMths,{initialize:function(e,t){var n=this;s.CZRModule.prototype.initialize.call(n,e,t),a.extend(n,{itemPreAddEl:""}),n.preItemsWrapper="",n.preItemExpanded=new s.Value(!1),n.itemAddedMessage=serverControlParams.i18n.successMessage;var i=function(e){n.addItem(e).done(function(e){n.czr_Item(e,function(e){e.embedded.then(function(){e.viewState("expanded")})})}).fail(function(e){s.errare("module.addItem failed on add_item",e)})};n.userEventMap=new s.Value([{trigger:"click keydown",selector:["."+n.control.css_attr.open_pre_add_btn,"."+n.control.css_attr.cancel_pre_add_btn].join(","),name:"pre_add_item",actions:["closeAllItems","closeRemoveDialogs",function(e){var t={addTheItem:!0};this.trigger("is-item-addition-possible",t),t.addTheItem&&this.hasPreItem?this.preItemExpanded.set(!this.preItemExpanded()):i(e)}]},{trigger:"click keydown",selector:"."+n.control.css_attr.add_new_btn,name:"add_item",actions:function(e){n.closeRemoveDialogs(e).closeAllItems(e),i(e)}}])},ready:function(){var t=this;t.setupDOMListeners(t.userEventMap(),{dom_el:t.container}),t.preItem=new s.Value(t.getDefaultItemModel()),t.preItemExpanded.callbacks.add(function(e){e?t.renderPreItemView().done(function(e){t.preItemsWrapper=e,t.preItem(t.getDefaultItemModel()),t.trigger("before-pre-item-input-collection-setup"),t.setupPreItemInputCollection()}).fail(function(e){s.errorLog("Pre-Item : "+e)}):a.when(t.preItemsWrapper.remove()).done(function(){t.preItem.czr_Input={},t.preItemsWrapper=null,t.trigger("pre-item-input-collection-destroyed")}),t._togglePreItemViewExpansion(e)}),s.CZRModule.prototype.ready.call(t)},setupPreItemInputCollection:function(){var n=this;n.preItem.czr_Input=new s.Values,a("."+n.control.css_attr.pre_add_wrapper,n.container).find("."+n.control.css_attr.sub_set_wrapper).each(function(e){var t=a(this).find("[data-czrtype]").attr("data-czrtype")||"sub_set_"+e;n.preItem.czr_Input.add(t,new n.inputConstructor(t,{id:t,type:a(this).attr("data-input-type"),container:a(this),input_parent:n.preItem,module:n,is_preItemInput:!0})),n.preItem.czr_Input(t).ready()}),n.trigger("pre-item-input-collection-ready")},itemCanBeInstantiated:function(){return!0},addItem:function(n){var t=a.Deferred();if(!this.itemCanBeInstantiated())return t.reject().promise();var i=this,r=i.preItem(),o=function(){i.preItemExpanded.set(!1)};if(l.isEmpty(r)||!l.isObject(r))return s.errorLog("addItem : an item_candidate should be an object and not empty. In : "+i.id+". Aborted."),t.reject().promise();o=l.debounce(o,200);var e=function(){var e=i.instantiateItem(r,!0);return l.isFunction(e)?e.ready():s.errare("populateSavedItemCollection => Could not instantiate item in module "+i.id,r),e};if(serverControlParams.isDevMode)e();else try{e()}catch(e){return s.errare("populateSavedItemCollection : "+e),t.reject().promise()}return i.czr_Item.has(r.id)?(a.Deferred(function(){var t=this;i.czr_Item(r.id).isReady.then(function(){o(),i.trigger("item-added",r);var e=function(){s.previewer.unbind("ready",e),t.resolve()};i.refresh_on_add_item?"postMessage"!=s(i.control.id).transport||!l.has(n,"dom_event")||l.has(n.dom_event,"isTrigger")||s.CZR_Helpers.hasPartRefresh(i.control.id)?t.resolve():(s.previewer.bind("ready",e),s.previewer.refresh()):t.resolve()})}).always(function(){t.resolve(r.id)}),t.promise()):t.reject("populateSavedItemCollection : the item "+r.id+" has not been instantiated in module "+i.id).promise()}})}(wp.customize,jQuery,_);CZRDynModuleMths=CZRDynModuleMths||{};!function(r,o,s){o.extend(CZRDynModuleMths,{renderPreItemView:function(e){var n=this,i=o.Deferred();if(s.isObject(n.preItemsWrapper)&&0<n.preItemsWrapper.length)return i.resolve(n.preItemsWrapper).promise();var t=function(e){!s.isEmpty(e)&&n.container||i.reject("renderPreItemView => Missing html template for module : "+n.id);var t=o("."+n.control.css_attr.pre_add_item_content,n.container);t.prepend(o("<div>",{class:"pre-item-wrapper"})),t.find(".pre-item-wrapper").append(e),i.resolve(t.find(".pre-item-wrapper")).promise()};return s.isEmpty(n.itemPreAddEl)?r.CZR_Helpers.getModuleTmpl({tmpl:"pre-item",module_type:n.module_type,module_id:n.id,control_id:n.control.id}).done(function(e){t(r.CZR_Helpers.parseTemplate(e)())}).fail(function(e){i.reject(["renderPreItemView for module : ",n.id,e].join(" "))}):(o("#tmpl-"+n.itemPreAddEl).length<1&&i.reject("renderPreItemView => Missing itemPreAddEl or template in module "+n.id),t(wp.template(n.itemPreAddEl)())),i.promise()},_getPreItemView:function(){return o("."+this.control.css_attr.pre_add_item_content,this.container)},_togglePreItemViewExpansion:function(t){var n=this;o("."+n.control.css_attr.pre_add_item_content,n.container).slideToggle({duration:200,done:function(){var e=o("."+n.control.css_attr.open_pre_add_btn,n.container);o(this).toggleClass("open",t),t?e.find(".fas").removeClass("fa-plus-square").addClass("fa-minus-square"):e.find(".fas").removeClass("fa-minus-square").addClass("fa-plus-square"),e.toggleClass("active",t),o(n.container).toggleClass(n.control.css_attr.adding_new,t),n._adjustScrollExpandedBlock(o(this),120)}})},toggleSuccessMessage:function(e){var t=this,n=t.itemAddedMessage,i=o("."+t.control.css_attr.pre_add_wrapper,t.container);return $_success_wrapper=o("."+t.control.css_attr.pre_add_success,t.container),"on"==e?($_success_wrapper.find("p").text(n),$_success_wrapper.css("z-index",1000001).css("height",i.height()+"px").css("line-height",i.height()+"px")):$_success_wrapper.attr("style",""),t.container.toggleClass("czr-model-added","on"==e),this}})}(wp.customize,jQuery,_);var CZRBaseControlMths=CZRBaseControlMths||{};!function(i,e,r){e.extend(CZRBaseControlMths,{initialize:function(e,t){var n=this;n.css_attr=r.has(serverControlParams,"css_attr")?serverControlParams.css_attr:{},i.Control.prototype.initialize.call(n,e,t),n.bind("czr-partial-refresh-done",function(){r.has(n,"czr_moduleCollection")&&r.each(n.czr_moduleCollection(),function(e){n.czr_Module(e.id)&&n.czr_Module(e.id).sendModuleInputsToPreview({isPartialRefresh:!0})})})},refreshPreview:function(e){this.previewer.refresh()}})}(wp.customize,jQuery,_);var CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(l,c,d){c.extend(CZRBaseModuleControlMths,{initialize:function(e,t){var n=this;if(!l.has(e))throw new Error("Missing a registered setting for control : "+e);n.czr_Module=new l.Values,n.czr_moduleCollection=new l.Value,n.czr_moduleCollection.set([]),n.moduleCollectionReady=c.Deferred(),n.moduleCollectionReady.done(function(e){n.czr_moduleCollection.callbacks.add(function(){return n.moduleCollectionReact.apply(n,arguments)})}),l.CZRBaseControl.prototype.initialize.call(n,e,t),l.section(n.section(),function(e){e.expanded.bind(function(e){n.czr_Module.each(function(e){e.closeAllItems().closeRemoveDialogs(),d.has(e,"preItem")&&e.preItemExpanded(!1)})})})},ready:function(){var n=this,i={};try{n.getSavedModules()}catch(e){return l.errare("api.CZRBaseControl::ready() => error on control.getSavedModules()",e),void n.moduleCollectionReady.reject()}d.each(n.getSavedModules(),function(t,e){if(i=t,serverControlParams.isDevMode)n.instantiateModule(t,{});else try{n.instantiateModule(t,{})}catch(e){return void l.errare("api.CZRBaseControl::Failed to instantiate module "+t.id,e)}n.container.attr("data-module",t.id)}),n.moduleCollectionReady.resolve(i)},getDefaultModuleApiModel:function(){return{id:"",module_type:"",modOpt:{},items:[],crud:!1,hasPreItem:!0,refresh_on_add_item:!0,multi_item:!1,sortable:!1,control:{},section:""}},getSavedModules:function(){var n=this,e=[],i=n.params.module_type,r=[],o=[],s={};l.CZR_Helpers.isMultiItemModule(i)||d.isEmpty(l(n.id)())||d.isObject(l(n.id)())||l.errare("api.CZRBaseControl::getSavedModules => module Control Init for "+n.id+" : a mono item module control value should be an object if not empty.");var t=l.CZR_Helpers.getControlSettingId(n.id),a=l(t)();return r=d.isEmpty(a)?[]:d.isArray(a)?a:[a],d.each(r,function(e,t){d.isObject(e)?(d.isEmpty(e)||d.each(e,function(e,t){d.isString(t)||l.errare("api.CZRBaseControl::::getSavedModules => item not well formed in control : "+n.id+" => module type => "+n.params.module_type,r)}),l.CZR_Helpers.hasModuleModOpt(i)&&0===t&&(d.has(e,"id")?l.errare("api.CZRBaseControl::getSavedModules : the module "+i+" in control "+n.id+" has no mod_opt defined while it should."):s=e),d.has(e,"is_mod_opt")||o.push(e)):l.errare("api.CZRBaseControl::::getSavedModules => an item must be an object in control "+n.id+" => module type => "+n.params.module_type,r)}),e.push({id:l.CZR_Helpers.getOptionName(n.id)+"_"+n.params.type,module_type:n.params.module_type,section:n.section(),modOpt:c.extend(!0,{},s),items:c.extend(!0,[],o)}),e},isModuleRegistered:function(e){return!d.isUndefined(d.findWhere(this.czr_moduleCollection(),{id:e}))}})}(wp.customize,jQuery,_);CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(s,e,a){e.extend(CZRBaseModuleControlMths,{instantiateModule:function(e,t){if(!a.has(e,"id"))throw new Error("CZRModule::instantiateModule() : a module has no id and could not be added in the collection of : "+this.id+". Aborted.");var n=this;if((a.isUndefined(t)||a.isEmpty(t))&&(t=n.getModuleConstructor(e)),!a.isEmpty(e.id)&&n.czr_Module.has(e.id))throw new Error("The module id already exists in the collection in control : "+n.id);var i=n.prepareModuleForAPI(e);if(n.czr_Module.add(i.id,new t(i.id,i)),!n.czr_Module.has(i.id))throw new Error("instantiateModule() : instantiation failed for module id "+i.id+" in control "+n.id);return n.czr_Module(i.id)},getModuleConstructor:function(e){var t;if(!a.has(e,"module_type"))throw new Error("CZRModule::getModuleConstructor : no module type found for module "+e.id);if(!a.has(s.czrModuleMap,e.module_type))throw new Error("Module type "+e.module_type+" is not listed in the module map api.czrModuleMap.");var n=s.czrModuleMap[e.module_type].mthds;if(t=(s.czrModuleMap[e.module_type].crud?s.CZRDynModule:s.CZRModule).extend(n),a.isUndefined(t)||a.isEmpty(t)||!t)throw new Error("CZRModule::getModuleConstructor : no constructor found for module type : "+e.module_type+".");return t},prepareModuleForAPI:function(i){if(!a.isObject(i))throw new Error("prepareModuleForAPI : a module must be an object to be instantiated.");var r=this,o={};return a.each(r.getDefaultModuleApiModel(),function(e,t){var n=i[t];switch(t){case"id":a.isEmpty(n)?o[t]=r.generateModuleId(i.module_type):o[t]=n;break;case"module_type":if(!a.isString(n)||a.isEmpty(n))throw new Error("prepareModuleForAPI : a module type must a string not empty");o[t]=n;break;case"items":if(!a.isArray(n))throw new Error("prepareModuleForAPI : a module item list must be an array");o[t]=n;break;case"modOpt":if(!a.isObject(n))throw new Error("prepareModuleForAPI : a module modOpt property must be an object");o[t]=n;break;case"crud":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].crud,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "crud" must be a boolean');o[t]=n||!1;break;case"hasPreItem":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].hasPreItem,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "hasPreItem" must be a boolean');o[t]=n||!1;break;case"refresh_on_add_item":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].refresh_on_add_item,a.isUndefined(n)&&(n=e);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "refresh_on_add_item" must be a boolean');o[t]=n||!1;break;case"multi_item":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].multi_item,a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].crud);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "multi_item" must be a boolean');o[t]=n||!1;break;case"sortable":if(a.has(s.czrModuleMap,i.module_type))n=s.czrModuleMap[i.module_type].sortable,a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].crud),a.isUndefined(n)&&(n=s.czrModuleMap[i.module_type].multi_item);else if(!a.isUndefined(n)&&!a.isBoolean(n))throw new Error('prepareModuleForAPI : the module param "sortable" must be a boolean');o[t]=n||!1;break;case"control":o[t]=r;break;case"section":if(!a.isString(n)||a.isEmpty(n))throw new Error("prepareModuleForAPI : a module section must be a string not empty");o[t]=n;break;case"dirty":o[t]=n||!1}}),o},generateModuleId:function(e,t,n){if(100<(n=n||1))throw new Error("Infinite loop when generating of a module id.");var i=this,r=e+"_"+(t=t||i._getNextModuleKeyInCollection());if(!a.has(i,"czr_moduleCollection")||!a.isArray(i.czr_moduleCollection()))throw new Error("The module collection does not exist or is not properly set in control : "+i.id);return i.isModuleRegistered(r)?(t++,n++,i.generateModuleId(e,t,n)):r},_getNextModuleKeyInCollection:function(){var e={},t=0;return a.isEmpty(this.czr_moduleCollection())||(e=a.max(this.czr_moduleCollection(),function(e){return parseInt(e.id.replace(/[^\/\d]/g,""),10)}),t=parseInt(e.id.replace(/[^\/\d]/g,""),10)+1),t}})}(wp.customize,jQuery,_);CZRBaseModuleControlMths=CZRBaseModuleControlMths||{};!function(s,a,l){a.extend(CZRBaseModuleControlMths,{updateModulesCollection:function(e){var t=this,n=t.czr_moduleCollection(),i=a.extend(!0,[],n);if(l.has(e,"collection"))t.czr_moduleCollection.set(e.collection,e.data||{});else{if(!l.has(e,"module"))throw new Error("updateModulesCollection, no module provided "+t.id+". Aborting");var r=t.prepareModuleForAPI(l.clone(e.module));l.findWhere(i,{id:r.id})?l.each(n,function(e,t){e.id==r.id&&(i[t]=r)}):i.push(r);var o={};l.has(e,"data")&&(o=a.extend(!0,{},e.data),a.extend(o,{module:r})),t.czr_moduleCollection.set(i,o)}},moduleCollectionReact:function(t,e,n){var i=l.size(t)>l.size(e),r=l.size(e)>l.size(t);l.size(e),l.size(t);if(is_collection_sorted=!1,r){var o=l.filter(e,function(e){return l.isUndefined(l.findWhere(t,{id:e.id}))});o=o[0],this.czr_Module.remove(o.id)}if(l.isObject(n)&&l.has(n,"module")&&(n.module_id=n.module.id,n.moduleRegistrationParams=n.module,n.module=this.prepareModuleForDB(a.extend(!0,{},n.module))),!i)if(serverControlParams.isDevMode)s(this.id).set(this.filterModuleCollectionBeforeAjax(t),n);else try{s(this.id).set(this.filterModuleCollectionBeforeAjax(t),n)}catch(e){s.errare("api.CZRBaseControl::moduleCollectionReact => error when firing control.filterModuleCollectionBeforeAjax( to )",e)}},filterModuleCollectionBeforeAjax:function(e){var t,i=this,n=a.extend(!0,[],e),r=[];if(l.each(n,function(e,t){var n=a.extend(!0,{},e);r[t]=i.prepareModuleForDB(n)}),1<l.size(n))throw new Error("There should not be several modules in the collection of control : "+i.id);if(!l.isArray(n)||l.isEmpty(n)||!l.has(n[0],"items"))throw new Error("The setting value could not be populated in control : "+i.id);var o=n[0].id;if(!i.czr_Module.has(o))throw new Error("The single module control ("+i.id+") has no module registered with the id "+o);var s=i.czr_Module(o);if(!l.isArray(s().items))throw new Error("The module "+o+" should be an array in control : "+i.id);return t=s.isMultiItem()?s().items:s().items[0]||[],t=s.filterItemsBeforeCoreApiSettingValue(t),s.hasModOpt()?l.union([s().modOpt],t):t},prepareModuleForDB:function(e){if(!l.isObject(e))throw new Error("::prepareModuleForDB : a module must be an object.");var t={};if(!l.isArray(e.items))throw new Error("::prepareModuleForDB : a module item list must be an array");return l.each(e.items,function(e){if(!l.isObject(e))throw new Error("::prepareModuleForDB : a module item must be an object")}),t.items=e.items,t}})}(wp.customize,jQuery,_),function(e,t,n){t.extend(CZRBaseControlMths,e.Events),t.extend(e.Control.prototype,e.Events),t.extend(CZRModuleMths,e.Events),t.extend(CZRItemMths,e.Events),t.extend(CZRModOptMths,e.Events),t.extend(CZRBaseControlMths,e.CZR_Helpers),t.extend(CZRInputMths,e.CZR_Helpers),t.extend(CZRModuleMths,e.CZR_Helpers),e.CZRInput=e.Value.extend(CZRInputMths),e.czrInputMap=e.czrInputMap||{},t.extend(e.czrInputMap,{text:"",textarea:"",check:"setupIcheck",checkbox:"setupIcheck",gutencheck:"setupGutenCheck",select:"setupSelect",radio:"setupRadio",number:"setupStepper",upload:"setupImageUploaderSaveAsId",upload_url:"setupImageUploaderSaveAsUrl",color:"setupColorPicker",wp_color_alpha:"setupColorPickerAlpha",wp_color:"setupWPColorPicker",content_picker:"setupContentPicker",tiny_mce_editor:"setupTinyMceEditor",password:"",range:"setupSimpleRange",range_slider:"setupRangeSlider",hidden:"",h_alignment:"setupHAlignement",h_text_alignment:"setupHAlignement"}),e.CZRItem=e.Value.extend(CZRItemMths),e.CZRModOpt=e.Value.extend(CZRModOptMths),e.CZRModule=e.Value.extend(CZRModuleMths),e.CZRDynModule=e.CZRModule.extend(CZRDynModuleMths),e.CZRBaseControl=e.Control.extend(CZRBaseControlMths),e.CZRBaseModuleControl=e.CZRBaseControl.extend(CZRBaseModuleControlMths),t.extend(e.controlConstructor,{czr_module:e.CZRBaseModuleControl})}(wp.customize,jQuery,_),function(t,e){jQuery(function(n){var i,e=t.customize||e;i=n("<span/>",{class:"customize-controls-home-or-add fas fa-home",html:'<span class="screen-reader-text">Home</span>'}),n.when(n("#customize-header-actions").append(i)).done(function(){i.keydown(function(e){9!==e.which&&(13===e.which&&this.click(),e.preventDefault())}).on("click.customize-controls-home-or-add",function(){e.section.has(e.czr_activeSectionId())?e.section(e.czr_activeSectionId()).expanded(!1):e.section.each(function(e){e.expanded(!1)}),e.panel.each(function(e){e.expanded(!1)})}),_.delay(function(){if(!i.hasClass("button-see-me")){var e=0,t=function(){n.Deferred(function(){var e=this;i.addClass("button-see-me"),_.delay(function(){i.removeClass("button-see-me"),e.resolve()},800)}).done(function(){0<=--e&&_.delay(function(){t()},50)})};t()}},2e3)})})}(wp);
inc/czr-base-fmk/assets/js/_1_ccat_czr-theme-fmk.js CHANGED
@@ -168,7 +168,7 @@ $.extend( CZRMultiplePickerMths , {
168
  _select = this.container.find('select');
169
 
170
 
171
- _select.select2({
172
  closeOnSelect: false,
173
  templateSelection: czrEscapeMarkup
174
  });
@@ -388,8 +388,8 @@ $.extend( CZRLayoutSelectMths , {
388
  //destroy selected if set
389
  //$_select.selecter("destroy");
390
 
391
- //fire select2
392
- $_select.select2( {
393
  templateResult: addImg,
394
  templateSelection: addImg,
395
  minimumResultsForSearch: Infinity
168
  _select = this.container.find('select');
169
 
170
 
171
+ _select.czrSelect2({
172
  closeOnSelect: false,
173
  templateSelection: czrEscapeMarkup
174
  });
388
  //destroy selected if set
389
  //$_select.selecter("destroy");
390
 
391
+ //fire czrSelect2
392
+ $_select.czrSelect2( {
393
  templateResult: addImg,
394
  templateSelection: addImg,
395
  minimumResultsForSearch: Infinity
inc/czr-base-fmk/assets/js/_1_ccat_czr-theme-fmk.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t,i){"function"==typeof e.Section&&e.control.bind("add",function(t){t.params.ubq_section&&t.params.ubq_section.section&&(t.params.original_priority=t.params.priority,t.params.original_section=t.params.section,e.section.when(t.params.ubq_section.section,function(e){e.expanded.bind(function(e){e?(t.params.ubq_section.priority&&t.priority(t.params.ubq_section.priority),t.section(t.params.ubq_section.section)):(t.priority(t.params.original_priority),t.section(t.params.original_section))})}))}),"function"==typeof e.Panel&&e.section.bind("add",function(t){t.params.ubq_panel&&t.params.ubq_panel.panel&&(t.params.original_priority=t.params.priority,t.params.original_panel=t.params.panel,e.panel.when(t.params.ubq_panel.panel,function(e){e.expanded.bind(function(e){e?(t.params.ubq_panel.priority&&t.priority(t.params.ubq_panel.priority),t.panel(t.params.ubq_panel.panel)):(t.priority(t.params.original_priority),t.panel(t.params.original_panel))})}))});var n=function(){i.has(e,"czr_ModOptVisible")&&e.czr_ModOptVisible(!1)};e.bind("ready",function(){e.czr_activeSectionId.bind(n),e.czr_activePanelId.bind(n)})}(wp.customize,jQuery,_),function(t,e,i){t.bind("ready",function(){if(window.themeServerControlParams&&themeServerControlParams.isPro&&(i.each(["tc_font_customizer_settings","contx_header_bg","content_blog_sec","static_front_page","content_single_sec","tc_fpu","nav","post_lists_sec","galleries_sec","footer_customizer_sec","custom_scripts_sec","contact_info_sec"],function(e){i.delay(function(){t.section.when(e,function(e){e.headContainer.length<=1&&e.headContainer.find(".accordion-section-title").prepend('<span class="pro-title-block">Pro</span>')})},1e3)}),i.each([],function(e){t.panel.when(e,function(e){e.headContainer.length<=1&&e.headContainer.find(".accordion-section-title").prepend('<span class="pro-title-block">Pro</span>')})})),!themeServerControlParams.isPro&&i.isFunction(t.Section)){if(proSectionInstance=t.section("go_pro_sec"),!i.isObject(proSectionInstance))return;proSectionInstance.attachEvents=function(){},proSectionInstance.isContextuallyActive=function(){return this.active()},proSectionInstance._toggleActive=function(){return!0},proSectionInstance.active(!0)}})}(wp.customize,jQuery,_);var CZRMultiplePickerMths=CZRMultiplePickerMths||{};!function(e,i,t){i.extend(CZRMultiplePickerMths,{ready:function(){var t=this,e=this.container.find("select");e.select2({closeOnSelect:!1,templateSelection:function(e){return e.text.replace(/\u2013|\u2014/g,"")}}),e.on("change",function(e){0===i(this).find("option:selected").length&&t.setting.set([])})}})}(wp.customize,jQuery,_);var CZRCroppedImageMths=CZRCroppedImageMths||{};!function(e,t,i){"function"==typeof wp.media.controller.Cropper&&"function"==typeof e.CroppedImageControl&&(wp.media.controller.CZRCustomizeImageCropper=wp.media.controller.Cropper.extend({doCrop:function(e){var t=e.get("cropDetails"),i=this.get("control");return t.dst_width=i.params.dst_width,t.dst_height=i.params.dst_height,wp.ajax.post("crop-image",{wp_customize:"on",nonce:e.get("nonces").edit,id:e.get("id"),context:i.id,cropDetails:t})}}),t.extend(CZRCroppedImageMths,{initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.CZRCustomizeImageCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON();e.mime&&-1<e.mime.indexOf("image")?i.contains(["image/svg+xml","image/gif"],e.mime)||this.params.width===e.width&&this.params.height===e.height&&!this.params.flex_width&&!this.params.flex_height?(this.setImageFromAttachment(e),this.frame.close()):this.frame.setState("cropper"):this.frame.trigger("content:error")}}))}(wp.customize,jQuery,_);var CZRUploadMths=CZRUploadMths||{};!function(e,i,t){i.extend(CZRUploadMths,{ready:function(){var t=this;this.params.removed=this.params.removed||"",this.success=i.proxy(this.success,this),this.uploader=i.extend({container:this.container,browser:this.container.find(".czr-upload"),success:this.success,plupload:{},params:{}},this.uploader||{}),t.params.extensions&&(t.uploader.plupload.filters=[{title:e.l10n.allowedFiles,extensions:t.params.extensions}]),t.params.context&&(t.uploader.params["post_data[context]"]=this.params.context),e.settings.theme.stylesheet&&(t.uploader.params["post_data[theme]"]=e.settings.theme.stylesheet),this.uploader=new wp.Uploader(this.uploader),this.remover=this.container.find(".remove"),this.remover.on("click keydown",function(e){"keydown"===e.type&&13!==e.which||(t.setting.set(t.params.removed),e.preventDefault())}),this.removerVisibility=i.proxy(this.removerVisibility,this),this.setting.bind(this.removerVisibility),this.removerVisibility(this.setting())},success:function(e){this.setting.set(e.get("id"))},removerVisibility:function(e){this.remover.toggle(e!=this.params.removed)}})}(wp.customize,jQuery,_);var CZRLayoutSelectMths=CZRLayoutSelectMths||{};!function(e,s,r){s.extend(CZRLayoutSelectMths,{ready:function(){this.setupSelect()},setupSelect:function(e){var o=this;function t(e){if(!e.id)return e.text;if(r.has(o.params.layouts,e.element.value)){var t=o.params.layouts[e.element.value],i=t.src,n=t.label;return s('<img src="'+i+'" class="czr-layout-img" title="'+n+'" /><span class="czr-layout-title">'+n+"</span>")}}$_select=this.container.find("select"),$_select.select2({templateResult:t,templateSelection:t,minimumResultsForSearch:1/0})}})}(wp.customize,jQuery,_),function(e,t,i){e.CZRUploadControl=e.Control.extend(CZRUploadMths),e.CZRLayoutControl=e.Control.extend(CZRLayoutSelectMths),e.CZRMultiplePickerControl=e.Control.extend(CZRMultiplePickerMths),t.extend(e.controlConstructor,{czr_upload:e.CZRUploadControl,czr_multiple_picker:e.CZRMultiplePickerControl,czr_layouts:e.CZRLayoutControl}),"function"==typeof e.CroppedImageControl&&(e.CZRCroppedImageControl=e.CroppedImageControl.extend(CZRCroppedImageMths),t.extend(e.controlConstructor,{czr_cropped_image:e.CZRCroppedImageControl})),"function"==typeof e.CodeEditorControl&&t.extend(e.controlConstructor,{czr_code_editor:e.CodeEditorControl})}(wp.customize,jQuery,_),function(l,p,u){var e=serverControlParams.i18n||{};l.czr_CrtlDependenciesReady=p.Deferred(),l.bind("ready",function(){u.has(l,"czr_ctrlDependencies")||(l.czr_ctrlDependencies=new l.CZR_ctrlDependencies,l.czr_CrtlDependenciesReady.resolve())}),l.CZR_ctrlDependencies=l.Class.extend({dominiDeps:[],initialize:function(){var t=this;if(this.defaultDominusParams={dominus:"",servi:[],visibility:null,actions:null,onSectionExpand:!0},this.dominiDeps=u.extend(this.dominiDeps,this._getControlDeps()),!u.isArray(t.dominiDeps))throw new Error("Visibilities : the dominos dependency array is not an array.");l.czr_activeSectionId.bind(function(e){if(!u.isEmpty(e)&&l.section.has(e))try{t.setServiDependencies(e)}catch(e){l.errorLog("In api.CZR_ctrlDependencies : "+e)}}),l.bind("awaken-section",function(e){try{t.setServiDependencies(e.target,e.source)}catch(e){l.errorLog("On awaken-section, ctrl deps : "+e)}}),this._handleFaviconNote()},setServiDependencies:function(i,n,o){var s=this,r=p.Deferred();if(o=o||!1,u.isUndefined(i)||!l.section.has(i))throw new Error("Control Dependencies : the targetSectionId is missing or not registered : "+i);if(l.section(i).czr_ctrlDependenciesReady=l.section(i).czr_ctrlDependenciesReady||p.Deferred(),!o&&"resolved"==l.section(i).czr_ctrlDependenciesReady.state())return r.resolve().promise();u.each(s.dominiDeps,function(e){if(!u.has(e,"dominus")||!u.isString(e.dominus)||u.isEmpty(e.dominus))throw new Error("Control Dependencies : a dominus control id must be a not empty string.");var t=l.CZR_Helpers.build_setId(e.dominus);l.control.has(t)&&l.control(t).section()==i&&(e=s._prepareDominusParams(e),u.isEmpty(e)||s._processDominusCallbacks(e.dominus,e,o).fail(function(){l.consoleLog("self._processDominusCallbacks fail for section "+i),r.reject()}).done(function(){r.resolve()}))});var e=l.CZR_Helpers.getSectionControlIds(i),t=function(t){var i=[];return u.each(s.dominiDeps,function(e){if(u.has(e,"servi")&&u.isArray(e.servi)&&u.has(e,"dominus")&&!u.isEmpty(e.dominus)){if(u.contains(e.servi,t)&&!u.contains(i,e.dominus)){if(e=s._prepareDominusParams(e),u.isEmpty(e))return;i.push(e.dominus)}}else l.errorLog("Control Dependencies : wrong params in _getServusDomini.")}),u.isArray(i)?i:[]},a=[];return u.each(e,function(e){u.isEmpty(t(e))||(a=u.union(a,t(e)))}),u.each(a,function(e){var t=l.CZR_Helpers.build_setId(e);l.control(t).section()!=i&&n!=l.control(t).section()&&l.trigger("awaken-section",{target:l.control(t).section(),source:i})}),r.always(function(){l.section(i).czr_ctrlDependenciesReady.resolve()}),r.promise()},_deferCallbackForControl:function(e,t,i){var n=p.Deferred();if(u.isEmpty(e)||!u.isString(e))throw new Error("_deferCallbackForControl : the control id is missing.");if(!u.isFunction(t))throw new Error("_deferCallbackForControl : callback must be a funtion.");return i=u.isUndefined(i)||!u.isArray(i)?[]:i,l.control.has(e)?"resolved"==l.control(e).deferred.embedded.state()?p.when(t.apply(null,i)).fail(function(){n.reject()}).done(function(){n.resolve()}):l.control(e).deferred.embedded.then(function(){p.when(t.apply(null,i)).fail(function(){n.reject()}).done(function(){n.resolve()})}):l.control.when(e,function(){l.control(e).deferred.embedded.then(function(){p.when(t.apply(null,i)).fail(function(){n.reject()}).done(function(){n.resolve()})})}),n.promise()},_processDominusCallbacks:function(e,o,t){var s=this,i=l.CZR_Helpers.build_setId(e),r=l(i),a=p.Deferred(),c=!1;return u.each(o.servi,function(i){if(l.control.has(l.CZR_Helpers.build_setId(i))){var n=function(e,t,i,n){var o=arguments;u.each(i,function(e,t){switch(t){case"visibility":s._setVisibility.apply(null,o);break;case"actions":u.isFunction(e)&&e.apply(null,o)}})},t=function(e){e=e||r();var t=l.CZR_Helpers.build_setId(i);s._deferCallbackForControl(t,n,[e,i,o]).always(function(){c=!0}).fail(function(){a.reject()}).done(function(){a.resolve()})};t(),u.has(r,"czr_visibilityServi")||(r.czr_visibilityServi=new l.Value([]));var e=r.czr_visibilityServi();u.contains(e,i)||(r.bind(function(e){t(e)}),r.czr_visibilityServi(u.union(e,[i])))}}),c?a.promise():a.resolve().promise()},_setVisibility:function(e,t,i,n){var o=l.CZR_Helpers.build_setId(t),s=i.visibility(e,t,i.dominus);if(n=n||!1,u.isBoolean(s)&&("unchanged"!=s||n)){var r=function(){l.state.has("silent-update-processing")&&l.state("silent-update-processing")()||(l.control(o,function(e){u.has(e,"active")&&(s=s&&e.active()),u.has(e,"defaultActiveArguments")&&control.defaultActiveArguments,e.onChangeActive(s,e.defaultActiveArguments)}),l.state.has("silent-update-processing")&&l.state("silent-update-processing").unbind(r))};l.state.has("silent-update-processing")&&l.state("silent-update-processing")()?l.state("silent-update-processing").bind(r):r()}},_getControlDeps:function(){return{}},_prepareDominusParams:function(n){var o={};if(!u.isObject(n))return l.errorLog("Visibilities : a dominus param definition must be an object."),o;if(!u.has(n,"visibility")&&!u.has(n,"actions"))return l.errorLog("Visibilities : a dominus definition must include a visibility or an actions callback."),o;if(!u.has(n,"dominus")||!u.isString(n.dominus)||u.isEmpty(n.dominus))return l.errorLog("Visibilities : a dominus control id must be a not empty string."),o;var e=l.CZR_Helpers.build_setId(n.dominus);return l.control.has(e)?!u.has(n,"servi")||u.isUndefined(n.servi)||!u.isArray(n.servi)||u.isEmpty(n.servi)?l.errorLog("Visibilities : servi must be set as an array not empty."):u.each(this.defaultDominusParams,function(e,t){var i=n[t];switch(t){case"visibility":if(!u.isUndefined(i)&&!u.isEmpty(i)&&!u.isFunction(i))throw new Error("Visibilities : a dominus visibility callback must be a function : "+n.dominus);break;case"actions":if(!u.isUndefined(i)&&!u.isEmpty(i)&&!u.isFunction(i))throw new Error("Visibilities : a dominus actions callback must be a function : "+n.dominus);break;case"onSectionExpand":if(!u.isUndefined(i)&&!u.isEmpty(i)&&!u.isBoolean(i))throw new Error("Visibilities : a dominus onSectionExpand param must be a boolean : "+n.dominus)}o[t]=i}):l.errorLog("Visibilities : a dominus control id is not registered : "+e),o},_handleFaviconNote:function(){var t=this,i=l.CZR_Helpers.build_setId(serverControlParams.faviconOptionName);if(!(!l.has("site_icon")||!l.control("site_icon")||l.has(i)&&0==+l(i)()||0<+l("site_icon")())){var n=l.control("site_icon").params.description;_newDes=["<strong>",e.faviconNote||"","</strong><br/><br/>"].join("")+n,t._printFaviconNote(_newDes),l("site_icon").callbacks.add(function(e){0<+e?(l.control("site_icon").container.find(".description").text(n),l.has(i)&&l(i).set("")):t._printFaviconNote(_newDes)})}},_printFaviconNote:function(e){l.control("site_icon").container.find(".description").html(e)}})}(wp.customize,jQuery,_),function(e,t){jQuery(function(n){var o=e.customize||o;n(".accordion-section").not(".control-panel").click(function(){var e,t;e=n(this),0!==(t=e.siblings(".open")).length&&t.offset().top<0&&n(".wp-full-overlay-sidebar-content").animate({scrollTop:-n("#customize-theme-controls").offset().top-t.height()+e.offset().top+n(".wp-full-overlay-sidebar-content").offset().top},700)}),o.czrSetupCheckbox=function(e,t){var i=o.control(e);n("input[type=checkbox]",i.container).each(function(){"tc_font_customizer_settings"!=i.params.section&&(0===n(this).val()||"0"==n(this).val()||"off"==n(this).val()||_.isEmpty(n(this).val())?n(this).prop("checked",!1):n(this).prop("checked",!0),0===n(this).closest('div[class^="icheckbox"]').length&&n(this).iCheck({checkboxClass:"icheckbox_flat-grey",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){n(this).val(!1===n(this).is(":checked")?0:1),n(e.currentTarget).trigger("change")}))})},o.czrSetupSelect=function(e,t){n("select[data-customize-setting-link]",o.control(e).container).not(".no-selecter-js").each(function(){n(this).selecter({})})},o.czrSetupStepper=function(e,t){var i=o.control(e);n('input[type="number"]',i.container).each(function(){n(this).stepper()})},o.control.each(function(e){if(_.has(e,"id")){"widget_"!=e.id.substring(0,"widget_".length)&&"nav_menu"!=e.id.substring(0,"nav_menu".length)&&o.czrSetupCheckbox(e.id),"nav_menu_locations"!=e.id.substring(0,"nav_menu_locations".length)&&o.czrSetupSelect(e.id);0<e.container.find('input[type="number"]').length&&e.params&&e.params.section&&!_.contains(["publish_settings","tc_font_customizer_settings"],e.params.section)&&o.czrSetupStepper(e.id)}})})}(wp);
1
+ !function(e,t,i){"function"==typeof e.Section&&e.control.bind("add",function(t){t.params.ubq_section&&t.params.ubq_section.section&&(t.params.original_priority=t.params.priority,t.params.original_section=t.params.section,e.section.when(t.params.ubq_section.section,function(e){e.expanded.bind(function(e){e?(t.params.ubq_section.priority&&t.priority(t.params.ubq_section.priority),t.section(t.params.ubq_section.section)):(t.priority(t.params.original_priority),t.section(t.params.original_section))})}))}),"function"==typeof e.Panel&&e.section.bind("add",function(t){t.params.ubq_panel&&t.params.ubq_panel.panel&&(t.params.original_priority=t.params.priority,t.params.original_panel=t.params.panel,e.panel.when(t.params.ubq_panel.panel,function(e){e.expanded.bind(function(e){e?(t.params.ubq_panel.priority&&t.priority(t.params.ubq_panel.priority),t.panel(t.params.ubq_panel.panel)):(t.priority(t.params.original_priority),t.panel(t.params.original_panel))})}))});var n=function(){i.has(e,"czr_ModOptVisible")&&e.czr_ModOptVisible(!1)};e.bind("ready",function(){e.czr_activeSectionId.bind(n),e.czr_activePanelId.bind(n)})}(wp.customize,jQuery,_),function(t,e,i){t.bind("ready",function(){if(window.themeServerControlParams&&themeServerControlParams.isPro&&(i.each(["tc_font_customizer_settings","contx_header_bg","content_blog_sec","static_front_page","content_single_sec","tc_fpu","nav","post_lists_sec","galleries_sec","footer_customizer_sec","custom_scripts_sec","contact_info_sec"],function(e){i.delay(function(){t.section.when(e,function(e){e.headContainer.length<=1&&e.headContainer.find(".accordion-section-title").prepend('<span class="pro-title-block">Pro</span>')})},1e3)}),i.each([],function(e){t.panel.when(e,function(e){e.headContainer.length<=1&&e.headContainer.find(".accordion-section-title").prepend('<span class="pro-title-block">Pro</span>')})})),!themeServerControlParams.isPro&&i.isFunction(t.Section)){if(proSectionInstance=t.section("go_pro_sec"),!i.isObject(proSectionInstance))return;proSectionInstance.attachEvents=function(){},proSectionInstance.isContextuallyActive=function(){return this.active()},proSectionInstance._toggleActive=function(){return!0},proSectionInstance.active(!0)}})}(wp.customize,jQuery,_);var CZRMultiplePickerMths=CZRMultiplePickerMths||{};!function(e,i,t){i.extend(CZRMultiplePickerMths,{ready:function(){var t=this,e=this.container.find("select");e.czrSelect2({closeOnSelect:!1,templateSelection:function(e){return e.text.replace(/\u2013|\u2014/g,"")}}),e.on("change",function(e){0===i(this).find("option:selected").length&&t.setting.set([])})}})}(wp.customize,jQuery,_);var CZRCroppedImageMths=CZRCroppedImageMths||{};!function(e,t,i){"function"==typeof wp.media.controller.Cropper&&"function"==typeof e.CroppedImageControl&&(wp.media.controller.CZRCustomizeImageCropper=wp.media.controller.Cropper.extend({doCrop:function(e){var t=e.get("cropDetails"),i=this.get("control");return t.dst_width=i.params.dst_width,t.dst_height=i.params.dst_height,wp.ajax.post("crop-image",{wp_customize:"on",nonce:e.get("nonces").edit,id:e.get("id"),context:i.id,cropDetails:t})}}),t.extend(CZRCroppedImageMths,{initFrame:function(){var e=_wpMediaViewsL10n;this.frame=wp.media({button:{text:e.select,close:!1},states:[new wp.media.controller.Library({title:this.params.button_labels.frame_title,library:wp.media.query({type:"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:this.params.width,suggestedHeight:this.params.height}),new wp.media.controller.CZRCustomizeImageCropper({imgSelectOptions:this.calculateImageSelectOptions,control:this})]}),this.frame.on("select",this.onSelect,this),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)},onSelect:function(){var e=this.frame.state().get("selection").first().toJSON();e.mime&&-1<e.mime.indexOf("image")?i.contains(["image/svg+xml","image/gif"],e.mime)||this.params.width===e.width&&this.params.height===e.height&&!this.params.flex_width&&!this.params.flex_height?(this.setImageFromAttachment(e),this.frame.close()):this.frame.setState("cropper"):this.frame.trigger("content:error")}}))}(wp.customize,jQuery,_);var CZRUploadMths=CZRUploadMths||{};!function(e,i,t){i.extend(CZRUploadMths,{ready:function(){var t=this;this.params.removed=this.params.removed||"",this.success=i.proxy(this.success,this),this.uploader=i.extend({container:this.container,browser:this.container.find(".czr-upload"),success:this.success,plupload:{},params:{}},this.uploader||{}),t.params.extensions&&(t.uploader.plupload.filters=[{title:e.l10n.allowedFiles,extensions:t.params.extensions}]),t.params.context&&(t.uploader.params["post_data[context]"]=this.params.context),e.settings.theme.stylesheet&&(t.uploader.params["post_data[theme]"]=e.settings.theme.stylesheet),this.uploader=new wp.Uploader(this.uploader),this.remover=this.container.find(".remove"),this.remover.on("click keydown",function(e){"keydown"===e.type&&13!==e.which||(t.setting.set(t.params.removed),e.preventDefault())}),this.removerVisibility=i.proxy(this.removerVisibility,this),this.setting.bind(this.removerVisibility),this.removerVisibility(this.setting())},success:function(e){this.setting.set(e.get("id"))},removerVisibility:function(e){this.remover.toggle(e!=this.params.removed)}})}(wp.customize,jQuery,_);var CZRLayoutSelectMths=CZRLayoutSelectMths||{};!function(e,s,r){s.extend(CZRLayoutSelectMths,{ready:function(){this.setupSelect()},setupSelect:function(e){var o=this;function t(e){if(!e.id)return e.text;if(r.has(o.params.layouts,e.element.value)){var t=o.params.layouts[e.element.value],i=t.src,n=t.label;return s('<img src="'+i+'" class="czr-layout-img" title="'+n+'" /><span class="czr-layout-title">'+n+"</span>")}}$_select=this.container.find("select"),$_select.czrSelect2({templateResult:t,templateSelection:t,minimumResultsForSearch:1/0})}})}(wp.customize,jQuery,_),function(e,t,i){e.CZRUploadControl=e.Control.extend(CZRUploadMths),e.CZRLayoutControl=e.Control.extend(CZRLayoutSelectMths),e.CZRMultiplePickerControl=e.Control.extend(CZRMultiplePickerMths),t.extend(e.controlConstructor,{czr_upload:e.CZRUploadControl,czr_multiple_picker:e.CZRMultiplePickerControl,czr_layouts:e.CZRLayoutControl}),"function"==typeof e.CroppedImageControl&&(e.CZRCroppedImageControl=e.CroppedImageControl.extend(CZRCroppedImageMths),t.extend(e.controlConstructor,{czr_cropped_image:e.CZRCroppedImageControl})),"function"==typeof e.CodeEditorControl&&t.extend(e.controlConstructor,{czr_code_editor:e.CodeEditorControl})}(wp.customize,jQuery,_),function(l,p,u){var e=serverControlParams.i18n||{};l.czr_CrtlDependenciesReady=p.Deferred(),l.bind("ready",function(){u.has(l,"czr_ctrlDependencies")||(l.czr_ctrlDependencies=new l.CZR_ctrlDependencies,l.czr_CrtlDependenciesReady.resolve())}),l.CZR_ctrlDependencies=l.Class.extend({dominiDeps:[],initialize:function(){var t=this;if(this.defaultDominusParams={dominus:"",servi:[],visibility:null,actions:null,onSectionExpand:!0},this.dominiDeps=u.extend(this.dominiDeps,this._getControlDeps()),!u.isArray(t.dominiDeps))throw new Error("Visibilities : the dominos dependency array is not an array.");l.czr_activeSectionId.bind(function(e){if(!u.isEmpty(e)&&l.section.has(e))try{t.setServiDependencies(e)}catch(e){l.errorLog("In api.CZR_ctrlDependencies : "+e)}}),l.bind("awaken-section",function(e){try{t.setServiDependencies(e.target,e.source)}catch(e){l.errorLog("On awaken-section, ctrl deps : "+e)}}),this._handleFaviconNote()},setServiDependencies:function(i,n,o){var s=this,r=p.Deferred();if(o=o||!1,u.isUndefined(i)||!l.section.has(i))throw new Error("Control Dependencies : the targetSectionId is missing or not registered : "+i);if(l.section(i).czr_ctrlDependenciesReady=l.section(i).czr_ctrlDependenciesReady||p.Deferred(),!o&&"resolved"==l.section(i).czr_ctrlDependenciesReady.state())return r.resolve().promise();u.each(s.dominiDeps,function(e){if(!u.has(e,"dominus")||!u.isString(e.dominus)||u.isEmpty(e.dominus))throw new Error("Control Dependencies : a dominus control id must be a not empty string.");var t=l.CZR_Helpers.build_setId(e.dominus);l.control.has(t)&&l.control(t).section()==i&&(e=s._prepareDominusParams(e),u.isEmpty(e)||s._processDominusCallbacks(e.dominus,e,o).fail(function(){l.consoleLog("self._processDominusCallbacks fail for section "+i),r.reject()}).done(function(){r.resolve()}))});var e=l.CZR_Helpers.getSectionControlIds(i),t=function(t){var i=[];return u.each(s.dominiDeps,function(e){if(u.has(e,"servi")&&u.isArray(e.servi)&&u.has(e,"dominus")&&!u.isEmpty(e.dominus)){if(u.contains(e.servi,t)&&!u.contains(i,e.dominus)){if(e=s._prepareDominusParams(e),u.isEmpty(e))return;i.push(e.dominus)}}else l.errorLog("Control Dependencies : wrong params in _getServusDomini.")}),u.isArray(i)?i:[]},a=[];return u.each(e,function(e){u.isEmpty(t(e))||(a=u.union(a,t(e)))}),u.each(a,function(e){var t=l.CZR_Helpers.build_setId(e);l.control(t).section()!=i&&n!=l.control(t).section()&&l.trigger("awaken-section",{target:l.control(t).section(),source:i})}),r.always(function(){l.section(i).czr_ctrlDependenciesReady.resolve()}),r.promise()},_deferCallbackForControl:function(e,t,i){var n=p.Deferred();if(u.isEmpty(e)||!u.isString(e))throw new Error("_deferCallbackForControl : the control id is missing.");if(!u.isFunction(t))throw new Error("_deferCallbackForControl : callback must be a funtion.");return i=u.isUndefined(i)||!u.isArray(i)?[]:i,l.control.has(e)?"resolved"==l.control(e).deferred.embedded.state()?p.when(t.apply(null,i)).fail(function(){n.reject()}).done(function(){n.resolve()}):l.control(e).deferred.embedded.then(function(){p.when(t.apply(null,i)).fail(function(){n.reject()}).done(function(){n.resolve()})}):l.control.when(e,function(){l.control(e).deferred.embedded.then(function(){p.when(t.apply(null,i)).fail(function(){n.reject()}).done(function(){n.resolve()})})}),n.promise()},_processDominusCallbacks:function(e,o,t){var s=this,i=l.CZR_Helpers.build_setId(e),r=l(i),a=p.Deferred(),c=!1;return u.each(o.servi,function(i){if(l.control.has(l.CZR_Helpers.build_setId(i))){var n=function(e,t,i,n){var o=arguments;u.each(i,function(e,t){switch(t){case"visibility":s._setVisibility.apply(null,o);break;case"actions":u.isFunction(e)&&e.apply(null,o)}})},t=function(e){e=e||r();var t=l.CZR_Helpers.build_setId(i);s._deferCallbackForControl(t,n,[e,i,o]).always(function(){c=!0}).fail(function(){a.reject()}).done(function(){a.resolve()})};t(),u.has(r,"czr_visibilityServi")||(r.czr_visibilityServi=new l.Value([]));var e=r.czr_visibilityServi();u.contains(e,i)||(r.bind(function(e){t(e)}),r.czr_visibilityServi(u.union(e,[i])))}}),c?a.promise():a.resolve().promise()},_setVisibility:function(e,t,i,n){var o=l.CZR_Helpers.build_setId(t),s=i.visibility(e,t,i.dominus);if(n=n||!1,u.isBoolean(s)&&("unchanged"!=s||n)){var r=function(){l.state.has("silent-update-processing")&&l.state("silent-update-processing")()||(l.control(o,function(e){u.has(e,"active")&&(s=s&&e.active()),u.has(e,"defaultActiveArguments")&&control.defaultActiveArguments,e.onChangeActive(s,e.defaultActiveArguments)}),l.state.has("silent-update-processing")&&l.state("silent-update-processing").unbind(r))};l.state.has("silent-update-processing")&&l.state("silent-update-processing")()?l.state("silent-update-processing").bind(r):r()}},_getControlDeps:function(){return{}},_prepareDominusParams:function(n){var o={};if(!u.isObject(n))return l.errorLog("Visibilities : a dominus param definition must be an object."),o;if(!u.has(n,"visibility")&&!u.has(n,"actions"))return l.errorLog("Visibilities : a dominus definition must include a visibility or an actions callback."),o;if(!u.has(n,"dominus")||!u.isString(n.dominus)||u.isEmpty(n.dominus))return l.errorLog("Visibilities : a dominus control id must be a not empty string."),o;var e=l.CZR_Helpers.build_setId(n.dominus);return l.control.has(e)?!u.has(n,"servi")||u.isUndefined(n.servi)||!u.isArray(n.servi)||u.isEmpty(n.servi)?l.errorLog("Visibilities : servi must be set as an array not empty."):u.each(this.defaultDominusParams,function(e,t){var i=n[t];switch(t){case"visibility":if(!u.isUndefined(i)&&!u.isEmpty(i)&&!u.isFunction(i))throw new Error("Visibilities : a dominus visibility callback must be a function : "+n.dominus);break;case"actions":if(!u.isUndefined(i)&&!u.isEmpty(i)&&!u.isFunction(i))throw new Error("Visibilities : a dominus actions callback must be a function : "+n.dominus);break;case"onSectionExpand":if(!u.isUndefined(i)&&!u.isEmpty(i)&&!u.isBoolean(i))throw new Error("Visibilities : a dominus onSectionExpand param must be a boolean : "+n.dominus)}o[t]=i}):l.errorLog("Visibilities : a dominus control id is not registered : "+e),o},_handleFaviconNote:function(){var t=this,i=l.CZR_Helpers.build_setId(serverControlParams.faviconOptionName);if(!(!l.has("site_icon")||!l.control("site_icon")||l.has(i)&&0==+l(i)()||0<+l("site_icon")())){var n=l.control("site_icon").params.description;_newDes=["<strong>",e.faviconNote||"","</strong><br/><br/>"].join("")+n,t._printFaviconNote(_newDes),l("site_icon").callbacks.add(function(e){0<+e?(l.control("site_icon").container.find(".description").text(n),l.has(i)&&l(i).set("")):t._printFaviconNote(_newDes)})}},_printFaviconNote:function(e){l.control("site_icon").container.find(".description").html(e)}})}(wp.customize,jQuery,_),function(e,t){jQuery(function(n){var o=e.customize||o;n(".accordion-section").not(".control-panel").click(function(){var e,t;e=n(this),0!==(t=e.siblings(".open")).length&&t.offset().top<0&&n(".wp-full-overlay-sidebar-content").animate({scrollTop:-n("#customize-theme-controls").offset().top-t.height()+e.offset().top+n(".wp-full-overlay-sidebar-content").offset().top},700)}),o.czrSetupCheckbox=function(e,t){var i=o.control(e);n("input[type=checkbox]",i.container).each(function(){"tc_font_customizer_settings"!=i.params.section&&(0===n(this).val()||"0"==n(this).val()||"off"==n(this).val()||_.isEmpty(n(this).val())?n(this).prop("checked",!1):n(this).prop("checked",!0),0===n(this).closest('div[class^="icheckbox"]').length&&n(this).iCheck({checkboxClass:"icheckbox_flat-grey",radioClass:"iradio_flat-grey"}).on("ifChanged",function(e){n(this).val(!1===n(this).is(":checked")?0:1),n(e.currentTarget).trigger("change")}))})},o.czrSetupSelect=function(e,t){n("select[data-customize-setting-link]",o.control(e).container).not(".no-selecter-js").each(function(){n(this).selecter({})})},o.czrSetupStepper=function(e,t){var i=o.control(e);n('input[type="number"]',i.container).each(function(){n(this).stepper()})},o.control.each(function(e){if(_.has(e,"id")){"widget_"!=e.id.substring(0,"widget_".length)&&"nav_menu"!=e.id.substring(0,"nav_menu".length)&&o.czrSetupCheckbox(e.id),"nav_menu_locations"!=e.id.substring(0,"nav_menu_locations".length)&&o.czrSetupSelect(e.id);0<e.container.find('input[type="number"]').length&&e.params&&e.params.section&&!_.contains(["publish_settings","tc_font_customizer_settings"],e.params.section)&&o.czrSetupStepper(e.id)}})})}(wp);
inc/czr-base-fmk/czr-base-fmk.php CHANGED
@@ -211,8 +211,8 @@ if ( ! class_exists( 'CZR_Fmk_Base_Load_Resources' ) ) :
211
  $media = 'all'
212
  );
213
  wp_enqueue_style(
214
- 'select2-css',
215
- sprintf('%1$s/assets/css/lib/select2.min.css', NIMBLE_FMK_BASE_URL, ( defined('WP_DEBUG') && true === WP_DEBUG ) ? '' : '.min'),
216
  array( 'customize-controls' ),
217
  ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : NIMBLE_FMK_BASE_VERSION,
218
  $media = 'all'
211
  $media = 'all'
212
  );
213
  wp_enqueue_style(
214
+ 'czr-select2-css',
215
+ sprintf('%1$s/assets/css/lib/czrSelect2.min.css', NIMBLE_FMK_BASE_URL, ( defined('WP_DEBUG') && true === WP_DEBUG ) ? '' : '.min'),
216
  array( 'customize-controls' ),
217
  ( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : NIMBLE_FMK_BASE_VERSION,
218
  $media = 'all'
inc/czr-modules/social-links/assets/js/_2_7_socials_module.js CHANGED
@@ -382,7 +382,7 @@ $.extend( CZRSocialModuleMths, {
382
  }
383
 
384
  //fire select2
385
- $( 'select[data-czrtype="social-icon"]', input.container ).select2( {
386
  templateResult: addIcon,
387
  templateSelection: addIcon
388
  });
382
  }
383
 
384
  //fire select2
385
+ $( 'select[data-czrtype="social-icon"]', input.container ).czrSelect2( {
386
  templateResult: addIcon,
387
  templateSelection: addIcon
388
  });
inc/czr-skope/index.php CHANGED
@@ -331,7 +331,17 @@ function skp_is_customizing() {
331
  $_is_ajaxing_from_customizer = isset( $_POST['customized'] ) || isset( $_POST['wp_customize'] );
332
 
333
  $is_customizing = false;
334
- if ( is_admin() && isset( $pagenow ) && 'customize.php' == $pagenow ) {
 
 
 
 
 
 
 
 
 
 
335
  $is_customizing = true;
336
  } else if ( is_customize_preview() || ( ! is_admin() && isset($_REQUEST['customize_messenger_channel']) ) ) {
337
  $is_customizing = true;
331
  $_is_ajaxing_from_customizer = isset( $_POST['customized'] ) || isset( $_POST['wp_customize'] );
332
 
333
  $is_customizing = false;
334
+ $is_customize_php_page = ( is_admin() && 'customize.php' == basename( $_SERVER['PHP_SELF'] ) );
335
+ $is_customize_admin_page_one = (
336
+ $is_customize_php_page
337
+ ||
338
+ ( isset( $_REQUEST['wp_customize'] ) && 'on' == $_REQUEST['wp_customize'] )
339
+ ||
340
+ ( ! empty( $_GET['customize_changeset_uuid'] ) || ! empty( $_POST['customize_changeset_uuid'] ) )
341
+ );
342
+ $is_customize_admin_page_two = is_admin() && isset( $pagenow ) && 'customize.php' == $pagenow;
343
+
344
+ if ( $is_customize_admin_page_one || $is_customize_admin_page_two ) {
345
  $is_customizing = true;
346
  } else if ( is_customize_preview() || ( ! is_admin() && isset($_REQUEST['customize_messenger_channel']) ) ) {
347
  $is_customizing = true;
lang/en_US.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Hueman Addons v2.1.1\n"
4
  "POT-Creation-Date: 2016-12-19 18:13+0100\n"
5
  "PO-Revision-Date: 2016-12-19 18:14+0100\n"
6
  "Last-Translator: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Hueman Addons v2.1.2\n"
4
  "POT-Creation-Date: 2016-12-19 18:13+0100\n"
5
  "PO-Revision-Date: 2016-12-19 18:14+0100\n"
6
  "Last-Translator: \n"
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: hueman theme, hueman, customizer, contextualizer
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.0.0
9
- Stable tag: 2.1.1
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -37,15 +37,13 @@ The plugin has been designed specifically for the Hueman WordPress theme. Lightw
37
  [Documentation here](http://docs.presscustomizr.com/article/242-hueman-addons-how-to-set-the-share-bar-options)
38
 
39
  == Upgrade Notice ==
40
- = 2.1.1 November 7th 2018 =
41
- * fixed : PC_AC_VERSION constant not defined generating php warning
42
- * improved : compatibility with the Nimbler Builder plugin
43
-
44
- = 2.1.0 June 27th 2018 =
45
- * Improvements : Performance and UX enhancements made to the live customizer. Added the contextualizer feature.
46
- * Added : the custom css can now be customized on each pages independently
47
 
48
  == Changelog ==
 
 
 
49
  = 2.1.0 June 27th 2018 =
50
  * Improvements : Performance and UX enhancements made to the live customizer. Added the contextualizer feature.
51
  * Added : the custom css can now be customized on each pages independently
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.0.0
9
+ Stable tag: 2.1.2
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
 
37
  [Documentation here](http://docs.presscustomizr.com/article/242-hueman-addons-how-to-set-the-share-bar-options)
38
 
39
  == Upgrade Notice ==
40
+ = 2.1.2 =
41
+ * improved : customizer compatibility with network installs
 
 
 
 
 
42
 
43
  == Changelog ==
44
+ = 2.1.2 November 27th, 2018 =
45
+ * improved : customizer compatibility with network installs
46
+
47
  = 2.1.0 June 27th 2018 =
48
  * Improvements : Performance and UX enhancements made to the live customizer. Added the contextualizer feature.
49
  * Added : the custom css can now be customized on each pages independently