phcthemes_web_theme_pack 1.6.9 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +864 -844
  3. data/app/assets/javascripts/common/bootstrap/bootstrap.js +4420 -0
  4. data/app/assets/javascripts/common/ckeditor/ckeditor.js +2 -2
  5. data/app/assets/javascripts/common/ckeditor/ckeditor.js.map +1 -1
  6. data/app/assets/javascripts/common/ckeditor/translations/af.js +1 -1
  7. data/app/assets/javascripts/common/ckeditor/translations/ar.js +1 -1
  8. data/app/assets/javascripts/common/ckeditor/translations/ast.js +1 -1
  9. data/app/assets/javascripts/common/ckeditor/translations/az.js +1 -1
  10. data/app/assets/javascripts/common/ckeditor/translations/bg.js +1 -1
  11. data/app/assets/javascripts/common/ckeditor/translations/ca.js +1 -1
  12. data/app/assets/javascripts/common/ckeditor/translations/cs.js +1 -1
  13. data/app/assets/javascripts/common/ckeditor/translations/da.js +1 -1
  14. data/app/assets/javascripts/common/ckeditor/translations/de-ch.js +1 -1
  15. data/app/assets/javascripts/common/ckeditor/translations/de.js +1 -1
  16. data/app/assets/javascripts/common/ckeditor/translations/el.js +1 -1
  17. data/app/assets/javascripts/common/ckeditor/translations/en-au.js +1 -1
  18. data/app/assets/javascripts/common/ckeditor/translations/en-gb.js +1 -1
  19. data/app/assets/javascripts/common/ckeditor/translations/eo.js +1 -1
  20. data/app/assets/javascripts/common/ckeditor/translations/es.js +1 -1
  21. data/app/assets/javascripts/common/ckeditor/translations/et.js +1 -1
  22. data/app/assets/javascripts/common/ckeditor/translations/eu.js +1 -1
  23. data/app/assets/javascripts/common/ckeditor/translations/fa.js +1 -1
  24. data/app/assets/javascripts/common/ckeditor/translations/fi.js +1 -1
  25. data/app/assets/javascripts/common/ckeditor/translations/fr.js +1 -1
  26. data/app/assets/javascripts/common/ckeditor/translations/gl.js +1 -1
  27. data/app/assets/javascripts/common/ckeditor/translations/gu.js +1 -1
  28. data/app/assets/javascripts/common/ckeditor/translations/he.js +1 -1
  29. data/app/assets/javascripts/common/ckeditor/translations/hr.js +1 -1
  30. data/app/assets/javascripts/common/ckeditor/translations/hu.js +1 -1
  31. data/app/assets/javascripts/common/ckeditor/translations/id.js +1 -1
  32. data/app/assets/javascripts/common/ckeditor/translations/it.js +1 -1
  33. data/app/assets/javascripts/common/ckeditor/translations/ja.js +1 -1
  34. data/app/assets/javascripts/common/ckeditor/translations/km.js +1 -1
  35. data/app/assets/javascripts/common/ckeditor/translations/kn.js +1 -1
  36. data/app/assets/javascripts/common/ckeditor/translations/ko.js +1 -1
  37. data/app/assets/javascripts/common/ckeditor/translations/ku.js +1 -1
  38. data/app/assets/javascripts/common/ckeditor/translations/lt.js +1 -1
  39. data/app/assets/javascripts/common/ckeditor/translations/lv.js +1 -1
  40. data/app/assets/javascripts/common/ckeditor/translations/ms.js +1 -0
  41. data/app/assets/javascripts/common/ckeditor/translations/nb.js +1 -1
  42. data/app/assets/javascripts/common/ckeditor/translations/ne.js +1 -1
  43. data/app/assets/javascripts/common/ckeditor/translations/nl.js +1 -1
  44. data/app/assets/javascripts/common/ckeditor/translations/no.js +1 -1
  45. data/app/assets/javascripts/common/ckeditor/translations/oc.js +1 -1
  46. data/app/assets/javascripts/common/ckeditor/translations/pl.js +1 -1
  47. data/app/assets/javascripts/common/ckeditor/translations/pt-br.js +1 -1
  48. data/app/assets/javascripts/common/ckeditor/translations/pt.js +1 -1
  49. data/app/assets/javascripts/common/ckeditor/translations/ro.js +1 -1
  50. data/app/assets/javascripts/common/ckeditor/translations/ru.js +1 -1
  51. data/app/assets/javascripts/common/ckeditor/translations/si.js +1 -1
  52. data/app/assets/javascripts/common/ckeditor/translations/sk.js +1 -1
  53. data/app/assets/javascripts/common/ckeditor/translations/sl.js +1 -1
  54. data/app/assets/javascripts/common/ckeditor/translations/sq.js +1 -1
  55. data/app/assets/javascripts/common/ckeditor/translations/sr-latn.js +1 -1
  56. data/app/assets/javascripts/common/ckeditor/translations/sr.js +1 -1
  57. data/app/assets/javascripts/common/ckeditor/translations/sv.js +1 -1
  58. data/app/assets/javascripts/common/ckeditor/translations/th.js +1 -0
  59. data/app/assets/javascripts/common/ckeditor/translations/tr.js +1 -1
  60. data/app/assets/javascripts/common/ckeditor/translations/tt.js +1 -1
  61. data/app/assets/javascripts/common/ckeditor/translations/ug.js +1 -1
  62. data/app/assets/javascripts/common/ckeditor/translations/uk.js +1 -1
  63. data/app/assets/javascripts/common/ckeditor/translations/vi.js +1 -1
  64. data/app/assets/javascripts/common/ckeditor/translations/zh-cn.js +1 -1
  65. data/app/assets/javascripts/common/ckeditor/translations/zh.js +1 -1
  66. data/app/assets/javascripts/common/covervid/covervid.min.js +1 -0
  67. data/app/assets/javascripts/common/nouislider/nouislider.js +2637 -0
  68. data/app/assets/javascripts/phcthemes_web_theme_pack_antlr.js +3 -0
  69. data/app/assets/javascripts/themes/antlr/theme/scripts.js +3 -71
  70. data/app/assets/javascripts/themes/appstrap/theme/script.js +50 -11
  71. data/app/assets/javascripts/themes/pitnik/theme/main.min.js +1 -1
  72. data/app/assets/javascripts/themes/pitnik/theme/script.js +268 -48
  73. data/app/assets/stylesheets/phcthemes_web_theme_pack_antlr.scss +8 -6
  74. data/app/assets/stylesheets/phcthemes_web_theme_pack_appstrap.scss +5 -5
  75. data/app/assets/stylesheets/phcthemes_web_theme_pack_bold.scss +1 -1
  76. data/app/assets/stylesheets/phcthemes_web_theme_pack_coloradmin.scss +2 -2
  77. data/app/assets/stylesheets/phcthemes_web_theme_pack_devine_villas.scss +2 -2
  78. data/app/assets/stylesheets/phcthemes_web_theme_pack_piknik.scss +5 -5
  79. data/app/assets/stylesheets/phcthemes_web_theme_pack_smarty.scss +1 -1
  80. data/app/assets/stylesheets/phcthemes_web_theme_pack_xero.scss +2 -2
  81. data/app/assets/stylesheets/phcthemes_web_theme_pack_zoner.scss +2 -2
  82. data/app/assets/stylesheets/themes/antlr/maps.scss +60 -0
  83. data/lib/phcthemes_web_theme_pack/engine.rb +1 -0
  84. data/lib/phcthemes_web_theme_pack/version.rb +1 -1
  85. metadata +32 -6
@@ -7,8 +7,11 @@
7
7
  //= require common/magnific-popup/jquery.magnific-popup.js
8
8
  //= require common/slick/slick.js
9
9
  //= require common/owl-carousel/owl.carousel.js
10
+ //= require common/covervid/covervid.min.js
10
11
  //= require common/isotope/isotope.pkgd.js
11
12
  //= require common/scrollme/jquery.scrollme.js
12
13
  //= require common/swiper/swiper.js
13
14
  //= require common/lazysizes/lazysizes.js
14
15
  //= require common/wow/wow.js
16
+ //= require common/nouislider/nouislider.js
17
+ //= require themes/antlr/theme/scripts.js
@@ -5,7 +5,7 @@ Author: inebur (Rúben Rodrigues)
5
5
  Author URI: http://inebur.com/
6
6
  Author Envato: https://themeforest.net/user/inebur
7
7
  Copyright: 2020 inebur
8
- Version: 2.1.2
8
+ Version: 2.1.4
9
9
  -------------------------------------------------------------------*/
10
10
  document.addEventListener('DOMContentLoaded', function() {
11
11
  "use strict";
@@ -35,8 +35,6 @@ document.addEventListener('DOMContentLoaded', function() {
35
35
  active();
36
36
  display();
37
37
  switching();
38
- headerfooter();
39
- translate();
40
38
  switchVisible();
41
39
  });
42
40
  //----------------------------------------------------/
@@ -133,72 +131,6 @@ $(".mobile .menu-item")
133
131
  }
134
132
  }
135
133
  );
136
- //----------------------------------------------------/
137
- // i18next translate
138
- //----------------------------------------------------/
139
- function translate() {
140
- $.getScript('https://frmwrks.phcnetworks.net/antlr/version-2.1.2/template/js/lib/i18next.min.js', function() {
141
- $.getScript('https://frmwrks.phcnetworks.net/antlr/version-2.1.2/template/js/lib/i18nextXHRBackend.min.js', function() {
142
- $.getScript('https://frmwrks.phcnetworks.net/antlr/version-2.1.2/template/js/lib/jquery-i18next.min.js', function() {
143
- var language = localStorage.getItem('lng');
144
- if (!language) {
145
- localStorage.setItem('lng', 'en-US');
146
- language = 'en-US';
147
- }
148
- i18next.use(i18nextXHRBackend)
149
- .init({
150
- lng: language,
151
- fallbackLng: 'en-US',
152
- backend: {
153
- loadPath: 'https://frmwrks.phcnetworks.net/antlr/version-2.1.2/template/locales/{{lng}}/translations.json'
154
- }
155
- }, function(err, t) {
156
- jqueryI18next.init(i18next, $, {
157
- tName: 't',
158
- i18nName: 'i18n',
159
- handleName: 'localize',
160
- selectorAttr: 'data-i18n',
161
- targetAttr: 'i18n-target',
162
- optionsAttr: 'i18n-options',
163
- useOptionsAttr: false,
164
- parseDefaultValueFromContent: true
165
- });
166
- $(document)
167
- .localize();
168
- });
169
- });
170
- });
171
- });
172
- }
173
- /*---------------------------------*/
174
- /* Load header and footer file */
175
- /*---------------------------------*/
176
- function headerfooter() {
177
- $("#header")
178
- .load("https://static.phcnetworks.net/phc_sites/phcnetworks_net/views/header.html", function(res, status, xhr) {
179
- $('#drop-lng [data-lng="' + localStorage.getItem('lng') + '"]')
180
- .addClass('xpto active');
181
- $('#drop-lng label')
182
- .click(function(e) {
183
- e.preventDefault();
184
- localStorage.setItem('lng', $(this)
185
- .attr('data-lng'));
186
- location.reload(true);
187
- });
188
- });
189
- $("#footer")
190
- .load("https://static.phcnetworks.net/phc_sites/phcnetworks_net/views/footer.html.erb", function(res, status, xhr) {
191
- $('#drop-lng [data-lng="' + localStorage.getItem('lng') + '"]')
192
- .addClass('xpto active');
193
- $('#drop-lng label')
194
- .click(function(e) {
195
- e.preventDefault();
196
- localStorage.setItem('lng', $(this)
197
- .attr('data-lng'));
198
- location.reload(true);
199
- });
200
- });
201
- }
202
134
  /*----------------------*/
203
135
  /* Switch */
204
136
  /*----------------------*/
@@ -314,7 +246,7 @@ function contactform() {
314
246
  .on('submit', function(e) {
315
247
  $.ajax({
316
248
  type: "POST",
317
- url: 'https://frmwrks.phcnetworks.net/antlr/version-2.1.2/template/php/form-process.php',
249
+ url: 'php/form-process.php',
318
250
  data: $(this)
319
251
  .serialize(),
320
252
  success: function() {
@@ -1036,7 +968,7 @@ function loadWindowEvents() {
1036
968
  /*-------------------------*/
1037
969
  function loadCountdown() {
1038
970
  $('#clock')
1039
- .countdown('2019/10/24 00:00', function(event) {
971
+ .countdown('2022/10/24 00:00', function(event) {
1040
972
  var $this = $(this)
1041
973
  .html(event.strftime('' +
1042
974
  '<div>%w <span class="title">Weeks</span></div>' +
@@ -19,7 +19,7 @@
19
19
 
20
20
  // Config
21
21
  var Config = {
22
- PLUGINS_LOCALPATH: "https://frmwrks.phcnetworks.net/appstrap/version-3.3.2/theme/assets/plugins/"
22
+ PLUGINS_LOCALPATH: "./assets/plugins/"
23
23
  };
24
24
 
25
25
  // Extend using $.extend(true, Config, { PLUGINS_LOCALPATH: 'new/path/setting' });
@@ -159,7 +159,7 @@ var Globals = {
159
159
  }
160
160
  }
161
161
  });
162
- }
162
+ };
163
163
 
164
164
  var triggerSpy = function(state) {
165
165
  var offsetExtra = 5;
@@ -458,6 +458,7 @@ utils.raf = function(callback) {
458
458
  raf(callback);
459
459
  };
460
460
  window.utils = utils;
461
+
461
462
  // ===============================================================
462
463
  // @group: Custom functionality intergration/init
463
464
  // ===============================================================
@@ -1319,6 +1320,16 @@ window.utils = utils;
1319
1320
  });
1320
1321
  });
1321
1322
 
1323
+ // Top link
1324
+ // --------------------------------
1325
+ context.find("a[href*='#top']").click(function() {
1326
+ $('html, body').animate({
1327
+ scrollTop: "0px"
1328
+ }, 800);
1329
+ window.location.hash = '';
1330
+ return false;
1331
+ });
1332
+
1322
1333
  // Clones DOM elements
1323
1334
  // --------------------------------
1324
1335
  context.find('[data-clone]').each(function() {
@@ -1543,7 +1554,7 @@ Globals.PLUGINS.themePluginBootstrapSelect = function(context) {
1543
1554
  if (typeof settings.classes == 'object') {
1544
1555
  $.each(settings.classes, function(key, value) {
1545
1556
  styles.push(value);
1546
- })
1557
+ });
1547
1558
  } else if (typeof settings.classes == 'string') {
1548
1559
  styles.push(settings.classes);
1549
1560
  }
@@ -1565,7 +1576,8 @@ Globals.PLUGINS.themePluginBootstrapSelect = function(context) {
1565
1576
 
1566
1577
  if ($selects.length > 0) {
1567
1578
  $document.themeLoadPlugin(
1568
- ["https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.0-beta/js/bootstrap-select.min.js"], ["https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.0-beta/css/bootstrap-select.min.css", "plugin-css/plugin-bootstrap-select.min.css"],
1579
+ ["https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.0-beta/js/bootstrap-select.min.js"],
1580
+ ["https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.0-beta/css/bootstrap-select.min.css", "plugin-css/plugin-bootstrap-select.min.css"],
1569
1581
  themePluginBootstrapSelectInit
1570
1582
  );
1571
1583
  }
@@ -1631,7 +1643,7 @@ Globals.PLUGINS.themePluginClipboard = function(context) {
1631
1643
  tabs += '\t';
1632
1644
  }
1633
1645
  return tabs;
1634
- };
1646
+ }
1635
1647
 
1636
1648
 
1637
1649
  $.each(html, function(i, el) {
@@ -1689,7 +1701,8 @@ Globals.PLUGINS.themePluginClipboard = function(context) {
1689
1701
 
1690
1702
  if ($clipboards.length > 0) {
1691
1703
  $document.themeLoadPlugin(
1692
- ["https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js"], [],
1704
+ ["https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js"],
1705
+ [],
1693
1706
  themePluginClipboardInit
1694
1707
  );
1695
1708
  }
@@ -1973,7 +1986,28 @@ Globals.PLUGINS.themePluginCubePortfolio = function(context) {
1973
1986
 
1974
1987
  // Refresh waypoints
1975
1988
  context.refreshWaypoints();
1989
+ setTimeout(function() {
1990
+ $cubePortfolios.cubeportfolio('layout');
1991
+ console.log('refresh');
1992
+ }, 5000);
1976
1993
  });
1994
+ } else {
1995
+ $this.cubeportfolio(settings);
1996
+ if (settings.filters) {
1997
+ $(settings.filters).addClass('cbp-loaded show');
1998
+ }
1999
+ $this.addClass('cbp-loaded show');
2000
+
2001
+ if (settings.loader) {
2002
+ $(settings.loader).addClass('cbp-loaded loaded');
2003
+ }
2004
+
2005
+ // Refresh waypoints
2006
+ context.refreshWaypoints();
2007
+ setTimeout(function() {
2008
+ $cubePortfolios.cubeportfolio('layout');
2009
+ console.log('refresh');
2010
+ }, 5000);
1977
2011
  }
1978
2012
  });
1979
2013
  };
@@ -2011,7 +2045,8 @@ Globals.PLUGINS.themePluginCubePortfolio = function(context) {
2011
2045
 
2012
2046
  if ($cubePortfolios.length > 0) {
2013
2047
  $document.themeLoadPlugin(
2014
- ["https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js", "cubeportfolio-jquery-plugin/cubeportfolio/js/jquery.cubeportfolio.min.js"], ["plugin-css/plugin-magnific-popup.min.css", "plugin-css/plugin-cube-portfolio.min.css", "cubeportfolio-jquery-plugin/cubeportfolio/css/cubeportfolio.min.css"],
2048
+ ["https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js", "cubeportfolio-jquery-plugin/cubeportfolio/js/jquery.cubeportfolio.min.js"],
2049
+ ["plugin-css/plugin-magnific-popup.min.css", "plugin-css/plugin-cube-portfolio.min.css", "cubeportfolio-jquery-plugin/cubeportfolio/css/cubeportfolio.min.css"],
2015
2050
  themePluginCubePortfolioInit
2016
2051
  );
2017
2052
  }
@@ -2269,7 +2304,8 @@ Globals.PLUGINS.themePluginFixTo = function(context) {
2269
2304
  });
2270
2305
  };
2271
2306
  $document.themeLoadPlugin(
2272
- ["https://cdnjs.cloudflare.com/ajax/libs/fixto/0.5.0/fixto.js"], ["plugin-css/plugin-sticky-classes.min.css"],
2307
+ ["https://cdnjs.cloudflare.com/ajax/libs/fixto/0.5.0/fixto.js"],
2308
+ ["plugin-css/plugin-sticky-classes.min.css"],
2273
2309
  themePluginFixToInit
2274
2310
  );
2275
2311
  }
@@ -2551,7 +2587,8 @@ Globals.PLUGINS.themePluginMagnificPopup = function(context) {
2551
2587
  });
2552
2588
  };
2553
2589
  $document.themeLoadPlugin(
2554
- ["magnific-popup/dist/jquery.magnific-popup.min.js"], ["plugin-css/plugin-magnific-popup.min.css", "magnific-popup/dist/magnific-popup.css"],
2590
+ ["magnific-popup/dist/jquery.magnific-popup.min.js"],
2591
+ ["plugin-css/plugin-magnific-popup.min.css", "magnific-popup/dist/magnific-popup.css"],
2555
2592
  themePluginMagnificPopupInit
2556
2593
  );
2557
2594
  }
@@ -2720,7 +2757,8 @@ Globals.PLUGINS.themePluginOffCanvas = function(context) {
2720
2757
  };
2721
2758
 
2722
2759
  $document.themeLoadPlugin(
2723
- ["https://unpkg.com/js-offcanvas@1.2.8/dist/_js/js-offcanvas.pkgd.js"], ["https://unpkg.com/js-offcanvas@1.2.8/dist/_css/prefixed/js-offcanvas.css", "plugin-css/plugin-offcanvas.min.css"],
2760
+ ["https://unpkg.com/js-offcanvas@1.2.8/dist/_js/js-offcanvas.pkgd.js"],
2761
+ ["https://unpkg.com/js-offcanvas@1.2.8/dist/_css/prefixed/js-offcanvas.css", "plugin-css/plugin-offcanvas.min.css"],
2724
2762
  themePluginOffCanvasInit
2725
2763
  );
2726
2764
  }
@@ -2781,7 +2819,8 @@ Globals.PLUGINS.themePluginOwlCarousel = function(context) {
2781
2819
  });
2782
2820
  };
2783
2821
  $document.themeLoadPlugin(
2784
- ["https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/owl.carousel.min.js"], ["plugin-css/plugin-owl-carousel.min.css", "https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/assets/owl.carousel.min.css", "https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"],
2822
+ ["https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/owl.carousel.min.js"],
2823
+ ["plugin-css/plugin-owl-carousel.min.css", "https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/assets/owl.carousel.min.css", "https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"],
2785
2824
  themePluginOwlCarouselInit
2786
2825
  );
2787
2826
  }
