﻿!function e(t,n,i){function s(a,r){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!r&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return s(n?n:e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)s(i[a]);return s}({1:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var s=i(e("../_modules/fontface-handler/fontface-handler")),o=i(e("../_modules/main-header/main-header")),a=i(e("../_modules/sticky-sidebar/sticky-sidebar")),r=i(e("../_modules/side-nav/side-nav")),l=i(e("../_modules/modal/modal")),c=i(e("../_modules/collapse/collapse")),u=i(e("../_modules/plyr/plyr")),d=i(e("../_modules/carousel/carousel")),h=i(e("../_modules/soft-scroll/soft-scroll")),f=i(e("../_modules/tabs/tabs")),p=i(e("../_modules/inline-nav/inline-nav")),m=i(e("../_modules/contact-card/contact-card")),g=i(e("../_modules/pub-search/pub-search")),v=i(e("../_modules/filters/filters")),y=i(e("../_modules/sidebar-linked/sidebar-linked")),b=i(e("../_modules/tooltip/tooltip")),w=i(e("../_modules/cookie-alert/cookie-alert")),k=i(e("../_modules/cookies-manager/cookies-manager")),T=i(e("../_modules/image-map/image-map")),S=i(e("../_modules/sidebar-advanced-search/sidebar-advanced-search")),_=i(e("../_modules/share-module/share-module"));e("../_modules/modernizr/modernizr"),e("../_modules/promise-polyfill/promise-polyfill"),e("velocity-animate"),e("sticky-kit/dist/sticky-kit"),e("slick-carousel"),$(function(){(new s["default"]).init(),(new o["default"]).init(),(new a["default"]).init(),(new r["default"]).init(),(new l["default"]).init(),(new c["default"]).init(),(new u["default"]).init(),(new d["default"]).init(),(new h["default"]).init(),(new f["default"]).init(),(new p["default"]).init(),(new m["default"]).init(),(new g["default"]).init(),(new v["default"]).init(),(new y["default"]).init(),(new b["default"]).init(),(new w["default"]).init(),(new k["default"]).init(),(new T["default"]).init(),(new S["default"]).init(),(new _["default"]).init()})},{"../_modules/carousel/carousel":12,"../_modules/collapse/collapse":13,"../_modules/contact-card/contact-card":15,"../_modules/cookie-alert/cookie-alert":16,"../_modules/cookies-manager/cookies-manager":17,"../_modules/filters/filters":20,"../_modules/fontface-handler/fontface-handler":21,"../_modules/image-map/image-map":22,"../_modules/inline-nav/inline-nav":25,"../_modules/main-header/main-header":35,"../_modules/modal/modal":36,"../_modules/modernizr/modernizr":37,"../_modules/plyr/plyr":38,"../_modules/promise-polyfill/promise-polyfill":39,"../_modules/pub-search/pub-search":40,"../_modules/share-module/share-module":41,"../_modules/side-nav/side-nav":42,"../_modules/sidebar-advanced-search/sidebar-advanced-search":44,"../_modules/sidebar-linked/sidebar-linked":46,"../_modules/soft-scroll/soft-scroll":47,"../_modules/sticky-sidebar/sticky-sidebar":48,"../_modules/tabs/tabs":49,"../_modules/tooltip/tooltip":50,"slick-carousel":8,"sticky-kit/dist/sticky-kit":9,"velocity-animate":10}],2:[function(e,t,n){!function(){function e(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t),e()}):document.attachEvent("onreadystatechange",function n(){("interactive"==document.readyState||"complete"==document.readyState)&&(document.detachEvent("onreadystatechange",n),e())})}function i(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function s(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;left:-999px;white-space:nowrap;font:"+t+";"}function o(e){var t=e.a.offsetWidth,n=t+100;return e.f.style.width=n+"px",e.c.scrollLeft=n,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t?(e.g=t,!0):!1}function a(t,n){function i(){var e=s;o(e)&&null!==e.a.parentNode&&n(e.g)}var s=t;e(t.b,i),e(t.c,i),o(t)}function r(e,t){var n=t||{};this.family=e,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}function l(){if(null===d){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(t){}d=""!==e.style.font}return d}function c(e,t){return[e.style,e.weight,l()?e.stretch:"","100px",t].join(" ")}var u=null,d=null,h=!!window.FontFace;r.prototype.load=function(e,t){var o=this,r=e||"BESbswy",l=t||3e3,d=(new Date).getTime();return new Promise(function(e,t){if(h){var f=new Promise(function(e,t){function n(){(new Date).getTime()-d>=l?t():document.fonts.load(c(o,o.family),r).then(function(t){1<=t.length?e():setTimeout(n,25)},function(){t()})}n()}),p=new Promise(function(e,t){setTimeout(t,l)});Promise.race([p,f]).then(function(){e(o)},function(){t(o)})}else n(function(){function n(){var t;(t=-1!=g&&-1!=v||-1!=g&&-1!=y||-1!=v&&-1!=y)&&((t=g!=v&&g!=y&&v!=y)||(null===u&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),u=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=u&&(g==b&&v==b&&y==b||g==w&&v==w&&y==w||g==k&&v==k&&y==k)),t=!t),t&&(null!==T.parentNode&&T.parentNode.removeChild(T),clearTimeout(S),e(o))}function h(){if((new Date).getTime()-d>=l)null!==T.parentNode&&T.parentNode.removeChild(T),t(o);else{var e=document.hidden;(!0===e||void 0===e)&&(g=f.a.offsetWidth,v=p.a.offsetWidth,y=m.a.offsetWidth,n()),S=setTimeout(h,50)}}var f=new i(r),p=new i(r),m=new i(r),g=-1,v=-1,y=-1,b=-1,w=-1,k=-1,T=document.createElement("div"),S=0;T.dir="ltr",s(f,c(o,"sans-serif")),s(p,c(o,"serif")),s(m,c(o,"monospace")),T.appendChild(f.a),T.appendChild(p.a),T.appendChild(m.a),document.body.appendChild(T),b=f.a.offsetWidth,w=p.a.offsetWidth,k=m.a.offsetWidth,h(),a(f,function(e){g=e,n()}),s(f,c(o,'"'+o.family+'",sans-serif')),a(p,function(e){v=e,n()}),s(p,c(o,'"'+o.family+'",serif')),a(m,function(e){y=e,n()}),s(m,c(o,'"'+o.family+'",monospace'))})})},window.FontFaceObserver=r,window.FontFaceObserver.prototype.check=window.FontFaceObserver.prototype.load=r.prototype.load,"undefined"!=typeof t&&(t.exports=window.FontFaceObserver)}()},{}],3:[function(e,t,n){!function(n){"use strict";var i=e("xtend"),s=function(e,t,n){function s(e,t){return m&&(m=clearTimeout(m)),p=0,n.call(e,t)}function o(e){c=e.clientX,u=e.clientY}function a(e,n){return m&&(m=clearTimeout(m)),Math.abs(d-c)+Math.abs(h-u)<g.sensitivity?(p=1,t.call(e,n)):(d=c,h=u,m=setTimeout(function(){a(e,n)},g.interval),void 0)}function r(t){return m&&(m=clearTimeout(m)),e.removeEventListener("mousemove",o,!1),1!==p&&(d=t.clientX,h=t.clientY,e.addEventListener("mousemove",o,!1),m=setTimeout(function(){a(e,t)},g.interval)),this}function l(t){return m&&(m=clearTimeout(m)),e.removeEventListener("mousemove",o,!1),1===p&&(m=setTimeout(function(){s(e,t)},g.timeout)),this}var c,u,d,h,f={},p=0,m=0,g={sensitivity:7,interval:100,timeout:0};return f.options=function(e){return g=i({},g,e),f},f.remove=function(){e&&(e.removeEventListener("mouseover",r,!1),e.removeEventListener("mouseout",l,!1))},e&&(e.addEventListener("mouseover",r,!1),e.addEventListener("mouseout",l,!1)),f};n.hoverintent=s,"undefined"!=typeof t&&t.exports&&(t.exports=s)}(this)},{xtend:11}],4:[function(e,t,n){!function(){"use strict";function e(){function e(){function e(e,i){function s(e){var i=1===(o=1-o)?"width":"height";return n[i]+Math.floor(Number(e)*t[i])}var o=0;c[i].coords=e.split(",").map(s).join(",")}var t={width:d.width/d.naturalWidth,height:d.height/d.naturalHeight},n={width:parseInt(window.getComputedStyle(d,null).getPropertyValue("padding-left"),10),height:parseInt(window.getComputedStyle(d,null).getPropertyValue("padding-top"),10)};u.forEach(e)}function t(e){return e.coords.replace(/ *, */g,",").replace(/ +/g,",")}function n(){clearTimeout(h),h=setTimeout(e,250)}function i(){d.width===d.naturalWidth&&d.height===d.naturalHeight||e()}function s(){d.addEventListener("load",e,!1),window.addEventListener("focus",e,!1),window.addEventListener("resize",n,!1),window.addEventListener("readystatechange",e,!1),document.addEventListener("fullscreenchange",e,!1)}function o(){return"function"==typeof l._resize}function a(e){return document.querySelector('img[usemap="'+e+'"]')}function r(){c=l.getElementsByTagName("area"),u=Array.prototype.map.call(c,t),d=a("#"+l.name)||a(l.name),l._resize=e}var l=this,c=null,u=null,d=null,h=null;o()?l._resize():(r(),s(),i())}function n(){function t(e){if(!e.tagName)throw new TypeError("Object is not a valid DOM element");if("MAP"!==e.tagName.toUpperCase())throw new TypeError("Expected <MAP> tag, found <"+e.tagName+">.")}function n(n){n&&(t(n),e.call(n),i.push(n))}var i;return function(e){switch(i=[],typeof e){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(e||"map"),n);break;case"object":n(e);break;default:throw new TypeError("Unexpected data type ("+typeof e+").")}return i}}"function"==typeof define&&define.amd?define([],n):"object"==typeof t&&"object"==typeof t.exports?t.exports=n():window.imageMapResize=n(),"jQuery" in window&&(jQuery.fn.imageMapResize=function(){return this.filter("map").each(e).end()})}()},{}],5:[function(e,t,n){!function(e,i){"object"==typeof n&&"undefined"!=typeof t?t.exports=i():"function"==typeof define&&define.amd?define(i):e.moment=i()}(this,function(){"use strict";function n(){return Li.apply(null,arguments)}function i(e){Li=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function r(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return Mt(e,t,n,i,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=p()),e._pf}function g(e){if(null==e._isValid){var t=m(e),n=Hi.call(t.parsedDateParts,function(e){return null!=e}),i=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.weekdayMismatch||t.nullInput||t.invalidFormat||t.userInvalidated||!(!t.meridiem||t.meridiem&&n));if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=f(0/0);return null!=e?h(m(t),e):m(t).userInvalidated=!0,t}function y(e,t){var n,i,s;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=m(t)),r(t._locale)||(e._locale=t._locale),$i.length>0)for(n=0;n<$i.length;n++)i=$i[n],s=t[i],r(s)||(e[i]=s);return e}function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():0/0),this.isValid()||(this._d=new Date(0/0)),Ii===!1&&(Ii=!0,n.updateOffset(this),Ii=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function k(e){return 0>e?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=k(t)),n}function S(e,t,n){var i,s=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;s>i;i++)(n&&e[i]!==t[i]||!n&&T(e[i])!==T(t[i]))&&a++;return a+o}function _(e){n.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var i=!0;return h(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){for(var s,o=[],a=0;a<arguments.length;a++){if(s="","object"==typeof arguments[a]){s+="\n["+a+"] ";for(var r in arguments[0])s+=r+": "+arguments[0][r]+", ";s=s.slice(0,-2)}else s=arguments[a];o.push(s)}_(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)},t)}function x(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),Ni[e]||(_(t),Ni[e]=!0)}function M(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)t=e[n],M(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,i=h({},e);for(n in t)d(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)d(e,n)&&!d(t,n)&&o(e[n])&&(i[n]=h({},i[n]));return i}function D(e){null!=e&&this.set(e)}function O(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return M(i)?i.call(t,n):i}function E(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function L(){return this._invalidDate}function H(e){return this._ordinal.replace("%d",e)}function $(e,t,n,i){var s=this._relativeTime[n];return M(s)?s(e,t,n,i):s.replace(/%d/i,e)}function I(e,t){var n=this._relativeTime[e>0?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)}function N(e,t){var n=e.toLowerCase();qi[n]=qi[n+"s"]=qi[t]=e}function Y(e){return"string"==typeof e?qi[e]||qi[e.toLowerCase()]:void 0}function R(e){var t,n,i={};for(n in e)d(e,n)&&(t=Y(n),t&&(i[t]=e[n]));return i}function j(e,t){Ui[e]=t}function V(e){var t=[];for(var n in e)t.push({unit:n,priority:Ui[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function F(e,t,n){var i=""+Math.abs(e),s=t-i.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}function W(e,t,n,i){var s=i;"string"==typeof i&&(s=function(){return this[i]()}),e&&(Qi[e]=s),t&&(Qi[t[0]]=function(){return F(s.apply(this,arguments),t[1],t[2])}),n&&(Qi[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t,n,i=e.match(Bi);for(t=0,n=i.length;n>t;t++)i[t]=Qi[i[t]]?Qi[i[t]]:z(i[t]);return function(t){var s,o="";for(s=0;n>s;s++)o+=M(i[s])?i[s].call(t,e):i[s];return o}}function U(e,t){return e.isValid()?(t=B(t,e.localeData()),Xi[t]=Xi[t]||q(t),Xi[t](e)):e.localeData().invalidDate()}function B(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Gi.lastIndex=0;i>=0&&Gi.test(e);)e=e.replace(Gi,n),Gi.lastIndex=0,i-=1;return e}function G(e,t,n){ps[e]=M(t)?t:function(e,i){return e&&n?n:t}}function X(e,t){return d(ps,e)?ps[e](t._strict,t._locale):new RegExp(Q(e))}function Q(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,s){return t||n||i||s}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=T(e)}),n=0;n<e.length;n++)ms[e[n]]=i}function K(e,t){J(e,function(e,n,i,s){i._w=i._w||{},t(e,i._w,i,s)})}function ee(e,t,n){null!=t&&d(ms,e)&&ms[e](t,n._a,n,e)}function te(e){return ne(e)?366:365}function ne(e){return e%4===0&&e%100!==0||e%400===0}function ie(){return ne(this.year())}function se(e,t){return function(i){return null!=i?(ae(this,e,i),n.updateOffset(this,t),this):oe(this,e)}}function oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():0/0}function ae(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ne(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ue(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function re(e){return e=Y(e),M(this[e])?this[e]():this}function le(e,t){if("object"==typeof e){e=R(e);for(var n=V(e),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(e=Y(e),M(this[e]))return this[e](t);return this}function ce(e,t){return(e%t+t)%t}function ue(e,t){if(isNaN(e)||isNaN(t))return 0/0;var n=ce(t,12);return e+=(t-n)/12,1===n?ne(e)?29:28:31-n%7%2}function de(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ms).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function he(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ms.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fe(e,t,n){var i,s,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;12>i;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?(s=Cs.call(this._shortMonthsParse,a),-1!==s?s:null):(s=Cs.call(this._longMonthsParse,a),-1!==s?s:null):"MMM"===t?(s=Cs.call(this._shortMonthsParse,a),-1!==s?s:(s=Cs.call(this._longMonthsParse,a),-1!==s?s:null)):(s=Cs.call(this._longMonthsParse,a),-1!==s?s:(s=Cs.call(this._shortMonthsParse,a),-1!==s?s:null))}function pe(e,t,n){var i,s,o;if(this._monthsParseExact)return fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(s=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function me(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=T(t);else if(t=e.localeData().monthsParse(t),!l(t))return e;return n=Math.min(e.date(),ue(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ge(e){return null!=e?(me(this,e),n.updateOffset(this,!0),this):oe(this,"Month")}function ve(){return ue(this.year(),this.month())}function ye(e){return this._monthsParseExact?(d(this,"_monthsRegex")||we.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ds),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function be(e){return this._monthsParseExact?(d(this,"_monthsRegex")||we.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Os),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function we(){function e(e,t){return t.length-e.length}var t,n,i=[],s=[],o=[];for(t=0;12>t;t++)n=f([2e3,t]),i.push(this.monthsShort(n,"")),s.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),s.sort(e),o.sort(e),t=0;12>t;t++)i[t]=Z(i[t]),s[t]=Z(s[t]);for(t=0;24>t;t++)o[t]=Z(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ke(e,t,n,i,s,o,a){var r;return 100>e&&e>=0?(r=new Date(e+400,t,n,i,s,o,a),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,t,n,i,s,o,a),r}function Te(e){var t;if(100>e&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Se(e,t,n){var i=7+t-n,s=(7+Te(e,0,i).getUTCDay()-t)%7;return-s+i-1}function _e(e,t,n,i,s){var o,a,r=(7+n-i)%7,l=Se(e,i,s),c=1+7*(t-1)+r+l;return 0>=c?(o=e-1,a=te(o)+c):c>te(e)?(o=e+1,a=c-te(e)):(o=e,a=c),{year:o,dayOfYear:a}}function Ce(e,t,n){var i,s,o=Se(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return 1>a?(s=e.year()-1,i=a+xe(s,t,n)):a>xe(e.year(),t,n)?(i=a-xe(e.year(),t,n),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function xe(e,t,n){var i=Se(e,t,n),s=Se(e+1,t,n);return(te(e)-i+s)/7}function Me(e){return Ce(e,this._week.dow,this._week.doy).week}function Pe(){return this._week.dow}function Ae(){return this._week.doy}function De(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Oe(e){var t=Ce(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ee(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Le(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}function $e(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?He(n,this._week.dow):e?n[e.day()]:n}function Ie(e){return e===!0?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ne(e){return e===!0?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ye(e,t,n){var i,s,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;7>i;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(s=Cs.call(this._weekdaysParse,a),-1!==s?s:null):"ddd"===t?(s=Cs.call(this._shortWeekdaysParse,a),-1!==s?s:null):(s=Cs.call(this._minWeekdaysParse,a),-1!==s?s:null):"dddd"===t?(s=Cs.call(this._weekdaysParse,a),-1!==s?s:(s=Cs.call(this._shortWeekdaysParse,a),-1!==s?s:(s=Cs.call(this._minWeekdaysParse,a),-1!==s?s:null))):"ddd"===t?(s=Cs.call(this._shortWeekdaysParse,a),-1!==s?s:(s=Cs.call(this._weekdaysParse,a),-1!==s?s:(s=Cs.call(this._minWeekdaysParse,a),-1!==s?s:null))):(s=Cs.call(this._minWeekdaysParse,a),-1!==s?s:(s=Cs.call(this._weekdaysParse,a),-1!==s?s:(s=Cs.call(this._shortWeekdaysParse,a),-1!==s?s:null)))}function Re(e,t,n){var i,s,o;if(this._weekdaysParseExact)return Ye.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;7>i;i++){if(s=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function je(e){if(!this.isValid())return null!=e?this:0/0;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ee(e,this.localeData()),this.add(e-t,"d")):t}function Ve(e){if(!this.isValid())return null!=e?this:0/0;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Fe(e){if(!this.isValid())return null!=e?this:0/0;if(null!=e){var t=Le(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function We(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Is),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ze(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ns),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qe(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ys),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,n,i,s,o,a=[],r=[],l=[],c=[];for(t=0;7>t;t++)n=f([2e3,1]).day(t),i=this.weekdaysMin(n,""),s=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),r.push(s),l.push(o),c.push(i),c.push(s),c.push(o);for(a.sort(e),r.sort(e),l.sort(e),c.sort(e),t=0;7>t;t++)r[t]=Z(r[t]),l[t]=Z(l[t]),c[t]=Z(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Be(){return this.hours()%12||12}function Ge(){return this.hours()||24}function Xe(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qe(e,t){return t._meridiemParse}function Ze(e){return"p"===(e+"").toLowerCase().charAt(0)}function Je(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ke(e){return e?e.toLowerCase().replace("_","-"):e}function et(e){for(var t,n,i,s,o=0;o<e.length;){for(s=Ke(e[o]).split("-"),t=s.length,n=Ke(e[o+1]),n=n?n.split("-"):null;t>0;){if(i=tt(s.slice(0,t).join("-")))return i;if(n&&n.length>=t&&S(s,n,!0)>=t-1)break;t--}o++}return Rs}function tt(n){var i=null;if(!Ws[n]&&"undefined"!=typeof t&&t&&t.exports)try{i=Rs._abbr;var s=e;s("./locale/"+n),nt(i)}catch(o){}return Ws[n]}function nt(e,t){var n;return e&&(n=r(t)?ot(e):it(e,t),n?Rs=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Rs._abbr}function it(e,t){if(null!==t){var n,i=Fs;if(t.abbr=e,null!=Ws[e])x("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."),i=Ws[e]._config;else if(null!=t.parentLocale)if(null!=Ws[t.parentLocale])i=Ws[t.parentLocale]._config;else{if(n=tt(t.parentLocale),null==n)return zs[t.parentLocale]||(zs[t.parentLocale]=[]),zs[t.parentLocale].push({name:e,config:t}),null;i=n._config}return Ws[e]=new D(A(i,t)),zs[e]&&zs[e].forEach(function(e){it(e.name,e.config)}),nt(e),Ws[e]}return delete Ws[e],null}function st(e,t){if(null!=t){var n,i,s=Fs;i=tt(e),null!=i&&(s=i._config),t=A(s,t),n=new D(t),n.parentLocale=Ws[e],Ws[e]=n,nt(e)}else null!=Ws[e]&&(null!=Ws[e].parentLocale?Ws[e]=Ws[e].parentLocale:null!=Ws[e]&&delete Ws[e]);return Ws[e]}function ot(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Rs;if(!s(e)){if(t=tt(e))return t;e=[e]}return et(e)}function at(){return Yi(Ws)}function rt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[vs]<0||n[vs]>11?vs:n[ys]<1||n[ys]>ue(n[gs],n[vs])?ys:n[bs]<0||n[bs]>24||24===n[bs]&&(0!==n[ws]||0!==n[ks]||0!==n[Ts])?bs:n[ws]<0||n[ws]>59?ws:n[ks]<0||n[ks]>59?ks:n[Ts]<0||n[Ts]>999?Ts:-1,m(e)._overflowDayOfYear&&(gs>t||t>ys)&&(t=ys),m(e)._overflowWeeks&&-1===t&&(t=Ss),m(e)._overflowWeekday&&-1===t&&(t=_s),m(e).overflow=t),e}function lt(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ut(e){var t,n,i,s,o,a=[];if(!e._d){for(i=ct(e),e._w&&null==e._a[ys]&&null==e._a[vs]&&dt(e),null!=e._dayOfYear&&(o=lt(e._a[gs],i[gs]),(e._dayOfYear>te(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Te(o,0,e._dayOfYear),e._a[vs]=n.getUTCMonth(),e._a[ys]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;7>t;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[bs]&&0===e._a[ws]&&0===e._a[ks]&&0===e._a[Ts]&&(e._nextDay=!0,e._a[bs]=0),e._d=(e._useUTC?Te:ke).apply(null,a),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[bs]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==s&&(m(e).weekdayMismatch=!0)}}function dt(e){var t,n,i,s,o,a,r,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=lt(t.GG,e._a[gs],Ce(Pt(),1,4).year),i=lt(t.W,1),s=lt(t.E,1),(1>s||s>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=Ce(Pt(),o,a);n=lt(t.gg,e._a[gs],c.year),i=lt(t.w,c.week),null!=t.d?(s=t.d,(0>s||s>6)&&(l=!0)):null!=t.e?(s=t.e+o,(t.e<0||t.e>6)&&(l=!0)):s=o}1>i||i>xe(n,o,a)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(r=_e(n,i,s,o,a),e._a[gs]=r.year,e._dayOfYear=r.dayOfYear)}function ht(e){var t,n,i,s,o,a,r=e._i,l=qs.exec(r)||Us.exec(r);if(l){for(m(e).iso=!0,t=0,n=Gs.length;n>t;t++)if(Gs[t][1].exec(l[1])){s=Gs[t][0],i=Gs[t][2]!==!1;break}if(null==s)return void(e._isValid=!1);if(l[3]){for(t=0,n=Xs.length;n>t;t++)if(Xs[t][1].exec(l[3])){o=(l[2]||" ")+Xs[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Bs.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=s+(o||"")+(a||""),wt(e)}else e._isValid=!1}function ft(e,t,n,i,s,o){var a=[pt(e),As.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(s,10)];return o&&a.push(parseInt(o,10)),a}function pt(e){var t=parseInt(e,10);return 49>=t?2e3+t:999>=t?1900+t:t}function mt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gt(e,t,n){if(e){var i=Hs.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(i!==s)return m(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function vt(e,t,n){if(e)return Js[e];if(t)return 0;var i=parseInt(n,10),s=i%100,o=(i-s)/100;return 60*o+s}function yt(e){var t=Zs.exec(mt(e._i));if(t){var n=ft(t[4],t[3],t[2],t[5],t[6],t[7]);if(!gt(t[1],n,e))return;e._a=n,e._tzm=vt(t[8],t[9],t[10]),e._d=Te.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function bt(e){var t=Qs.exec(e._i);return null!==t?void(e._d=new Date(+t[1])):(ht(e),void(e._isValid===!1&&(delete e._isValid,yt(e),e._isValid===!1&&(delete e._isValid,n.createFromInputFallback(e)))))}function wt(e){if(e._f===n.ISO_8601)return void ht(e);if(e._f===n.RFC_2822)return void yt(e);e._a=[],m(e).empty=!0;var t,i,s,o,a,r=""+e._i,l=r.length,c=0;for(s=B(e._f,e._locale).match(Bi)||[],t=0;t<s.length;t++)o=s[t],i=(r.match(X(o,e))||[])[0],i&&(a=r.substr(0,r.indexOf(i)),a.length>0&&m(e).unusedInput.push(a),r=r.slice(r.indexOf(i)+i.length),c+=i.length),Qi[o]?(i?m(e).empty=!1:m(e).unusedTokens.push(o),ee(o,i,e)):e._strict&&!i&&m(e).unusedTokens.push(o);m(e).charsLeftOver=l-c,r.length>0&&m(e).unusedInput.push(r),e._a[bs]<=12&&m(e).bigHour===!0&&e._a[bs]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[bs]=kt(e._locale,e._a[bs],e._meridiem),ut(e),rt(e)}function kt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&12>t&&(t+=12),i||12!==t||(t=0),t):t}function Tt(e){var t,n,i,s,o;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(0/0));for(s=0;s<e._f.length;s++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],wt(t),g(t)&&(o+=m(t).charsLeftOver,o+=10*m(t).unusedTokens.length,m(t).score=o,(null==i||i>o)&&(i=o,n=t));h(e,n||t)}function St(e){if(!e._d){var t=R(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ut(e)}}function _t(e){var t=new b(rt(Ct(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||ot(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(rt(t)):(c(t)?e._d=t:s(n)?Tt(e):n?wt(e):xt(e),g(e)||(e._d=null),e))}function xt(e){var t=e._i;r(t)?e._d=new Date(n.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?bt(e):s(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),ut(e)):o(t)?St(e):l(t)?e._d=new Date(t):n.createFromInputFallback(e)}function Mt(e,t,n,i,r){var l={};return(n===!0||n===!1)&&(i=n,n=void 0),(o(e)&&a(e)||s(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=n,l._i=e,l._f=t,l._strict=i,_t(l)}function Pt(e,t,n,i){return Mt(e,t,n,i,!1)}function At(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](n))&&(n=t[i]);return n}function Dt(){var e=[].slice.call(arguments,0);return At("isBefore",e)}function Ot(){var e=[].slice.call(arguments,0);return At("isAfter",e)}function Et(e){for(var t in e)if(-1===Cs.call(no,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<no.length;++i)if(e[no[i]]){if(n)return!1;parseFloat(e[no[i]])!==T(e[no[i]])&&(n=!0)}return!0}function Lt(){return this._isValid}function Ht(){return Kt(0/0)}function $t(e){var t=R(e),n=t.year||0,i=t.quarter||0,s=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,r=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=Et(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*r*60*60,this._days=+a+7*o,this._months=+s+3*i+12*n,this._data={},this._locale=ot(),this._bubble()}function It(e){return e instanceof $t}function Nt(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function Yt(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)})}function Rt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=n[n.length-1]||[],s=(i+"").match(io)||["-",0,0],o=+(60*s[1])+T(s[2]);return 0===o?0:"+"===s[0]?o:-o}function jt(e,t){var i,s;return t._isUTC?(i=t.clone(),s=(w(e)||c(e)?e.valueOf():Pt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+s),n.updateOffset(i,!1),i):Pt(e).local()}function Vt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ft(e,t,i){var s,o=this._offset||0;if(!this.isValid())return null!=e?this:0/0;if(null!=e){if("string"==typeof e){if(e=Rt(ds,e),null===e)return this}else Math.abs(e)<16&&!i&&(e=60*e);return!this._isUTC&&t&&(s=Vt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),o!==e&&(!t||this._changeInProgress?on(this,Kt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Vt(this)}function Wt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function zt(e){return this.utcOffset(0,e)}function qt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this}function Ut(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Rt(us,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Bt(e){return this.isValid()?(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Gt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Xt(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=Ct(e),e._a){var t=e._isUTC?f(e._a):Pt(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Qt(){return this.isValid()?!this._isUTC:!1}function Zt(){return this.isValid()?this._isUTC:!1}function Jt(){return this.isValid()?this._isUTC&&0===this._offset:!1}function Kt(e,t){var n,i,s,o=e,a=null;return It(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=so.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:T(a[ys])*n,h:T(a[bs])*n,m:T(a[ws])*n,s:T(a[ks])*n,ms:T(Nt(1e3*a[Ts]))*n}):(a=oo.exec(e))?(n="-"===a[1]?-1:1,o={y:en(a[2],n),M:en(a[3],n),w:en(a[4],n),d:en(a[5],n),h:en(a[6],n),m:en(a[7],n),s:en(a[8],n)}):null==o?o={}:"object"==typeof o&&("from" in o||"to" in o)&&(s=nn(Pt(o.from),Pt(o.to)),o={},o.ms=s.milliseconds,o.M=s.months),i=new $t(o),It(e)&&d(e,"_locale")&&(i._locale=e._locale),i}function en(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function tn(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function nn(e,t){var n;return e.isValid()&&t.isValid()?(t=jt(t,e),e.isBefore(t)?n=tn(e,t):(n=tn(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function sn(e,t){return function(n,i){var s,o;return null===i||isNaN(+i)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),n="string"==typeof n?+n:n,s=Kt(n,i),on(this,s,e),this}}function on(e,t,i,s){var o=t._milliseconds,a=Nt(t._days),r=Nt(t._months);e.isValid()&&(s=null==s?!0:s,r&&me(e,oe(e,"Month")+r*i),a&&ae(e,"Date",oe(e,"Date")+a*i),o&&e._d.setTime(e._d.valueOf()+o*i),s&&n.updateOffset(e,a||r))}function an(e,t){var n=e.diff(t,"days",!0);return-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse"}function rn(e,t){var i=e||Pt(),s=jt(i,this).startOf("day"),o=n.calendarFormat(this,s)||"sameElse",a=t&&(M(t[o])?t[o].call(this,i):t[o]);return this.format(a||this.localeData().calendar(o,this,Pt(i)))}function ln(){return new b(this)}function cn(e,t){var n=w(e)?e:Pt(e);return this.isValid()&&n.isValid()?(t=Y(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function un(e,t){var n=w(e)?e:Pt(e);return this.isValid()&&n.isValid()?(t=Y(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function dn(e,t,n,i){var s=w(e)?e:Pt(e),o=w(t)?t:Pt(t);return this.isValid()&&s.isValid()&&o.isValid()?(i=i||"()",("("===i[0]?this.isAfter(s,n):!this.isBefore(s,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))):!1}function hn(e,t){var n,i=w(e)?e:Pt(e);return this.isValid()&&i.isValid()?(t=Y(t)||"millisecond","millisecond"===t?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function fn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function pn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function mn(e,t,n){var i,s,o;if(!this.isValid())return 0/0;if(i=jt(e,this),!i.isValid())return 0/0;switch(s=6e4*(i.utcOffset()-this.utcOffset()),t=Y(t)){case"year":o=gn(this,i)/12;break;case"month":o=gn(this,i);break;case"quarter":o=gn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-s)/864e5;break;case"week":o=(this-i-s)/6048e5;break;default:o=this-i}return n?o:k(o)}function gn(e,t){var n,i,s=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(s,"months");return 0>t-o?(n=e.clone().add(s-1,"months"),i=(t-o)/(o-n)):(n=e.clone().add(s+1,"months"),i=(t-o)/(n-o)),-(s+i)||0}function vn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function yn(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function bn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]';return this.format(n+i+s+o)}function wn(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)}function kn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Pt(e).isValid())?Kt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Tn(e){return this.from(Pt(),e)}function Sn(e,t){return this.isValid()&&(w(e)&&e.isValid()||Pt(e).isValid())?Kt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _n(e){return this.to(Pt(),e)}function Cn(e){var t;return void 0===e?this._locale._abbr:(t=ot(e),null!=t&&(this._locale=t),this)}function xn(){return this._locale}function Mn(e,t){return(e%t+t)%t}function Pn(e,t,n){return 100>e&&e>=0?new Date(e+400,t,n)-fo:new Date(e,t,n).valueOf()}function An(e,t,n){return 100>e&&e>=0?Date.UTC(e+400,t,n)-fo:Date.UTC(e,t,n)}function Dn(e){var t;if(e=Y(e),void 0===e||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?An:Pn;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-=Mn(t+(this._isUTC?0:this.utcOffset()*uo),ho);break;case"minute":t=this._d.valueOf(),t-=Mn(t,uo);break;case"second":t=this._d.valueOf(),t-=Mn(t,co)}return this._d.setTime(t),n.updateOffset(this,!0),this}function On(e){var t;if(e=Y(e),void 0===e||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?An:Pn;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+=ho-Mn(t+(this._isUTC?0:this.utcOffset()*uo),ho)-1;break;case"minute":t=this._d.valueOf(),t+=uo-Mn(t,uo)-1;break;case"second":t=this._d.valueOf(),t+=co-Mn(t,co)-1}return this._d.setTime(t),n.updateOffset(this,!0),this}function En(){return this._d.valueOf()-6e4*(this._offset||0)}function Ln(){return Math.floor(this.valueOf()/1e3)}function Hn(){return new Date(this.valueOf())}function $n(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function In(){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 Nn(){return this.isValid()?this.toISOString():null}function Yn(){return g(this)}function Rn(){return h({},m(this))}function jn(){return m(this).overflow}function Vn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Fn(e,t){W(0,[e,e.length],0,t)}function Wn(e){return Bn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zn(e){return Bn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qn(){return xe(this.year(),1,4)}function Un(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function Bn(e,t,n,i,s){var o;return null==e?Ce(this,i,s).year:(o=xe(e,i,s),t>o&&(t=o),Gn.call(this,e,t,n,i,s))}function Gn(e,t,n,i,s){var o=_e(e,t,n,i,s),a=Te(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Xn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Qn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Zn(e,t){t[Ts]=T(1e3*("0."+e))}function Jn(){return this._isUTC?"UTC":""}function Kn(){return this._isUTC?"Coordinated Universal Time":""}function ei(e){return Pt(1e3*e)}function ti(){return Pt.apply(null,arguments).parseZone()}function ni(e){return e}function ii(e,t,n,i){var s=ot(),o=f().set(i,t);return s[n](o,e)}function si(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return ii(e,t,n,"month");var i,s=[];for(i=0;12>i;i++)s[i]=ii(e,i,n,"month");return s}function oi(e,t,n,i){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var s=ot(),o=e?s._week.dow:0;if(null!=n)return ii(t,(n+o)%7,i,"day");var a,r=[];for(a=0;7>a;a++)r[a]=ii(t,(a+o)%7,i,"day");return r}function ai(e,t){return si(e,t,"months")}function ri(e,t){return si(e,t,"monthsShort")}function li(e,t,n){return oi(e,t,n,"weekdays")}function ci(e,t,n){return oi(e,t,n,"weekdaysShort")}function ui(e,t,n){return oi(e,t,n,"weekdaysMin")}function di(){var e=this._data;return this._milliseconds=ko(this._milliseconds),this._days=ko(this._days),this._months=ko(this._months),e.milliseconds=ko(e.milliseconds),e.seconds=ko(e.seconds),e.minutes=ko(e.minutes),e.hours=ko(e.hours),e.months=ko(e.months),e.years=ko(e.years),this}function hi(e,t,n,i){var s=Kt(t,n);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function fi(e,t){return hi(this,e,t,1)}function pi(e,t){return hi(this,e,t,-1)}function mi(e){return 0>e?Math.floor(e):Math.ceil(e)}function gi(){var e,t,n,i,s,o=this._milliseconds,a=this._days,r=this._months,l=this._data;return o>=0&&a>=0&&r>=0||0>=o&&0>=a&&0>=r||(o+=864e5*mi(yi(r)+a),a=0,r=0),l.milliseconds=o%1e3,e=k(o/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),s=k(vi(a)),r+=s,a-=mi(yi(s)),i=k(r/12),r%=12,l.days=a,l.months=r,l.years=i,this}function vi(e){return 4800*e/146097}function yi(e){return 146097*e/4800}function bi(e){if(!this.isValid())return 0/0;var t,n,i=this._milliseconds;if(e=Y(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+vi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(yi(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function wi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):0/0}function ki(e){return function(){return this.as(e)}}function Ti(){return Kt(this)}function Si(e){return e=Y(e),this.isValid()?this[e+"s"]():0/0}function _i(e){return function(){return this.isValid()?this._data[e]:0/0}}function Ci(){return k(this.days()/7)}function xi(e,t,n,i,s){return s.relativeTime(t||1,!!n,e,i)}function Mi(e,t,n){var i=Kt(e).abs(),s=Yo(i.as("s")),o=Yo(i.as("m")),a=Yo(i.as("h")),r=Yo(i.as("d")),l=Yo(i.as("M")),c=Yo(i.as("y")),u=s<=Ro.ss&&["s",s]||s<Ro.s&&["ss",s]||1>=o&&["m"]||o<Ro.m&&["mm",o]||1>=a&&["h"]||a<Ro.h&&["hh",a]||1>=r&&["d"]||r<Ro.d&&["dd",r]||1>=l&&["M"]||l<Ro.M&&["MM",l]||1>=c&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,xi.apply(null,u)}function Pi(e){return void 0===e?Yo:"function"==typeof e?(Yo=e,!0):!1}function Ai(e,t){return void 0===Ro[e]?!1:void 0===t?Ro[e]:(Ro[e]=t,"s"===e&&(Ro.ss=t-1),!0)}function Di(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Mi(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Oi(e){return(e>0)-(0>e)||+e}function Ei(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i=jo(this._milliseconds)/1e3,s=jo(this._days),o=jo(this._months);e=k(i/60),t=k(e/60),i%=60,e%=60,n=k(o/12),o%=12;var a=n,r=o,l=s,c=t,u=e,d=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=0>h?"-":"",p=Oi(this._months)!==Oi(h)?"-":"",m=Oi(this._days)!==Oi(h)?"-":"",g=Oi(this._milliseconds)!==Oi(h)?"-":"";return f+"P"+(a?p+a+"Y":"")+(r?p+r+"M":"")+(l?m+l+"D":"")+(c||u||d?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(d?g+d+"S":"")}var Li,Hi;Hi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;n>i;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var $i=n.momentProperties=[],Ii=!1,Ni={};n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var Yi;Yi=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var Ri={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ji={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"},Vi="Invalid date",Fi="%d",Wi=/\d{1,2}/,zi={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},qi={},Ui={},Bi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Gi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Xi={},Qi={},Zi=/\d/,Ji=/\d\d/,Ki=/\d{3}/,es=/\d{4}/,ts=/[+-]?\d{6}/,ns=/\d\d?/,is=/\d\d\d\d?/,ss=/\d\d\d\d\d\d?/,os=/\d{1,3}/,as=/\d{1,4}/,rs=/[+-]?\d{1,6}/,ls=/\d+/,cs=/[+-]?\d+/,us=/Z|[+-]\d\d:?\d\d/gi,ds=/Z|[+-]\d\d(?::?\d\d)?/gi,hs=/[+-]?\d+(\.\d{1,3})?/,fs=/[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,ps={},ms={},gs=0,vs=1,ys=2,bs=3,ws=4,ks=5,Ts=6,Ss=7,_s=8;W("Y",0,0,function(){var e=this.year();return 9999>=e?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),N("year","y"),j("year",1),G("Y",cs),G("YY",ns,Ji),G("YYYY",as,es),G("YYYYY",rs,ts),G("YYYYYY",rs,ts),J(["YYYYY","YYYYYY"],gs),J("YYYY",function(e,t){t[gs]=2===e.length?n.parseTwoDigitYear(e):T(e)}),J("YY",function(e,t){t[gs]=n.parseTwoDigitYear(e)}),J("Y",function(e,t){t[gs]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return T(e)+(T(e)>68?1900:2e3)};var Cs,xs=se("FullYear",!0);Cs=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),j("month",8),G("M",ns),G("MM",ns,Ji),G("MMM",function(e,t){return t.monthsShortRegex(e)}),G("MMMM",function(e,t){return t.monthsRegex(e)}),J(["M","MM"],function(e,t){t[vs]=T(e)-1}),J(["MMM","MMMM"],function(e,t,n,i){var s=n._locale.monthsParse(e,i,n._strict);null!=s?t[vs]=s:m(n).invalidMonth=e});var Ms=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ps="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),As="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ds=fs,Os=fs;W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),j("week",5),j("isoWeek",5),G("w",ns),G("ww",ns,Ji),G("W",ns),G("WW",ns,Ji),K(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=T(e)});var Es={dow:0,doy:6};W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),G("d",ns),G("e",ns),G("E",ns),G("dd",function(e,t){return t.weekdaysMinRegex(e)}),G("ddd",function(e,t){return t.weekdaysShortRegex(e)}),G("dddd",function(e,t){return t.weekdaysRegex(e)}),K(["dd","ddd","dddd"],function(e,t,n,i){var s=n._locale.weekdaysParse(e,i,n._strict);null!=s?t.d=s:m(n).invalidWeekday=e}),K(["d","e","E"],function(e,t,n,i){t[i]=T(e)});var Ls="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Hs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$s="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Is=fs,Ns=fs,Ys=fs;W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Be),W("k",["kk",2],0,Ge),W("hmm",0,0,function(){return""+Be.apply(this)+F(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Be.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),Xe("a",!0),Xe("A",!1),N("hour","h"),j("hour",13),G("a",Qe),G("A",Qe),G("H",ns),G("h",ns),G("k",ns),G("HH",ns,Ji),G("hh",ns,Ji),G("kk",ns,Ji),G("hmm",is),G("hmmss",ss),G("Hmm",is),G("Hmmss",ss),J(["H","HH"],bs),J(["k","kk"],function(e,t,n){var i=T(e);t[bs]=24===i?0:i}),J(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),J(["h","hh"],function(e,t,n){t[bs]=T(e),m(n).bigHour=!0}),J("hmm",function(e,t,n){var i=e.length-2;t[bs]=T(e.substr(0,i)),t[ws]=T(e.substr(i)),m(n).bigHour=!0}),J("hmmss",function(e,t,n){var i=e.length-4,s=e.length-2;t[bs]=T(e.substr(0,i)),t[ws]=T(e.substr(i,2)),t[ks]=T(e.substr(s)),m(n).bigHour=!0}),J("Hmm",function(e,t,n){var i=e.length-2;t[bs]=T(e.substr(0,i)),t[ws]=T(e.substr(i))}),J("Hmmss",function(e,t,n){var i=e.length-4,s=e.length-2;t[bs]=T(e.substr(0,i)),t[ws]=T(e.substr(i,2)),t[ks]=T(e.substr(s))});var Rs,js=/[ap]\.?m?\.?/i,Vs=se("Hours",!0),Fs={calendar:Ri,longDateFormat:ji,invalidDate:Vi,ordinal:Fi,dayOfMonthOrdinalParse:Wi,relativeTime:zi,months:Ps,monthsShort:As,week:Es,weekdays:Ls,weekdaysMin:$s,weekdaysShort:Hs,meridiemParse:js},Ws={},zs={},qs=/^\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)?)?$/,Us=/^\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)?)?$/,Bs=/Z|[+-]\d\d(?::?\d\d)?/,Gs=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Xs=[["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/]],Qs=/^\/?Date\((\-?\d+)/i,Zs=/^(?:(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}))$/,Js={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};n.createFromInputFallback=C("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":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var Ks=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:v()}),eo=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}),to=function(){return Date.now?Date.now():+new Date},no=["year","quarter","month","week","day","hour","minute","second","millisecond"];Yt("Z",":"),Yt("ZZ",""),G("Z",ds),G("ZZ",ds),J(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Rt(ds,e)});var io=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var so=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,oo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Kt.fn=$t.prototype,Kt.invalid=Ht;var ao=sn(1,"add"),ro=sn(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lo=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)}),co=1e3,uo=60*co,ho=60*uo,fo=3506328*ho;W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Fn("gggg","weekYear"),Fn("ggggg","weekYear"),Fn("GGGG","isoWeekYear"),Fn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),G("G",cs),G("g",cs),G("GG",ns,Ji),G("gg",ns,Ji),G("GGGG",as,es),G("gggg",as,es),G("GGGGG",rs,ts),G("ggggg",rs,ts),K(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=T(e)}),K(["gg","GG"],function(e,t,i,s){t[s]=n.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),N("quarter","Q"),j("quarter",7),G("Q",Zi),J("Q",function(e,t){t[vs]=3*(T(e)-1)}),W("D",["DD",2],"Do","date"),N("date","D"),j("date",9),G("D",ns),G("DD",ns,Ji),G("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),J(["D","DD"],ys),J("Do",function(e,t){t[ys]=T(e.match(ns)[0])});var po=se("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),j("dayOfYear",4),G("DDD",os),G("DDDD",Ki),J(["DDD","DDDD"],function(e,t,n){n._dayOfYear=T(e)}),W("m",["mm",2],0,"minute"),N("minute","m"),j("minute",14),G("m",ns),G("mm",ns,Ji),J(["m","mm"],ws);var mo=se("Minutes",!1);W("s",["ss",2],0,"second"),N("second","s"),j("second",15),G("s",ns),G("ss",ns,Ji),J(["s","ss"],ks);var go=se("Seconds",!1);W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),j("millisecond",16),G("S",os,Zi),G("SS",os,Ji),G("SSS",os,Ki);var vo;for(vo="SSSS";vo.length<=9;vo+="S")G(vo,ls);for(vo="S";vo.length<=9;vo+="S")J(vo,Zn);var yo=se("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var bo=b.prototype;bo.add=ao,bo.calendar=rn,bo.clone=ln,bo.diff=mn,bo.endOf=On,bo.format=wn,bo.from=kn,bo.fromNow=Tn,bo.to=Sn,bo.toNow=_n,bo.get=re,bo.invalidAt=jn,bo.isAfter=cn,bo.isBefore=un,bo.isBetween=dn,bo.isSame=hn,bo.isSameOrAfter=fn,bo.isSameOrBefore=pn,bo.isValid=Yn,bo.lang=lo,bo.locale=Cn,bo.localeData=xn,bo.max=eo,bo.min=Ks,bo.parsingFlags=Rn,bo.set=le,bo.startOf=Dn,bo.subtract=ro,bo.toArray=$n,bo.toObject=In,bo.toDate=Hn,bo.toISOString=yn,bo.inspect=bn,bo.toJSON=Nn,bo.toString=vn,bo.unix=Ln,bo.valueOf=En,bo.creationData=Vn,bo.year=xs,bo.isLeapYear=ie,bo.weekYear=Wn,bo.isoWeekYear=zn,bo.quarter=bo.quarters=Xn,bo.month=ge,bo.daysInMonth=ve,bo.week=bo.weeks=De,bo.isoWeek=bo.isoWeeks=Oe,bo.weeksInYear=Un,bo.isoWeeksInYear=qn,bo.date=po,bo.day=bo.days=je,bo.weekday=Ve,bo.isoWeekday=Fe,bo.dayOfYear=Qn,bo.hour=bo.hours=Vs,bo.minute=bo.minutes=mo,bo.second=bo.seconds=go,bo.millisecond=bo.milliseconds=yo,bo.utcOffset=Ft,bo.utc=zt,bo.local=qt,bo.parseZone=Ut,bo.hasAlignedHourOffset=Bt,bo.isDST=Gt,bo.isLocal=Qt,bo.isUtcOffset=Zt,bo.isUtc=Jt,bo.isUTC=Jt,bo.zoneAbbr=Jn,bo.zoneName=Kn,bo.dates=C("dates accessor is deprecated. Use date instead.",po),bo.months=C("months accessor is deprecated. Use month instead",ge),bo.years=C("years accessor is deprecated. Use year instead",xs),bo.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Wt),bo.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Xt);var wo=D.prototype;wo.calendar=O,wo.longDateFormat=E,wo.invalidDate=L,wo.ordinal=H,wo.preparse=ni,wo.postformat=ni,wo.relativeTime=$,wo.pastFuture=I,wo.set=P,wo.months=de,wo.monthsShort=he,wo.monthsParse=pe,wo.monthsRegex=be,wo.monthsShortRegex=ye,wo.week=Me,wo.firstDayOfYear=Ae,wo.firstDayOfWeek=Pe,wo.weekdays=$e,wo.weekdaysMin=Ne,wo.weekdaysShort=Ie,wo.weekdaysParse=Re,wo.weekdaysRegex=We,wo.weekdaysShortRegex=ze,wo.weekdaysMinRegex=qe,wo.isPM=Ze,wo.meridiem=Je,nt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===T(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),n.lang=C("moment.lang is deprecated. Use moment.locale instead.",nt),n.langData=C("moment.langData is deprecated. Use moment.localeData instead.",ot);var ko=Math.abs,To=ki("ms"),So=ki("s"),_o=ki("m"),Co=ki("h"),xo=ki("d"),Mo=ki("w"),Po=ki("M"),Ao=ki("Q"),Do=ki("y"),Oo=_i("milliseconds"),Eo=_i("seconds"),Lo=_i("minutes"),Ho=_i("hours"),$o=_i("days"),Io=_i("months"),No=_i("years"),Yo=Math.round,Ro={ss:44,s:45,m:45,h:22,d:26,M:11},jo=Math.abs,Vo=$t.prototype;return Vo.isValid=Lt,Vo.abs=di,Vo.add=fi,Vo.subtract=pi,Vo.as=bi,Vo.asMilliseconds=To,Vo.asSeconds=So,Vo.asMinutes=_o,Vo.asHours=Co,Vo.asDays=xo,Vo.asWeeks=Mo,Vo.asMonths=Po,Vo.asQuarters=Ao,Vo.asYears=Do,Vo.valueOf=wi,Vo._bubble=gi,Vo.clone=Ti,Vo.get=Si,Vo.milliseconds=Oo,Vo.seconds=Eo,Vo.minutes=Lo,Vo.hours=Ho,Vo.days=$o,Vo.weeks=Ci,Vo.months=Io,Vo.years=No,Vo.humanize=Di,Vo.toISOString=Ei,Vo.toString=Ei,Vo.toJSON=Ei,Vo.locale=Cn,Vo.localeData=xn,Vo.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ei),Vo.lang=lo,W("X",0,0,"unix"),W("x",0,0,"valueOf"),G("x",cs),G("X",hs),J("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),J("x",function(e,t,n){n._d=new Date(T(e))}),n.version="2.24.0",i(Pt),n.fn=bo,n.min=Dt,n.max=Ot,n.now=to,n.utc=f,n.unix=ei,n.months=ai,n.isDate=c,n.locale=nt,n.invalid=v,n.duration=Kt,n.isMoment=w,n.weekdays=li,n.parseZone=ti,n.localeData=ot,n.isDuration=It,n.monthsShort=ri,n.weekdaysMin=ui,n.defineLocale=it,n.updateLocale=st,n.locales=at,n.weekdaysShort=ci,n.normalizeUnits=Y,n.relativeTimeRounding=Pi,n.relativeTimeThreshold=Ai,n.calendarFormat=an,n.prototype=bo,n.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"},n})},{}],6:[function(e,t,n){!function(i,s){"use strict";var o;if("object"==typeof n){try{o=e("moment")}catch(a){}t.exports=s(o)}else"function"==typeof define&&define.amd?define(function(e){var t="moment";try{o=e(t)}catch(n){}return s(o)}):i.Pikaday=s(i.moment)}(this,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,i=window.document,s=window.setTimeout,o=function(e,t,i,s){n?e.addEventListener(t,i,!!s):e.attachEvent("on"+t,i)},a=function(e,t,i,s){n?e.removeEventListener(t,i,!!s):e.detachEvent("on"+t,i)},r=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},l=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},c=function(e,t){l(e,t)||(e.className=""===e.className?t:e.className+" "+t)},u=function(e,t){e.className=r((" "+e.className+" ").replace(" "+t+" "," "))},d=function(e){return/Array/.test(Object.prototype.toString.call(e))},h=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},f=function(e){var t=e.getDay();return 0===t||6===t},p=function(e){return e%4===0&&e%100!==0||e%400===0},m=function(e,t){return[31,p(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},g=function(e){h(e)&&e.setHours(0,0,0,0)},v=function(e,t){return e.getTime()===t.getTime()},y=function(e,t,n){var i,s;for(i in t)s=void 0!==e[i],s&&"object"==typeof t[i]&&null!==t[i]&&void 0===t[i].nodeName?h(t[i])?n&&(e[i]=new Date(t[i].getTime())):d(t[i])?n&&(e[i]=t[i].slice(0)):e[i]=y({},t[i],n):(n||!s)&&(e[i]=t[i]);return e},b=function(e,t,n){var s;i.createEvent?(s=i.createEvent("HTMLEvents"),s.initEvent(t,!0,!1),s=y(s,n),e.dispatchEvent(s)):i.createEventObject&&(s=i.createEventObject(),s=y(s,n),e.fireEvent("on"+t,s))},w=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},k={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:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,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},T=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},S=function(e){var t=[],n="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"),n="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="'+n+'"><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>"},_=function(e,t,n){var i=new Date(n,0,1),s=Math.ceil(((new Date(n,t,e)-i)/864e5+i.getDay()+1)/7);return'<td class="pika-week">'+s+"</td>"},C=function(e,t,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},x=function(e){return"<tbody>"+e.join("")+"</tbody>"},M=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;7>t;t++)n.push('<th scope="col"><abbr title="'+T(e,t)+'">'+T(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},P=function(e,t,n,i,s,o){var a,r,l,c,u,h=e._o,f=n===h.minYear,p=n===h.maxYear,m='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(l=[],a=0;12>a;a++)l.push('<option value="'+(n===s?a-t:12+a-t)+'"'+(a===i?' selected="selected"':"")+(f&&a<h.minMonth||p&&a>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(c='<div class="pika-label">'+h.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",d(h.yearRange)?(a=h.yearRange[0],r=h.yearRange[1]+1):(a=n-h.yearRange,r=1+n+h.yearRange),l=[];r>a&&a<=h.maxYear;a++)a>=h.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return u='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",m+=h.showMonthAfterYear?u+c:c+u,f&&(0===i||h.minMonth>=i)&&(g=!1),p&&(11===i||h.maxMonth<=i)&&(v=!1),0===t&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),m+="</div>"},A=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+M(e)+x(t)+"</table>"},D=function(a){var r=this,c=r.config(a);r._onMouseDown=function(e){if(r._v){e=e||window.event;var t=e.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")?r.prevMonth():l(t,"pika-next")&&r.nextMonth():(r.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),c.bound&&s(function(){r.hide(),c.blurFieldOnSelect&&c.field&&c.field.blur()},100))),l(t,"pika-select"))r._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},r._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(l(t,"pika-select-month")?r.gotoMonth(t.value):l(t,"pika-select-year")&&r.gotoYear(t.value))},r._onKeyChange=function(e){if(e=e||window.event,r.isVisible())switch(e.keyCode){case 13:case 27:c.field&&c.field.blur();break;case 37:e.preventDefault(),r.adjustDate("subtract",1);break;case 38:r.adjustDate("subtract",7);break;case 39:r.adjustDate("add",1);break;case 40:r.adjustDate("add",7)}},r._onInputChange=function(n){var i;n.firedBy!==r&&(c.parse?i=c.parse(c.field.value,c.format):t?(i=e(c.field.value,c.format,c.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(c.field.value)),h(i)&&r.setDate(i),r._v||r.show())},r._onInputFocus=function(){r.show()},r._onInputClick=function(){r.show()},r._onInputBlur=function(){var e=i.activeElement;do if(l(e,"pika-single"))return;while(e=e.parentNode);r._c||(r._b=s(function(){r.hide()},50)),r._c=!1},r._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,i=t;if(t){!n&&l(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),o(t,"change",r._onChange)));do if(l(i,"pika-single")||i===c.trigger)return;while(i=i.parentNode);r._v&&t!==c.trigger&&i!==c.trigger&&r.hide()}},r.el=i.createElement("div"),r.el.className="pika-single"+(c.isRTL?" is-rtl":"")+(c.theme?" "+c.theme:""),o(r.el,"mousedown",r._onMouseDown,!0),o(r.el,"touchend",r._onMouseDown,!0),o(r.el,"change",r._onChange),c.keyboardInput&&o(i,"keydown",r._onKeyChange),c.field&&(c.container?c.container.appendChild(r.el):c.bound?i.body.appendChild(r.el):c.field.parentNode.insertBefore(r.el,c.field.nextSibling),o(c.field,"change",r._onInputChange),c.defaultDate||(c.defaultDate=t&&c.field.value?e(c.field.value,c.format).toDate():new Date(Date.parse(c.field.value)),c.setDefaultDate=!0));var u=c.defaultDate;h(u)?c.setDefaultDate?r.setDate(u,!0):r.gotoDate(u):r.gotoDate(new Date),c.bound?(this.hide(),r.el.className+=" is-bound",o(c.trigger,"click",r._onInputClick),o(c.trigger,"focus",r._onInputFocus),o(c.trigger,"blur",r._onInputBlur)):this.show()};return D.prototype={config:function(e){this._o||(this._o=y({},k,!0));var t=y(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 n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,h(t.minDate)||(t.minDate=!1),h(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),d(t.yearRange)){var i=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||i,t.yearRange[1]=parseInt(t.yearRange[1],10)||i}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||k.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,h(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return h(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="",b(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),h(e)){var n=this._o.minDate,i=this._o.maxDate;h(n)&&n>e?e=n:h(i)&&e>i&&(e=i),this._d=new Date(e.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),b(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(h(e)){if(this.calendars){var n=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),s=e.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),t=s<n.getTime()||i.getTime()<s}t&&(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 n,i=this.getDate()||new Date,s=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(i.valueOf()+s):"subtract"===e&&(n=new Date(i.valueOf()-s)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=w(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=w({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?(g(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=k.minDate,this._o.minYear=k.minYear,this._o.minMonth=k.minMonth,this._o.startRange=k.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(g(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=k.maxDate,this._o.maxYear=k.maxYear,this._o.maxMonth=k.maxMonth,this._o.endRange=k.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,n=this._o,i=n.minYear,o=n.maxYear,a=n.minMonth,r=n.maxMonth,l="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=o&&(this._y=o,!isNaN(r)&&this._m>r&&(this._m=r)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var c=0;c<n.numberOfMonths;c++)l+='<div class="pika-lendar">'+P(this,c,this.calendars[c].year,this.calendars[c].month,this.calendars[0].year,t)+this.render(this.calendars[c].year,this.calendars[c].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&s(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var e,t,n,s,o,a,r,l,d,h,f,p;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,s=this.el.offsetHeight,o=window.innerWidth||i.documentElement.clientWidth,a=window.innerHeight||i.documentElement.clientHeight,r=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,f=!0,p=!0,"function"==typeof e.getBoundingClientRect)h=e.getBoundingClientRect(),l=h.left+window.pageXOffset,d=h.bottom+window.pageYOffset;else for(l=t.offsetLeft,d=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,d+=t.offsetTop;(this._o.reposition&&l+n>o||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth,f=!1),(this._o.reposition&&d+s>a+r||this._o.position.indexOf("top")>-1&&d-s-e.offsetHeight>0)&&(d=d-s-e.offsetHeight,p=!1),this.el.style.left=l+"px",this.el.style.top=d+"px",c(this.el,f?"left-aligned":"right-aligned"),c(this.el,p?"bottom-aligned":"top-aligned"),u(this.el,f?"right-aligned":"left-aligned"),u(this.el,p?"top-aligned":"bottom-aligned")}},render:function(e,t,n){var i=this._o,s=new Date,o=m(e,t),a=new Date(e,t,1).getDay(),r=[],l=[];g(s),i.firstDay>0&&(a-=i.firstDay,0>a&&(a+=7));for(var c=0===t?11:t-1,u=11===t?0:t+1,d=0===t?e-1:e,p=11===t?e+1:e,y=m(d,c),b=o+a,w=b;w>7;)w-=7;b+=7-w;for(var k=!1,T=0,x=0;b>T;T++){var M=new Date(e,t,1+(T-a)),P=h(this._d)?v(M,this._d):!1,D=v(M,s),O=-1!==i.events.indexOf(M.toDateString())?!0:!1,E=a>T||T>=o+a,L=1+(T-a),H=t,$=e,I=i.startRange&&v(i.startRange,M),N=i.endRange&&v(i.endRange,M),Y=i.startRange&&i.endRange&&i.startRange<M&&M<i.endRange,R=i.minDate&&M<i.minDate||i.maxDate&&M>i.maxDate||i.disableWeekends&&f(M)||i.disableDayFn&&i.disableDayFn(M);E&&(a>T?(L=y+L,H=c,$=d):(L-=o,H=u,$=p));var j={day:L,month:H,year:$,hasEvent:O,isSelected:P,isToday:D,isDisabled:R,isEmpty:E,isStartRange:I,isEndRange:N,isInRange:Y,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&P&&(k=!0),l.push(S(j)),7===++x&&(i.showWeekNumber&&l.unshift(_(T-a,t,e)),r.push(C(l,i.isRTL,i.pickWholeWeek,k)),l=[],x=0,k=!1)}return A(i,r,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),u(this.el,"is-hidden"),this._o.bound&&(o(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;e!==!1&&(this._o.bound&&a(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(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(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),e.keyboardInput&&a(i,"keydown",this._onKeyChange),e.field&&(a(e.field,"change",this._onInputChange),e.bound&&(a(e.trigger,"click",this._onInputClick),a(e.trigger,"focus",this._onInputFocus),a(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},D})},{moment:5}],7:[function(e,t,n){(function(e){"object"==typeof navigator&&function(e,i){"object"==typeof n&&"undefined"!=typeof t?t.exports=i():"function"==typeof define&&define.amd?define("Plyr",i):(e="undefined"!=typeof globalThis?globalThis:e||self).Plyr=i()}(this,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value" in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){if(null==e)return{};var n,i,s=function(e,t){if(null==e)return{};var n,i,s={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function c(e,t){return function(e){return Array.isArray(e)?e:void 0}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,s=!1,o=void 0;try{for(var a,r=e[Symbol.iterator]();!(i=(a=r.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==r["return"]||r["return"]()}finally{if(s)throw o}}return n}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){return function(e){return Array.isArray(e)?h(e):void 0}(e)||function(e){return"undefined"!=typeof Symbol&&Symbol.iterator in Object(e)?Array.from(e):void 0}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);t>n;n++)i[n]=e[n];return i}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value" in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function y(e,t){if(1>t){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}function b(e,t){setTimeout(function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}},t)}function w(e,t){return t.split(".").reduce(function(e,t){return e&&e[t]},e)}function k(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];if(!n.length)return e;var s=n.shift();return Ye(s)?(Object.keys(s).forEach(function(t){Ye(s[t])?(Object.keys(e).includes(t)||Object.assign(e,o({},t,{})),k(e[t],s[t])):Object.assign(e,o({},t,s[t]))}),k.apply(void 0,[e].concat(n))):e}function T(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach(function(e,n){var i=n>0?t.cloneNode(!0):t,s=e.parentNode,o=e.nextSibling;i.appendChild(e),o?s.insertBefore(i,o):s.appendChild(i)})}function S(e,t){qe(e)&&!Ze(t)&&Object.entries(t).filter(function(e){var t=c(e,2)[1];return!Ne(t)}).forEach(function(t){var n=c(t,2),i=n[0],s=n[1];return e.setAttribute(i,s)})}function _(e,t,n){var i=document.createElement(e);return Ye(t)&&S(i,t),je(n)&&(i.innerText=n),i}function C(e,t,n,i){qe(t)&&t.appendChild(_(e,n,i))}function x(e){ze(e)||We(e)?Array.from(e).forEach(x):qe(e)&&qe(e.parentNode)&&e.parentNode.removeChild(e)}function M(e){if(qe(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function P(e,t){return qe(t)&&qe(t.parentNode)&&qe(e)?(t.parentNode.replaceChild(e,t),e):null}function A(e,t){if(!je(e)||Ze(e))return{};var n={},i=k({},t);return e.split(",").forEach(function(e){var t=e.trim(),s=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=c(o,1)[0],r=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":n["class"]=je(i["class"])?"".concat(i["class"]," ").concat(s):s;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=r}}),k(i,n)}function D(e,t){if(qe(e)){var n=t;Ve(n)||(n=!e.hidden),e.hidden=n}}function O(e,t,n){if(ze(e))return Array.from(e).map(function(e){return O(e,t,n)});if(qe(e)){var i="toggle";return void 0!==n&&(i=n?"add":"remove"),e.classList[i](t),e.classList.contains(t)}return!1}function E(e,t){return qe(e)&&e.classList.contains(t)}function L(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function H(e){return this.elements.container.querySelectorAll(e)}function $(e){return this.elements.container.querySelector(e)}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];qe(e)&&(e.focus({preventScroll:!0}),t&&O(e,this.config.classNames.tabFocus))}function N(e,t,n){var i=this,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener" in e&&!Ze(t)&&Fe(n)){var r=t.split(" "),l=a;nt&&(l={passive:o,capture:a}),r.forEach(function(t){i&&i.eventListeners&&s&&i.eventListeners.push({element:e,type:t,callback:n,options:l}),e[s?"addEventListener":"removeEventListener"](t,n,l)})}}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];N.call(this,e,t,n,!0,i,s)}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];N.call(this,e,t,n,!1,i,s)}function j(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function r(){R(e,n,r,s,o);for(var a=arguments.length,l=new Array(a),c=0;a>c;c++)l[c]=arguments[c];i.apply(t,l)};N.call(this,e,n,a,!0,s,o)}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(qe(e)&&!Ze(t)){var s=new CustomEvent(t,{bubbles:n,detail:r(r({},i),{},{plyr:this})});e.dispatchEvent(s)}}function F(){this&&this.eventListeners&&(this.eventListeners.forEach(function(e){var t=e.element,n=e.type,i=e.callback,s=e.options;t.removeEventListener(n,i,s)}),this.eventListeners=[])}function W(){var e=this;return new Promise(function(t){return e.ready?setTimeout(t,0):Y.call(e,e.elements.container,"ready",t)}).then(function(){})}function z(e){Xe(e)&&e.then(null,function(){})}function q(e){return!!(We(e)||je(e)&&e.includes(":"))&&(We(e)?e:e.split(":")).map(Number).every(Re)}function U(e){if(!We(e)||!e.every(Re))return null;var t=c(e,2),n=t[0],i=t[1],s=function o(e,t){return 0===t?e:o(t,e%t)}(n,i);return[n/s,i/s]}function B(e){var t=function(e){return q(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!Ze(this.embed)&&We(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var i=this.media;n=U([i.videoWidth,i.videoHeight])}return n}function G(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=B.call(this,e),i=c(We(n)?n:[0,0],2),s=100/i[0]*i[1];if(t.style.paddingBottom="".concat(s,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var o=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),a=(o-s)/(o/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(a,"%)")}else this.isHTML5&&t.classList.toggle(this.config.classNames.videoFixedRatio,null!==n);return{padding:s,ratio:n}}function X(e){return We(e)?e.filter(function(t,n){return e.indexOf(t)===n}):e}function Q(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];return Ze(e)?e:e.toString().replace(/{(\d+)}/g,function(e,t){return n[t].toString()})}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=st(t,"-"," "),t=st(t,"_"," "),t=ot(t),st(t," ","")}function J(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise(function(e,n){try{var i=new XMLHttpRequest;if(!("withCredentials" in i))return;i.addEventListener("load",function(){if("text"===t)try{e(JSON.parse(i.responseText))}catch(n){e(i.responseText)}else e(i.response)}),i.addEventListener("error",function(){throw new Error(i.status)}),i.open("GET",s,!0),i.responseType=t,i.send()}catch(s){n(s)}})}function ee(e,t){if(je(e)){var n="cache",i=je(t),s=function(){return null!==document.getElementById(t)},o=function(e,t){e.innerHTML=t,i&&s()||document.body.insertAdjacentElement("afterbegin",e)};if(!i||!s()){var a=lt.supported,r=document.createElement("div");if(r.setAttribute("hidden",""),i&&r.setAttribute("id",t),a){var l=window.localStorage.getItem("".concat(n,"-").concat(t));if(null!==l){var c=JSON.parse(l);o(r,c.content)}}K(e).then(function(e){Ze(e)||(a&&window.localStorage.setItem("".concat(n,"-").concat(t),JSON.stringify({content:e})),o(r,e))})["catch"](function(){})}}}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Re(e))return te(void 0,t,n);var i=function(e){return"0".concat(e).slice(-2)},s=ct(e),o=ut(e),a=dt(e);return s=t||s>0?"".concat(s,":"):"","".concat(n&&e>0?"-":"").concat(s).concat(i(o),":").concat(i(a))}function ne(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;if(t){var i=document.createElement("a");i.href=n,n=i.href}try{return new URL(n)}catch(e){return null}}function ie(e){var t=new URLSearchParams;return Ye(e)&&Object.entries(e).forEach(function(e){var n=c(e,2),i=n[0],s=n[1];t.set(i,s)}),t}function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise(function(n,i){var s=new Image,o=function(){delete s.onload,delete s.onerror,(s.naturalWidth>=t?n:i)(s)};Object.assign(s,{onload:o,onerror:o,src:e})})}function oe(e){return new Promise(function(t,n){xt(e,{success:t,error:n})})}function ae(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,V.call(this,this.media,e?"play":"pause"))}function re(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,V.call(this,this.media,e?"play":"pause"))}function le(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var ce,ue,de,he,fe={addCSS:!0,thumbWidth:15,watch:!0},pe=function(e){return null!=e?e.constructor:null},me=function(e,t){return!!(e&&t&&e instanceof t)},ge=function(e){return null==e},ve=function(e){return pe(e)===Object},ye=function(e){return pe(e)===String},be=function(e){return Array.isArray(e)},we=function(e){return me(e,NodeList)},ke=ye,Te=be,Se=we,_e=function(e){return me(e,Element)},Ce=function(e){return me(e,Event)},xe=function(e){return ge(e)||(ye(e)||be(e)||we(e))&&!e.length||ve(e)&&!Object.keys(e).length},Me=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_e(t)?this.element=t:ke(t)&&(this.element=document.querySelector(t)),_e(this.element)&&xe(this.element.rangeTouch)&&(this.config=g({},fe,{},n),this.init())}return function(e,t,n){t&&f(e.prototype,t),n&&f(e,n)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(e){t.element[n](e,function(e){return t.set(e)},!1)})}},{key:"get",value:function(t){if(!e.enabled||!Ce(t))return null;var n,i=t.target,s=t.changedTouches[0],o=parseFloat(i.getAttribute("min"))||0,a=parseFloat(i.getAttribute("max"))||100,r=parseFloat(i.getAttribute("step"))||1,l=i.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(s.clientX-l.left))?n=0:n>100&&(n=100),50>n?n-=(100-2*n)*c:n>50&&(n+=2*(n-50)*c),o+y(n/100*(a-o),r)}},{key:"set",value:function(t){e.enabled&&Ce(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(xe(t)||ke(t)?i=Array.from(document.querySelectorAll(ke(t)?t:'input[type="range"]')):_e(t)?i=[t]:Se(t)?i=Array.from(t):Te(t)&&(i=t.filter(_e)),xe(i))return null;var s=g({},fe,{},n);if(ke(t)&&s.watch){var o=new MutationObserver(function(n){Array.from(n).forEach(function(n){Array.from(n.addedNodes).forEach(function(n){_e(n)&&v(n,t)&&new e(n,s)})})});o.observe(document.body,{childList:!0,subtree:!0})}return i.map(function(t){return new e(t,n)})}},{key:"enabled",get:function(){return"ontouchstart" in document.documentElement}}]),e}(),Pe=function(e){return null!=e?e.constructor:null},Ae=function(e,t){return Boolean(e&&t&&e instanceof t)},De=function(e){return null==e},Oe=function(e){return Pe(e)===Object},Ee=function(e){return Pe(e)===String},Le=function(e){return Pe(e)===Function},He=function(e){return Array.isArray(e)},$e=function(e){return Ae(e,NodeList)},Ie=function(e){return De(e)||(Ee(e)||He(e)||$e(e))&&!e.length||Oe(e)&&!Object.keys(e).length},Ne=De,Ye=Oe,Re=function(e){return Pe(e)===Number&&!Number.isNaN(e)},je=Ee,Ve=function(e){return Pe(e)===Boolean},Fe=Le,We=He,ze=$e,qe=function(e){return null!==e&&"object"===t(e)&&1===e.nodeType&&"object"===t(e.style)&&"object"===t(e.ownerDocument)},Ue=function(e){return Ae(e,Event)},Be=function(e){return Ae(e,KeyboardEvent)},Ge=function(e){return Ae(e,TextTrack)||!De(e)&&Ee(e.kind)},Xe=function(e){return Ae(e,Promise)&&Le(e.then)},Qe=function(e){if(Ae(e,window.URL))return!0;if(!Ee(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!Ie(new URL(t).hostname)}catch(e){return!1}},Ze=Ie,Je=(ce=document.createElement("span"),ue={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},de=Object.keys(ue).find(function(e){return void 0!==ce.style[e]}),!!je(de)&&ue[de]),Ke={isIE:!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance" in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)},et={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},tt={audio:"canPlayType" in document.createElement("audio"),video:"canPlayType" in document.createElement("video"),check:function(e,t,n){var i=Ke.isIPhone&&n&&tt.playsinline,s=tt[e]||"html5"!==t;return{api:s,ui:s&&tt.rangeInput&&("video"!==e||!Ke.isIPhone||i)}},pip:!(Ke.isIPhone||!Fe(_("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||_("video").disablePictureInPicture)),airplay:Fe(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline" in document.createElement("video"),mime:function(e){if(Ze(e))return!1;var t=c(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(et).includes(n)&&(n+='; codecs="'.concat(et[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks" in document.createElement("video"),rangeInput:(he=document.createElement("input"),he.type="range","range"===he.type),touch:"ontouchstart" in document.documentElement,transitions:!1!==Je,reducedMotion:"matchMedia" in window&&window.matchMedia("(prefers-reduced-motion)").matches},nt=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}(),it={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(t){var n=t.getAttribute("type");return!!Ze(n)||tt.mime.call(e,n)}):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:it.getSources.call(this).map(function(e){return Number(e.getAttribute("size"))}).filter(Boolean)},setup:function(){if(this.isHTML5){var e=this;e.options.speed=e.config.speed.options,Ze(this.config.ratio)||G.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=it.getSources.call(e).find(function(t){return t.getAttribute("src")===e.source});return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&Fe(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=it.getSources.call(e).find(function(e){return Number(e.getAttribute("size"))===t});if(!n)return;var i=e.media,s=i.currentTime,o=i.paused,a=i.preload,r=i.readyState,l=i.playbackRate;e.media.src=n.getAttribute("src"),("none"!==a||r)&&(e.once("loadedmetadata",function(){e.speed=l,e.currentTime=s,o||z(e.play())}),e.media.load())}V.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(x(it.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}},st=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"),n.toString())},ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},at={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ze(e)||Ze(t))return"";var n=w(t.i18n,e);if(Ze(n))return Object.keys(at).includes(e)?at[e]:"";var i={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(i).forEach(function(e){var t=c(e,2),i=t[0],s=t[1];n=st(n,i,s)}),n},lt=function(){function e(t){var i=this;n(this,e),o(this,"get",function(t){if(!e.supported||!i.enabled)return null;var n=window.localStorage.getItem(i.key);if(Ze(n))return null;var s=JSON.parse(n);return je(t)&&t.length?s[t]:s}),o(this,"set",function(t){if(e.supported&&i.enabled&&Ye(t)){var n=i.get();Ze(n)&&(n={}),k(n,t),window.localStorage.setItem(i.key,JSON.stringify(n))}}),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return s(e,null,[{key:"supported",get:function(){try{if(!("localStorage" in window))return!1;var e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}]),e}(),ct=function(e){return Math.trunc(e/60/60%60,10)},ut=function(e){return Math.trunc(e/60%60,10)},dt=function(e){return Math.trunc(e%60,10)},ht={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||Ke.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=$.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:H.call(this,this.config.selectors.buttons.play),pause:$.call(this,this.config.selectors.buttons.pause),restart:$.call(this,this.config.selectors.buttons.restart),rewind:$.call(this,this.config.selectors.buttons.rewind),fastForward:$.call(this,this.config.selectors.buttons.fastForward),mute:$.call(this,this.config.selectors.buttons.mute),pip:$.call(this,this.config.selectors.buttons.pip),airplay:$.call(this,this.config.selectors.buttons.airplay),settings:$.call(this,this.config.selectors.buttons.settings),captions:$.call(this,this.config.selectors.buttons.captions),fullscreen:$.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=$.call(this,this.config.selectors.progress),this.elements.inputs={seek:$.call(this,this.config.selectors.inputs.seek),volume:$.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:$.call(this,this.config.selectors.display.buffer),currentTime:$.call(this,this.config.selectors.display.currentTime),duration:$.call(this,this.config.selectors.display.duration)},qe(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var n="http://www.w3.org/2000/svg",i=ht.getIconUrl.call(this),s="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),o=document.createElementNS(n,"svg");S(o,k(t,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(n,"use"),r="".concat(s,"-").concat(e);return"href" in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",r),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),o.appendChild(a),o},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rt(e,this.config),i=r(r({},t),{},{"class":[t["class"],this.config.classNames.hidden].filter(Boolean).join(" ")});return _("span",i,n)},createBadge:function(e){if(Ze(e))return null;var t=_("span",{"class":this.config.classNames.menu.value});return t.appendChild(_("span",{"class":this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,i=k({},t),s=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(e=Z(e)).charAt(0).toLowerCase()+e.slice(1)}(e),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(function(e){Object.keys(i).includes(e)&&(o[e]=i[e],delete i[e])}),"button"!==o.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i["class"].split(" ").some(function(e){return e===n.config.classNames.control})||k(i,{"class":"".concat(i["class"]," ").concat(this.config.classNames.control)}):i["class"]=this.config.classNames.control,e){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":i["class"]+=" ".concat(this.config.classNames.control,"--overlaid"),s="play",o.label="play",o.icon="play";break;default:Ze(o.label)&&(o.label=s),Ze(o.icon)&&(o.icon=e)}var a=_(o.element);return o.toggle?(a.appendChild(ht.createIcon.call(this,o.iconPressed,{"class":"icon--pressed"})),a.appendChild(ht.createIcon.call(this,o.icon,{"class":"icon--not-pressed"})),a.appendChild(ht.createLabel.call(this,o.labelPressed,{"class":"label--pressed"})),a.appendChild(ht.createLabel.call(this,o.label,{"class":"label--not-pressed"}))):(a.appendChild(ht.createIcon.call(this,o.icon)),a.appendChild(ht.createLabel.call(this,o.label))),k(i,A(this.config.selectors.buttons[s],i)),S(a,i),"play"===s?(We(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(a)):this.elements.buttons[s]=a,a},createRange:function(e,t){var n=_("input",k(A(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":rt(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,ht.updateRangeFill.call(this,n),Me.setup(n),n},createProgress:function(e,t){var n=_("progress",k(A(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(_("span",null,"0"));var i={played:"played",buffer:"buffered"}[e],s=i?rt(i,this.config):"";n.innerText="% ".concat(s.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=A(this.config.selectors.display[e],t),i=_("div",k(n,{"class":"".concat(n["class"]?n["class"]:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":rt(e,this.config)}),"00:00");return this.elements.display[e]=i,i},bindMenuItemShortcuts:function(e,t){var n=this;Y.call(this,e,"keydown keyup",function(i){if([32,38,39,40].includes(i.which)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var s,o=L(e,'[role="menuitemradio"]');!o&&[32,39].includes(i.which)?ht.showMenuPanel.call(n,t,!0):32!==i.which&&(40===i.which||o&&39===i.which?(s=e.nextElementSibling,qe(s)||(s=e.parentNode.firstElementChild)):(s=e.previousElementSibling,qe(s)||(s=e.parentNode.lastElementChild)),I.call(n,s,!0))}},!1),Y.call(this,e,"keyup",function(e){13===e.which&&ht.focusFirstMenuItem.call(n,null,!0)})},createMenuItem:function(e){var t=this,n=e.value,i=e.list,s=e.type,o=e.title,a=e.badge,r=void 0===a?null:a,l=e.checked,c=void 0!==l&&l,u=A(this.config.selectors.inputs[s]),d=_("button",k(u,{type:"button",role:"menuitemradio","class":"".concat(this.config.classNames.control," ").concat(u["class"]?u["class"]:"").trim(),"aria-checked":c,value:n})),h=_("span");h.innerHTML=o,qe(r)&&h.appendChild(r),d.appendChild(h),Object.defineProperty(d,"checked",{enumerable:!0,get:function(){return"true"===d.getAttribute("aria-checked")},set:function(e){e&&Array.from(d.parentNode.children).filter(function(e){return L(e,'[role="menuitemradio"]')}).forEach(function(e){return e.setAttribute("aria-checked","false")}),d.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(d,"click keyup",function(e){if(!Be(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),d.checked=!0,s){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}ht.showMenuPanel.call(t,"home",Be(e))}},s,!1),ht.bindMenuItemShortcuts.call(this,d,s),i.appendChild(d)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Re(e))return e;var n=ct(this.duration)>0;return te(e,n,t)},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];qe(e)&&Re(t)&&(e.innerText=ht.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(qe(this.elements.inputs.volume)&&ht.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),qe(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;qe(e)&&(e.value=t,ht.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&Ue(e)){var n,i,s=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":n=this.currentTime,i=this.duration,s=0===n||0===i||Number.isNaN(n)||Number.isNaN(i)?0:(n/i*100).toFixed(2),"timeupdate"===e.type&&ht.setRange.call(this,this.elements.inputs.seek,s);break;case"playing":case"progress":!function(e,n){var i=Re(n)?n:0,s=qe(e)?e:t.elements.display.buffer;if(qe(s)){s.value=i;var o=s.getElementsByTagName("span")[0];qe(o)&&(o.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=Ue(e)?e.target:e;if(qe(t)&&"range"===t.getAttribute("type")){if(L(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=ht.formatTime(this.currentTime),i=ht.formatTime(this.duration),s=rt("seekLabel",this.config);t.setAttribute("aria-valuetext",s.replace("{currentTime}",n).replace("{duration}",i))}else if(L(t,this.config.selectors.inputs.volume)){var o=100*t.value;t.setAttribute("aria-valuenow",o),t.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);Ke.isWebkit&&t.style.setProperty("--value","".concat(t.value/t.max*100,"%"))}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&qe(this.elements.inputs.seek)&&qe(this.elements.display.seekTooltip)&&0!==this.duration){var n="".concat(this.config.classNames.tooltip,"--visible"),i=function(e){return O(t.elements.display.seekTooltip,n,e)};if(this.touch)i(!1);else{var s=0,o=this.elements.progress.getBoundingClientRect();if(Ue(e))s=100/o.width*(e.pageX-o.left);else{if(!E(this.elements.display.seekTooltip,n))return;s=parseFloat(this.elements.display.seekTooltip.style.left,10)}0>s?s=0:s>100&&(s=100),ht.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*s),this.elements.display.seekTooltip.style.left="".concat(s,"%"),Ue(e)&&["mouseenter","mouseleave"].includes(e.type)&&i("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!qe(this.elements.display.duration)&&this.config.invertTime;ht.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||ht.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return D(this.elements.display.currentTime,!0),void D(this.elements.progress,!0);qe(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=qe(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&ht.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&ht.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),ht.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){D(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var i=this.elements.settings.panels[e],s=null,o=t;if("captions"===e)s=this.currentTrack;else{if(s=Ze(n)?this[e]:n,Ze(s)&&(s=this.config[e]["default"]),!Ze(this.options[e])&&!this.options[e].includes(s))return void this.debug.warn("Unsupported value of '".concat(s,"' for ").concat(e));if(!this.config[e].options.includes(s))return void this.debug.warn("Disabled value of '".concat(s,"' for ").concat(e))}if(qe(o)||(o=i&&i.querySelector('[role="menu"]')),qe(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=ht.getLabel.call(this,e,s);var a=o&&o.querySelector('[value="'.concat(s,'"]'));qe(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?rt("normal",this.config):"".concat(t,"&times;");case"quality":if(Re(t)){var n=rt("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return ot(t);case"captions":return ft.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(qe(this.elements.settings.panels.quality)){var n="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');We(e)&&(this.options.quality=X(e).filter(function(e){return t.config.quality.options.includes(e)}));var s=!Ze(this.options.quality)&&this.options.quality.length>1;if(ht.toggleMenuButton.call(this,n,s),M(i),ht.checkMenu.call(this),s){var o=function(e){var n=rt("qualityBadge.".concat(e),t.config);return n.length?ht.createBadge.call(t,n):null};this.options.quality.sort(function(e,n){var i=t.config.quality.options;return i.indexOf(e)>i.indexOf(n)?1:-1}).forEach(function(e){ht.createMenuItem.call(t,{value:e,list:i,type:n,title:ht.getLabel.call(t,"quality",e),badge:o(e)})}),ht.updateSetting.call(this,n,i)}}},setCaptionsMenu:function(){var e=this;if(qe(this.elements.settings.panels.captions)){var t="captions",n=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=ft.getTracks.call(this),s=Boolean(i.length);if(ht.toggleMenuButton.call(this,t,s),M(n),ht.checkMenu.call(this),s){var o=i.map(function(t,i){return{value:i,checked:e.captions.toggled&&e.currentTrack===i,title:ft.getLabel.call(e,t),badge:t.language&&ht.createBadge.call(e,t.language.toUpperCase()),list:n,type:"language"}});o.unshift({value:-1,checked:!this.captions.toggled,title:rt("disabled",this.config),list:n,type:"language"}),o.forEach(ht.createMenuItem.bind(this)),ht.updateSetting.call(this,t,n)}}},setSpeedMenu:function(){var e=this;if(qe(this.elements.settings.panels.speed)){var t="speed",n=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(function(t){return t>=e.minimumSpeed&&t<=e.maximumSpeed});var i=!Ze(this.options.speed)&&this.options.speed.length>1;ht.toggleMenuButton.call(this,t,i),M(n),ht.checkMenu.call(this),i&&(this.options.speed.forEach(function(i){ht.createMenuItem.call(e,{value:i,list:n,type:t,title:ht.getLabel.call(e,"speed",i)})}),ht.updateSetting.call(this,t,n))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!Ze(e)&&Object.values(e).some(function(e){return!e.hidden});D(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var n=e;qe(n)||(n=Object.values(this.elements.settings.panels).find(function(e){return!e.hidden}));var i=n.querySelector('[role^="menuitem"]');I.call(this,i,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(qe(t)&&qe(n)){var i=t.hidden,s=i;if(Ve(e))s=e;else if(Be(e)&&27===e.which)s=!1;else if(Ue(e)){var o=Fe(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&s)return}n.setAttribute("aria-expanded",s),D(t,!s),O(this.elements.container,this.config.classNames.menu.open,s),s&&Be(e)?ht.focusFirstMenuItem.call(this,null,!0):s||i||I.call(this,n,Be(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var n=t.scrollWidth,i=t.scrollHeight;return x(t),{width:n,height:i}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(qe(i)){var s=i.parentNode,o=Array.from(s.children).find(function(e){return!e.hidden});if(tt.transitions&&!tt.reducedMotion){s.style.width="".concat(o.scrollWidth,"px"),s.style.height="".concat(o.scrollHeight,"px");var a=ht.getMenuSize.call(this,i),r=function l(t){t.target===s&&["width","height"].includes(t.propertyName)&&(s.style.width="",s.style.height="",R.call(e,s,Je,l))};Y.call(this,s,Je,r),s.style.width="".concat(a.width,"px"),s.style.height="".concat(a.height,"px")}D(o,!0),D(i,!1),ht.focusFirstMenuItem.call(this,i,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;qe(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=ht.bindMenuItemShortcuts,i=ht.createButton,s=ht.createProgress,o=ht.createRange,a=ht.createTime,r=ht.setQualityMenu,l=ht.setSpeedMenu,c=ht.showMenuPanel;this.elements.controls=null,We(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=_("div",A(this.config.selectors.controls.wrapper));this.elements.controls=u;var d={"class":"plyr__controls__item"};return X(We(this.config.controls)?this.config.controls:[]).forEach(function(r){if("restart"===r&&u.appendChild(i.call(t,"restart",d)),"rewind"===r&&u.appendChild(i.call(t,"rewind",d)),"play"===r&&u.appendChild(i.call(t,"play",d)),"fast-forward"===r&&u.appendChild(i.call(t,"fast-forward",d)),"progress"===r){var l=_("div",{"class":"".concat(d["class"]," plyr__progress__container")}),h=_("div",A(t.config.selectors.progress));if(h.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),h.appendChild(s.call(t,"buffer")),t.config.tooltips.seek){var f=_("span",{"class":t.config.classNames.tooltip},"00:00");h.appendChild(f),t.elements.display.seekTooltip=f}t.elements.progress=h,l.appendChild(t.elements.progress),u.appendChild(l)}if("current-time"===r&&u.appendChild(a.call(t,"currentTime",d)),"duration"===r&&u.appendChild(a.call(t,"duration",d)),"mute"===r||"volume"===r){var p=t.elements.volume;if(qe(p)&&u.contains(p)||(p=_("div",k({},d,{"class":"".concat(d["class"]," plyr__volume").trim()})),t.elements.volume=p,u.appendChild(p)),"mute"===r&&p.appendChild(i.call(t,"mute")),"volume"===r&&!Ke.isIos){var m={max:1,step:.05,value:t.config.volume};p.appendChild(o.call(t,"volume",k(m,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===r&&u.appendChild(i.call(t,"captions",d)),"settings"===r&&!Ze(t.config.settings)){var g=_("div",k({},d,{"class":"".concat(d["class"]," plyr__menu").trim(),hidden:""}));g.appendChild(i.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=_("div",{"class":"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=_("div"),b=_("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=_("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach(function(i){var s=_("button",k(A(t.config.selectors.buttons.settings),{type:"button","class":"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(t,s,i),Y.call(t,s,"click",function(){c.call(t,i,!1)});var o=_("span",null,rt(i,t.config)),a=_("span",{"class":t.config.classNames.menu.value});a.innerHTML=e[i],o.appendChild(a),s.appendChild(o),w.appendChild(s);var r=_("div",{id:"plyr-settings-".concat(e.id,"-").concat(i),hidden:""}),l=_("button",{type:"button","class":"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});l.appendChild(_("span",{"aria-hidden":!0},rt(i,t.config))),l.appendChild(_("span",{"class":t.config.classNames.hidden},rt("menuBack",t.config))),Y.call(t,r,"keydown",function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))},!1),Y.call(t,l,"click",function(){c.call(t,"home",!1)}),r.appendChild(l),r.appendChild(_("div",{role:"menu"})),y.appendChild(r),t.elements.settings.buttons[i]=s,t.elements.settings.panels[i]=r}),v.appendChild(y),g.appendChild(v),u.appendChild(g),t.elements.settings.popup=v,t.elements.settings.menu=g}if("pip"===r&&tt.pip&&u.appendChild(i.call(t,"pip",d)),"airplay"===r&&tt.airplay&&u.appendChild(i.call(t,"airplay",d)),"download"===r){var T=k({},d,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(T.download="");var S=t.config.urls.download;!Qe(S)&&t.isEmbed&&k(T,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(i.call(t,"download",T))}"fullscreen"===r&&u.appendChild(i.call(t,"fullscreen",d))}),this.isHTML5&&r.call(this,it.getQualityOptions.call(this)),l.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=ht.getIconUrl.call(this);t.cors&&ee(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var i={id:this.id,seektime:this.config.seekTime,title:this.config.title},s=!0;Fe(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),qe(this.config.controls)||je(this.config.controls)?n=this.config.controls:(n=ht.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:ft.getLabel.call(this)}),s=!1);var o,a;if(s&&je(this.config.controls)&&(o=n,Object.entries(i).forEach(function(e){var t=c(e,2),n=t[0],i=t[1];o=st(o,"{".concat(n,"}"),i)}),n=o),je(this.config.selectors.controls.container)&&(a=document.querySelector(this.config.selectors.controls.container)),qe(a)||(a=this.elements.container),a[qe(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),qe(this.elements.controls)||ht.findElements.call(this),!Ze(this.elements.buttons)){var r=function(t){var n=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return E(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];O(t,n,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(function(e){We(e)||ze(e)?Array.from(e).filter(Boolean).forEach(r):r(e)})}if(Ke.isEdge&&b(a),this.config.tooltips.controls){var l=this.config,u=l.classNames,d=l.selectors,h="".concat(d.controls.wrapper," ").concat(d.labels," .").concat(u.hidden),f=H.call(this,h);Array.from(f).forEach(function(t){O(t,e.config.classNames.hidden,!1),O(t,e.config.classNames.tooltip,!0)})}}},ft={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!tt.textTracks)We(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ht.setCaptionsMenu.call(this);else{if(qe(this.elements.captions)||(this.elements.captions=_("div",A(this.config.selectors.captions)),function(e,t){qe(e)&&qe(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),Ke.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach(function(e){var t=e.getAttribute("src"),n=ne(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&K(t,"blob").then(function(t){e.setAttribute("src",window.URL.createObjectURL(t))})["catch"](function(){x(e)})})}var t=X((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(e){return e.split("-")[0]})),n=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===n&&(n=c(t,1)[0]);var i=this.storage.get("captions");if(Ve(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:n,languages:t}),this.isHTML5){var s=this.config.captions.update?"addtrack removetrack":"removetrack";Y.call(this,this.media.textTracks,s,ft.update.bind(this))}setTimeout(ft.update.bind(this),0)}},update:function(){var e=this,t=ft.getTracks.call(this,!0),n=this.captions,i=n.active,s=n.language,o=n.meta,a=n.currentTrackNode,r=Boolean(t.find(function(e){return e.language===s}));this.isHTML5&&this.isVideo&&t.filter(function(e){return!o.get(e)}).forEach(function(t){e.debug.log("Track added",t),o.set(t,{"default":"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),Y.call(e,t,"cuechange",function(){return ft.updateCues.call(e)})}),(r&&this.language!==s||!t.includes(a))&&(ft.setLanguage.call(this,s),ft.toggle.call(this,i&&r)),O(this.elements.container,this.config.classNames.captions.enabled,!Ze(t)),We(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ht.setCaptionsMenu.call(this)},toggle:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,s=this.config.classNames.captions.active,o=Ne(e)?!i:e;if(o!==i){if(n||(this.captions.active=o,this.storage.set({captions:o})),!this.language&&o&&!n){var a=ft.getTracks.call(this),r=ft.findTrack.call(this,[this.captions.language].concat(u(this.captions.languages)),!0);return this.captions.language=r.language,void ft.set.call(this,a.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=o),O(this.elements.container,s,o),this.captions.toggled=o,ht.updateSetting.call(this,"captions"),V.call(this,this.media,o?"captionsenabled":"captionsdisabled")}setTimeout(function(){o&&t.captions.toggled&&(t.captions.currentTrackNode.mode="hidden")})}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=ft.getTracks.call(this);if(-1!==e)if(Re(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var i=n[e],s=i||{},o=s.language;this.captions.currentTrackNode=i,ht.updateSetting.call(this,"captions"),t||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),V.call(this,this.media,"languagechange")}ft.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&ft.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else ft.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(je(e)){var n=e.toLowerCase();this.captions.language=n;var i=ft.getTracks.call(this),s=ft.findTrack.call(this,[n]);ft.set.call(this,i.indexOf(s),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Array.from((this.media||{}).textTracks||[]);return n.filter(function(n){return!e.isHTML5||t||e.captions.meta.has(n)}).filter(function(e){return["captions","subtitles"].includes(e.kind)})},findTrack:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=ft.getTracks.call(this),o=function(e){return Number((n.captions.meta.get(e)||{})["default"])},a=Array.from(s).sort(function(e,t){return o(t)-o(e)});return e.every(function(e){return!(t=a.find(function(t){return t.language===e}))}),t||(i?a[0]:void 0)},getCurrentTrack:function(){return ft.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!Ge(t)&&tt.textTracks&&this.captions.toggled&&(t=ft.getCurrentTrack.call(this)),Ge(t)?Ze(t.label)?Ze(t.language)?rt("enabled",this.config):e.language.toUpperCase():t.label:rt("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(qe(this.elements.captions))if(Ne(e)||Array.isArray(e)){var t=e;if(!t){var n=ft.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map(function(e){return e.getCueAsHTML()}).map(J)}var i=t.map(function(e){return e.trim()}).join("\n");if(i!==this.elements.captions.innerHTML){M(this.elements.captions);var s=_("span",A(this.config.selectors.caption));s.innerHTML=i,this.elements.captions.appendChild(s),V.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},pt={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.4/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{"default":576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},mt="picture-in-picture",gt="inline",vt={html5:"html5",youtube:"youtube",vimeo:"vimeo"},yt="audio",bt="video",wt=function(){},kt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return s(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):wt}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):wt}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):wt}}]),e}(),Tt=function(){function e(t){var i=this;n(this,e),o(this,"onChange",function(){if(i.enabled){var e=i.player.elements.buttons.fullscreen;qe(e)&&(e.pressed=i.active);var t=i.target===i.player.media?i.target:i.player.elements.container;V.call(i.player,t,i.active?"enterfullscreen":"exitfullscreen",!0)}}),o(this,"toggleFallback",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?i.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(i.scrollPosition.x,i.scrollPosition.y),document.body.style.overflow=e?"hidden":"",O(i.target,i.player.config.classNames.fullscreen.fallback,e),Ke.isIos){var t=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var s=je(t.content)&&t.content.includes(n);e?(i.cleanupViewport=!s,s||(t.content+=",".concat(n))):i.cleanupViewport&&(t.content=t.content.split(",").filter(function(e){return e.trim()!==n}).join(","))}i.onChange()}),o(this,"trapFocus",function(e){if(!Ke.isIos&&i.active&&"Tab"===e.key&&9===e.keyCode){var t=document.activeElement,n=H.call(i.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),s=c(n,1)[0],o=n[n.length-1];t!==o||e.shiftKey?t===s&&e.shiftKey&&(o.focus(),e.preventDefault()):(s.focus(),e.preventDefault())}}),o(this,"update",function(){var t;i.enabled?(t=i.forceFallback?"Fallback (forced)":e["native"]?"Native":"Fallback",i.player.debug.log("".concat(t," fullscreen enabled"))):i.player.debug.log("Fullscreen not supported and fallback disabled"),O(i.player.elements.container,i.player.config.classNames.fullscreen.enabled,i.enabled)}),o(this,"enter",function(){i.enabled&&(Ke.isIos&&i.player.config.fullscreen.iosNative?i.player.isVimeo?i.player.embed.requestFullscreen():i.target.webkitEnterFullscreen():!e["native"]||i.forceFallback?i.toggleFallback(!0):i.prefix?Ze(i.prefix)||i.target["".concat(i.prefix,"Request").concat(i.property)]():i.target.requestFullscreen({navigationUI:"hide"}))}),o(this,"exit",function(){if(i.enabled)if(Ke.isIos&&i.player.config.fullscreen.iosNative)i.target.webkitExitFullscreen(),z(i.player.play());else if(!e["native"]||i.forceFallback)i.toggleFallback(!1);else if(i.prefix){if(!Ze(i.prefix)){var t="moz"===i.prefix?"Cancel":"Exit";document["".concat(i.prefix).concat(t).concat(i.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),o(this,"toggle",function(){i.active?i.exit():i.enter()}),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,this.player.elements.fullscreen=t.config.fullscreen.container&&function(e,t){return(Element.prototype.closest||function(){var e=this;do{if(L.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,t.config.fullscreen.container),Y.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){i.onChange()}),Y.call(this.player,this.player.elements.container,"dblclick",function(e){qe(i.player.elements.controls)&&i.player.elements.controls.contains(e.target)||i.player.listeners.proxy(e,i.toggle,"fullscreen")}),Y.call(this,this.player.elements.container,"keydown",function(e){return i.trapFocus(e)}),this.update()}return s(e,[{key:"usingNative",get:function(){return e["native"]&&!this.forceFallback}},{key:"enabled",get:function(){return(e["native"]||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!e["native"]||this.forceFallback)return E(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return Ke.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(Fe(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some(function(t){return!(!Fe(document["".concat(t,"ExitFullscreen")])&&!Fe(document["".concat(t,"CancelFullScreen")])||(e=t,0))}),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}(),St={addStyleHook:function(){O(this.elements.container,this.config.selectors.container.replace(".",""),!0),O(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;return this.listeners.media(),this.supported.ui?(qe(this.elements.controls)||(ht.inject.call(this),this.listeners.controls()),St.toggleNativeControls.call(this),this.isHTML5&&ft.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,ht.updateVolume.call(this),ht.timeUpdate.call(this),St.checkPlaying.call(this),O(this.elements.container,this.config.classNames.pip.supported,tt.pip&&this.isHTML5&&this.isVideo),O(this.elements.container,this.config.classNames.airplay.supported,tt.airplay&&this.isHTML5),O(this.elements.container,this.config.classNames.isIos,Ke.isIos),O(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(function(){V.call(e,e.media,"ready")},0),St.setTitle.call(this),this.poster&&St.setPoster.call(this,this.poster,!1)["catch"](function(){}),this.config.duration&&ht.durationUpdate.call(this),void 0):(this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void St.toggleNativeControls.call(this,!0))},setTitle:function(){var e=rt("play",this.config);if(je(this.config.title)&&!Ze(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(t){t.setAttribute("aria-label",e)}),this.isEmbed){var t=$.call(this,"iframe");if(!qe(t))return;var n=Ze(this.config.title)?"video":this.config.title,i=rt("frameTitle",this.config);t.setAttribute("title",i.replace("{title}",n))}},togglePoster:function(e){O(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),W.call(this).then(function(){return se(e)})["catch"](function(n){throw e===t.poster&&St.togglePoster.call(t,!1),n}).then(function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),St.togglePoster.call(t,!0),e}))},checkPlaying:function(e){var t=this;O(this.elements.container,this.config.classNames.playing,this.playing),O(this.elements.container,this.config.classNames.paused,this.paused),O(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(function(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",rt(t.playing?"pause":"play",t.config))}),Ue(e)&&"timeupdate"===e.type||St.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(function(){O(t.elements.container,t.config.classNames.loading,t.loading),St.toggleControls.call(t)},this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles:function(){var e=this;Object.values(r({},this.media.style)).filter(function(e){return!Ze(e)&&je(e)&&e.startsWith("--plyr")}).forEach(function(t){e.elements.container.style.setProperty(t,e.media.style.getPropertyValue(t)),e.media.style.removeProperty(t)}),Ze(this.media.style)&&this.media.removeAttribute("style")}},_t=function(){function e(t){var i=this;n(this,e),o(this,"firstTouch",function(){var e=i.player,t=e.elements;e.touch=!0,O(t.container,e.config.classNames.isTouch,!0)}),o(this,"setTabFocus",function(e){var t=i.player,n=t.elements;if(clearTimeout(i.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(i.lastKeyDown=e.timeStamp);var s,o=e.timeStamp-i.lastKeyDown<=20;("focus"!==e.type||o)&&(s=t.config.classNames.tabFocus,O(H.call(t,".".concat(s)),s,!1),"focusout"!==e.type&&(i.focusTimer=setTimeout(function(){var e=document.activeElement;n.container.contains(e)&&O(document.activeElement,t.config.classNames.tabFocus,!0)},10)))}}),o(this,"global",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=i.player;t.config.keyboard.global&&N.call(t,window,"keydown keyup",i.handleKey,e,!1),N.call(t,document.body,"click",i.toggleMenu,e),j.call(t,document.body,"touchstart",i.firstTouch),N.call(t,document.body,"keydown focus blur focusout",i.setTabFocus,e,!1,!0)}),o(this,"container",function(){var e=i.player,t=e.config,n=e.elements,s=e.timers;!t.keyboard.global&&t.keyboard.focused&&Y.call(e,n.container,"keydown keyup",i.handleKey,!1),Y.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(t){var i=n.controls;i&&"enterfullscreen"===t.type&&(i.pressed=!1,i.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(St.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(s.controls),s.controls=setTimeout(function(){return St.toggleControls.call(e,!1)},o)});var o=function(t){if(!t)return G.call(e);var i=n.container.getBoundingClientRect(),s=i.width,o=i.height;return G.call(e,"".concat(s,":").concat(o))},a=function(){clearTimeout(s.resized),s.resized=setTimeout(o,50)};Y.call(e,n.container,"enterfullscreen exitfullscreen",function(t){var i=e.fullscreen,s=i.target,r=i.usingNative;if(s===n.container&&(e.isEmbed||!Ze(e.config.ratio))){var l="enterfullscreen"===t.type,u=o(l);u.padding,!function(t,n,i){if(e.isVimeo&&!e.config.vimeo.premium){var s=e.elements.wrapper.firstChild,o=c(t,2)[1],a=c(B.call(e),2),r=a[0],l=a[1];s.style.maxWidth=i?"".concat(o/l*r,"px"):null,s.style.margin=i?"0 auto":null}}(u.ratio,0,l),l&&setTimeout(function(){return b(n.container)},100),r||(l?Y.call(e,window,"resize",a):R.call(e,window,"resize",a))}})}),o(this,"media",function(){var e=i.player,t=e.elements;if(Y.call(e,e.media,"timeupdate seeking seeked",function(t){return ht.timeUpdate.call(e,t)}),Y.call(e,e.media,"durationchange loadeddata loadedmetadata",function(t){return ht.durationUpdate.call(e,t)}),Y.call(e,e.media,"ended",function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())}),Y.call(e,e.media,"progress playing seeking seeked",function(t){return ht.updateProgress.call(e,t)}),Y.call(e,e.media,"volumechange",function(t){return ht.updateVolume.call(e,t)}),Y.call(e,e.media,"playing play pause ended emptied timeupdate",function(t){return St.checkPlaying.call(e,t)}),Y.call(e,e.media,"waiting canplay seeked playing",function(t){return St.checkLoading.call(e,t)}),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var n=$.call(e,".".concat(e.config.classNames.video));if(!qe(n))return;Y.call(e,t.container,"click",function(s){([t.container,n].includes(s.target)||n.contains(s.target))&&(e.touch&&e.config.hideControls||(e.ended?(i.proxy(s,e.restart,"restart"),i.proxy(s,function(){z(e.play())},"play")):i.proxy(s,function(){z(e.togglePlay())},"play")))})}e.supported.ui&&e.config.disableContextMenu&&Y.call(e,t.wrapper,"contextmenu",function(e){e.preventDefault()},!1),Y.call(e,e.media,"volumechange",function(){e.storage.set({volume:e.volume,muted:e.muted})}),Y.call(e,e.media,"ratechange",function(){ht.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})}),Y.call(e,e.media,"qualitychange",function(t){ht.updateSetting.call(e,"quality",null,t.detail.quality)}),Y.call(e,e.media,"ready qualitychange",function(){ht.setDownloadUrl.call(e)});var s=e.config.events.concat(["keyup","keydown"]).join(" ");Y.call(e,e.media,s,function(n){var i=n.detail,s=void 0===i?{}:i;"error"===n.type&&(s=e.media.error),V.call(e,t.container,n.type,!0,s)})}),o(this,"proxy",function(e,t,n){var s=i.player,o=s.config.listeners[n],a=!0;Fe(o)&&(a=o.call(s,e)),!1!==a&&Fe(t)&&t.call(s,e)}),o(this,"bind",function(e,t,n,s){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=i.player,r=a.config.listeners[s],l=Fe(r);Y.call(a,e,t,function(e){return i.proxy(e,n,s)},o&&!l)}),o(this,"controls",function(){var e=i.player,t=e.elements,n=Ke.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach(function(t){i.bind(t,"click",function(){z(e.togglePlay())},"play")}),i.bind(t.buttons.restart,"click",e.restart,"restart"),i.bind(t.buttons.rewind,"click",function(){e.lastSeekTime=Date.now(),e.rewind()},"rewind"),i.bind(t.buttons.fastForward,"click",function(){e.lastSeekTime=Date.now(),e.forward()},"fastForward"),i.bind(t.buttons.mute,"click",function(){e.muted=!e.muted},"mute"),i.bind(t.buttons.captions,"click",function(){return e.toggleCaptions()}),i.bind(t.buttons.download,"click",function(){V.call(e,e.media,"download")},"download"),i.bind(t.buttons.fullscreen,"click",function(){e.fullscreen.toggle()},"fullscreen"),i.bind(t.buttons.pip,"click",function(){e.pip="toggle"},"pip"),i.bind(t.buttons.airplay,"click",e.airplay,"airplay"),i.bind(t.buttons.settings,"click",function(t){t.stopPropagation(),t.preventDefault(),ht.toggleMenu.call(e,t)},null,!1),i.bind(t.buttons.settings,"keyup",function(t){var n=t.which;[13,32].includes(n)&&(13!==n?(t.preventDefault(),t.stopPropagation(),ht.toggleMenu.call(e,t)):ht.focusFirstMenuItem.call(e,null,!0))},null,!1),i.bind(t.settings.menu,"keydown",function(t){27===t.which&&ht.toggleMenu.call(e,t)}),i.bind(t.inputs.seek,"mousedown mousemove",function(e){var n=t.progress.getBoundingClientRect(),i=100/n.width*(e.pageX-n.left);e.currentTarget.setAttribute("seek-value",i)}),i.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(t){var n=t.currentTarget,i=t.keyCode?t.keyCode:t.which,s="play-on-seeked";if(!Be(t)||39===i||37===i){e.lastSeekTime=Date.now();var o=n.hasAttribute(s),a=["mouseup","touchend","keyup"].includes(t.type);o&&a?(n.removeAttribute(s),z(e.play())):!a&&e.playing&&(n.setAttribute(s,""),e.pause())}}),Ke.isIos){var s=H.call(e,'input[type="range"]');Array.from(s).forEach(function(e){return i.bind(e,n,function(e){return b(e.target)})})}i.bind(t.inputs.seek,n,function(t){var n=t.currentTarget,i=n.getAttribute("seek-value");Ze(i)&&(i=n.value),n.removeAttribute("seek-value"),e.currentTime=i/n.max*e.duration},"seek"),i.bind(t.progress,"mouseenter mouseleave mousemove",function(t){return ht.updateSeekTooltip.call(e,t)}),i.bind(t.progress,"mousemove touchmove",function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startMove(t)}),i.bind(t.progress,"mouseleave touchend click",function(){var t=e.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)}),i.bind(t.progress,"mousedown touchstart",function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startScrubbing(t)}),i.bind(t.progress,"mouseup touchend",function(t){var n=e.previewThumbnails;n&&n.loaded&&n.endScrubbing(t)}),Ke.isWebkit&&Array.from(H.call(e,'input[type="range"]')).forEach(function(t){i.bind(t,"input",function(t){return ht.updateRangeFill.call(e,t.target)})}),e.config.toggleInvert&&!qe(t.display.duration)&&i.bind(t.display.currentTime,"click",function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,ht.timeUpdate.call(e))}),i.bind(t.inputs.volume,n,function(t){e.volume=t.target.value},"volume"),i.bind(t.controls,"mouseenter mouseleave",function(n){t.controls.hover=!e.touch&&"mouseenter"===n.type}),t.fullscreen&&Array.from(t.fullscreen.children).filter(function(e){return!e.contains(t.container)}).forEach(function(n){i.bind(n,"mouseenter mouseleave",function(n){t.controls.hover=!e.touch&&"mouseenter"===n.type})}),i.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",function(e){t.controls.pressed=["mousedown","touchstart"].includes(e.type)}),i.bind(t.controls,"focusin",function(){var n=e.config,s=e.timers;O(t.controls,n.classNames.noTransition,!0),St.toggleControls.call(e,!0),setTimeout(function(){O(t.controls,n.classNames.noTransition,!1)},0);var o=i.touch?3e3:4e3;clearTimeout(s.controls),s.controls=setTimeout(function(){return St.toggleControls.call(e,!1)},o)}),i.bind(t.inputs.volume,"wheel",function(t){var n=t.webkitDirectionInvertedFromDevice,i=c([t.deltaX,-t.deltaY].map(function(e){return n?-e:e}),2),s=i[0],o=i[1],a=Math.sign(Math.abs(s)>Math.abs(o)?s:o);e.increaseVolume(a/50);var r=e.media.volume;(1===a&&1>r||-1===a&&r>0)&&t.preventDefault()},"volume",!1)}),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return s(e,[{key:"handleKey",value:function(e){var t=this.player,n=t.elements,i=e.keyCode?e.keyCode:e.which,s="keydown"===e.type,o=s&&i===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&Re(i))if(s){var a=document.activeElement;if(qe(a)){var r=t.config.selectors.editable;if(a!==n.inputs.seek&&L(a,r))return;if(32===e.which&&L(a,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(e.preventDefault(),e.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(t.currentTime=t.duration/10*(i-48));break;case 32:case 75:o||z(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:o||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:o||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===i&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(e){ht.toggleMenu.call(this.player,e)}}]),e}();"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self&&self;var Ct,xt=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e,t){e.exports=function(){function e(e,t){e=e.push?e:[e];var n,i,s,o=[],a=e.length,r=a;for(n=function(e,n){n.length&&o.push(e),--r||t(o)};a--;)i=e[a],(s=l[i])?n(i,s):(c[i]=c[i]||[]).push(n)}function t(e,t){if(e){var n=c[e];if(l[e]=t,n)for(;n.length;)n[0](e,t),n.splice(0,1)}}function n(e,t){e.call&&(e={success:e}),t.length?(e.error||a)(t):(e.success||a)(e)}function i(e,t,n,s){var o,r,l=document,c=n.async,u=(n.numRetries||0)+1,d=n.before||a,h=e.replace(/[\?|#].*$/,""),f=e.replace(/^(css|img)!/,"");s=s||0,/(^css!|\.css$)/.test(h)?((r=l.createElement("link")).rel="stylesheet",r.href=f,(o="hideFocus" in r)&&r.relList&&(o=0,r.rel="preload",r.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(r=l.createElement("img")).src=f:((r=l.createElement("script")).src=e,r.async=void 0===c||c),r.onload=r.onerror=r.onbeforeload=function(a){var l=a.type[0];if(o)try{r.sheet.cssText.length||(l="e")}catch(a){18!=a.code&&(l="e")}if("e"==l){if((s+=1)<u)return i(e,t,n,s)}else if("preload"==r.rel&&"style"==r.as)return r.rel="stylesheet";t(e,l,a.defaultPrevented)},!1!==d(e,r)&&l.head.appendChild(r)}function s(e,t,n){var s,o,a=(e=e.push?e:[e]).length,r=a,l=[];for(s=function(e,n,i){if("e"==n&&l.push(e),"b"==n){if(!i)return;l.push(e)}--a||t(l)},o=0;r>o;o++)i(e[o],s,n)}function o(e,i,o){function a(i,o){s(e,function(e){n(c,e),i&&n({success:i,error:o},e),t(l,e)},c)}var l,c;if(i&&i.trim&&(l=i),c=(l?o:i)||{},l){if(l in r)throw"LoadJS";r[l]=!0}return c.returnPromise?new Promise(a):void a()}var a=function(){},r={},l={},c={};return o.ready=function(t,i){return e(t,function(e){n(i,e)}),o},o.done=function(e){t(e,[])},o.reset=function(){r={},l={},c={}},o.isDefined=function(e){return e in r},o}()}),Mt={setup:function(){var e=this;O(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,G.call(e),Ye(window.Vimeo)?Mt.ready.call(e):oe(e.config.urls.vimeo.sdk).then(function(){Mt.ready.call(e)})["catch"](function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)})},ready:function(){var e=this,t=this,n=t.config.vimeo,i=n.premium,s=n.referrerPolicy,o=l(n,["premium","referrerPolicy"]);i&&Object.assign(o,{controls:!1,sidedock:!1});var a=ie(r({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},o)),u=t.media.getAttribute("src");Ze(u)&&(u=t.media.getAttribute(t.config.attributes.embed.id));var d,h=Ze(d=u)?null:Re(Number(d))?d:d.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:d,f=_("iframe"),p=Q(t.config.urls.vimeo.iframe,h,a);if(f.setAttribute("src",p),f.setAttribute("allowfullscreen",""),f.setAttribute("allow",["autoplay","fullscreen","picture-in-picture"].join("; ")),Ze(s)||f.setAttribute("referrerPolicy",s),i||!n.customControls)f.setAttribute("data-poster",t.poster),t.media=P(f,t.media);else{var m=_("div",{"class":t.config.classNames.embedContainer,"data-poster":t.poster});m.appendChild(f),t.media=P(m,t.media)}n.customControls||K(Q(t.config.urls.vimeo.api,p)).then(function(e){!Ze(e)&&e.thumbnail_url&&St.setPoster.call(t,e.thumbnail_url)["catch"](function(){})}),t.embed=new window.Vimeo.Player(f,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return ae.call(t,!0),t.embed.play()},t.media.pause=function(){return ae.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var g=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return g},set:function(e){var n=t.embed,i=t.media,s=t.paused,o=t.volume,a=s&&!n.hasPlayed;i.seeking=!0,V.call(t,i,"seeking"),Promise.resolve(a&&n.setVolume(0)).then(function(){return n.setCurrentTime(e)}).then(function(){return a&&n.pause()}).then(function(){return a&&n.setVolume(o)})["catch"](function(){})}});var v=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return v},set:function(e){t.embed.setPlaybackRate(e).then(function(){v=e,V.call(t,t.media,"ratechange")})["catch"](function(){t.options.speed=[1]})}});var y=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return y},set:function(e){t.embed.setVolume(e).then(function(){y=e,V.call(t,t.media,"volumechange")})}});var b=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return b},set:function(e){var n=!!Ve(e)&&e;t.embed.setVolume(n?0:t.config.volume).then(function(){b=n,V.call(t,t.media,"volumechange")})}});var w,k=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return k},set:function(e){var n=Ve(e)?e:t.config.loop.active;t.embed.setLoop(n).then(function(){k=n})}}),t.embed.getVideoUrl().then(function(e){w=e,ht.setDownloadUrl.call(t)})["catch"](function(t){e.debug.warn(t)}),Object.defineProperty(t.media,"currentSrc",{get:function(){return w}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then(function(n){var i=c(n,2),s=i[0],o=i[1];t.embed.ratio=[s,o],G.call(e)}),t.embed.setAutopause(t.config.autopause).then(function(e){t.config.autopause=e}),t.embed.getVideoTitle().then(function(n){t.config.title=n,St.setTitle.call(e)}),t.embed.getCurrentTime().then(function(e){g=e,V.call(t,t.media,"timeupdate")}),t.embed.getDuration().then(function(e){t.media.duration=e,V.call(t,t.media,"durationchange")}),t.embed.getTextTracks().then(function(e){t.media.textTracks=e,ft.setup.call(t)}),t.embed.on("cuechange",function(e){var n=e.cues,i=(void 0===n?[]:n).map(function(e){return function(e){var t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text)});ft.updateCues.call(t,i)}),t.embed.on("loaded",function(){t.embed.getPaused().then(function(e){ae.call(t,!e),e||V.call(t,t.media,"playing")}),qe(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)}),t.embed.on("bufferstart",function(){V.call(t,t.media,"waiting")}),t.embed.on("bufferend",function(){V.call(t,t.media,"playing")}),t.embed.on("play",function(){ae.call(t,!0),V.call(t,t.media,"playing")}),t.embed.on("pause",function(){ae.call(t,!1)}),t.embed.on("timeupdate",function(e){t.media.seeking=!1,g=e.seconds,V.call(t,t.media,"timeupdate")}),t.embed.on("progress",function(e){t.media.buffered=e.percent,V.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&V.call(t,t.media,"canplaythrough"),t.embed.getDuration().then(function(e){e!==t.media.duration&&(t.media.duration=e,V.call(t,t.media,"durationchange"))})}),t.embed.on("seeked",function(){t.media.seeking=!1,V.call(t,t.media,"seeked")}),t.embed.on("ended",function(){t.media.paused=!0,V.call(t,t.media,"ended")}),t.embed.on("error",function(e){t.media.error=e,V.call(t,t.media,"error")}),n.customControls&&setTimeout(function(){return St.build.call(t)},0)}},Pt={setup:function(){var e=this;if(O(this.elements.wrapper,this.config.classNames.embed,!0),Ye(window.YT)&&Fe(window.YT.Player))Pt.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){Fe(t)&&t(),Pt.ready.call(e)},oe(this.config.urls.youtube.sdk)["catch"](function(t){e.debug.warn("YouTube API failed to load",t)})}},getTitle:function(e){var t=this;K(Q(this.config.urls.youtube.api,e)).then(function(e){if(Ye(e)){var n=e.title,i=e.height,s=e.width;t.config.title=n,St.setTitle.call(t),t.embed.ratio=[s,i]}G.call(t)})["catch"](function(){G.call(t)})},ready:function(){var e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(Ze(n)||!n.startsWith("youtube-")){var i=e.media.getAttribute("src");Ze(i)&&(i=e.media.getAttribute(this.config.attributes.embed.id));var s,o,a=Ze(s=i)?null:s.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:s,r=_("div",{id:(o=e.provider,"".concat(o,"-").concat(Math.floor(1e4*Math.random()))),"data-poster":t.customControls?e.poster:void 0});if(e.media=P(r,e.media),t.customControls){var l=function(e){return"https://i.ytimg.com/vi/".concat(a,"/").concat(e,"default.jpg")};se(l("maxres"),121)["catch"](function(){return se(l("sd"),121)})["catch"](function(){return se(l("hq"))}).then(function(t){return St.setPoster.call(e,t.src)}).then(function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})["catch"](function(){})}e.embed=new window.YT.Player(e.media,{videoId:a,host:le(t),playerVars:k({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError:function(t){if(!e.media.error){var n=t.data,i={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";e.media.error={code:n,message:i},V.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),V.call(e,e.media,"ratechange")},onReady:function(n){if(!Fe(e.media.play)){var i=n.target;Pt.getTitle.call(e,a),e.media.play=function(){re.call(e,!0),i.playVideo()},e.media.pause=function(){re.call(e,!1),i.pauseVideo()},e.media.stop=function(){i.stopVideo()},e.media.duration=i.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(i.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,V.call(e,e.media,"seeking"),i.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return i.getPlaybackRate()},set:function(e){i.setPlaybackRate(e)}});var s=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return s},set:function(t){s=t,i.setVolume(100*s),V.call(e,e.media,"volumechange")}});var o=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return o},set:function(t){var n=Ve(t)?t:o;o=n,i[n?"mute":"unMute"](),i.setVolume(100*s),V.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return i.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var r=i.getAvailablePlaybackRates();e.options.speed=r.filter(function(t){return e.config.speed.options.includes(t)}),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),V.call(e,e.media,"timeupdate"),V.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(function(){e.media.buffered=i.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&V.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),V.call(e,e.media,"canplaythrough"))},200),t.customControls&&setTimeout(function(){return St.build.call(e)},50)}},onStateChange:function(n){var i=n.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(n.data)&&(e.media.seeking=!1,V.call(e,e.media,"seeked")),n.data){case-1:V.call(e,e.media,"timeupdate"),e.media.buffered=i.getVideoLoadedFraction(),V.call(e,e.media,"progress");break;case 0:re.call(e,!1),e.media.loop?(i.stopVideo(),i.playVideo()):V.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(re.call(e,!0),V.call(e,e.media,"playing"),e.timers.playing=setInterval(function(){V.call(e,e.media,"timeupdate")},50),e.media.duration!==i.getDuration()&&(e.media.duration=i.getDuration(),V.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),re.call(e,!1);break;case 3:V.call(e,e.media,"waiting")}V.call(e,e.elements.container,"statechange",!1,{code:n.data})}}})}}},At={setup:function(){this.media?(O(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),O(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&O(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=_("div",{"class":this.config.classNames.video}),T(this.media,this.elements.wrapper),this.elements.poster=_("div",{"class":this.config.classNames.poster,hidden:""}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?it.setup.call(this):this.isYouTube?Pt.setup.call(this):this.isVimeo&&Mt.setup.call(this)):this.debug.warn("No media element found!")}},Dt=function(){function e(t){var i=this;n(this,e),o(this,"load",function(){i.enabled&&(Ye(window.google)&&Ye(window.google.ima)?i.ready():oe(i.player.config.urls.googleIMA.sdk).then(function(){i.ready()})["catch"](function(){i.trigger("error",new Error("Google IMA SDK failed to load"))}))}),o(this,"ready",function(){var e;i.enabled||((e=i).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),i.startSafetyTimer(12e3,"ready()"),i.managerPromise.then(function(){i.clearSafetyTimer("onAdsManagerLoaded()")}),i.listeners(),i.setupIMA()}),o(this,"setupIMA",function(){i.elements.container=_("div",{"class":i.player.config.classNames.ads}),i.player.elements.container.appendChild(i.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(i.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(i.player.config.playsinline),i.elements.displayContainer=new google.ima.AdDisplayContainer(i.elements.container,i.player.media),i.loader=new google.ima.AdsLoader(i.elements.displayContainer),i.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(e){return i.onAdsManagerLoaded(e)},!1),i.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return i.onAdError(e)},!1),i.requestAds()}),o(this,"requestAds",function(){var e=i.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=i.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!i.player.muted),i.loader.requestAds(t)}catch(e){i.onAdError(e)}}),o(this,"pollCountdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return clearInterval(i.countdownTimer),void i.elements.container.removeAttribute("data-badge-text");var t=function(){var e=te(Math.max(i.manager.getRemainingTime(),0)),t="".concat(rt("advertisement",i.player.config)," - ").concat(e);i.elements.container.setAttribute("data-badge-text",t)};i.countdownTimer=setInterval(t,100)}),o(this,"onAdsManagerLoaded",function(e){if(i.enabled){var t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,i.manager=e.getAdsManager(i.player,t),i.cuePoints=i.manager.getCuePoints(),i.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return i.onAdError(e)}),Object.keys(google.ima.AdEvent.Type).forEach(function(e){i.manager.addEventListener(google.ima.AdEvent.Type[e],function(e){return i.onAdEvent(e)})}),i.trigger("loaded")}}),o(this,"addCuePoints",function(){Ze(i.cuePoints)||i.cuePoints.forEach(function(e){if(0!==e&&-1!==e&&e<i.player.duration){var t=i.player.elements.progress;if(qe(t)){var n=100/i.player.duration*e,s=_("span",{"class":i.player.config.classNames.cues});s.style.left="".concat(n.toString(),"%"),t.appendChild(s)}}})}),o(this,"onAdEvent",function(e){var t=i.player.elements.container,n=e.getAd(),s=e.getAdData();switch(function(e){V.call(i.player,i.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:i.trigger("loaded"),i.pollCountdown(!0),n.isLinear()||(n.width=t.offsetWidth,n.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:i.manager.setVolume(i.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:i.player.ended?i.loadAds():i.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:i.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:i.pollCountdown(),i.resumeContent();break;case google.ima.AdEvent.Type.LOG:s.adError&&i.player.debug.warn("Non-fatal ad error: ".concat(s.adError.getMessage()))}}),o(this,"onAdError",function(e){i.cancel(),i.player.debug.warn("Ads error",e)}),o(this,"listeners",function(){var e,t=i.player.elements.container;i.player.on("canplay",function(){i.addCuePoints()}),i.player.on("ended",function(){i.loader.contentComplete()}),i.player.on("timeupdate",function(){e=i.player.currentTime}),i.player.on("seeked",function(){var t=i.player.currentTime;Ze(i.cuePoints)||i.cuePoints.forEach(function(n,s){n>e&&t>n&&(i.manager.discardAdBreak(),i.cuePoints.splice(s,1))})}),window.addEventListener("resize",function(){i.manager&&i.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),o(this,"play",function(){i.player.elements.container;i.managerPromise||i.resumeContent(),i.managerPromise.then(function(){i.manager.setVolume(i.player.volume),i.elements.displayContainer.initialize();try{i.initialized||(i.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),i.manager.start()),i.initialized=!0}catch(e){i.onAdError(e)}})["catch"](function(){})}),o(this,"resumeContent",function(){i.elements.container.style.zIndex="",i.playing=!1,z(i.player.media.play())}),o(this,"pauseContent",function(){i.elements.container.style.zIndex=3,i.playing=!0,i.player.media.pause()}),o(this,"cancel",function(){i.initialized&&i.resumeContent(),i.trigger("error"),i.loadAds()}),o(this,"loadAds",function(){i.managerPromise.then(function(){i.manager&&i.manager.destroy(),i.managerPromise=new Promise(function(e){i.on("loaded",e),i.player.debug.log(i.manager)}),i.initialized=!1,i.requestAds()})["catch"](function(){})}),o(this,"trigger",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;t>s;s++)n[s-1]=arguments[s];var o=i.events[e];We(o)&&o.forEach(function(e){Fe(e)&&e.apply(i,n)})}),o(this,"on",function(e,t){return We(i.events[e])||(i.events[e]=[]),i.events[e].push(t),i}),o(this,"startSafetyTimer",function(e,t){i.player.debug.log("Safety timer invoked from: ".concat(t)),i.safetyTimer=setTimeout(function(){i.cancel(),i.clearSafetyTimer("startSafetyTimer()")},e)}),o(this,"clearSafetyTimer",function(e){Ne(i.safetyTimer)||(i.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(i.safetyTimer),i.safetyTimer=null)}),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise(function(e,t){i.on("loaded",e),i.on("error",t)}),this.load()}return s(e,[{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!Ze(e.publisherId)||Qe(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;if(Qe(e.tagUrl))return e.tagUrl;var t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(ie(t))}}]),e}(),Ot=function(e,t){var n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n},Et=function(){function e(t){var i=this;n(this,e),o(this,"load",function(){i.player.elements.display.seekTooltip&&(i.player.elements.display.seekTooltip.hidden=i.enabled),i.enabled&&i.getThumbnails().then(function(){i.enabled&&(i.render(),i.determineContainerAutoSizing(),i.loaded=!0)})}),o(this,"getThumbnails",function(){return new Promise(function(e){var t=i.player.config.previewThumbnails.src;if(Ze(t))throw new Error("Missing previewThumbnails.src config attribute");var n=function(){i.thumbnails.sort(function(e,t){return e.height-t.height}),i.player.debug.log("Preview thumbnails",i.thumbnails),e()};if(Fe(t))t(function(e){i.thumbnails=e,n()});else{var s=(je(t)?[t]:t).map(function(e){return i.getThumbnail(e)});Promise.all(s).then(n)}})}),o(this,"getThumbnail",function(e){return new Promise(function(t){K(e).then(function(n){var s,o,a={frames:(s=n,o=[],s.split(/\r\n\r\n|\n\n|\r\r/).forEach(function(e){var t={};e.split(/\r\n|\n|\r/).forEach(function(e){if(Re(t.startTime)){if(!Ze(e.trim())&&Ze(t.text)){var n=e.trim().split("#xywh="),i=c(n,1);if(t.text=i[0],n[1]){var s=c(n[1].split(","),4);t.x=s[0],t.y=s[1],t.w=s[2],t.h=s[3]}}}else{var o=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);o&&(t.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),t.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}}),t.text&&o.push(t)}),o),height:null,urlPrefix:""};a.frames[0].text.startsWith("/")||a.frames[0].text.startsWith("http://")||a.frames[0].text.startsWith("https://")||(a.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var r=new Image;r.onload=function(){a.height=r.naturalHeight,a.width=r.naturalWidth,i.thumbnails.push(a),t()},r.src=a.urlPrefix+a.frames[0].text})})}),o(this,"startMove",function(e){if(i.loaded&&Ue(e)&&["touchmove","mousemove"].includes(e.type)&&i.player.media.duration){if("touchmove"===e.type)i.seekTime=i.player.media.duration*(i.player.elements.inputs.seek.value/100);else{var t=i.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);i.seekTime=i.player.media.duration*(n/100),i.seekTime<0&&(i.seekTime=0),i.seekTime>i.player.media.duration-1&&(i.seekTime=i.player.media.duration-1),i.mousePosX=e.pageX,i.elements.thumb.time.innerText=te(i.seekTime)}i.showImageAtCurrentTime()}}),o(this,"endMove",function(){i.toggleThumbContainer(!1,!0)}),o(this,"startScrubbing",function(e){(Ne(e.button)||!1===e.button||0===e.button)&&(i.mouseDown=!0,i.player.media.duration&&(i.toggleScrubbingContainer(!0),i.toggleThumbContainer(!1,!0),i.showImageAtCurrentTime()))}),o(this,"endScrubbing",function(){i.mouseDown=!1,Math.ceil(i.lastTime)===Math.ceil(i.player.media.currentTime)?i.toggleScrubbingContainer(!1):j.call(i.player,i.player.media,"timeupdate",function(){i.mouseDown||i.toggleScrubbingContainer(!1)})}),o(this,"listeners",function(){i.player.on("play",function(){i.toggleThumbContainer(!1,!0)}),i.player.on("seeked",function(){i.toggleThumbContainer(!1)}),i.player.on("timeupdate",function(){i.lastTime=i.player.media.currentTime})}),o(this,"render",function(){i.elements.thumb.container=_("div",{"class":i.player.config.classNames.previewThumbnails.thumbContainer}),i.elements.thumb.imageContainer=_("div",{"class":i.player.config.classNames.previewThumbnails.imageContainer}),i.elements.thumb.container.appendChild(i.elements.thumb.imageContainer);var e=_("div",{"class":i.player.config.classNames.previewThumbnails.timeContainer});i.elements.thumb.time=_("span",{},"00:00"),e.appendChild(i.elements.thumb.time),i.elements.thumb.container.appendChild(e),qe(i.player.elements.progress)&&i.player.elements.progress.appendChild(i.elements.thumb.container),i.elements.scrubbing.container=_("div",{"class":i.player.config.classNames.previewThumbnails.scrubbingContainer}),i.player.elements.wrapper.appendChild(i.elements.scrubbing.container)}),o(this,"destroy",function(){i.elements.thumb.container&&i.elements.thumb.container.remove(),i.elements.scrubbing.container&&i.elements.scrubbing.container.remove()}),o(this,"showImageAtCurrentTime",function(){i.mouseDown?i.setScrubbingContainerSize():i.setThumbContainerSizeAndPos();var e=i.thumbnails[0].frames.findIndex(function(e){return i.seekTime>=e.startTime&&i.seekTime<=e.endTime}),t=e>=0,n=0;i.mouseDown||i.toggleThumbContainer(t),t&&(i.thumbnails.forEach(function(t,s){i.loadedImages.includes(t.frames[e].text)&&(n=s)}),e!==i.showingThumb&&(i.showingThumb=e,i.loadImage(n)))}),o(this,"loadImage",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=i.showingThumb,n=i.thumbnails[e],s=n.urlPrefix,o=n.frames[t],a=n.frames[t].text,r=s+a;if(i.currentImageElement&&i.currentImageElement.dataset.filename===a)i.showImage(i.currentImageElement,o,e,t,a,!1),i.currentImageElement.dataset.index=t,i.removeOldImages(i.currentImageElement);else{i.loadingImage&&i.usingSprites&&(i.loadingImage.onload=null);var l=new Image;l.src=r,l.dataset.index=t,l.dataset.filename=a,i.showingThumbFilename=a,i.player.debug.log("Loading image: ".concat(r)),l.onload=function(){return i.showImage(l,o,e,t,a,!0)},i.loadingImage=l,i.removeOldImages(l)}}),o(this,"showImage",function(e,t,n,s,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];i.player.debug.log("Showing thumb: ".concat(o,". num: ").concat(s,". qual: ").concat(n,". newimg: ").concat(a)),i.setImageSizeAndOffset(e,t),a&&(i.currentImageContainer.appendChild(e),i.currentImageElement=e,i.loadedImages.includes(o)||i.loadedImages.push(o)),i.preloadNearby(s,!0).then(i.preloadNearby(s,!1)).then(i.getHigherQuality(n,e,t,o))}),o(this,"removeOldImages",function(e){Array.from(i.currentImageContainer.children).forEach(function(t){if("img"===t.tagName.toLowerCase()){var n=i.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;var s=i.currentImageContainer;setTimeout(function(){s.removeChild(t),i.player.debug.log("Removing thumb: ".concat(t.dataset.filename))},n)}}})}),o(this,"preloadNearby",function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise(function(n){setTimeout(function(){var s=i.thumbnails[0].frames[e].text;if(i.showingThumbFilename===s){var o;o=t?i.thumbnails[0].frames.slice(e):i.thumbnails[0].frames.slice(0,e).reverse();var a=!1;o.forEach(function(e){var t=e.text;if(t!==s&&!i.loadedImages.includes(t)){a=!0,i.player.debug.log("Preloading thumb filename: ".concat(t));var o=i.thumbnails[0].urlPrefix+t,r=new Image;r.src=o,r.onload=function(){i.player.debug.log("Preloaded thumb filename: ".concat(t)),i.loadedImages.includes(t)||i.loadedImages.push(t),n()}}}),a||n()}},300)})}),o(this,"getHigherQuality",function(e,t,n,s){if(e<i.thumbnails.length-1){var o=t.naturalHeight;i.usingSprites&&(o=n.h),o<i.thumbContainerHeight&&setTimeout(function(){i.showingThumbFilename===s&&(i.player.debug.log("Showing higher quality thumb for: ".concat(s)),i.loadImage(e+1))},300)}}),o(this,"toggleThumbContainer",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.player.config.classNames.previewThumbnails.thumbContainerShown;i.elements.thumb.container.classList.toggle(n,e),!e&&t&&(i.showingThumb=null,i.showingThumbFilename=null)}),o(this,"toggleScrubbingContainer",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=i.player.config.classNames.previewThumbnails.scrubbingContainerShown;i.elements.scrubbing.container.classList.toggle(t,e),e||(i.showingThumb=null,i.showingThumbFilename=null)}),o(this,"determineContainerAutoSizing",function(){(i.elements.thumb.imageContainer.clientHeight>20||i.elements.thumb.imageContainer.clientWidth>20)&&(i.sizeSpecifiedInCSS=!0)}),o(this,"setThumbContainerSizeAndPos",function(){if(i.sizeSpecifiedInCSS){if(i.elements.thumb.imageContainer.clientHeight>20&&i.elements.thumb.imageContainer.clientWidth<20){var e=Math.floor(i.elements.thumb.imageContainer.clientHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.width="".concat(e,"px")}else if(i.elements.thumb.imageContainer.clientHeight<20&&i.elements.thumb.imageContainer.clientWidth>20){var t=Math.floor(i.elements.thumb.imageContainer.clientWidth/i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(t,"px")}}else{var n=Math.floor(i.thumbContainerHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(i.thumbContainerHeight,"px"),i.elements.thumb.imageContainer.style.width="".concat(n,"px")}i.setThumbContainerPos()}),o(this,"setThumbContainerPos",function(){var e=i.player.elements.progress.getBoundingClientRect(),t=i.player.elements.container.getBoundingClientRect(),n=i.elements.thumb.container,s=t.left-e.left+10,o=t.right-e.left-n.clientWidth-10,a=i.mousePosX-e.left-n.clientWidth/2;s>a&&(a=s),a>o&&(a=o),n.style.left="".concat(a,"px")}),o(this,"setScrubbingContainerSize",function(){var e=Ot(i.thumbAspectRatio,{width:i.player.media.clientWidth,height:i.player.media.clientHeight}),t=e.width,n=e.height;i.elements.scrubbing.container.style.width="".concat(t,"px"),i.elements.scrubbing.container.style.height="".concat(n,"px")}),o(this,"setImageSizeAndOffset",function(e,t){if(i.usingSprites){var n=i.thumbContainerHeight/t.h;e.style.height="".concat(e.naturalHeight*n,"px"),e.style.width="".concat(e.naturalWidth*n,"px"),e.style.left="-".concat(t.x*n,"px"),e.style.top="-".concat(t.y*n,"px")}}),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return s(e,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?Ot(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),Lt={insertElements:function(e,t){var n=this;je(t)?C(e,this.media,{src:t}):We(t)&&t.forEach(function(t){C(e,n.media,t)})},change:function(e){var t=this;w(e,"sources.length")?(it.cancelRequests.call(this),this.destroy.call(this,function(){t.options.quality=[],x(t.media),t.media=null,qe(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,i=e.type,s=c(n,1)[0],o=s.provider,a=void 0===o?vt.html5:o,r=s.src,l="html5"===a?i:"div",u="html5"===a?{}:{src:r};Object.assign(t,{provider:a,type:i,supported:tt.check(i,a,t.config.playsinline),media:_(l,u)}),t.elements.container.appendChild(t.media),Ve(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),Ze(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),St.addStyleHook.call(t),t.isHTML5&&Lt.insertElements.call(t,"source",n),t.config.title=e.title,At.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&Lt.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&St.build.call(t),t.isHTML5&&t.media.load(),Ze(e.previewThumbnails)||(Object.assign(t.config.previewThumbnails,e.previewThumbnails),t.previewThumbnails&&t.previewThumbnails.loaded&&(t.previewThumbnails.destroy(),t.previewThumbnails=null),t.config.previewThumbnails.enabled&&(t.previewThumbnails=new Et(t))),t.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},Ht=function(){function e(t,i){var s=this;if(n(this,e),o(this,"play",function(){return Fe(s.media.play)?(s.ads&&s.ads.enabled&&s.ads.managerPromise.then(function(){return s.ads.play()})["catch"](function(){return z(s.media.play())}),s.media.play()):null}),o(this,"pause",function(){return s.playing&&Fe(s.media.pause)?s.media.pause():null}),o(this,"togglePlay",function(e){return(Ve(e)?e:!s.playing)?s.play():s.pause()}),o(this,"stop",function(){s.isHTML5?(s.pause(),s.restart()):Fe(s.media.stop)&&s.media.stop()}),o(this,"restart",function(){s.currentTime=0}),o(this,"rewind",function(e){s.currentTime-=Re(e)?e:s.config.seekTime}),o(this,"forward",function(e){s.currentTime+=Re(e)?e:s.config.seekTime}),o(this,"increaseVolume",function(e){var t=s.media.muted?0:s.volume;s.volume=t+(Re(e)?e:0)}),o(this,"decreaseVolume",function(e){s.increaseVolume(-e)}),o(this,"airplay",function(){tt.airplay&&s.media.webkitShowPlaybackTargetPicker()}),o(this,"toggleControls",function(e){if(s.supported.ui&&!s.isAudio){var t=E(s.elements.container,s.config.classNames.hideControls),n=void 0===e?void 0:!e,i=O(s.elements.container,s.config.classNames.hideControls,n);if(i&&We(s.config.controls)&&s.config.controls.includes("settings")&&!Ze(s.config.settings)&&ht.toggleMenu.call(s,!1),i!==t){var o=i?"controlshidden":"controlsshown";V.call(s,s.media,o)}return!i}return!1}),o(this,"on",function(e,t){Y.call(s,s.elements.container,e,t)}),o(this,"once",function(e,t){j.call(s,s.elements.container,e,t)}),o(this,"off",function(e,t){R(s.elements.container,e,t)}),o(this,"destroy",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(s.ready){var n=function(){document.body.style.overflow="",s.embed=null,t?(Object.keys(s.elements).length&&(x(s.elements.buttons.play),x(s.elements.captions),x(s.elements.controls),x(s.elements.wrapper),s.elements.buttons.play=null,s.elements.captions=null,s.elements.controls=null,s.elements.wrapper=null),Fe(e)&&e()):(F.call(s),it.cancelRequests.call(s),P(s.elements.original,s.elements.container),V.call(s,s.elements.original,"destroyed",!0),Fe(e)&&e.call(s.elements.original),s.ready=!1,setTimeout(function(){s.elements=null,s.media=null},200))};s.stop(),clearTimeout(s.timers.loading),clearTimeout(s.timers.controls),clearTimeout(s.timers.resized),s.isHTML5?(St.toggleNativeControls.call(s,!0),n()):s.isYouTube?(clearInterval(s.timers.buffering),clearInterval(s.timers.playing),null!==s.embed&&Fe(s.embed.destroy)&&s.embed.destroy(),n()):s.isVimeo&&(null!==s.embed&&s.embed.unload().then(n),setTimeout(n,200))}}),o(this,"supports",function(e){return tt.mime.call(s,e)}),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=tt.touch,this.media=t,je(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||ze(this.media)||We(this.media))&&(this.media=this.media[0]),this.config=k({},pt,e.defaults,i||{},function(){try{return JSON.parse(s.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new kt(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",tt),!Ne(this.media)&&qe(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(tt.check().api){var a=this.media.cloneNode(!0);a.autoplay=!1,this.elements.original=a;var r=this.media.tagName.toLowerCase(),l=null,c=null;switch(r){case"div":if(l=this.media.querySelector("iframe"),qe(l)){if(c=ne(l.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?vt.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?vt.vimeo:null}(c.toString()),this.elements.container=this.media,this.media=l,this.elements.container.className="",c.search.length){var u=["1","true"];u.includes(c.searchParams.get("autoplay"))&&(this.config.autoplay=!0),u.includes(c.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=u.includes(c.searchParams.get("playsinline")),this.config.youtube.hl=c.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(Ze(this.provider)||!Object.values(vt).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=bt;break;case"video":case"audio":this.type=r,this.provider=vt.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=tt.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new _t(this),this.storage=new lt(this),this.media.plyr=this,qe(this.elements.container)||(this.elements.container=_("div",{tabindex:0}),T(this.media,this.elements.container)),St.migrateStyles.call(this),St.addStyleHook.call(this),At.setup.call(this),this.config.debug&&Y.call(this,this.elements.container,this.config.events.join(" "),function(e){s.debug.log("event: ".concat(e.type))}),this.fullscreen=new Tt(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&St.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Dt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",function(){return z(s.play())}),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Et(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return s(e,[{key:"toggleCaptions",value:function(e){ft.toggle.call(this,e,!1)}},{key:"isHTML5",get:function(){return this.provider===vt.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===vt.youtube}},{key:"isVimeo",get:function(){return this.provider===vt.vimeo}},{key:"isVideo",get:function(){return this.type===bt}},{key:"isAudio",get:function(){return this.type===yt}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(e){if(this.duration){var t=Re(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var e=this.media.buffered;return Re(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=Re(t)&&t!==1/0?t:0;return e||n}},{key:"volume",set:function(e){var t=e;je(t)&&(t=Number(t)),Re(t)||(t=this.storage.get("volume")),Re(t)||(t=this.config.volume),t>1&&(t=1),0>t&&(t=0),this.config.volume=t,this.media.volume=t,!Ze(e)&&this.muted&&t>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){var t=e;Ve(t)||(t=this.storage.get("muted")),Ve(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",set:function(e){var t=this,n=null;Re(e)&&(n=e),Re(n)||(n=this.storage.get("speed")),Re(n)||(n=this.config.speed.selected);var i=this.minimumSpeed,s=this.maximumSpeed;n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),n)}(n,i,s),this.config.speed.selected=n,setTimeout(function(){t.media.playbackRate=n},0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,u(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,u(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(e){var t=this.config.quality,n=this.options.quality;if(n.length){var i=[!Ze(e)&&Number(e),this.storage.get("quality"),t.selected,t["default"]].find(Re),s=!0;if(!n.includes(i)){var o=function(e,t){return We(e)&&e.length?e.reduce(function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}):null}(n,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(o," instead")),i=o,s=!1}t.selected=i,this.media.quality=i,s&&this.storage.set({quality:i})}},get:function(){return this.media.quality}},{key:"loop",set:function(e){var t=Ve(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){Lt.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return Qe(e)?e:this.source},set:function(e){Qe(e)&&(this.config.urls.download=e,ht.setDownloadUrl.call(this))}},{key:"poster",set:function(e){this.isVideo?St.setPoster.call(this,e,!1)["catch"](function(){}):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=U(B.call(this));return We(e)?e.join(":"):e},set:function(e){this.isVideo?je(e)&&q(e)?(this.config.ratio=e,G.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",set:function(e){var t=Ve(e)?e:this.config.autoplay;this.config.autoplay=t},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){ft.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1}},{key:"language",set:function(e){ft.setLanguage.call(this,e,!1)},get:function(){return(ft.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){if(tt.pip){var t=Ve(e)?e:!this.pip;Fe(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?mt:gt),Fe(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}},get:function(){return tt.pip?Ze(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===mt:null}}],[{key:"supported",value:function(e,t,n){return tt.check(e,t,n)}},{key:"loadSprite",value:function(e,t){return ee(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return je(t)?i=Array.from(document.querySelectorAll(t)):ze(t)?i=Array.from(t):We(t)&&(i=t.filter(qe)),Ze(i)?null:i.map(function(t){return new e(t,n)})}}]),e}();return Ht.defaults=(Ct=pt,JSON.parse(JSON.stringify(Ct))),Ht})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,n){!function(e,t,n,i){"use strict";var s=t.Slick||{};s=function(){function t(t,s){var o,a=this;a.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},a.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(a,a.initials),a.activeBreakpoint=null,a.animType=null,a.animProp=null,a.breakpoints=[],a.breakpointSettings=[],a.cssTransitions=!1,a.focussed=!1,a.interrupted=!1,a.hidden="hidden",a.paused=!0,a.positionProp=null,a.respondTo=null,a.rowCount=1,a.shouldClick=!0,a.$slider=e(t),a.$slidesCache=null,a.transformType=null,a.transitionType=null,a.visibilityChange="visibilitychange",a.windowWidth=0,a.windowTimer=null,o=e(t).data("slick")||{},a.options=e.extend({},a.defaults,s,o),a.currentSlide=a.options.initialSlide,a.originalSettings=a.options,"undefined"!=typeof n.mozHidden?(a.hidden="mozHidden",a.visibilityChange="mozvisibilitychange"):"undefined"!=typeof n.webkitHidden&&(a.hidden="webkitHidden",a.visibilityChange="webkitvisibilitychange"),a.autoPlay=e.proxy(a.autoPlay,a),a.autoPlayClear=e.proxy(a.autoPlayClear,a),a.autoPlayIterator=e.proxy(a.autoPlayIterator,a),a.changeSlide=e.proxy(a.changeSlide,a),a.clickHandler=e.proxy(a.clickHandler,a),a.selectHandler=e.proxy(a.selectHandler,a),a.setPosition=e.proxy(a.setPosition,a),a.swipeHandler=e.proxy(a.swipeHandler,a),a.dragHandler=e.proxy(a.dragHandler,a),a.keyHandler=e.proxy(a.keyHandler,a),a.instanceUid=i++,a.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,a.registerBreakpoints(),a.init(!0)}var i=0;return t}(),s.prototype.activateADA=function(){var e=this;e.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},s.prototype.addSlide=s.prototype.slickAdd=function(t,n,i){var s=this;if("boolean"==typeof n)i=n,n=null;else if(0>n||n>=s.slideCount)return!1;s.unload(),"number"==typeof n?0===n&&0===s.$slides.length?e(t).appendTo(s.$slideTrack):i?e(t).insertBefore(s.$slides.eq(n)):e(t).insertAfter(s.$slides.eq(n)):i===!0?e(t).prependTo(s.$slideTrack):e(t).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(t,n){e(n).attr("data-slick-index",t)}),s.$slidesCache=s.$slides,s.reinit()},s.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},s.prototype.animateSlide=function(t,n){var i={},s=this;s.animateHeight(),s.options.rtl===!0&&s.options.vertical===!1&&(t=-t),s.transformsEnabled===!1?s.options.vertical===!1?s.$slideTrack.animate({left:t},s.options.speed,s.options.easing,n):s.$slideTrack.animate({top:t},s.options.speed,s.options.easing,n):s.cssTransitions===!1?(s.options.rtl===!0&&(s.currentLeft=-s.currentLeft),e({animStart:s.currentLeft}).animate({animStart:t},{duration:s.options.speed,easing:s.options.easing,step:function(e){e=Math.ceil(e),s.options.vertical===!1?(i[s.animType]="translate("+e+"px, 0px)",s.$slideTrack.css(i)):(i[s.animType]="translate(0px,"+e+"px)",s.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(s.applyTransition(),t=Math.ceil(t),i[s.animType]=s.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",s.$slideTrack.css(i),n&&setTimeout(function(){s.disableTransition(),n.call()},s.options.speed))},s.prototype.getNavTarget=function(){var t=this,n=t.options.asNavFor;return n&&null!==n&&(n=e(n).not(t.$slider)),n},s.prototype.asNavFor=function(t){var n=this,i=n.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)})},s.prototype.applyTransition=function(e){var t=this,n={};n[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase,t.options.fade===!1?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},s.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},s.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},s.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(e.options.infinite===!1&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1===0&&(e.direction=1))),e.slideHandler(t))},s.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},s.prototype.buildDots=function(){var t,n,i=this;if(i.options.dots===!0&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),n=e("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)n.append(e("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=n.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},s.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.options.draggable===!0&&t.$list.addClass("draggable")},s.prototype.buildRows=function(){var e,t,i,s,o,a,r,l=this;if(s=n.createDocumentFragment(),a=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,o=Math.ceil(a.length/r),e=0;o>e;e++){var c=n.createElement("div");for(t=0;t<l.options.rows;t++){var u=n.createElement("div");for(i=0;i<l.options.slidesPerRow;i++){var d=e*r+(t*l.options.slidesPerRow+i);a.get(d)&&u.appendChild(a.get(d))}c.appendChild(u)}s.appendChild(c)}l.$slider.empty().append(s),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},s.prototype.checkResponsive=function(n,i){var s,o,a,r=this,l=!1,c=r.$slider.width(),u=t.innerWidth||e(t).width();if("window"===r.respondTo?a=u:"slider"===r.respondTo?a=c:"min"===r.respondTo&&(a=Math.min(u,c)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){o=null;for(s in r.breakpoints)r.breakpoints.hasOwnProperty(s)&&(r.originalSettings.mobileFirst===!1?a<r.breakpoints[s]&&(o=r.breakpoints[s]):a>r.breakpoints[s]&&(o=r.breakpoints[s]));null!==o?null!==r.activeBreakpoint?(o!==r.activeBreakpoint||i)&&(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[o]),n===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(n)),l=o):(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[o]),n===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(n)),l=o):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,n===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(n),l=o),n||l===!1||r.$slider.trigger("breakpoint",[r,l])}},s.prototype.changeSlide=function(t,n){var i,s,o,a=this,r=e(t.currentTarget);switch(r.is("a")&&t.preventDefault(),r.is("li")||(r=r.closest("li")),o=a.slideCount%a.options.slidesToScroll!==0,i=o?0:(a.slideCount-a.currentSlide)%a.options.slidesToScroll,t.data.message){case"previous":s=0===i?a.options.slidesToScroll:a.options.slidesToShow-i,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide-s,!1,n);break;case"next":s=0===i?a.options.slidesToScroll:i,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide+s,!1,n);break;case"index":var l=0===t.data.index?0:t.data.index||r.index()*a.options.slidesToScroll;a.slideHandler(a.checkNavigable(l),!1,n),r.children().trigger("focus");break;default:return}},s.prototype.checkNavigable=function(e){var t,n,i=this;if(t=i.getNavigableIndexes(),n=0,e>t[t.length-1])e=t[t.length-1];else for(var s in t){if(e<t[s]){e=n;break}n=t[s]}return e},s.prototype.cleanUpEvents=function(){var i=this;i.options.dots&&null!==i.$dots&&(e("li",i.$dots).off("click.slick",i.changeSlide).off("mouseenter.slick",e.proxy(i.interrupt,i,!0)).off("mouseleave.slick",e.proxy(i.interrupt,i,!1)),i.options.accessibility===!0&&i.$dots.off("keydown.slick",i.keyHandler)),i.$slider.off("focus.slick blur.slick"),i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow&&i.$prevArrow.off("click.slick",i.changeSlide),i.$nextArrow&&i.$nextArrow.off("click.slick",i.changeSlide),i.options.accessibility===!0&&(i.$prevArrow&&i.$prevArrow.off("keydown.slick",i.keyHandler),i.$nextArrow&&i.$nextArrow.off("keydown.slick",i.keyHandler))),i.$list.off("touchstart.slick mousedown.slick",i.swipeHandler),i.$list.off("touchmove.slick mousemove.slick",i.swipeHandler),i.$list.off("touchend.slick mouseup.slick",i.swipeHandler),i.$list.off("touchcancel.slick mouseleave.slick",i.swipeHandler),i.$list.off("click.slick",i.clickHandler),e(n).off(i.visibilityChange,i.visibility),i.cleanUpSlideEvents(),i.options.accessibility===!0&&i.$list.off("keydown.slick",i.keyHandler),i.options.focusOnSelect===!0&&e(i.$slideTrack).children().off("click.slick",i.selectHandler),e(t).off("orientationchange.slick.slick-"+i.instanceUid,i.orientationChange),e(t).off("resize.slick.slick-"+i.instanceUid,i.resize),e("[draggable!=true]",i.$slideTrack).off("dragstart",i.preventDefault),e(t).off("load.slick.slick-"+i.instanceUid,i.setPosition)},s.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},s.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&(e=t.$slides.children().children(),e.removeAttr("style"),t.$slider.empty().append(e))},s.prototype.clickHandler=function(e){var t=this;t.shouldClick===!1&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},s.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},s.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",t.options.fade===!1?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},s.prototype.fadeSlide=function(e,t){var n=this;n.cssTransitions===!1?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},s.prototype.fadeSlideOut=function(e){var t=this;t.cssTransitions===!1?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},s.prototype.filterSlides=s.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},s.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(n){n.stopImmediatePropagation();var i=e(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=i.is(":focus"),t.autoPlay())},0)})},s.prototype.getCurrent=s.prototype.slickCurrentSlide=function(){var e=this;return e.currentSlide},s.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(e.options.infinite===!0)if(e.slideCount<=e.options.slidesToShow)++i;else for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(e.options.centerMode===!0)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},s.prototype.getLeft=function(e){var t,n,i,s,o=this,a=0;return o.slideOffset=0,n=o.$slides.first().outerHeight(!0),o.options.infinite===!0?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,s=-1,o.options.vertical===!0&&o.options.centerMode===!0&&(2===o.options.slidesToShow?s=-1.5:1===o.options.slidesToShow&&(s=-2)),a=n*o.options.slidesToShow*s),o.slideCount%o.options.slidesToScroll!==0&&e+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(e>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(e-o.slideCount))*o.slideWidth*-1,a=(o.options.slidesToShow-(e-o.slideCount))*n*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,a=o.slideCount%o.options.slidesToScroll*n*-1))):e+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(e+o.options.slidesToShow-o.slideCount)*o.slideWidth,a=(e+o.options.slidesToShow-o.slideCount)*n),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,a=0),o.options.centerMode===!0&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:o.options.centerMode===!0&&o.options.infinite===!0?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:o.options.centerMode===!0&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),t=o.options.vertical===!1?e*o.slideWidth*-1+o.slideOffset:e*n*-1+a,o.options.variableWidth===!0&&(i=o.$slideTrack.children(".slick-slide").eq(o.slideCount<=o.options.slidesToShow||o.options.infinite===!1?e:e+o.options.slidesToShow),t=o.options.rtl===!0?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,o.options.centerMode===!0&&(i=o.$slideTrack.children(".slick-slide").eq(o.slideCount<=o.options.slidesToShow||o.options.infinite===!1?e:e+o.options.slidesToShow+1),t=o.options.rtl===!0?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(o.$list.width()-i.outerWidth())/2)),t},s.prototype.getOption=s.prototype.slickGetOption=function(e){var t=this;return t.options[e]},s.prototype.getNavigableIndexes=function(){var e,t=this,n=0,i=0,s=[];for(t.options.infinite===!1?e=t.slideCount:(n=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,e=2*t.slideCount);e>n;)s.push(n),n=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return s},s.prototype.getSlick=function(){return this},s.prototype.getSlideCount=function(){var t,n,i,s=this;return i=s.options.centerMode===!0?s.slideWidth*Math.floor(s.options.slidesToShow/2):0,s.options.swipeToSlide===!0?(s.$slideTrack.find(".slick-slide").each(function(t,o){return o.offsetLeft-i+e(o).outerWidth()/2>-1*s.swipeLeft?(n=o,!1):void 0}),t=Math.abs(e(n).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},s.prototype.goTo=s.prototype.slickGoTo=function(e,t){var n=this;n.changeSlide({data:{message:"index",index:parseInt(e)}},t)},s.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),n.options.accessibility===!0&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},s.prototype.initADA=function(){var t=this,n=Math.ceil(t.slideCount/t.options.slidesToShow),i=t.getNavigableIndexes().filter(function(e){return e>=0&&e<t.slideCount});t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(n){var s=i.indexOf(n);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+n,tabindex:-1}),-1!==s){var o="slick-slide-control"+t.instanceUid+s;e("#"+o).length&&e(this).attr({"aria-describedby":o})}}),t.$dots.attr("role","tablist").find("li").each(function(s){var o=i[s];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+s,"aria-controls":"slick-slide"+t.instanceUid+o,"aria-label":s+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=t.currentSlide,o=s+t.options.slidesToShow;o>s;s++)t.options.focusOnChange?t.$slides.eq(s).attr({tabindex:"0"}):t.$slides.eq(s).removeAttr("tabindex");t.activateADA()},s.prototype.initArrowEvents=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},s.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),t.options.accessibility===!0&&t.$dots.on("keydown.slick",t.keyHandler)),t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},s.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},s.prototype.initializeEvents=function(){var i=this;i.initArrowEvents(),i.initDotEvents(),i.initSlideEvents(),i.$list.on("touchstart.slick mousedown.slick",{action:"start"},i.swipeHandler),i.$list.on("touchmove.slick mousemove.slick",{action:"move"},i.swipeHandler),i.$list.on("touchend.slick mouseup.slick",{action:"end"},i.swipeHandler),i.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},i.swipeHandler),i.$list.on("click.slick",i.clickHandler),e(n).on(i.visibilityChange,e.proxy(i.visibility,i)),i.options.accessibility===!0&&i.$list.on("keydown.slick",i.keyHandler),i.options.focusOnSelect===!0&&e(i.$slideTrack).children().on("click.slick",i.selectHandler),e(t).on("orientationchange.slick.slick-"+i.instanceUid,e.proxy(i.orientationChange,i)),e(t).on("resize.slick.slick-"+i.instanceUid,e.proxy(i.resize,i)),e("[draggable!=true]",i.$slideTrack).on("dragstart",i.preventDefault),e(t).on("load.slick.slick-"+i.instanceUid,i.setPosition),e(i.setPosition)},s.prototype.initUI=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},s.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&t.options.accessibility===!0?t.changeSlide({data:{message:t.options.rtl===!0?"next":"previous"}}):39===e.keyCode&&t.options.accessibility===!0&&t.changeSlide({data:{message:t.options.rtl===!0?"previous":"next"}}))},s.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each(function(){var t=e(this),i=e(this).attr("data-lazy"),s=e(this).attr("data-srcset"),o=e(this).attr("data-sizes")||r.$slider.attr("data-sizes"),a=n.createElement("img");a.onload=function(){t.animate({opacity:0},100,function(){s&&(t.attr("srcset",s),o&&t.attr("sizes",o)),t.attr("src",i).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,t,i])})},a.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,i])},a.src=i})}var i,s,o,a,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(o=r.currentSlide+(r.options.slidesToShow/2+1),a=o+r.options.slidesToShow+2):(o=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),a=2+(r.options.slidesToShow/2+1)+r.currentSlide):(o=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,a=Math.ceil(o+r.options.slidesToShow),r.options.fade===!0&&(o>0&&o--,a<=r.slideCount&&a++)),i=r.$slider.find(".slick-slide").slice(o,a),"anticipated"===r.options.lazyLoad)for(var l=o-1,c=a,u=r.$slider.find(".slick-slide"),d=0;d<r.options.slidesToScroll;d++)0>l&&(l=r.slideCount-1),i=i.add(u.eq(l)),i=i.add(u.eq(c)),l--,c++;t(i),r.slideCount<=r.options.slidesToShow?(s=r.$slider.find(".slick-slide"),t(s)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(s=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),t(s)):0===r.currentSlide&&(s=r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow),t(s))},s.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},s.prototype.next=s.prototype.slickNext=function(){var e=this;e.changeSlide({data:{message:"next"}})},s.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},s.prototype.pause=s.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},s.prototype.play=s.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},s.prototype.postSlide=function(t){var n=this;if(!n.unslicked&&(n.$slider.trigger("afterChange",[n,t]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),n.options.accessibility===!0&&(n.initADA(),n.options.focusOnChange))){var i=e(n.$slides.get(n.currentSlide));i.attr("tabindex",0).focus()}},s.prototype.prev=s.prototype.slickPrev=function(){var e=this;e.changeSlide({data:{message:"previous"}})},s.prototype.preventDefault=function(e){e.preventDefault()},s.prototype.progressiveLazyLoad=function(t){t=t||1;var i,s,o,a,r,l=this,c=e("img[data-lazy]",l.$slider);c.length?(i=c.first(),s=i.attr("data-lazy"),o=i.attr("data-srcset"),a=i.attr("data-sizes")||l.$slider.attr("data-sizes"),r=n.createElement("img"),r.onload=function(){o&&(i.attr("srcset",o),a&&i.attr("sizes",a)),i.attr("src",s).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),l.options.adaptiveHeight===!0&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,i,s]),l.progressiveLazyLoad()},r.onerror=function(){3>t?setTimeout(function(){l.progressiveLazyLoad(t+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,i,s]),l.progressiveLazyLoad())},r.src=s):l.$slider.trigger("allImagesLoaded",[l])},s.prototype.refresh=function(t){var n,i,s=this;i=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>i&&(s.currentSlide=i),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),n=s.currentSlide,s.destroy(!0),e.extend(s,s.initials,{currentSlide:n}),s.init(),t||s.changeSlide({data:{message:"index",index:n}},!1)},s.prototype.registerBreakpoints=function(){var t,n,i,s=this,o=s.options.responsive||null;if("array"===e.type(o)&&o.length){s.respondTo=s.options.respondTo||"window";for(t in o)if(i=s.breakpoints.length-1,o.hasOwnProperty(t)){for(n=o[t].breakpoint;i>=0;)s.breakpoints[i]&&s.breakpoints[i]===n&&s.breakpoints.splice(i,1),i--;s.breakpoints.push(n),s.breakpointSettings[n]=o[t].settings}s.breakpoints.sort(function(e,t){return s.options.mobileFirst?e-t:t-e})}},s.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},s.prototype.resize=function(){var n=this;e(t).width()!==n.windowWidth&&(clearTimeout(n.windowDelay),n.windowDelay=t.setTimeout(function(){n.windowWidth=e(t).width(),n.checkResponsive(),n.unslicked||n.setPosition()},50))},s.prototype.removeSlide=s.prototype.slickRemove=function(e,t,n){var i=this;return"boolean"==typeof e?(t=e,e=t===!0?0:i.slideCount-1):e=t===!0?--e:e,i.slideCount<1||0>e||e>i.slideCount-1?!1:(i.unload(),n===!0?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(e).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,void i.reinit())},s.prototype.setCSS=function(e){var t,n,i=this,s={};i.options.rtl===!0&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",s[i.positionProp]=e,i.transformsEnabled===!1?i.$slideTrack.css(s):(s={},i.cssTransitions===!1?(s[i.animType]="translate("+t+", "+n+")",i.$slideTrack.css(s)):(s[i.animType]="translate3d("+t+", "+n+", 0px)",i.$slideTrack.css(s)))},s.prototype.setDimensions=function(){var e=this;e.options.vertical===!1?e.options.centerMode===!0&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),e.options.centerMode===!0&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),e.options.vertical===!1&&e.options.variableWidth===!1?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):e.options.variableWidth===!0?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();e.options.variableWidth===!1&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},s.prototype.setFade=function(){var t,n=this;n.$slides.each(function(i,s){t=n.slideWidth*i*-1,e(s).css(n.options.rtl===!0?{position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}:{position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},s.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},s.prototype.setOption=s.prototype.slickSetOption=function(){var t,n,i,s,o,a=this,r=!1;if("object"===e.type(arguments[0])?(i=arguments[0],r=arguments[1],o="multiple"):"string"===e.type(arguments[0])&&(i=arguments[0],s=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?o="responsive":"undefined"!=typeof arguments[1]&&(o="single")),"single"===o)a.options[i]=s;else if("multiple"===o)e.each(i,function(e,t){a.options[e]=t});else if("responsive"===o)for(n in s)if("array"!==e.type(a.options.responsive))a.options.responsive=[s[n]];else{for(t=a.options.responsive.length-1;t>=0;)a.options.responsive[t].breakpoint===s[n].breakpoint&&a.options.responsive.splice(t,1),t--;a.options.responsive.push(s[n])}r&&(a.unload(),a.reinit())},s.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),e.options.fade===!1?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},s.prototype.setProps=function(){var e=this,t=n.body.style;e.positionProp=e.options.vertical===!0?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),(t.WebkitTransition!==i||t.MozTransition!==i||t.msTransition!==i)&&e.options.useCSS===!0&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),t.OTransform!==i&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",t.perspectiveProperty===i&&t.webkitPerspective===i&&(e.animType=!1)),t.MozTransform!==i&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",t.perspectiveProperty===i&&t.MozPerspective===i&&(e.animType=!1)),t.webkitTransform!==i&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",t.perspectiveProperty===i&&t.webkitPerspective===i&&(e.animType=!1)),t.msTransform!==i&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",t.msTransform===i&&(e.animType=!1)),t.transform!==i&&e.animType!==!1&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&e.animType!==!1},s.prototype.setSlideClasses=function(e){var t,n,i,s,o=this;if(n=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(e).addClass("slick-current"),o.options.centerMode===!0){var a=o.options.slidesToShow%2===0?1:0;t=Math.floor(o.options.slidesToShow/2),o.options.infinite===!0&&(e>=t&&e<=o.slideCount-1-t?o.$slides.slice(e-t+a,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(i=o.options.slidesToShow+e,n.slice(i-t+1+a,i+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-o.options.slidesToShow).addClass("slick-center"):e===o.slideCount-1&&n.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=o.slideCount-o.options.slidesToShow?o.$slides.slice(e,e+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=o.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(s=o.slideCount%o.options.slidesToShow,i=o.options.infinite===!0?o.options.slidesToShow+e:e,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-e<o.options.slidesToShow?n.slice(i-(o.options.slidesToShow-s),i+s).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));("ondemand"===o.options.lazyLoad||"anticipated"===o.options.lazyLoad)&&o.lazyLoad()},s.prototype.setupInfinite=function(){var t,n,i,s=this;if(s.options.fade===!0&&(s.options.centerMode=!1),s.options.infinite===!0&&s.options.fade===!1&&(n=null,s.slideCount>s.options.slidesToShow)){for(i=s.options.centerMode===!0?s.options.slidesToShow+1:s.options.slidesToShow,t=s.slideCount;t>s.slideCount-i;t-=1)n=t-1,e(s.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(t=0;t<i+s.slideCount;t+=1)n=t,e(s.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},s.prototype.interrupt=function(e){var t=this;e||t.autoPlay(),t.interrupted=e},s.prototype.selectHandler=function(t){var n=this,i=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),s=parseInt(i.attr("data-slick-index"));return s||(s=0),n.slideCount<=n.options.slidesToShow?void n.slideHandler(s,!1,!0):void n.slideHandler(s)},s.prototype.slideHandler=function(e,t,n){var i,s,o,a,r,l=null,c=this;return t=t||!1,c.animating===!0&&c.options.waitForAnimate===!0||c.options.fade===!0&&c.currentSlide===e?void 0:(t===!1&&c.asNavFor(e),i=e,l=c.getLeft(i),a=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?a:c.swipeLeft,c.options.infinite===!1&&c.options.centerMode===!1&&(0>e||e>c.getDotCount()*c.options.slidesToScroll)?void(c.options.fade===!1&&(i=c.currentSlide,n!==!0&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,function(){c.postSlide(i)}):c.postSlide(i))):c.options.infinite===!1&&c.options.centerMode===!0&&(0>e||e>c.slideCount-c.options.slidesToScroll)?void(c.options.fade===!1&&(i=c.currentSlide,n!==!0&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,function(){c.postSlide(i)}):c.postSlide(i))):(c.options.autoplay&&clearInterval(c.autoPlayTimer),s=0>i?c.slideCount%c.options.slidesToScroll!==0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+i:i>=c.slideCount?c.slideCount%c.options.slidesToScroll!==0?0:i-c.slideCount:i,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,s]),o=c.currentSlide,c.currentSlide=s,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(r=c.getNavTarget(),r=r.slick("getSlick"),r.slideCount<=r.options.slidesToShow&&r.setSlideClasses(c.currentSlide)),c.updateDots(),c.updateArrows(),c.options.fade===!0?(n!==!0?(c.fadeSlideOut(o),c.fadeSlide(s,function(){c.postSlide(s)})):c.postSlide(s),void c.animateHeight()):void(n!==!0&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,function(){c.postSlide(s)}):c.postSlide(s))))},s.prototype.startLoad=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},s.prototype.swipeDirection=function(){var e,t,n,i,s=this;return e=s.touchObject.startX-s.touchObject.curX,t=s.touchObject.startY-s.touchObject.curY,n=Math.atan2(t,e),i=Math.round(180*n/Math.PI),0>i&&(i=360-Math.abs(i)),45>=i&&i>=0?s.options.rtl===!1?"left":"right":360>=i&&i>=315?s.options.rtl===!1?"left":"right":i>=135&&225>=i?s.options.rtl===!1?"right":"left":s.options.verticalSwiping===!0?i>=35&&135>=i?"down":"up":"vertical"},s.prototype.swipeEnd=function(e){var t,n,s=this;if(s.dragging=!1,s.swiping=!1,s.scrolling)return s.scrolling=!1,!1;if(s.interrupted=!1,s.shouldClick=s.touchObject.swipeLength>10?!1:!0,s.touchObject.curX===i)return!1;if(s.touchObject.edgeHit===!0&&s.$slider.trigger("edge",[s,s.swipeDirection()]),s.touchObject.swipeLength>=s.touchObject.minSwipe){switch(n=s.swipeDirection()){case"left":case"down":t=s.options.swipeToSlide?s.checkNavigable(s.currentSlide+s.getSlideCount()):s.currentSlide+s.getSlideCount(),s.currentDirection=0;break;case"right":case"up":t=s.options.swipeToSlide?s.checkNavigable(s.currentSlide-s.getSlideCount()):s.currentSlide-s.getSlideCount(),s.currentDirection=1}"vertical"!=n&&(s.slideHandler(t),s.touchObject={},s.$slider.trigger("swipe",[s,n]))}else s.touchObject.startX!==s.touchObject.curX&&(s.slideHandler(s.currentSlide),s.touchObject={})},s.prototype.swipeHandler=function(e){var t=this;if(!(t.options.swipe===!1||"ontouchend" in n&&t.options.swipe===!1||t.options.draggable===!1&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&e.originalEvent.touches!==i?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},s.prototype.swipeMove=function(e){var t,n,s,o,a,r,l=this;return a=e.originalEvent!==i?e.originalEvent.touches:null,!l.dragging||l.scrolling||a&&1!==a.length?!1:(t=l.getLeft(l.currentSlide),l.touchObject.curX=a!==i?a[0].pageX:e.clientX,l.touchObject.curY=a!==i?a[0].pageY:e.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(l.options.verticalSwiping===!0&&(l.touchObject.swipeLength=r),n=l.swipeDirection(),e.originalEvent!==i&&l.touchObject.swipeLength>4&&(l.swiping=!0,e.preventDefault()),o=(l.options.rtl===!1?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),l.options.verticalSwiping===!0&&(o=l.touchObject.curY>l.touchObject.startY?1:-1),s=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,l.options.infinite===!1&&(0===l.currentSlide&&"right"===n||l.currentSlide>=l.getDotCount()&&"left"===n)&&(s=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),l.swipeLeft=l.options.vertical===!1?t+s*o:t+s*(l.$list.height()/l.listWidth)*o,l.options.verticalSwiping===!0&&(l.swipeLeft=t+s*o),l.options.fade===!0||l.options.touchMove===!1?!1:l.animating===!0?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft)))},s.prototype.swipeStart=function(e){var t,n=this;return n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow?(n.touchObject={},!1):(e.originalEvent!==i&&e.originalEvent.touches!==i&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=t!==i?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=t!==i?t.pageY:e.clientY,void(n.dragging=!0))},s.prototype.unfilterSlides=s.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},s.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},s.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},s.prototype.updateArrows=function(){var e,t=this;e=Math.floor(t.options.slidesToShow/2),t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&t.options.centerMode===!1?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&t.options.centerMode===!0&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},s.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},s.prototype.visibility=function(){var e=this;e.options.autoplay&&(e.interrupted=n[e.hidden]?!0:!1)},e.fn.slick=function(){var e,t,n=this,i=arguments[0],o=Array.prototype.slice.call(arguments,1),a=n.length;for(e=0;a>e;e++)if("object"==typeof i||"undefined"==typeof i?n[e].slick=new s(n[e],i):t=n[e].slick[i].apply(n[e].slick,o),"undefined"!=typeof t)return t;return n}}(jQuery,window,document)},{}],9:[function(e,t,n){(function(){var e,t;e=this.jQuery||window.jQuery,t=e(window),e.fn.stick_in_parent=function(n){var i,s,o,a,r,l,c,u,d,h,f,p,m;for(null==n&&(n={}),h=n.sticky_class,a=n.inner_scrolling,d=n.recalc_every,u=n.parent,l=n.offset_top,r=n.spacer,o=n.bottoming,null==l&&(l=0),null==u&&(u=void 0),null==a&&(a=!0),null==h&&(h="is_stuck"),i=e(document),null==o&&(o=!0),c=function(e){var t,n,i;return window.getComputedStyle?(i=e[0],t=window.getComputedStyle(e[0]),n=parseFloat(t.getPropertyValue("width"))+parseFloat(t.getPropertyValue("margin-left"))+parseFloat(t.getPropertyValue("margin-right")),"border-box"!==t.getPropertyValue("box-sizing")&&(n+=parseFloat(t.getPropertyValue("border-left-width"))+parseFloat(t.getPropertyValue("border-right-width"))+parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"))),n):e.outerWidth(!0)},f=function(n,s,f,p,m,g,v,y){var b,w,k,T,S,_,C,x,M,P,A,D;if(!n.data("sticky_kit")){if(n.data("sticky_kit",!0),S=i.height(),C=n.parent(),null!=u&&(C=C.closest(u)),!C.length)throw"failed to find stick parent";if(k=!1,b=!1,A=null!=r?r&&n.closest(r):e("<div />"),A&&A.css("position",n.css("position")),x=function(){var e,t,o;if(!y)return S=i.height(),e=parseInt(C.css("border-top-width"),10),t=parseInt(C.css("padding-top"),10),s=parseInt(C.css("padding-bottom"),10),f=C.offset().top+e+t,p=C.height(),k&&(k=!1,b=!1,null==r&&(n.insertAfter(A),A.detach()),n.css({position:"",top:"",width:"",bottom:""}).removeClass(h),o=!0),m=n.offset().top-(parseInt(n.css("margin-top"),10)||0)-l,g=n.outerHeight(!0),v=n.css("float"),A&&A.css({width:c(n),height:g,display:n.css("display"),"vertical-align":n.css("vertical-align"),"float":v}),o?D():void 0},x(),g!==p)return T=void 0,_=l,P=d,D=function(){var e,c,u,w,M,D;if(!y)return u=!1,null!=P&&(P-=1,0>=P&&(P=d,x(),u=!0)),u||i.height()===S||(x(),u=!0),w=t.scrollTop(),null!=T&&(c=w-T),T=w,k?(o&&(M=w+g+_>p+f,b&&!M&&(b=!1,n.css({position:"fixed",bottom:"",top:_}).trigger("sticky_kit:unbottom"))),m>w&&(k=!1,_=l,null==r&&(("left"===v||"right"===v)&&n.insertAfter(A),A.detach()),e={position:"",width:"",top:""},n.css(e).removeClass(h).trigger("sticky_kit:unstick")),a&&(D=t.height(),g+l>D&&(b||(_-=c,_=Math.max(D-g,_),_=Math.min(l,_),k&&n.css({top:_+"px"}))))):w>m&&(k=!0,e={position:"fixed",top:_},e.width="border-box"===n.css("box-sizing")?n.outerWidth()+"px":n.width()+"px",n.css(e).addClass(h),null==r&&(n.after(A),("left"===v||"right"===v)&&A.append(n)),n.trigger("sticky_kit:stick")),k&&o&&(null==M&&(M=w+g+_>p+f),!b&&M)?(b=!0,"static"===C.css("position")&&C.css({position:"relative"}),n.css({position:"absolute",bottom:s,top:"auto"}).trigger("sticky_kit:bottom")):void 0},M=function(){return x(),D()},w=function(){return y=!0,t.off("touchmove",D),t.off("scroll",D),t.off("resize",M),e(document.body).off("sticky_kit:recalc",M),n.off("sticky_kit:detach",w),n.removeData("sticky_kit"),n.css({position:"",bottom:"",top:"",width:""}),C.position("position",""),k?(null==r&&(("left"===v||"right"===v)&&n.insertAfter(A),A.remove()),n.removeClass(h)):void 0},t.on("touchmove",D),t.on("scroll",D),t.on("resize",M),e(document.body).on("sticky_kit:recalc",M),n.on("sticky_kit:detach",w),setTimeout(D,0)}},p=0,m=this.length;m>p;p++)s=this[p],f(e(s));return this}}).call(this)},{}],10:[function(e,t,n){!function(e){"use strict";function t(e){var t=e.length,i=n.type(e);return"function"===i||n.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e}if(!e.jQuery){var n=function(e,t){return new n.fn.init(e,t)};n.isWindow=function(e){return e&&e===e.window},n.type=function(e){return e?"object"==typeof e||"function"==typeof e?s[a.call(e)]||"object":typeof e:e+""},n.isArray=Array.isArray||function(e){return"array"===n.type(e)},n.isPlainObject=function(e){var t;if(!e||"object"!==n.type(e)||e.nodeType||n.isWindow(e))return!1;try{if(e.constructor&&!o.call(e,"constructor")&&!o.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}for(t in e);return void 0===t||o.call(e,t)},n.each=function(e,n,i){var s,o=0,a=e.length,r=t(e);if(i){if(r)for(;a>o&&(s=n.apply(e[o],i),s!==!1);o++);else for(o in e)if(e.hasOwnProperty(o)&&(s=n.apply(e[o],i),s===!1))break}else if(r)for(;a>o&&(s=n.call(e[o],o,e[o]),s!==!1);o++);else for(o in e)if(e.hasOwnProperty(o)&&(s=n.call(e[o],o,e[o]),s===!1))break;return e},n.data=function(e,t,s){if(void 0===s){var o=e[n.expando],a=o&&i[o];if(void 0===t)return a;if(a&&t in a)return a[t]}else if(void 0!==t){var r=e[n.expando]||(e[n.expando]=++n.uuid);return i[r]=i[r]||{},i[r][t]=s,s}},n.removeData=function(e,t){var s=e[n.expando],o=s&&i[s];o&&(t?n.each(t,function(e,t){delete o[t]}):delete i[s])},n.extend=function(){var e,t,i,s,o,a,r=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof r&&(u=r,r=arguments[l]||{},l++),"object"!=typeof r&&"function"!==n.type(r)&&(r={}),l===c&&(r=this,l--);c>l;l++)if(o=arguments[l])for(s in o)o.hasOwnProperty(s)&&(e=r[s],i=o[s],r!==i&&(u&&i&&(n.isPlainObject(i)||(t=n.isArray(i)))?(t?(t=!1,a=e&&n.isArray(e)?e:[]):a=e&&n.isPlainObject(e)?e:{},r[s]=n.extend(u,a,i)):void 0!==i&&(r[s]=i)));return r},n.queue=function(e,i,s){function o(e,n){var i=n||[];return e&&(t(Object(e))?!function(e,t){for(var n=+t.length,i=0,s=e.length;n>i;)e[s++]=t[i++];if(n!==n)for(;void 0!==t[i];)e[s++]=t[i++];return e.length=s,e}(i,"string"==typeof e?[e]:e):[].push.call(i,e)),i}if(e){i=(i||"fx")+"queue";var a=n.data(e,i);return s?(!a||n.isArray(s)?a=n.data(e,i,o(s)):a.push(s),a):a||[]}},n.dequeue=function(e,t){n.each(e.nodeType?[e]:e,function(e,i){t=t||"fx";var s=n.queue(i,t),o=s.shift();"inprogress"===o&&(o=s.shift()),o&&("fx"===t&&s.unshift("inprogress"),o.call(i,function(){n.dequeue(i,t)}))})},n.fn=n.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(e){for(var t=e.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position.toLowerCase();)t=t.offsetParent;return t||document}var t=this[0],i=e(t),s=this.offset(),o=/^(?:body|html)$/i.test(i.nodeName)?{top:0,left:0}:n(i).offset();return s.top-=parseFloat(t.style.marginTop)||0,s.left-=parseFloat(t.style.marginLeft)||0,i.style&&(o.top+=parseFloat(i.style.borderTopWidth)||0,o.left+=parseFloat(i.style.borderLeftWidth)||0),{top:s.top-o.top,left:s.left-o.left}}};var i={};n.expando="velocity"+(new Date).getTime(),n.uuid=0;for(var s={},o=s.hasOwnProperty,a=s.toString,r="Boolean Number String Function Array Date RegExp Object Error".split(" "),l=0;l<r.length;l++)s["[object "+r[l]+"]"]=r[l].toLowerCase();n.fn.init.prototype=n.fn,e.Velocity={Utilities:n}}}(window),function(e){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e():"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";return function(e,t,n,i){function s(e){for(var t=-1,n=e?e.length:0,i=[];++t<n;){var s=e[t];s&&i.push(s)}return i}function o(e){return w.isWrapped(e)?e=y.call(e):w.isNode(e)&&(e=[e]),e}function a(e){var t=p.data(e,"velocity");return null===t?i:t}function r(e,t){var n=a(e);n&&n.delayTimer&&!n.delayPaused&&(n.delayRemaining=n.delay-t+n.delayBegin,n.delayPaused=!0,clearTimeout(n.delayTimer.setTimeout))}function l(e,t){var n=a(e);n&&n.delayTimer&&n.delayPaused&&(n.delayPaused=!1,n.delayTimer.setTimeout=setTimeout(n.delayTimer.next,n.delayRemaining))}function c(e){return function(t){return Math.round(t*e)*(1/e)}}function u(e,n,i,s){function o(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function r(e){return 3*e}function l(e,t,n){return((o(t,n)*e+a(t,n))*e+r(t))*e}function c(e,t,n){return 3*o(t,n)*e*e+2*a(t,n)*e+r(t)}function u(t,n){for(var s=0;m>s;++s){var o=c(n,e,i);if(0===o)return n;var a=l(n,e,i)-t;n-=a/o}return n}function d(){for(var t=0;b>t;++t)S[t]=l(t*w,e,i)}function h(t,n,s){var o,a,r=0;do a=n+(s-n)/2,o=l(a,e,i)-t,o>0?s=a:n=a;while(Math.abs(o)>v&&++r<y);return a}function f(t){for(var n=0,s=1,o=b-1;s!==o&&S[s]<=t;++s)n+=w;--s;var a=(t-S[s])/(S[s+1]-S[s]),r=n+a*w,l=c(r,e,i);return l>=g?u(t,r):0===l?r:h(t,n,n+w)}function p(){_=!0,(e!==n||i!==s)&&d()}var m=4,g=.001,v=1e-7,y=10,b=11,w=1/(b-1),k="Float32Array" in t;if(4!==arguments.length)return!1;for(var T=0;4>T;++T)if("number"!=typeof arguments[T]||isNaN(arguments[T])||!isFinite(arguments[T]))return!1;e=Math.min(e,1),i=Math.min(i,1),e=Math.max(e,0),i=Math.max(i,0);var S=k?new Float32Array(b):new Array(b),_=!1,C=function(t){return _||p(),e===n&&i===s?t:0===t?0:1===t?1:l(f(t),n,s)};C.getControlPoints=function(){return[{x:e,y:n},{x:i,y:s}]};var x="generateBezier("+[e,n,i,s]+")";return C.toString=function(){return x},C}function d(e,t){var n=e;return w.isString(e)?_.Easings[e]||(n=!1):n=w.isArray(e)&&1===e.length?c.apply(null,e):w.isArray(e)&&2===e.length?C.apply(null,e.concat([t])):w.isArray(e)&&4===e.length?u.apply(null,e):!1,n===!1&&(n=_.Easings[_.defaults.easing]?_.defaults.easing:S),n}function h(e){if(e){var t=_.timestamp&&e!==!0?e:v.now(),n=_.State.calls.length;n>1e4&&(_.State.calls=s(_.State.calls),n=_.State.calls.length);for(var o=0;n>o;o++)if(_.State.calls[o]){var r=_.State.calls[o],l=r[0],c=r[2],u=r[3],d=!u,g=null,y=r[5],b=r[6];if(u||(u=_.State.calls[o][3]=t-16),y){if(y.resume!==!0)continue;u=r[3]=Math.round(t-b-16),r[5]=null}b=r[6]=t-u;for(var k=Math.min(b/c.duration,1),T=0,S=l.length;S>T;T++){var C=l[T],M=C.element;if(a(M)){var A=!1;if(c.display!==i&&null!==c.display&&"none"!==c.display){if("flex"===c.display){var D=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];p.each(D,function(e,t){x.setPropertyValue(M,"display",t)})}x.setPropertyValue(M,"display",c.display)}c.visibility!==i&&"hidden"!==c.visibility&&x.setPropertyValue(M,"visibility",c.visibility);for(var O in C)if(C.hasOwnProperty(O)&&"element"!==O){var E,L=C[O],H=w.isString(L.easing)?_.Easings[L.easing]:L.easing;if(w.isString(L.pattern)){var $=1===k?function(e,t,n){var i=L.endValue[t];return n?Math.round(i):i}:function(e,t,n){var i=L.startValue[t],s=L.endValue[t]-i,o=i+s*H(k,c,s);return n?Math.round(o):o};E=L.pattern.replace(/{(\d+)(!)?}/g,$)}else if(1===k)E=L.endValue;else{var I=L.endValue-L.startValue;E=L.startValue+I*H(k,c,I)}if(!d&&E===L.currentValue)continue;if(L.currentValue=E,"tween"===O)g=E;else{var N;if(x.Hooks.registered[O]){N=x.Hooks.getRoot(O);var Y=a(M).rootPropertyValueCache[N];Y&&(L.rootPropertyValue=Y)}var R=x.setPropertyValue(M,O,L.currentValue+(9>m&&0===parseFloat(E)?"":L.unitType),L.rootPropertyValue,L.scrollData);x.Hooks.registered[O]&&(a(M).rootPropertyValueCache[N]=x.Normalizations.registered[N]?x.Normalizations.registered[N]("extract",null,R[1]):R[1]),"transform"===R[0]&&(A=!0)}}c.mobileHA&&a(M).transformCache.translate3d===i&&(a(M).transformCache.translate3d="(0px, 0px, 0px)",A=!0),A&&x.flushTransformCache(M)}}c.display!==i&&"none"!==c.display&&(_.State.calls[o][2].display=!1),c.visibility!==i&&"hidden"!==c.visibility&&(_.State.calls[o][2].visibility=!1),c.progress&&c.progress.call(r[1],r[1],k,Math.max(0,u+c.duration-t),u,g),1===k&&f(o)}}_.State.isTicking&&P(h)}function f(e,t){if(!_.State.calls[e])return!1;for(var n=_.State.calls[e][0],s=_.State.calls[e][1],o=_.State.calls[e][2],r=_.State.calls[e][4],l=!1,c=0,u=n.length;u>c;c++){var d=n[c].element;t||o.loop||("none"===o.display&&x.setPropertyValue(d,"display",o.display),"hidden"===o.visibility&&x.setPropertyValue(d,"visibility",o.visibility));var h=a(d);if(o.loop!==!0&&(p.queue(d)[1]===i||!/\.velocityQueueEntryFlag/i.test(p.queue(d)[1]))&&h){h.isAnimating=!1,h.rootPropertyValueCache={};var f=!1;p.each(x.Lists.transforms3D,function(e,t){var n=/^scale/.test(t)?1:0,s=h.transformCache[t];h.transformCache[t]!==i&&new RegExp("^\\("+n+"[^.]").test(s)&&(f=!0,delete h.transformCache[t])}),o.mobileHA&&(f=!0,delete h.transformCache.translate3d),f&&x.flushTransformCache(d),x.Values.removeClass(d,"velocity-animating")}if(!t&&o.complete&&!o.loop&&c===u-1)try{o.complete.call(s,s)}catch(m){setTimeout(function(){throw m},1)}r&&o.loop!==!0&&r(s),h&&o.loop===!0&&!t&&(p.each(h.tweensContainer,function(e,t){if(/^rotate/.test(e)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360===0){var n=t.startValue;t.startValue=t.endValue,t.endValue=n}/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),_(d,"reverse",{loop:!0,delay:o.delay})),o.queue!==!1&&p.dequeue(d,o.queue)}_.State.calls[e]=!1;for(var g=0,v=_.State.calls.length;v>g;g++)if(_.State.calls[g]!==!1){l=!0;break}l===!1&&(_.State.isTicking=!1,delete _.State.calls,_.State.calls=[])}var p,m=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="<!--[if IE "+e+"]><span></span><![endif]-->",t.getElementsByTagName("span").length)return t=null,e}return i}(),g=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-e)),e=i+n,setTimeout(function(){t(i+n)},n)}}(),v=function(){var e=t.performance||{};if("function"!=typeof e.now){var n=e.timing&&e.timing.navigationStart?e.timing.navigationStart:(new Date).getTime();e.now=function(){return(new Date).getTime()-n}}return e}(),y=function(){var e=Array.prototype.slice;try{return e.call(n.documentElement),e}catch(t){return function(t,n){var i=this.length;if("number"!=typeof t&&(t=0),"number"!=typeof n&&(n=i),this.slice)return e.call(this,t,n);var s,o=[],a=t>=0?t:Math.max(0,i+t),r=0>n?i+n:Math.min(n,i),l=r-a;if(l>0)if(o=new Array(l),this.charAt)for(s=0;l>s;s++)o[s]=this.charAt(a+s);else for(s=0;l>s;s++)o[s]=this[a+s];return o}}}(),b=function(){return Array.prototype.includes?function(e,t){return e.includes(t)}:Array.prototype.indexOf?function(e,t){return e.indexOf(t)>=0}:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}},w={isNumber:function(e){return"number"==typeof e},isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==t&&w.isNumber(e.length)&&!w.isString(e)&&!w.isFunction(e)&&!w.isNode(e)&&(0===e.length||w.isNode(e[0]))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},k=!1;if(e.fn&&e.fn.jquery?(p=e,k=!0):p=t.Velocity.Utilities,8>=m&&!k)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=m)return void(jQuery.fn.velocity=jQuery.fn.animate);var T=400,S="swing",_={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t.navigator.userAgent),isAndroid:/Android/i.test(t.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(t.navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(t.navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:p,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:T,easing:S,begin:i,complete:i,progress:i,display:i,visibility:i,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(e){p.data(e,"velocity",{isSVG:w.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(e){var t=(new Date).getTime();p.each(_.State.calls,function(t,n){if(n){if(e!==i&&(n[2].queue!==e||n[2].queue===!1))return!0;n[5]={resume:!1}}}),p.each(_.State.delayedElements,function(e,n){n&&r(n,t)})},resumeAll:function(e){var t=(new Date).getTime();p.each(_.State.calls,function(t,n){if(n){if(e!==i&&(n[2].queue!==e||n[2].queue===!1))return!0;n[5]&&(n[5].resume=!0)}}),p.each(_.State.delayedElements,function(e,n){n&&l(n,t)})}};t.pageYOffset!==i?(_.State.scrollAnchor=t,_.State.scrollPropertyLeft="pageXOffset",_.State.scrollPropertyTop="pageYOffset"):(_.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,_.State.scrollPropertyLeft="scrollLeft",_.State.scrollPropertyTop="scrollTop");var C=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,i){var s={x:t.x+i.dx*n,v:t.v+i.dv*n,tension:t.tension,friction:t.friction};return{dx:s.v,dv:e(s)}}function n(n,i){var s={dx:n.v,dv:e(n)},o=t(n,.5*i,s),a=t(n,.5*i,o),r=t(n,i,a),l=1/6*(s.dx+2*(o.dx+a.dx)+r.dx),c=1/6*(s.dv+2*(o.dv+a.dv)+r.dv);return n.x=n.x+l*i,n.v=n.v+c*i,n}return function i(e,t,s){var o,a,r,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0,d=1e-4,h=.016;for(e=parseFloat(e)||500,t=parseFloat(t)||20,s=s||null,l.tension=e,l.friction=t,o=null!==s,o?(u=i(e,t),a=u/s*h):a=h;;)if(r=n(r||l,a),c.push(1+r.x),u+=16,!(Math.abs(r.x)>d&&Math.abs(r.v)>d))break;return o?function(e){return c[e*(c.length-1)|0]}:u}}();_.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},p.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){_.Easings[t[0]]=u.apply(null,t[1])});var x=_.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<x.Lists.colors.length;e++){var t="color"===x.Lists.colors[e]?"0 0 0 1":"255 255 255 1";x.Hooks.templates[x.Lists.colors[e]]=["Red Green Blue Alpha",t]}var n,i,s;if(m)for(n in x.Hooks.templates)if(x.Hooks.templates.hasOwnProperty(n)){i=x.Hooks.templates[n],s=i[0].split(" ");var o=i[1].match(x.RegEx.valueSplit);"Color"===s[0]&&(s.push(s.shift()),o.push(o.shift()),x.Hooks.templates[n]=[s.join(" "),o.join(" ")])}for(n in x.Hooks.templates)if(x.Hooks.templates.hasOwnProperty(n)){i=x.Hooks.templates[n],s=i[0].split(" ");for(var a in s)if(s.hasOwnProperty(a)){var r=n+s[a],l=a;x.Hooks.registered[r]=[n,l]}}},getRoot:function(e){var t=x.Hooks.registered[e];return t?t[0]:e},getUnit:function(e,t){var n=(e.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||"";return n&&b(x.Lists.units,n)?n:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(e,t,n){return x.Lists.colorNames.hasOwnProperty(n)?(t?t:"rgba(")+x.Lists.colorNames[n]+(t?"":",1)"):t+n})},cleanRootPropertyValue:function(e,t){return x.RegEx.valueUnwrap.test(t)&&(t=t.match(x.RegEx.valueUnwrap)[1]),x.Values.isCSSNullValue(t)&&(t=x.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=x.Hooks.registered[e];if(n){var i=n[0],s=n[1];return t=x.Hooks.cleanRootPropertyValue(i,t),t.toString().match(x.RegEx.valueSplit)[s]}return t},injectValue:function(e,t,n){var i=x.Hooks.registered[e];if(i){var s,o,a=i[0],r=i[1];return n=x.Hooks.cleanRootPropertyValue(a,n),s=n.toString().match(x.RegEx.valueSplit),s[r]=t,o=s.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var i;return x.RegEx.wrappedValueAlreadyExtracted.test(n)?i=n:(i=n.toString().match(x.RegEx.valueUnwrap),i=i?i[1].replace(/,(\s+)?/g," "):n),i;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return _.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var s=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=s?s[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(8>=m)switch(e){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":return n;case"inject":return n}}},register:function(){function e(e,t,n){var i="border-box"===x.getPropertyValue(t,"boxSizing").toString().toLowerCase();if(i===(n||!1)){var s,o,a=0,r="width"===e?["Left","Right"]:["Top","Bottom"],l=["padding"+r[0],"padding"+r[1],"border"+r[0]+"Width","border"+r[1]+"Width"];for(s=0;s<l.length;s++)o=parseFloat(x.getPropertyValue(t,l[s])),isNaN(o)||(a+=o);return n?-a:a}return 0}function t(t,n){return function(i,s,o){switch(i){case"name":return t;case"extract":return parseFloat(o)+e(t,s,n);case"inject":return parseFloat(o)-e(t,s,n)+"px"}}}m&&!(m>9)||_.State.isGingerbread||(x.Lists.transformsBase=x.Lists.transformsBase.concat(x.Lists.transforms3D));for(var n=0;n<x.Lists.transformsBase.length;n++)!function(){var e=x.Lists.transformsBase[n];x.Normalizations.registered[e]=function(t,n,s){switch(t){case"name":return"transform";case"extract":return a(n)===i||a(n).transformCache[e]===i?/^scale/i.test(e)?1:0:a(n).transformCache[e].replace(/[()]/g,"");case"inject":var o=!1;switch(e.substr(0,e.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(s);break;case"scal":case"scale":_.State.isAndroid&&a(n).transformCache[e]===i&&1>s&&(s=1),o=!/(\d)$/i.test(s);break;case"skew":o=!/(deg|\d)$/i.test(s);break;case"rotate":o=!/(deg|\d)$/i.test(s)}return o||(a(n).transformCache[e]="("+s+")"),a(n).transformCache[e]}}}();for(var s=0;s<x.Lists.colors.length;s++)!function(){var e=x.Lists.colors[s];x.Normalizations.registered[e]=function(t,n,s){switch(t){case"name":return e;case"extract":var o;if(x.RegEx.wrappedValueAlreadyExtracted.test(s))o=s;else{var a,r={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(s)?a=r[s]!==i?r[s]:r.black:x.RegEx.isHex.test(s)?a="rgb("+x.Values.hexToRgb(s).join(" ")+")":/^rgba?\(/i.test(s)||(a=r.black),o=(a||s).toString().match(x.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!m||m>8)&&3===o.split(" ").length&&(o+=" 1"),o;case"inject":return/^rgb/.test(s)?s:(8>=m?4===s.split(" ").length&&(s=s.split(/\s+/).slice(0,3).join(" ")):3===s.split(" ").length&&(s+=" 1"),(8>=m?"rgb":"rgba")+"("+s.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();x.Normalizations.registered.innerWidth=t("width",!0),x.Normalizations.registered.innerHeight=t("height",!0),x.Normalizations.registered.outerWidth=t("width"),x.Normalizations.registered.outerHeight=t("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(m||_.State.isAndroid&&!_.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(_.State.prefixMatches[e])return[_.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,i=t.length;i>n;n++){var s;if(s=0===n?e:t[n]+e.replace(/^\w/,function(e){return e.toUpperCase()}),w.isString(_.State.prefixElement.style[s]))return _.State.prefixMatches[e]=s,[s,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t,n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return e=e.replace(n,function(e,t,n,i){return t+t+n+n+i+i}),t=i.exec(e),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){if(e)if(e.classList)e.classList.add(t);else if(w.isString(e.className))e.className+=(e.className.length?" ":"")+t;else{var n=e.getAttribute(7>=m?"className":"class")||"";e.setAttribute("class",n+(n?" ":"")+t)}},removeClass:function(e,t){if(e)if(e.classList)e.classList.remove(t);else if(w.isString(e.className))e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ");else{var n=e.getAttribute(7>=m?"className":"class")||"";e.setAttribute("class",n.replace(new RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(e,n,s,o){function r(e,n){var s=0;if(8>=m)s=p.css(e,n);else{var l=!1;/^(width|height)$/.test(n)&&0===x.getPropertyValue(e,"display")&&(l=!0,x.setPropertyValue(e,"display",x.Values.getDisplayType(e)));var c=function(){l&&x.setPropertyValue(e,"display","none")};if(!o){if("height"===n&&"border-box"!==x.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var u=e.offsetHeight-(parseFloat(x.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(x.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(x.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(x.getPropertyValue(e,"paddingBottom"))||0);return c(),u}if("width"===n&&"border-box"!==x.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var d=e.offsetWidth-(parseFloat(x.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(x.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(x.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(x.getPropertyValue(e,"paddingRight"))||0);return c(),d}}var h;h=a(e)===i?t.getComputedStyle(e,null):a(e).computedStyle?a(e).computedStyle:a(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===n&&(n="borderTopColor"),s=9===m&&"filter"===n?h.getPropertyValue(n):h[n],(""===s||null===s)&&(s=e.style[n]),c()}if("auto"===s&&/^(top|right|bottom|left)$/i.test(n)){var f=r(e,"position");("fixed"===f||"absolute"===f&&/top|left/i.test(n))&&(s=p(e).position()[n]+"px")}return s}var l;if(x.Hooks.registered[n]){var c=n,u=x.Hooks.getRoot(c);s===i&&(s=x.getPropertyValue(e,x.Names.prefixCheck(u)[0])),x.Normalizations.registered[u]&&(s=x.Normalizations.registered[u]("extract",e,s)),l=x.Hooks.extractValue(c,s)}else if(x.Normalizations.registered[n]){var d,h;d=x.Normalizations.registered[n]("name",e),"transform"!==d&&(h=r(e,x.Names.prefixCheck(d)[0]),x.Values.isCSSNullValue(h)&&x.Hooks.templates[n]&&(h=x.Hooks.templates[n][1])),l=x.Normalizations.registered[n]("extract",e,h)}if(!/^[\d-]/.test(l)){var f=a(e);if(f&&f.isSVG&&x.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=e.getBBox()[n]}catch(g){l=0}else l=e.getAttribute(n);else l=r(e,x.Names.prefixCheck(n)[0])}return x.Values.isCSSNullValue(l)&&(l=0),_.debug>=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(e,n,i,s,o){var r=n;if("scroll"===n)o.container?o.container["scroll"+o.direction]=i:"Left"===o.direction?t.scrollTo(i,o.alternateValue):t.scrollTo(o.alternateValue,i);else if(x.Normalizations.registered[n]&&"transform"===x.Normalizations.registered[n]("name",e))x.Normalizations.registered[n]("inject",e,i),r="transform",i=a(e).transformCache[n];else{if(x.Hooks.registered[n]){var l=n,c=x.Hooks.getRoot(n);s=s||x.getPropertyValue(e,c),i=x.Hooks.injectValue(l,i,s),n=c}if(x.Normalizations.registered[n]&&(i=x.Normalizations.registered[n]("inject",e,i),n=x.Normalizations.registered[n]("name",e)),r=x.Names.prefixCheck(n)[0],8>=m)try{e.style[r]=i}catch(u){_.debug&&console.log("Browser does not support ["+i+"] for ["+r+"]")}else{var d=a(e);d&&d.isSVG&&x.Names.SVGAttribute(n)?e.setAttribute(n,i):e.style[r]=i}_.debug>=2&&console.log("Set "+n+" ("+r+"): "+i)}return[r,i]},flushTransformCache:function(e){var t="",n=a(e);if((m||_.State.isAndroid&&!_.State.isChrome)&&n&&n.isSVG){var i=function(t){return parseFloat(x.getPropertyValue(e,t))},s={translate:[i("translateX"),i("translateY")],skewX:[i("skewX")],skewY:[i("skewY")],scale:1!==i("scale")?[i("scale"),i("scale")]:[i("scaleX"),i("scaleY")],rotate:[i("rotateZ"),0,0]};p.each(a(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),s[e]&&(t+=e+"("+s[e].join(" ")+") ",delete s[e])})}else{var o,r;p.each(a(e).transformCache,function(n){return o=a(e).transformCache[n],"transformPerspective"===n?(r=o,!0):(9===m&&"rotateZ"===n&&(n="rotate"),void(t+=n+o+" "))}),r&&(t="perspective"+r+" "+t)}x.setPropertyValue(e,"transform",t)}};x.Hooks.register(),x.Normalizations.register(),_.hook=function(e,t,n){var s;return e=o(e),p.each(e,function(e,o){if(a(o)===i&&_.init(o),n===i)s===i&&(s=x.getPropertyValue(o,t));else{var r=x.setPropertyValue(o,t,n);"transform"===r[0]&&_.CSS.flushTransformCache(o),s=r}}),s};var M=function(){function e(){return u?C.promise||null:m}function s(e,s){function o(o){var u,f;if(l.begin&&0===A)try{l.begin.call(v,v)}catch(m){setTimeout(function(){throw m},1)}if("scroll"===E){var g,T,S,M=/^x$/i.test(l.axis)?"Left":"Top",D=parseFloat(l.offset)||0;l.container?w.isWrapped(l.container)||w.isNode(l.container)?(l.container=l.container[0]||l.container,g=l.container["scroll"+M],S=g+p(e).position()[M.toLowerCase()]+D):l.container=null:(g=_.State.scrollAnchor[_.State["scrollProperty"+M]],T=_.State.scrollAnchor[_.State["scrollProperty"+("Left"===M?"Top":"Left")]],S=p(e).offset()[M.toLowerCase()]+D),c={scroll:{rootPropertyValue:!1,startValue:g,currentValue:g,endValue:S,unitType:"",easing:l.easing,scrollData:{container:l.container,direction:M,alternateValue:T}},element:e},_.debug&&console.log("tweensContainer (scroll): ",c.scroll,e)}else if("reverse"===E){if(u=a(e),!u)return;if(!u.tweensContainer)return void p.dequeue(e,l.queue);"none"===u.opts.display&&(u.opts.display="auto"),"hidden"===u.opts.visibility&&(u.opts.visibility="visible"),u.opts.loop=!1,u.opts.begin=null,u.opts.complete=null,k.easing||delete l.easing,k.duration||delete l.duration,l=p.extend({},u.opts,l),f=p.extend(!0,{},u?u.tweensContainer:null);for(var O in f)if(f.hasOwnProperty(O)&&"element"!==O){var L=f[O].startValue;f[O].startValue=f[O].currentValue=f[O].endValue,f[O].endValue=L,w.isEmptyObject(k)||(f[O].easing=l.easing),_.debug&&console.log("reverse tweensContainer ("+O+"): "+JSON.stringify(f[O]),e)}c=f}else if("start"===E){u=a(e),u&&u.tweensContainer&&u.isAnimating===!0&&(f=u.tweensContainer);var H=function(t,n){var i,o,a;return w.isFunction(t)&&(t=t.call(e,s,P)),w.isArray(t)?(i=t[0],!w.isArray(t[1])&&/^[\d-]/.test(t[1])||w.isFunction(t[1])||x.RegEx.isHex.test(t[1])?a=t[1]:w.isString(t[1])&&!x.RegEx.isHex.test(t[1])&&_.Easings[t[1]]||w.isArray(t[1])?(o=n?t[1]:d(t[1],l.duration),a=t[2]):a=t[1]||t[2]):i=t,n||(o=o||l.easing),w.isFunction(i)&&(i=i.call(e,s,P)),w.isFunction(a)&&(a=a.call(e,s,P)),[i||0,o,a]},$=function(s,o){var a,d=x.Hooks.getRoot(s),h=!1,m=o[0],g=o[1],v=o[2];if(!(u&&u.isSVG||"tween"===d||x.Names.prefixCheck(d)[1]!==!1||x.Normalizations.registered[d]!==i))return void(_.debug&&console.log("Skipping ["+d+"] due to a lack of browser support."));(l.display!==i&&null!==l.display&&"none"!==l.display||l.visibility!==i&&"hidden"!==l.visibility)&&/opacity|filter/.test(s)&&!v&&0!==m&&(v=0),l._cacheValues&&f&&f[s]?(v===i&&(v=f[s].endValue+f[s].unitType),h=u.rootPropertyValueCache[d]):x.Hooks.registered[s]?v===i?(h=x.getPropertyValue(e,d),v=x.getPropertyValue(e,s,h)):h=x.Hooks.templates[d][1]:v===i&&(v=x.getPropertyValue(e,s));var y,b,k,T=!1,S=function(e,t){var n,i;return i=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=x.Values.getUnitType(e)),[i,n]};if(v!==m&&w.isString(v)&&w.isString(m)){a="";var C=0,M=0,P=[],A=[],D=0,O=0,E=0;for(v=x.Hooks.fixColors(v),m=x.Hooks.fixColors(m);C<v.length&&M<m.length;){var L=v[C],H=m[M];if(/[\d\.-]/.test(L)&&/[\d\.-]/.test(H)){for(var $=L,I=H,N=".",R=".";++C<v.length;){if(L=v[C],L===N)N="..";else if(!/\d/.test(L))break;$+=L}for(;++M<m.length;){if(H=m[M],H===R)R="..";else if(!/\d/.test(H))break;I+=H}var j=x.Hooks.getUnit(v,C),V=x.Hooks.getUnit(m,M);if(C+=j.length,M+=V.length,j===V)$===I?a+=$+j:(a+="{"+P.length+(O?"!":"")+"}"+j,P.push(parseFloat($)),A.push(parseFloat(I)));else{var F=parseFloat($),W=parseFloat(I);a+=(5>D?"calc":"")+"("+(F?"{"+P.length+(O?"!":"")+"}":"0")+j+" + "+(W?"{"+(P.length+(F?1:0))+(O?"!":"")+"}":"0")+V+")",F&&(P.push(F),A.push(0)),W&&(P.push(0),A.push(W))}}else{if(L!==H){D=0;break}a+=L,C++,M++,0===D&&"c"===L||1===D&&"a"===L||2===D&&"l"===L||3===D&&"c"===L||D>=4&&"("===L?D++:(D&&5>D||D>=4&&")"===L&&--D<5)&&(D=0),0===O&&"r"===L||1===O&&"g"===L||2===O&&"b"===L||3===O&&"a"===L||O>=3&&"("===L?(3===O&&"a"===L&&(E=1),O++):E&&","===L?++E>3&&(O=E=0):(E&&(E?5:4)>O||O>=(E?4:3)&&")"===L&&--O<(E?5:4))&&(O=E=0)}}(C!==v.length||M!==m.length)&&(_.debug&&console.error('Trying to pattern match mis-matched strings ["'+m+'", "'+v+'"]'),a=i),a&&(P.length?(_.debug&&console.log('Pattern found "'+a+'" -> ',P,A,"["+v+","+m+"]"),v=P,m=A,b=k=""):a=i)}a||(y=S(s,v),v=y[0],k=y[1],y=S(s,m),m=y[0].replace(/^([+-\/*])=/,function(e,t){return T=t,""}),b=y[1],v=parseFloat(v)||0,m=parseFloat(m)||0,"%"===b&&(/^(fontSize|lineHeight)$/.test(s)?(m/=100,b="em"):/^scale/.test(s)?(m/=100,b=""):/(Red|Green|Blue)$/i.test(s)&&(m=m/100*255,b="")));var z=function(){var i={myParent:e.parentNode||n.body,position:x.getPropertyValue(e,"position"),fontSize:x.getPropertyValue(e,"fontSize")},s=i.position===Y.lastPosition&&i.myParent===Y.lastParent,o=i.fontSize===Y.lastFontSize;Y.lastParent=i.myParent,Y.lastPosition=i.position,Y.lastFontSize=i.fontSize;var a=100,r={};if(o&&s)r.emToPx=Y.lastEmToPx,r.percentToPxWidth=Y.lastPercentToPxWidth,r.percentToPxHeight=Y.lastPercentToPxHeight;else{var l=u&&u.isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");_.init(l),i.myParent.appendChild(l),p.each(["overflow","overflowX","overflowY"],function(e,t){_.CSS.setPropertyValue(l,t,"hidden")}),_.CSS.setPropertyValue(l,"position",i.position),_.CSS.setPropertyValue(l,"fontSize",i.fontSize),_.CSS.setPropertyValue(l,"boxSizing","content-box"),p.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){_.CSS.setPropertyValue(l,t,a+"%")}),_.CSS.setPropertyValue(l,"paddingLeft",a+"em"),r.percentToPxWidth=Y.lastPercentToPxWidth=(parseFloat(x.getPropertyValue(l,"width",null,!0))||1)/a,r.percentToPxHeight=Y.lastPercentToPxHeight=(parseFloat(x.getPropertyValue(l,"height",null,!0))||1)/a,r.emToPx=Y.lastEmToPx=(parseFloat(x.getPropertyValue(l,"paddingLeft"))||1)/a,i.myParent.removeChild(l)}return null===Y.remToPx&&(Y.remToPx=parseFloat(x.getPropertyValue(n.body,"fontSize"))||16),null===Y.vwToPx&&(Y.vwToPx=parseFloat(t.innerWidth)/100,Y.vhToPx=parseFloat(t.innerHeight)/100),r.remToPx=Y.remToPx,r.vwToPx=Y.vwToPx,r.vhToPx=Y.vhToPx,_.debug>=1&&console.log("Unit ratios: "+JSON.stringify(r),e),r};if(/[\/*]/.test(T))b=k;else if(k!==b&&0!==v)if(0===m)b=k;else{r=r||z();var q=/margin|padding|left|right|width|text|word|letter/i.test(s)||/X$/.test(s)||"x"===s?"x":"y";switch(k){case"%":v*="x"===q?r.percentToPxWidth:r.percentToPxHeight;break;case"px":break;default:v*=r[k+"ToPx"]}switch(b){case"%":v*=1/("x"===q?r.percentToPxWidth:r.percentToPxHeight);break;case"px":break;default:v*=1/r[b+"ToPx"]}}switch(T){case"+":m=v+m;break;case"-":m=v-m;break;case"*":m=v*m;break;case"/":m=v/m}c[s]={rootPropertyValue:h,startValue:v,currentValue:v,endValue:m,unitType:b,easing:g},a&&(c[s].pattern=a),_.debug&&console.log("tweensContainer ("+s+"): "+JSON.stringify(c[s]),e)};for(var I in y)if(y.hasOwnProperty(I)){var N=x.Names.camelCase(I),j=H(y[I]);if(b(x.Lists.colors,N)){var V=j[0],F=j[1],W=j[2];if(x.RegEx.isHex.test(V)){for(var z=["Red","Green","Blue"],q=x.Values.hexToRgb(V),U=W?x.Values.hexToRgb(W):i,B=0;B<z.length;B++){var G=[q[B]];F&&G.push(F),U!==i&&G.push(U[B]),$(N+z[B],G)}continue}}$(N,j)}c.element=e}c.element&&(x.Values.addClass(e,"velocity-animating"),R.push(c),u=a(e),u&&(""===l.queue&&(u.tweensContainer=c,u.opts=l),u.isAnimating=!0),A===P-1?(_.State.calls.push([R,v,l,null,C.resolver,null,0]),_.State.isTicking===!1&&(_.State.isTicking=!0,h())):A++)}var r,l=p.extend({},_.defaults,k),c={};switch(a(e)===i&&_.init(e),parseFloat(l.delay)&&l.queue!==!1&&p.queue(e,l.queue,function(t,n){if(n===!0)return!0;_.velocityQueueEntryFlag=!0;var i=_.State.delayedElements.count++;_.State.delayedElements[i]=e;var s=function(e){return function(){_.State.delayedElements[e]=!1,t()}}(i);a(e).delayBegin=(new Date).getTime(),a(e).delay=parseFloat(l.delay),a(e).delayTimer={setTimeout:setTimeout(t,parseFloat(l.delay)),next:s}}),l.duration.toString().toLowerCase()){case"fast":l.duration=200;break;case"normal":l.duration=T;break;case"slow":l.duration=600;break;default:l.duration=parseFloat(l.duration)||1}if(_.mock!==!1&&(_.mock===!0?l.duration=l.delay=1:(l.duration*=parseFloat(_.mock)||1,l.delay*=parseFloat(_.mock)||1)),l.easing=d(l.easing,l.duration),l.begin&&!w.isFunction(l.begin)&&(l.begin=null),l.progress&&!w.isFunction(l.progress)&&(l.progress=null),l.complete&&!w.isFunction(l.complete)&&(l.complete=null),l.display!==i&&null!==l.display&&(l.display=l.display.toString().toLowerCase(),"auto"===l.display&&(l.display=_.CSS.Values.getDisplayType(e))),l.visibility!==i&&null!==l.visibility&&(l.visibility=l.visibility.toString().toLowerCase()),l.mobileHA=l.mobileHA&&_.State.isMobile&&!_.State.isGingerbread,l.queue===!1)if(l.delay){var u=_.State.delayedElements.count++;_.State.delayedElements[u]=e;var f=function(e){return function(){_.State.delayedElements[e]=!1,o()}}(u);a(e).delayBegin=(new Date).getTime(),a(e).delay=parseFloat(l.delay),a(e).delayTimer={setTimeout:setTimeout(o,parseFloat(l.delay)),next:f}}else o();else p.queue(e,l.queue,function(e,t){return t===!0?(C.promise&&C.resolver(v),!0):(_.velocityQueueEntryFlag=!0,void o(e))});""!==l.queue&&"fx"!==l.queue||"inprogress"===p.queue(e)[0]||p.dequeue(e)}var c,u,m,g,v,y,k,S=arguments[0]&&(arguments[0].p||p.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||w.isString(arguments[0].properties));w.isWrapped(this)?(u=!1,g=0,v=this,m=this):(u=!0,g=1,v=S?arguments[0].elements||arguments[0].e:arguments[0]);var C={promise:null,resolver:null,rejecter:null};if(u&&_.Promise&&(C.promise=new _.Promise(function(e,t){C.resolver=e,C.rejecter=t})),S?(y=arguments[0].properties||arguments[0].p,k=arguments[0].options||arguments[0].o):(y=arguments[g],k=arguments[g+1]),v=o(v),!v)return void(C.promise&&(y&&k&&k.promiseRejectEmpty===!1?C.resolver():C.rejecter()));var P=v.length,A=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(y)&&!p.isPlainObject(k)){var D=g+1;k={};for(var O=D;O<arguments.length;O++)w.isArray(arguments[O])||!/^(fast|normal|slow)$/i.test(arguments[O])&&!/^\d/.test(arguments[O])?w.isString(arguments[O])||w.isArray(arguments[O])?k.easing=arguments[O]:w.isFunction(arguments[O])&&(k.complete=arguments[O]):k.duration=arguments[O]}var E;switch(y){case"scroll":E="scroll";break;case"reverse":E="reverse";break;case"pause":var L=(new Date).getTime();return p.each(v,function(e,t){r(t,L)}),p.each(_.State.calls,function(e,t){var n=!1;t&&p.each(t[1],function(e,s){var o=k===i?"":k;return o===!0||t[2].queue===o||k===i&&t[2].queue===!1?(p.each(v,function(e,i){return i===s?(t[5]={resume:!1},n=!0,!1):void 0}),n?!1:void 0):!0})}),e();case"resume":return p.each(v,function(e,t){l(t,L)}),p.each(_.State.calls,function(e,t){var n=!1;t&&p.each(t[1],function(e,s){var o=k===i?"":k;return(o===!0||t[2].queue===o||k===i&&t[2].queue===!1)&&t[5]?(p.each(v,function(e,i){return i===s?(t[5].resume=!0,n=!0,!1):void 0}),n?!1:void 0):!0})}),e();case"finish":case"finishAll":case"stop":p.each(v,function(e,t){a(t)&&a(t).delayTimer&&(clearTimeout(a(t).delayTimer.setTimeout),a(t).delayTimer.next&&a(t).delayTimer.next(),delete a(t).delayTimer),"finishAll"!==y||k!==!0&&!w.isString(k)||(p.each(p.queue(t,w.isString(k)?k:""),function(e,t){w.isFunction(t)&&t()}),p.queue(t,w.isString(k)?k:"",[]))});var H=[];return p.each(_.State.calls,function(e,t){t&&p.each(t[1],function(n,s){var o=k===i?"":k;return o===!0||t[2].queue===o||k===i&&t[2].queue===!1?void p.each(v,function(n,i){if(i===s)if((k===!0||w.isString(k))&&(p.each(p.queue(i,w.isString(k)?k:""),function(e,t){w.isFunction(t)&&t(null,!0)}),p.queue(i,w.isString(k)?k:"",[])),"stop"===y){var r=a(i);r&&r.tweensContainer&&(o===!0||""===o)&&p.each(r.tweensContainer,function(e,t){t.endValue=t.currentValue}),H.push(e)}else("finish"===y||"finishAll"===y)&&(t[2].duration=1)}):!0})}),"stop"===y&&(p.each(H,function(e,t){f(t,!0)}),C.promise&&C.resolver(v)),e();default:if(!p.isPlainObject(y)||w.isEmptyObject(y)){if(w.isString(y)&&_.Redirects[y]){c=p.extend({},k);var $=c.duration,I=c.delay||0;return c.backwards===!0&&(v=p.extend(!0,[],v).reverse()),p.each(v,function(e,t){parseFloat(c.stagger)?c.delay=I+parseFloat(c.stagger)*e:w.isFunction(c.stagger)&&(c.delay=I+c.stagger.call(t,e,P)),c.drag&&(c.duration=parseFloat($)||(/^(callout|transition)/.test(y)?1e3:T),c.duration=Math.max(c.duration*(c.backwards?1-e/P:(e+1)/P),.75*c.duration,200)),_.Redirects[y].call(t,t,c||{},e,P,v,C.promise?C:i)}),e()}var N="Velocity: First argument ("+y+") was not a property map, a known action, or a registered redirect. Aborting.";return C.promise?C.rejecter(new Error(N)):t.console&&console.log(N),e()}E="start"}var Y={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},R=[];p.each(v,function(e,t){w.isNode(t)&&s(t,e)}),c=p.extend({},_.defaults,k),c.loop=parseInt(c.loop,10);var j=2*c.loop-1;if(c.loop)for(var V=0;j>V;V++){var F={delay:c.delay,progress:c.progress};V===j-1&&(F.display=c.display,F.visibility=c.visibility,F.complete=c.complete),M(v,"reverse",F)}return e()};_=p.extend(M,_),_.animate=M;var P=t.requestAnimationFrame||g;if(!_.State.isMobile&&n.hidden!==i){var A=function(){n.hidden?(P=function(e){return setTimeout(function(){e(!0)},16)},h()):P=t.requestAnimationFrame||g};A(),n.addEventListener("visibilitychange",A)}return e.Velocity=_,e!==t&&(e.fn.velocity=M,e.fn.velocity.defaults=_.defaults),p.each(["Down","Up"],function(e,t){_.Redirects["slide"+t]=function(e,n,s,o,a,r){var l=p.extend({},n),c=l.begin,u=l.complete,d={},h={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===i&&(l.display="Down"===t?"inline"===_.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){0===s&&c&&c.call(a,a);for(var n in h)if(h.hasOwnProperty(n)){d[n]=e.style[n];var i=x.getPropertyValue(e,n);h[n]="Down"===t?[i,0]:[0,i]}d.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in d)d.hasOwnProperty(t)&&(e.style[t]=d[t]);s===o-1&&(u&&u.call(a,a),r&&r.resolver(a))},_(e,h,l)}}),p.each(["In","Out"],function(e,t){_.Redirects["fade"+t]=function(e,n,s,o,a,r){var l=p.extend({},n),c=l.complete,u={opacity:"In"===t?1:0};0!==s&&(l.begin=null),l.complete=s!==o-1?null:function(){c&&c.call(a,a),r&&r.resolver(a)},l.display===i&&(l.display="In"===t?"auto":"none"),_(this,u,l)}}),_}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)})},{}],11:[function(e,t,n){function i(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var i in n)s.call(n,i)&&(e[i]=n[i])}return e}t.exports=i;var s=Object.prototype.hasOwnProperty},{}],12:[function(e,t,n){"use strict";function i(e,t){t.forEach(function(t){e.classList.add(t)})}function s(e,t){t.forEach(function(t){e.appendChild(t)})}function o(){var e=document.createElement("button"),t=document.createElement("span"),n=document.createElement("span"),o=document.createElement("span"),a=document.createElement("span");return i(e,["carousel__pause","is-playing"]),i(t,["icon","icon--slider-pause-small"]),i(n,["icon","icon--slider-pause-large"]),i(o,["icon","icon--slider-play-small"]),i(a,["icon","icon--slider-play-large"]),s(e,[t,n,o,a]),e.setAttribute("aria-label","Aturar/iniciar carrusel"),e}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=void 0;var a=function(){var e=this;e.config={carousel:$("[data-carousel]"),slide:$("[data-carousel-slide]"),slickSettings:{arrows:!1,dots:!0,dotsClass:"carousel__dots",easing:"ease",mobileFirst:!0,swipe:!0,autoplaySpeed:6e3,responsive:[{breakpoint:768,settings:{swipe:!1,arrows:!0,prevArrow:'<button type="button" aria-label="Diapositiva anterior" class="carousel__arrow -left"><span class="icon icon--carousel--prev"></span></button>',nextArrow:'<button type="button" aria-label="Diapositiva següent" class="carousel__arrow -right"><span class="icon icon--carousel--next"></span></button>'}}]},fadeOnSlide:$("[data-fade-on-slide]")};var t=e.config.carousel,n=e.config.slickSettings;e.initCarousel=function(t){var i="true"===t.attr("data-autoplay");i&&(n.autoplay=!0),"true"===t.attr("data-adaptive-height")&&(n.adaptiveHeight=!0);var s=function(){var e=$(".carousel__dots").find("button");Array.prototype.forEach.call(e,function(e){var t=e.textContent,n="Diapositiva ".concat(t);e.textContent=n})},a=function(){var e=o();t[0].appendChild(e);var n=function(n){n.preventDefault(),e.classList.contains("is-playing")?(e.classList.remove("is-playing"),t.slick("slickPause")):(e.classList.add("is-playing"),t.slick("slickNext"),t.slick("slickPlay"))};e.addEventListener("click",n)},r=function(){s(),i&&a();var e=document.querySelectorAll('.slick-cloned [tabindex="0"]');e.forEach(function(e){e.removeAttribute("tabindex")})};t.on("init",r),t.on("breakpoint",r),t.slick(n),e.fadeOnSlide(t)},e.fadeOnSlide=function(t){var n=t.find(e.config.fadeOnSlide);n.addClass("is-visible"),t.on("afterChange",function(){n.addClass("is-visible")}),t.on("beforeChange",function(){n.removeClass("is-visible")})},e.init=function(){t.each(function(){var t=$(this),n=t.find(e.config.slide);n.length>1&&e.initCarousel(t)})}},r=a;n["default"]=r},{}],13:[function(e,t,n){"use strict";var i=e("../constants/constants"),s=function(){var e=this;e.config={button:$("[data-collapse]"),containerEl:$(".collapse")};var t=e.config.button,n=e.config.containerEl;e.clickHandler=function(){t.each(function(){var t=$(this),n=$(t.attr("data-collapse"));t.on("click",(new i).THROTTLE(function(i){t.attr("data-collapse-parent")&&e.accordion(t,n),t.is("a, a *")&&i.preventDefault();var s=function(){t.attr("data-collapse-alt-text")&&e.altText(t)};e.containerVisibility(n,t,s)},300))})},e.containerVisibility=function(t,n,i){t.hasClass("is-visible")?e.hideContainer(t,n,i):e.showContainer(t,n,i)},e.accordion=function(i,s){var o=$(i.attr("data-collapse-parent")),a=o.find(n.not(s)),r=o.find(t.not(i));e.hideContainer(a,r)},e.altText=function(e){var t=e.text(),n=e.attr("data-collapse-alt-text");e.text(n),e.attr("data-collapse-alt-text",t)},e.showContainer=function(e,t,n){if(!e.hasClass("is-visible")&&!e.hasClass("velocity-animating")){var i=$("[data-sticky-sidebar]");if(i.length){var s=$("[data-sticky-sidebar]").parent(),o=s.height();s.css("height",o)}t.addClass("is-active"),e.addClass("is-visible"),e.velocity("slideDown",{duration:400,easing:"easeOutQuart"}).velocity({opacity:"1"},{duration:300,complete:function(){t.attr("aria-expanded","true"),"function"==typeof n&&n(),i.length&&(s.css("height","auto"),$(document.body).trigger("sticky_kit:recalc"))}})}},e.hideContainer=function(e,t,n){e.hasClass("is-visible")&&!e.hasClass("velocity-animating")&&(t.removeClass("is-active"),e.removeClass("is-visible"),e.velocity({opacity:"0"},{duration:200}).velocity("slideUp",{duration:400,easing:"easeOutQuart",complete:function(){t.attr("aria-expanded","false"),"function"==typeof n&&n(),$(document.body).trigger("sticky_kit:recalc")}}))},e.init=function(){e.clickHandler()}};t.exports=s},{"../constants/constants":14}],14:[function(e,t,n){"use strict";var i=function s(){this.MEDIA_QUERIES={TINY:"(min-width:     30rem)",SMALLER:"(min-width:     40rem)",SMALL:"(min-width:     48rem)",TABLET:"(min-width:  56.25rem)",MEDIUM:"(min-width:  68.75rem)",LARGE:"(min-width:     75rem)",LARGER:"(min-width:  81.25rem)",XXLARGE:"(min-width:    100rem)"},this.RANDOM_ID=function(){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;5>n;n++)e+=t.charAt(Math.floor(Math.random()*t.length));return e},this.ARIA_EXPANDED_TOGGLE=function(e,t){if(e[0].hasAttribute("aria-expanded"))if("undefined"==typeof t){var n=e.attr("aria-expanded");"false"===n?e.attr("aria-expanded",!0):e.attr("aria-expanded",!1)}else e.attr("aria-expanded",t)},this.THROTTLE=function(e,t,n){var i,s,o,a,r=0,l=function(){return(new Date).getTime()};n||(n={});var c=function(){r=n.leading===!1?0:l(),i=null,a=e.apply(s,o),i||(s=o=null)},u=function(){r||n.leading!==!1||(r=l());var u=t-(l()-r);return s=this,o=arguments,0>=u||u>t?(i&&(clearTimeout(i),i=null),r=l(),a=e.apply(s,o),i||(s=o=null)):i||n.trailing===!1||(i=setTimeout(c,u)),a};return u.cancel=function(){clearTimeout(i),r=0,i=s=o=null},u},this.DEBOUNCE=function(e,t,n){var i,s,o=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),s=0;n>s;s++)i[s]=arguments[s+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var o=Array(t+1);for(s=0;t>s;s++)o[s]=arguments[s];return o[t]=i,e.apply(this,o)}},a=o(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),r=function(t,n){i=null,n&&(s=e.apply(t,n))},l=o(function(o){if(i&&clearTimeout(i),n){var l=!i;i=setTimeout(r,t),l&&(s=e.apply(this,o))}else i=a(r,t,this,o);return s});return l.cancel=function(){clearTimeout(i),i=null},l},this.SCROLLBAR_WIDTH=function(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var i=e.offsetWidth;return n==i&&(i=t.clientWidth),document.body.removeChild(t),n-i},this.MATCHMEDIA_HANDLER=function(e,t,n){var i=(new s).MEDIA_QUERIES[e],o=window.matchMedia(i),a=function(e){e.matches?"function"==typeof t&&t():"function"==typeof n&&n()};o.addListener(a),a(o)}};t.exports=i},{}],15:[function(e,t,n){"use strict";var i=e("../sidebar-collapse/sidebar-collapse"),s=function(){var e=this;e.config={button:$(".contact-card__button"),content:$(".contact-card__content"),eventName:"contactCard"},e.init=function(){new i(e.config).init()}};t.exports=s},{"../sidebar-collapse/sidebar-collapse":45}],16:[function(e,t,n){"use strict";e("velocity-animate");var i=e("../cookies-manager/cookies-manager"),s=function(){var e=this;e.config={alert:$(".cookie-alert"),close:$("#cookieAlertClose")};var t=e.config.alert,n=e.config.close;e.preferencesHandler=function(){var t=(new i).checkPreferencesCookie();t===!1&&(e.showAlert(),e.clickHandler())},e.clickHandler=function(){n.on("click",function(t){t.preventDefault(),e.hideAlert(),(new i).setPreferencesCookie(),(new i).acceptAll()})},e.showAlert=function(){t.velocity({translateY:["0%","100%"]},{display:"block"})},e.hideAlert=function(){t.velocity({translateY:"100%"},{display:"none"})},e.init=function(){e.preferencesHandler()}};t.exports=s},{"../cookies-manager/cookies-manager":17,"velocity-animate":10}],17:[function(e,t,n){"use strict";function i(e,t){return a(e)||o(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){var n=[],i=!0,s=!1,o=void 0;try{for(var a,r=e[Symbol.iterator]();!(i=(a=r.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==r["return"]||r["return"]()}finally{if(s)throw o}}return n}function a(e){return Array.isArray(e)?e:void 0}e("velocity-animate");var r=e("./lib/modal"),l=e("./lib/alert"),c=function(){var e=this,t={preferences:{storage:"udgCookiesPreferences",toggle:document.querySelector("#cookies-preferences"),"class":"cookies-preferences"},analytics:{storage:"udgCookiesAnalytics",toggle:document.querySelector("#cookies-analytics"),"class":"cookies-analytics"},marketing:{storage:"udgCookiesMarketing",toggle:document.querySelector("#cookies-marketing"),"class":"cookies-marketing"}};e.userPreferencesShow=function(){console.log("******");for(var e=Object.entries(t),n=0;n<e.length;n++){var s=i(e[n],2),o=s[0],a=s[1];console.log(o+": "+localStorage.getItem(a.storage))}},e.initPreferences=function(){Object.keys(t).forEach(function(n){var i=t[n];e.checkPreferencesCookie()||localStorage.removeItem(i.storage),i.toggle.checked="Accept"===localStorage.getItem(i.storage)?!0:!1})},e.acceptAll=function(){Object.keys(t).forEach(function(e){var n=t[e];n.toggle.checked=!0,localStorage.setItem(n.storage,"Accept")}),e.setPreferencesCookie()},e.savePreferences=function(){Object.keys(t).forEach(function(e){var n=t[e];n.toggle.checked?localStorage.setItem(n.storage,"Accept"):localStorage.setItem(n.storage,"Reject")}),e.setPreferencesCookie()},e.scriptsHandler=function(){Object.keys(t).forEach(function(e){var n,i,s,o,a,r=t[e],l=document.querySelectorAll("script."+r["class"]);for(n=document.createDocumentFragment(),s=0;s<l.length;s++){var c=localStorage.getItem(r.storage);if("Accept"===c)if(l[s].hasAttribute("data-src"))i=document.createElement("script"),i.src=l[s].getAttribute("data-src"),n.appendChild(i);else{for(i=document.createElement("script"),i.type="text/javascript",o=0;o<l[s].attributes.length;o++)a=l[s].attributes[o],a.specified&&"type"!=a.name&&"class"!=a.name&&i.setAttribute(a.name,a.value);i.innerHTML=l[s].innerHTML,n.appendChild(i)}}document.body.appendChild(n)})},e.iframesHandler=function(){Object.keys(t).forEach(function(e){var n,i=t[e],s=localStorage.getItem(i.storage),o=document.querySelectorAll("iframe."+i["class"]),a=document.getElementsByClassName(i["class"]+"--placeholder");for(n=0;n<o.length;n++){var r=o[n];"Accept"===s&&(r.src=r.getAttribute("data-src"))}for(n=0;n<a.length;n++){var l=a[n];l.style.display="Accept"===s?"none":"block"}})},e.setPreferencesCookie=function(){var t=new Date(Date.now());t.setFullYear(t.getFullYear()+1),t=t.toUTCString(),document.cookie="udgCookiesPreferences=set; path=/; expires="+t,(new l).hideAlert(),e.scriptsHandler(),e.iframesHandler()},e.checkPreferencesCookie=function(){return document.cookie.split(";").some(function(e){return e.trim().startsWith("udgCookiesPreferences=")})?!0:!1};var n=$(".cookies-manager__btn-open"),s=$(".cookies-manager__btn-save"),o=$(".cookies-manager__btn-accept"),a=$(".cookies-manager__close");e.eventHandlers=function(){n.on("click",function(t){t.preventDefault(),e.initPreferences(),(new r).showModal()}),o.on("click",function(t){t.preventDefault(),(new r).hideModal(),e.acceptAll()}),s.on("click",function(t){t.preventDefault(),(new r).hideModal(),e.savePreferences()}),a.on("click",function(e){e.preventDefault(),(new r).hideModal()})},e.init=function(){e.initPreferences(),e.scriptsHandler(),e.iframesHandler(),e.eventHandlers()}};t.exports=c},{"./lib/alert":18,"./lib/modal":19,"velocity-animate":10}],18:[function(e,t,n){"use strict";e("velocity-animate");var i=function(){var e=this,t=$(".cookie-alert");e.hideAlert=function(){t.velocity({translateY:"100%"},{display:"none"})}};t.exports=i},{"velocity-animate":10}],19:[function(e,t,n){"use strict";var i=function(){var e=this,t=$(".cookies-manager"),n=$(".cookies-manager__window"),i=$(".cookies-manager__overlay");e.showModal=function(){n.hasClass("velocity-animating")||i.hasClass("velocity-animating")||(t.css("display","block"),i.velocity({opacity:"1"},{duration:"300ms",complete:function(){t.trigger("modal-is-open"),$("html").addClass("modal-is-open"),n.velocity({opacity:"1",translateY:["0%","-30%"]},{easing:[400,45]})}}))},e.hideModal=function(){n.hasClass("velocity-animating")||i.hasClass("velocity-animating")||n.velocity({opacity:"0",translateY:["-30%","0%"]},{duration:"200ms",complete:function(){i.velocity({opacity:"0"},{duration:"150ms",complete:function(){t.css("display","none"),t.trigger("modal-is-closed"),$("html").removeClass("modal-is-open")}})}})},e.init=function(){}};t.exports=i},{}],20:[function(e,t,n){"use strict";var i=e("../constants/constants"),s=function(){var e=this;e.config={button:$(".filters__show-content"),content:$(".filters__list")};var t=e.config.button,n=e.config.content;e.setButtonAttrs=function(){t.attr("role","button"),t.attr("aria-pressed","false")},e.clickHandler=function(){t.on("click.pubSearch",(new i).THROTTLE(function(){var t=$(this);e.contentVisibility(t)},300))},e.contentVisibility=function(t){n.hasClass("is-visible")&&!n.hasClass("velocity-animating")?(e.hideContent(),t.removeClass("is-active")):n.hasClass("velocity-animating")||(e.showContent(),t.addClass("is-active"))},e.showContent=function(){n.addClass("is-visible"),n.velocity("slideDown",{duration:400,easing:"easeOutQuart"}),n.velocity({opacity:1},{duration:200})},e.hideContent=function(){n.removeClass("is-visible"),n.velocity({opacity:0},{duration:150}),n.velocity("slideUp",{duration:400,easing:"easeOutQuart"})},e.reset=function(){t.off("click.pubSearch"),t.removeAttr("role aria-pressed"),t.removeClass("is-active"),n.removeAttr("style"),n.removeClass("is-visible")},e.init=function(){var t=function(){e.reset()},n=function(){e.setButtonAttrs(),e.clickHandler()};(new i).MATCHMEDIA_HANDLER("SMALL",t,n)}};t.exports=s},{"../constants/constants":14}],21:[function(e,t,n){"use strict";var i=e("fontfaceobserver"),s=function(){var e=this;e.config={fonts:[{className:"fonts-loaded-akkurat",observer:new i("Akkurat")},{className:"fonts-loaded-akkurat-italic",observer:new i("Akkurat",{weight:400,style:"italic"})},{className:"fonts-loaded-akkurat-light",observer:new i("Akkurat",{weight:300})},{className:"fonts-loaded-akkurat-bold",observer:new i("Akkurat",{weight:700})},{className:"fonts-loaded-akkurat-bold-italic",observer:new i("Akkurat",{weight:700,style:"italic"})},{className:"fonts-loaded-tiempos-display",observer:new i("Tiempos Display")},{className:"fonts-loaded-tiempos-display-light",observer:new i("Tiempos Display",{weight:300})},{className:"fonts-loaded-tiempos-display-bold",observer:new i("Tiempos Display",{weight:700})},{className:"fonts-loaded-tiempos-text",observer:new i("Tiempos Text")},{className:"fonts-loaded-tiempos-text-italic",observer:new i("Tiempos Text",{weight:400,style:"italic"})},{className:"fonts-loaded-tiempos-text-bold",observer:new i("Tiempos Text",{weight:700})},{className:"fonts-loaded-tiempos-text-bold-italic",observer:new i("Tiempos Text",{weight:700,style:"italic"})},{className:"fonts-loaded-tiempos-text-medium",observer:new i("Tiempos Text",{weight:500})},{className:"fonts-loaded-tiempos-text-medium-italic",observer:new i("Tiempos Text",{weight:500,style:"italic"})}]},e.parseFontConfig=function(){e.config.fonts.forEach(function(e){Promise.all([e.observer.load()]).then(function(){document.documentElement.className+=" "+e.className})})},e.setCookie=function(){document.cookie="fonts-loaded=true"},e.init=function(){e.parseFontConfig()}};t.exports=s},{fontfaceobserver:2}],22:[function(e,t,n){"use strict";var i=e("./lib/responsive-map"),s=e("./lib/hover-handler"),o=function(){var e=this;e.config={container:".image-map__map-container",overlay:".image-map__overlay",legendLink:".image-map__legend-link"},e.init=function(){new i({container:e.config.container}).init(),new s({container:e.config.container,overlay:e.config.overlay,link:e.config.legendLink}).init()}};t.exports=o},{"./lib/hover-handler":23,"./lib/responsive-map":24}],23:[function(e,t,n){"use strict";var i=e("hoverintent"),s=e("../../constants/constants"),o=function(e){var t=this,n=$(e.container),o=n.find("area"),a=$(e.overlay),r=$(e.link);t.parseAreas=function(){o.each(function(){var e=$(this),n=e.attr("data-map-area-index");t.parseOverlays(e,n)})},t.parseOverlays=function(e,n){a.each(function(){var i=$(this),s=i.attr("data-map-area-index");s===n&&(t.hoverEvents(e,i),t.parseLinks(i,n))})},t.parseLinks=function(e,n){r.each(function(){var i=$(this),s=i.attr("data-map-area-index");s===n&&t.hoverEvents(i,e)})},t.hoverEvents=function(e,n){var o=e[0],a=(new s).MEDIA_QUERIES.MEDIUM,r=window.matchMedia(a),l=i(o,function(){t.activeOverlay.on(n)},function(){t.activeOverlay.off(n)}),c=function(e){e.matches||l.remove()};r.addListener(c),c(r)},t.activeOverlay={on:function(e){e.addClass("is-active").css("z-index",2)},off:function(e){e.removeClass("is-active").css("z-index",0)}},t.isVisible=function(e){return e.hasClass("is-visible")?!0:void 0},t.isNotAnimating=function(e){return e.hasClass("velocity-animating")?void 0:!0},t.destroy=function(){a.removeClass("is-active").removeAttr("style")},t.init=function(){var e=function(){t.parseAreas()},n=function(){t.destroy()};(new s).MATCHMEDIA_HANDLER("MEDIUM",e,n)}};t.exports=o},{"../../constants/constants":14,hoverintent:3}],24:[function(e,t,n){"use strict";e("image-map-resizer");var i=function(e){var t=this,n=$(e.container);t.parseContainers=function(){n.each(function(){var e=$(this),n=e.find("map");t.initResponsiveMap(n)})},t.initResponsiveMap=function(e){e.imageMapResize()},t.init=function(){t.parseContainers()}};t.exports=i},{"image-map-resizer":4}],25:[function(e,t,n){"use strict";var i=e("../constants/constants"),s=function(){var e=this;e.config={nav:$(".inline-nav"),button:$(".inline-nav__collapse-nav"),list:$(".inline-nav__list")};var t=e.config.nav,n=e.config.button,s=e.config.list;e.parseNav=function(){t.each(function(){var t=$(this),i=t.find(n),o=t.find(s);e.clickHandler(i,o)})},e.clickHandler=function(t,n){t.on("click",function(){e.listVisibility(t,n)})},e.listVisibility=function(t,n){n.hasClass("is-visible")&&!n.hasClass("velocity-animating")?e.hideList(t,n):n.hasClass("velocity-animating")||e.showList(t,n)},e.hideList=function(e,t){e.removeClass("is-active"),t.removeClass("is-visible"),t.velocity({opacity:"0"}).velocity("slideUp",{easing:"easeOutQuart"})},e.showList=function(e,t){e.removeClass("is-active"),t.addClass("is-visible"),t.velocity("slideDown",{easing:"easeOutQuart"}).velocity({opacity:"1"})},e.disableCollapse=function(){n.removeClass("is-active"),s.removeClass("is-visible"),s.removeAttr("style"),n.off("click")},e.init=function(t,n){var s=function(){e.disableCollapse()},o=function(){e.parseNav()};(new i).MATCHMEDIA_HANDLER("MEDIUM",s,o)}};t.exports=s},{"../constants/constants":14}],26:[function(e,t,n){"use strict";var i=e("../../constants/constants"),s=function(){var e=this;e.clickHandler=function(t,n,s,o){t.on("click",(new i).THROTTLE(function(t){var a=$(this),r=a.parent("li"),l=function(){r.length>0?r.toggleClass("is-active"):a.toggleClass("is-active")};if(t.preventDefault(),e.navVisibility(n,s,o,l),a.is("a")){var c=a.siblings("button");(new i).ARIA_EXPANDED_TOGGLE(c)}else(new i).ARIA_EXPANDED_TOGGLE(a)},300))},e.navVisibility=function(t,n,i,s){t.hasClass("is-visible")&&!t.hasClass("velocity-animating")?e.hideNav(t,n,i,s):t.hasClass("velocity-animating")||e.showNav(t,n,i,s)},e.showNav=function(e,t,n,i){var s=n===!0?"0":"300ms";e.velocity("slideDown",{easing:"easeOutQuint",duration:s}).velocity({opacity:"1"},{duration:"150ms",complete:function(){e.addClass("is-visible"),i(),"function"==typeof t&&t()}})},e.hideNav=function(e,t,n,i){var s=n===!0?"0":"300ms";e.velocity({opacity:"0"},{duration:"100ms"}).velocity("slideUp",{easing:"easeOutQuint",duration:s,complete:function(){e.removeClass("is-visible"),i(),"function"==typeof t&&t()}})},e.reset=function(e,t){var n=e.parent("li");e.off("click"),e.removeClass("is-active"),n.length>0&&n.removeClass("is-active"),(new i).ARIA_EXPANDED_TOGGLE(e,!1),t.removeClass("is-visible"),t.removeAttr("style")},e.init=function(t,n,i,s,o){if(e.clickHandler(t,n,i,s),o){var a=function(){var e=t.parent("li");e.length>0?e.addClass("is-active"):t.addClass("is-active")};e.showNav(n,null,!1,a)}}};t.exports=s},{"../../constants/constants":14}],27:[function(e,t,n){"use strict";var i=e("../../constants/constants"),s=e("hoverintent"),o=function(e){var t=this,n=e.subnavItem,o=e.subnavLink,a=e.subnavIconClass,r=e.subnavIconTemplate,l=e.innerSubnavContainer,c=e.closeInnerSubnavBtnClass,u=e.closeInnerSubnavBtnTemplate,d=e.subnavList,h=e.subnav;t.parseItems=function(){n.each(function(){var e,n=$(this),i=n.find(o),s=n.find(l),a=n.parents(d),r=n.parents(h);s.length>0?(e=!0,t.appendIcon(i),t.appendCloseButton(i,s),t.focusHandler(i,s,r)):e=!1,Modernizr.touchevents||t.hoverHandler(i,s,a,r,e)})},t.appendIcon=function(e){var t=e.find($("."+a));if(t.length<=0){var n=$(r);e.append(n)}},t.appendCloseButton=function(e,n){var i=n.find($("."+c));if(i.length<=0){var s=$(u);n.append(s),t.closeClickHandler(e,n,s)}},t.closeClickHandler=function(e,n,i){i.on("click",function(){t.hideSubnav(n),e.removeClass("is-active")})},t.hoverHandler=function(e,n,a,r,l){var c=e[0],u=(new i).MEDIA_QUERIES.MEDIUM,d=window.matchMedia(u),h=function(){t.hideCurrentSubnavs(null,null),o.removeClass("is-active is-dim")},f=s(c,function(){l===!0?t.subnavVisibility(e,n,r):h()},function(){}),p=s(a[0],function(){},function(){h()}),m=function(e){e.matches||(f.remove(),p.remove())};d.addListener(m),m(d)},t.focusHandler=function(e,n,i){e.on("focus",function(){t.subnavVisibility(e,n,i)}),e.on("click",function(e){e.preventDefault()})},t.subnavVisibility=function(e,n,i){var s=function(){t.showSubnav(n,i)};l.hasClass("is-visible")?t.hideCurrentSubnavs(n,s):s(),o.removeClass("is-active"),o.addClass("is-dim"),e.removeClass("is-dim"),e.addClass("is-active")},t.hideCurrentSubnavs=function(e,n){l.not(e).each(function(){var e=$(this);e.hasClass("is-visible")&&t.hideSubnav(e,n)})},t.showSubnav=function(e){e.hasClass("velocity-animating")||(e.addClass("is-visible"),e.velocity({opacity:["0","1"]},{display:"block",duration:0,complete:function(){e.velocity({opacity:"1"},{duration:"160ms"})}}))},t.hideSubnav=function(e,t){e.hasClass("velocity-animating")||(e.removeClass("is-visible"),e.velocity("fadeOut",{duration:"100ms",complete:function(){"function"==typeof t&&t()}}))},t.reset=function(){o.off("focus"),o.removeClass("is-active is-dim"),l.removeAttr("style"),l.removeClass("is-visible"),l.removeClass("has-large-height")},t.init=function(){t.parseItems()}};t.exports=o},{"../../constants/constants":14,hoverintent:3}],28:[function(e,t,n){"use strict";var i=e("../../constants/constants"),s=e("./my-udg"),o=function(e){var t=this,n=$("html"),o=e.mainHeader,a=e.myUdgOpenClass,r=e.isSubhomeClass;t.scrollListener=function(){$(window).on("scroll",t.foldHandler)},t.foldHandler=(new i).THROTTLE(function(){var e=$(window).scrollTop();e>250?t.fold():t.unfold()},200),t.fold=function(){o.hasClass("is-folded")||o.hasClass("velocity-animating")||(o.velocity("stop"),o.velocity({translateY:"-100%",opacity:"0"},{duration:"160ms",complete:function(){o.addClass("is-folded"),o.velocity({translateY:"0%",opacity:"1"},{duration:"160ms"})}}),n.hasClass(a)&&new s(e).hideModal())},t.unfold=function(){o.hasClass("is-folded")&&!o.hasClass("velocity-animating")&&(o.velocity("stop"),o.velocity({translateY:"-100%",opacity:"0"},{duration:"160ms",complete:function(){o.removeClass("is-folded"),o.velocity({translateY:"0%",opacity:"1"},{duration:"160ms"})}}),n.hasClass(r)&&new DesktopSubhomeName(e).showName(!0))},t.reset=function(){$(window).off("scroll"),o.removeClass("is-folded"),o.removeAttr("style")},t.init=function(){t.scrollListener()}};t.exports=o},{"../../constants/constants":14,"./my-udg":33}],29:[function(e,t,n){"use strict";var i=e("../../constants/constants"),s=e("hoverintent"),o=e("./my-udg"),a=function(e){var t=this,n=$("html"),a=$("body"),r=(new i).SCROLLBAR_WIDTH(),l=e.mainNavItem,c=e.mainNavLink,u=e.subnav,d=e.subnavContainer,h=e.subnavList,f=e.mainNav,p=e.mainHeader,m=e.myUdgOpenClass;t.parseItems=function(){l.each(function(){var e=$(this),n=e.find(c),i=e.find(u),s=e.find(d);Modernizr.touchevents||t.hoverHandler(n,i,s),t.focusHandler(n,i,s)})},t.hoverHandler=function(e,n,o){var a=e[0],r=(new i).MEDIA_QUERIES.MEDIUM,l=window.matchMedia(r),c=s(a,function(i){t.subnavVisibility(e,n,o)},function(){}).options({interval:100}),u=function(e){e.matches||c.remove()};l.addListener(u),u(l)},t.focusHandler=function(e,n,i){e.on("focus",function(){t.subnavVisibility(e,n,i)}),e.on("click",function(e){e.preventDefault()})},t.subnavVisibility=function(e,n,i){var s=function(){t.showSubnav(n,i)};u.hasClass("is-visible")?t.hideCurrentSubnavs(n,s):s(),c.removeClass("is-active"),e.addClass("is-active")},t.hideCurrentSubnavs=function(e,n,i){var i=i||!1;u.not(e).each(function(){var e=$(this);if(e.hasClass("is-visible")){var s=e.find(d);t.hideSubnav(e,s,i,n)}})},t.mouseOutOuter=function(){s(f[0],function(){},function(){t.hideCurrentSubnavs(null,null,!0),c.removeClass("is-active")})},t.focusOutOuter=function(){var e=f.find("a").last();e.blur(function(){t.hideCurrentSubnavs(null,null,!0)})},t.showSubnav=function(t,i){i.hasClass("velocity-animating")||(t.addClass("is-visible"),t.css("z-index","2"),i.velocity("slideDown",{duration:"200ms"}).velocity({opacity:"1"},{duration:"100ms",complete:function(){a.addClass("no-scroll"),a.css("padding-right",r),p.css("right",r)}}),n.hasClass(m)&&new o(e).hideModal())},t.hideSubnav=function(e,t,n,i){var s=n===!0?"0":"300ms";e.removeClass("is-visible"),e.css("z-index","1"),t.velocity({opacity:"0"},{duration:"100ms",complete:function(){"function"==typeof i&&i(),a.removeClass("no-scroll"),a.css("padding-right","0"),p.css("right","0")}}).velocity("slideUp",{delay:s,duration:"250ms"})},t.reset=function(){var e=f.find("a").last();c.off("focus"),c.removeClass("is-active"),u.removeClass("is-visible"),u.removeAttr("style"),h.removeClass("is-visible"),h.removeAttr("style"),d.velocity("stop"),d.removeAttr("style"),e.off("blur")},t.init=function(){t.parseItems(),t.mouseOutOuter(),t.focusOutOuter()}};t.exports=a},{"../../constants/constants":14,"./my-udg":33,hoverintent:3}],30:[function(e,t,n){"use strict";var i=function(e){var t=this,n=e.subnav,i=e.highlightContainer,s=e.highlightData,o=e.highlightTemplate;t.parseSubnavs=function(){n.each(function(){var e=$(this),n=e.find(i),o=e.find(s);if(o.length>0){var a=JSON.parse(o.text());t.appendHighlight(n,a)}})},t.appendHighlight=function(e,t){if(0===e.children().length){var n=o(t);e.append(n)}},t.init=function(){t.parseSubnavs()}};t.exports=i},{}],31:[function(e,t,n){"use strict";var i=e("./collapse"),s=function(e,t,n){var s=this;s.parseItems=function(){e.each(function(){var e=$(this),s=e.children("a"),o=e.find(t).add(s),a=e.find(n),r=e.hasClass("is-open-by-default");a.length>0&&(new i).init(o,a,null,!1,r)})},s.init=function(){s.parseItems()}};t.exports=s},{"./collapse":26}],32:[function(e,t,n){"use strict";var i=e("../../constants/constants"),s=function(e){var t=this,n=$("html"),s=$("body"),o=e.toggleMainHeaderInnerButton,a=e.mainHeader,r=e.mainHeaderInner,l=e.navOpenClass,c=e.mainHeaderHeight;t.clickHandler=function(){o.on("click",(new i).THROTTLE(function(){var e=$(this);t.checkVisibility(),(new i).ARIA_EXPANDED_TOGGLE(e)},300))},t.checkVisibility=function(){n.hasClass(l)?t.hideNav():t.showNav()},t.showNav=function(){s.addClass("no-scroll"),a.hasClass("velocity-animating")||a.velocity({height:"100%"},{easing:"easeOutQuint",duration:"350ms",complete:function(){n.addClass(l),r.velocity("fadeIn",{duration:"200ms"})}})},t.hideNav=function(){s.removeClass("no-scroll"),a.hasClass("velocity-animating")||r.velocity("fadeOut",{duration:"160ms",complete:function(){a.velocity({height:c},{easing:"easeOutQuint",duration:"270ms",complete:function(){n.removeClass(l)}})}})},t.reset=function(){o.off("click"),n.removeClass(l),s.removeClass("no-scroll"),a.removeAttr("style"),r.removeAttr("style")},t.init=function(){t.clickHandler(),$(window).on("resize",(new i).THROTTLE(function(){c=a.css("height")},150))}};t.exports=s},{"../../constants/constants":14}],33:[function(e,t,n){"use strict";var i=e("../../constants/constants"),s=e("./mobile-visibility"),o=function(e){var t=this,n=$("html"),o=e.myUdg,a=e.myUdgInner,r=e.toggleMyUdg,l=e.toggleMyUdgIsDesktop,c=e.myUdgOpenClass,u=e.navOpenClass,d=e.searchModalOpenClass;t.clickHandler=function(){r.on("click",(new i).THROTTLE(function(e){e.preventDefault(),o.hasClass("is-visible")&&!o.hasClass("velocity-animating")?t.hideModal():o.hasClass("velocity-animating")||t.showModal()},300))},t.showModal=function(){var t=0;n.hasClass(u)&&(new s(e).hideNav(),t=460),n.hasClass(d)&&(t=300),o.velocity("slideDown",{duration:260,delay:t,complete:function(){a.velocity({opacity:1},{duration:160}),o.addClass("is-visible"),n.addClass(c)}})},t.hideModal=function(){a.velocity({opacity:0},{duration:150}),o.velocity("slideUp",{duration:200,complete:function(){o.removeClass("is-visible"),n.removeClass(c)}})},t.clickOutsideHandler=function(){$(document).on("click",function(e){$(e.target).closest(o).length||o.hasClass("is-visible")&&t.hideModal()})},t.modalPosition=function(){if(l.length>0&&o.length>0){var e=l.offset().left+l.width()/2-o.width()/2;o.css("left",e)}},t.reset=function(){o.removeAttr("style"),o.removeClass("is-visible"),n.removeClass(c),$(window).off("resize.myUdg")},t.init=function(){var e=function(){t.modalPosition(),$(window).on("resize.myUdg",(new i).THROTTLE(t.modalPosition,100))},n=function(){t.reset()};(new i).MATCHMEDIA_HANDLER("MEDIUM",e,n),t.clickHandler(),t.clickOutsideHandler()}};t.exports=o},{"../../constants/constants":14,"./mobile-visibility":32}],34:[function(e,t,n){"use strict";var i=e("../../constants/constants"),s=e("./mobile-visibility"),o=function(e){var t=this,n=$("html"),o=e.toggleSearchModal,a=e.searchModal,r=e.searchModalInner,l=e.searchModalInput,c=e.navOpenClass,u=e.searchModalOpenClass,d=e.myUdgOpenClass;t.clickHandler=function(){o.on("click",(new i).THROTTLE(function(){var e=$(this);(new i).ARIA_EXPANDED_TOGGLE(e),t.modalVisibility()},300)),document.querySelector(".main-header__search-modal-close").addEventListener("click",function(){t.hideModal()})},t.modalVisibility=function(){a.hasClass("is-visible")&&!a.hasClass("velocity-animating")?t.hideModal():a.hasClass("velocity-animating")||t.showModal()},t.showModal=function(){var t=0;n.hasClass(c)&&(new s(e).hideNav(),t=460),n.hasClass(d)&&(t=300),a.velocity("slideDown",{display:"block",delay:t,complete:function(){a.addClass("is-visible"),n.addClass(u),r.velocity({opacity:"1"},{duration:"200ms",complete:function(){l.focus()}})}})},t.hideModal=function(){r.velocity({opacity:"0"},{duration:"200ms"}),a.velocity("slideUp",{display:"none",complete:function(){a.removeClass("is-visible"),n.removeClass(u)}})},t.clickOutsideHandler=function(){$(document).on("click",function(e){$(e.target).closest(a).length||a.hasClass("is-visible")&&t.hideModal()})},t.reset=function(){n.removeClass(u)},t.init=function(){t.clickHandler(),t.clickOutsideHandler()}};t.exports=o},{"../../constants/constants":14,"./mobile-visibility":32}],35:[function(e,t,n){"use strict";var i=e("../constants/constants"),s=e("./lib/mobile-visibility"),o=e("./lib/mobile-parse-items"),a=e("./lib/collapse"),r=e("./lib/search-modal"),l=e("./lib/desktop-subnavs"),c=e("./lib/desktop-sticky"),u=e("./lib/desktop-inner-subnavs"),d=e("./lib/my-udg"),h=e("./lib/highlight"),f=function(){var e=this,t=$("html");e.config={mainHeader:$(".main-header"),mainHeaderHeight:$(".main-header").css("height"),toggleMainHeaderInnerButton:$(".main-header__toggle-nav"),mainHeaderInner:$(".main-header__inner"),navOpenClass:"main-nav-is-open",togglePublicsNav:$(".main-header__publics-nav-toggle"),publicsNav:$(".main-header__publics-nav"),mainNav:$(".main-header__main-nav"),mainNavItem:$(".main-header__main-nav-list > li"),mainNavLink:$(".main-header__main-nav-list > li > a"),subnav:$(".main-header__subnav"),subnavList:$(".main-header__subnav-list"),subnavContainer:$(".main-header__subnav-container"),subnavItem:$(".main-header__subnav-list > li"),subnavLink:$(".main-header__subnav-list > li > a"),subnavIconClass:"main-header__subnav-list-icon",subnavIconTemplate:'<span class="icon icon--subnav-arrow main-header__subnav-list-icon"></span>',innerSubnavContainer:$(".main-header__subnav-inner-container"),innerSubnav:$(".main-header__subnav-inner-list"),innerSubnavLink:$(".main-header__subnav-inner-list > li > a"),closeInnerSubnavBtnClass:"main-header__close-inner-subnav",closeInnerSubnavBtnTemplate:'<button type="button" aria-label="Tancar" class="main-header__close-inner-subnav"><span class="icon icon--close-inner-subnav"></span></button>',toggleSubnav:$(".main-header__toggle-subnav"),toggleInnerSubnav:$(".main-header__toggle-inner-subnav"),searchModal:$(".main-header__search-modal"),searchModalInner:$(".main-header__search-modal-inner"),searchModalInput:$(".main-header__search-input"),toggleSearchModal:$(".main-header__search-toggle"),searchModalOpenClass:"search-modal-is-open",myUdg:$(".main-header__my-udg"),myUdgInner:$(".main-header__my-udg-inner"),toggleMyUdg:$(".main-header__my-udg-toggle"),toggleMyUdgIsDesktop:$(".main-header__my-udg-toggle.is-desktop"),myUdgOpenClass:"my-udg-is-open",highlightContainer:$(".main-header__subnav-highlight-container"),highlightData:$(".main-header__subnav-highlight-data"),highlightTemplate:function(e){var t='<div class="main-header__highlight">';return t+='<a href="'+e.href+'">',t+='<div class="main-header__highlight-image">',t+='<span class="main-header__highlight-readmore">'+e.readmore+"</span>",t+='<img src="'+e.image+'">',t+="</div>",t+='<h3 class="main-header__highlight-title">'+e.title+"</h3>",t+='<p class="main-header__highlight-datetime">'+e.datetime+"</p>",t+="</a></div>"},mobileInitClass:"mobile-main-header-init",desktopInitClass:"desktop-main-header-init",isSubhomeClass:"subhome-main-header"},e.init=function(){var n=function(){t.hasClass(e.config.mobileInitClass)&&(new s(e.config).reset(),(new a).reset(e.config.togglePublicsNav,e.config.publicsNav),(new a).reset(e.config.toggleSubnav,e.config.subnavList),(new a).reset(e.config.mainNavLink,e.config.subnavList),(new a).reset(e.config.subnavLink,e.config.subnavList),(new a).reset(e.config.toggleInnerSubnav,e.config.innerSubnav),(new a).reset(e.config.innerSubnavLink,e.config.innerSubnav),new r(e.config).reset(),t.removeClass(e.config.mobileInitClass)),t.addClass(e.config.desktopInitClass),new l(e.config).init(),t.hasClass(e.config.isSubhomeClass)||new c(e.config).init(),new u(e.config).init(),new h(e.config).init()},f=function(){t.hasClass(e.config.desktopInitClass)&&(new l(e.config).reset(),new u(e.config).reset(),new c(e.config).reset(),t.removeClass(e.config.desktopInitClass)),t.addClass(e.config.mobileInitClass),new s(e.config).init(),new o(e.config.mainNavItem,e.config.toggleSubnav,e.config.subnavList).init(),new o(e.config.subnavItem,e.config.toggleInnerSubnav,e.config.innerSubnav).init(),(new a).init(e.config.togglePublicsNav,e.config.publicsNav)};(new i).MATCHMEDIA_HANDLER("MEDIUM",n,f),new r(e.config).init(),new d(e.config).init()}};t.exports=f},{"../constants/constants":14,"./lib/collapse":26,"./lib/desktop-inner-subnavs":27,"./lib/desktop-sticky":28,"./lib/desktop-subnavs":29,"./lib/highlight":30,"./lib/mobile-parse-items":31,"./lib/mobile-visibility":32,"./lib/my-udg":33,"./lib/search-modal":34}],36:[function(e,t,n){"use strict";var i=function(){var e=this;e.config={button:$("[data-show-modal]"),modalWindow:".modal__window",modalCloseButton:".modal__window__close",modalOverlay:".modal__overlay"};var t=e.config.button,n=e.config.modalWindow,i=e.config.modalCloseButton,s=e.config.modalOverlay;e.openConfig=function(t,n,i,s){t.each(function(){var t=$(this),o=$("#"+t.data("show-modal")),a=o.find(n),r=o.find(i),l=o.find(s);e.openModal(t,o,a,l),e.closeModal(r,o,a,l),e.closeModal(l,o,a,l)})},e.openModal=function(t,n,i,s){t.on("click",function(t){t.preventDefault(),e.showModal(n,i,s)})},e.closeModal=function(t,n,i,s){t.on("click",function(t){t.preventDefault(),e.hideModal(n,i,s)})},e.showModal=function(e,t,n){t.hasClass("velocity-animating")||n.hasClass("velocity-animating")||(e.css("display","block"),n.velocity({opacity:"1"},{duration:"300ms",complete:function(){e.trigger("modal-is-open"),$("html").addClass("modal-is-open"),t.velocity({opacity:"1",translateY:["0%","-30%"]},{easing:[400,45]})}}))},e.hideModal=function(e,t,n){t.hasClass("velocity-animating")||n.hasClass("velocity-animating")||t.velocity({opacity:"0",translateY:["-30%","0%"]},{duration:"200ms",complete:function(){n.velocity({opacity:"0"},{duration:"150ms",complete:function(){e.css("display","none"),e.trigger("modal-is-closed"),$("html").removeClass("modal-is-open")}})}})},e.init=function(){e.openConfig(t,n,i,s)}};t.exports=i},{}],37:[function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t,n){function s(e,t){return i(e)===t}function o(){var e,t,n,i,o,a,r;for(var l in u)if(u.hasOwnProperty(l)){if(e=[],t=u[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(i=s(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)a=e[o],r=a.split("."),1===r.length?h[r[0]]=i:(!h[r[0]]||h[r[0]]instanceof Boolean||(h[r[0]]=new Boolean(h[r[0]])),h[r[0]][r[1]]=i),f.push((i?"":"no-")+r.join("-"))}}function a(e){var t=p.className,n=h._config.classPrefix||"";if(m&&(t=t.baseVal),h._config.enableJSClass){var i=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(i,"$1"+n+"js$2")}h._config.enableClasses&&(t+=" "+n+e.join(" "+n),m?p.className.baseVal=t:p.className=t)}function r(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):m?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function l(){var e=t.body;return e||(e=r(m?"svg":"body"),e.fake=!0),e}function c(e,n,i,s){var o,a,c,u,d="modernizr",h=r("div"),f=l();if(parseInt(i,10))for(;i--;)c=r("div"),c.id=s?s[i]:d+(i+1),h.appendChild(c);return o=r("style"),o.type="text/css",o.id="s"+d,(f.fake?f:h).appendChild(o),f.appendChild(h),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(t.createTextNode(e)),h.id=d,f.fake&&(f.style.background="",f.style.overflow="hidden",u=p.style.overflow,p.style.overflow="hidden",p.appendChild(f)),a=n(h,e),f.fake?(f.parentNode.removeChild(f),p.style.overflow=u,p.offsetHeight):h.parentNode.removeChild(h),!!a}var u=[],d={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){u.push({name:e,fn:t,options:n})},addAsyncTest:function(e){u.push({name:null,fn:e})}},h=function(){};h.prototype=d,h=new h;var f=[],p=t.documentElement,m="svg"===p.nodeName.toLowerCase(),g=d._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];d._prefixes=g;var v=d.testStyles=c;h.addTest("touchevents",function(){var n;if("ontouchstart" in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var i=["@media (",g.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");v(i,function(e){n=9===e.offsetTop})}return n}),o(),a(f),delete d.addTest,delete d.addAsyncTest;for(var y=0;y<h._q.length;y++)h._q[y]();e.Modernizr=h}(window,document)},{}],38:[function(e,t,n){"use strict";var i=e("plyr"),s=e("../cookies-manager/cookies-manager"),o=function(){var e=this;e.config={videoEl:".plyr-wrapper > div"},e.loadVideos=function(){if($(e.config.videoEl).length){var t=i.setup(e.config.videoEl,{loadSprite:!1,youtube:{noCookie:!0,disablekb:"1"},controls:["play-large","play","progress","current-time","mute","volume","fullscreen"]});t.forEach(function(e){var t,n,i,s,o,a,r,l=document.querySelector(".-is-hero");e.on("ready",function(e){l&&(t=l.querySelector(".plyr--video"),n=l.querySelector(".plyr__controls button[data-plyr='play']"),i=l.querySelector(".plyr__controls input[data-plyr='seek']"),s=l.querySelector(".plyr__controls button[data-plyr='mute']"),o=l.querySelector(".plyr__controls input[data-plyr='volume']"),a=l.querySelector(".plyr__controls button[data-plyr='fullscreen']"),r=l.querySelector("iframe"),t.removeAttribute("tabindex"),n.setAttribute("tabindex","-1"),i.setAttribute("tabindex","-1"),s.setAttribute("tabindex","-1"),o.setAttribute("tabindex","-1"),a.setAttribute("tabindex","-1"),r.setAttribute("tabindex","-1"))}),e.on("play",function(e){var t=e.currentTarget.parentNode;t.classList.remove("is-stopped"),t.classList.add("is-playing"),l&&(n.removeAttribute("tabindex"),i.removeAttribute("tabindex"),s.removeAttribute("tabindex"),o.removeAttribute("tabindex"),a.removeAttribute("tabindex"))}),e.on("ended",function(e){var t=e.currentTarget.parentNode;t.classList.remove("is-playing"),t.classList.add("is-stopped")})})}},e.checkCookies=function(){var t=(new s).checkPreferencesCookie();t&&"Accept"===localStorage.getItem("udgCookiesMarketing")&&e.loadVideos()},e.listenCookies=function(){var t=$(".cookies-manager__btn-save"),n=$(".cookies-manager__btn-accept"),i=document.querySelector("#cookies-marketing");n.on("click",function(t){e.loadVideos()}),t.on("click",function(t){i.checked===!0&&e.loadVideos()})},e.init=function(){e.checkCookies(),e.listenCookies()}};t.exports=o},{"../cookies-manager/cookies-manager":17,plyr:7}],39:[function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){function e(e){h.push(e),1==h.length&&d()}function t(){for(;h.length;)h[0](),h.shift()}function n(e){this.a=f,this.b=void 0,this.f=[];var t=this;try{e(function(e){a(t,e)},function(e){r(t,e)})}catch(n){r(t,n)}}function s(e){return new n(function(t,n){n(e)})}function o(e){return new n(function(t){t(e)})}function a(e,t){if(e.a==f){if(t==e)throw new TypeError;var n=!1;try{var s=t&&t.then;if(null!=t&&"object"==i(t)&&"function"==typeof s)return void s.call(t,function(t){n||a(e,t),n=!0},function(t){n||r(e,t),n=!0})}catch(o){return void(n||r(e,o))}e.a=0,e.b=t,l(e)}}function r(e,t){if(e.a==f){if(t==e)throw new TypeError;e.a=1,e.b=t,l(e)}}function l(t){e(function(){if(t.a!=f)for(;t.f.length;){var e=t.f.shift(),n=e[0],i=e[1],s=e[2],e=e[3];try{0==t.a?s("function"==typeof n?n.call(void 0,t.b):t.b):1==t.a&&("function"==typeof i?s(i.call(void 0,t.b)):e(t.b))}catch(o){e(o)}}})}function c(e){return new n(function(t,n){function i(n){return function(i){a[n]=i,s+=1,s==e.length&&t(a)}}var s=0,a=[];0==e.length&&t(a);for(var r=0;r<e.length;r+=1)o(e[r]).c(i(r),n)})}function u(e){return new n(function(t,n){for(var i=0;i<e.length;i+=1)o(e[i]).c(t,n)})}var d,h=[];d=function(){setTimeout(t)};var f=2;n.prototype.g=function(e){return this.c(void 0,e)},n.prototype.c=function(e,t){var i=this;return new n(function(n,s){i.f.push([e,t,n,s]),l(i)})},window.Promise||(window.Promise=n,window.Promise.resolve=o,window.Promise.reject=s,window.Promise.race=u,window.Promise.all=c,window.Promise.prototype.then=n.prototype.c,window.Promise.prototype["catch"]=n.prototype.g)}()},{}],40:[function(e,t,n){"use strict";var i=e("../sidebar-collapse/sidebar-collapse"),s=function(){var e=this;e.config={button:$(".pub-search__show-content"),content:$(".pub-search__content"),eventName:"pubSearch"},e.init=function(){new i(e.config).init()}};t.exports=s},{"../sidebar-collapse/sidebar-collapse":45}],41:[function(e,t,n){"use strict";var i=function(){var e=this,t={url:encodeURIComponent(window.location.href),title:encodeURIComponent(document.title)},n={facebook:"https://www.facebook.com/sharer/sharer.php?u=".concat(t.url),linkedin:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(t.url,"&title=").concat(t.title),pinterest:"https://pinterest.com/pin/create/button/?url=".concat(t.url,"&description=").concat(t.title),twitter:"https://twitter.com/intent/tweet?url=".concat(t.url,"&text=").concat(t.title),whatsapp:"https://wa.me/?text=".concat(t.title,"%0D%0A").concat(t.url)};e.attachURLs=function(){Object.keys(n).forEach(function(e){for(var t=document.querySelectorAll("#shareModal .share-module--"+e),i=n[e],s=0;s<t.length;s++)t[s].setAttribute("href",i)})},e.init=function(){e.attachURLs()}};t.exports=i},{}],42:[function(e,t,n){"use strict";var i=e("../sticky-sidebar/sticky-sidebar"),s=function(){var e=this;e.config={navItem:$(".side-nav__list li"),iconTemplate:'<span class="icon icon--triangle side-nav__list-toggle-icon"></span>'};var t=e.config.navItem,n=e.config.iconTemplate;e.parseNavItems=function(){t.each(function(){var t=$(this),n=t.children("a"),i=t.children("ul");i.length>0&&($(window).width()>=768&&i.hasClass("is-open-by-default")?e.showSubnav(i):i.addClass("is-hidden"),e.addIcon(n),e.clickHandler(n,i))})},e.addIcon=function(e){e.append(n)},e.clickHandler=function(t,n){t.on("click",function(t){t.preventDefault();var i=$(this);i.toggleClass("is-active"),e.subnavVisibility(n)})},e.subnavVisibility=function(t){t.hasClass("is-hidden")?e.showSubnav(t):e.hideSubnav(t)},e.showSubnav=function(e){e.velocity("slideDown",{easing:"easeOutQuint",duration:"200ms"}).velocity({opacity:"1"},{duration:"100ms",complete:function(){e.removeClass("is-hidden"),(new i).forceRecalc()}})},e.hideSubnav=function(e){e.velocity({opacity:"0"},{duration:"100ms"}).velocity("slideUp",{easing:"easeOutQuint",duration:"200ms",complete:function(){e.addClass("is-hidden"),(new i).forceRecalc()}})},e.init=function(){e.parseNavItems()}};t.exports=s},{"../sticky-sidebar/sticky-sidebar":48}],43:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.i18n=void 0;var i={"ca-ES":{firstDay:1,i18n:{previousMonth:"Mes anterior",nextMonth:"Mes següent",months:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],weekdays:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],weekdaysShort:["dg","dl","dm","dc","dj","dv","ds"]}},"es-es":{firstDay:1,i18n:{previousMonth:"Mes anterior",nextMonth:"Mes siguiente",months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],weekdays:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],weekdaysShort:["do","lu","ma","mi","ju","vi","sa"]}},en:{firstDay: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:["Su","Mo","Tu","We","Th","Fr","Sa"]}}};n.i18n=i},{}],44:[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value" in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=void 0;var c=i(e("pikaday")),u=e("./i18n"),d=i(e("velocity-animate")),h=function(){function e(){a(this,e)}return l(e,[{key:"initCalendars",value:function(){if(!document.querySelector(".sidebar-advanced-search__date-input"))return!1;var e=document.querySelector("html").getAttribute("lang"),t=document.querySelectorAll(".sidebar-advanced-search__date-input");Array.prototype.forEach.call(t,function(t){new c["default"](s({field:t,format:"DD/MM/YYYY",showDaysInNextAndPreviousMonths:!0},u.i18n[e]))})}},{key:"containerOnCollapse",value:function(){var e=this,t=document.querySelector(".sidebar-advanced-search__show-extra-fields");if(!t)return!1;var n=document.querySelector(".sidebar-advanced-search__default-input-button");t.addEventListener("click",function(){e.showHeader(),e.showContainer(),e.hideSidebarEls(),n.classList.add("is-disabled"),t.classList.add("is-hidden")});var i=document.querySelector(".sidebar-advanced-search__hide-extra-fields");i.addEventListener("click",function(){e.hideHeader(),e.hideContainer(),e.showSidebarEls(),n.classList.remove("is-disabled")})}},{key:"showHeader",value:function(){var e=document.querySelector(".sidebar-advanced-search__header"),t=document.querySelector(".sidebar-advanced-search__header-inner");d["default"](e,"slideDown",{duration:400,easing:"easeOutQuart",complete:function(){d["default"](t,{opacity:1})}})}},{key:"hideHeader",value:function(){var e=document.querySelector(".sidebar-advanced-search__header"),t=document.querySelector(".sidebar-advanced-search__header-inner");d["default"](t,{opacity:0},{delay:400,complete:function(){d["default"](e,"slideUp",{duration:400,easing:"easeOutQuart"})}})}},{key:"showContainer",value:function(){var e=document.querySelector(".sidebar-advanced-search__extra-fields"),t=document.querySelector(".sidebar-advanced-search__extra-fields-inner");d["default"](e,"slideDown",{duration:400,easing:"easeOutQuart",delay:400,complete:function(){d["default"](t,{opacity:1})}})}},{key:"hideContainer",value:function(){var e=document.querySelector(".sidebar-advanced-search__extra-fields"),t=document.querySelector(".sidebar-advanced-search__extra-fields-inner"),n=document.querySelector(".sidebar-advanced-search__show-extra-fields");d["default"](t,{opacity:0},{complete:function(){d["default"](e,"slideUp",{duration:400,easing:"easeOutQuart",complete:function(){n.classList.remove("is-hidden")}})}})}},{key:"hideSidebarEls",value:function(){var e=document.querySelectorAll(".hide-on-active-advanced-search");return e?void Array.prototype.forEach.call(e,function(e){d["default"](e,"fadeOut")}):!1}},{key:"showSidebarEls",value:function(){var e=document.querySelectorAll(".hide-on-active-advanced-search");return e?void Array.prototype.forEach.call(e,function(e){d["default"](e,"fadeIn")}):!1}},{key:"init",value:function(){this.initCalendars(),this.containerOnCollapse()}}]),e}();n["default"]=h},{"./i18n":43,pikaday:6,"velocity-animate":10}],45:[function(e,t,n){"use strict";var i=e("../constants/constants"),s=function(e){var t=this,n=e.button,s=e.content,o=e.eventName;t.setButtonAttrs=function(){n.attr("role","button"),n.attr("aria-pressed","false")},t.clickHandler=function(){n.on("click."+o,(new i).THROTTLE(function(){var e=$(this);t.contentVisibility(e)},300))},t.contentVisibility=function(e){s.hasClass("is-visible")&&!s.hasClass("velocity-animating")?(t.hideContent(),e.removeClass("is-active")):s.hasClass("velocity-animating")||(t.showContent(),e.addClass("is-active"))},t.showContent=function(){s.addClass("is-visible"),s.velocity("slideDown",{duration:400,easing:"easeOutQuart"}),s.velocity({opacity:1},{duration:200})},t.hideContent=function(){s.removeClass("is-visible"),s.velocity({opacity:0},{duration:150}),s.velocity("slideUp",{duration:400,easing:"easeOutQuart"})},t.reset=function(){n.off("click."+o),n.removeAttr("role aria-pressed"),n.removeClass("is-active"),s.removeAttr("style"),s.removeClass("is-visible")},t.init=function(){var e=function(){t.reset()},n=function(){t.setButtonAttrs(),t.clickHandler()};(new i).MATCHMEDIA_HANDLER("SMALL",e,n)}};t.exports=s},{"../constants/constants":14}],46:[function(e,t,n){"use strict";var i=e("../sidebar-collapse/sidebar-collapse"),s=function(){var e=this;e.config={button:$(".sidebar-linked__button"),content:$(".sidebar-linked__content"),eventName:"sidebarLinked"},e.init=function(){new i(e.config).init()}};t.exports=s},{"../sidebar-collapse/sidebar-collapse":45}],47:[function(e,t,n){"use strict";var i=function(){var e=this;e.config={button:$("[data-soft-scroll]")};var t=e.config.button;e.clickHandler=function(){t.on("click",function(t){var n=$(this),i=n.attr("data-soft-scroll"),s=$(i),o=null;n[0].hasAttribute("data-open-collapse")&&(o=function(){var e=s.find("[data-collapse]");"false"===e.attr("aria-expanded")&&e.trigger("click")}),e.scrollAnimation(s,o),n.is("a")&&(t.preventDefault(),window.location.hash=i)})},e.scrollAnimation=function(e,t){e.velocity("stop").velocity("scroll",{duration:700,easing:"easeOutQuart",mobileHA:!1,offset:-110,complete:function(){"function"==typeof t&&t()}})},e.init=function(t,n){e.clickHandler()}};t.exports=i},{}],48:[function(e,t,n){"use strict";var i=e("../constants/constants"),s=function(){var e=this,t=$(window);e.config={sidebar:$("[data-sticky-sidebar]"),defaultOffset:110};var n=e.config.sidebar,s=e.config.defaultOffset;e.StickyOptions=function(){this.offset_top=s},e.stickSidebar=function(){n.trigger("sticky_kit:detach"),n.each(function(){var t=$(this),n=new e.StickyOptions;if(t.attr("data-sticky-parent")){var i=t.attr("data-sticky-parent");n.parent=i}if(t.attr("data-sticky-offset")){var s=parseInt(t.attr("data-sticky-offset"));n.offset_top=s}t.stick_in_parent(n)})},e.unstickSidebar=function(){n.trigger("sticky_kit:detach")},e.forceRecalc=function(){$(document.body).trigger("sticky_kit:recalc")},e.init=function(){var n=(new i).DEBOUNCE(function(){e.unstickSidebar(),e.stickSidebar()}),s=function(){e.stickSidebar(),t.on("resize.stickySidebar",n)},o=function(){e.unstickSidebar(),t.off("resize.stickySidebar")};(new i).MATCHMEDIA_HANDLER("SMALL",s,o)}};t.exports=s},{"../constants/constants":14}],49:[function(e,t,n){"use strict";var i=e("../constants/constants"),s=e("../sticky-sidebar/sticky-sidebar"),o=function(){var e=this;e.config={tabs:$(".tabs"),link:$(".tabs__nav-link"),panel:$(".tabs__panel"),collapseNavButton:$(".tabs__collapse-nav")};var t=e.config.tabs,n=e.config.link,o=e.config.panel,a=e.config.collapseNavButton;e.parseTabsEls=function(){t.each(function(){var t=$(this),i=t.find(n),s=t.find(o),r=t.find(a);e.collapseNav(r,i),e.navLinkClickHandler(i,s,t,r)})},e.collapseNav=function(t,n){t.on("click",function(){var t=$(this),i=n.not(".is-active");t.hasClass("is-active")?e.hideNavLinks(i,t):e.showNavLinks(i,t)})},e.showNavLinks=function(e,t){e.hasClass("velocity-animating")||e.velocity({height:"40px"},{duration:200,easing:"easeOutQuart"}).velocity({opacity:1},{duration:150,complete:function(){e.addClass("is-visible"),t.addClass("is-active")}})},e.hideNavLinks=function(e,t){e.hasClass("velocity-animating")||e.velocity({opacity:0},{duration:150}).velocity({height:"0px"},{duration:200,easing:"easeOutQuart",complete:function(){e.removeClass("is-visible"),t.removeClass("is-active")}})},e.navLinkClickHandler=function(t,n,i,o){t.on("click",function(a){a.preventDefault();var r=$(this);if(!r.hasClass("is-active")){var l=$(r.attr("href")),c=null,u=i.attr("data-collapse-nav");"true"===u&&(c=function(){var n=t.not(r);e.hideNavLinks(n,o)}),e.hidePanel(n),e.showPanel(l,t,r,c)}setTimeout(function(){(new s).forceRecalc()},10)})},e.hidePanel=function(e){e.css("display","none")},e.showPanel=function(e,t,n,i){t.removeClass("is-active"),n.addClass("is-active"),e.velocity("fadeIn",{complete:function(){"function"==typeof i&&i()}})},e.enableCollapse=function(){t.attr("data-collapse-nav",!0)},e.disableCollapse=function(){t.attr("data-collapse-nav",!1),a.removeClass("is-active"),n.removeAttr("style")},e.updateVisibleLinks=function(){t.each(function(){var e=$(this),t=e.find(n);t.each(function(){var e=$(this);if(e.hasClass("is-active")){var n=t.not(e);e.addClass("is-visible"),n.removeClass("is-visible")}})})},e.init=function(){var t=function(){e.disableCollapse()},n=function(){e.enableCollapse(),e.updateVisibleLinks()};(new i).MATCHMEDIA_HANDLER("MEDIUM",t,n),e.parseTabsEls()}};t.exports=o},{"../constants/constants":14,"../sticky-sidebar/sticky-sidebar":48}],50:[function(e,t,n){(function(e){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=function(){!function(i,s){"function"==typeof define&&define.amd?define(["jquery"],s):"object"==("undefined"==typeof t?"undefined":n(t))&&t.exports?t.exports=s("undefined"!=typeof window?window.$:"undefined"!=typeof e?e.$:null):s(i.jQuery)}(this,function(e){function t(){var t=this;t.top="auto",t.left="auto",t.right="auto",t.bottom="auto",t.set=function(n,i){e.isNumeric(i)&&(t[n]=Math.round(i))}}function n(e,t,n){function i(i,s){a(),e.data(w)?r():i?(s&&e.data(k,!0),l(),n.showTip(e)):(D.tipOpenImminent=!0,u=setTimeout(function(){u=null,o()},t.intentPollInterval))}function s(i){d&&(d=D.closeDelayTimeout=clearTimeout(d),D.delayInProgress=!1),a(),D.tipOpenImminent=!1,e.data(w)&&(e.data(k,!1),i?n.hideTip(e):(D.delayInProgress=!0,D.closeDelayTimeout=setTimeout(function(){D.closeDelayTimeout=null,n.hideTip(e),D.delayInProgress=!1,d=null},t.closeDelay),d=D.closeDelayTimeout))}function o(){var s=Math.abs(D.previousX-D.currentX),o=Math.abs(D.previousY-D.currentY),a=s+o;a<t.intentSensitivity?(r(),l(),n.showTip(e)):(D.previousX=D.currentX,D.previousY=D.currentY,i())}function a(e){u=clearTimeout(u),(D.closeDelayTimeout&&d===D.closeDelayTimeout||e)&&r()}function r(){D.closeDelayTimeout=clearTimeout(D.closeDelayTimeout),D.delayInProgress=!1}function l(){D.delayInProgress&&D.activeHover&&!D.activeHover.is(e)&&D.activeHover.data(b).hide(!0)}function c(){n.resetPosition(e)}var u=null,d=null;this.show=i,this.hide=s,this.cancel=a,this.resetPosition=c}function i(){function e(e,s,a,r,l){var c,u=s.split("-")[0],d=new t;switch(c=o(e)?i(e,u):n(e,u),s){case"n":d.set("left",c.left-a/2),d.set("bottom",D.windowHeight-c.top+l);break;case"e":d.set("left",c.left+l),d.set("top",c.top-r/2);break;case"s":d.set("left",c.left-a/2),d.set("top",c.top+l);break;case"w":d.set("top",c.top-r/2),d.set("right",D.windowWidth-c.left+l);break;case"nw":d.set("bottom",D.windowHeight-c.top+l),d.set("right",D.windowWidth-c.left-20);break;case"nw-alt":d.set("left",c.left),d.set("bottom",D.windowHeight-c.top+l);break;case"ne":d.set("left",c.left-20),d.set("bottom",D.windowHeight-c.top+l);break;case"ne-alt":d.set("bottom",D.windowHeight-c.top+l),d.set("right",D.windowWidth-c.left);break;case"sw":d.set("top",c.top+l),d.set("right",D.windowWidth-c.left-20);break;case"sw-alt":d.set("left",c.left),d.set("top",c.top+l);break;case"se":d.set("left",c.left-20),d.set("top",c.top+l);break;case"se-alt":d.set("top",c.top+l),d.set("right",D.windowWidth-c.left)}return d}function n(e,t){var n,i,s=e.offset(),o=e.outerWidth(),a=e.outerHeight();switch(t){case"n":n=s.left+o/2,i=s.top;break;case"e":n=s.left+o,i=s.top+a/2;break;case"s":n=s.left+o/2,i=s.top+a;break;case"w":n=s.left,i=s.top+a/2;break;case"nw":n=s.left,i=s.top;break;case"ne":n=s.left+o,i=s.top;break;case"sw":n=s.left,i=s.top+a;break;case"se":n=s.left+o,i=s.top+a}return{top:i,left:n}}function i(e,t){function n(){p.push(c.matrixTransform(d))}var i,s,o,a,r=e.closest("svg")[0],l=e[0],c=r.createSVGPoint(),u=l.getBBox(),d=l.getScreenCTM(),h=u.width/2,f=u.height/2,p=[],m=["nw","n","ne","e","se","s","sw","w"];if(c.x=u.x,c.y=u.y,n(),c.x+=h,n(),c.x+=h,n(),c.y+=f,n(),c.y+=f,n(),c.x-=h,n(),c.x-=h,n(),c.y-=f,n(),p[0].y!==p[1].y||p[0].x!==p[7].x)for(s=Math.atan2(d.b,d.a)*A,o=Math.ceil((s%360-22.5)/45),1>o&&(o+=8);o--;)m.push(m.shift());for(a=0;a<p.length;a++)if(m[a]===t){i=p[a];break}return{top:i.y+D.scrollTop,left:i.x+D.scrollLeft}}this.compute=e}function s(n){function s(e){e.data(w,!0),_.queue(function(t){o(e),t()})}function o(t){var i;if(t.data(w)){if(D.isTipOpen)return D.isClosing||a(D.activeHover),void _.delay(100).queue(function(e){o(t),e()});t.trigger("powerTipPreRender"),i=f(t),i&&(_.empty().append(i),t.trigger("powerTipRender"),D.activeHover=t,D.isTipOpen=!0,_.data(S,n.mouseOnToPopup),n.followMouse?r():(l(t),D.isFixedTipOpen=!0),_.addClass(n.popupClass),t.data(k)||g.on("click"+P,function(i){var s=i.target;s!==t[0]&&(n.mouseOnToPopup?s===_[0]||e.contains(_[0],s)||e.powerTip.hide():e.powerTip.hide())}),n.mouseOnToPopup&&!n.manual&&(_.on("mouseenter"+P,function(){D.activeHover&&D.activeHover.data(b).cancel()}),_.on("mouseleave"+P,function(){D.activeHover&&D.activeHover.data(b).hide()})),_.fadeIn(n.fadeInTime,function(){D.desyncTimeout||(D.desyncTimeout=setInterval(u,500)),t.trigger("powerTipOpen")}))}}function a(e){D.isClosing=!0,D.isTipOpen=!1,D.desyncTimeout=clearInterval(D.desyncTimeout),e.data(w,!1),e.data(k,!1),g.off("click"+P),_.off(P),_.fadeOut(n.fadeOutTime,function(){var i=new t;D.activeHover=null,D.isClosing=!1,D.isFixedTipOpen=!1,_.removeClass(),i.set("top",D.currentY+n.offset),i.set("left",D.currentX+n.offset),_.css(i),e.trigger("powerTipClose")})}function r(){if(!D.isFixedTipOpen&&(D.isTipOpen||D.tipOpenImminent&&_.data(T))){var e,i,s=_.outerWidth(),o=_.outerHeight(),a=new t;a.set("top",D.currentY+n.offset),a.set("left",D.currentX+n.offset),e=p(a,s,o),e!==O.none&&(i=m(e),1===i?e===O.right?a.set("left",D.windowWidth-s):e===O.bottom&&a.set("top",D.scrollTop+D.windowHeight-o):(a.set("left",D.currentX-s-n.offset),a.set("top",D.currentY-o-n.offset))),_.css(a)}}function l(t){var i,s;n.smartPlacement?(i=e.fn.powerTip.smartPlacementLists[n.placement],e.each(i,function(e,n){var i=p(c(t,n),_.outerWidth(),_.outerHeight());return s=n,i===O.none?!1:void 0})):(c(t,n.placement),s=n.placement),_.removeClass("w nw sw e ne se n s w se-alt sw-alt ne-alt nw-alt"),_.addClass(s)}function c(e,i){var s,o,a=0,r=new t;r.set("top",0),r.set("left",0),_.css(r);do s=_.outerWidth(),o=_.outerHeight(),r=d.compute(e,i,s,o,n.offset),_.css(r);while(++a<=5&&(s!==_.outerWidth()||o!==_.outerHeight()));return r}function u(){var t=!1;D.isTipOpen&&!D.isClosing&&!D.delayInProgress&&(e.inArray("mouseleave",n.closeEvents)>-1||e.inArray("mouseout",n.closeEvents)>-1||e.inArray("blur",n.closeEvents)>-1||e.inArray("focusout",n.closeEvents)>-1)&&(D.activeHover.data(w)===!1||D.activeHover.is(":disabled")?t=!0:h(D.activeHover)||D.activeHover.is(":focus")||D.activeHover.data(k)||(_.data(S)?h(_)||(t=!0):t=!0),t&&a(D.activeHover))}var d=new i,_=e("#"+n.popupId);0===_.length&&(_=e("<div/>",{id:n.popupId}),0===y.length&&(y=e("body")),y.append(_),D.tooltips=D.tooltips?D.tooltips.add(_):_),n.followMouse&&(_.data(T)||(g.on("mousemove"+P,r),v.on("scroll"+P,r),_.data(T,!0))),this.showTip=s,this.hideTip=a,this.resetPosition=l}function o(e){return Boolean(window.SVGElement&&e[0]instanceof SVGElement)}function a(e){return Boolean(e&&"number"==typeof e.pageX)}function r(){D.mouseTrackingActive||(D.mouseTrackingActive=!0,l(),e(l),g.on("mousemove"+P,d),v.on("resize"+P,c),v.on("scroll"+P,u))}function l(){D.scrollLeft=v.scrollLeft(),D.scrollTop=v.scrollTop(),D.windowWidth=v.width(),D.windowHeight=v.height()}function c(){D.windowWidth=v.width(),D.windowHeight=v.height()}function u(){var e=v.scrollLeft(),t=v.scrollTop();e!==D.scrollLeft&&(D.currentX+=e-D.scrollLeft,D.scrollLeft=e),t!==D.scrollTop&&(D.currentY+=t-D.scrollTop,D.scrollTop=t)}function d(e){D.currentX=e.pageX,D.currentY=e.pageY}function h(e){var t=e.offset(),n=e[0].getBoundingClientRect(),i=n.right-n.left,s=n.bottom-n.top;return D.currentX>=t.left&&D.currentX<=t.left+i&&D.currentY>=t.top&&D.currentY<=t.top+s}function f(t){var n,i,s=t.data(C),o=t.data(x),a=t.data(M);return s?(e.isFunction(s)&&(s=s.call(t[0])),i=s):o?(e.isFunction(o)&&(o=o.call(t[0])),o.length>0&&(i=o.clone(!0,!0))):a&&(n=e("#"+a),n.length>0&&(i=n.html())),i}function p(e,t,n){var i=D.scrollTop,s=D.scrollLeft,o=i+D.windowHeight,a=s+D.windowWidth,r=O.none;return(e.top<i||Math.abs(e.bottom-D.windowHeight)-n<i)&&(r|=O.top),(e.top+n>o||Math.abs(e.bottom-D.windowHeight)>o)&&(r|=O.bottom),(e.left<s||e.right+t>a)&&(r|=O.left),(e.left+t>a||e.right<s)&&(r|=O.right),r}function m(e){for(var t=0;e;)e&=e-1,t++;return t}var g=e(document),v=e(window),y=e("body"),b="displayController",w="hasActiveHover",k="forcedOpen",T="hasMouseMove",S="mouseOnToPopup",_="originalTitle",C="powertip",x="powertipjq",M="powertiptarget",P=".powertip",A=180/Math.PI,D={elements:null,tooltips:null,isTipOpen:!1,isFixedTipOpen:!1,isClosing:!1,tipOpenImminent:!1,activeHover:null,currentX:0,currentY:0,previousX:0,previousY:0,desyncTimeout:null,closeDelayTimeout:null,mouseTrackingActive:!1,delayInProgress:!1,windowWidth:0,windowHeight:0,scrollTop:0,scrollLeft:0},O={none:0,top:1,bottom:2,left:4,right:8};return e.fn.powerTip=function(t,i){var o,l,c=this;return c.length?"string"===e.type(t)&&e.powerTip[t]?e.powerTip[t].call(c,c,i):(o=e.extend({},e.fn.powerTip.defaults,t),l=new s(o),r(),c.each(function(){var t,i=e(this),s=i.data(C),a=i.data(x),r=i.data(M);i.data(b)&&e.powerTip.destroy(i),t=i.attr("title"),s||r||a||!t||(i.data(C,t),i.data(_,t),i.removeAttr("title")),i.data(b,new n(i,o,l))}),o.manual||(e.each(o.openEvents,function(t,n){e.inArray(n,o.closeEvents)>-1?c.on(n+P,function(t){e.powerTip.toggle(this,t)}):c.on(n+P,function(t){e.powerTip.show(this,t)})}),e.each(o.closeEvents,function(t,n){e.inArray(n,o.openEvents)<0&&c.on(n+P,function(t){e.powerTip.hide(this,!a(t))})}),c.on("keydown"+P,function(t){27===t.keyCode&&e.powerTip.hide(this,!0)})),D.elements=D.elements?D.elements.add(c):c,c):c},e.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:!1,popupId:"powerTip",popupClass:null,intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:!1,offset:10,mouseOnToPopup:!1,manual:!1,openEvents:["mouseenter","focus"],closeEvents:["mouseleave","blur"]},e.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]},e.powerTip={show:function(t,n){return a(n)?(d(n),D.previousX=n.pageX,D.previousY=n.pageY,e(t).data(b).show()):e(t).first().data(b).show(!0,!0),t},reposition:function(t){return e(t).first().data(b).resetPosition(),t},hide:function(t,n){var i;return n=!t||n,t?i=e(t).first().data(b):D.activeHover&&(i=D.activeHover.data(b)),i&&i.hide(n),t},toggle:function(t,n){return D.activeHover&&D.activeHover.is(t)?e.powerTip.hide(t,!a(n)):e.powerTip.show(t,n),t},destroy:function(t){var n=t?e(t):D.elements;return D.elements&&0!==D.elements.length?(n.off(P).each(function(){var t=e(this),n=[_,b,w,k];t.data(_)&&(t.attr("title",t.data(_)),n.push(C)),t.removeData(n)}),D.elements=D.elements.not(n),0===D.elements.length&&(v.off(P),g.off(P),D.mouseTrackingActive=!1,D.tooltips.remove(),D.tooltips=null),t):t}},e.powerTip.showTip=e.powerTip.show,e.powerTip.closeTip=e.powerTip.hide,e.powerTip});var i=this;i.config={tooltip:$(".tooltip"),options:{smartPlacement:!0}},i.init=function(){i.config.tooltip.powerTip(i.config.options)}};t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
;;;(function(root,factory){if(typeof exports==="object"){module.exports=factory(root)}else if(typeof define==="function"&&define.amd){define([],factory(root))}else{root.LazyLoad=factory(root)}})(typeof global!=="undefined"?global:this.window||this.global,function(root){"use strict";const defaults={src:"data-src",srcset:"data-srcset",selector:".lazyload"};const extend=function(){let extended={};let deep=!1;let i=0;let length=arguments.length;if(Object.prototype.toString.call(arguments[0])==="[object Boolean]"){deep=arguments[0];i++}
let merge=function(obj){for(let prop in obj){if(Object.prototype.hasOwnProperty.call(obj,prop)){if(deep&&Object.prototype.toString.call(obj[prop])==="[object Object]"){extended[prop]=extend(!0,extended[prop],obj[prop])}else{extended[prop]=obj[prop]}}}};for(;i<length;i++){let obj=arguments[i];merge(obj)}
return extended};function LazyLoad(images,options){this.settings=extend(defaults,options||{});this.images=images||document.querySelectorAll(this.settings.selector);this.observer=null;this.init()}
LazyLoad.prototype={init:function(){if(!root.IntersectionObserver){this.loadImages();return}
let self=this;let observerConfig={root:null,rootMargin:"0px",threshold:[0]};this.observer=new IntersectionObserver(function(entries){entries.forEach(function(entry){if(entry.intersectionRatio>0){self.observer.unobserve(entry.target);let src=entry.target.getAttribute(self.settings.src);let srcset=entry.target.getAttribute(self.settings.srcset);if("img"===entry.target.tagName.toLowerCase()){if(src){entry.target.src=src}
if(srcset){entry.target.srcset=srcset}}else{entry.target.style.backgroundImage="url("+src+")"}}})},observerConfig);this.images.forEach(function(image){self.observer.observe(image)})},loadAndDestroy:function(){if(!this.settings){return}
this.loadImages();this.destroy()},loadImages:function(){if(!this.settings){return}
let self=this;this.images.forEach(function(image){let src=image.getAttribute(self.settings.src);let srcset=image.getAttribute(self.settings.srcset);if("img"===image.tagName.toLowerCase()){if(src){image.src=src}
if(srcset){image.srcset=srcset}}else{image.style.backgroundImage="url('"+src+"')"}})},destroy:function(){if(!this.settings){return}
this.observer.disconnect();this.settings=null}};root.lazyload=function(images,options){return new LazyLoad(images,options)};if(root.jQuery){const $=root.jQuery;$.fn.lazyload=function(options){options=options||{};options.attribute=options.attribute||"data-src";new LazyLoad($.makeArray(this),options);return this}}
return LazyLoad})
;;;var DNN_COL_DELIMITER=String.fromCharCode(16);var DNN_ROW_DELIMITER=String.fromCharCode(15);var __dnn_m_bPageLoaded=false;if(window.addEventListener){window.addEventListener("load",__dnn_Page_OnLoad,false)}else{window.attachEvent("onload",__dnn_Page_OnLoad)}function __dnn_ClientAPIEnabled(){return typeof(dnn)!="undefined"&&typeof(dnn.dom)!="undefined"}function __dnn_Page_OnLoad(){if(__dnn_ClientAPIEnabled()){dnn.dom.attachEvent(window,"onscroll",__dnn_bodyscroll)}__dnn_m_bPageLoaded=true}function __dnn_KeyDown(iKeyCode,sFunc,e){if(e==null){e=window.event}if(e.keyCode==iKeyCode){eval(unescape(sFunc));return false}}function __dnn_bodyscroll(){var a=document.forms[0];if(__dnn_ClientAPIEnabled()&&__dnn_m_bPageLoaded&&typeof(a.ScrollTop)!="undefined"){a.ScrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:dnn.dom.getByTagName("body")[0].scrollTop}}function __dnn_setScrollTop(c){if(__dnn_ClientAPIEnabled()){if(c==null){c=document.forms[0].ScrollTop.value}var a=dnn.getVar("ScrollToControl");if(a!=null&&a.length>0){var b=dnn.dom.getById(a);if(b!=null){c=dnn.dom.positioning.elementTop(b);dnn.setVar("ScrollToControl","")}}if(document.getElementsByTagName("html")[0].style.overflow!="hidden"){window.scrollTo(0,c)}}}function __dnn_SetInitialFocus(a){var b=dnn.dom.getById(a);if(b!=null&&__dnn_CanReceiveFocus(b)){b.focus()}}function __dnn_CanReceiveFocus(b){if(b.style.display!="none"&&b.tabIndex>-1&&b.disabled==false&&b.style.visible!="hidden"){var a=b.parentElement;while(a!=null&&a.tagName!="BODY"){if(a.style.display=="none"||a.disabled||a.style.visible=="hidden"){return false}a=a.parentElement}return true}else{return false}}function __dnn_ContainerMaxMin_OnClick(i,b){var g=dnn.dom.getById(b);if(g!=null){var e=i.childNodes[0];var l=dnn.getVar("containerid_"+b);var j=dnn.getVar("cookieid_"+b);var d=e.src.toLowerCase().substr(e.src.lastIndexOf("/"));var a;var h;var k;if(dnn.getVar("min_icon_"+l)){k=dnn.getVar("min_icon_"+l)}else{k=dnn.getVar("min_icon")}if(dnn.getVar("max_icon_"+l)){h=dnn.getVar("max_icon_"+l)}else{h=dnn.getVar("max_icon")}a=h.toLowerCase().substr(h.lastIndexOf("/"));var c=5;var f=dnn.getVar("animf_"+b);if(f!=null){c=new Number(f)}if(d==a){e.src=k;dnn.dom.expandElement(g,c);e.title=dnn.getVar("min_text");if(j!=null){if(dnn.getVar("__dnn_"+l+":defminimized")=="true"){dnn.dom.setCookie(j,"true",365)}else{dnn.dom.deleteCookie(j)}}else{dnn.setVar("__dnn_"+l+"_Visible","true")}}else{e.src=h;dnn.dom.collapseElement(g,c);e.title=dnn.getVar("max_text");if(j!=null){if(dnn.getVar("__dnn_"+l+":defminimized")=="true"){dnn.dom.deleteCookie(j)}else{dnn.dom.setCookie(j,"false",365)}}else{dnn.setVar("__dnn_"+l+"_Visible","false")}}return true}return false}function __dnn_Help_OnClick(a){var b=dnn.dom.getById(a);if(b!=null){if(b.style.display=="none"){b.style.display=""}else{b.style.display="none"}return true}return false}function __dnn_SectionMaxMin(f,c){var d=dnn.dom.getById(c);if(d!=null){var g=f.getAttribute("max_icon");var e=f.getAttribute("min_icon");var a=f.getAttribute("userctr")!=null;var b;if(d.style.display=="none"){f.src=e;d.style.display="";if(a){b="True"}else{dnn.setVar(f.id+":exp",1)}}else{f.src=g;d.style.display="none";if(a){b="False"}else{dnn.setVar(f.id+":exp",0)}}if(a){dnncore.setUserProp(f.getAttribute("userctr"),f.getAttribute("userkey"),b,null)}return true}return false}function __dnn_enableDragDrop(){var b=dnn.getVar("__dnn_dragDrop").split(";");var e;for(var c=0;c<b.length;c++){e=b[c].split(" ");if(e[0].length>0){var a=dnn.dom.getById(e[0]);var d=dnn.dom.getById(e[1]);if(a!=null&&d!=null){a.setAttribute("moduleid",e[2]);dnn.dom.positioning.enableDragAndDrop(a,d,"__dnn_dragComplete()","__dnn_dragOver()")}}}}var __dnn_oPrevSelPane;var __dnn_oPrevSelModule;var __dnn_dragEventCount=0;function __dnn_dragOver(){__dnn_dragEventCount++;if(__dnn_dragEventCount%75!=0){return}var c=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var a=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);if(__dnn_oPrevSelPane!=null){__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder}if(a!=null){__dnn_oPrevSelPane=a;a.pane.style.border="4px double "+DNN_HIGHLIGHT_COLOR;var e=__dnn_getPaneControlIndex(c,a);var b;var f;for(var d=0;d<a.controls.length;d++){if(e>d&&a.controls[d].id!=c.id){b=a.controls[d]}if(e<=d&&a.controls[d].id!=c.id){f=a.controls[d];break}}if(__dnn_oPrevSelModule!=null){dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder}if(f!=null){__dnn_oPrevSelModule=f;dnn.dom.getNonTextNode(f.control).style.borderTop="5px groove "+DNN_HIGHLIGHT_COLOR}else{if(b!=null){__dnn_oPrevSelModule=b;dnn.dom.getNonTextNode(b.control).style.borderBottom="5px groove "+DNN_HIGHLIGHT_COLOR}}}}function __dnn_dragComplete(){var f=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var d=f.getAttribute("moduleid");if(__dnn_oPrevSelPane!=null){__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder}if(__dnn_oPrevSelModule!=null){dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder}var b=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);var e;if(b==null){var a=__dnn_Panes();for(var c=0;c<a.length;c++){if(a[c].id==f.parentNode.id){b=a[c]}}}if(b!=null){e=__dnn_getPaneControlIndex(f,b);__dnn_MoveToPane(b,f,e);dnn.callPostBack("MoveToPane","moduleid="+d,"pane="+b.paneName,"order="+e*2)}}function __dnn_MoveToPane(a,e,d){if(a!=null){var c=new Array();for(var b=d;b<a.controls.length;b++){if(a.controls[b].control.id!=e.id){c[c.length]=a.controls[b].control}dnn.dom.removeChild(a.controls[b].control)}dnn.dom.appendChild(a.pane,e);e.style.top=0;e.style.left=0;e.style.position="relative";for(var b=0;b<c.length;b++){dnn.dom.appendChild(a.pane,c[b])}__dnn_RefreshPanes()}else{e.style.top=0;e.style.left=0;e.style.position="relative"}}function __dnn_RefreshPanes(){var b=dnn.getVar("__dnn_Panes").split(";");var a=dnn.getVar("__dnn_PaneNames").split(";");__dnn_m_aryPanes=new Array();for(var c=0;c<b.length;c++){if(b[c].length>0){__dnn_m_aryPanes[__dnn_m_aryPanes.length]=new __dnn_Pane(dnn.dom.getById(b[c]),a[c])}}}var __dnn_m_aryPanes;var __dnn_m_aryModules;function __dnn_Panes(){if(__dnn_m_aryPanes==null){__dnn_m_aryPanes=new Array();__dnn_RefreshPanes()}return __dnn_m_aryPanes}function __dnn_Modules(a){if(__dnn_m_aryModules==null){__dnn_RefreshPanes()}return __dnn_m_aryModules[a]}function __dnn_getMostSelectedPane(g){var c=new dnn.dom.positioning.dims(g);var f=0;var a;var h;for(var e=0;e<__dnn_Panes().length;e++){var b=__dnn_Panes()[e];var d=new dnn.dom.positioning.dims(b.pane);a=dnn.dom.positioning.elementOverlapScore(d,c);if(a>f){f=a;h=b}}return h}function __dnn_getPaneControlIndex(f,b){if(b==null){return}var a=new dnn.dom.positioning.dims(f);var e;if(b.controls.length==0){return 0}for(var c=0;c<b.controls.length;c++){e=b.controls[c];var d=new dnn.dom.positioning.dims(e.control);if(a.t<d.t){return e.index}}if(e!=null){return e.index+1}else{return 0}}function __dnn_Pane(a,b){this.pane=a;this.id=a.id;this.controls=new Array();this.origBorder=a.style.border;this.paneName=b;var f=0;var e="";for(var d=0;d<a.childNodes.length;d++){var g=a.childNodes[d];if(dnn.dom.isNonTextNode(g)){if(__dnn_m_aryModules==null){__dnn_m_aryModules=new Array()}var c=g.getAttribute("moduleid");if(c!=null&&c.length>0){e+=c+"~";this.controls[this.controls.length]=new __dnn_PaneControl(g,f);__dnn_m_aryModules[c]=g.id;f+=1}}}this.moduleOrder=e}function __dnn_PaneControl(a,b){this.control=a;this.id=a.id;this.index=b;this.origBorder=a.style.border}function __dnn_ShowModalPage(a){dnnModal.show(a,true,550,950,true,"")}function __dnncore(){this.GetUserVal=0;this.SetUserVal=1}__dnncore.prototype={getUserProp:function(b,c,a){this._doUserCallBack(dnncore.GetUserVal,b,c,null,new dnncore.UserPropArgs(b,c,a))},setUserProp:function(c,d,a,b){this._doUserCallBack(dnncore.SetUserVal,c,d,a,new dnncore.UserPropArgs(c,d,b))},_doUserCallBack:function(c,d,e,a,b){if(dnn&&dnn.xmlhttp){var f=c+COL_DELIMITER+d+COL_DELIMITER+e+COL_DELIMITER+a;dnn.xmlhttp.doCallBack("__Page",f,dnncore._callBackSuccess,b,dnncore._callBackFail,null,true,null,0)}else{alert("Client Personalization not enabled")}},_callBackSuccess:function(a,b,c){if(b.pFunc){b.pFunc(b.namingCtr,b.key,a)}},_callBackFail:function(a,b){window.status=a}};__dnncore.prototype.UserPropArgs=function(b,c,a){this.namingCtr=b;this.key=c;this.pFunc=a};var dnncore=new __dnncore();
;;;