Re3gistry/public_html/js-ecl-v2/package/dist/scripts/ecl-ec-preset-website.js
2023-08-31 09:57:49 +02:00

3 lines
193 KiB
JavaScript

/* @ecl/ec-preset-website - 2.35.0 Built on 2020-11-26T09:34:28.511Z */
var ECL=function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}return null});function h(e,t){return void 0===t&&(t=document),[].slice.call(t.querySelectorAll(e))}function d(e,t){return void 0===t&&(t=document),t.querySelector(e)}var t=function(){function s(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-accordion2-toggle]":n,a=i.iconSelector,r=void 0===a?"[data-ecl-accordion2-icon]":a,o=i.attachClickListener,l=void 0===o||o;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=s,this.iconSelector=r,this.attachClickListener=l,this.toggles=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).ACCORDION2,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLAccordion2=n};var e=s.prototype;return e.init=function(){var t=this;this.toggles=h(this.toggleSelector,this.element),this.label=d(this.labelSelector,this.element),this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.addEventListener("click",t.handleClickOnToggle.bind(t,e))})},e.destroy=function(){var t=this;this.attachClickListener&&this.toggles&&this.toggles.forEach(function(e){e.removeEventListener("click",t.handleClickOnToggle)})},e.handleClickOnToggle=function(e){var t=d("#"+e.getAttribute("aria-controls"),this.element);if(!t)throw new TypeError("Target has to be provided for accordion (aria-controls)");var i=!0===this.forceClose||"true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",i?"false":"true"),t.hidden=i;var n,s,a,r=d(this.iconSelector,e);return!r||(n=d("use",r))&&(s=n.getAttribute("xlink:href"),a="",a=i?s.replace("ui--minus","ui--plus"):s.replace("ui--plus","ui--minus"),n.setAttribute("xlink:href",a)),this},s}(),i=function(){function s(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-ellipsis-button]":n,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-item]":o,c=i.expandableItemsSelector,h=void 0===c?'[data-ecl-breadcrumb-item="expandable"]':c,d=i.staticItemsSelector,u=void 0===d?'[data-ecl-breadcrumb-item="static"]':d,f=i.onPartialExpand,m=void 0===f?null:f,g=i.onFullExpand,v=void 0===g?null:g,p=i.attachClickListener,y=void 0===p||p;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=r,this.segmentSelector=l,this.expandableItemsSelector=h,this.staticItemsSelector=u,this.onPartialExpand=m,this.onFullExpand=v,this.attachClickListener=y,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).BREADCRUMB,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLBreadcrumb=n};var e=s.prototype;return e.init=function(){this.ellipsisButton=d(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=h(this.segmentSelector,this.element),this.staticElements=h(this.staticItemsSelector,this.element),this.expandableElements=h(this.expandableItemsSelector,this.element),this.check()},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=d(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var i=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=i)return{expanded:!0};var n=d(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(i<=n)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var s=0,a=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!a)return!1;var t=(s+=e.getBoundingClientRect().width)+n<=i;return t||(a=!1),t}).reverse()}},s}(),n=function(){function s(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-core-ellipsis-button]":n,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-core-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-core-item]":o,c=i.expandableItemsSelector,h=void 0===c?'[data-ecl-breadcrumb-core-item="expandable"]':c,d=i.staticItemsSelector,u=void 0===d?'[data-ecl-breadcrumb-core-item="static"]':d,f=i.onPartialExpand,m=void 0===f?null:f,g=i.onFullExpand,v=void 0===g?null:g,p=i.attachClickListener,y=void 0===p||p;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=r,this.segmentSelector=l,this.expandableItemsSelector=h,this.staticItemsSelector=u,this.onPartialExpand=m,this.onFullExpand=v,this.attachClickListener=y,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).BREADCRUMB_CORE,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLBreadcrumbCore=n};var e=s.prototype;return e.init=function(){this.ellipsisButton=d(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=h(this.segmentSelector,this.element),this.staticElements=h(this.staticItemsSelector,this.element),this.expandableElements=h(this.expandableItemsSelector,this.element),this.check()},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=d(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var i=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=i)return{expanded:!0};var n=d(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(i<=n)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var s=0,a=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!a)return!1;var t=(s+=e.getBoundingClientRect().width)+n<=i;return t||(a=!1),t}).reverse()}},s}(),s=function(){function s(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-harmonised-ellipsis-button]":n,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-harmonised-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-harmonised-item]":o,c=i.expandableItemsSelector,h=void 0===c?'[data-ecl-breadcrumb-harmonised-item="expandable"]':c,d=i.staticItemsSelector,u=void 0===d?'[data-ecl-breadcrumb-harmonised-item="static"]':d,f=i.onPartialExpand,m=void 0===f?null:f,g=i.onFullExpand,v=void 0===g?null:g,p=i.attachClickListener,y=void 0===p||p;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=r,this.segmentSelector=l,this.expandableItemsSelector=h,this.staticItemsSelector=u,this.onPartialExpand=m,this.onFullExpand=v,this.attachClickListener=y,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).BREADCRUMB_HARMONISED,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLBreadcrumbHarmonised=n};var e=s.prototype;return e.init=function(){this.ellipsisButton=d(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=h(this.segmentSelector,this.element),this.staticElements=h(this.staticItemsSelector,this.element),this.expandableElements=h(this.expandableItemsSelector,this.element),this.check()},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=d(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var i=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=i)return{expanded:!0};var n=d(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(i<=n)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var s=0,a=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!a)return!1;var t=(s+=e.getBoundingClientRect().width)+n<=i;return t||(a=!1),t}).reverse()}},s}(),a=function(){function s(e,t){var i=void 0===t?{}:t,n=i.ellipsisButtonSelector,s=void 0===n?"[data-ecl-breadcrumb-standardised-ellipsis-button]":n,a=i.ellipsisSelector,r=void 0===a?"[data-ecl-breadcrumb-standardised-ellipsis]":a,o=i.segmentSelector,l=void 0===o?"[data-ecl-breadcrumb-standardised-item]":o,c=i.expandableItemsSelector,h=void 0===c?'[data-ecl-breadcrumb-standardised-item="expandable"]':c,d=i.staticItemsSelector,u=void 0===d?'[data-ecl-breadcrumb-standardised-item="static"]':d,f=i.onPartialExpand,m=void 0===f?null:f,g=i.onFullExpand,v=void 0===g?null:g,p=i.attachClickListener,y=void 0===p||p;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.ellipsisButtonSelector=s,this.ellipsisSelector=r,this.segmentSelector=l,this.expandableItemsSelector=h,this.staticItemsSelector=u,this.onPartialExpand=m,this.onFullExpand=v,this.attachClickListener=y,this.ellipsisButton=null,this.itemsElements=null,this.staticElements=null,this.expandableElements=null,this.handleClickOnEllipsis=this.handleClickOnEllipsis.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).BREADCRUMB_STANDARDISED,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLBreadcrumbStandardised=n};var e=s.prototype;return e.init=function(){this.ellipsisButton=d(this.ellipsisButtonSelector,this.element),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.addEventListener("click",this.handleClickOnEllipsis),this.itemsElements=h(this.segmentSelector,this.element),this.staticElements=h(this.staticItemsSelector,this.element),this.expandableElements=h(this.expandableItemsSelector,this.element),this.check()},e.destroy=function(){this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.handleClickOnEllipsis=function(){return this.handleFullExpand()},e.check=function(){var e=this.computeVisibilityMap();e&&(!0===e.expanded?this.handleFullExpand():this.handlePartialExpand(e))},e.hideEllipsis=function(){var e=d(this.ellipsisSelector,this.element);e&&e.setAttribute("aria-hidden","true"),this.attachClickListener&&this.ellipsisButton&&this.ellipsisButton.removeEventListener("click",this.handleClickOnEllipsis)},e.showAllItems=function(){this.expandableElements.forEach(function(e){return e.setAttribute("aria-hidden","false")})},e.handlePartialExpand=function(e){var i;!e||(i=e.isItemVisible)&&Array.isArray(i)&&(this.onPartialExpand?this.onPartialExpand(i):this.expandableElements.forEach(function(e,t){e.setAttribute("aria-hidden",i[t]?"false":"true")}))},e.handleFullExpand=function(){this.onFullExpand?this.onFullExpand():(this.hideEllipsis(),this.showAllItems())},e.computeVisibilityMap=function(){if(!this.expandableElements||0===this.expandableElements.length)return{expanded:!0};var i=Math.floor(this.element.getBoundingClientRect().width);if(this.itemsElements.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t})<=i)return{expanded:!0};var n=d(this.ellipsisSelector,this.element).getBoundingClientRect().width+this.staticElements.reduce(function(e,t){return e+t.getBoundingClientRect().width},0);if(i<=n)return{expanded:!1,isItemVisible:[].concat(this.expandableElements.map(function(){return!1}))};var s=0,a=!0;return{expanded:!1,isItemVisible:[].concat(this.expandableElements).reverse().map(function(e){if(!a)return!1;var t=(s+=e.getBoundingClientRect().width)+n<=i;return t||(a=!1),t}).reverse()}},s}(),r=function(){function s(e,t){var i=void 0===t?{}:t,n=i.moreItemSelector,s=void 0===n?"[data-ecl-contextual-navigation-more]":n,a=i.listSelector,r=void 0===a?"[data-ecl-contextual-navigation-list]":a,o=i.attachClickListener,l=void 0===o||o;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.moreItemSelector=s,this.listSelector=r,this.attachClickListener=l,this.moreItem=null,this.list=null,this.handleClickOnMore=this.handleClickOnMore.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).CONTEXTUAL_NAVIGATION,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLContextualNavigation=n};var e=s.prototype;return e.init=function(){this.moreItem=d(this.moreItemSelector,this.element),this.list=d(this.listSelector,this.element),this.attachClickListener&&this.moreItem&&this.moreItem.addEventListener("click",this.handleClickOnMore)},e.destroy=function(){this.attachClickListener&&this.moreItem&&this.moreItem.removeEventListener("click",this.handleClickOnMore)},e.handleClickOnMore=function(){this.list.setAttribute("aria-expanded","true"),this.moreItem.parentNode&&this.moreItem.parentNode.parentNode&&this.moreItem.parentNode.parentNode.removeChild(this.moreItem.parentNode)},s}(),o=function(){function s(e,t){var i=void 0===t?{}:t,n=i.toggleSelector,s=void 0===n?"[data-ecl-expandable-toggle]":n,a=i.labelSelector,r=void 0===a?"[data-ecl-label]":a,o=i.labelExpanded,l=void 0===o?"data-ecl-label-expanded":o,c=i.labelCollapsed,h=void 0===c?"data-ecl-label-collapsed":c,d=i.attachClickListener,u=void 0===d||d;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.toggleSelector=s,this.labelSelector=r,this.labelExpanded=l,this.labelCollapsed=h,this.attachClickListener=u,this.toggle=null,this.forceClose=!1,this.target=null,this.label=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).EXPANDABLE,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLExpandable=n};var e=s.prototype;return e.init=function(){if(this.toggle=d(this.toggleSelector,this.element),this.target=document.querySelector("#"+this.toggle.getAttribute("aria-controls")),this.label=d(this.labelSelector,this.element),!this.target)throw new TypeError("Target has to be provided for expandable (aria-controls)");this.attachClickListener&&this.toggle&&this.toggle.addEventListener("click",this.handleClickOnToggle)},e.destroy=function(){this.attachClickListener&&this.toggle&&this.toggle.removeEventListener("click",this.handleClickOnToggle)},e.handleClickOnToggle=function(){var e=!0===this.forceClose||"true"===this.toggle.getAttribute("aria-expanded");return this.toggle.setAttribute("aria-expanded",e?"false":"true"),this.target.hidden=e,this.label&&!e&&this.toggle.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.toggle.getAttribute(this.labelExpanded):this.label&&e&&this.toggle.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.toggle.getAttribute(this.labelCollapsed)),this},s}(),l=function(){function s(e,t){var i=void 0===t?{}:t,n=i.translationToggleSelector,s=void 0===n?"[data-ecl-file-translation-toggle]":n,a=i.translationContainerSelector,r=void 0===a?"[data-ecl-file-translation-container]":a,o=i.attachClickListener,l=void 0===o||o;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.translationToggleSelector=s,this.translationContainerSelector=r,this.attachClickListener=l,this.translationToggle=null,this.translationContainer=null,this.handleClickOnToggle=this.handleClickOnToggle.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).FILE_DOWNLOAD,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLFileDownload=n};var e=s.prototype;return e.init=function(){this.translationToggle=d(this.translationToggleSelector,this.element),this.translationContainer=d(this.translationContainerSelector,this.element),this.attachClickListener&&this.translationToggle&&this.translationToggle.addEventListener("click",this.handleClickOnToggle)},e.destroy=function(){this.attachClickListener&&this.translationToggle&&this.translationToggle.removeEventListener("click",this.handleClickOnToggle)},e.handleClickOnToggle=function(e){return e.preventDefault(),"true"===this.translationContainer.getAttribute("aria-expanded")?this.translationContainer.setAttribute("aria-expanded","false"):this.translationContainer.setAttribute("aria-expanded","true"),this},s}(),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function cr(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function u(e,t){return e(t={exports:{}},t.exports),t.exports}var w=u(function(lr,e){lr.exports=function(){var t,s;function h(){return t.apply(null,arguments)}function e(e){t=e}function r(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function o(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(e).length===0}else{var t;for(t in e){if(l(e,t)){return false}}return true}}function a(e){return e===void 0}function d(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function u(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function n(e,t){var i=[],n;for(n=0;n<e.length;++n){i.push(t(e[n],n))}return i}function f(e,t){for(var i in t){if(l(t,i)){e[i]=t[i]}}if(l(t,"toString")){e.toString=t.toString}if(l(t,"valueOf")){e.valueOf=t.valueOf}return e}function m(e,t,i,n){return ji(e,t,i,n,true).utc()}function i(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function g(e){if(e._pf==null){e._pf=i()}return e._pf}if(Array.prototype.some){s=Array.prototype.some}else{s=function e(t){var i=Object(this),n=i.length>>>0,s;for(s=0;s<n;s++){if(s in i&&t.call(this,i[s],s,i)){return true}}return false}}function v(e){if(e._isValid==null){var t=g(e),i=s.call(t.parsedDateParts,function(e){return e!=null}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict){n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(e)){e._isValid=n}else{return n}}return e._isValid}function p(e){var t=m(NaN);if(e!=null){f(g(t),e)}else{g(t).userInvalidated=true}return t}var y=h.momentProperties=[],b=false;function w(e,t){var i,n,s;if(!a(t._isAMomentObject)){e._isAMomentObject=t._isAMomentObject}if(!a(t._i)){e._i=t._i}if(!a(t._f)){e._f=t._f}if(!a(t._l)){e._l=t._l}if(!a(t._strict)){e._strict=t._strict}if(!a(t._tzm)){e._tzm=t._tzm}if(!a(t._isUTC)){e._isUTC=t._isUTC}if(!a(t._offset)){e._offset=t._offset}if(!a(t._pf)){e._pf=g(t)}if(!a(t._locale)){e._locale=t._locale}if(y.length>0){for(i=0;i<y.length;i++){n=y[i];s=t[n];if(!a(s)){e[n]=s}}}return e}function _(e){w(this,e);this._d=new Date(e._d!=null?e._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(b===false){b=true;h.updateOffset(this);b=false}}function k(e){return e instanceof _||e!=null&&e._isAMomentObject!=null}function S(e){if(h.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+e)}}function E(s,a){var r=true;return f(function(){if(h.deprecationHandler!=null){h.deprecationHandler(null,s)}if(r){var e=[],t,i,n;for(i=0;i<arguments.length;i++){t="";if(typeof arguments[i]==="object"){t+="\n["+i+"] ";for(n in arguments[0]){if(l(arguments[0],n)){t+=n+": "+arguments[0][n]+", "}}t=t.slice(0,-2)}else{t=arguments[i]}e.push(t)}S(s+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);r=false}return a.apply(this,arguments)},a)}var O={},x;function C(e,t){if(h.deprecationHandler!=null){h.deprecationHandler(e,t)}if(!O[e]){S(t);O[e]=true}}function L(e){return typeof Function!=="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function T(e){var t,i;for(i in e){if(l(e,i)){t=e[i];if(L(t)){this[i]=t}else{this["_"+i]=t}}}this._config=e;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function M(e,t){var i=f({},e),n;for(n in t){if(l(t,n)){if(o(e[n])&&o(t[n])){i[n]={};f(i[n],e[n]);f(i[n],t[n])}else if(t[n]!=null){i[n]=t[n]}else{delete i[n]}}}for(n in e){if(l(e,n)&&!l(t,n)&&o(e[n])){i[n]=f({},i[n])}}return i}function D(e){if(e!=null){this.set(e)}}if(h.suppressDeprecationWarnings=false,h.deprecationHandler=null,Object.keys){x=Object.keys}else{x=function e(t){var i,n=[];for(i in t){if(l(t,i)){n.push(i)}}return n}}var A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,i){var n=this._calendar[e]||this._calendar["sameElse"];return L(n)?n.call(t,i):n}function I(e,t,i){var n=""+Math.abs(e),s=t-n.length,a=e>=0;return(a?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},B={};function F(e,t,i,n){var s=n;if(typeof n==="string"){s=function e(){return this[n]()}}if(e){B[e]=s}if(t){B[t[0]]=function(){return I(s.apply(this,arguments),t[1],t[2])}}if(i){B[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)}}}function H(e){if(e.match(/\[[\s\S]/)){return e.replace(/^\[|\]$/g,"")}return e.replace(/\\/g,"")}function W(n){var s=n.match(R),e,a;for(e=0,a=s.length;e<a;e++){if(B[s[e]]){s[e]=B[s[e]]}else{s[e]=H(s[e])}}return function(e){var t="",i;for(i=0;i<a;i++){t+=L(s[i])?s[i].call(e,n):s[i]}return t}}function V(e,t){if(!e.isValid()){return e.localeData().invalidDate()}t=U(t,e.localeData());P[t]=P[t]||W(t);return P[t](e)}function U(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}Y.lastIndex=0;while(i>=0&&Y.test(e)){e=e.replace(Y,n);Y.lastIndex=0;i-=1}return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function j(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];if(t||!i){return t}this._longDateFormat[e]=i.match(R).map(function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd"){return e.slice(1)}return e}).join("");return this._longDateFormat[e]}var G="Invalid date";function q(){return this._invalidDate}var Z="%d",K=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var $={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,i,n){var s=this._relativeTime[i];return L(s)?s(e,t,i,n):s.replace(/%d/i,e)}function Q(e,t){var i=this._relativeTime[e>0?"future":"past"];return L(i)?i(t):i.replace(/%s/i,t)}var ee={};function te(e,t){var i=e.toLowerCase();ee[i]=ee[i+"s"]=ee[t]=e}function ie(e){return typeof e==="string"?ee[e]||ee[e.toLowerCase()]:undefined}function ne(e){var t={},i,n;for(n in e){if(l(e,n)){i=ie(n);if(i){t[i]=e[n]}}}return t}var se={};function ae(e,t){se[e]=t}function re(e){var t=[],i;for(i in e){if(l(e,i)){t.push({unit:i,priority:se[i]})}}t.sort(function(e,t){return e.priority-t.priority});return t}function oe(e){return e%4===0&&e%100!==0||e%400===0}function le(e){if(e<0){return Math.ceil(e)||0}else{return Math.floor(e)}}function ce(e){var t=+e,i=0;if(t!==0&&isFinite(t)){i=le(t)}return i}function he(t,i){return function(e){if(e!=null){ue(this,t,e);h.updateOffset(this,i);return this}else{return de(this,t)}}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ue(e,t,i){if(e.isValid()&&!isNaN(i)){if(t==="FullYear"&&oe(e.year())&&e.month()===1&&e.date()===29){i=ce(i);e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Je(i,e.month()))}else{e._d["set"+(e._isUTC?"UTC":"")+t](i)}}}function fe(e){e=ie(e);if(L(this[e])){return this[e]()}return this}function me(e,t){if(typeof e==="object"){e=ne(e);var i=re(e),n;for(n=0;n<i.length;n++){this[i[n].unit](e[i[n].unit])}}else{e=ie(e);if(L(this[e])){return this[e](t)}}return this}var ge=/\d/,ve=/\d\d/,pe=/\d{3}/,ye=/\d{4}/,be=/[+-]?\d{6}/,we=/\d\d?/,_e=/\d\d\d\d?/,ke=/\d\d\d\d\d\d?/,Se=/\d{1,3}/,Ee=/\d{1,4}/,Oe=/[+-]?\d{1,6}/,xe=/\d+/,Ce=/[+-]?\d+/,Le=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,Me=/[+-]?\d+(\.\d{1,3})?/,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ae;function Ne(e,i,n){Ae[e]=L(i)?i:function(e,t){return e&&n?n:i}}function Ie(e,t){if(!l(Ae,e)){return new RegExp(Re(e))}return Ae[e](t._strict,t._locale)}function Re(e){return Ye(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,s){return t||i||n||s}))}function Ye(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Ae={};var Pe={};function Be(e,n){var t,i=n;if(typeof e==="string"){e=[e]}if(d(n)){i=function e(t,i){i[n]=ce(t)}}for(t=0;t<e.length;t++){Pe[e[t]]=i}}function Fe(e,s){Be(e,function(e,t,i,n){i._w=i._w||{};s(e,i._w,i,n)})}function He(e,t,i){if(t!=null&&l(Pe,e)){Pe[e](t,i._a,i,e)}}var We=0,Ve=1,Ue=2,ze=3,je=4,Ge=5,qe=6,Ze=7,Ke=8,Xe;function $e(e,t){return(e%t+t)%t}if(Array.prototype.indexOf){Xe=Array.prototype.indexOf}else{Xe=function e(t){var i;for(i=0;i<this.length;++i){if(this[i]===t){return i}}return-1}}function Je(e,t){if(isNaN(e)||isNaN(t)){return NaN}var i=$e(t,12);e+=(t-i)/12;return i===1?oe(e)?29:28:31-i%7%2}F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),F("MMMM",0,0,function(e){return this.localeData().months(this,e)}),te("month","M"),ae("month",8),Ne("M",we),Ne("MM",we,ve),Ne("MMM",function(e,t){return t.monthsShortRegex(e)}),Ne("MMMM",function(e,t){return t.monthsRegex(e)}),Be(["M","MM"],function(e,t){t[Ve]=ce(e)-1}),Be(["MMM","MMMM"],function(e,t,i,n){var s=i._locale.monthsParse(e,n,i._strict);if(s!=null){t[Ve]=s}else{g(i).invalidMonth=e}});var Qe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),et="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=De,nt=De;function st(e,t){if(!e){return r(this._months)?this._months:this._months["standalone"]}return r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||tt).test(t)?"format":"standalone"][e.month()]}function at(e,t){if(!e){return r(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}return r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[tt.test(t)?"format":"standalone"][e.month()]}function rt(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(n=0;n<12;++n){a=m([2e3,n]);this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase();this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase()}}if(i){if(t==="MMM"){s=Xe.call(this._shortMonthsParse,r);return s!==-1?s:null}else{s=Xe.call(this._longMonthsParse,r);return s!==-1?s:null}}else{if(t==="MMM"){s=Xe.call(this._shortMonthsParse,r);if(s!==-1){return s}s=Xe.call(this._longMonthsParse,r);return s!==-1?s:null}else{s=Xe.call(this._longMonthsParse,r);if(s!==-1){return s}s=Xe.call(this._shortMonthsParse,r);return s!==-1?s:null}}}function ot(e,t,i){var n,s,a;if(this._monthsParseExact){return rt.call(this,e,t,i)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(n=0;n<12;n++){s=m([2e3,n]);if(i&&!this._longMonthsParse[n]){this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i");this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")}if(!i&&!this._monthsParse[n]){a="^"+this.months(s,"")+"|^"+this.monthsShort(s,"");this._monthsParse[n]=new RegExp(a.replace(".",""),"i")}if(i&&t==="MMMM"&&this._longMonthsParse[n].test(e)){return n}else if(i&&t==="MMM"&&this._shortMonthsParse[n].test(e)){return n}else if(!i&&this._monthsParse[n].test(e)){return n}}}function lt(e,t){var i;if(!e.isValid()){return e}if(typeof t==="string"){if(/^\d+$/.test(t)){t=ce(t)}else{t=e.localeData().monthsParse(t);if(!d(t)){return e}}}i=Math.min(e.date(),Je(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i);return e}function ct(e){if(e!=null){lt(this,e);h.updateOffset(this,true);return this}else{return de(this,"Month")}}function ht(){return Je(this.year(),this.month())}function dt(e){if(this._monthsParseExact){if(!l(this,"_monthsRegex")){ft.call(this)}if(e){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!l(this,"_monthsShortRegex")){this._monthsShortRegex=it}return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}}function ut(e){if(this._monthsParseExact){if(!l(this,"_monthsRegex")){ft.call(this)}if(e){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!l(this,"_monthsRegex")){this._monthsRegex=nt}return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}}function ft(){function e(e,t){return t.length-e.length}var t=[],i=[],n=[],s,a;for(s=0;s<12;s++){a=m([2e3,s]);t.push(this.monthsShort(a,""));i.push(this.months(a,""));n.push(this.months(a,""));n.push(this.monthsShort(a,""))}t.sort(e);i.sort(e);n.sort(e);for(s=0;s<12;s++){t[s]=Ye(t[s]);i[s]=Ye(i[s])}for(s=0;s<24;s++){n[s]=Ye(n[s])}this._monthsRegex=new RegExp("^("+n.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mt(e){return oe(e)?366:365}F("Y",0,0,function(){var e=this.year();return e<=9999?I(e,4):"+"+e}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,true],0,"year"),te("year","y"),ae("year",1),Ne("Y",Ce),Ne("YY",we,ve),Ne("YYYY",Ee,ye),Ne("YYYYY",Oe,be),Ne("YYYYYY",Oe,be),Be(["YYYYY","YYYYYY"],We),Be("YYYY",function(e,t){t[We]=e.length===2?h.parseTwoDigitYear(e):ce(e)}),Be("YY",function(e,t){t[We]=h.parseTwoDigitYear(e)}),Be("Y",function(e,t){t[We]=parseInt(e,10)}),h.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var gt=he("FullYear",true);function vt(){return oe(this.year())}function pt(e,t,i,n,s,a,r){var o;if(e<100&&e>=0){o=new Date(e+400,t,i,n,s,a,r);if(isFinite(o.getFullYear())){o.setFullYear(e)}}else{o=new Date(e,t,i,n,s,a,r)}return o}function yt(e){var t,i;if(e<100&&e>=0){i=Array.prototype.slice.call(arguments);i[0]=e+400;t=new Date(Date.UTC.apply(null,i));if(isFinite(t.getUTCFullYear())){t.setUTCFullYear(e)}}else{t=new Date(Date.UTC.apply(null,arguments))}return t}function bt(e,t,i){var n=7+t-i,s=(7+yt(e,0,n).getUTCDay()-t)%7;return-s+n-1}function wt(e,t,i,n,s){var a=(7+i-n)%7,r=bt(e,n,s),o=1+7*(t-1)+a+r,l,c;if(o<=0){l=e-1;c=mt(l)+o}else if(o>mt(e)){l=e+1;c=o-mt(e)}else{l=e;c=o}return{year:l,dayOfYear:c}}function _t(e,t,i){var n=bt(e.year(),t,i),s=Math.floor((e.dayOfYear()-n-1)/7)+1,a,r;if(s<1){r=e.year()-1;a=s+kt(r,t,i)}else if(s>kt(e.year(),t,i)){a=s-kt(e.year(),t,i);r=e.year()+1}else{r=e.year();a=s}return{week:a,year:r}}function kt(e,t,i){var n=bt(e,t,i),s=bt(e+1,t,i);return(mt(e)-n+s)/7}function St(e){return _t(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),te("week","w"),te("isoWeek","W"),ae("week",5),ae("isoWeek",5),Ne("w",we),Ne("ww",we,ve),Ne("W",we),Ne("WW",we,ve),Fe(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=ce(e)});var Et={dow:0,doy:6};function Ot(){return this._week.dow}function xt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Lt(e){var t=_t(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function Tt(e,t){if(typeof e!=="string"){return e}if(!isNaN(e)){return parseInt(e,10)}e=t.weekdaysParse(e);if(typeof e==="number"){return e}return null}function Mt(e,t){if(typeof e==="string"){return t.weekdaysParse(e)%7||7}return isNaN(e)?null:e}function Dt(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),te("day","d"),te("weekday","e"),te("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),Ne("d",we),Ne("e",we),Ne("E",we),Ne("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ne("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ne("dddd",function(e,t){return t.weekdaysRegex(e)}),Fe(["dd","ddd","dddd"],function(e,t,i,n){var s=i._locale.weekdaysParse(e,n,i._strict);if(s!=null){t.d=s}else{g(i).invalidWeekday=e}}),Fe(["d","e","E"],function(e,t,i,n){t[n]=ce(e)});var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=De,Yt=De,Pt=De;function Bt(e,t){var i=r(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Dt(i,this._week.dow):e?i[e.day()]:i}function Ft(e){return e===true?Dt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return e===true?Dt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Wt(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(n=0;n<7;++n){a=m([2e3,1]).day(n);this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase();this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase();this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase()}}if(i){if(t==="dddd"){s=Xe.call(this._weekdaysParse,r);return s!==-1?s:null}else if(t==="ddd"){s=Xe.call(this._shortWeekdaysParse,r);return s!==-1?s:null}else{s=Xe.call(this._minWeekdaysParse,r);return s!==-1?s:null}}else{if(t==="dddd"){s=Xe.call(this._weekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._shortWeekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._minWeekdaysParse,r);return s!==-1?s:null}else if(t==="ddd"){s=Xe.call(this._shortWeekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._weekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._minWeekdaysParse,r);return s!==-1?s:null}else{s=Xe.call(this._minWeekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._weekdaysParse,r);if(s!==-1){return s}s=Xe.call(this._shortWeekdaysParse,r);return s!==-1?s:null}}}function Vt(e,t,i){var n,s,a;if(this._weekdaysParseExact){return Wt.call(this,e,t,i)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(n=0;n<7;n++){s=m([2e3,1]).day(n);if(i&&!this._fullWeekdaysParse[n]){this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i");this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i");this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")}if(!this._weekdaysParse[n]){a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,"");this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")}if(i&&t==="dddd"&&this._fullWeekdaysParse[n].test(e)){return n}else if(i&&t==="ddd"&&this._shortWeekdaysParse[n].test(e)){return n}else if(i&&t==="dd"&&this._minWeekdaysParse[n].test(e)){return n}else if(!i&&this._weekdaysParse[n].test(e)){return n}}}function Ut(e){if(!this.isValid()){return e!=null?this:NaN}var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=Tt(e,this.localeData());return this.add(e-t,"d")}else{return t}}function zt(e){if(!this.isValid()){return e!=null?this:NaN}var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function jt(e){if(!this.isValid()){return e!=null?this:NaN}if(e!=null){var t=Mt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else{return this.day()||7}}function Gt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex")){Kt.call(this)}if(e){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!l(this,"_weekdaysRegex")){this._weekdaysRegex=Rt}return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function qt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex")){Kt.call(this)}if(e){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!l(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=Yt}return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function Zt(e){if(this._weekdaysParseExact){if(!l(this,"_weekdaysRegex")){Kt.call(this)}if(e){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!l(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=Pt}return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function Kt(){function e(e,t){return t.length-e.length}var t=[],i=[],n=[],s=[],a,r,o,l,c;for(a=0;a<7;a++){r=m([2e3,1]).day(a);o=Ye(this.weekdaysMin(r,""));l=Ye(this.weekdaysShort(r,""));c=Ye(this.weekdays(r,""));t.push(o);i.push(l);n.push(c);s.push(o);s.push(l);s.push(c)}t.sort(e);i.sort(e);n.sort(e);s.sort(e);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xt(){return this.hours()%12||12}function $t(){return this.hours()||24}function Jt(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qt(e,t){return t._meridiemParse}function ei(e){return(e+"").toLowerCase().charAt(0)==="p"}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Xt),F("k",["kk",2],0,$t),F("hmm",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)}),F("hmmss",0,0,function(){return""+Xt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)}),Jt("a",true),Jt("A",false),te("hour","h"),ae("hour",13),Ne("a",Qt),Ne("A",Qt),Ne("H",we),Ne("h",we),Ne("k",we),Ne("HH",we,ve),Ne("hh",we,ve),Ne("kk",we,ve),Ne("hmm",_e),Ne("hmmss",ke),Ne("Hmm",_e),Ne("Hmmss",ke),Be(["H","HH"],ze),Be(["k","kk"],function(e,t,i){var n=ce(e);t[ze]=n===24?0:n}),Be(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e);i._meridiem=e}),Be(["h","hh"],function(e,t,i){t[ze]=ce(e);g(i).bigHour=true}),Be("hmm",function(e,t,i){var n=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n));g(i).bigHour=true}),Be("hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n,2));t[Ge]=ce(e.substr(s));g(i).bigHour=true}),Be("Hmm",function(e,t,i){var n=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n))}),Be("Hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[ze]=ce(e.substr(0,n));t[je]=ce(e.substr(n,2));t[Ge]=ce(e.substr(s))});var ti,ii=he("Hours",true);function ni(e,t,i){if(e>11){return i?"pm":"PM"}else{return i?"am":"AM"}}var si={calendar:A,longDateFormat:z,invalidDate:G,ordinal:Z,dayOfMonthOrdinalParse:K,relativeTime:$,months:Qe,monthsShort:et,week:Et,weekdays:At,weekdaysMin:It,weekdaysShort:Nt,meridiemParse:/[ap]\.?m?\.?/i},ai={},ri={},oi;function li(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i<n;i+=1){if(e[i]!==t[i]){return i}}return n}function ci(e){return e?e.toLowerCase().replace("_","-"):e}function hi(e){var t=0,i,n,s,a;while(t<e.length){a=ci(e[t]).split("-");i=a.length;n=ci(e[t+1]);n=n?n.split("-"):null;while(i>0){s=di(a.slice(0,i).join("-"));if(s){return s}if(n&&n.length>=i&&li(a,n)>=i-1){break}i--}t++}return oi}function di(t){var e=null,i;if(ai[t]===undefined&&"object"!=="undefined"&&lr&&lr.exports){try{e=oi._abbr;i=cr;i("./locale/"+t);ui(e)}catch(e){ai[t]=null}}return ai[t]}function ui(e,t){var i;if(e){if(a(t)){i=gi(e)}else{i=fi(e,t)}if(i){oi=i}else{if(typeof console!=="undefined"&&console.warn){console.warn("Locale "+e+" not found. Did you forget to load it?")}}}return oi._abbr}function fi(e,t){if(t!==null){var i,n=si;t.abbr=e;if(ai[e]!=null){C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change "+"an existing locale. moment.defineLocale(localeName, "+"config) should only be used for creating a new locale "+"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");n=ai[e]._config}else if(t.parentLocale!=null){if(ai[t.parentLocale]!=null){n=ai[t.parentLocale]._config}else{i=di(t.parentLocale);if(i!=null){n=i._config}else{if(!ri[t.parentLocale]){ri[t.parentLocale]=[]}ri[t.parentLocale].push({name:e,config:t});return null}}}ai[e]=new D(M(n,t));if(ri[e]){ri[e].forEach(function(e){fi(e.name,e.config)})}ui(e);return ai[e]}else{delete ai[e];return null}}function mi(e,t){if(null!=t){var i,n,s=si;null!=ai[e]&&null!=ai[e].parentLocale?ai[e].set(M(ai[e]._config,t)):(null!=(n=di(e))&&(s=n._config),t=M(s,t),null==n&&(t.abbr=e),(i=new D(t)).parentLocale=ai[e],ai[e]=i),ui(e)}else null!=ai[e]&&(null!=ai[e].parentLocale?(ai[e]=ai[e].parentLocale,e===ui()&&ui(e)):null!=ai[e]&&delete ai[e]);return ai[e]}function gi(e){var t;if(e&&e._locale&&e._locale._abbr){e=e._locale._abbr}if(!e){return oi}if(!r(e)){t=di(e);if(t){return t}e=[e]}return hi(e)}function vi(){return x(ai)}function pi(e){var t,i=e._a;if(i&&g(e).overflow===-2){t=i[Ve]<0||i[Ve]>11?Ve:i[Ue]<1||i[Ue]>Je(i[We],i[Ve])?Ue:i[ze]<0||i[ze]>24||i[ze]===24&&(i[je]!==0||i[Ge]!==0||i[qe]!==0)?ze:i[je]<0||i[je]>59?je:i[Ge]<0||i[Ge]>59?Ge:i[qe]<0||i[qe]>999?qe:-1;if(g(e)._overflowDayOfYear&&(t<We||t>Ue)){t=Ue}if(g(e)._overflowWeeks&&t===-1){t=Ze}if(g(e)._overflowWeekday&&t===-1){t=Ke}g(e).overflow=t}return e}var yi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wi=/Z|[+-]\d\d(?::?\d\d)?/,_i=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],ki=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Si=/^\/?Date\((-?\d+)/i,Ei=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Oi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function xi(e){var t,i,n=e._i,s=yi.exec(n)||bi.exec(n),a,r,o,l;if(s){g(e).iso=true;for(t=0,i=_i.length;t<i;t++){if(_i[t][1].exec(s[1])){r=_i[t][0];a=_i[t][2]!==false;break}}if(r==null){e._isValid=false;return}if(s[3]){for(t=0,i=ki.length;t<i;t++){if(ki[t][1].exec(s[3])){o=(s[2]||" ")+ki[t][0];break}}if(o==null){e._isValid=false;return}}if(!a&&o!=null){e._isValid=false;return}if(s[4]){if(wi.exec(s[4])){l="Z"}else{e._isValid=false;return}}e._f=r+(o||"")+(l||"");Bi(e)}else{e._isValid=false}}function Ci(e,t,i,n,s,a){var r=[Li(e),et.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(s,10)];if(a){r.push(parseInt(a,10))}return r}function Li(e){var t=parseInt(e,10);if(t<=49){return 2e3+t}else if(t<=999){return 1900+t}return t}function Ti(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mi(e,t,i){if(e){var n=Nt.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s){g(i).weekdayMismatch=true;i._isValid=false;return false}}return true}function Di(e,t,i){if(e){return Oi[e]}else if(t){return 0}else{var n=parseInt(i,10),s=n%100,a=(n-s)/100;return a*60+s}}function Ai(e){var t=Ei.exec(Ti(e._i)),i;if(t){i=Ci(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Mi(t[1],i,e)){return}e._a=i;e._tzm=Di(t[8],t[9],t[10]);e._d=yt.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);g(e).rfc2822=true}else{e._isValid=false}}function Ni(e){var t=Si.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}xi(e);if(e._isValid===false){delete e._isValid}else{return}Ai(e);if(e._isValid===false){delete e._isValid}else{return}if(e._strict){e._isValid=false}else{h.createFromInputFallback(e)}}function Ii(e,t,i){if(e!=null){return e}if(t!=null){return t}return i}function Ri(e){var t=new Date(h.now());if(e._useUTC){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]}return[t.getFullYear(),t.getMonth(),t.getDate()]}function Yi(e){var t,i,n=[],s,a,r;if(e._d){return}s=Ri(e);if(e._w&&e._a[Ue]==null&&e._a[Ve]==null){Pi(e)}if(e._dayOfYear!=null){r=Ii(e._a[We],s[We]);if(e._dayOfYear>mt(r)||e._dayOfYear===0){g(e)._overflowDayOfYear=true}i=yt(r,0,e._dayOfYear);e._a[Ve]=i.getUTCMonth();e._a[Ue]=i.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t){e._a[t]=n[t]=s[t]}for(;t<7;t++){e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t]}if(e._a[ze]===24&&e._a[je]===0&&e._a[Ge]===0&&e._a[qe]===0){e._nextDay=true;e._a[ze]=0}e._d=(e._useUTC?yt:pt).apply(null,n);a=e._useUTC?e._d.getUTCDay():e._d.getDay();if(e._tzm!=null){e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm)}if(e._nextDay){e._a[ze]=24}if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==a){g(e).weekdayMismatch=true}}function Pi(e){var t,i,n,s,a,r,o,l,c;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){a=1;r=4;i=Ii(t.GG,e._a[We],_t(Gi(),1,4).year);n=Ii(t.W,1);s=Ii(t.E,1);if(s<1||s>7){l=true}}else{a=e._locale._week.dow;r=e._locale._week.doy;c=_t(Gi(),a,r);i=Ii(t.gg,e._a[We],c.year);n=Ii(t.w,c.week);if(t.d!=null){s=t.d;if(s<0||s>6){l=true}}else if(t.e!=null){s=t.e+a;if(t.e<0||t.e>6){l=true}}else{s=a}}if(n<1||n>kt(i,a,r)){g(e)._overflowWeeks=true}else if(l!=null){g(e)._overflowWeekday=true}else{o=wt(i,n,s,a,r);e._a[We]=o.year;e._dayOfYear=o.dayOfYear}}function Bi(e){if(e._f===h.ISO_8601){xi(e);return}if(e._f===h.RFC_2822){Ai(e);return}e._a=[];g(e).empty=true;var t=""+e._i,i,n,s,a,r,o=t.length,l=0,c;s=U(e._f,e._locale).match(R)||[];for(i=0;i<s.length;i++){a=s[i];n=(t.match(Ie(a,e))||[])[0];if(n){r=t.substr(0,t.indexOf(n));if(r.length>0){g(e).unusedInput.push(r)}t=t.slice(t.indexOf(n)+n.length);l+=n.length}if(B[a]){if(n){g(e).empty=false}else{g(e).unusedTokens.push(a)}He(a,n,e)}else if(e._strict&&!n){g(e).unusedTokens.push(a)}}g(e).charsLeftOver=o-l;if(t.length>0){g(e).unusedInput.push(t)}if(e._a[ze]<=12&&g(e).bigHour===true&&e._a[ze]>0){g(e).bigHour=undefined}g(e).parsedDateParts=e._a.slice(0);g(e).meridiem=e._meridiem;e._a[ze]=Fi(e._locale,e._a[ze],e._meridiem);c=g(e).era;if(c!==null){e._a[We]=e._locale.erasConvertYear(c,e._a[We])}Yi(e);pi(e)}function Fi(e,t,i){var n;if(i==null){return t}if(e.meridiemHour!=null){return e.meridiemHour(t,i)}else if(e.isPM!=null){n=e.isPM(i);if(n&&t<12){t+=12}if(!n&&t===12){t=0}return t}else{return t}}function Hi(e){var t,i,n,s,a,r,o=false;if(e._f.length===0){g(e).invalidFormat=true;e._d=new Date(NaN);return}for(s=0;s<e._f.length;s++){a=0;r=false;t=w({},e);if(e._useUTC!=null){t._useUTC=e._useUTC}t._f=e._f[s];Bi(t);if(v(t)){r=true}a+=g(t).charsLeftOver;a+=g(t).unusedTokens.length*10;g(t).score=a;if(!o){if(n==null||a<n||r){n=a;i=t;if(r){o=true}}}else{if(a<n){n=a;i=t}}}f(e,i||t)}function Wi(e){if(e._d){return}var t=ne(e._i),i=t.day===undefined?t.date:t.day;e._a=n([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)});Yi(e)}function Vi(e){var t=new _(pi(Ui(e)));if(t._nextDay){t.add(1,"d");t._nextDay=undefined}return t}function Ui(e){var t=e._i,i=e._f;e._locale=e._locale||gi(e._l);if(t===null||i===undefined&&t===""){return p({nullInput:true})}if(typeof t==="string"){e._i=t=e._locale.preparse(t)}if(k(t)){return new _(pi(t))}else if(u(t)){e._d=t}else if(r(i)){Hi(e)}else if(i){Bi(e)}else{zi(e)}if(!v(e)){e._d=null}return e}function zi(e){var t=e._i;if(a(t)){e._d=new Date(h.now())}else if(u(t)){e._d=new Date(t.valueOf())}else if(typeof t==="string"){Ni(e)}else if(r(t)){e._a=n(t.slice(0),function(e){return parseInt(e,10)});Yi(e)}else if(o(t)){Wi(e)}else if(d(t)){e._d=new Date(t)}else{h.createFromInputFallback(e)}}function ji(e,t,i,n,s){var a={};if(t===true||t===false){n=t;t=undefined}if(i===true||i===false){n=i;i=undefined}if(o(e)&&c(e)||r(e)&&e.length===0){e=undefined}a._isAMomentObject=true;a._useUTC=a._isUTC=s;a._l=i;a._i=e;a._f=t;a._strict=n;return Vi(a)}function Gi(e,t,i,n){return ji(e,t,i,n,false)}h.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), "+"which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are "+"discouraged and will be removed in an upcoming major release. Please refer to "+"http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),h.ISO_8601=function(){},h.RFC_2822=function(){};var qi=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Gi.apply(null,arguments);if(this.isValid()&&e.isValid()){return e<this?this:e}else{return p()}}),Zi=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Gi.apply(null,arguments);if(this.isValid()&&e.isValid()){return e>this?this:e}else{return p()}});function Ki(e,t){var i,n;if(t.length===1&&r(t[0])){t=t[0]}if(!t.length){return Gi()}i=t[0];for(n=1;n<t.length;++n){if(!t[n].isValid()||t[n][e](i)){i=t[n]}}return i}function Xi(){var e;return Ki("isBefore",[].slice.call(arguments,0))}function $i(){var e;return Ki("isAfter",[].slice.call(arguments,0))}var Ji=function e(){return Date.now?Date.now():+new Date},Qi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function en(e){var t,i=false,n;for(t in e){if(l(e,t)&&!(Xe.call(Qi,t)!==-1&&(e[t]==null||!isNaN(e[t])))){return false}}for(n=0;n<Qi.length;++n){if(e[Qi[n]]){if(i){return false}if(parseFloat(e[Qi[n]])!==ce(e[Qi[n]])){i=true}}}return true}function tn(){return this._isValid}function nn(){return xn(NaN)}function sn(e){var t=ne(e),i=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||t.isoWeek||0,r=t.day||0,o=t.hour||0,l=t.minute||0,c=t.second||0,h=t.millisecond||0;this._isValid=en(t);this._milliseconds=+h+c*1e3+l*6e4+o*1e3*60*60;this._days=+r+a*7;this._months=+s+n*3+i*12;this._data={};this._locale=gi();this._bubble()}function an(e){return e instanceof sn}function rn(e){if(e<0){return Math.round(-1*e)*-1}else{return Math.round(e)}}function on(e,t,i){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0,r;for(r=0;r<n;r++){if(i&&e[r]!==t[r]||!i&&ce(e[r])!==ce(t[r])){a++}}return a+s}function ln(e,i){F(e,0,0,function(){var e=this.utcOffset(),t="+";if(e<0){e=-e;t="-"}return t+I(~~(e/60),2)+i+I(~~e%60,2)})}ln("Z",":"),ln("ZZ",""),Ne("Z",Te),Ne("ZZ",Te),Be(["Z","ZZ"],function(e,t,i){i._useUTC=true;i._tzm=hn(Te,e)});var cn=/([\+\-]|\d\d)/gi;function hn(e,t){var i=(t||"").match(e),n,s,a;if(i===null){return null}n=i[i.length-1]||[];s=(n+"").match(cn)||["-",0,0];a=+(s[1]*60)+ce(s[2]);return a===0?0:s[0]==="+"?a:-a}function dn(e,t){var i,n;if(t._isUTC){i=t.clone();n=(k(e)||u(e)?e.valueOf():Gi(e).valueOf())-i.valueOf();i._d.setTime(i._d.valueOf()+n);h.updateOffset(i,false);return i}else{return Gi(e).local()}}function un(e){return-Math.round(e._d.getTimezoneOffset())}function fn(e,t,i){var n=this._offset||0,s;if(!this.isValid()){return e!=null?this:NaN}if(e!=null){if(typeof e==="string"){e=hn(Te,e);if(e===null){return this}}else if(Math.abs(e)<16&&!i){e=e*60}if(!this._isUTC&&t){s=un(this)}this._offset=e;this._isUTC=true;if(s!=null){this.add(s,"m")}if(n!==e){if(!t||this._changeInProgress){Dn(this,xn(e-n,"m"),1,false)}else if(!this._changeInProgress){this._changeInProgress=true;h.updateOffset(this,true);this._changeInProgress=null}}return this}else{return this._isUTC?n:un(this)}}function mn(e,t){if(e!=null){if(typeof e!=="string"){e=-e}this.utcOffset(e,t);return this}else{return-this.utcOffset()}}function gn(e){return this.utcOffset(0,e)}function vn(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=false;if(e){this.subtract(un(this),"m")}}return this}function pn(){if(this._tzm!=null){this.utcOffset(this._tzm,false,true)}else if(typeof this._i==="string"){var e=hn(Le,this._i);if(e!=null){this.utcOffset(e)}else{this.utcOffset(0,true)}}return this}function yn(e){if(!this.isValid()){return false}e=e?Gi(e).utcOffset():0;return(this.utcOffset()-e)%60===0}function bn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wn(){if(!a(this._isDSTShifted)){return this._isDSTShifted}var e={},t;w(e,this);e=Ui(e);if(e._a){t=e._isUTC?m(e._a):Gi(e._a);this._isDSTShifted=this.isValid()&&on(e._a,t.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function _n(){return this.isValid()?!this._isUTC:false}function kn(){return this.isValid()?this._isUTC:false}function Sn(){return this.isValid()?this._isUTC&&this._offset===0:false}h.updateOffset=function(){};var En=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,On=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xn(e,t){var i=e,n=null,s,a,r;if(an(e)){i={ms:e._milliseconds,d:e._days,M:e._months}}else if(d(e)||!isNaN(+e)){i={};if(t){i[t]=+e}else{i.milliseconds=+e}}else if(n=En.exec(e)){s=n[1]==="-"?-1:1;i={y:0,d:ce(n[Ue])*s,h:ce(n[ze])*s,m:ce(n[je])*s,s:ce(n[Ge])*s,ms:ce(rn(n[qe]*1e3))*s}}else if(n=On.exec(e)){s=n[1]==="-"?-1:1;i={y:Cn(n[2],s),M:Cn(n[3],s),w:Cn(n[4],s),d:Cn(n[5],s),h:Cn(n[6],s),m:Cn(n[7],s),s:Cn(n[8],s)}}else if(i==null){i={}}else if(typeof i==="object"&&("from"in i||"to"in i)){r=Tn(Gi(i.from),Gi(i.to));i={};i.ms=r.milliseconds;i.M=r.months}a=new sn(i);if(an(e)&&l(e,"_locale")){a._locale=e._locale}if(an(e)&&l(e,"_isValid")){a._isValid=e._isValid}return a}function Cn(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function Ln(e,t){var i={};i.months=t.month()-e.month()+(t.year()-e.year())*12;if(e.clone().add(i.months,"M").isAfter(t)){--i.months}i.milliseconds=+t-+e.clone().add(i.months,"M");return i}function Tn(e,t){var i;if(!(e.isValid()&&t.isValid())){return{milliseconds:0,months:0}}t=dn(t,e);if(e.isBefore(t)){i=Ln(e,t)}else{i=Ln(t,e);i.milliseconds=-i.milliseconds;i.months=-i.months}return i}function Mn(s,a){return function(e,t){var i,n;if(t!==null&&!isNaN(+t)){C(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");n=e;e=t;t=n}i=xn(e,t);Dn(this,i,s);return this}}function Dn(e,t,i,n){var s=t._milliseconds,a=rn(t._days),r=rn(t._months);if(!e.isValid()){return}n=n==null?true:n;if(r){lt(e,de(e,"Month")+r*i)}if(a){ue(e,"Date",de(e,"Date")+a*i)}if(s){e._d.setTime(e._d.valueOf()+s*i)}if(n){h.updateOffset(e,a||r)}}xn.fn=sn.prototype,xn.invalid=nn;var An=Mn(1,"add"),Nn=Mn(-1,"subtract");function In(e){return typeof e==="string"||e instanceof String}function Rn(e){return k(e)||u(e)||In(e)||d(e)||Pn(e)||Yn(e)||e===null||e===undefined}function Yn(e){var t=o(e)&&!c(e),i=false,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,a;for(s=0;s<n.length;s+=1){a=n[s];i=i||l(e,a)}return t&&i}function Pn(t){var e=r(t),i=false;if(e){i=t.filter(function(e){return!d(e)&&In(t)}).length===0}return e&&i}function Bn(e){var t=o(e)&&!c(e),i=false,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,a;for(s=0;s<n.length;s+=1){a=n[s];i=i||l(e,a)}return t&&i}function Fn(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function Hn(e,t){if(arguments.length===1){if(Rn(arguments[0])){e=arguments[0];t=undefined}else if(Bn(arguments[0])){t=arguments[0];e=undefined}}var i=e||Gi(),n=dn(i,this).startOf("day"),s=h.calendarFormat(this,n)||"sameElse",a=t&&(L(t[s])?t[s].call(this,i):t[s]);return this.format(a||this.localeData().calendar(s,this,Gi(i)))}function Wn(){return new _(this)}function Vn(e,t){var i=k(e)?e:Gi(e);if(!(this.isValid()&&i.isValid())){return false}t=ie(t)||"millisecond";if(t==="millisecond"){return this.valueOf()>i.valueOf()}else{return i.valueOf()<this.clone().startOf(t).valueOf()}}function Un(e,t){var i=k(e)?e:Gi(e);if(!(this.isValid()&&i.isValid())){return false}t=ie(t)||"millisecond";if(t==="millisecond"){return this.valueOf()<i.valueOf()}else{return this.clone().endOf(t).valueOf()<i.valueOf()}}function zn(e,t,i,n){var s=k(e)?e:Gi(e),a=k(t)?t:Gi(t);if(!(this.isValid()&&s.isValid()&&a.isValid())){return false}n=n||"()";return(n[0]==="("?this.isAfter(s,i):!this.isBefore(s,i))&&(n[1]===")"?this.isBefore(a,i):!this.isAfter(a,i))}function jn(e,t){var i=k(e)?e:Gi(e),n;if(!(this.isValid()&&i.isValid())){return false}t=ie(t)||"millisecond";if(t==="millisecond"){return this.valueOf()===i.valueOf()}else{n=i.valueOf();return this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()}}function Gn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function qn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zn(e,t,i){var n,s,a;if(!this.isValid()){return NaN}n=dn(e,this);if(!n.isValid()){return NaN}s=(n.utcOffset()-this.utcOffset())*6e4;t=ie(t);switch(t){case"year":a=Kn(this,n)/12;break;case"month":a=Kn(this,n);break;case"quarter":a=Kn(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-s)/864e5;break;case"week":a=(this-n-s)/6048e5;break;default:a=this-n}return i?a:le(a)}function Kn(e,t){if(e.date()<t.date()){return-Kn(t,e)}var i=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(i,"months"),s,a;if(t-n<0){s=e.clone().add(i-1,"months");a=(t-n)/(n-s)}else{s=e.clone().add(i+1,"months");a=(t-n)/(s-n)}return-(i+a)||0}function Xn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $n(e){if(!this.isValid()){return null}var t=e!==true,i=t?this.clone().utc():this;if(i.year()<0||i.year()>9999){return V(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(L(Date.prototype.toISOString)){if(t){return this.toDate().toISOString()}else{return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",V(i,"Z"))}}return V(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jn(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var e="moment",t="",i,n,s,a;if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}i="["+e+'("]';n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";s="-MM-DD[T]HH:mm:ss.SSS";a=t+'[")]';return this.format(i+n+s+a)}function Qn(e){if(!e){e=this.isUtc()?h.defaultFormatUtc:h.defaultFormat}var t=V(this,e);return this.localeData().postformat(t)}function es(e,t){if(this.isValid()&&(k(e)&&e.isValid()||Gi(e).isValid())){return xn({to:this,from:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function ts(e){return this.from(Gi(),e)}function is(e,t){if(this.isValid()&&(k(e)&&e.isValid()||Gi(e).isValid())){return xn({from:this,to:e}).locale(this.locale()).humanize(!t)}else{return this.localeData().invalidDate()}}function ns(e){return this.to(Gi(),e)}function ss(e){var t;if(e===undefined){return this._locale._abbr}else{t=gi(e);if(t!=null){this._locale=t}return this}}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var as=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===undefined){return this.localeData()}else{return this.locale(e)}});function rs(){return this._locale}var os=1e3,ls=60*os,cs=60*ls,hs=(365*400+97)*24*cs;function ds(e,t){return(e%t+t)%t}function us(e,t,i){if(e<100&&e>=0){return new Date(e+400,t,i)-hs}else{return new Date(e,t,i).valueOf()}}function fs(e,t,i){if(e<100&&e>=0){return Date.UTC(e+400,t,i)-hs}else{return Date.UTC(e,t,i)}}function ms(e){var t,i;e=ie(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}i=this._isUTC?fs:us;switch(e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf();t-=ds(t+(this._isUTC?0:this.utcOffset()*ls),cs);break;case"minute":t=this._d.valueOf();t-=ds(t,ls);break;case"second":t=this._d.valueOf();t-=ds(t,os);break}this._d.setTime(t);h.updateOffset(this,true);return this}function gs(e){var t,i;e=ie(e);if(e===undefined||e==="millisecond"||!this.isValid()){return this}i=this._isUTC?fs:us;switch(e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf();t+=cs-ds(t+(this._isUTC?0:this.utcOffset()*ls),cs)-1;break;case"minute":t=this._d.valueOf();t+=ls-ds(t,ls)-1;break;case"second":t=this._d.valueOf();t+=os-ds(t,os)-1;break}this._d.setTime(t);h.updateOffset(this,true);return this}function vs(){return this._d.valueOf()-(this._offset||0)*6e4}function ps(){return Math.floor(this.valueOf()/1e3)}function ys(){return new Date(this.valueOf())}function bs(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ws(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function _s(){return this.isValid()?this.toISOString():null}function ks(){return v(this)}function Ss(){return f({},g(this))}function Es(){return g(this).overflow}function Os(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xs(e,t){var i,n,s,a=this._eras||gi("en")._eras;for(i=0,n=a.length;i<n;++i){switch(typeof a[i].since){case"string":s=h(a[i].since).startOf("day");a[i].since=s.valueOf();break}switch(typeof a[i].until){case"undefined":a[i].until=+Infinity;break;case"string":s=h(a[i].until).startOf("day").valueOf();a[i].until=s.valueOf();break}}return a}function Cs(e,t,i){var n,s,a=this.eras(),r,o,l;e=e.toUpperCase();for(n=0,s=a.length;n<s;++n){r=a[n].name.toUpperCase();o=a[n].abbr.toUpperCase();l=a[n].narrow.toUpperCase();if(i){switch(t){case"N":case"NN":case"NNN":if(o===e){return a[n]}break;case"NNNN":if(r===e){return a[n]}break;case"NNNNN":if(l===e){return a[n]}break}}else if([r,o,l].indexOf(e)>=0){return a[n]}}}function Ls(e,t){var i=e.since<=e.until?+1:-1;if(t===undefined){return h(e.since).year()}else{return h(e.since).year()+(t-e.offset)*i}}function Ts(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){i=this.startOf("day").valueOf();if(n[e].since<=i&&i<=n[e].until){return n[e].name}if(n[e].until<=i&&i<=n[e].since){return n[e].name}}return""}function Ms(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){i=this.startOf("day").valueOf();if(n[e].since<=i&&i<=n[e].until){return n[e].narrow}if(n[e].until<=i&&i<=n[e].since){return n[e].narrow}}return""}function Ds(){var e,t,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){i=this.startOf("day").valueOf();if(n[e].since<=i&&i<=n[e].until){return n[e].abbr}if(n[e].until<=i&&i<=n[e].since){return n[e].abbr}}return""}function As(){var e,t,i,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){i=s[e].since<=s[e].until?+1:-1;n=this.startOf("day").valueOf();if(s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since){return(this.year()-h(s[e].since).year())*i+s[e].offset}}return this.year()}function Ns(e){if(!l(this,"_erasNameRegex")){Hs.call(this)}return e?this._erasNameRegex:this._erasRegex}function Is(e){if(!l(this,"_erasAbbrRegex")){Hs.call(this)}return e?this._erasAbbrRegex:this._erasRegex}function Rs(e){if(!l(this,"_erasNarrowRegex")){Hs.call(this)}return e?this._erasNarrowRegex:this._erasRegex}function Ys(e,t){return t.erasAbbrRegex(e)}function Ps(e,t){return t.erasNameRegex(e)}function Bs(e,t){return t.erasNarrowRegex(e)}function Fs(e,t){return t._eraYearOrdinalRegex||xe}function Hs(){var e=[],t=[],i=[],n=[],s,a,r=this.eras();for(s=0,a=r.length;s<a;++s){t.push(Ye(r[s].name));e.push(Ye(r[s].abbr));i.push(Ye(r[s].narrow));n.push(Ye(r[s].name));n.push(Ye(r[s].abbr));n.push(Ye(r[s].narrow))}this._erasRegex=new RegExp("^("+n.join("|")+")","i");this._erasNameRegex=new RegExp("^("+t.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Ws(e,t){F(0,[e,e.length],0,t)}function Vs(e){return Zs.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Us(e){return Zs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zs(){return kt(this.year(),1,4)}function js(){return kt(this.isoWeekYear(),1,4)}function Gs(){var e=this.localeData()._week;return kt(this.year(),e.dow,e.doy)}function qs(){var e=this.localeData()._week;return kt(this.weekYear(),e.dow,e.doy)}function Zs(e,t,i,n,s){var a;if(e==null){return _t(this,n,s).year}else{a=kt(e,n,s);if(t>a){t=a}return Ks.call(this,e,t,i,n,s)}}function Ks(e,t,i,n,s){var a=wt(e,t,i,n,s),r=yt(a.year,0,a.dayOfYear);this.year(r.getUTCFullYear());this.month(r.getUTCMonth());this.date(r.getUTCDate());return this}function Xs(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Ne("N",Ys),Ne("NN",Ys),Ne("NNN",Ys),Ne("NNNN",Ps),Ne("NNNNN",Bs),Be(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,n){var s=i._locale.erasParse(e,n,i._strict);if(s){g(i).era=s}else{g(i).invalidEra=e}}),Ne("y",xe),Ne("yy",xe),Ne("yyy",xe),Ne("yyyy",xe),Ne("yo",Fs),Be(["y","yy","yyy","yyyy"],We),Be(["yo"],function(e,t,i,n){var s;if(i._locale._eraYearOrdinalRegex){s=e.match(i._locale._eraYearOrdinalRegex)}if(i._locale.eraYearOrdinalParse){t[We]=i._locale.eraYearOrdinalParse(e,s)}else{t[We]=parseInt(e,10)}}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ws("gggg","weekYear"),Ws("ggggg","weekYear"),Ws("GGGG","isoWeekYear"),Ws("GGGGG","isoWeekYear"),te("weekYear","gg"),te("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),Ne("G",Ce),Ne("g",Ce),Ne("GG",we,ve),Ne("gg",we,ve),Ne("GGGG",Ee,ye),Ne("gggg",Ee,ye),Ne("GGGGG",Oe,be),Ne("ggggg",Oe,be),Fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=ce(e)}),Fe(["gg","GG"],function(e,t,i,n){t[n]=h.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),te("quarter","Q"),ae("quarter",7),Ne("Q",ge),Be("Q",function(e,t){t[Ve]=(ce(e)-1)*3}),F("D",["DD",2],"Do","date"),te("date","D"),ae("date",9),Ne("D",we),Ne("DD",we,ve),Ne("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Be(["D","DD"],Ue),Be("Do",function(e,t){t[Ue]=ce(e.match(we)[0])});var $s=he("Date",true);function Js(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),te("dayOfYear","DDD"),ae("dayOfYear",4),Ne("DDD",Se),Ne("DDDD",pe),Be(["DDD","DDDD"],function(e,t,i){i._dayOfYear=ce(e)}),F("m",["mm",2],0,"minute"),te("minute","m"),ae("minute",14),Ne("m",we),Ne("mm",we,ve),Be(["m","mm"],je);var Qs=he("Minutes",false);F("s",["ss",2],0,"second"),te("second","s"),ae("second",15),Ne("s",we),Ne("ss",we,ve),Be(["s","ss"],Ge);var ea=he("Seconds",false),ta,ia;for(F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return this.millisecond()*10}),F(0,["SSSSS",5],0,function(){return this.millisecond()*100}),F(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),F(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),F(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),F(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),te("millisecond","ms"),ae("millisecond",16),Ne("S",Se,ge),Ne("SS",Se,ve),Ne("SSS",Se,pe),ta="SSSS";ta.length<=9;ta+="S"){Ne(ta,xe)}function na(e,t){t[qe]=ce(("0."+e)*1e3)}for(ta="S";ta.length<=9;ta+="S"){Be(ta,na)}function sa(){return this._isUTC?"UTC":""}function aa(){return this._isUTC?"Coordinated Universal Time":""}ia=he("Milliseconds",false),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var ra=_.prototype;if(ra.add=An,ra.calendar=Hn,ra.clone=Wn,ra.diff=Zn,ra.endOf=gs,ra.format=Qn,ra.from=es,ra.fromNow=ts,ra.to=is,ra.toNow=ns,ra.get=fe,ra.invalidAt=Es,ra.isAfter=Vn,ra.isBefore=Un,ra.isBetween=zn,ra.isSame=jn,ra.isSameOrAfter=Gn,ra.isSameOrBefore=qn,ra.isValid=ks,ra.lang=as,ra.locale=ss,ra.localeData=rs,ra.max=Zi,ra.min=qi,ra.parsingFlags=Ss,ra.set=me,ra.startOf=ms,ra.subtract=Nn,ra.toArray=bs,ra.toObject=ws,ra.toDate=ys,ra.toISOString=$n,ra.inspect=Jn,typeof Symbol!=="undefined"&&Symbol.for!=null){ra[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}}function oa(e){return Gi(1e3*e)}function la(){return Gi.apply(null,arguments).parseZone()}function ca(e){return e}ra.toJSON=_s,ra.toString=Xn,ra.unix=ps,ra.valueOf=vs,ra.creationData=Os,ra.eraName=Ts,ra.eraNarrow=Ms,ra.eraAbbr=Ds,ra.eraYear=As,ra.year=gt,ra.isLeapYear=vt,ra.weekYear=Vs,ra.isoWeekYear=Us,ra.quarter=ra.quarters=Xs,ra.month=ct,ra.daysInMonth=ht,ra.week=ra.weeks=Ct,ra.isoWeek=ra.isoWeeks=Lt,ra.weeksInYear=Gs,ra.weeksInWeekYear=qs,ra.isoWeeksInYear=zs,ra.isoWeeksInISOWeekYear=js,ra.date=$s,ra.day=ra.days=Ut,ra.weekday=zt,ra.isoWeekday=jt,ra.dayOfYear=Js,ra.hour=ra.hours=ii,ra.minute=ra.minutes=Qs,ra.second=ra.seconds=ea,ra.millisecond=ra.milliseconds=ia,ra.utcOffset=fn,ra.utc=gn,ra.local=vn,ra.parseZone=pn,ra.hasAlignedHourOffset=yn,ra.isDST=bn,ra.isLocal=_n,ra.isUtcOffset=kn,ra.isUtc=Sn,ra.isUTC=Sn,ra.zoneAbbr=sa,ra.zoneName=aa,ra.dates=E("dates accessor is deprecated. Use date instead.",$s),ra.months=E("months accessor is deprecated. Use month instead",ct),ra.years=E("years accessor is deprecated. Use year instead",gt),ra.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mn),ra.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wn);var ha=D.prototype;function da(e,t,i,n){var s=gi(),a=m().set(n,t);return s[i](a,e)}function ua(e,t,i){if(d(e)){t=e;e=undefined}e=e||"";if(t!=null){return da(e,t,i,"month")}var n,s=[];for(n=0;n<12;n++){s[n]=da(e,n,i,"month")}return s}function fa(e,t,i,n){if(typeof e==="boolean"){if(d(t)){i=t;t=undefined}t=t||""}else{t=e;i=t;e=false;if(d(t)){i=t;t=undefined}t=t||""}var s=gi(),a=e?s._week.dow:0,r,o=[];if(i!=null){return da(t,(i+a)%7,n,"day")}for(r=0;r<7;r++){o[r]=da(t,(r+a)%7,n,"day")}return o}function ma(e,t){return ua(e,t,"months")}function ga(e,t){return ua(e,t,"monthsShort")}function va(e,t,i){return fa(e,t,i,"weekdays")}function pa(e,t,i){return fa(e,t,i,"weekdaysShort")}function ya(e,t,i){return fa(e,t,i,"weekdaysMin")}ha.calendar=N,ha.longDateFormat=j,ha.invalidDate=q,ha.ordinal=X,ha.preparse=ca,ha.postformat=ca,ha.relativeTime=J,ha.pastFuture=Q,ha.set=T,ha.eras=xs,ha.erasParse=Cs,ha.erasConvertYear=Ls,ha.erasAbbrRegex=Is,ha.erasNameRegex=Ns,ha.erasNarrowRegex=Rs,ha.months=st,ha.monthsShort=at,ha.monthsParse=ot,ha.monthsRegex=ut,ha.monthsShortRegex=dt,ha.week=St,ha.firstDayOfYear=xt,ha.firstDayOfWeek=Ot,ha.weekdays=Bt,ha.weekdaysMin=Ht,ha.weekdaysShort=Ft,ha.weekdaysParse=Vt,ha.weekdaysRegex=Gt,ha.weekdaysShortRegex=qt,ha.weekdaysMinRegex=Zt,ha.isPM=ei,ha.meridiem=ni,ui("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function e(t){var i=t%10,n=ce(t%100/10)===1?"th":i===1?"st":i===2?"nd":i===3?"rd":"th";return t+n}}),h.lang=E("moment.lang is deprecated. Use moment.locale instead.",ui),h.langData=E("moment.langData is deprecated. Use moment.localeData instead.",gi);var ba=Math.abs;function wa(){var e=this._data;return this._milliseconds=ba(this._milliseconds),this._days=ba(this._days),this._months=ba(this._months),e.milliseconds=ba(e.milliseconds),e.seconds=ba(e.seconds),e.minutes=ba(e.minutes),e.hours=ba(e.hours),e.months=ba(e.months),e.years=ba(e.years),this}function _a(e,t,i,n){var s=xn(t,i);e._milliseconds+=n*s._milliseconds;e._days+=n*s._days;e._months+=n*s._months;return e._bubble()}function ka(e,t){return _a(this,e,t,1)}function Sa(e,t){return _a(this,e,t,-1)}function Ea(e){if(e<0){return Math.floor(e)}else{return Math.ceil(e)}}function Oa(){var e,t,i,n,s,a=this._milliseconds,r=this._days,o=this._months,l=this._data;if(!(0<=a&&0<=r&&0<=o||a<=0&&r<=0&&o<=0))a+=864e5*Ea(Ca(o)+r),o=r=0;return l.milliseconds=a%1e3,e=le(a/1e3),l.seconds=e%60,t=le(e/60),l.minutes=t%60,i=le(t/60),l.hours=i%24,r+=le(i/24),s=le(xa(r)),o+=s,r-=Ea(Ca(s)),n=le(o/12),o%=12,l.days=r,l.months=o,l.years=n,this}function xa(e){return e*4800/146097}function Ca(e){return e*146097/4800}function La(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+xa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(Ca(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Ta(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ma(e){return function(){return this.as(e)}}var Da=Ma("ms"),Aa=Ma("s"),Na=Ma("m"),Ia=Ma("h"),Ra=Ma("d"),Ya=Ma("w"),Pa=Ma("M"),Ba=Ma("Q"),Fa=Ma("y");function Ha(){return xn(this)}function Wa(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Va(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ua=Va("milliseconds"),za=Va("seconds"),ja=Va("minutes"),Ga=Va("hours"),qa=Va("days"),Za=Va("months"),Ka=Va("years");function Xa(){return le(this.days()/7)}var $a=Math.round,Ja={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qa(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}function er(e,t,i,n){var s=xn(e).abs(),a=$a(s.as("s")),r=$a(s.as("m")),o=$a(s.as("h")),l=$a(s.as("d")),c=$a(s.as("M")),h=$a(s.as("w")),d=$a(s.as("y")),u=(a<=i.ss?["s",a]:a<i.s&&["ss",a])||r<=1&&["m"]||r<i.m&&["mm",r]||o<=1&&["h"]||o<i.h&&["hh",o]||l<=1&&["d"]||l<i.d&&["dd",l];if(null!=i.w)u=u||h<=1&&["w"]||h<i.w&&["ww",h];return(u=u||c<=1&&["M"]||c<i.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,u[3]=0<+e,u[4]=n,function(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}.apply(null,u)}function tr(e){return void 0!==e?"function"==typeof e&&($a=e,!0):$a}function ir(e,t){if(void 0===Ja[e])return!1;if(void 0===t)return Ja[e];if(Ja[e]=t,"s"===e)Ja.ss=t-1;return!0}function nr(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,s=!1,a=Ja;if("object"==typeof e)t=e,e=!1;if("boolean"==typeof e)s=e;if("object"==typeof t)a=Object.assign({},Ja,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1);if(i=this.localeData(),n=function(e,t,i,n){var s=xn(e).abs(),a=$a(s.as("s")),r=$a(s.as("m")),o=$a(s.as("h")),l=$a(s.as("d")),c=$a(s.as("M")),h=$a(s.as("w")),d=$a(s.as("y")),u=(a<=i.ss?["s",a]:a<i.s&&["ss",a])||r<=1&&["m"]||r<i.m&&["mm",r]||o<=1&&["h"]||o<i.h&&["hh",o]||l<=1&&["d"]||l<i.d&&["dd",l];null!=i.w&&(u=u||h<=1&&["w"]||h<i.w&&["ww",h]);return(u=u||c<=1&&["M"]||c<i.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,u[3]=0<+e,u[4]=n,function(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}.apply(null,u)}(this,!s,a,i),s)n=i.pastFuture(+this,n);return i.postformat(n)}var sr=Math.abs;function ar(e){return(e>0)-(e<0)||+e}function rr(){if(!this.isValid()){return this.localeData().invalidDate()}var e=sr(this._milliseconds)/1e3,t=sr(this._days),i=sr(this._months),n,s,a,r,o=this.asSeconds(),l,c,h,d;if(!o){return"P0D"}n=le(e/60);s=le(n/60);e%=60;n%=60;a=le(i/12);i%=12;r=e?e.toFixed(3).replace(/\.?0+$/,""):"";l=o<0?"-":"";c=ar(this._months)!==ar(o)?"-":"";h=ar(this._days)!==ar(o)?"-":"";d=ar(this._milliseconds)!==ar(o)?"-":"";return l+"P"+(a?c+a+"Y":"")+(i?c+i+"M":"")+(t?h+t+"D":"")+(s||n||e?"T":"")+(s?d+s+"H":"")+(n?d+n+"M":"")+(e?d+r+"S":"")}var or=sn.prototype;return or.isValid=function(){return this._isValid},or.abs=function(){var e=this._data;return this._milliseconds=ba(this._milliseconds),this._days=ba(this._days),this._months=ba(this._months),e.milliseconds=ba(e.milliseconds),e.seconds=ba(e.seconds),e.minutes=ba(e.minutes),e.hours=ba(e.hours),e.months=ba(e.months),e.years=ba(e.years),this},or.add=function(e,t){return _a(this,e,t,1)},or.subtract=function(e,t){return _a(this,e,t,-1)},or.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+xa(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(Ca(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},or.asMilliseconds=Da,or.asSeconds=Aa,or.asMinutes=Na,or.asHours=Ia,or.asDays=Ra,or.asWeeks=Ya,or.asMonths=Pa,or.asQuarters=Ba,or.asYears=Fa,or.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN},or._bubble=function(){var e,t,i,n,s,a=this._milliseconds,r=this._days,o=this._months,l=this._data;0<=a&&0<=r&&0<=o||a<=0&&r<=0&&o<=0||(a+=864e5*Ea(Ca(o)+r),o=r=0);return l.milliseconds=a%1e3,e=le(a/1e3),l.seconds=e%60,t=le(e/60),l.minutes=t%60,i=le(t/60),l.hours=i%24,r+=le(i/24),s=le(xa(r)),o+=s,r-=Ea(Ca(s)),n=le(o/12),o%=12,l.days=r,l.months=o,l.years=n,this},or.clone=function(){return xn(this)},or.get=function(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN},or.milliseconds=Ua,or.seconds=za,or.minutes=ja,or.hours=Ga,or.days=qa,or.weeks=function(){return le(this.days()/7)},or.months=Za,or.years=Ka,or.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,s=!1,a=Ja;"object"==typeof e&&(t=e,e=!1);"boolean"==typeof e&&(s=e);"object"==typeof t&&(a=Object.assign({},Ja,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1));i=this.localeData(),n=function(e,t,i,n){var s=xn(e).abs(),a=$a(s.as("s")),r=$a(s.as("m")),o=$a(s.as("h")),l=$a(s.as("d")),c=$a(s.as("M")),h=$a(s.as("w")),d=$a(s.as("y")),u=(a<=i.ss?["s",a]:a<i.s&&["ss",a])||r<=1&&["m"]||r<i.m&&["mm",r]||o<=1&&["h"]||o<i.h&&["hh",o]||l<=1&&["d"]||l<i.d&&["dd",l];null!=i.w&&(u=u||h<=1&&["w"]||h<i.w&&["ww",h]);return(u=u||c<=1&&["M"]||c<i.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,u[3]=0<+e,u[4]=n,function(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}.apply(null,u)}(this,!s,a,i),s&&(n=i.pastFuture(+this,n));return i.postformat(n)},or.toISOString=rr,or.toString=rr,or.toJSON=rr,or.locale=ss,or.localeData=rs,or.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rr),or.lang=as,F("X",0,0,"unix"),F("x",0,0,"valueOf"),Ne("x",Ce),Ne("X",/[+-]?\d+(\.\d{1,3})?/),Be("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),Be("x",function(e,t,i){i._d=new Date(ce(e))}),h.version="2.27.0",function(e){t=e}(Gi),h.fn=ra,h.min=function(){return Ki("isBefore",[].slice.call(arguments,0))},h.max=function(){return Ki("isAfter",[].slice.call(arguments,0))},h.now=function e(){return Date.now?Date.now():+new Date},h.utc=m,h.unix=function(e){return Gi(1e3*e)},h.months=function(e,t){return ua(e,t,"months")},h.isDate=u,h.locale=ui,h.invalid=p,h.duration=xn,h.isMoment=k,h.weekdays=function(e,t,i){return fa(e,t,i,"weekdays")},h.parseZone=function(){return Gi.apply(null,arguments).parseZone()},h.localeData=gi,h.isDuration=an,h.monthsShort=function(e,t){return ua(e,t,"monthsShort")},h.weekdaysMin=function(e,t,i){return fa(e,t,i,"weekdaysMin")},h.defineLocale=fi,h.updateLocale=function(e,t){{var i,n,s;null!=t?(s=si,null!=ai[e]&&null!=ai[e].parentLocale?ai[e].set(M(ai[e]._config,t)):(null!=(n=di(e))&&(s=n._config),t=M(s,t),null==n&&(t.abbr=e),(i=new D(t)).parentLocale=ai[e],ai[e]=i),ui(e)):null!=ai[e]&&(null!=ai[e].parentLocale?(ai[e]=ai[e].parentLocale,e===ui()&&ui(e)):null!=ai[e]&&delete ai[e])}return ai[e]},h.locales=function(){return x(ai)},h.weekdaysShort=function(e,t,i){return fa(e,t,i,"weekdaysShort")},h.normalizeUnits=ie,h.relativeTimeRounding=function(e){return void 0!==e?"function"==typeof e&&($a=e,!0):$a},h.relativeTimeThreshold=function(e,t){if(void 0===Ja[e])return!1;if(void 0===t)return Ja[e];Ja[e]=t,"s"===e&&(Ja.ss=t-1);return!0},h.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},h.prototype=ra,h.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},h}()}),f=u(function(b,e){!function(){var e,i,a,r,u,c,o,t,l,f,m,p,D,A,N,I,s,h,n,d,R,g,v,y;try{e=w}catch(e){}b.exports=(a="function"==typeof(i=e),r=!!window.addEventListener,u=window.document,c=window.setTimeout,o=function(e,t,i,n){r?e.addEventListener(t,i,!!n):e.attachEvent("on"+t,i)},t=function(e,t,i,n){r?e.removeEventListener(t,i,!!n):e.detachEvent("on"+t,i)},l=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},f=function(e,t){l(e,t)||(e.className=""===e.className?t:e.className+" "+t)},m=function(e,t){var i;e.className=(i=(" "+e.className+" ").replace(" "+t+" "," ")).trim?i.trim():i.replace(/^\s+|\s+$/g,"")},p=function(e){return/Array/.test(Object.prototype.toString.call(e))},D=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},d={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!(n=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),11<e.month&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e}),firstDay:0,formatStrict:!(h=function(e,t,i){var n;u.createEvent?((n=u.createEvent("HTMLEvents")).initEvent(t,!0,!1),n=s(n,i),e.dispatchEvent(n)):u.createEventObject&&(n=u.createEventObject(),n=s(n,i),e.fireEvent("on"+t,n))}),minDate:null,maxDate:null,yearRange:10,showWeekNumber:!(s=function e(t,i,n){var s,a;for(s in i)(a=void 0!==t[s])&&"object"==typeof i[s]&&null!==i[s]&&void 0===i[s].nodeName?D(i[s])?n&&(t[s]=new Date(i[s].getTime())):p(i[s])?n&&(t[s]=i[s].slice(0)):t[s]=e({},i[s],n):!n&&a||(t[s]=i[s]);return t}),pickWholeWeek:!(I=function(e,t){return e.getTime()===t.getTime()}),minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!(N=function(e){D(e)&&e.setHours(0,0,0,0)}),yearSuffix:"",showMonthAfterYear:!(A=function(e,t){return[31,(i=e)%4==0&&i%100!=0||i%400==0?29:28,31,30,31,30,31,31,30,31,30,31][t];var i}),showDaysInNextAndPreviousMonths:!function(e){return e%4==0&&e%100!=0||e%400==0},enableSelectionDaysInNextAndPreviousMonths:!function(e){var t=e.getDay();return t===0||t===6},numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},R=function(e,t,i){for(t+=e.firstDay;7<=t;)t-=7;return i?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},g=function(e){return"<tbody>"+e.join("")+"</tbody>"},v=function(e){var t,i=[];for(e.showWeekNumber&&i.push("<th></th>"),t=0;t<7;t++)i.push('<th scope="col"><abbr title="'+R(e,t)+'">'+R(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?i.reverse():i).join("")+"</tr></thead>"},(y=function(e){var n=this,s=n.config(e);n._onMouseDown=function(e){if(n._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(l(t,"is-disabled")||(!l(t,"pika-button")||l(t,"is-empty")||l(t.parentNode,"is-disabled")?l(t,"pika-prev")?n.prevMonth():l(t,"pika-next")&&n.nextMonth():(n.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),s.bound&&c(function(){n.hide(),s.blurFieldOnSelect&&s.field&&s.field.blur()},100))),l(t,"pika-select"))n._c=!0;else{if(!e.preventDefault)return e.returnValue=!1;e.preventDefault()}}},n._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(l(t,"pika-select-month")?n.gotoMonth(t.value):l(t,"pika-select-year")&&n.gotoYear(t.value))},n._onKeyChange=function(e){if(e=e||window.event,n.isVisible())switch(e.keyCode){case 13:case 27:s.field&&s.field.blur();break;case 37:e.preventDefault(),n.adjustDate("subtract",1);break;case 38:n.adjustDate("subtract",7);break;case 39:n.adjustDate("add",1);break;case 40:n.adjustDate("add",7)}},n._onInputChange=function(e){var t;e.firedBy!==n&&(t=s.parse?s.parse(s.field.value,s.format):a?(t=i(s.field.value,s.format,s.formatStrict))&&t.isValid()?t.toDate():null:new Date(Date.parse(s.field.value)),D(t)&&n.setDate(t),n._v||n.show())},n._onInputFocus=function(){n.show()},n._onInputClick=function(){n.show()},n._onInputBlur=function(){var e=u.activeElement;do{if(l(e,"pika-single"))return}while(e=e.parentNode);n._c||(n._b=c(function(){n.hide()},50)),n._c=!1},n._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,i=t;if(t){!r&&l(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),o(t,"change",n._onChange)));do{if(l(i,"pika-single")||i===s.trigger)return}while(i=i.parentNode);n._v&&t!==s.trigger&&i!==s.trigger&&n.hide()}},n.el=u.createElement("div"),n.el.className="pika-single"+(s.isRTL?" is-rtl":"")+(s.theme?" "+s.theme:""),o(n.el,"mousedown",n._onMouseDown,!0),o(n.el,"touchend",n._onMouseDown,!0),o(n.el,"change",n._onChange),s.keyboardInput&&o(u,"keydown",n._onKeyChange),s.field&&(s.container?s.container.appendChild(n.el):s.bound?u.body.appendChild(n.el):s.field.parentNode.insertBefore(n.el,s.field.nextSibling),o(s.field,"change",n._onInputChange),s.defaultDate||(a&&s.field.value?s.defaultDate=i(s.field.value,s.format).toDate():s.defaultDate=new Date(Date.parse(s.field.value)),s.setDefaultDate=!0));var t=s.defaultDate;D(t)?s.setDefaultDate?n.setDate(t,!0):n.gotoDate(t):n.gotoDate(new Date),s.bound?(this.hide(),n.el.className+=" is-bound",o(s.trigger,"click",n._onInputClick),o(s.trigger,"focus",n._onInputFocus),o(s.trigger,"blur",n._onInputBlur)):this.show()}).prototype={config:function(e){this._o||(this._o=s({},d,!0));var t=s(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var i,n=parseInt(t.numberOfMonths,10)||1;return t.numberOfMonths=4<n?4:n,D(t.minDate)||(t.minDate=!1),D(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),p(t.yearRange)?(i=(new Date).getFullYear()-10,t.yearRange[0]=parseInt(t.yearRange[0],10)||i,t.yearRange[1]=parseInt(t.yearRange[1],10)||i):(t.yearRange=Math.abs(parseInt(t.yearRange,10))||d.yearRange,100<t.yearRange&&(t.yearRange=100)),t},toString:function(e){return e=e||this._o.format,D(this._d)?this._o.toString?this._o.toString(this._d,e):a?i(this._d).format(e):this._d.toDateString():""},getMoment:function(){return a?i(this._d):null},setMoment:function(e,t){a&&i.isMoment(e)&&this.setDate(e.toDate(),t)},getDate:function(){return D(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",h(this._o.field,"change",{firedBy:this})),this.draw();var i,n;"string"==typeof e&&(e=new Date(Date.parse(e))),D(e)&&(i=this._o.minDate,n=this._o.maxDate,D(i)&&e<i?e=i:D(n)&&n<e&&(e=n),this._d=new Date(e.getTime()),N(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),h(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate()))},gotoDate:function(e){var t,i,n,s=!0;D(e)&&(this.calendars&&(t=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),n=e.getTime(),i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),s=n<t.getTime()||i.getTime()<n),s&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars())},adjustDate:function(e,t){var i,n=this.getDate()||new Date,s=24*parseInt(t)*60*60*1e3;"add"===e?i=new Date(n.valueOf()+s):"subtract"===e&&(i=new Date(n.valueOf()-s)),this.setDate(i)},adjustCalendars:function(){this.calendars[0]=n(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=n({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(N(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=d.minDate,this._o.minYear=d.minYear,this._o.minMonth=d.minMonth,this._o.startRange=d.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(N(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=d.maxDate,this._o.maxYear=d.maxYear,this._o.maxMonth=d.maxMonth,this._o.endRange=d.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,i=this._o,n=i.minYear,s=i.maxYear,a=i.minMonth,r=i.maxMonth,o="";this._y<=n&&(this._y=n,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=s&&(this._y=s,!isNaN(r)&&this._m>r&&(this._m=r)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<i.numberOfMonths;l++)o+='<div class="pika-lendar">'+function(e,t,i,n,s,a){var r,o,l,c,h,d=e._o,u=i===d.minYear,f=i===d.maxYear,m='<div id="'+a+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(l=[],r=0;r<12;r++)l.push('<option value="'+(i===s?r-t:12+r-t)+'"'+(r===n?' selected="selected"':"")+(u&&r<d.minMonth||f&&r>d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[r]+"</option>");for(c='<div class="pika-label">'+d.i18n.months[n]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",o=p(d.yearRange)?(r=d.yearRange[0],d.yearRange[1]+1):(r=i-d.yearRange,1+i+d.yearRange),l=[];r<o&&r<=d.maxYear;r++)r>=d.minYear&&l.push('<option value="'+r+'"'+(r===i?' selected="selected"':"")+">"+r+"</option>");return h='<div class="pika-label">'+i+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",d.showMonthAfterYear?m+=h+c:m+=c+h,u&&(0===n||d.minMonth>=n)&&(g=!1),f&&(11===n||d.maxMonth<=n)&&(v=!1),0===t&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),m+="</div>"}(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,t)+this.render(this.calendars[l].year,this.calendars[l].month,t)+"</div>";this.el.innerHTML=o,i.bound&&"hidden"!==i.field.type&&c(function(){i.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),i.bound&&i.field.setAttribute("aria-label",i.ariaLabel)}},adjustPosition:function(){var e,t,i,n,s,a,r,o,l,c,h,d;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,i=this.el.offsetWidth,n=this.el.offsetHeight,s=window.innerWidth||u.documentElement.clientWidth,a=window.innerHeight||u.documentElement.clientHeight,r=window.pageYOffset||u.body.scrollTop||u.documentElement.scrollTop,d=h=!0,"function"==typeof e.getBoundingClientRect)o=(c=e.getBoundingClientRect()).left+window.pageXOffset,l=c.bottom+window.pageYOffset;else for(o=t.offsetLeft,l=t.offsetTop+t.offsetHeight;t=t.offsetParent;)o+=t.offsetLeft,l+=t.offsetTop;(this._o.reposition&&s<o+i||-1<this._o.position.indexOf("right")&&0<o-i+e.offsetWidth)&&(o=o-i+e.offsetWidth,h=!1),(this._o.reposition&&a+r<l+n||-1<this._o.position.indexOf("top")&&0<l-n-e.offsetHeight)&&(l=l-n-e.offsetHeight,d=!1),this.el.style.left=o+"px",this.el.style.top=l+"px",f(this.el,h?"left-aligned":"right-aligned"),f(this.el,d?"bottom-aligned":"top-aligned"),m(this.el,h?"right-aligned":"left-aligned"),m(this.el,d?"top-aligned":"bottom-aligned")}},render:function(e,t,i){var n=this._o,s=new Date,a=A(e,t),r=new Date(e,t,1).getDay(),o=[],l=[];N(s),0<n.firstDay&&(r-=n.firstDay)<0&&(r+=7);for(var c=0===t?11:t-1,h=11===t?0:t+1,d=0===t?e-1:e,u=11===t?e+1:e,f=A(d,c),m=a+r,g=m;7<g;)g-=7;m+=7-g;for(var v=!1,p=0,y=0;p<m;p++){var b=new Date(e,t,p-r+1),w=!!D(this._d)&&I(b,this._d),_=I(b,s),k=-1!==n.events.indexOf(b.toDateString()),S=p<r||a+r<=p,E=p-r+1,O=t,x=e,C=n.startRange&&I(n.startRange,b),L=n.endRange&&I(n.endRange,b),T=n.startRange&&n.endRange&&n.startRange<b&&b<n.endRange;S&&(x=p<r?(E=f+E,O=c,d):(E-=a,O=h,u));var M={day:E,month:O,year:x,hasEvent:k,isSelected:w,isToday:_,isDisabled:n.minDate&&b<n.minDate||n.maxDate&&b>n.maxDate||n.disableWeekends&&function(e){var t=e.getDay();return 0===t||6===t}(b)||n.disableDayFn&&n.disableDayFn(b),isEmpty:S,isStartRange:C,isEndRange:L,isInRange:T,showDaysInNextAndPreviousMonths:n.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:n.enableSelectionDaysInNextAndPreviousMonths};n.pickWholeWeek&&w&&(v=!0),l.push(function(e){var t=[],i="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),i="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+i+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"}(M)),7==++y&&(n.showWeekNumber&&l.unshift(function(e,t,i){var n=new Date(i,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(i,t,e)-n)/864e5+n.getDay()+1)/7)+"</td>"}(p-r,t,e)),o.push(function(e,t,i,n){return'<tr class="pika-row'+(i?" pick-whole-week":"")+(n?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"}(l,n.isRTL,n.pickWholeWeek,v)),y=0,v=!(l=[]))}return function(e,t,i){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+i+'">'+function(e){var t,i=[];for(e.showWeekNumber&&i.push("<th></th>"),t=0;t<7;t++)i.push('<th scope="col"><abbr title="'+R(e,t)+'">'+R(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?i.reverse():i).join("")+"</tr></thead>"}(e)+function(e){return"<tbody>"+e.join("")+"</tbody>"}(t)+"</table>"}(n,o,i)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),m(this.el,"is-hidden"),this._o.bound&&(o(u,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&t(u,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",f(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide(),t(this.el,"mousedown",this._onMouseDown,!0),t(this.el,"touchend",this._onMouseDown,!0),t(this.el,"change",this._onChange),e.keyboardInput&&t(u,"keydown",this._onKeyChange),e.field&&(t(e.field,"change",this._onInputChange),e.bound&&(t(e.trigger,"click",this._onInputClick),t(e.trigger,"focus",this._onInputFocus),t(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},y)}()}),m=function(){function s(e,t){var i=void 0===t?{}:t,n=i.format,s=void 0===n?"DD-MM-YYYY":n,a=i.theme,r=void 0===a?"ecl-datepicker-theme":a,o=i.yearRange,l=void 0===o?40:o,c=i.reposition,h=void 0!==c&&c,d=i.showDaysInNextAndPreviousMonths,u=void 0===d||d,f=i.enableSelectionDaysInNextAndPreviousMonths,m=void 0===f||f;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.format=s,this.theme=r,this.yearRange=l,this.showDaysInNextAndPreviousMonths=u,this.enableSelectionDaysInNextAndPreviousMonths=m,this.reposition=h}return s.autoInit=function(e,t){var i=(void 0===t?{}:t).DATEPICKER,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLDatepicker=n},s.prototype.init=function(){return new f({field:this.element,format:this.format,yearRange:this.yearRange,theme:this.theme,reposition:this.reposition,showDaysInNextAndPreviousMonths:this.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:this.enableSelectionDaysInNextAndPreviousMonths})},s}();var g=function(){function s(e,t){var i=void 0===t?{}:t,n=i.groupSelector,s=void 0===n?"[data-ecl-file-upload-group]":n,a=i.buttonSelector,r=void 0===a?"[data-ecl-file-upload-button]":a,o=i.listSelector,l=void 0===o?"[data-ecl-file-upload-list]":o,c=i.labelChoose,h=void 0===c?"data-ecl-file-upload-label-choose":c,d=i.labelReplace,u=void 0===d?"data-ecl-file-upload-label-replace":d,f=i.attachChangeListener,m=void 0===f||f;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.groupSelector=s,this.buttonSelector=r,this.listSelector=l,this.labelChoose=h,this.labelReplace=u,this.attachChangeListener=m,this.fileUploadGroup=null,this.fileUploadInput=null,this.fileUploadButton=null,this.fileUploadList=null,this.handleChange=this.handleChange.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).FILE_UPLOAD,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLFileUpload=n};var e=s.prototype;return e.init=function(){this.fileUploadGroup=this.element.closest(this.groupSelector),this.fileUploadInput=this.element,this.fileUploadButton=d(this.buttonSelector,this.fileUploadGroup),this.fileUploadList=d(this.listSelector,this.fileUploadGroup),this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.addEventListener("change",this.handleChange)},e.destroy=function(){this.attachChangeListener&&this.fileUploadInput&&this.fileUploadInput.removeEventListener("change",this.handleChange)},e.handleChange=function(e){var n;"files"in e.target?(n="",e.target.files.forEach(function(e){var t=function(e,t){if(void 0===t&&(t=2),0===e)return"0 Bytes";var i=t<0?0:t,n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(i))+" "+["Bytes","kB","MB","GB","TB","PB","EB","ZB","YB"][n]}(e.size,1),i=e.name.split(".").pop();n+='<li class="ecl-file-upload__item">\n <span class="ecl-file-upload__item-name">'+e.name+'</span>\n <span class="ecl-file-upload__item-meta">('+t+" - "+i+")</span>\n </li>"}),this.fileUploadList.innerHTML=n,this.fileUploadButton.hasAttribute(this.labelReplace)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelReplace))):this.fileUploadButton.hasAttribute(this.labelChoose)&&(this.fileUploadButton.innerHTML=this.fileUploadButton.getAttribute(this.labelChoose))},s}(),v=function(){function d(e,t){var i=void 0===t?{}:t,n=i.defaultText,s=void 0===n?"":n,a=i.searchText,r=void 0===a?"":a,o=i.selectAllText,l=void 0===o?"":o,c=i.selectMultipleId,h=void 0===c?"select-multiple":c,d=i.selectMultipleSelector,u=void 0===d?"[data-ecl-select-multiple]":d,f=i.defaultTextAttribute,m=void 0===f?"data-ecl-select-default":f,g=i.searchTextAttribute,v=void 0===g?"data-ecl-select-search":g,p=i.selectAllTextAttribute,y=void 0===p?"data-ecl-select-all":p;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.selectMultipleId=h,this.selectMultipleSelector=u,this.defaultTextAttribute=m,this.searchTextAttribute=v,this.selectAllTextAttribute=y,this.defaultText=s,this.searchText=r,this.selectAllText=l,this.input=null,this.search=null,this.checkboxes=null,this.select=null,this.selectAll=null,this.selectIcon=null,this.textDefault=null,this.textSearch=null,this.textSelectAll=null,this.selectMultiple=null,this.inputContainer=null,this.searchContainer=null,this.updateCurrentValue=this.updateCurrentValue.bind(this),this.handleToggle=this.handleToggle.bind(this),this.handleClickOption=this.handleClickOption.bind(this),this.handleClickSelectAll=this.handleClickSelectAll.bind(this),this.handleFocusout=this.handleFocusout.bind(this),this.handleSearch=this.handleSearch.bind(this),this.handleClickOutside=this.handleClickOutside.bind(this)}d.autoInit=function(e,t){void 0===t&&(t={});var i=new d(e,t);return i.init(),e.ECLSelect=i},d.createSvgIcon=function(e,t){var i=document.createElement("div");i.innerHTML=e;var n=i.children[0];return n.removeAttribute("height"),n.removeAttribute("width"),n.setAttribute("focusable",!1),n.setAttribute("aria-hidden",!0),n.setAttribute("class",t),n},d.createCheckbox=function(e,t){if(!e||!t)return"";var i=e.id,n=e.text,s=e.disabled,a=e.selected,r=e.extraClass;if(!i||!n)return"";var o=document.createElement("div"),l=document.createElement("input"),c=document.createElement("label"),h=document.createElement("span");return r&&o.classList.add(r),a&&l.setAttribute("checked",!0),s&&(o.classList.add("ecl-checkbox--disabled"),l.setAttribute("disabled",s)),o.classList.add("ecl-checkbox"),o.setAttribute("data-select-multiple-value",n),l.classList.add("ecl-checkbox__input"),l.setAttribute("type","checkbox"),l.setAttribute("id",t+"-"+i),o.appendChild(l),c.classList.add("ecl-checkbox__label"),c.setAttribute("for",t+"-"+i),h.classList.add("ecl-checkbox__box"),h.appendChild(d.createSvgIcon('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.333 4L9 13.465 4.778 9.183l-3.111 3.155L9 20 21.667 7.155z"/></svg>',"ecl-icon ecl-icon--s ecl-checkbox__icon")),c.appendChild(h),c.appendChild(document.createTextNode(n)),o.appendChild(c),o},d.createSelectIcon=function(){var e=document.createElement("div");e.classList.add("ecl-select__icon");var t=d.createSvgIcon('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.623 19.5L12 9.83 3.377 19.5 1 16.835 12 4.5l11 12.335z"/></svg>',"ecl-icon ecl-icon--s ecl-select__icon-shape ecl-icon--rotate-180");return e.appendChild(t),e},d.checkCheckbox=function(e){var t=e.target.closest(".ecl-checkbox").querySelector("input");return t.checked=!t.checked,t.checked};var e=d.prototype;return e.init=function(){var e,t,i=this;this.select=this.element;var n=Array.from(this.select.parentElement.classList);this.textDefault=this.defaultText||this.element.getAttribute(this.defaultTextAttribute),this.textSearch=this.searchText||this.element.getAttribute(this.searchTextAttribute),this.textSelectAll=this.selectAllText||this.element.getAttribute(this.selectAllTextAttribute),this.selectMultiple=document.createElement("div"),this.selectMultiple.classList.add("ecl-select__multiple"),this.selectMultiple.addEventListener("focusout",this.handleFocusout),this.inputContainer=document.createElement("div"),(e=this.inputContainer.classList).add.apply(e,n),this.selectMultiple.appendChild(this.inputContainer),this.input=document.createElement("input"),this.input.classList.add("ecl-select","ecl-select__multiple-toggle"),this.input.setAttribute("type","text"),this.input.setAttribute("placeholder",this.textDefault||""),this.input.setAttribute("readonly",!0),n.find(function(e){return e.includes("disabled")})&&this.input.setAttribute("disabled",!0),this.input.addEventListener("keypress",this.handleToggle),this.input.addEventListener("click",this.handleToggle),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(d.createSelectIcon()),this.searchContainer=document.createElement("div"),this.searchContainer.style.display="none",(t=this.searchContainer.classList).add.apply(t,["ecl-select__multiple-dropdown"].concat(n)),this.selectMultiple.appendChild(this.searchContainer),this.search=document.createElement("input"),this.search.classList.add("ecl-text-input"),this.search.setAttribute("type","text"),this.search.setAttribute("placeholder",this.textSearch||""),this.search.addEventListener("keyup",this.handleSearch),this.searchContainer.appendChild(this.search),this.textSelectAll&&(this.selectAll=d.createCheckbox({id:"all",text:this.textSelectAll,extraClass:"ecl-select__multiple-all"},this.selectMultipleId),this.selectAll.addEventListener("click",this.handleClickSelectAll),this.selectAll.addEventListener("keypress",this.handleClickSelectAll),this.searchContainer.appendChild(this.selectAll)),this.select.options&&0<this.select.options.length&&(this.checkboxes=Array.from(this.select.options).map(function(e){var t=d.createCheckbox({id:e.value,text:e.text,disabled:e.disabled,selected:e.selected},i.selectMultipleId);return t.setAttribute("data-visible",!0),t.classList.contains("ecl-checkbox--disabled")||(t.addEventListener("click",i.handleClickOption),t.addEventListener("keypress",i.handleClickOption)),i.searchContainer.appendChild(t),t})),this.select.parentNode.parentNode.insertBefore(this.selectMultiple,this.select.parentNode.nextSibling),document.addEventListener("click",this.handleClickOutside),this.select.parentNode.classList.add("ecl-select__container--hidden"),this.updateCurrentValue()},e.destroy=function(){var t=this;this.selectMultiple.removeEventListener("focusout",this.handleFocusout),this.input.removeEventListener("keypress",this.handleToggle),this.input.removeEventListener("click",this.handleToggle),this.search.removeEventListener("keyup",this.handleSearch),this.selectAll.removeEventListener("click",this.handleClickSelectAll),this.selectAll.removeEventListener("keypress",this.handleClickSelectAll),this.checkboxes.forEach(function(e){e.removeEventListener("click",t.handleClickSelectAll),e.removeEventListener("click",t.handleClickOption)}),document.removeEventListener("click",this.handleClickOutside),this.selectMultiple&&this.selectMultiple.remove(),this.select.parentNode.classList.remove("ecl-select__container--hidden")},e.updateCurrentValue=function(){this.input.value=Array.from(this.select.options).filter(function(e){return e.selected}).map(function(e){return e.text}).join(", ")},e.handleToggle=function(e){e.preventDefault(),"none"===this.searchContainer.style.display?this.searchContainer.style.display="block":this.searchContainer.style.display="none"},e.handleClickOption=function(e){var t=this;e.preventDefault(),d.checkCheckbox(e);var i=e.target.closest(".ecl-checkbox");Array.from(this.select.options).forEach(function(e){e.text===i.getAttribute("data-select-multiple-value")&&(e.getAttribute("selected")||e.selected?(e.removeAttribute("selected"),e.selected=!1,t.selectAll.querySelector("input").checked=!1):(e.setAttribute("selected","selected"),e.selected=!0))}),this.updateCurrentValue()},e.handleClickSelectAll=function(e){e.preventDefault();var i=d.checkCheckbox(e),n=Array.from(this.select.options).filter(function(e){return!e.disabled});Array.from(this.searchContainer.querySelectorAll('[data-visible="true"]')).filter(function(e){return!e.querySelector("input").disabled}).forEach(function(t){t.querySelector("input").checked=i;var e=n.find(function(e){return e.text===t.getAttribute("data-select-multiple-value")});e&&(i?(e.setAttribute("selected","selected"),e.selected=!0):(e.removeAttribute("selected","selected"),e.selected=!1))}),this.updateCurrentValue()},e.handleFocusout=function(e){e.relatedTarget&&this.selectMultiple&&!this.selectMultiple.contains(e.relatedTarget)&&"block"===this.searchContainer.style.display&&(this.searchContainer.style.display="none")},e.handleSearch=function(e){var t=[],i=e.target.value.toLowerCase();this.checkboxes.forEach(function(e){e.getAttribute("data-select-multiple-value").toLocaleLowerCase().includes(i)?(e.setAttribute("data-visible",!0),e.style.display="flex",t.push(e)):(e.setAttribute("data-visible",!1),e.style.display="none")});var n=t.filter(function(e){return e.querySelector("input").checked});t.length!==n.length?this.selectAll.querySelector("input").checked=!1:this.selectAll.querySelector("input").checked=!0,0===i.length&&this.checkboxes.forEach(function(e){e.setAttribute("data-visible",!0),e.style.display="flex"})},e.handleClickOutside=function(e){e.target&&this.selectMultiple&&!this.selectMultiple.contains(e.target)&&"block"===this.searchContainer.style.display&&(this.searchContainer.style.display="none")},d}(),p=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],y=p.join(","),b="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function _(e,t){t=t||{};var i,n,s,a=[],r=[],o=e.querySelectorAll(y);for(t.includeContainer&&b.call(e,y)&&(o=Array.prototype.slice.apply(o)).unshift(e),i=0;i<o.length;i++)k(n=o[i])&&(0===(s=O(n))?a.push(n):r.push({documentOrder:i,tabIndex:s,node:n}));return r.sort(x).map(function(e){return e.node}).concat(a)}function k(e){return!(!S(e)||function(e){return C(e)&&"radio"===e.type}(t=e)&&!function(e){if(!e.name)return 1;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(t)||O(e)<0);var t}function S(e){return!(e.disabled||C(i=e)&&"hidden"===i.type||(null===(t=e).offsetParent||"hidden"===getComputedStyle(t).visibility));var t,i}_.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==b.call(e,y)&&k(e)},_.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==b.call(e,E)&&S(e)};var E=p.concat("iframe").join(",");function O(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?"true"===e.contentEditable?0:e.tabIndex:t}function x(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function C(e){return"INPUT"===e.tagName}var L,T=_,M=function(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var n in i)D.call(i,n)&&(e[n]=i[n])}return e},D=Object.prototype.hasOwnProperty;var A,N=(A=[],{activateTrap:function(e){var t;0<A.length&&(t=A[A.length-1])!==e&&t.pause();var i=A.indexOf(e);-1===i||A.splice(i,1),A.push(e)},deactivateTrap:function(e){var t=A.indexOf(e);-1!==t&&A.splice(t,1),0<A.length&&A[A.length-1].unpause()}});function I(e){return setTimeout(e,0)}var R,Y=function(e,t){var n=document,i="string"==typeof e?n.querySelector(e):e,s=M({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),a={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},r={activate:function(e){if(a.active)return;v(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:s.onActivate;t&&t();return l(),r},deactivate:o,pause:function(){if(a.paused||!a.active)return;a.paused=!0,c()},unpause:function(){if(!a.paused||!a.active)return;a.paused=!1,v(),l()}};return r;function o(e){if(a.active){clearTimeout(L),c(),a.active=!1,a.paused=!1,N.deactivateTrap(r);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:s.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate)&&I(function(){var e;p((e=a.nodeFocusedBeforeActivation,h("setReturnFocus")||e))}),r}}function l(){return a.active&&(N.activateTrap(r),L=I(function(){p(d())}),n.addEventListener("focusin",f,!0),n.addEventListener("mousedown",u,{capture:!0,passive:!1}),n.addEventListener("touchstart",u,{capture:!0,passive:!1}),n.addEventListener("click",g,{capture:!0,passive:!1}),n.addEventListener("keydown",m,{capture:!0,passive:!1}),r)}function c(){return a.active&&(n.removeEventListener("focusin",f,!0),n.removeEventListener("mousedown",u,!0),n.removeEventListener("touchstart",u,!0),n.removeEventListener("click",g,!0),n.removeEventListener("keydown",m,!0),r)}function h(e){var t=s[e],i=t;if(!t)return null;if("string"==typeof t&&!(i=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(i=t()))throw new Error("`"+e+"` did not return a node");return i}function d(){var e=null!==h("initialFocus")?h("initialFocus"):i.contains(n.activeElement)?n.activeElement:a.firstTabbableNode||h("fallbackFocus");if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e}function u(e){i.contains(e.target)||(s.clickOutsideDeactivates?o({returnFocus:!T.isFocusable(e.target)}):s.allowOutsideClick&&s.allowOutsideClick(e)||e.preventDefault())}function f(e){i.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),p(a.mostRecentlyFocusedNode||d()))}function m(e){if(!1!==s.escapeDeactivates&&("Escape"===(t=e).key||"Esc"===t.key||27===t.keyCode))return e.preventDefault(),void o();var t,i;"Tab"!==(i=e).key&&9!==i.keyCode||function(e){if(v(),e.shiftKey&&e.target===a.firstTabbableNode)return e.preventDefault(),p(a.lastTabbableNode);if(!e.shiftKey&&e.target===a.lastTabbableNode)e.preventDefault(),p(a.firstTabbableNode)}(e)}function g(e){s.clickOutsideDeactivates||i.contains(e.target)||s.allowOutsideClick&&s.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function v(){var e=T(i);a.firstTabbableNode=e[0]||d(),a.lastTabbableNode=e[e.length-1]||d()}function p(e){var t;e!==n.activeElement&&(e&&e.focus?(e.focus(),a.mostRecentlyFocusedNode=e,(t=e).tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select&&e.select()):p(d()))}},P=function(){function s(e,t){var i=void 0===t?{}:t,n=i.galleryItemSelector,s=void 0===n?"[data-ecl-gallery-item]":n,a=i.descriptionSelector,r=void 0===a?"[data-ecl-gallery-description]":a,o=i.metaSelector,l=void 0===o?"[data-ecl-gallery-meta]":o,c=i.closeButtonSelector,h=void 0===c?"[data-ecl-gallery-close]":c,d=i.viewAllSelector,u=void 0===d?"[data-ecl-gallery-all]":d,f=i.countSelector,m=void 0===f?"[data-ecl-gallery-count]":f,g=i.overlaySelector,v=void 0===g?"[data-ecl-gallery-overlay]":g,p=i.overlayHeaderSelector,y=void 0===p?"[data-ecl-gallery-overlay-header]":p,b=i.overlayFooterSelector,w=void 0===b?"[data-ecl-gallery-overlay-footer]":b,_=i.overlayImageSelector,k=void 0===_?"[data-ecl-gallery-overlay-image]":_,S=i.overlayMediaSelector,E=void 0===S?"[data-ecl-gallery-overlay-media]":S,O=i.overlayCounterCurrentSelector,x=void 0===O?"[data-ecl-gallery-overlay-counter-current]":O,C=i.overlayCounterMaxSelector,L=void 0===C?"[data-ecl-gallery-overlay-counter-max]":C,T=i.overlayDownloadSelector,M=void 0===T?"[data-ecl-gallery-overlay-download]":T,D=i.overlayShareSelector,A=void 0===D?"[data-ecl-gallery-overlay-share]":D,N=i.overlayDescriptionSelector,I=void 0===N?"[data-ecl-gallery-overlay-description]":N,R=i.overlayMetaSelector,Y=void 0===R?"[data-ecl-gallery-overlay-meta]":R,P=i.overlayPreviousSelector,B=void 0===P?"[data-ecl-gallery-overlay-previous]":P,F=i.overlayNextSelector,H=void 0===F?"[data-ecl-gallery-overlay-next]":F,W=i.attachClickListener,V=void 0===W||W,U=i.attachKeyListener,z=void 0===U||U,j=i.attachResizeListener,G=void 0===j||j;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.galleryItemSelector=s,this.descriptionSelector=r,this.metaSelector=l,this.closeButtonSelector=h,this.viewAllSelector=u,this.countSelector=m,this.overlaySelector=v,this.overlayHeaderSelector=y,this.overlayFooterSelector=w,this.overlayImageSelector=k,this.overlayMediaSelector=E,this.overlayCounterCurrentSelector=x,this.overlayCounterMaxSelector=L,this.overlayDownloadSelector=M,this.overlayShareSelector=A,this.overlayDescriptionSelector=I,this.overlayMetaSelector=Y,this.overlayPreviousSelector=B,this.overlayNextSelector=H,this.attachClickListener=V,this.attachKeyListener=z,this.attachResizeListener=G,this.galleryItems=null,this.meta=null,this.closeButton=null,this.viewAll=null,this.count=null,this.overlay=null,this.overlayHeader=null,this.overlayFooter=null,this.overlayImage=null,this.overlayMedia=null,this.overlayCounterCurrent=null,this.overlayCounterMax=null,this.overlayDownload=null,this.overlayShare=null,this.overlayDescription=null,this.overlayMeta=null,this.overlayPrevious=null,this.overlayNext=null,this.selectedItem=null,this.focusTrap=null,this.isDesktop=!1,this.resizeTimer=null,this.breakpointMd=768,this.imageHeight=185,this.handleClickOnCloseButton=this.handleClickOnCloseButton.bind(this),this.handleClickOnViewAll=this.handleClickOnViewAll.bind(this),this.handleClickOnItem=this.handleClickOnItem.bind(this),this.handleKeyPressOnItem=this.handleKeyPressOnItem.bind(this),this.handleClickOnPreviousButton=this.handleClickOnPreviousButton.bind(this),this.handleClickOnNextButton=this.handleClickOnNextButton.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleResize=this.handleResize.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).GALLERY,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLGallery=n};var e=s.prototype;return e.init=function(){var t=this;this.galleryItems=h(this.galleryItemSelector,this.element),this.closeButton=d(this.closeButtonSelector,this.element),this.viewAll=d(this.viewAllSelector,this.element),this.count=d(this.countSelector,this.element),this.overlay=d(this.overlaySelector,this.element),this.overlayHeader=d(this.overlayHeaderSelector,this.overlay),this.overlayFooter=d(this.overlayFooterSelector,this.overlay),this.overlayImage=d(this.overlayImageSelector,this.overlay),this.overlayMedia=d(this.overlayMediaSelector,this.overlay),this.overlayCounterCurrent=d(this.overlayCounterCurrentSelector,this.overlay),this.overlayCounterMax=d(this.overlayCounterMaxSelector,this.overlay),this.overlayDownload=d(this.overlayDownloadSelector,this.overlay),this.overlayShare=d(this.overlayShareSelector,this.overlay),this.overlayDescription=d(this.overlayDescriptionSelector,this.overlay),this.overlayMeta=d(this.overlayMetaSelector,this.overlay),this.overlayPrevious=d(this.overlayPreviousSelector,this.overlay),this.overlayNext=d(this.overlayNextSelector,this.overlay),this.focusTrap=Y(this.overlay,{escapeDeactivates:!1,returnFocusOnDeactivate:!1}),this.isDialogSupported=!0,window.HTMLDialogElement||(this.isDialogSupported=!1),this.attachClickListener&&this.closeButton&&this.closeButton.addEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.viewAll&&this.viewAll.addEventListener("click",this.handleClickOnViewAll),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(function(e){t.attachClickListener&&e.addEventListener("click",t.handleClickOnItem),t.attachKeyListener&&e.addEventListener("keyup",t.handleKeyPressOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.addEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.addEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.addEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.addEventListener("close",this.handleClickOnCloseButton),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.checkScreen(),this.hideItems(),this.galleryItems.forEach(function(e,t){e.setAttribute("data-ecl-gallery-item-id",t)}),this.count&&(this.count.innerHTML=this.galleryItems.length)},e.destroy=function(){var t=this;this.attachClickListener&&this.closeButton&&this.closeButton.removeEventListener("click",this.handleClickOnCloseButton),this.attachClickListener&&this.viewAll&&this.viewAll.removeEventListener("click",this.handleClickOnViewAll),this.attachClickListener&&this.galleryItems&&this.galleryItems.forEach(function(e){e.removeEventListener("click",t.handleClickOnItem)}),this.attachClickListener&&this.overlayPrevious&&this.overlayPrevious.removeEventListener("click",this.handleClickOnPreviousButton),this.attachClickListener&&this.overlayNext&&this.overlayNext.removeEventListener("click",this.handleClickOnNextButton),!this.isDialogSupported&&this.attachKeyListener&&this.overlay&&this.overlay.removeEventListener("keyup",this.handleKeyboard),this.isDialogSupported&&this.overlay&&this.overlay.removeEventListener("close",this.handleClickOnCloseButton),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize)},e.checkScreen=function(){window.innerWidth>this.breakpointMd?this.isDesktop=!0:this.isDesktop=!1},e.hideItems=function(){var i=this;if(this.viewAll){if(this.isDesktop){var n=this.element.getBoundingClientRect().top,s=[];return this.galleryItems.forEach(function(e,t){e.parentNode.classList.remove("ecl-gallery__item--hidden"),e.getBoundingClientRect().top-n>2*i.imageHeight&&(s=[].concat(s,[t]))}),void s.forEach(function(e){i.galleryItems[e].parentNode.classList.add("ecl-gallery__item--hidden")})}this.galleryItems.forEach(function(e,t){2<t?e.parentNode.classList.add("ecl-gallery__item--hidden"):e.parentNode.classList.remove("ecl-gallery__item--hidden")})}},e.handleResize=function(){var e=this;clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(function(){e.checkScreen(),e.hideItems()},200)},e.updateOverlay=function(e){var t,i,n=(this.selectedItem=e).dataset.eclGalleryItemEmbedSrc,s=d("video",e),a=null;null!=n?((a=document.createElement("div")).classList.add("ecl-gallery__slider-embed"),t=null,(t=document.createElement("iframe")).setAttribute("src",n),t.setAttribute("frameBorder","0"),this.overlayMedia&&(a.appendChild(t),this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(a))):null!=s?((a=document.createElement("video")).setAttribute("poster",s.poster),a.setAttribute("controls","controls"),a.classList.add("ecl-gallery__slider-video"),this.overlayMedia&&(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(a)),h("source",s).forEach(function(e){var t=document.createElement("source");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("type",e.getAttribute("type")),a.appendChild(t)}),h("track",s).forEach(function(e){var t=document.createElement("track");t.setAttribute("src",e.getAttribute("src")),t.setAttribute("kind",e.getAttribute("kind")),t.setAttribute("srclang",e.getAttribute("srcLang")),t.setAttribute("label",e.getAttribute("label")),a.appendChild(t)}),a.load()):(i=d("img",e),(a=document.createElement("img")).setAttribute("src",i.getAttribute("src")),a.setAttribute("alt",i.getAttribute("alt")),a.classList.add("ecl-gallery__slider-image"),this.overlayMedia?(this.overlayMedia.innerHTML="",this.overlayMedia.appendChild(a)):this.overlayImage&&this.overlayImage.setAttribute("src",e.getAttribute("href"))),this.overlayCounterCurrent.innerHTML=+e.getAttribute("data-ecl-gallery-item-id")+1,this.overlayCounterMax.innerHTML=this.galleryItems.length;var r=this.selectedItem.getAttribute("data-ecl-gallery-item-share");null!=r?(this.overlayShare.href=r,this.overlayShare.hidden=!1):this.overlayShare.hidden=!0,null!=n?this.overlayDownload.hidden=!0:(this.overlayDownload.href=this.selectedItem.href,this.overlayDownload.hidden=!1);var o=d(this.metaSelector,e);this.overlayMeta.innerHTML=o.innerHTML;var l=d(this.descriptionSelector,e);this.overlayDescription.innerHTML=l.innerHTML;var c=this.overlay.clientHeight-this.overlayHeader.clientHeight-this.overlayFooter.clientHeight;this.overlayMedia?Object.assign(a.style,{maxHeight:c+"px"}):this.overlayImage&&Object.assign(this.overlayImage.style,{maxHeight:c+"px"})},e.handleKeyboard=function(e){"Escape"!==e.key&&"Esc"!==e.key||this.handleClickOnCloseButton()},e.handleClickOnCloseButton=function(){this.isDialogSupported?this.overlay.close():this.overlay.removeAttribute("open");var e=d("iframe",this.overlayMedia);e&&e.remove();var t=d("video",this.selectedItem);t&&t.pause(),this.focusTrap.deactivate(),this.selectedItem.focus(),document.body.classList.remove("ecl-u-disablescroll")},e.handleKeyPressOnItem=function(e){32===e.keyCode&&this.handleClickOnItem(e)},e.handleClickOnViewAll=function(e){e.preventDefault(),document.body.classList.add("ecl-u-disablescroll"),this.isDialogSupported?this.overlay.showModal():this.overlay.setAttribute("open",""),this.updateOverlay(this.galleryItems[0]),this.focusTrap.activate()},e.handleClickOnItem=function(e){e.preventDefault(),document.body.classList.add("ecl-u-disablescroll"),this.isDialogSupported?this.overlay.showModal():this.overlay.setAttribute("open",""),this.updateOverlay(e.currentTarget),this.focusTrap.activate()},e.handleClickOnPreviousButton=function(){var e=this.selectedItem.getAttribute("data-ecl-gallery-item-id")-1;e<0&&(e=this.galleryItems.length-1);var t=d("video",this.selectedItem);return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this},e.handleClickOnNextButton=function(){var e=+this.selectedItem.getAttribute("data-ecl-gallery-item-id")+1;e>=this.galleryItems.length&&(e=0);var t=d("video",this.selectedItem);return t&&t.pause(),this.updateOverlay(this.galleryItems[e]),this.selectedItem=this.galleryItems[e],this},s}(),B=u(function(d){!function(u,f){var e=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e};function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var t,m=!1,i=void 0!==u;i&&u.getComputedStyle?(t=f.createElement("div"),["","-webkit-","-moz-","-ms-"].some(function(e){try{t.style.position=e+"sticky"}catch(e){}return""!=t.style.position})&&(m=!0)):m=!0;var a=!1,g="undefined"!=typeof ShadowRoot,r={top:null,left:null},o=[];function v(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}function p(e){return parseFloat(e)||0}function y(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}var s=(e(l,[{key:"refresh",value:function(){var e,t,i,n,s,a,r,o,l,c,h,d;m||this._removed||(this._active&&this._deactivate(),e=this._node,i={position:(t=getComputedStyle(e)).position,top:t.top,display:t.display,marginTop:t.marginTop,marginBottom:t.marginBottom,marginLeft:t.marginLeft,marginRight:t.marginRight,cssFloat:t.cssFloat},isNaN(parseFloat(i.top))||"table-cell"==i.display||"none"==i.display||(this._active=!0,n=e.style.position,"sticky"!=t.position&&"-webkit-sticky"!=t.position||(e.style.position="static"),s=e.parentNode,a=g&&s instanceof ShadowRoot?s.host:s,r=e.getBoundingClientRect(),o=a.getBoundingClientRect(),l=getComputedStyle(a),this._parent={node:a,styles:{position:a.style.position},offsetHeight:a.offsetHeight},this._offsetToWindow={left:r.left,right:f.documentElement.clientWidth-r.right},this._offsetToParent={top:r.top-o.top-p(l.borderTopWidth),left:r.left-o.left-p(l.borderLeftWidth),right:-r.right+o.right-p(l.borderRightWidth)},this._styles={position:n,top:e.style.top,bottom:e.style.bottom,left:e.style.left,right:e.style.right,width:e.style.width,marginTop:e.style.marginTop,marginLeft:e.style.marginLeft,marginRight:e.style.marginRight},c=p(i.top),this._limits={start:r.top+u.pageYOffset-c,end:o.top+u.pageYOffset+a.offsetHeight-p(l.borderBottomWidth)-e.offsetHeight-c-p(i.marginBottom)},"absolute"!=(h=l.position)&&"relative"!=h&&(a.style.position="relative"),this._recalcPosition(),(d=this._clone={}).node=f.createElement("div"),v(d.node.style,{width:r.right-r.left+"px",height:r.bottom-r.top+"px",marginTop:i.marginTop,marginBottom:i.marginBottom,marginLeft:i.marginLeft,marginRight:i.marginRight,cssFloat:i.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),s.insertBefore(d.node,e),d.docOffsetTop=y(d.node)))}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var e=r.top<=this._limits.start?"start":r.top>=this._limits.end?"end":"middle";if(this._stickyMode!=e){switch(e){case"start":v(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"middle":v(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0});break;case"end":v(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0})}this._stickyMode=e}}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(1<Math.abs(y(this._clone.node)-this._clone.docOffsetTop)||1<Math.abs(this._parent.node.offsetHeight-this._parent.offsetHeight))&&this.refresh()}},{key:"_deactivate",value:function(){var t=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,v(this._node.style,this._styles),delete this._styles,o.some(function(e){return e!==t&&e._parent&&e._parent.node===t._parent.node})||v(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var i=this;this._deactivate(),o.some(function(e,t){if(e._node===i._node)return o.splice(t,1),!0}),this._removed=!0}}]),l);function l(t){if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),!(t instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(o.some(function(e){return e._node===t}))throw new Error("Stickyfill is already applied to this node");this._node=t,this._stickyMode=null,this._active=!1,o.push(this),this.refresh()}var c={stickies:o,Sticky:s,forceSticky:function(){m=!1,h(),this.refreshAll()},addOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}for(var t=0;t<o.length;t++)if(o[t]._node===e)return o[t];return new s(e)},add:function(i){if(i instanceof HTMLElement&&(i=[i]),i.length){for(var n=[],e=0;e<i.length;e++)(function(e){var t=i[e];t instanceof HTMLElement?o.some(function(e){if(e._node===t)return n.push(e),!0})||n.push(new s(t)):n.push(void 0)})(e);return n}},refreshAll:function(){o.forEach(function(e){return e.refresh()})},removeOne:function(t){if(!(t instanceof HTMLElement)){if(!t.length||!t[0])return;t=t[0]}o.some(function(e){if(e._node===t)return e.remove(),!0})},remove:function(i){if(i instanceof HTMLElement&&(i=[i]),i.length)for(var e=0;e<i.length;e++)!function(e){var t=i[e];o.some(function(e){if(e._node===t)return e.remove(),!0})}(e)},removeAll:function(){for(;o.length;)o[0].remove()}};function h(){var e,t,i;function n(){u.pageXOffset!=r.left?(r.top=u.pageYOffset,r.left=u.pageXOffset,c.refreshAll()):u.pageYOffset!=r.top&&(r.top=u.pageYOffset,r.left=u.pageXOffset,o.forEach(function(e){return e._recalcPosition()}))}function s(){e=setInterval(function(){o.forEach(function(e){return e._fastCheck()})},500)}a||(a=!0,n(),u.addEventListener("scroll",n),u.addEventListener("resize",c.refreshAll),u.addEventListener("orientationchange",c.refreshAll),i=t=e=void 0,"hidden"in f?(t="hidden",i="visibilitychange"):"webkitHidden"in f&&(t="webkitHidden",i="webkitvisibilitychange"),i?(f[t]||s(),f.addEventListener(i,function(){f[t]?clearInterval(e):s()})):s())}m||h(),d.exports?d.exports=c:i&&(u.Stickyfill=c)}(window,document)}),F=u(function(e,t){function i(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}var n,h,d,u,f,s,m,r,o,g,v;Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null}),"function"!=typeof window.CustomEvent&&(i.prototype=window.Event.prototype,window.CustomEvent=i),n=0?window:c,e.exports=(h=n,d={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},u=function(){var i={};return Array.prototype.forEach.call(arguments,function(e){for(var t in e){if(!e.hasOwnProperty(t))return;i[t]=e[t]}}),i},f=function(e,t,i){var n;i.settings.events&&(n=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i}),t.dispatchEvent(n))},s=function(e){var t=0;if(e.offsetParent)for(;e;)t+=e.offsetTop,e=e.offsetParent;return 0<=t?t:0},m=function(e){e&&e.sort(function(e,t){return s(e.content)<s(t.content)?-1:1})},r=function(e,t,i){var n,s=e.getBoundingClientRect(),a="function"==typeof(n=t).offset?parseFloat(n.offset()):parseFloat(n.offset);return i?parseInt(s.bottom,10)<(h.innerHeight||document.documentElement.clientHeight):parseInt(s.top,10)<=a},o=function(){return h.innerHeight+h.pageYOffset>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},g=function(e,t){var i,n,s=e[e.length-1];if(i=s,n=t,o()&&r(i.content,n,!0))return s;for(var a=e.length-1;0<=a;a--)if(r(e[a].content,t))return e[a]},v=function(e,t){var i;!e||(i=e.nav.closest("li"))&&(i.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),function e(t,i){var n;i.nested&&t.parentNode&&((n=t.parentNode.closest("li"))&&(n.classList.remove(i.nestedClass),e(n,i)))}(i,t),f("gumshoeDeactivate",i,{link:e.nav,content:e.content,settings:t}))},function(e,t){var i,n,s,a,r,o={};o.setup=function(){i=document.querySelectorAll(e),n=[],Array.prototype.forEach.call(i,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&n.push({nav:e,content:t})}),m(n)},o.detect=function(){var e=g(n,r);e?s&&e.content===s.content||(v(s,r),function(e,t){var i;!e||(i=e.nav.closest("li"))&&(i.classList.add(t.navClass),e.content.classList.add(t.contentClass),function e(t,i){var n;!i.nested||(n=t.parentNode.closest("li"))&&(n.classList.add(i.nestedClass),e(n,i))}(i,t),f("gumshoeActivate",i,{link:e.nav,content:e.content,settings:t}))}(e,r),s=e):s&&(v(s,r),s=null)};var l=function(e){a&&h.cancelAnimationFrame(a),a=h.requestAnimationFrame(o.detect)},c=function(e){a&&h.cancelAnimationFrame(a),a=h.requestAnimationFrame(function(){m(n),o.detect()})};o.destroy=function(){s&&v(s,r),h.removeEventListener("scroll",l,!1),r.reflow&&h.removeEventListener("resize",c,!1),r=a=s=i=n=null};return function(){if(r=u(d,t||{}),o.setup(),o.detect(),h.addEventListener("scroll",l,false),r.reflow){h.addEventListener("resize",c,false)}}(),o})}),H=function(){function s(e,t){var i=void 0===t?{}:t,n=i.stickySelector,s=void 0===n?"[data-ecl-inpage-navigation]":n,a=i.containerSelector,r=void 0===a?"[data-ecl-inpage-navigation-container]":a,o=i.inPageList,l=void 0===o?"[data-ecl-inpage-navigation-list]":o,c=i.spySelector,h=void 0===c?"[data-ecl-inpage-navigation-link]":c,d=i.toggleSelector,u=void 0===d?"[data-ecl-inpage-navigation-trigger]":d,f=i.linksSelector,m=void 0===f?"[data-ecl-inpage-navigation-link]":f,g=i.spyActiveContainer,v=void 0===g?"ecl-inpage-navigation--visible":g,p=i.spyOffset,y=void 0===p?20:p,b=i.spyClass,w=void 0===b?"ecl-inpage-navigation__item--active":b,_=i.spyTrigger,k=void 0===_?"[data-ecl-inpage-navigation-trigger-current]":_,S=i.attachClickListener,E=void 0===S||S,O=i.contentClass,x=void 0===O?"ecl-inpage-navigation__heading--active":O;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.attachClickListener=E,this.stickySelector=s,this.containerSelector=r,this.toggleSelector=u,this.linksSelector=m,this.inPageList=l,this.spyActiveContainer=v,this.spySelector=h,this.spyOffset=y,this.spyClass=w,this.spyTrigger=k,this.contentClass=x,this.gumshoe=null,this.observer=null,this.stickyObserver=null,this.handleClickOnToggler=this.handleClickOnToggler.bind(this),this.handleClickOnLink=this.handleClickOnLink.bind(this),this.initScrollSpy=this.initScrollSpy.bind(this),this.initObserver=this.initObserver.bind(this),this.activateScrollSpy=this.activateScrollSpy.bind(this),this.deactivateScrollSpy=this.deactivateScrollSpy.bind(this),this.destroySticky=this.destroySticky.bind(this),this.destroyScrollSpy=this.destroyScrollSpy.bind(this),this.destroyObserver=this.destroyObserver.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).INPAGE_NAVIGATION,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLInpageNavigation=n};var e=s.prototype;return e.initSticky=function(){this.stickyInstance=new B.Sticky(this.element)},e.destroySticky=function(){this.stickyInstance&&this.stickyInstance.remove()},e.initScrollSpy=function(){var e,a,r,o,l=this;this.gumshoe=new F(this.spySelector,{navClass:this.spyClass,contentClass:this.contentClass,offset:this.spyOffset,reflow:!0}),document.addEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.addEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),"IntersectionObserver"in window&&((e=d(this.containerSelector))&&(r=a=0,o=!1,this.stickyObserver=new IntersectionObserver(function(e){if(e&&e[0]){var t=e[0],i=t.boundingClientRect.y,n=t.intersectionRatio,s=t.isIntersecting;if(!o)return o=!0,a=i,void(r=n);i<a?r<n&&s||l.element.classList.remove(l.spyActiveContainer):a<i&&s&&r<n&&l.element.classList.add(l.spyActiveContainer),a=i,r=n}},{root:null}),this.stickyObserver.observe(e)))},e.activateScrollSpy=function(e){var t=d(this.spyTrigger);this.element.classList.add(this.spyActiveContainer),t.textContent=e.detail.content.textContent},e.deactivateScrollSpy=function(){var e=d(this.spyTrigger),t=d(this.toggleSelector,this.element);this.element.classList.remove(this.spyActiveContainer),e.innerHTML="",t.setAttribute("aria-expanded","false")},e.destroyScrollSpy=function(){this.stickyObserver&&this.stickyObserver.disconnect(),document.removeEventListener("gumshoeActivate",this.activateScrollSpy,!1),document.removeEventListener("gumshoeDeactivate",this.deactivateScrollSpy,!1),this.gumshoe.destroy()},e.initObserver=function(){var t;"MutationObserver"in window&&((t=this).observer=new MutationObserver(function(e){var n=d(".ecl-col-lg-9"),s=d("[data-ecl-inpage-navigation-list]");e.forEach(function(e){e&&e.target&&e.target.classList&&!e.target.classList.contains("ecl-inpage-navigation__trigger-current")&&(0<e.addedNodes.length&&[].slice.call(e.addedNodes).forEach(function(t){var e,i;"H2"===t.tagName&&t.id&&(e=h("h2[id]",n).findIndex(function(e){return e.id===t.id}),(i=s.childNodes[e-1].cloneNode(!0)).childNodes[0].textContent=t.textContent,i.childNodes[0].href="#"+t.id,s.childNodes[e-1].after(i))}),0<e.removedNodes.length&&[].slice.call(e.removedNodes).forEach(function(t){"H2"===t.tagName&&t.id&&s.childNodes.forEach(function(e){-1!==e.childNodes[0].href.indexOf(t.id)&&e.remove()})}),t.update())})}),this.observer.observe(document,{subtree:!0,childList:!0}))},e.destroyObserver=function(){this.observer&&this.observer.disconnect()},e.init=function(){var t=this,e=d(this.toggleSelector,this.element),i=h(this.linksSelector,this.element);this.initSticky(this.element),this.initScrollSpy(),this.initObserver(),this.attachClickListener&&e&&e.addEventListener("click",this.handleClickOnToggler),this.attachClickListener&&i&&(i.forEach(function(e){return e.addEventListener("click",t.handleClickOnLink)}),e.addEventListener("click",this.handleClickOnToggler))},e.update=function(){this.gumshoe.setup()},e.handleClickOnToggler=function(e){var t=d(this.inPageList,this.element),i=d(this.toggleSelector,this.element);e.preventDefault();var n="true"===i.getAttribute("aria-expanded");i.setAttribute("aria-expanded",n?"false":"true"),n?t.classList.remove("ecl-inpage-navigation__list--visible"):t.classList.add("ecl-inpage-navigation__list--visible")},e.handleClickOnLink=function(){var e=d(this.inPageList,this.element),t=d(this.toggleSelector,this.element);e.classList.remove("ecl-inpage-navigation__list--visible"),t.setAttribute("aria-expanded","false")},e.destroy=function(){var t=this;this.attachClickListener&&this.toggleElement&&this.toggleElement.removeEventListener("click",this.handleClickOnToggler),this.attachClickListener&&this.navLinks&&this.navLinks.forEach(function(e){return e.removeEventListener("click",t.handleClickOnLink)}),this.destroyScrollSpy(),this.destroySticky(),this.destroyObserver()},s}(),W=u(function(e){function n(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,s;e.exports=(s={},n.m=i=[function(e,t,i){var n={MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0};e.exports={BROWSER_TYPES:{CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},DEVICE_TYPES:n,OS_TYPES:{IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},defaultData:{isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1}}},function(e,t,i){function n(){return C.name===u.WINDOWS&&"10"===C.version&&("string"==typeof L&&-1!==L.indexOf("Edg/"))}function s(){return E.name===Y}function a(){return k("iPad")}var r,o,l,c=i(2),h=i(0),d=h.BROWSER_TYPES,u=h.OS_TYPES,f=h.DEVICE_TYPES,m=i(4),g=m.checkType,v=m.broPayload,p=m.mobilePayload,y=m.wearPayload,b=m.consolePayload,w=m.stvPayload,_=m.getNavigatorInstance,k=m.isIOS13Check,S=new c,E=S.getBrowser(),O=S.getDevice(),x=S.getEngine(),C=S.getOS(),L=S.getUA(),T=d.CHROME,M=d.CHROMIUM,D=d.IE,A=d.INTERNET_EXPLORER,N=d.OPERA,I=d.FIREFOX,R=d.SAFARI,Y=d.EDGE,P=d.YANDEX,B=d.MOBILE_SAFARI,F=f.MOBILE,H=f.TABLET,W=f.SMART_TV,V=f.BROWSER,U=f.WEARABLE,z=f.CONSOLE,j=u.ANDROID,G=u.WINDOWS_PHONE,q=u.IOS,Z=u.WINDOWS,K=u.MAC_OS,X=O.type===W,$=O.type===z,J=O.type===U,Q=E.name===B||a(),ee=E.name===M,te=function(){switch(O.type){case F:case H:return!0;default:return!1}}()||a(),ie=O.type===F,ne=O.type===H||a(),se=O.type===V,ae=C.name===j,re=C.name===G,oe=C.name===q||a(),le=E.name===T,ce=E.name===I,he=E.name===R||E.name===B,de=E.name===N,ue=E.name===A||E.name===D,fe=C.version?C.version:"none",me=C.name?C.name:"none",ge=E.major,ve=E.version,pe=E.name,ye=O.vendor?O.vendor:"none",be=O.model?O.model:"none",we=x.name,_e=x.version,ke=L,Se=s()||n(),Ee=E.name===P,Oe=O.type,xe=(r=_())&&(/iPad|iPhone|iPod/.test(r.platform)||"MacIntel"===r.platform&&1<r.maxTouchPoints)&&!window.MSStream,Ce=a(),Le=k("iPhone"),Te=k("iPod"),Me=(o=_(),"string"==typeof(l=o&&o.userAgent.toLowerCase())&&/electron/.test(l)),De=n(),Ae=s(),Ne=C.name===Z,Ie=C.name===K,Re=g(O.type);e.exports={deviceDetect:function(){var e=Re.isBrowser,t=Re.isMobile,i=Re.isTablet,n=Re.isSmartTV,s=Re.isConsole,a=Re.isWearable;return e?v(e,E,x,C,L):n?w(n,x,C,L):s?b(s,x,C,L):t||i?p(Re,O,C,L):a?y(a,x,C,L):void 0},isSmartTV:X,isConsole:$,isWearable:J,isMobileSafari:Q,isChromium:ee,isMobile:te,isMobileOnly:ie,isTablet:ne,isBrowser:se,isAndroid:ae,isWinPhone:re,isIOS:oe,isChrome:le,isFirefox:ce,isSafari:he,isOpera:de,isIE:ue,osVersion:fe,osName:me,fullBrowserVersion:ge,browserVersion:ve,browserName:pe,mobileVendor:ye,mobileModel:be,engineName:we,engineVersion:_e,getUA:ke,isEdge:Se,isYandex:Ee,deviceType:Oe,isIOS13:xe,isIPad13:Ce,isIPhone13:Le,isIPod13:Te,isElectron:Me,isEdgeChromium:De,isLegacyEdge:Ae,isWindows:Ne,isMacOs:Ie}},function(k,S,E){var O;!function(s,d){function a(e,t){if("object"==typeof e&&(t=e,e=d),!(this instanceof a))return new a(e,t).getResult();var i=e||(s&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:""),n=t?v.extend(b,t):b;return this.getBrowser=function(){var e={name:d,version:d};return p.rgx.call(e,i,n.browser),e.major=v.major(e.version),e},this.getCPU=function(){var e={architecture:d};return p.rgx.call(e,i,n.cpu),e},this.getDevice=function(){var e={vendor:d,model:d,type:d};return p.rgx.call(e,i,n.device),e},this.getEngine=function(){var e={name:d,version:d};return p.rgx.call(e,i,n.engine),e},this.getOS=function(){var e={name:d,version:d};return p.rgx.call(e,i,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=e,this},this}var u="function",e="undefined",t="model",i="name",n="type",r="vendor",o="version",l="architecture",c="console",h="mobile",f="tablet",m="smarttv",g="wearable",v={extend:function(e,t){var i={};for(var n in e)t[n]&&t[n].length%2==0?i[n]=t[n].concat(e[n]):i[n]=e[n];return i},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:d},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={rgx:function(e,t){for(var i,n,s,a,r,o=0;o<t.length&&!a;){for(var l=t[o],c=t[o+1],h=i=0;h<l.length&&!a;)if(a=l[h++].exec(e))for(n=0;n<c.length;n++)r=a[++i],"object"==typeof(s=c[n])&&0<s.length?2==s.length?typeof s[1]==u?this[s[0]]=s[1].call(this,r):this[s[0]]=s[1]:3==s.length?typeof s[1]!=u||s[1].exec&&s[1].test?this[s[0]]=r?r.replace(s[1],s[2]):d:this[s[0]]=r?s[1].call(this,r,s[2]):d:4==s.length&&(this[s[0]]=r?s[3].call(this,r.replace(s[1],s[2])):d):this[s]=r||d;o+=2}},str:function(e,t){for(var i in t)if("object"==typeof t[i]&&0<t[i].length){for(var n=0;n<t[i].length;n++)if(v.has(t[i][n],e))return"?"===i?d:i}else if(v.has(t[i],e))return"?"===i?d:i;return e}},y={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},b={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[i,o],[/(opios)[\/\s]+([\w\.]+)/i],[[i,"Opera Mini"],o],[/\s(opr)\/([\w\.]+)/i],[[i,"Opera"],o],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[i,o],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[i,"IE"],o],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[i,"Edge"],o],[/(yabrowser)\/([\w\.]+)/i],[[i,"Yandex"],o],[/(puffin)\/([\w\.]+)/i],[[i,"Puffin"],o],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[i,"UCBrowser"],o],[/(comodo_dragon)\/([\w\.]+)/i],[[i,/_/g," "],o],[/(micromessenger)\/([\w\.]+)/i],[[i,"WeChat"],o],[/(qqbrowserlite)\/([\w\.]+)/i],[i,o],[/(QQ)\/([\d\.]+)/i],[i,o],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[i,o],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[i,o],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[i,o],[/(MetaSr)[\/\s]?([\w\.]+)/i],[i],[/(LBBROWSER)/i],[i],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[o,[i,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[o,[i,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[o,[i,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[i,/(.+)/,"$1 WebView"],o],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[i,/(.+(?:g|us))(.+)/,"$1 $2"],o],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[o,[i,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[i,o],[/(dolfin)\/([\w\.]+)/i],[[i,"Dolphin"],o],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[i,"Chrome"],o],[/(coast)\/([\w\.]+)/i],[[i,"Opera Coast"],o],[/fxios\/([\w\.-]+)/i],[o,[i,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[o,[i,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[o,i],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[i,"GSA"],o],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[i,[o,p.str,y.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[i,o],[/(navigator|netscape)\/([\w\.-]+)/i],[[i,"Netscape"],o],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[i,o]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[l,"amd64"]],[/(ia32(?=;))/i],[[l,v.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[l,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[l,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[l,/ower/,"",v.lowerize]],[/(sun4\w)[;\)]/i],[[l,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[l,v.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[t,r,[n,f]],[/applecoremedia\/[\w\.]+ \((ipad)/],[t,[r,"Apple"],[n,f]],[/(apple\s{0,1}tv)/i],[[t,"Apple TV"],[r,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[r,t,[n,f]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[t,[r,"Amazon"],[n,f]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[t,p.str,y.device.amazon.model],[r,"Amazon"],[n,h]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[t,r,[n,h]],[/\((ip[honed|\s\w*]+);/i],[t,[r,"Apple"],[n,h]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[r,t,[n,h]],[/\(bb10;\s(\w+)/i],[t,[r,"BlackBerry"],[n,h]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[t,[r,"Asus"],[n,f]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[r,"Sony"],[t,"Xperia Tablet"],[n,f]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[t,[r,"Sony"],[n,h]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[r,t,[n,c]],[/android.+;\s(shield)\sbuild/i],[t,[r,"Nvidia"],[n,c]],[/(playstation\s[34portablevi]+)/i],[t,[r,"Sony"],[n,c]],[/(sprint\s(\w+))/i],[[r,p.str,y.device.sprint.vendor],[t,p.str,y.device.sprint.model],[n,h]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[r,t,[n,f]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[r,[t,/_/g," "],[n,h]],[/(nexus\s9)/i],[t,[r,"HTC"],[n,f]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[t,[r,"Huawei"],[n,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[r,t,[n,h]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[t,[r,"Microsoft"],[n,c]],[/(kin\.[onetw]{3})/i],[[t,/\./g," "],[r,"Microsoft"],[n,h]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[t,[r,"Motorola"],[n,h]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[t,[r,"Motorola"],[n,f]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[r,v.trim],[t,v.trim],[n,m]],[/hbbtv.+maple;(\d+)/i],[[t,/^/,"SmartTV"],[r,"Samsung"],[n,m]],[/\(dtv[\);].+(aquos)/i],[t,[r,"Sharp"],[n,m]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[r,"Samsung"],t,[n,f]],[/smart-tv.+(samsung)/i],[r,[n,m],t],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[r,"Samsung"],t,[n,h]],[/sie-(\w*)/i],[t,[r,"Siemens"],[n,h]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[r,"Nokia"],t,[n,h]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[t,[r,"Acer"],[n,f]],[/android.+([vl]k\-?\d{3})\s+build/i],[t,[r,"LG"],[n,f]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[r,"LG"],t,[n,f]],[/(lg) netcast\.tv/i],[r,t,[n,m]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[t,[r,"LG"],[n,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[t,[r,"Lenovo"],[n,f]],[/linux;.+((jolla));/i],[r,t,[n,h]],[/((pebble))app\/[\d\.]+\s/i],[r,t,[n,g]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[r,t,[n,h]],[/crkey/i],[[t,"Chromecast"],[r,"Google"]],[/android.+;\s(glass)\s\d/i],[t,[r,"Google"],[n,g]],[/android.+;\s(pixel c)\s/i],[t,[r,"Google"],[n,f]],[/android.+;\s(pixel xl|pixel)\s/i],[t,[r,"Google"],[n,h]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[t,/_/g," "],[r,"Xiaomi"],[n,h]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[t,/_/g," "],[r,"Xiaomi"],[n,f]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[t,[r,"Meizu"],[n,f]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[t,[r,"OnePlus"],[n,h]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[t,[r,"RCA"],[n,f]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[t,[r,"Dell"],[n,f]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[t,[r,"Verizon"],[n,f]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[r,"Barnes & Noble"],t,[n,f]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[t,[r,"NuVision"],[n,f]],[/android.+;\s(k88)\sbuild/i],[t,[r,"ZTE"],[n,f]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[t,[r,"Swiss"],[n,h]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[t,[r,"Swiss"],[n,f]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[t,[r,"Zeki"],[n,f]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[r,"Dragon Touch"],t,[n,f]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[t,[r,"Insignia"],[n,f]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[t,[r,"NextBook"],[n,f]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[r,"Voice"],t,[n,h]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[r,"LvTel"],t,[n,h]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[t,[r,"Envizen"],[n,f]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[r,t,[n,f]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[t,[r,"MachSpeed"],[n,f]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[r,t,[n,f]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[t,[r,"Rotor"],[n,f]],[/android.+(KS(.+))\s+build/i],[t,[r,"Amazon"],[n,f]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[r,t,[n,f]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[n,v.lowerize],r,t],[/(android[\w\.\s\-]{0,9});.+build/i],[t,[r,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[o,[i,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[i,o],[/rv\:([\w\.]{1,9}).+(gecko)/i],[o,i]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[i,o],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[i,[o,p.str,y.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[i,"Windows"],[o,p.str,y.os.windows.version]],[/\((bb)(10);/i],[[i,"BlackBerry"],o],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[i,o],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[i,"Symbian"],o],[/\((series40);/i],[i],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[i,"Firefox OS"],o],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[i,o],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[i,"Chromium OS"],o],[/(sunos)\s?([\w\.\d]*)/i],[[i,"Solaris"],o],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[i,o],[/(haiku)\s(\w+)/i],[i,o],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[o,/_/g,"."],[i,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[i,"Mac OS"],[o,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[i,o]]};a.VERSION="0.7.18",a.BROWSER={NAME:i,MAJOR:"major",VERSION:o},a.CPU={ARCHITECTURE:l},a.DEVICE={MODEL:t,VENDOR:r,TYPE:n,CONSOLE:c,MOBILE:h,SMARTTV:m,TABLET:f,WEARABLE:g,EMBEDDED:"embedded"},a.ENGINE={NAME:i,VERSION:o},a.OS={NAME:i,VERSION:o},typeof S!=e?(typeof k!=e&&k.exports&&(S=k.exports=a),S.UAParser=a):E(3)?(O=function(){return a}.call(S,E,S,k))===d||(k.exports=O):s&&(s.UAParser=a);var w,_=s&&(s.jQuery||s.Zepto);typeof _!=e&&(w=new a,_.ua=w.getResult(),_.ua.get=function(){return w.getUA()},_.ua.set=function(e){w.setUA(e);var t=w.getResult();for(var i in t)_.ua[i]=t[i]})}("object"==typeof window?window:this)},function(t,e){(function(e){t.exports=e}).call(e,{})},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},n=i(0),a=n.DEVICE_TYPES,r=n.defaultData,o=t.getNavigatorInstance=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},l=t.isIOS13Check=function(e){var t=o();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&1<t.maxTouchPoints&&!window.MSStream)};e.exports={checkType:function(e){switch(e){case a.MOBILE:return{isMobile:!0};case a.TABLET:return{isTablet:!0};case a.SMART_TV:return{isSmartTV:!0};case a.CONSOLE:return{isConsole:!0};case a.WEARABLE:return{isWearable:!0};case a.BROWSER:return{isBrowser:!0};default:return r}},broPayload:function(e,t,i,n,s){return{isBrowser:e,browserMajorVersion:t.major,browserFullVersion:t.version,browserName:t.name,engineName:i.name||!1,engineVersion:i.version,osName:n.name,osVersion:n.version,userAgent:s}},mobilePayload:function(e,t,i,n){return s({},e,{vendor:t.vendor,model:t.model,os:i.name,osVersion:i.version,ua:n})},stvPayload:function(e,t,i,n){return{isSmartTV:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:n}},consolePayload:function(e,t,i,n){return{isConsole:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:n}},wearPayload:function(e,t,i,n){return{isWearable:e,engineName:t.name,engineVersion:t.version,osName:i.name,osVersion:i.version,userAgent:n}},getNavigatorInstance:o,isIOS13Check:l}}],n.c=s,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1))}),V=(R=W)&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R,U=u(function(e){function t(S,E){if(S){"undefined"!=typeof window&&"function"!=typeof window.CustomEvent&&(l.prototype=window.Event.prototype,window.CustomEvent=l),E=x({},{minHorizontal:10,minVertical:10,deltaHorizontal:3,deltaVertical:5,preventScroll:!1,lockAxis:!0,touch:!0,mouse:!0},E=E||{});var O=[],t=!1,e=function(){t=!0},i=function(e){t=!1,s(e)},n=function(e){t&&(e.changedTouches=[{clientX:e.clientX,clientY:e.clientY}],a(e))};E.mouse&&(S.addEventListener("mousedown",e),S.addEventListener("mouseup",i),S.addEventListener("mousemove",n));var s=function(e){var t=Math.abs,i=Math.max,n=Math.min;if(O.length){for(var s="function"==typeof TouchEvent&&e instanceof TouchEvent,a=[],r=[],o={top:!1,right:!1,bottom:!1,left:!1},l=0;l<O.length;l++)a.push(O[l].x),r.push(O[l].y);var c,h,d=a[0],u=a[a.length-1],f=r[0],m=r[r.length-1],g={x:[d,u],y:[f,m]};1<O.length&&(c={detail:x({touch:s,target:e.target},g)},h=new CustomEvent("swiperelease",c),S.dispatchEvent(h));var v,p,y,b=a[0]-a[a.length-1],w="none",w=0<b?"left":"right",_=n.apply(Math,a),k=i.apply(Math,a);t(b)>=E.minHorizontal&&("left"==w?t(_-a[a.length-1])<=E.deltaHorizontal&&(o.left=!0):"right"!=w||t(k-a[a.length-1])<=E.deltaHorizontal&&(o.right=!0)),w="none",w=0<(b=r[0]-r[r.length-1])?"top":"bottom",_=n.apply(Math,r),k=i.apply(Math,r),t(b)>=E.minVertical&&("top"==w?t(_-r[r.length-1])<=E.deltaVertical&&(o.top=!0):"bottom"!=w||t(k-r[r.length-1])<=E.deltaVertical&&(o.bottom=!0)),O=[],o.top||o.right||o.bottom||o.left?(E.lockAxis&&((o.left||o.right)&&t(d-u)>t(f-m)?o.top=o.bottom=!1:(o.top||o.bottom)&&t(d-u)<t(f-m)&&(o.left=o.right=!1)),v={detail:x({directions:o,touch:s,target:e.target},g)},p=new CustomEvent("swipe",v),S.dispatchEvent(p)):(y=new CustomEvent("swipecancel",{detail:x({touch:s,target:e.target},g)}),S.dispatchEvent(y))}},a=function(e){E.preventScroll&&e.preventDefault();var t,i,n,s,a,r,o=e.changedTouches[0];O.push({x:o.clientX,y:o.clientY}),1<O.length&&(t=O[0].x,i=O[O.length-1].x,n=O[0].y,s=O[O.length-1].y,a={detail:{x:[t,i],y:[n,s],touch:"function"==typeof TouchEvent&&e instanceof TouchEvent,target:e.target}},r=new CustomEvent("swiping",a),S.dispatchEvent(r))},r=!1;try{var o=Object.defineProperty({},"passive",{get:function(){r={passive:!E.preventScroll}}});window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}catch(S){}return E.touch&&(S.addEventListener("touchmove",a,r),S.addEventListener("touchend",s)),{off:function(){S.removeEventListener("touchmove",a,r),S.removeEventListener("touchend",s),S.removeEventListener("mousedown",e),S.removeEventListener("mouseup",i),S.removeEventListener("mousemove",n)}}}function l(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}}var x=Object.assign||function(e){for(var t,i=1;i<arguments.length;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e};e.exports=t,e.exports.default=t}),z=function(){function s(e,t){var i=void 0===t?{}:t,n=i.openSelector,s=void 0===n?"[data-ecl-menu-open]":n,a=i.closeSelector,r=void 0===a?"[data-ecl-menu-close]":a,o=i.backSelector,l=void 0===o?"[data-ecl-menu-back]":o,c=i.overlaySelector,h=void 0===c?"[data-ecl-menu-overlay]":c,d=i.innerSelector,u=void 0===d?"[data-ecl-menu-inner]":d,f=i.itemSelector,m=void 0===f?"[data-ecl-menu-item]":f,g=i.linkSelector,v=void 0===g?"[data-ecl-menu-link]":g,p=i.megaSelector,y=void 0===p?"[data-ecl-menu-mega]":p,b=i.subItemSelector,w=void 0===b?"[data-ecl-menu-subitem]":b,_=i.attachClickListener,k=void 0===_||_,S=i.attachFocusListener,E=void 0===S||S,O=i.attachKeyListener,x=void 0===O||O,C=i.attachSwipeListener,L=void 0===C||C,T=i.attachResizeListener,M=void 0===T||T;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.openSelector=s,this.closeSelector=r,this.backSelector=l,this.overlaySelector=h,this.innerSelector=u,this.itemSelector=m,this.linkSelector=v,this.megaSelector=y,this.subItemSelector=w,this.attachClickListener=k,this.attachFocusListener=E,this.attachKeyListener=x,this.attachSwipeListener=L,this.attachResizeListener=M,this.open=null,this.close=null,this.back=null,this.overlay=null,this.inner=null,this.items=null,this.links=null,this.isOpen=!1,this.resizeTimer=null,this.handleClickOnOpen=this.handleClickOnOpen.bind(this),this.handleClickOnClose=this.handleClickOnClose.bind(this),this.handleClickOnBack=this.handleClickOnBack.bind(this),this.handleClickOnLink=this.handleClickOnLink.bind(this),this.handleFocusOnLink=this.handleFocusOnLink.bind(this),this.handleKeyboard=this.handleKeyboard.bind(this),this.handleSwipe=this.handleSwipe.bind(this),this.handleResize=this.handleResize.bind(this),this.useDesktopDisplay=this.useDesktopDisplay.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).MENU,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLMenu=n};var e=s.prototype;return e.init=function(){var t=this;this.open=d(this.openSelector,this.element),this.close=d(this.closeSelector,this.element),this.back=d(this.backSelector,this.element),this.overlay=d(this.overlaySelector,this.element),this.inner=d(this.innerSelector,this.element),this.items=h(this.itemSelector,this.element),this.links=h(this.linkSelector,this.element),this.useDesktopDisplay(),this.attachClickListener&&this.open&&this.open.addEventListener("click",this.handleClickOnOpen),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose),this.attachClickListener&&this.back&&this.back.addEventListener("click",this.handleClickOnBack),this.attachClickListener&&this.overlay&&this.overlay.addEventListener("click",this.handleClickOnClose),this.attachClickListener&&this.links&&this.links.forEach(function(e){e.parentElement.hasAttribute("data-ecl-has-children")&&e.addEventListener("click",t.handleClickOnLink)}),this.attachFocusListener&&this.links&&this.links.forEach(function(e){e.addEventListener("focus",t.handleFocusOnLink)}),this.attachKeyListener&&this.links&&document.addEventListener("keyup",this.handleKeyboard),this.swipeInstance=U(document),this.attachSwipeListener&&document.addEventListener("swipe",this.handleSwipe),this.attachResizeListener&&window.addEventListener("resize",this.handleResize),this.items&&!V.isMobile&&this.items.forEach(function(e){t.checkMenuItem(e)}),this.stickyInstance=new B.Sticky(this.element),setTimeout(function(){t.element.classList.add("ecl-menu--transition")},500)},e.destroy=function(){var t=this;this.attachClickListener&&this.open&&this.open.removeEventListener("click",this.handleClickOnOpen),this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose),this.attachClickListener&&this.back&&this.back.removeEventListener("click",this.handleClickOnBack),this.attachClickListener&&this.overlay&&this.overlay.removeEventListener("click",this.handleClickOnClose),this.attachClickListener&&this.links&&this.links.forEach(function(e){e.parentElement.hasAttribute("data-ecl-has-children")&&e.removeEventListener("click",t.handleClickOnLink)}),this.attachFocusListener&&this.links&&this.links.forEach(function(e){e.removeEventListener("focus",t.handleFocusOnLink)}),this.attachKeyListener&&this.links&&document.removeEventListener("keyup",this.handleKeyboard),this.attachSwipeListener&&document.removeEventListener("swipe",this.handleSwipe),this.attachResizeListener&&window.removeEventListener("resize",this.handleResize)},e.useDesktopDisplay=function(){return!V.isMobileOnly&&(V.isTablet?(this.element.classList.add("ecl-menu--forced-mobile"),!1):(this.element.classList.remove("ecl-menu--forced-mobile"),!0))},e.handleResize=function(){var t=this;return this.element.classList.remove("ecl-menu--transition"),clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(function(){t.element.classList.remove("ecl-menu--forced-mobile"),t.useDesktopDisplay(),t.items&&!V.isMobile&&t.items.forEach(function(e){t.checkMenuItem(e)}),t.element.classList.add("ecl-menu--transition")},200),this},e.handleSwipe=function(e){if(!V.isMobile)return!1;var t=e.detail.directions;return t.left&&this.handleClickOnOpen(e),t.right&&this.handleClickOnClose(e),this},e.checkMenuItem=function(e){var t=d(this.megaSelector,e);if(t){var i=h(this.subItemSelector,t);if(12<i.length)return e.classList.add("ecl-menu__item--full"),void(16<i.length&&i.slice(16).forEach(function(e){return e.classList.add("ecl-menu__subitem--extra")}));var n=t.getBoundingClientRect(),s=this.inner.getBoundingClientRect(),a=e.getBoundingClientRect(),r=n.width;s.width<a.left-s.left+r?t.classList.add("ecl-menu__mega--rtl"):t.classList.remove("ecl-menu__mega--rtl")}},e.handleClickOnOpen=function(e){return e.preventDefault(),this.element.setAttribute("aria-expanded","true"),this.inner.setAttribute("aria-hidden","false"),this.isOpen=!0,this},e.handleClickOnClose=function(){return this.element.setAttribute("aria-expanded","false"),this.inner.classList.remove("ecl-menu__inner--expanded"),this.inner.setAttribute("aria-hidden","true"),this.items.forEach(function(e){e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")}),this.isOpen=!1,this},e.handleClickOnBack=function(){return this.inner.classList.remove("ecl-menu__inner--expanded"),this.items.forEach(function(e){e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false")}),this},e.handleClickOnLink=function(e){if(!this.isOpen||this.inner.classList.contains("ecl-menu__inner--expanded"))return!0;e.preventDefault(),this.inner.classList.add("ecl-menu__inner--expanded");var t=e.target.closest("[data-ecl-menu-item]");return this.items.forEach(function(e){e===t?(e.classList.add("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","true")):(e.classList.remove("ecl-menu__item--expanded"),e.setAttribute("aria-expanded","false"))}),this},e.handleFocusOnLink=function(e){e.preventDefault();var t=e.target.closest("[data-ecl-menu-item]");return this.items.forEach(function(e){e===t?e.classList.add("ecl-menu__item--focused"):e.classList.remove("ecl-menu__item--focused")}),this},e.handleKeyboard=function(e){"Escape"!==e.key&&"Esc"!==e.key||(this.handleClickOnClose(e),this.items.forEach(function(e){e.classList.remove("ecl-menu__item--focused")}),this.links.forEach(function(e){e.blur()}))},s}(),j=function(){function s(e,t){var i=void 0===t?{}:t,n=i.closeSelector,s=void 0===n?"[data-ecl-message-close]":n,a=i.attachClickListener,r=void 0===a||a;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.closeSelector=s,this.attachClickListener=r,this.close=null,this.handleClickOnClose=this.handleClickOnClose.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).MESSAGE,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLMessage=n};var e=s.prototype;return e.init=function(){this.close=d(this.closeSelector,this.element),this.attachClickListener&&this.close&&this.close.addEventListener("click",this.handleClickOnClose)},e.destroy=function(){this.attachClickListener&&this.close&&this.close.removeEventListener("click",this.handleClickOnClose)},e.handleClickOnClose=function(){return this.element.parentNode&&this.element.parentNode.removeChild(this.element),this},s}(),G=function(){function s(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,r=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,l=void 0===o?"[data-ecl-language-list-close]":o;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=r,this.closeOverlaySelector=l,this.languageSelector=null,this.languageListOverlay=null,this.close=null,this.focusTrap=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).SITE_HEADER,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLSiteHeader=n};var e=s.prototype;return e.init=function(){this.languageSelector=d(this.languageLinkSelector),this.languageListOverlay=d(this.languageListOverlaySelector),this.close=d(this.closeOverlaySelector),this.focusTrap=Y(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay)},e.destroy=function(){this.languageSelector&&this.languageSelector.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.close&&this.close.removeEventListener("click",this.toggleOverlay)},e.openOverlay=function(){this.languageListOverlay.hidden=!1},e.closeOverlay=function(){this.languageListOverlay.hidden=!0},e.toggleOverlay=function(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())},s}(),q=function(){function s(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,r=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,l=void 0===o?"[data-ecl-language-list-close]":o,c=i.searchToggleSelector,h=void 0===c?"[data-ecl-search-toggle]":c,d=i.searchFormSelector,u=void 0===d?"[data-ecl-search-form]":d,f=i.loginToggleSelector,m=void 0===f?"[data-ecl-login-toggle]":f,g=i.loginBoxSelector,v=void 0===g?"[data-ecl-login-box]":g;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=r,this.closeOverlaySelector=l,this.searchToggleSelector=h,this.searchFormSelector=u,this.loginToggleSelector=m,this.loginBoxSelector=v,this.languageSelector=null,this.languageListOverlay=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).SITE_HEADER_CORE,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLSiteHeaderCore=n};var e=s.prototype;return e.init=function(){this.languageSelector=d(this.languageLinkSelector),this.languageListOverlay=d(this.languageListOverlaySelector),this.close=d(this.closeOverlaySelector),this.focusTrap=Y(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=d(this.searchToggleSelector),this.searchForm=d(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=d(this.loginToggleSelector),this.loginBox=d(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin)},e.destroy=function(){this.languageSelector&&this.languageSelector.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin)},e.openOverlay=function(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")},e.closeOverlay=function(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")},e.toggleOverlay=function(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())},e.toggleSearch=function(e){var t;this.searchForm&&(e.preventDefault(),t="true"===this.searchToggle.getAttribute("aria-expanded"),this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header-core__search--active"):this.searchForm.classList.add("ecl-site-header-core__search--active"))},e.toggleLogin=function(e){var t;this.loginBox&&(e.preventDefault(),t="true"===this.loginToggle.getAttribute("aria-expanded"),this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header-core__login-box--active"):this.loginBox.classList.add("ecl-site-header-core__login-box--active"))},s}(),Z=function(){function s(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,r=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,l=void 0===o?"[data-ecl-language-list-close]":o,c=i.searchToggleSelector,h=void 0===c?"[data-ecl-search-toggle]":c,d=i.searchFormSelector,u=void 0===d?"[data-ecl-search-form]":d,f=i.loginToggleSelector,m=void 0===f?"[data-ecl-login-toggle]":f,g=i.loginBoxSelector,v=void 0===g?"[data-ecl-login-box]":g;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=r,this.closeOverlaySelector=l,this.searchToggleSelector=h,this.searchFormSelector=u,this.loginToggleSelector=m,this.loginBoxSelector=v,this.languageSelector=null,this.languageListOverlay=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).SITE_HEADER_CORE,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLSiteHeaderHarmonised=n};var e=s.prototype;return e.init=function(){this.languageSelector=d(this.languageLinkSelector),this.languageListOverlay=d(this.languageListOverlaySelector),this.close=d(this.closeOverlaySelector),this.focusTrap=Y(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=d(this.searchToggleSelector),this.searchForm=d(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=d(this.loginToggleSelector),this.loginBox=d(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin)},e.destroy=function(){this.languageSelector&&this.languageSelector.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin)},e.openOverlay=function(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")},e.closeOverlay=function(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")},e.toggleOverlay=function(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())},e.toggleSearch=function(e){var t;this.searchForm&&(e.preventDefault(),t="true"===this.searchToggle.getAttribute("aria-expanded"),this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header-harmonised__search--active"):this.searchForm.classList.add("ecl-site-header-harmonised__search--active"))},e.toggleLogin=function(e){var t;this.loginBox&&(e.preventDefault(),t="true"===this.loginToggle.getAttribute("aria-expanded"),this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header-harmonised__login-box--active"):this.loginBox.classList.add("ecl-site-header-harmonised__login-box--active"))},s}(),K=function(){function s(e,t){var i=void 0===t?{}:t,n=i.languageLinkSelector,s=void 0===n?"[data-ecl-language-selector]":n,a=i.languageListOverlaySelector,r=void 0===a?"[data-ecl-language-list-overlay]":a,o=i.closeOverlaySelector,l=void 0===o?"[data-ecl-language-list-close]":o,c=i.searchToggleSelector,h=void 0===c?"[data-ecl-search-toggle]":c,d=i.searchFormSelector,u=void 0===d?"[data-ecl-search-form]":d,f=i.loginToggleSelector,m=void 0===f?"[data-ecl-login-toggle]":f,g=i.loginBoxSelector,v=void 0===g?"[data-ecl-login-box]":g;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.languageLinkSelector=s,this.languageListOverlaySelector=r,this.closeOverlaySelector=l,this.searchToggleSelector=h,this.searchFormSelector=u,this.loginToggleSelector=m,this.loginBoxSelector=v,this.languageSelector=null,this.languageListOverlay=null,this.close=null,this.focusTrap=null,this.searchToggle=null,this.searchForm=null,this.loginToggle=null,this.loginBox=null,this.openOverlay=this.openOverlay.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.toggleLogin=this.toggleLogin.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).SITE_HEADER_CORE,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLSiteHeaderStandardised=n};var e=s.prototype;return e.init=function(){this.languageSelector=d(this.languageLinkSelector),this.languageListOverlay=d(this.languageListOverlaySelector),this.close=d(this.closeOverlaySelector),this.focusTrap=Y(this.languageListOverlay,{onDeactivate:this.closeOverlay}),this.languageSelector&&this.languageSelector.addEventListener("click",this.toggleOverlay),this.close&&this.close.addEventListener("click",this.toggleOverlay),this.searchToggle=d(this.searchToggleSelector),this.searchForm=d(this.searchFormSelector),this.searchToggle&&this.searchToggle.addEventListener("click",this.toggleSearch),this.loginToggle=d(this.loginToggleSelector),this.loginBox=d(this.loginBoxSelector),this.loginToggle&&this.loginToggle.addEventListener("click",this.toggleLogin)},e.destroy=function(){this.languageSelector&&this.languageSelector.removeEventListener("click",this.toggleOverlay),this.focusTrap&&this.focusTrap.deactivate(),this.close&&this.close.removeEventListener("click",this.toggleOverlay),this.searchToggle&&this.searchToggle.removeEventListener("click",this.toggleSearch),this.loginToggle&&this.loginToggle.removeEventListener("click",this.toggleLogin)},e.openOverlay=function(){this.languageListOverlay.hidden=!1,this.languageListOverlay.setAttribute("aria-modal","true"),this.languageSelector.setAttribute("aria-expanded","true")},e.closeOverlay=function(){this.languageListOverlay.hidden=!0,this.languageListOverlay.removeAttribute("aria-modal"),this.languageSelector.setAttribute("aria-expanded","false")},e.toggleOverlay=function(e){this.languageListOverlay&&this.focusTrap&&(e.preventDefault(),this.languageListOverlay.hasAttribute("hidden")?(this.openOverlay(),this.focusTrap.activate()):this.focusTrap.deactivate())},e.toggleSearch=function(e){var t;this.searchForm&&(e.preventDefault(),t="true"===this.searchToggle.getAttribute("aria-expanded"),this.loginToggle&&"true"===this.loginToggle.getAttribute("aria-expanded")&&this.toggleLogin(e),this.searchToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.searchForm.classList.remove("ecl-site-header-standardised__search--active"):this.searchForm.classList.add("ecl-site-header-standardised__search--active"))},e.toggleLogin=function(e){var t;this.loginBox&&(e.preventDefault(),t="true"===this.loginToggle.getAttribute("aria-expanded"),this.searchToggle&&"true"===this.searchToggle.getAttribute("aria-expanded")&&this.toggleSearch(e),this.loginToggle.setAttribute("aria-expanded",t?"false":"true"),t?this.loginBox.classList.remove("ecl-site-header-standardised__login-box--active"):this.loginBox.classList.add("ecl-site-header-standardised__login-box--active"))},s}(),X=function(){function s(e,t){var i=(void 0===t?{}:t).sortSelector,n=void 0===i?"[data-ecl-table-sort-toggle]":i;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.sortSelector=n,this.sortHeadings=null,this.handleClickOnSort=this.handleClickOnSort.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).TABLE,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLTable=n},s.createSortIcon=function(e){var t=document.createElement("span");t.innerHTML='<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 21L11.765 3 1 21z"/></svg>';var i=t.children[0];return i.removeAttribute("height"),i.removeAttribute("width"),i.setAttribute("focusable",!1),i.setAttribute("aria-hidden",!0),i.setAttribute("class","ecl-table__icon ecl-icon ecl-icon--2xs "+e),i};var e=s.prototype;return e.init=function(){var i=this;this.sortHeadings=h(this.sortSelector,this.element),this.sortHeadings&&this.sortHeadings.forEach(function(e){var t=document.createElement("span");t.classList.add("ecl-table__arrow"),t.appendChild(s.createSortIcon("ecl-table__icon-up")),t.appendChild(s.createSortIcon("ecl-table__icon-down")),e.appendChild(t),e.addEventListener("click",i.handleClickOnSort.bind(i,e))});var e=d("tbody",this.element);[].concat(h("tr",e)).forEach(function(e,t){e.setAttribute("data-ecl-table-order",t)})},e.destroy=function(){var t=this;this.sortHeadings&&this.sortHeadings.forEach(function(e){e.removeEventListener("click",t.handleClickOnSort)})},e.handleClickOnSort=function(t){for(var e=t.closest("table"),n=d("tbody",e),i=t.getAttribute("aria-sort"),s=0,a=t.previousElementSibling;a;)s+=a.getAttribute("colspan")?Number(a.getAttribute("colspan")):1,a=a.previousElementSibling;var r,o,i="descending"===i?([].concat(h("tr",n)).forEach(function(e,t){var i=d("[data-ecl-table-order='"+t+"']");n.appendChild(i)}),null):([].concat(h("tr",n)).sort((r=s,o="ascending"!==i,function(e,t){return i=(o?e:t).children[r].textContent,n=(o?t:e).children[r].textContent,""===i||""===n||Number.isNaN(+i)||Number.isNaN(+n)?i.toString().localeCompare(n):i-n;var i,n})).forEach(function(e){return n.appendChild(e)}),"ascending"===i?"descending":"ascending");this.sortHeadings.forEach(function(e){i&&e===t?e.setAttribute("aria-sort",i):e.removeAttribute("aria-sort")})},s}(),$=function(){function s(e,t){var i=void 0===t?{}:t,n=i.buttonSelector,s=void 0===n?"[data-ecl-timeline-button]":n,a=i.labelSelector,r=void 0===a?"[data-ecl-label]":a,o=i.labelExpanded,l=void 0===o?"data-ecl-label-expanded":o,c=i.labelCollapsed,h=void 0===c?"data-ecl-label-collapsed":c,d=i.attachClickListener,u=void 0===d||d;if(!e||e.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");this.element=e,this.buttonSelector=s,this.labelSelector=r,this.labelExpanded=l,this.labelCollapsed=h,this.attachClickListener=u,this.button=null,this.label=null,this.handleClickOnButton=this.handleClickOnButton.bind(this)}s.autoInit=function(e,t){var i=(void 0===t?{}:t).TIMELINE2,n=new s(e,void 0===i?{}:i);return n.init(),e.ECLTimeline2=n};var e=s.prototype;return e.init=function(){this.button=d(this.buttonSelector,this.element),this.label=d(this.labelSelector,this.element),this.attachClickListener&&this.button&&this.button.addEventListener("click",this.handleClickOnButton)},e.destroy=function(){this.attachClickListener&&this.button&&this.button.removeEventListener("click",this.handleClickOnButton)},e.handleClickOnButton=function(){var e="true"===this.button.getAttribute("aria-expanded");return this.button.setAttribute("aria-expanded",e?"false":"true"),e?(this.element.removeAttribute("data-ecl-timeline-expanded"),this.button.blur(),this.button.focus()):this.element.setAttribute("data-ecl-timeline-expanded","true"),this.label&&!e&&this.button.hasAttribute(this.labelExpanded)?this.label.innerHTML=this.button.getAttribute(this.labelExpanded):this.label&&e&&this.button.hasAttribute(this.labelCollapsed)&&(this.label.innerHTML=this.button.getAttribute(this.labelCollapsed)),this},s}();return e.Accordion2=t,e.Breadcrumb=i,e.BreadcrumbCore=n,e.BreadcrumbHarmonised=s,e.BreadcrumbStandardised=a,e.ContextualNavigation=r,e.Datepicker=m,e.Expandable=o,e.FileDownload=l,e.FileUpload=g,e.Gallery=P,e.InpageNavigation=H,e.Menu=z,e.Message=j,e.Select=v,e.SiteHeader=G,e.SiteHeaderCore=q,e.SiteHeaderHarmonised=Z,e.SiteHeaderStandardised=K,e.Table=X,e.Timeline2=$,e.__moduleExports={},e.autoInit=function(e){var t=void 0===e?{}:e,i=t.root,n=void 0===i?document:i,s=function(e,t){if(null==e)return{};for(var i,n={},s=Object.keys(e),a=0;a<s.length;a++)i=s[a],0<=t.indexOf(i)||(n[i]=e[i]);return n}(t,["root"]);if(!ECL)throw new TypeError("Called autoInit but ECL is not present");function a(){o.filter(function(e){return"true"!==e.getAttribute("data-ecl-auto-initialized")}).forEach(function(e){var t=e.getAttribute("data-ecl-auto-init");if(!t)throw new TypeError("(ecl-auto-init) "+t+" data-ecl-auto-init is empty");var i=ECL[t];if("function"!=typeof i)throw new TypeError("(ecl-auto-init) Could not find '"+t+"'");if("function"!=typeof i.autoInit)throw new TypeError("(ecl-auto-init) Could not find autoInit for '"+t+"'");var n=i.autoInit(e,s);r.push(n),e.setAttribute("data-ecl-auto-initialized","true")})}var r=[],o=h("[data-ecl-auto-init]",n),l=a;return a(),{update:l,destroy:function(){o.filter(function(e){return"true"===e.getAttribute("data-ecl-auto-initialized")}).forEach(function(e){var t=e.getAttribute("data-ecl-auto-init");t&&ECL[t]&&ECL[t].destroy&&(ECL[t].destroy(),e.removeAttribute("data-ecl-auto-initialized"))})},components:r}},e}({});