material-sass 4.1.0 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/assets/javascripts/material.js +48 -92
  4. data/assets/javascripts/material.min.js +4 -4
  5. data/assets/javascripts/material/components/floating-label.js +1 -1
  6. data/assets/javascripts/material/components/nav-drawer.js +12 -39
  7. data/assets/javascripts/material/components/pickdate.js +1 -1
  8. data/assets/javascripts/material/components/tab-switch.js +2 -12
  9. data/assets/javascripts/material/components/util.js +7 -21
  10. data/assets/stylesheets/material/base/_base.scss +0 -1
  11. data/assets/stylesheets/material/bootstrap/_form.scss +41 -17
  12. data/assets/stylesheets/material/material.scss +0 -1
  13. data/assets/stylesheets/material/material/_expansion-panel.scss +1 -0
  14. data/assets/stylesheets/material/material/_selection-control.scss +8 -1
  15. data/assets/stylesheets/material/material/_text-field-box.scss +65 -30
  16. data/assets/stylesheets/material/material/_text-field-floating-label.scss +114 -21
  17. data/assets/stylesheets/material/material/_text-field-input-group.scss +59 -33
  18. data/assets/stylesheets/material/material/_text-field.scss +150 -84
  19. data/assets/stylesheets/material/material/_toolbar.scss +6 -5
  20. data/assets/stylesheets/material/mixins/_form.scss +32 -57
  21. data/assets/stylesheets/material/mixins/_grid-framework.scss +9 -8
  22. data/assets/stylesheets/material/mixins/_text-hide.scss +4 -2
  23. data/assets/stylesheets/material/utilities/_position.scss +5 -3
  24. data/assets/stylesheets/material/utilities/_text.scss +1 -1
  25. data/assets/stylesheets/material/variables/_spacer.scss +5 -5
  26. data/assets/stylesheets/material/variables/_variable-material.scss +6 -3
  27. data/lib/material-sass/version.rb +1 -1
  28. metadata +3 -4
  29. data/assets/stylesheets/material/bootstrap/_custom-form.scss +0 -59
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f28f0148097fdd4de7126bc8bb5e12855c8df854a26cea7545a190772dfb00f4
4
- data.tar.gz: a4dbf45fa350ccc4ba7777f14fe0a1e3b653a233b4b592a56393cc7d0570eec4
3
+ metadata.gz: 5b3ac52757b0e2dc8ce74ba9e61ae97b3fe99fffd3e2b4fe8ac77784253ca080
4
+ data.tar.gz: 146529ccc3e54ba4b9c0f2e9c4fbef93c5a01f4438afc8d8c31bf3414782eee8
5
5
  SHA512:
6
- metadata.gz: 175587c4ccb5920eeb40bcdb24a03808cddc02ef2fbfb8b5705555306f3f59c59e68178e8d8163491b68ac315a1e6e9781a8b56657f9868ef0dfd06a689de17f
7
- data.tar.gz: 2c9625e78a1fda080f55ba6b56f166810adec6f1c7bf3379d169967c3a4a504deb026846030f91676b32b88c279c2946323622fbc00c2bebfc6d69005143ec89
6
+ metadata.gz: d6cb536628b97c022c7bb57082fc6da9c7b1553f08eaea87c38a00600f2c714c2dc4218518db256a6842beb3ef2762b287665c3622b6132cb63f880b02b72902
7
+ data.tar.gz: 5e826b7804178c18db92706cf8ff6d9aacfd60f488b0442eb8b30af25635c637646fdced4823cc3592bfb99288e5a35f76cd39492620938ee8183a0739e8e919
data/README.md CHANGED
@@ -22,8 +22,8 @@ Since bootstrap relies on it, install it with ```bin/yarn add jquery``` or via `
22
22
  Add this line to your application's Gemfile:
23
23
 
24
24
  ```ruby