",i.document[0]).appendTo(e)):"tr"===t?i._createTrPlaceholder(i.currentItem,e):"img"===t&&e.attr("src",i.currentItem.attr("src")),s||e.css("visibility","hidden"),e},update:function(t,e){s&&!n.forcePlaceholderSize||(e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=C(n.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),n.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){C("",i.document[0]).attr("colspan",C(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){var e,i,s,n,o,r,a,l,h,c,u=null,d=null;for(e=this.containers.length-1;0<=e;e--)if(!C.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(u&&C.contains(this.containers[e].element[0],u.element[0]))continue;u=this.containers[e],d=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",t,this._uiHash(this)),this.containers[e].containerCache.over=0);if(u)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger("over",t,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(s=1e4,n=null,o=(h=u.floating||this._isFloating(this.currentItem))?"left":"top",r=h?"width":"height",c=h?"pageX":"pageY",i=this.items.length-1;0<=i;i--)C.contains(this.containers[d].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(a=this.items[i].item.offset()[o],l=!1,t[c]-a>this.items[i][r]/2&&(l=!0),s>Math.abs(t[c]-a)&&(s=Math.abs(t[c]-a),n=this.items[i],this.direction=l?"up":"down"));if(!n&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[d])return void(this.currentContainer.containerCache.over||(this.containers[d]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));n?this._rearrange(t,n,null,!0):this._rearrange(t,null,this.containers[d].element,!0),this._trigger("change",t,this._uiHash()),this.containers[d]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[d],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[d]._trigger("over",t,this._uiHash(this)),this.containers[d].containerCache.over=1}},_createHelper:function(t){var e=this.options,i=C.isFunction(e.helper)?C(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||C("parent"!==e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),i[0].style.width&&!e.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!e.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),C.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&C.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&C.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(t=C(s.containment)[0],e=C(s.containment).offset(),i="hidden"!==C(t).css("overflow"),this.containment=[e.left+(parseInt(C(t).css("borderLeftWidth"),10)||0)+(parseInt(C(t).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(C(t).css("borderTopWidth"),10)||0)+(parseInt(C(t).css("paddingTop"),10)||0)-this.margins.top,e.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(C(t).css("borderLeftWidth"),10)||0)-(parseInt(C(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(C(t).css("borderTopWidth"),10)||0)-(parseInt(C(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&C.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,n=/(html|body)/i.test(s[0].tagName);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():n?0:s.scrollTop())*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():n?0:s.scrollLeft())*i}},_generatePosition:function(t){var e,i,s=this.options,n=t.pageX,o=t.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&C.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.leftthis.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),s.grid&&(e=this.originalPageY+Math.round((o-this.originalPageY)/s.grid[1])*s.grid[1],o=this.containment?e-this.offset.click.top>=this.containment[1]&&e-this.offset.click.top<=this.containment[3]?e:e-this.offset.click.top>=this.containment[1]?e-s.grid[1]:e+s.grid[1]:e,i=this.originalPageX+Math.round((n-this.originalPageX)/s.grid[0])*s.grid[0],n=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-s.grid[0]:i+s.grid[0]:i)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:r.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:r.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){function i(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)"auto"!==this._storedCSS[s]&&"static"!==this._storedCSS[s]||(this._storedCSS[s]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;0<=s;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===C.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||C([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),C.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=C(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():C()}},_createIcons:function(){var t,e,i=this.options.icons;i&&(t=C(""),this._addClass(t,"ui-accordion-header-icon","ui-icon "+i.header),t.prependTo(this.headers),e=this.active.children(".ui-accordion-header-icon"),this._removeClass(e,i.header)._addClass(e,null,i.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),void("icons"===t&&(this._destroyIcons(),e&&this._createIcons())))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=C.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&(C(t.target).attr("tabIndex",-1),C(n).attr("tabIndex",0),C(n).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===C.ui.keyCode.UP&&t.ctrlKey&&C(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=C()):!1===t.active?this._activate(0):this.active.length&&!C.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=C()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,s=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=C(this),e=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=s.height(),this.element.siblings(":visible").each(function(){var t=C(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=C(this).outerHeight(!0)}),this.headers.next().each(function(){C(this).height(Math.max(0,i-C(this).innerHeight()+C(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=C(this).is(":visible");t||C(this).show(),i=Math.max(i,C(this).css("height","").height()),t||C(this).hide()}).height(i))},_activate:function(t){var e=this._findActive(t)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,preventDefault:C.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):C()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&C.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e,i,s=this.options,n=this.active,o=C(t.currentTarget),r=o[0]===n[0],a=r&&s.collapsible,l=a?C():o.next(),h=n.next(),c={oldHeader:n,oldPanel:h,newHeader:a?C():o,newPanel:l};t.preventDefault(),r&&!s.collapsible||!1===this._trigger("beforeActivate",t,c)||(s.active=!a&&this.headers.index(o),this.active=r?C():o,this._toggle(c),this._removeClass(n,"ui-accordion-header-active","ui-state-active"),s.icons&&(e=n.children(".ui-accordion-header-icon"),this._removeClass(e,null,s.icons.activeHeader)._addClass(e,null,s.icons.header)),r||(this._removeClass(o,"ui-accordion-header-collapsed")._addClass(o,"ui-accordion-header-active","ui-state-active"),s.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,s.icons.header)._addClass(i,null,s.icons.activeHeader)),this._addClass(o.next(),"ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(C(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){function s(){a._toggleComplete(e)}var n,o,r,a=this,l=0,h=t.css("box-sizing"),c=t.length&&(!i.length||t.index()",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=C(t.target),i=C(C.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var e=C(t.target).closest(".ui-menu-item"),i=C(t.currentTarget);e[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){C.contains(this.element[0],C.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=C(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n,o=!0;switch(t.keyCode){case C.ui.keyCode.PAGE_UP:this.previousPage(t);break;case C.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case C.ui.keyCode.HOME:this._move("first","first",t);break;case C.ui.keyCode.END:this._move("last","last",t);break;case C.ui.keyCode.UP:this.previous(t);break;case C.ui.keyCode.DOWN:this.next(t);break;case C.ui.keyCode.LEFT:this.collapse(t);break;case C.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case C.ui.keyCode.ENTER:case C.ui.keyCode.SPACE:this._activate(t);break;case C.ui.keyCode.ESCAPE:this.collapse(t);break;default:o=!1,i=this.previousFilter||"",n=!1,s=96<=t.keyCode&&t.keyCode<=105?""+(t.keyCode-96):String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),s===i?n=!0:s=i+s,e=this._filterMenuItems(s),(e=n&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(s=String.fromCharCode(t.keyCode),e=this._filterMenuItems(s)),e.length?(this.focus(t,e),this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,i,s,n=this,o=this.options.icons.submenu,r=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=r.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=C(this),e=t.prev(),i=C("").data("ui-menu-submenu-caret",!0);n._addClass(i,"ui-menu-icon","ui-icon "+o),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=r.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=C(this);n._isDivider(t)&&n._addClass(t,"ui-menu-divider","ui-widget-content")}),s=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(s,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!C.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s,n,o,r;this._hasScroll()&&(e=parseFloat(C.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(C.css(this.activeMenu[0],"paddingTop"))||0,s=t.offset().top-this.activeMenu.offset().top-e-i,n=this.activeMenu.scrollTop(),o=this.activeMenu.height(),r=t.outerHeight(),s<0?this.activeMenu.scrollTop(n+s):o",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,o="input"===t;this.isMultiLine=e||!o&&this._isContentEditable(this.element),this.valueMethod=this.element[e||o?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=C.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=C.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=C("
    ").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==C.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,e){var i,s;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){C(t.target).trigger(t.originalEvent)})):(s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),void((i=e.item.attr("aria-label")||s.value)&&C.trim(i).length&&(this.liveRegion.children().hide(),C("
    ").text(i).appendTo(this.liveRegion))))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==C.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=C("
    ",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||C.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return(t=t&&(t.jquery||t.nodeType?C(t):this.document.find(t).eq(0)))&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,s,n=this;C.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(C.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=C.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(!t||e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").append(C("
    ").text(e.label)).appendTo(t)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),C.extend(C.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=RegExp(C.ui.autocomplete.escapeRegex(e),"i");return C.grep(t,function(t){return i.test(t.label||t.value||t)})}}),C.widget("ui.autocomplete",C.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1").text(e).appendTo(this.liveRegion))}}),C.ui.autocomplete;var b,y,w,E=/ui-corner-([a-z]){2,6}/g;C.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"
    ",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var r=this,a=[];C.each(this.options.items,function(n,t){var e,o={};return t?"controlgroupLabel"===n?((e=r.element.find(t)).each(function(){var t=C(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("")}),r._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(a=a.concat(e.get()))):void(C.fn[n]&&(o=r["_"+n+"Options"]?r["_"+n+"Options"]("middle"):{classes:{}},r.element.find(t).each(function(){var t=C(this),e=t[n]("instance"),i=C.widget.extend({},o);if("button"!==n||!t.parent(".ui-spinner").length){(e=e||t[n]()[n]("instance"))&&(i.classes=r._resolveClassesValues(i.classes,e)),t[n](i);var s=t[n]("widget");C.data(s[0],"ui-controlgroup-data",e||t[n]("instance")),a.push(s[0])}}))):void 0}),this.childWidgets=C(C.unique(a)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=C(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,s){var n={};return C.each(i,function(t){var e=s.options.classes[t]||"";e=C.trim(e.replace(E,"")),n[t]=(e+" "+i[t]).replace(/\s+/g," ")}),n},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var n,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),n=this.childWidgets,this.options.onlyVisible&&(n=n.filter(":visible")),n.length&&(C.each(["first","last"],function(t,e){var i=n[e]().data("ui-controlgroup-data");if(i&&o["_"+i.widgetName+"Options"]){var s=o["_"+i.widgetName+"Options"](1===n.length?"only":e);s.classes=o._resolveClassesValues(s.classes,i),i.element[i.widgetName](s)}else o._updateCornerClass(n[e](),e)}),this._callChildMethod("refresh"))}}),C.widget("ui.checkboxradio",[C.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e,i=this,s=this._super()||{};return this._readType(),e=this.element.labels(),this.label=C(e[e.length-1]),this.label.length||C.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){i.originalLabel+=3===this.nodeType?C(this).text():this.outerHTML}),this.originalLabel&&(s.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(s.disabled=t),s},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||C.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+C.ui.escapeSelector(t)+"']";return t?(this.form.length?C(this.form[0].elements).filter(e):C(e).filter(function(){return 0===C(this).form().length})).not(this.element):C([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=C(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()):void 0},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=C(""),this.iconSpace=C(" "),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),C.ui.checkboxradio,C.widget("ui.button",{version:"1.12.1",defaultElement:"").addClass(this._triggerClass).html(n?C("").attr({src:n,alt:s,title:s}):s)),t[r?"before":"after"](e.trigger),e.trigger.on("click",function(){return C.datepicker._datepickerShowing&&C.datepicker._lastInput===t[0]?C.datepicker._hideDatepicker():(C.datepicker._datepickerShowing&&C.datepicker._lastInput!==t[0]&&C.datepicker._hideDatepicker(),C.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,s,n,o=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(n=s=i=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(t,e){var i=C(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),C.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,s,n){var o,r,a,l,h,c=this._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=C(""),this._dialogInput.on("keydown",this._doKeyDown),C("body").append(this._dialogInput),(c=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},C.data(this._dialogInput[0],"datepicker",c)),u(c.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(c,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(r=document.documentElement.clientWidth,a=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+l,a/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),C.blockUI&&C.blockUI(this.dpDiv),C.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(t){var e,i=C(t),s=C.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),C.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),y===s&&(y=null))},_enableDatepicker:function(e){var t,i,s=C(e),n=C.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=C.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i,s=C(e),n=C.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=C.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return C.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,o,r,a=this._getInst(t);return 2===arguments.length&&"string"==typeof e?"defaults"===e?C.extend({},C.datepicker._defaults):a?"all"===e?C.extend({},a.settings):this._get(a,e):null:(s=e||{},"string"==typeof e&&((s={})[e]=i),void(a&&(this._curInst===a&&this._hideDatepicker(),n=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(a,"min"),r=this._getMinMaxDate(a,"max"),u(a.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(a.settings.minDate=this._formatDate(a,o)),null!==r&&void 0!==s.dateFormat&&void 0===s.maxDate&&(a.settings.maxDate=this._formatDate(a,r)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(C(t),a),this._autoSize(a),this._setDate(a,n),this._updateAlternate(a),this._updateDatepicker(a))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(t){var e,i,s,n=C.datepicker._getInst(t.target),o=!0,r=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,C.datepicker._datepickerShowing)switch(t.keyCode){case 9:C.datepicker._hideDatepicker(),o=!1;break;case 13:return(s=C("td."+C.datepicker._dayOverClass+":not(."+C.datepicker._currentClass+")",n.dpDiv))[0]&&C.datepicker._selectDay(t.target,n.selectedMonth,n.selectedYear,s[0]),(e=C.datepicker._get(n,"onSelect"))?(i=C.datepicker._formatDate(n),e.apply(n.input?n.input[0]:null,[i,n])):C.datepicker._hideDatepicker(),!1;case 27:C.datepicker._hideDatepicker();break;case 33:C.datepicker._adjustDate(t.target,t.ctrlKey?-C.datepicker._get(n,"stepBigMonths"):-C.datepicker._get(n,"stepMonths"),"M");break;case 34:C.datepicker._adjustDate(t.target,t.ctrlKey?+C.datepicker._get(n,"stepBigMonths"):+C.datepicker._get(n,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&C.datepicker._clearDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&C.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&C.datepicker._adjustDate(t.target,r?1:-1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&C.datepicker._adjustDate(t.target,t.ctrlKey?-C.datepicker._get(n,"stepBigMonths"):-C.datepicker._get(n,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&C.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&C.datepicker._adjustDate(t.target,r?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&C.datepicker._adjustDate(t.target,t.ctrlKey?+C.datepicker._get(n,"stepBigMonths"):+C.datepicker._get(n,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&C.datepicker._adjustDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.keyCode&&t.ctrlKey?C.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i,s=C.datepicker._getInst(t.target);return C.datepicker._get(s,"constrainInput")?(e=C.datepicker._possibleChars(C.datepicker._get(s,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1a&&sl&&na+1&&i.charAt(a+1)===t;return e&&a++,e}function e(t){var e=r(t),i="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,s=RegExp("^\\d{"+("y"===t?i:1)+","+i+"}"),n=o.substring(u).match(s);if(!n)throw"Missing number at position "+u;return u+=n[0].length,parseInt(n[0],10)}function s(t,e,i){var s=-1,n=C.map(r(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(C.each(n,function(t,e){var i=e[1];return o.substr(u,i.length).toLowerCase()===i.toLowerCase()?(s=e[0],u+=i.length,!1):void 0}),-1!==s)return s+1;throw"Unknown name at position "+u}function n(){if(o.charAt(u)!==i.charAt(a))throw"Unexpected literal at position "+u;u++}var a,l,h,c,u=0,d=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,p="string"!=typeof d?d:(new Date).getFullYear()%100+parseInt(d,10),f=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,g=(t?t.dayNames:null)||this._defaults.dayNames,m=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,v=(t?t.monthNames:null)||this._defaults.monthNames,_=-1,b=-1,y=-1,w=-1,x=!1;for(a=0;i.length>a;a++)if(x)"'"!==i.charAt(a)||r("'")?n():x=!1;else switch(i.charAt(a)){case"d":y=e("d");break;case"D":s("D",f,g);break;case"o":w=e("o");break;case"m":b=e("m");break;case"M":b=s("M",m,v);break;case"y":_=e("y");break;case"@":_=(c=new Date(e("@"))).getFullYear(),b=c.getMonth()+1,y=c.getDate();break;case"!":_=(c=new Date((e("!")-this._ticksTo1970)/1e4)).getFullYear(),b=c.getMonth()+1,y=c.getDate();break;case"'":r("'")?n():x=!0;break;default:n()}if(o.length>u&&(h=o.substr(u),!/^\s+/.test(h)))throw"Extra/unparsed characters found in date: "+h;if(-1===_?_=(new Date).getFullYear():_<100&&(_+=(new Date).getFullYear()-(new Date).getFullYear()%100+(_<=p?0:-100)),-1r+1&&i.charAt(r+1)===t;return e&&r++,e}function s(t,e,i){var s=""+e;if(n(t))for(;i>s.length;)s="0"+s;return s}function o(t,e,i,s){return n(t)?s[e]:i[e]}var r,a=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,l=(e?e.dayNames:null)||this._defaults.dayNames,h=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,c=(e?e.monthNames:null)||this._defaults.monthNames,u="",d=!1;if(t)for(r=0;i.length>r;r++)if(d)"'"!==i.charAt(r)||n("'")?u+=i.charAt(r):d=!1;else switch(i.charAt(r)){case"d":u+=s("d",t.getDate(),2);break;case"D":u+=o("D",t.getDay(),a,l);break;case"o":u+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=s("m",t.getMonth()+1,2);break;case"M":u+=o("M",t.getMonth(),h,c);break;case"y":u+=n("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":n("'")?u+="'":d=!0;break;default:u+=i.charAt(r)}return u},_possibleChars:function(i){function t(t){var e=i.length>s+1&&i.charAt(s+1)===t;return e&&s++,e}var s,e="",n=!1;for(s=0;i.length>s;s++)if(n)"'"!==i.charAt(s)||t("'")?e+=i.charAt(s):n=!1;else switch(i.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":t("'")?e+="'":n=!0;break;default:e+=i.charAt(s)}return e},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,r=this._getFormatConfig(t);try{o=this.parseDate(i,s,r)||n}catch(t){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(a,t,e){var i,s,n=null==t||""===t?e:"string"==typeof t?function(t){try{return C.datepicker.parseDate(C.datepicker._get(a,"dateFormat"),t,C.datepicker._getFormatConfig(a))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?C.datepicker._getDate(a):null)||new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=o.exec(t);r;){switch(r[2]||"d"){case"d":case"D":n+=parseInt(r[1],10);break;case"w":case"W":n+=7*parseInt(r[1],10);break;case"m":case"M":s+=parseInt(r[1],10),n=Math.min(n,C.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(r[1],10),n=Math.min(n,C.datepicker._getDaysInMonth(i,s))}r=o.exec(t)}return new Date(i,s,n)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(s=new Date).setDate(s.getDate()+i),s):new Date(t.getTime());return(n=n&&"Invalid Date"==""+n?e:n)&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(t){return t?(t.setHours(12e;)--J<0&&(J=11,tt--);for(t.drawMonth=J,t.drawYear=tt,i=this._get(t,"prevText"),i=Y?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,J-K,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,-1,tt,J)?""+i+"":B?"":""+i+"",n=this._get(t,"nextText"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(tt,J+K,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,1,tt,J)?""+n+"":B?"":""+n+"",r=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&&t.currentDay?Q:R,r=Y?this.formatDate(r,a,this._getFormatConfig(t)):r,l=t.inline?"":"",h=q?"
    "+(F?l:"")+(this._isInRange(t,a)?"":"")+(F?"":l)+"
    ":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),_=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),y="",x=0;U[0]>x;x++){for(C="",this.maxRows=4,k=0;U[1]>k;k++){if(T=this._daylightSavingAdjust(new Date(tt,J,t.selectedDay)),S=" ui-corner-all",D="",V){if(D+="
    "}for(D+="
    "+(/all|left/.test(S)&&0===x?F?o:s:"")+(/all|right/.test(S)&&0===x?F?s:o:"")+this._generateMonthYearHeader(t,J,tt,G,Z,0
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(f,t){function e(t,e){return e.toUpperCase()}var i=[],c=i.slice,g=i.concat,a=i.push,n=i.indexOf,s={},o=s.toString,m=s.hasOwnProperty,v={},_=f.document,r="2.1.4",C=function(t,e){return new C.fn.init(t,e)},l=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,h=/^-ms-/,u=/-([\da-z])/gi;function d(t){var e="length"in t&&t.length,i=C.type(t);return"function"!==i&&!C.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||"number"==typeof e&&0>10|55296,1023&s|56320)}function s(){v()}var t,f,y,o,n,g,d,m,w,h,c,v,x,r,_,b,a,p,C,k="sizzle"+1*new Date,T=i.document,S=0,D=0,l=ot(),I=ot(),E=ot(),P=function(t,e){return t===e&&(c=!0),0},A={}.hasOwnProperty,e=[],M=e.pop,O=e.push,$=e.push,N=e.slice,H=function(t,e){for(var i=0,s=t.length;i+~]|"+z+")"+z+"*"),X=new RegExp("="+z+"*([^\\]'\"]*?)"+z+"*\\]","g"),K=new RegExp(F),V=new RegExp("^"+j+"$"),Q={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W.replace("w","w*")+")"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,tt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/[+~]/,it=/'|\\/g,st=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig");try{$.apply(e=N.call(T.childNodes),T.childNodes),e[T.childNodes.length].nodeType}catch(t){$={apply:e.length?function(t,e){O.apply(t,N.call(e))}:function(t,e){for(var i=t.length,s=0;t[i++]=e[s++];);t.length=i-1}}}function nt(t,e,i,s){var n,o,r,a,l,h,c,u,d,p;if((e?e.ownerDocument||e:T)!==x&&v(e),i=i||[],a=(e=e||x).nodeType,"string"!=typeof t||!t||1!==a&&9!==a&&11!==a)return i;if(!s&&_){if(11!==a&&(n=tt.exec(t)))if(r=n[1]){if(9===a){if(!(o=e.getElementById(r))||!o.parentNode)return i;if(o.id===r)return i.push(o),i}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(r))&&C(e,o)&&o.id===r)return i.push(o),i}else{if(n[2])return $.apply(i,e.getElementsByTagName(t)),i;if((r=n[3])&&f.getElementsByClassName)return $.apply(i,e.getElementsByClassName(r)),i}if(f.qsa&&(!b||!b.test(t))){if(u=c=k,d=e,p=1!==a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(h=g(t),(c=e.getAttribute("id"))?u=c.replace(it,"\\$&"):e.setAttribute("id",u),u="[id='"+u+"'] ",l=h.length;l--;)h[l]=u+gt(h[l]);d=et.test(t)&&pt(e.parentNode)||e,p=h.join(",")}if(p)try{return $.apply(i,d.querySelectorAll(p)),i}catch(t){}finally{c||e.removeAttribute("id")}}}return m(t.replace(B,"$1"),e,i,s)}function ot(){var s=[];return function t(e,i){return s.push(e+" ")>y.cacheLength&&delete t[s.shift()],t[e+" "]=i}}function rt(t){return t[k]=!0,t}function at(t){var e=x.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var i=t.split("|"),s=t.length;s--;)y.attrHandle[i[s]]=e}function ht(t,e){var i=e&&t,s=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(s)return s;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ct(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function ut(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function dt(r){return rt(function(o){return o=+o,rt(function(t,e){for(var i,s=r([],t.length,o),n=s.length;n--;)t[i=s[n]]&&(t[i]=!(e[i]=t[i]))})})}function pt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=nt.support={},n=nt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},v=nt.setDocument=function(t){var e,i,l=t?t.ownerDocument||t:T;return l!==x&&9===l.nodeType&&l.documentElement?(r=(x=l).documentElement,(i=l.defaultView)&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",s,!1):i.attachEvent&&i.attachEvent("onunload",s)),_=!n(l),f.attributes=at(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=at(function(t){return t.appendChild(l.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=J.test(l.getElementsByClassName),f.getById=at(function(t){return r.appendChild(t).id=k,!l.getElementsByName||!l.getElementsByName(k).length}),f.getById?(y.find.ID=function(t,e){if(void 0!==e.getElementById&&_){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},y.filter.ID=function(t){var e=t.replace(st,u);return function(t){return t.getAttribute("id")===e}}):(delete y.find.ID,y.filter.ID=function(t){var i=t.replace(st,u);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}}),y.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,s=[],n=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;i=o[n++];)1===i.nodeType&&s.push(i);return s},y.find.CLASS=f.getElementsByClassName&&function(t,e){return _?e.getElementsByClassName(t):void 0},a=[],b=[],(f.qsa=J.test(l.querySelectorAll))&&(at(function(t){r.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&b.push("[*^$]="+z+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||b.push("\\["+z+"*(?:value|"+L+")"),t.querySelectorAll("[id~="+k+"-]").length||b.push("~="),t.querySelectorAll(":checked").length||b.push(":checked"),t.querySelectorAll("a#"+k+"+*").length||b.push(".#.+[+~]")}),at(function(t){var e=l.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&b.push("name"+z+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||b.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),b.push(",.*:")})),(f.matchesSelector=J.test(p=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&at(function(t){f.disconnectedMatch=p.call(t,"div"),p.call(t,"[s!='']:x"),a.push("!=",F)}),b=b.length&&new RegExp(b.join("|")),a=a.length&&new RegExp(a.join("|")),e=J.test(r.compareDocumentPosition),C=e||J.test(r.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,s=e&&e.parentNode;return t===s||!(!s||1!==s.nodeType||!(i.contains?i.contains(s):t.compareDocumentPosition&&16&t.compareDocumentPosition(s)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},P=e?function(t,e){if(t===e)return c=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===i?t===l||t.ownerDocument===T&&C(T,t)?-1:e===l||e.ownerDocument===T&&C(T,e)?1:h?H(h,t)-H(h,e):0:4&i?-1:1)}:function(t,e){if(t===e)return c=!0,0;var i,s=0,n=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!n||!o)return t===l?-1:e===l?1:n?-1:o?1:h?H(h,t)-H(h,e):0;if(n===o)return ht(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[s]===a[s];)s++;return s?ht(r[s],a[s]):r[s]===T?-1:a[s]===T?1:0},l):x},nt.matches=function(t,e){return nt(t,null,null,e)},nt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==x&&v(t),e=e.replace(X,"='$1']"),!(!f.matchesSelector||!_||a&&a.test(e)||b&&b.test(e)))try{var i=p.call(t,e);if(i||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(st,u),t[3]=(t[3]||t[4]||t[5]||"").replace(st,u),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||nt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&nt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&K.test(i)&&(e=g(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(st,u).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=l[t+" "];return e||(e=new RegExp("(^|"+z+")"+t+"("+z+"|$)"))&&l(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,s,n){return function(t){var e=nt.attr(t,i);return null==e?"!="===s:!s||(e+="","="===s?e===n:"!="===s?e!==n:"^="===s?n&&0===e.indexOf(n):"*="===s?n&&-1(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(t,i,s){if(C.isFunction(i))return C.grep(t,function(t,e){return!!i.call(t,e,t)!==s});if(i.nodeType)return C.grep(t,function(t){return t===i!==s});if("string"==typeof i){if(w.test(i))return C.filter(i,t,s);i=C.filter(i,t)}return C.grep(t,function(t){return 0<=n.call(i,t)!==s})}C.filter=function(t,e,i){var s=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===s.nodeType?C.find.matchesSelector(s,t)?[s]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,i=this.length,s=[],n=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e)[^>]*|#([\w-]*))$/;(C.fn.init=function(t,e){var i,s;if(!t)return this;if("string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):C.isFunction(t)?void 0!==k.ready?k.ready(t):t(C):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),C.makeArray(t,this));if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:T.exec(t))||!i[1]&&e)return!e||e.jquery?(e||k).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:_,!0)),y.test(i[1])&&C.isPlainObject(e))for(i in e)C.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(s=_.getElementById(i[2]))&&s.parentNode&&(this.length=1,this[0]=s),this.context=_,this.selector=t,this}).prototype=C.fn,k=C(_);var S=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function I(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.extend({dir:function(t,e,i){for(var s=[],n=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(n&&C(t).is(i))break;s.push(t)}return s},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),C.fn.extend({has:function(t){var e=C(t,this),i=e.length;return this.filter(function(){for(var t=0;tx",v.noCloneChecked=!!R.cloneNode(!0).lastChild.defaultValue;var U="undefined";v.focusinBubbles="onfocusin"in f;var X=/^key/,K=/^(?:mouse|pointer|contextmenu)|click/,V=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function G(){return!0}function Z(){return!1}function J(){try{return _.activeElement}catch(t){}}C.event={global:{},add:function(e,t,i,s,n){var o,r,a,l,h,c,u,d,p,f,g,m=N.get(e);if(m)for(i.handler&&(i=(o=i).handler,n=o.selector),i.guid||(i.guid=C.guid++),(l=m.events)||(l=m.events={}),(r=m.handle)||(r=m.handle=function(t){return typeof C!=U&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),h=(t=(t||"").match(P)||[""]).length;h--;)p=g=(a=Q.exec(t[h])||[])[1],f=(a[2]||"").split(".").sort(),p&&(u=C.event.special[p]||{},p=(n?u.delegateType:u.bindType)||p,u=C.event.special[p]||{},c=C.extend({type:p,origType:g,data:s,handler:i,guid:i.guid,selector:n,needsContext:n&&C.expr.match.needsContext.test(n),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,s,f,r)||e.addEventListener&&e.addEventListener(p,r,!1)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=i.guid)),n?d.splice(d.delegateCount++,0,c):d.push(c),C.event.global[p]=!0)},remove:function(t,e,i,s,n){var o,r,a,l,h,c,u,d,p,f,g,m=N.hasData(t)&&N.get(t);if(m&&(l=m.events)){for(h=(e=(e||"").match(P)||[""]).length;h--;)if(p=g=(a=Q.exec(e[h])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=C.event.special[p]||{},d=l[p=(s?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)c=d[o],!n&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||s&&s!==c.selector&&("**"!==s||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(t,c));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,m.handle)||C.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)C.event.remove(t,p+e[h],i,s,!0);C.isEmptyObject(l)&&(delete m.handle,N.remove(t,"events"))}},trigger:function(t,e,i,s){var n,o,r,a,l,h,c,u=[i||_],d=m.call(t,"type")?t.type:t,p=m.call(t,"namespace")?t.namespace.split("."):[];if(o=r=i=i||_,3!==i.nodeType&&8!==i.nodeType&&!V.test(d+C.event.triggered)&&(0<=d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),l=d.indexOf(":")<0&&"on"+d,(t=t[C.expando]?t:new C.Event(d,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:C.makeArray(e,[t]),c=C.event.special[d]||{},s||!c.trigger||!1!==c.trigger.apply(i,e))){if(!s&&!c.noBubble&&!C.isWindow(i)){for(a=c.delegateType||d,V.test(a+d)||(o=o.parentNode);o;o=o.parentNode)u.push(o),r=o;r===(i.ownerDocument||_)&&u.push(r.defaultView||r.parentWindow||f)}for(n=0;(o=u[n++])&&!t.isPropagationStopped();)t.type=1]*)\/>/gi,et=/<([\w:]+)/,it=/<|&#?\w+;/,st=/<(?:script|style|link)/i,nt=/checked\s*(?:[^=]|=\s*.checked.)/i,ot=/^$|\/(?:java|ecma)script/i,rt=/^true\/(.*)/,at=/^\s*\s*$/g,lt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ht(t,e){return C.nodeName(t,"table")&&C.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function ct(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function ut(t){var e=rt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function dt(t,e){for(var i=0,s=t.length;i")+a[2],h=a[0];h--;)o=o.lastChild;C.merge(u,o.childNodes),(o=c.firstChild).textContent=""}else u.push(e.createTextNode(n));for(c.textContent="",d=0;n=u[d++];)if((!s||-1===C.inArray(n,s))&&(l=C.contains(n.ownerDocument,n),o=ft(c.appendChild(n),"script"),l&&dt(o),i))for(h=0;n=o[h++];)ot.test(n.type||"")&&i.push(n);return c},cleanData:function(t){for(var e,i,s,n,o=C.event.special,r=0;void 0!==(i=t[r]);r++){if(C.acceptData(i)&&((n=i[N.expando])&&(e=N.cache[n]))){if(e.events)for(s in e.events)o[s]?C.event.remove(i,s):C.removeEvent(i,s,e.handle);N.cache[n]&&delete N.cache[n]}delete H.cache[i[H.expando]]}}}),C.fn.extend({text:function(t){return O(this,function(t){return void 0===t?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ht(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=ht(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,s=t?C.filter(t,this):this,n=0;null!=(i=s[n]);n++)e||1!==i.nodeType||C.cleanData(ft(i)),i.parentNode&&(e&&C.contains(i.ownerDocument,i)&&dt(ft(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return O(this,function(t){var e=this[0]||{},i=0,s=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!st.test(t)&&!lt[(et.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(tt,"<$1>");try{for(;i")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),i=vt(t,e),gt.detach()),mt[t]=i),i}var bt=/^margin/,yt=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),wt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):f.getComputedStyle(t,null)};function xt(t,e,i){var s,n,o,r,a=t.style;return(i=i||wt(t))&&(r=i.getPropertyValue(e)||i[e]),i&&(""!==r||C.contains(t.ownerDocument,t)||(r=C.style(t,e)),yt.test(r)&&bt.test(e)&&(s=a.width,n=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=s,a.minWidth=n,a.maxWidth=o)),void 0!==r?r+"":r}function Ct(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}!function(){var e,i,s=_.documentElement,n=_.createElement("div"),o=_.createElement("div");if(o.style){function t(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",s.appendChild(n);var t=f.getComputedStyle(o,null);e="1%"!==t.top,i="4px"===t.width,s.removeChild(n)}o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===o.style.backgroundClip,n.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",n.appendChild(o),f.getComputedStyle&&C.extend(v,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==i&&t(),i},reliableMarginRight:function(){var t,e=o.appendChild(_.createElement("div"));return e.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",o.style.width="1px",s.appendChild(n),t=!parseFloat(f.getComputedStyle(e,null).marginRight),s.removeChild(n),o.removeChild(e),t}})}}(),C.swap=function(t,e,i,s){var n,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in n=i.apply(t,s||[]),e)t.style[o]=r[o];return n};var kt=/^(none|table(?!-c[ea]).+)/,Tt=new RegExp("^("+q+")(.*)$","i"),St=new RegExp("^([+-])=("+q+")","i"),Dt={position:"absolute",visibility:"hidden",display:"block"},It={letterSpacing:"0",fontWeight:"400"},Et=["Webkit","O","Moz","ms"];function Pt(t,e){if(e in t)return e;for(var i=e[0].toUpperCase()+e.slice(1),s=e,n=Et.length;n--;)if((e=Et[n]+i)in t)return e;return s}function At(t,e,i){var s=Tt.exec(e);return s?Math.max(0,s[1]-(i||0))+(s[2]||"px"):e}function Mt(t,e,i,s,n){for(var o=i===(s?"border":"content")?4:"width"===e?1:0,r=0;o<4;o+=2)"margin"===i&&(r+=C.css(t,i+B[o],!0,n)),s?("content"===i&&(r-=C.css(t,"padding"+B[o],!0,n)),"margin"!==i&&(r-=C.css(t,"border"+B[o]+"Width",!0,n))):(r+=C.css(t,"padding"+B[o],!0,n),"padding"!==i&&(r+=C.css(t,"border"+B[o]+"Width",!0,n)));return r}function Ot(t,e,i){var s=!0,n="width"===e?t.offsetWidth:t.offsetHeight,o=wt(t),r="border-box"===C.css(t,"boxSizing",!1,o);if(n<=0||null==n){if(((n=xt(t,e,o))<0||null==n)&&(n=t.style[e]),yt.test(n))return n;s=r&&(v.boxSizingReliable()||n===t.style[e]),n=parseFloat(n)||0}return n+Mt(t,e,i||(r?"border":"content"),s,o)+"px"}function $t(t,e){for(var i,s,n,o=[],r=0,a=t.length;r").prop({async:!0,charset:i.scriptCharset,src:i.url}).on("load error",n=function(t){s.remove(),n=null,t&&e("error"===t.type?404:200,t.type)}),_.head.appendChild(s[0])},abort:function(){n&&n()}}});var De=[],Ie=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=De.pop()||C.expando+"_"+ee++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,i){var s,n,o,r=!1!==t.jsonp&&(Ie.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ie.test(t.data)&&"data");return r||"jsonp"===t.dataTypes[0]?(s=t.jsonpCallback=C.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(Ie,"$1"+s):!1!==t.jsonp&&(t.url+=(ie.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return o||C.error(s+" was not called"),o[0]},t.dataTypes[0]="json",n=f[s],f[s]=function(){o=arguments},i.always(function(){f[s]=n,t[s]&&(t.jsonpCallback=e.jsonpCallback,De.push(s)),o&&C.isFunction(n)&&n(o[0]),o=n=void 0}),"script"):void 0}),C.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||_;var s=y.exec(t),n=!i&&[];return s?[e.createElement(s[1])]:(s=C.buildFragment([t],e,n),n&&n.length&&C(n).remove(),C.merge([],s.childNodes))};var Ee=C.fn.load;C.fn.load=function(t,e,i){if("string"!=typeof t&&Ee)return Ee.apply(this,arguments);var s,n,o,r=this,a=t.indexOf(" ");return 0<=a&&(s=C.trim(t.slice(a)),t=t.slice(0,a)),C.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(n="POST"),0").append(C.parseHTML(t)).find(s):t)}).complete(i&&function(t,e){r.each(i,o||[t.responseText,e,t])}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.expr.filters.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length};var Pe=f.document.documentElement;function Ae(t){return C.isWindow(t)?t:9===t.nodeType&&t.defaultView}C.offset={setOffset:function(t,e,i){var s,n,o,r,a,l,h=C.css(t,"position"),c=C(t),u={};"static"===h&&(t.style.position="relative"),a=c.offset(),o=C.css(t,"top"),l=C.css(t,"left"),n=("absolute"===h||"fixed"===h)&&-1<(o+l).indexOf("auto")?(r=(s=c.position()).top,s.left):(r=parseFloat(o)||0,parseFloat(l)||0),C.isFunction(e)&&(e=e.call(t,i,a)),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+n),"using"in e?e.using.call(t,u):c.css(u)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,i,s=this[0],n={top:0,left:0},o=s&&s.ownerDocument;return o?(t=o.documentElement,C.contains(t,s)?(typeof s.getBoundingClientRect!=U&&(n=s.getBoundingClientRect()),i=Ae(o),{top:n.top+i.pageYOffset-t.clientTop,left:n.left+i.pageXOffset-t.clientLeft}):n):void 0},position:function(){if(this[0]){var t,e,i=this[0],s={top:0,left:0};return"fixed"===C.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),C.nodeName(t[0],"html")||(s=t.offset()),s.top+=C.css(t[0],"borderTopWidth",!0),s.left+=C.css(t[0],"borderLeftWidth",!0)),{top:e.top-s.top-C.css(i,"marginTop",!0),left:e.left-s.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Pe;t&&!C.nodeName(t,"html")&&"static"===C.css(t,"position");)t=t.offsetParent;return t||Pe})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var o="pageYOffset"===n;C.fn[e]=function(t){return O(this,function(t,e,i){var s=Ae(t);return void 0===i?s?s[n]:t[e]:void(s?s.scrollTo(o?f.pageXOffset:i,o?i:f.pageYOffset):t[e]=i)},e,t,arguments.length,null)}}),C.each(["top","left"],function(t,i){C.cssHooks[i]=Ct(v.pixelPosition,function(t,e){return e?(e=xt(t,i),yt.test(e)?C(t).position()[i]+"px":e):void 0})}),C.each({Height:"height",Width:"width"},function(o,r){C.each({padding:"inner"+o,content:r,"":"outer"+o},function(s,t){C.fn[t]=function(t,e){var i=arguments.length&&(s||"boolean"!=typeof t),n=s||(!0===t||!0===e?"margin":"border");return O(this,function(t,e,i){var s;return C.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+o],s["scroll"+o],t.body["offset"+o],s["offset"+o],s["client"+o])):void 0===i?C.css(t,e,n):C.style(t,e,i,n)},r,i?t:void 0,i,null)}})}),C.fn.size=function(){return this.length},C.fn.andSelf=C.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var Me=f.jQuery,Oe=f.$;return C.noConflict=function(t){return f.$===C&&(f.$=Oe),t&&f.jQuery===C&&(f.jQuery=Me),C},typeof t==U&&(f.jQuery=f.$=C),C}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(C){function t(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},C.extend(this._defaults,this.regional[""]),this.regional.en=C.extend(!0,{},this.regional[""]),this.regional["en-US"]=C.extend(!0,{},this.regional.en),this.dpDiv=i(C("
"))}function i(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){C(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&C(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&C(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,o)}function o(){C.datepicker._isDisabledDatepicker(y.inline?y.dpDiv.parent()[0]:y.input[0])||(C(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),C(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&C(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&C(this).addClass("ui-datepicker-next-hover"))}function u(t,e){for(var i in C.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}function e(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}C.ui=C.ui||{},C.ui.version="1.12.1";var s,n,r,a,x,k,l,h,c,T,d,S,p,f=0,g=Array.prototype.slice;function D(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function I(t,e){return parseInt(C.css(t,e),10)||0}C.cleanData=(p=C.cleanData,function(t){var e,i,s;for(s=0;null!=(i=t[s]);s++)try{(e=C._data(i,"events"))&&e.remove&&C(i).triggerHandler("remove")}catch(t){}p(t)}),C.widget=function(t,i,e){var s,n,o,r={},a=t.split(".")[0],l=a+"-"+(t=t.split(".")[1]);return e||(e=i,i=C.Widget),C.isArray(e)&&(e=C.extend.apply(null,[{}].concat(e))),C.expr[":"][l.toLowerCase()]=function(t){return!!C.data(t,l)},C[a]=C[a]||{},s=C[a][t],n=C[a][t]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new n(t,e)},C.extend(n,s,{version:e.version,_proto:C.extend({},e),_childConstructors:[]}),(o=new i).options=C.widget.extend({},o.options),C.each(e,function(e,s){return C.isFunction(s)?void(r[e]=function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}):void(r[e]=s);function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}}),n.prototype=C.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},r,{constructor:n,namespace:a,widgetName:t,widgetFullName:l}),s?(C.each(s._childConstructors,function(t,e){var i=e.prototype;C.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),C.widget.bridge(t,n),n},C.widget.extend=function(t){for(var e,i,s=g.call(arguments,1),n=0,o=s.length;n",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=C(e||this.defaultElement||this)[0],this.element=C(e),this.uuid=f++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=C(),this.hoverable=C(),this.focusable=C(),this.classesElementLookup={},e!==this&&(C.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=C(e.style?e.ownerDocument:e.document||e),this.window=C(this.document[0].defaultView||this.document[0].parentWindow)),this.options=C.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:C.noop,_create:C.noop,_init:C.noop,destroy:function(){var i=this;this._destroy(),C.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:C.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return C.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=C.widget.extend({},this.options[t]),n=0;i.length-1>n;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=C(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(n){function t(t,e){var i,s;for(s=0;t.length>s;s++)i=r.classesElementLookup[t[s]]||C(),i=n.add?C(C.unique(i.get().concat(n.element.get()))):C(i.not(n.element).get()),r.classesElementLookup[t[s]]=i,o.push(t[s]),e&&n.classes[t[s]]&&o.push(n.classes[t[s]])}var o=[],r=this;return n=C.extend({element:this.element,classes:this.options.classes||{}},n),this._on(n.element,{remove:"_untrackClassesElement"}),n.keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var s=this;C.each(s.classesElementLookup,function(t,e){-1!==C.inArray(i.target,e)&&(s.classesElementLookup[t]=C(e.not(i.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(r,a,t){var l,h=this;"boolean"!=typeof r&&(t=a,a=r,r=!1),t?(a=l=C(a),this.bindings=this.bindings.add(a)):(t=a,a=this.element,l=this.widget()),C.each(t,function(t,e){function i(){return r||!0!==h.options.disabled&&!C(this).hasClass("ui-state-disabled")?("string"==typeof e?h[e]:e).apply(h,arguments):void 0}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||C.guid++);var s=t.match(/^([\w:-]*)\s*(.*)$/),n=s[1]+h.eventNamespace,o=s[2];o?l.on(n,o,i):a.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=C(this.bindings.not(t).get()),this.focusable=C(this.focusable.not(t).get()),this.hoverable=C(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(C(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(C(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(C(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(C(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,o=this.options[t];if(i=i||{},(e=C.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!(C.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},C.each({show:"fadeIn",hide:"fadeOut"},function(o,r){C.Widget.prototype["_"+o]=function(e,t,i){"string"==typeof t&&(t={effect:t});var s,n=t?!0===t||"number"==typeof t?r:t.effect||r:o;"number"==typeof(t=t||{})&&(t={duration:t}),s=!C.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&C.effects&&C.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){C(this)[o](),i&&i.call(e[0]),t()})}}),C.widget,x=Math.max,k=Math.abs,l=/left|center|right/,h=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,T=/^\w+/,d=/%$/,S=C.fn.position,C.position={scrollbarWidth:function(){if(void 0!==a)return a;var t,e,i=C("
"),s=i.children()[0];return C("body").append(i),t=s.offsetWidth,i.css("overflow","scroll"),t===(e=s.offsetWidth)&&(e=i[0].clientWidth),i.remove(),a=t-e},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),s="scroll"===e||"auto"===e&&t.widthk(e+i)&&(o.horizontal="center"),fk(s+n)&&(o.vertical="middle"),o.important=x(k(e),k(i))>x(k(s),k(n))?"horizontal":"vertical",u.using.call(this,t,o)}),r.offset(C.extend(h,{using:t}))})},C.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,o=s.width,r=t.left-e.collisionPosition.marginLeft,a=n-r,l=r+e.collisionWidth-o-n;e.collisionWidth>o?0o?0i)&&(t.left+=u+d+p):0k(s))&&(t.left+=u+d+p)},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,a=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPosition.marginTop,h=l-a,c=l+e.collisionHeight-r-a,u="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,d="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,p=-2*e.offset[1];h<0?((s=t.top+u+d+p+e.collisionHeight-r-o)<0||k(h)>s)&&(t.top+=u+d+p):0k(i))&&(t.top+=u+d+p)}},flipfit:{left:function(){C.ui.position.flip.left.apply(this,arguments),C.ui.position.fit.left.apply(this,arguments)},top:function(){C.ui.position.flip.top.apply(this,arguments),C.ui.position.fit.top.apply(this,arguments)}}},C.ui.position,C.extend(C.expr[":"],{data:C.expr.createPseudo?C.expr.createPseudo(function(e){return function(t){return!!C.data(t,e)}}):function(t,e,i){return!!C.data(t,i[3])}}),C.fn.extend({disableSelection:(r="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(r+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),C.ui.focusable=function(t,e){var i,s,n,o,r,a=t.nodeName.toLowerCase();return"area"===a?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&(0<(n=C("img[usemap='#"+s+"']")).length&&n.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(a)?(o=!t.disabled)&&((r=C(t).closest("fieldset")[0])&&(o=!r.disabled)):o="a"===a&&t.href||e,o&&C(t).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}(C(t)))},C.extend(C.expr[":"],{focusable:function(t){return C.ui.focusable(t,null!=C.attr(t,"tabindex"))}}),C.ui.focusable,C.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):C(this[0].form)},C.ui.formResetMixin={_formResetHandler:function(){var e=C(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");C.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(C.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===C.fn.jquery.substring(0,3)&&(C.each(["Width","Height"],function(t,i){function s(t,e,i,s){return C.each(n,function(){e-=parseFloat(C.css(t,"padding"+this))||0,i&&(e-=parseFloat(C.css(t,"border"+this+"Width"))||0),s&&(e-=parseFloat(C.css(t,"margin"+this))||0)}),e}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),r={innerWidth:C.fn.innerWidth,innerHeight:C.fn.innerHeight,outerWidth:C.fn.outerWidth,outerHeight:C.fn.outerHeight};C.fn["inner"+i]=function(t){return void 0===t?r["inner"+i].call(this):this.each(function(){C(this).css(o,s(this,t)+"px")})},C.fn["outer"+i]=function(t,e){return"number"!=typeof t?r["outer"+i].call(this,t):this.each(function(){C(this).css(o,s(this,t,!0,e)+"px")})}}),C.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),C.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},C.ui.escapeSelector=(n=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(n,"\\$1")}),C.fn.labels=function(){var t,e,i,s,n;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),(i=this.attr("id"))&&(n=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),e="label[for='"+C.ui.escapeSelector(i)+"']",s=s.add(n.find(e).addBack(e))),this.pushStack(s))},C.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,n=this.parents().filter(function(){var t=C(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&n.length?n:C(this[0].ownerDocument||document)},C.extend(C.expr[":"],{tabbable:function(t){var e=C.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&C.ui.focusable(t,i)}}),C.fn.extend({uniqueId:(s=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++s)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&C(this).removeAttr("id")})}}),C.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var m=!1;C(document).on("mouseup",function(){m=!1}),C.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){return!0===C.data(t.target,e.widgetName+".preventClickEvent")?(C.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!m){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,i=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&C(t.target).closest(this.options.cancel).length;return i&&!s&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===C.data(t.target,this.widgetName+".preventClickEvent")&&C.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),m=!0)),!0}},_mouseMove:function(t){if(this._mouseMoved){if(C.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&C.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,m=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),C.ui.plugin={add:function(t,e,i){var s,n=C.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},C.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return(i=i||e.body).nodeName||(i=e.body),i},C.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&C(t).trigger("blur")},C.widget("ui.draggable",C.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=C.ui.safeActiveElement(this.document[0]);C(t.target).closest(e).length||C.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),C.ui.ddmanager&&(C.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),r.grid&&(n=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-r.grid[1]:n+r.grid[1]:n,o=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-r.grid[0]:o+r.grid[0]:o),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,i){return i=i||this._uiHash(),C.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),C.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),C.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var s=C.extend({},t,{item:i.element});i.sortables=[],C(i.options.connectToSortable).each(function(){var t=C(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,s))})},stop:function(e,t,i){var s=C.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,C.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(i,s,n){C.each(n.sortables,function(){var t=!1,e=this;e.positionAbs=n.positionAbs,e.helperProportions=n.helperProportions,e.offset.click=n.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,C.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==e&&this._intersectsWith(this.containerCache)&&C.contains(e.element[0],this.element[0])&&(t=!1),t})),t?(e.isOver||(e.isOver=1,n._parent=s.helper.parent(),e.currentItem=s.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return s.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=n.offset.click.top,e.offset.click.left=n.offset.click.left,e.offset.parent.left-=n.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=n.offset.parent.top-e.offset.parent.top,n._trigger("toSortable",i),n.dropped=e.element,C.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,e.fromOutside=n),e.currentItem&&(e._mouseDrag(i),s.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),s.helper.appendTo(n._parent),n._refreshOffsets(i),s.position=n._generatePosition(i,!0),n._trigger("fromSortable",i),n.dropped=!1,C.each(n.sortables,function(){this.refreshPositions()}))})}}),C.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var s=C("body"),n=i.options;s.css("cursor")&&(n._cursor=s.css("cursor")),s.css("cursor",n.cursor)},stop:function(t,e,i){var s=i.options;s._cursor&&C("body").css("cursor",s._cursor)}}),C.ui.plugin.add("draggable","opacity",{start:function(t,e,i){var s=C(e.helper),n=i.options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity)},stop:function(t,e,i){var s=i.options;s._opacity&&C(e.helper).css("opacity",s._opacity)}}),C.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var s=i.options,n=!1,o=i.scrollParentNotHidden[0],r=i.document[0];o!==r&&"HTML"!==o.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+o.offsetHeight-t.pageY=Math.abs(h-_),n=f>=Math.abs(c-v),o=f>=Math.abs(a-m),r=f>=Math.abs(l-g),s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),d=s||n||o||r,"outer"!==p.snapMode&&(s=f>=Math.abs(h-v),n=f>=Math.abs(c-_),o=f>=Math.abs(a-g),r=f>=Math.abs(l-m),s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[u].snapping&&(s||n||o||r||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,C.extend(i._uiHash(),{snapItem:i.snapElements[u].item})),i.snapElements[u].snapping=s||n||o||r||d)}}),C.ui.plugin.add("draggable","stack",{start:function(t,e,i){var s,n=i.options,o=C.makeArray(C(n.stack)).sort(function(t,e){return(parseInt(C(t).css("zIndex"),10)||0)-(parseInt(C(e).css("zIndex"),10)||0)});o.length&&(s=parseInt(C(o[0]).css("zIndex"),10)||0,C(o).each(function(t){C(this).css("zIndex",s+t)}),this.css("zIndex",s+o.length))}}),C.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){var s=C(e.helper),n=i.options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex)},stop:function(t,e,i){var s=i.options;s._zIndex&&C(e.helper).css("zIndex",s._zIndex)}}),C.ui.draggable,C.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=C.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){return arguments.length?void(t=arguments[0]):t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){C.ui.ddmanager.droppables[t]=C.ui.ddmanager.droppables[t]||[],C.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=C.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){if("accept"===t)this.accept=C.isFunction(e)?e:function(t){return t.is(e)};else if("scope"===t){var i=C.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(e)}this._super(t,e)},_activate:function(t){var e=C.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=C.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=C.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=C.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||C.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=C(this).droppable("instance");return t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&v(i,C.extend(t,{offset:t.element.offset()}),t.options.tolerance,e)?!(s=!0):void 0}),!s&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var v=C.ui.intersect=function(t,e,i,s){if(!e.offset)return!1;var n=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,r=n+t.helperProportions.width,a=o+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,u=h+e.proportions().height;switch(i){case"fit":return l<=n&&r<=c&&h<=o&&a<=u;case"intersect":return n+t.helperProportions.width/2>l&&c>r-t.helperProportions.width/2&&o+t.helperProportions.height/2>h&&u>a-t.helperProportions.height/2;case"pointer":return _(s.pageY,h,e.proportions().height)&&_(s.pageX,l,e.proportions().width);case"touch":return(h<=o&&o<=u||h<=a&&a<=u||oi;i++)if(!(n[i].options.disabled||t&&!n[i].accept.call(n[i].element[0],t.currentItem||t.element))){for(s=0;r.length>s;s++)if(r[s]===n[i].element[0]){n[i].proportions().height=0;continue t}n[i].visible="none"!==n[i].element.css("display"),n[i].visible&&("mousedown"===o&&n[i]._activate.call(n[i],e),n[i].offset=n[i].element.offset(),n[i].proportions({width:n[i].element[0].offsetWidth,height:n[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return C.each((C.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&v(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e)))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||C.ui.ddmanager.prepareOffsets(t,e)})},drag:function(o,r){o.options.refreshPositions&&C.ui.ddmanager.prepareOffsets(o,r),C.each(C.ui.ddmanager.droppables[o.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var t,e,i,s=v(o,this,this.options.tolerance,r),n=!s&&this.isover?"isout":s&&!this.isover?"isover":null;n&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return C(this).droppable("instance").options.scope===e})).length&&((t=C(i[0]).droppable("instance")).greedyChild="isover"===n)),t&&"isover"===n&&(t.isover=!1,t.isout=!0,t._out.call(t,r)),this[n]=!0,this["isout"===n?"isover":"isout"]=!1,this["isover"===n?"_over":"_out"].call(this,r),t&&"isout"===n&&(t.isout=!1,t.isover=!0,t._over.call(t,r)))}})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||C.ui.ddmanager.prepareOffsets(t,e)}})!==C.uiBackCompat&&C.widget("ui.droppable",C.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),C.ui.droppable,C.widget("ui.resizable",C.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){if("hidden"===C(t).css("overflow"))return!1;var i=e&&"left"===e?"scrollLeft":"scrollTop",s=!1;return 0
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&C(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();function t(t){C(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var t,e,i,s,n,o=this.options,r=this;if(this.handles=o.handles||(C(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=C(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;i.length>e;e++)s="ui-resizable-"+(t=C.trim(i[e])),n=C("
"),this._addClass(n,"ui-resizable-handle "+s),n.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(n);this._renderAxis=function(t){var e,i,s,n;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=C(this.handles[e]),this._on(this.handles[e],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=C(this.handles[e],this.element),n=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),s=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(s,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var e,i,s=!1;for(e in this.handles)(i=C(this.handles[e])[0])!==t.target&&!C.contains(i,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var e,i,s,n=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),n.containment&&(e+=C(n.containment).scrollLeft()||0,i+=C(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=C(".ui-resizable-"+this.axis).css("cursor"),C("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e,i,s=this.originalMousePosition,n=this.axis,o=t.pageX-s.left||0,r=t.pageY-s.top||0,a=this._change[n];return this._updatePrevProperties(),a&&(e=a.apply(this,[t,o,r]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),C.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,s,n,o,r,a,l=this.options,h=this;return this._helper&&(s=(i=(e=this._proportionallyResizeElements).length&&/textarea/i.test(e[0].nodeName))&&this._hasScroll(e[0],"left")?0:h.sizeDiff.height,n=i?0:h.sizeDiff.width,o={width:h.helper.width()-n,height:h.helper.height()-s},r=parseFloat(h.element.css("left"))+(h.position.left-h.originalPosition.left)||null,a=parseFloat(h.element.css("top"))+(h.position.top-h.originalPosition.top)||null,l.animate||this.element.css(C.extend(o,{top:a,left:r})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!l.animate&&this._proportionallyResize()),C("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n,o,r=this.options;o={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidtht.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),r&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=a-e.minWidth),s&&h&&(t.left=a-e.maxWidth),r&&c&&(t.top=l-e.minHeight),n&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||C("
"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return C.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return C.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return C.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return C.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){C.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),C.ui.plugin.add("resizable","animate",{stop:function(e){var i=C(this).resizable("instance"),t=i.options,s=i._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),o=n&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,r=n?0:i.sizeDiff.width,a={width:i.size.width-r,height:i.size.height-o},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(C.extend(a,h&&l?{top:h,left:l}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&C(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),C.ui.plugin.add("resizable","containment",{start:function(){var i,s,t,e,n,o,r,a=C(this).resizable("instance"),l=a.options,h=a.element,c=l.containment,u=c instanceof C?c.get(0):/parent/.test(c)?h.parent().get(0):c;u&&(a.containerElement=C(u),/document/.test(c)||c===document?(a.containerOffset={left:0,top:0},a.containerPosition={left:0,top:0},a.parentData={element:C(document),left:0,top:0,width:C(document).width(),height:C(document).height()||document.body.parentNode.scrollHeight}):(i=C(u),s=[],C(["Top","Right","Left","Bottom"]).each(function(t,e){s[t]=a._num(i.css("padding"+e))}),a.containerOffset=i.offset(),a.containerPosition=i.position(),a.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},t=a.containerOffset,e=a.containerSize.height,n=a.containerSize.width,o=a._hasScroll(u,"left")?u.scrollWidth:n,r=a._hasScroll(u)?u.scrollHeight:e,a.parentData={element:u,left:t.left,top:t.top,width:o,height:r}))},resize:function(t){var e,i,s,n,o=C(this).resizable("instance"),r=o.options,a=o.containerOffset,l=o.position,h=o._aspectRatio||t.shiftKey,c={top:0,left:0},u=o.containerElement,d=!0;u[0]!==document&&/static/.test(u.css("position"))&&(c=a),l.left<(o._helper?a.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-a.left:o.position.left-c.left),h&&(o.size.height=o.size.width/o.aspectRatio,d=!1),o.position.left=r.helper?a.left:0),l.top<(o._helper?a.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-a.top:o.position.top),h&&(o.size.width=o.size.height*o.aspectRatio,d=!1),o.position.top=o._helper?a.top:0),s=o.containerElement.get(0)===o.element.parent().get(0),n=/relative|absolute/.test(o.containerElement.css("position")),s&&n?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),e=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-c.left:o.offset.left-a.left)),i=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-c.top:o.offset.top-a.top)),e+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-e,h&&(o.size.height=o.size.width/o.aspectRatio,d=!1)),i+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-i,h&&(o.size.width=o.size.height*o.aspectRatio,d=!1)),d||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var t=C(this).resizable("instance"),e=t.options,i=t.containerOffset,s=t.containerPosition,n=t.containerElement,o=C(t.helper),r=o.offset(),a=o.outerWidth()-t.sizeDiff.width,l=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&C(this).css({left:r.left-s.left-i.left,width:a,height:l}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&C(this).css({left:r.left-s.left-i.left,width:a,height:l})}}),C.ui.plugin.add("resizable","alsoResize",{start:function(){var t=C(this).resizable("instance").options;C(t.alsoResize).each(function(){var t=C(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=C(this).resizable("instance"),s=e.options,n=e.originalSize,o=e.originalPosition,r={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};C(s.alsoResize).each(function(){var t=C(this),s=C(this).data("ui-resizable-alsoresize"),n={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];C.each(e,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})},stop:function(){C(this).removeData("ui-resizable-alsoresize")}}),C.ui.plugin.add("resizable","ghost",{start:function(){var t=C(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==C.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=C(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=C(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),C.ui.plugin.add("resizable","grid",{resize:function(){var t,e=C(this).resizable("instance"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,r=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,h=a[1]||1,c=Math.round((s.width-n.width)/l)*l,u=Math.round((s.height-n.height)/h)*h,d=n.width+c,p=n.height+u,f=i.maxWidth&&d>i.maxWidth,g=i.maxHeight&&p>i.maxHeight,m=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=a,m&&(d+=l),v&&(p+=h),f&&(d-=l),g&&(p-=h),/^(se|s|e)$/.test(r)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.top=o.top-u):/^(sw)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.left=o.left-c):((p-h<=0||d-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var s=this,t=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=C(this.element[0]).offset(),this.options.disabled||(this.selectees=C(t.filter,this.element[0]),this._trigger("start",i),C(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=C.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(s._removeClass(t.$element,"ui-selected"),t.selected=!1,s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",i,{unselecting:t.element}))}),C(i.target).parents().addBack().each(function(){var t,e=C.data(this,"selectable-item");return e?(t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),s._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?s._trigger("selecting",i,{selecting:e.element}):s._trigger("unselecting",i,{unselecting:e.element}),!1):void 0}))},_mouseDrag:function(s){if(this.dragged=!0,!this.options.disabled){var t,n=this,o=this.options,r=this.opos[0],a=this.opos[1],l=s.pageX,h=s.pageY;return ll||r>i.right||i.top>h||a>i.bottom):"fit"===o.tolerance&&(e=i.left>r&&l>i.right&&i.top>a&&h>i.bottom),e?(t.selected&&(n._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(n._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(n._addClass(t.$element,"ui-selecting"),t.selecting=!0,n._trigger("selecting",s,{selecting:t.element}))):(t.selecting&&((s.metaKey||s.ctrlKey)&&t.startselected?(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,n._addClass(t.$element,"ui-selected"),t.selected=!0):(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),n._trigger("unselecting",s,{unselecting:t.element}))),t.selected&&(s.metaKey||s.ctrlKey||t.startselected||(n._removeClass(t.$element,"ui-selected"),t.selected=!1,n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",s,{unselecting:t.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,C(".ui-unselecting",this.element[0]).each(function(){var t=C.data(this,"selectable-item");i._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),C(".ui-selecting",this.element[0]).each(function(){var t=C.data(this,"selectable-item");i._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),C.widget("ui.sortable",C.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t*{ cursor: "+o.cursor+" !important; }").appendTo(n)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return C.ui.ddmanager&&(C.ui.ddmanager.current=this),C.ui.ddmanager&&!o.dropBehaviour&&C.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,i,s,n,o=this.options,r=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageYt[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&r>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>a&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,i,s="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!!(s&&n)&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&i||"left"===n&&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0e;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,n,o,r,a,l,h=this.items,c=[[C.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):C(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(e=u.length-1;0<=e;e--)for(i=(s=C(u[e],this.document[0])).length-1;0<=i;i--)(n=C.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&(c.push([C.isFunction(n.options.items)?n.options.items.call(n.element[0],t,{item:this.currentItem}):C(n.options.items,n.element),n]),this.containers.push(n));for(e=c.length-1;0<=e;e--)for(o=c[e][1],i=0,l=(r=c[e][0]).length;i",i.document[0]);return i._addClass(e,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(e,"ui-sortable-helper"),"tbody"===t?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),C("
 
",I=u?"":"",w=0;w<7;w++)I+="";for(D+=I+"",P=this._getDaysInMonth(tt,J),tt===t.selectedYear&&J===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,P)),A=(this._getFirstDayOfMonth(tt,J)-c+7)%7,M=Math.ceil((A+P)/7),O=V&&this.maxRows>M?this.maxRows:M,this.maxRows=O,$=this._daylightSavingAdjust(new Date(tt,J,1-A)),N=0;N",H=u?"":"",w=0;w<7;w++)L=m?m.apply(t.input?t.input[0]:null,[$]):[!0,""],W=(z=$.getMonth()!==J)&&!_||!L[0]||G&&$"+(z&&!v?" ":W?""+$.getDate()+"":""+$.getDate()+"")+"",$.setDate($.getDate()+1),$=this._daylightSavingAdjust($);D+=H+""}11<++J&&(J=0,tt++),C+=D+="
"+this._get(t,"weekHeader")+""+p[E]+"
"+this._get(t,"calculateWeek")($)+"
"+(V?"
"+(0
":""):"")}y+=C}return y+=h,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,s,n,o,r,a){var l,h,c,u,d,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),_=this._get(t,"showMonthAfterYear"),b="
",y="";if(o||!m)y+=""+r[e]+"";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,y+=""}if(_||(b+=y+(!o&&m&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!v)b+=""+i+"";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),f=(p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e})(u[0]),g=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,t.yearshtml+="",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),_&&(b+=(!o&&m&&v?"":" ")+y),b+"
"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,o)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&e=n.getTime())&&(!o||e.getTime()<=o.getTime())&&(!r||e.getFullYear()>=r)&&(!a||a>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),C.fn.datepicker=function(t){if(!this.length)return this;C.datepicker.initialized||(C(document).on("mousedown",C.datepicker._checkExternalClick),C.datepicker.initialized=!0),0===C("#"+C.datepicker._mainDivId).length&&C("body").append(C.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?C.datepicker["_"+t+"Datepicker"].apply(C.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?C.datepicker["_"+t+"Datepicker"].apply(C.datepicker,[this].concat(e)):C.datepicker._attachDatepicker(this,t)}):C.datepicker["_"+t+"Datepicker"].apply(C.datepicker,[this[0]].concat(e))},C.datepicker=new t,C.datepicker.initialized=!1,C.datepicker.uuid=(new Date).getTime(),C.datepicker.version="1.12.1",C.datepicker,C.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=C(this).css(t).offset().top;e<0&&C(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&C.fn.draggable&&this._makeDraggable(),this.options.resizable&&C.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?C(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:C.noop,enable:C.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||C.ui.safeBlur(C.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+C(this).css("z-index")}).get(),n=Math.max.apply(null,s);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=C(C.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=t||this.element.find("[autofocus]")).length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(t){function e(){var t=C.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||C.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=C("
").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===C.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===C.ui.keyCode.TAB&&!t.isDefaultPrevented()){var e=this.uiDialog.find(":tabbable"),i=e.filter(":first"),s=e.filter(":last");t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=C("
"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){C(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=C("").button({label:C("").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=C("").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=C("
"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=C("
").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var n=this,t=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),C.isEmptyObject(t)||C.isArray(t)&&!t.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(C.each(t,function(t,e){var i,s;e=C.isFunction(e)?{click:e,text:t}:e,e=C.extend({type:"button"},e),i=e.click,s={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,C("",e).button(s).appendTo(n.uiButtonSet).on("click",function(){i.apply(n.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function n(t){return{position:t.position,offset:t.offset}}var o=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){o._addClass(C(this),"ui-dialog-dragging"),o._blockFrames(),o._trigger("dragStart",t,n(e))},drag:function(t,e){o._trigger("drag",t,n(e))},stop:function(t,e){var i=e.offset.left-o.document.scrollLeft(),s=e.offset.top-o.document.scrollTop();r.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=s?"+":"")+s,of:o.window},o._removeClass(C(this),"ui-dialog-dragging"),o._unblockFrames(),o._trigger("dragStop",t,n(e))}})},_makeResizable:function(){function o(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var r=this,a=this.options,t=a.resizable,e=this.uiDialog.css("position"),i="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:i,start:function(t,e){r._addClass(C(this),"ui-dialog-resizing"),r._blockFrames(),r._trigger("resizeStart",t,o(e))},resize:function(t,e){r._trigger("resize",t,o(e))},stop:function(t,e){var i=r.uiDialog.offset(),s=i.left-r.document.scrollLeft(),n=i.top-r.document.scrollTop();a.height=r.uiDialog.height(),a.width=r.uiDialog.width(),a.position={my:"left top",at:"left"+(0<=s?"+":"")+s+" top"+(0<=n?"+":"")+n,of:r.window},r._removeClass(C(this),"ui-dialog-resizing"),r._unblockFrames(),r._trigger("resizeStop",t,o(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=C(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=C.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};C.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(t,e){var i,s,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:C("").text(""+this.options.closeText).html()}),"draggable"===t&&((i=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=C(this);return C("
").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!C(t.target).closest(".ui-dialog").length||!!C(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=C("
").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==C.uiBackCompat&&C.widget("ui.dialog",C.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),C.ui.dialog,C.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=C("
").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=C("
").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),C.widget("ui.selectmenu",[C.ui.formResetMixin,{version:"1.12.1",defaultElement:"",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var s=this._super(),n=this.element;return C.each(["min","max","step"],function(t,e){var i=n.attr(e);null!=i&&i.length&&(s[e]=i)}),s},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((0").parent().append("")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0s.max?s.max:null!==s.min&&s.min>t?s.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,s,n;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i))):("max"!==t&&"min"!==t&&"step"!==t||"string"!=typeof e||(e=this._parse(e)),"icons"===t&&(s=this.buttons.first().find(".ui-icon"),this._removeClass(s,null,this.options.icons.up),this._addClass(s,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:e(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""===t||null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void e(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==C.uiBackCompat&&C.widget("ui.spinner",C.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""}}),C.ui.spinner,C.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(w=/#.*$/,function(t){var e,i;e=t.href.replace(w,""),i=location.href.replace(w,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=C.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!C.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=C()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=C()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){C(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){C(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return C("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=C(),this.anchors.each(function(t,e){var i,s,n,o=C(e).uniqueId().attr("id"),r=C(e).closest("li"),a=r.attr("aria-controls");l._isLocal(e)?(n=(i=e.hash).substring(1),s=l.element.find(l._sanitizeSelector(i))):(i="#"+(n=r.attr("aria-controls")||C({}).uniqueId()[0].id),(s=l.element.find(i)).length||(s=l._createPanel(n)).insertAfter(l.panels[t-1]||l.tablist),s.attr("aria-live","polite")),s.length&&(l.panels=l.panels.add(s)),a&&r.data("ui-tabs-aria-controls",a),r.attr({"aria-controls":n,"aria-labelledby":o}),s.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return C("
").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i,s;for(C.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),s=0;i=this.tabs[s];s++)e=C(i),!0===t||-1!==C.inArray(s,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&C.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=C(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=C(this).outerHeight(!0)}),this.panels.each(function(){C(this).height(Math.max(0,i-C(this).innerHeight()+C(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,C(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,s=C(t.currentTarget).closest("li"),n=s[0]===i[0],o=n&&e.collapsible,r=o?C():this._getPanelForTab(s),a=i.length?this._getPanelForTab(i):C(),l={oldTab:i,oldPanel:a,newTab:o?C():s,newPanel:r};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||n&&!e.collapsible||!1===this._trigger("beforeActivate",t,l)||(e.active=!o&&this.tabs.index(s),this.active=n?C():s,this.xhr&&this.xhr.abort(),a.length||r.length||C.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(s),t),this._toggle(t,l))},_toggle:function(t,e){function i(){n.running=!1,n._trigger("activate",t,e)}function s(){n._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),o.length&&n.options.show?n._show(o,n.options.show,i):(o.show(),i())}var n=this,o=e.newPanel,r=e.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){n._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),s()),r.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&r.length?e.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===C(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var e,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),e=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:e,currentTarget:e,preventDefault:C.noop}))},_findActive:function(t){return!1===t?C():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+C.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){C.data(this,"ui-tabs-destroy")?C(this).remove():C(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=C(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),C.isArray(t)?C.map(t,function(t){return t!==i?t:null}):C.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==C.inArray(t,e))return;e=C.isArray(e)?C.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,s){t=this._getIndex(t);function n(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(i,"ui-tabs-loading"),r.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}var o=this,i=this.tabs.eq(t),e=i.find(".ui-tabs-anchor"),r=this._getPanelForTab(i),a={tab:i,panel:r};this._isLocal(e[0])||(this.xhr=C.ajax(this._ajaxSettings(e,s,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){r.html(t),o._trigger("load",s,a),n(i,e)},1)}).fail(function(t,e){setTimeout(function(){n(t,e)},1)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return n._trigger("beforeLoad",i,C.extend({jqXHR:t,ajaxSettings:e},s))}}},_getPanelForTab:function(t){var e=C(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+e))}}),!1!==C.uiBackCompat&&C.widget("ui.tabs",C.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),C.ui.tabs,C.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=C(this).attr("title")||"";return C("").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",C.trim(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),s=C.inArray(e,i);-1!==s&&i.splice(s,1),t.removeData("ui-tooltip-id"),(i=C.trim(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=C("
").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=C([])},_setOption:function(t,e){var i=this;this._super(t,e),"content"===t&&C.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var s=this;C.each(this.tooltips,function(t,e){var i=C.Event("blur");i.target=i.currentTarget=e.element[0],s.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=C(this);return t.is("[title]")?t.data("ui-tooltip-title",t.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var t=C(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=C([])},open:function(t){var i=this,e=C(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=C(this);e.data("ui-tooltip-open")&&((t=C.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t,s=this.options.content,n=this,o=i?i.type:null;return"string"==typeof s||s.nodeType||s.jquery?this._open(i,e,s):void((t=s.call(e[0],function(t){n._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=o),this._open(i,e,t))})}))&&this._open(i,e,t))},_open:function(t,e,i){function s(t){l.of=t,o.is(":hidden")||o.position(l)}var n,o,r,a,l=C.extend({},this.options.position);if(i){if(n=this._find(e))return void n.tooltip.find(".ui-tooltip-content").html(i);e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),n=this._tooltip(e),o=n.tooltip,this._addDescribedBy(e,o.attr("id")),o.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(a=C("
").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),a.removeAttr("id").find("[id]").removeAttr("id"),a.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):o.position(C.extend({of:e},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){o.is(":visible")&&(s(l.of),clearInterval(r))},C.fx.interval)),this._trigger("open",t,{tooltip:o})}},_registerCloseHandlers:function(t,i){var e={keyup:function(t){if(t.keyCode===C.ui.keyCode.ESCAPE){var e=C.Event(t);e.currentTarget=i[0],this.close(e,!0)}}};i[0]!==this.element[0]&&(e.remove=function(){this._removeTooltip(this._find(i).tooltip)}),t&&"mouseover"!==t.type||(e.mouseleave="close"),t&&"focusin"!==t.type||(e.focusout="close"),this._on(!0,i,e)},close:function(t){var e,i=this,s=C(t?t.currentTarget:this.element),n=this._find(s);return n?(e=n.tooltip,void(n.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(C(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&C.each(this.parents,function(t,e){C(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding||(n.closing=!1)))):void s.removeData("ui-tooltip-open")},_tooltip:function(t){var e=C("
").attr("role","tooltip"),i=C("
").appendTo(e),s=e.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[s]={element:t,tooltip:e}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var n=this;C.each(this.tooltips,function(t,e){var i=C.Event("blur"),s=e.element;i.target=i.currentTarget=s[0],n.close(i,!0),C("#"+t).remove(),s.data("ui-tooltip-title")&&(s.attr("title")||s.attr("title",s.data("ui-tooltip-title")),s.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==C.uiBackCompat&&C.widget("ui.tooltip",C.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),C.ui.tooltip;var P,A,M,O,$,N,H,L,z,W,j,R,F,q,B,Y,U,X,K,V,Q,G="ui-effects-",Z="ui-effects-style",J="ui-effects-animated",tt=C;function et(t,e,i,s){return C.isPlainObject(t)&&(t=(e=t).effect),t={effect:t},null==e&&(e={}),C.isFunction(e)&&(s=e,i=null,e={}),"number"!=typeof e&&!C.fx.speeds[e]||(s=i,i=e,e={}),C.isFunction(i)&&(s=i,i=null),e&&C.extend(t,e),i=i||e.duration,t.duration=C.fx.off?0:"number"==typeof i?i:i in C.fx.speeds?C.fx.speeds[i]:C.fx.speeds._default,t.complete=s||e.complete,t}function it(t){return!(t&&"number"!=typeof t&&!C.fx.speeds[t])||("string"==typeof t&&!C.effects.effect[t]||(!!C.isFunction(t)||"object"==typeof t&&!t.effect))}function st(t,e){var i=e.outerWidth(),s=e.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,s,0];return{top:parseFloat(n[1])||0,right:"auto"===n[2]?i:parseFloat(n[2]),bottom:"auto"===n[3]?s:parseFloat(n[3]),left:parseFloat(n[4])||0}}function nt(t){var e,i,s=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[e=s[i]]&&(n[C.camelCase(e)]=s[e]);else for(e in s)"string"==typeof s[e]&&(n[e]=s[e]);return n}function ot(t,e,i){var s=X[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:t<0?0:t>s.max?s.max:t)}function rt(r){var a=Y(),l=a._rgba=[];return r=r.toLowerCase(),Q(B,function(t,e){var i,s=e.re.exec(r),n=s&&e.parse(s),o=e.space||"rgba";return n?(i=a[o](n),a[U[o].cache]=i[U[o].cache],l=a._rgba=i._rgba,!1):R}),l.length?("0,0,0,0"===l.join()&&j.extend(l,F.transparent),a):F[r]}function at(t,e,i){return 6*(i=(i+1)%1)<1?t+6*(e-t)*i:2*i<1?e:3*i<2?t+6*(e-t)*(2/3-i):t}C.effects={effect:{}},q=/^([\-+])=\s*(\d+\.?\d*)/,B=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],Y=(j=tt).Color=function(t,e,i,s){return new j.Color.fn.parse(t,e,i,s)},U={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},X={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},K=Y.support={},V=j("

")[0],Q=j.each,V.style.cssText="background-color:rgba(1,1,1,.5)",K.rgba=-1o.mod/2?s+=o.mod:s-n>o.mod/2&&(s-=o.mod)),h[i]=ot((n-s)*r+s,e)))}),this[e](h)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),s=Y(t)._rgba;return Y(j.map(e,function(t,e){return(1-i)*s[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=j.map(this._rgba,function(t,e){return null==t?2

").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!C.contains(i[0],n)||C(n).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(C.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),C.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!C.contains(t[0],e)||C(e).trigger("focus")),t}}),C.extend(C.effects,{version:"1.12.1",define:function(t,e,i){return i||(i=e,e="effect"),C.effects.effect[t]=i,C.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();1").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(G+"placeholder",e)),t.css({position:i,left:s.left,top:s.top}),e},removePlaceholder:function(t){var e=G+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){C.effects.restoreStyle(t),C.effects.removePlaceholder(t)},setTransition:function(s,t,n,o){return o=o||{},C.each(t,function(t,e){var i=s.cssUnit(e);0
").appendTo("body").addClass(t.className).css({top:c.top-r,left:c.left-a,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(h,t.duration,t.easing,function(){u.remove(),C.isFunction(e)&&e()})}}),C.fx.step.clip=function(t){t.clipInit||(t.start=C(t.elem).cssClip(),"string"==typeof t.end&&(t.end=st(t.end,t.elem)),t.clipInit=!0),C(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},P={},C.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){P[t]=function(t){return Math.pow(t,e+2)}}),C.extend(P,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),C.each(P,function(t,e){C.easing["easeIn"+t]=e,C.easing["easeOut"+t]=function(t){return 1-e(1-t)},C.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});C.effects;C.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=C(this),n=t.direction||"up",o=s.cssClip(),r={clip:C.extend({},o)},a=C.effects.createPlaceholder(s);r.clip[i[n][0]]=r.clip[i[n][1]],"show"===t.mode&&(s.cssClip(r.clip),a&&a.css(C.effects.clipToBox(r)),r.clip=o),a&&a.animate(C.effects.clipToBox(r),t.duration,t.easing),s.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),C.effects.define("bounce",function(t,e){var i,s,n,o=C(this),r=t.mode,a="hide"===r,l="show"===r,h=t.direction||"up",c=t.distance,u=t.times||5,d=2*u+(l||a?1:0),p=t.duration/d,f=t.easing,g="up"===h||"down"===h?"top":"left",m="up"===h||"left"===h,v=0,_=o.queue().length;for(C.effects.createPlaceholder(o),n=o.css(g),c=c||o["top"==g?"outerHeight":"outerWidth"]()/3,l&&((s={opacity:1})[g]=n,o.css("opacity",0).css(g,m?2*-c:2*c).animate(s,p,f)),a&&(c/=Math.pow(2,u-1)),(s={})[g]=n;v
").css({position:"absolute",visibility:"visible",left:-n*f,top:-s*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:g,left:o+(d?a*f:0),top:r+(d?l*g:0),opacity:d?0:1}).animate({left:o+(d?0:a*f),top:r+(d?0:l*g),opacity:d?1:0},t.duration||500,t.easing,i)}),C.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;C(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),C.effects.define("fold","hide",function(e,t){var i=C(this),s=e.mode,n="show"===s,o="hide"===s,r=e.size||15,a=/([0-9]+)%/.exec(r),l=!!e.horizFirst?["right","bottom"]:["bottom","right"],h=e.duration/2,c=C.effects.createPlaceholder(i),u=i.cssClip(),d={clip:C.extend({},u)},p={clip:C.extend({},u)},f=[u[l[0]],u[l[1]]],g=i.queue().length;a&&(r=parseInt(a[1],10)/100*f[o?0:1]),d.clip[l[0]]=r,p.clip[l[0]]=r,p.clip[l[1]]=0,n&&(i.cssClip(p.clip),c&&c.css(C.effects.clipToBox(p)),p.clip=u),i.queue(function(t){c&&c.animate(C.effects.clipToBox(d),h,e.easing).animate(C.effects.clipToBox(p),h,e.easing),t()}).animate(d,h,e.easing).animate(p,h,e.easing).queue(t),C.effects.unshift(i,g,4)}),C.effects.define("highlight","show",function(t,e){var i=C(this),s={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),C.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),C.effects.define("size",function(n,e){var t,o,i,s=C(this),r=["fontSize"],a=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=n.mode,c="effect"!==h,u=n.scale||"both",d=n.origin||["middle","center"],p=s.css("position"),f=s.position(),g=C.effects.scaledDimensions(s),m=n.from||g,v=n.to||C.effects.scaledDimensions(s,0);C.effects.createPlaceholder(s),"show"===h&&(i=m,m=v,v=i),o={from:{y:m.height/g.height,x:m.width/g.width},to:{y:v.height/g.height,x:v.width/g.width}},"box"!==u&&"both"!==u||(o.from.y!==o.to.y&&(m=C.effects.setTransition(s,a,o.from.y,m),v=C.effects.setTransition(s,a,o.to.y,v)),o.from.x!==o.to.x&&(m=C.effects.setTransition(s,l,o.from.x,m),v=C.effects.setTransition(s,l,o.to.x,v))),"content"!==u&&"both"!==u||o.from.y===o.to.y||(m=C.effects.setTransition(s,r,o.from.y,m),v=C.effects.setTransition(s,r,o.to.y,v)),d&&(t=C.effects.getBaseline(d,g),m.top=(g.outerHeight-m.outerHeight)*t.y+f.top,m.left=(g.outerWidth-m.outerWidth)*t.x+f.left,v.top=(g.outerHeight-v.outerHeight)*t.y+f.top,v.left=(g.outerWidth-v.outerWidth)*t.x+f.left),s.css(m),"content"!==u&&"both"!==u||(a=a.concat(["marginTop","marginBottom"]).concat(r),l=l.concat(["marginLeft","marginRight"]),s.find("*[width]").each(function(){var t=C(this),e=C.effects.scaledDimensions(t),i={height:e.height*o.from.y,width:e.width*o.from.x,outerHeight:e.outerHeight*o.from.y,outerWidth:e.outerWidth*o.from.x},s={height:e.height*o.to.y,width:e.width*o.to.x,outerHeight:e.height*o.to.y,outerWidth:e.width*o.to.x};o.from.y!==o.to.y&&(i=C.effects.setTransition(t,a,o.from.y,i),s=C.effects.setTransition(t,a,o.to.y,s)),o.from.x!==o.to.x&&(i=C.effects.setTransition(t,l,o.from.x,i),s=C.effects.setTransition(t,l,o.to.x,s)),c&&C.effects.saveStyle(t),t.css(i),t.animate(s,n.duration,n.easing,function(){c&&C.effects.restoreStyle(t)})})),s.animate(v,{queue:!1,duration:n.duration,easing:n.easing,complete:function(){var t=s.offset();0===v.opacity&&s.css("opacity",m.opacity),c||(s.css("position","static"===p?"relative":p).offset(t),C.effects.saveStyle(s)),e()}})}),C.effects.define("scale",function(t,e){var i=C(this),s=t.mode,n=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"effect"!==s?0:100),o=C.extend(!0,{from:C.effects.scaledDimensions(i),to:C.effects.scaledDimensions(i,n,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(o.from.opacity=1,o.to.opacity=0),C.effects.effect.size.call(this,o,e)}),C.effects.define("puff","hide",function(t,e){var i=C.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});C.effects.effect.scale.call(this,i,e)}),C.effects.define("pulsate","show",function(t,e){var i=C(this),s=t.mode,n="show"===s,o=n||"hide"===s,r=2*(t.times||5)+(o?1:0),a=t.duration/r,l=0,h=1,c=i.queue().length;for(!n&&i.is(":visible")||(i.css("opacity",0).show(),l=1);h=s.clientWidth&&i>=s.clientHeight}),u=0n[t]&&!s.escapeWithReference&&(i=M(o[e],n[t]-("right"===t?o.width:o.height))),W({},e,i)}};return i.forEach(function(t){var e=-1===["left","top"].indexOf(t)?"secondary":"primary";o=Y({},o,r[e](t))}),t.offsets.popper=o,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,s=e.reference,n=t.placement.split("-")[0],o=O,r=-1!==["top","bottom"].indexOf(n),a=r?"right":"bottom",l=r?"left":"top",h=r?"width":"height";return i[a]o(s[a])&&(t.offsets.popper[l]=o(s[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(!P(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var s=t.placement.split("-")[0],n=t.offsets,o=n.popper,r=n.reference,a=-1!==["left","right"].indexOf(s),l=a?"height":"width",h=a?"Top":"Left",c=h.toLowerCase(),u=a?"left":"top",d=a?"bottom":"right",p=C(i)[l];r[d]-po[d]&&(t.offsets.popper[c]+=r[c]+p-o[d]);var f=r[c]+r[l]/2-p/2,g=v(t.instance.popper,"margin"+h).replace("px",""),m=f-b(t.offsets.popper)[c]-g;return m=$(M(o[l]-p,m),0),t.arrowElement=i,t.offsets.arrow={},t.offsets.arrow[c]=Math.round(m),t.offsets.arrow[u]="",t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,f){if(t(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var g=x(p.instance.popper,p.instance.reference,f.padding,f.boundariesElement),m=p.placement.split("-")[0],v=k(m),_=p.placement.split("-")[1]||"",b=[];switch(f.behavior){case K:b=[m,v];break;case V:b=n(m);break;case Q:b=n(m,!0);break;default:b=f.behavior}return b.forEach(function(t,e){if(m!==t||b.length===e+1)return p;m=p.placement.split("-")[0],v=k(m);var i=p.offsets.popper,s=p.offsets.reference,n=O,o="left"===m&&n(i.right)>n(s.left)||"right"===m&&n(i.left)n(s.top)||"bottom"===m&&n(i.top)n(g.right),l=n(i.top)n(g.bottom),c="left"===m&&r||"right"===m&&a||"top"===m&&l||"bottom"===m&&h,u=-1!==["top","bottom"].indexOf(m),d=!!f.flipVariations&&(u&&"start"===_&&r||u&&"end"===_&&a||!u&&"start"===_&&l||!u&&"end"===_&&h);(o||c||d)&&(p.flipped=!0,(o||c)&&(m=b[e+1]),d&&(_=function(t){return"end"===t?"start":"start"===t?"end":t}(_)),p.placement=m+(_?"-"+_:""),p.offsets.popper=Y({},p.offsets.popper,T(p.instance.popper,p.offsets.reference,p.placement)),p=D(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],s=t.offsets,n=s.popper,o=s.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return n[r?"left":"top"]=o[i]-(a?n[r?"width":"height"]:0),t.placement=k(e),t.offsets.popper=b(n),t}},hide:{order:800,enabled:!0,fn:function(t){if(!P(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=S(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottomi.right||e.top>i.bottom||e.rightthis._items.length-1||t<0))if(this._isSliding)f(this._element).one(z.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var s=idocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},xt._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},xt._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Jt="show",te={HIDE:"hide"+Yt,HIDDEN:"hidden"+Yt,SHOW:"show"+Yt,SHOWN:"shown"+Yt,INSERTED:"inserted"+Yt,CLICK:"click"+Yt,FOCUSIN:"focusin"+Yt,FOCUSOUT:"focusout"+Yt,MOUSEENTER:"mouseenter"+Yt,MOUSELEAVE:"mouseleave"+Yt},ee="fade",ie="show",se="hover",ne=((Ft=oe.prototype).enable=function(){this._isEnabled=!0},Ft.disable=function(){this._isEnabled=!1},Ft.toggleEnabled=function(){this._isEnabled=!this._isEnabled},Ft.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=f(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(f(this.getTipElement()).hasClass(ie))return void this._leave(null,this);this._enter(null,this)}},Ft.dispose=function(){clearTimeout(this._timeout),f.removeData(this.element,this.constructor.DATA_KEY),f(this.element).off(this.constructor.EVENT_KEY),f(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&f(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},Ft.show=function(){var e=this;if("none"===f(this.element).css("display"))throw new Error("Please use show on visible elements");var t=f.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){f(this.element).trigger(t);var i=g.findShadowRoot(this.element),s=f.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!s)return;var n=this.getTipElement(),o=g.getUID(this.constructor.NAME);n.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&f(n).addClass(ee);var r="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);var l=this._getContainer();f(n).data(this.constructor.DATA_KEY,this),f.contains(this.element.ownerDocument.documentElement,this.tip)||f(n).appendTo(l),f(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,n,this._getPopperConfig(a)),f(n).addClass(ie),"ontouchstart"in document.documentElement&&f(document.body).children().on("mouseover",null,f.noop);var h=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,f(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};if(f(this.tip).hasClass(ee)){var c=g.getTransitionDurationFromElement(this.tip);f(this.tip).one(g.TRANSITION_END,h).emulateTransitionEnd(c)}else h()}},Ft.hide=function(t){function e(){i._hoverState!==Jt&&s.parentNode&&s.parentNode.removeChild(s),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),f(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),t&&t()}var i=this,s=this.getTipElement(),n=f.Event(this.constructor.Event.HIDE);if(f(this.element).trigger(n),!n.isDefaultPrevented()){if(f(s).removeClass(ie),"ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger[se]=!1,f(this.tip).hasClass(ee)){var o=g.getTransitionDurationFromElement(s);f(s).one(g.TRANSITION_END,e).emulateTransitionEnd(o)}else e();this._hoverState=""}},Ft.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},Ft.isWithContent=function(){return Boolean(this.getTitle())},Ft.addAttachmentClass=function(t){f(this.getTipElement()).addClass(Xt+"-"+t)},Ft.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},Ft.setContent=function(){var t=this.getTipElement();this.setElementContent(f(t.querySelectorAll(".tooltip-inner")),this.getTitle()),f(t).removeClass("fade show")},Ft.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Rt(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?f(e).parent().is(t)||t.empty().append(e):t.text(f(e).text())},Ft.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},Ft._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},{},this.config.popperConfig)},Ft._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=r({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},Ft._getContainer=function(){return!1===this.config.container?document.body:g.isElement(this.config.container)?f(this.config.container):f(document).find(this.config.container)},Ft._getAttachment=function(t){return Gt[t.toUpperCase()]},Ft._setListeners=function(){var s=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)f(s.element).on(s.constructor.Event.CLICK,s.config.selector,function(t){return s.toggle(t)});else if("manual"!==t){var e=t===se?s.constructor.Event.MOUSEENTER:s.constructor.Event.FOCUSIN,i=t===se?s.constructor.Event.MOUSELEAVE:s.constructor.Event.FOCUSOUT;f(s.element).on(e,s.config.selector,function(t){return s._enter(t)}).on(i,s.config.selector,function(t){return s._leave(t)})}}),this._hideModalHandler=function(){s.element&&s.hide()},f(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},Ft._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==t||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},Ft._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":se]=!0),f(e.getTipElement()).hasClass(ie)||e._hoverState===Jt?e._hoverState=Jt:(clearTimeout(e._timeout),e._hoverState=Jt,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Jt&&e.show()},e.config.delay.show):e.show())},Ft._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":se]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},Ft._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},Ft._getConfig=function(t){var e=f(this.element).data();return Object.keys(e).forEach(function(t){-1!==Vt.indexOf(t)&&delete e[t]}),"number"==typeof(t=r({},this.constructor.Default,{},e,{},"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),g.typeCheckConfig(qt,t,this.constructor.DefaultType),t.sanitize&&(t.template=Rt(t.template,t.whiteList,t.sanitizeFn)),t},Ft._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},Ft._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(Kt);null!==e&&e.length&&t.removeClass(e.join(""))},Ft._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},Ft._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(f(t).removeClass(ee),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},oe._jQueryInterface=function(i){return this.each(function(){var t=f(this).data(Bt),e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new oe(this,e),f(this).data(Bt,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},o(oe,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Zt}},{key:"NAME",get:function(){return qt}},{key:"DATA_KEY",get:function(){return Bt}},{key:"Event",get:function(){return te}},{key:"EVENT_KEY",get:function(){return Yt}},{key:"DefaultType",get:function(){return Qt}}]),oe);function oe(t,e){if(void 0===u)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}f.fn[qt]=ne._jQueryInterface,f.fn[qt].Constructor=ne,f.fn[qt].noConflict=function(){return f.fn[qt]=Ut,ne._jQueryInterface};var re="popover",ae="bs.popover",le="."+ae,he=f.fn[re],ce="bs-popover",ue=new RegExp("(^|\\s)"+ce+"\\S+","g"),de=r({},ne.Default,{placement:"right",trigger:"click",content:"",template:''}),pe=r({},ne.DefaultType,{content:"(string|element|function)"}),fe={HIDE:"hide"+le,HIDDEN:"hidden"+le,SHOW:"show"+le,SHOWN:"shown"+le,INSERTED:"inserted"+le,CLICK:"click"+le,FOCUSIN:"focusin"+le,FOCUSOUT:"focusout"+le,MOUSEENTER:"mouseenter"+le,MOUSELEAVE:"mouseleave"+le},ge=function(t){function s(){return t.apply(this,arguments)||this}var e,i;i=t,(e=s).prototype=Object.create(i.prototype),(e.prototype.constructor=e).__proto__=i;var n=s.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){f(this.getTipElement()).addClass(ce+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},n.setContent=function(){var t=f(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(ue);null!==e&&0=this._offsets[n]&&(void 0===this._offsets[n+1]||t li > .active",Le=((Pe=ze.prototype).show=function(){var i=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&f(this._element).hasClass(Ne)||f(this._element).hasClass("disabled"))){var t,s,e=f(this._element).closest(".nav, .list-group")[0],n=g.getSelectorFromElement(this._element);if(e){var o="UL"===e.nodeName||"OL"===e.nodeName?He:".active";s=(s=f.makeArray(f(e).find(o)))[s.length-1]}var r=f.Event($e.HIDE,{relatedTarget:this._element}),a=f.Event($e.SHOW,{relatedTarget:s});if(s&&f(s).trigger(r),f(this._element).trigger(a),!a.isDefaultPrevented()&&!r.isDefaultPrevented()){n&&(t=document.querySelector(n)),this._activate(this._element,e);var l=function(){var t=f.Event($e.HIDDEN,{relatedTarget:i._element}),e=f.Event($e.SHOWN,{relatedTarget:s});f(s).trigger(t),f(i._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},Pe.dispose=function(){f.removeData(this._element,Ae),this._element=null},Pe._activate=function(t,e,i){function s(){return n._transitionComplete(t,o,i)}var n=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?f(e).children(".active"):f(e).find(He))[0],r=i&&o&&f(o).hasClass("fade");if(o&&r){var a=g.getTransitionDurationFromElement(o);f(o).removeClass("show").one(g.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},Pe._transitionComplete=function(t,e,i){if(e){f(e).removeClass(Ne);var s=f(e.parentNode).find("> .dropdown-menu .active")[0];s&&f(s).removeClass(Ne),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(f(t).addClass(Ne),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),g.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&f(t.parentNode).hasClass("dropdown-menu")){var n=f(t).closest(".dropdown")[0];if(n){var o=[].slice.call(n.querySelectorAll(".dropdown-toggle"));f(o).addClass(Ne)}t.setAttribute("aria-expanded",!0)}i&&i()},ze._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(Ae);if(e||(e=new ze(this),t.data(Ae,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},o(ze,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),ze);function ze(t){this._element=t}f(document).on($e.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),Le._jQueryInterface.call(f(this),"show")}),f.fn.tab=Le._jQueryInterface,f.fn.tab.Constructor=Le,f.fn.tab.noConflict=function(){return f.fn.tab=Oe,Le._jQueryInterface};var We,je="toast",Re="bs.toast",Fe="."+Re,qe=f.fn[je],Be={CLICK_DISMISS:"click.dismiss"+Fe,HIDE:"hide"+Fe,HIDDEN:"hidden"+Fe,SHOW:"show"+Fe,SHOWN:"shown"+Fe},Ye="show",Ue={animation:"boolean",autohide:"boolean",delay:"number"},Xe={animation:!0,autohide:!0,delay:500},Ke=((We=Ve.prototype).show=function(){var t=this,e=f.Event(Be.SHOW);if(f(this._element).trigger(e),!e.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove("showing"),t._element.classList.add(Ye),f(t._element).trigger(Be.SHOWN),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))};if(this._element.classList.remove("hide"),g.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var s=g.getTransitionDurationFromElement(this._element);f(this._element).one(g.TRANSITION_END,i).emulateTransitionEnd(s)}else i()}},We.hide=function(){if(this._element.classList.contains(Ye)){var t=f.Event(Be.HIDE);f(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},We.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Ye)&&this._element.classList.remove(Ye),f(this._element).off(Be.CLICK_DISMISS),f.removeData(this._element,Re),this._element=null,this._config=null},We._getConfig=function(t){return t=r({},Xe,{},f(this._element).data(),{},"object"==typeof t&&t?t:{}),g.typeCheckConfig(je,t,this.constructor.DefaultType),t},We._setListeners=function(){var t=this;f(this._element).on(Be.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return t.hide()})},We._close=function(){function t(){e._element.classList.add("hide"),f(e._element).trigger(Be.HIDDEN)}var e=this;if(this._element.classList.remove(Ye),this._config.animation){var i=g.getTransitionDurationFromElement(this._element);f(this._element).one(g.TRANSITION_END,t).emulateTransitionEnd(i)}else t()},Ve._jQueryInterface=function(i){return this.each(function(){var t=f(this),e=t.data(Re);if(e||(e=new Ve(this,"object"==typeof i&&i),t.data(Re,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i](this)}})},o(Ve,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return Ue}},{key:"Default",get:function(){return Xe}}]),Ve);function Ve(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}f.fn[je]=Ke._jQueryInterface,f.fn[je].Constructor=Ke,f.fn[je].noConflict=function(){return f.fn[je]=qe,Ke._jQueryInterface},t.Alert=p,t.Button=D,t.Carousel=F,t.Collapse=st,t.Dropdown=yt,t.Modal=Ht,t.Popover=ge,t.Scrollspy=Ie,t.Tab=Le,t.Toast=Ke,t.Tooltip=ne,t.Util=g,Object.defineProperty(t,"__esModule",{value:!0})}),function(l,h,o,a){function i(t,e){this.settings=null,this.options=l.extend({},i.Defaults,e),this.$element=l(t),this.drag=l.extend({},s),this.state=l.extend({},n),this.e=l.extend({},r),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],l.each(i.Plugins,l.proxy(function(t,e){this._plugins[t[0].toLowerCase()+t.slice(1)]=new e(this)},this)),l.each(i.Pipe,l.proxy(function(t,e){this._pipe.push({filter:e.filter,run:l.proxy(e.run,this)})},this)),this.setup(),this.initialize()}function c(t){if(t.touches!==a)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(t.touches===a){if(t.pageX!==a)return{x:t.pageX,y:t.pageY};if(t.pageX===a)return{x:t.clientX,y:t.clientY}}}function t(t){var e,i,s=o.createElement("div"),n=t;for(e in n)if(i=n[e],void 0!==s.style[i])return s=null,[i,e];return[!1]}var s,n,r;i.Defaults={items:3,loop:!(r={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null}),center:!(n={isTouch:!(s={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null}),isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1}),mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:h,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},i.Width={Default:"default",Inner:"inner",Outer:"outer"},i.Plugins={},i.Pipe=[{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var t=this._clones;(this.$stage.children(".cloned").length!==t.length||!this.settings.loop&&0",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],i.prototype.initialize=function(){var t,e,i;if((this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&!0!==this.state.imagesLoaded)&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,i=this.$element.children(e).width(),t.length&&i<=0))return this.preloadAutoWidthImages(t),!1;this.$element.addClass("owl-loading"),this.$stage=l("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('
'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},i.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,s=null;t?(l.each(t,function(t){t<=e&&i").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},i.prototype.update=function(){for(var t=0,e=this._pipe.length,i=l.proxy(function(t){return this[t]},this._invalidated),s={};t",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(n=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),o=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),r=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,n+r),o+r)),(8",o[t+1]||e-n)&&(s="left"===this.state.direction?t+1:t),-1===s},this)),this.settings.loop||(this.op(i,">",o[this.minimum()])?s=i=this.minimum():this.op(i,"<",o[this.maximum()])&&(s=i=this.maximum())),s},i.prototype.animate=function(t){this.trigger("translate"),this.state.inMotion=0=i);)e=++n}else e=this._items.length-o.items;return e},i.prototype.minimum=function(t){return t?0:this._clones.length/2},i.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},i.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},i.prototype.clones=function(i){function s(t){return t%2==0?n+t/2:e-(t+1)/2}var e=this._clones.length/2,n=e+this._items.length;return i===a?l.map(this._clones,function(t,e){return s(e)}):l.map(this._clones,function(t,e){return t===i?s(e):null})},i.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},i.prototype.coordinates=function(t){var e=null;return t===a?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1)):e=this._coordinates[t-1]||0,e)},i.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},i.prototype.to=function(t,e){if(this.settings.loop){var i=t-this.relative(this.current()),s=this.current(),n=this.current(),o=this.current()+i,r=n-o<0,a=this._clones.length+this._items.length;o=a-this.settings.items&&!0==r&&(s=n-this._items.length,this.reset(s)),h.clearTimeout(this.e._goToLoop),this.e._goToLoop=h.setTimeout(l.proxy(function(){this.speed(this.duration(this.current(),s+i,e)),this.current(s+i),this.update()},this),30)}else this.speed(this.duration(this.current(),t,e)),this.current(t),this.update()},i.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},i.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},i.prototype.transitionEnd=function(t){return(t===a||(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)===this.$stage.get(0)))&&(this.state.inMotion=!1,void this.trigger("translated"))},i.prototype.viewport=function(){var t;if(this.options.responsiveBaseElement!==h)t=l(this.options.responsiveBaseElement).width();else if(h.innerWidth)t=h.innerWidth;else{if(!o.documentElement||!o.documentElement.clientWidth)throw"Can not detect viewport width.";t=o.documentElement.clientWidth}return t},i.prototype.replace=function(t){this.$stage.empty(),this._items=[],t=t&&(t instanceof jQuery?t:l(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(l.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(l.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},i.prototype.add=function(t,e){e=e===a?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},i.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},i.prototype.addTriggerableEvents=function(){var i=l.proxy(function(e,i){return l.proxy(function(t){t.relatedTarget!==this&&(this.suppress([i]),e.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);l.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},l.proxy(function(t,e){this.$element.on(t+".owl.carousel",i(e,t+".owl.carousel"))},this))},i.prototype.watchVisibility=function(){function t(t){return 0=i.length&&(n.state.imagesLoaded=!0,n.initialize())},r.src=o.attr("src")||o.attr("data-src")||o.attr("data-src-retina")})},i.prototype.destroy=function(){for(var t in this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&l(h).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd),this._plugins)this._plugins[t].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),l(o).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},i.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?i":return s?t=":return s?t<=i:i<=t;case"<=":return s?i<=t:t<=i}},i.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},i.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},i.prototype.trigger=function(t,e,i){var s={item:{count:this._items.length,index:this.current()}},n=l.camelCase(l.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),o=l.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},s,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(o)}),this.$element.trigger(o),this.settings&&"function"==typeof this.settings[n]&&this.settings[n].apply(this,o)),o},i.prototype.suppress=function(t){l.each(t,l.proxy(function(t,e){this._supress[e]=!0},this))},i.prototype.release=function(t){l.each(t,l.proxy(function(t,e){delete this._supress[e]},this))},i.prototype.browserSupport=function(){if(this.support3d=t(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d){this.transformVendor=t(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0];this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][t(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=h.orientation},l.fn.owlCarousel=function(t){return this.each(function(){l(this).data("owlCarousel")||l(this).data("owlCarousel",new i(this,t))})},l.fn.owlCarousel.Constructor=i}(window.Zepto||window.jQuery,window,document),function(a,o){var e=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,s=e.center&&-1*i||0,n=(t.property&&t.property.value||this._core.current())+s,o=this._core.clones().length,r=a.proxy(function(t,e){this.load(e)},this);s++
',s=h.lazyLoad?'
':'
',e.after(s),e.after('
')}var s,n,o=t.width&&t.height?'style="width:'+t.width+"px;height:"+t.height+'px;"':"",r=e.find("img"),a="src",l="",h=this._core.settings;return e.wrap('
"),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),r.length?(i(r.attr(a)),r.remove(),!1):void("youtube"===t.type?(n="http://img.youtube.com/vi/"+t.id+"/hqdefault.jpg",i(n)):"vimeo"===t.type&&c.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,i(n)}}))},s.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},s.prototype.play=function(t){this._core.trigger("play",null,"video"),this._playing&&this.stop();var e,i,s=c(t.target||t.srcElement),n=s.closest("."+this._core.settings.itemClass),o=this._videos[n.attr("data-video")],r=o.width||"100%",a=o.height||this._core.$stage.height();"youtube"===o.type?e='':"vimeo"===o.type&&(e=''),n.addClass("owl-video-playing"),this._playing=n,i=c('
'+e+"
"),s.after(i)},s.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&c(t).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(t&&this._fullscreen&&this._playing)&&(this._fullscreen?this._fullscreen=!1:!this._playing||this._core.state.orientation===e.orientation||(this._core.state.orientation=e.orientation,!1))},s.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},c.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(r){var e=function(t){this.core=t,this.core.options=r.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":r.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var t,e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),n=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e)),n&&s.addClass("animated owl-animated-in").addClass(n).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e))}},e.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(e,i,t){var s=function(t){this.core=t,this.core.options=e.extend({},s.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":e.proxy(function(){this.autoplay()},this),"play.owl.autoplay":e.proxy(function(t,e,i){this.play(e,i)},this),"stop.owl.autoplay":e.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};s.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},s.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(i.clearInterval(this.interval),this.interval=i.setInterval(e.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):i.clearInterval(this.interval)},s.prototype.play=function(){return!0===t.hidden||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:!1===this.core.settings.autoplay?void i.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},s.prototype.stop=function(){i.clearInterval(this.interval)},s.prototype.pause=function(){i.clearInterval(this.interval)},s.prototype.destroy=function(){var t,e;for(t in i.clearInterval(this.interval),this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=s}(window.Zepto||window.jQuery,window,document),function(o){"use strict";var e=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(t){this._core.settings.dotsData&&this._templates.push(o(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":o.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,0,o(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":o.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":o.proxy(function(t){if("position"==t.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),i=this._core.maximum(),s=this._core.minimum();t.data=t.property.value>i?i<=e?s:i:t.property.value").addClass(i.dotClass).append(o("")).prop("outerHTML")]),i.navContainer&&i.dotsContainer||(this._controls.$container=o("
").addClass(i.controlsClass).appendTo(this.$element)),this._controls.$indicators=i.dotsContainer?o(i.dotsContainer):o("
").hide().addClass(i.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",o.proxy(function(t){var e=o(t.target).parent().is(this._controls.$indicators)?o(t.target).index():o(t.target).parent().index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),t=i.navContainer?o(i.navContainer):o("
").addClass(i.navContainerClass).prependTo(this._controls.$container),this._controls.$next=o("<"+i.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(i.navClass[0]).html(i.navText[0]).hide().prependTo(t).on("click",o.proxy(function(){this.prev(i.navSpeed)},this)),this._controls.$next.addClass(i.navClass[1]).html(i.navText[1]).hide().appendTo(t).on("click",o.proxy(function(){this.next(i.navSpeed)},this)),this._overrides)this._core[e]=o.proxy(this[e],this)},e.prototype.destroy=function(){var t,e,i,s;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i=this._core.settings,s=this._core.clones().length/2,n=s+this._core.items().length,o=i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items;if("page"!==i.slideBy&&(i.slideBy=Math.min(i.slideBy,i.items)),i.dots||"page"==i.slideBy)for(this._pages=[],t=s,e=0;t=this._core.maximum())),this._controls.$previous.toggle(s.nav),this._controls.$next.toggle(s.nav),s.dots){if(t=this._pages.length-this._controls.$indicators.children().length,s.dotData&&0!=t){for(e=0;e=e}).pop()},e.prototype.getPosition=function(t){var e,i,s=this._core.settings;return"page"==s.slideBy?(e=o.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=s.slideBy:e-=s.slideBy),e},e.prototype.next=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,i){var s;i?o.proxy(this._overrides.to,this._core)(t,e):(s=this._pages.length,o.proxy(this._overrides.to,this._core)(this._pages[(t%s+s)%s].start,e))},o.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(i,s){"use strict";var e=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":i.proxy(function(){"URLHash"==this._core.settings.startPosition&&i(s).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":i.proxy(function(t){var e=i(t.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[e]=t.content},this)},this._core.options=i.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),i(s).on("hashchange.owl.navigation",i.proxy(function(){var t=s.location.hash.substring(1),e=this._core.$stage.children(),i=this._hashes[t]&&e.index(this._hashes[t])||0;return!!t&&void this._core.to(i,!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;for(t in i(s).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},i.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.NProgress=e()}(this,function(){var e,i,r={version:"0.2.0"},a=r.settings={minimum:.08,easing:"linear",positionUsing:"",speed:350,trickle:!0,trickleSpeed:250,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function l(t,e,i){return t"))&&y.css("position",n.css("position")),(_=function(){var t,e,i;if(!u&&(g=w.height(),t=parseInt(v.css("border-top-width"),10),e=parseInt(v.css("padding-top"),10),o=parseInt(v.css("padding-bottom"),10),r=v.offset().top+t+e,a=v.height(),p&&(d=p=!1,null==k&&(n.insertAfter(y),y.detach()),n.css({position:"",top:"",width:"",bottom:""}).removeClass(E),i=!0),l=n.offset().top-(parseInt(n.css("margin-top"),10)||0)-T,h=n.outerHeight(!0),c=n.css("float"),y&&y.css({width:S(n),height:h,display:n.css("display"),"vertical-align":n.css("vertical-align"),float:c}),i))return s()})(),h!==a)return f=void 0,m=T,b=I,s=function(){var t,e,i,s;if(!u&&(i=!1,null!=b&&(--b<=0&&(b=I,_(),i=!0)),i||w.height()===g||_(),i=A.scrollTop(),null!=f&&(e=i-f),f=i,p?(x&&(s=a+rh.max&&(i=h.max),i=function(t){switch(h.forcestepdivisibility){case"round":return(Math.round(t/h.step)*h.step).toFixed(h.decimals);case"floor":return(Math.floor(t/h.step)*h.step).toFixed(h.decimals);case"ceil":return(Math.ceil(t/h.step)*h.step).toFixed(h.decimals);default:return t}}(i),Number(t).toString()!==i.toString()&&(g.val(i),g.trigger("change"))))}function s(){if(h.booster){var t=Math.pow(2,Math.floor(v/h.boostat))*h.step;return h.maxboostedstep&&t>h.maxboostedstep&&(t=h.maxboostedstep,d=Math.round(d/t)*t),Math.max(h.step,t)}return h.step}function n(){i(),d=parseFloat(u.input.val()),isNaN(d)&&(d=0);var t=d,e=s();(d+=e)>h.max&&(d=h.max,g.trigger("touchspin.on.max"),l()),u.input.val(Number(d).toFixed(h.decimals)),t!==d&&g.trigger("change")}function o(){i(),d=parseFloat(u.input.val()),isNaN(d)&&(d=0);var t=d,e=s();(d-=e)'+h.prefix+"",r=''+h.postfix+"";s.hasClass("input-group-btn")?(e='",s.append(e)):(e='",x(e).insertBefore(g)),n.hasClass("input-group-btn")?(i='",n.prepend(i)):(i='",x(i).insertAfter(g)),x(o).insertBefore(g),x(r).insertAfter(g),c=t}(e):function(){var t;t=h.verticalbuttons?'
'+h.prefix+''+h.postfix+'
':'
'+h.prefix+''+h.postfix+'
",c=x(t).insertBefore(g),x(".bootstrap-touchspin-prefix",c).after(g),g.hasClass("input-sm")?c.addClass("input-group-sm"):g.hasClass("input-lg")&&c.addClass("input-group-lg")}()}(),u={down:x(".bootstrap-touchspin-down",c),up:x(".bootstrap-touchspin-up",c),input:x("input",c),prefix:x(".bootstrap-touchspin-prefix",c).addClass(h.prefix_extraclass),postfix:x(".bootstrap-touchspin-postfix",c).addClass(h.postfix_extraclass)},""===h.prefix&&u.prefix.hide(),""===h.postfix&&u.postfix.hide(),g.on("keydown",function(t){var e=t.keyCode||t.which;38===e?("up"!==_&&(n(),a()),t.preventDefault()):40===e&&("down"!==_&&(o(),r()),t.preventDefault())}),g.on("keyup",function(t){var e=t.keyCode||t.which;38===e?l():40===e&&l()}),g.on("blur",function(){i()}),u.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==_&&(o(),r()),t.preventDefault())}),u.down.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||l()}),u.up.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==_&&(n(),a()),t.preventDefault())}),u.up.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||l()}),u.down.on("mousedown.touchspin",function(t){u.down.off("touchstart.touchspin"),g.is(":disabled")||(o(),r(),t.preventDefault(),t.stopPropagation())}),u.down.on("touchstart.touchspin",function(t){u.down.off("mousedown.touchspin"),g.is(":disabled")||(o(),r(),t.preventDefault(),t.stopPropagation())}),u.up.on("mousedown.touchspin",function(t){u.up.off("touchstart.touchspin"),g.is(":disabled")||(n(),a(),t.preventDefault(),t.stopPropagation())}),u.up.on("touchstart.touchspin",function(t){u.up.off("mousedown.touchspin"),g.is(":disabled")||(n(),a(),t.preventDefault(),t.stopPropagation())}),u.up.on("mouseout touchleave touchend touchcancel",function(t){_&&(t.stopPropagation(),l())}),u.down.on("mouseout touchleave touchend touchcancel",function(t){_&&(t.stopPropagation(),l())}),u.down.on("mousemove touchmove",function(t){_&&(t.stopPropagation(),t.preventDefault())}),u.up.on("mousemove touchmove",function(t){_&&(t.stopPropagation(),t.preventDefault())}),x(document).on(C(["mouseup","touchend","touchcancel"],k).join(" "),function(t){_&&(t.preventDefault(),l())}),x(document).on(C(["mousemove","touchmove","scroll","scrollstart"],k).join(" "),function(t){_&&(t.preventDefault(),l())}),g.on("mousewheel DOMMouseScroll",function(t){if(h.mousewheel&&g.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?o():n()}}),g.on("touchspin.uponce",function(){l(),n()}),g.on("touchspin.downonce",function(){l(),o()}),g.on("touchspin.startupspin",function(){a()}),g.on("touchspin.startdownspin",function(){r()}),g.on("touchspin.stopspin",function(){l()}),g.on("touchspin.updatesettings",function(t,e){!function(t){(function(t){h=x.extend({},h,t),t.postfix&&g.parent().find(".bootstrap-touchspin-postfix").text(t.postfix),t.prefix&&g.parent().find(".bootstrap-touchspin-prefix").text(t.prefix)})(t),i();var e=u.input.val();""!==e&&(e=Number(u.input.val()),u.input.val(e.toFixed(h.decimals)))}(e)}),u.input.css("display","block")}}()})}this.each(function(){var t=x(this).data();x(document).off(C(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],t.spinnerid).join(" "))})}}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(h){"use strict";var n,o=window.Slick||{};n=0,(o=function(t,e){var i,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:h(t),appendDots:h(t),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return h('
'),i=t.attr("href");t.replaceWith(e),e.addClass("hamburger--"+a.opts.hamburger.animation);for(var s=l(),n=[i,a.opts.hamburger.menu,".mm-menu"],o=0;o').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu);var t=[ee.menu];this.opts.slidingSubmenus||t.push(ee.vertical),this.$menu.addClass(t.join(" ")).parent().addClass(ee.wrapper),this.trigger("initMenu:after")},_initPanels:function(t){this.trigger("initPanels:before",t),t=t||this.$pnls.children(this.conf.panelNodetype);var i=te(),s=this,n=function(t){t.filter(this.conf.panelNodetype).each(function(){var t=s._initPanel(te(this));if(t){s._initNavbar(t),s._initListview(t),i=i.add(t);var e=t.children("."+ee.listview).children("li").children(s.conf.panelNodeType).add(t.children("."+s.conf.classNames.panel));e.length&&n.call(s,e)}})};n.call(this,t),this.opts.initPanels.call(this,i),this.trigger("initPanels:after",i)},_initPanel:function(t){if(this.trigger("initPanel:before",t),t.hasClass(ee.panel))return t;if(this.__refactorClass(t,this.conf.classNames.panel,"panel"),this.__refactorClass(t,this.conf.classNames.nopanel,"nopanel"),this.__refactorClass(t,this.conf.classNames.vertical,"vertical"),this.__refactorClass(t,this.conf.classNames.inset,"inset"),t.filter("."+ee.inset).addClass(ee.nopanel),t.hasClass(ee.nopanel))return!1;var e=t.hasClass(ee.vertical)||!this.opts.slidingSubmenus;t.removeClass(ee.vertical);var i=t.attr("id")||this.__getUniqueId();t.removeAttr("id"),t.is("ul, ol")&&(t.wrap("
"),t=t.parent()),t.addClass(ee.panel+" "+ee.hidden).attr("id",i);var s=t.parent("li");return e?t.add(s).addClass(ee.vertical):t.appendTo(this.$pnls),s.length&&(s.data(ie.child,t),t.data(ie.parent,s)),this.trigger("initPanel:after",t),t},_initNavbar:function(t){if(this.trigger("initNavbar:before",t),!t.children("."+ee.navbar).length){var e=t.data(ie.parent),i=te('
'),s=te[re].i18n(this.opts.navbar.title),n="";if(e&&e.length){if(e.hasClass(ee.vertical))return;if(e.parent().is("."+ee.listview))var o=e.children("a, span").not("."+ee.next);else o=e.closest("."+ee.panel).find('a[href="#'+t.attr("id")+'"]');var r=(e=(o=o.first()).closest("."+ee.panel)).attr("id");switch(s=o.text(),this.opts.navbar.titleLink){case"anchor":n=o.attr("href");break;case"parent":n="#"+r}i.append('')}else if(!this.opts.navbar.title)return;this.opts.navbar.add&&t.addClass(ee.hasnavbar),i.append('"+s+"").prependTo(t),this.trigger("initNavbar:after",t)}},_initListview:function(t){this.trigger("initListview:before",t);var e=this.__childAddBack(t,"ul, ol");this.__refactorClass(e,this.conf.classNames.nolistview,"nolistview"),e.filter("."+this.conf.classNames.inset).addClass(ee.nolistview);var i=e.not("."+ee.nolistview).addClass(ee.listview).children();this.__refactorClass(i,this.conf.classNames.selected,"selected"),this.__refactorClass(i,this.conf.classNames.divider,"divider"),this.__refactorClass(i,this.conf.classNames.spacer,"spacer");var s=t.data(ie.parent);if(s&&s.parent().is("."+ee.listview)&&!s.children("."+ee.next).length){var n=s.children("a, span").first(),o=te('').insertBefore(n);n.is("span")&&o.addClass(ee.fullsubopen)}this.trigger("initListview:after",t)},_initOpened:function(){this.trigger("initOpened:before");var t=this.$pnls.find("."+ee.listview).children("."+ee.selected).removeClass(ee.selected).last().addClass(ee.selected),e=t.length?t.closest("."+ee.panel):this.$pnls.children("."+ee.panel).first();this.openPanel(e,!1),this.trigger("initOpened:after")},_initAnchors:function(){var l=this;ne.$body.on(se.click+"-oncanvas","a[href]",function(t){var e=te(this),i=!1,s=l.$menu.find(e).length;for(var n in te[re].addons)if(te[re].addons[n].clickAnchor.call(l,e,s)){i=!0;break}var o=e.attr("href");if(!i&&s&&1 li > a")&&!e.is('[rel="external"]')&&!e.is('[target="_blank"]')){l.__valueOrFn(l.opts.onClick.setSelected,e)&&l.setSelected(te(t.target).parent());var a=l.__valueOrFn(l.opts.onClick.preventDefault,e,"#"==o.slice(0,1));a&&t.preventDefault(),l.__valueOrFn(l.opts.onClick.close,e,a)&&l.close()}})},_initMatchMedia:function(){var e=this;this._fireMatchMedia(),ne.$wndw.on(se.resize,function(t){e._fireMatchMedia()})},_fireMatchMedia:function(){for(var t in this.mtch)for(var e=window.matchMedia&&window.matchMedia(t).matches?"yes":"no",i=0;i
')),Gt.$blck.appendTo(Gt.$body).off(Qt.touchstart+"-"+Jt+" "+Qt.touchmove+"-"+Jt).on(Qt.touchstart+"-"+Jt+" "+Qt.touchmove+"-"+Jt,function(t){t.preventDefault(),t.stopPropagation(),Gt.$blck.trigger(Qt.mousedown+"-"+Jt)}).off(Qt.mousedown+"-"+Jt).on(Qt.mousedown+"-"+Jt,function(t){t.preventDefault(),Gt.$html.hasClass(Kt.modal)||(e.closeAllOthers(),e.close())}))},Ut="scrollBugFix",(Rt=t)[Yt="mmenu"].addons[Ut]={setup:function(){var t=this.opts[Ut];this.conf[Ut],Bt=Rt[Yt].glbl,Rt[Yt].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof t&&(t={fix:t}),"object"!=typeof t&&(t={}),(t=this.opts[Ut]=Rt.extend(!0,{},Rt[Yt].defaults[Ut],t)).fix&&(this.bind("open:start",function(){this.$pnls.children("."+Ft.opened).scrollTop(0)}),this.bind("initMenu:after",function(){this["_initWindow_"+Ut]()})))},add:function(){Ft=Rt[Yt]._c,Rt[Yt]._d,qt=Rt[Yt]._e},clickAnchor:function(t,e){}},Rt[Yt].defaults[Ut]={fix:!0},Rt[Yt].prototype["_initWindow_"+Ut]=function(){var t=this;Bt.$docu.off(qt.touchmove+"-"+Ut).on(qt.touchmove+"-"+Ut,function(t){Bt.$html.hasClass(Ft.opened)&&t.preventDefault()});var e=!1;Bt.$body.off(qt.touchstart+"-"+Ut).on(qt.touchstart+"-"+Ut,"."+Ft.panels+"> ."+Ft.panel,function(t){Bt.$html.hasClass(Ft.opened)&&(e||(e=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),e=!1))}).off(qt.touchmove+"-"+Ut).on(qt.touchmove+"-"+Ut,"."+Ft.panels+"> ."+Ft.panel,function(t){Bt.$html.hasClass(Ft.opened)&&Rt(this)[0].scrollHeight>Rt(this).innerHeight()&&t.stopPropagation()}),Bt.$wndw.off(qt.orientationchange+"-"+Ut).on(qt.orientationchange+"-"+Ut,function(){t.$pnls.children("."+Ft.opened).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})},jt="screenReader",(Ht=t)[Wt="mmenu"].addons[jt]={setup:function(){var o=this,t=this.opts[jt],r=this.conf[jt];Ht[Wt].glbl,"boolean"==typeof t&&(t={aria:t,text:t}),"object"!=typeof t&&(t={}),(t=this.opts[jt]=Ht.extend(!0,{},Ht[Wt].defaults[jt],t)).aria&&(this.bind("initAddons:after",function(){this.bind("initMenu:after",function(){this.trigger("initMenu:after:sr-aria")}),this.bind("initNavbar:after",function(){this.trigger("initNavbar:after:sr-aria",arguments[0])}),this.bind("openPanel:start",function(){this.trigger("openPanel:start:sr-aria",arguments[0])}),this.bind("close:start",function(){this.trigger("close:start:sr-aria")}),this.bind("close:finish",function(){this.trigger("close:finish:sr-aria")}),this.bind("open:start",function(){this.trigger("open:start:sr-aria")}),this.bind("open:finish",function(){this.trigger("open:finish:sr-aria")})}),this.bind("updateListview",function(){this.$pnls.find("."+Lt.listview).children().each(function(){o.__sr_aria(Ht(this),"hidden",Ht(this).is("."+Lt.hidden))})}),this.bind("openPanel:start",function(t){var e=this.$menu.find("."+Lt.panel).not(t).not(t.parents("."+Lt.panel)),i=t.add(t.find("."+Lt.vertical+"."+Lt.opened).children("."+Lt.panel));this.__sr_aria(e,"hidden",!0),this.__sr_aria(i,"hidden",!1)}),this.bind("closePanel",function(t){this.__sr_aria(t,"hidden",!0)}),this.bind("initPanels:after",function(t){var e=t.find("."+Lt.prev+", ."+Lt.next).each(function(){o.__sr_aria(Ht(this),"owns",Ht(this).attr("href").replace("#",""))});this.__sr_aria(e,"haspopup",!0)}),this.bind("initNavbar:after",function(t){var e=t.children("."+Lt.navbar);this.__sr_aria(e,"hidden",!t.hasClass(Lt.hasnavbar))}),t.text&&(this.bind("initlistview:after",function(t){var e=t.find("."+Lt.listview).find("."+Lt.fullsubopen).parent().children("span");this.__sr_aria(e,"hidden",!0)}),"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",function(t){var e=t.children("."+Lt.navbar),i=!!e.children("."+Lt.prev).length;this.__sr_aria(e.children("."+Lt.title),"hidden",i)}))),t.text&&(this.bind("initAddons:after",function(){this.bind("setPage:after",function(){this.trigger("setPage:after:sr-text",arguments[0])})}),this.bind("initNavbar:after",function(t){var e=t.children("."+Lt.navbar),i=e.children("."+Lt.title).text(),s=Ht[Wt].i18n(r.text.closeSubmenu);i&&(s+=" ("+i+")"),e.children("."+Lt.prev).html(this.__sr_text(s))}),this.bind("initListview:after",function(t){var e=t.data(zt.parent);if(e&&e.length){var i=e.children("."+Lt.next),s=i.nextAll("span, a").first().text(),n=Ht[Wt].i18n(r.text[i.parent().is("."+Lt.vertical)?"toggleSubmenu":"openSubmenu"]);s&&(n+=" ("+s+")"),i.html(o.__sr_text(n))}}))},add:function(){Lt=Ht[Wt]._c,zt=Ht[Wt]._d,Ht[Wt]._e,Lt.add("sronly")},clickAnchor:function(t,e){}},Ht[Wt].defaults[jt]={aria:!0,text:!0},Ht[Wt].configuration[jt]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},Ht[Wt].prototype.__sr_aria=function(t,e,i){t.prop("aria-"+e,i)[i?"attr":"removeAttr"]("aria-"+e,i)},Ht[Wt].prototype.__sr_text=function(t){return''+t+""},Nt="autoHeight",(At=t)[$t="mmenu"].addons[Nt]={setup:function(){var n=this.opts[Nt];if(this.conf[Nt],At[$t].glbl,"boolean"==typeof n&&n&&(n={height:"auto"}),"string"==typeof n&&(n={height:n}),"object"!=typeof n&&(n={}),"auto"==(n=this.opts[Nt]=At.extend(!0,{},At[$t].defaults[Nt],n)).height||"highest"==n.height){function t(t){if(!this.opts.offCanvas||this.vars.opened){var e=Math.max(parseInt(this.$pnls.css("top"),10),0)||0,i=Math.max(parseInt(this.$pnls.css("bottom"),10),0)||0,s=0;this.$menu.addClass(Mt.measureheight),"auto"==n.height?((t=t||this.$pnls.children("."+Mt.opened)).is("."+Mt.vertical)&&(t=t.parents("."+Mt.panel).not("."+Mt.vertical)),t.length||(t=this.$pnls.children("."+Mt.panel)),s=t.first().outerHeight()):"highest"==n.height&&this.$pnls.children().each(function(){var t=At(this);t.is("."+Mt.vertical)&&(t=t.parents("."+Mt.panel).not("."+Mt.vertical).first()),s=Math.max(s,t.outerHeight())}),this.$menu.height(s+e+i).removeClass(Mt.measureheight)}}this.bind("initMenu:after",function(){this.$menu.addClass(Mt.autoheight)}),this.opts.offCanvas&&this.bind("open:start",t),"highest"==n.height&&this.bind("initPanels:after",t),"auto"==n.height&&(this.bind("updateListview",t),this.bind("openPanel:start",t),this.bind("closePanel",t))}},add:function(){Mt=At[$t]._c,At[$t]._d,Ot=At[$t]._e,Mt.add("autoheight measureheight"),Ot.add("resize")},clickAnchor:function(t,e){}},At[$t].defaults[Nt]={height:"default"},Pt="backButton",(St=t)[Et="mmenu"].addons[Pt]={setup:function(){if(this.opts.offCanvas){var e=this,t=this.opts[Pt];if(this.conf[Pt],It=St[Et].glbl,"boolean"==typeof t&&(t={close:t}),"object"!=typeof t&&(t={}),(t=St.extend(!0,{},St[Et].defaults[Pt],t)).close){var i="#"+e.$menu.attr("id");this.bind("open:finish",function(t){location.hash!=i&&history.pushState(null,document.title,i)}),St(window).on("popstate",function(t){It.$html.hasClass(Dt.opened)?(t.stopPropagation(),e.close()):location.hash==i&&(t.stopPropagation(),e.open())})}}},add:function(){return window.history&&window.history.pushState?(Dt=St[Et]._c,St[Et]._d,void St[Et]._e):void(St[Et].addons[Pt].setup=function(){})},clickAnchor:function(t,e){}},St[Et].defaults[Pt]={close:!1},Tt="columns",(wt=t)[kt="mmenu"].addons[Tt]={setup:function(){var i=this.opts[Tt];if(this.conf[Tt],Ct=wt[kt].glbl,"boolean"==typeof i&&(i={add:i}),"number"==typeof i&&(i={add:!0,visible:i}),"object"!=typeof i&&(i={}),"number"==typeof i.visible&&(i.visible={min:i.visible,max:i.visible}),(i=this.opts[Tt]=wt.extend(!0,{},wt[kt].defaults[Tt],i)).add){i.visible.min=Math.max(1,Math.min(6,i.visible.min)),i.visible.max=Math.max(i.visible.min,Math.min(6,i.visible.max));for(var s=this.opts.offCanvas?this.$menu.add(Ct.$html):this.$menu,n="",t=0;t<=i.visible.max;t++)n+=" "+xt.columns+"-"+t;n.length&&(n=n.slice(1)),this.bind("initMenu:after",function(){this.$menu.addClass(xt.columns)}),this.bind("openPanel:start",function(t){var e=this.$pnls.children("."+xt.subopened).length;t&&!t.hasClass(xt.subopened)&&e++,e=Math.min(i.visible.max,Math.max(i.visible.min,e)),s.removeClass(n).addClass(xt.columns+"-"+e)}),this.bind("openPanel:start",function(t){t=t||this.$pnls.children("."+xt.opened),this.$pnls.children("."+xt.panel).removeClass(n).filter("."+xt.subopened).add(t).slice(-i.visible.max).each(function(t){wt(this).addClass(xt.columns+"-"+t)})})}},add:function(){xt=wt[kt]._c,wt[kt]._d,wt[kt]._e,xt.add("columns")},clickAnchor:function(t,e){if(!this.opts[Tt].add)return!1;if(e){var i=t.attr("href");if(1')))})}),i.update){function t(t){(t=t||this.$pnls.children("."+vt.panel)).each(function(){var t=mt(this),e=t.data(_t.parent);if(e){var i=e.children("em."+vt.counter);i.length&&(t=t.children("."+vt.listview)).length&&i.html(s.__filterListItems(t.children()).length)}})}this.bind("initListview:after",t),this.bind("updateListview",t)}},add:function(){vt=mt[bt]._c,_t=mt[bt]._d,mt[bt]._e,vt.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},mt[bt].defaults[yt]={add:!1,addTo:"panels",count:!1},mt[bt].configuration.classNames[yt]={counter:"Counter"},gt="dividers",(ut=t)[ft="mmenu"].addons[gt]={setup:function(){var i=this,s=this.opts[gt];if(this.conf[gt],ut[ft].glbl,"boolean"==typeof s&&(s={add:s,fixed:s}),"object"!=typeof s&&(s={}),s=this.opts[gt]=ut.extend(!0,{},ut[ft].defaults[gt],s),this.bind("initListview:after",function(t){this.__refactorClass(t.find("li"),this.conf.classNames[gt].collapsed,"collapsed")}),s.add&&this.bind("initListview:after",function(t){var e;switch(s.addTo){case"panels":e=t;break;default:e=t.filter(s.addTo)}e.length&&e.find("."+dt.listview).find("."+dt.divider).remove().end().each(function(){var e="";i.__filterListItems(ut(this).children()).each(function(){var t=ut.trim(ut(this).children("a, span").text()).slice(0,1).toLowerCase();t!=e&&t.length&&(e=t,ut('
  • '+t+"
  • ").insertBefore(this))})})}),s.collapse&&this.bind("initListview:after",function(t){t.find("."+dt.divider).each(function(){var t=ut(this);t.nextUntil("."+dt.divider,"."+dt.collapsed).length&&(t.children("."+dt.next).length||(t.wrapInner(""),t.prepend('
    ')))})}),s.fixed){function n(t){if(!(t=t||this.$pnls.children("."+dt.opened)).is(":hidden")){var e=t.children("."+dt.listview).children("."+dt.divider).not("."+dt.hidden),i=t.scrollTop()||0,s="";e.each(function(){ut(this).position().top+i
  • ').prependTo(this.$pnls).children())}),this.bind("open:start",n),this.bind("openPanel:start",n),this.bind("updateListview",n),this.bind("initPanel:after",function(e){e.off(pt.scroll+"-"+gt+" "+pt.touchmove+"-"+gt).on(pt.scroll+"-"+gt+" "+pt.touchmove+"-"+gt,function(t){n.call(i,e)})})}},add:function(){dt=ut[ft]._c,ut[ft]._d,pt=ut[ft]._e,dt.add("collapsed uncollapsed fixeddivider hasdividers"),pt.add("scroll")},clickAnchor:function(t,e){if(this.opts[gt].collapse&&e){var i=t.parent();if(i.is("."+dt.divider)){var s=i.nextUntil("."+dt.divider,"."+dt.collapsed);return i.toggleClass(dt.opened),s[i.hasClass(dt.opened)?"addClass":"removeClass"](dt.uncollapsed),!0}}return!1}},ut[ft].defaults[gt]={add:!1,addTo:"panels",fixed:!1,collapse:!1},ut[ft].configuration.classNames[gt]={collapsed:"Collapsed"},(rt=t)[ct="mmenu"].addons.drag={setup:function(){if(this.opts.offCanvas){var e=this.opts.drag,i=this.conf.drag;ht=rt[ct].glbl,"boolean"==typeof e&&(e={menu:e,panels:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.menu&&(e.menu={open:e.menu}),"object"!=typeof e.menu&&(e.menu={}),"boolean"==typeof e.panels&&(e.panels={close:e.panels}),"object"!=typeof e.panels&&(e.panels={}),(e=this.opts.drag=rt.extend(!0,{},rt[ct].defaults.drag,e)).menu.open&&this.bind("setPage:after",function(){(function(e,i,s){var n,o,r,a=this,l={events:"panleft panright",typeLower:"x",typeUpper:"X",open_dir:"right",close_dir:"left",negative:!1},h="width",c=l.open_dir,u=function(t){t<=e.maxStartPos&&(p=1)},d=function(){return rt("."+at.slideout)},p=0,f=0,g=0;switch(this.opts.offCanvas.position){case"top":case"bottom":l.events="panup pandown",l.typeLower="y",l.typeUpper="Y",h="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":l.negative=!0,u=function(t){t>=s.$wndw[h]()-e.maxStartPos&&(p=1)}}switch(this.opts.offCanvas.position){case"left":break;case"right":l.open_dir="left",l.close_dir="right";break;case"top":l.open_dir="down",l.close_dir="up";break;case"bottom":l.open_dir="up",l.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":d=function(){return this.$menu}}var t=this.__valueOrFn(e.node,this.$menu,s.$page);"string"==typeof t&&(t=rt(t));var m=new Hammer(t[0],this.opts.drag.vendors.hammer);m.on("panstart",function(t){u(t.center[l.typeLower]),s.$slideOutNodes=d(),c=l.open_dir}),m.on(l.events+" panend",function(t){0e.threshold&&1==p){if(s.$html.hasClass(at.opened))return;p=2,a._openSetup(),a.trigger("open:start"),s.$html.addClass(at.dragging),g=ae(s.$wndw[h]()*i[h].perc,i[h].min,i[h].max)}2==p&&(o=ae(f,10,g)-("front"==a.opts.offCanvas.zposition?g:0),l.negative&&(o=-o),r="translate"+l.typeUpper+"("+o+"px )",s.$slideOutNodes.css({"-webkit-transform":"-webkit-"+r,transform:r}))}),m.on("panend",function(t){2==p&&(s.$html.removeClass(at.dragging),s.$slideOutNodes.css("transform",""),a[c==l.open_dir?"_openFinish":"close"]()),p=0})}).call(this,e.menu,i.menu,ht)}),e.panels.close&&this.bind("initPanel:after",function(t){(function(t,e,i,s){var n=this,o=t.data(lt.parent);if(o){o=o.closest("."+at.panel);var r=new Hammer(t[0],n.opts.drag.vendors.hammer),a=null;r.on("panright",function(t){a||(n.openPanel(o),a=setTimeout(function(){clearTimeout(a),a=null},n.conf.openingInterval+n.conf.transitionDuration))})}}).call(this,t,e.panels,i.panels,ht)})}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?(rt[ct].addons.drag.add=function(){},void(rt[ct].addons.drag.setup=function(){})):(at=rt[ct]._c,lt=rt[ct]._d,rt[ct]._e,void at.add("dragging"))},clickAnchor:function(t,e){}},rt[ct].defaults.drag={menu:{open:!1,maxStartPos:100,threshold:50},panels:{close:!1},vendors:{hammer:{}}},rt[ct].configuration.drag={menu:{width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}},panels:{}},ot="dropdown",(J=t)[nt="mmenu"].addons[ot]={setup:function(){if(this.opts.offCanvas){var e=this,_=this.opts[ot],b=this.conf[ot];if(st=J[nt].glbl,"boolean"==typeof _&&_&&(_={drop:_}),"object"!=typeof _&&(_={}),"string"==typeof _.position&&(_.position={of:_.position}),(_=this.opts[ot]=J.extend(!0,{},J[nt].defaults[ot],_)).drop){var y;function i(t,e){var i,s,n=e[0],o=e[1],r="x"==t?"scrollLeft":"scrollTop",a="x"==t?"outerWidth":"outerHeight",l="x"==t?"left":"top",h="x"==t?"right":"bottom",c="x"==t?"width":"height",u="x"==t?"maxWidth":"maxHeight",d=null,p=st.$wndw[r](),f=y.offset()[l]-=p,g=f+y[a](),m=st.$wndw[c](),v=b.offset.button[t]+b.offset.viewport[t];if(_.position[t])switch(_.position[t]){case"left":case"bottom":d="after";break;case"right":case"top":d="before"}return null===d&&(d=f+(g-f)/2')})}},add:function(){Y=B[U]._c,B[U]._d,B[U]._e,Y.add("iconpanel subblocker")},clickAnchor:function(t,e){}},B[U].defaults[X]={add:!1,visible:3},function(o){function s(t,e){t=t||this.$pnls.children("."+l.opened);var i=o(),s=this.$menu.children("."+l.mm("navbars-top")+", ."+l.mm("navbars-bottom")).children("."+l.navbar);s.find(d).filter(":focus").length||("default"==e&&((i=t.children("."+l.listview).find("a[href]").not("."+l.hidden)).length||(i=t.find(d).not("."+l.hidden)),i.length||(i=s.find(d).not("."+l.hidden))),i.length||(i=this.$menu.children("."+l.tabstart)),i.first().focus())}function n(t){t=t||this.$pnls.children("."+l.opened),this.$pnls.children("."+l.panel).not(t).find(d).attr("tabindex",-1),t.find(d).attr("tabindex",0),t.find("."+l.mm("toggle")+", ."+l.mm("check")).attr("tabindex",-1),t.children("."+l.navbar).children("."+l.title).attr("tabindex",-1)}var r="mmenu",a="keyboardNavigation";o[r].addons[a]={setup:function(){if(!o[r].support.touch){var e=this.opts[a];if(this.conf[a],u=o[r].glbl,"boolean"!=typeof e&&"string"!=typeof e||(e={enable:e}),"object"!=typeof e&&(e={}),(e=this.opts[a]=o.extend(!0,{},o[r].defaults[a],e)).enable){var t=o('
    ",s.append(e)):(e='",x(e).insertBefore(g)),n.hasClass("input-group-btn")?(i='",n.prepend(i)):(i='",x(i).insertAfter(g)),x(o).insertBefore(g),x(r).insertAfter(g),c=t}(e):function(){var t;t=h.verticalbuttons?'
    '+h.prefix+''+h.postfix+'
    ':'
    '+h.prefix+''+h.postfix+'
    ",c=x(t).insertBefore(g),x(".bootstrap-touchspin-prefix",c).after(g),g.hasClass("input-sm")?c.addClass("input-group-sm"):g.hasClass("input-lg")&&c.addClass("input-group-lg")}()}(),u={down:x(".bootstrap-touchspin-down",c),up:x(".bootstrap-touchspin-up",c),input:x("input",c),prefix:x(".bootstrap-touchspin-prefix",c).addClass(h.prefix_extraclass),postfix:x(".bootstrap-touchspin-postfix",c).addClass(h.postfix_extraclass)},""===h.prefix&&u.prefix.hide(),""===h.postfix&&u.postfix.hide(),g.on("keydown",function(t){var e=t.keyCode||t.which;38===e?("up"!==_&&(n(),a()),t.preventDefault()):40===e&&("down"!==_&&(o(),r()),t.preventDefault())}),g.on("keyup",function(t){var e=t.keyCode||t.which;38===e?l():40===e&&l()}),g.on("blur",function(){i()}),u.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==_&&(o(),r()),t.preventDefault())}),u.down.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||l()}),u.up.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==_&&(n(),a()),t.preventDefault())}),u.up.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||l()}),u.down.on("mousedown.touchspin",function(t){u.down.off("touchstart.touchspin"),g.is(":disabled")||(o(),r(),t.preventDefault(),t.stopPropagation())}),u.down.on("touchstart.touchspin",function(t){u.down.off("mousedown.touchspin"),g.is(":disabled")||(o(),r(),t.preventDefault(),t.stopPropagation())}),u.up.on("mousedown.touchspin",function(t){u.up.off("touchstart.touchspin"),g.is(":disabled")||(n(),a(),t.preventDefault(),t.stopPropagation())}),u.up.on("touchstart.touchspin",function(t){u.up.off("mousedown.touchspin"),g.is(":disabled")||(n(),a(),t.preventDefault(),t.stopPropagation())}),u.up.on("mouseout touchleave touchend touchcancel",function(t){_&&(t.stopPropagation(),l())}),u.down.on("mouseout touchleave touchend touchcancel",function(t){_&&(t.stopPropagation(),l())}),u.down.on("mousemove touchmove",function(t){_&&(t.stopPropagation(),t.preventDefault())}),u.up.on("mousemove touchmove",function(t){_&&(t.stopPropagation(),t.preventDefault())}),x(document).on(C(["mouseup","touchend","touchcancel"],k).join(" "),function(t){_&&(t.preventDefault(),l())}),x(document).on(C(["mousemove","touchmove","scroll","scrollstart"],k).join(" "),function(t){_&&(t.preventDefault(),l())}),g.on("mousewheel DOMMouseScroll",function(t){if(h.mousewheel&&g.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?o():n()}}),g.on("touchspin.uponce",function(){l(),n()}),g.on("touchspin.downonce",function(){l(),o()}),g.on("touchspin.startupspin",function(){a()}),g.on("touchspin.startdownspin",function(){r()}),g.on("touchspin.stopspin",function(){l()}),g.on("touchspin.updatesettings",function(t,e){!function(t){(function(t){h=x.extend({},h,t),t.postfix&&g.parent().find(".bootstrap-touchspin-postfix").text(t.postfix),t.prefix&&g.parent().find(".bootstrap-touchspin-prefix").text(t.prefix)})(t),i();var e=u.input.val();""!==e&&(e=Number(u.input.val()),u.input.val(e.toFixed(h.decimals)))}(e)}),u.input.css("display","block")}}()})}this.each(function(){var t=x(this).data();x(document).off(C(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],t.spinnerid).join(" "))})}}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(h){"use strict";var n,o=window.Slick||{};n=0,(o=function(t,e){var i,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:h(t),appendDots:h(t),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return h(''),i=t.attr("href");t.replaceWith(e),e.addClass("hamburger--"+a.opts.hamburger.animation);for(var s=l(),n=[i,a.opts.hamburger.menu,".mm-menu"],o=0;o').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu);var t=[ee.menu];this.opts.slidingSubmenus||t.push(ee.vertical),this.$menu.addClass(t.join(" ")).parent().addClass(ee.wrapper),this.trigger("initMenu:after")},_initPanels:function(t){this.trigger("initPanels:before",t),t=t||this.$pnls.children(this.conf.panelNodetype);var i=te(),s=this,n=function(t){t.filter(this.conf.panelNodetype).each(function(){var t=s._initPanel(te(this));if(t){s._initNavbar(t),s._initListview(t),i=i.add(t);var e=t.children("."+ee.listview).children("li").children(s.conf.panelNodeType).add(t.children("."+s.conf.classNames.panel));e.length&&n.call(s,e)}})};n.call(this,t),this.opts.initPanels.call(this,i),this.trigger("initPanels:after",i)},_initPanel:function(t){if(this.trigger("initPanel:before",t),t.hasClass(ee.panel))return t;if(this.__refactorClass(t,this.conf.classNames.panel,"panel"),this.__refactorClass(t,this.conf.classNames.nopanel,"nopanel"),this.__refactorClass(t,this.conf.classNames.vertical,"vertical"),this.__refactorClass(t,this.conf.classNames.inset,"inset"),t.filter("."+ee.inset).addClass(ee.nopanel),t.hasClass(ee.nopanel))return!1;var e=t.hasClass(ee.vertical)||!this.opts.slidingSubmenus;t.removeClass(ee.vertical);var i=t.attr("id")||this.__getUniqueId();t.removeAttr("id"),t.is("ul, ol")&&(t.wrap("
    "),t=t.parent()),t.addClass(ee.panel+" "+ee.hidden).attr("id",i);var s=t.parent("li");return e?t.add(s).addClass(ee.vertical):t.appendTo(this.$pnls),s.length&&(s.data(ie.child,t),t.data(ie.parent,s)),this.trigger("initPanel:after",t),t},_initNavbar:function(t){if(this.trigger("initNavbar:before",t),!t.children("."+ee.navbar).length){var e=t.data(ie.parent),i=te('
    '),s=te[re].i18n(this.opts.navbar.title),n="";if(e&&e.length){if(e.hasClass(ee.vertical))return;if(e.parent().is("."+ee.listview))var o=e.children("a, span").not("."+ee.next);else o=e.closest("."+ee.panel).find('a[href="#'+t.attr("id")+'"]');var r=(e=(o=o.first()).closest("."+ee.panel)).attr("id");switch(s=o.text(),this.opts.navbar.titleLink){case"anchor":n=o.attr("href");break;case"parent":n="#"+r}i.append('')}else if(!this.opts.navbar.title)return;this.opts.navbar.add&&t.addClass(ee.hasnavbar),i.append('"+s+"").prependTo(t),this.trigger("initNavbar:after",t)}},_initListview:function(t){this.trigger("initListview:before",t);var e=this.__childAddBack(t,"ul, ol");this.__refactorClass(e,this.conf.classNames.nolistview,"nolistview"),e.filter("."+this.conf.classNames.inset).addClass(ee.nolistview);var i=e.not("."+ee.nolistview).addClass(ee.listview).children();this.__refactorClass(i,this.conf.classNames.selected,"selected"),this.__refactorClass(i,this.conf.classNames.divider,"divider"),this.__refactorClass(i,this.conf.classNames.spacer,"spacer");var s=t.data(ie.parent);if(s&&s.parent().is("."+ee.listview)&&!s.children("."+ee.next).length){var n=s.children("a, span").first(),o=te('').insertBefore(n);n.is("span")&&o.addClass(ee.fullsubopen)}this.trigger("initListview:after",t)},_initOpened:function(){this.trigger("initOpened:before");var t=this.$pnls.find("."+ee.listview).children("."+ee.selected).removeClass(ee.selected).last().addClass(ee.selected),e=t.length?t.closest("."+ee.panel):this.$pnls.children("."+ee.panel).first();this.openPanel(e,!1),this.trigger("initOpened:after")},_initAnchors:function(){var l=this;ne.$body.on(se.click+"-oncanvas","a[href]",function(t){var e=te(this),i=!1,s=l.$menu.find(e).length;for(var n in te[re].addons)if(te[re].addons[n].clickAnchor.call(l,e,s)){i=!0;break}var o=e.attr("href");if(!i&&s&&1 li > a")&&!e.is('[rel="external"]')&&!e.is('[target="_blank"]')){l.__valueOrFn(l.opts.onClick.setSelected,e)&&l.setSelected(te(t.target).parent());var a=l.__valueOrFn(l.opts.onClick.preventDefault,e,"#"==o.slice(0,1));a&&t.preventDefault(),l.__valueOrFn(l.opts.onClick.close,e,a)&&l.close()}})},_initMatchMedia:function(){var e=this;this._fireMatchMedia(),ne.$wndw.on(se.resize,function(t){e._fireMatchMedia()})},_fireMatchMedia:function(){for(var t in this.mtch)for(var e=window.matchMedia&&window.matchMedia(t).matches?"yes":"no",i=0;i
    ')),Gt.$blck.appendTo(Gt.$body).off(Qt.touchstart+"-"+Jt+" "+Qt.touchmove+"-"+Jt).on(Qt.touchstart+"-"+Jt+" "+Qt.touchmove+"-"+Jt,function(t){t.preventDefault(),t.stopPropagation(),Gt.$blck.trigger(Qt.mousedown+"-"+Jt)}).off(Qt.mousedown+"-"+Jt).on(Qt.mousedown+"-"+Jt,function(t){t.preventDefault(),Gt.$html.hasClass(Kt.modal)||(e.closeAllOthers(),e.close())}))},Ut="scrollBugFix",(Rt=t)[Yt="mmenu"].addons[Ut]={setup:function(){var t=this.opts[Ut];this.conf[Ut],Bt=Rt[Yt].glbl,Rt[Yt].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof t&&(t={fix:t}),"object"!=typeof t&&(t={}),(t=this.opts[Ut]=Rt.extend(!0,{},Rt[Yt].defaults[Ut],t)).fix&&(this.bind("open:start",function(){this.$pnls.children("."+Ft.opened).scrollTop(0)}),this.bind("initMenu:after",function(){this["_initWindow_"+Ut]()})))},add:function(){Ft=Rt[Yt]._c,Rt[Yt]._d,qt=Rt[Yt]._e},clickAnchor:function(t,e){}},Rt[Yt].defaults[Ut]={fix:!0},Rt[Yt].prototype["_initWindow_"+Ut]=function(){var t=this;Bt.$docu.off(qt.touchmove+"-"+Ut).on(qt.touchmove+"-"+Ut,function(t){Bt.$html.hasClass(Ft.opened)&&t.preventDefault()});var e=!1;Bt.$body.off(qt.touchstart+"-"+Ut).on(qt.touchstart+"-"+Ut,"."+Ft.panels+"> ."+Ft.panel,function(t){Bt.$html.hasClass(Ft.opened)&&(e||(e=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),e=!1))}).off(qt.touchmove+"-"+Ut).on(qt.touchmove+"-"+Ut,"."+Ft.panels+"> ."+Ft.panel,function(t){Bt.$html.hasClass(Ft.opened)&&Rt(this)[0].scrollHeight>Rt(this).innerHeight()&&t.stopPropagation()}),Bt.$wndw.off(qt.orientationchange+"-"+Ut).on(qt.orientationchange+"-"+Ut,function(){t.$pnls.children("."+Ft.opened).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})},jt="screenReader",(Ht=t)[Wt="mmenu"].addons[jt]={setup:function(){var o=this,t=this.opts[jt],r=this.conf[jt];Ht[Wt].glbl,"boolean"==typeof t&&(t={aria:t,text:t}),"object"!=typeof t&&(t={}),(t=this.opts[jt]=Ht.extend(!0,{},Ht[Wt].defaults[jt],t)).aria&&(this.bind("initAddons:after",function(){this.bind("initMenu:after",function(){this.trigger("initMenu:after:sr-aria")}),this.bind("initNavbar:after",function(){this.trigger("initNavbar:after:sr-aria",arguments[0])}),this.bind("openPanel:start",function(){this.trigger("openPanel:start:sr-aria",arguments[0])}),this.bind("close:start",function(){this.trigger("close:start:sr-aria")}),this.bind("close:finish",function(){this.trigger("close:finish:sr-aria")}),this.bind("open:start",function(){this.trigger("open:start:sr-aria")}),this.bind("open:finish",function(){this.trigger("open:finish:sr-aria")})}),this.bind("updateListview",function(){this.$pnls.find("."+Lt.listview).children().each(function(){o.__sr_aria(Ht(this),"hidden",Ht(this).is("."+Lt.hidden))})}),this.bind("openPanel:start",function(t){var e=this.$menu.find("."+Lt.panel).not(t).not(t.parents("."+Lt.panel)),i=t.add(t.find("."+Lt.vertical+"."+Lt.opened).children("."+Lt.panel));this.__sr_aria(e,"hidden",!0),this.__sr_aria(i,"hidden",!1)}),this.bind("closePanel",function(t){this.__sr_aria(t,"hidden",!0)}),this.bind("initPanels:after",function(t){var e=t.find("."+Lt.prev+", ."+Lt.next).each(function(){o.__sr_aria(Ht(this),"owns",Ht(this).attr("href").replace("#",""))});this.__sr_aria(e,"haspopup",!0)}),this.bind("initNavbar:after",function(t){var e=t.children("."+Lt.navbar);this.__sr_aria(e,"hidden",!t.hasClass(Lt.hasnavbar))}),t.text&&(this.bind("initlistview:after",function(t){var e=t.find("."+Lt.listview).find("."+Lt.fullsubopen).parent().children("span");this.__sr_aria(e,"hidden",!0)}),"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",function(t){var e=t.children("."+Lt.navbar),i=!!e.children("."+Lt.prev).length;this.__sr_aria(e.children("."+Lt.title),"hidden",i)}))),t.text&&(this.bind("initAddons:after",function(){this.bind("setPage:after",function(){this.trigger("setPage:after:sr-text",arguments[0])})}),this.bind("initNavbar:after",function(t){var e=t.children("."+Lt.navbar),i=e.children("."+Lt.title).text(),s=Ht[Wt].i18n(r.text.closeSubmenu);i&&(s+=" ("+i+")"),e.children("."+Lt.prev).html(this.__sr_text(s))}),this.bind("initListview:after",function(t){var e=t.data(zt.parent);if(e&&e.length){var i=e.children("."+Lt.next),s=i.nextAll("span, a").first().text(),n=Ht[Wt].i18n(r.text[i.parent().is("."+Lt.vertical)?"toggleSubmenu":"openSubmenu"]);s&&(n+=" ("+s+")"),i.html(o.__sr_text(n))}}))},add:function(){Lt=Ht[Wt]._c,zt=Ht[Wt]._d,Ht[Wt]._e,Lt.add("sronly")},clickAnchor:function(t,e){}},Ht[Wt].defaults[jt]={aria:!0,text:!0},Ht[Wt].configuration[jt]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},Ht[Wt].prototype.__sr_aria=function(t,e,i){t.prop("aria-"+e,i)[i?"attr":"removeAttr"]("aria-"+e,i)},Ht[Wt].prototype.__sr_text=function(t){return''+t+""},Nt="autoHeight",(At=t)[$t="mmenu"].addons[Nt]={setup:function(){var n=this.opts[Nt];if(this.conf[Nt],At[$t].glbl,"boolean"==typeof n&&n&&(n={height:"auto"}),"string"==typeof n&&(n={height:n}),"object"!=typeof n&&(n={}),"auto"==(n=this.opts[Nt]=At.extend(!0,{},At[$t].defaults[Nt],n)).height||"highest"==n.height){function t(t){if(!this.opts.offCanvas||this.vars.opened){var e=Math.max(parseInt(this.$pnls.css("top"),10),0)||0,i=Math.max(parseInt(this.$pnls.css("bottom"),10),0)||0,s=0;this.$menu.addClass(Mt.measureheight),"auto"==n.height?((t=t||this.$pnls.children("."+Mt.opened)).is("."+Mt.vertical)&&(t=t.parents("."+Mt.panel).not("."+Mt.vertical)),t.length||(t=this.$pnls.children("."+Mt.panel)),s=t.first().outerHeight()):"highest"==n.height&&this.$pnls.children().each(function(){var t=At(this);t.is("."+Mt.vertical)&&(t=t.parents("."+Mt.panel).not("."+Mt.vertical).first()),s=Math.max(s,t.outerHeight())}),this.$menu.height(s+e+i).removeClass(Mt.measureheight)}}this.bind("initMenu:after",function(){this.$menu.addClass(Mt.autoheight)}),this.opts.offCanvas&&this.bind("open:start",t),"highest"==n.height&&this.bind("initPanels:after",t),"auto"==n.height&&(this.bind("updateListview",t),this.bind("openPanel:start",t),this.bind("closePanel",t))}},add:function(){Mt=At[$t]._c,At[$t]._d,Ot=At[$t]._e,Mt.add("autoheight measureheight"),Ot.add("resize")},clickAnchor:function(t,e){}},At[$t].defaults[Nt]={height:"default"},Pt="backButton",(St=t)[Et="mmenu"].addons[Pt]={setup:function(){if(this.opts.offCanvas){var e=this,t=this.opts[Pt];if(this.conf[Pt],It=St[Et].glbl,"boolean"==typeof t&&(t={close:t}),"object"!=typeof t&&(t={}),(t=St.extend(!0,{},St[Et].defaults[Pt],t)).close){var i="#"+e.$menu.attr("id");this.bind("open:finish",function(t){location.hash!=i&&history.pushState(null,document.title,i)}),St(window).on("popstate",function(t){It.$html.hasClass(Dt.opened)?(t.stopPropagation(),e.close()):location.hash==i&&(t.stopPropagation(),e.open())})}}},add:function(){return window.history&&window.history.pushState?(Dt=St[Et]._c,St[Et]._d,void St[Et]._e):void(St[Et].addons[Pt].setup=function(){})},clickAnchor:function(t,e){}},St[Et].defaults[Pt]={close:!1},Tt="columns",(wt=t)[kt="mmenu"].addons[Tt]={setup:function(){var i=this.opts[Tt];if(this.conf[Tt],Ct=wt[kt].glbl,"boolean"==typeof i&&(i={add:i}),"number"==typeof i&&(i={add:!0,visible:i}),"object"!=typeof i&&(i={}),"number"==typeof i.visible&&(i.visible={min:i.visible,max:i.visible}),(i=this.opts[Tt]=wt.extend(!0,{},wt[kt].defaults[Tt],i)).add){i.visible.min=Math.max(1,Math.min(6,i.visible.min)),i.visible.max=Math.max(i.visible.min,Math.min(6,i.visible.max));for(var s=this.opts.offCanvas?this.$menu.add(Ct.$html):this.$menu,n="",t=0;t<=i.visible.max;t++)n+=" "+xt.columns+"-"+t;n.length&&(n=n.slice(1)),this.bind("initMenu:after",function(){this.$menu.addClass(xt.columns)}),this.bind("openPanel:start",function(t){var e=this.$pnls.children("."+xt.subopened).length;t&&!t.hasClass(xt.subopened)&&e++,e=Math.min(i.visible.max,Math.max(i.visible.min,e)),s.removeClass(n).addClass(xt.columns+"-"+e)}),this.bind("openPanel:start",function(t){t=t||this.$pnls.children("."+xt.opened),this.$pnls.children("."+xt.panel).removeClass(n).filter("."+xt.subopened).add(t).slice(-i.visible.max).each(function(t){wt(this).addClass(xt.columns+"-"+t)})})}},add:function(){xt=wt[kt]._c,wt[kt]._d,wt[kt]._e,xt.add("columns")},clickAnchor:function(t,e){if(!this.opts[Tt].add)return!1;if(e){var i=t.attr("href");if(1')))})}),i.update){function t(t){(t=t||this.$pnls.children("."+vt.panel)).each(function(){var t=mt(this),e=t.data(_t.parent);if(e){var i=e.children("em."+vt.counter);i.length&&(t=t.children("."+vt.listview)).length&&i.html(s.__filterListItems(t.children()).length)}})}this.bind("initListview:after",t),this.bind("updateListview",t)}},add:function(){vt=mt[bt]._c,_t=mt[bt]._d,mt[bt]._e,vt.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},mt[bt].defaults[yt]={add:!1,addTo:"panels",count:!1},mt[bt].configuration.classNames[yt]={counter:"Counter"},gt="dividers",(ut=t)[ft="mmenu"].addons[gt]={setup:function(){var i=this,s=this.opts[gt];if(this.conf[gt],ut[ft].glbl,"boolean"==typeof s&&(s={add:s,fixed:s}),"object"!=typeof s&&(s={}),s=this.opts[gt]=ut.extend(!0,{},ut[ft].defaults[gt],s),this.bind("initListview:after",function(t){this.__refactorClass(t.find("li"),this.conf.classNames[gt].collapsed,"collapsed")}),s.add&&this.bind("initListview:after",function(t){var e;switch(s.addTo){case"panels":e=t;break;default:e=t.filter(s.addTo)}e.length&&e.find("."+dt.listview).find("."+dt.divider).remove().end().each(function(){var e="";i.__filterListItems(ut(this).children()).each(function(){var t=ut.trim(ut(this).children("a, span").text()).slice(0,1).toLowerCase();t!=e&&t.length&&(e=t,ut('
  • '+t+"
  • ").insertBefore(this))})})}),s.collapse&&this.bind("initListview:after",function(t){t.find("."+dt.divider).each(function(){var t=ut(this);t.nextUntil("."+dt.divider,"."+dt.collapsed).length&&(t.children("."+dt.next).length||(t.wrapInner(""),t.prepend('
    ')))})}),s.fixed){function n(t){if(!(t=t||this.$pnls.children("."+dt.opened)).is(":hidden")){var e=t.children("."+dt.listview).children("."+dt.divider).not("."+dt.hidden),i=t.scrollTop()||0,s="";e.each(function(){ut(this).position().top+i
  • ').prependTo(this.$pnls).children())}),this.bind("open:start",n),this.bind("openPanel:start",n),this.bind("updateListview",n),this.bind("initPanel:after",function(e){e.off(pt.scroll+"-"+gt+" "+pt.touchmove+"-"+gt).on(pt.scroll+"-"+gt+" "+pt.touchmove+"-"+gt,function(t){n.call(i,e)})})}},add:function(){dt=ut[ft]._c,ut[ft]._d,pt=ut[ft]._e,dt.add("collapsed uncollapsed fixeddivider hasdividers"),pt.add("scroll")},clickAnchor:function(t,e){if(this.opts[gt].collapse&&e){var i=t.parent();if(i.is("."+dt.divider)){var s=i.nextUntil("."+dt.divider,"."+dt.collapsed);return i.toggleClass(dt.opened),s[i.hasClass(dt.opened)?"addClass":"removeClass"](dt.uncollapsed),!0}}return!1}},ut[ft].defaults[gt]={add:!1,addTo:"panels",fixed:!1,collapse:!1},ut[ft].configuration.classNames[gt]={collapsed:"Collapsed"},(rt=t)[ct="mmenu"].addons.drag={setup:function(){if(this.opts.offCanvas){var e=this.opts.drag,i=this.conf.drag;ht=rt[ct].glbl,"boolean"==typeof e&&(e={menu:e,panels:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.menu&&(e.menu={open:e.menu}),"object"!=typeof e.menu&&(e.menu={}),"boolean"==typeof e.panels&&(e.panels={close:e.panels}),"object"!=typeof e.panels&&(e.panels={}),(e=this.opts.drag=rt.extend(!0,{},rt[ct].defaults.drag,e)).menu.open&&this.bind("setPage:after",function(){(function(e,i,s){var n,o,r,a=this,l={events:"panleft panright",typeLower:"x",typeUpper:"X",open_dir:"right",close_dir:"left",negative:!1},h="width",c=l.open_dir,u=function(t){t<=e.maxStartPos&&(p=1)},d=function(){return rt("."+at.slideout)},p=0,f=0,g=0;switch(this.opts.offCanvas.position){case"top":case"bottom":l.events="panup pandown",l.typeLower="y",l.typeUpper="Y",h="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":l.negative=!0,u=function(t){t>=s.$wndw[h]()-e.maxStartPos&&(p=1)}}switch(this.opts.offCanvas.position){case"left":break;case"right":l.open_dir="left",l.close_dir="right";break;case"top":l.open_dir="down",l.close_dir="up";break;case"bottom":l.open_dir="up",l.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":d=function(){return this.$menu}}var t=this.__valueOrFn(e.node,this.$menu,s.$page);"string"==typeof t&&(t=rt(t));var m=new Hammer(t[0],this.opts.drag.vendors.hammer);m.on("panstart",function(t){u(t.center[l.typeLower]),s.$slideOutNodes=d(),c=l.open_dir}),m.on(l.events+" panend",function(t){0e.threshold&&1==p){if(s.$html.hasClass(at.opened))return;p=2,a._openSetup(),a.trigger("open:start"),s.$html.addClass(at.dragging),g=ae(s.$wndw[h]()*i[h].perc,i[h].min,i[h].max)}2==p&&(o=ae(f,10,g)-("front"==a.opts.offCanvas.zposition?g:0),l.negative&&(o=-o),r="translate"+l.typeUpper+"("+o+"px )",s.$slideOutNodes.css({"-webkit-transform":"-webkit-"+r,transform:r}))}),m.on("panend",function(t){2==p&&(s.$html.removeClass(at.dragging),s.$slideOutNodes.css("transform",""),a[c==l.open_dir?"_openFinish":"close"]()),p=0})}).call(this,e.menu,i.menu,ht)}),e.panels.close&&this.bind("initPanel:after",function(t){(function(t,e,i,s){var n=this,o=t.data(lt.parent);if(o){o=o.closest("."+at.panel);var r=new Hammer(t[0],n.opts.drag.vendors.hammer),a=null;r.on("panright",function(t){a||(n.openPanel(o),a=setTimeout(function(){clearTimeout(a),a=null},n.conf.openingInterval+n.conf.transitionDuration))})}}).call(this,t,e.panels,i.panels,ht)})}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?(rt[ct].addons.drag.add=function(){},void(rt[ct].addons.drag.setup=function(){})):(at=rt[ct]._c,lt=rt[ct]._d,rt[ct]._e,void at.add("dragging"))},clickAnchor:function(t,e){}},rt[ct].defaults.drag={menu:{open:!1,maxStartPos:100,threshold:50},panels:{close:!1},vendors:{hammer:{}}},rt[ct].configuration.drag={menu:{width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}},panels:{}},ot="dropdown",(J=t)[nt="mmenu"].addons[ot]={setup:function(){if(this.opts.offCanvas){var e=this,_=this.opts[ot],b=this.conf[ot];if(st=J[nt].glbl,"boolean"==typeof _&&_&&(_={drop:_}),"object"!=typeof _&&(_={}),"string"==typeof _.position&&(_.position={of:_.position}),(_=this.opts[ot]=J.extend(!0,{},J[nt].defaults[ot],_)).drop){var y;function i(t,e){var i,s,n=e[0],o=e[1],r="x"==t?"scrollLeft":"scrollTop",a="x"==t?"outerWidth":"outerHeight",l="x"==t?"left":"top",h="x"==t?"right":"bottom",c="x"==t?"width":"height",u="x"==t?"maxWidth":"maxHeight",d=null,p=st.$wndw[r](),f=y.offset()[l]-=p,g=f+y[a](),m=st.$wndw[c](),v=b.offset.button[t]+b.offset.viewport[t];if(_.position[t])switch(_.position[t]){case"left":case"bottom":d="after";break;case"right":case"top":d="before"}return null===d&&(d=f+(g-f)/2')})}},add:function(){Y=B[U]._c,B[U]._d,B[U]._e,Y.add("iconpanel subblocker")},clickAnchor:function(t,e){}},B[U].defaults[X]={add:!1,visible:3},function(o){function s(t,e){t=t||this.$pnls.children("."+l.opened);var i=o(),s=this.$menu.children("."+l.mm("navbars-top")+", ."+l.mm("navbars-bottom")).children("."+l.navbar);s.find(d).filter(":focus").length||("default"==e&&((i=t.children("."+l.listview).find("a[href]").not("."+l.hidden)).length||(i=t.find(d).not("."+l.hidden)),i.length||(i=s.find(d).not("."+l.hidden))),i.length||(i=this.$menu.children("."+l.tabstart)),i.first().focus())}function n(t){t=t||this.$pnls.children("."+l.opened),this.$pnls.children("."+l.panel).not(t).find(d).attr("tabindex",-1),t.find(d).attr("tabindex",0),t.find("."+l.mm("toggle")+", ."+l.mm("check")).attr("tabindex",-1),t.children("."+l.navbar).children("."+l.title).attr("tabindex",-1)}var r="mmenu",a="keyboardNavigation";o[r].addons[a]={setup:function(){if(!o[r].support.touch){var e=this.opts[a];if(this.conf[a],u=o[r].glbl,"boolean"!=typeof e&&"string"!=typeof e||(e={enable:e}),"object"!=typeof e&&(e={}),(e=this.opts[a]=o.extend(!0,{},o[r].defaults[a],e)).enable){var t=o('