25
- gem 'bootstrap', '~> 4.1.0'
26
- gem 'material-sass', '~> 4.1.0'
25
+ gem 'bootstrap', '~> 4.1.1'
26
+ gem 'material-sass', '~> 4.1.1'
27
27
  ```
28
28
  And then run the bundler and restart your server to make the files available through the pipeline:
29
29
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Daemonite Material v4.1.0 (http://daemonite.github.io/material/)
2
+ * Daemonite Material v4.1.1 (http://daemonite.github.io/material/)
3
3
  * Copyright 2011-2018 Daemon Pty Ltd
4
4
  * Licensed under MIT (https://github.com/Daemonite/material/blob/master/LICENSE)
5
5
  */
@@ -74,7 +74,7 @@
74
74
  };
75
75
  var Selector = {
76
76
  DATA_PARENT: '.floating-label',
77
- DATA_TOGGLE: '.floating-label .form-control' // <<< constants
77
+ DATA_TOGGLE: '.floating-label .custom-select, .floating-label .form-control' // <<< constants
78
78
 
79
79
  };
80
80
 
@@ -194,18 +194,18 @@
194
194
 
195
195
  /*
196
196
  * Global util js
197
- * Based on Bootstrap's (v4.1.0) `util.js`
197
+ * Based on Bootstrap's (v4.1.X) `util.js`
198
198
  */
199
199
 
200
200
  var Util = function ($$$1) {
201
201
  var MAX_UID = 1000000;
202
202
  var MILLISECONDS_MULTIPLIER = 1000;
203
- var transition = false;
203
+ var TRANSITION_END = 'transitionend';
204
204
 
205
205
  function getSpecialTransitionEndEvent() {
206
206
  return {
207
- bindType: transition.end,
208
- delegateType: transition.end,
207
+ bindType: TRANSITION_END,
208
+ delegateType: TRANSITION_END,
209
209
  handle: function handle(event) {
210
210
  if ($$$1(event.target).is(this)) {
211
211
  return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
@@ -217,12 +217,8 @@
217
217
  }
218
218
 
219
219
  function setTransitionEndSupport() {
220
- transition = transitionEndTest();
221
220
  $$$1.fn.emulateTransitionEnd = transitionEndEmulator;
222
-
223
- if (Util.supportsTransitionEnd()) {
224
- $$$1.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
225
- }
221
+ $$$1.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
226
222
  }
227
223
 
228
224
  function toType(obj) {
@@ -244,16 +240,6 @@
244
240
  return this;
245
241
  }
246
242
 
247
- function transitionEndTest() {
248
- if (typeof window !== 'undefined' && window.QUnit) {
249
- return false;
250
- }
251
-
252
- return {
253
- end: 'transitionend'
254
- };
255
- }
256
-
257
243
  var Util = {
258
244
  TRANSITION_END: 'mdTransitionEnd',
259
245
  getSelectorFromElement: function getSelectorFromElement(element) {
@@ -299,10 +285,10 @@
299
285
  return element.offsetHeight;
300
286
  },
301
287
  supportsTransitionEnd: function supportsTransitionEnd() {
302
- return Boolean(transition);
288
+ return Boolean(TRANSITION_END);
303
289
  },
304
290
  triggerTransitionEnd: function triggerTransitionEnd(element) {
305
- $$$1(element).trigger(transition.end);
291
+ $$$1(element).trigger(TRANSITION_END);
306
292
  },
307
293
  typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
308
294
  for (var property in configTypes) {
@@ -324,7 +310,7 @@
324
310
 
325
311
  /*
326
312
  * Navigation drawer plguin
327
- * Based on Bootstrap's (v4.1.0) `modal.js`
313
+ * Based on Bootstrap's (v4.1.X) `modal.js`
328
314
  */
329
315
 
330
316
  var NavDrawer = function ($$$1) {
@@ -404,27 +390,19 @@
404
390
  }
405
391
 
406
392
  this._isShown = false;
407
- var supportsTransition = Util.supportsTransitionEnd();
408
-
409
- if (supportsTransition) {
410
- this._isTransitioning = true;
411
- }
393
+ this._isTransitioning = true;
412
394
 
413
395
  this._setEscapeEvent();
414
396
 
415
397
  $$$1(document).off(Event.FOCUSIN);
398
+ $$$1(document.body).removeClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
416
399
  $$$1(this._element).removeClass(ClassName.SHOW);
417
400
  $$$1(this._element).off(Event.CLICK_DISMISS);
418
401
  $$$1(this._content).off(Event.MOUSEDOWN_DISMISS);
419
-
420
- if (supportsTransition) {
421
- var transitionDuration = Util.getTransitionDurationFromElement(this._content);
422
- $$$1(this._content).one(Util.TRANSITION_END, function (event) {
423
- return _this._hideNavdrawer(event);
424
- }).emulateTransitionEnd(transitionDuration);
425
- } else {
426
- this._hideNavdrawer();
427
- }
402
+ var transitionDuration = Util.getTransitionDurationFromElement(this._content);
403
+ $$$1(this._content).one(Util.TRANSITION_END, function (event) {
404
+ return _this._hideNavdrawer(event);
405
+ }).emulateTransitionEnd(transitionDuration);
428
406
 
429
407
  this._showBackdrop();
430
408
  };
@@ -436,10 +414,7 @@
436
414
  return;
437
415
  }
438
416
 
439
- if (Util.supportsTransitionEnd()) {
440
- this._isTransitioning = true;
441
- }
442
-
417
+ this._isTransitioning = true;
443
418
  var showEvent = $$$1.Event(Event.SHOW, {
444
419
  relatedTarget: relatedTarget
445
420
  });
@@ -450,7 +425,6 @@
450
425
  }
451
426
 
452
427
  this._isShown = true;
453
- $$$1(document.body).addClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
454
428
 
455
429
  this._setEscapeEvent();
456
430
 
@@ -497,7 +471,6 @@
497
471
  this._element.setAttribute('aria-hidden', true);
498
472
 
499
473
  this._isTransitioning = false;
500
- $$$1(document.body).removeClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
501
474
  $$$1(this._element).trigger(Event.HIDDEN);
502
475
  };
503
476
 
@@ -527,8 +500,6 @@
527
500
  _proto._showBackdrop = function _showBackdrop() {
528
501
  var _this5 = this;
529
502
 
530
- var supportsTransition = Util.supportsTransitionEnd();
531
-
532
503
  if (this._isShown) {
533
504
  this._backdrop = document.createElement('div');
534
505
  $$$1(this._backdrop).addClass(ClassName.BACKDROP).addClass(ClassName.BACKDROP + "-" + this._config.type + this._typeBreakpoint).appendTo(document.body);
@@ -544,11 +515,7 @@
544
515
 
545
516
  _this5.hide();
546
517
  });
547
-
548
- if (supportsTransition) {
549
- Util.reflow(this._backdrop);
550
- }
551
-
518
+ Util.reflow(this._backdrop);
552
519
  $$$1(this._backdrop).addClass(ClassName.SHOW);
553
520
  } else if (!this._isShown && this._backdrop) {
554
521
  $$$1(this._backdrop).removeClass(ClassName.SHOW);
@@ -560,8 +527,6 @@
560
527
  _proto._showElement = function _showElement(relatedTarget) {
561
528
  var _this6 = this;
562
529
 
563
- var supportsTransition = Util.supportsTransitionEnd();
564
-
565
530
  if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
566
531
  document.body.appendChild(this._element);
567
532
  }
@@ -570,10 +535,8 @@
570
535
 
571
536
  this._element.removeAttribute('aria-hidden');
572
537
 
573
- if (supportsTransition) {
574
- Util.reflow(this._element);
575
- }
576
-
538
+ Util.reflow(this._element);
539
+ $$$1(document.body).addClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
577
540
  $$$1(this._element).addClass(ClassName.SHOW);
578
541
 
579
542
  this._enforceFocus();
@@ -589,17 +552,13 @@
589
552
  $$$1(_this6._element).trigger(shownEvent);
590
553
  };
591
554
 
592
- if (supportsTransition) {
593
- var transitionDuration = Util.getTransitionDurationFromElement(this._content);
594
- $$$1(this._content).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
595
- } else {
596
- transitionComplete();
597
- }
555
+ var transitionDuration = Util.getTransitionDurationFromElement(this._content);
556
+ $$$1(this._content).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
598
557
  };
599
558
 
600
559
  NavDrawer._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
601
560
  return this.each(function () {
602
- var _config = _objectSpread({}, NavDrawer.Default, $$$1(this).data(), typeof config === 'object' && config);
561
+ var _config = _objectSpread({}, Default, $$$1(this).data(), typeof config === 'object' && config ? config : {});
603
562
 
604
563
  var data = $$$1(this).data(DATA_KEY);
605
564
 
@@ -1834,6 +1793,13 @@
1834
1793
  }));
1835
1794
  });
1836
1795
 
1796
+ var picker$1 = /*#__PURE__*/Object.freeze({
1797
+ default: picker,
1798
+ __moduleExports: picker
1799
+ });
1800
+
1801
+ var require$$0 = ( picker$1 && picker ) || picker$1;
1802
+
1837
1803
  var picker_date = createCommonjsModule(function (module, exports) {
1838
1804
  /*!
1839
1805
  * Date picker for pickadate.js v3.5.6
@@ -1847,7 +1813,7 @@
1847
1813
  undefined( ['picker', 'jquery'], factory );
1848
1814
 
1849
1815
  // Node.js/browserify.
1850
- else module.exports = factory( picker, $ );
1816
+ else module.exports = factory( require$$0, $ );
1851
1817
 
1852
1818
  }(function( Picker, $$$1 ) {
1853
1819
 
@@ -1864,12 +1830,12 @@
1864
1830
  /**
1865
1831
  * The date picker constructor
1866
1832
  */
1867
- function DatePicker( picker$$1, settings ) {
1833
+ function DatePicker( picker, settings ) {
1868
1834
 
1869
1835
  var calendar = this,
1870
- element = picker$$1.$node[ 0 ],
1836
+ element = picker.$node[ 0 ],
1871
1837
  elementValue = element.value,
1872
- elementDataValue = picker$$1.$node.data( 'value' ),
1838
+ elementDataValue = picker.$node.data( 'value' ),
1873
1839
  valueString = elementDataValue || elementValue,
1874
1840
  formatString = elementDataValue ? settings.formatSubmit : settings.format,
1875
1841
  isRTL = function() {
@@ -1880,11 +1846,11 @@
1880
1846
  element.currentStyle.direction == 'rtl' :
1881
1847
 
1882
1848
  // For normal browsers.
1883
- getComputedStyle( picker$$1.$root[0] ).direction == 'rtl'
1849
+ getComputedStyle( picker.$root[0] ).direction == 'rtl'
1884
1850
  };
1885
1851
 
1886
1852
  calendar.settings = settings;
1887
- calendar.$node = picker$$1.$node;
1853
+ calendar.$node = picker.$node;
1888
1854
 
1889
1855
  // The queue of methods that will be used to build item objects.
1890
1856
  calendar.queue = {
@@ -1949,20 +1915,20 @@
1949
1915
 
1950
1916
 
1951
1917
  // Bind some picker events.
1952
- picker$$1.
1918
+ picker.
1953
1919
  on( 'render', function() {
1954
- picker$$1.$root.find( '.' + settings.klass.selectMonth ).on( 'change', function() {
1920
+ picker.$root.find( '.' + settings.klass.selectMonth ).on( 'change', function() {
1955
1921
  var value = this.value;
1956
1922
  if ( value ) {
1957
- picker$$1.set( 'highlight', [ picker$$1.get( 'view' ).year, value, picker$$1.get( 'highlight' ).date ] );
1958
- picker$$1.$root.find( '.' + settings.klass.selectMonth ).trigger( 'focus' );
1923
+ picker.set( 'highlight', [ picker.get( 'view' ).year, value, picker.get( 'highlight' ).date ] );
1924
+ picker.$root.find( '.' + settings.klass.selectMonth ).trigger( 'focus' );
1959
1925
  }
1960
1926
  });
1961
- picker$$1.$root.find( '.' + settings.klass.selectYear ).on( 'change', function() {
1927
+ picker.$root.find( '.' + settings.klass.selectYear ).on( 'change', function() {
1962
1928
  var value = this.value;
1963
1929
  if ( value ) {
1964
- picker$$1.set( 'highlight', [ value, picker$$1.get( 'view' ).month, picker$$1.get( 'highlight' ).date ] );
1965
- picker$$1.$root.find( '.' + settings.klass.selectYear ).trigger( 'focus' );
1930
+ picker.set( 'highlight', [ value, picker.get( 'view' ).month, picker.get( 'highlight' ).date ] );
1931
+ picker.$root.find( '.' + settings.klass.selectYear ).trigger( 'focus' );
1966
1932
  }
1967
1933
  });
1968
1934
  }, 1 ).
@@ -1971,10 +1937,10 @@
1971
1937
  if ( calendar.disabled( calendar.get('now') ) ) {
1972
1938
  includeToday = ':not(.' + settings.klass.buttonToday + ')';
1973
1939
  }
1974
- picker$$1.$root.find( 'button' + includeToday + ', select' ).attr( 'disabled', false );
1940
+ picker.$root.find( 'button' + includeToday + ', select' ).attr( 'disabled', false );
1975
1941
  }, 1 ).
1976
1942
  on( 'close', function() {
1977
- picker$$1.$root.find( 'button, select' ).attr( 'disabled', true );
1943
+ picker.$root.find( 'button, select' ).attr( 'disabled', true );
1978
1944
  }, 1 );
1979
1945
 
1980
1946
  } //DatePicker
@@ -3387,7 +3353,7 @@
3387
3353
 
3388
3354
  PickDate._jQueryInterface = function _jQueryInterface(config) {
3389
3355
  return this.each(function () {
3390
- var _config = _objectSpread({}, PickDate.Default, $$$1(this).data(), typeof config === 'object' && config);
3356
+ var _config = _objectSpread({}, Default, $$$1(this).data(), typeof config === 'object' && config ? config : {});
3391
3357
 
3392
3358
  var data = $$$1(this).data(DATA_KEY);
3393
3359
 
@@ -3455,7 +3421,7 @@
3455
3421
 
3456
3422
  /*
3457
3423
  * Tab indicator animation
3458
- * Requires Bootstrap's (v4.1.0) `tab.js`
3424
+ * Requires Bootstrap's (v4.1.X) `tab.js`
3459
3425
  */
3460
3426
 
3461
3427
  var TabSwitch = function ($$$1) {
@@ -3497,7 +3463,6 @@
3497
3463
  var navLeft = $$$1(this._nav).offset().left;
3498
3464
  var navScrollLeft = $$$1(this._nav).scrollLeft();
3499
3465
  var navWidth = $$$1(this._nav).outerWidth();
3500
- var supportsTransition = Util.supportsTransitionEnd();
3501
3466
 
3502
3467
  if (!this._navindicator) {
3503
3468
  this._createIndicator(navLeft, navScrollLeft, navWidth, relatedTarget);
@@ -3511,11 +3476,7 @@
3511
3476
  var elWidth = $$$1(element).outerWidth();
3512
3477
  $$$1(this._navindicator).addClass(ClassName.SHOW);
3513
3478
  Util.reflow(this._navindicator);
3514
-
3515
- if (supportsTransition) {
3516
- $$$1(this._nav).addClass(ClassName.ANIMATE);
3517
- }
3518
-
3479
+ $$$1(this._nav).addClass(ClassName.ANIMATE);
3519
3480
  $$$1(this._navindicator).css({
3520
3481
  left: elLeft + navScrollLeft - navLeft,
3521
3482
  right: navWidth - (elLeft + navScrollLeft - navLeft + elWidth)
@@ -3526,11 +3487,6 @@
3526
3487
  $$$1(_this._navindicator).removeClass(ClassName.SHOW);
3527
3488
  };
3528
3489
 
3529
- if (!supportsTransition) {
3530
- complete();
3531
- return;
3532
- }
3533
-
3534
3490
  var transitionDuration = Util.getTransitionDurationFromElement(this._navindicator);
3535
3491
  $$$1(this._navindicator).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
3536
3492
  };
@@ -1,16 +1,16 @@
1
1
  /*!
2
- * Daemonite Material v4.1.0 (http://daemonite.github.io/material/)
2
+ * Daemonite Material v4.1.1 (http://daemonite.github.io/material/)
3
3
  * Copyright 2011-2018 Daemon Pty Ltd
4
4
  * Licensed under MIT (https://github.com/Daemonite/material/blob/master/LICENSE)
5
5
  */
6
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.material={},e.jQuery)}(this,function(e,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;var n,t,o,r,a,s,c,l,d,u,h,f,p,m,g,y,v,b,_,k,S=(r="show-predecessor",a="hide"+(t=".bs.collapse"),s=(o="show")+t,c=".expansion-panel",l=".expansion-panel .collapse",void(n=i)(document).on(""+a,l,function(){var e=n(this).closest(c);e.removeClass(o);var t=e.prev(c);t.length&&t.removeClass(r)}).on(""+s,l,function(){var e=n(this).closest(c);e.addClass(o);var t=e.prev(c);t.length&&t.addClass(r)})),w=(h="."+(u="md.floatinglabel"),f="floatinglabel",p=(d=i).fn[f],m="is-focused",g="has-value",y="change"+h,v="focusin"+h,b="focusout"+h,_={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .form-control"},k=function(){function i(e){this._element=e,this._parent=d(e).closest(_.DATA_PARENT)[0]}var e=i.prototype;return e.change=function(){d(this._element).val()||d(this._element).is("select")&&""!==d("option:first-child",d(this._element)).html().replace(" ","")?d(this._parent).addClass(g):d(this._parent).removeClass(g)},e.focusin=function(){d(this._parent).addClass(m)},e.focusout=function(){d(this._parent).removeClass(m)},i._jQueryInterface=function(n){return this.each(function(){var e=n||"change",t=d(this).data(u);if(t||(t=new i(this),d(this).data(u,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new Error('No method named "'+e+'"');t[e]()}})},i}(),d(document).on(y+" "+v+" "+b,_.DATA_TOGGLE,function(e){k._jQueryInterface.call(d(this),e.type)}),d.fn[f]=k._jQueryInterface,d.fn[f].Constructor=k,d.fn[f].noConflict=function(){return d.fn[f]=p,k._jQueryInterface},k);function D(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.forEach(function(e){var t,n,i;t=o,i=r[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i})}return o}var O,I,E,T,x,N,M,A,P,$,j,F,R,W=function(i){var t=!1;function e(e){var t=this,n=!1;return i(this).one(c.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||c.triggerTransitionEnd(t)},e),this}var c={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return 0<i(document).find(t).length?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=i(e).css("transition-duration");return t?(t=t.split(",")[0],1e3*parseFloat(t)):0},getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},isElement:function(e){return(e[0]||e).nodeType},reflow:function(e){return e.offsetHeight},supportsTransitionEnd:function(){return Boolean(t)},triggerTransitionEnd:function(e){i(e).trigger(t.end)},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=t[i],a=r&&c.isElement(r)?"element":(s=r,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}var s}};return t=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},i.fn.emulateTransitionEnd=e,c.supportsTransitionEnd()&&(i.event.special[c.TRANSITION_END]={bindType:t.end,delegateType:t.end,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),c}(i),Y=(E="."+(I="md.navdrawer"),T="navdrawer",x=(O=i).fn[T],N="navdrawer-backdrop",M="navdrawer-open",P={breakpoint:"",keyboard:!0,show:!0,type:"default"},$={keyboard:"boolean",show:"boolean",type:"string"},j={CLICK_DATA_API:"click"+E+".data-api",CLICK_DISMISS:"click.dismiss"+E,FOCUSIN:"focusin"+E,HIDDEN:"hidden"+E,HIDE:"hide"+E,KEYDOWN_DISMISS:"keydown.dismiss"+E,MOUSEDOWN_DISMISS:"mousedown.dismiss"+E,MOUSEUP_DISMISS:"mouseup.dismiss"+E,SHOW:(A="show")+E,SHOWN:"shown"+E},F={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},R=function(){function o(e,t){this._backdrop=null,this._config=this._getConfig(t),this._content=O(e).find(F.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1,this._typeBreakpoint=""===this._config.breakpoint?"":"-"+this._config.breakpoint}var e,t,n,i=o.prototype;return i.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=O.Event(j.HIDE);if(O(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=W.supportsTransitionEnd();if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),O(document).off(j.FOCUSIN),O(this._element).removeClass(A),O(this._element).off(j.CLICK_DISMISS),O(this._content).off(j.MOUSEDOWN_DISMISS),i){var o=W.getTransitionDurationFromElement(this._content);O(this._content).one(W.TRANSITION_END,function(e){return t._hideNavdrawer(e)}).emulateTransitionEnd(o)}else this._hideNavdrawer();this._showBackdrop()}}},i.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){W.supportsTransitionEnd()&&(this._isTransitioning=!0);var n=O.Event(j.SHOW,{relatedTarget:e});O(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,O(document.body).addClass(M+"-"+this._config.type+this._typeBreakpoint),this._setEscapeEvent(),O(this._element).addClass(T+"-"+this._config.type+this._typeBreakpoint),O(this._element).on(j.CLICK_DISMISS,F.DATA_DISMISS,function(e){return t.hide(e)}),O(this._content).on(j.MOUSEDOWN_DISMISS,function(){O(t._element).one(j.MOUSEUP_DISMISS,function(e){O(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))}},i.toggle=function(e){return this._isShown?this.hide():this.show(e)},i._enforceFocus=function(){var t=this;O(document).off(j.FOCUSIN).on(j.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===O(t._element).has(e.target).length&&t._element.focus()})},i._getConfig=function(e){return e=C({},P,e),W.typeCheckConfig(T,e,$),e},i._hideNavdrawer=function(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,O(document.body).removeClass(M+"-"+this._config.type+this._typeBreakpoint),O(this._element).trigger(j.HIDDEN)},i._removeBackdrop=function(){this._backdrop&&(O(this._backdrop).remove(),this._backdrop=null)},i._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?O(this._element).on(j.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||O(this._element).off(j.KEYDOWN_DISMISS)},i._showBackdrop=function(){var t=this,e=W.supportsTransitionEnd();this._isShown?(this._backdrop=document.createElement("div"),O(this._backdrop).addClass(N).addClass(N+"-"+this._config.type+this._typeBreakpoint).appendTo(document.body),O(this._element).on(j.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t.hide()}),e&&W.reflow(this._backdrop),O(this._backdrop).addClass(A)):!this._isShown&&this._backdrop&&(O(this._backdrop).removeClass(A),this._removeBackdrop())},i._showElement=function(e){var t=this,n=W.supportsTransitionEnd();this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),n&&W.reflow(this._element),O(this._element).addClass(A),this._enforceFocus();var i=O.Event(j.SHOWN,{relatedTarget:e}),o=function(){t._element.focus(),t._isTransitioning=!1,O(t._element).trigger(i)};if(n){var r=W.getTransitionDurationFromElement(this._content);O(this._content).one(W.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},o._jQueryInterface=function(n,i){return this.each(function(){var e=C({},o.Default,O(this).data(),"object"==typeof n&&n),t=O(this).data(I);if(t||(t=new o(this,e),O(this).data(I,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})},e=o,n=[{key:"Default",get:function(){return P}}],(t=null)&&D(e.prototype,t),n&&D(e,n),o}(),O(document).on(j.CLICK_DATA_API,F.DATA_TOGGLE,function(e){var t,n=this,i=W.getSelectorFromElement(this);i&&(t=O(i)[0]);var o=O(t).data(I)?"toggle":C({},O(t).data(),O(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var r=O(t).one(j.SHOW,function(e){e.isDefaultPrevented()||r.one(j.HIDDEN,function(){O(n).is(":visible")&&n.focus()})});R._jQueryInterface.call(O(t),o,this)}),O.fn[T]=R._jQueryInterface,O.fn[T].Constructor=R,O.fn[T].noConflict=function(){return O.fn[T]=x,R._jQueryInterface},R);function U(e,t){return e(t={exports:{}},t.exports),t.exports}var H,Q,B,L,J,K,G,q,z,V,X,Z,ee,te,ne,ie,oe,re,ae,se,ce,le,de,ue,he,fe,pe,me,ge,ye,ve=U(function(e,t){
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.material={},e.jQuery)}(this,function(e,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;var n,t,o,r,a,s,c,l,d,u,h,f,p,m,g,y,v,b,_,k,S=(r="show-predecessor",a="hide"+(t=".bs.collapse"),s=(o="show")+t,c=".expansion-panel",l=".expansion-panel .collapse",void(n=i)(document).on(""+a,l,function(){var e=n(this).closest(c);e.removeClass(o);var t=e.prev(c);t.length&&t.removeClass(r)}).on(""+s,l,function(){var e=n(this).closest(c);e.addClass(o);var t=e.prev(c);t.length&&t.addClass(r)})),w=(h="."+(u="md.floatinglabel"),f="floatinglabel",p=(d=i).fn[f],m="is-focused",g="has-value",y="change"+h,v="focusin"+h,b="focusout"+h,_={DATA_PARENT:".floating-label",DATA_TOGGLE:".floating-label .custom-select, .floating-label .form-control"},k=function(){function i(e){this._element=e,this._parent=d(e).closest(_.DATA_PARENT)[0]}var e=i.prototype;return e.change=function(){d(this._element).val()||d(this._element).is("select")&&""!==d("option:first-child",d(this._element)).html().replace(" ","")?d(this._parent).addClass(g):d(this._parent).removeClass(g)},e.focusin=function(){d(this._parent).addClass(m)},e.focusout=function(){d(this._parent).removeClass(m)},i._jQueryInterface=function(n){return this.each(function(){var e=n||"change",t=d(this).data(u);if(t||(t=new i(this),d(this).data(u,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new Error('No method named "'+e+'"');t[e]()}})},i}(),d(document).on(y+" "+v+" "+b,_.DATA_TOGGLE,function(e){k._jQueryInterface.call(d(this),e.type)}),d.fn[f]=k._jQueryInterface,d.fn[f].Constructor=k,d.fn[f].noConflict=function(){return d.fn[f]=p,k._jQueryInterface},k);function D(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.forEach(function(e){var t,n,i;t=o,i=r[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i})}return o}var O,I,E,x,T,N,M,A,P,$,j,F,R,W=function(i){var t="transitionend";function e(e){var t=this,n=!1;return i(this).one(c.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||c.triggerTransitionEnd(t)},e),this}var c={TRANSITION_END:"mdTransitionEnd",getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return 0<i(document).find(t).length?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=i(e).css("transition-duration");return t?(t=t.split(",")[0],1e3*parseFloat(t)):0},getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},isElement:function(e){return(e[0]||e).nodeType},reflow:function(e){return e.offsetHeight},supportsTransitionEnd:function(){return Boolean(t)},triggerTransitionEnd:function(e){i(e).trigger(t)},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=t[i],a=r&&c.isElement(r)?"element":(s=r,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}var s}};return i.fn.emulateTransitionEnd=e,i.event.special[c.TRANSITION_END]={bindType:t,delegateType:t,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},c}(i),Y=(E="."+(I="md.navdrawer"),x="navdrawer",T=(O=i).fn[x],N="navdrawer-backdrop",M="navdrawer-open",P={breakpoint:"",keyboard:!0,show:!0,type:"default"},$={keyboard:"boolean",show:"boolean",type:"string"},j={CLICK_DATA_API:"click"+E+".data-api",CLICK_DISMISS:"click.dismiss"+E,FOCUSIN:"focusin"+E,HIDDEN:"hidden"+E,HIDE:"hide"+E,KEYDOWN_DISMISS:"keydown.dismiss"+E,MOUSEDOWN_DISMISS:"mousedown.dismiss"+E,MOUSEUP_DISMISS:"mouseup.dismiss"+E,SHOW:(A="show")+E,SHOWN:"shown"+E},F={CONTENT:".navdrawer-content",DATA_DISMISS:'[data-dismiss="navdrawer"]',DATA_TOGGLE:'[data-toggle="navdrawer"]'},R=function(){function o(e,t){this._backdrop=null,this._config=this._getConfig(t),this._content=O(e).find(F.CONTENT)[0],this._element=e,this._ignoreBackdropClick=!1,this._isShown=!1,this._typeBreakpoint=""===this._config.breakpoint?"":"-"+this._config.breakpoint}var e,t,n,i=o.prototype;return i.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=O.Event(j.HIDE);if(O(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1,this._isTransitioning=!0,this._setEscapeEvent(),O(document).off(j.FOCUSIN),O(document.body).removeClass(M+"-"+this._config.type+this._typeBreakpoint),O(this._element).removeClass(A),O(this._element).off(j.CLICK_DISMISS),O(this._content).off(j.MOUSEDOWN_DISMISS);var i=W.getTransitionDurationFromElement(this._content);O(this._content).one(W.TRANSITION_END,function(e){return t._hideNavdrawer(e)}).emulateTransitionEnd(i),this._showBackdrop()}}},i.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){this._isTransitioning=!0;var n=O.Event(j.SHOW,{relatedTarget:e});O(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._setEscapeEvent(),O(this._element).addClass(x+"-"+this._config.type+this._typeBreakpoint),O(this._element).on(j.CLICK_DISMISS,F.DATA_DISMISS,function(e){return t.hide(e)}),O(this._content).on(j.MOUSEDOWN_DISMISS,function(){O(t._element).one(j.MOUSEUP_DISMISS,function(e){O(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(),this._showElement(e))}},i.toggle=function(e){return this._isShown?this.hide():this.show(e)},i._enforceFocus=function(){var t=this;O(document).off(j.FOCUSIN).on(j.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===O(t._element).has(e.target).length&&t._element.focus()})},i._getConfig=function(e){return e=C({},P,e),W.typeCheckConfig(x,e,$),e},i._hideNavdrawer=function(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,O(this._element).trigger(j.HIDDEN)},i._removeBackdrop=function(){this._backdrop&&(O(this._backdrop).remove(),this._backdrop=null)},i._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?O(this._element).on(j.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||O(this._element).off(j.KEYDOWN_DISMISS)},i._showBackdrop=function(){var t=this;this._isShown?(this._backdrop=document.createElement("div"),O(this._backdrop).addClass(N).addClass(N+"-"+this._config.type+this._typeBreakpoint).appendTo(document.body),O(this._element).on(j.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&t.hide()}),W.reflow(this._backdrop),O(this._backdrop).addClass(A)):!this._isShown&&this._backdrop&&(O(this._backdrop).removeClass(A),this._removeBackdrop())},i._showElement=function(e){var t=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),W.reflow(this._element),O(document.body).addClass(M+"-"+this._config.type+this._typeBreakpoint),O(this._element).addClass(A),this._enforceFocus();var n=O.Event(j.SHOWN,{relatedTarget:e}),i=W.getTransitionDurationFromElement(this._content);O(this._content).one(W.TRANSITION_END,function(){t._element.focus(),t._isTransitioning=!1,O(t._element).trigger(n)}).emulateTransitionEnd(i)},o._jQueryInterface=function(n,i){return this.each(function(){var e=C({},P,O(this).data(),"object"==typeof n&&n?n:{}),t=O(this).data(I);if(t||(t=new o(this,e),O(this).data(I,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})},e=o,n=[{key:"Default",get:function(){return P}}],(t=null)&&D(e.prototype,t),n&&D(e,n),o}(),O(document).on(j.CLICK_DATA_API,F.DATA_TOGGLE,function(e){var t,n=this,i=W.getSelectorFromElement(this);i&&(t=O(i)[0]);var o=O(t).data(I)?"toggle":C({},O(t).data(),O(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var r=O(t).one(j.SHOW,function(e){e.isDefaultPrevented()||r.one(j.HIDDEN,function(){O(n).is(":visible")&&n.focus()})});R._jQueryInterface.call(O(t),o,this)}),O.fn[x]=R._jQueryInterface,O.fn[x].Constructor=R,O.fn[x].noConflict=function(){return O.fn[x]=T,R._jQueryInterface},R);function H(e,t){return e(t={exports:{}},t.exports),t.exports}var U,B,Q,L,J,K,G,q,z,V,X,Z,ee,te,ne,ie,oe,re,ae,se,ce,le,de,ue,he,fe,pe,me,ge,ye,ve=H(function(e,t){
7
7
  /*!
8
8
  * pickadate.js v3.5.6, 2015/04/20
9
9
  * By Amsul, http://amsul.ca
10
10
  * Hosted on http://amsul.github.io/pickadate.js
11
11
  * Licensed under MIT
12
- */var n;n=function(m){var i=m(window),g=m(document),y=m(document.documentElement),v=null!=document.documentElement.style.transition;function b(i,e,t,n){if(!i)return b;var o=!1,s={id:i.id||"P"+Math.abs(~~(Math.random()*new Date))},c=t?m.extend(!0,{},t.defaults,n):n||{},r=m.extend({},b.klasses(),c.klass),l=m(i),a=function(){return this.start()},d=a.prototype={constructor:a,$node:l,start:function(){return s&&s.start?d:(s.methods={},s.start=!0,s.open=!1,s.type=i.type,i.autofocus=i==S(),i.readOnly=!c.editable,i.id=i.id||s.id,"text"!=i.type&&(i.type="text"),d.component=new t(d,c),d.$root=m('<div class="'+r.picker+'" id="'+i.id+'_root" />'),k(d.$root[0],"hidden",!0),d.$holder=m(u()).appendTo(d.$root),h(),c.formatSubmit&&function(){var e;!0===c.hiddenName?(e=i.name,i.name=""):e=(e=["string"==typeof c.hiddenPrefix?c.hiddenPrefix:"","string"==typeof c.hiddenSuffix?c.hiddenSuffix:"_submit"])[0]+i.name+e[1];d._hidden=m('<input type=hidden name="'+e+'"'+(l.data("value")||i.value?' value="'+d.get("select",c.formatSubmit)+'"':"")+">")[0],l.on("change."+s.id,function(){d._hidden.value=i.value?d.get("select",c.formatSubmit):""})}(),function(){l.data(e,d).addClass(r.input).val(l.data("value")?d.get("select",c.format):i.value),c.editable||l.on("focus."+s.id+" click."+s.id,function(e){e.preventDefault(),d.open()}).on("keydown."+s.id,p);k(i,{haspopup:!0,expanded:!1,readonly:!1,owns:i.id+"_root"})}(),c.containerHidden?m(c.containerHidden).append(d._hidden):l.after(d._hidden),c.container?m(c.container).append(d.$root):l.after(d.$root),d.on({start:d.component.onStart,render:d.component.onRender,stop:d.component.onStop,open:d.component.onOpen,close:d.component.onClose,set:d.component.onSet}).on({start:c.onStart,render:c.onRender,stop:c.onStop,open:c.onOpen,close:c.onClose,set:c.onSet}),o=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(d.$holder[0]),i.autofocus&&d.open(),d.trigger("start").trigger("render"))},render:function(e){return e?(d.$holder=m(u()),h(),d.$root.html(d.$holder)):d.$root.find("."+r.box).html(d.component.nodes(s.open)),d.trigger("render")},stop:function(){return s.start&&(d.close(),d._hidden&&d._hidden.parentNode.removeChild(d._hidden),d.$root.remove(),l.removeClass(r.input).removeData(e),setTimeout(function(){l.off("."+s.id)},0),i.type=s.type,i.readOnly=!1,d.trigger("stop"),s.methods={},s.start=!1),d},open:function(e){return s.open?d:(l.addClass(r.active),k(i,"expanded",!0),setTimeout(function(){d.$root.addClass(r.opened),k(d.$root[0],"hidden",!1)},0),!1!==e&&(s.open=!0,o&&y.css("overflow","hidden").css("padding-right","+="+_()),o&&v?d.$holder.find("."+r.frame).one("transitionend",function(){d.$holder[0].focus()}):d.$holder[0].focus(),g.on("click."+s.id+" focusin."+s.id,function(e){var t=e.target;t!=i&&t!=document&&3!=e.which&&d.close(t===d.$holder[0])}).on("keydown."+s.id,function(e){var t=e.keyCode,n=d.component.key[t],i=e.target;27==t?d.close(!0):i!=d.$holder[0]||!n&&13!=t?m.contains(d.$root[0],i)&&13==t&&(e.preventDefault(),i.click()):(e.preventDefault(),n?b._.trigger(d.component.key.go,d,[b._.trigger(n)]):d.$root.find("."+r.highlighted).hasClass(r.disabled)||(d.set("select",d.component.item.highlight),c.closeOnSelect&&d.close(!0)))})),d.trigger("open"))},close:function(e){return e&&(c.editable?i.focus():(d.$holder.off("focus.toOpen").focus(),setTimeout(function(){d.$holder.on("focus.toOpen",f)},0))),l.removeClass(r.active),k(i,"expanded",!1),setTimeout(function(){d.$root.removeClass(r.opened+" "+r.focused),k(d.$root[0],"hidden",!0)},0),s.open?(s.open=!1,o&&y.css("overflow","").css("padding-right","-="+_()),g.off("."+s.id),d.trigger("close")):d},clear:function(e){return d.set("clear",null,e)},set:function(e,t,n){var i,o,r=m.isPlainObject(e),a=r?e:{};if(n=r&&m.isPlainObject(t)?t:n||{},e){for(i in r||(a[e]=t),a)o=a[i],i in d.component.item&&(void 0===o&&(o=null),d.component.set(i,o,n)),"select"!=i&&"clear"!=i||l.val("clear"==i?"":d.get(i,c.format)).trigger("change");d.render()}return n.muted?d:d.trigger("set",a)},get:function(e,t){if(null!=s[e=e||"value"])return s[e];if("valueSubmit"==e){if(d._hidden)return d._hidden.value;e="value"}if("value"==e)return i.value;if(e in d.component.item){if("string"==typeof t){var n=d.component.get(e);return n?b._.trigger(d.component.formats.toString,d.component,[t,n]):""}return d.component.get(e)}},on:function(e,t,n){var i,o,r=m.isPlainObject(e),a=r?e:{};if(e)for(i in r||(a[e]=t),a)o=a[i],n&&(i="_"+i),s.methods[i]=s.methods[i]||[],s.methods[i].push(o);return d},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in s.methods&&delete s.methods[t];return d},trigger:function(e,n){var t=function(e){var t=s.methods[e];t&&t.map(function(e){b._.trigger(e,d,[n])})};return t("_"+e),t(e),d}};function u(){return b._.node("div",b._.node("div",b._.node("div",b._.node("div",d.component.nodes(s.open),r.box),r.wrap),r.frame),r.holder,'tabindex="-1"')}function h(){d.$holder.on({keydown:p,"focus.toOpen":f,blur:function(){l.removeClass(r.target)},focusin:function(e){d.$root.removeClass(r.focused),e.stopPropagation()},"mousedown click":function(e){var t=e.target;t!=d.$holder[0]&&(e.stopPropagation(),"mousedown"!=e.type||m(t).is("input, select, textarea, button, option")||(e.preventDefault(),d.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=m(this),t=e.data(),n=e.hasClass(r.navDisabled)||e.hasClass(r.disabled),i=S();i=i&&(i.type||i.href),(n||i&&!m.contains(d.$root[0],i))&&d.$holder[0].focus(),!n&&t.nav?d.set("highlight",d.component.item.highlight,{nav:t.nav}):!n&&"pick"in t?(d.set("select",t.pick),c.closeOnSelect&&d.close(!0)):t.clear?(d.clear(),c.closeOnClear&&d.close(!0)):t.close&&d.close(!0)})}function f(e){e.stopPropagation(),l.addClass(r.target),d.$root.addClass(r.focused),d.open()}function p(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return d.close(!0),!1;(32==t||n||!s.open&&d.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?d.clear().close():d.open())}return new a}function _(){if(y.height()<=i.height())return 0;var e=m('<div style="visibility:hidden;width:100px" />').appendTo("body"),t=e[0].offsetWidth;e.css("overflow","scroll");var n=m('<div style="width:100%" />').appendTo(e)[0].offsetWidth;return e.remove(),t-n}function k(e,t,n){if(m.isPlainObject(t))for(var i in t)o(e,i,t[i]);else o(e,t,n)}function o(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function S(){try{return document.activeElement}catch(e){}}return b.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},b._={group:function(e){for(var t,n="",i=b._.trigger(e.min,e);i<=b._.trigger(e.max,e,[i]);i+=e.i)t=b._.trigger(e.item,e,[i]),n+=b._.node(e.node,t[0],t[1],t[2]);return n},node:function(e,t,n,i){return t?"<"+e+(n=n?' class="'+n+'"':"")+(i=i?" "+i:"")+">"+(t=m.isArray(t)?t.join(""):t)+"</"+e+">":""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return-1<{}.toString.call(e).indexOf("Date")&&this.isInteger(e.getDate())},isInteger:function(e){return-1<{}.toString.call(e).indexOf("Number")&&e%1==0},ariaAttr:function(e,t){m.isPlainObject(e)||(e={attribute:t});for(var n in t="",e){var i=("role"==n?"":"aria-")+n,o=e[n];t+=null==o?"":i+'="'+e[n]+'"'}return t}},b.extend=function(i,o){m.fn[i]=function(e,t){var n=this.data(i);return"picker"==e?n:n&&"string"==typeof e?b._.trigger(n[e],n,[t]):this.each(function(){m(this).data(i)||new b(this,i,o,e)})},m.fn[i].defaults=o.defaults},b},e.exports=n(i)}),be=(U(function(e,t){
12
+ */var n;n=function(m){var i=m(window),g=m(document),y=m(document.documentElement),v=null!=document.documentElement.style.transition;function b(i,e,t,n){if(!i)return b;var o=!1,s={id:i.id||"P"+Math.abs(~~(Math.random()*new Date))},c=t?m.extend(!0,{},t.defaults,n):n||{},r=m.extend({},b.klasses(),c.klass),l=m(i),a=function(){return this.start()},d=a.prototype={constructor:a,$node:l,start:function(){return s&&s.start?d:(s.methods={},s.start=!0,s.open=!1,s.type=i.type,i.autofocus=i==S(),i.readOnly=!c.editable,i.id=i.id||s.id,"text"!=i.type&&(i.type="text"),d.component=new t(d,c),d.$root=m('<div class="'+r.picker+'" id="'+i.id+'_root" />'),k(d.$root[0],"hidden",!0),d.$holder=m(u()).appendTo(d.$root),h(),c.formatSubmit&&function(){var e;!0===c.hiddenName?(e=i.name,i.name=""):e=(e=["string"==typeof c.hiddenPrefix?c.hiddenPrefix:"","string"==typeof c.hiddenSuffix?c.hiddenSuffix:"_submit"])[0]+i.name+e[1];d._hidden=m('<input type=hidden name="'+e+'"'+(l.data("value")||i.value?' value="'+d.get("select",c.formatSubmit)+'"':"")+">")[0],l.on("change."+s.id,function(){d._hidden.value=i.value?d.get("select",c.formatSubmit):""})}(),function(){l.data(e,d).addClass(r.input).val(l.data("value")?d.get("select",c.format):i.value),c.editable||l.on("focus."+s.id+" click."+s.id,function(e){e.preventDefault(),d.open()}).on("keydown."+s.id,p);k(i,{haspopup:!0,expanded:!1,readonly:!1,owns:i.id+"_root"})}(),c.containerHidden?m(c.containerHidden).append(d._hidden):l.after(d._hidden),c.container?m(c.container).append(d.$root):l.after(d.$root),d.on({start:d.component.onStart,render:d.component.onRender,stop:d.component.onStop,open:d.component.onOpen,close:d.component.onClose,set:d.component.onSet}).on({start:c.onStart,render:c.onRender,stop:c.onStop,open:c.onOpen,close:c.onClose,set:c.onSet}),o=function(e){var t,n="position";e.currentStyle?t=e.currentStyle[n]:window.getComputedStyle&&(t=getComputedStyle(e)[n]);return"fixed"==t}(d.$holder[0]),i.autofocus&&d.open(),d.trigger("start").trigger("render"))},render:function(e){return e?(d.$holder=m(u()),h(),d.$root.html(d.$holder)):d.$root.find("."+r.box).html(d.component.nodes(s.open)),d.trigger("render")},stop:function(){return s.start&&(d.close(),d._hidden&&d._hidden.parentNode.removeChild(d._hidden),d.$root.remove(),l.removeClass(r.input).removeData(e),setTimeout(function(){l.off("."+s.id)},0),i.type=s.type,i.readOnly=!1,d.trigger("stop"),s.methods={},s.start=!1),d},open:function(e){return s.open?d:(l.addClass(r.active),k(i,"expanded",!0),setTimeout(function(){d.$root.addClass(r.opened),k(d.$root[0],"hidden",!1)},0),!1!==e&&(s.open=!0,o&&y.css("overflow","hidden").css("padding-right","+="+_()),o&&v?d.$holder.find("."+r.frame).one("transitionend",function(){d.$holder[0].focus()}):d.$holder[0].focus(),g.on("click."+s.id+" focusin."+s.id,function(e){var t=e.target;t!=i&&t!=document&&3!=e.which&&d.close(t===d.$holder[0])}).on("keydown."+s.id,function(e){var t=e.keyCode,n=d.component.key[t],i=e.target;27==t?d.close(!0):i!=d.$holder[0]||!n&&13!=t?m.contains(d.$root[0],i)&&13==t&&(e.preventDefault(),i.click()):(e.preventDefault(),n?b._.trigger(d.component.key.go,d,[b._.trigger(n)]):d.$root.find("."+r.highlighted).hasClass(r.disabled)||(d.set("select",d.component.item.highlight),c.closeOnSelect&&d.close(!0)))})),d.trigger("open"))},close:function(e){return e&&(c.editable?i.focus():(d.$holder.off("focus.toOpen").focus(),setTimeout(function(){d.$holder.on("focus.toOpen",f)},0))),l.removeClass(r.active),k(i,"expanded",!1),setTimeout(function(){d.$root.removeClass(r.opened+" "+r.focused),k(d.$root[0],"hidden",!0)},0),s.open?(s.open=!1,o&&y.css("overflow","").css("padding-right","-="+_()),g.off("."+s.id),d.trigger("close")):d},clear:function(e){return d.set("clear",null,e)},set:function(e,t,n){var i,o,r=m.isPlainObject(e),a=r?e:{};if(n=r&&m.isPlainObject(t)?t:n||{},e){for(i in r||(a[e]=t),a)o=a[i],i in d.component.item&&(void 0===o&&(o=null),d.component.set(i,o,n)),"select"!=i&&"clear"!=i||l.val("clear"==i?"":d.get(i,c.format)).trigger("change");d.render()}return n.muted?d:d.trigger("set",a)},get:function(e,t){if(null!=s[e=e||"value"])return s[e];if("valueSubmit"==e){if(d._hidden)return d._hidden.value;e="value"}if("value"==e)return i.value;if(e in d.component.item){if("string"==typeof t){var n=d.component.get(e);return n?b._.trigger(d.component.formats.toString,d.component,[t,n]):""}return d.component.get(e)}},on:function(e,t,n){var i,o,r=m.isPlainObject(e),a=r?e:{};if(e)for(i in r||(a[e]=t),a)o=a[i],n&&(i="_"+i),s.methods[i]=s.methods[i]||[],s.methods[i].push(o);return d},off:function(){var e,t,n=arguments;for(e=0,namesCount=n.length;e<namesCount;e+=1)(t=n[e])in s.methods&&delete s.methods[t];return d},trigger:function(e,n){var t=function(e){var t=s.methods[e];t&&t.map(function(e){b._.trigger(e,d,[n])})};return t("_"+e),t(e),d}};function u(){return b._.node("div",b._.node("div",b._.node("div",b._.node("div",d.component.nodes(s.open),r.box),r.wrap),r.frame),r.holder,'tabindex="-1"')}function h(){d.$holder.on({keydown:p,"focus.toOpen":f,blur:function(){l.removeClass(r.target)},focusin:function(e){d.$root.removeClass(r.focused),e.stopPropagation()},"mousedown click":function(e){var t=e.target;t!=d.$holder[0]&&(e.stopPropagation(),"mousedown"!=e.type||m(t).is("input, select, textarea, button, option")||(e.preventDefault(),d.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var e=m(this),t=e.data(),n=e.hasClass(r.navDisabled)||e.hasClass(r.disabled),i=S();i=i&&(i.type||i.href),(n||i&&!m.contains(d.$root[0],i))&&d.$holder[0].focus(),!n&&t.nav?d.set("highlight",d.component.item.highlight,{nav:t.nav}):!n&&"pick"in t?(d.set("select",t.pick),c.closeOnSelect&&d.close(!0)):t.clear?(d.clear(),c.closeOnClear&&d.close(!0)):t.close&&d.close(!0)})}function f(e){e.stopPropagation(),l.addClass(r.target),d.$root.addClass(r.focused),d.open()}function p(e){var t=e.keyCode,n=/^(8|46)$/.test(t);if(27==t)return d.close(!0),!1;(32==t||n||!s.open&&d.component.key[t])&&(e.preventDefault(),e.stopPropagation(),n?d.clear().close():d.open())}return new a}function _(){if(y.height()<=i.height())return 0;var e=m('<div style="visibility:hidden;width:100px" />').appendTo("body"),t=e[0].offsetWidth;e.css("overflow","scroll");var n=m('<div style="width:100%" />').appendTo(e)[0].offsetWidth;return e.remove(),t-n}function k(e,t,n){if(m.isPlainObject(t))for(var i in t)o(e,i,t[i]);else o(e,t,n)}function o(e,t,n){e.setAttribute(("role"==t?"":"aria-")+t,n)}function S(){try{return document.activeElement}catch(e){}}return b.klasses=function(e){return{picker:e=e||"picker",opened:e+"--opened",focused:e+"--focused",input:e+"__input",active:e+"__input--active",target:e+"__input--target",holder:e+"__holder",frame:e+"__frame",wrap:e+"__wrap",box:e+"__box"}},b._={group:function(e){for(var t,n="",i=b._.trigger(e.min,e);i<=b._.trigger(e.max,e,[i]);i+=e.i)t=b._.trigger(e.item,e,[i]),n+=b._.node(e.node,t[0],t[1],t[2]);return n},node:function(e,t,n,i){return t?"<"+e+(n=n?' class="'+n+'"':"")+(i=i?" "+i:"")+">"+(t=m.isArray(t)?t.join(""):t)+"</"+e+">":""},lead:function(e){return(e<10?"0":"")+e},trigger:function(e,t,n){return"function"==typeof e?e.apply(t,n||[]):e},digits:function(e){return/\d/.test(e[1])?2:1},isDate:function(e){return-1<{}.toString.call(e).indexOf("Date")&&this.isInteger(e.getDate())},isInteger:function(e){return-1<{}.toString.call(e).indexOf("Number")&&e%1==0},ariaAttr:function(e,t){m.isPlainObject(e)||(e={attribute:t});for(var n in t="",e){var i=("role"==n?"":"aria-")+n,o=e[n];t+=null==o?"":i+'="'+e[n]+'"'}return t}},b.extend=function(i,o){m.fn[i]=function(e,t){var n=this.data(i);return"picker"==e?n:n&&"string"==typeof e?b._.trigger(n[e],n,[t]):this.each(function(){m(this).data(i)||new b(this,i,o,e)})},m.fn[i].defaults=o.defaults},b},e.exports=n(i)}),be=Object.freeze({default:ve,__moduleExports:ve}),_e=be&&ve||be,ke=(H(function(e,t){
13
13
  /*!
14
14
  * Date picker for pickadate.js v3.5.6
15
15
  * http://amsul.github.io/pickadate.js/date.htm
16
- */var n;n=function(e,p){var t,y=e._;function n(t,n){var e,i=this,o=t.$node[0],r=o.value,a=t.$node.data("value"),s=a||r,c=a?n.formatSubmit:n.format,l=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=n,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(n.disable||[]).slice(0),i.item.enable=-(!0===(e=i.item.disable)[0]?e.shift():-1),i.set("min",n.min).set("max",n.max).set("now"),s?i.set("select",s,{format:c,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},t.on("render",function(){t.$root.find("."+n.klass.selectMonth).on("change",function(){var e=this.value;e&&(t.set("highlight",[t.get("view").year,e,t.get("highlight").date]),t.$root.find("."+n.klass.selectMonth).trigger("focus"))}),t.$root.find("."+n.klass.selectYear).on("change",function(){var e=this.value;e&&(t.set("highlight",[e,t.get("view").month,t.get("highlight").date]),t.$root.find("."+n.klass.selectYear).trigger("focus"))})},1).on("open",function(){var e="";i.disabled(i.get("now"))&&(e=":not(."+n.klass.buttonToday+")"),t.$root.find("button"+e+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}n.prototype.set=function(t,n,i){var o=this,e=o.item;return null===n?("clear"==t&&(t="select"),e[t]=n):(e["enable"==t?"disable":"flip"==t?"enable":t]=o.queue[t].split(" ").map(function(e){return n=o[e](t,n,i)}).pop(),"select"==t?o.set("highlight",e.select,i):"highlight"==t?o.set("view",e.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&o.disabled(e.select)&&o.set("select",e.select,i),e.highlight&&o.disabled(e.highlight)&&o.set("highlight",e.highlight,i))),o},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,t,n){var i;return(t=void 0===t?e:t)==-1/0||t==1/0?i=t:p.isPlainObject(t)&&y.isInteger(t.pick)?t=t.obj:p.isArray(t)?(t=new Date(t[0],t[1],t[2]),t=y.isDate(t)?t:this.create().obj):t=y.isInteger(t)||y.isDate(t)?this.normalize(new Date(t),n):this.now(e,t,n),{year:i||t.getFullYear(),month:i||t.getMonth(),date:i||t.getDate(),day:i||t.getDay(),obj:i||t,pick:i||t.getTime()}},n.prototype.createRange=function(e,t){var n=this,i=function(e){return!0===e||p.isArray(e)||y.isDate(e)?n.create(e):e};return y.isInteger(e)||(e=i(e)),y.isInteger(t)||(t=i(t)),y.isInteger(e)&&p.isPlainObject(t)?e=[t.year,t.month,t.date+e]:y.isInteger(t)&&p.isPlainObject(e)&&(t=[e.year,e.month,e.date+t]),{from:i(e),to:i(t)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},n.prototype.navigate=function(e,t,n){var i,o,r,a,s=p.isArray(t),c=p.isPlainObject(t),l=this.item.view;if(s||c){for(c?(o=t.year,r=t.month,a=t.date):(o=+t[0],r=+t[1],a=+t[2]),n&&n.nav&&l&&l.month!==r&&(o=l.year,r=l.month),o=(i=new Date(o,r+(n&&n.nav?n.nav:0),1)).getFullYear(),r=i.getMonth();new Date(o,r,a).getMonth()!==r;)a-=1;t=[o,r,a]}return t},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):y.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,t){var i,o,r,a,s=this,c=n,l=t&&t.interval?t.interval:1,d=-1===s.item.enable,u=s.item.min,h=s.item.max,f=d&&s.item.disable.filter(function(e){if(p.isArray(e)){var t=s.create(e).pick;t<n.pick?i=!0:t>n.pick&&(o=!0)}return y.isInteger(e)}).length;if((!t||!t.nav&&!t.defaultValue)&&(!d&&s.disabled(n)||d&&s.disabled(n)&&(f||i||o)||!d&&(n.pick<=u.pick||n.pick>=h.pick)))for(d&&!f&&(!o&&0<l||!i&&l<0)&&(l*=-1);s.disabled(n)&&(1<Math.abs(l)&&(n.month<c.month||n.month>c.month)&&(n=c,l=0<l?1:-1),n.pick<=u.pick?(r=!0,l=1,n=s.create([u.year,u.month,u.date+(n.pick===u.pick?0:-1)])):n.pick>=h.pick&&(a=!0,l=-1,n=s.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!r||!a);)n=s.create([n.year,n.month,n.date+l]);return n},n.prototype.disabled=function(t){var n=this,e=n.item.disable.filter(function(e){return y.isInteger(e)?t.day===(n.settings.firstDay?e:e-1)%7:p.isArray(e)||y.isDate(e)?t.pick===n.create(e).pick:p.isPlainObject(e)?n.withinRange(e,t):void 0});return e=e.length&&!e.filter(function(e){return p.isArray(e)&&"inverted"==e[3]||p.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!e:e||t.pick<n.item.min.pick||t.pick>n.item.max.pick},n.prototype.parse=function(e,i,t){var o=this,r={};return i&&"string"==typeof i?(t&&t.format||((t=t||{}).format=o.settings.format),o.formats.toArray(t.format).map(function(e){var t=o.formats[e],n=t?y.trigger(t,o,[i,r]):e.replace(/^!/,"").length;t&&(r[e]=i.substr(0,n)),i=i.substr(n)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):i},n.prototype.formats=function(){function i(e,t,n){var i=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(i)+1),i.length}function n(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?y.digits(e):t.date},dd:function(e,t){return e?2:y.lead(t.date)},ddd:function(e,t){return e?n(e):this.settings.weekdaysShort[t.day]},dddd:function(e,t){return e?n(e):this.settings.weekdaysFull[t.day]},m:function(e,t){return e?y.digits(e):t.month+1},mm:function(e,t){return e?2:y.lead(t.month+1)},mmm:function(e,t){var n=this.settings.monthsShort;return e?i(e,n,t):n[t.month]},mmmm:function(e,t){var n=this.settings.monthsFull;return e?i(e,n,t):n[t.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return y.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.isDateExact=function(e,t){return y.isInteger(e)&&y.isInteger(t)||"boolean"==typeof e&&"boolean"==typeof t?e===t:(y.isDate(e)||p.isArray(e))&&(y.isDate(t)||p.isArray(t))?this.create(e).pick===this.create(t).pick:!(!p.isPlainObject(e)||!p.isPlainObject(t))&&(this.isDateExact(e.from,t.from)&&this.isDateExact(e.to,t.to))},n.prototype.isDateOverlap=function(e,t){var n=this.settings.firstDay?1:0;return y.isInteger(e)&&(y.isDate(t)||p.isArray(t))?(e=e%7+n)===this.create(t).day+1:y.isInteger(t)&&(y.isDate(e)||p.isArray(e))?(t=t%7+n)===this.create(e).day+1:!(!p.isPlainObject(e)||!p.isPlainObject(t))&&this.overlapRanges(e,t)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,t){var i=this,o=i.item.disable.slice(0);return"flip"==t?i.flipEnable():!1===t?(i.flipEnable(1),o=[]):!0===t?(i.flipEnable(-1),o=[]):t.map(function(e){for(var t,n=0;n<o.length;n+=1)if(i.isDateExact(e,o[n])){t=!0;break}t||(y.isInteger(e)||y.isDate(e)||p.isArray(e)||p.isPlainObject(e)&&e.from&&e.to)&&o.push(e)}),o},n.prototype.activate=function(e,t){var r=this,a=r.item.disable,s=a.length;return"flip"==t?r.flipEnable():!0===t?(r.flipEnable(1),a=[]):!1===t?(r.flipEnable(-1),a=[]):t.map(function(e){var t,n,i,o;for(i=0;i<s;i+=1){if(n=a[i],r.isDateExact(n,e)){t=a[i]=null,o=!0;break}if(r.isDateOverlap(n,e)){p.isPlainObject(e)?(e.inverted=!0,t=e):p.isArray(e)?(t=e)[3]||t.push("inverted"):y.isDate(e)&&(t=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(t)for(i=0;i<s;i+=1)if(r.isDateExact(a[i],e)){a[i]=null;break}if(o)for(i=0;i<s;i+=1)if(r.isDateOverlap(a[i],e)){a[i]=null;break}t&&a.push(t)}),a.filter(function(e){return null!=e})},n.prototype.nodes=function(c){var t,n,l=this,d=l.settings,e=l.item,a=e.now,s=e.select,u=e.highlight,h=e.view,f=e.disable,p=e.min,m=e.max,i=(t=(d.showWeekdaysFull?d.weekdaysFull:d.weekdaysShort).slice(0),n=d.weekdaysFull.slice(0),d.firstDay&&(t.push(t.shift()),n.push(n.shift())),y.node("thead",y.node("tr",y.group({min:0,max:6,i:1,node:"th",item:function(e){return[t[e],d.klass.weekdays,'scope=col title="'+n[e]+'"']}})))),o=function(e){return y.node("div"," ",d.klass["nav"+(e?"Next":"Prev")]+(e&&h.year>=m.year&&h.month>=m.month||!e&&h.year<=p.year&&h.month<=p.month?" "+d.klass.navDisabled:""),"data-nav="+(e||-1)+" "+y.ariaAttr({role:"button",controls:l.$node[0].id+"_table"})+' title="'+(e?d.labelMonthNext:d.labelMonthPrev)+'"')},r=function(){var t=d.showMonthsShort?d.monthsShort:d.monthsFull;return d.selectMonths?y.node("select",y.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(h.month==e?" selected":"")+(h.year==p.year&&e<p.month||h.year==m.year&&e>m.month?" disabled":"")]}}),d.klass.selectMonth,(c?"":"disabled")+" "+y.ariaAttr({controls:l.$node[0].id+"_table"})+' title="'+d.labelMonthSelect+'"'):y.node("div",t[h.month],d.klass.month)},g=function(){var t=h.year,e=!0===d.selectYears?5:~~(d.selectYears/2);if(e){var n=p.year,i=m.year,o=t-e,r=t+e;if(o<n&&(r+=n-o,o=n),i<r){var a=o-n,s=r-i;o-=s<a?s:a,r=i}return y.node("select",y.group({min:o,max:r,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),d.klass.selectYear,(c?"":"disabled")+" "+y.ariaAttr({controls:l.$node[0].id+"_table"})+' title="'+d.labelYearSelect+'"')}return y.node("div",t,d.klass.year)};return y.node("div",(d.selectYears?g()+r():r()+g())+o()+o(1),d.klass.header)+y.node("table",i+y.node("tbody",y.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=d.firstDay&&0===l.create([h.year,h.month,1]).day?-7:0;return[y.group({min:7*e-h.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=l.create([h.year,h.month,e+(d.firstDay?1:0)]);var t,n=s&&s.pick==e.pick,i=u&&u.pick==e.pick,o=f&&l.disabled(e)||e.pick<p.pick||e.pick>m.pick,r=y.trigger(l.formats.toString,l,[d.format,e]);return[y.node("div",e.date,(t=[d.klass.day],t.push(h.month==e.month?d.klass.infocus:d.klass.outfocus),a.pick==e.pick&&t.push(d.klass.now),n&&t.push(d.klass.selected),i&&t.push(d.klass.highlighted),o&&t.push(d.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+y.ariaAttr({role:"gridcell",label:r,selected:!(!n||l.$node.val()!==r)||null,activedescendant:!!i||null,disabled:!!o||null})),"",y.ariaAttr({role:"presentation"})]}})]}})),d.klass.table,'id="'+l.$node[0].id+'_table" '+y.ariaAttr({role:"grid",controls:l.$node[0].id,readonly:!0}))+y.node("div",y.node("button",d.today,d.klass.buttonToday,"type=button data-pick="+a.pick+(c&&!l.disabled(a)?"":" disabled")+" "+y.ariaAttr({controls:l.$node[0].id}))+y.node("button",d.clear,d.klass.buttonClear,"type=button data-clear=1"+(c?"":" disabled")+" "+y.ariaAttr({controls:l.$node[0].id}))+y.node("button",d.close,d.klass.buttonClose,"type=button data-close=true "+(c?"":" disabled")+" "+y.ariaAttr({controls:l.$node[0].id})),d.klass.footer)},n.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:(t=e.klasses().picker+"__")+"table",header:t+"header",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}},e.extend("pickadate",n)},e.exports=n(ve,i)}),Q="md.pickdate",B="pickdate",L=(H=i).fn[B],J={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"",containerHidden:"",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",hiddenName:!1,hiddenPrefix:"",hiddenSuffix:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",max:!1,min:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ok:"OK",onClose:function(){},onOpen:function(){},onRender:function(){},onSet:function(){},onStart:function(){},onStop:function(){},selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},K={cancel:"string",closeOnCancel:"boolean",closeOnSelect:"boolean",container:"string",containerHidden:"string",disable:"array",firstDay:"number",format:"string",formatSubmit:"string",hiddenName:"boolean",hiddenPrefix:"string",hiddenSuffix:"string",klass:"object",labelMonthNext:"string",labelMonthPrev:"string",labelMonthSelect:"string",labelYearSelect:"string",max:"boolean || date",min:"boolean || date",monthsFull:"array",monthsShort:"array",ok:"string",onClose:"function",onOpen:"function",onRender:"function",onSet:"function",onStart:"function",onStop:"function",selectMonths:"boolean",selectYears:"boolean || number",today:"string",weekdaysFull:"array",weekdaysShort:"array"},G=function(){function i(e,t){this._config=this._getConfig(t),this._element=e}var e=i.prototype;return e.display=function(e,t,n){H(".picker-date-display",t).remove(),H(".picker-wrap",t).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+e.get(n,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+e.get(n,"dddd")+'</span><span class="picker-day-display">'+e.get(n,"d")+'</span><span class="picker-month-display">'+e.get(n,"mmm")+"</span></div></div>")},e.show=function(){var e=this;H(this._element).pickadate({clear:this._config.cancel,close:this._config.ok,closeOnClear:this._config.closeOnCancel,closeOnSelect:this._config.closeOnSelect,container:this._config.container,containerHidden:this._config.containerHidden,disable:this._config.disable,firstDay:this._config.firstDay,format:this._config.format,formatSubmit:this._config.formatSubmit,klass:this._config.klass,hiddenName:this._config.hiddenName,hiddenPrefix:this._config.hiddenPrefix,hiddenSuffix:this._config.hiddenSuffix,labelMonthNext:this._config.labelMonthNext,labelMonthPrev:this._config.labelMonthPrev,labelMonthSelect:this._config.labelMonthSelect,labelYearSelect:this._config.labelYearSelect,max:this._config.max,min:this._config.min,monthsFull:this._config.monthsFull,monthsShort:this._config.monthsShort,onClose:this._config.onClose,onOpen:this._config.onOpen,onRender:this._config.onRender,onSet:this._config.onSet,onStart:this._config.onStart,onStop:this._config.onStop,selectMonths:this._config.selectMonths,selectYears:this._config.selectYears,today:this._config.today,weekdaysFull:this._config.weekdaysFull,weekdaysShort:this._config.weekdaysShort});var t=H(this._element).pickadate("picker"),n=t.$root;t.on({close:function(){H(document.activeElement).blur()},open:function(){H(".picker__date-display",n).length||e.display(t,n,"highlight")},set:function(){null!==t.get("select")&&e.display(t,n,"select")}})},e._getConfig=function(e){return e=C({},J,e),W.typeCheckConfig(B,e,K),e},i._jQueryInterface=function(n){return this.each(function(){var e=C({},i.Default,H(this).data(),"object"==typeof n&&n),t=H(this).data(Q);t||(t=new i(this,e),H(this).data(Q,t)),t.show()})},i}(),H.fn[B]=G._jQueryInterface,H.fn[B].Constructor=G,void(H.fn[B].noConflict=function(){return H.fn[B]=L,G._jQueryInterface})),_e=(X={IS_MOUSEDOWN:!(V="focus")},Z="blur"+(z=".md.selectioncontrolfocus"),ee="focus"+z,te="mousedown"+z,ne="mouseup"+z,ie=".custom-control",oe=".custom-control-input",void(q=i)(document).on(""+Z,oe,function(){q(this).removeClass(V)}).on(""+ee,oe,function(){!1===X.IS_MOUSEDOWN&&q(this).addClass(V)}).on(""+te,ie,function(){X.IS_MOUSEDOWN=!0}).on(""+ne,ie,function(){setTimeout(function(){X.IS_MOUSEDOWN=!1},1)})),ke=(ae="md.tabswitch",se="tabswitch",ce=(re=i).fn[se],le="animate",de="dropdown-item",ue="nav-tabs-indicator",he="nav-tabs-material",fe="show",pe='.nav-tabs [data-toggle="tab"]',me=".dropdown",ge=".nav-tabs",ye=function(){function i(e){this._nav=e,this._navindicator=null}var e=i.prototype;return e.switch=function(e,t){var n=this,i=re(this._nav).offset().left,o=re(this._nav).scrollLeft(),r=re(this._nav).outerWidth(),a=W.supportsTransitionEnd();this._navindicator||this._createIndicator(i,o,r,t),re(e).hasClass(de)&&(e=re(e).closest(me));var s=re(e).offset().left,c=re(e).outerWidth();re(this._navindicator).addClass(fe),W.reflow(this._navindicator),a&&re(this._nav).addClass(le),re(this._navindicator).css({left:s+o-i,right:r-(s+o-i+c)});var l=function(){re(n._nav).removeClass(le),re(n._navindicator).removeClass(fe)};if(a){var d=W.getTransitionDurationFromElement(this._navindicator);re(this._navindicator).one(W.TRANSITION_END,l).emulateTransitionEnd(d)}else l()},e._createIndicator=function(e,t,n,i){if(this._navindicator=document.createElement("div"),re(this._navindicator).addClass(ue).appendTo(this._nav),"undefined"!=typeof i){re(i).hasClass(de)&&(i=re(i).closest(me));var o=re(i).offset().left,r=re(i).outerWidth();re(this._navindicator).css({left:o+t-e,right:n-(o+t-e+r)})}re(this._nav).addClass(he)},i._jQueryInterface=function(n){return this.each(function(){var e=re(this).closest(ge)[0];if(e){var t=re(e).data(ae);t||(t=new i(e),re(e).data(ae,t)),t.switch(this,n)}})},i}(),re(document).on("show.bs.tab",pe,function(e){ye._jQueryInterface.call(re(this),e.relatedTarget)}),re.fn[se]=ye._jQueryInterface,re.fn[se].Constructor=ye,re.fn[se].noConflict=function(){return re.fn[se]=ce,ye._jQueryInterface},ye);e.Util=W,e.ExpansionPanel=S,e.FloatingLabel=w,e.NavDrawer=Y,e.PickDate=be,e.SelectionControlFocus=_e,e.TabSwitch=ke,Object.defineProperty(e,"__esModule",{value:!0})});
16
+ */var n;n=function(e,p){var t,y=e._;function n(t,n){var e,i=this,o=t.$node[0],r=o.value,a=t.$node.data("value"),s=a||r,c=a?n.formatSubmit:n.format,l=function(){return o.currentStyle?"rtl"==o.currentStyle.direction:"rtl"==getComputedStyle(t.$root[0]).direction};i.settings=n,i.$node=t.$node,i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},i.item={},i.item.clear=null,i.item.disable=(n.disable||[]).slice(0),i.item.enable=-(!0===(e=i.item.disable)[0]?e.shift():-1),i.set("min",n.min).set("max",n.max).set("now"),s?i.set("select",s,{format:c,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now),i.key={40:7,38:-7,39:function(){return l()?-1:1},37:function(){return l()?1:-1},go:function(e){var t=i.item.highlight,n=new Date(t.year,t.month,t.date+e);i.set("highlight",n,{interval:e}),this.render()}},t.on("render",function(){t.$root.find("."+n.klass.selectMonth).on("change",function(){var e=this.value;e&&(t.set("highlight",[t.get("view").year,e,t.get("highlight").date]),t.$root.find("."+n.klass.selectMonth).trigger("focus"))}),t.$root.find("."+n.klass.selectYear).on("change",function(){var e=this.value;e&&(t.set("highlight",[e,t.get("view").month,t.get("highlight").date]),t.$root.find("."+n.klass.selectYear).trigger("focus"))})},1).on("open",function(){var e="";i.disabled(i.get("now"))&&(e=":not(."+n.klass.buttonToday+")"),t.$root.find("button"+e+", select").attr("disabled",!1)},1).on("close",function(){t.$root.find("button, select").attr("disabled",!0)},1)}n.prototype.set=function(t,n,i){var o=this,e=o.item;return null===n?("clear"==t&&(t="select"),e[t]=n):(e["enable"==t?"disable":"flip"==t?"enable":t]=o.queue[t].split(" ").map(function(e){return n=o[e](t,n,i)}).pop(),"select"==t?o.set("highlight",e.select,i):"highlight"==t?o.set("view",e.highlight,i):t.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&o.disabled(e.select)&&o.set("select",e.select,i),e.highlight&&o.disabled(e.highlight)&&o.set("highlight",e.highlight,i))),o},n.prototype.get=function(e){return this.item[e]},n.prototype.create=function(e,t,n){var i;return(t=void 0===t?e:t)==-1/0||t==1/0?i=t:p.isPlainObject(t)&&y.isInteger(t.pick)?t=t.obj:p.isArray(t)?(t=new Date(t[0],t[1],t[2]),t=y.isDate(t)?t:this.create().obj):t=y.isInteger(t)||y.isDate(t)?this.normalize(new Date(t),n):this.now(e,t,n),{year:i||t.getFullYear(),month:i||t.getMonth(),date:i||t.getDate(),day:i||t.getDay(),obj:i||t,pick:i||t.getTime()}},n.prototype.createRange=function(e,t){var n=this,i=function(e){return!0===e||p.isArray(e)||y.isDate(e)?n.create(e):e};return y.isInteger(e)||(e=i(e)),y.isInteger(t)||(t=i(t)),y.isInteger(e)&&p.isPlainObject(t)?e=[t.year,t.month,t.date+e]:y.isInteger(t)&&p.isPlainObject(e)&&(t=[e.year,e.month,e.date+t]),{from:i(e),to:i(t)}},n.prototype.withinRange=function(e,t){return e=this.createRange(e.from,e.to),t.pick>=e.from.pick&&t.pick<=e.to.pick},n.prototype.overlapRanges=function(e,t){var n=this;return e=n.createRange(e.from,e.to),t=n.createRange(t.from,t.to),n.withinRange(e,t.from)||n.withinRange(e,t.to)||n.withinRange(t,e.from)||n.withinRange(t,e.to)},n.prototype.now=function(e,t,n){return t=new Date,n&&n.rel&&t.setDate(t.getDate()+n.rel),this.normalize(t,n)},n.prototype.navigate=function(e,t,n){var i,o,r,a,s=p.isArray(t),c=p.isPlainObject(t),l=this.item.view;if(s||c){for(c?(o=t.year,r=t.month,a=t.date):(o=+t[0],r=+t[1],a=+t[2]),n&&n.nav&&l&&l.month!==r&&(o=l.year,r=l.month),o=(i=new Date(o,r+(n&&n.nav?n.nav:0),1)).getFullYear(),r=i.getMonth();new Date(o,r,a).getMonth()!==r;)a-=1;t=[o,r,a]}return t},n.prototype.normalize=function(e){return e.setHours(0,0,0,0),e},n.prototype.measure=function(e,t){return t?"string"==typeof t?t=this.parse(e,t):y.isInteger(t)&&(t=this.now(e,t,{rel:t})):t="min"==e?-1/0:1/0,t},n.prototype.viewset=function(e,t){return this.create([t.year,t.month,1])},n.prototype.validate=function(e,n,t){var i,o,r,a,s=this,c=n,l=t&&t.interval?t.interval:1,d=-1===s.item.enable,u=s.item.min,h=s.item.max,f=d&&s.item.disable.filter(function(e){if(p.isArray(e)){var t=s.create(e).pick;t<n.pick?i=!0:t>n.pick&&(o=!0)}return y.isInteger(e)}).length;if((!t||!t.nav&&!t.defaultValue)&&(!d&&s.disabled(n)||d&&s.disabled(n)&&(f||i||o)||!d&&(n.pick<=u.pick||n.pick>=h.pick)))for(d&&!f&&(!o&&0<l||!i&&l<0)&&(l*=-1);s.disabled(n)&&(1<Math.abs(l)&&(n.month<c.month||n.month>c.month)&&(n=c,l=0<l?1:-1),n.pick<=u.pick?(r=!0,l=1,n=s.create([u.year,u.month,u.date+(n.pick===u.pick?0:-1)])):n.pick>=h.pick&&(a=!0,l=-1,n=s.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!r||!a);)n=s.create([n.year,n.month,n.date+l]);return n},n.prototype.disabled=function(t){var n=this,e=n.item.disable.filter(function(e){return y.isInteger(e)?t.day===(n.settings.firstDay?e:e-1)%7:p.isArray(e)||y.isDate(e)?t.pick===n.create(e).pick:p.isPlainObject(e)?n.withinRange(e,t):void 0});return e=e.length&&!e.filter(function(e){return p.isArray(e)&&"inverted"==e[3]||p.isPlainObject(e)&&e.inverted}).length,-1===n.item.enable?!e:e||t.pick<n.item.min.pick||t.pick>n.item.max.pick},n.prototype.parse=function(e,i,t){var o=this,r={};return i&&"string"==typeof i?(t&&t.format||((t=t||{}).format=o.settings.format),o.formats.toArray(t.format).map(function(e){var t=o.formats[e],n=t?y.trigger(t,o,[i,r]):e.replace(/^!/,"").length;t&&(r[e]=i.substr(0,n)),i=i.substr(n)}),[r.yyyy||r.yy,+(r.mm||r.m)-1,r.dd||r.d]):i},n.prototype.formats=function(){function i(e,t,n){var i=e.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=t.indexOf(i)+1),i.length}function n(e){return e.match(/\w+/)[0].length}return{d:function(e,t){return e?y.digits(e):t.date},dd:function(e,t){return e?2:y.lead(t.date)},ddd:function(e,t){return e?n(e):this.settings.weekdaysShort[t.day]},dddd:function(e,t){return e?n(e):this.settings.weekdaysFull[t.day]},m:function(e,t){return e?y.digits(e):t.month+1},mm:function(e,t){return e?2:y.lead(t.month+1)},mmm:function(e,t){var n=this.settings.monthsShort;return e?i(e,n,t):n[t.month]},mmmm:function(e,t){var n=this.settings.monthsFull;return e?i(e,n,t):n[t.month]},yy:function(e,t){return e?2:(""+t.year).slice(2)},yyyy:function(e,t){return e?4:t.year},toArray:function(e){return e.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(e,t){var n=this;return n.formats.toArray(e).map(function(e){return y.trigger(n.formats[e],n,[0,t])||e.replace(/^!/,"")}).join("")}}}(),n.prototype.isDateExact=function(e,t){return y.isInteger(e)&&y.isInteger(t)||"boolean"==typeof e&&"boolean"==typeof t?e===t:(y.isDate(e)||p.isArray(e))&&(y.isDate(t)||p.isArray(t))?this.create(e).pick===this.create(t).pick:!(!p.isPlainObject(e)||!p.isPlainObject(t))&&(this.isDateExact(e.from,t.from)&&this.isDateExact(e.to,t.to))},n.prototype.isDateOverlap=function(e,t){var n=this.settings.firstDay?1:0;return y.isInteger(e)&&(y.isDate(t)||p.isArray(t))?(e=e%7+n)===this.create(t).day+1:y.isInteger(t)&&(y.isDate(e)||p.isArray(e))?(t=t%7+n)===this.create(e).day+1:!(!p.isPlainObject(e)||!p.isPlainObject(t))&&this.overlapRanges(e,t)},n.prototype.flipEnable=function(e){var t=this.item;t.enable=e||(-1==t.enable?1:-1)},n.prototype.deactivate=function(e,t){var i=this,o=i.item.disable.slice(0);return"flip"==t?i.flipEnable():!1===t?(i.flipEnable(1),o=[]):!0===t?(i.flipEnable(-1),o=[]):t.map(function(e){for(var t,n=0;n<o.length;n+=1)if(i.isDateExact(e,o[n])){t=!0;break}t||(y.isInteger(e)||y.isDate(e)||p.isArray(e)||p.isPlainObject(e)&&e.from&&e.to)&&o.push(e)}),o},n.prototype.activate=function(e,t){var r=this,a=r.item.disable,s=a.length;return"flip"==t?r.flipEnable():!0===t?(r.flipEnable(1),a=[]):!1===t?(r.flipEnable(-1),a=[]):t.map(function(e){var t,n,i,o;for(i=0;i<s;i+=1){if(n=a[i],r.isDateExact(n,e)){t=a[i]=null,o=!0;break}if(r.isDateOverlap(n,e)){p.isPlainObject(e)?(e.inverted=!0,t=e):p.isArray(e)?(t=e)[3]||t.push("inverted"):y.isDate(e)&&(t=[e.getFullYear(),e.getMonth(),e.getDate(),"inverted"]);break}}if(t)for(i=0;i<s;i+=1)if(r.isDateExact(a[i],e)){a[i]=null;break}if(o)for(i=0;i<s;i+=1)if(r.isDateOverlap(a[i],e)){a[i]=null;break}t&&a.push(t)}),a.filter(function(e){return null!=e})},n.prototype.nodes=function(c){var t,n,l=this,d=l.settings,e=l.item,a=e.now,s=e.select,u=e.highlight,h=e.view,f=e.disable,p=e.min,m=e.max,i=(t=(d.showWeekdaysFull?d.weekdaysFull:d.weekdaysShort).slice(0),n=d.weekdaysFull.slice(0),d.firstDay&&(t.push(t.shift()),n.push(n.shift())),y.node("thead",y.node("tr",y.group({min:0,max:6,i:1,node:"th",item:function(e){return[t[e],d.klass.weekdays,'scope=col title="'+n[e]+'"']}})))),o=function(e){return y.node("div"," ",d.klass["nav"+(e?"Next":"Prev")]+(e&&h.year>=m.year&&h.month>=m.month||!e&&h.year<=p.year&&h.month<=p.month?" "+d.klass.navDisabled:""),"data-nav="+(e||-1)+" "+y.ariaAttr({role:"button",controls:l.$node[0].id+"_table"})+' title="'+(e?d.labelMonthNext:d.labelMonthPrev)+'"')},r=function(){var t=d.showMonthsShort?d.monthsShort:d.monthsFull;return d.selectMonths?y.node("select",y.group({min:0,max:11,i:1,node:"option",item:function(e){return[t[e],0,"value="+e+(h.month==e?" selected":"")+(h.year==p.year&&e<p.month||h.year==m.year&&e>m.month?" disabled":"")]}}),d.klass.selectMonth,(c?"":"disabled")+" "+y.ariaAttr({controls:l.$node[0].id+"_table"})+' title="'+d.labelMonthSelect+'"'):y.node("div",t[h.month],d.klass.month)},g=function(){var t=h.year,e=!0===d.selectYears?5:~~(d.selectYears/2);if(e){var n=p.year,i=m.year,o=t-e,r=t+e;if(o<n&&(r+=n-o,o=n),i<r){var a=o-n,s=r-i;o-=s<a?s:a,r=i}return y.node("select",y.group({min:o,max:r,i:1,node:"option",item:function(e){return[e,0,"value="+e+(t==e?" selected":"")]}}),d.klass.selectYear,(c?"":"disabled")+" "+y.ariaAttr({controls:l.$node[0].id+"_table"})+' title="'+d.labelYearSelect+'"')}return y.node("div",t,d.klass.year)};return y.node("div",(d.selectYears?g()+r():r()+g())+o()+o(1),d.klass.header)+y.node("table",i+y.node("tbody",y.group({min:0,max:5,i:1,node:"tr",item:function(e){var t=d.firstDay&&0===l.create([h.year,h.month,1]).day?-7:0;return[y.group({min:7*e-h.day+t+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(e){e=l.create([h.year,h.month,e+(d.firstDay?1:0)]);var t,n=s&&s.pick==e.pick,i=u&&u.pick==e.pick,o=f&&l.disabled(e)||e.pick<p.pick||e.pick>m.pick,r=y.trigger(l.formats.toString,l,[d.format,e]);return[y.node("div",e.date,(t=[d.klass.day],t.push(h.month==e.month?d.klass.infocus:d.klass.outfocus),a.pick==e.pick&&t.push(d.klass.now),n&&t.push(d.klass.selected),i&&t.push(d.klass.highlighted),o&&t.push(d.klass.disabled),t.join(" ")),"data-pick="+e.pick+" "+y.ariaAttr({role:"gridcell",label:r,selected:!(!n||l.$node.val()!==r)||null,activedescendant:!!i||null,disabled:!!o||null})),"",y.ariaAttr({role:"presentation"})]}})]}})),d.klass.table,'id="'+l.$node[0].id+'_table" '+y.ariaAttr({role:"grid",controls:l.$node[0].id,readonly:!0}))+y.node("div",y.node("button",d.today,d.klass.buttonToday,"type=button data-pick="+a.pick+(c&&!l.disabled(a)?"":" disabled")+" "+y.ariaAttr({controls:l.$node[0].id}))+y.node("button",d.clear,d.klass.buttonClear,"type=button data-clear=1"+(c?"":" disabled")+" "+y.ariaAttr({controls:l.$node[0].id}))+y.node("button",d.close,d.klass.buttonClose,"type=button data-close=true "+(c?"":" disabled")+" "+y.ariaAttr({controls:l.$node[0].id})),d.klass.footer)},n.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:(t=e.klasses().picker+"__")+"table",header:t+"header",navPrev:t+"nav--prev",navNext:t+"nav--next",navDisabled:t+"nav--disabled",month:t+"month",year:t+"year",selectMonth:t+"select--month",selectYear:t+"select--year",weekdays:t+"weekday",day:t+"day",disabled:t+"day--disabled",selected:t+"day--selected",highlighted:t+"day--highlighted",now:t+"day--today",infocus:t+"day--infocus",outfocus:t+"day--outfocus",footer:t+"footer",buttonClear:t+"button--clear",buttonToday:t+"button--today",buttonClose:t+"button--close"}},e.extend("pickadate",n)},e.exports=n(_e,i)}),B="md.pickdate",Q="pickdate",L=(U=i).fn[Q],J={cancel:"Cancel",closeOnCancel:!0,closeOnSelect:!1,container:"",containerHidden:"",disable:[],firstDay:0,format:"d/m/yyyy",formatSubmit:"",hiddenName:!1,hiddenPrefix:"",hiddenSuffix:"",klass:{buttonClear:"btn btn-outline-primary picker-button-clear",buttonClose:"btn btn-outline-primary picker-button-close",buttonToday:"btn btn-outline-primary picker-button-today",day:"picker-day",disabled:"picker-day-disabled",highlighted:"picker-day-highlighted",infocus:"picker-day-infocus",now:"picker-day-today",outfocus:"picker-day-outfocus",selected:"picker-day-selected",weekdays:"picker-weekday",box:"picker-box",footer:"picker-footer",frame:"picker-frame",header:"picker-header",holder:"picker-holder",table:"picker-table",wrap:"picker-wrap",active:"picker-input-active",input:"picker-input",month:"picker-month",navDisabled:"picker-nav-disabled",navNext:"material-icons picker-nav-next",navPrev:"material-icons picker-nav-prev",selectMonth:"picker-select-month",selectYear:"picker-select-year",year:"picker-year",focused:"picker-focused",opened:"picker-opened",picker:"picker"},labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",max:!1,min:!1,monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ok:"OK",onClose:function(){},onOpen:function(){},onRender:function(){},onSet:function(){},onStart:function(){},onStop:function(){},selectMonths:!1,selectYears:!1,today:"",weekdaysFull:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysShort:["S","M","T","W","T","F","S"]},K={cancel:"string",closeOnCancel:"boolean",closeOnSelect:"boolean",container:"string",containerHidden:"string",disable:"array",firstDay:"number",format:"string",formatSubmit:"string",hiddenName:"boolean",hiddenPrefix:"string",hiddenSuffix:"string",klass:"object",labelMonthNext:"string",labelMonthPrev:"string",labelMonthSelect:"string",labelYearSelect:"string",max:"boolean || date",min:"boolean || date",monthsFull:"array",monthsShort:"array",ok:"string",onClose:"function",onOpen:"function",onRender:"function",onSet:"function",onStart:"function",onStop:"function",selectMonths:"boolean",selectYears:"boolean || number",today:"string",weekdaysFull:"array",weekdaysShort:"array"},G=function(){function i(e,t){this._config=this._getConfig(t),this._element=e}var e=i.prototype;return e.display=function(e,t,n){U(".picker-date-display",t).remove(),U(".picker-wrap",t).prepend('<div class="picker-date-display"><div class="picker-date-display-top"><span class="picker-year-display">'+e.get(n,"yyyy")+'</span></div><div class="picker-date-display-bottom"><span class="picker-weekday-display">'+e.get(n,"dddd")+'</span><span class="picker-day-display">'+e.get(n,"d")+'</span><span class="picker-month-display">'+e.get(n,"mmm")+"</span></div></div>")},e.show=function(){var e=this;U(this._element).pickadate({clear:this._config.cancel,close:this._config.ok,closeOnClear:this._config.closeOnCancel,closeOnSelect:this._config.closeOnSelect,container:this._config.container,containerHidden:this._config.containerHidden,disable:this._config.disable,firstDay:this._config.firstDay,format:this._config.format,formatSubmit:this._config.formatSubmit,klass:this._config.klass,hiddenName:this._config.hiddenName,hiddenPrefix:this._config.hiddenPrefix,hiddenSuffix:this._config.hiddenSuffix,labelMonthNext:this._config.labelMonthNext,labelMonthPrev:this._config.labelMonthPrev,labelMonthSelect:this._config.labelMonthSelect,labelYearSelect:this._config.labelYearSelect,max:this._config.max,min:this._config.min,monthsFull:this._config.monthsFull,monthsShort:this._config.monthsShort,onClose:this._config.onClose,onOpen:this._config.onOpen,onRender:this._config.onRender,onSet:this._config.onSet,onStart:this._config.onStart,onStop:this._config.onStop,selectMonths:this._config.selectMonths,selectYears:this._config.selectYears,today:this._config.today,weekdaysFull:this._config.weekdaysFull,weekdaysShort:this._config.weekdaysShort});var t=U(this._element).pickadate("picker"),n=t.$root;t.on({close:function(){U(document.activeElement).blur()},open:function(){U(".picker__date-display",n).length||e.display(t,n,"highlight")},set:function(){null!==t.get("select")&&e.display(t,n,"select")}})},e._getConfig=function(e){return e=C({},J,e),W.typeCheckConfig(Q,e,K),e},i._jQueryInterface=function(n){return this.each(function(){var e=C({},J,U(this).data(),"object"==typeof n&&n?n:{}),t=U(this).data(B);t||(t=new i(this,e),U(this).data(B,t)),t.show()})},i}(),U.fn[Q]=G._jQueryInterface,U.fn[Q].Constructor=G,void(U.fn[Q].noConflict=function(){return U.fn[Q]=L,G._jQueryInterface})),Se=(X={IS_MOUSEDOWN:!(V="focus")},Z="blur"+(z=".md.selectioncontrolfocus"),ee="focus"+z,te="mousedown"+z,ne="mouseup"+z,ie=".custom-control",oe=".custom-control-input",void(q=i)(document).on(""+Z,oe,function(){q(this).removeClass(V)}).on(""+ee,oe,function(){!1===X.IS_MOUSEDOWN&&q(this).addClass(V)}).on(""+te,ie,function(){X.IS_MOUSEDOWN=!0}).on(""+ne,ie,function(){setTimeout(function(){X.IS_MOUSEDOWN=!1},1)})),we=(ae="md.tabswitch",se="tabswitch",ce=(re=i).fn[se],le="animate",de="dropdown-item",ue="nav-tabs-indicator",he="nav-tabs-material",fe="show",pe='.nav-tabs [data-toggle="tab"]',me=".dropdown",ge=".nav-tabs",ye=function(){function i(e){this._nav=e,this._navindicator=null}var e=i.prototype;return e.switch=function(e,t){var n=this,i=re(this._nav).offset().left,o=re(this._nav).scrollLeft(),r=re(this._nav).outerWidth();this._navindicator||this._createIndicator(i,o,r,t),re(e).hasClass(de)&&(e=re(e).closest(me));var a=re(e).offset().left,s=re(e).outerWidth();re(this._navindicator).addClass(fe),W.reflow(this._navindicator),re(this._nav).addClass(le),re(this._navindicator).css({left:a+o-i,right:r-(a+o-i+s)});var c=W.getTransitionDurationFromElement(this._navindicator);re(this._navindicator).one(W.TRANSITION_END,function(){re(n._nav).removeClass(le),re(n._navindicator).removeClass(fe)}).emulateTransitionEnd(c)},e._createIndicator=function(e,t,n,i){if(this._navindicator=document.createElement("div"),re(this._navindicator).addClass(ue).appendTo(this._nav),"undefined"!=typeof i){re(i).hasClass(de)&&(i=re(i).closest(me));var o=re(i).offset().left,r=re(i).outerWidth();re(this._navindicator).css({left:o+t-e,right:n-(o+t-e+r)})}re(this._nav).addClass(he)},i._jQueryInterface=function(n){return this.each(function(){var e=re(this).closest(ge)[0];if(e){var t=re(e).data(ae);t||(t=new i(e),re(e).data(ae,t)),t.switch(this,n)}})},i}(),re(document).on("show.bs.tab",pe,function(e){ye._jQueryInterface.call(re(this),e.relatedTarget)}),re.fn[se]=ye._jQueryInterface,re.fn[se].Constructor=ye,re.fn[se].noConflict=function(){return re.fn[se]=ce,ye._jQueryInterface},ye);e.Util=W,e.ExpansionPanel=S,e.FloatingLabel=w,e.NavDrawer=Y,e.PickDate=ke,e.SelectionControlFocus=Se,e.TabSwitch=we,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -19,7 +19,7 @@ var FloatingLabel = function ($) {
19
19
  };
20
20
  var Selector = {
21
21
  DATA_PARENT: '.floating-label',
22
- DATA_TOGGLE: '.floating-label .form-control' // <<< constants
22
+ DATA_TOGGLE: '.floating-label .custom-select, .floating-label .form-control' // <<< constants
23
23
 
24
24
  };
25
25
 
@@ -6,7 +6,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
6
6
 
7
7
  /*
8
8
  * Navigation drawer plguin
9
- * Based on Bootstrap's (v4.1.0) `modal.js`
9
+ * Based on Bootstrap's (v4.1.X) `modal.js`
10
10
  */
11
11
  var NavDrawer = function ($) {
12
12
  // constants >>>
@@ -85,11 +85,7 @@ var NavDrawer = function ($) {
85
85
  }
86
86
 
87
87
  this._isShown = false;
88
- var supportsTransition = Util.supportsTransitionEnd();
89
-
90
- if (supportsTransition) {
91
- this._isTransitioning = true;
92
- }
88
+ this._isTransitioning = true;
93
89
 
94
90
  this._setEscapeEvent();
95
91
 
@@ -98,15 +94,10 @@ var NavDrawer = function ($) {
98
94
  $(this._element).removeClass(ClassName.SHOW);
99
95
  $(this._element).off(Event.CLICK_DISMISS);
100
96
  $(this._content).off(Event.MOUSEDOWN_DISMISS);
101
-
102
- if (supportsTransition) {
103
- var transitionDuration = Util.getTransitionDurationFromElement(this._content);
104
- $(this._content).one(Util.TRANSITION_END, function (event) {
105
- return _this._hideNavdrawer(event);
106
- }).emulateTransitionEnd(transitionDuration);
107
- } else {
108
- this._hideNavdrawer();
109
- }
97
+ var transitionDuration = Util.getTransitionDurationFromElement(this._content);
98
+ $(this._content).one(Util.TRANSITION_END, function (event) {
99
+ return _this._hideNavdrawer(event);
100
+ }).emulateTransitionEnd(transitionDuration);
110
101
 
111
102
  this._showBackdrop();
112
103
  };
@@ -118,10 +109,7 @@ var NavDrawer = function ($) {
118
109
  return;
119
110
  }
120
111
 
121
- if (Util.supportsTransitionEnd()) {
122
- this._isTransitioning = true;
123
- }
124
-
112
+ this._isTransitioning = true;
125
113
  var showEvent = $.Event(Event.SHOW, {
126
114
  relatedTarget: relatedTarget
127
115
  });
@@ -207,8 +195,6 @@ var NavDrawer = function ($) {
207
195
  _proto._showBackdrop = function _showBackdrop() {
208
196
  var _this5 = this;
209
197
 
210
- var supportsTransition = Util.supportsTransitionEnd();
211
-
212
198
  if (this._isShown) {
213
199
  this._backdrop = document.createElement('div');
214
200
  $(this._backdrop).addClass(ClassName.BACKDROP).addClass(ClassName.BACKDROP + "-" + this._config.type + this._typeBreakpoint).appendTo(document.body);
@@ -224,11 +210,7 @@ var NavDrawer = function ($) {
224
210
 
225
211
  _this5.hide();
226
212
  });
227
-
228
- if (supportsTransition) {
229
- Util.reflow(this._backdrop);
230
- }
231
-
213
+ Util.reflow(this._backdrop);
232
214
  $(this._backdrop).addClass(ClassName.SHOW);
233
215
  } else if (!this._isShown && this._backdrop) {
234
216
  $(this._backdrop).removeClass(ClassName.SHOW);
@@ -240,8 +222,6 @@ var NavDrawer = function ($) {
240
222
  _proto._showElement = function _showElement(relatedTarget) {
241
223
  var _this6 = this;
242
224
 
243
- var supportsTransition = Util.supportsTransitionEnd();
244
-
245
225
  if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
246
226
  document.body.appendChild(this._element);
247
227
  }
@@ -250,10 +230,7 @@ var NavDrawer = function ($) {
250
230
 
251
231
  this._element.removeAttribute('aria-hidden');
252
232
 
253
- if (supportsTransition) {
254
- Util.reflow(this._element);
255
- }
256
-
233
+ Util.reflow(this._element);
257
234
  $(document.body).addClass(ClassName.OPEN + "-" + this._config.type + this._typeBreakpoint);
258
235
  $(this._element).addClass(ClassName.SHOW);
259
236
 
@@ -270,17 +247,13 @@ var NavDrawer = function ($) {
270
247
  $(_this6._element).trigger(shownEvent);
271
248
  };
272
249
 
273
- if (supportsTransition) {
274
- var transitionDuration = Util.getTransitionDurationFromElement(this._content);
275
- $(this._content).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
276
- } else {
277
- transitionComplete();
278
- }
250
+ var transitionDuration = Util.getTransitionDurationFromElement(this._content);
251
+ $(this._content).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
279
252
  };
280
253
 
281
254
  NavDrawer._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
282
255
  return this.each(function () {
283
- var _config = _extends({}, NavDrawer.Default, $(this).data(), typeof config === 'object' && config);
256
+ var _config = _extends({}, Default, $(this).data(), typeof config === 'object' && config ? config : {});
284
257
 
285
258
  var data = $(this).data(DATA_KEY);
286
259