!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(w,e){function t(e,t){return t.toUpperCase()}var i=[],x=w.document,u=i.slice,m=i.concat,a=i.push,o=i.indexOf,n={},s=n.toString,f=n.hasOwnProperty,g={},r="2.2.4",T=function(e,t){return new T.fn.init(e,t)},l=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,c=/^-ms-/,d=/-([\da-z])/gi;function h(e){var t=!!e&&"length"in e&&e.length,i=T.type(e);return"function"!==i&&!T.isWindow(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}T.fn=T.prototype={jquery:r,constructor:T,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){e=T.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e){return T.each(this,e)},map:function(i){return this.pushStack(T.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:i.sort,splice:i.splice},T.extend=T.fn.extend=function(){var e,t,i,n,o,s=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[r]||{},r++),"object"==typeof s||T.isFunction(s)||(s={}),r===a&&(s=this,r--);r<a;r++)if(null!=(e=arguments[r]))for(t in e)o=s[t],i=e[t],s!==i&&(l&&i&&(T.isPlainObject(i)||(n=T.isArray(i)))?(o=n?(n=!1,o&&T.isArray(o)?o:[]):o&&T.isPlainObject(o)?o:{},s[t]=T.extend(l,o,i)):void 0!==i&&(s[t]=i));return s},T.extend({expando:"jQuery"+(r+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===T.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!T.isArray(e)&&0<=t-parseFloat(t)+1},isPlainObject:function(e){if("object"!==T.type(e)||e.nodeType||T.isWindow(e))return!1;if(e.constructor&&!f.call(e,"constructor")&&!f.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(var t in e);return void 0===t||f.call(e,t)},isEmptyObject:function(e){for(var t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[s.call(e)]||"object":typeof e},globalEval:function(e){var t,i=eval;(e=T.trim(e))&&(1===e.indexOf("use strict")?((t=x.createElement("script")).text=e,x.head.appendChild(t).parentNode.removeChild(t)):i(e))},camelCase:function(e){return e.replace(c,"ms-").replace(d,t)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,n=0;if(h(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(l,"")},makeArray:function(e,t){t=t||[];return null!=e&&(h(Object(e))?T.merge(t,"string"==typeof e?[e]:e):a.call(t,e)),t},inArray:function(e,t,i){return null==t?-1:o.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,o=e.length;n<i;n++)e[o++]=t[n];return e.length=o,e},grep:function(e,t,i){for(var n=[],o=0,s=e.length,r=!i;o<s;o++)!t(e[o],o)!=r&&n.push(e[o]);return n},map:function(e,t,i){var n,o,s=0,r=[];if(h(e))for(n=e.length;s<n;s++)null!=(o=t(e[s],s,i))&&r.push(o);else for(s in e)o=t(e[s],s,i),null!=o&&r.push(o);return m.apply([],r)},guid:1,proxy:function(e,t){var i,n;return"string"==typeof t&&(n=e[t],t=e,e=n),T.isFunction(e)?(i=u.call(arguments,2),(n=function(){return e.apply(t||this,i.concat(u.call(arguments)))}).guid=e.guid=e.guid||T.guid++,n):void 0},now:Date.now,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=i[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(i){function d(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(65536+n):String.fromCharCode(n>>10|55296,1023&n|56320)}function t(){x()}var e,f,b,s,n,m,h,g,w,l,c,x,T,o,C,v,r,a,y,S="sizzle"+ +new Date,_=i.document,k=0,u=0,p=oe(),E=oe(),L=oe(),P=function(e,t){return e===t&&(c=!0),0},A={}.hasOwnProperty,M=[],O=M.pop,I=M.push,z=M.push,D=M.slice,N=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R="\\["+$+"*("+j+")(?:"+$+"*([*^$|!~]?=)"+$+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+$+"*\\]",H=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",F=new RegExp($+"+","g"),q=new RegExp("^"+$+"+|((?:^|[^\\\\])(?:\\\\.)*)"+$+"+$","g"),W=new RegExp("^"+$+"*,"+$+"*"),U=new RegExp("^"+$+"*([>+~]|"+$+")"+$+"*"),V=new RegExp("="+$+"*([^\\]'\"]*?)"+$+"*\\]","g"),G=new RegExp(H),Z=new RegExp("^"+j+"$"),Y={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+$+"*(even|odd|(([+-]|)(\\d*)n|)"+$+"*(?:([+-]|)"+$+"*(\\d+)|))"+$+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+$+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+$+"*((?:-\\d)?\\d*)"+$+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ie=new RegExp("\\\\([\\da-f]{1,6}"+$+"?|("+$+")|.)","ig");try{z.apply(M=D.call(_.childNodes),_.childNodes),M[_.childNodes.length].nodeType}catch(e){z={apply:M.length?function(e,t){I.apply(e,D.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ne(e,t,i,n){var o,s,r,a,l,c,u,d,h=t&&t.ownerDocument,p=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return i;if(!n&&((t?t.ownerDocument||t:_)!==T&&x(t),t=t||T,C)){if(11!==p&&(c=J.exec(e)))if(o=c[1]){if(9===p){if(!(r=t.getElementById(o)))return i;if(r.id===o)return i.push(r),i}else if(h&&(r=h.getElementById(o))&&y(t,r)&&r.id===o)return i.push(r),i}else{if(c[2])return z.apply(i,t.getElementsByTagName(e)),i;if((o=c[3])&&f.getElementsByClassName&&t.getElementsByClassName)return z.apply(i,t.getElementsByClassName(o)),i}if(f.qsa&&!L[e+" "]&&(!v||!v.test(e))){if(1!==p)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(te,"\\$&"):t.setAttribute("id",a=S),s=(u=m(e)).length,l=Z.test(a)?"#"+a:"[id='"+a+"']";s--;)u[s]=l+" "+he(u[s]);d=u.join(","),h=ee.test(e)&&ue(t.parentNode)||t}if(d)try{return z.apply(i,h.querySelectorAll(d)),i}catch(e){}finally{a===S&&t.removeAttribute("id")}}}return g(e.replace(q,"$1"),t,i,n)}function oe(){var i=[];function n(e,t){return i.push(e+" ")>b.cacheLength&&delete n[i.shift()],n[e+" "]=t}return n}function se(e){return e[S]=!0,e}function re(e){var t=T.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ae(e,t){for(var i=e.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=t}function le(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ce(r){return se(function(s){return s=+s,se(function(e,t){for(var i,n=r([],e.length,s),o=n.length;o--;)e[i=n[o]]&&(e[i]=!(t[i]=e[i]))})})}function ue(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=ne.support={},n=ne.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},x=ne.setDocument=function(e){var e=e?e.ownerDocument||e:_;return e!==T&&9===e.nodeType&&e.documentElement&&(o=(T=e).documentElement,C=!n(T),(e=T.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",t,!1):e.attachEvent&&e.attachEvent("onunload",t)),f.attributes=re(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=re(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=Q.test(T.getElementsByClassName),f.getById=re(function(e){return o.appendChild(e).id=S,!T.getElementsByName||!T.getElementsByName(S).length}),f.getById?(b.find.ID=function(e,t){if(void 0!==t.getElementById&&C){e=t.getElementById(e);return e?[e]:[]}},b.filter.ID=function(e){var t=e.replace(ie,d);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(ie,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),b.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],o=0,s=t.getElementsByTagName(e);if("*"!==e)return s;for(;i=s[o++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=f.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&C?t.getElementsByClassName(e):void 0},r=[],v=[],(f.qsa=Q.test(T.querySelectorAll))&&(re(function(e){o.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+$+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+$+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]")}),re(function(e){var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+$+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(f.matchesSelector=Q.test(a=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&re(function(e){f.disconnectedMatch=a.call(e,"div"),a.call(e,"[s!='']:x"),r.push("!=",H)}),v=v.length&&new RegExp(v.join("|")),r=r.length&&new RegExp(r.join("|")),e=Q.test(o.compareDocumentPosition),y=e||Q.test(o.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},P=e?function(e,t){if(e===t)return c=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===i?e===T||e.ownerDocument===_&&y(_,e)?-1:t===T||t.ownerDocument===_&&y(_,t)?1:l?N(l,e)-N(l,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var i,n=0,o=e.parentNode,s=t.parentNode,r=[e],a=[t];if(!o||!s)return e===T?-1:t===T?1:o?-1:s?1:l?N(l,e)-N(l,t):0;if(o===s)return le(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?le(r[n],a[n]):r[n]===_?-1:a[n]===_?1:0}),T},ne.matches=function(e,t){return ne(e,null,null,t)},ne.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&x(e),t=t.replace(V,"='$1']"),f.matchesSelector&&C&&!L[t+" "]&&(!r||!r.test(t))&&(!v||!v.test(t)))try{var i=a.call(e,t);if(i||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return 0<ne(t,T,null,[e]).length},ne.contains=function(e,t){return(e.ownerDocument||e)!==T&&x(e),y(e,t)},ne.attr=function(e,t){(e.ownerDocument||e)!==T&&x(e);var i=b.attrHandle[t.toLowerCase()],i=i&&A.call(b.attrHandle,t.toLowerCase())?i(e,t,!C):void 0;return void 0!==i?i:f.attributes||!C?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ne.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ne.uniqueSort=function(e){var t,i=[],n=0,o=0;if(c=!f.detectDuplicates,l=!f.sortStable&&e.slice(0),e.sort(P),c){for(;t=e[o++];)t===e[o]&&(n=i.push(o));for(;n--;)e.splice(i[n],1)}return l=null,e},s=ne.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=s(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=s(t);return i},(b=ne.selectors={cacheLength:50,createPseudo:se,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ne.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ne.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&G.test(i)&&(t=m(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+$+")"+e+"("+$+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(e){e=ne.attr(e,t);return null==e?"!="===i:!i||(e+="","="===i?e===n:"!="===i?e!==n:"^="===i?n&&0===e.indexOf(n):"*="===i?n&&-1<e.indexOf(n):"$="===i?n&&e.slice(-n.length)===n:"~="===i?-1<(" "+e.replace(F," ")+" ").indexOf(n):"|="===i&&(e===n||e.slice(0,n.length+1)===n+"-"))}},CHILD:function(f,e,t,m,g){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),_="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,i){var n,o,s,r,a,l,c=v!=y?"nextSibling":"previousSibling",u=e.parentNode,d=_&&e.nodeName.toLowerCase(),h=!i&&!_,p=!1;if(u){if(v){for(;c;){for(r=e;r=r[c];)if(_?r.nodeName.toLowerCase()===d:1===r.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&h){for(p=(a=(n=(o=(s=(r=u)[S]||(r[S]={}))[r.uniqueID]||(s[r.uniqueID]={}))[f]||[])[0]===k&&n[1])&&n[2],r=a&&u.childNodes[a];r=++a&&r&&r[c]||(p=a=0)||l.pop();)if(1===r.nodeType&&++p&&r===e){o[f]=[k,a,p];break}}else if(!1===(p=h?a=(n=(o=(s=(r=e)[S]||(r[S]={}))[r.uniqueID]||(s[r.uniqueID]={}))[f]||[])[0]===k&&n[1]:p))for(;(r=++a&&r&&r[c]||(p=a=0)||l.pop())&&((_?r.nodeName.toLowerCase()!==d:1!==r.nodeType)||!++p||(h&&((o=(s=r[S]||(r[S]={}))[r.uniqueID]||(s[r.uniqueID]={}))[f]=[k,p]),r!==e)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(e,s){var t,r=b.pseudos[e]||b.setFilters[e.toLowerCase()]||ne.error("unsupported pseudo: "+e);return r[S]?r(s):1<r.length?(t=[e,e,"",s],b.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,t){for(var i,n=r(e,s),o=n.length;o--;)e[i=N(e,n[o])]=!(t[i]=n[o])}):function(e){return r(e,0,t)}):r}},pseudos:{not:se(function(e){var n=[],o=[],a=h(e.replace(q,"$1"));return a[S]?se(function(e,t,i,n){for(var o,s=a(e,null,n,[]),r=e.length;r--;)(o=s[r])&&(e[r]=!(t[r]=o))}):function(e,t,i){return n[0]=e,a(n,null,i,o),n[0]=null,!o.pop()}}),has:se(function(t){return function(e){return 0<ne(t,e).length}}),contains:se(function(t){return t=t.replace(ie,d),function(e){return-1<(e.textContent||e.innerText||s(e)).indexOf(t)}}),lang:se(function(i){return Z.test(i||"")||ne.error("unsupported lang: "+i),i=i.replace(ie,d).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===o},focus:function(e){return e===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:ce(function(){return[0]}),last:ce(function(e,t){return[t-1]}),eq:ce(function(e,t,i){return[i<0?i+t:i]}),even:ce(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:ce(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:ce(function(e,t,i){for(var n=i<0?i+t:i;0<=--n;)e.push(n);return e}),gt:ce(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=function(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}(e);function de(){}function he(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function pe(r,e,t){var a=e.dir,l=t&&"parentNode"===a,c=u++;return e.first?function(e,t,i){for(;e=e[a];)if(1===e.nodeType||l)return r(e,t,i)}:function(e,t,i){var n,o,s=[k,c];if(i){for(;e=e[a];)if((1===e.nodeType||l)&&r(e,t,i))return!0}else for(;e=e[a];)if(1===e.nodeType||l){if((o=(n=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}))[a])&&o[0]===k&&o[1]===c)return s[2]=o[2];if((n[a]=s)[2]=r(e,t,i))return!0}}}function fe(o){return 1<o.length?function(e,t,i){for(var n=o.length;n--;)if(!o[n](e,t,i))return!1;return!0}:o[0]}function me(e,t,i,n,o){for(var s,r=[],a=0,l=e.length,c=null!=t;a<l;a++)(s=e[a])&&(i&&!i(s,n,o)||(r.push(s),c&&t.push(a)));return r}function ge(p,f,m,g,v,e){return g&&!g[S]&&(g=ge(g)),v&&!v[S]&&(v=ge(v,e)),se(function(e,t,i,n){var o,s,r,a=[],l=[],c=t.length,u=e||function(e,t,i){for(var n=0,o=t.length;n<o;n++)ne(e,t[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),d=!p||!e&&f?u:me(u,a,p,i,n),h=m?v||(e?p:c||g)?[]:t:d;if(m&&m(d,h,i,n),g)for(o=me(h,l),g(o,[],i,n),s=o.length;s--;)(r=o[s])&&(h[l[s]]=!(d[l[s]]=r));if(e){if(v||p){if(v){for(o=[],s=h.length;s--;)(r=h[s])&&o.push(d[s]=r);v(null,h=[],o,n)}for(s=h.length;s--;)(r=h[s])&&-1<(o=v?N(e,r):a[s])&&(e[o]=!(t[o]=r))}}else h=me(h===t?h.splice(c,h.length):h),v?v(null,t,h,n):z.apply(t,h)})}function ve(g,v){function e(e,t,i,n,o){var s,r,a,l=0,c="0",u=e&&[],d=[],h=w,p=e||_&&b.find.TAG("*",o),f=k+=null==h?1:Math.random()||.1,m=p.length;for(o&&(w=t===T||t||o);c!==m&&null!=(s=p[c]);c++){if(_&&s){for(r=0,t||s.ownerDocument===T||(x(s),i=!C);a=g[r++];)if(a(s,t||T,i)){n.push(s);break}o&&(k=f)}y&&((s=!a&&s)&&l--,e&&u.push(s))}if(l+=c,y&&c!==l){for(r=0;a=v[r++];)a(u,d,t,i);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=O.call(n));d=me(d)}z.apply(n,d),o&&!e&&0<d.length&&1<l+v.length&&ne.uniqueSort(n)}return o&&(k=f,w=h),u}var y=0<v.length,_=0<g.length;return y?se(e):e}return de.prototype=b.filters=b.pseudos,b.setFilters=new de,m=ne.tokenize=function(e,t){var i,n,o,s,r,a,l,c=E[e+" "];if(c)return t?0:c.slice(0);for(r=e,a=[],l=b.preFilter;r;){for(s in i&&!(n=W.exec(r))||(n&&(r=r.slice(n[0].length)||r),a.push(o=[])),i=!1,(n=U.exec(r))&&(i=n.shift(),o.push({value:i,type:n[0].replace(q," ")}),r=r.slice(i.length)),b.filter)!(n=Y[s].exec(r))||l[s]&&!(n=l[s](n))||(i=n.shift(),o.push({value:i,type:s,matches:n}),r=r.slice(i.length));if(!i)break}return t?r.length:r?ne.error(e):E(e,a).slice(0)},h=ne.compile=function(e,t){var i,n=[],o=[],s=L[e+" "];if(!s){for(i=(t=t||m(e)).length;i--;)((s=function e(t){for(var n,i,o,s=t.length,r=b.relative[t[0].type],a=r||b.relative[" "],l=r?1:0,c=pe(function(e){return e===n},a,!0),u=pe(function(e){return-1<N(n,e)},a,!0),d=[function(e,t,i){return i=!r&&(i||t!==w)||((n=t).nodeType?c:u)(e,t,i),n=null,i}];l<s;l++)if(i=b.relative[t[l].type])d=[pe(fe(d),i)];else{if((i=b.filter[t[l].type].apply(null,t[l].matches))[S]){for(o=++l;o<s&&!b.relative[t[o].type];o++);return ge(1<l&&fe(d),1<l&&he(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(q,"$1"),i,l<o&&e(t.slice(l,o)),o<s&&e(t=t.slice(o)),o<s&&he(t))}d.push(i)}return fe(d)}(t[i]))[S]?n:o).push(s);(s=L(e,ve(o,n))).selector=e}return s},g=ne.select=function(e,t,i,n){var o,s,r,a,l,c="function"==typeof e&&e,u=!n&&m(e=c.selector||e);if(i=i||[],1===u.length){if(2<(s=u[0]=u[0].slice(0)).length&&"ID"===(r=s[0]).type&&f.getById&&9===t.nodeType&&C&&b.relative[s[1].type]){if(!(t=(b.find.ID(r.matches[0].replace(ie,d),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=Y.needsContext.test(e)?0:s.length;o--&&(r=s[o],!b.relative[a=r.type]);)if((l=b.find[a])&&(n=l(r.matches[0].replace(ie,d),ee.test(s[0].type)&&ue(t.parentNode)||t))){if(s.splice(o,1),!(e=n.length&&he(s)))return z.apply(i,n),i;break}}return(c||h(e,u))(n,t,!C,i,!t||ee.test(e)&&ue(t.parentNode)||t),i},f.sortStable=S.split("").sort(P).join("")===S,f.detectDuplicates=!!c,x(),f.sortDetached=re(function(e){return 1&e.compareDocumentPosition(T.createElement("div"))}),re(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ae("type|href|height|width",function(e,t,i){return i?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&re(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ae("value",function(e,t,i){return i||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),re(function(e){return null==e.getAttribute("disabled")})||ae(B,function(e,t,i){return i?void 0:!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null}),ne}(w);T.find=p,T.expr=p.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=p.uniqueSort,T.text=p.getText,T.isXMLDoc=p.isXML,T.contains=p.contains;function v(e,t,i){for(var n=[],o=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&T(e).is(i))break;n.push(e)}return n}function y(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}var _=T.expr.match.needsContext,b=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;function S(e,i,n){if(T.isFunction(i))return T.grep(e,function(e,t){return!!i.call(e,t,e)!==n});if(i.nodeType)return T.grep(e,function(e){return e===i!==n});if("string"==typeof i){if(C.test(i))return T.filter(i,e,n);i=T.filter(i,e)}return T.grep(e,function(e){return-1<o.call(i,e)!==n})}T.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?T.find.matchesSelector(n,e)?[n]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,i=this.length,n=[],o=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<i;t++)if(T.contains(o[t],this))return!0}));for(t=0;t<i;t++)T.find(e,o[t],n);return(n=this.pushStack(1<i?T.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,"string"==typeof e&&_.test(e)?T(e):e||[],!1).length}});var k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(T.fn.init=function(e,t,i){if(!e)return this;if(i=i||E,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):T.isFunction(e)?void 0!==i.ready?i.ready(e):e(T):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),T.makeArray(e,this));if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:k.exec(e))||!n[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),b.test(n[1])&&T.isPlainObject(t))for(var n in t)T.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=x.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=x,this.selector=e,this}).prototype=T.fn;var E=T(x),L=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){for(var i,n=0,o=this.length,s=[],r=_.test(e)||"string"!=typeof e?T(e,t||this.context):0;n<o;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&T.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(1<s.length?T.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?o.call(T(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return v(e,"parentNode")},parentsUntil:function(e,t,i){return v(e,"parentNode",i)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return v(e,"nextSibling")},prevAll:function(e){return v(e,"previousSibling")},nextUntil:function(e,t,i){return v(e,"nextSibling",i)},prevUntil:function(e,t,i){return v(e,"previousSibling",i)},siblings:function(e){return y((e.parentNode||{}).firstChild,e)},children:function(e){return y(e.firstChild)},contents:function(e){return e.contentDocument||T.merge([],e.childNodes)}},function(n,o){T.fn[n]=function(e,t){var i=T.map(this,o,e);return(t="Until"!==n.slice(-5)?e:t)&&"string"==typeof t&&(i=T.filter(t,i)),1<this.length&&(P[n]||T.uniqueSort(i),L.test(n)&&i.reverse()),this.pushStack(i)}});var M,O=/\S+/g;function I(){x.removeEventListener("DOMContentLoaded",I),w.removeEventListener("load",I),T.ready()}T.Callbacks=function(n){var e,i;n="string"==typeof n?(e=n,i={},T.each(e.match(O)||[],function(e,t){i[t]=!0}),i):T.extend({},n);function o(){for(a=n.once,r=s=!0;c.length;u=-1)for(t=c.shift();++u<l.length;)!1===l[u].apply(t[0],t[1])&&n.stopOnFalse&&(u=l.length,t=!1);n.memory||(t=!1),s=!1,a&&(l=t?[]:"")}var s,t,r,a,l=[],c=[],u=-1,d={add:function(){return l&&(t&&!s&&(u=l.length-1,c.push(t)),function i(e){T.each(e,function(e,t){T.isFunction(t)?n.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==T.type(t)&&i(t)})}(arguments),t&&!s&&o()),this},remove:function(){return T.each(arguments,function(e,t){for(var i;-1<(i=T.inArray(t,l,i));)l.splice(i,1),i<=u&&u--}),this},has:function(e){return e?-1<T.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return a=c=[],t||(l=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),s||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},T.extend({Deferred:function(e){var s=[["resolve","done",T.Callbacks("once memory"),"resolved"],["reject","fail",T.Callbacks("once memory"),"rejected"],["notify","progress",T.Callbacks("memory")]],o="pending",r={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var o=arguments;return T.Deferred(function(n){T.each(s,function(e,t){var i=T.isFunction(o[e])&&o[e];a[t[1]](function(){var e=i&&i.apply(this,arguments);e&&T.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this===r?n.promise():this,i?[e]:arguments)})}),o=null}).promise()},promise:function(e){return null!=e?T.extend(e,r):r}},a={};return r.pipe=r.then,T.each(s,function(e,t){var i=t[2],n=t[3];r[t[1]]=i.add,n&&i.add(function(){o=n},s[1^e][2].disable,s[2][2].lock),a[t[0]]=function(){return a[t[0]+"With"](this===a?r:this,arguments),this},a[t[0]+"With"]=i.fireWith}),r.promise(a),e&&e.call(a,a),a},when:function(e){function t(t,i,n){return function(e){i[t]=this,n[t]=1<arguments.length?u.call(arguments):e,n===o?c.notifyWith(i,n):--l||c.resolveWith(i,n)}}var o,i,n,s=0,r=u.call(arguments),a=r.length,l=1!==a||e&&T.isFunction(e.promise)?a:0,c=1===l?e:T.Deferred();if(1<a)for(o=new Array(a),i=new Array(a),n=new Array(a);s<a;s++)r[s]&&T.isFunction(r[s].promise)?r[s].promise().progress(t(s,i,o)).done(t(s,n,r)).fail(c.reject):--l;return l||c.resolveWith(n,r),c.promise()}}),T.fn.ready=function(e){return T.ready.promise().done(e),this},T.extend({isReady:!1,readyWait:1,holdReady:function(e){e?T.readyWait++:T.ready(!0)},ready:function(e){(!0===e?--T.readyWait:T.isReady)||((T.isReady=!0)!==e&&0<--T.readyWait||(M.resolveWith(x,[T]),T.fn.triggerHandler&&(T(x).triggerHandler("ready"),T(x).off("ready"))))}}),T.ready.promise=function(e){return M||(M=T.Deferred(),"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?w.setTimeout(T.ready):(x.addEventListener("DOMContentLoaded",I),w.addEventListener("load",I))),M.promise(e)},T.ready.promise();function z(e,t,i,n,o,s,r){var a=0,l=e.length,c=null==i;if("object"===T.type(i))for(a in o=!0,i)z(e,t,a,i[a],!0,s,r);else if(void 0!==n&&(o=!0,T.isFunction(n)||(r=!0),t=c?r?(t.call(e,n),null):(c=t,function(e,t,i){return c.call(T(e),i)}):t))for(;a<l;a++)t(e[a],i,r?n:n.call(e[a],a,t(e[a],i)));return o?e:c?t.call(e):l?t(e[0],i):s}function D(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function N(){this.expando=T.expando+N.uid++}N.uid=1,N.prototype={register:function(e,t){t=t||{};return e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!D(e))return{};var t=e[this.expando];return t||(t={},D(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,o=this.cache(e);if("string"==typeof t)o[t]=i;else for(n in t)o[n]=t[n];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,i){var n;return void 0===t||t&&"string"==typeof t&&void 0===i?void 0!==(n=this.get(e,t))?n:this.get(e,T.camelCase(t)):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n,o,s=e[this.expando];if(void 0!==s){if(void 0===t)this.register(e);else{i=(n=T.isArray(t)?t.concat(t.map(T.camelCase)):(o=T.camelCase(t),t in s?[t,o]:(n=o)in s?[n]:n.match(O)||[])).length;for(;i--;)delete s[n[i]]}void 0!==t&&!T.isEmptyObject(s)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var B=new N,$=new N,j=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,R=/[A-Z]/g;function H(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(R,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:j.test(i)?T.parseJSON(i):i)}catch(e){}$.set(e,t,i)}else i=void 0;return i}T.extend({hasData:function(e){return $.hasData(e)||B.hasData(e)},data:function(e,t,i){return $.access(e,t,i)},removeData:function(e,t){$.remove(e,t)},_data:function(e,t,i){return B.access(e,t,i)},_removeData:function(e,t){B.remove(e,t)}}),T.fn.extend({data:function(n,e){var t,i,o,s=this[0],r=s&&s.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){$.set(this,n)}):z(this,function(t){var e,i;return s&&void 0===t?void 0!==(e=$.get(s,n)||$.get(s,n.replace(R,"-$&").toLowerCase()))?e:(i=T.camelCase(n),void 0!==(e=$.get(s,i))?e:void 0!==(e=H(s,i,void 0))?e:void 0):(i=T.camelCase(n),void this.each(function(){var e=$.get(this,i);$.set(this,i,t),-1<n.indexOf("-")&&void 0!==e&&$.set(this,n,t)}))},null,e,1<arguments.length,null,!0);if(this.length&&(o=$.get(s),1===s.nodeType&&!B.get(s,"hasDataAttrs"))){for(t=r.length;t--;)r[t]&&(0===(i=r[t].name).indexOf("data-")&&(i=T.camelCase(i.slice(5)),H(s,i,o[i])));B.set(s,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){$.remove(this,e)})}}),T.extend({queue:function(e,t,i){var n;return e?(n=B.get(e,t=(t||"fx")+"queue"),i&&(!n||T.isArray(i)?n=B.access(e,t,T.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=T.queue(e,t),n=i.length,o=i.shift(),s=T._queueHooks(e,t);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===t&&i.unshift("inprogress"),delete s.stop,o.call(e,function(){T.dequeue(e,t)},s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return B.get(e,i)||B.access(e,i,{empty:T.Callbacks("once memory").add(function(){B.remove(e,[t+"queue",i])})})}}),T.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===i?this:this.each(function(){var e=T.queue(this,t,i);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function i(){--o||s.resolveWith(r,[r])}var n,o=1,s=T.Deferred(),r=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=B.get(r[a],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(i));return i(),s.promise(t)}});function F(e,t){return"none"===T.css(e=t||e,"display")||!T.contains(e.ownerDocument,e)}var r=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,q=new RegExp("^(?:([+-])=|)("+r+")([a-z%]*)$","i"),W=["Top","Right","Bottom","Left"];function U(e,t,i,n){var o,s=1,r=20,a=n?function(){return n.cur()}:function(){return T.css(e,t,"")},l=a(),c=i&&i[3]||(T.cssNumber[t]?"":"px"),u=(T.cssNumber[t]||"px"!==c&&+l)&&q.exec(T.css(e,t));if(u&&u[3]!==c)for(c=c||u[3],i=i||[],u=+l||1;T.style(e,t,(u/=s=s||".5")+c),s!==(s=a()/l)&&1!==s&&--r;);return i&&(u=+u||+l||0,o=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=o)),o}var V=/^(?:checkbox|radio)$/i,G=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,Y={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function X(e,t){var i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&T.nodeName(e,t)?T.merge([e],i):i}function K(e,t){for(var i=0,n=e.length;i<n;i++)B.set(e[i],"globalEval",!t||B.get(t[i],"globalEval"))}Y.optgroup=Y.option,Y.tbody=Y.tfoot=Y.colgroup=Y.caption=Y.thead,Y.th=Y.td;var Q=/<|&#?\w+;/;function J(e,t,i,n,o){for(var s,r,a,l,c,u=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((s=e[h])||0===s)if("object"===T.type(s))T.merge(d,s.nodeType?[s]:s);else if(Q.test(s)){for(r=r||u.appendChild(t.createElement("div")),a=(G.exec(s)||["",""])[1].toLowerCase(),a=Y[a]||Y._default,r.innerHTML=a[1]+T.htmlPrefilter(s)+a[2],c=a[0];c--;)r=r.lastChild;T.merge(d,r.childNodes),(r=u.firstChild).textContent=""}else d.push(t.createTextNode(s));for(u.textContent="",h=0;s=d[h++];)if(n&&-1<T.inArray(s,n))o&&o.push(s);else if(l=T.contains(s.ownerDocument,s),r=X(u.appendChild(s),"script"),l&&K(r),i)for(c=0;s=r[c++];)Z.test(s.type||"")&&i.push(s);return u}i=x.createDocumentFragment().appendChild(x.createElement("div")),(p=x.createElement("input")).setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),i.appendChild(p),g.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,i.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!i.cloneNode(!0).lastChild.defaultValue;var ee=/^key/,te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ie=/^([^.]*)(?:\.(.+)|)/;function ne(){return!0}function oe(){return!1}function se(){try{return x.activeElement}catch(e){}}function re(e,t,i,n,o,s){var r,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)re(e,a,i,n,t[a],s);return e}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=oe;else if(!o)return e;return 1===s&&(r=o,(o=function(e){return T().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=T.guid++)),e.each(function(){T.event.add(this,t,o,n,i)})}T.event={global:{},add:function(t,e,i,n,o){var s,r,a,l,c,u,d,h,p,f=B.get(t);if(f)for(i.handler&&(i=(s=i).handler,o=s.selector),i.guid||(i.guid=T.guid++),(a=f.events)||(a=f.events={}),(r=f.handle)||(r=f.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(O)||[""]).length;l--;)d=p=(c=ie.exec(e[l])||[])[1],h=(c[2]||"").split(".").sort(),d&&(u=T.event.special[d]||{},d=(o?u.delegateType:u.bindType)||d,u=T.event.special[d]||{},c=T.extend({type:d,origType:p,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},s),(p=a[d])||((p=a[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,h,r)||t.addEventListener&&t.addEventListener(d,r)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),o?p.splice(p.delegateCount++,0,c):p.push(c),T.event.global[d]=!0)},remove:function(e,t,i,n,o){var s,r,a,l,c,u,d,h,p,f,m,g=B.hasData(e)&&B.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(O)||[""]).length;c--;)if(p=m=(a=ie.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=h.length;s--;)u=h[s],!o&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));r&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||T.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[c],i,n,!0);T.isEmptyObject(l)&&B.remove(e,"handle events")}},dispatch:function(e){e=T.event.fix(e);var t,i,n,o,s,r=u.call(arguments),a=(B.get(this,"events")||{})[e.type]||[],l=T.event.special[e.type]||{};if((r[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(s=T.event.handlers.call(this,e,a),t=0;(n=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=n.elem,i=0;(o=n.handlers[i++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(o=((T.event.special[o.origType]||{}).handle||o.handler).apply(n.elem,r))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,o,s,r=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(n=[],i=0;i<a;i++)void 0===n[o=(s=t[i]).selector+" "]&&(n[o]=s.needsContext?-1<T(o,this).index(l):T.find(o,this,null,[l]).length),n[o]&&n.push(s);n.length&&r.push({elem:l,handlers:n})}return a<t.length&&r.push({elem:this,handlers:t.slice(a)}),r},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,n,o=t.button;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||x).documentElement,n=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[T.expando])return e;var t,i,n,o=e.type,s=e,r=this.fixHooks[o];for(r||(this.fixHooks[o]=r=te.test(o)?this.mouseHooks:ee.test(o)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,e=new T.Event(s),t=n.length;t--;)e[i=n[t]]=s[i];return e.target||(e.target=x),3===e.target.nodeType&&(e.target=e.target.parentNode),r.filter?r.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==se()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===se()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&T.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return T.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},T.Event=function(e,t){return this instanceof T.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ne:oe):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||T.now(),void(this[T.expando]=!0)):new T.Event(e,t)},T.Event.prototype={constructor:T.Event,isDefaultPrevented:oe,isPropagationStopped:oe,isImmediatePropagationStopped:oe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){T.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||T.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=o),t}}}),T.fn.extend({on:function(e,t,i,n){return re(this,e,t,i,n)},one:function(e,t,i,n){return re(this,e,t,i,n,1)},off:function(e,t,i){var n,o;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,T(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=oe),this.each(function(){T.event.remove(this,e,i,t)});for(o in e)this.off(o,t,e[o]);return this}});var ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,le=/<script|<style|<link/i,ce=/checked\s*(?:[^=]|=\s*.checked.)/i,ue=/^true\/(.*)/,de=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function he(e,t){return T.nodeName(e,"table")&&T.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function fe(e){var t=ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function me(e,t){var i,n,o,s,r,a;if(1===t.nodeType){if(B.hasData(e)&&(s=B.access(e),r=B.set(t,s),a=s.events))for(o in delete r.handle,r.events={},a)for(i=0,n=a[o].length;i<n;i++)T.event.add(t,o,a[o][i]);$.hasData(e)&&(e=$.access(e),e=T.extend({},e),$.set(t,e))}}function ge(i,n,o,s){n=m.apply([],n);var e,t,r,a,l,c,u=0,d=i.length,h=d-1,p=n[0],f=T.isFunction(p);if(f||1<d&&"string"==typeof p&&!g.checkClone&&ce.test(p))return i.each(function(e){var t=i.eq(e);f&&(n[0]=p.call(this,e,t.html())),ge(t,n,o,s)});if(d&&(t=(e=J(n,i[0].ownerDocument,!1,i,s)).firstChild,1===e.childNodes.length&&(e=t),t||s)){for(a=(r=T.map(X(e,"script"),pe)).length;u<d;u++)l=e,u!==h&&(l=T.clone(l,!0,!0),a&&T.merge(r,X(l,"script"))),o.call(i[u],l,u);if(a)for(c=r[r.length-1].ownerDocument,T.map(r,fe),u=0;u<a;u++)l=r[u],Z.test(l.type||"")&&!B.access(l,"globalEval")&&T.contains(c,l)&&(l.src?T._evalUrl&&T._evalUrl(l.src):T.globalEval(l.textContent.replace(de,"")))}return i}function ve(e,t,i){for(var n,o=t?T.filter(t,e):e,s=0;null!=(n=o[s]);s++)i||1!==n.nodeType||T.cleanData(X(n)),n.parentNode&&(i&&T.contains(n.ownerDocument,n)&&K(X(n,"script")),n.parentNode.removeChild(n));return e}T.extend({htmlPrefilter:function(e){return e.replace(ae,"<$1></$2>")},clone:function(e,t,i){var n,o,s,r,a,l,c,u=e.cloneNode(!0),d=T.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(r=X(u),n=0,o=(s=X(e)).length;n<o;n++)a=s[n],l=r[n],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&V.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(i)for(s=s||X(e),r=r||X(u),n=0,o=s.length;n<o;n++)me(s[n],r[n]);else me(e,u);return 0<(r=X(u,"script")).length&&K(r,!d&&X(e,"script")),u},cleanData:function(e){for(var t,i,n,o=T.event.special,s=0;void 0!==(i=e[s]);s++)if(D(i)){if(t=i[B.expando]){if(t.events)for(n in t.events)o[n]?T.event.remove(i,n):T.removeEvent(i,n,t.handle);i[B.expando]=void 0}i[$.expando]&&(i[$.expando]=void 0)}}}),T.fn.extend({domManip:ge,detach:function(e){return ve(this,e,!0)},remove:function(e){return ve(this,e)},text:function(e){return z(this,function(e){return void 0===e?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return ge(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||he(this,e).appendChild(e)})},prepend:function(){return ge(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=he(this,e)).insertBefore(e,t.firstChild)})},before:function(){return ge(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ge(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(X(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!le.test(e)&&!Y[(G.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(T.cleanData(X(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return ge(this,arguments,function(e){var t=this.parentNode;T.inArray(this,i)<0&&(T.cleanData(X(this)),t&&t.replaceChild(e,this))},i)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,r){T.fn[e]=function(e){for(var t,i=[],n=T(e),o=n.length-1,s=0;s<=o;s++)t=s===o?this:this.clone(!0),T(n[s])[r](t),a.apply(i,t.get());return this.pushStack(i)}});var ye,_e={HTML:"block",BODY:"block"};function be(e,t){e=T(t.createElement(e)).appendTo(t.body),t=T.css(e[0],"display");return e.detach(),t}function we(e){var t=x,i=_e[e];return i||("none"!==(i=be(e,t))&&i||((t=(ye=(ye||T("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),i=be(e,t),ye.detach()),_e[e]=i),i}function xe(e){var t=e.ownerDocument.defaultView;return(t=!t||!t.opener?w:t).getComputedStyle(e)}function Te(e,t,i,n){var o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in n=i.apply(e,n||[]),t)e.style[o]=s[o];return n}var Ce,Se,ke,Ee,Le,Pe,Ae=/^margin/,Me=new RegExp("^("+r+")(?!px)[a-z%]+$","i"),Oe=x.documentElement;function Ie(){Pe.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",Pe.innerHTML="",Oe.appendChild(Le);var e=w.getComputedStyle(Pe);Ce="1%"!==e.top,Ee="2px"===e.marginLeft,Se="4px"===e.width,Pe.style.marginRight="50%",ke="4px"===e.marginRight,Oe.removeChild(Le)}function ze(e,t,i){var n,o,s=e.style;return""!==(o=(i=i||xe(e))?i.getPropertyValue(t)||i[t]:void 0)&&void 0!==o||T.contains(e.ownerDocument,e)||(o=T.style(e,t)),i&&!g.pixelMarginRight()&&Me.test(o)&&Ae.test(t)&&(n=s.width,e=s.minWidth,t=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=i.width,s.width=n,s.minWidth=e,s.maxWidth=t),void 0!==o?o+"":o}function De(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}Le=x.createElement("div"),(Pe=x.createElement("div")).style&&(Pe.style.backgroundClip="content-box",Pe.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===Pe.style.backgroundClip,Le.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",Le.appendChild(Pe),T.extend(g,{pixelPosition:function(){return Ie(),Ce},boxSizingReliable:function(){return null==Se&&Ie(),Se},pixelMarginRight:function(){return null==Se&&Ie(),ke},reliableMarginLeft:function(){return null==Se&&Ie(),Ee},reliableMarginRight:function(){var e,t=Pe.appendChild(x.createElement("div"));return t.style.cssText=Pe.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",Pe.style.width="1px",Oe.appendChild(Le),e=!parseFloat(w.getComputedStyle(t).marginRight),Oe.removeChild(Le),Pe.removeChild(t),e}}));var Ne=/^(none|table(?!-c[ea]).+)/,Be={position:"absolute",visibility:"hidden",display:"block"},$e={letterSpacing:"0",fontWeight:"400"},je=["Webkit","O","Moz","ms"],Re=x.createElement("div").style;function He(e){if(e in Re)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=je.length;i--;)if((e=je[i]+t)in Re)return e}function Fe(e,t,i){var n=q.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function qe(e,t,i,n,o){for(var s=i===(n?"border":"content")?4:"width"===t?1:0,r=0;s<4;s+=2)"margin"===i&&(r+=T.css(e,i+W[s],!0,o)),n?("content"===i&&(r-=T.css(e,"padding"+W[s],!0,o)),"margin"!==i&&(r-=T.css(e,"border"+W[s]+"Width",!0,o))):(r+=T.css(e,"padding"+W[s],!0,o),"padding"!==i&&(r+=T.css(e,"border"+W[s]+"Width",!0,o)));return r}function We(e,t,i){var n=!0,o="width"===t?e.offsetWidth:e.offsetHeight,s=xe(e),r="border-box"===T.css(e,"boxSizing",!1,s);if(o<=0||null==o){if(((o=ze(e,t,s))<0||null==o)&&(o=e.style[t]),Me.test(o))return o;n=r&&(g.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+qe(e,t,i||(r?"border":"content"),n,s)+"px"}function Ue(e,t){for(var i,n,o,s=[],r=0,a=e.length;r<a;r++)(n=e[r]).style&&(s[r]=B.get(n,"olddisplay"),i=n.style.display,t?(s[r]||"none"!==i||(n.style.display=""),""===n.style.display&&F(n)&&(s[r]=B.access(n,"olddisplay",we(n.nodeName)))):(o=F(n),"none"===i&&o||B.set(n,"olddisplay",o?i:T.css(n,"display"))));for(r=0;r<a;r++)(n=e[r]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?s[r]||"":"none"));return e}function Ve(e,t,i,n,o){return new Ve.prototype.init(e,t,i,n,o)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=ze(e,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,s,r,a=T.camelCase(t),l=e.style;return t=T.cssProps[a]||(T.cssProps[a]=He(a)||a),r=T.cssHooks[t]||T.cssHooks[a],void 0===i?r&&"get"in r&&void 0!==(o=r.get(e,!1,n))?o:l[t]:("string"===(s=typeof i)&&(o=q.exec(i))&&o[1]&&(i=U(e,t,o),s="number"),void(null!=i&&i==i&&("number"===s&&(i+=o&&o[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l[t]=i))))}},css:function(e,t,i,n){var o,s=T.camelCase(t);return t=T.cssProps[s]||(T.cssProps[s]=He(s)||s),"normal"===(o=void 0===(o=(s=T.cssHooks[t]||T.cssHooks[s])&&"get"in s?s.get(e,!0,i):o)?ze(e,t,n):o)&&t in $e&&(o=$e[t]),""===i||i?(t=parseFloat(o),!0===i||isFinite(t)?t||0:o):o}}),T.each(["height","width"],function(e,s){T.cssHooks[s]={get:function(e,t,i){return t?Ne.test(T.css(e,"display"))&&0===e.offsetWidth?Te(e,Be,function(){return We(e,s,i)}):We(e,s,i):void 0},set:function(e,t,i){var n,o=i&&xe(e),o=i&&qe(e,s,i,"border-box"===T.css(e,"boxSizing",!1,o),o);return o&&(n=q.exec(t))&&"px"!==(n[3]||"px")&&(e.style[s]=t,t=T.css(e,s)),Fe(0,t,o)}}}),T.cssHooks.marginLeft=De(g.reliableMarginLeft,function(e,t){return t?(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-Te(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),T.cssHooks.marginRight=De(g.reliableMarginRight,function(e,t){return t?Te(e,{display:"inline-block"},ze,[e,"marginRight"]):void 0}),T.each({margin:"",padding:"",border:"Width"},function(o,s){T.cssHooks[o+s]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[o+W[t]+s]=n[t]||n[t-2]||n[0];return i}},Ae.test(o)||(T.cssHooks[o+s].set=Fe)}),T.fn.extend({css:function(e,t){return z(this,function(e,t,i){var n,o,s={},r=0;if(T.isArray(t)){for(n=xe(e),o=t.length;r<o;r++)s[t[r]]=T.css(e,t[r],!1,n);return s}return void 0!==i?T.style(e,t,i):T.css(e,t)},e,t,1<arguments.length)},show:function(){return Ue(this,!0)},hide:function(){return Ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){F(this)?T(this).show():T(this).hide()})}}),((T.Tween=Ve).prototype={constructor:Ve,init:function(e,t,i,n,o,s){this.elem=e,this.prop=i,this.easing=o||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(T.cssNumber[i]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return(e&&e.get?e:Ve.propHooks._default).get(this)},run:function(e){var t,i=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:Ve.propHooks._default).set(this),this}}).init.prototype=Ve.prototype,(Ve.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=T.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[T.cssProps[e.prop]]&&!T.cssHooks[e.prop]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=Ve.prototype.init,T.fx.step={};var Ge,Ze,Ye=/^(?:toggle|show|hide)$/,Xe=/queueHooks$/;function Ke(){return w.setTimeout(function(){Ge=void 0}),Ge=T.now()}function Qe(e,t){var i,n=0,o={height:e};for(t=t?1:0;n<4;n+=2-t)o["margin"+(i=W[n])]=o["padding"+i]=e;return t&&(o.opacity=o.width=e),o}function Je(e,t,i){for(var n,o=(et.tweeners[t]||[]).concat(et.tweeners["*"]),s=0,r=o.length;s<r;s++)if(n=o[s].call(i,t,e))return n}function et(o,e,t){var i,s,n=0,r=et.prefilters.length,a=T.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=Ge||Ke(),e=Math.max(0,c.startTime+c.duration-e),t=1-(e/c.duration||0),i=0,n=c.tweens.length;i<n;i++)c.tweens[i].run(t);return a.notifyWith(o,[c,t,e]),t<1&&n?e:(a.resolveWith(o,[c]),!1)},c=a.promise({elem:o,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ge||Ke(),duration:t.duration,tweens:[],createTween:function(e,t){e=T.Tween(o,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(e),e},stop:function(e){var t=0,i=e?c.tweens.length:0;if(s)return this;for(s=!0;t<i;t++)c.tweens[t].run(1);return e?(a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c,e])):a.rejectWith(o,[c,e]),this}}),u=c.props;for(function(e,t){var i,n,o,s,r;for(i in e)if(n=T.camelCase(i),o=t[n],s=e[i],T.isArray(s)&&(o=s[1],s=e[i]=s[0]),i!==n&&(e[n]=s,delete e[i]),r=T.cssHooks[n],r&&"expand"in r)for(i in s=r.expand(s),delete e[n],s)i in e||(e[i]=s[i],t[i]=o);else t[n]=o}(u,c.opts.specialEasing);n<r;n++)if(i=et.prefilters[n].call(c,o,u,c.opts))return T.isFunction(i.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=T.proxy(i.stop,i)),i;return T.map(u,Je,c),T.isFunction(c.opts.start)&&c.opts.start.call(o,c),T.fx.timer(T.extend(l,{elem:o,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}T.Animation=T.extend(et,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return U(i.elem,e,q.exec(t),i),i}]},tweener:function(e,t){for(var i,n=0,o=(e=T.isFunction(e)?(t=e,["*"]):e.match(O)).length;n<o;n++)i=e[n],et.tweeners[i]=et.tweeners[i]||[],et.tweeners[i].unshift(t)},prefilters:[function(t,e,i){var n,o,s,r,a,l,c,u=this,d={},h=t.style,p=t.nodeType&&F(t),f=B.get(t,"fxshow");for(n in i.queue||(null==(a=T._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,T.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=T.css(t,"display"))?B.get(t,"olddisplay")||we(t.nodeName):c)&&"none"===T.css(t,"float")&&(h.display="inline-block")),i.overflow&&(h.overflow="hidden",u.always(function(){h.overflow=i.overflow[0],h.overflowX=i.overflow[1],h.overflowY=i.overflow[2]})),e)if(o=e[n],Ye.exec(o)){if(delete e[n],s=s||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!f||void 0===f[n])continue;p=!0}d[n]=f&&f[n]||T.style(t,n)}else c=void 0;if(T.isEmptyObject(d))"inline"===("none"===c?we(t.nodeName):c)&&(h.display=c);else for(n in f?"hidden"in f&&(p=f.hidden):f=B.access(t,"fxshow",{}),s&&(f.hidden=!p),p?T(t).show():u.done(function(){T(t).hide()}),u.done(function(){for(var e in B.remove(t,"fxshow"),d)T.style(t,e,d[e])}),d)r=Je(p?f[n]:0,n,u),n in f||(f[n]=r.start,p&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}],prefilter:function(e,t){t?et.prefilters.unshift(e):et.prefilters.push(e)}}),T.speed=function(e,t,i){var n=e&&"object"==typeof e?T.extend({},e):{complete:i||!i&&t||T.isFunction(e)&&e,duration:e,easing:i&&t||t&&!T.isFunction(t)&&t};return n.duration=T.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in T.fx.speeds?T.fx.speeds[n.duration]:T.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){T.isFunction(n.old)&&n.old.call(this),n.queue&&T.dequeue(this,n.queue)},n},T.fn.extend({fadeTo:function(e,t,i,n){return this.filter(F).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){var o=T.isEmptyObject(t),s=T.speed(e,i,n),n=function(){var e=et(this,T.extend({},t),s);(o||B.get(this,"finish"))&&e.stop(!0)};return n.finish=n,o||!1===s.queue?this.each(n):this.queue(s.queue,n)},stop:function(o,e,s){function r(e){var t=e.stop;delete e.stop,t(s)}return"string"!=typeof o&&(s=e,e=o,o=void 0),e&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",i=T.timers,n=B.get(this);if(t)n[t]&&n[t].stop&&r(n[t]);else for(t in n)n[t]&&n[t].stop&&Xe.test(t)&&r(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=o&&i[t].queue!==o||(i[t].anim.stop(s),e=!1,i.splice(t,1));!e&&s||T.dequeue(this,o)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var e,t=B.get(this),i=t[r+"queue"],n=t[r+"queueHooks"],o=T.timers,s=i?i.length:0;for(t.finish=!0,T.queue(this,r,[]),n&&n.stop&&n.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===r&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),T.each(["toggle","show","hide"],function(e,n){var o=T.fn[n];T.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(Qe(n,!0),e,t,i)}}),T.each({slideDown:Qe("show"),slideUp:Qe("hide"),slideToggle:Qe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){T.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),T.timers=[],T.fx.tick=function(){var e,t=0,i=T.timers;for(Ge=T.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||T.fx.stop(),Ge=void 0},T.fx.timer=function(e){T.timers.push(e),e()?T.fx.start():T.timers.pop()},T.fx.interval=13,T.fx.start=function(){Ze=Ze||w.setInterval(T.fx.tick,T.fx.interval)},T.fx.stop=function(){w.clearInterval(Ze),Ze=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(n,e){return n=T.fx&&T.fx.speeds[n]||n,this.queue(e=e||"fx",function(e,t){var i=w.setTimeout(e,n);t.stop=function(){w.clearTimeout(i)}})},p=x.createElement("input"),i=x.createElement("select"),r=i.appendChild(x.createElement("option")),p.type="checkbox",g.checkOn=""!==p.value,g.optSelected=r.selected,i.disabled=!0,g.optDisabled=!r.disabled,(p=x.createElement("input")).value="t",p.type="radio",g.radioValue="t"===p.value;var tt,it=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return z(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,i){var n,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?T.prop(e,t,i):(1===s&&T.isXMLDoc(e)||(t=t.toLowerCase(),o=T.attrHooks[t]||(T.expr.match.bool.test(t)?tt:void 0)),void 0!==i?null===i?void T.removeAttr(e,t):o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:(e.setAttribute(t,i+""),i):o&&"get"in o&&null!==(n=o.get(e,t))?n:null==(n=T.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&T.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n,o=0,s=t&&t.match(O);if(s&&1===e.nodeType)for(;i=s[o++];)n=T.propFix[i]||i,T.expr.match.bool.test(i)&&(e[n]=!1),e.removeAttribute(i)}}),tt={set:function(e,t,i){return!1===t?T.removeAttr(e,i):e.setAttribute(i,i),i}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var s=it[t]||T.find.attr;it[t]=function(e,t,i){var n,o;return i||(o=it[t],it[t]=n,n=null!=s(e,t,i)?t.toLowerCase():null,it[t]=o),n}});var nt=/^(?:input|select|textarea|button)$/i,ot=/^(?:a|area)$/i;T.fn.extend({prop:function(e,t){return z(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,i){var n,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&T.isXMLDoc(e)||(t=T.propFix[t]||t,o=T.propHooks[t]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(e,i,t))?n:e[t]=i:o&&"get"in o&&null!==(n=o.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):nt.test(e.nodeName)||ot.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this});var st=/[\t\r\n\f]/g;function rt(e){return e.getAttribute&&e.getAttribute("class")||""}T.fn.extend({addClass:function(t){var e,i,n,o,s,r,a=0;if(T.isFunction(t))return this.each(function(e){T(this).addClass(t.call(this,e,rt(this)))});if("string"==typeof t&&t)for(e=t.match(O)||[];i=this[a++];)if(r=rt(i),n=1===i.nodeType&&(" "+r+" ").replace(st," ")){for(s=0;o=e[s++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(r=T.trim(n))&&i.setAttribute("class",r)}return this},removeClass:function(t){var e,i,n,o,s,r,a=0;if(T.isFunction(t))return this.each(function(e){T(this).removeClass(t.call(this,e,rt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(O)||[];i=this[a++];)if(r=rt(i),n=1===i.nodeType&&(" "+r+" ").replace(st," ")){for(s=0;o=e[s++];)for(;-1<n.indexOf(" "+o+" ");)n=n.replace(" "+o+" "," ");r!==(r=T.trim(n))&&i.setAttribute("class",r)}return this},toggleClass:function(o,t){var s=typeof o;return"boolean"==typeof t&&"string"==s?t?this.addClass(o):this.removeClass(o):T.isFunction(o)?this.each(function(e){T(this).toggleClass(o.call(this,e,rt(this),t),t)}):this.each(function(){var e,t,i,n;if("string"==s)for(t=0,i=T(this),n=o.match(O)||[];e=n[t++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==o&&"boolean"!=s||((e=rt(this))&&B.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==o&&B.get(this,"__className__")||""))})},hasClass:function(e){for(var t,i=0,n=" "+e+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+rt(t)+" ").replace(st," ").indexOf(n))return!0;return!1}});var at=/\r/g,lt=/[\x20\t\r\n\f]+/g;T.fn.extend({val:function(t){var i,e,n,o=this[0];return arguments.length?(n=T.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=n?t.call(this,e,T(this).val()):t)?e="":"number"==typeof e?e+="":T.isArray(e)&&(e=T.map(e,function(e){return null==e?"":e+""})),(i=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):o?(i=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(o,"value"))?e:"string"==typeof(e=o.value)?e.replace(at,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:T.trim(T.text(e)).replace(lt," ")}},select:{get:function(e){for(var t,i=e.options,n=e.selectedIndex,o="select-one"===e.type||n<0,s=o?null:[],r=o?n+1:i.length,a=n<0?r:o?n:0;a<r;a++)if(((t=i[a]).selected||a===n)&&(g.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!T.nodeName(t.parentNode,"optgroup"))){if(t=T(t).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var i,n,o=e.options,s=T.makeArray(t),r=o.length;r--;)((n=o[r]).selected=-1<T.inArray(T.valHooks.option.get(n),s))&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){return T.isArray(t)?e.checked=-1<T.inArray(T(e).val(),t):void 0}},g.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ct=/^(?:focusinfocus|focusoutblur)$/;T.extend(T.event,{trigger:function(e,t,i,n){var o,s,r,a,l,c,u=[i||x],d=f.call(e,"type")?e.type:e,h=f.call(e,"namespace")?e.namespace.split("."):[],p=s=i=i||x;if(3!==i.nodeType&&8!==i.nodeType&&!ct.test(d+T.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),a=d.indexOf(":")<0&&"on"+d,(e=e[T.expando]?e:new T.Event(d,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:T.makeArray(t,[e]),c=T.event.special[d]||{},n||!c.trigger||!1!==c.trigger.apply(i,t))){if(!n&&!c.noBubble&&!T.isWindow(i)){for(r=c.delegateType||d,ct.test(r+d)||(p=p.parentNode);p;p=p.parentNode)u.push(p),s=p;s===(i.ownerDocument||x)&&u.push(s.defaultView||s.parentWindow||w)}for(o=0;(p=u[o++])&&!e.isPropagationStopped();)e.type=1<o?r:c.bindType||d,(l=(B.get(p,"events")||{})[e.type]&&B.get(p,"handle"))&&l.apply(p,t),(l=a&&p[a])&&l.apply&&D(p)&&(e.result=l.apply(p,t),!1===e.result&&e.preventDefault());return e.type=d,n||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!D(i)||a&&T.isFunction(i[d])&&!T.isWindow(i)&&((s=i[a])&&(i[a]=null),i[T.event.triggered=d](),T.event.triggered=void 0,s&&(i[a]=s)),e.result}},simulate:function(e,t,i){e=T.extend(new T.Event,i,{type:e,isSimulated:!0});T.event.trigger(e,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];return i?T.event.trigger(e,t,i,!0):void 0}}),T.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,i){T.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),T.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),g.focusin="onfocusin"in w,g.focusin||T.each({focus:"focusin",blur:"focusout"},function(i,n){function o(e){T.event.simulate(n,e.target,T.event.fix(e))}T.event.special[n]={setup:function(){var e=this.ownerDocument||this,t=B.access(e,n);t||e.addEventListener(i,o,!0),B.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=B.access(e,n)-1;t?B.access(e,n,t):(e.removeEventListener(i,o,!0),B.remove(e,n))}}});var ut=w.location,dt=T.now(),ht=/\?/;T.parseJSON=function(e){return JSON.parse(e+"")},T.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new w.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+e),t};var pt=/#.*$/,ft=/([?&])_=[^&]*/,mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,gt=/^(?:GET|HEAD)$/,vt=/^\/\//,yt={},_t={},bt="*/".concat("*"),wt=x.createElement("a");function xt(s){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,o=e.toLowerCase().match(O)||[];if(T.isFunction(t))for(;i=o[n++];)"+"===i[0]?(i=i.slice(1)||"*",(s[i]=s[i]||[]).unshift(t)):(s[i]=s[i]||[]).push(t)}}function Tt(t,n,o,s){var r={},a=t===_t;function l(e){var i;return r[e]=!0,T.each(t[e]||[],function(e,t){t=t(n,o,s);return"string"!=typeof t||a||r[t]?a?!(i=t):void 0:(n.dataTypes.unshift(t),l(t),!1)}),i}return l(n.dataTypes[0])||!r["*"]&&l("*")}function Ct(e,t){var i,n,o=T.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:n=n||{})[i]=t[i]);return n&&T.extend(!0,e,n),e}wt.href=ut.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ut.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ut.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":T.parseJSON,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ct(Ct(e,T.ajaxSettings),t):Ct(T.ajaxSettings,e)},ajaxPrefilter:xt(yt),ajaxTransport:xt(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,c,u,i,d,h,n,p=T.ajaxSetup({},t=t||{}),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?T(f):T.event,g=T.Deferred(),v=T.Callbacks("once memory"),y=p.statusCode||{},o={},s={},_=0,r="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(2===_){if(!i)for(i={};t=mt.exec(u);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===_?u:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return _||(e=s[i]=s[i]||e,o[e]=t),this},overrideMimeType:function(e){return _||(p.mimeType=e),this},statusCode:function(e){if(e)if(_<2)for(var t in e)y[t]=[y[t],e[t]];else b.always(e[b.status]);return this},abort:function(e){e=e||r;return l&&l.abort(e),a(0,e),this}};if(g.promise(b).complete=v.add,b.success=b.done,b.error=b.fail,p.url=((e||p.url||ut.href)+"").replace(pt,"").replace(vt,ut.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=T.trim(p.dataType||"*").toLowerCase().match(O)||[""],null==p.crossDomain){e=x.createElement("a");try{e.href=p.url,e.href=e.href,p.crossDomain=wt.protocol+"//"+wt.host!=e.protocol+"//"+e.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Tt(yt,p,t,b),2===_)return b;for(n in(h=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!gt.test(p.type),c=p.url,p.hasContent||(p.data&&(c=p.url+=(ht.test(c)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=ft.test(c)?c.replace(ft,"$1_="+dt++):c+(ht.test(c)?"&":"?")+"_="+dt++)),p.ifModified&&(T.lastModified[c]&&b.setRequestHeader("If-Modified-Since",T.lastModified[c]),T.etag[c]&&b.setRequestHeader("If-None-Match",T.etag[c])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&b.setRequestHeader("Content-Type",p.contentType),b.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+bt+"; q=0.01":""):p.accepts["*"]),p.headers)b.setRequestHeader(n,p.headers[n]);if(p.beforeSend&&(!1===p.beforeSend.call(f,b,p)||2===_))return b.abort();for(n in r="abort",{success:1,error:1,complete:1})b[n](p[n]);if(l=Tt(_t,p,t,b)){if(b.readyState=1,h&&m.trigger("ajaxSend",[b,p]),2===_)return b;p.async&&0<p.timeout&&(d=w.setTimeout(function(){b.abort("timeout")},p.timeout));try{_=1,l.send(o,a)}catch(e){if(!(_<2))throw e;a(-1,e)}}else a(-1,"No Transport");function a(e,t,i,n){var o,s,r,a=t;2!==_&&(_=2,d&&w.clearTimeout(d),l=void 0,u=n||"",b.readyState=0<e?4:0,n=200<=e&&e<300||304===e,i&&(r=function(e,t,i){for(var n,o,s,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o);break}if(l[0]in i)s=l[0];else{for(o in i){if(!l[0]||e.converters[o+" "+l[0]]){s=o;break}r=r||o}s=s||r}return s?(s!==l[0]&&l.unshift(s),i[s]):void 0}(p,b,i)),r=function(e,t,i,n){var o,s,r,a,l,c={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(s=u.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if(a=o.split(" "),a[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(p,r,b,n),n?(p.ifModified&&((i=b.getResponseHeader("Last-Modified"))&&(T.lastModified[c]=i),(i=b.getResponseHeader("etag"))&&(T.etag[c]=i)),204===e||"HEAD"===p.type?a="nocontent":304===e?a="notmodified":(a=r.state,o=r.data,n=!(s=r.error))):(s=a,!e&&a||(a="error",e<0&&(e=0))),b.status=e,b.statusText=(t||a)+"",n?g.resolveWith(f,[o,a,b]):g.rejectWith(f,[b,a,s]),b.statusCode(y),y=void 0,h&&m.trigger(n?"ajaxSuccess":"ajaxError",[b,p,n?o:s]),v.fireWith(f,[b,a]),h&&(m.trigger("ajaxComplete",[b,p]),--T.active||T.event.trigger("ajaxStop")))}return b},getJSON:function(e,t,i){return T.get(e,t,i,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,o){T[o]=function(e,t,i,n){return T.isFunction(t)&&(n=n||i,i=t,t=void 0),T.ajax(T.extend({url:e,type:o,dataType:n,data:t,success:i},T.isPlainObject(e)&&e))}}),T._evalUrl=function(e){return T.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},T.fn.extend({wrapAll:function(t){var e;return T.isFunction(t)?this.each(function(e){T(this).wrapAll(t.call(this,e))}):(this[0]&&(e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(i){return T.isFunction(i)?this.each(function(e){T(this).wrapInner(i.call(this,e))}):this.each(function(){var e=T(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=T.isFunction(t);return this.each(function(e){T(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){T.nodeName(this,"body")||T(this).replaceWith(this.childNodes)}).end()}}),T.expr.filters.hidden=function(e){return!T.expr.filters.visible(e)},T.expr.filters.visible=function(e){return 0<e.offsetWidth||0<e.offsetHeight||0<e.getClientRects().length};var St=/%20/g,kt=/\[\]$/,Et=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;T.param=function(e,t){function i(e,t){t=T.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var n,o=[];if(void 0===t&&(t=T.ajaxSettings&&T.ajaxSettings.traditional),T.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){i(this.name,this.value)});else for(n in e)!function i(n,e,o,s){if(T.isArray(e))T.each(e,function(e,t){o||kt.test(n)?s(n,t):i(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,o,s)});else if(o||"object"!==T.type(e))s(n,e);else for(var t in e)i(n+"["+t+"]",e[t],o,s)}(n,e[n],t,i);return o.join("&").replace(St,"+")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Pt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!V.test(e))}).map(function(e,t){var i=T(this).val();return null==i?null:T.isArray(i)?T.map(i,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:i.replace(Et,"\r\n")}}).get()}}),T.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},Mt=T.ajaxSettings.xhr();g.cors=!!Mt&&"withCredentials"in Mt,g.ajax=Mt=!!Mt,T.ajaxTransport(function(o){var s,r;return g.cors||Mt&&!o.crossDomain?{send:function(e,t){var i,n=o.xhr();if(n.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(i in o.xhrFields)n[i]=o.xhrFields[i];for(i in o.mimeType&&n.overrideMimeType&&n.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);s=function(e){return function(){s&&(s=r=n.onload=n.onerror=n.onabort=n.onreadystatechange=null,"abort"===e?n.abort():"error"===e?"number"!=typeof n.status?t(0,"error"):t(n.status,n.statusText):t(At[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=s(),r=n.onerror=s("error"),void 0!==n.onabort?n.onabort=r:n.onreadystatechange=function(){4===n.readyState&&w.setTimeout(function(){s&&r()})},s=s("abort");try{n.send(o.hasContent&&o.data||null)}catch(e){if(s)throw e}},abort:function(){s&&s()}}:void 0}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(i){var n,o;if(i.crossDomain)return{send:function(e,t){n=T("<script>").prop({charset:i.scriptCharset,src:i.url}).on("load error",o=function(e){n.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),x.head.appendChild(n[0])},abort:function(){o&&o()}}});var Ot=[],It=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ot.pop()||T.expando+"_"+dt++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,i){var n,o,s,r=!1!==e.jsonp&&(It.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&It.test(e.data)&&"data");return r||"jsonp"===e.dataTypes[0]?(n=e.jsonpCallback=T.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(It,"$1"+n):!1!==e.jsonp&&(e.url+=(ht.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return s||T.error(n+" was not called"),s[0]},e.dataTypes[0]="json",o=w[n],w[n]=function(){s=arguments},i.always(function(){void 0===o?T(w).removeProp(n):w[n]=o,e[n]&&(e.jsonpCallback=t.jsonpCallback,Ot.push(n)),s&&T.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),T.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||x;var n=b.exec(e),i=!i&&[];return n?[t.createElement(n[1])]:(n=J([e],t,i),i&&i.length&&T(i).remove(),T.merge([],n.childNodes))};var zt=T.fn.load;function Dt(e){return T.isWindow(e)?e:9===e.nodeType&&e.defaultView}T.fn.load=function(e,t,i){if("string"!=typeof e&&zt)return zt.apply(this,arguments);var n,o,s,r=this,a=e.indexOf(" ");return-1<a&&(n=T.trim(e.slice(a)),e=e.slice(0,a)),T.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<r.length&&T.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){s=arguments,r.html(n?T("<div>").append(T.parseHTML(e)).find(n):e)}).always(i&&function(e,t){r.each(function(){i.apply(this,s||[e.responseText,t,e])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.filters.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,i){var n,o,s,r,a=T.css(e,"position"),l=T(e),c={};"static"===a&&(e.style.position="relative"),s=l.offset(),n=T.css(e,"top"),r=T.css(e,"left"),r=("absolute"===a||"fixed"===a)&&-1<(n+r).indexOf("auto")?(o=(a=l.position()).top,a.left):(o=parseFloat(n)||0,parseFloat(r)||0),null!=(t=T.isFunction(t)?t.call(e,i,T.extend({},s)):t).top&&(c.top=t.top-s.top+o),null!=t.left&&(c.left=t.left-s.left+r),"using"in t?t.using.call(e,c):l.css(c)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,i=this[0],n={top:0,left:0},o=i&&i.ownerDocument;return o?(e=o.documentElement,T.contains(e,i)?(n=i.getBoundingClientRect(),o=Dt(o),{top:n.top+o.pageYOffset-e.clientTop,left:n.left+o.pageXOffset-e.clientLeft}):n):void 0},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===T.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(n=!T.nodeName(e[0],"html")?e.offset():n).top+=T.css(e[0],"borderTopWidth",!0),n.left+=T.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-T.css(i,"marginTop",!0),left:t.left-n.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||Oe})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var s="pageYOffset"===o;T.fn[t]=function(e){return z(this,function(e,t,i){var n=Dt(e);return void 0===i?n?n[o]:e[t]:void(n?n.scrollTo(s?n.pageXOffset:i,s?i:n.pageYOffset):e[t]=i)},t,e,arguments.length)}}),T.each(["top","left"],function(e,i){T.cssHooks[i]=De(g.pixelPosition,function(e,t){return t?(t=ze(e,i),Me.test(t)?T(e).position()[i]+"px":t):void 0})}),T.each({Height:"height",Width:"width"},function(s,r){T.each({padding:"inner"+s,content:r,"":"outer"+s},function(n,e){T.fn[e]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),o=n||(!0===e||!0===t?"margin":"border");return z(this,function(e,t,i){var n;return T.isWindow(e)?e.document.documentElement["client"+s]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+s],n["scroll"+s],e.body["offset"+s],n["offset"+s],n["client"+s])):void 0===i?T.css(e,t,o):T.style(e,t,i,o)},r,i?e:void 0,i,null)}})}),T.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},size:function(){return this.length}}),T.fn.andSelf=T.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var Nt=w.jQuery,Bt=w.$;return T.noConflict=function(e){return w.$===T&&(w.$=Bt),e&&w.jQuery===T&&(w.jQuery=Nt),T},e||(w.jQuery=w.$=T),T}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e){return"string"==typeof e}function d(e){return"function"==typeof e}function C(e){return"number"==typeof e}function o(e){return void 0===e}function S(e){return"object"==typeof e}function z(e){return!1!==e}function t(){return"undefined"!=typeof window}function k(e){return d(e)||L(e)}function i(e){return(xe=pe(e,st))&&ri}function P(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")}function E(e,t){return!t&&console.warn(e)}function s(e,t){return e&&(st[e]=t)&&xe&&(xe[e]=t)||st}function A(){return 0}function D(e){var t,i,n=e[0];if(S(n)||d(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(i=ht.length;i--&&!ht[i].targetTest(n););t=ht[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new At(e[i],t)))||e.splice(i,1);return e}function N(e){return e._gsap||D(me(e))[0]._gsap}function r(e,t,i){return(i=e[t])&&d(i)?e[t]():o(i)&&e.getAttribute&&e.getAttribute(t)||i}function p(e,t){return(e=e.split(",")).forEach(t)||e}function B(e){return Math.round(1e5*e)/1e5||0}function a(e,t,i){var n,o=C(e[1]),s=(o?2:1)+(t<2?0:1),r=e[s];if(o&&(r.duration=e[1]),r.parent=i,t){for(n=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=z(i.vars.inherit)&&i.parent;r.immediateRender=z(n.immediateRender),t<2?r.runBackwards=1:r.startAt=e[s-1]}return r}function $(){var e,t,i=at.length,n=at.slice(0);for(lt={},e=at.length=0;e<i;e++)(t=n[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)}function l(e,t,i,n){at.length&&$(),e.render(t,i,n),at.length&&$()}function c(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(ot).length<2?t:L(e)?e.trim():e}function u(e){return e}function j(e,t){for(var i in t)i in e||(e[i]=t[i]);return e}function h(e,t){for(var i in t)i in e||"duration"===i||"ease"===i||(e[i]=t[i])}function f(e,t){for(var i in t)e[i]=S(t[i])?f(e[i]||(e[i]={}),t[i]):t[i];return e}function R(e,t){var i,n={};for(i in e)i in t||(n[i]=e[i]);return n}function M(e){var t=e.parent||ye,i=e.keyframes?h:j;if(z(e.inherit))for(;t;)i(e,t.vars.defaults),t=t.parent||t._dp;return e}function m(e,t,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var o=t._prev,s=t._next;o?o._next=s:e[i]===t&&(e[i]=s),s?s._prev=o:e[n]===t&&(e[n]=o),t._next=t._prev=t.parent=null}function H(e,t){!e.parent||t&&!e.parent.autoRemoveChildren||e.parent.remove(e),e._act=0}function g(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e}function v(e){return e._repeat?fe(e._tTime,e=e.duration()+e._rDelay)*e:0}function y(e,t){return(e-t._start)*t._ts+(0<=t._ts?0:t._dirty?t.totalDuration():t._tDur)}function w(e){return e._end=B(e._start+(e._tDur/Math.abs(e._ts||e._rts||We)||0))}function _(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=B(e._dp._time-(0<e._ts?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),w(e),i._dirty||g(i,e)),e}function O(e,t){var i;if((t._time||t._initted&&!t._dur)&&(i=y(e.rawTime(),t),(!t._dur||mt(0,t.totalDuration(),i)-t._tTime>We)&&t.render(i,!0)),g(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(i=e;i._dp;)0<=i.rawTime()&&i.totalTime(i._tTime),i=i._dp;e._zTime=-We}}function b(e,t,i,n){return t.parent&&H(t),t._start=B(i+t._delay),t._end=B(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),function(e,t,i,n,o){void 0===i&&(i="_first");var s,r=e[n=void 0===n?"_last":n];if(o)for(s=t[o];r&&r[o]>s;)r=r._prev;r?(t._next=r._next,r._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[n]=t,t._prev=r,t.parent=t._dp=e}(e,t,"_first","_last",e._sort?"_start":0),e._recent=t,n||O(e,t),e}function I(e,t){return(st.ScrollTrigger||P("scrollTrigger",t))&&st.ScrollTrigger.create(t,e)}function F(e,t,i,n){return Dt(e,t),!e._initted||!i&&e._pt&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&Ce!==wt.frame&&(at.push(e),e._lazy=[t,n])}function q(e,t,i,n){var o=e._repeat,s=B(t)||0,t=e._tTime/e._tDur;return t&&!n&&(e._time*=s/e._dur),e._dur=s,e._tDur=o?o<0?1e10:B(s*(o+1)+e._rDelay*o):s,t&&!n?_(e,e._tTime=e._tDur*t):e.parent&&w(e),i||g(e.parent,e),e}function x(e){return e instanceof It?g(e):q(e,e._dur)}function W(e,t){var i,n=e.labels,o=e._recent||ft,s=e.duration()>=qe?o.endTime(!1):e._dur;return L(t)&&(isNaN(t)||t in n)?"<"===(i=t.charAt(0))||">"===i?("<"===i?o._start:o.endTime(0<=o._repeat))+(parseFloat(t.substr(1))||0):(i=t.indexOf("="))<0?(t in n||(n[t]=s),n[t]):(n=+(t.charAt(i-1)+t.substr(i+1)),1<i?W(e,t.substr(0,i-1))+n:s+n):null==t?s:+t}function U(e,t){return e||0===e?t(e):t}function V(e){return(e=(e+"").substr((parseFloat(e)+"").length))&&isNaN(e)?e:""}function G(e,t){return e&&S(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&S(e[0]))&&!e.nodeType&&e!==_e}function Z(e){return e.sort(function(){return.5-Math.random()})}function Y(e){if(d(e))return e;var p=S(e)?e:{each:e},f=Et(p.ease),m=p.from||0,g=parseFloat(p.base)||0,v={},e=0<m&&m<1,y=isNaN(m)||e,_=p.axis,b=m,w=m;return L(m)?b=w={center:.5,edges:.5,end:1}[m]||0:!e&&y&&(b=m[0],w=m[1]),function(e,t,i){var n,o,s,r,a,l,c,u,d=(i||p).length,h=v[d];if(!h){if(!(u="auto"===p.grid?0:(p.grid||[1,qe])[1])){for(l=-qe;l<(l=i[u++].getBoundingClientRect().left)&&u<d;);u--}for(h=v[d]=[],n=y?Math.min(u,d)*b-.5:m%u,o=y?d*w/u-.5:m/u|0,c=qe,a=l=0;a<d;a++)s=a%u-n,r=o-(a/u|0),h[a]=r=_?Math.abs("y"===_?r:s):Ze(s*s+r*r),l<r&&(l=r),r<c&&(c=r);"random"===m&&Z(h),h.max=l-c,h.min=c,h.v=d=(parseFloat(p.amount)||parseFloat(p.each)*(d<u?d-1:_?"y"===_?d/u:u:Math.max(u,d/u))||0)*("edges"===m?-1:1),h.b=d<0?g-d:g,h.u=V(p.amount||p.each)||0,f=f&&d<0?kt(f):f}return d=(h[e]-h.min)/h.max||0,B(h.b+(f?f(d):d)*h.v)+h.u}}function X(t){var i=t<1?Math.pow(10,(t+"").length-2):1;return function(e){return Math.floor(Math.round(parseFloat(e)/t)*t*i)/i+(C(e)?0:V(e))}}function K(l,e){var c,u,t=Qe(l);return!t&&S(l)&&(c=t=l.radius||qe,l.values?(l=me(l.values),(u=!C(l[0]))&&(c*=c)):l=X(l.increment)),U(e,t?d(l)?function(e){return u=l(e),Math.abs(u-e)<=c?u:e}:function(e){for(var t,i,n=parseFloat(u?e.x:e),o=parseFloat(u?e.y:0),s=qe,r=0,a=l.length;a--;)(t=u?(t=l[a].x-n)*t+(i=l[a].y-o)*i:Math.abs(l[a]-n))<s&&(s=t,r=a);return r=!c||s<=c?l[r]:e,u||r===e||C(e)?r:r+V(e)}:X(l))}function Q(e,t,i,n){return U(Qe(e)?!t:!0===i?!!(i=0):!n,function(){return Qe(e)?e[~~(Math.random()*e.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((e+Math.random()*(t-e))/i)*i*n)/n})}function J(t,i,e){return U(e,function(e){return t[~~i(e)]})}function ee(e){for(var t,i,n,o,s=0,r="";~(t=e.indexOf("random(",s));)n=e.indexOf(")",t),o="["===e.charAt(t+7),i=e.substr(t+7,n-t-7).match(o?ot:Je),r+=e.substr(s,t-s)+Q(o?i:+i[0],o?0:+i[1],+i[2]||1e-5),s=n+1;return r+e.substr(s,e.length-s)}function te(e,t,i){var n,o,s,r=e.labels,a=qe;for(n in r)(o=r[n]-t)<0==!!i&&o&&a>(o=Math.abs(o))&&(s=n,a=o);return s}function ie(e){return H(e),e.progress()<1&&ve(e,"onInterrupt"),e}function ne(e,t,i){return(6*(e=e<0?e+1:1<e?e-1:e)<1?t+(i-t)*e*6:e<.5?i:3*e<2?t+(i-t)*(2/3-e)*6:t)*vt+.5|0}function oe(e,t,i){var n,o,s,r,a,l,c,u=e?C(e)?[e>>16,e>>8&vt,e&vt]:0:yt.black;if(!u){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),yt[e])u=yt[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(n=e.charAt(1))+n+(o=e.charAt(2))+o+(s=e.charAt(3))+s),u=[(e=parseInt(e.substr(1),16))>>16,e>>8&vt,e&vt];else if("hsl"===e.substr(0,3))if(u=c=e.match(Je),t){if(~e.indexOf("="))return u=e.match(et),i&&u.length<4&&(u[3]=1),u}else r=+u[0]%360/360,a=u[1]/100,n=2*(l=u[2]/100)-(o=l<=.5?l*(a+1):l+a-l*a),3<u.length&&(u[3]*=1),u[0]=ne(r+1/3,n,o),u[1]=ne(r,n,o),u[2]=ne(r-1/3,n,o);else u=e.match(Je)||yt.transparent;u=u.map(Number)}return t&&!c&&(n=u[0]/vt,o=u[1]/vt,s=u[2]/vt,l=((e=Math.max(n,o,s))+(t=Math.min(n,o,s)))/2,e===t?r=a=0:(c=e-t,a=.5<l?c/(2-e-t):c/(e+t),r=e===n?(o-s)/c+(o<s?6:0):e===o?(s-n)/c+2:(n-o)/c+4,r*=60),u[0]=~~(r+.5),u[1]=~~(100*a+.5),u[2]=~~(100*l+.5)),i&&u.length<4&&(u[3]=1),u}function se(e){var t=[],i=[],n=-1;return e.split(_t).forEach(function(e){e=e.match(tt)||[];t.push.apply(t,e),i.push(n+=e.length+1)}),t.c=i,t}function re(e,t,i){var n,o,s,r,a="",l=(e+a).match(_t),c=t?"hsla(":"rgba(",u=0;if(!l)return e;if(l=l.map(function(e){return(e=oe(e,t,1))&&c+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),i&&(s=se(e),(n=i.c).join(a)!==s.c.join(a)))for(r=(o=e.replace(_t,"1").split(tt)).length-1;u<r;u++)a+=o[u]+(~n.indexOf(u)?l.shift()||c+"0,0,0,0)":(s.length?s:l.length?l:i).shift());if(!o)for(r=(o=e.split(_t)).length-1;u<r;u++)a+=o[u]+l[u];return a+o[r]}function ae(e){var t=e.join(" ");if(_t.lastIndex=0,_t.test(t))return t=bt.test(t),e[1]=re(e[1],t),e[0]=re(e[0],t,se(e[1])),!0}function le(e,t){for(var i,n=e._first;n;)n instanceof It?le(n,t):!n.vars.yoyoEase||n._yoyo&&n._repeat||n._yoyo===t||(n.timeline?le(n.timeline,t):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=t)),n=n._next}function ce(e,t,i,n){void 0===i&&(i=function(e){return 1-t(1-e)}),void 0===n&&(n=function(e){return e<.5?t(2*e)/2:1-t(2*(1-e))/2});var o,s={easeIn:t,easeOut:i,easeInOut:n};return p(e,function(e){for(var t in Tt[e]=st[e]=s,Tt[o=e.toLowerCase()]=i,s)Tt[o+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=Tt[e+"."+t]=s[t]}),1}function ue(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}}function de(i,e,t){function n(e){return 1===e?1:o*Math.pow(2,-10*e)*Xe((e-s)*r)+1}var o=1<=e?e:1,s=(r=(t||(i?.3:.45))/(e<1?e:1))/Ue*(Math.asin(1/o)||0),e="out"===i?n:"in"===i?function(e){return 1-n(1-e)}:ue(n),r=Ue/r;return e.config=function(e,t){return de(i,e,t)},e}function he(t,i){function n(e){return e?--e*e*((i+1)*e+i)+1:0}void 0===i&&(i=1.70158);var e="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:ue(n);return e.config=function(e){return he(t,e)},e}function pe(e,t){for(var i in t)e[i]=t[i];return e}function fe(e,t){return(e/=t)&&~~e===e?~~e-1:~~e}function me(e,t){return!L(e)||t||!be&&xt()?Qe(e)?(i=t,void 0===n&&(n=[]),e.forEach(function(e){return L(e)&&!i||G(e,1)?n.push.apply(n,me(e)):n.push(e)})||n):G(e)?gt.call(e,0):e?[e]:[]:gt.call(we.querySelectorAll(e),0);var i,n}function ge(t,e,i,n,o){var s=e-t,r=n-i;return U(o,function(e){return i+((e-t)/s*r||0)})}function ve(e,t,i){var n=e.vars,o=n[t];return o&&(t=n[t+"Params"],e=n.callbackScope||e,i&&at.length&&$(),t?o.apply(e,t):o.call(e))}var ye,_e,be,we,xe,Te,Ce,Se,ke,Ee,Le,Pe,Ae,Me,Oe,Ie,ze,De,Ne,Be,$e,je,Re,He={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Fe={duration:.5,overwrite:!1,delay:0},qe=1e8,We=1/qe,Ue=2*Math.PI,Ve=Ue/4,Ge=0,Ze=Math.sqrt,Ye=Math.cos,Xe=Math.sin,Ke="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Qe=Array.isArray,Je=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,tt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,it=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,nt=/[+-]=-?[\.\d]+/,ot=/[#\-+.]*\b[a-z\d-=+%.]+/gi,st={},rt={},at=[],lt={},ct={},ut={},dt=30,ht=[],pt="",ft={_start:0,endTime:A},mt=function(e,t,i){return i<e?e:t<i?t:i},gt=[].slice,vt=255,yt={aqua:[0,vt,vt],lime:[0,vt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,vt],navy:[0,0,128],white:[vt,vt,vt],olive:[128,128,0],yellow:[vt,vt,0],orange:[vt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[vt,0,0],pink:[vt,192,203],cyan:[0,vt,vt],transparent:[vt,vt,vt,0]},_t=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(e in yt)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),bt=/hsl[a]?\(/,wt=(Oe=Date.now,Ie=500,ze=33,De=Oe(),Ne=De,$e=Be=1e3/240,Pe={time:0,frame:0,tick:function(){Lt(!0)},deltaRatio:function(e){return Ae/(1e3/(e||60))},wake:function(){Te&&(!be&&t()&&(_e=be=window,we=_e.document||{},st.gsap=ri,(_e.gsapVersions||(_e.gsapVersions=[])).push(ri.version),i(xe||_e.GreenSockGlobals||!_e.gsap&&_e||{}),Le=_e.requestAnimationFrame),ke&&Pe.sleep(),Ee=Le||function(e){return setTimeout(e,$e-1e3*Pe.time+1|0)},Se=1,Lt(2))},sleep:function(){(Le?_e.cancelAnimationFrame:clearTimeout)(ke),Se=0,Ee=A},lagSmoothing:function(e,t){Ie=e||1e8,ze=Math.min(t,Ie,0)},fps:function(e){Be=1e3/(e||240),$e=1e3*Pe.time+Be},add:function(e){je.indexOf(e)<0&&je.push(e),xt()},remove:function(e){~(e=je.indexOf(e))&&je.splice(e,1)&&e<=Me&&Me--},_listeners:je=[]}),xt=function(){return!Se&&wt.wake()},Tt={},Ct=/^[\d.\-M][\d.\-,\s]/,St=/["']/g,kt=function(t){return function(e){return 1-t(1-e)}},Et=function(e,t){return e&&(d(e)?e:Tt[e]||(s=((i=e)+"").split("("),(r=Tt[s[0]])&&1<s.length&&r.config?r.config.apply(null,~i.indexOf("{")?[function(e){for(var t,i,n,o={},s=e.substr(1,e.length-3).split(":"),r=s[0],a=1,l=s.length;a<l;a++)i=s[a],t=a!==l-1?i.lastIndexOf(","):i.length,n=i.substr(0,t),o[r]=isNaN(n)?n.replace(St,"").trim():+n,r=i.substr(t+1).trim();return o}(s[1])]:(o=(n=i).indexOf("(")+1,e=n.indexOf(")"),s=n.indexOf("(",o),n.substring(o,~s&&s<e?n.indexOf(")",e+1):e).split(",").map(c))):Tt._CE&&Ct.test(i)?Tt._CE("",i):r))||t;var i,n,o,s,r};function Lt(e){var t,i,n,o=Oe()-Ne,s=!0===e;if(Ie<o&&(De+=o-ze),(0<(o=(i=(Ne+=o)-De)-$e)||s)&&(n=++Pe.frame,Ae=i-1e3*Pe.time,Pe.time=i/=1e3,$e+=o+(Be<=o?4:Be-o),t=1),s||(ke=Ee(Lt)),t)for(Me=0;Me<je.length;Me++)je[Me](i,Ae,n,e)}function Pt(e){return e<1/2.75?Re*e*e:e<.7272727272727273?Re*Math.pow(e-1.5/2.75,2)+.75:e<.9090909090909092?Re*(e-=2.25/2.75)*e+.9375:Re*Math.pow(e-2.625/2.75,2)+.984375}p("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var i=t<5?t+1:t;ce(e+",Power"+(i-1),t?function(e){return Math.pow(e,i)}:function(e){return e},function(e){return 1-Math.pow(1-e,i)},function(e){return e<.5?Math.pow(2*e,i)/2:1-Math.pow(2*(1-e),i)/2})}),Tt.Linear.easeNone=Tt.none=Tt.Linear.easeIn,ce("Elastic",de("in"),de("out"),de()),Re=7.5625,ce("Bounce",function(e){return 1-Pt(1-e)},Pt),ce("Expo",function(e){return e?Math.pow(2,10*(e-1)):0}),ce("Circ",function(e){return-(Ze(1-e*e)-1)}),ce("Sine",function(e){return 1===e?1:1-Ye(e*Ve)}),ce("Back",he("in"),he("out"),he()),Tt.SteppedEase=Tt.steps=st.SteppedEase={config:function(e,t){var i=1/(e=void 0===e?1:e),n=e+(t?0:1),o=t?1:0;return function(e){return((n*mt(0,.99999999,e)|0)+o)*i}}},Fe.ease=Tt["quad.out"],p("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return pt+=e+","+e+"Params,"});var At=function(e,t){this.id=Ge++,(e._gsap=this).target=e,this.harness=t,this.get=t?t.get:r,this.set=t?t.getSetter:Jt},Mt=((Nn=Ot.prototype).delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},Nn.duration=function(e){return arguments.length?this.totalDuration(0<this._repeat?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},Nn.totalDuration=function(e){return arguments.length?(this._dirty=0,q(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},Nn.totalTime=function(e,t){if(xt(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(_(this,e);i.parent;)i.parent._time!==i._start+(0<=i._ts?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&e<this._tDur||this._ts<0&&0<e||!this._tDur&&!e)&&b(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===We||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),l(this,e,t)),this},Nn.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+v(this))%this._dur||(e?this._dur:0),t):this._time},Nn.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},Nn.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+v(this),t):this.duration()?Math.min(1,this._time/this._dur):this.ratio},Nn.iteration=function(e,t){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*i,t):this._repeat?fe(this._tTime,i)+1:1},Nn.timeScale=function(e){if(!arguments.length)return this._rts===-We?0:this._rts;if(this._rts===e)return this;var t=this.parent&&this._ts?y(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-We?0:this._rts,function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e}(this.totalTime(mt(-this._delay,this._tDur,t),!0))},Nn.paused=function(e){return arguments.length?(this._ps!==e&&((this._ps=e)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=We)&&Math.abs(this._zTime)!==We))),this):this._ps},Nn.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return!t||!t._sort&&this.parent||b(t,this,e-this._delay),this}return this._start},Nn.endTime=function(e){return this._start+(z(e)?this.totalDuration():this.duration())/Math.abs(this._ts)},Nn.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?y(t.rawTime(e),this):this._tTime:this._tTime},Nn.globalTime=function(e){for(var t=this,i=arguments.length?e:t.rawTime();t;)i=t._start+i/(t._ts||1),t=t._dp;return i},Nn.repeat=function(e){return arguments.length?(this._repeat=e,x(this)):this._repeat},Nn.repeatDelay=function(e){return arguments.length?(this._rDelay=e,x(this)):this._rDelay},Nn.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},Nn.seek=function(e,t){return this.totalTime(W(this,e),z(t))},Nn.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,z(t))},Nn.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},Nn.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},Nn.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},Nn.resume=function(){return this.paused(!1)},Nn.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-We:0)),this):this._rts<0},Nn.invalidate=function(){return this._initted=0,this._zTime=-We,this},Nn.isActive=function(){var e,t=this.parent||this._dp,i=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=i&&e<this.endTime(!0)-We))},Nn.eventCallback=function(e,t,i){var n=this.vars;return 1<arguments.length?(t?(n[e]=t,i&&(n[e+"Params"]=i),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},Nn.then=function(n){var o=this;return new Promise(function(t){function e(){var e=o.then;o.then=null,d(i)&&(i=i(o))&&(i.then||i===o)&&(o.then=e),t(i),o.then=e}var i=d(n)?n:u;o._initted&&1===o.totalProgress()&&0<=o._ts||!o._tTime&&o._ts<0?e():o._prom=e})},Nn.kill=function(){ie(this)},Ot);function Ot(e,t){var i=e.parent||ye;this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,q(this,+e.duration,1,1),this.data=e.data,Se||wt.wake(),i&&b(i,this,t||0===t?t:i._time,1),e.reversed&&this.reverse(),e.paused&&this.paused(!0)}j(Mt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-We,_prom:0,_ps:!1,_rts:1});var It=function(i){function e(e,t){return(t=i.call(this,e=void 0===e?{}:e,t)||this).labels={},t.smoothChildTiming=!!e.smoothChildTiming,t.autoRemoveChildren=!!e.autoRemoveChildren,t._sort=z(e.sortChildren),t.parent&&O(t.parent,T(t)),e.scrollTrigger&&I(T(t),e.scrollTrigger),t}n(e,i);var t=e.prototype;return t.to=function(e,t,i,n){return new Ht(e,a(arguments,0,this),W(this,C(t)?n:i)),this},t.from=function(e,t,i,n){return new Ht(e,a(arguments,1,this),W(this,C(t)?n:i)),this},t.fromTo=function(e,t,i,n,o){return new Ht(e,a(arguments,2,this),W(this,C(t)?o:n)),this},t.set=function(e,t,i){return t.duration=0,t.parent=this,M(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Ht(e,t,W(this,i),1),this},t.call=function(e,t,i){return b(this,Ht.delayedCall(0,e,t),W(this,i))},t.staggerTo=function(e,t,i,n,o,s,r){return i.duration=t,i.stagger=i.stagger||n,i.onComplete=s,i.onCompleteParams=r,i.parent=this,new Ht(e,i,W(this,o)),this},t.staggerFrom=function(e,t,i,n,o,s,r){return i.runBackwards=1,M(i).immediateRender=z(i.immediateRender),this.staggerTo(e,t,i,n,o,s,r)},t.staggerFromTo=function(e,t,i,n,o,s,r,a){return n.startAt=i,M(n).immediateRender=z(n.immediateRender),this.staggerTo(e,t,n,o,s,r,a)},t.render=function(e,t,i){var n,o,s,r,a,l,c,u,d,h,p=this._time,f=this._dirty?this.totalDuration():this._tDur,m=this._dur,g=this!==ye&&f-We<e&&0<=e?f:e<We?0:e,v=this._zTime<0!=e<0&&(this._initted||!m);if(g!==this._tTime||i||v){if(p!==this._time&&m&&(g+=this._time-p,e+=this._time-p),n=g,u=this._start,a=!(c=this._ts),v&&(m||(p=this._zTime),!e&&t||(this._zTime=e)),this._repeat&&(y=this._yoyo,n=B(g%(r=m+this._rDelay)),g===f?(s=this._repeat,n=m):((s=~~(g/r))&&s===g/r&&(n=m,s--),m<n&&(n=m)),d=fe(this._tTime,r),y&&1&s&&(n=m-n,h=1),s!==(d=!p&&this._tTime&&d!==s?s:d)&&!this._lock)){var v=y&&1&d,y=v===(y&&1&s),p=(v=s<d?!v:v)?0:m;if(this._lock=1,this.render(p||(h?0:B(s*r)),t,!m)._lock=0,!t&&this.parent&&ve(this,"onRepeat"),this.vars.repeatRefresh&&!h&&(this.invalidate()._lock=1),p!==this._time||a!=!this._ts)return this;if(m=this._dur,f=this._tDur,y&&(this._lock=2,this.render(p=v?m:-1e-4,!0),this.vars.repeatRefresh&&!h&&this.invalidate()),this._lock=0,!this._ts&&!a)return this;le(this,h)}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(e,t,i){var n;if(t<i)for(n=e._first;n&&n._start<=i;){if(!n._dur&&"isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=i;){if(!n._dur&&"isPause"===n.data&&n._start<t)return n;n=n._prev}}(this,B(p),B(n)))&&(g-=n-(n=l._start)),this._tTime=g,this._time=n,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e),p||!n||t||ve(this,"onStart"),p<=n&&0<=e)for(_=this._first;_;){if(o=_._next,(_._act||n>=_._start)&&_._ts&&l!==_){if(_.parent!==this)return this.render(e,t,i);if(_.render(0<_._ts?(n-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(n-_._start)*_._ts,t,i),n!==this._time||!this._ts&&!a){l=0,o&&(g+=this._zTime=-We);break}}_=o}else for(var _=this._last,b=e<0?e:n;_;){if(o=_._prev,(_._act||b<=_._end)&&_._ts&&l!==_){if(_.parent!==this)return this.render(e,t,i);if(_.render(0<_._ts?(b-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(b-_._start)*_._ts,t,i),n!==this._time||!this._ts&&!a){l=0,o&&(g+=this._zTime=b?-We:We);break}}_=o}if(l&&!t&&(this.pause(),l.render(p<=n?0:-We)._zTime=p<=n?1:-1,this._ts))return this._start=u,w(this),this.render(e,t,i);this._onUpdate&&!t&&ve(this,"onUpdate",!0),(g===f&&f>=this.totalDuration()||!g&&p)&&(u!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||(!e&&m||!(g===f&&0<this._ts||!g&&this._ts<0)||H(this,1),t||e<0&&!p||!g&&!p||(ve(this,g===f?"onComplete":"onReverseComplete",!0),!this._prom||g<f&&0<this.timeScale()||this._prom())))}return this},t.add=function(e,t){var i=this;if(C(t)||(t=W(this,t)),!(e instanceof Mt)){if(Qe(e))return e.forEach(function(e){return i.add(e,t)}),this;if(L(e))return this.addLabel(e,t);if(!d(e))return this;e=Ht.delayedCall(0,e)}return this!==e?b(this,e,t):this},t.getChildren=function(e,t,i,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===n&&(n=-qe);for(var o=[],s=this._first;s;)s._start>=n&&(s instanceof Ht?t&&o.push(s):(i&&o.push(s),e&&o.push.apply(o,s.getChildren(!0,t,i)))),s=s._next;return o},t.getById=function(e){for(var t=this.getChildren(1,1,1),i=t.length;i--;)if(t[i].vars.id===e)return t[i]},t.remove=function(e){return L(e)?this.removeLabel(e):d(e)?this.killTweensOf(e):(m(this,e),e===this._recent&&(this._recent=this._last),g(this))},t.totalTime=function(e,t){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=B(wt.time-(0<this._ts?e/this._ts:(this.totalDuration()-e)/-this._ts))),i.prototype.totalTime.call(this,e,t),this._forcing=0,this):this._tTime},t.addLabel=function(e,t){return this.labels[e]=W(this,t),this},t.removeLabel=function(e){return delete this.labels[e],this},t.addPause=function(e,t,i){i=Ht.delayedCall(0,t||A,i);return i.data="isPause",this._hasPause=1,b(this,i,W(this,e))},t.removePause=function(e){var t=this._first;for(e=W(this,e);t;)t._start===e&&"isPause"===t.data&&H(t),t=t._next},t.killTweensOf=function(e,t,i){for(var n=this.getTweensOf(e,i),o=n.length;o--;)Bt!==n[o]&&n[o].kill(e,t);return this},t.getTweensOf=function(e,t){for(var i,n=[],o=me(e),s=this._first,r=C(t);s;)s instanceof Ht?function(e,t){for(var i=t.length,n=0;e.indexOf(t[n])<0&&++n<i;);return n<i}(s._targets,o)&&(r?(!Bt||s._initted&&s._ts)&&s.globalTime(0)<=t&&s.globalTime(s.totalDuration())>t:!t||s.isActive())&&n.push(s):(i=s.getTweensOf(o,t)).length&&n.push.apply(n,i),s=s._next;return n},t.tweenTo=function(e,t){t=t||{};var i=this,n=W(i,e),e=t.startAt,o=t.onStart,s=t.onStartParams,r=Ht.to(i,j(t,{ease:"none",lazy:!1,time:n,overwrite:"auto",duration:t.duration||Math.abs((n-(e&&"time"in e?e.time:i._time))/i.timeScale())||We,onStart:function(){i.pause();var e=t.duration||Math.abs((n-i._time)/i.timeScale());r._dur!==e&&q(r,e,0,1).render(r._time,!0,!0),o&&o.apply(r,s||[])}}));return r},t.tweenFromTo=function(e,t,i){return this.tweenTo(t,j({startAt:{time:W(this,e)}},i))},t.recent=function(){return this._recent},t.nextLabel=function(e){return te(this,W(this,e=void 0===e?this._time:e))},t.previousLabel=function(e){return te(this,W(this,e=void 0===e?this._time:e),1)},t.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+We)},t.shiftChildren=function(e,t,i){void 0===i&&(i=0);for(var n,o=this._first,s=this.labels;o;)o._start>=i&&(o._start+=e,o._end+=e),o=o._next;if(t)for(n in s)s[n]>=i&&(s[n]+=e);return g(this)},t.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return i.prototype.invalidate.call(this)},t.clear=function(e){void 0===e&&(e=!0);for(var t,i=this._first;i;)t=i._next,this.remove(i),i=t;return this._time=this._tTime=this._pTime=0,e&&(this.labels={}),g(this)},t.totalDuration=function(e){var t,i,n,o=0,s=this,r=s._last,a=qe;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-e:e));if(s._dirty){for(n=s.parent;r;)t=r._prev,r._dirty&&r.totalDuration(),a<(i=r._start)&&s._sort&&r._ts&&!s._lock?(s._lock=1,b(s,r,i-r._delay,1)._lock=0):a=i,i<0&&r._ts&&(o-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-1/0),a=0),r._end>o&&r._ts&&(o=r._end),r=t;q(s,s===ye&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(e){if(ye._ts&&(l(ye,y(e,ye)),Ce=wt.frame),wt.frame>=dt){dt+=He.autoSleep||120;var t=ye._first;if((!t||!t._ts)&&He.autoSleep&&wt._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||wt.sleep()}}},e}(Mt);function zt(e,t,i,n,o,s){var r,a,l,c;if(ct[e]&&!1!==(r=new ct[e]).init(o,r.rawVars?t[e]:function(e,t,i,n,o){if(!S(e=d(e)?Nt(e,o,t,i,n):e)||e.style&&e.nodeType||Qe(e)||Ke(e))return L(e)?Nt(e,o,t,i,n):e;var s,r={};for(s in e)r[s]=Nt(e[s],o,t,i,n);return r}(t[e],n,o,s,i),i,n,s)&&(i._pt=a=new ti(i._pt,o,e,0,1,r.render,r,0,r.priority),i!==si))for(l=i._ptLookup[i._targets.indexOf(o)],c=r._props.length;c--;)l[r._props[c]]=a;return r}j(It.prototype,{_lock:0,_hasPause:0,_forcing:0});function Dt(e,t){var i,n,o,s,r,a,l,c,u,d,h,p,f,m=e.vars,g=m.ease,v=m.startAt,y=m.immediateRender,_=m.lazy,b=m.onUpdate,w=m.onUpdateParams,x=m.callbackScope,T=m.runBackwards,C=m.yoyoEase,S=m.keyframes,k=m.autoRevert,E=e._dur,L=e._startAt,P=e._targets,A=e.parent,M=A&&"nested"===A.data?A.parent._targets:P,O="auto"===e._overwrite,I=e.timeline;if(e._ease=Et(g=!(!I||S&&g)?"none":g,Fe.ease),e._yEase=C?kt(Et(!0===C?g:C,Fe.ease)):0,C&&e._yoyo&&!e._repeat&&(C=e._yEase,e._yEase=e._ease,e._ease=C),!I){if(p=(c=P[0]?N(P[0]).harness:0)&&m[c.prop],i=R(m,rt),L&&L.render(-1,!0).kill(),v){if(H(e._startAt=Ht.set(P,j({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:z(_),startAt:null,delay:0,onUpdate:b,onUpdateParams:w,callbackScope:x,stagger:0},v))),y)if(0<t)k||(e._startAt=0);else if(E&&!(t<0&&L))return void(t&&(e._zTime=t))}else if(T&&E)if(L)k||(e._startAt=0);else if(o=j({overwrite:!1,data:"isFromStart",lazy:(y=t?!1:y)&&z(_),immediateRender:y,stagger:0,parent:A},i),p&&(o[c.prop]=p),H(e._startAt=Ht.set(P,o)),y){if(!t)return}else Dt(e._startAt,We);for(e._pt=0,_=E&&z(_)||_&&!E,n=0;n<P.length;n++){if(l=(r=P[n])._gsap||D(P)[n]._gsap,e._ptLookup[n]=d={},lt[l.id]&&at.length&&$(),h=M===P?n:M.indexOf(r),c&&!1!==(u=new c).init(r,p||i,e,h,M)&&(e._pt=s=new ti(e._pt,r,u.name,0,1,u.render,u,0,u.priority),u._props.forEach(function(e){d[e]=s}),u.priority&&(a=1)),!c||p)for(o in i)ct[o]&&(u=zt(o,i,e,h,r,M))?u.priority&&(a=1):d[o]=s=$t.call(e,r,o,"get",i[o],h,M,0,m.stringFilter);e._op&&e._op[n]&&e.kill(r,e._op[n]),O&&e._pt&&(Bt=e,ye.killTweensOf(r,d,e.globalTime(0)),f=!e.parent,Bt=0),e._pt&&_&&(lt[l.id]=1)}a&&ei(e),e._onInit&&e._onInit(e)}e._from=!I&&!!m.runBackwards,e._onUpdate=b,e._initted=(!e._op||e._pt)&&!f}function Nt(e,t,i,n,o){return d(e)?e.call(t,i,n,o):L(e)&&~e.indexOf("random(")?ee(e):e}var Bt,$t=function(e,t,i,n,o,s,r,a,l){d(n)&&(n=n(o||0,e,s));var o=e[t],s="get"!==i?i:d(o)?l?e[t.indexOf("set")||!d(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():o,i=d(o)?l?Vt:Ut:Wt;if(L(n)&&("="===(n=~n.indexOf("random(")?ee(n):n).charAt(1)&&(n=parseFloat(s)+parseFloat(n.substr(2))*("-"===n.charAt(0)?-1:1)+(V(s)||0))),s!==n)return isNaN(s*n)?(o||t in e||P(t,n),function(e,t,i,n,o,s,r){var a,l,c,u,d,h=new ti(this._pt,e,t,0,1,Yt,null,o),p=0,f=0;for(h.b=i,h.e=n,i+="",(o=~(n+="").indexOf("random("))&&(n=ee(n)),s&&(s(s=[i,n],e,t),i=s[0],n=s[1]),a=i.match(it)||[];d=it.exec(n);)c=d[0],u=n.substring(p,d.index),l?l=(l+1)%5:"rgba("===u.substr(-5)&&(l=1),c!==a[f++]&&(d=parseFloat(a[f-1])||0,h._pt={_next:h._pt,p:u||1===f?u:",",s:d,c:"="===c.charAt(1)?parseFloat(c.substr(2))*("-"===c.charAt(0)?-1:1):parseFloat(c)-d,m:l&&l<4?Math.round:0},p=it.lastIndex);return h.c=p<n.length?n.substring(p,n.length):"",h.fp=r,(nt.test(n)||o)&&(h.e=0),this._pt=h}.call(this,e,t,s,n,i,a||He.stringFilter,l)):(i=new ti(this._pt,e,t,+s||0,n-(s||0),"boolean"==typeof o?Zt:Gt,0,i),l&&(i.fp=l),r&&i.modifier(r,this,e),this._pt=i)},jt=pt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Rt=(jt+",id,stagger,delay,duration,paused,scrollTrigger").split(","),Ht=function(x){function o(e,t,i,n){var o;"number"==typeof t&&(i.duration=t,t=i,i=null);var s,r,a,l,c,u,d,h,p=(o=x.call(this,n?t:M(t),i)||this).vars,f=p.duration,m=p.delay,g=p.immediateRender,v=p.stagger,y=p.overwrite,_=p.keyframes,n=p.defaults,i=p.scrollTrigger,b=p.yoyoEase,p=o.parent,w=(Qe(e)||Ke(e)?C(e[0]):"length"in t)?[e]:me(e);if(o._targets=w.length?D(w):E("GSAP target "+e+" not found. https://greensock.com",!He.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=y,_||v||k(f)||k(m)){if(t=o.vars,(s=o.timeline=new It({data:"nested",defaults:n||{}})).kill(),s.parent=T(o),_)j(s.vars.defaults,{ease:"none"}),_.forEach(function(e){return s.to(w,e,">")});else{if(l=w.length,d=v?Y(v):A,S(v))for(c in v)~jt.indexOf(c)&&((h=h||{})[c]=v[c]);for(r=0;r<l;r++){for(c in a={},t)Rt.indexOf(c)<0&&(a[c]=t[c]);a.stagger=0,b&&(a.yoyoEase=b),h&&pe(a,h),u=w[r],a.duration=+Nt(f,T(o),r,u,w),a.delay=(+Nt(m,T(o),r,u,w)||0)-o._delay,!v&&1===l&&a.delay&&(o._delay=m=a.delay,o._start+=m,a.delay=0),s.to(u,a,d(r,u,w))}s.duration()?f=m=0:o.timeline=0}f||o.duration(f=s.duration())}else o.timeline=0;return!0===y&&(Bt=T(o),ye.killTweensOf(w),Bt=0),p&&O(p,T(o)),(g||!f&&!_&&o._start===B(p._time)&&z(g)&&function e(t){return!t||t._ts&&e(t.parent)}(T(o))&&"nested"!==p.data)&&(o._tTime=-We,o.render(Math.max(0,-m))),i&&I(T(o),i),o}n(o,x);var e=o.prototype;return e.render=function(e,t,i){var n,o,s,r,a,l,c,u,d,h=this._time,p=this._tDur,f=this._dur,m=p-We<e&&0<=e?p:e<We?0:e;if(f){if(m!==this._tTime||!e||i||this._startAt&&this._zTime<0!=e<0){if(n=m,u=this.timeline,this._repeat){if(n=B(m%(r=f+this._rDelay)),m===p?(s=this._repeat,n=f):((s=~~(m/r))&&s===m/r&&(n=f,s--),f<n&&(n=f)),(l=this._yoyo&&1&s)&&(d=this._yEase,n=f-n),a=fe(this._tTime,r),n===h&&!i&&this._initted)return this;s!==a&&(u&&this._yEase&&le(u,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=i=1,this.render(B(r*s),!0).invalidate()._lock=0))}if(!this._initted){if(F(this,e<0?e:n,i,t))return this._tTime=0,this;if(f!==this._dur)return this.render(e,t,i)}for(this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(d||this._ease)(n/f),this._from&&(this.ratio=c=1-c),!n||h||t||ve(this,"onStart"),o=this._pt;o;)o.r(c,o.d),o=o._next;u&&u.render(e<0?e:!n&&l?-We:u._dur*c,t,i)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(e<0&&this._startAt&&this._startAt.render(e,!0,i),ve(this,"onUpdate")),this._repeat&&s!==a&&this.vars.onRepeat&&!t&&this.parent&&ve(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(e<0&&this._startAt&&!this._onUpdate&&this._startAt.render(e,!0,!0),!e&&f||!(m===this._tDur&&0<this._ts||!m&&this._ts<0)||H(this,1),t||e<0&&!h||!m&&!h||(ve(this,m===p?"onComplete":"onReverseComplete",!0),!this._prom||m<p&&0<this.timeScale()||this._prom()))}}else!function(e,t,i,n){var o,s,r=e.ratio,a=t<0||!t&&r&&!e._start&&e._zTime>We&&!e._dp._lock||(e._ts<0||e._dp._ts<0)&&"isFromStart"!==e.data&&"isStart"!==e.data?0:1,l=e._rDelay,c=0;if(l&&e._repeat&&(c=mt(0,e._tDur,t),fe(c,l)!==(s=fe(e._tTime,l))&&(r=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==r||n||e._zTime===We||!t&&e._zTime){if(e._initted||!F(e,t,n,i)){for(s=e._zTime,e._zTime=t||(i?We:0),i=i||t&&!s,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=c,i||ve(e,"onStart"),o=e._pt;o;)o.r(a,o.d),o=o._next;e._startAt&&t<0&&e._startAt.render(t,!0,!0),e._onUpdate&&!i&&ve(e,"onUpdate"),c&&e._repeat&&!i&&e.parent&&ve(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&H(e,1),i||(ve(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}}else e._zTime||(e._zTime=t)}(this,e,t,i);return this},e.targets=function(){return this._targets},e.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),x.prototype.invalidate.call(this)},e.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t)&&(this._lazy=0,this.parent))return ie(this);if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Bt&&!0!==Bt.vars.overwrite)._first||ie(this),this.parent&&i!==this.timeline.totalDuration()&&q(this,this._dur*this.timeline._tDur/i,0,1),this}var n,o,s,r,a,l,c,u=this._targets,d=e?me(e):u,h=this._ptLookup,e=this._pt;if((!t||"all"===t)&&function(e,t){for(var i=e.length,n=i===t.length;n&&i--&&e[i]===t[i];);return i<0}(u,d))return"all"===t&&(this._pt=0),ie(this);for(n=this._op=this._op||[],"all"!==t&&(L(t)&&(a={},p(t,function(e){return a[e]=1}),t=a),t=function(e,t){var i,n,o,s,e=e[0]?N(e[0]).harness:0,r=e&&e.aliases;if(!r)return t;for(n in i=pe({},t),r)if(n in i)for(o=(s=r[n].split(",")).length;o--;)i[s[o]]=i[n];return i}(u,t)),c=u.length;c--;)if(~d.indexOf(u[c]))for(a in o=h[c],"all"===t?(n[c]=t,r=o,s={}):(s=n[c]=n[c]||{},r=t),r)(l=o&&o[a])&&("kill"in l.d&&!0!==l.d.kill(a)||m(this,l,"_pt"),delete o[a]),"all"!==s&&(s[a]=1);return this._initted&&!this._pt&&e&&ie(this),this},o.to=function(e,t,i){return new o(e,t,i)},o.from=function(e,t){return new o(e,a(arguments,1))},o.delayedCall=function(e,t,i,n){return new o(t,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:t,onReverseComplete:t,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n})},o.fromTo=function(e,t,i){return new o(e,a(arguments,2))},o.set=function(e,t){return t.duration=0,t.repeatDelay||(t.repeat=0),new o(e,t)},o.killTweensOf=function(e,t,i){return ye.killTweensOf(e,t,i)},o}(Mt);function Ft(e,t,i){return e.setAttribute(t,i)}function qt(e,t,i,n){n.mSet(e,t,n.m.call(n.tween,i,n.mt),n)}j(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),p("staggerTo,staggerFrom,staggerFromTo",function(i){Ht[i]=function(){var e=new It,t=gt.call(arguments,0);return t.splice("staggerFromTo"===i?5:4,0,0),e[i].apply(e,t)}});function Wt(e,t,i){return e[t]=i}function Ut(e,t,i){return e[t](i)}function Vt(e,t,i,n){return e[t](n.fp,i)}function Gt(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4,t)}function Zt(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)}function Yt(e,t){var i=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*e):Math.round(1e4*(i.s+i.c*e))/1e4)+n,i=i._next;n+=t.c}t.set(t.t,t.p,n,t)}function Xt(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next}function Kt(e,t,i,n){for(var o,s=this._pt;s;)o=s._next,s.p===n&&s.modifier(e,t,i),s=o}function Qt(e){for(var t,i,n=this._pt;n;)i=n._next,n.p===e&&!n.op||n.op===e?m(this,n,"_pt"):n.dep||(t=1),n=i;return!t}var Jt=function(e,t){return d(e[t])?Ut:o(e[t])&&e.setAttribute?Ft:Wt},ei=function(e){for(var t,i,n,o,s=e._pt;s;){for(t=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:o)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:o=s,s=t}e._pt=n},ti=(ii.prototype.modifier=function(e,t,i){this.mSet=this.mSet||this.set,this.set=qt,this.m=e,this.mt=i,this.tween=t},ii);function ii(e,t,i,n,o,s,r,a,l){this.t=t,this.s=n,this.c=o,this.p=i,this.r=s||Gt,this.d=r||this,this.set=a||Wt,this.pr=l||0,(this._next=e)&&(e._prev=this)}p(pt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return rt[e]=1}),st.TweenMax=st.TweenLite=Ht,st.TimelineLite=st.TimelineMax=It,ye=new It({sortChildren:!1,defaults:Fe,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),He.stringFilter=ae;var ni={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t.forEach(function(e){var t=(e=!e.name&&e.default||e).name,i=d(e),n=t&&!i&&e.init?function(){this._props=[]}:e,o={init:A,render:Xt,add:$t,kill:Qt,modifier:Kt,rawVars:0},i={targetTest:0,get:0,getSetter:Jt,aliases:{},register:0};if(xt(),e!==n){if(ct[t])return;j(n,j(R(e,o),i)),pe(n.prototype,pe(o,R(e,i))),ct[n.prop=t]=n,e.targetTest&&(ht.push(n),rt[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}s(t,n),e.register&&e.register(ri,n,ti)})},timeline:function(e){return new It(e)},getTweensOf:function(e,t){return ye.getTweensOf(e,t)},getProperty:function(n,e,t,i){var o=N((n=L(n)?me(n)[0]:n)||{}).get,s=t?u:c;return"native"===t&&(t=""),n&&(e?s((ct[e]&&ct[e].get||o)(n,e,t,i)):function(e,t,i){return s((ct[e]&&ct[e].get||o)(n,e,t,i))})},quickSetter:function(i,t,n){if(1<(i=me(i)).length){var o=i.map(function(e){return ri.quickSetter(e,t,n)}),s=o.length;return function(e){for(var t=s;t--;)o[t](e)}}i=i[0]||{};var r=ct[t],a=N(i),l=a.harness&&(a.harness.aliases||{})[t]||t,c=r?function(e){var t=new r;si._pt=0,t.init(i,n?e+n:e,si,0,[i]),t.render(1,t),si._pt&&Xt(1,si)}:a.set(i,l);return r?c:function(e){return c(i,l,n?e+n:e,a,1)}},isTweening:function(e){return 0<ye.getTweensOf(e,!0).length},defaults:function(e){return e&&e.ease&&(e.ease=Et(e.ease,Fe.ease)),f(Fe,e||{})},config:function(e){return f(He,e||{})},registerEffect:function(e){var n=e.name,o=e.effect,t=e.plugins,s=e.defaults,e=e.extendTimeline;(t||"").split(",").forEach(function(e){return e&&!ct[e]&&!st[e]&&E(n+" effect requires "+e+" plugin.")}),ut[n]=function(e,t,i){return o(me(e),j(t||{},s),i)},e&&(It.prototype[n]=function(e,t,i){return this.add(ut[n](e,S(t)?t:(i=t)&&{},this),i)})},registerEase:function(e,t){Tt[e]=Et(t)},parseEase:function(e,t){return arguments.length?Et(e,t):Tt},getById:function(e){return ye.getById(e)},exportRoot:function(e,t){var i,n,o=new It(e=void 0===e?{}:e);for(o.smoothChildTiming=z(e.smoothChildTiming),ye.remove(o),o._dp=0,o._time=o._tTime=ye._time,i=ye._first;i;)n=i._next,!t&&!i._dur&&i instanceof Ht&&i.vars.onComplete===i._targets[0]||b(o,i,i._start-i._delay),i=n;return b(ye,o,0),o},utils:{wrap:function e(t,i,n){var o=i-t;return Qe(t)?J(t,e(0,t.length),i):U(n,function(e){return(o+(e-t)%o)%o+t})},wrapYoyo:function e(t,i,n){var o=i-t,s=2*o;return Qe(t)?J(t,e(0,t.length-1),i):U(n,function(e){return t+(o<(e=(s+(e-t)%s)%s||0)?s-e:e)})},distribute:Y,random:Q,snap:K,normalize:function(e,t,i){return ge(e,t,0,1,i)},getUnit:V,clamp:function(t,i,e){return U(e,function(e){return mt(t,i,e)})},splitColor:oe,toArray:me,mapRange:ge,pipe:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(t,i){return function(e){return t(parseFloat(e))+(i||V(e))}},interpolate:function e(t,i,n,o){var s=isNaN(t+i)?0:function(e){return(1-e)*t+e*i};if(!s){var r,a,l,c,u,d=L(t),h={};if(!0===n&&(o=1)&&(n=null),d)t={p:t},i={p:i};else if(Qe(t)&&!Qe(i)){for(l=[],c=t.length,u=c-2,a=1;a<c;a++)l.push(e(t[a-1],t[a]));c--,s=function(e){e*=c;var t=Math.min(u,~~e);return l[t](e-t)},n=i}else o||(t=pe(Qe(t)?[]:{},t));if(!l){for(r in i)$t.call(h,t,r,"get",i[r]);s=function(e){return Xt(e,h),d?t.p:t}}}return U(n,s)},shuffle:Z},install:i,effects:ut,ticker:wt,updateRoot:It.updateRoot,plugins:ct,globalTimeline:ye,core:{PropTween:ti,globals:s,Tween:Ht,Timeline:It,Animation:Mt,getCache:N,_removeLinkedListItem:m}};function oi(e,o){return{name:e,rawVars:1,init:function(e,n,t){t._onInit=function(e){var t,i;if(L(n)&&(t={},p(n,function(e){return t[e]=1}),n=t),o){for(i in t={},n)t[i]=o(n[i]);n=t}!function(e,t){var i,n,o,s=e._targets;for(i in t)for(n=s.length;n--;)(o=(o=e._ptLookup[n][i])&&o.d)&&(o._pt&&(o=function(e,t){for(var i=e._pt;i&&i.p!==t&&i.op!==t&&i.fp!==t;)i=i._next;return i}(o,i)),o&&o.modifier&&o.modifier(t[i],e,s[n],i))}(e,n)}}}}p("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return ni[e]=Ht[e]}),wt.add(It.updateRoot);var si=ni.to({},{duration:0}),ri=ni.registerPlugin({name:"attr",init:function(e,t,i,n,o){var s,r;for(s in t)(r=this.add(e,"setAttribute",(e.getAttribute(s)||0)+"",t[s],n,o,0,0,s))&&(r.op=s),this._props.push(s)}},{name:"endArray",init:function(e,t){for(var i=t.length;i--;)this.add(e,i,e[i]||0,t[i])}},oi("roundProps",X),oi("modifiers"),oi("snap",K))||ni;function ai(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)}function li(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)}function ci(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)}function ui(e,t){e=t.s+t.c*e;t.set(t.t,t.p,~~(e+(e<0?-.5:.5))+t.u,t)}function di(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)}function hi(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)}function pi(e,t,i){return e.style[t]=i}function fi(e,t,i){return e.style.setProperty(t,i)}function mi(e,t,i){return e._gsap[t]=i}function gi(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i}function vi(e,t,i,n,o){e=e._gsap;e.scaleX=e.scaleY=i,e.renderTransform(o,e)}function yi(e,t,i,n,o){e=e._gsap;e[t]=i,e.renderTransform(o,e)}function _i(e,t){t=Bi.createElementNS?Bi.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Bi.createElement(e);return t.style?t:Bi.createElement(e)}function bi(e,t,i){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(pn,"-$1").toLowerCase())||n.getPropertyValue(t)||!i&&bi(e,bn(t)||t,1)||""}function wi(){"undefined"!=typeof window&&window.document&&($i=(Bi=window.document).documentElement,Ri=_i("div")||{style:{}},Hi=_i("div"),vn=bn(vn),yn=vn+"Origin",Ri.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",qi=!!bn("perspective"),ji=1)}function xi(e){var t,i=_i("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,o=this.nextSibling,s=this.style.cssText;if($i.appendChild(i),i.appendChild(this),this.style.display="block",e)try{t=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=xi}catch(e){}else this._gsapBBox&&(t=this._gsapBBox());return n&&(o?n.insertBefore(this,o):n.appendChild(this)),$i.removeChild(i),this.style.cssText=s,t}function Ti(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])}function Ci(t){var i;try{i=t.getBBox()}catch(e){i=xi.call(t,!0)}return!(i=!(i&&(i.width||i.height)||t.getBBox===xi)?xi.call(t,!0):i)||i.width||i.x||i.y?i:{x:+Ti(t,["x","cx","x1"])||0,y:+Ti(t,["y","cy","y1"])||0,width:0,height:0}}function Si(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!Ci(e))}function ki(e,t){t&&(e=e.style,t in cn&&t!==yn&&(t=vn),e.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),e.removeProperty(t.replace(pn,"-$1").toLowerCase())):e.removeAttribute(t))}function Ei(e,t,i,n,o,s){s=new ti(e._pt,t,i,0,1,s?hi:di);return(e._pt=s).b=n,s.e=o,e._props.push(i),s}function Li(e,t,i,n){var o=parseFloat(i)||0,s=(i+"").trim().substr((o+"").length)||"px",r=Ri.style,a=fn.test(t),l="svg"===e.tagName.toLowerCase(),c=(l?"client":"offset")+(a?"Width":"Height"),u="px"===n,d="%"===n;return n===s||!o||wn[n]||wn[s]?o:("px"===s||u||(o=Li(e,t,i,"px")),i=e.getCTM&&Si(e),d&&(cn[t]||~t.indexOf("adius"))?B(o/(i?e.getBBox()[a?"width":"height"]:e[c])*100):(r[a?"width":"height"]=100+(u?s:n),l=~t.indexOf("adius")||"em"===n&&e.appendChild&&!l?e:e.parentNode,(i=(l=!(l=i?(e.ownerSVGElement||{}).parentNode:l)||l===Bi||!l.appendChild?Bi.body:l)._gsap)&&d&&i.width&&a&&i.time===wt.time?B(o/i.width*100):(!d&&"%"!==s||(r.position=bi(e,"position")),l===e&&(r.position="static"),l.appendChild(Ri),e=Ri[c],l.removeChild(Ri),r.position="absolute",a&&d&&((i=N(l)).time=wt.time,i.width=l[c]),B(u?e*o/100:e&&o?100/e*o:0))))}function Pi(e,t,i,n){var o;return ji||wi(),t in gn&&"transform"!==t&&~(t=gn[t]).indexOf(",")&&(t=t.split(",")[0]),cn[t]&&"transform"!==t?(o=kn(e,n),o="transformOrigin"!==t?o[t]:En(bi(e,yn))+" "+o.zOrigin+"px"):(o=e.style[t])&&"auto"!==o&&!n&&!~(o+"").indexOf("calc(")||(o=Tn[t]&&Tn[t](e,t,i)||bi(e,t)||r(e,t)||("opacity"===t?1:0)),i&&!~(o+"").indexOf(" ")?Li(e,t,o,i)+i:o}function Ai(e,t,i,n){var o;i&&"none"!==i||((s=(o=bn(t,e,1))&&bi(e,o,1))&&s!==i?(t=o,i=s):"borderColor"===t&&(i=bi(e,"borderTopColor")));var s,r,a,l,c,u,d,h,p,f,m=new ti(this._pt,e.style,t,0,1,Yt),g=0,v=0;if(m.b=i,m.e=n,i+="","auto"==(n+="")&&(e.style[t]=n,n=bi(e,t)||n,e.style[t]=i),ae(s=[i,n]),n=s[1],r=(i=s[0]).match(tt)||[],(n.match(tt)||[]).length){for(;u=tt.exec(n);)h=u[0],d=n.substring(g,u.index),l?l=(l+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(l=1),h!==(c=r[v++]||"")&&(a=parseFloat(c)||0,p=c.substr((a+"").length),(f="="===h.charAt(1)?+(h.charAt(0)+"1"):0)&&(h=h.substr(2)),u=parseFloat(h),h=h.substr((u+"").length),g=tt.lastIndex-h.length,h||(h=h||He.units[t]||p,g===n.length&&(n+=h,m.e+=h)),p!==h&&(a=Li(e,t,c,h)||0),m._pt={_next:m._pt,p:d||1===v?d:",",s:a,c:f?f*u:u-a,m:l&&l<4?Math.round:0});m.c=g<n.length?n.substring(g,n.length):""}else m.r="display"===t&&"none"===n?hi:di;return nt.test(n)&&(m.e=0),this._pt=m}function Mi(e,t){if(t.tween&&t.tween._time===t.tween._dur){var i,n,o,s=t.t,r=s.style,a=t.u,t=s._gsap;if("all"===a||!0===a)r.cssText="",n=1;else for(o=(a=a.split(",")).length;-1<--o;)i=a[o],cn[i]&&(n=1,i="transformOrigin"===i?yn:vn),ki(s,i);n&&(ki(s,vn),t&&(t.svg&&s.removeAttribute("transform"),kn(s,1),t.uncache=1))}}function Oi(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e}function Ii(e){e=bi(e,vn);return Oi(e)?Cn:e.substr(7).match(et).map(B)}function zi(e,t){var i,n,o,s=e._gsap||N(e),r=e.style,a=Ii(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(a=[(n=e.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?Cn:a:(a!==Cn||e.offsetParent||e===$i||s.svg||(n=r.display,r.display="block",(s=e.parentNode)&&e.offsetParent||(o=1,i=e.nextSibling,$i.appendChild(e)),a=Ii(e),n?r.display=n:ki(e,"display"),o&&(i?s.insertBefore(e,i):s?s.appendChild(e):$i.removeChild(e))),t&&6<a.length?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)}function Di(e,t,i,n,o,s){var r,a,l=e._gsap,c=o||zi(e,!0),u=l.xOrigin||0,d=l.yOrigin||0,h=l.xOffset||0,p=l.yOffset||0,f=c[0],m=c[1],g=c[2],v=c[3],y=c[4],_=c[5],b=t.split(" "),w=parseFloat(b[0])||0,o=parseFloat(b[1])||0;i?c!==Cn&&(r=f*v-m*g)&&(a=w*(-m/r)+o*(f/r)-(f*_-m*y)/r,w=w*(v/r)+o*(-g/r)+(g*_-v*y)/r,o=a):(w=(a=Ci(e)).x+(~b[0].indexOf("%")?w/100*a.width:w),o=a.y+(~(b[1]||b[0]).indexOf("%")?o/100*a.height:o)),n||!1!==n&&l.smooth?(l.xOffset=h+((y=w-u)*f+(_=o-d)*g)-y,l.yOffset=p+(y*m+_*v)-_):l.xOffset=l.yOffset=0,l.xOrigin=w,l.yOrigin=o,l.smooth=!!n,l.origin=t,l.originIsAbsolute=!!i,e.style[yn]="0px 0px",s&&(Ei(s,l,"xOrigin",u,w),Ei(s,l,"yOrigin",d,o),Ei(s,l,"xOffset",h,l.xOffset),Ei(s,l,"yOffset",p,l.yOffset)),e.setAttribute("data-svg-origin",w+" "+o)}function Ni(e,t,i){var n=V(t);return B(parseFloat(t)+parseFloat(Li(e,"x",i+"px",n)))+n}Ht.version=It.version=ri.version="3.5.1",Te=1,t()&&xt();var Bi,$i,ji,Ri,Hi,Fi,qi,Wi=Tt.Power0,Ui=Tt.Power1,Vi=Tt.Power2,Gi=Tt.Power3,Zi=Tt.Power4,Yi=Tt.Linear,Xi=Tt.Quad,Ki=Tt.Cubic,Qi=Tt.Quart,Ji=Tt.Quint,en=Tt.Strong,tn=Tt.Elastic,nn=Tt.Back,on=Tt.SteppedEase,sn=Tt.Bounce,rn=Tt.Sine,an=Tt.Expo,ln=Tt.Circ,cn={},un=180/Math.PI,dn=Math.PI/180,hn=Math.atan2,pn=/([A-Z])/g,fn=/(?:left|right|width|margin|padding|x)/i,mn=/[\s,\(]\S/,gn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},vn="transform",yn=vn+"Origin",_n="O,Moz,ms,Ms,Webkit".split(","),bn=function(e,t,i){var n=(t||Ri).style,o=5;if(e in n&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(_n[o]+e in n););return o<0?null:(3===o?"ms":0<=o?_n[o]:"")+e},wn={deg:1,rad:1,turn:1},xn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Tn={clearProps:function(e,t,i,n,o){if("isFromStart"!==o.data){t=e._pt=new ti(e._pt,t,i,0,0,Mi);return t.u=n,t.pr=-10,t.tween=o,e._props.push(i),1}}},Cn=[1,0,0,1,0,0],Sn={},kn=function(e,t){var i=e._gsap||new At(e);if("x"in i&&!t&&!i.uncache)return i;var n,o,s,r,a,l,c,u,d,h,p,f,m,g,v,y,_,b,w,x,T,C,S,k,E,L=e.style,P=i.scaleX<0,A="deg",M=bi(e,yn)||"0",O=n=o=r=a=l=c=u=0,I=s=1;return i.svg=!(!e.getCTM||!Si(e)),d=zi(e,i.svg),i.svg&&(b=!i.uncache&&e.getAttribute("data-svg-origin"),Di(e,b||M,!!b||i.originIsAbsolute,!1!==i.smooth,d)),C=i.xOrigin||0,k=i.yOrigin||0,d!==Cn&&(f=d[0],m=d[1],g=d[2],v=d[3],O=y=d[4],n=_=d[5],6===d.length?(I=Math.sqrt(f*f+m*m),s=Math.sqrt(v*v+g*g),r=f||m?hn(m,f)*un:0,(c=g||v?hn(g,v)*un+r:0)&&(s*=Math.cos(c*dn)),i.svg&&(O-=C-(C*f+k*g),n-=k-(C*m+k*v))):(E=d[6],S=d[7],T=d[8],t=d[9],C=d[10],k=d[11],O=d[12],n=d[13],o=d[14],a=(d=hn(E,C))*un,d&&(b=y*(h=Math.cos(-d))+T*(p=Math.sin(-d)),w=_*h+t*p,x=E*h+C*p,T=y*-p+T*h,t=_*-p+t*h,C=E*-p+C*h,k=S*-p+k*h,y=b,_=w,E=x),l=(d=hn(-g,C))*un,d&&(h=Math.cos(-d),k=v*(p=Math.sin(-d))+k*h,f=b=f*h-T*p,m=w=m*h-t*p,g=x=g*h-C*p),r=(d=hn(m,f))*un,d&&(b=f*(h=Math.cos(d))+m*(p=Math.sin(d)),w=y*h+_*p,m=m*h-f*p,_=_*h-y*p,f=b,y=w),a&&359.9<Math.abs(a)+Math.abs(r)&&(a=r=0,l=180-l),I=B(Math.sqrt(f*f+m*m+g*g)),s=B(Math.sqrt(_*_+E*E)),d=hn(y,_),c=2e-4<Math.abs(d)?d*un:0,u=k?1/(k<0?-k:k):0),i.svg&&(b=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!Oi(bi(e,vn)),b&&e.setAttribute("transform",b))),90<Math.abs(c)&&Math.abs(c)<270&&(P?(I*=-1,c+=r<=0?180:-180,r+=r<=0?180:-180):(s*=-1,c+=c<=0?180:-180)),i.x=((i.xPercent=O&&Math.round(e.offsetWidth/2)===Math.round(-O)?-50:0)?0:O)+"px",i.y=((i.yPercent=n&&Math.round(e.offsetHeight/2)===Math.round(-n)?-50:0)?0:n)+"px",i.z=o+"px",i.scaleX=B(I),i.scaleY=B(s),i.rotation=B(r)+A,i.rotationX=B(a)+A,i.rotationY=B(l)+A,i.skewX=c+A,i.skewY=0+A,i.transformPerspective=u+"px",(i.zOrigin=parseFloat(M.split(" ")[2])||0)&&(L[yn]=En(M)),i.xOffset=i.yOffset=0,i.force3D=He.force3D,i.renderTransform=i.svg?In:qi?On:Ln,i.uncache=0,i},En=function(e){return(e=e.split(" "))[0]+" "+e[1]},Ln=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,On(e,t)},Pn="0deg",An="0px",Mn=") ",On=function(e,t){var i=t||this,n=i.xPercent,o=i.yPercent,s=i.x,r=i.y,a=i.z,l=i.rotation,c=i.rotationY,u=i.rotationX,d=i.skewX,h=i.skewY,p=i.scaleX,f=i.scaleY,m=i.transformPerspective,g=i.force3D,v=i.target,y=i.zOrigin,_="",t="auto"===g&&e&&1!==e||!0===g;!y||u===Pn&&c===Pn||(i=parseFloat(c)*dn,e=Math.sin(i),g=Math.cos(i),i=parseFloat(u)*dn,s=Ni(v,s,e*(e=Math.cos(i))*-y),r=Ni(v,r,-Math.sin(i)*-y),a=Ni(v,a,g*e*-y+y)),m!==An&&(_+="perspective("+m+Mn),(n||o)&&(_+="translate("+n+"%, "+o+"%) "),!t&&s===An&&r===An&&a===An||(_+=a!==An||t?"translate3d("+s+", "+r+", "+a+") ":"translate("+s+", "+r+Mn),l!==Pn&&(_+="rotate("+l+Mn),c!==Pn&&(_+="rotateY("+c+Mn),u!==Pn&&(_+="rotateX("+u+Mn),d===Pn&&h===Pn||(_+="skew("+d+", "+h+Mn),1===p&&1===f||(_+="scale("+p+", "+f+Mn),v.style[vn]=_||"translate(0, 0)"},In=function(e,t){var i,n,o,s,r,a=t||this,l=a.xPercent,c=a.yPercent,u=a.x,d=a.y,h=a.rotation,p=a.skewX,f=a.skewY,m=a.scaleX,g=a.scaleY,v=a.target,y=a.xOrigin,_=a.yOrigin,b=a.xOffset,w=a.yOffset,x=a.forceCSS,t=parseFloat(u),a=parseFloat(d),h=parseFloat(h),p=parseFloat(p);(f=parseFloat(f))&&(p+=f=parseFloat(f),h+=f),h||p?(h*=dn,p*=dn,i=Math.cos(h)*m,n=Math.sin(h)*m,o=Math.sin(h-p)*-g,s=Math.cos(h-p)*g,p&&(f*=dn,r=Math.tan(p-f),o*=r=Math.sqrt(1+r*r),s*=r,f&&(r=Math.tan(f),i*=r=Math.sqrt(1+r*r),n*=r)),i=B(i),n=B(n),o=B(o),s=B(s)):(i=m,s=g,n=o=0),(t&&!~(u+"").indexOf("px")||a&&!~(d+"").indexOf("px"))&&(t=Li(v,"x",u,"px"),a=Li(v,"y",d,"px")),(y||_||b||w)&&(t=B(t+y-(y*i+_*o)+b),a=B(a+_-(y*n+_*s)+w)),(l||c)&&(t=B(t+l/100*(r=v.getBBox()).width),a=B(a+c/100*r.height)),v.setAttribute("transform",r="matrix("+i+","+n+","+o+","+s+","+t+","+a+")"),x&&(v.style[vn]=r)};p("padding,margin,Width,Radius",function(t,i){var e="Right",n="Bottom",o="Left",a=(i<3?["Top",e,n,o]:["Top"+o,"Top"+e,n+e,n+o]).map(function(e){return i<2?t+e:"border"+e+t});Tn[1<i?"border"+t:t]=function(t,e,i,n,o){var s,r;if(arguments.length<4)return s=a.map(function(e){return Pi(t,e,i)}),5===(r=s.join(" ")).split(s[0]).length?s[0]:r;s=(n+"").split(" "),r={},a.forEach(function(e,t){return r[e]=s[t]=s[t]||s[(t-1)/2|0]}),t.init(e,r,o)}});var zn,Dn={name:"css",register:wi,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,n,o){var s,r,a,l,c,u,d,h,p,f,m,g,v,y,_,b,w,x,T,C,S,k=this._props,E=e.style;for(c in ji||wi(),t)if("autoRound"!==c&&(r=t[c],!ct[c]||!zt(c,t,i,n,e,o)))if(w=typeof r,b=Tn[c],"function"===w&&(w=typeof(r=r.call(i,n,e,o))),"string"===w&&~r.indexOf("random(")&&(r=ee(r)),b)b(this,e,c,r,i)&&(g=1);else if("--"===c.substr(0,2))this.add(E,"setProperty",getComputedStyle(e).getPropertyValue(c)+"",r+"",n,o,0,0,c);else if("undefined"!==w){if(s=Pi(e,c),l=parseFloat(s),(d="string"===w&&"="===r.charAt(1)?+(r.charAt(0)+"1"):0)&&(r=r.substr(2)),a=parseFloat(r),c in gn&&("autoAlpha"===c&&Ei(this,E,"visibility",(l=1===l&&"hidden"===Pi(e,"visibility")&&a?0:l)?"inherit":"hidden",a?"inherit":"hidden",!a),"scale"!==c&&"transform"!==c&&~(c=gn[c]).indexOf(",")&&(c=c.split(",")[0])),h=c in cn)if(p||((f=e._gsap).renderTransform||kn(e),m=!1!==t.smoothOrigin&&f.smooth,(p=this._pt=new ti(this._pt,E,vn,0,1,f.renderTransform,f,0,-1)).dep=1),"scale"===c)this._pt=new ti(this._pt,f,"scaleY",f.scaleY,d?d*a:a-f.scaleY),k.push("scaleY",c),c+="X";else{if("transformOrigin"===c){S=C=T=void 0,T=(x=r).split(" "),C=T[0],S=T[1]||"50%","top"!==C&&"bottom"!==C&&"left"!==S&&"right"!==S||(x=C,C=S,S=x),T[0]=xn[C]||C,T[1]=xn[S]||S,r=T.join(" "),f.svg?Di(e,r,0,m,0,this):((u=parseFloat(r.split(" ")[2])||0)!==f.zOrigin&&Ei(this,f,"zOrigin",f.zOrigin,u),Ei(this,E,c,En(s),En(r)));continue}if("svgOrigin"===c){Di(e,r,1,m,0,this);continue}if(c in Sn){v=this,y=f,_=c,b=l,w=d,S=C=x=void 0,x=360,C=L(T=r),S=parseFloat(T)*(C&&~T.indexOf("rad")?un:1),S=b+(w=w?S*w:S-b)+"deg",C&&("short"===(T=T.split("_")[1])&&(w%=x)!=w%180&&(w+=w<0?x:-x),"cw"===T&&w<0?w=(w+36e9)%x-~~(w/x)*x:"ccw"===T&&0<w&&(w=(w-36e9)%x-~~(w/x)*x)),v._pt=w=new ti(v._pt,y,_,b,w,li),w.e=S,w.u="deg",v._props.push(_);continue}if("smoothOrigin"===c){Ei(this,f,"smooth",f.smooth,r);continue}if("force3D"===c){f[c]=r;continue}if("transform"===c){!function(e,t,i){var n,o,s,r,a,l=Hi.style,c=i._gsap;for(o in l.cssText=getComputedStyle(i).cssText+";position:absolute;display:block;",l[vn]=t,Bi.body.appendChild(Hi),n=kn(Hi,1),cn)(s=c[o])!==(r=n[o])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(o)<0&&(s=V(s)!==(a=V(r))?Li(i,o,s,a):parseFloat(s),r=parseFloat(r),e._pt=new ti(e._pt,c,o,s,r-s,ai),e._pt.u=a||0,e._props.push(o));Bi.body.removeChild(Hi)}(this,r,e);continue}}else c in E||(c=bn(c)||c);if(h||(a||0===a)&&(l||0===l)&&!mn.test(r)&&c in E)a=a||0,(_=(s+"").substr((l+"").length))!==(u=V(r)||(c in He.units?He.units[c]:_))&&(l=Li(e,c,s,u)),this._pt=new ti(this._pt,h?f:E,c,l,d?d*a:a-l,"px"!==u||!1===t.autoRound||h?ai:ui),this._pt.u=u||0,_!==u&&(this._pt.b=s,this._pt.r=ci);else if(c in E)Ai.call(this,e,c,s,r);else{if(!(c in e)){P(c,r);continue}this.add(e,c,e[c],r,n,o)}k.push(c)}g&&ei(this)},get:Pi,aliases:gn,getSetter:function(e,t,i){var n=gn[t];return(t=n&&n.indexOf(",")<0?n:t)in cn&&t!==yn&&(e._gsap.x||Pi(e,"x"))?i&&Fi===i?"scale"===t?gi:mi:(Fi=i||{})&&("scale"===t?vi:yi):e.style&&!o(e.style[t])?pi:~t.indexOf("-")?fi:Jt(e,t)},core:{_removeProperty:ki,_getMatrix:zi}};ri.utils.checkPrefix=bn,zn=p("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Bn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){cn[e]=1}),p(Bn,function(e){He.units[e]="deg",Sn[e]=1}),gn[zn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Bn,p("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){e=e.split(":");gn[e[1]]=zn[e[0]]}),p("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){He.units[e]="px"}),ri.registerPlugin(Dn);var Nn=ri.registerPlugin(Dn)||ri,Bn=Nn.core.Tween;e.Back=nn,e.Bounce=sn,e.CSSPlugin=Dn,e.Circ=ln,e.Cubic=Ki,e.Elastic=tn,e.Expo=an,e.Linear=Yi,e.Power0=Wi,e.Power1=Ui,e.Power2=Vi,e.Power3=Gi,e.Power4=Zi,e.Quad=Xi,e.Quart=Qi,e.Quint=Ji,e.Sine=rn,e.SteppedEase=on,e.Strong=en,e.TimelineLite=It,e.TimelineMax=It,e.TweenLite=Ht,e.TweenMax=Bn,e.default=Nn,e.gsap=Nn,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function t(){return"undefined"!=typeof window}function i(){return n||t()&&(n=window.gsap)&&n.registerPlugin&&n}function r(e){return"string"==typeof e}function h(e,t){var i="x"===t?"Width":"Height",n="scroll"+i,t="client"+i;return e===p||e===o||e===d?Math.max(o[n],d[n])-(p["inner"+i]||o[t]||d[t]):e[n]-e["offset"+i]}function a(e,t){var i="scroll"+("x"===t?"Left":"Top");return e===p&&(null!=e.pageXOffset?i="page"+t.toUpperCase()+"Offset":e=null!=o[i]?o:d),function(){return e[i]}}function s(e,t){var i=f(e)[0].getBoundingClientRect(),n=!t||t===p||t===d,e=n?{top:o.clientTop-(p.pageYOffset||o.scrollTop||d.scrollTop||0),left:o.clientLeft-(p.pageXOffset||o.scrollLeft||d.scrollLeft||0)}:t.getBoundingClientRect(),e={x:i.left-e.left,y:i.top-e.top};return!n&&t&&(e.x+=a(t,"x")(),e.y+=a(t,"y")()),e}function l(e,t,i,n,o){return isNaN(e)||"object"==typeof e?r(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+n-o:"max"===e?h(t,i)-o:Math.min(h(t,i),s(e,t)[i]-o):parseFloat(e)-o}function c(){n=i(),t()&&n&&document.body&&(p=window,d=document.body,o=document.documentElement,f=n.utils.toArray,n.config({autoKillThreshold:7}),m=n.config(),u=1)}var n,u,p,o,d,f,m,g={version:"3.5.1",name:"scrollTo",rawVars:1,register:function(e){n=e,c()},init:function(e,t,i,n,o){u||c();var s=this;s.isWin=e===p,s.target=e,s.tween=i,"object"!=typeof t?r((t={y:t}).y)&&"max"!==t.y&&"="!==t.y.charAt(1)&&(t.x=t.y):t.nodeType&&(t={y:t,x:t}),s.vars=t,s.autoKill=!!t.autoKill,s.getX=a(e,"x"),s.getY=a(e,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),null!=t.x?(s.add(s,"x",s.x,l(t.x,e,"x",s.x,t.offsetX||0),n,o,Math.round),s._props.push("scrollTo_x")):s.skipX=1,null!=t.y?(s.add(s,"y",s.y,l(t.y,e,"y",s.y,t.offsetY||0),n,o,Math.round),s._props.push("scrollTo_y")):s.skipY=1},render:function(e,t){for(var i,n,o,s=t._pt,r=t.target,a=t.tween,l=t.autoKill,c=t.xPrev,u=t.yPrev,d=t.isWin;s;)s.r(e,s.d),s=s._next;i=d||!t.skipX?t.getX():c,o=(n=d||!t.skipY?t.getY():u)-u,u=i-c,c=m.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),l&&(!t.skipX&&(c<u||u<-c)&&i<h(r,"x")&&(t.skipX=1),!t.skipY&&(c<o||o<-c)&&n<h(r,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(a.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(a,t.vars.onAutoKillParams||[]))),d?p.scrollTo(t.skipX?i:t.x,t.skipY?n:t.y):(t.skipY||(r.scrollTop=t.y),t.skipX||(r.scrollLeft=t.x)),t.xPrev=t.x,t.yPrev=t.y},kill:function(e){var t="scrollTo"===e;!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1)}};g.max=h,g.getOffset=s,g.buildGetter=a,i()&&n.registerPlugin(g),e.ScrollToPlugin=g,e.default=g,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default}),function(e){"object"==typeof module&&module.exports?module.exports=e():window.intlTelInput=e()}(function(m){"use strict";return function(){for(var s=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua & Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia & Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros","km","269"],["Congo - Brazzaville","cg","242"],["Congo - Kinshasa","cd","243"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan","jo","962"],["Kazakhstan","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé & Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["St Barthélemy","bl","590",1],["St Helena","sh","290"],["St Kitts & Nevis","kn","1",18,["869"]],["St Lucia","lc","1",19,["758"]],["St Martin","mf","590",2],["St Pierre & Miquelon","pm","508"],["St Vincent & Grenadines","vc","1",20,["784"]],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard & Jan Mayen","sj","47",1,["79"]],["Sweden","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad & Tobago","tt","1",22,["868"]],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks & Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["US Virgin Islands","vi","1",24,["340"]],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681"],["Western Sahara","eh","212",1,["5288","5289"]],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],e=0;e<s.length;e++){var t=s[e];s[e]={name:t[0],iso2:t[1],dialCode:t[2],priority:t[3]||0,areaCodes:t[4]||null,nodeById:{}}}function u(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?Object(arguments[e]):{},t=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&t.push.apply(t,Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),t.forEach(function(e){var t,i;t=n,e=o[i=e],(i=a(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e})}return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,o,s,r,a=[],l=!0,c=!1;try{if(s=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(i="Object"===i&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(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 n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){e=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(i===m)return("string"===t?String:Number)(e);t=i.call(e,t||"default");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:String(e)}var i={getInstance:function(e){e=e.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[e]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=i);function l(t){var e=window.intlTelInputGlobals.instances;Object.values(e).forEach(function(e){return e[t]()})}var c=0,d={allowDropdown:!0,autoInsertDialCode:!1,autoPlaceholder:"polite",countrySearch:!0,containerClass:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:[],showFlags:!0,showSelectedDialCode:!1,useFullscreenPopup:"undefined"!=typeof navigator&&"undefined"!=typeof window&&(/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500),utilsScript:""},h=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],p=function(){function i(e){var t=1<arguments.length&&arguments[1]!==m?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.id=c++,this.telInput=e,this.activeItem=null,this.highlightedItem=null,this.options=Object.assign({},d,t),this.hadInitialPlaceholder=Boolean(e.getAttribute("placeholder"))}var e,t,n;return e=i,(t=[{key:"_init",value:function(){var i=this;this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0),this.options.nationalMode&&(this.options.autoInsertDialCode=!1),this.options.showSelectedDialCode&&(this.options.autoInsertDialCode=!1);var e,t=this.options.allowDropdown&&!this.options.showSelectedDialCode;!this.options.showFlags&&t&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isRTL=!!this.telInput.closest("[dir=rtl]"),"undefined"!=typeof Promise?(e=new Promise(function(e,t){i.resolveAutoCountryPromise=e,i.rejectAutoCountryPromise=t}),t=new Promise(function(e,t){i.resolveUtilsScriptPromise=e,i.rejectUtilsScriptPromise=t}),this.promise=Promise.all([e,t])):(this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){}),this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this._translateCountryNames(),(this.options.onlyCountries.length||this.options.i18n)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(e,t,i){t.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=t.length),this.countryCodes.hasOwnProperty(t)||(this.countryCodes[t]=[]);for(var n=0;n<this.countryCodes[t].length;n++)if(this.countryCodes[t][n]===e)return;i=i!==m?i:this.countryCodes[t].length;this.countryCodes[t][i]=e}},{key:"_processAllCountries",value:function(){var t,i;this.options.onlyCountries.length?(t=this.options.onlyCountries.map(function(e){return e.toLowerCase()}),this.countries=s.filter(function(e){return-1<t.indexOf(e.iso2)})):this.options.excludeCountries.length?(i=this.options.excludeCountries.map(function(e){return e.toLowerCase()}),this.countries=s.filter(function(e){return-1===i.indexOf(e.iso2)})):this.countries=s}},{key:"_translateCountryNames",value:function(){for(var e=0;e<this.countries.length;e++){var t=this.countries[e].iso2.toLowerCase();this.options.i18n.hasOwnProperty(t)&&(this.countries[e].name=this.options.i18n[t])}}},{key:"_countryNameSort",value:function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];this.dialCodes[t.dialCode]||(this.dialCodes[t.dialCode]=!0),this._addCountryCode(t.iso2,t.dialCode,t.priority)}for(var i=0;i<this.countries.length;i++){var n=this.countries[i];if(n.areaCodes)for(var o=this.countryCodes[n.dialCode][0],s=0;s<n.areaCodes.length;s++){for(var r=n.areaCodes[s],a=1;a<r.length;a++){var l=n.dialCode+r.substr(0,a);this._addCountryCode(o,l),this._addCountryCode(n.iso2,l)}this._addCountryCode(n.iso2,n.dialCode+r)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var t=this.options.preferredCountries[e].toLowerCase(),t=this._getCountryData(t,!1,!0);t&&this.preferredCountries.push(t)}}},{key:"_createEl",value:function(e,t,i){var n=document.createElement(e);return t&&Object.entries(t).forEach(function(e){var t=o(e,2),e=t[0],t=t[1];return n.setAttribute(e,t)}),i&&i.appendChild(n),n}},{key:"_generateMarkup",value:function(){this.telInput.classList.add("iti__tel-input"),this.telInput.hasAttribute("autocomplete")||this.telInput.form&&this.telInput.form.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off");var e=this.options,t=e.allowDropdown,i=e.showSelectedDialCode,n=e.showFlags,o=e.containerClass,s=e.hiddenInput,r=e.dropdownContainer,a=e.fixDropdownWidth,l=e.useFullscreenPopup,c=e.countrySearch,e="iti";t&&(e+=" iti--allow-dropdown"),i&&(e+=" iti--show-selected-dial-code"),n&&(e+=" iti--show-flags"),o&&(e+=" ".concat(o)),l||(e+=" iti--inline-dropdown");o=this._createEl("div",{class:e});this.telInput.parentNode.insertBefore(o,this.telInput);e=t||n||i;e&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},o)),o.appendChild(this.telInput),e&&(this.selectedFlag=this._createEl("div",u({class:"iti__selected-flag"},t&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":this.options.i18n.selectedCountryAriaLabel||"Selected country"}),this.flagsContainer)),n&&(this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag)),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),i&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),t&&(this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.dropdownContent=this._createEl("div",{class:"iti__dropdown-content iti__hide ".concat(a?"":"iti--flexible-dropdown-width")}),c&&(this.searchInput=this._createEl("input",{type:"text",class:"iti__search-input",placeholder:this.options.i18n.searchPlaceholder||"Search"},this.dropdownContent)),this.countryList=this._createEl("ul",{class:"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":this.options.i18n.countryListAriaLabel||"List of countries"},this.dropdownContent),this.preferredCountries.length&&!c&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),r?(r="iti iti--container",r+=l?" iti--fullscreen-popup":" iti--inline-dropdown",c&&(r+=" iti--country-search"),this.dropdown=this._createEl("div",{class:r}),this.dropdown.appendChild(this.dropdownContent)):this.flagsContainer.appendChild(this.dropdownContent)),s&&(s=s(this.telInput.getAttribute("name")),this.hiddenInput=this._createEl("input",{type:"hidden",name:s}),o.appendChild(this.hiddenInput))}},{key:"_appendListItems",value:function(e,t,i){for(var n=0;n<e.length;n++){var o=e[n],s=i?"-preferred":"",r=this._createEl("li",{id:"iti-".concat(this.id,"__item-").concat(o.iso2).concat(s),class:"iti__country ".concat(t),tabindex:"-1",role:"option","data-dial-code":o.dialCode,"data-country-code":o.iso2,"aria-selected":"false"},this.countryList);o.nodeById[this.id]=r;s="";this.options.showFlags&&(s+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(o.iso2,"'></div></div>")),s+="<span class='iti__country-name'>".concat(o.name,"</span>"),s+="<span class='iti__dial-code'>+".concat(o.dialCode,"</span>"),r.insertAdjacentHTML("beforeend",s)}}},{key:"_setInitialState",value:function(){var e=this.telInput.getAttribute("value"),t=this.telInput.value,i=e&&"+"===e.charAt(0)&&(!t||"+"!==t.charAt(0))?e:t,n=this._getDialCode(i),o=this._isRegionlessNanp(i),e=this.options,t=e.initialCountry,e=e.autoInsertDialCode;n&&!o?this._updateFlagFromNumber(i):"auto"!==t&&(t&&this._getCountryData(t,!1,!0)?this._setFlag(t.toLowerCase()):n&&o?this._setFlag("us"):(this.defaultCountry=(this.preferredCountries.length?this.preferredCountries:this.countries)[0].iso2,i||this._setFlag(this.defaultCountry)),!i&&e&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),i&&this._updateValFromNumber(i)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var e=this;this._handleHiddenInputSubmit=function(){e.hiddenInput.value=e.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_initDropdownListeners",value:function(){var t=this;this._handleLabelClick=function(e){t.dropdownContent.classList.contains("iti__hide")?t.telInput.focus():e.preventDefault()};var e=this.telInput.closest("label");e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!t.dropdownContent.classList.contains("iti__hide")||t.telInput.disabled||t.telInput.readOnly||t._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(e){t.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),t._showDropdown()),"Tab"===e.key&&t._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var e=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(e.options.utilsScript)}):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup(function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout(function(){return l("handleAutoCountry")})},function(){return l("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var o=this,s=!1;this._handleKeyEvent=function(e){var t,i,n;o._updateFlagFromNumber(o.telInput.value)&&o._triggerCountryChange(),e&&e.data&&/[^+0-9]/.test(e.data)?s=!0:/[^+0-9]/.test(o.telInput.value)||(s=!1),o.options.formatAsYouType&&!s&&(t=o.telInput.selectionStart,i=o.telInput.value.substring(0,t).replace(/[^+0-9]/g,"").length,n=e&&"deleteContentForward"===e.inputType,e=o._formatNumberAsYouType(),n=o._translateCursorPosition(i,e,t,n),o.telInput.value=e,o.telInput.setSelectionRange(n,n))},this.telInput.addEventListener("input",this._handleKeyEvent),this._handleClipboardEvent=function(){setTimeout(o._handleKeyEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_translateCursorPosition",value:function(e,t,i,n){if(0===i&&!n)return 0;for(var o=0,s=0;s<t.length;s++){if(/[+0-9]/.test(t[s])&&o++,o===e&&!n)return s+1;if(n&&o===e+1)return s}return t.length}},{key:"_cap",value:function(e){var t=this.telInput.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_initBlurListeners",value:function(){var e=this;this._handleSubmitOrBlurEvent=function(){e._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){var e;"+"===this.telInput.value.charAt(0)&&((e=this._getNumeric(this.telInput.value))&&this.selectedCountryData.dialCode!==e||(this.telInput.value=""))}},{key:"_getNumeric",value:function(e){return e.replace(/\D/g,"")}},{key:"_trigger",value:function(e){e=new Event(e,{bubbles:!0,cancelable:!0});this.telInput.dispatchEvent(e)}},{key:"_showDropdown",value:function(){var e;this.options.fixDropdownWidth&&(this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.options.countrySearch?((e=this.countryList.firstElementChild)&&this._highlightListItem(e,!1),this.searchInput.focus()):this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(e,t,i){i&&!e.classList.contains(t)?e.classList.add(t):!i&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var e,t,i,n,o,s=this;this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),this.options.useFullscreenPopup||(e=this.telInput.getBoundingClientRect(),t=document.documentElement.scrollTop,i=e.top+t,o=this.dropdownContent.offsetHeight,n=i+this.telInput.offsetHeight+o<t+window.innerHeight,o=!this.options.countrySearch&&!n&&t<i-o,this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",o),this.options.dropdownContainer&&(o=o?0:this.telInput.offsetHeight,this.dropdown.style.top="".concat(i+o,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return s._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)))}},{key:"_bindDropdownListeners",value:function(){var t=this;this._handleMouseoverCountryList=function(e){e=e.target.closest(".iti__country");e&&t._highlightListItem(e,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(e){e=e.target.closest(".iti__country");e&&t._selectListItem(e)},this.countryList.addEventListener("click",this._handleClickCountryList);var e=!0;this._handleClickOffToClose=function(){e||t._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var i,n="",o=null;this._handleKeydownOnDropdown=function(e){["ArrowUp","ArrowDown","Enter","Escape"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),"ArrowUp"===e.key||"ArrowDown"===e.key?t._handleUpDownKey(e.key):"Enter"===e.key?t._handleEnterKey():"Escape"===e.key&&t._closeDropdown()),!t.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e.key)&&(e.stopPropagation(),o&&clearTimeout(o),n+=e.key.toLowerCase(),t._searchForCountry(n),o=setTimeout(function(){n=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch&&(i=null,this._handleSearchChange=function(){i&&clearTimeout(i),i=setTimeout(function(){var e;(e=t.searchInput.value.trim())?t._filterCountries(e):t._filterCountries("",!0),i=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(e){return e.stopPropagation()}))}},{key:"_normaliseString",value:function(){return(0<arguments.length&&arguments[0]!==m?arguments[0]:"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"_filterCountries",value:function(e){var t=1<arguments.length&&arguments[1]!==m&&arguments[1],i=!0;this.countryList.innerHTML="";for(var n=this._normaliseString(e),o=0;o<this.countries.length;o++){var s=this.countries[o],r=this._normaliseString(s.name),a="+".concat(s.dialCode);(t||r.includes(n)||a.includes(n)||s.iso2.includes(n))&&(this.countryList.appendChild(s.nodeById[this.id]),i&&(this._highlightListItem(s.nodeById[this.id],!1),i=!1))}}},{key:"_handleUpDownKey",value:function(e){var t="ArrowUp"===e?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;t?t.classList.contains("iti__divider")&&(t="ArrowUp"===e?t.previousElementSibling:t.nextElementSibling):1<this.countryList.childElementCount&&(t="ArrowUp"===e?this.countryList.lastElementChild:this.countryList.firstElementChild),t&&(e=!this.options.countrySearch,this._highlightListItem(t,e),this.options.countrySearch&&this._scrollTo(t,!1))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(e){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,e)){var i=this.countries[t].nodeById[this.id];this._highlightListItem(i,!1),this._scrollTo(i,!0);break}}},{key:"_startsWith",value:function(e,t){return e.substr(0,t.length).toLowerCase()===t}},{key:"_updateValFromNumber",value:function(e){var t,i,n=e;this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData&&(t=this.options.nationalMode||"+"!==n.charAt(0)&&!this.options.showSelectedDialCode,e=(i=intlTelInputUtils.numberFormat).NATIONAL,i=i.INTERNATIONAL,n=intlTelInputUtils.formatNumber(n,this.selectedCountryData.iso2,t?e:i)),n=this._beforeSetNumber(n),this.telInput.value=n}},{key:"_updateFlagFromNumber",value:function(e){var t=e.indexOf("+"),i=t?e.substring(t):e,n=this.selectedCountryData.dialCode;i&&"1"===n&&"+"!==i.charAt(0)&&("1"!==i.charAt(0)&&(i="1".concat(i)),i="+".concat(i)),this.options.showSelectedDialCode&&n&&"+"!==i.charAt(0)&&(i="+".concat(n).concat(i));var t=this._getDialCode(i,!0),e=this._getNumeric(i),o=null;if(t){var s=this.countryCodes[this._getNumeric(t)],t=-1!==s.indexOf(this.selectedCountryData.iso2)&&e.length<=t.length-1;if(!("1"===n&&this._isRegionlessNanp(e))&&!t)for(var r=0;r<s.length;r++)if(s[r]){o=s[r];break}}else"+"===i.charAt(0)&&e.length?o="":i&&"+"!==i||(o=this.defaultCountry);return null!==o&&this._setFlag(o)}},{key:"_isRegionlessNanp",value:function(e){e=this._getNumeric(e);if("1"!==e.charAt(0))return!1;e=e.substr(1,3);return-1!==h.indexOf(e)}},{key:"_highlightListItem",value:function(e,t){var i=this.highlightedItem;i&&i.classList.remove("iti__highlight"),this.highlightedItem=e,this.highlightedItem.classList.add("iti__highlight"),this.selectedFlag.setAttribute("aria-activedescendant",e.getAttribute("id")),t&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(e,t,i){for(var n=t?s:this.countries,o=0;o<n.length;o++)if(n[o].iso2===e)return n[o];if(i)return null;throw new Error("No country data for '".concat(e,"'"))}},{key:"_setFlag",value:function(e){var t=this.options,i=t.allowDropdown,n=t.showSelectedDialCode,o=t.showFlags,s=t.countrySearch,t=this.selectedCountryData.iso2?this.selectedCountryData:{};return this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),o&&this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(e)),this._setSelectedCountryFlagTitleAttribute(e,n),n&&(n=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"",this.selectedDialCode.innerHTML=n,n=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth(),this.isRTL?this.telInput.style.paddingRight="".concat(n+6,"px"):this.telInput.style.paddingLeft="".concat(n+6,"px")),this._updatePlaceholder(),i&&!s&&((s=this.activeItem)&&(s.classList.remove("iti__active"),s.setAttribute("aria-selected","false")),e&&((s=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e))).setAttribute("aria-selected","true"),s.classList.add("iti__active"),this.activeItem=s)),t.iso2!==e}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(e,t){this.selectedFlag&&(e=e&&!t?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):e?this.selectedCountryData.name:"Unknown",this.selectedFlag.setAttribute("title",e))}},{key:"_getHiddenSelectedFlagWidth",value:function(){var e=this.telInput.parentNode.cloneNode();e.style.visibility="hidden",document.body.appendChild(e);var t=this.flagsContainer.cloneNode();e.appendChild(t);var i=this.selectedFlag.cloneNode(!0);t.appendChild(i);i=i.offsetWidth;return e.parentNode.removeChild(e),i}},{key:"_updatePlaceholder",value:function(){var e="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&"polite"===this.options.autoPlaceholder;window.intlTelInputUtils&&e&&(e=intlTelInputUtils.numberType[this.options.placeholderNumberType],e=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,e):"",e=this._beforeSetNumber(e),"function"==typeof this.options.customPlaceholder&&(e=this.options.customPlaceholder(e,this.selectedCountryData)),this.telInput.setAttribute("placeholder",e))}},{key:"_selectListItem",value:function(e){var t=this._setFlag(e.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(e.getAttribute("data-dial-code")),this.telInput.focus(),t&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch&&this.searchInput.removeEventListener("input",this._handleSearchChange),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(e,t){var i=this.countryList,n=document.documentElement.scrollTop,o=i.offsetHeight,s=i.getBoundingClientRect().top+n,r=s+o,a=e.offsetHeight,l=e.getBoundingClientRect().top+n,c=l+a,e=l-s+i.scrollTop,n=o/2-a/2;l<s?(t&&(e-=n),i.scrollTop=e):r<c&&(t&&(e+=n),i.scrollTop=e-(o-a))}},{key:"_updateDialCode",value:function(e){var t,i=this.telInput.value,e="+".concat(e);"+"===i.charAt(0)?(t=(t=this._getDialCode(i))?i.replace(t,e):e,this.telInput.value=t):this.options.autoInsertDialCode&&(this.telInput.value=t=i?e+i:e)}},{key:"_getDialCode",value:function(e,t){var i="";if("+"===e.charAt(0))for(var n="",o=0;o<e.length;o++){var s=e.charAt(o);if(!isNaN(parseInt(s,10))){if(n+=s,t)this.countryCodes[n]&&(i=e.substr(0,o+1));else if(this.dialCodes[n]){i=e.substr(0,o+1);break}if(n.length===this.countryCodeMaxLen)break}}return i}},{key:"_getFullNumber",value:function(){var e=this.telInput.value.trim(),t=this.selectedCountryData.dialCode,i=this._getNumeric(e),t=this.options.showSelectedDialCode&&!this.options.nationalMode&&"+"!==e.charAt(0)&&t&&i?"+".concat(t):"";return t+e}},{key:"_beforeSetNumber",value:function(e){var t,e=e;return this.options.showSelectedDialCode&&(t=this._getDialCode(e))&&(t=" "===e[(t="+".concat(this.selectedCountryData.dialCode)).length]||"-"===e[t.length]?t.length+1:t.length,e=e.substr(t)),this._cap(e)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var e=this._getFullNumber(),t=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(e,this.selectedCountryData.iso2):e,e=this.selectedCountryData.dialCode;return this.options.showSelectedDialCode&&!this.options.nationalMode&&"+"!==this.telInput.value.charAt(0)&&t.includes("+".concat(e))?(t.split("+".concat(e))[1]||"").trim():t}},{key:"handleAutoCountry",value:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var e,t=this.telInput.form;this.options.allowDropdown&&(this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown),(e=this.telInput.closest("label"))&&e.removeEventListener("click",this._handleLabelClick)),this.hiddenInput&&t&&t.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoInsertDialCode&&(t&&t.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("input",this._handleKeyEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");t=this.telInput.parentNode;t.parentNode.insertBefore(this.telInput,t),t.parentNode.removeChild(t),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(e){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),t,e)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),e)}return-99}},{key:"isValidNumber",value:function(){var e=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(e,this.selectedCountryData.iso2):null}},{key:"isValidNumberPrecise",value:function(){var e=this._getFullNumber();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(e){e=e.toLowerCase();this.selectedCountryData.iso2!==e&&(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(e){var t=this._updateFlagFromNumber(e);this._updateValFromNumber(e),t&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(e){this.options.placeholderNumberType=e,this._updatePlaceholder()}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();i.getCountryData=function(){return s};function f(e,t,i){var n=document.createElement("script");n.onload=function(){l("handleUtils"),t&&t()},n.onerror=function(){l("rejectUtilsScriptPromise"),i&&i()},n.className="iti-load-utils",n.async=!0,n.src=e,document.body.appendChild(n)}return i.loadUtils=function(i){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise(function(e,t){return f(i,e,t)});f(i)}return null},i.defaults=d,i.version="19.2.16",function(e,t){t=new p(e,t);return t._init(),e.setAttribute("data-intl-tel-input-id",t.id),window.intlTelInputGlobals.instances[t.id]=t}}()}),function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),i(t),t}:i(jQuery)}(function(t){var e,i,h,s,r,p,f,m,g,v,y,n,o,_,a,a=((u=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:u)&&u.requirejs||(u?i=u:u={},m={},g={},v={},y={},n=Object.prototype.hasOwnProperty,o=[].slice,_=/\.js$/,p=function(e,t){var i,n,o=c(e),s=o[0],t=t[1];return e=o[1],s&&(i=x(s=l(s,t))),s?e=i&&i.normalize?i.normalize(e,(n=t,function(e){return l(e,n)})):l(e,t):(s=(o=c(e=l(e,t)))[0],e=o[1],s&&(i=x(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:i}},f={require:function(e){return w(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:(t=e,function(){return v&&v.config&&v.config[t]||{}})};var t}},s=function(e,t,i,n){var o,s,r,a,l,c=[],u=typeof i,d=T(n=n||e);if("undefined"==u||"function"==u){for(t=!t.length&&i.length?["require","exports","module"]:t,a=0;a<t.length;a+=1)if("require"===(s=(r=p(t[a],d)).f))c[a]=f.require(e);else if("exports"===s)c[a]=f.exports(e),l=!0;else if("module"===s)o=c[a]=f.module(e);else if(b(m,s)||b(g,s)||b(y,s))c[a]=x(s);else{if(!r.p)throw new Error(e+" missing "+s);r.p.load(r.n,w(n,!0),function(t){return function(e){m[t]=e}}(s),{}),c[a]=m[s]}u=i?i.apply(m[e],c):void 0,e&&(o&&o.exports!==h&&o.exports!==m[e]?m[e]=o.exports:u===h&&l||(m[e]=u))}else e&&(m[e]=i)},e=i=r=function(e,t,i,n,o){if("string"==typeof e)return f[e]?f[e](t):x(p(e,T(t)).f);if(!e.splice){if((v=e).deps&&r(v.deps,v.callback),!t)return;t.splice?(e=t,t=i,i=null):e=h}return t=t||function(){},"function"==typeof i&&(i=n,n=o),n?s(h,e,t,i):setTimeout(function(){s(h,e,t,i)},4),r},r.config=function(e){return r(e)},e._defined=m,(a=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),b(m,e)||b(g,e)||(g[e]=[e,t,i])}).amd={jQuery:!0},u.requirejs=e,u.require=i,u.define=a),u.define("almond",function(){}),u.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),u.define("select2/utils",["jquery"],function(s){var n={};function c(e){var t,i=e.prototype,n=[];for(t in i)"function"==typeof i[t]&&"constructor"!==t&&n.push(t);return n}n.Extend=function(e,t){var i,n={}.hasOwnProperty;function o(){this.constructor=e}for(i in t)n.call(t,i)&&(e[i]=t[i]);return o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype,e},n.Decorate=function(n,o){var e=c(o),t=c(n);function s(){var e=Array.prototype.unshift,t=o.prototype.constructor.length,i=n.prototype.constructor;0<t&&(e.call(arguments,n.prototype.constructor),i=o.prototype.constructor),i.apply(this,arguments)}o.displayName=n.displayName,s.prototype=new function(){this.constructor=s};for(var i=0;i<t.length;i++){var r=t[i];s.prototype[r]=n.prototype[r]}for(var a=0;a<e.length;a++){var l=e[a];s.prototype[l]=function(e){var t=function(){};e in s.prototype&&(t=s.prototype[e]);var i=o.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),i.apply(this,arguments)}}(l)}return s};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,i=t.call(arguments,1);this.listeners=this.listeners||{},0===(i=null==i?[]:i).length&&i.push({}),(i[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var i=0,n=e.length;i<n;i++)e[i].apply(this,t)},n.Observable=e,n.generateChars=function(e){for(var t="",i=0;i<e;i++)t+=Math.floor(36*Math.random()).toString(36);return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var i=t.split("-"),n=e;if(1!==i.length){for(var o=0;o<i.length;o++){var s=i[o];(s=s.substring(0,1).toLowerCase()+s.substring(1))in n||(n[s]={}),o==i.length-1&&(n[s]=e[t]),n=n[s]}delete e[t]}}return e},n.hasScroll=function(e,t){var i=s(t),n=t.style.overflowX,o=t.style.overflowY;return(n!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===n||"scroll"===o||(i.innerHeight()<t.scrollHeight||i.innerWidth()<t.scrollWidth))},n.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.__cache={};var i=0;return n.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++i).toString()+"-"+n.generateChars(4),e.setAttribute("data-select2-id",t)),t},n.StoreData=function(e,t,i){e=n.GetUniqueElementId(e);n.__cache[e]||(n.__cache[e]={}),n.__cache[e][t]=i},n.GetData=function(e,t){var i=n.GetUniqueElementId(e);return t?n.__cache[i]&&null!=n.__cache[i][t]?n.__cache[i][t]:s(e).data(t):n.__cache[i]},n.RemoveData=function(e){var t=n.GetUniqueElementId(e);null!=n.__cache[t]&&delete n.__cache[t],e.removeAttribute("data-select2-id")},n.copyNonInternalCssClasses=function(e,t){var i=(i=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),t=i.concat(t);e.setAttribute("class",t.join(" "))},n}),u.define("select2/results",["jquery","./utils"],function(d,h){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return h.Extend(n,h.Observable),n.prototype.render=function(){var e=d('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=d('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),n=this.options.get("translations").get(e.message);i.append(t(n(e.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var i=0;i<e.results.length;i++){var n=e.results[i],n=this.option(n);t.push(n)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(e){var n=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=d(this),t=h.GetData(this,"data"),i=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<n.indexOf(i)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},n.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(e){var t=document.createElement("li");t.classList.add("select2-results__option"),t.classList.add("select2-results__option--selectable");var i,n={role:"option"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(i in(null!=e.element&&o.call(e.element,":disabled")||null==e.element&&e.disabled)&&(n["aria-disabled"]="true",t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--disabled")),null==e.id&&t.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--group")),n){var s=n[i];t.setAttribute(i,s)}if(e.children){var r=d(t),a=document.createElement("strong");a.className="select2-results__group",this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],u=this.option(u);l.push(u)}o=d("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});o.append(l),r.append(a),r.append(o)}else this.template(e,t);return h.StoreData(t,"data",e),t},n.prototype.bind=function(t,e){var o=this,i=t.id+"-results";this.$results.attr("id",i),t.on("results:all",function(e){o.clear(),o.append(e.data),t.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),t.on("results:append",function(e){o.append(e.data),t.isOpen()&&o.setClasses()}),t.on("query",function(e){o.hideMessages(),o.showLoading(e)}),t.on("select",function(){t.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())}),t.on("open",function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()}),t.on("close",function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=o.getHighlightedResults();0!==t.length&&(e=h.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?o.trigger("close",{}):o.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=o.getHighlightedResults(),i=o.$results.find(".select2-results__option--selectable"),n=i.index(t);n<=0||(e=n-1,0===t.length&&(e=0),(n=i.eq(e)).trigger("mouseenter"),t=o.$results.offset().top,i=n.offset().top,n=o.$results.scrollTop()+(i-t),0===e?o.$results.scrollTop(0):i-t<0&&o.$results.scrollTop(n))}),t.on("results:next",function(){var e,t=o.getHighlightedResults(),i=o.$results.find(".select2-results__option--selectable"),n=i.index(t)+1;n>=i.length||((e=i.eq(n)).trigger("mouseenter"),t=o.$results.offset().top+o.$results.outerHeight(!1),i=e.offset().top+e.outerHeight(!1),e=o.$results.scrollTop()+i-t,0===n?o.$results.scrollTop(0):t<i&&o.$results.scrollTop(e))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){o.displayMessage(e)}),d.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=o.$results.scrollTop(),i=o.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&i<=o.$results.height();t?(o.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=d(this),i=h.GetData(this,"data");t.hasClass("select2-results__option--selected")?o.options.get("multiple")?o.trigger("unselect",{originalEvent:e,data:i}):o.trigger("close",{}):o.trigger("select",{originalEvent:e,data:i})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=h.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),o.trigger("results:focus",{data:t,element:d(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e,t,i,n,o=this.getHighlightedResults();0!==o.length&&(e=this.$results.find(".select2-results__option--selectable").index(o),n=this.$results.offset().top,t=o.offset().top,i=this.$results.scrollTop()+(t-n),n=t-n,i-=2*o.outerHeight(!1),e<=2?this.$results.scrollTop(0):(n>this.$results.outerHeight()||n<0)&&this.$results.scrollTop(i))},n.prototype.template=function(e,t){var i=this.options.get("templateResult"),n=this.options.get("escapeMarkup"),e=i(e,t);null==e?t.style.display="none":"string"==typeof e?t.innerHTML=n(e):d(t).append(e)},n}),u.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),u.define("select2/selection/base",["jquery","../utils","../keys"],function(i,n,o){function s(e,t){this.$element=e,this.options=t,s.__super__.constructor.call(this)}return n.Extend(s,n.Observable),s.prototype.render=function(){var e=i('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=n.GetData(this.$element[0],"old-tabindex")?this._tabindex=n.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},s.prototype.bind=function(e,t){var i=this,n=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===o.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",n),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")}),e.on("disable",function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")})},s.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||i.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},s.prototype._attachCloseHandler=function(e){i(document.body).on("mousedown.select2."+e.id,function(e){var t=i(e.target).closest(".select2");i(".select2.select2-container--open").each(function(){this!=t[0]&&n.GetData(this,"element").select2("close")})})},s.prototype._detachCloseHandler=function(e){i(document.body).off("mousedown.select2."+e.id)},s.prototype.position=function(e,t){t.find(".selection").append(e)},s.prototype.destroy=function(){this._detachCloseHandler(this.container)},s.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},s.prototype.isEnabled=function(){return!this.isDisabled()},s.prototype.isDisabled=function(){return this.options.get("disabled")},s}),u.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,i,n){function o(){o.__super__.constructor.apply(this,arguments)}return i.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(t,e){var i=this;o.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",function(e){1===e.which&&i.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||i.$selection.trigger("focus")})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){var t,i;0!==e.length?(i=e[0],t=this.$selection.find(".select2-selection__rendered"),e=this.display(i,t),t.empty().append(e),(i=i.title||i.text)?t.attr("title",i):t.removeAttr("title")):this.clear()},o}),u.define("select2/selection/multiple",["jquery","./base","../utils"],function(o,e,c){function s(e,t){s.__super__.constructor.apply(this,arguments)}return c.Extend(s,e),s.prototype.render=function(){var e=s.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},s.prototype.bind=function(e,t){var i=this;s.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;i.isDisabled()||(t=o(this).parent(),t=c.GetData(t[0],"data"),i.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){i.isDisabled()||e.stopPropagation()})},s.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},s.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},s.prototype.selectionContainer=function(){return o('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},s.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",n=0;n<e.length;n++){var o=e[n],s=this.selectionContainer(),r=this.display(o,s),a=i+c.generateChars(4)+"-";o.id?a+=o.id:a+=c.generateChars(4),s.find(".select2-selection__choice__display").append(r).attr("id",a);var l=o.title||o.text;l&&s.attr("title",l);r=this.options.get("translations").get("removeItem"),l=s.find(".select2-selection__choice__remove");l.attr("title",r()),l.attr("aria-label",r()),l.attr("aria-describedby",a),c.StoreData(s[0],"data",o),t.push(s)}this.$selection.find(".select2-selection__rendered").append(t)}},s}),u.define("select2/selection/placeholder",[],function(){function e(e,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i)}return e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.createPlaceholder=function(e,t){var i=this.selectionContainer();return i.html(this.display(t)),i[0].classList.add("select2-selection__placeholder"),i[0].classList.remove("select2-selection__choice"),i},e.prototype.update=function(e,t){var i=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||i)return e.call(this,t);this.clear();t=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(t)},e}),u.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(o,n,a){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){n._handleClear(e)}),t.on("keypress",function(e){n._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var n=a.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var s={data:n};if(this.trigger("clear",s),s.prevented)this.$element.val(o);else{for(var r=0;r<n.length;r++)if(s={data:n[r]},this.trigger("unselect",s),s.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,i){i.isOpen()||t.which!=n.DELETE&&t.which!=n.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){var i,n;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(i=this.$selection.find(".select2-selection__rendered").attr("id"),n=this.options.get("translations").get("removeAllItems"),(e=o('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>')).attr("title",n()),e.attr("aria-label",n()),e.attr("aria-describedby",i),a.StoreData(e[0],"data",t),this.$selection.prepend(e))},e}),u.define("select2/selection/search",["jquery","../utils","../keys"],function(i,a,l){function e(e,t,i){e.call(this,t,i)}return e.prototype.render=function(e){var t=i('<span class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');this.$searchContainer=t,this.$search=t.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete"));e=e.call(this);return this._transferTabIndex(),e.append(this.$searchContainer),e},e.prototype.bind=function(e,t,i){var n=this,o=t.id+"-results",s=t.id+"-container";e.call(this,t,i),n.$search.attr("aria-describedby",s),t.on("open",function(){n.$search.attr("aria-controls",o),n.$search.trigger("focus")}),t.on("close",function(){n.$search.val(""),n.resizeSearch(),n.$search.removeAttr("aria-controls"),n.$search.removeAttr("aria-activedescendant"),n.$search.trigger("focus")}),t.on("enable",function(){n.$search.prop("disabled",!1),n._transferTabIndex()}),t.on("disable",function(){n.$search.prop("disabled",!0)}),t.on("focus",function(e){n.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?n.$search.attr("aria-activedescendant",e.data._resultId):n.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){n.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){n._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),n.trigger("keypress",e),n._keyUpPrevented=e.isDefaultPrevented(),e.which!==l.BACKSPACE||""!==n.$search.val()||0<(t=n.$selection.find(".select2-selection__choice").last()).length&&(t=a.GetData(t[0],"data"),n.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){n.$search.val()&&e.stopPropagation()});var t=document.documentMode,r=t&&t<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){r?n.$selection.off("input.search input.searchcheck"):n.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;r&&"input"===e.type?n.$selection.off("input.search input.searchcheck"):(t=e.which)!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&n.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),i&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},e}),u.define("select2/selection/selectionCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("selectionCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(e),t},e}),u.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,i){var n=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,i),t.on("*",function(e,t){var i;-1!==o.indexOf(e)&&(i=r.Event("select2:"+e,{params:t=t||{}}),n.$element.trigger(i),-1!==s.indexOf(e)&&(t.prevented=i.isDefaultPrevented()))})},e}),u.define("select2/translation",["jquery","require"],function(t,i){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(e){var t;return e in n._cache||(t=i(e),n._cache[e]=t),new n(n._cache[e])},n}),u.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),u.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=i.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+i.generateChars(4),e},n}),u.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return a.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(l(e))}))},i.prototype.select=function(o){var e,s=this;if(o.selected=!0,null!=o.element&&"option"===o.element.tagName.toLowerCase())return o.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current(function(e){var t=[];(o=[o]).push.apply(o,e);for(var i=0;i<o.length;i++){var n=o[i].id;-1===t.indexOf(n)&&t.push(n)}s.$element.val(t),s.$element.trigger("input").trigger("change")}):(e=o.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},i.prototype.unselect=function(o){var s=this;if(this.$element.prop("multiple")){if(o.selected=!1,null!=o.element&&"option"===o.element.tagName.toLowerCase())return o.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i].id;n!==o.id&&-1===t.indexOf(n)&&t.push(n)}s.$element.val(t),s.$element.trigger("input").trigger("change")})}},i.prototype.bind=function(e,t){var i=this;(this.container=e).on("select",function(e){i.select(e.data)}),e.on("unselect",function(e){i.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},i.prototype.query=function(t,e){var i=[],n=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=l(this),e=n.item(e),null!==(e=n.matches(t,e))&&i.push(e))}),e({results:i})},i.prototype.addOptions=function(e){this.$element.append(e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);e=this._normalizeItem(e);return e.element=t,a.StoreData(t,"data",e),l(t)},i.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;var i=e[0];if("option"===i.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===i.tagName.toLowerCase()){for(var t={text:e.prop("label"),children:[],title:e.prop("title")},n=e.children("option"),o=[],s=0;s<n.length;s++){var r=l(n[s]),r=this.item(r);o.push(r)}t.children=o}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},i.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),u.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function n(e,t){this._dataToConvert=t.get("data")||[],n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype.bind=function(e,t){n.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(i){var e;0===(e=this.$element.find("option").filter(function(e,t){return t.value==i.id.toString()})).length&&(e=this.option(i),this.addOptions(e)),n.__super__.select.call(this,i)},n.prototype.convertToOptions=function(e){var t=this,i=this.$element.find("option"),n=i.map(function(){return t.item(c(this)).id}).get(),o=[];for(var s=0;s<e.length;s++){var r,a,l=this._normalizeItem(e[s]);0<=n.indexOf(l.id)?(r=i.filter(function(e){return function(){return c(this).val()==e.id}}(l)),a=this.item(r),a=c.extend(!0,{},l,a),a=this.option(a),r.replaceWith(a)):(a=this.option(l),l.children&&(l=this.convertToOptions(l.children),a.append(l)),o.push(a))}return o},n}),u.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,s){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return s.extend({},e,{q:e.term})},transport:function(e,t,i){e=s.ajax(e);return e.then(t),e.fail(i),e}};return s.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(t,i){var n=this;null!=this._request&&(s.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=s.extend({type:"GET"},this.ajaxOptions);function e(){var e=o.transport(o,function(e){e=n.processResults(e,t);n.options.get("debug")&&window.console&&console.error&&(e&&e.results&&Array.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(e)},function(){"status"in e&&(0===e.status||"0"===e.status)||n.trigger("results:message",{message:"errorLoading"})});n._request=e}"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},i}),u.define("select2/data/tags",["jquery"],function(t){function e(e,t,i){var n=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);o=i.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,i),Array.isArray(n))for(var s=0;s<n.length;s++){var r=n[s],r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,i){for(var n=t.results,o=0;o<n.length;o++){var s=n[o],r=null!=s.children&&!e({results:s.children},!0);if((s.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!i&&(t.data=n,void u(t))}if(i)return!0;var a,l=d.createTag(c);null!=l&&((a=d.option(l)).attr("data-select2-tag",!0),d.addOptions([a]),d.insertTag(n,l)),t.results=n,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){if(null==t.term)return null;t=t.term.trim();return""===t?null:{id:t,text:t}},e.prototype.insertTag=function(e,t,i){t.unshift(i)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),u.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),e.call(this,t,i)}return e.prototype.bind=function(e,t,i){e.call(this,t,i),this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,t,i){var n=this;t.term=t.term||"";var o=this.tokenizer(t,this.options,function(e){var t=n._normalizeItem(e);n.$element.find("option").filter(function(){return c(this).val()===t.id}).length||((e=n.option(t)).attr("data-select2-tag",!0),n._removeOldTags(),n.addOptions([e])),n.trigger("select",{data:t})});o.term!==t.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),t.term=o.term),e.call(this,t,i)},e.prototype.tokenizer=function(e,t,i,n){for(var o=i.get("tokenSeparators")||[],s=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<s.length;){var l=s[r];-1!==o.indexOf(l)?(l=s.substr(0,r),null!=(l=a(c.extend({},t,{term:l})))?(n(l),s=s.substr(r+1)||"",r=0):r++):r++}return{term:s}},e}),u.define("select2/data/minimumInputLength",[],function(){function e(e,t,i){this.minimumInputLength=i.get("minimumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e}),u.define("select2/data/maximumInputLength",[],function(){function e(e,t,i){this.maximumInputLength=i.get("maximumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e}),u.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("select",function(){n._checkIfMaximumSelected()})},e.prototype.query=function(e,t,i){var n=this;this._checkIfMaximumSelected(function(){e.call(n,t,i)})},e.prototype._checkIfMaximumSelected=function(e,t){var i=this;this.current(function(e){e=null!=e?e.length:0;0<i.maximumSelectionLength&&e>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):t&&t()})},e}),u.define("select2/dropdown",["jquery","./utils"],function(t,e){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},i.prototype.bind=function(){},i.prototype.position=function(e,t){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),u.define("select2/dropdown/search",["jquery"],function(s){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=s('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=e,this.$search=e.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),t.prepend(e),t},e.prototype.bind=function(e,t,i){var n=this,o=t.id+"-results";e.call(this,t,i),this.$search.on("keydown",function(e){n.trigger("keypress",e),n._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){s(this).off("keyup")}),this.$search.on("keyup input",function(e){n.handleSearch(e)}),t.on("open",function(){n.$search.attr("tabindex",0),n.$search.attr("aria-controls",o),n.$search.trigger("focus"),window.setTimeout(function(){n.$search.trigger("focus")},0)}),t.on("close",function(){n.$search.attr("tabindex",-1),n.$search.removeAttr("aria-controls"),n.$search.removeAttr("aria-activedescendant"),n.$search.val(""),n.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||n.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(n.showSearch(e)?n.$searchContainer[0].classList.remove("select2-search--hide"):n.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?n.$search.attr("aria-activedescendant",e.data._resultId):n.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),u.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,n)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),n=t.length-1;0<=n;n--){var o=t[n];this.placeholder.id===o.id&&i.splice(n,1)}return i},e}),u.define("select2/dropdown/infiniteScroll",["jquery"],function(i){function e(e,t,i,n){this.lastParams={},e.call(this,t,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("query",function(e){n.lastParams=e,n.loading=!0}),t.on("query:append",function(e){n.lastParams=e,n.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=i.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=i.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=i('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),u.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,r){function e(e,t,i){this.$dropdownParent=u(i.get("dropdownParent")||document.body),e.call(this,t,i)}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("open",function(){n._showDropdown(),n._attachPositioningHandler(t),n._bindContainerResultHandlers(t)}),t.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,i){t.attr("class",i.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var i;this._containerResultsHandlersBound||(i=this,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:message",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("select",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("unselect",function(){i._positionDropdown(),i._resizeDropdown()}),this._containerResultsHandlersBound=!0)},e.prototype._attachPositioningHandler=function(e,t){var i=this,n="scroll.select2."+t.id,o="resize.select2."+t.id,s="orientationchange.select2."+t.id,t=this.$container.parents().filter(r.hasScroll);t.each(function(){r.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),t.on(n,function(e){var t=r.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(n+" "+o+" "+s,function(e){i._positionDropdown(),i._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var i="scroll.select2."+t.id,n="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(r.hasScroll).off(i),u(window).off(i+" "+n+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),n=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<o.top-r,e=l>o.bottom+r,a={left:o.left,top:s.bottom},l=this.$dropdownParent;"static"===l.css("position")&&(l=l.offsetParent());o={top:0,left:0};(u.contains(document.body,l[0])||l[0].isConnected)&&(o=l.offset()),a.top-=o.top,a.left-=o.left,t||i||(n="below"),("above"==(n=!e&&c&&!t||!c&&e&&t?"below":n)||t&&"below"!==n)&&(a.top=s.top-o.top-r),null!=n&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+n),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+n)),this.$dropdownContainer.css(a)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),u.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,i,n)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var i=0,n=0;n<t.length;n++){var o=t[n];o.children?i+=e(o.children):i++}return i}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),u.define("select2/dropdown/selectOnClose",["../utils"],function(n){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("close",function(e){n._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var i=t.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}i=this.getHighlightedResults();i.length<1||(null!=(i=n.GetData(i[0],"data")).element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i}))},e}),u.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("select",function(e){n._selectTriggered(e)}),t.on("unselect",function(e){n._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var i=t.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},e}),u.define("select2/dropdown/dropdownCss",["../utils"],function(i){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("dropdownCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),i.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(e),t},e}),u.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,e="Please delete "+t+" character";return 1!=t&&(e+="s"),e},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"}}}),u.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./i18n/en"],function(l,s,r,a,c,u,d,h,p,f,m,t,g,v,y,_,b,w,x,T,C,S,k,E,L,P,A,M,O,e){function i(){this.reset()}return i.prototype.apply=function(e){var t;null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=y:null!=e.data?e.dataAdapter=v:e.dataAdapter=g,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,T)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=s,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,k)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,A))),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=C:(t=f.Decorate(C,S),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,P)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,M)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,L)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=r,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var i=[],n=0;n<e.language.length;n++){var o=e.language[n];-1===i.indexOf(o)&&i.push(o)}return e.language=i,e.translations=this._processTranslations(e.language,e.debug),e},i.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,i){if(null==t.term||""===t.term.trim())return i;if(i.children&&0<i.children.length){for(var n=l.extend(!0,{},i),o=i.children.length-1;0<=o;o--)null==e(t,i.children[o])&&n.children.splice(o,1);return 0<n.children.length?n:e(t,n)}var s=a(i.text).toUpperCase(),r=a(t.term).toUpperCase();return-1<s.indexOf(r)?i:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},i.prototype.applyFromElement=function(e,t){var i=e.language,n=this.defaults.language,o=t.prop("lang"),t=t.closest("[lang]").prop("lang"),t=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(t));return e.language=t,e},i.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];for(var t,i=Array.isArray(e)?e:[e],n=[],o=0;o<i.length;o++)n.push(i[o]),"string"==typeof i[o]&&0<i[o].indexOf("-")&&(t=i[o].split("-")[0],n.push(t));return n},i.prototype._processTranslations=function(e,t){for(var i=new m,n=0;n<e.length;n++){var o=new m,s=e[n];if("string"==typeof s)try{o=m.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,o=m.loadPath(s)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else o=l.isPlainObject(s)?new m(s):s;i.extend(o)}return i},i.prototype.set=function(e,t){var i={};i[l.camelCase(e)]=t;i=f._convertData(i);l.extend(!0,this.defaults,i)},new i}),u.define("select2/options",["jquery","./defaults","./utils"],function(c,i,u){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),u.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),u.StoreData(e[0],"data",u.GetData(e[0],"select2Tags")),u.StoreData(e[0],"tags",!0)),u.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",u.GetData(e[0],"ajaxUrl")),u.StoreData(e[0],"ajax-Url",u.GetData(e[0],"ajaxUrl")));var i={};function n(e,t){return t.toUpperCase()}for(var o=0;o<e[0].attributes.length;o++){var s,r=e[0].attributes[o].name;"data-"==r.substr(0,"data-".length)&&(s=r.substring("data-".length),r=u.GetData(e[0],s),i[s.replace(/-([a-z])/g,n)]=r)}c.fn.jquery&&"1."==c.fn.jquery.substr(0,2)&&e[0].dataset&&(i=c.extend(!0,{},e[0].dataset,i));var a,l=c.extend(!0,{},u.GetData(e[0]),i);for(a in l=u._convertData(l))-1<t.indexOf(a)||(c.isPlainObject(this.options[a])?c.extend(this.options[a],l[a]):this.options[a]=l[a]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),u.define("select2/core",["jquery","./options","./utils","./keys"],function(t,o,s,n){function r(e,t){null!=s.GetData(e[0],"select2")&&s.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new o(t=t||{},e),r.__super__.constructor.call(this);var i=e.attr("tabindex")||0;s.StoreData(e[0],"old-tabindex",i),e.attr("tabindex","-1"),t=this.options.get("dataAdapter"),this.dataAdapter=new t(e,this.options),i=this.render(),this._placeContainer(i),t=this.options.get("selectionAdapter"),this.selection=new t(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i),t=this.options.get("dropdownAdapter"),this.dropdown=new t(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i),i=this.options.get("resultsAdapter"),this.results=new i(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var n=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),s.StoreData(e[0],"select2",this),e.data("select2",this)}return s.Extend(r,s.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+s.generateChars(2):s.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var n=this._resolveWidth(e,"style");return null!=n?n:this._resolveWidth(e,"element")}if("element"==t){n=e.outerWidth(!1);return n<=0?"auto":n+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;e=e.attr("style");if("string"!=typeof e)return null;for(var o=e.split(";"),s=0,r=o.length;s<r;s+=1){var a=o[s].replace(/\s/g,"").match(i);if(null!==a&&1<=a.length)return a[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=s.bind(this._syncAttributes,this),this._syncS=s.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var i=this;this.dataAdapter.on("*",function(e,t){i.trigger(e,t)})},r.prototype._registerSelectionEvents=function(){var i=this,n=["toggle","focus"];this.selection.on("toggle",function(){i.toggleDropdown()}),this.selection.on("focus",function(e){i.focus(e)}),this.selection.on("*",function(e,t){-1===n.indexOf(e)&&i.trigger(e,t)})},r.prototype._registerDropdownEvents=function(){var i=this;this.dropdown.on("*",function(e,t){i.trigger(e,t)})},r.prototype._registerResultsEvents=function(){var i=this;this.results.on("*",function(e,t){i.trigger(e,t)})},r.prototype._registerEvents=function(){var i=this;this.on("open",function(){i.$container[0].classList.add("select2-container--open")}),this.on("close",function(){i.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){i.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){i.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){i.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){i.isOpen()||i.trigger("open",{}),this.dataAdapter.query(t,function(e){i.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){i.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;i.isOpen()?t===n.ESC||t===n.TAB||t===n.UP&&e.altKey?(i.close(e),e.preventDefault()):t===n.ENTER?(i.trigger("results:select",{}),e.preventDefault()):t===n.SPACE&&e.ctrlKey?(i.trigger("results:toggle",{}),e.preventDefault()):t===n.UP?(i.trigger("results:previous",{}),e.preventDefault()):t===n.DOWN&&(i.trigger("results:next",{}),e.preventDefault()):(t===n.ENTER||t===n.SPACE||t===n.DOWN&&e.altKey)&&(i.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var i=0;i<e.addedNodes.length;i++)if(e.addedNodes[i].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},r.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var i=r.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in n){var o={prevented:!1,name:e,args:t};if(i.call(this,n[e],o),o.prevented)return void(t.prevented=!0)}i.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');e=!(e=null==e||0===e.length?[!0]:e)[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0];Array.isArray(e)&&(e=e.map(function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",s.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),s.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),s.StoreData(e[0],"element",this.$element),e},r}),u.define("select2/dropdown/attachContainer",[],function(){function e(e,t,i){e.call(this,t,i)}return e.prototype.position=function(e,t,i){i.find(".dropdown-wrapper").append(t),t[0].classList.add("select2-dropdown--below"),i[0].classList.add("select2-container--below")},e}),u.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),u.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),a=function(u){var d,h,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],p=Array.prototype.slice;if(u.event.fixHooks)for(var i=e.length;i;)u.event.fixHooks[e[--i]]=u.event.mouseHooks;var f=u.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],n,!1);else this.onmousewheel=n;u.data(this,"mousewheel-line-height",f.getLineHeight(this)),u.data(this,"mousewheel-page-height",f.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],n,!1);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height"),u.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=u(e),e=t["offsetParent"in u.fn?"offsetParent":"parent"]();return e.length||(e=u("body")),parseInt(e.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return u(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function n(e){var t,i=e||window.event,n=p.call(arguments,1),o=0,s=0,r=0,a=0,l=0,c=0;if((e=u.event.fix(i)).type="mousewheel","detail"in i&&(r=-1*i.detail),"wheelDelta"in i&&(r=i.wheelDelta),"wheelDeltaY"in i&&(r=i.wheelDeltaY),"wheelDeltaX"in i&&(s=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(s=-1*r,r=0),o=0===r?s:r,"deltaY"in i&&(o=r=-1*i.deltaY),"deltaX"in i&&(s=i.deltaX,0===r&&(o=-1*s)),0!==r||0!==s)return 1===i.deltaMode?(o*=t=u.data(this,"mousewheel-line-height"),r*=t,s*=t):2===i.deltaMode&&(o*=t=u.data(this,"mousewheel-page-height"),r*=t,s*=t),a=Math.max(Math.abs(r),Math.abs(s)),(!h||a<h)&&g(i,h=a)&&(h/=40),g(i,a)&&(o/=40,s/=40,r/=40),o=Math[1<=o?"floor":"ceil"](o/h),s=Math[1<=s?"floor":"ceil"](s/h),r=Math[1<=r?"floor":"ceil"](r/h),f.settings.normalizeOffset&&this.getBoundingClientRect&&(a=this.getBoundingClientRect(),l=e.clientX-a.left,c=e.clientY-a.top),e.deltaX=s,e.deltaY=r,e.deltaFactor=h,e.offsetX=l,e.offsetY=c,e.deltaMode=0,n.unshift(e,o,s,r),d&&clearTimeout(d),d=setTimeout(m,200),(u.event.dispatch||u.event.handle).apply(this,n)}function m(){h=null}function g(e,t){return f.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}u.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof u.define&&u.define.amd?u.define("jquery-mousewheel",["jquery"],a):"object"==typeof exports?module.exports=a:a(t),u.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(o,e,s,t,r){var a;return null==o.fn.select2&&(a=["open","close","destroy"],o.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=o.extend(!0,{},t);new s(o(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var i,n=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,n)}),-1<a.indexOf(t)?this:i}),null==o.fn.select2.defaults&&(o.fn.select2.defaults=t),s}),{define:u.define,require:u.require});function b(e,t){return n.call(e,t)}function l(e,t){var i,n,o,s,r,a,l,c,u,d,h=t&&t.split("/"),p=v.map,f=p&&p["*"]||{};if(e){for(t=(e=e.split("/")).length-1,v.nodeIdCompat&&_.test(e[t])&&(e[t]=e[t].replace(_,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),c=0;c<e.length;c++)"."===(d=e[c])?(e.splice(c,1),--c):".."===d&&(0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2));e=e.join("/")}if((h||f)&&p){for(c=(i=e.split("/")).length;0<c;--c){if(n=i.slice(0,c).join("/"),h)for(u=h.length;0<u;--u)if(o=(o=p[h.slice(0,u).join("/")])&&o[n]){s=o,r=c;break}if(s)break;!a&&f&&f[n]&&(a=f[n],l=c)}!s&&a&&(s=a,r=l),s&&(i.splice(0,r,s),e=i.join("/"))}return e}function w(t,i){return function(){var e=o.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(h,e.concat([t,i]))}}function x(e){var t;if(b(g,e)&&(t=g[e],delete g[e],y[e]=!0,s.apply(h,t)),!b(m,e)&&!b(y,e))throw new Error("No "+e);return m[e]}function c(e){var t,i=e?e.indexOf("!"):-1;return-1<i&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function T(e){return e?c(e):[]}var u=a.require("jquery.select2");return t.fn.select2.amd=a,u}),function(){for(var s=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var i=(new Date).getTime(),n=Math.max(0,16-(i-s)),o=window.setTimeout(function(){e(i+n)},n);return s=i+n,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,i,n,o){return jQuery.easing[jQuery.easing.def](e,t,i,n,o)},easeInQuad:function(e,t,i,n,o){return n*(t/=o)*t+i},easeOutQuad:function(e,t,i,n,o){return-n*(t/=o)*(t-2)+i},easeInOutQuad:function(e,t,i,n,o){return(t/=o/2)<1?n/2*t*t+i:-n/2*(--t*(t-2)-1)+i},easeInCubic:function(e,t,i,n,o){return n*(t/=o)*t*t+i},easeOutCubic:function(e,t,i,n,o){return n*((t=t/o-1)*t*t+1)+i},easeInOutCubic:function(e,t,i,n,o){return(t/=o/2)<1?n/2*t*t*t+i:n/2*((t-=2)*t*t+2)+i},easeInQuart:function(e,t,i,n,o){return n*(t/=o)*t*t*t+i},easeOutQuart:function(e,t,i,n,o){return-n*((t=t/o-1)*t*t*t-1)+i},easeInOutQuart:function(e,t,i,n,o){return(t/=o/2)<1?n/2*t*t*t*t+i:-n/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(e,t,i,n,o){return n*(t/=o)*t*t*t*t+i},easeOutQuint:function(e,t,i,n,o){return n*((t=t/o-1)*t*t*t*t+1)+i},easeInOutQuint:function(e,t,i,n,o){return(t/=o/2)<1?n/2*t*t*t*t*t+i:n/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(e,t,i,n,o){return-n*Math.cos(t/o*(Math.PI/2))+n+i},easeOutSine:function(e,t,i,n,o){return n*Math.sin(t/o*(Math.PI/2))+i},easeInOutSine:function(e,t,i,n,o){return-n/2*(Math.cos(Math.PI*t/o)-1)+i},easeInExpo:function(e,t,i,n,o){return 0==t?i:n*Math.pow(2,10*(t/o-1))+i},easeOutExpo:function(e,t,i,n,o){return t==o?i+n:n*(1-Math.pow(2,-10*t/o))+i},easeInOutExpo:function(e,t,i,n,o){return 0==t?i:t==o?i+n:(t/=o/2)<1?n/2*Math.pow(2,10*(t-1))+i:n/2*(2-Math.pow(2,-10*--t))+i},easeInCirc:function(e,t,i,n,o){return-n*(Math.sqrt(1-(t/=o)*t)-1)+i},easeOutCirc:function(e,t,i,n,o){return n*Math.sqrt(1-(t=t/o-1)*t)+i},easeInOutCirc:function(e,t,i,n,o){return(t/=o/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+i:n/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(e,t,i,n,o){var s=1.70158,r=0,a=n;return 0==t?i:1==(t/=o)?i+n:(r=r||.3*o,s=a<Math.abs(n)?(a=n,r/4):r/(2*Math.PI)*Math.asin(n/a),-(a*Math.pow(2,10*--t)*Math.sin((t*o-s)*(2*Math.PI)/r))+i)},easeOutElastic:function(e,t,i,n,o){var s=1.70158,r=0,a=n;return 0==t?i:1==(t/=o)?i+n:(r=r||.3*o,s=a<Math.abs(n)?(a=n,r/4):r/(2*Math.PI)*Math.asin(n/a),a*Math.pow(2,-10*t)*Math.sin((t*o-s)*(2*Math.PI)/r)+n+i)},easeInOutElastic:function(e,t,i,n,o){var s=1.70158,r=0,a=n;return 0==t?i:2==(t/=o/2)?i+n:(r=r||o*(.3*1.5),s=a<Math.abs(n)?(a=n,r/4):r/(2*Math.PI)*Math.asin(n/a),t<1?a*Math.pow(2,10*--t)*Math.sin((t*o-s)*(2*Math.PI)/r)*-.5+i:a*Math.pow(2,-10*--t)*Math.sin((t*o-s)*(2*Math.PI)/r)*.5+n+i)},easeInBack:function(e,t,i,n,o,s){return n*(t/=o)*t*(((s=null==s?1.70158:s)+1)*t-s)+i},easeOutBack:function(e,t,i,n,o,s){return n*((t=t/o-1)*t*(((s=null==s?1.70158:s)+1)*t+s)+1)+i},easeInOutBack:function(e,t,i,n,o,s){return null==s&&(s=1.70158),(t/=o/2)<1?n/2*(t*t*((1+(s*=1.525))*t-s))+i:n/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+i},easeInBounce:function(e,t,i,n,o){return n-jQuery.easing.easeOutBounce(e,o-t,0,n,o)+i},easeOutBounce:function(e,t,i,n,o){return(t/=o)<1/2.75?n*(7.5625*t*t)+i:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+i:n*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(e,t,i,n,o){return t<o/2?.5*jQuery.easing.easeInBounce(e,2*t,0,n,o)+i:.5*jQuery.easing.easeOutBounce(e,2*t-o,0,n,o)+.5*n+i}}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return i={686:function(e,t,i){"use strict";i.d(t,{default:function(){return r}});var t=i(279),a=i.n(t),t=i(370),l=i.n(t),t=i(817),o=i.n(t);function s(e){try{return document.execCommand(e)}catch(e){return}}function c(e){return e=o()(e),s("cut"),e}function n(e,t){var i,n,e=(i=e,n="rtl"===document.documentElement.getAttribute("dir"),(e=document.createElement("textarea")).style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[n?"right":"left"]="-9999px",n=window.pageYOffset||document.documentElement.scrollTop,e.style.top="".concat(n,"px"),e.setAttribute("readonly",""),e.value=i,e);return t.container.appendChild(e),t=o()(e),s("copy"),e.remove(),t}function u(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},i="";return"string"==typeof e?i=n(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?i=n(e.value,t):(i=o()(e),s("copy")),i}function d(e){return(d="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 h(e){return(h="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 p(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(r,a());var e,t,i,n,o,s=(n=r,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e=m(n),t=o?(t=m(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),e=this;return!t||"object"!==h(t)&&"function"!=typeof t?function(){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}():t});function r(e,t){var i;return function(e){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this),(i=s.call(this)).resolveOptions(t),i.listenClick(e),i}return i=[{key:"copy",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return u(e,t)}},{key:"cut",value:c},{key:"isSupported",value:function(){var e="string"==typeof(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[e]:e,t=!!document.queryCommandSupported;return e.forEach(function(e){t=t&&!!document.queryCommandSupported(e)}),t}}],t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=l()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,i=this.action(t)||"copy",e=function(){var e=void 0===(i=(n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).action)?"copy":i,t=n.container,i=n.target,n=n.text;if("copy"!==e&&"cut"!==e)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==d(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===e&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===e&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return n?u(n,{container:t}):i?"cut"===e?c(i):u(i,{container:t}):void 0}({action:i,container:this.container,target:this.target(t),text:this.text(t)});this.emit(e?"success":"error",{action:i,text:e,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){if(e=g("target",e))return document.querySelector(e)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],p((e=r).prototype,t),p(e,i),r}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,i){var r=i(828);function s(e,t,i,n,o){var s=function(t,i,e,n){return function(e){e.delegateTarget=r(e.target,i),e.delegateTarget&&n.call(t,e)}}.apply(this,arguments);return e.addEventListener(i,s,o),{destroy:function(){e.removeEventListener(i,s,o)}}}e.exports=function(e,t,i,n,o){return"function"==typeof e.addEventListener?s.apply(null,arguments):"function"==typeof i?s.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return s(e,t,i,n,o)}))}},879:function(e,i){i.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},i.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||i.node(e[0]))},i.string=function(e){return"string"==typeof e||e instanceof String},i.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,i){var c=i(879),u=i(438);e.exports=function(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!c.string(t))throw new TypeError("Second argument must be a String");if(!c.fn(i))throw new TypeError("Third argument must be a Function");if(c.node(e))return(r=e).addEventListener(a=t,l=i),{destroy:function(){r.removeEventListener(a,l)}};if(c.nodeList(e))return n=e,o=t,s=i,Array.prototype.forEach.call(n,function(e){e.addEventListener(o,s)}),{destroy:function(){Array.prototype.forEach.call(n,function(e){e.removeEventListener(o,s)})}};if(c.string(e))return u(document.body,e,t,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var n,o,s,r,a,l}},817:function(e){e.exports=function(e){var t,i="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),i=window.getSelection(),(t=document.createRange()).selectNodeContents(e),i.removeAllRanges(),i.addRange(t),i.toString());return i}},279:function(e){function t(){}t.prototype={on:function(e,t,i){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var n=this;function o(){n.off(e,o),t.apply(i,arguments)}return o._=t,this.on(e,o,i)},emit:function(e){for(var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=i.length;n<o;n++)i[n].fn.apply(i[n].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),n=i[e],o=[];if(n&&t)for(var s=0,r=n.length;s<r;s++)n[s].fn!==t&&n[s].fn._!==t&&o.push(n[s]);return o.length?i[e]=o:delete i[e],this}},e.exports=t,e.exports.TinyEmitter=t}},o={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686).default;function n(e){if(o[e])return o[e].exports;var t=o[e]={exports:{}};return i[e](t,t.exports,n),t.exports}var i,o}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(e){"use strict";function t(e){e=(e=void 0===e?window.navigator.userAgent:e).toLowerCase();var t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0<=e.indexOf("trident")&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],i=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[],e={},i={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",versionNumber:t[4]||t[2]||"0",platform:i[0]||""};return i.browser&&(e[i.browser]=!0,e.version=i.version,e.versionNumber=parseInt(i.versionNumber,10)),i.platform&&(e[i.platform]=!0),(e.android||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"])&&(e.mobile=!0),(e.cros||e.mac||e.linux||e.win)&&(e.desktop=!0),(e.chrome||e.opr||e.safari)&&(e.webkit=!0),(e.rv||e.iemobile)&&(i.browser="msie",e.msie=!0),e.edge&&(delete e.edge,i.browser="msedge",e.msedge=!0),e.safari&&e.blackberry&&(e[i.browser="blackberry"]=!0),e.safari&&e.playbook&&(i.browser="playbook",e.playbook=!0),e.bb&&(e[i.browser="blackberry"]=!0),e.opr&&(i.browser="opera",e.opera=!0),e.safari&&e.android&&(i.browser="android",e.android=!0),e.safari&&e.kindle&&(i.browser="kindle",e.kindle=!0),e.safari&&e.silk&&(i.browser="silk",e.silk=!0),e.name=i.browser,e.platform=i.platform,e}return window.jQBrowser=t(window.navigator.userAgent),window.jQBrowser.uaMatch=t,e&&(e.browser=window.jQBrowser),window.jQBrowser}),function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):"undefined"!=typeof module&&module.exports?e(require("jquery")):e(jQuery)}(function(ae){var le="left",ce="right",ue="up",de="down",he="in",pe="out",fe="none",me="auto",ge="swipe",ve="pinch",ye="tap",_e="doubletap",be="longtap",we="horizontal",xe="vertical",Te="all",Ce=10,Se="start",ke="move",Ee="end",Le="cancel",Pe="ontouchstart"in window,Ae=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!Pe,Me=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!Pe,Oe="TouchSwipe";function n(e,r){var r=ae.extend({},r),t=Pe||Me||!r.fallbackToMouseEvents,i=t?Me?Ae?"MSPointerDown":"pointerdown":"touchstart":"mousedown",n=t?Me?Ae?"MSPointerMove":"pointermove":"touchmove":"mousemove",o=t?Me?Ae?"MSPointerUp":"pointerup":"touchend":"mouseup",s=!t||Me?"mouseleave":null,a=Me?Ae?"MSPointerCancel":"pointercancel":"touchcancel",l=0,c=null,u=null,d=0,h=0,p=0,f=1,m=0,g=0,v=null,y=ae(e),_="start",b=0,w={},x=0,T=0,C=0,S=0,k=0,E=null,L=null;try{y.bind(i,P),y.bind(a,O)}catch(e){ae.error("events not supported "+i+","+a+" on jQuery.swipe")}function P(e){if(!0!==y.data(Oe+"_intouch")&&!(0<ae(e.target).closest(r.excludedElements,y).length)){var t,i=e.originalEvent||e,n=i.touches,o=n?n[0]:i;return(_=Se,n?b=n.length:!1!==r.preventDefaultEvents&&e.preventDefault(),g=u=c=null,f=1,m=p=h=d=l=0,(e={})[le]=ie(le),e[ce]=ie(ce),e[ue]=ie(ue),e[de]=ie(de),v=e,X(),J(0,o),!n||b===r.fingers||r.fingers===Te||F()?(x=re(),2==b&&(J(1,n[1]),h=p=oe(w[0].start,w[1].start)),(r.swipeStatus||r.pinchStatus)&&(t=N(i,_))):t=!1,!1===t)?(N(i,_=Le),t):(r.hold&&(L=setTimeout(ae.proxy(function(){y.trigger("hold",[i.target]),r.hold&&(t=r.hold.call(y,i,i.target))},this),r.longTapThreshold)),Q(!0),null)}}function A(e){var t,i,n,o,s=e.originalEvent||e;_===Ee||_===Le||K()||(t=ee((i=s.touches)?i[0]:s),T=re(),i&&(b=i.length),r.hold&&clearTimeout(L),_=ke,2==b&&(0==h?(J(1,i[1]),h=p=oe(w[0].start,w[1].start)):(ee(i[1]),p=oe(w[0].end,w[1].end),w[0].end,w[1].end,g=f<1?pe:he),f=(p/h*1).toFixed(2),m=Math.abs(h-p)),b===r.fingers||r.fingers===Te||!i||F()?(c=se(t.start,t.end),function(e,t){if(!1!==r.preventDefaultEvents)if(r.allowPageScroll===fe)e.preventDefault();else{var i=r.allowPageScroll===me;switch(t){case le:(r.swipeLeft&&i||!i&&r.allowPageScroll!=we)&&e.preventDefault();break;case ce:(r.swipeRight&&i||!i&&r.allowPageScroll!=we)&&e.preventDefault();break;case ue:(r.swipeUp&&i||!i&&r.allowPageScroll!=xe)&&e.preventDefault();break;case de:(r.swipeDown&&i||!i&&r.allowPageScroll!=xe)&&e.preventDefault()}}}(e,u=se(t.last,t.end)),n=t.start,o=t.end,l=Math.round(Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2))),d=ne(),i=c,e=l,e=Math.max(e,te(i)),v[i].distance=e,o=N(s,_),r.triggerOnTouchEnd&&!r.triggerOnTouchLeave||(n=!0,r.triggerOnTouchLeave&&(i={left:(e=(i=ae(i=this)).offset()).left,right:e.left+i.outerWidth(),top:e.top,bottom:e.top+i.outerHeight()},t=t.end,i=i,n=t.x>i.left&&t.x<i.right&&t.y>i.top&&t.y<i.bottom),!r.triggerOnTouchEnd&&n?_=D(ke):r.triggerOnTouchLeave&&!n&&(_=D(Ee)),_!=Le&&_!=Ee||N(s,_))):N(s,_=Le),!1===o&&N(s,_=Le))}function M(e){var t,i=e.originalEvent||e,n=i.touches;if(n){if(n.length&&!K())return t=i,C=re(),S=t.touches.length+1,!0;if(n.length&&K())return!0}return K()&&(b=S),T=re(),d=ne(),j()||!$()?N(i,_=Le):r.triggerOnTouchEnd||0==r.triggerOnTouchEnd&&_===ke?(!1!==r.preventDefaultEvents&&e.preventDefault(),N(i,_=Ee)):!r.triggerOnTouchEnd&&G()?B(i,_=Ee,ye):_===ke&&N(i,_=Le),Q(!1),null}function O(){p=h=x=T=b=0,X(),Q(!(f=1))}function I(e){e=e.originalEvent||e;r.triggerOnTouchLeave&&N(e,_=D(Ee))}function z(){y.unbind(i,P),y.unbind(a,O),y.unbind(n,A),y.unbind(o,M),s&&y.unbind(s,I),Q(!1)}function D(e){var t=e,i=R(),n=$(),o=j();return!i||o?t=Le:!n||e!=ke||r.triggerOnTouchEnd&&!r.triggerOnTouchLeave?!n&&e==Ee&&r.triggerOnTouchLeave&&(t=Le):t=Ee,t}function N(e,t){var i,n=e.touches;return(q()&&W()||W())&&(i=B(e,t,ge)),(H()&&F()||F())&&!1!==i&&(i=B(e,t,ve)),Y()&&Z()&&!1!==i?i=B(e,t,_e):d>r.longTapThreshold&&l<Ce&&r.longTap&&!1!==i?i=B(e,t,be):1!==b&&Pe||!(isNaN(l)||l<r.threshold)||!G()||!1===i||(i=B(e,t,ye)),t===Le&&(W()&&(i=B(e,t,ge)),F()&&(i=B(e,t,ve)),O()),t===Ee&&(n&&n.length||O()),i}function B(e,t,i){var n;if(i==ge){if(y.trigger("swipeStatus",[t,c||null,l||0,d||0,b,w,u]),r.swipeStatus&&!1===(n=r.swipeStatus.call(y,e,t,c||null,l||0,d||0,b,w,u)))return!1;if(t==Ee&&q()){if(clearTimeout(E),clearTimeout(L),y.trigger("swipe",[c,l,d,b,w,u]),r.swipe&&!1===(n=r.swipe.call(y,e,c,l,d,b,w,u)))return!1;switch(c){case le:y.trigger("swipeLeft",[c,l,d,b,w,u]),r.swipeLeft&&(n=r.swipeLeft.call(y,e,c,l,d,b,w,u));break;case ce:y.trigger("swipeRight",[c,l,d,b,w,u]),r.swipeRight&&(n=r.swipeRight.call(y,e,c,l,d,b,w,u));break;case ue:y.trigger("swipeUp",[c,l,d,b,w,u]),r.swipeUp&&(n=r.swipeUp.call(y,e,c,l,d,b,w,u));break;case de:y.trigger("swipeDown",[c,l,d,b,w,u]),r.swipeDown&&(n=r.swipeDown.call(y,e,c,l,d,b,w,u))}}}if(i==ve){if(y.trigger("pinchStatus",[t,g||null,m||0,d||0,b,f,w]),r.pinchStatus&&!1===(n=r.pinchStatus.call(y,e,t,g||null,m||0,d||0,b,f,w)))return!1;if(t==Ee&&H())switch(g){case he:y.trigger("pinchIn",[g||null,m||0,d||0,b,f,w]),r.pinchIn&&(n=r.pinchIn.call(y,e,g||null,m||0,d||0,b,f,w));break;case pe:y.trigger("pinchOut",[g||null,m||0,d||0,b,f,w]),r.pinchOut&&(n=r.pinchOut.call(y,e,g||null,m||0,d||0,b,f,w))}}return i==ye?t!==Le&&t!==Ee||(clearTimeout(E),clearTimeout(L),Z()&&!Y()?(k=re(),E=setTimeout(ae.proxy(function(){k=null,y.trigger("tap",[e.target]),r.tap&&(n=r.tap.call(y,e,e.target))},this),r.doubleTapThreshold)):(k=null,y.trigger("tap",[e.target]),r.tap&&(n=r.tap.call(y,e,e.target)))):i==_e?t!==Le&&t!==Ee||(clearTimeout(E),clearTimeout(L),k=null,y.trigger("doubletap",[e.target]),r.doubleTap&&(n=r.doubleTap.call(y,e,e.target))):i==be&&(t!==Le&&t!==Ee||(clearTimeout(E),k=null,y.trigger("longtap",[e.target]),r.longTap&&(n=r.longTap.call(y,e,e.target)))),n}function $(){var e=!0;return e=null!==r.threshold?l>=r.threshold:e}function j(){var e=!1;return e=null!==r.cancelThreshold&&null!==c?te(c)-l>=r.cancelThreshold:e}function R(){var e=!r.maxTimeThreshold||!(d>=r.maxTimeThreshold);return e}function H(){var e=U(),t=V(),i=null===r.pinchThreshold||m>=r.pinchThreshold;return e&&t&&i}function F(){return r.pinchStatus||r.pinchIn||r.pinchOut}function q(){var e=R(),t=$(),i=U(),n=V();return!j()&&n&&i&&t&&e}function W(){return r.swipe||r.swipeStatus||r.swipeLeft||r.swipeRight||r.swipeUp||r.swipeDown}function U(){return b===r.fingers||r.fingers===Te||!Pe}function V(){return 0!==w[0].end.x}function G(){return r.tap}function Z(){return!!r.doubleTap}function Y(){if(null==k)return!1;var e=re();return Z()&&e-k<=r.doubleTapThreshold}function X(){S=C=0}function K(){var e=!1;return e=C&&re()-C<=r.fingerReleaseThreshold?!0:e}function Q(e){y&&(!0===e?(y.bind(n,A),y.bind(o,M),s&&y.bind(s,I)):(y.unbind(n,A,!1),y.unbind(o,M,!1),s&&y.unbind(s,I,!1)),y.data(Oe+"_intouch",!0===e))}function J(e,t){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=t.pageX||t.clientX,i.start.y=i.last.y=i.end.y=t.pageY||t.clientY,w[e]=i}function ee(e){var t=void 0!==e.identifier?e.identifier:0,i=w[t]||null;return(i=null===i?J(t,e):i).last.x=i.end.x,i.last.y=i.end.y,i.end.x=e.pageX||e.clientX,i.end.y=e.pageY||e.clientY,i}function te(e){if(v[e])return v[e].distance}function ie(e){return{direction:e,distance:0}}function ne(){return T-x}function oe(e,t){var i=Math.abs(e.x-t.x),t=Math.abs(e.y-t.y);return Math.round(Math.sqrt(i*i+t*t))}function se(e,t){var i,n,n=(n=(i=e).x-t.x,i=t.y-e.y,n=Math.atan2(i,n),n=(n=Math.round(180*n/Math.PI))<0?360-Math.abs(n):n);return n<=45&&0<=n||n<=360&&315<=n?le:135<=n&&n<=225?ce:45<n&&n<135?de:ue}function re(){return(new Date).getTime()}this.enable=function(){return y.bind(i,P),y.bind(a,O),y},this.disable=function(){return z(),y},this.destroy=function(){z(),y.data(Oe,null),y=null},this.option=function(e,t){if("object"==typeof e)r=ae.extend(r,e);else if(void 0!==r[e]){if(void 0===t)return r[e];r[e]=t}else{if(!e)return r;ae.error("Option "+e+" does not exist on jQuery.swipe.options")}return null}}ae.fn.swipe=function(e){var t=ae(this),i=t.data(Oe);if(i&&"string"==typeof e){if(i[e])return i[e].apply(this,Array.prototype.slice.call(arguments,1));ae.error("Method "+e+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof e)i.option.apply(this,arguments);else if(!(i||"object"!=typeof e&&e))return function(i){!i||void 0!==i.allowPageScroll||void 0===i.swipe&&void 0===i.swipeStatus||(i.allowPageScroll=fe);void 0!==i.click&&void 0===i.tap&&(i.tap=i.click);i=i||{};return i=ae.extend({},ae.fn.swipe.defaults,i),this.each(function(){var e,t=ae(this);(e=t.data(Oe))||(e=new n(this,i),t.data(Oe,e))})}.apply(this,arguments);return t},ae.fn.swipe.version="1.6.15",ae.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0},ae.fn.swipe.phases={PHASE_START:Se,PHASE_MOVE:ke,PHASE_END:Ee,PHASE_CANCEL:Le},ae.fn.swipe.directions={LEFT:le,RIGHT:ce,UP:ue,DOWN:de,IN:he,OUT:pe},ae.fn.swipe.pageScroll={NONE:fe,HORIZONTAL:we,VERTICAL:xe,AUTO:me},ae.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:Te}}),function(e){var s,r=e.event,a=r.special.debouncedresize={setup:function(){e(this).on("resize",a.handler)},teardown:function(){e(this).off("resize",a.handler)},handler:function(e,t){function i(){e.type="debouncedresize",r.dispatch.apply(n,o)}var n=this,o=arguments;s&&clearTimeout(s),t?i():s=setTimeout(i,a.threshold)},threshold:150}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(d){var i=/\+/g;function h(e){return f.raw?e:encodeURIComponent(e)}function p(e,t){e=f.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(i," ")),f.json?JSON.parse(e):e}catch(e){}}(e);return d.isFunction(t)?t(e):e}var f=d.cookie=function(e,t,i){var n,o;if(1<arguments.length&&!d.isFunction(t))return"number"==typeof(i=d.extend({},f.defaults,i)).expires&&(o=i.expires,(n=i.expires=new Date).setMilliseconds(n.getMilliseconds()+864e5*o)),document.cookie=[h(e),"=",(o=t,h(f.json?JSON.stringify(o):String(o))),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("");for(var s=e?void 0:{},r=document.cookie?document.cookie.split("; "):[],a=0,l=r.length;a<l;a++){var c=r[a].split("="),u=(u=c.shift(),f.raw?u:decodeURIComponent(u)),c=c.join("=");if(e===u){s=p(c,t);break}e||void 0===(c=p(c))||(s[u]=c)}return s};f.defaults={},d.removeCookie=function(e,t){return d.cookie(e,"",d.extend({},t,{expires:-1})),!d.cookie(e)}}),function(){function n(e,t){var i=this;n.count=(n.count||0)+1,this.count=n.count,this.isOpened=!1,this.input=r(e),this.input.setAttribute("autocomplete","new-search"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=t=t||{},function(e,t,i){for(var n in t){var o=t[n],s=e.input.getAttribute("data-"+n.toLowerCase());"number"==typeof o?e[n]=parseInt(s):!1===o?e[n]=null!==s:o instanceof Function?e[n]=null:e[n]=s,e[n]||0===e[n]||(e[n]=n in i?i[n]:o)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:n.DATA,filter:n.FILTER_CONTAINS,sort:!1!==t.sort&&n.SORT_BYLENGTH,container:n.CONTAINER,item:n.ITEM,replace:n.REPLACE,tabSelect:!1},t),this.index=-1,this.container=this.container(e),this.ul=r.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container}),this.status=r.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{focus:function(e){2<i.input.value.length&&i.evaluate()},input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(e){var t=e.keyCode;i.opened&&(13===t&&i.selected?(e.preventDefault(),i.select()):9===t&&i.selected&&i.tabSelect?i.select():27===t?i.close({reason:"esc"}):38!==t&&40!==t||(e.preventDefault(),i[38===t?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(e){e.preventDefault()},click:function(e){var t=e.target;if(t!==this){for(;t&&!/li/i.test(t.nodeName);)t=t.parentNode;t&&0===e.button&&(e.preventDefault(),i.select(t,e.target))}}}},r.bind(this.input,this._events.input),r.bind(this.input.form,this._events.form),r.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||t.list||[],n.all.push(this)}function t(e){e=Array.isArray(e)?{label:e[0],value:e[1]}:"object"==typeof e&&"label"in e&&"value"in e?e:{label:e,value:e,id:e,type:e,title:e,url:e};this.label=e.label||e.value,this.value=e.value,this.url=e.url,this.id=e.id,this.type=e.type,this.title=e.title}n.prototype={set list(e){var o;Array.isArray(e)?this._list=e:"string"==typeof e&&-1<e.indexOf(",")?this._list=e.split(/\s*,\s*/):(e=r(e))&&e.children&&(o=[],i.apply(e.children).forEach(function(e){var t,i,n;e.disabled||(t=e.textContent.trim(),i=e.value||t,n=e.label||t,e.url,""!==i&&o.push({label:n,value:i,url:i}))}),this._list=o),document.activeElement===this.input&&this.evaluate()},get selected(){return-1<this.index},get opened(){return this.isOpened},close:function(e){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.ul.classList.add("_hidden"),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),r.fire(this.input,"awesomplete-close",e||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.ul.classList.remove("_hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),r.fire(this.input,"awesomplete-open")},destroy:function(){r.unbind(this.input,this._events.input),r.unbind(this.input.form,this._events.form),this.options.container||((e=this.container.parentNode).insertBefore(this.input,this.container),e.removeChild(this.container)),this.input.removeAttribute("aria-autocomplete");var e=n.all.indexOf(this);-1!==e&&n.all.splice(e,1)},next:function(){var e=this.ul.children.length;this.goto(this.index<e-1?this.index+1:e?0:-1)},previous:function(){var e=this.ul.children.length,t=this.index-1;this.goto(this.selected&&-1!=t?t:e-1)},goto:function(e){var t=this.ul.children;this.selected&&t[this.index].setAttribute("aria-selected","false"),-1<(this.index=e)&&0<t.length&&(t[e].setAttribute("aria-selected","true"),this.status.textContent=t[e].textContent+", list item "+(e+1)+" of "+t.length,this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=t[e].offsetTop-this.ul.clientHeight+t[e].clientHeight,r.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(e,t){var i;e?this.index=r.siblingIndex(e):e=this.ul.children[this.index],e&&(i=this.suggestions[this.index],r.fire(this.input,"awesomplete-select",{text:i,origin:t||e})&&(this.replace(i),this.close({reason:"select"}),r.fire(this.input,"awesomplete-selectcomplete",{text:i})))},evaluate:function(){var i=this,n=this.input.value;n.length>=this.minChars&&this._list&&0<this._list.length?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(e){return new t(i.data(e,n))}).filter(function(e){return i.filter(e,n)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(e,t){i.ul.appendChild(i.item(e,n,t))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},n.all=[],n.FILTER_CONTAINS=function(e,t){return RegExp(r.regExpEscape(t.trim()),"i").test(e)},n.FILTER_STARTSWITH=function(e,t){return RegExp("^"+r.regExpEscape(t.trim()),"i").test(e)},n.SORT_BYLENGTH=function(e,t){return e.length!==t.length?e.length-t.length:e<t?-1:1},n.CONTAINER=function(e){return r.create("div",{className:"awesomplete",around:e})},n.ITEM=function(e,t,i){""===t.trim()||e.replace(RegExp(r.regExpEscape(t.trim()),"gi"),"<span>$&</span>");return r.create("li",{innerHTML:"<span>"+e.label+"</span>",role:"option","aria-selected":"false",id:"awesomplete_list_"+this.count+"_item_"+i})},n.REPLACE=function(e){this.input.value=e.value},n.DATA=function(e){return e},Object.defineProperty(t.prototype=Object.create(String.prototype),"length",{get:function(){return this.value.length}}),t.prototype.toString=t.prototype.valueOf=function(){return""+this.value};var i=Array.prototype.slice;function r(e,t){return"string"==typeof e?(t||document).querySelector(e):e||null}function e(e,t){return i.call((t||document).querySelectorAll(e))}function o(){e("input.awesomplete").forEach(function(e){new n(e)})}r.create=function(e,t){var i,n=document.createElement(e);for(i in t){var o,s=t[i];"inside"===i?r(s).appendChild(n):"around"===i?((o=r(s)).parentNode.insertBefore(n,o),n.appendChild(o),null!=o.getAttribute("autofocus")&&o.focus()):i in n?n[i]=s:n.setAttribute(i,s)}return n},r.bind=function(t,e){if(t)for(var i in e){var n=e[i];i.split(/\s+/).forEach(function(e){t.addEventListener(e,n)})}},r.unbind=function(t,e){if(t)for(var i in e){var n=e[i];i.split(/\s+/).forEach(function(e){t.removeEventListener(e,n)})}},r.fire=function(e,t,i){var n,o=document.createEvent("HTMLEvents");for(n in o.initEvent(t,!0,!0),i)o[n]=i[n];return e.dispatchEvent(o)},r.regExpEscape=function(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},r.siblingIndex=function(e){for(var t=0;e=e.previousElementSibling;t++);return t},"undefined"!=typeof self&&(self.Awesomplete=n),"undefined"!=typeof Document&&("loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)),n.$=r,n.$$=e,"object"==typeof module&&module.exports&&(module.exports=n)}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Swiper=t()}(this,function(){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,n=arguments[t];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function o(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function s(t,i){void 0===t&&(t={}),void 0===i&&(i={}),Object.keys(i).forEach(function(e){void 0===t[e]?t[e]=i[e]:o(i[e])&&o(t[e])&&0<Object.keys(i[e]).length&&s(t[e],i[e])})}var t={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function y(){var e="undefined"!=typeof document?document:{};return s(e,t),e}var i={document:t,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function X(){var e="undefined"!=typeof window?window:{};return s(e,i),e}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,i){return(l=function(){if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(e){return}}}()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);n=new(Function.bind.apply(e,n));return i&&a(n,i.prototype),n}).apply(null,arguments)}function c(e){var i="function"==typeof Map?new Map:void 0;return function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return l(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)}(e)}var u=function(n){var e,t;function i(e){var t,i=n.call.apply(n,[this].concat(e))||this;return e=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i),t=e.__proto__,Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(e){t.__proto__=e}}),i}return t=n,(e=i).prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t,i}(c(Array));function d(e){var t=[];return(e=void 0===e?[]:e).forEach(function(e){Array.isArray(e)?t.push.apply(t,d(e)):t.push(e)}),t}function h(e,t){return Array.prototype.filter.call(e,t)}function C(e,t){var i=X(),n=y(),o=[];if(!t&&e instanceof u)return e;if(!e)return new u(o);if("string"==typeof e){var s=e.trim();if(0<=s.indexOf("<")&&0<=s.indexOf(">")){var r="div";0===s.indexOf("<li")&&(r="ul"),0===s.indexOf("<tr")&&(r="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(r="tr"),0===s.indexOf("<tbody")&&(r="table"),0===s.indexOf("<option")&&(r="select");var a=n.createElement(r);a.innerHTML=s;for(var l=0;l<a.childNodes.length;l+=1)o.push(a.childNodes[l])}else o=function(e,t){if("string"!=typeof e)return[e];for(var i=[],n=t.querySelectorAll(e),o=0;o<n.length;o+=1)i.push(n[o]);return i}(e.trim(),t||n)}else if(e.nodeType||e===i||e===n)o.push(e);else if(Array.isArray(e)){if(e instanceof u)return e;o=e}return new u(function(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(o))}C.fn=u.prototype;var p,f,m,g={addClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=d(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){(e=e.classList).add.apply(e,n)}),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=d(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){(e=e.classList).remove.apply(e,n)}),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=d(t.map(function(e){return e.split(" ")}));return 0<h(this,function(t){return 0<n.filter(function(e){return t.classList.contains(e)}).length}).length},toggleClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=d(t.map(function(e){return e.split(" ")}));this.forEach(function(t){n.forEach(function(e){t.classList.toggle(e)})})},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(var n in e)this[i][n]=e[n],this[i].setAttribute(n,e[n]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?e+"ms":e;return this},on:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t[0],s=t[1],r=t[2],o=t[3];function a(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),C(t).is(s))r.apply(t,i);else for(var n=C(t).parents(),o=0;o<n.length;o+=1)C(n[o]).is(s)&&r.apply(n[o],i)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof t[1]&&(n=t[0],r=t[1],o=t[2],s=void 0);for(var c,o=o||!1,u=n.split(" "),d=0;d<this.length;d+=1){var h=this[d];if(s)for(c=0;c<u.length;c+=1){var p=u[c];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[p]||(h.dom7LiveListeners[p]=[]),h.dom7LiveListeners[p].push({listener:r,proxyListener:a}),h.addEventListener(p,a,o)}else for(c=0;c<u.length;c+=1){var f=u[c];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[f]||(h.dom7Listeners[f]=[]),h.dom7Listeners[f].push({listener:r,proxyListener:l}),h.addEventListener(f,l,o)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t[0],o=t[1],s=t[2],r=t[3];"function"==typeof t[1]&&(n=t[0],s=t[1],r=t[2],o=void 0);for(var r=r||!1,a=n.split(" "),l=0;l<a.length;l+=1)for(var c=a[l],u=0;u<this.length;u+=1){var d=this[u],h=void 0;if(!o&&d.dom7Listeners?h=d.dom7Listeners[c]:o&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[c]),h&&h.length)for(var p=h.length-1;0<=p;--p){var f=h[p];(!s||f.listener!==s)&&!(s&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===s)&&s||(d.removeEventListener(c,f.proxyListener,r),h.splice(p,1))}}return this},trigger:function(){for(var e=X(),t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];for(var o=i[0].split(" "),s=i[1],r=0;r<o.length;r+=1)for(var a=o[r],l=0;l<this.length;l+=1){var c,u=this[l];e.CustomEvent&&(c=new e.CustomEvent(a,{detail:s,bubbles:!0,cancelable:!0}),u.dom7EventData=i.filter(function(e,t){return 0<t}),u.dispatchEvent(c),u.dom7EventData=[],delete u.dom7EventData)}return this},transitionEnd:function(i){var n=this;return i&&n.on("transitionend",function e(t){t.target===this&&(i.call(this,t),n.off("transitionend",e))}),this},outerWidth:function(e){if(0<this.length){if(e){e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(0<this.length){if(e){e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=X();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(0<this.length){var e=X(),t=y(),i=this[0],n=i.getBoundingClientRect(),o=t.body,s=i.clientTop||o.clientTop||0,t=i.clientLeft||o.clientLeft||0,o=i===e?e.scrollY:i.scrollTop,i=i===e?e.scrollX:i.scrollLeft;return{top:n.top+o-s,left:n.left+i-t}}return null},css:function(e,t){var i,n=X();if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var o in e)this[i].style[o]=e[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(2!==arguments.length||"string"!=typeof e)return this;for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this},each:function(i){return i&&this.forEach(function(e,t){i.apply(e,[e,t])}),this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,i,n=X(),o=y(),s=this[0];if(!s||void 0===e)return!1;if("string"==typeof e){if(s.matches)return s.matches(e);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(e);if(s.msMatchesSelector)return s.msMatchesSelector(e);for(t=C(e),i=0;i<t.length;i+=1)if(t[i]===s)return!0;return!1}if(e===o)return s===o;if(e===n)return s===n;if(e.nodeType||e instanceof u){for(t=e.nodeType?[e]:e,i=0;i<t.length;i+=1)if(t[i]===s)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t=this.length;if(t-1<e)return C([]);if(e<0){t=t+e;return t<0?C([]):C([this[t]])}return C([this[e]])},append:function(){for(var e=y(),t=0;t<arguments.length;t+=1)for(var i=t<0||arguments.length<=t?void 0:arguments[t],n=0;n<this.length;n+=1)if("string"==typeof i){var o=e.createElement("div");for(o.innerHTML=i;o.firstChild;)this[n].appendChild(o.firstChild)}else if(i instanceof u)for(var s=0;s<i.length;s+=1)this[n].appendChild(i[s]);else this[n].appendChild(i);return this},prepend:function(e){for(var t,i=y(),n=0;n<this.length;n+=1)if("string"==typeof e){var o=i.createElement("div");for(o.innerHTML=e,t=o.childNodes.length-1;0<=t;--t)this[n].insertBefore(o.childNodes[t],this[n].childNodes[0])}else if(e instanceof u)for(t=0;t<e.length;t+=1)this[n].insertBefore(e[t],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this},next:function(e){return 0<this.length?e?this[0].nextElementSibling&&C(this[0].nextElementSibling).is(e)?C([this[0].nextElementSibling]):C([]):this[0].nextElementSibling?C([this[0].nextElementSibling]):C([]):C([])},nextAll:function(e){var t=[],i=this[0];if(!i)return C([]);for(;i.nextElementSibling;){var n=i.nextElementSibling;(!e||C(n).is(e))&&t.push(n),i=n}return C(t)},prev:function(e){if(0<this.length){var t=this[0];return e?t.previousElementSibling&&C(t.previousElementSibling).is(e)?C([t.previousElementSibling]):C([]):t.previousElementSibling?C([t.previousElementSibling]):C([])}return C([])},prevAll:function(e){var t=[],i=this[0];if(!i)return C([]);for(;i.previousElementSibling;){var n=i.previousElementSibling;(!e||C(n).is(e))&&t.push(n),i=n}return C(t)},parent:function(e){for(var t=[],i=0;i<this.length;i+=1)null===this[i].parentNode||e&&!C(this[i].parentNode).is(e)||t.push(this[i].parentNode);return C(t)},parents:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].parentNode;n;)e&&!C(n).is(e)||t.push(n),n=n.parentNode;return C(t)},closest:function(e){var t=this;return void 0===e?C([]):t.is(e)?t:t.parents(e).eq(0)},find:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(e),o=0;o<n.length;o+=1)t.push(n[o]);return C(t)},children:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].children,o=0;o<n.length;o+=1)e&&!C(n[o]).is(e)||t.push(n[o]);return C(t)},filter:function(e){return C(h(this,e))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};function S(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function k(){return Date.now()}function v(e,t){void 0===t&&(t="x");var i,n,o,s=X(),e=s.getComputedStyle(e,null);return s.WebKitCSSMatrix?(6<(n=e.transform||e.webkitTransform).split(",").length&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),o=new s.WebKitCSSMatrix("none"===n?"":n)):i=(o=e.MozTransform||e.OTransform||e.MsTransform||e.msTransform||e.transform||e.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(n=s.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),(n="y"===t?s.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5]):n)||0}function _(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function K(e){for(var t=Object(arguments.length<=0?void 0:e),i=1;i<arguments.length;i+=1){var n=i<0||arguments.length<=i?void 0:arguments[i];if(null!=n)for(var o=Object.keys(Object(n)),s=0,r=o.length;s<r;s+=1){var a=o[s],l=Object.getOwnPropertyDescriptor(n,a);void 0!==l&&l.enumerable&&(_(t[a])&&_(n[a])?K(t[a],n[a]):!_(t[a])&&_(n[a])?(t[a]={},K(t[a],n[a])):t[a]=n[a])}}return t}function b(i,n){Object.keys(n).forEach(function(t){_(n[t])&&Object.keys(n[t]).forEach(function(e){"function"==typeof n[t][e]&&(n[t][e]=n[t][e].bind(i))}),i[t]=n[t]})}function w(){var i,e;return p||(i=X(),e=y(),p={touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch),pointerEvents:!!i.PointerEvent&&"maxTouchPoints"in i.navigator&&0<=i.navigator.maxTouchPoints,observer:"MutationObserver"in i||"WebkitMutationObserver"in i,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});i.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in i}),p}function x(e){var t,i,n,o,s,r,a,l,c,u;return void 0===e&&(e={}),f||(i=(void 0===(t=e)?{}:t).userAgent,n=w(),o=(u=X()).navigator.platform,s=i||u.navigator.userAgent,r={ios:!1,android:!1},a=u.screen.width,l=u.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/),e=s.match(/(iPad).*OS\s([\d_]+)/),t=s.match(/(iPod)(.*OS\s([\d_]+))?/),i=!e&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u="Win32"===o,o="MacIntel"===o,!e&&o&&n.touch&&0<=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(a+"x"+l)&&(e=(e=s.match(/(Version)\/([\d.]+)/))||[0,1,"13_0_0"],o=!1),c&&!u&&(r.os="android",r.android=!0),(e||i||t)&&(r.os="ios",r.ios=!0),f=r),f}function T(){var e,t;return m||(t=X(),m={isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:0<=(e=t.navigator.userAgent.toLowerCase()).indexOf("safari")&&e.indexOf("chrome")<0&&e.indexOf("android")<0,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}),m}Object.keys(g).forEach(function(e){C.fn[e]=g[e]});var E={name:"resize",create:function(){var e=this;K(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=X();t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(e){var t=X();t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},L={attach:function(e,t){void 0===t&&(t={});var i=X(),n=this,o=new(i.MutationObserver||i.WebkitMutationObserver)(function(e){var t;1!==e.length?(t=function(){n.emit("observerUpdate",e[0])},i.requestAnimationFrame?i.requestAnimationFrame(t):i.setTimeout(t,0)):n.emit("observerUpdate",e[0])});o.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.observer.observers.push(o)},init:function(){var e=this;if(e.support.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),i=0;i<t.length;i+=1)e.observer.attach(t[i]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(e){e.disconnect()}),this.observer.observers=[]}},P={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){b(this,{observer:e({},L,{observers:[]})})},on:{init:function(e){e.observer.init()},destroy:function(e){e.observer.destroy()}}};function A(){var e,t,i=this,n=i.params,o=i.el;o&&0===o.offsetWidth||(n.breakpoints&&i.setBreakpoint(),e=i.allowSlideNext,t=i.allowSlidePrev,o=i.snapGrid,i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses(),("auto"===n.slidesPerView||1<n.slidesPerView)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides?i.slideTo(i.slides.length-1,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.run(),i.allowSlidePrev=t,i.allowSlideNext=e,i.params.watchOverflow&&o!==i.snapGrid&&i.checkOverflow())}var M=!1;function O(){}var I={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,nested:!1,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1},z={modular:{useParams:function(t){var i=this;i.modules&&Object.keys(i.modules).forEach(function(e){e=i.modules[e];e.params&&K(t,e.params)})},useModules:function(i){void 0===i&&(i={});var n=this;n.modules&&Object.keys(n.modules).forEach(function(e){var t=n.modules[e],e=i[e]||{};t.on&&n.on&&Object.keys(t.on).forEach(function(e){n.on(e,t.on[e])}),t.create&&t.create.bind(n)(e)})}},eventsEmitter:{on:function(e,t,i){var n=this;if("function"!=typeof t)return n;var o=i?"unshift":"push";return e.split(" ").forEach(function(e){n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][o](t)}),n},once:function(n,o,e){var s=this;return"function"!=typeof o?s:(r.__emitterProxy=o,s.on(n,r,e));function r(){s.off(n,r),r.__emitterProxy&&delete r.__emitterProxy;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];o.apply(s,t)}},onAny:function(e,t){if("function"!=typeof e)return this;t=t?"unshift":"push";return this.eventsAnyListeners.indexOf(e)<0&&this.eventsAnyListeners[t](e),this},offAny:function(e){if(!this.eventsAnyListeners)return this;e=this.eventsAnyListeners.indexOf(e);return 0<=e&&this.eventsAnyListeners.splice(e,1),this},off:function(e,n){var o=this;return o.eventsListeners&&e.split(" ").forEach(function(i){void 0===n?o.eventsListeners[i]=[]:o.eventsListeners[i]&&o.eventsListeners[i].forEach(function(e,t){(e===n||e.__emitterProxy&&e.__emitterProxy===n)&&o.eventsListeners[i].splice(t,1)})}),o},emit:function(){var e,i,n,o=this;if(!o.eventsListeners)return o;for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return n="string"==typeof s[0]||Array.isArray(s[0])?(e=s[0],i=s.slice(1,s.length),o):(e=s[0].events,i=s[0].data,s[0].context||o),i.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(function(t){o.eventsAnyListeners&&o.eventsAnyListeners.length&&o.eventsAnyListeners.forEach(function(e){e.apply(n,[t].concat(i))}),o.eventsListeners&&o.eventsListeners[t]&&o.eventsListeners[t].forEach(function(e){e.apply(n,i)})}),o}},update:{updateSize:function(){var e=this,t=e.$el,i=void 0!==e.params.width&&null!==e.params.width?e.params.width:t[0].clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:t[0].clientHeight;0===i&&e.isHorizontal()||0===n&&e.isVertical()||(i=i-parseInt(t.css("padding-left")||0,10)-parseInt(t.css("padding-right")||0,10),n=n-parseInt(t.css("padding-top")||0,10)-parseInt(t.css("padding-bottom")||0,10),K(e,{width:i=Number.isNaN(i)?0:i,height:n=Number.isNaN(n)?0:n,size:e.isHorizontal()?i:n}))},updateSlides:function(){var e=this,t=X(),i=e.params,n=e.$wrapperEl,o=e.size,s=e.rtlTranslate,r=e.wrongRTL,a=((y=e.virtual&&i.virtual.enabled)?e.virtual:e).slides.length,l=n.children("."+e.params.slideClass),c=(y?e.virtual.slides:l).length,u=[],d=[],h=[];function p(e,t){return!i.cssMode||t!==l.length-1}var f=i.slidesOffsetBefore;"function"==typeof f&&(f=i.slidesOffsetBefore.call(e));var m=i.slidesOffsetAfter;"function"==typeof m&&(m=i.slidesOffsetAfter.call(e));var g,v=e.snapGrid.length,y=e.slidesGrid.length,_=i.spaceBetween,b=-f,w=0,x=0;if(void 0!==o){"string"==typeof _&&0<=_.indexOf("%")&&(_=parseFloat(_.replace("%",""))/100*o),e.virtualSize=-_,s?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),1<i.slidesPerColumn&&(g=Math.floor(c/i.slidesPerColumn)===c/e.params.slidesPerColumn?c:Math.ceil(c/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(g=Math.max(g,i.slidesPerView*i.slidesPerColumn)));for(var T,C,S,k,E=i.slidesPerColumn,L=g/E,P=Math.floor(c/i.slidesPerColumn),A=0;A<c;A+=1){N=0;var M,O,I,z,D,N,B,$,j,R,H,F,q,W=l.eq(A);1<i.slidesPerColumn&&(D=z=I=void 0,"row"===i.slidesPerColumnFill&&1<i.slidesPerGroup?(O=Math.floor(A/(i.slidesPerGroup*i.slidesPerColumn)),M=A-i.slidesPerColumn*i.slidesPerGroup*O,F=0===O?i.slidesPerGroup:Math.min(Math.ceil((c-O*E*i.slidesPerGroup)/E),i.slidesPerGroup),z=M-(D=Math.floor(M/F))*F+O*i.slidesPerGroup,W.css({"-webkit-box-ordinal-group":I=z+D*g/E,"-moz-box-ordinal-group":I,"-ms-flex-order":I,"-webkit-order":I,order:I})):"column"===i.slidesPerColumnFill?(D=A-(z=Math.floor(A/E))*E,(P<z||z===P&&D===E-1)&&E<=(D+=1)&&(D=0,z+=1)):z=A-(D=Math.floor(A/L))*L,W.css("margin-"+(e.isHorizontal()?"top":"left"),0!==D&&i.spaceBetween&&i.spaceBetween+"px")),"none"!==W.css("display")&&("auto"===i.slidesPerView?(F=t.getComputedStyle(W[0],null),O=W[0].style.transform,I=W[0].style.webkitTransform,O&&(W[0].style.transform="none"),I&&(W[0].style.webkitTransform="none"),N=i.roundLengths?e.isHorizontal()?W.outerWidth(!0):W.outerHeight(!0):e.isHorizontal()?(z=parseFloat(F.getPropertyValue("width")||0),B=parseFloat(F.getPropertyValue("padding-left")||0),$=parseFloat(F.getPropertyValue("padding-right")||0),j=parseFloat(F.getPropertyValue("margin-left")||0),R=parseFloat(F.getPropertyValue("margin-right")||0),(D=F.getPropertyValue("box-sizing"))&&"border-box"===D?z+j+R:(q=(H=W[0]).clientWidth,z+B+$+j+R+(H.offsetWidth-q))):(B=parseFloat(F.getPropertyValue("height")||0),$=parseFloat(F.getPropertyValue("padding-top")||0),j=parseFloat(F.getPropertyValue("padding-bottom")||0),R=parseFloat(F.getPropertyValue("margin-top")||0),H=parseFloat(F.getPropertyValue("margin-bottom")||0),(q=F.getPropertyValue("box-sizing"))&&"border-box"===q?B+R+H:(q=(F=W[0]).clientHeight,B+$+j+R+H+(F.offsetHeight-q))),O&&(W[0].style.transform=O),I&&(W[0].style.webkitTransform=I),i.roundLengths&&(N=Math.floor(N))):(N=(o-(i.slidesPerView-1)*_)/i.slidesPerView,i.roundLengths&&(N=Math.floor(N)),l[A]&&(e.isHorizontal()?l[A].style.width=N+"px":l[A].style.height=N+"px")),l[A]&&(l[A].swiperSlideSize=N),h.push(N),i.centeredSlides?(b=b+N/2+w/2+_,0===w&&0!==A&&(b=b-o/2-_),0===A&&(b=b-o/2-_),Math.abs(b)<.001&&(b=0),i.roundLengths&&(b=Math.floor(b)),x%i.slidesPerGroup==0&&u.push(b),d.push(b)):(i.roundLengths&&(b=Math.floor(b)),(x-Math.min(e.params.slidesPerGroupSkip,x))%e.params.slidesPerGroup==0&&u.push(b),d.push(b),b=b+N+_),e.virtualSize+=N+_,w=N,x+=1)}if(e.virtualSize=Math.max(e.virtualSize,o)+m,s&&r&&("slide"===i.effect||"coverflow"===i.effect)&&n.css({width:e.virtualSize+i.spaceBetween+"px"}),i.setWrapperSize&&(e.isHorizontal()?n.css({width:e.virtualSize+i.spaceBetween+"px"}):n.css({height:e.virtualSize+i.spaceBetween+"px"})),1<i.slidesPerColumn&&(e.virtualSize=(N+i.spaceBetween)*g,e.virtualSize=Math.ceil(e.virtualSize/i.slidesPerColumn)-i.spaceBetween,e.isHorizontal()?n.css({width:e.virtualSize+i.spaceBetween+"px"}):n.css({height:e.virtualSize+i.spaceBetween+"px"}),i.centeredSlides)){for(var U=[],V=0;V<u.length;V+=1){var G=u[V];i.roundLengths&&(G=Math.floor(G)),u[V]<e.virtualSize+u[0]&&U.push(G)}u=U}if(!i.centeredSlides){U=[];for(var Z=0;Z<u.length;Z+=1){var Y=u[Z];i.roundLengths&&(Y=Math.floor(Y)),u[Z]<=e.virtualSize-o&&U.push(Y)}u=U,1<Math.floor(e.virtualSize-o)-Math.floor(u[u.length-1])&&u.push(e.virtualSize-o)}0===u.length&&(u=[0]),0!==i.spaceBetween&&(e.isHorizontal()?s?l.filter(p).css({marginLeft:_+"px"}):l.filter(p).css({marginRight:_+"px"}):l.filter(p).css({marginBottom:_+"px"})),i.centeredSlides&&i.centeredSlidesBounds&&(T=0,h.forEach(function(e){T+=e+(i.spaceBetween||0)}),C=(T-=i.spaceBetween)-o,u=u.map(function(e){return e<0?-f:C<e?C+m:e})),i.centerInsufficientSlides&&(S=0,h.forEach(function(e){S+=e+(i.spaceBetween||0)}),(S-=i.spaceBetween)<o&&(k=(o-S)/2,u.forEach(function(e,t){u[t]=e-k}),d.forEach(function(e,t){d[t]=e+k}))),K(e,{slides:l,snapGrid:u,slidesGrid:d,slidesSizesGrid:h}),c!==a&&e.emit("slidesLengthChange"),u.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),d.length!==y&&e.emit("slidesGridLengthChange"),(i.watchSlidesProgress||i.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,i,n=this,o=[],s=0;if("number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed),"auto"!==n.params.slidesPerView&&1<n.params.slidesPerView)if(n.params.centeredSlides)n.visibleSlides.each(function(e){o.push(e)});else for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var r=n.activeIndex+t;if(r>n.slides.length)break;o.push(n.slides.eq(r)[0])}else o.push(n.slides.eq(n.activeIndex)[0]);for(t=0;t<o.length;t+=1)void 0!==o[t]&&(s=s<(i=o[t].offsetHeight)?i:s);s&&n.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this,i=t.params,n=t.slides,o=t.rtlTranslate;if(0!==n.length){void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();var s=o?e:-e;n.removeClass(i.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var r=0;r<n.length;r+=1){var a,l,c=n[r],u=(s+(i.centeredSlides?t.minTranslate():0)-c.swiperSlideOffset)/(c.swiperSlideSize+i.spaceBetween);(i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&(l=(a=-(s-c.swiperSlideOffset))+t.slidesSizesGrid[r],(0<=a&&a<t.size-1||1<l&&l<=t.size||a<=0&&l>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(r),n.eq(r).addClass(i.slideVisibleClass))),c.progress=o?-u:u}t.visibleSlides=C(t.visibleSlides)}},updateProgress:function(e){var t=this;void 0===e&&(a=t.rtlTranslate?-1:1,e=t&&t.translate&&t.translate*a||0);var i=t.params,n=t.maxTranslate()-t.minTranslate(),o=t.progress,s=t.isBeginning,r=s,a=l=t.isEnd,l=0==n?s=!(o=0):(s=(o=(e-t.minTranslate())/n)<=0,1<=o);K(t,{progress:o,isBeginning:s,isEnd:l}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),s&&!r&&t.emit("reachBeginning toEdge"),l&&!a&&t.emit("reachEnd toEdge"),(r&&!s||a&&!l)&&t.emit("fromEdge"),t.emit("progress",o)},updateSlidesClasses:function(){var e=this.slides,t=this.params,i=this.$wrapperEl,n=this.activeIndex,o=this.realIndex,s=this.virtual&&t.virtual.enabled;e.removeClass(t.slideActiveClass+" "+t.slideNextClass+" "+t.slidePrevClass+" "+t.slideDuplicateActiveClass+" "+t.slideDuplicateNextClass+" "+t.slideDuplicatePrevClass),(n=s?this.$wrapperEl.find("."+t.slideClass+'[data-swiper-slide-index="'+n+'"]'):e.eq(n)).addClass(t.slideActiveClass),t.loop&&(n.hasClass(t.slideDuplicateClass)?i.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+o+'"]'):i.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+o+'"]')).addClass(t.slideDuplicateActiveClass),o=n.nextAll("."+t.slideClass).eq(0).addClass(t.slideNextClass),t.loop&&0===o.length&&(o=e.eq(0)).addClass(t.slideNextClass),n=n.prevAll("."+t.slideClass).eq(0).addClass(t.slidePrevClass),t.loop&&0===n.length&&(n=e.eq(-1)).addClass(t.slidePrevClass),t.loop&&((o.hasClass(t.slideDuplicateClass)?i.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]'):i.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]')).addClass(t.slideDuplicateNextClass),(n.hasClass(t.slideDuplicateClass)?i.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+n.attr("data-swiper-slide-index")+'"]'):i.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+n.attr("data-swiper-slide-index")+'"]')).addClass(t.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){var t=this,i=t.rtlTranslate?t.translate:-t.translate,n=t.slidesGrid,o=t.snapGrid,s=t.params,r=t.activeIndex,a=t.realIndex,l=t.snapIndex,c=e;if(void 0===c){for(var u=0;u<n.length;u+=1)void 0!==n[u+1]?i>=n[u]&&i<n[u+1]-(n[u+1]-n[u])/2?c=u:i>=n[u]&&i<n[u+1]&&(c=u+1):i>=n[u]&&(c=u);s.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}(s=0<=o.indexOf(i)?o.indexOf(i):(e=Math.min(s.slidesPerGroupSkip,c))+Math.floor((c-e)/s.slidesPerGroup))>=o.length&&(s=o.length-1),c!==r?(o=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10),K(t,{snapIndex:s,realIndex:o,previousIndex:r,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==o&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")):s!==l&&(t.snapIndex=s,t.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this,i=t.params,n=C(e.target).closest("."+i.slideClass)[0],o=!1;if(n)for(var s=0;s<t.slides.length;s+=1)t.slides[s]===n&&(o=!0);if(!n||!o)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=n,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(C(n).attr("data-swiper-slide-index"),10):t.clickedIndex=C(n).index(),i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,i=this.rtlTranslate,n=this.translate,o=this.$wrapperEl;return t.virtualTranslate?i?-n:n:t.cssMode?n:(e=v(o[0],e),(e=i?-e:e)||0)},setTranslate:function(e,t){var i=this,n=i.rtlTranslate,o=i.params,s=i.$wrapperEl,r=i.wrapperEl,a=i.progress,l=0,c=0;i.isHorizontal()?l=n?-e:e:c=e,o.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),o.cssMode?r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:o.virtualTranslate||s.transform("translate3d("+l+"px, "+c+"px, 0px)"),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,(0==(c=i.maxTranslate()-i.minTranslate())?0:(e-i.minTranslate())/c)!==a&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,n,o){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);var s=this,r=s.params,a=s.wrapperEl;if(s.animating&&r.preventInteractionOnTransition)return!1;var l=s.minTranslate(),c=s.maxTranslate(),c=n&&l<e?l:n&&e<c?c:e;if(s.updateProgress(c),r.cssMode){e=s.isHorizontal();return 0!==t&&a.scrollTo?a.scrollTo(((r={})[e?"left":"top"]=-c,r.behavior="smooth",r)):a[e?"scrollLeft":"scrollTop"]=-c,!0}return 0===t?(s.setTransition(0),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,i&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,n=this.params,o=this.previousIndex;n.cssMode||(n.autoHeight&&this.updateAutoHeight(),t=(t=t)||(o<i?"next":i<o?"prev":"reset"),this.emit("transitionStart"),e&&i!==o&&("reset"!==t?(this.emit("slideChangeTransitionStart"),"next"===t?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")):this.emit("slideResetTransitionStart")))},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,o=i.previousIndex,s=i.params;i.animating=!1,s.cssMode||(i.setTransition(0),t=(t=t)||(o<n?"next":n<o?"prev":"reset"),i.emit("transitionEnd"),e&&n!==o&&("reset"!==t?(i.emit("slideChangeTransitionEnd"),"next"===t?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")):i.emit("slideResetTransitionEnd")))}},slide:{slideTo:function(e,t,i,n){if(void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),"number"!=typeof(e=void 0===e?0:e)&&"string"!=typeof e)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof e+"] given.");if("string"==typeof e){var o=parseInt(e,10);if(!isFinite(o))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+e+"] given.");e=o}var s=this,r=e;r<0&&(r=0);var a=s.params,l=s.snapGrid,c=s.slidesGrid,u=s.previousIndex,d=s.activeIndex,h=s.rtlTranslate,o=s.wrapperEl;if(s.animating&&a.preventInteractionOnTransition)return!1;e=Math.min(s.params.slidesPerGroupSkip,r),(e+=Math.floor((r-e)/s.params.slidesPerGroup))>=l.length&&(e=l.length-1),(d||a.initialSlide||0)===(u||0)&&i&&s.emit("beforeSlideChangeStart");var p,f=-l[e];if(s.updateProgress(f),a.normalizeSlideIndex)for(var m=0;m<c.length;m+=1)-Math.floor(100*f)>=Math.floor(100*c[m])&&(r=m);if(s.initialized&&r!==d){if(!s.allowSlideNext&&f<s.translate&&f<s.minTranslate())return!1;if(!s.allowSlidePrev&&f>s.translate&&f>s.maxTranslate()&&(d||0)!==r)return!1}if(p=d<r?"next":r<d?"prev":"reset",h&&-f===s.translate||!h&&f===s.translate)return s.updateActiveIndex(r),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==a.effect&&s.setTranslate(f),"reset"!==p&&(s.transitionStart(i,p),s.transitionEnd(i,p)),!1;if(a.cssMode){d=s.isHorizontal(),a=-f;return h&&(a=o.scrollWidth-o.offsetWidth-a),0!==t&&o.scrollTo?o.scrollTo(((h={})[d?"left":"top"]=a,h.behavior="smooth",h)):o[d?"scrollLeft":"scrollTop"]=a,!0}return 0===t?(s.setTransition(0),s.setTranslate(f),s.updateActiveIndex(r),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,n),s.transitionStart(i,p),s.transitionEnd(i,p)):(s.setTransition(t),s.setTranslate(f),s.updateActiveIndex(r),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,n),s.transitionStart(i,p),s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,p))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e,t,i,n){return void 0===t&&(t=this.params.speed),e=void 0===e?0:e,this.params.loop&&(e+=this.loopedSlides),this.slideTo(e,t,i=void 0===i?!0:i,n)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this.params,o=this.animating,s=this.activeIndex<n.slidesPerGroupSkip?1:n.slidesPerGroup;if(n.loop){if(o&&n.loopPreventsSlide)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}return this.slideTo(this.activeIndex+s,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,o=n.params,s=n.animating,r=n.snapGrid,a=n.slidesGrid,l=n.rtlTranslate;if(o.loop){if(s&&o.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var u,d=c(l?n.translate:-n.translate),l=r.map(c),h=(r[l.indexOf(d)],r[l.indexOf(d)-1]);return void 0===h&&o.cssMode&&r.forEach(function(e){!h&&e<=d&&(h=e)}),void 0!==h&&(u=a.indexOf(h))<0&&(u=n.activeIndex-1),n.slideTo(u,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t=void 0===t?!0:t,i)},slideToClosest:function(e,t,i,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===n&&(n=.5);var o=this,s=o.activeIndex,r=Math.min(o.params.slidesPerGroupSkip,s),a=r+Math.floor((s-r)/o.params.slidesPerGroup),l=o.rtlTranslate?o.translate:-o.translate;return l>=o.snapGrid[a]?(r=o.snapGrid[a],(o.snapGrid[a+1]-r)*n<l-r&&(s+=o.params.slidesPerGroup)):l-(l=o.snapGrid[a-1])<=(o.snapGrid[a]-l)*n&&(s-=o.params.slidesPerGroup),s=Math.max(s,0),s=Math.min(s,o.slidesGrid.length-1),o.slideTo(s,e,t,i)},slideToClickedSlide:function(){var e,t=this,i=t.params,n=t.$wrapperEl,o="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,s=t.clickedIndex;i.loop?t.animating||(e=parseInt(C(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?s<t.loopedSlides-o/2||s>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),s=n.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),S(function(){t.slideTo(s)})):t.slideTo(s):s>t.slides.length-o?(t.loopFix(),s=n.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),S(function(){t.slideTo(s)})):t.slideTo(s)):t.slideTo(s)}},loop:{loopCreate:function(){var n=this,e=y(),t=n.params,i=n.$wrapperEl;i.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var o=i.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var s=t.slidesPerGroup-o.length%t.slidesPerGroup;if(s!==t.slidesPerGroup){for(var r=0;r<s;r+=1){var a=C(e.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);i.append(a)}o=i.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=o.length),n.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),n.loopedSlides+=t.loopAdditionalSlides,n.loopedSlides>o.length&&(n.loopedSlides=o.length);var l=[],c=[];o.each(function(e,t){var i=C(e);t<n.loopedSlides&&c.push(e),t<o.length&&t>=o.length-n.loopedSlides&&l.push(e),i.attr("data-swiper-slide-index",t)});for(var u=0;u<c.length;u+=1)i.append(C(c[u].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var d=l.length-1;0<=d;--d)i.prepend(C(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t=e.activeIndex,i=e.slides,n=e.loopedSlides,o=e.allowSlidePrev,s=e.allowSlideNext,r=e.snapGrid,a=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var l,r=-r[t]-e.getTranslate();t<n?(l=i.length-3*n+t,e.slideTo(l+=n,0,!1,!0)&&0!=r&&e.setTranslate((a?-e.translate:e.translate)-r)):t>=i.length-n&&(l=-i.length+t+n,e.slideTo(l+=n,0,!1,!0)&&0!=r&&e.setTranslate((a?-e.translate:e.translate)-r)),e.allowSlidePrev=o,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){var t;this.support.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||((t=this.el).style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab")},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}},manipulation:{appendSlide:function(e){var t=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&t.append(e[n]);else t.append(e);i.loop&&this.loopCreate(),i.observer&&this.support.observer||this.update()},prependSlide:function(e){var t=this.params,i=this.$wrapperEl,n=this.activeIndex;t.loop&&this.loopDestroy();var o=n+1;if("object"==typeof e&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&i.prepend(e[s]);o=n+e.length}else i.prepend(e);t.loop&&this.loopCreate(),t.observer&&this.support.observer||this.update(),this.slideTo(o,0,!1)},addSlide:function(e,t){var i=this,n=i.$wrapperEl,o=i.params,s=i.activeIndex;o.loop&&(s-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+o.slideClass));var r=i.slides.length;if(e<=0)i.prependSlide(t);else if(r<=e)i.appendSlide(t);else{for(var a=e<s?s+1:s,l=[],c=r-1;e<=c;--c){var u=i.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof t&&"length"in t){for(var d=0;d<t.length;d+=1)t[d]&&n.append(t[d]);a=e<s?s+t.length:s}else n.append(t);for(var h=0;h<l.length;h+=1)n.append(l[h]);o.loop&&i.loopCreate(),o.observer&&i.support.observer||i.update(),o.loop?i.slideTo(a+i.loopedSlides,0,!1):i.slideTo(a,0,!1)}},removeSlide:function(e){var t=this,i=t.params,n=t.$wrapperEl,o=t.activeIndex;i.loop&&(o-=t.loopedSlides,t.loopDestroy(),t.slides=n.children("."+i.slideClass));var s,r=o;if("object"==typeof e&&"length"in e){for(var a=0;a<e.length;a+=1)s=e[a],t.slides[s]&&t.slides.eq(s).remove(),s<r&&--r;r=Math.max(r,0)}else t.slides[s=e]&&t.slides.eq(s).remove(),s<r&&--r,r=Math.max(r,0);i.loop&&t.loopCreate(),i.observer&&t.support.observer||t.update(),i.loop?t.slideTo(r+t.loopedSlides,0,!1):t.slideTo(r,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},events:{attachEvents:function(){var e=this,t=y(),i=e.params,n=e.touchEvents,o=e.el,s=e.wrapperEl,r=e.device,a=e.support;e.onTouchStart=function(e){var t,i,n,o,s,r=this,a=y(),l=X(),c=r.touchEventsData,u=r.params,d=r.touches;r.animating&&u.preventInteractionOnTransition||(i=C((t=(t=e).originalEvent?t.originalEvent:t).target),"wrapper"===u.touchEventsTarget&&!i.closest(r.wrapperEl).length||(c.isTouchEvent="touchstart"===t.type,!c.isTouchEvent&&"which"in t&&3===t.which||!c.isTouchEvent&&"button"in t&&0<t.button||c.isTouched&&c.isMoved||(!!u.noSwipingClass&&""!==u.noSwipingClass&&t.target&&t.target.shadowRoot&&e.path&&e.path[0]&&(i=C(e.path[0])),u.noSwiping&&i.closest(u.noSwipingSelector||"."+u.noSwipingClass)[0]?r.allowClick=!0:u.swipeHandler&&!i.closest(u.swipeHandler)[0]||(d.currentX=("touchstart"===t.type?t.targetTouches[0]:t).pageX,d.currentY=("touchstart"===t.type?t.targetTouches[0]:t).pageY,n=d.currentX,s=d.currentY,o=u.edgeSwipeDetection||u.iOSEdgeSwipeDetection,e=u.edgeSwipeThreshold||u.iOSEdgeSwipeThreshold,o&&(n<=e||n>=l.innerWidth-e)||(K(c,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=n,d.startY=s,c.touchStartTime=k(),r.allowClick=!0,r.updateSize(),r.swipeDirection=void 0,0<u.threshold&&(c.allowThresholdMove=!1),"touchstart"!==t.type&&(s=!0,i.is(c.formElements)&&(s=!1),a.activeElement&&C(a.activeElement).is(c.formElements)&&a.activeElement!==i[0]&&a.activeElement.blur(),s=s&&r.allowTouchMove&&u.touchStartPreventDefault,!u.touchStartForcePreventDefault&&!s||i[0].isContentEditable||t.preventDefault()),r.emit("touchStart",t))))))}.bind(e),e.onTouchMove=function(e){var t=y(),i=this,n=i.touchEventsData,o=i.params,s=i.touches,r=i.rtlTranslate,a=e;if(a.originalEvent&&(a=a.originalEvent),n.isTouched){if(!n.isTouchEvent||"touchmove"===a.type){var l="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),e=("touchmove"===a.type?l:a).pageX,l=("touchmove"===a.type?l:a).pageY;if(a.preventedByNestedSwiper)return s.startX=e,void(s.startY=l);if(!i.allowTouchMove)return i.allowClick=!1,void(n.isTouched&&(K(s,{startX:e,startY:l,currentX:e,currentY:l}),n.touchStartTime=k()));if(n.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(i.isVertical()){if(l<s.startY&&i.translate<=i.maxTranslate()||l>s.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(e<s.startX&&i.translate<=i.maxTranslate()||e>s.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&t.activeElement&&a.target===t.activeElement&&C(a.target).is(n.formElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",a),!(a.targetTouches&&1<a.targetTouches.length)){s.currentX=e,s.currentY=l;t=s.currentX-s.startX,e=s.currentY-s.startY;if(!(i.params.threshold&&Math.sqrt(Math.pow(t,2)+Math.pow(e,2))<i.params.threshold))if(void 0===n.isScrolling&&(i.isHorizontal()&&s.currentY===s.startY||i.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:25<=t*t+e*e&&(l=180*Math.atan2(Math.abs(e),Math.abs(t))/Math.PI,n.isScrolling=i.isHorizontal()?l>o.touchAngle:90-l>o.touchAngle)),n.isScrolling&&i.emit("touchMoveOpposite",a),void 0===n.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(n.startMoving=!0)),n.isScrolling)n.isTouched=!1;else if(n.startMoving){i.allowClick=!1,!o.cssMode&&a.cancelable&&a.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&a.stopPropagation(),n.isMoved||(o.loop&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!o.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",a)),i.emit("sliderMove",a),n.isMoved=!0;t=i.isHorizontal()?t:e;s.diff=t,t*=o.touchRatio,i.swipeDirection=0<(t=r?-t:t)?"prev":"next",n.currentTranslate=t+n.startTranslate;e=!0,r=o.resistanceRatio;if(o.touchReleaseOnEdges&&(r=0),0<t&&n.currentTranslate>i.minTranslate()?(e=!1,o.resistance&&(n.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+n.startTranslate+t,r))):t<0&&n.currentTranslate<i.maxTranslate()&&(e=!1,o.resistance&&(n.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-n.startTranslate-t,r))),e&&(a.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),0<o.threshold){if(!(Math.abs(t)>o.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,void(s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}o.followFinger&&!o.cssMode&&((o.freeMode||o.watchSlidesProgress||o.watchSlidesVisibility)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&(0===n.velocities.length&&n.velocities.push({position:s[i.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:s[i.isHorizontal()?"currentX":"currentY"],time:k()})),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}}}}else n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",a)}.bind(e),e.onTouchEnd=function(e){var t=this,i=t.touchEventsData,n=t.params,o=t.touches,s=t.rtlTranslate,r=t.$wrapperEl,a=t.slidesGrid,l=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=k(),e=d-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),e<300&&d-i.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),i.lastClickTime=k(),S(function(){t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===o.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=n.followFinger?s?t.translate:-t.translate:-i.currentTranslate,!n.cssMode)if(n.freeMode)if(u<-t.minTranslate())t.slideTo(t.activeIndex);else if(u>-t.maxTranslate())t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1);else{if(n.freeModeMomentum){1<i.velocities.length?(v=i.velocities.pop(),p=i.velocities.pop(),h=v.position-p.position,p=v.time-p.time,t.velocity=h/p,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(150<p||300<k()-v.time)&&(t.velocity=0)):t.velocity=0,t.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var h=1e3*n.freeModeMomentumRatio,p=t.velocity*h,f=t.translate+p;s&&(f=-f);var m,g,v=!1,p=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;if(f<t.maxTranslate())n.freeModeMomentumBounce?(f+t.maxTranslate()<-p&&(f=t.maxTranslate()-p),m=t.maxTranslate(),i.allowMomentumBounce=v=!0):f=t.maxTranslate(),n.loop&&n.centeredSlides&&(g=!0);else if(f>t.minTranslate())n.freeModeMomentumBounce?(f-t.minTranslate()>p&&(f=t.minTranslate()+p),m=t.minTranslate(),i.allowMomentumBounce=v=!0):f=t.minTranslate(),n.loop&&n.centeredSlides&&(g=!0);else if(n.freeModeSticky){for(var y,_=0;_<l.length;_+=1)if(l[_]>-f){y=_;break}f=-(f=Math.abs(l[y]-f)<Math.abs(l[y-1]-f)||"next"===t.swipeDirection?l[y]:l[y-1])}if(g&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)h=s?Math.abs((-f-t.translate)/t.velocity):Math.abs((f-t.translate)/t.velocity),n.freeModeSticky&&(h=(g=Math.abs((s?-f:f)-t.translate))<(s=t.slidesSizesGrid[t.activeIndex])?n.speed:g<2*s?1.5*n.speed:2.5*n.speed);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&v?(t.updateProgress(m),t.setTransition(h),t.setTranslate(f),t.transitionStart(!0,t.swipeDirection),t.animating=!0,r.transitionEnd(function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),setTimeout(function(){t.setTranslate(m),r.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(t.updateProgress(f),t.setTransition(h),t.setTranslate(f),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,r.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(f),t.updateActiveIndex(),t.updateSlidesClasses()}else if(n.freeModeSticky)return void t.slideToClosest();(!n.freeModeMomentum||e>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var b=0,w=t.slidesSizesGrid[0],x=0;x<a.length;x+=x<n.slidesPerGroupSkip?1:n.slidesPerGroup){var T=x<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==a[x+T]?u>=a[x]&&u<a[x+T]&&(w=a[(b=x)+T]-a[x]):u>=a[x]&&(b=x,w=a[a.length-1]-a[a.length-2])}v=(u-a[b])/w,h=b<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;e>n.longSwipesMs?n.longSwipes?("next"===t.swipeDirection&&(v>=n.longSwipesRatio?t.slideTo(b+h):t.slideTo(b)),"prev"===t.swipeDirection&&(v>1-n.longSwipesRatio?t.slideTo(b+h):t.slideTo(b))):t.slideTo(t.activeIndex):n.shortSwipes?t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(b+h):t.slideTo(b):("next"===t.swipeDirection&&t.slideTo(b+h),"prev"===t.swipeDirection&&t.slideTo(b)):t.slideTo(t.activeIndex)}}.bind(e),i.cssMode&&(e.onScroll=function(){var e=this,t=e.wrapperEl,i=e.rtlTranslate;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=i?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses(),(0==(t=e.maxTranslate()-e.minTranslate())?0:(e.translate-e.minTranslate())/t)!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}.bind(e)),e.onClick=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}.bind(e);var l,c=!!i.nested;!a.touch&&a.pointerEvents?(o.addEventListener(n.start,e.onTouchStart,!1),t.addEventListener(n.move,e.onTouchMove,c),t.addEventListener(n.end,e.onTouchEnd,!1)):(a.touch&&(l=!("touchstart"!==n.start||!a.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1},o.addEventListener(n.start,e.onTouchStart,l),o.addEventListener(n.move,e.onTouchMove,a.passiveListener?{passive:!1,capture:c}:c),o.addEventListener(n.end,e.onTouchEnd,l),n.cancel&&o.addEventListener(n.cancel,e.onTouchEnd,l),M||(t.addEventListener("touchstart",O),M=!0)),(i.simulateTouch&&!r.ios&&!r.android||i.simulateTouch&&!a.touch&&r.ios)&&(o.addEventListener("mousedown",e.onTouchStart,!1),t.addEventListener("mousemove",e.onTouchMove,c),t.addEventListener("mouseup",e.onTouchEnd,!1))),(i.preventClicks||i.preventClicksPropagation)&&o.addEventListener("click",e.onClick,!0),i.cssMode&&s.addEventListener("scroll",e.onScroll),i.updateOnWindowResize?e.on(r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",A,!0):e.on("observerUpdate",A,!0)},detachEvents:function(){var e,t=this,i=y(),n=t.params,o=t.touchEvents,s=t.el,r=t.wrapperEl,a=t.device,l=t.support,c=!!n.nested;!l.touch&&l.pointerEvents?(s.removeEventListener(o.start,t.onTouchStart,!1),i.removeEventListener(o.move,t.onTouchMove,c),i.removeEventListener(o.end,t.onTouchEnd,!1)):(l.touch&&(e=!("onTouchStart"!==o.start||!l.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1},s.removeEventListener(o.start,t.onTouchStart,e),s.removeEventListener(o.move,t.onTouchMove,c),s.removeEventListener(o.end,t.onTouchEnd,e),o.cancel&&s.removeEventListener(o.cancel,t.onTouchEnd,e)),(n.simulateTouch&&!a.ios&&!a.android||n.simulateTouch&&!l.touch&&a.ios)&&(s.removeEventListener("mousedown",t.onTouchStart,!1),i.removeEventListener("mousemove",t.onTouchMove,c),i.removeEventListener("mouseup",t.onTouchEnd,!1))),(n.preventClicks||n.preventClicksPropagation)&&s.removeEventListener("click",t.onClick,!0),n.cssMode&&r.removeEventListener("scroll",t.onScroll),t.off(a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",A)}},breakpoints:{setBreakpoint:function(){var e,i,t,n=this,o=n.activeIndex,s=n.initialized,r=n.loopedSlides,a=void 0===r?0:r,l=n.params,c=n.$el,u=l.breakpoints;!u||0===Object.keys(u).length||(e=n.getBreakpoint(u))&&n.currentBreakpoint!==e&&((i=e in u?u[e]:void 0)&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(e){var t=i[e];void 0!==t&&(i[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}),t=i||n.originalParams,r=1<l.slidesPerColumn,u=1<t.slidesPerColumn,r&&!u?(c.removeClass(l.containerModifierClass+"multirow "+l.containerModifierClass+"multirow-column"),n.emitContainerClasses()):!r&&u&&(c.addClass(l.containerModifierClass+"multirow"),"column"===t.slidesPerColumnFill&&c.addClass(l.containerModifierClass+"multirow-column"),n.emitContainerClasses()),c=t.direction&&t.direction!==l.direction,l=l.loop&&(t.slidesPerView!==l.slidesPerView||c),c&&s&&n.changeDirection(),K(n.params,t),K(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),n.currentBreakpoint=e,n.emit("_beforeBreakpoint",t),l&&s&&(n.loopDestroy(),n.loopCreate(),n.updateSlides(),n.slideTo(o-a+n.loopedSlides,0,!1)),n.emit("breakpoint",t))},getBreakpoint:function(e){var i=X();if(e){var t=!1,n=Object.keys(e).map(function(e){if("string"!=typeof e||0!==e.indexOf("@"))return{value:e,point:e};var t=parseFloat(e.substr(1));return{value:i.innerHeight*t,point:e}});n.sort(function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)});for(var o=0;o<n.length;o+=1){var s=n[o],r=s.point;s.value<=i.innerWidth&&(t=r)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.params,i=e.isLocked,n=0<e.slides.length&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&n?e.isLocked=n<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,i!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),i&&i!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:{addClasses:function(){var t=this.classNames,i=this.params,e=this.rtl,n=this.$el,o=this.device,s=[];s.push("initialized"),s.push(i.direction),i.freeMode&&s.push("free-mode"),i.autoHeight&&s.push("autoheight"),e&&s.push("rtl"),1<i.slidesPerColumn&&(s.push("multirow"),"column"===i.slidesPerColumnFill&&s.push("multirow-column")),o.android&&s.push("android"),o.ios&&s.push("ios"),i.cssMode&&s.push("css-mode"),s.forEach(function(e){t.push(i.containerModifierClass+e)}),n.addClass(t.join(" ")),this.emitContainerClasses()},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,i,n,o,s){var r=X();function a(){s&&s()}!(C(e).parent("picture")[0]||e.complete&&o)&&t?((r=new r.Image).onload=a,r.onerror=a,n&&(r.sizes=n),i&&(r.srcset=i),t&&(r.src=t)):a()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var n=e.imagesToLoad[i];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,t)}}}},D={},N=function(){function u(){for(var i,e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i=K({},i=(i=1===t.length&&t[0].constructor&&t[0].constructor===Object?t[0]:(r=t[0],t[1]))||{}),r&&!i.el&&(i.el=r);var o=this;o.support=w(),o.device=x({userAgent:i.userAgent}),o.browser=T(),o.eventsListeners={},o.eventsAnyListeners=[],void 0===o.modules&&(o.modules={}),Object.keys(o.modules).forEach(function(e){var t=o.modules[e];t.params&&(e=Object.keys(t.params)[0],"object"==typeof(t=t.params[e])&&null!==t&&e in i&&"enabled"in t&&(!0===i[e]&&(i[e]={enabled:!0}),"object"!=typeof i[e]||"enabled"in i[e]||(i[e].enabled=!0),i[e]||(i[e]={enabled:!1})))});var s=K({},I);o.useParams(s),o.params=K({},s,D,i),o.originalParams=K({},o.params),o.passedParams=K({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach(function(e){o.on(e,o.params.on[e])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny);var r,a,l=(o.$=C)(o.params.el);if(r=l[0]){if(1<l.length){var c=[];return l.each(function(e){e=K({},i,{el:e});c.push(new u(e))}),c}return r.swiper=o,r&&r.shadowRoot&&r.shadowRoot.querySelector?(a=C(r.shadowRoot.querySelector("."+o.params.wrapperClass))).children=function(e){return l.children(e)}:a=l.children("."+o.params.wrapperClass),K(o,{$el:l,el:r,$wrapperEl:a,wrapperEl:a[0],classNames:[],slides:C(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===o.params.direction},isVertical:function(){return"vertical"===o.params.direction},rtl:"rtl"===r.dir.toLowerCase()||"rtl"===l.css("direction"),rtlTranslate:"horizontal"===o.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===l.css("direction")),wrongRTL:"-webkit-box"===a.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEvents:(r=["touchstart","touchmove","touchend","touchcancel"],a=["mousedown","mousemove","mouseup"],o.support.pointerEvents&&(a=["pointerdown","pointermove","pointerup"]),o.touchEventsTouch={start:r[0],move:r[1],end:r[2],cancel:r[3]},o.touchEventsDesktop={start:a[0],move:a[1],end:a[2]},o.support.touch||!o.params.simulateTouch?o.touchEventsTouch:o.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:k(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.useModules(),o.emit("_swiper"),o.params.init&&o.init(),o}}var e,t,i=u.prototype;return i.emitContainerClasses=function(){var e,t=this;t.params._emitClasses&&t.el&&(e=t.el.className.split(" ").filter(function(e){return 0===e.indexOf("swiper-container")||0===e.indexOf(t.params.containerModifierClass)}),t.emit("_containerClasses",e.join(" ")))},i.getSlideClasses=function(e){var t=this;return e.className.split(" ").filter(function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)}).join(" ")},i.emitSlidesClasses=function(){var i=this;i.params._emitClasses&&i.el&&i.slides.each(function(e){var t=i.getSlideClasses(e);i.emit("_slideClass",e,t)})},i.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,i=this.slidesGrid,n=this.size,o=this.activeIndex,s=1;if(e.centeredSlides){for(var r,a=t[o].swiperSlideSize,l=o+1;l<t.length;l+=1)t[l]&&!r&&(s+=1,n<(a+=t[l].swiperSlideSize)&&(r=!0));for(var c=o-1;0<=c;--c)t[c]&&!r&&(s+=1,n<(a+=t[c].swiperSlideSize)&&(r=!0))}else for(var u=o+1;u<t.length;u+=1)i[u]-i[o]<n&&(s+=1);return s},i.update=function(){var e,t,i=this;function n(){var e=i.rtlTranslate?-1*i.translate:i.translate,e=Math.min(Math.max(e,i.maxTranslate()),i.minTranslate());i.setTranslate(e),i.updateActiveIndex(),i.updateSlidesClasses()}i&&!i.destroyed&&(e=i.snapGrid,(t=i.params).breakpoints&&i.setBreakpoint(),i.updateSize(),i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.params.freeMode?(n(),i.params.autoHeight&&i.updateAutoHeight()):(("auto"===i.params.slidesPerView||1<i.params.slidesPerView)&&i.isEnd&&!i.params.centeredSlides?i.slideTo(i.slides.length-1,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0))||n(),t.watchOverflow&&e!==i.snapGrid&&i.checkOverflow(),i.emit("update"))},i.changeDirection=function(t,e){void 0===e&&(e=!0);var i=this,n=i.params.direction;return(t=t||("horizontal"===n?"vertical":"horizontal"))===n||"horizontal"!==t&&"vertical"!==t||(i.$el.removeClass(""+i.params.containerModifierClass+n).addClass(""+i.params.containerModifierClass+t),i.emitContainerClasses(),i.params.direction=t,i.slides.each(function(e){"vertical"===t?e.style.width="":e.style.height=""}),i.emit("changeDirection"),e&&i.update()),i},i.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit"))},i.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i,n=this,o=n.params,s=n.$el,r=n.$wrapperEl,a=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),o.loop&&n.loopDestroy(),t&&(n.removeClasses(),s.removeAttr("style"),r.removeAttr("style"),a&&a.length&&a.removeClass([o.slideVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(function(e){n.off(e)}),!1!==e&&(n.$el[0].swiper=null,i=n,Object.keys(i).forEach(function(e){try{i[e]=null}catch(e){}try{delete i[e]}catch(e){}})),n.destroyed=!0),null},u.extendDefaults=function(e){K(D,e)},u.installModule=function(e){u.prototype.modules||(u.prototype.modules={});var t=e.name||Object.keys(u.prototype.modules).length+"_"+k();u.prototype.modules[t]=e},u.use=function(e){return Array.isArray(e)?e.forEach(function(e){return u.installModule(e)}):u.installModule(e),u},e=u,t=[{key:"extendedDefaults",get:function(){return D}},{key:"defaults",get:function(){return I}}],(i=null)&&n(e.prototype,i),t&&n(e,t),u}();Object.keys(z).forEach(function(t){Object.keys(z[t]).forEach(function(e){N.prototype[e]=z[t][e]})}),N.use([E,P]);var B={update:function(e){var t=this,i=t.params,n=i.slidesPerView,o=i.slidesPerGroup,s=i.centeredSlides,r=t.params.virtual,a=r.addSlidesBefore,l=r.addSlidesAfter,c=t.virtual,u=c.from,d=c.to,h=c.slides,p=c.slidesGrid,f=c.renderSlide,i=c.offset;t.updateActiveIndex();var r=t.activeIndex||0,c=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",a=s?(v=Math.floor(n/2)+o+l,Math.floor(n/2)+o+a):(v=n+(o-1)+l,o+a),m=Math.max((r||0)-a,0),g=Math.min((r||0)+v,h.length-1),v=(t.slidesGrid[m]||0)-(t.slidesGrid[0]||0);function y(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(K(t.virtual,{from:m,to:g,offset:v,slidesGrid:t.slidesGrid}),u===m&&d===g&&!e)return t.slidesGrid!==p&&v!==i&&t.slides.css(c,v+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:v,from:m,to:g,slides:function(){for(var e=[],t=m;t<=g;t+=1)e.push(h[t]);return e}()}),void(t.params.virtual.renderExternalUpdate&&y());var _=[],b=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var w=u;w<=d;w+=1)(w<m||g<w)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+w+'"]').remove();for(var x=0;x<h.length;x+=1)m<=x&&x<=g&&(void 0===d||e?b.push(x):(d<x&&b.push(x),x<u&&_.push(x)));b.forEach(function(e){t.$wrapperEl.append(f(h[e],e))}),_.sort(function(e,t){return t-e}).forEach(function(e){t.$wrapperEl.prepend(f(h[e],e))}),t.$wrapperEl.children(".swiper-slide").css(c,v+"px"),y()},renderSlide:function(e,t){var i=this.params.virtual;if(i.cache&&this.virtual.cache[t])return this.virtual.cache[t];e=i.renderSlide?C(i.renderSlide.call(this,e,t)):C('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return e.attr("data-swiper-slide-index")||e.attr("data-swiper-slide-index",t),i.cache&&(this.virtual.cache[t]=e),e},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var n,o,t=this.activeIndex,i=t+1,s=1;if(Array.isArray(e)){for(var r=0;r<e.length;r+=1)e[r]&&this.virtual.slides.unshift(e[r]);i=t+e.length,s=e.length}else this.virtual.slides.unshift(e);this.params.virtual.cache&&(n=this.virtual.cache,o={},Object.keys(n).forEach(function(e){var t=n[e],i=t.attr("data-swiper-slide-index");i&&t.attr("data-swiper-slide-index",parseInt(i,10)+1),o[parseInt(e,10)+s]=t}),this.virtual.cache=o),this.virtual.update(!0),this.slideTo(i,0)},removeSlide:function(e){if(null!=e){var t=this.activeIndex;if(Array.isArray(e))for(var i=e.length-1;0<=i;--i)this.virtual.slides.splice(e[i],1),this.params.virtual.cache&&delete this.virtual.cache[e[i]],e[i]<t&&--t,t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&--t,t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},$={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}},create:function(){b(this,{virtual:e({},B,{slides:this.params.virtual.slides,cache:{}})})},on:{beforeInit:function(e){var t;e.params.virtual.enabled&&(e.classNames.push(e.params.containerModifierClass+"virtual"),K(e.params,t={watchSlidesProgress:!0}),K(e.originalParams,t),e.params.initialSlide||e.virtual.update())},setTranslate:function(e){e.params.virtual.enabled&&e.virtual.update()}}},j={handle:function(e){var t=this,i=X(),n=y(),o=t.rtlTranslate,s=e,r=(s=s.originalEvent?s.originalEvent:s).keyCode||s.charCode,a=t.params.keyboard.pageUpDown,l=a&&33===r,c=a&&34===r,u=37===r,d=39===r,e=38===r,a=40===r;if(!t.allowSlideNext&&(t.isHorizontal()&&d||t.isVertical()&&a||c))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&e||l))return!1;if(!(s.shiftKey||s.altKey||s.ctrlKey||s.metaKey||n.activeElement&&n.activeElement.nodeName&&("input"===n.activeElement.nodeName.toLowerCase()||"textarea"===n.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(l||c||u||d||e||a)){var h=!1;if(0<t.$el.parents("."+t.params.slideClass).length&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var p=i.innerWidth,f=i.innerHeight,i=t.$el.offset();o&&(i.left-=t.$el[0].scrollLeft);for(var m=[[i.left,i.top],[i.left+t.width,i.top],[i.left,i.top+t.height],[i.left+t.width,i.top+t.height]],g=0;g<m.length;g+=1){var v=m[g];0<=v[0]&&v[0]<=p&&0<=v[1]&&v[1]<=f&&(0===v[0]&&0===v[1]||(h=!0))}if(!h)return}t.isHorizontal()?((l||c||u||d)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((c||d)&&!o||(l||u)&&o)&&t.slideNext(),((l||u)&&!o||(c||d)&&o)&&t.slidePrev()):((l||c||e||a)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(c||a)&&t.slideNext(),(l||e)&&t.slidePrev()),t.emit("keyPress",r)}},enable:function(){var e=y();this.keyboard.enabled||(C(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){var e=y();this.keyboard.enabled&&(C(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},R={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function(){b(this,{keyboard:e({enabled:!1},j)})},on:{init:function(e){e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(e){e.keyboard.enabled&&e.keyboard.disable()}}};var H={lastScrollTime:k(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){var e,t,i,n;return-1<X().navigator.userAgent.indexOf("firefox")?"DOMMouseScroll":(t=y(),(n=(i="onwheel")in t)||((e=t.createElement("div")).setAttribute(i,"return;"),n="function"==typeof e[i]),(n=!n&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")?t.implementation.hasFeature("Events.wheel","3.0"):n)?"wheel":"mousewheel")},normalize:function(e){var t=0,i=0,n=0,o=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,o=10*i,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),e.shiftKey&&!n&&(n=o,o=0),(n||o)&&e.deltaMode&&(1===e.deltaMode?(n*=40,o*=40):(n*=800,o*=800)),{spinX:t=n&&!t?n<1?-1:1:t,spinY:i=o&&!i?o<1?-1:1:i,pixelX:n,pixelY:o}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,n=i.params.mousewheel;i.params.cssMode&&t.preventDefault();var o=i.$el;if("container"!==i.params.mousewheel.eventsTarget&&(o=C(i.params.mousewheel.eventsTarget)),!i.mouseEntered&&!o[0].contains(t.target)&&!n.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var s=0,r=i.rtlTranslate?-1:1,o=H.normalize(t);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(o.pixelX)>Math.abs(o.pixelY)))return!0;s=-o.pixelX*r}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;s=-o.pixelY}else s=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*r:-o.pixelY;if(0===s)return!0;n.invert&&(s=-s);r=i.getTranslate()+s*n.sensitivity;if((r=r>=i.minTranslate()?i.minTranslate():r)<=i.maxTranslate()&&(r=i.maxTranslate()),(!!i.params.loop||!(r===i.minTranslate()||r===i.maxTranslate()))&&i.params.nested&&t.stopPropagation(),i.params.freeMode){var a={time:k(),delta:Math.abs(s),direction:Math.sign(s)},o=i.mousewheel.lastEventBeforeSnap,r=o&&a.time<o.time+500&&a.delta<=o.delta&&a.direction===o.direction;if(!r){i.mousewheel.lastEventBeforeSnap=void 0,i.params.loop&&i.loopFix();var l,c,u=i.getTranslate()+s*n.sensitivity,o=i.isBeginning,n=i.isEnd;if((u=u>=i.minTranslate()?i.minTranslate():u)<=i.maxTranslate()&&(u=i.maxTranslate()),i.setTransition(0),i.setTranslate(u),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!o&&i.isBeginning||!n&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0,15<=(l=i.mousewheel.recentWheelEvents).length&&l.shift(),o=l.length?l[l.length-1]:void 0,n=l[0],l.push(a),o&&(a.delta>o.delta||a.direction!==o.direction)?l.splice(0):15<=l.length&&a.time-n.time<500&&1<=n.delta-a.delta&&a.delta<=6&&(c=0<s?.8:.2,i.mousewheel.lastEventBeforeSnap=a,l.splice(0),i.mousewheel.timeout=S(function(){i.slideToClosest(i.params.speed,!0,void 0,c)},0)),i.mousewheel.timeout||(i.mousewheel.timeout=S(function(){i.mousewheel.lastEventBeforeSnap=a,l.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)},500))),r||i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),u===i.minTranslate()||u===i.maxTranslate())return!0}}else{u={time:k(),delta:Math.abs(s),direction:Math.sign(s),raw:e},s=i.mousewheel.recentWheelEvents;2<=s.length&&s.shift();e=s.length?s[s.length-1]:void 0;if(s.push(u),(!e||u.direction!==e.direction||u.delta>e.delta||u.time>e.time+150)&&i.mousewheel.animateSlider(u),i.mousewheel.releaseScroll(u))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){var t=this,i=X();return!(this.params.mousewheel.thresholdDelta&&e.delta<this.params.mousewheel.thresholdDelta)&&(!(this.params.mousewheel.thresholdTime&&k()-t.mousewheel.lastScrollTime<this.params.mousewheel.thresholdTime)&&(6<=e.delta&&k()-t.mousewheel.lastScrollTime<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),t.emit("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),t.emit("scroll",e.raw)),t.mousewheel.lastScrollTime=(new i.Date).getTime(),!1)))},releaseScroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isEnd&&!this.params.loop&&t.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&t.releaseOnEdges)return!0;return!1},enable:function(){var e=this,t=H.event();if(e.params.cssMode)return e.wrapperEl.removeEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(e.mousewheel.enabled)return!1;var i=e.$el;return(i="container"!==e.params.mousewheel.eventsTarget?C(e.params.mousewheel.eventsTarget):i).on("mouseenter",e.mousewheel.handleMouseEnter),i.on("mouseleave",e.mousewheel.handleMouseLeave),i.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0},disable:function(){var e=H.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return(t="container"!==this.params.mousewheel.eventsTarget?C(this.params.mousewheel.eventsTarget):t).off(e,this.mousewheel.handle),!(this.mousewheel.enabled=!1)}},F={update:function(){var e,t,i=this.params.navigation;this.params.loop||(e=(t=this.navigation).$nextEl,(t=t.$prevEl)&&0<t.length&&(this.isBeginning?t.addClass(i.disabledClass):t.removeClass(i.disabledClass),t[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](i.lockClass)),e&&0<e.length&&(this.isEnd?e.addClass(i.disabledClass):e.removeClass(i.disabledClass),e[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](i.lockClass)))},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,i=this,n=i.params.navigation;(n.nextEl||n.prevEl)&&(n.nextEl&&(e=C(n.nextEl),i.params.uniqueNavElements&&"string"==typeof n.nextEl&&1<e.length&&1===i.$el.find(n.nextEl).length&&(e=i.$el.find(n.nextEl))),n.prevEl&&(t=C(n.prevEl),i.params.uniqueNavElements&&"string"==typeof n.prevEl&&1<t.length&&1===i.$el.find(n.prevEl).length&&(t=i.$el.find(n.prevEl))),e&&0<e.length&&e.on("click",i.navigation.onNextClick),t&&0<t.length&&t.on("click",i.navigation.onPrevClick),K(i.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,e=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),e&&e.length&&(e.off("click",this.navigation.onPrevClick),e.removeClass(this.params.navigation.disabledClass))}},q={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){b(this,{navigation:e({},F)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},click:function(e,t){var i,n=e.navigation,o=n.$nextEl,n=n.$prevEl;!e.params.navigation.hideOnClick||C(t.target).is(n)||C(t.target).is(o)||(o?i=o.hasClass(e.params.navigation.hiddenClass):n&&(i=n.hasClass(e.params.navigation.hiddenClass)),!0===i?e.emit("navigationShow"):e.emit("navigationHide"),o&&o.toggleClass(e.params.navigation.hiddenClass),n&&n.toggleClass(e.params.navigation.hiddenClass))}}},W={update:function(){var e=this,t=e.rtl,i=e.params.pagination;if(i.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n,o=(e.virtual&&e.params.virtual.enabled?e.virtual:e).slides.length,s=e.pagination.$el,r=e.params.loop?Math.ceil((o-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((n=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>o-1-2*e.loopedSlides&&(n-=o-2*e.loopedSlides),r-1<n&&(n-=r),n<0&&"bullets"!==e.params.paginationType&&(n=r+n)):n=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&0<e.pagination.bullets.length){var a,l,c,u,d,h=e.pagination.bullets;if(i.dynamicBullets&&(e.pagination.bulletSize=h.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),1<i.dynamicMainBullets&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=n-e.previousIndex,e.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),a=n-e.pagination.dynamicBulletIndex,c=((l=a+(Math.min(h.length,i.dynamicMainBullets)-1))+a)/2),h.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),1<s.length)h.each(function(e){var t=C(e),e=t.index();e===n&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(a<=e&&e<=l&&t.addClass(i.bulletActiveClass+"-main"),e===a&&t.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),e===l&&t.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))});else{var p=h.eq(n),f=p.index();if(p.addClass(i.bulletActiveClass),i.dynamicBullets){for(var o=h.eq(a),p=h.eq(l),m=a;m<=l;m+=1)h.eq(m).addClass(i.bulletActiveClass+"-main");if(e.params.loop)if(f>=h.length-i.dynamicMainBullets){for(var g=i.dynamicMainBullets;0<=g;--g)h.eq(h.length-g).addClass(i.bulletActiveClass+"-main");h.eq(h.length-i.dynamicMainBullets-1).addClass(i.bulletActiveClass+"-prev")}else o.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),p.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next");else o.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),p.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}}i.dynamicBullets&&(d=Math.min(h.length,i.dynamicMainBullets+4),u=(e.pagination.bulletSize*d-e.pagination.bulletSize)/2-c*e.pagination.bulletSize,d=t?"right":"left",h.css(e.isHorizontal()?d:"top",u+"px"))}"fraction"===i.type&&(s.find("."+i.currentClass).text(i.formatFractionCurrent(n+1)),s.find("."+i.totalClass).text(i.formatFractionTotal(r))),"progressbar"===i.type&&(c=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical",t=(n+1)/r,u=d=1,"horizontal"===c?d=t:u=t,s.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+d+") scaleY("+u+")").transition(e.params.speed)),"custom"===i.type&&i.renderCustom?(s.html(i.renderCustom(e,n+1,r)),e.emit("paginationRender",s[0])):e.emit("paginationUpdate",s[0]),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](i.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=(e.virtual&&e.params.virtual.enabled?e.virtual:e).slides.length,n=e.pagination.$el,o="";if("bullets"===t.type){for(var s=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,r=0;r<s;r+=1)t.renderBullet?o+=t.renderBullet.call(e,r,t.bulletClass):o+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";n.html(o),e.pagination.bullets=n.find("."+t.bulletClass.replace(/ /g,"."))}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',n.html(o)),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',n.html(o)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e,t=this,i=t.params.pagination;!i.el||0!==(e=C(i.el)).length&&(t.params.uniqueNavElements&&"string"==typeof i.el&&1<e.length&&(e=t.$el.find(i.el)),"bullets"===i.type&&i.clickable&&e.addClass(i.clickableClass),e.addClass(i.modifierClass+i.type),"bullets"===i.type&&i.dynamicBullets&&(e.addClass(""+i.modifierClass+i.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,i.dynamicMainBullets<1&&(i.dynamicMainBullets=1)),"progressbar"===i.type&&i.progressbarOpposite&&e.addClass(i.progressbarOppositeClass),i.clickable&&e.on("click","."+i.bulletClass.replace(/ /g,"."),function(e){e.preventDefault();e=C(this).index()*t.params.slidesPerGroup;t.params.loop&&(e+=t.loopedSlides),t.slideTo(e)}),K(t.pagination,{$el:e,el:e[0]}))},destroy:function(){var e,t=this.params.pagination;t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length&&((e=this.pagination.$el).removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click","."+t.bulletClass.replace(/ /g,".")))}},U={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){b(this,{pagination:e({dynamicBulletIndex:0},W)})},on:{init:function(e){e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(e){(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange:function(e){e.params.loop||e.pagination.update()},slidesLengthChange:function(e){e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(e){e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(e){e.pagination.destroy()},click:function(e,t){e.params.pagination.el&&e.params.pagination.hideOnClick&&0<e.pagination.$el.length&&!C(t.target).hasClass(e.params.pagination.bulletClass)&&(!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow"):e.emit("paginationHide"),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass))}}},V={setTranslate:function(){var e,t,i,n,o,s,r,a;this.params.scrollbar.el&&this.scrollbar.el&&(r=this.scrollbar,e=this.rtlTranslate,a=this.progress,t=r.dragSize,i=r.trackSize,n=r.$dragEl,o=r.$el,s=this.params.scrollbar,a=(i-(r=t))*a,e?0<(a=-a)?(r=t-a,a=0):i<-a+t&&(r=i+a):a<0?(r=t+a,a=0):i<a+t&&(r=i-a),this.isHorizontal()?(n.transform("translate3d("+a+"px, 0, 0)"),n[0].style.width=r+"px"):(n.transform("translate3d(0px, "+a+"px, 0)"),n[0].style.height=r+"px"),s.hide&&(clearTimeout(this.scrollbar.timeout),o[0].style.opacity=1,this.scrollbar.timeout=setTimeout(function(){o[0].style.opacity=0,o.transition(400)},1e3)))},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){var e,t,i,n,o,s,r,a=this;a.params.scrollbar.el&&a.scrollbar.el&&(t=(e=a.scrollbar).$dragEl,i=e.$el,t[0].style.width="",t[0].style.height="",n=a.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,s=(o=a.size/a.virtualSize)*(n/a.size),r="auto"===a.params.scrollbar.dragSize?n*o:parseInt(a.params.scrollbar.dragSize,10),a.isHorizontal()?t[0].style.width=r+"px":t[0].style.height=r+"px",i[0].style.display=1<=o?"none":"",a.params.scrollbar.hide&&(i[0].style.opacity=0),K(e,{trackSize:n,divider:o,moveDivider:s,dragSize:r}),e.$el[a.params.watchOverflow&&a.isLocked?"addClass":"removeClass"](a.params.scrollbar.lockClass))},getPointerPosition:function(e){return this.isHorizontal()?("touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0]:e).clientX:("touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0]:e).clientY},setDragPosition:function(e){var t=this,i=t.scrollbar,n=t.rtlTranslate,o=i.$el,s=i.dragSize,r=i.trackSize,a=i.dragStartPos,s=(i.getPointerPosition(e)-o.offset()[t.isHorizontal()?"left":"top"]-(null!==a?a:s/2))/(r-s);s=Math.max(Math.min(s,1),0),n&&(s=1-s);s=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*s;t.updateProgress(s),t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,o=t.$wrapperEl,s=n.$el,r=n.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===r[0]||e.target===r?n.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),o.transition(100),r.transition(100),n.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),s.transition(0),i.hide&&s.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,i=this.$wrapperEl,n=t.$el,o=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),i.transition(0),n.transition(0),o.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,o=t.$wrapperEl,s=n.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),o.transition("")),i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=S(function(){s.css("opacity",0),s.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e,t,i,n,o,s,r,a=this;a.params.scrollbar.el&&(e=y(),s=a.scrollbar,t=a.touchEventsTouch,i=a.touchEventsDesktop,r=a.params,n=a.support,o=s.$el[0],s=!(!n.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},r=!(!n.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1},n.touch?(o.addEventListener(t.start,a.scrollbar.onDragStart,s),o.addEventListener(t.move,a.scrollbar.onDragMove,s),o.addEventListener(t.end,a.scrollbar.onDragEnd,r)):(o.addEventListener(i.start,a.scrollbar.onDragStart,s),e.addEventListener(i.move,a.scrollbar.onDragMove,s),e.addEventListener(i.end,a.scrollbar.onDragEnd,r)))},disableDraggable:function(){var e,t,i,n,o,s,r,a=this;a.params.scrollbar.el&&(e=y(),s=a.scrollbar,t=a.touchEventsTouch,i=a.touchEventsDesktop,r=a.params,n=a.support,o=s.$el[0],s=!(!n.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},r=!(!n.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1},n.touch?(o.removeEventListener(t.start,a.scrollbar.onDragStart,s),o.removeEventListener(t.move,a.scrollbar.onDragMove,s),o.removeEventListener(t.end,a.scrollbar.onDragEnd,r)):(o.removeEventListener(i.start,a.scrollbar.onDragStart,s),e.removeEventListener(i.move,a.scrollbar.onDragMove,s),e.removeEventListener(i.end,a.scrollbar.onDragEnd,r)))},init:function(){var e,t,i,n;this.params.scrollbar.el&&(e=this.scrollbar,n=this.$el,i=C((t=this.params.scrollbar).el),0===(n=(i=this.params.uniqueNavElements&&"string"==typeof t.el&&1<i.length&&1===n.find(t.el).length?n.find(t.el):i).find("."+this.params.scrollbar.dragClass)).length&&(n=C('<div class="'+this.params.scrollbar.dragClass+'"></div>'),i.append(n)),K(e,{$el:i,el:i[0],$dragEl:n,dragEl:n[0]}),t.draggable&&e.enableDraggable())},destroy:function(){this.scrollbar.disableDraggable()}},G={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){b(this,{scrollbar:e({isTouched:!1,timeout:null,dragTimeout:null},V)})},on:{init:function(e){e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(e){e.scrollbar.updateSize()},resize:function(e){e.scrollbar.updateSize()},observerUpdate:function(e){e.scrollbar.updateSize()},setTranslate:function(e){e.scrollbar.setTranslate()},setTransition:function(e,t){e.scrollbar.setTransition(t)},destroy:function(e){e.scrollbar.destroy()}}},Z={setTransform:function(e,t){var i=this.rtl,n=C(e),o=i?-1:1,s=n.attr("data-swiper-parallax")||"0",r=n.attr("data-swiper-parallax-x"),a=n.attr("data-swiper-parallax-y"),e=n.attr("data-swiper-parallax-scale"),i=n.attr("data-swiper-parallax-opacity");r||a?(r=r||"0",a=a||"0"):this.isHorizontal()?(r=s,a="0"):(a=s,r="0"),r=0<=r.indexOf("%")?parseInt(r,10)*t*o+"%":r*t*o+"px",a=0<=a.indexOf("%")?parseInt(a,10)*t+"%":a*t+"px",null!=i&&(i=i-(i-1)*(1-Math.abs(t)),n[0].style.opacity=i),null==e?n.transform("translate3d("+r+", "+a+", 0px)"):(t=e-(e-1)*(1-Math.abs(t)),n.transform("translate3d("+r+", "+a+", 0px) scale("+t+")"))},setTranslate:function(){var n=this,e=n.$el,t=n.slides,o=n.progress,s=n.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e){n.parallax.setTransform(e,o)}),t.each(function(e,t){var i=e.progress;1<n.params.slidesPerGroup&&"auto"!==n.params.slidesPerView&&(i+=Math.ceil(t/2)-o*(s.length-1)),i=Math.min(Math.max(i,-1),1),C(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e){n.parallax.setTransform(e,i)})})},setTransition:function(i){void 0===i&&(i=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e){var t=C(e),e=parseInt(t.attr("data-swiper-parallax-duration"),10)||i;0===i&&(e=0),t.transition(e)})}},Y={name:"parallax",params:{parallax:{enabled:!1}},create:function(){b(this,{parallax:e({},Z)})},on:{beforeInit:function(e){e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(e){e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate:function(e){e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition:function(e,t){e.params.parallax.enabled&&e.parallax.setTransition(t)}}},Q={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,e=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-t,2)+Math.pow(e-i,2))},onGestureStart:function(e){var t=this.support,i=this.params.zoom,n=this.zoom,o=n.gesture;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!t.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,o.scaleStart=Q.getDistanceBetweenTouches(e)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=C(e.target).closest("."+this.params.slideClass),0===o.$slideEl.length&&(o.$slideEl=this.slides.eq(this.activeIndex)),o.$imageEl=o.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),o.$imageWrapEl=o.$imageEl.parent("."+i.containerClass),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==o.$imageWrapEl.length)?(o.$imageEl&&o.$imageEl.transition(0),this.zoom.isScaling=!0):o.$imageEl=void 0},onGestureChange:function(e){var t=this.support,i=this.params.zoom,n=this.zoom,o=n.gesture;if(!t.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,o.scaleMove=Q.getDistanceBetweenTouches(e)}o.$imageEl&&0!==o.$imageEl.length?(t.gestures?n.scale=e.scale*n.currentScale:n.scale=o.scaleMove/o.scaleStart*n.currentScale,n.scale>o.maxRatio&&(n.scale=o.maxRatio-1+Math.pow(n.scale-o.maxRatio+1,.5)),n.scale<i.minRatio&&(n.scale=i.minRatio+1-Math.pow(i.minRatio-n.scale+1,.5)),o.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")")):"gesturechange"===e.type&&n.onGestureStart(e)},onGestureEnd:function(e){var t=this.device,i=this.support,n=this.params.zoom,o=this.zoom,s=o.gesture;if(!i.gestures){if(!o.fakeGestureTouched||!o.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!t.android)return;o.fakeGestureTouched=!1,o.fakeGestureMoved=!1}s.$imageEl&&0!==s.$imageEl.length&&(o.scale=Math.max(Math.min(o.scale,s.maxRatio),n.minRatio),s.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+o.scale+")"),o.currentScale=o.scale,o.isScaling=!1,1===o.scale&&(s.$slideEl=void 0))},onTouchStart:function(e){var t=this.device,i=this.zoom,n=i.gesture,i=i.image;n.$imageEl&&0!==n.$imageEl.length&&(i.isTouched||(t.android&&e.cancelable&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x=("touchstart"===e.type?e.targetTouches[0]:e).pageX,i.touchesStart.y=("touchstart"===e.type?e.targetTouches[0]:e).pageY))},onTouchMove:function(e){var t=this.zoom,i=t.gesture,n=t.image,o=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(this.allowClick=!1,n.isTouched&&i.$slideEl)){n.isMoved||(n.width=i.$imageEl[0].offsetWidth,n.height=i.$imageEl[0].offsetHeight,n.startX=v(i.$imageWrapEl[0],"x")||0,n.startY=v(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),this.rtl&&(n.startX=-n.startX,n.startY=-n.startY));var s=n.width*t.scale,r=n.height*t.scale;if(!(s<i.slideWidth&&r<i.slideHeight)){if(n.minX=Math.min(i.slideWidth/2-s/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-r/2,0),n.maxY=-n.minY,n.touchesCurrent.x=("touchmove"===e.type?e.targetTouches[0]:e).pageX,n.touchesCurrent.y=("touchmove"===e.type?e.targetTouches[0]:e).pageY,!n.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(n.minX)===Math.floor(n.startX)&&n.touchesCurrent.x<n.touchesStart.x||Math.floor(n.maxX)===Math.floor(n.startX)&&n.touchesCurrent.x>n.touchesStart.x))return void(n.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(n.minY)===Math.floor(n.startY)&&n.touchesCurrent.y<n.touchesStart.y||Math.floor(n.maxY)===Math.floor(n.startY)&&n.touchesCurrent.y>n.touchesStart.y))return void(n.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),n.isMoved=!0,n.currentX=n.touchesCurrent.x-n.touchesStart.x+n.startX,n.currentY=n.touchesCurrent.y-n.touchesStart.y+n.startY,n.currentX<n.minX&&(n.currentX=n.minX+1-Math.pow(n.minX-n.currentX+1,.8)),n.currentX>n.maxX&&(n.currentX=n.maxX-1+Math.pow(n.currentX-n.maxX+1,.8)),n.currentY<n.minY&&(n.currentY=n.minY+1-Math.pow(n.minY-n.currentY+1,.8)),n.currentY>n.maxY&&(n.currentY=n.maxY-1+Math.pow(n.currentY-n.maxY+1,.8)),o.prevPositionX||(o.prevPositionX=n.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=n.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(n.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(n.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(n.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(n.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=n.touchesCurrent.x,o.prevPositionY=n.touchesCurrent.y,o.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,n=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var o=300,s=300,r=n.x*o,a=i.currentX+r,r=n.y*s,r=i.currentY+r;0!==n.x&&(o=Math.abs((a-i.currentX)/n.x)),0!==n.y&&(s=Math.abs((r-i.currentY)/n.y));s=Math.max(o,s);i.currentX=a,i.currentY=r;r=i.width*e.scale,e=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-r/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-e/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.$imageWrapEl.transition(s).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl&&t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl&&t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,n,o=this.zoom,s=this.params.zoom,r=o.gesture,a=o.image;r.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?r.$slideEl=this.$wrapperEl.children("."+this.params.slideActiveClass):r.$slideEl=this.slides.eq(this.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent("."+s.containerClass)),r.$imageEl&&0!==r.$imageEl.length&&(r.$slideEl.addClass(""+s.zoomedSlideClass),a=void 0===a.touchesStart.x&&e?(n=("touchend"===e.type?e.changedTouches[0]:e).pageX,("touchend"===e.type?e.changedTouches[0]:e).pageY):(n=a.touchesStart.x,a.touchesStart.y),o.scale=r.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,o.currentScale=r.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,e?(s=r.$slideEl[0].offsetWidth,e=r.$slideEl[0].offsetHeight,t=r.$slideEl.offset().left+s/2-n,i=r.$slideEl.offset().top+e/2-a,n=r.$imageEl[0].offsetWidth,a=r.$imageEl[0].offsetHeight,n=n*o.scale,a=a*o.scale,n=Math.min(s/2-n/2,0),e=Math.min(e/2-a/2,0),(a=-n)<(t=(t=t*o.scale)<n?n:t)&&(t=a),(a=-e)<(i=(i=i*o.scale)<e?e:i)&&(i=a)):i=t=0,r.$imageWrapEl.transition(300).transform("translate3d("+t+"px, "+i+"px,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+o.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,i=e.gesture;i.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?i.$slideEl=this.$wrapperEl.children("."+this.params.slideActiveClass):i.$slideEl=this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+t.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(e.scale=1,e.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+t.zoomedSlideClass),i.$slideEl=void 0)},toggleGestures:function(e){var t=this.zoom,i=t.slideSelector,n=t.passiveListener;this.$wrapperEl[e]("gesturestart",i,t.onGestureStart,n),this.$wrapperEl[e]("gesturechange",i,t.onGestureChange,n),this.$wrapperEl[e]("gestureend",i,t.onGestureEnd,n)},enableGestures:function(){this.zoom.gesturesEnabled||(this.zoom.gesturesEnabled=!0,this.zoom.toggleGestures("on"))},disableGestures:function(){this.zoom.gesturesEnabled&&(this.zoom.gesturesEnabled=!1,this.zoom.toggleGestures("off"))},enable:function(){var e,t,i,n=this,o=n.support,s=n.zoom;s.enabled||(s.enabled=!0,e=!("touchstart"!==n.touchEvents.start||!o.passiveListener||!n.params.passiveListeners)&&{passive:!0,capture:!1},t=!o.passiveListener||{passive:!1,capture:!0},i="."+n.params.slideClass,n.zoom.passiveListener=e,n.zoom.slideSelector=i,o.gestures?(n.$wrapperEl.on(n.touchEvents.start,n.zoom.enableGestures,e),n.$wrapperEl.on(n.touchEvents.end,n.zoom.disableGestures,e)):"touchstart"===n.touchEvents.start&&(n.$wrapperEl.on(n.touchEvents.start,i,s.onGestureStart,e),n.$wrapperEl.on(n.touchEvents.move,i,s.onGestureChange,t),n.$wrapperEl.on(n.touchEvents.end,i,s.onGestureEnd,e),n.touchEvents.cancel&&n.$wrapperEl.on(n.touchEvents.cancel,i,s.onGestureEnd,e)),n.$wrapperEl.on(n.touchEvents.move,"."+n.params.zoom.containerClass,s.onTouchMove,t))},disable:function(){var e,t,i,n,o=this,s=o.zoom;s.enabled&&(e=o.support,o.zoom.enabled=!1,t=!("touchstart"!==o.touchEvents.start||!e.passiveListener||!o.params.passiveListeners)&&{passive:!0,capture:!1},i=!e.passiveListener||{passive:!1,capture:!0},n="."+o.params.slideClass,e.gestures?(o.$wrapperEl.off(o.touchEvents.start,o.zoom.enableGestures,t),o.$wrapperEl.off(o.touchEvents.end,o.zoom.disableGestures,t)):"touchstart"===o.touchEvents.start&&(o.$wrapperEl.off(o.touchEvents.start,n,s.onGestureStart,t),o.$wrapperEl.off(o.touchEvents.move,n,s.onGestureChange,i),o.$wrapperEl.off(o.touchEvents.end,n,s.onGestureEnd,t),o.touchEvents.cancel&&o.$wrapperEl.off(o.touchEvents.cancel,n,s.onGestureEnd,t)),o.$wrapperEl.off(o.touchEvents.move,"."+o.params.zoom.containerClass,s.onTouchMove,i))}},J={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var n=this;b(n,{zoom:e({enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},Q)});var o=1;Object.defineProperty(n.zoom,"scale",{get:function(){return o},set:function(e){var t,i;o!==e&&(t=n.zoom.gesture.$imageEl?n.zoom.gesture.$imageEl[0]:void 0,i=n.zoom.gesture.$slideEl?n.zoom.gesture.$slideEl[0]:void 0,n.emit("zoomChange",e,t,i)),o=e}})},on:{init:function(e){e.params.zoom.enabled&&e.zoom.enable()},destroy:function(e){e.zoom.disable()},touchStart:function(e,t){e.zoom.enabled&&e.zoom.onTouchStart(t)},touchEnd:function(e,t){e.zoom.enabled&&e.zoom.onTouchEnd(t)},doubleTap:function(e,t){e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()},slideChange:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&e.zoom.onTransitionEnd()}}},ee={loadInSlide:function(e,l){void 0===l&&(l=!0);var c,u=this,d=u.params.lazy;void 0!==e&&0!==u.slides.length&&(e=(c=u.virtual&&u.params.virtual.enabled?u.$wrapperEl.children("."+u.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):u.slides.eq(e)).find("."+d.elementClass+":not(."+d.loadedClass+"):not(."+d.loadingClass+")"),!c.hasClass(d.elementClass)||c.hasClass(d.loadedClass)||c.hasClass(d.loadingClass)||e.push(c[0]),0!==e.length&&e.each(function(e){var i=C(e);i.addClass(d.loadingClass);var n=i.attr("data-background"),o=i.attr("data-src"),s=i.attr("data-srcset"),r=i.attr("data-sizes"),a=i.parent("picture");u.loadImage(i[0],o||n,s,r,!1,function(){var e,t;null==u||!u||u&&!u.params||u.destroyed||(n?(i.css("background-image",'url("'+n+'")'),i.removeAttr("data-background")):(s&&(i.attr("srcset",s),i.removeAttr("data-srcset")),r&&(i.attr("sizes",r),i.removeAttr("data-sizes")),a.length&&a.children("source").each(function(e){e=C(e);e.attr("data-srcset")&&(e.attr("srcset",e.attr("data-srcset")),e.removeAttr("data-srcset"))}),o&&(i.attr("src",o),i.removeAttr("data-src"))),i.addClass(d.loadedClass).removeClass(d.loadingClass),c.find("."+d.preloaderClass).remove(),u.params.loop&&l&&(t=c.attr("data-swiper-slide-index"),c.hasClass(u.params.slideDuplicateClass)?(e=u.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+u.params.slideDuplicateClass+")"),u.lazy.loadInSlide(e.index(),!1)):(t=u.$wrapperEl.children("."+u.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]'),u.lazy.loadInSlide(t.index(),!1))),u.emit("lazyImageReady",c[0],i[0]),u.params.autoHeight&&u.updateAutoHeight())}),u.emit("lazyImageLoad",c[0],i[0])}))},load:function(){var t=this,i=t.$wrapperEl,n=t.params,o=t.slides,e=t.activeIndex,s=t.virtual&&n.virtual.enabled,r=n.lazy,a=n.slidesPerView;function l(e){if(s){if(i.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return 1}else if(o[e])return 1}function c(e){return s?C(e).attr("data-swiper-slide-index"):C(e).index()}if("auto"===a&&(a=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)i.children("."+n.slideVisibleClass).each(function(e){e=s?C(e).attr("data-swiper-slide-index"):C(e).index();t.lazy.loadInSlide(e)});else if(1<a)for(var u=e;u<e+a;u+=1)l(u)&&t.lazy.loadInSlide(u);else t.lazy.loadInSlide(e);if(r.loadPrevNext)if(1<a||r.loadPrevNextAmount&&1<r.loadPrevNextAmount){for(var d=r.loadPrevNextAmount,r=a,h=Math.min(e+r+Math.max(d,r),o.length),d=Math.max(e-Math.max(r,d),0),p=e+a;p<h;p+=1)l(p)&&t.lazy.loadInSlide(p);for(var f=d;f<e;f+=1)l(f)&&t.lazy.loadInSlide(f)}else{d=i.children("."+n.slideNextClass);0<d.length&&t.lazy.loadInSlide(c(d));d=i.children("."+n.slidePrevClass);0<d.length&&t.lazy.loadInSlide(c(d))}},checkInViewOnLoad:function(){var e=X(),t=this;if(t&&!t.destroyed){var i=t.params.lazy.scrollingElement?C(t.params.lazy.scrollingElement):C(e),n=i[0]===e,o=n?e.innerWidth:i[0].offsetWidth,s=n?e.innerHeight:i[0].offsetHeight,e=t.$el.offset(),r=!1;t.rtlTranslate&&(e.left-=t.$el[0].scrollLeft);for(var a=[[e.left,e.top],[e.left+t.width,e.top],[e.left,e.top+t.height],[e.left+t.width,e.top+t.height]],l=0;l<a.length;l+=1){var c=a[l];0<=c[0]&&c[0]<=o&&0<=c[1]&&c[1]<=s&&(0===c[0]&&0===c[1]||(r=!0))}r?(t.lazy.load(),i.off("scroll",t.lazy.checkInViewOnLoad)):t.lazy.scrollHandlerAttached||(t.lazy.scrollHandlerAttached=!0,i.on("scroll",t.lazy.checkInViewOnLoad))}}},te={name:"lazy",params:{lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){b(this,{lazy:e({initialImageLoaded:!1},ee)})},on:{beforeInit:function(e){e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(e){e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&(e.params.lazy.checkInView?e.lazy.checkInViewOnLoad():e.lazy.load())},scroll:function(e){e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(e){e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(e){e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(e){e.params.lazy.enabled&&(!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.loadOnTransitionStart||e.lazy.initialImageLoaded)||e.lazy.load())},transitionEnd:function(e){e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()},slideChange:function(e){e.params.lazy.enabled&&e.params.cssMode&&e.lazy.load()}}},ie={LinearSpline:function(e,t){var i,n,o,s,r,a=function(e,t){for(n=-1,i=e.length;1<i-n;)e[o=i+n>>1]<=t?n=o:i=o;return i};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=a(this.x,e),s=r-1,(e-this.x[s])*(this.y[r]-this.y[s])/(this.x[r]-this.x[s])+this.y[s]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new ie.LinearSpline(this.slidesGrid,e.slidesGrid):new ie.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,n,o=this,s=o.controller.control,r=o.constructor;function a(e){var t=o.rtlTranslate?-o.translate:o.translate;"slide"===o.params.controller.by&&(o.controller.getInterpolateFunction(e),n=-o.controller.spline.interpolate(-t)),n&&"container"!==o.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(o.maxTranslate()-o.minTranslate()),n=(t-o.minTranslate())*i+e.minTranslate()),o.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,o),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(var l=0;l<s.length;l+=1)s[l]!==t&&s[l]instanceof r&&a(s[l]);else s instanceof r&&t!==s&&a(s)},setTransition:function(t,e){var i,n=this,o=n.constructor,s=n.controller.control;function r(e){e.setTransition(t,n),0!==t&&(e.transitionStart(),e.params.autoHeight&&S(function(){e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(function(){s&&(e.params.loop&&"slide"===n.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(s))for(i=0;i<s.length;i+=1)s[i]!==e&&s[i]instanceof o&&r(s[i]);else s instanceof o&&e!==s&&r(s)}},ne={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){b(this,{controller:e({control:this.params.controller.control},ie)})},on:{update:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t,i){e.controller.control&&e.controller.setTranslate(t,i)},setTransition:function(e,t,i){e.controller.control&&e.controller.setTransition(t,i)}}},oe={getRandomNumber:function(e){return"x".repeat(e=void 0===e?16:e).replace(/x/g,function(){return Math.round(16*Math.random()).toString(16)})},makeElFocusable:function(e){return e.attr("tabIndex","0"),e},makeElNotFocusable:function(e){return e.attr("tabIndex","-1"),e},addElRole:function(e,t){return e.attr("role",t),e},addElRoleDescription:function(e,t){return e.attr("aria-role-description",t),e},addElControls:function(e,t){return e.attr("aria-controls",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},addElId:function(e,t){return e.attr("id",t),e},addElLive:function(e,t){return e.attr("aria-live",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,i=t.params.a11y;13===e.keyCode&&(e=C(e.target),t.navigation&&t.navigation.$nextEl&&e.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(i.lastSlideMessage):t.a11y.notify(i.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&e.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(i.firstSlideMessage):t.a11y.notify(i.prevSlideMessage)),t.pagination&&e.is("."+t.params.pagination.bulletClass.replace(/ /g,"."))&&e[0].click())},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e,t,i=this;!i.params.loop&&i.navigation&&(e=(t=i.navigation).$nextEl,(t=t.$prevEl)&&0<t.length&&(i.isBeginning?(i.a11y.disableEl(t),i.a11y.makeElNotFocusable(t)):(i.a11y.enableEl(t),i.a11y.makeElFocusable(t))),e&&0<e.length&&(i.isEnd?(i.a11y.disableEl(e),i.a11y.makeElNotFocusable(e)):(i.a11y.enableEl(e),i.a11y.makeElFocusable(e))))},updatePagination:function(){var t=this,i=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(e){e=C(e);t.a11y.makeElFocusable(e),t.params.pagination.renderBullet||(t.a11y.addElRole(e,"button"),t.a11y.addElLabel(e,i.paginationBulletMessage.replace(/\{\{index\}\}/,e.index()+1)))})},init:function(){var t=this,e=t.params.a11y;t.$el.append(t.a11y.liveRegion);var i=t.$el;e.containerRoleDescriptionMessage&&t.a11y.addElRoleDescription(i,e.containerRoleDescriptionMessage),e.containerMessage&&t.a11y.addElLabel(i,e.containerMessage);var n,o,s=t.$wrapperEl,r=s.attr("id")||"swiper-wrapper-"+t.a11y.getRandomNumber(16);t.a11y.addElId(s,r),i=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite",t.a11y.addElLive(s,i),e.itemRoleDescriptionMessage&&t.a11y.addElRoleDescription(C(t.slides),e.itemRoleDescriptionMessage),t.a11y.addElRole(C(t.slides),"group"),t.slides.each(function(e){e=C(e);t.a11y.addElLabel(e,e.index()+1+" / "+t.slides.length)}),t.navigation&&t.navigation.$nextEl&&(n=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(o=t.navigation.$prevEl),n&&n.length&&(t.a11y.makeElFocusable(n),"BUTTON"!==n[0].tagName&&(t.a11y.addElRole(n,"button"),n.on("keydown",t.a11y.onEnterKey)),t.a11y.addElLabel(n,e.nextSlideMessage),t.a11y.addElControls(n,r)),o&&o.length&&(t.a11y.makeElFocusable(o),"BUTTON"!==o[0].tagName&&(t.a11y.addElRole(o,"button"),o.on("keydown",t.a11y.onEnterKey)),t.a11y.addElLabel(o,e.prevSlideMessage),t.a11y.addElControls(o,r)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown","."+t.params.pagination.bulletClass.replace(/ /g,"."),t.a11y.onEnterKey)},destroy:function(){var e,t,i=this;i.a11y.liveRegion&&0<i.a11y.liveRegion.length&&i.a11y.liveRegion.remove(),i.navigation&&i.navigation.$nextEl&&(e=i.navigation.$nextEl),i.navigation&&i.navigation.$prevEl&&(t=i.navigation.$prevEl),e&&e.off("keydown",i.a11y.onEnterKey),t&&t.off("keydown",i.a11y.onEnterKey),i.pagination&&i.params.pagination.clickable&&i.pagination.bullets&&i.pagination.bullets.length&&i.pagination.$el.off("keydown","."+i.params.pagination.bulletClass.replace(/ /g,"."),i.a11y.onEnterKey)}},se={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null}},create:function(){b(this,{a11y:e({},oe,{liveRegion:C('<span class="'+this.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')})})},on:{afterInit:function(e){e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(e){e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(e){e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(e){e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(e){e.params.a11y.enabled&&e.a11y.destroy()}}},re={init:function(){var e=X();if(this.params.history){if(!e.history||!e.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=re.getPathValues(this.params.url),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||e.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){var e=X();this.params.history.replaceState||e.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=re.getPathValues(this.params.url),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(e){var t=X(),e=e?new URL(e):t.location,t=e.pathname.slice(1).split("/").filter(function(e){return""!==e}),e=t.length;return{key:t[e-2],value:t[e-1]}},setHistory:function(e,t){var i,n=X();this.history.initialized&&this.params.history.enabled&&(i=this.params.url?new URL(this.params.url):n.location,t=this.slides.eq(t),t=re.slugify(t.attr("data-history")),i.pathname.includes(e)||(t=e+"/"+t),(e=n.history.state)&&e.value===t||(this.params.history.replaceState?n.history.replaceState({value:t},null,t):n.history.pushState({value:t},null,t)))},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){if(t)for(var n=0,o=this.slides.length;n<o;n+=1){var s=this.slides.eq(n);re.slugify(s.attr("data-history"))!==t||s.hasClass(this.params.slideDuplicateClass)||(s=s.index(),this.slideTo(s,e,i))}else this.slideTo(0,e,i)}},ae={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){b(this,{history:e({},re)})},on:{init:function(e){e.params.history.enabled&&e.history.init()},destroy:function(e){e.params.history.enabled&&e.history.destroy()},transitionEnd:function(e){e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)},slideChange:function(e){e.history.initialized&&e.params.cssMode&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},le={onHashCange:function(){var e=y();this.emit("hashChange");e=e.location.hash.replace("#","");e===this.slides.eq(this.activeIndex).attr("data-hash")||void 0!==(e=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+e+'"]').index())&&this.slideTo(e)},setHash:function(){var e=X(),t=y();this.hashNavigation.initialized&&this.params.hashNavigation.enabled&&(this.params.hashNavigation.replaceState&&e.history&&e.history.replaceState?e.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||""):(e=(e=this.slides.eq(this.activeIndex)).attr("data-hash")||e.attr("data-history"),t.location.hash=e||""),this.emit("hashSet"))},init:function(){var e=this,t=y(),i=X();if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var n=t.location.hash.replace("#","");if(n)for(var o=0,s=e.slides.length;o<s;o+=1){var r=e.slides.eq(o);(r.attr("data-hash")||r.attr("data-history"))!==n||r.hasClass(e.params.slideDuplicateClass)||(r=r.index(),e.slideTo(r,0,e.params.runCallbacksOnInit,!0))}e.params.hashNavigation.watchState&&C(i).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){var e=X();this.params.hashNavigation.watchState&&C(e).off("hashchange",this.hashNavigation.onHashCange)}},ce={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){b(this,{hashNavigation:e({initialized:!1},le)})},on:{init:function(e){e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(e){e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(e){e.hashNavigation.initialized&&e.hashNavigation.setHash()},slideChange:function(e){e.hashNavigation.initialized&&e.params.cssMode&&e.hashNavigation.setHash()}}},ue={run:function(){var t=this,e=t.slides.eq(t.activeIndex),i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=S(function(){var e;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),e=t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),(t.params.cssMode&&t.autoplay.running||!1===e)&&t.autoplay.run()},i)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))},onVisibilityChange:function(){var e=y();"hidden"===e.visibilityState&&this.autoplay.running&&this.autoplay.pause(),"visible"===e.visibilityState&&this.autoplay.paused&&(this.autoplay.run(),this.autoplay.paused=!1)},onTransitionEnd:function(e){var t=this;t&&!t.destroyed&&t.$wrapperEl&&e.target===t.$wrapperEl[0]&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}},de={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){b(this,{autoplay:e({},ue,{running:!1,paused:!1})})},on:{init:function(e){e.params.autoplay.enabled&&(e.autoplay.start(),y().addEventListener("visibilitychange",e.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t,i){e.autoplay.running&&(i||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(t):e.autoplay.stop())},sliderFirstMove:function(e){e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},touchEnd:function(e){e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&e.autoplay.run()},destroy:function(e){e.autoplay.running&&e.autoplay.stop(),y().removeEventListener("visibilitychange",e.autoplay.onVisibilityChange)}}},he={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var i=this.slides.eq(t),n=-i[0].swiperSlideOffset;this.params.virtualTranslate||(n-=this.translate);var o=0;this.isHorizontal()||(o=n,n=0);var s=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:s}).transform("translate3d("+n+"px, "+o+"px, 0px)")}},setTransition:function(e){var i,n=this,t=n.slides,o=n.$wrapperEl;t.transition(e),n.params.virtualTranslate&&0!==e&&(i=!1,t.transitionEnd(function(){if(!i&&n&&!n.destroyed){i=!0,n.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],t=0;t<e.length;t+=1)o.trigger(e[t])}}))}},pe={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){b(this,{fadeEffect:e({},he)})},on:{beforeInit:function(e){var t;"fade"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"fade"),K(e.params,t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}),K(e.originalParams,t))},setTranslate:function(e){"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e,t){"fade"===e.params.effect&&e.fadeEffect.setTransition(t)}}},fe={setTranslate:function(){var e,t=this,i=t.$el,n=t.$wrapperEl,o=t.slides,s=t.width,r=t.height,a=t.rtlTranslate,l=t.size,c=t.browser,u=t.params.cubeEffect,d=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled,p=0;u.shadow&&(d?(0===(e=n.find(".swiper-cube-shadow")).length&&(e=C('<div class="swiper-cube-shadow"></div>'),n.append(e)),e.css({height:s+"px"})):0===(e=i.find(".swiper-cube-shadow")).length&&(e=C('<div class="swiper-cube-shadow"></div>'),i.append(e)));for(var f,m=0;m<o.length;m+=1){var g=o.eq(m),v=m,y=90*(v=h?parseInt(g.attr("data-swiper-slide-index"),10):v),_=Math.floor(y/360);a&&(y=-y,_=Math.floor(-y/360));var b=Math.max(Math.min(g[0].progress,1),-1),w=0,x=0,T=0;v%4==0?(w=4*-_*l,T=0):(v-1)%4==0?(w=0,T=4*-_*l):(v-2)%4==0?(w=l+4*_*l,T=l):(v-3)%4==0&&(w=-l,T=3*l+4*l*_),a&&(w=-w),d||(x=w,w=0),b<=1&&-1<b&&(p=a?90*-v-90*b:90*v+90*b),g.transform("rotateX("+(d?0:-y)+"deg) rotateY("+(d?y:0)+"deg) translate3d("+w+"px, "+x+"px, "+T+"px)"),u.slideShadows&&(x=d?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),T=d?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom"),0===x.length&&(x=C('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),g.append(x)),0===T.length&&(T=C('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),g.append(T)),x.length&&(x[0].style.opacity=Math.max(-b,0)),T.length&&(T[0].style.opacity=Math.max(b,0)))}n.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),u.shadow&&(d?e.transform("translate3d(0px, "+(s/2+u.shadowOffset)+"px, "+-s/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.shadowScale+")"):(f=Math.abs(p)-90*Math.floor(Math.abs(p)/90),i=1.5-(Math.sin(2*f*Math.PI/360)/2+Math.cos(2*f*Math.PI/360)/2),s=u.shadowScale,f=u.shadowScale/i,i=u.shadowOffset,e.transform("scale3d("+s+", 1, "+f+") translate3d(0px, "+(r/2+i)+"px, "+-r/2/f+"px) rotateX(-90deg)")));c=c.isSafari||c.isWebView?-l/2:0;n.transform("translate3d(0px,0,"+c+"px) rotateX("+(t.isHorizontal()?0:p)+"deg) rotateY("+(t.isHorizontal()?-p:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},me={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){b(this,{cubeEffect:e({},fe)})},on:{beforeInit:function(e){var t;"cube"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d"),K(e.params,t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0}),K(e.originalParams,t))},setTranslate:function(e){"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e,t){"cube"===e.params.effect&&e.cubeEffect.setTransition(t)}}},ge={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,i=0;i<e.length;i+=1){var n,o,s=e.eq(i),r=s[0].progress,a=-180*(r=this.params.flipEffect.limitRotation?Math.max(Math.min(s[0].progress,1),-1):r),l=0,c=-s[0].swiperSlideOffset,u=0;this.isHorizontal()?t&&(a=-a):(u=c,l=-a,a=c=0),s[0].style.zIndex=-Math.abs(Math.round(r))+e.length,this.params.flipEffect.slideShadows&&(n=this.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),o=this.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom"),0===n.length&&(n=C('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),s.append(n)),0===o.length&&(o=C('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),s.append(o)),n.length&&(n[0].style.opacity=Math.max(-r,0)),o.length&&(o[0].style.opacity=Math.max(r,0))),s.transform("translate3d("+c+"px, "+u+"px, 0px) rotateX("+l+"deg) rotateY("+a+"deg)")}},setTransition:function(e){var i,n=this,t=n.slides,o=n.activeIndex,s=n.$wrapperEl;t.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),n.params.virtualTranslate&&0!==e&&(i=!1,t.eq(o).transitionEnd(function(){if(!i&&n&&!n.destroyed){i=!0,n.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],t=0;t<e.length;t+=1)s.trigger(e[t])}}))}},ve={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){b(this,{flipEffect:e({},ge)})},on:{beforeInit:function(e){var t;"flip"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d"),K(e.params,t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}),K(e.originalParams,t))},setTranslate:function(e){"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e,t){"flip"===e.params.effect&&e.flipEffect.setTransition(t)}}},ye={setTranslate:function(){for(var e=this.width,t=this.height,i=this.slides,n=this.slidesSizesGrid,o=this.params.coverflowEffect,s=this.isHorizontal(),r=this.translate,a=s?e/2-r:t/2-r,l=s?o.rotate:-o.rotate,c=o.depth,u=0,d=i.length;u<d;u+=1){var h=i.eq(u),p=n[u],f=(a-h[0].swiperSlideOffset-p/2)/p*o.modifier,m=s?l*f:0,g=s?0:l*f,v=-c*Math.abs(f),y=o.stretch;"string"==typeof y&&-1!==y.indexOf("%")&&(y=parseFloat(o.stretch)/100*p);var _=s?0:y*f,p=s?y*f:0,y=1-(1-o.scale)*Math.abs(f);Math.abs(p)<.001&&(p=0),Math.abs(_)<.001&&(_=0),Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(g)<.001&&(g=0),Math.abs(y)<.001&&(y=0),h.transform("translate3d("+p+"px,"+_+"px,"+v+"px)  rotateX("+g+"deg) rotateY("+m+"deg) scale("+y+")"),h[0].style.zIndex=1-Math.abs(Math.round(f)),o.slideShadows&&(m=s?h.find(".swiper-slide-shadow-left"):h.find(".swiper-slide-shadow-top"),y=s?h.find(".swiper-slide-shadow-right"):h.find(".swiper-slide-shadow-bottom"),0===m.length&&(m=C('<div class="swiper-slide-shadow-'+(s?"left":"top")+'"></div>'),h.append(m)),0===y.length&&(y=C('<div class="swiper-slide-shadow-'+(s?"right":"bottom")+'"></div>'),h.append(y)),m.length&&(m[0].style.opacity=0<f?f:0),y.length&&(y[0].style.opacity=0<-f?-f:0))}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},E={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){b(this,{coverflowEffect:e({},ye)})},on:{beforeInit:function(e){"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(e){"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e,t){"coverflow"===e.params.effect&&e.coverflowEffect.setTransition(t)}}},_e={init:function(){var e=this,t=e.params.thumbs;if(e.thumbs.initialized)return!1;e.thumbs.initialized=!0;var i=e.constructor;return t.swiper instanceof i?(e.thumbs.swiper=t.swiper,K(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),K(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):_(t.swiper)&&(e.thumbs.swiper=new i(K({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick),!0},onThumbClick:function(){var e,t,i,n=this,o=n.thumbs.swiper;o&&(t=o.clickedIndex,(e=o.clickedSlide)&&C(e).hasClass(n.params.thumbs.slideThumbActiveClass)||null!=t&&(i=o.params.loop?parseInt(C(o.clickedSlide).attr("data-swiper-slide-index"),10):t,n.params.loop&&(e=n.activeIndex,n.slides.eq(e).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,e=n.activeIndex),o=n.slides.eq(e).prevAll('[data-swiper-slide-index="'+i+'"]').eq(0).index(),t=n.slides.eq(e).nextAll('[data-swiper-slide-index="'+i+'"]').eq(0).index(),i=void 0===o||void 0!==t&&t-e<e-o?t:o),n.slideTo(i)))},update:function(e){var t=this,i=t.thumbs.swiper;if(i){var n,o,s,r="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView,a=t.params.thumbs.autoScrollOffset,l=a&&!i.params.loop;t.realIndex===i.realIndex&&!l||(n=i.activeIndex,s=i.params.loop?(i.slides.eq(n).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,n=i.activeIndex),s=i.slides.eq(n).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),o=i.slides.eq(n).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),o=void 0===s?o:void 0===o?s:o-n==n-s?n:o-n<n-s?o:s,t.activeIndex>t.previousIndex?"next":"prev"):(o=t.realIndex)>t.previousIndex?"next":"prev",l&&(o+="next"===s?a:-1*a),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(o)<0&&(i.params.centeredSlides?o=n<o?o-Math.floor(r/2)+1:o+Math.floor(r/2)-1:n<o&&(o=o-r+1),i.slideTo(o,e?0:void 0)));var c=1,u=t.params.thumbs.slideThumbActiveClass;if(1<t.params.slidesPerView&&!t.params.centeredSlides&&(c=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(c=1),c=Math.floor(c),i.slides.removeClass(u),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(var d=0;d<c;d+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+d)+'"]').addClass(u);else for(var h=0;h<c;h+=1)i.slides.eq(t.realIndex+h).addClass(u)}}},P={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){b(this,{thumbs:e({swiper:null,initialized:!1},_e)})},on:{beforeInit:function(e){var t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(e){e.thumbs.swiper&&e.thumbs.update()},update:function(e){e.thumbs.swiper&&e.thumbs.update()},resize:function(e){e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(e){e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e,t){e=e.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(e){var t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}};return N.use([$,R,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}},create:function(){b(this,{mousewheel:{enabled:!1,lastScrollTime:k(),lastEventBeforeSnap:void 0,recentWheelEvents:[],enable:H.enable,disable:H.disable,handle:H.handle,handleMouseEnter:H.handleMouseEnter,handleMouseLeave:H.handleMouseLeave,animateSlider:H.animateSlider,releaseScroll:H.releaseScroll}})},on:{init:function(e){!e.params.mousewheel.enabled&&e.params.cssMode&&e.mousewheel.disable(),e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(e){e.params.cssMode&&e.mousewheel.enable(),e.mousewheel.enabled&&e.mousewheel.disable()}}},q,U,G,Y,J,te,ne,se,ae,ce,de,pe,me,ve,E,P]),N}),function(e){("object"!=typeof exports||"undefined"==typeof module)&&"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";function t(e,t){t=void 0!==t?t:{};this.version="2.1.2",this.userAgent=window.navigator.userAgent||"no `userAgent` provided by the browser",this.props={noStyles:t.noStyles||!1,stickyBitStickyOffset:t.stickyBitStickyOffset||0,parentClass:t.parentClass||"js-stickybit-parent",scrollEl:t.scrollEl||window,stickyClass:t.stickyClass||"js-is-sticky",stuckClass:t.stuckClass||"js-is-stuck",useStickyClasses:t.useStickyClasses||!1,verticalPosition:t.verticalPosition||"top"};var i=this.props;i.positionVal=this.definePosition()||"fixed";var n=i.verticalPosition,o=i.noStyles,s=i.positionVal;this.els="string"==typeof e?document.querySelectorAll(e):e,"length"in this.els||(this.els=[this.els]),this.instances=[];for(var r=0;r<this.els.length;r+=1){var a=this.els[r],l=a.style;"top"!==n||o||(l[n]=i.stickyBitStickyOffset+"px"),"fixed"!==s&&!1===i.useStickyClasses?l.position=s:("fixed"!==s&&(l.position=s),a=this.addInstance(a,i),this.instances.push(a))}return this}var e;t.prototype.definePosition=function(){for(var e=["","-o-","-webkit-","-moz-","-ms-"],t=document.head.style,i=0;i<e.length;i+=1)t.position=e[i]+"sticky";var n="fixed";return void 0!==t.position&&(n=t.position),t.position="",n},t.prototype.addInstance=function(e,t){var i=this,n={el:e,parent:e.parentNode,props:t},e=n.props;n.parent.className+=" "+t.parentClass;e=e.scrollEl;return n.isWin=e===window,n.isWin||(e=this.getClosestParent(n.el,e)),this.computeScrollOffsets(n),n.state="default",n.stateContainer=function(){i.manageState(n)},e.addEventListener("scroll",n.stateContainer),n},t.prototype.getClosestParent=function(e,t){var i=document.querySelector(t),n=e;if(n.parentElement===i)return i;for(;n.parentElement!==i;)n=n.parentElement;return i},t.prototype.computeScrollOffsets=function(e){var t=e,i=t.props,n=t.parent,o=t.isWin,s=0,e=n.getBoundingClientRect().top;return o||"fixed"!==i.positionVal||(s=i.scrollEl.getBoundingClientRect().top,e=n.getBoundingClientRect().top-s),t.offset=s+i.stickyBitStickyOffset,"bottom"!==i.verticalPosition?(t.stickyStart=e-t.offset,t.stickyStop=e+n.offsetHeight-(t.el.offsetHeight+t.offset)):(t.stickyStart=0,t.stickyStop=e+n.offsetHeight),t},t.prototype.toggleClasses=function(e,t,i){var n=e,e=n.className.split(" ");i&&-1===e.indexOf(i)&&e.push(i);t=e.indexOf(t);-1!==t&&e.splice(t,1),n.className=e.join(" ")},t.prototype.manageState=function(e){var t=e,i=t.el,n=t.props,o=t.state,s=t.stickyStart,r=t.stickyStop,a=i.style,l=n.noStyles,c=n.positionVal,u=n.scrollEl,d=n.stickyClass,h=n.stuckClass,p=n.verticalPosition,f=u.requestAnimationFrame;t.isWin&&void 0!==f||(f=function(e){e()});var m=this.toggleClasses,g=t.isWin?u.scrollY||u.pageYOffset:u.scrollTop,e=g<=s&&"sticky"===o,u=r<=g&&"sticky"===o;return s<g&&g<r&&("default"===o||"stuck"===o)?(t.state="sticky",f(function(){m(i,h,d),a.position=c,l||(a.bottom="",a[p]=n.stickyBitStickyOffset+"px")})):e?(t.state="default",f(function(){m(i,d),"fixed"===c&&(a.position="")})):u&&(t.state="stuck",f(function(){m(i,d,h),"fixed"!==c||l||(a.top="",a.bottom="0",a.position="absolute")})),t},t.prototype.removeInstance=function(e){var t=e.el,i=e.props,e=this.toggleClasses;t.style.position="",t.style[i.verticalPosition]="",e(t,i.stickyClass),e(t,i.stuckClass),e(t.parentNode,i.parentClass)},t.prototype.cleanup=function(){for(var e=0;e<this.instances.length;e+=1){var t=this.instances[e];t.props.scrollEl.removeEventListener("scroll",t.stateContainer),this.removeInstance(t)}this.manageState=!1,this.instances=[]},"undefined"==typeof window||(e=window.$||window.jQuery||window.Zepto)&&(e.fn.stickybits=function(e){new t(this,e)})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(I){var l,z,n,o,a,s,m,D,N,g,h,c,u,d,p,f,v,y,_,b,w,x,C,T,S,k,E,L,B,r,P,A,M,O,$,j,R,H,F,q,W,U,V,G,Z,Y,X,K,Q,J,t,ee,te,ie,ne,oe,se,e,i,re;e="function"==typeof define&&define.amd,i="undefined"!=typeof module&&module.exports,re="https:"==document.location.protocol?"https:":"http:",e||(i?require("jquery-mousewheel")(I):I.event.special.mousewheel||I("head").append(decodeURI("%3Cscript src="+re+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),l="mCustomScrollbar",z="mCS",n=".mCustomScrollbar",o={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},a=0,s={},m=window.attachEvent&&!window.addEventListener?1:0,D=!1,g=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],h={init:function(r){var r=I.extend(!0,{},o,r),e=c.call(this);if(r.live){var t=r.liveSelector||this.selector||n,i=I(t);if("off"===r.live)return void d(t);s[t]=setTimeout(function(){i.mCustomScrollbar(r),"once"===r.live&&i.length&&d(t)},500)}else d(t);return r.setWidth=r.set_width||r.setWidth,r.setHeight=r.set_height||r.setHeight,r.axis=r.horizontalScroll?"x":p(r.axis),r.scrollInertia=0<r.scrollInertia&&r.scrollInertia<17?17:r.scrollInertia,"object"!=typeof r.mouseWheel&&1==r.mouseWheel&&(r.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),r.mouseWheel.scrollAmount=r.mouseWheelPixels||r.mouseWheel.scrollAmount,r.mouseWheel.normalizeDelta=r.advanced.normalizeMouseWheelDelta||r.mouseWheel.normalizeDelta,r.scrollButtons.scrollType=f(r.scrollButtons.scrollType),u(r),I(e).each(function(){var e,t,i,n,o,s=I(this);s.data(z)||(s.data(z,{idx:++a,opt:r,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:s.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}}),t=(e=s.data(z)).opt,i=s.data("mcs-axis"),n=s.data("mcs-scrollbar-position"),o=s.data("mcs-theme"),i&&(t.axis=i),n&&(t.scrollbarPosition=n),o&&(t.theme=o,u(t)),v.call(this),e&&t.callbacks.onCreate&&"function"==typeof t.callbacks.onCreate&&t.callbacks.onCreate.call(this),I("#mCSB_"+e.idx+"_container img:not(."+g[2]+")").addClass(g[2]),h.update.call(null,s))})},update:function(e,r){e=e||c.call(this);return I(e).each(function(){var e,t,i,n,o,s=I(this);s.data(z)&&(t=(e=s.data(z)).opt,o=I("#mCSB_"+e.idx+"_container"),i=I("#mCSB_"+e.idx),n=[I("#mCSB_"+e.idx+"_dragger_vertical"),I("#mCSB_"+e.idx+"_dragger_horizontal")],o.length&&(e.tweenRunning&&X(s),r&&e&&t.callbacks.onBeforeUpdate&&"function"==typeof t.callbacks.onBeforeUpdate&&t.callbacks.onBeforeUpdate.call(this),s.hasClass(g[3])&&s.removeClass(g[3]),s.hasClass(g[4])&&s.removeClass(g[4]),i.css("max-height","none"),i.height()!==s.height()&&i.css("max-height",s.height()),_.call(this),"y"===t.axis||t.advanced.autoExpandHorizontalScroll||o.css("width",y(o)),e.overflowed=T.call(this),L.call(this),t.autoDraggerLength&&w.call(this),x.call(this),k.call(this),o=[Math.abs(o[0].offsetTop),Math.abs(o[0].offsetLeft)],"x"!==t.axis&&(e.overflowed[0]?n[0].height()>n[0].parent().height()?S.call(this):(K(s,o[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(S.call(this),"y"===t.axis?E.call(this):"yx"===t.axis&&e.overflowed[1]&&K(s,o[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==t.axis&&(e.overflowed[1]?n[1].width()>n[1].parent().width()?S.call(this):(K(s,o[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(S.call(this),"x"===t.axis?E.call(this):"yx"===t.axis&&e.overflowed[0]&&K(s,o[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),r&&e&&(2===r&&t.callbacks.onImageLoad&&"function"==typeof t.callbacks.onImageLoad?t.callbacks.onImageLoad.call(this):3===r&&t.callbacks.onSelectorChange&&"function"==typeof t.callbacks.onSelectorChange?t.callbacks.onSelectorChange.call(this):t.callbacks.onUpdate&&"function"==typeof t.callbacks.onUpdate&&t.callbacks.onUpdate.call(this)),Y.call(this)))})},scrollTo:function(r,a){if(void 0!==r&&null!=r){var e=c.call(this);return I(e).each(function(){var e,t,i,n,o,s=I(this);s.data(z)&&(e=s.data(z),o={trigger:"external",scrollInertia:(t=e.opt).scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},i=I.extend(!0,{},o,a),n=G.call(this,r),o=0<i.scrollInertia&&i.scrollInertia<17?17:i.scrollInertia,n[0]=Z.call(this,n[0],"y"),n[1]=Z.call(this,n[1],"x"),i.moveDragger&&(n[0]*=e.scrollRatio.y,n[1]*=e.scrollRatio.x),i.dur=se()?0:o,setTimeout(function(){null!==n[0]&&void 0!==n[0]&&"x"!==t.axis&&e.overflowed[0]&&(i.dir="y",i.overwrite="all",K(s,n[0].toString(),i)),null!==n[1]&&void 0!==n[1]&&"y"!==t.axis&&e.overflowed[1]&&(i.dir="x",i.overwrite="none",K(s,n[1].toString(),i))},i.timeout))})}},stop:function(){var e=c.call(this);return I(e).each(function(){var e=I(this);e.data(z)&&X(e)})},disable:function(t){var e=c.call(this);return I(e).each(function(){var e=I(this);e.data(z)&&(e.data(z),Y.call(this,"remove"),E.call(this),t&&S.call(this),L.call(this,!0),e.addClass(g[3]))})},destroy:function(){var r=c.call(this);return I(r).each(function(){var e,t,i,n,o,s=I(this);s.data(z)&&(t=(e=s.data(z)).opt,i=I("#mCSB_"+e.idx),n=I("#mCSB_"+e.idx+"_container"),o=I(".mCSB_"+e.idx+"_scrollbar"),t.live&&d(t.liveSelector||I(r).selector),Y.call(this,"remove"),E.call(this),S.call(this),s.removeData(z),ee(this,"mcs"),o.remove(),n.find("img."+g[2]).removeClass(g[2]),i.replaceWith(n.contents()),s.removeClass(l+" _"+z+"_"+e.idx+" "+g[6]+" "+g[7]+" "+g[5]+" "+g[3]).addClass(g[4]))})}},c=function(){return"object"!=typeof I(this)||I(this).length<1?n:this},u=function(e){e.autoDraggerLength=!(-1<I.inArray(e.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"]))&&e.autoDraggerLength,e.autoExpandScrollbar=!(-1<I.inArray(e.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"]))&&e.autoExpandScrollbar,e.scrollButtons.enable=!(-1<I.inArray(e.theme,["minimal","minimal-dark"]))&&e.scrollButtons.enable,e.autoHideScrollbar=-1<I.inArray(e.theme,["minimal","minimal-dark"])||e.autoHideScrollbar,e.scrollbarPosition=-1<I.inArray(e.theme,["minimal","minimal-dark"])?"outside":e.scrollbarPosition},d=function(e){s[e]&&(clearTimeout(s[e]),ee(s,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},f=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var e=I(this),t=e.data(z),i=t.opt,n=i.autoExpandScrollbar?" "+g[1]+"_expand":"",o=["<div id='mCSB_"+t.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+n+"'><div class='"+g[12]+"'><div id='mCSB_"+t.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+t.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+n+"'><div class='"+g[12]+"'><div id='mCSB_"+t.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",r="yx"===i.axis?o[0]+o[1]:"x"===i.axis?o[1]:o[0],a="yx"===i.axis?"<div id='mCSB_"+t.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",n=i.autoHideScrollbar?" "+g[6]:"",o="x"!==i.axis&&"rtl"===t.langDir?" "+g[7]:"";i.setWidth&&e.css("width",i.setWidth),i.setHeight&&e.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===t.langDir?"989999px":i.setLeft,e.addClass(l+" _"+z+"_"+t.idx+n+o).wrapInner("<div id='mCSB_"+t.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+t.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+t.langDir+"' /></div>");o=I("#mCSB_"+t.idx),s=I("#mCSB_"+t.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||s.css("width",y(s)),"outside"===i.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),o.addClass("mCSB_outside").after(r)):(o.addClass("mCSB_inside").append(r),s.wrap(a)),b.call(this);t=[I("#mCSB_"+t.idx+"_dragger_vertical"),I("#mCSB_"+t.idx+"_dragger_horizontal")];t[0].css("min-height",t[0].height()),t[1].css("min-width",t[1].width())},y=function(e){var t=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return I(this).outerWidth(!0)}).get())],e=e.parent().width();return e<t[0]?t[0]:e<t[1]?t[1]:"100%"},_=function(){var e=I(this).data(z),t=e.opt,i=I("#mCSB_"+e.idx+"_container");t.advanced.autoExpandHorizontalScroll&&"y"!==t.axis&&(i.css({width:"auto","min-width":0,"overflow-x":"scroll"}),e=Math.ceil(i[0].scrollWidth),3===t.advanced.autoExpandHorizontalScroll||2!==t.advanced.autoExpandHorizontalScroll&&e>i.parent().width()?i.css({width:e,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap())},b=function(){var e=I(this).data(z),t=e.opt,i=I(".mCSB_"+e.idx+"_scrollbar:first"),e=ne(t.scrollButtons.tabindex)?"tabindex='"+t.scrollButtons.tabindex+"'":"",e=["<a href='#' class='"+g[13]+"' "+e+" />","<a href='#' class='"+g[14]+"' "+e+" />","<a href='#' class='"+g[15]+"' "+e+" />","<a href='#' class='"+g[16]+"' "+e+" />"],e=["x"===t.axis?e[2]:e[0],"x"===t.axis?e[3]:e[1],e[2],e[3]];t.scrollButtons.enable&&i.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},w=function(){var e=I(this).data(z),t=I("#mCSB_"+e.idx),i=I("#mCSB_"+e.idx+"_container"),e=[I("#mCSB_"+e.idx+"_dragger_vertical"),I("#mCSB_"+e.idx+"_dragger_horizontal")],t=[t.height()/i.outerHeight(!1),t.width()/i.outerWidth(!1)],i=[parseInt(e[0].css("min-height")),Math.round(t[0]*e[0].parent().height()),parseInt(e[1].css("min-width")),Math.round(t[1]*e[1].parent().width())],t=m&&i[3]<i[2]?i[2]:i[3];e[0].css({height:m&&i[1]<i[0]?i[0]:i[1],"max-height":e[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":i[0]+"px"}),e[1].css({width:t,"max-width":e[1].parent().width()-10})},x=function(){var e=I(this).data(z),t=I("#mCSB_"+e.idx),i=I("#mCSB_"+e.idx+"_container"),n=[I("#mCSB_"+e.idx+"_dragger_vertical"),I("#mCSB_"+e.idx+"_dragger_horizontal")],t=[i.outerHeight(!1)-t.height(),i.outerWidth(!1)-t.width()],n=[t[0]/(n[0].parent().height()-n[0].height()),t[1]/(n[1].parent().width()-n[1].width())];e.scrollRatio={y:n[0],x:n[1]}},C=function(e,t,i){var n=i?g[0]+"_expanded":"",i=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(g[0]+" "+n),i.toggleClass(g[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(g[0]),i.removeClass(g[1])):(e.addClass(g[0]),i.addClass(g[1])))},T=function(){var e=I(this).data(z),t=I("#mCSB_"+e.idx),i=I("#mCSB_"+e.idx+"_container"),n=null==e.overflowed?i.height():i.outerHeight(!1),o=null==e.overflowed?i.width():i.outerWidth(!1),e=i[0].scrollHeight,i=i[0].scrollWidth;return o<i&&(o=i),[(n=n<e?e:n)>t.height(),o>t.width()]},S=function(){var e=I(this),t=e.data(z),i=t.opt,n=I("#mCSB_"+t.idx),o=I("#mCSB_"+t.idx+"_container"),s=[I("#mCSB_"+t.idx+"_dragger_vertical"),I("#mCSB_"+t.idx+"_dragger_horizontal")];X(e),("x"!==i.axis&&!t.overflowed[0]||"y"===i.axis&&t.overflowed[0])&&(s[0].add(o).css("top",0),K(e,"_resetY")),("y"!==i.axis&&!t.overflowed[1]||"x"===i.axis&&t.overflowed[1])&&(i=dx=0,"rtl"===t.langDir&&(i=n.width()-o.outerWidth(!1),dx=Math.abs(i/t.scrollRatio.x)),o.css("left",i),s[1].css("left",dx),K(e,"_resetX"))},k=function(){var t,i=I(this),e=i.data(z),n=e.opt;e.bindEvents||(r.call(this),n.contentTouchScroll&&P.call(this),A.call(this),n.mouseWheel.enable&&function e(){t=setTimeout(function(){I.event.special.mousewheel?(clearTimeout(t),M.call(i[0])):e()},100)}(),H.call(this),q.call(this),n.advanced.autoScrollOnFocus&&F.call(this),n.scrollButtons.enable&&W.call(this),n.keyboard.enable&&U.call(this),e.bindEvents=!0)},E=function(){var e=I(this),t=e.data(z),i=t.opt,n="mCS_"+t.idx,o=".mCSB_"+t.idx+"_scrollbar",s=I("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+o+" ."+g[12]+",#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+o+">a"),o=I("#mCSB_"+t.idx+"_container");i.advanced.releaseDraggableSelectors&&s.add(I(i.advanced.releaseDraggableSelectors)),i.advanced.extraDraggableSelectors&&s.add(I(i.advanced.extraDraggableSelectors)),t.bindEvents&&(I(document).add(I(!$()||top.document)).unbind("."+n),s.each(function(){I(this).unbind("."+n)}),void 0!==o[0]&&(clearTimeout(e[0]._focusTimeout),ee(e[0],"_focusTimeout"),clearTimeout(t.sequential.step),ee(t.sequential,"step"),clearTimeout(o[0].onCompleteTimeout),ee(o[0],"onCompleteTimeout"),t.bindEvents=!1))},L=function(e){var t=I(this),i=t.data(z),n=i.opt,o=I("#mCSB_"+i.idx+"_container_wrapper"),s=o.length?o:I("#mCSB_"+i.idx+"_container"),r=[I("#mCSB_"+i.idx+"_scrollbar_vertical"),I("#mCSB_"+i.idx+"_scrollbar_horizontal")],o=[r[0].find(".mCSB_dragger"),r[1].find(".mCSB_dragger")];"x"!==n.axis&&(i.overflowed[0]&&!e?(r[0].add(o[0]).add(r[0].children("a")).css("display","block"),s.removeClass(g[8]+" "+g[10])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&o[0].css("display","none"),s.removeClass(g[10])):(r[0].css("display","none"),s.addClass(g[10])),s.addClass(g[8]))),"y"!==n.axis&&(i.overflowed[1]&&!e?(r[1].add(o[1]).add(r[1].children("a")).css("display","block"),s.removeClass(g[9]+" "+g[11])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&o[1].css("display","none"),s.removeClass(g[11])):(r[1].css("display","none"),s.addClass(g[11])),s.addClass(g[9]))),i.overflowed[0]||i.overflowed[1]?t.removeClass(g[5]):t.addClass(g[5])},B=function(e){var t=e.type,i=e.target.ownerDocument!==document&&null!==frameElement?[I(frameElement).offset().top,I(frameElement).offset().left]:null,n=$()&&e.target.ownerDocument!==top.document&&null!==frameElement?[I(e.view.frameElement).offset().top,I(e.view.frameElement).offset().left]:[0,0];switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[e.originalEvent.pageY-i[0]+n[0],e.originalEvent.pageX-i[1]+n[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var o=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],s=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[o.screenY,o.screenX,1<s]:[o.pageY,o.pageX,1<s];default:return i?[e.pageY-i[0]+n[0],e.pageX-i[1]+n[1],!1]:[e.pageY,e.pageX,!1]}},r=function(){var s,o,r,a=I(this),l=a.data(z),c=l.opt,e="mCS_"+l.idx,u=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],d=I("#mCSB_"+l.idx+"_container"),t=I("#"+u[0]+",#"+u[1]),i=c.advanced.releaseDraggableSelectors?t.add(I(c.advanced.releaseDraggableSelectors)):t,n=c.advanced.extraDraggableSelectors?I(!$()||top.document).add(I(c.advanced.extraDraggableSelectors)):I(!$()||top.document);function h(e,t,i,n){var o;d[0].idleTimer=c.scrollInertia<233?250:0,i=s.attr("id")===u[1]?(o="x",(s[0].offsetLeft-t+n)*l.scrollRatio.x):(o="y",(s[0].offsetTop-e+i)*l.scrollRatio.y),K(a,i.toString(),{dir:o,drag:!0})}t.bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){var t,i,n;e.stopImmediatePropagation(),e.preventDefault(),te(e)&&(D=!0,m&&(document.onselectstart=function(){return!1}),j.call(d,!1),X(a),n=(s=I(this)).offset(),t=B(e)[0]-n.top,i=B(e)[1]-n.left,e=s.height()+n.top,n=s.width()+n.left,t<e&&0<t&&i<n&&0<i&&(o=t,r=i),C(s,"active",c.autoExpandScrollbar))}).bind("touchmove."+e,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=s.offset(),i=B(e)[0]-t.top,t=B(e)[1]-t.left;h(o,r,i,t)}),I(document).add(n).bind("mousemove."+e+" pointermove."+e+" MSPointerMove."+e,function(e){var t,i;s&&(i=s.offset(),t=B(e)[0]-i.top,i=B(e)[1]-i.left,o===t&&r===i||h(o,r,t,i))}).add(i).bind("mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(e){s&&(C(s,"active",c.autoExpandScrollbar),s=null),D=!1,m&&(document.onselectstart=null),j.call(d,!0)})},P=function(){var r,a,l,s,c,u,d,h,p,f,m,g,v=I(this),y=v.data(z),_=y.opt,e="mCS_"+y.idx,b=I("#mCSB_"+y.idx),w=I("#mCSB_"+y.idx+"_container"),x=[I("#mCSB_"+y.idx+"_dragger_vertical"),I("#mCSB_"+y.idx+"_dragger_horizontal")],T=[],C=[],S=0,k="yx"===_.axis?"none":"all",E=[],t=w.find("iframe"),i=["touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,"touchmove."+e+" pointermove."+e+" MSPointerMove."+e,"touchend."+e+" pointerup."+e+" MSPointerUp."+e],L=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function n(e){var t;!ie(e)||D||B(e)[2]?N=0:(g=m=0,r=N=1,v.removeClass("mCS_touch_action"),t=w.offset(),a=B(e)[0]-t.top,l=B(e)[1]-t.left,E=[B(e)[0],B(e)[1]])}function o(e){var t,i,n,o,s;!ie(e)||D||B(e)[2]||(_.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),g&&!m||r&&(d=J(),n=b.offset(),t=B(e)[0]-n.top,i=B(e)[1]-n.left,n="mcsLinearOut",T.push(t),C.push(i),E[2]=Math.abs(B(e)[0]-E[0]),E[3]=Math.abs(B(e)[1]-E[1]),y.overflowed[0]&&(o=x[0].parent().height()-x[0].height(),o=0<a-t&&t-a>-(o*y.scrollRatio.y)&&(2*E[3]<E[2]||"yx"===_.axis)),y.overflowed[1]&&(s=x[1].parent().width()-x[1].width(),s=0<l-i&&i-l>-(s*y.scrollRatio.x)&&(2*E[2]<E[3]||"yx"===_.axis)),o||s?(L||e.preventDefault(),m=1):(g=1,v.addClass("mCS_touch_action")),L&&e.preventDefault(),p="yx"===_.axis?[a-t,l-i]:"x"===_.axis?[null,l-i]:[a-t,null],w[0].idleTimer=250,y.overflowed[0]&&O(p[0],S,n,"y","all",!0),y.overflowed[1]&&O(p[1],S,n,"x",k,!0)))}function P(e){var t;!ie(e)||D||B(e)[2]?N=0:(N=1,e.stopImmediatePropagation(),X(v),u=J(),t=b.offset(),s=B(e)[0]-t.top,c=B(e)[1]-t.left,T=[],C=[])}function A(e){var t,i,n,o;!ie(e)||D||B(e)[2]||(r=0,e.stopImmediatePropagation(),g=m=0,h=J(),n=b.offset(),t=B(e)[0]-n.top,o=B(e)[1]-n.left,30<h-d||(i="mcsEaseOut",n=(e=(f=1e3/(h-u))<2.5)?[T[T.length-2],C[C.length-2]]:[0,0],h=e?[t-n[0],o-n[1]]:[t-s,o-c],o=[Math.abs(h[0]),Math.abs(h[1])],f=e?[Math.abs(h[0]/4),Math.abs(h[1]/4)]:[f,f],e=[Math.abs(w[0].offsetTop)-h[0]*M(o[0]/f[0],f[0]),Math.abs(w[0].offsetLeft)-h[1]*M(o[1]/f[1],f[1])],p="yx"===_.axis?[e[0],e[1]]:"x"===_.axis?[null,e[1]]:[e[0],null],f=[4*o[0]+_.scrollInertia,4*o[1]+_.scrollInertia],e=parseInt(_.contentTouchScroll)||0,p[0]=e<o[0]?p[0]:0,p[1]=e<o[1]?p[1]:0,y.overflowed[0]&&O(p[0],f[0],i,"y",k,!1),y.overflowed[1]&&O(p[1],f[1],i,"x",k,!1)))}function M(e,t){var i=[1.5*t,2*t,t/1.5,t/2];return 90<e?4<t?i[0]:i[3]:60<e?3<t?i[3]:i[2]:30<e?8<t?i[1]:6<t?i[0]:4<t?t:i[2]:8<t?t:i[3]}function O(e,t,i,n,o,s){e&&K(v,e.toString(),{dur:t,scrollEasing:i,dir:n,overwrite:o,drag:s})}w.bind(i[0],function(e){n(e)}).bind(i[1],function(e){o(e)}),b.bind(i[0],function(e){P(e)}).bind(i[2],function(e){A(e)}),t.length&&t.each(function(){I(this).bind("load",function(){$(this)&&I(this.contentDocument||this.contentWindow.document).bind(i[0],function(e){n(e),P(e)}).bind(i[1],function(e){o(e)}).bind(i[2],function(e){A(e)})})})},A=function(){var n,o=I(this),s=o.data(z),r=s.opt,a=s.sequential,e="mCS_"+s.idx,l=I("#mCSB_"+s.idx+"_container"),c=l.parent();function u(e,t,i){a.type=i&&n?"stepped":"stepless",a.scrollAmount=10,V(o,e,t,"mcsLinearOut",i?60:null)}l.bind("mousedown."+e,function(e){N||n||(n=1,D=!0)}).add(document).bind("mousemove."+e,function(e){var t,i;!N&&n&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)&&(i=l.offset(),t=B(e)[0]-i.top+l[0].offsetTop,i=B(e)[1]-i.left+l[0].offsetLeft,0<t&&t<c.height()&&0<i&&i<c.width()?a.step&&u("off",null,"stepped"):("x"!==r.axis&&s.overflowed[0]&&(t<0?u("on",38):t>c.height()&&u("on",40)),"y"!==r.axis&&s.overflowed[1]&&(i<0?u("on",37):i>c.width()&&u("on",39))))}).bind("mouseup."+e+" dragend."+e,function(e){N||(n&&(n=0,u("off",null)),D=!1)})},M=function(){var u,d,h,e,p,f,t;function i(e,t){var i,n,o,s,r,a,l,c;X(u),R(u,e.target)||(i="auto"!==h.mouseWheel.deltaFactor?parseInt(h.mouseWheel.deltaFactor):!(m&&e.deltaFactor<100)&&e.deltaFactor||100,n=h.scrollInertia,t="x"===h.axis||"x"===h.mouseWheel.axis?(o="x",s=[Math.round(i*d.scrollRatio.x),parseInt(h.mouseWheel.scrollAmount)],r="auto"!==h.mouseWheel.scrollAmount?s[1]:s[0]>=p.width()?.9*p.width():s[0],a=Math.abs(I("#mCSB_"+d.idx+"_container")[0].offsetLeft),l=f[1][0].offsetLeft,c=f[1].parent().width()-f[1].width(),"y"===h.mouseWheel.axis?e.deltaY||t:e.deltaX):(o="y",s=[Math.round(i*d.scrollRatio.y),parseInt(h.mouseWheel.scrollAmount)],r="auto"!==h.mouseWheel.scrollAmount?s[1]:s[0]>=p.height()?.9*p.height():s[0],a=Math.abs(I("#mCSB_"+d.idx+"_container")[0].offsetTop),l=f[0][0].offsetTop,c=f[0].parent().height()-f[0].height(),e.deltaY||t),"y"===o&&!d.overflowed[0]||"x"===o&&!d.overflowed[1]||((h.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(t=-t),(0<(t=h.mouseWheel.normalizeDelta?t<0?-1:1:t)&&0!==l||t<0&&l!==c||h.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!h.mouseWheel.normalizeDelta&&(r=e.deltaFactor,n=17),K(u,(a-t*r).toString(),{dir:o,dur:n})))}I(this).data(z)&&(u=I(this),d=u.data(z),h=d.opt,e="mCS_"+d.idx,p=I("#mCSB_"+d.idx),f=[I("#mCSB_"+d.idx+"_dragger_vertical"),I("#mCSB_"+d.idx+"_dragger_horizontal")],(t=I("#mCSB_"+d.idx+"_container").find("iframe")).length&&t.each(function(){I(this).bind("load",function(){$(this)&&I(this.contentDocument||this.contentWindow.document).bind("mousewheel."+e,function(e,t){i(e,t)})})}),p.bind("mousewheel."+e,function(e,t){i(e,t)}))},O=new Object,$=function(e){var t=!1,i=!1,n=null;if(void 0===e?i="#empty":void 0!==I(e).attr("id")&&(i=I(e).attr("id")),!1!==i&&void 0!==O[i])return O[i];if(e){try{n=(e.contentDocument||e.contentWindow.document).body.innerHTML}catch(e){}t=null!==n}else{try{n=top.document.body.innerHTML}catch(e){}t=null!==n}return!1!==i&&(O[i]=t),t},j=function(e){var t=this.find("iframe");t.length&&t.css("pointer-events",e?"auto":"none")},R=function(e,t){var i=t.nodeName.toLowerCase(),e=e.data(z).opt.mouseWheel.disableOver;return-1<I.inArray(i,e)&&!(-1<I.inArray(i,["select","textarea"])&&!I(t).is(":focus"))},H=function(){var r,a=I(this),l=a.data(z),e="mCS_"+l.idx,c=I("#mCSB_"+l.idx+"_container"),u=c.parent();I(".mCSB_"+l.idx+"_scrollbar ."+g[12]).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){D=!0,I(e.target).hasClass("mCSB_dragger")||(r=1)}).bind("touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(e){D=!1}).bind("click."+e,function(e){if(r&&(r=0,I(e.target).hasClass(g[12])||I(e.target).hasClass("mCSB_draggerRail"))){X(a);var t=I(this),i=t.find(".mCSB_dragger");if(0<t.parent(".mCSB_scrollTools_horizontal").length){if(!l.overflowed[1])return;var n="x",o=e.pageX>i.offset().left?-1:1,s=Math.abs(c[0].offsetLeft)-o*(.9*u.width())}else{if(!l.overflowed[0])return;n="y",o=e.pageY>i.offset().top?-1:1,s=Math.abs(c[0].offsetTop)-o*(.9*u.height())}K(a,s.toString(),{dir:n,scrollEasing:"mcsEaseInOut"})}})},F=function(){var o=I(this),e=o.data(z),s=e.opt,t="mCS_"+e.idx,r=I("#mCSB_"+e.idx+"_container"),a=r.parent();r.bind("focusin."+t,function(e){var n=I(document.activeElement),t=r.find(".mCustomScrollBox").length;n.is(s.advanced.autoScrollOnFocus)&&(X(o),clearTimeout(o[0]._focusTimeout),o[0]._focusTimer=t?17*t:0,o[0]._focusTimeout=setTimeout(function(){var e=[oe(n)[0],oe(n)[1]],t=[r[0].offsetTop,r[0].offsetLeft],i=[0<=t[0]+e[0]&&t[0]+e[0]<a.height()-n.outerHeight(!1),0<=t[1]+e[1]&&t[0]+e[1]<a.width()-n.outerWidth(!1)],t="yx"!==s.axis||i[0]||i[1]?"all":"none";"x"===s.axis||i[0]||K(o,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:t,dur:0}),"y"===s.axis||i[1]||K(o,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:t,dur:0})},o[0]._focusTimer))})},q=function(){var t=I(this).data(z),e="mCS_"+t.idx,i=I("#mCSB_"+t.idx+"_container").parent();i.bind("scroll."+e,function(e){0===i.scrollTop()&&0===i.scrollLeft()||I(".mCSB_"+t.idx+"_scrollbar").css("visibility","hidden")})},W=function(){var n=I(this),o=n.data(z),s=o.opt,r=o.sequential,e="mCS_"+o.idx,t=".mCSB_"+o.idx+"_scrollbar";I(t+">a").bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e+" mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e+" mouseout."+e+" pointerout."+e+" MSPointerOut."+e+" click."+e,function(e){if(e.preventDefault(),te(e)){var t=I(this).attr("class");switch(r.type=s.scrollButtons.scrollType,e.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===r.type)return;D=!0,o.tweenRunning=!1,i("on",t);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===r.type)return;D=!1,r.dir&&i("off",t);break;case"click":if("stepped"!==r.type||o.tweenRunning)return;i("on",t)}}function i(e,t){r.scrollAmount=s.scrollButtons.scrollAmount,V(n,e,t)}})},U=function(){var r=I(this),a=r.data(z),l=a.opt,c=a.sequential,e="mCS_"+a.idx,t=I("#mCSB_"+a.idx),u=I("#mCSB_"+a.idx+"_container"),d=u.parent(),h="input,textarea,select,datalist,keygen,[contenteditable='true']",i=u.find("iframe"),n=["blur."+e+" keydown."+e+" keyup."+e];function o(e){switch(e.type){case"blur":a.tweenRunning&&c.dir&&s("off",null);break;case"keydown":case"keyup":var t,i,n=e.keyCode||e.which,o="on";if("x"!==l.axis&&(38===n||40===n)||"y"!==l.axis&&(37===n||39===n)){if((38===n||40===n)&&!a.overflowed[0]||(37===n||39===n)&&!a.overflowed[1])return;"keyup"===e.type&&(o="off"),I(document.activeElement).is(h)||(e.preventDefault(),e.stopImmediatePropagation(),s(o,n))}else 33===n||34===n?((a.overflowed[0]||a.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type&&(X(r),i=34===n?-1:1,i="x"===l.axis||"yx"===l.axis&&a.overflowed[1]&&!a.overflowed[0]?(t="x",Math.abs(u[0].offsetLeft)-i*(.9*d.width())):(t="y",Math.abs(u[0].offsetTop)-i*(.9*d.height())),K(r,i.toString(),{dir:t,scrollEasing:"mcsEaseInOut"}))):35!==n&&36!==n||I(document.activeElement).is(h)||((a.overflowed[0]||a.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type&&(i="x"===l.axis||"yx"===l.axis&&a.overflowed[1]&&!a.overflowed[0]?(t="x",35===n?Math.abs(d.width()-u.outerWidth(!1)):0):(t="y",35===n?Math.abs(d.height()-u.outerHeight(!1)):0),K(r,i.toString(),{dir:t,scrollEasing:"mcsEaseInOut"})))}function s(e,t){c.type=l.keyboard.scrollType,c.scrollAmount=l.keyboard.scrollAmount,"stepped"===c.type&&a.tweenRunning||V(r,e,t)}}i.length&&i.each(function(){I(this).bind("load",function(){$(this)&&I(this.contentDocument||this.contentWindow.document).bind(n[0],function(e){o(e)})})}),t.attr("tabindex","0").bind(n[0],function(e){o(e)})},V=function(r,e,t,a,l){var c=r.data(z),u=c.opt,d=c.sequential,h=I("#mCSB_"+c.idx+"_container"),i="stepped"===d.type,p=u.scrollInertia<26?26:u.scrollInertia,f=u.scrollInertia<1?17:u.scrollInertia;switch(e){case"on":if(d.dir=[t===g[16]||t===g[15]||39===t||37===t?"x":"y",t===g[13]||t===g[15]||38===t||37===t?-1:1],X(r),ne(t)&&"stepped"===d.type)return;m(i);break;case"off":clearTimeout(d.step),ee(d,"step"),X(r),(i||c.tweenRunning&&d.dir)&&m(!0)}function m(e){u.snapAmount&&(d.scrollAmount=u.snapAmount instanceof Array?"x"===d.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var t="stepped"!==d.type,i=l||(e?t?p/1.5:f:1e3/60),n=e?t?7.5:40:2.5,o=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],s=[10<c.scrollRatio.y?10:c.scrollRatio.y,10<c.scrollRatio.x?10:c.scrollRatio.x],s="x"===d.dir[0]?o[1]+d.dir[1]*(s[1]*n):o[0]+d.dir[1]*(s[0]*n),n="x"===d.dir[0]?o[1]+d.dir[1]*parseInt(d.scrollAmount):o[0]+d.dir[1]*parseInt(d.scrollAmount),n="auto"!==d.scrollAmount?n:s,s=a||(e?t?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),t=!!e;e&&i<17&&(n="x"===d.dir[0]?o[1]:o[0]),K(r,n.toString(),{dir:d.dir[0],scrollEasing:s,dur:i,onComplete:t}),e?d.dir=!1:(clearTimeout(d.step),d.step=setTimeout(function(){m()},i))}},G=function(e){var t=I(this).data(z).opt,i=[];return(e="function"==typeof e?e():e)instanceof Array?i=1<e.length?[e[0],e[1]]:"x"===t.axis?[null,e[0]]:[e[0],null]:(i[0]=e.y||(e.x||"x"===t.axis?null:e),i[1]=e.x||(e.y||"y"===t.axis?null:e)),"function"==typeof i[0]&&(i[0]=i[0]()),"function"==typeof i[1]&&(i[1]=i[1]()),i},Z=function(e,t){if(null!=e&&void 0!==e){var i=I(this),n=i.data(z),o=n.opt,s=I("#mCSB_"+n.idx+"_container"),r=s.parent(),n=typeof e,a="x"===(t=t||("x"===o.axis?"x":"y"))?s.outerWidth(!1)-r.width():s.outerHeight(!1)-r.height(),l="x"===t?s[0].offsetLeft:s[0].offsetTop,c="x"===t?"left":"top";switch(n){case"function":return e();case"object":return(d=e.jquery?e:I(e)).length?"x"===t?oe(d)[1]:oe(d)[0]:void 0;case"string":case"number":if(ne(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(a*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(l-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var u=l+parseInt(e.split("+=")[1]);return 0<=u?0:Math.abs(u)}if(-1!==e.indexOf("px")&&ne(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(r.height()-s.outerHeight(!1));if("right"===e)return Math.abs(r.width()-s.outerWidth(!1));if("first"!==e&&"last"!==e)return I(e).length?"x"===t?oe(I(e))[1]:oe(I(e))[0]:(s.css(c,e),void h.update.call(null,i[0]));var d=s.find(":"+e);return"x"===t?oe(d)[1]:oe(d)[0]}}},Y=function(e){var t=I(this),i=t.data(z),n=i.opt,o=I("#mCSB_"+i.idx+"_container");if(void 0!==o[0])return e?(clearTimeout(o[0].autoUpdate),void ee(o[0],"autoUpdate")):void function e(){clearTimeout(o[0].autoUpdate);if(0===t.parents("html").length)return void(t=null);o[0].autoUpdate=setTimeout(function(){return n.advanced.updateOnSelectorChange&&(i.poll.change.n=r(),i.poll.change.n!==i.poll.change.o)?(i.poll.change.o=i.poll.change.n,void a(3)):n.advanced.updateOnContentResize&&(i.poll.size.n=t[0].scrollHeight+t[0].scrollWidth+o[0].offsetHeight+t[0].offsetHeight+t[0].offsetWidth,i.poll.size.n!==i.poll.size.o)?(i.poll.size.o=i.poll.size.n,void a(1)):!n.advanced.updateOnImageLoad||"auto"===n.advanced.updateOnImageLoad&&"y"===n.axis||(i.poll.img.n=o.find("img").length,i.poll.img.n===i.poll.img.o)?void((n.advanced.updateOnSelectorChange||n.advanced.updateOnContentResize||n.advanced.updateOnImageLoad)&&e()):(i.poll.img.o=i.poll.img.n,void o.find("img").each(function(){s(this)}))},n.advanced.autoUpdateTimeout)}();function s(e){var t,i,n;I(e).hasClass(g[2])?a():((t=new Image).onload=(i=t,n=function(){this.onload=null,I(e).addClass(g[2]),a(2)},function(){return n.apply(i,arguments)}),t.src=e.src)}function r(){!0===n.advanced.updateOnSelectorChange&&(n.advanced.updateOnSelectorChange="*");var e=0,t=o.find(n.advanced.updateOnSelectorChange);return n.advanced.updateOnSelectorChange&&0<t.length&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function a(e){clearTimeout(o[0].autoUpdate),h.update.call(null,t[0],e)}},X=function(e){e=e.data(z);I("#mCSB_"+e.idx+"_container,#mCSB_"+e.idx+"_container_wrapper,#mCSB_"+e.idx+"_dragger_vertical,#mCSB_"+e.idx+"_dragger_horizontal").each(function(){t.call(this)})},K=function(o,e,s){var t,i=o.data(z),n=i.opt,r={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:n.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=[(s=I.extend(r,s)).dur,s.drag?0:s.dur],l=I("#mCSB_"+i.idx),c=I("#mCSB_"+i.idx+"_container"),u=c.parent(),d=n.callbacks.onTotalScrollOffset?G.call(o,n.callbacks.onTotalScrollOffset):[0,0],h=n.callbacks.onTotalScrollBackOffset?G.call(o,n.callbacks.onTotalScrollBackOffset):[0,0];if(i.trigger=s.trigger,0===u.scrollTop()&&0===u.scrollLeft()||(I(".mCSB_"+i.idx+"_scrollbar").css("visibility","visible"),u.scrollTop(0).scrollLeft(0)),"_resetY"!==e||i.contentReset.y||(x("onOverflowYNone")&&n.callbacks.onOverflowYNone.call(o[0]),i.contentReset.y=1),"_resetX"!==e||i.contentReset.x||(x("onOverflowXNone")&&n.callbacks.onOverflowXNone.call(o[0]),i.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){switch(!i.contentReset.y&&o[0].mcs||!i.overflowed[0]||(x("onOverflowY")&&n.callbacks.onOverflowY.call(o[0]),i.contentReset.x=null),!i.contentReset.x&&o[0].mcs||!i.overflowed[1]||(x("onOverflowX")&&n.callbacks.onOverflowX.call(o[0]),i.contentReset.x=null),n.snapAmount&&(t=n.snapAmount instanceof Array?"x"===s.dir?n.snapAmount[1]:n.snapAmount[0]:n.snapAmount,r=e,u=t,t=n.snapOffset,e=Math.round(r/u)*u-t),s.dir){case"x":var p=I("#mCSB_"+i.idx+"_dragger_horizontal"),f="left",m=c[0].offsetLeft,g=[l.width()-c.outerWidth(!1),p.parent().width()-p.width()],v=[e,0===e?0:e/i.scrollRatio.x],y=d[1],_=h[1],b=0<y?y/i.scrollRatio.x:0,w=0<_?_/i.scrollRatio.x:0;break;case"y":p=I("#mCSB_"+i.idx+"_dragger_vertical"),f="top",m=c[0].offsetTop,g=[l.height()-c.outerHeight(!1),p.parent().height()-p.height()],v=[e,0===e?0:e/i.scrollRatio.y],y=d[0],_=h[0],b=0<y?y/i.scrollRatio.y:0,w=0<_?_/i.scrollRatio.y:0}v[1]<0||0===v[0]&&0===v[1]?v=[0,0]:v[1]>=g[1]?v=[g[0],g[1]]:v[0]=-v[0],o[0].mcs||(T(),x("onInit")&&n.callbacks.onInit.call(o[0])),clearTimeout(c[0].onCompleteTimeout),Q(p[0],f,Math.round(v[1]),a[1],s.scrollEasing),!i.tweenRunning&&(0===m&&0<=v[0]||m===g[0]&&v[0]<=g[0])||Q(c[0],f,Math.round(v[0]),a[0],s.scrollEasing,s.overwrite,{onStart:function(){s.callbacks&&s.onStart&&!i.tweenRunning&&(x("onScrollStart")&&(T(),n.callbacks.onScrollStart.call(o[0])),i.tweenRunning=!0,C(p),i.cbOffsets=[n.callbacks.alwaysTriggerOffsets||m>=g[0]+y,n.callbacks.alwaysTriggerOffsets||m<=-_])},onUpdate:function(){s.callbacks&&s.onUpdate&&x("whileScrolling")&&(T(),n.callbacks.whileScrolling.call(o[0]))},onComplete:function(){var e;s.callbacks&&s.onComplete&&("yx"===n.axis&&clearTimeout(c[0].onCompleteTimeout),e=c[0].idleTimer||0,c[0].onCompleteTimeout=setTimeout(function(){x("onScroll")&&(T(),n.callbacks.onScroll.call(o[0])),x("onTotalScroll")&&v[1]>=g[1]-b&&i.cbOffsets[0]&&(T(),n.callbacks.onTotalScroll.call(o[0])),x("onTotalScrollBack")&&v[1]<=w&&i.cbOffsets[1]&&(T(),n.callbacks.onTotalScrollBack.call(o[0])),i.tweenRunning=!1,c[0].idleTimer=0,C(p,"hide")},e))}})}function x(e){return i&&n.callbacks[e]&&"function"==typeof n.callbacks[e]}function T(){var e=[c[0].offsetTop,c[0].offsetLeft],t=[p[0].offsetTop,p[0].offsetLeft],i=[c.outerHeight(!1),c.outerWidth(!1)],n=[l.height(),l.width()];o[0].mcs={content:c,top:e[0],left:e[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(i[0])-n[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(i[1])-n[1])),direction:s.dir}}},Q=function(e,t,i,n,o,s,r){e._mTween||(e._mTween={top:{},left:{}});var a,l,c=(r=r||{}).onStart||function(){},u=r.onUpdate||function(){},d=r.onComplete||function(){},h=J(),p=0,f=e.offsetTop,m=e.style,g=e._mTween[t];"left"===t&&(f=e.offsetLeft);var v=i-f;function y(){g.stop||(p||c.call(),p=J()-h,_(),p>=g.time&&(g.time=p>g.time?p+a-(p-g.time):p+a-1,g.time<p+1&&(g.time=p+1)),g.time<n?g.id=l(y):d.call())}function _(){0<n?(g.currVal=function(e,t,i,n,o){switch(o){case"linear":case"mcsLinear":return i*e/n+t;case"mcsLinearOut":return e/=n,e--,i*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return(e/=n/2)<1?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=n/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=n,-i*(--e*e*e*e-1)+t;case"easeOutStrong":return i*(1-Math.pow(2,-10*e/n))+t;default:var s=(e/=n)*e,r=s*e;return t+i*(.499999999999997*r*s+-2.5*s*s+5.5*r+-6.5*s+4*e)}}(g.time,f,v,n,o),m[t]=Math.round(g.currVal)+"px"):m[t]=i+"px",u.call()}g.stop=0,"none"!==s&&null!=g.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(g.id):clearTimeout(g.id),g.id=null),a=1e3/60,g.time=p+a,l=window.requestAnimationFrame||function(e){return _(),setTimeout(e,.01)},g.id=l(y)},J=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},t=function(){this._mTween||(this._mTween={top:{},left:{}});for(var e=["top","left"],t=0;t<e.length;t++){var i=e[t];this._mTween[i].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(this._mTween[i].id):clearTimeout(this._mTween[i].id),this._mTween[i].id=null,this._mTween[i].stop=1)}},ee=function(t,i){try{delete t[i]}catch(e){t[i]=null}},te=function(e){return!(e.which&&1!==e.which)},ie=function(e){e=e.originalEvent.pointerType;return!(e&&"touch"!==e&&2!==e)},ne=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},oe=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},se=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]},I.fn[l]=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void I.error("Method "+e+" does not exist"):h.init.apply(this,arguments)},I[l]=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void I.error("Method "+e+" does not exist"):h.init.apply(this,arguments)},I[l].defaults=o,window[l]=!0,I(window).bind("load",function(){I(n)[l](),I.extend(I.expr[":"],{mcsInView:I.expr[":"].mcsInView||function(e){var t=I(e),i=t.parents(".mCSB_container");if(i.length)return e=i.parent(),0<=(i=[i[0].offsetTop,i[0].offsetLeft])[0]+oe(t)[0]&&i[0]+oe(t)[0]<e.height()-t.outerHeight(!1)&&0<=i[1]+oe(t)[1]&&i[1]+oe(t)[1]<e.width()-t.outerWidth(!1)},mcsInSight:I.expr[":"].mcsInSight||function(e,t,i){var n=I(e),o=n.parents(".mCSB_container"),e="exact"===i[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(o.length)return i=[n.outerHeight(!1),n.outerWidth(!1)],n=[o[0].offsetTop+oe(n)[0],o[0].offsetLeft+oe(n)[1]],o=[o.parent()[0].offsetHeight,o.parent()[0].offsetWidth],n[0]-o[0]*(e=[i[0]<o[0]?e[0]:e[1],i[1]<o[1]?e[0]:e[1]])[0][0]<0&&0<=n[0]+i[0]-o[0]*e[0][1]&&n[1]-o[1]*e[1][0]<0&&0<=n[1]+i[1]-o[1]*e[1][1]},mcsOverflow:I.expr[":"].mcsOverflow||function(e){e=I(e).data(z);if(e)return e.overflowed[0]||e.overflowed[1]}})})}),function(l){"use strict";var i=[],n={},c=[],u=[],d=[],o={};Array.prototype.insert=function(e,t){this.splice(e,0,t)},o.passwordListener=function(e,a){var t=""===a.passwordField?".disabledAutoFillPassword":a.passwordField;0<e.find("[type=password]").length&&e.find("[type=password]").attr("type","text").addClass("disabledAutoFillPassword"),e.on("keyup",t,function(){this.id||(this.id=Math.random().toString(36).substring(5)),c.hasOwnProperty(this.id)||(c[this.id]=[]);var e=c[this.id];u[this.id]=l(this).val();var t=u[this.id];d[this.id]=t.length;for(var i,n,o=d[this.id],s=this.selectionStart,r=0;r<o;r++)t[r]!==a.hidingChar&&(e[r]=t[r]);o<e.length&&(i=e.length-o,8==(n=event.keyCode||event.charCode)||46==n?e.splice(s,i):(e.splice(s-1,1+i),e.insert(s-1,t[s-1]))),l(this).val(t.replace(/./g,a.hidingChar)),a.debugMode&&(console.log("Current keyup position: "+s),console.log("Password length: "+o),console.log("Real password:"),console.log(e))})},o.formSubmitListener=function(t,i){var n=""==i.submitButton?".disableAutoFillSubmit":i.submitButton;t.on("click",n,function(e){o.restoreInput(t,i),i.callback.call()&&(i.debugMode?console.log(t.serialize()):i.html5FormValidate?(l(n).attr("type","submit").trigger("submit"),setTimeout(function(){l(n).attr("type","button")},1e3)):t.submit())})},o.randomizeInput=function(e,t){e.find("input").each(function(e){var t;i[e]=l(this).attr("name"),n[i[e]]?l(this).attr("name",n[i[e]]):(t=Math.random().toString(36).replace(/[^a-z]+/g,""),l(this).attr("name",t),n[i[e]]=t)})},o.restoreInput=function(e,t){t.randomizeInputName&&e.find("input").each(function(e){l(this).attr("name",i[e])}),t.textToPassword&&e.find(t.passwordField).attr("type","password"),e.find(t.passwordField).each(function(e){l(this).val(c[this.id].join(""))})},l.fn.disableAutoFill=function(e){e=l.extend({},l.fn.disableAutoFill.defaults,e);this.attr("autocomplete","off"),0<this.find("[type=submit]").length&&this.find("[type=submit]").addClass("disableAutoFillSubmit").attr("type","button"),""!=e.submitButton&&this.find(e.submitButton).addClass("disableAutoFillSubmit").attr("type","button"),e.randomizeInputName&&o.randomizeInput(this,e),o.passwordListener(this,e),o.formSubmitListener(this,e)},l.fn.disableAutoFill.defaults={debugMode:!1,textToPassword:!0,randomizeInputName:!0,passwordField:"",hidingChar:"●",html5FormValidate:!1,submitButton:"",callback:function(){return!0}}}(jQuery),function(e){var t=function(n,h,s){"use strict";var p,f;if(function(){var e,t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in f=n.lazySizesConfig||n.lazysizesConfig||{},t)e in f||(f[e]=t[e])}(),!h||!h.getElementsByClassName)return{init:function(){},cfg:f,noSupport:!0};function c(e,t){le(e,t)||e.setAttribute("class",(e[J]("class")||"").trim()+" "+t)}function u(e,t){(t=le(e,t))&&e.setAttribute("class",(e[J]("class")||"").replace(t," "))}function d(e,t){var i;!K&&(i=n.picturefill||f.pf)?(t&&t.src&&!e[J]("srcset")&&e.setAttribute("srcset",t.src),i({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)}function e(i,e){return e?function(){pe(i)}:function(){var e=this,t=arguments;pe(function(){i.apply(e,t)})}}function t(e){function t(){var e=s.now()-n;e<99?te(t,99-e):(ne||o)(o)}var i,n,o=function(){i=null,e()};return function(){n=s.now(),i=i||te(t,99)}}function i(){!i.i&&h.getElementsByClassName&&(i.i=!0,me._(),fe._())}var o,r,a,m,g,v,y,l,_,b,w,x,T,C,S,k,E,L,P,A,M,O,I,z,D,N,B,$,j,R,H,F,q,W,U,V,G,Z,Y,X=h.documentElement,K=n.HTMLPictureElement,Q="addEventListener",J="getAttribute",ee=n[Q].bind(n),te=n.setTimeout,ie=n.requestAnimationFrame||te,ne=n.requestIdleCallback,oe=/^picture$/i,se=["load","error","lazyincluded","_lazyloaded"],re={},ae=Array.prototype.forEach,le=function(e,t){return re[t]||(re[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),re[t].test(e[J]("class")||"")&&re[t]},ce=function(t,i,e){var n=e?Q:"removeEventListener";e&&ce(t,i),se.forEach(function(e){t[n](e,i)})},ue=function(e,t,i,n,o){var s=h.createEvent("Event");return(i=i||{}).instance=p,s.initEvent(t,!n,!o),s.detail=i,e.dispatchEvent(s),s},de=function(e,t){return(getComputedStyle(e,null)||{})[t]},he=function(e,t,i){for(i=i||e.offsetWidth;i<f.minSize&&t&&!e._lazysizesWidth;)i=t.offsetWidth,t=t.parentNode;return i},pe=(Z=[],Y=G=[],Se._lsFlush=Ce,Se),fe=(O=/^img$/i,I=/^iframe$/i,z="onscroll"in n&&!/(gle|ing)bot/.test(navigator.userAgent),B=-1,$=function(e){return(S=null==S?"hidden"==de(h.body,"visibility"):S)||!("hidden"==de(e.parentNode,"visibility")&&"hidden"==de(e,"visibility"))},k=ye,L=N=D=0,P=f.throttleDelay,A=f.ricTimeout,M=ne&&49<A?function(){ne(_e,{timeout:A}),A!==f.ricTimeout&&(A=f.ricTimeout)}:e(function(){te(_e)},!0),R=e(be),H=function(e){R({target:e.target})},F=e(function(t,e,i,n,o){var s,r,a,l;(a=ue(t,"lazybeforeunveil",e)).defaultPrevented||(n&&(i?c(t,f.autosizesClass):t.setAttribute("sizes",n)),i=t[J](f.srcsetAttr),n=t[J](f.srcAttr),o&&(r=(s=t.parentNode)&&oe.test(s.nodeName||"")),l=e.firesLoad||"src"in t&&(i||n||r),a={target:t},c(t,f.loadingClass),l&&(clearTimeout(v),v=te(ve,2500),ce(t,H,!0)),r&&ae.call(s.getElementsByTagName("source"),we),i?t.setAttribute("srcset",i):n&&!r&&(I.test(t.nodeName)?function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}}(t,n):t.src=n),o&&(i||r)&&d(t,{src:n})),t._lazyRace&&delete t._lazyRace,u(t,f.lazyClass),pe(function(){var e=t.complete&&1<t.naturalWidth;l&&!e||(e&&c(t,"ls-is-cached"),be(a),t._lazyCache=!0,te(function(){"_lazyCache"in t&&delete t._lazyCache},9)),"lazy"==t.loading&&N--},!0)}),W=t(function(){f.loadMode=3,j()}),{_:function(){l=s.now(),p.elements=h.getElementsByClassName(f.lazyClass),m=h.getElementsByClassName(f.lazyClass+" "+f.preloadClass),ee("scroll",j,!0),ee("resize",j,!0),ee("pageshow",function(e){var t;!e.persisted||(t=h.querySelectorAll("."+f.loadingClass)).length&&t.forEach&&ie(function(){t.forEach(function(e){e.complete&&q(e)})})}),n.MutationObserver?new MutationObserver(j).observe(X,{childList:!0,subtree:!0,attributes:!0}):(X[Q]("DOMNodeInserted",j,!0),X[Q]("DOMAttrModified",j,!0),setInterval(j,999)),ee("hashchange",j,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){h[Q](e,j,!0)}),/d$|^c/.test(h.readyState)?Te():(ee("load",Te),h[Q]("DOMContentLoaded",j),te(Te,2e4)),p.elements.length?(ye(),pe._lsFlush()):j()},checkElems:j=function(e){var t;(e=!0===e)&&(A=33),E||(E=!0,(t=P-(s.now()-L))<0&&(t=0),e||t<9?M():te(M,t))},unveil:q=function(e){var t,i,n,o;e._lazyRace||(!(o="auto"==(n=(i=O.test(e.nodeName))&&(e[J](f.sizesAttr)||e[J]("sizes"))))&&g||!i||!e[J]("src")&&!e.srcset||e.complete||le(e,f.errorClass)||!le(e,f.lazyClass))&&(t=ue(e,"lazyunveilread").detail,o&&me.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,N++,F(e,t,o,n,i))},_aLSL:xe}),me=(r=e(function(e,t,i,n){var o,s,r;if(e._lazysizesWidth=n,e.setAttribute("sizes",n+="px"),oe.test(t.nodeName||""))for(s=0,r=(o=t.getElementsByTagName("source")).length;s<r;s++)o[s].setAttribute("sizes",n);i.detail.dataAttr||d(e,i.detail)}),{_:function(){o=h.getElementsByClassName(f.autosizesClass),ee("resize",a)},checkElems:a=t(function(){var e,t=o.length;if(t)for(e=0;e<t;e++)ge(o[e])}),updateElem:ge});function ge(e,t,i){var n=e.parentNode;n&&(i=he(e,n,i),(t=ue(e,"lazybeforesizes",{width:i,dataAttr:!!t})).defaultPrevented||(i=t.detail.width)&&i!==e._lazysizesWidth&&r(e,n,t,i))}function ve(e){N--,e&&!(N<0)&&e.target||(N=0)}function ye(){var e,t,i,n,o,s,r,a,l,c,u,d=p.elements;if((y=f.loadMode)&&N<8&&(e=d.length)){for(t=0,B++;t<e;t++)if(d[t]&&!d[t]._lazyRace)if(!z||p.prematureUnveil&&p.prematureUnveil(d[t]))q(d[t]);else if((r=d[t][J]("data-expand"))&&(o=+r)||(o=D),l||(l=!f.expand||f.expand<1?500<X.clientHeight&&500<X.clientWidth?500:370:f.expand,c=(p._defEx=l)*f.expFactor,u=f.hFac,S=null,D<c&&N<1&&2<B&&2<y&&!h.hidden?(D=c,B=0):D=1<y&&1<B&&N<6?l:0),a!==o&&(_=innerWidth+o*u,b=innerHeight+o,s=-1*o,a=o),c=d[t].getBoundingClientRect(),(C=c.bottom)>=s&&(w=c.top)<=b&&(T=c.right)>=s*u&&(x=c.left)<=_&&(C||T||x||w)&&(f.loadHidden||$(d[t]))&&(g&&N<3&&!r&&(y<3||B<4)||function(e,t){var i,n=e,o=$(e);for(w-=t,C+=t,x-=t,T+=t;o&&(n=n.offsetParent)&&n!=h.body&&n!=X;)(o=0<(de(n,"opacity")||1))&&"visible"!=de(n,"overflow")&&(i=n.getBoundingClientRect(),o=T>i.left&&x<i.right&&C>i.top-1&&w<i.bottom+1);return o}(d[t],o))){if(q(d[t]),n=!0,9<N)break}else!n&&g&&!i&&N<4&&B<4&&2<y&&(m[0]||f.preloadAfterLoad)&&(m[0]||!r&&(C||T||x||w||"auto"!=d[t][J](f.sizesAttr)))&&(i=m[0]||d[t]);i&&!n&&q(i)}}function _e(){E=!1,L=s.now(),k()}function be(e){var t=e.target;t._lazyCache?delete t._lazyCache:(ve(e),c(t,f.loadedClass),u(t,f.loadingClass),ce(t,H),ue(t,"lazyloaded"))}function we(e){var t,i=e[J](f.srcsetAttr);(t=f.customMedia[e[J]("data-media")||e[J]("media")])&&e.setAttribute("media",t),i&&e.setAttribute("srcset",i)}function xe(){3==f.loadMode&&(f.loadMode=2),W()}function Te(){g||(s.now()-l<999?te(Te,999):(g=!0,f.loadMode=3,j(),ee("scroll",xe,!0)))}function Ce(){var e=Y;for(Y=G.length?Z:G,V=!(U=!0);e.length;)e.shift()();U=!1}function Se(e,t){U&&!t?e.apply(this,arguments):(Y.push(e),V||(V=!0,(h.hidden?te:ie)(Ce)))}return te(function(){f.init&&i()}),p={cfg:f,autoSizer:me,loader:fe,init:i,uP:d,aC:c,rC:u,hC:le,fire:ue,gW:he,rAF:pe}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{}),function(){"use strict";var i={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:600,hideBarsDelay:6e3,useLeft:!1,ariaLabelledby:"",ariaDescribedby:"",closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};function t(e,t){if(this.el=e,this.$el=$(e),this.s=$.extend({},i,t),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=$(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find($(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}t.prototype.init=function(){var e=this;e.s.preload>e.$items.length&&(e.s.preload=e.$items.length);var t=window.location.hash;0<t.indexOf("lg="+this.s.galleryId)&&(e.index=parseInt(t.split("&slide=")[1],10),$("body").addClass("lg-from-hash"),$("body").hasClass("lg-on")||(setTimeout(function(){e.build(e.index)}),$("body").addClass("lg-on"))),e.s.dynamic?(e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||0,$("body").hasClass("lg-on")||setTimeout(function(){e.build(e.index),$("body").addClass("lg-on")})):e.$items.on("click.lgcustom",function(t){try{t.preventDefault(),t.preventDefault()}catch(e){t.returnValue=!1}e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||e.$items.index(this),$("body").hasClass("lg-on")||(e.build(e.index),$("body").addClass("lg-on"))})},t.prototype.build=function(e){var t=this;t.structure(),$.each($.fn.lightGallery.modules,function(e){t.modules[e]=new $.fn.lightGallery.modules[e](t.el)}),t.slide(e,!1,!1,!1),t.s.keyPress&&t.keyPress(),1<t.$items.length?(t.arrow(),setTimeout(function(){t.enableDrag(),t.enableSwipe()},50),t.s.mousewheel&&t.mousewheel()):t.$slide.on("click.lg",function(){t.$el.trigger("onSlideClick.lg")}),t.counter(),t.closeGallery(),t.$el.trigger("onAfterOpen.lg"),t.$outer.on("mousemove.lg click.lg touchstart.lg",function(){t.$outer.removeClass("lg-hide-items"),clearTimeout(t.hideBartimeout),t.hideBartimeout=setTimeout(function(){t.$outer.addClass("lg-hide-items")},t.s.hideBarsDelay)}),t.$outer.trigger("mousemove.lg")},t.prototype.structure=function(){var e="",t="",i=0,n="",o=this;for($("body").append('<div class="lg-backdrop"></div>'),$(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),i=0;i<this.$items.length;i++)e+='<div class="lg-item"></div>';this.s.controls&&1<this.$items.length&&(t='<div class="lg-actions"><button type="button" aria-label="Previous slide" class="lg-prev lg-icon">'+this.s.prevHtml+'</button><button type="button" aria-label="Next slide" class="lg-next lg-icon">'+this.s.nextHtml+"</button></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(n='<div role="status" aria-live="polite" class="lg-sub-html"></div>');var n='<div tabindex="-1" aria-modal="true" '+(this.s.ariaLabelledby?'aria-labelledby="'+this.s.ariaLabelledby+'"':"")+" "+(this.s.ariaDescribedby?'aria-describedby="'+this.s.ariaDescribedby+'"':"")+' role="dialog" class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+e+'</div><div class="lg-toolbar lg-group"><button type="button" aria-label="Close gallery" class="lg-close lg-icon"></button></div>'+t+n+"</div></div>";$("body").append(n),this.$outer=$(".lg-outer"),this.$outer.focus(),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),o.setTop(),$(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){o.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&1<this.$items.length&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()&&((n=this.$outer.find(".lg-inner")).css("transition-timing-function",this.s.cssEasing),n.css("transition-duration",this.s.speed+"ms")),setTimeout(function(){$(".lg-backdrop").addClass("in")}),setTimeout(function(){o.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" aria-label="Download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=$(window).scrollTop()},t.prototype.setTop=function(){var e,t,i;"100%"!==this.s.height&&(t=((e=$(window).height())-parseInt(this.s.height,10))/2,i=this.$outer.find(".lg"),e>=parseInt(this.s.height,10)?i.css("top",t+"px"):i.css("top","0px"))},t.prototype.doCss=function(){return!!function(){for(var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,i=0,i=0;i<e.length;i++)if(e[i]in t.style)return!0}()},t.prototype.isVideo=function(e,t){var i=this.s.dynamic?this.s.dynamicEl[t].html:this.$items.eq(t).attr("data-html");if(!e)return i?{html5:!0}:(console.error("lightGallery :- data-src is not provided on slide item "+(t+1)+". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"),!1);var n=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),i=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),t=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),e=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return n?{youtube:n}:i?{vimeo:i}:t?{dailymotion:t}:e?{vk:e}:void 0},t.prototype.counter=function(){this.s.counter&&$(this.s.appendCounterTo).append('<div id="lg-counter" role="status" aria-live="polite"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},t.prototype.addHtml=function(e){var t,i,n,o=null;this.s.dynamic?this.s.dynamicEl[e].subHtmlUrl?t=this.s.dynamicEl[e].subHtmlUrl:o=this.s.dynamicEl[e].subHtml:(i=this.$items.eq(e)).attr("data-sub-html-url")?t=i.attr("data-sub-html-url"):(o=i.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!o&&(o=i.attr("title")||i.find("img").first().attr("alt"))),t||(null!=o?"."!==(n=o.substring(0,1))&&"#"!==n||(o=(this.s.subHtmlSelectorRelative&&!this.s.dynamic?i.find(o):$(o)).html()):o=""),".lg-sub-html"===this.s.appendSubHtmlTo?t?this.$outer.find(this.s.appendSubHtmlTo).load(t):this.$outer.find(this.s.appendSubHtmlTo).html(o):t?this.$slide.eq(e).load(t):this.$slide.eq(e).append(o),null!=o&&(""===o?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[e])},t.prototype.preload=function(e){for(var t=1,i=1,t=1;t<=this.s.preload&&!(t>=this.$items.length-e);t++)this.loadContent(e+t,!1,0);for(i=1;i<=this.s.preload&&!(e-i<0);i++)this.loadContent(e-i,!1,0)},t.prototype.loadContent=function(t,e,i){var a,n,o,s,r,l=this,c=!1,u=function(e){for(var t=[],i=[],n=0;n<e.length;n++){var o=e[n].split(" ");""===o[0]&&o.splice(0,1),i.push(o[0]),t.push(o[1])}for(var s=$(window).width(),r=0;r<t.length;r++)if(parseInt(t[r],10)>s){a=i[r];break}},d=l.s.dynamic?(l.s.dynamicEl[t].poster&&(c=!0,n=l.s.dynamicEl[t].poster),s=l.s.dynamicEl[t].html,a=l.s.dynamicEl[t].src,r=l.s.dynamicEl[t].alt,l.s.dynamicEl[t].responsive&&u(l.s.dynamicEl[t].responsive.split(",")),o=l.s.dynamicEl[t].srcset,l.s.dynamicEl[t].sizes):((h=l.$items.eq(t)).attr("data-poster")&&(c=!0,n=h.attr("data-poster")),s=h.attr("data-html"),a=h.attr("href")||h.attr("data-src"),r=h.attr("title")||h.find("img").first().attr("alt"),h.attr("data-responsive")&&u(h.attr("data-responsive").split(",")),o=h.attr("data-srcset"),h.attr("data-sizes")),u=!1;l.s.dynamic?l.s.dynamicEl[t].iframe&&(u=!0):"true"===l.$items.eq(t).attr("data-iframe")&&(u=!0);var h=l.isVideo(a,t);if(!l.$slide.eq(t).hasClass("lg-loaded")){if(u?l.$slide.eq(t).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:'+l.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+a+'"  allowfullscreen="true"></iframe></div></div>'):c?(u="",u=h&&h.youtube?"lg-has-youtube":h&&h.vimeo?"lg-has-vimeo":"lg-has-html5",l.$slide.eq(t).prepend('<div class="lg-video-cont '+u+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+n+'" /></div></div>')):h?(l.$slide.eq(t).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),l.$el.trigger("hasVideo.lg",[t,a,s])):(r=r?'alt="'+r+'"':"",l.$slide.eq(t).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" '+r+' src="'+a+'" /></div>')),l.$el.trigger("onAferAppendSlide.lg",[t]),r=l.$slide.eq(t).find(".lg-object"),d&&r.attr("sizes",d),o){r.attr("srcset",o);try{picturefill({elements:[r[0]]})}catch(e){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&l.addHtml(t),l.$slide.eq(t).addClass("lg-loaded")}l.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){var e=0;i&&!$("body").hasClass("lg-from-hash")&&(e=i),setTimeout(function(){l.$slide.eq(t).addClass("lg-complete"),l.$el.trigger("onSlideItemLoad.lg",[t,i||0])},e)}),h&&h.html5&&!c&&l.$slide.eq(t).addClass("lg-complete"),!0===e&&(l.$slide.eq(t).hasClass("lg-complete")?l.preload(t):l.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){l.preload(t)}))},t.prototype.slide=function(e,t,i,n){var o,s,r,a,l,c=this.$outer.find(".lg-current").index(),u=this;u.lGalleryOn&&c===e||(o=this.$slide.length,s=u.lGalleryOn?this.s.speed:0,u.lgBusy||(this.s.download&&((r=u.s.dynamic?!1!==u.s.dynamicEl[e].downloadUrl&&(u.s.dynamicEl[e].downloadUrl||u.s.dynamicEl[e].src):"false"!==u.$items.eq(e).attr("data-download-url")&&(u.$items.eq(e).attr("data-download-url")||u.$items.eq(e).attr("href")||u.$items.eq(e).attr("data-src")))?($("#lg-download").attr("href",r),u.$outer.removeClass("lg-hide-download")):u.$outer.addClass("lg-hide-download")),this.$el.trigger("onBeforeSlide.lg",[c,e,t,i]),u.lgBusy=!0,clearTimeout(u.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){u.addHtml(e)},s),this.arrowDisable(e),n||(e<c?n="prev":c<e&&(n="next")),t?(this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),2<o?(a=e-1,l=e+1,(0===e&&c===o-1||e===o-1&&0===c)&&(l=0,a=o-1)):(a=0,l=1),"prev"===n?u.$slide.eq(l).addClass("lg-next-slide"):u.$slide.eq(a).addClass("lg-prev-slide"),u.$slide.eq(e).addClass("lg-current")):(u.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===n?(this.$slide.eq(e).addClass("lg-prev-slide"),this.$slide.eq(c).addClass("lg-next-slide")):(this.$slide.eq(e).addClass("lg-next-slide"),this.$slide.eq(c).addClass("lg-prev-slide")),setTimeout(function(){u.$slide.removeClass("lg-current"),u.$slide.eq(e).addClass("lg-current"),u.$outer.removeClass("lg-no-trans")},50)),u.lGalleryOn?(setTimeout(function(){u.loadContent(e,!0,0)},this.s.speed+50),setTimeout(function(){u.lgBusy=!1,u.$el.trigger("onAfterSlide.lg",[c,e,t,i])},this.s.speed)):(u.loadContent(e,!0,u.s.backdropDuration),u.lgBusy=!1,u.$el.trigger("onAfterSlide.lg",[c,e,t,i])),u.lGalleryOn=!0,this.s.counter&&$("#lg-counter-current").text(e+1)),u.index=e)},t.prototype.goToNextSlide=function(e){var t=this,i=t.s.loop;e&&t.$slide.length<3&&(i=!1),t.lgBusy||(t.index+1<t.$slide.length?(t.index++,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):i?(t.index=0,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-right-end"),setTimeout(function(){t.$outer.removeClass("lg-right-end")},400)))},t.prototype.goToPrevSlide=function(e){var t=this,i=t.s.loop;e&&t.$slide.length<3&&(i=!1),t.lgBusy||(0<t.index?(t.index--,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):i?(t.index=t.$items.length-1,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-left-end"),setTimeout(function(){t.$outer.removeClass("lg-left-end")},400)))},t.prototype.keyPress=function(){var t=this;1<this.$items.length&&$(window).on("keyup.lg",function(e){1<t.$items.length&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode&&(e.preventDefault(),t.goToNextSlide()))}),$(window).on("keydown.lg",function(e){!0===t.s.escKey&&27===e.keyCode&&(e.preventDefault(),t.$outer.hasClass("lg-thumb-open")?t.$outer.removeClass("lg-thumb-open"):t.destroy())})},t.prototype.arrow=function(){var e=this;this.$outer.find(".lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){e.goToNextSlide()})},t.prototype.arrowDisable=function(e){!this.s.loop&&this.s.hideControlOnEnd&&(e+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),0<e?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},t.prototype.setTranslate=function(e,t,i){this.s.useLeft?e.css("left",t):e.css({transform:"translate3d("+t+"px, "+i+"px, 0px)"})},t.prototype.touchMove=function(e,t){e=t-e;15<Math.abs(e)&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),e,0),this.setTranslate($(".lg-prev-slide"),-this.$slide.eq(this.index).width()+e,0),this.setTranslate($(".lg-next-slide"),this.$slide.eq(this.index).width()+e,0))},t.prototype.touchEnd=function(e){var t=this;"lg-slide"!==t.s.mode&&t.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){t.$outer.removeClass("lg-dragging"),e<0&&Math.abs(e)>t.s.swipeThreshold?t.goToNextSlide(!0):0<e&&Math.abs(e)>t.s.swipeThreshold?t.goToPrevSlide(!0):Math.abs(e)<5&&t.$el.trigger("onSlideClick.lg"),t.$slide.removeAttr("style")}),setTimeout(function(){t.$outer.hasClass("lg-dragging")||"lg-slide"===t.s.mode||t.$outer.removeClass("lg-slide")},t.s.speed+100)},t.prototype.enableSwipe=function(){var t=this,i=0,n=0,o=!1;t.s.enableSwipe&&t.doCss()&&(t.$slide.on("touchstart.lg",function(e){t.$outer.hasClass("lg-zoomed")||t.lgBusy||(e.preventDefault(),t.manageSwipeClass(),i=e.originalEvent.targetTouches[0].pageX)}),t.$slide.on("touchmove.lg",function(e){t.$outer.hasClass("lg-zoomed")||(e.preventDefault(),n=e.originalEvent.targetTouches[0].pageX,t.touchMove(i,n),o=!0)}),t.$slide.on("touchend.lg",function(){t.$outer.hasClass("lg-zoomed")||(o?(o=!1,t.touchEnd(n-i)):t.$el.trigger("onSlideClick.lg"))}))},t.prototype.enableDrag=function(){var t=this,i=0,n=0,o=!1,s=!1;t.s.enableDrag&&t.doCss()&&(t.$slide.on("mousedown.lg",function(e){t.$outer.hasClass("lg-zoomed")||t.lgBusy||$(e.target).text().trim()||(e.preventDefault(),t.manageSwipeClass(),i=e.pageX,o=!0,t.$outer.scrollLeft+=1,--t.$outer.scrollLeft,t.$outer.removeClass("lg-grab").addClass("lg-grabbing"),t.$el.trigger("onDragstart.lg"))}),$(window).on("mousemove.lg",function(e){o&&(s=!0,n=e.pageX,t.touchMove(i,n),t.$el.trigger("onDragmove.lg"))}),$(window).on("mouseup.lg",function(e){s?(s=!1,t.touchEnd(n-i),t.$el.trigger("onDragend.lg")):($(e.target).hasClass("lg-object")||$(e.target).hasClass("lg-video-play"))&&t.$el.trigger("onSlideClick.lg"),o&&(o=!1,t.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},t.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.s.loop&&2<this.$slide.length&&(0===this.index?t=this.$slide.length-1:this.index===this.$slide.length-1&&(e=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),-1<t&&this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(e).addClass("lg-next-slide")},t.prototype.mousewheel=function(){var t=this;t.$outer.on("mousewheel.lg",function(e){e.deltaY&&(0<e.deltaY?t.goToPrevSlide():t.goToNextSlide(),e.preventDefault())})},t.prototype.closeGallery=function(){var t=this,i=!1;this.$outer.find(".lg-close").on("click.lg",function(){t.destroy()}),t.s.closable&&(t.$outer.on("mousedown.lg",function(e){i=!!($(e.target).is(".lg-outer")||$(e.target).is(".lg-item ")||$(e.target).is(".lg-img-wrap"))}),t.$outer.on("mousemove.lg",function(){i=!1}),t.$outer.on("mouseup.lg",function(e){($(e.target).is(".lg-outer")||$(e.target).is(".lg-item ")||$(e.target).is(".lg-img-wrap")&&i)&&(t.$outer.hasClass("lg-dragging")||t.destroy())}))},t.prototype.destroy=function(e){var t=this;e||(t.$el.trigger("onBeforeClose.lg"),$(window).scrollTop(t.prevScrollTop)),e&&(t.s.dynamic||this.$items.off("click.lg click.lgcustom"),$.removeData(t.el,"lightGallery")),this.$el.off(".lg.tm"),$.each($.fn.lightGallery.modules,function(e){t.modules[e]&&t.modules[e].destroy()}),this.lGalleryOn=!1,clearTimeout(t.hideBartimeout),this.hideBartimeout=!1,$(window).off(".lg"),$("body").removeClass("lg-on lg-from-hash"),t.$outer&&t.$outer.removeClass("lg-visible"),$(".lg-backdrop").removeClass("in"),setTimeout(function(){t.$outer&&t.$outer.remove(),$(".lg-backdrop").remove(),e||t.$el.trigger("onCloseAfter.lg"),t.$el.focus()},t.s.backdropDuration+50)},$.fn.lightGallery=function(e){return this.each(function(){if($.data(this,"lightGallery"))try{$(this).data("lightGallery").init()}catch(e){console.error("lightGallery has not initiated properly")}else $.data(this,"lightGallery",new t(this,e))})},$.fn.lightGallery.modules={}}(),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(l){!function(){"use strict";function e(e){return this.core=l(e).data("lightGallery"),this.$el=l(e),this.core.s=l.extend({},t,this.core.s),this.videoLoaded=!1,this.init(),this}var t={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}};e.prototype.init=function(){var n=this;n.core.$el.on("hasVideo.lg.tm",function(e,t,i,n){var o=this;if(o.core.$slide.eq(t).find(".lg-video").append(o.loadVideo(i,"lg-object",!0,t,n)),n)if(o.core.s.videojs)try{videojs(o.core.$slide.eq(t).find(".lg-html5").get(0),o.core.s.videojsOptions,function(){!o.videoLoaded&&o.core.s.autoplayFirstVideo&&this.play()})}catch(e){console.error("Make sure you have included videojs")}else!o.videoLoaded&&o.core.s.autoplayFirstVideo&&o.core.$slide.eq(t).find(".lg-html5").get(0).play()}.bind(this)),n.core.$el.on("onAferAppendSlide.lg.tm",function(e,t){t=this.core.$slide.eq(t).find(".lg-video-cont");t.hasClass("lg-has-iframe")||(t.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}.bind(this)),n.core.doCss()&&1<n.core.$items.length&&(n.core.s.enableSwipe||n.core.s.enableDrag)?n.core.$el.on("onSlideClick.lg.tm",function(){var e=n.core.$slide.eq(n.core.index);n.loadVideoOnclick(e)}):n.core.$slide.on("click.lg",function(){n.loadVideoOnclick(l(this))}),n.core.$el.on("onBeforeSlide.lg.tm",function(e,t,i){var n=this.core.$slide.eq(t),o=n.find(".lg-youtube").get(0),s=n.find(".lg-vimeo").get(0),r=n.find(".lg-dailymotion").get(0),t=n.find(".lg-vk").get(0),n=n.find(".lg-html5").get(0);if(o)o.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(s)try{$f(s).api("pause")}catch(e){console.error("Make sure you have included froogaloop2 js")}else if(r)r.contentWindow.postMessage("pause","*");else if(n)if(this.core.s.videojs)try{videojs(n).pause()}catch(e){console.error("Make sure you have included videojs")}else n.pause();t&&l(t).attr("src",l(t).attr("src").replace("&autoplay","&noplay"));t=this.core.s.dynamic?this.core.s.dynamicEl[i].src:this.core.$items.eq(i).attr("href")||this.core.$items.eq(i).attr("data-src");i=this.core.isVideo(t,i)||{};(i.youtube||i.vimeo||i.dailymotion||i.vk)&&this.core.$outer.addClass("lg-hide-download")}.bind(this)),n.core.$el.on("onAfterSlide.lg.tm",function(e,t){n.core.$slide.eq(t).removeClass("lg-video-playing")}),n.core.s.autoplayFirstVideo&&n.core.$el.on("onAferAppendSlide.lg.tm",function(e,t){var i;n.core.lGalleryOn||(i=n.core.$slide.eq(t),setTimeout(function(){n.loadVideoOnclick(i)},100))})},e.prototype.loadVideo=function(e,t,i,n,o){var s="",r=1,a="",e=this.core.isVideo(e,n)||{},n=this.core.s.dynamic?this.core.s.dynamicEl[this.core.index].title:this.core.$items.eq(this.core.index).attr("title")||this.core.$items.eq(this.core.index).find("img").first().attr("alt");return n=n?'title="'+n+'"':"",i&&(r=!this.videoLoaded&&this.core.s.autoplayFirstVideo?1:0),e.youtube?(a="?wmode=opaque&autoplay="+r+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(a=a+"&"+l.param(this.core.s.youtubePlayerParams)),s='<iframe class="lg-video-object lg-youtube '+t+'" '+n+' width="560" height="315" src="//www.youtube.com/embed/'+e.youtube[1]+a+'" frameborder="0" allowfullscreen></iframe>'):e.vimeo?(a="?autoplay="+r+"&api=1",this.core.s.vimeoPlayerParams&&(a=a+"&"+l.param(this.core.s.vimeoPlayerParams)),s='<iframe class="lg-video-object lg-vimeo '+t+'" '+n+' width="560" height="315"  src="//player.vimeo.com/video/'+e.vimeo[1]+a+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'):e.dailymotion?(a="?wmode=opaque&autoplay="+r+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(a=a+"&"+l.param(this.core.s.dailymotionPlayerParams)),s='<iframe class="lg-video-object lg-dailymotion '+t+'" '+n+' width="560" height="315" src="//www.dailymotion.com/embed/video/'+e.dailymotion[1]+a+'" frameborder="0" allowfullscreen></iframe>'):e.html5?s=o="."===(i=o.substring(0,1))||"#"===i?l(o).html():o:e.vk&&(a="&autoplay="+r,this.core.s.vkPlayerParams&&(a=a+"&"+l.param(this.core.s.vkPlayerParams)),s='<iframe class="lg-video-object lg-vk '+t+'" '+n+' width="560" height="315" src="//vk.com/video_ext.php?'+e.vk[1]+a+'" frameborder="0" allowfullscreen></iframe>'),s},e.prototype.loadVideoOnclick=function(i){var n=this;if(i.find(".lg-object").hasClass("lg-has-poster")&&i.find(".lg-object").is(":visible"))if(i.hasClass("lg-has-video")){var e=i.find(".lg-youtube").get(0),t=i.find(".lg-vimeo").get(0),o=i.find(".lg-dailymotion").get(0),s=i.find(".lg-html5").get(0);if(e)e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(t)try{$f(t).api("play")}catch(e){console.error("Make sure you have included froogaloop2 js")}else if(o)o.contentWindow.postMessage("play","*");else if(s)if(n.core.s.videojs)try{videojs(s).play()}catch(e){console.error("Make sure you have included videojs")}else s.play();i.addClass("lg-video-playing")}else{i.addClass("lg-video-playing lg-has-video");s=function(e,t){if(i.find(".lg-video").append(n.loadVideo(e,"",!1,n.core.index,t)),t)if(n.core.s.videojs)try{videojs(n.core.$slide.eq(n.core.index).find(".lg-html5").get(0),n.core.s.videojsOptions,function(){this.play()})}catch(e){console.error("Make sure you have included videojs")}else n.core.$slide.eq(n.core.index).find(".lg-html5").get(0).play()};n.core.s.dynamic?s(n.core.s.dynamicEl[n.core.index].src,n.core.s.dynamicEl[n.core.index].html):s(n.core.$items.eq(n.core.index).attr("href")||n.core.$items.eq(n.core.index).attr("data-src"),n.core.$items.eq(n.core.index).attr("data-html"));s=i.find(".lg-object");i.find(".lg-video").append(s),i.find(".lg-video-object").hasClass("lg-html5")||(i.removeClass("lg-complete"),i.find(".lg-video-object").on("load.lg error.lg",function(){i.addClass("lg-complete")}))}},e.prototype.destroy=function(){this.videoLoaded=!1},l.fn.lightGallery.modules.video=e}()}),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).flexibility=e()}(function(){return function n(o,s,r){function a(i,e){if(!s[i]){if(!o[i]){var t="function"==typeof require&&require;if(!e&&t)return t(i,!0);if(l)return l(i,!0);t=new Error("Cannot find module '"+i+"'");throw t.code="MODULE_NOT_FOUND",t}t=s[i]={exports:{}};o[i][0].call(t.exports,function(e){var t=o[i][1][e];return a(t||e)},t,t.exports,n,o,s,r)}return s[i].exports}for(var l="function"==typeof require&&require,e=0;e<r.length;e++)a(r[e]);return a}({1:[function(e,t,i){t.exports=function(e){var t,i,n,o=-1;if(1<e.lines.length&&"flex-start"===e.style.alignContent)for(t=0;n=e.lines[++o];)n.crossStart=t,t+=n.cross;else if(1<e.lines.length&&"flex-end"===e.style.alignContent)for(t=e.flexStyle.crossSpace;n=e.lines[++o];)n.crossStart=t,t+=n.cross;else if(1<e.lines.length&&"center"===e.style.alignContent)for(t=e.flexStyle.crossSpace/2;n=e.lines[++o];)n.crossStart=t,t+=n.cross;else if(1<e.lines.length&&"space-between"===e.style.alignContent)for(i=e.flexStyle.crossSpace/(e.lines.length-1),t=0;n=e.lines[++o];)n.crossStart=t,t+=n.cross+i;else if(1<e.lines.length&&"space-around"===e.style.alignContent)for(t=(i=2*e.flexStyle.crossSpace/(2*e.lines.length))/2;n=e.lines[++o];)n.crossStart=t,t+=n.cross+i;else for(i=e.flexStyle.crossSpace/e.lines.length,t=e.flexStyle.crossInnerBefore;n=e.lines[++o];)n.crossStart=t,n.cross+=i,t+=n.cross}},{}],2:[function(e,t,i){t.exports=function(e){for(var t,i=-1;line=e.lines[++i];)for(t=-1;child=line.children[++t];){var n=child.style.alignSelf;"flex-start"===(n="auto"===n?e.style.alignItems:n)?child.flexStyle.crossStart=line.crossStart:"flex-end"===n?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===n?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(e,t,i){t.exports=function(e,t){var i="row"===t||"row-reverse"===t,n=e.mainAxis;n?i&&"inline"===n||!i&&"block"===n||(e.flexStyle={main:e.flexStyle.cross,cross:e.flexStyle.main,mainOffset:e.flexStyle.crossOffset,crossOffset:e.flexStyle.mainOffset,mainBefore:e.flexStyle.crossBefore,mainAfter:e.flexStyle.crossAfter,crossBefore:e.flexStyle.mainBefore,crossAfter:e.flexStyle.mainAfter,mainInnerBefore:e.flexStyle.crossInnerBefore,mainInnerAfter:e.flexStyle.crossInnerAfter,crossInnerBefore:e.flexStyle.mainInnerBefore,crossInnerAfter:e.flexStyle.mainInnerAfter,mainBorderBefore:e.flexStyle.crossBorderBefore,mainBorderAfter:e.flexStyle.crossBorderAfter,crossBorderBefore:e.flexStyle.mainBorderBefore,crossBorderAfter:e.flexStyle.mainBorderAfter}):(e.flexStyle=i?{main:e.style.width,cross:e.style.height,mainOffset:e.style.offsetWidth,crossOffset:e.style.offsetHeight,mainBefore:e.style.marginLeft,mainAfter:e.style.marginRight,crossBefore:e.style.marginTop,crossAfter:e.style.marginBottom,mainInnerBefore:e.style.paddingLeft,mainInnerAfter:e.style.paddingRight,crossInnerBefore:e.style.paddingTop,crossInnerAfter:e.style.paddingBottom,mainBorderBefore:e.style.borderLeftWidth,mainBorderAfter:e.style.borderRightWidth,crossBorderBefore:e.style.borderTopWidth,crossBorderAfter:e.style.borderBottomWidth}:{main:e.style.height,cross:e.style.width,mainOffset:e.style.offsetHeight,crossOffset:e.style.offsetWidth,mainBefore:e.style.marginTop,mainAfter:e.style.marginBottom,crossBefore:e.style.marginLeft,crossAfter:e.style.marginRight,mainInnerBefore:e.style.paddingTop,mainInnerAfter:e.style.paddingBottom,crossInnerBefore:e.style.paddingLeft,crossInnerAfter:e.style.paddingRight,mainBorderBefore:e.style.borderTopWidth,mainBorderAfter:e.style.borderBottomWidth,crossBorderBefore:e.style.borderLeftWidth,crossBorderAfter:e.style.borderRightWidth},"content-box"===e.style.boxSizing&&("number"==typeof e.flexStyle.main&&(e.flexStyle.main+=e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),"number"==typeof e.flexStyle.cross&&(e.flexStyle.cross+=e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter))),e.mainAxis=i?"inline":"block",e.crossAxis=i?"block":"inline","number"==typeof e.style.flexBasis&&(e.flexStyle.main=e.style.flexBasis+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),e.flexStyle.mainOuter=e.flexStyle.main,e.flexStyle.crossOuter=e.flexStyle.cross,"auto"===e.flexStyle.mainOuter&&(e.flexStyle.mainOuter=e.flexStyle.mainOffset),"auto"===e.flexStyle.crossOuter&&(e.flexStyle.crossOuter=e.flexStyle.crossOffset),"number"==typeof e.flexStyle.mainBefore&&(e.flexStyle.mainOuter+=e.flexStyle.mainBefore),"number"==typeof e.flexStyle.mainAfter&&(e.flexStyle.mainOuter+=e.flexStyle.mainAfter),"number"==typeof e.flexStyle.crossBefore&&(e.flexStyle.crossOuter+=e.flexStyle.crossBefore),"number"==typeof e.flexStyle.crossAfter&&(e.flexStyle.crossOuter+=e.flexStyle.crossAfter)}},{}],4:[function(e,t,i){var o=e("../reduce");t.exports=function(i){var n;0<i.mainSpace&&(0<(n=o(i.children,function(e,t){return e+parseFloat(t.style.flexGrow)},0))&&(i.main=o(i.children,function(e,t){return"auto"===t.flexStyle.main?t.flexStyle.main=t.flexStyle.mainOffset+parseFloat(t.style.flexGrow)/n*i.mainSpace:t.flexStyle.main+=parseFloat(t.style.flexGrow)/n*i.mainSpace,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,e+t.flexStyle.mainOuter},0),i.mainSpace=0))}},{"../reduce":12}],5:[function(e,t,i){var o=e("../reduce");t.exports=function(i){var n;i.mainSpace<0&&(0<(n=o(i.children,function(e,t){return e+parseFloat(t.style.flexShrink)},0))&&(i.main=o(i.children,function(e,t){return t.flexStyle.main+=parseFloat(t.style.flexShrink)/n*i.mainSpace,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,e+t.flexStyle.mainOuter},0),i.mainSpace=0))}},{"../reduce":12}],6:[function(e,t,i){var o=e("../reduce");t.exports=function(e){var t;e.lines=[t={main:0,cross:0,children:[]}];for(var i,n=-1;i=e.children[++n];)"nowrap"===e.style.flexWrap||0===t.children.length||"auto"===e.flexStyle.main||e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter>=t.main+i.flexStyle.mainOuter?(t.main+=i.flexStyle.mainOuter,t.cross=Math.max(t.cross,i.flexStyle.crossOuter)):e.lines.push(t={main:i.flexStyle.mainOuter,cross:i.flexStyle.crossOuter,children:[]}),t.children.push(i);e.flexStyle.mainLines=o(e.lines,function(e,t){return Math.max(e,t.main)},0),e.flexStyle.crossLines=o(e.lines,function(e,t){return e+t.cross},0),"auto"===e.flexStyle.main&&(e.flexStyle.main=Math.max(e.flexStyle.mainOffset,e.flexStyle.mainLines+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter)),"auto"===e.flexStyle.cross&&(e.flexStyle.cross=Math.max(e.flexStyle.crossOffset,e.flexStyle.crossLines+e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter)),e.flexStyle.crossSpace=e.flexStyle.cross-e.flexStyle.crossInnerBefore-e.flexStyle.crossInnerAfter-e.flexStyle.crossBorderBefore-e.flexStyle.crossBorderAfter-e.flexStyle.crossLines,e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter,e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}},{"../reduce":12}],7:[function(o,e,t){e.exports=function(e){for(var t,i,n=-1;t=e.children[++n];)o("./flex-direction")(t,e.style.flexDirection);for(o("./flex-direction")(e,e.style.flexDirection),o("./order")(e),o("./flexbox-lines")(e),o("./align-content")(e),n=-1;i=e.lines[++n];)i.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-i.main,o("./flex-grow")(i),o("./flex-shrink")(i),o("./margin-main")(i),o("./margin-cross")(i),o("./justify-content")(i,e.style.justifyContent,e);o("./align-items")(e)}},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(e,t,i){t.exports=function(e,t,i){var n,o,s,i=i.flexStyle.mainInnerBefore,r=-1;if("flex-end"===t)for(n=e.mainSpace,n+=i;s=e.children[++r];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter;else if("center"===t)for(n=e.mainSpace/2,n+=i;s=e.children[++r];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter;else if("space-between"===t)for(o=e.mainSpace/(e.children.length-1),n=0,n+=i;s=e.children[++r];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter+o;else if("space-around"===t)for(n=(o=2*e.mainSpace/(2*e.children.length))/2,n+=i;s=e.children[++r];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter+o;else for(n=0,n+=i;s=e.children[++r];)s.flexStyle.mainStart=n,n+=s.flexStyle.mainOuter}},{}],9:[function(e,t,i){t.exports=function(e){for(var t,i=-1;t=e.children[++i];){var n=0;"auto"===t.flexStyle.crossBefore&&++n,"auto"===t.flexStyle.crossAfter&&++n;var o=e.cross-t.flexStyle.crossOuter;"auto"===t.flexStyle.crossBefore&&(t.flexStyle.crossBefore=o/n),"auto"===t.flexStyle.crossAfter&&(t.flexStyle.crossAfter=o/n),"auto"===t.flexStyle.cross?t.flexStyle.crossOuter=t.flexStyle.crossOffset+t.flexStyle.crossBefore+t.flexStyle.crossAfter:t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}}},{}],10:[function(e,t,i){t.exports=function(e){for(var t,i=0,n=-1;t=e.children[++n];)"auto"===t.flexStyle.mainBefore&&++i,"auto"===t.flexStyle.mainAfter&&++i;if(0<i){for(n=-1;t=e.children[++n];)"auto"===t.flexStyle.mainBefore&&(t.flexStyle.mainBefore=e.mainSpace/i),"auto"===t.flexStyle.mainAfter&&(t.flexStyle.mainAfter=e.mainSpace/i),"auto"===t.flexStyle.main?t.flexStyle.mainOuter=t.flexStyle.mainOffset+t.flexStyle.mainBefore+t.flexStyle.mainAfter:t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter;e.mainSpace=0}}},{}],11:[function(e,t,i){var n=/^(column|row)-reverse$/;t.exports=function(e){e.children.sort(function(e,t){return e.style.order-t.style.order||e.index-t.index}),n.test(e.style.flexDirection)&&e.children.reverse()}},{}],12:[function(e,t,i){t.exports=function(e,t,i){for(var n=e.length,o=-1;++o<n;)o in e&&(i=t(i,e[o],o));return i}},{}],13:[function(e,t,i){var n=e("./read"),o=e("./write"),s=e("./readAll"),r=e("./writeAll");t.exports=function(e){r(s(e))},t.exports.read=n,t.exports.write=o,t.exports.readAll=s,t.exports.writeAll=r},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(e,t,i){t.exports=function(e,t,i){var n=e[t],o=String(n).match(r);if(o)return s=o[1],"px"===(o=o[2])?+s:"cm"===o?.3937*s*96:"in"===o?96*s:"mm"===o?.3937*s*96/10:"pc"===o?12*s*96/72:"pt"===o?96*s/72:"rem"===o?16*s:function(e,t){a.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+e+"!important",t.parentNode.insertBefore(a,t.nextSibling);e=a.offsetWidth;return t.parentNode.removeChild(a),e}(n,i);var s=t.match(c);return s?"none"!==e["border"+s[1]+"Style"]&&l[n]||0:n};var r=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,a=document.createElement("div"),l={medium:4,none:0,thick:6,thin:2},c=/^border(Bottom|Left|Right|Top)Width$/},{}],15:[function(e,t,i){t.exports=function(e){var t={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomStyle:"none",borderBottomWidth:0,borderLeftStyle:"none",borderLeftWidth:0,borderRightStyle:"none",borderRightWidth:0,borderTopStyle:"none",borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"};if(e instanceof Element){var i,n=e.hasAttribute("data-style"),o=n?e.getAttribute("data-style"):e.getAttribute("style")||"";for(i in n||e.setAttribute("data-style",o),function(e,t){for(var i in e)i in t&&!r.test(i)&&(e[i]=t[i])}(t,window.getComputedStyle&&getComputedStyle(e)||{}),function(e,t){for(var i in e){var n;i in t?e[i]=t[i]:(n=i.replace(/[A-Z]/g,"-$&").toLowerCase())in t&&(e[i]=t[n])}"-js-display"in t&&(e.display=t["-js-display"])}(t,e.currentStyle||{}),function(e,t){for(var i;i=s.exec(t);){var n=i[1].toLowerCase().replace(/-[a-z]/g,function(e){return e.slice(1).toUpperCase()});e[n]=i[2]}}(t,o),t)t[i]=a(t,i,e);o=e.getBoundingClientRect();t.offsetHeight=o.height||e.offsetHeight,t.offsetWidth=o.width||e.offsetWidth}return{element:e,style:t}};var s=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,r=/^(alignSelf|height|width)$/,a=e("./getComputedLength")},{"./getComputedLength":14}],16:[function(e,t,i){function u(e){var t=e instanceof Element,i=t&&e.getAttribute("data-style"),e=t&&e.currentStyle&&e.currentStyle["-js-display"];return n.test(i)||o.test(e)}t.exports=function(e){var t=[];return function e(t,i){for(var n,o=u(t),s=[],r=-1;n=t.childNodes[++r];){var a=3===n.nodeType&&!/^\s*$/.test(n.nodeValue);o&&a&&(l=n,(n=t.insertBefore(document.createElement("flex-item"),l)).appendChild(l));var l,a=n instanceof Element;a&&(l=e(n,i),o&&((a=n.style).display="inline-block",a.position="absolute",l.style=d(n).style,s.push(l)))}var c={element:t,children:s};return o&&(c.style=d(t).style,i.push(c)),c}(e,t),t};var d=e("../read"),n=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,o=/^(inline-)?flex$/i},{"../read":15}],17:[function(e,t,i){function a(e){return"string"==typeof e?e:Math.max(e,0)+"px"}t.exports=function(e){l(e);var t=e.element.style,i="inline"===e.mainAxis?["main","cross"]:["cross","main"];t.boxSizing="content-box",t.display="block",t.position="relative",t.width=a(e.flexStyle[i[0]]-e.flexStyle[i[0]+"InnerBefore"]-e.flexStyle[i[0]+"InnerAfter"]-e.flexStyle[i[0]+"BorderBefore"]-e.flexStyle[i[0]+"BorderAfter"]),t.height=a(e.flexStyle[i[1]]-e.flexStyle[i[1]+"InnerBefore"]-e.flexStyle[i[1]+"InnerAfter"]-e.flexStyle[i[1]+"BorderBefore"]-e.flexStyle[i[1]+"BorderAfter"]);for(var n,o=-1;n=e.children[++o];){var s=n.element.style,r="inline"===n.mainAxis?["main","cross"]:["cross","main"];s.boxSizing="content-box",s.display="block",s.position="absolute","auto"!==n.flexStyle[r[0]]&&(s.width=a(n.flexStyle[r[0]]-n.flexStyle[r[0]+"InnerBefore"]-n.flexStyle[r[0]+"InnerAfter"]-n.flexStyle[r[0]+"BorderBefore"]-n.flexStyle[r[0]+"BorderAfter"])),"auto"!==n.flexStyle[r[1]]&&(s.height=a(n.flexStyle[r[1]]-n.flexStyle[r[1]+"InnerBefore"]-n.flexStyle[r[1]+"InnerAfter"]-n.flexStyle[r[1]+"BorderBefore"]-n.flexStyle[r[1]+"BorderAfter"])),s.top=a(n.flexStyle[r[1]+"Start"]),s.left=a(n.flexStyle[r[0]+"Start"]),s.marginTop=a(n.flexStyle[r[1]+"Before"]),s.marginRight=a(n.flexStyle[r[0]+"After"]),s.marginBottom=a(n.flexStyle[r[1]+"After"]),s.marginLeft=a(n.flexStyle[r[0]+"Before"])}};var l=e("../flexbox")},{"../flexbox":7}],18:[function(e,t,i){t.exports=function(e){for(var t,i=-1;t=e[++i];)n(t)};var n=e("../write")},{"../write":17}]},{},[13])(13)}),function(l,i,n,a){function c(e,t){this.settings=null,this.options=l.extend({},c.Defaults,t),this.$element=l(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},l.each(["onResize","onThrottledResize"],l.proxy(function(e,t){this._handlers[t]=l.proxy(this[t],this)},this)),l.each(c.Plugins,l.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),l.each(c.Workers,l.proxy(function(e,t){this._pipe.push({filter:t.filter,run:l.proxy(t.run,this)})},this)),this.setup(),this.initialize()}c.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:i,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},c.Width={Default:"default",Inner:"inner",Outer:"outer"},c.Type={Event:"event",State:"state"},c.Plugins={},c.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,t={width:"auto","margin-left":n?t:"","margin-right":n?"":t};i||this.$stage.children().css(t),e.css=t}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,o=!this.settings.autoWidth,s=[];for(e.items={merge:!1,width:t};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,e.items.merge=1<i||e.items.merge,s[n]=o?t*i:this._items[n].width();this._widths=s}},{filter:["items","settings"],run:function(){var e=[],t=this._items,i=this.settings,n=Math.max(2*i.items,4),o=2*Math.ceil(t.length/2),s=i.loop&&t.length?i.rewind?n:Math.max(n,o):0,r="",a="";for(s/=2;0<s;)e.push(this.normalize(e.length/2,!0)),r+=t[e[e.length-1]][0].outerHTML,e.push(this.normalize(t.length-1-(e.length-1)/2,!0)),a=t[e[e.length-1]][0].outerHTML+a,--s;this._clones=e,l(r).addClass("cloned").appendTo(this.$stage),l(a).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e,t,i=this.settings.rtl?1:-1,n=this._clones.length+this._items.length,o=-1,s=[];++o<n;)e=s[o-1]||0,t=this._widths[this.relative(o)]+this.settings.margin,s.push(e+t*i);this._coordinates=s}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,e={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(e)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],n.eq(t).css(e.css);else i&&(e.css.width=e.items.width,n.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var e,t,i=this.settings.rtl?1:-1,n=2*this.settings.stagePadding,o=this.coordinates(this.current())+n,s=o+this.width()*i,r=[],a=0,l=this._coordinates.length;a<l;a++)e=this._coordinates[a-1]||0,t=Math.abs(this._coordinates[a])+n*i,(this.op(e,"<=",o)&&this.op(e,">",s)||this.op(t,"<",o)&&this.op(t,">",s))&&r.push(a);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+r.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],c.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(l("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},c.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map(function(e){return l(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},c.prototype.initialize=function(){var e,t;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,t=this.$element.children(t).width(),e.length&&t<=0&&this.preloadAutoWidthImages(e)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},c.prototype.setup=function(){var t=this.viewport(),e=this.options.responsive,i=-1,n=null;e?(l.each(e,function(e){e<=t&&i<e&&(i=Number(e))}),"function"==typeof(n=l.extend({},this.options,e[i])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):n=l.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=i,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},c.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},c.prototype.prepare=function(e){var t=this.trigger("prepare",{content:e});return t.data||(t.data=l("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:t.data}),t.data},c.prototype.update=function(){for(var e=0,t=this._pipe.length,i=l.proxy(function(e){return this[e]},this._invalidated),n={};e<t;)(this._invalidated.all||0<l.grep(this._pipe[e].filter,i).length)&&this._pipe[e].run(n),e++;this._invalidated={},this.is("valid")||this.enter("valid")},c.prototype.width=function(e){switch(e=e||c.Width.Default){case c.Width.Inner:case c.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},c.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},c.prototype.onThrottledResize=function(){i.clearTimeout(this.resizeTimer),this.resizeTimer=i.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},c.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},c.prototype.registerEventHandlers=function(){l.support.transition&&this.$stage.on(l.support.transition.end+".owl.core",l.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(i,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",l.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",l.proxy(this.onDragEnd,this)))},c.prototype.onDragStart=function(e){var t=null;3!==e.which&&(t=l.support.transform?{x:(t=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===t.length?12:4],y:t[16===t.length?13:5]}:(t=this.$stage.position(),{x:this.settings.rtl?t.left+this.$stage.width()-this.width()+this.settings.margin:t.left,y:t.top}),this.is("animating")&&(l.support.transform?this.animate(t.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=l(e.target),this._drag.stage.start=t,this._drag.stage.current=t,this._drag.pointer=this.pointer(e),l(n).on("mouseup.owl.core touchend.owl.core",l.proxy(this.onDragEnd,this)),l(n).one("mousemove.owl.core touchmove.owl.core",l.proxy(function(e){var t=this.difference(this._drag.pointer,this.pointer(e));l(n).on("mousemove.owl.core touchmove.owl.core",l.proxy(this.onDragMove,this)),Math.abs(t.x)<Math.abs(t.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},c.prototype.onDragMove=function(e){var t,i=null,n=null,o=this.difference(this._drag.pointer,this.pointer(e)),s=this.difference(this._drag.stage.start,o);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(i=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-i,s.x=((s.x-i)%n+n)%n+i):(i=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),t=this.settings.pullDrag?-1*o.x/5:0,s.x=Math.max(Math.min(s.x,i+t),n+t)),this._drag.stage.current=s,this.animate(s.x))},c.prototype.onDragEnd=function(e){var t=this.difference(this._drag.pointer,this.pointer(e)),i=this._drag.stage.current,e=0<t.x^this.settings.rtl?"left":"right";l(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==t.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==t.x?e:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=e,(3<Math.abs(t.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},c.prototype.closest=function(i,n){var o=-1,s=this.width(),r=this.coordinates();return this.settings.freeDrag||l.each(r,l.proxy(function(e,t){return"left"===n&&t-30<i&&i<t+30?o=e:"right"===n&&t-s-30<i&&i<t-s+30?o=e+1:this.op(i,"<",t)&&this.op(i,">",r[e+1]!==a?r[e+1]:t-s)&&(o="left"===n?e+1:e),-1===o},this)),this.settings.loop||(this.op(i,">",r[this.minimum()])?o=i=this.minimum():this.op(i,"<",r[this.maximum()])&&(o=i=this.maximum())),o},c.prototype.animate=function(e){var t=0<this.speed();this.is("animating")&&this.onTransitionEnd(),t&&(this.enter("animating"),this.trigger("translate")),l.support.transform3d&&l.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):t?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,l.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},c.prototype.is=function(e){return this._states.current[e]&&0<this._states.current[e]},c.prototype.current=function(e){return e===a?this._current:0===this._items.length?a:(e=this.normalize(e),this._current!==e&&((t=this.trigger("change",{property:{name:"position",value:e}})).data!==a&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})),this._current);var t},c.prototype.invalidate=function(e){return"string"===l.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),l.map(this._invalidated,function(e,t){return t})},c.prototype.reset=function(e){(e=this.normalize(e))!==a&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},c.prototype.normalize=function(e,t){var i=this._items.length,t=t?0:this._clones.length;return!this.isNumeric(e)||i<1?e=a:(e<0||i+t<=e)&&(e=((e-t/2)%i+i)%i+t/2),e},c.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},c.prototype.maximum=function(e){var t,i,n,o=this.settings,s=this._coordinates.length;if(o.loop)s=this._clones.length/2+this._items.length-1;else if(o.autoWidth||o.merge){if(t=this._items.length)for(i=this._items[--t].width(),n=this.$element.width();t--&&!(n<(i+=this._items[t].width()+this.settings.margin)););s=t+1}else s=o.center?this._items.length-1:this._items.length-o.items;return e&&(s-=this._clones.length/2),Math.max(s,0)},c.prototype.minimum=function(e){return e?0:this._clones.length/2},c.prototype.items=function(e){return e===a?this._items.slice():(e=this.normalize(e,!0),this._items[e])},c.prototype.mergers=function(e){return e===a?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},c.prototype.clones=function(i){function n(e){return e%2==0?o+e/2:t-(e+1)/2}var t=this._clones.length/2,o=t+this._items.length;return i===a?l.map(this._clones,function(e,t){return n(t)}):l.map(this._clones,function(e,t){return e===i?n(t):null})},c.prototype.speed=function(e){return e!==a&&(this._speed=e),this._speed},c.prototype.coordinates=function(e){var t,i=1,n=e-1;return e===a?l.map(this._coordinates,l.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,n=e+1),t=this._coordinates[e],t+=(this.width()-t+(this._coordinates[n]||0))/2*i):t=this._coordinates[n]||0,t=Math.ceil(t))},c.prototype.duration=function(e,t,i){return 0===i?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(i||this.settings.smartSpeed)},c.prototype.to=function(e,t){var i,n=this.current(),o=e-this.relative(n),s=(0<o)-(o<0),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(o)>r/2&&(o+=-1*s*r),(i=(((e=n+o)-a)%r+r)%r+a)!==e&&i-o<=l&&0<i-o&&this.reset(n=(e=i)-o)):e=this.settings.rewind?(e%(l+=1)+l)%l:Math.max(a,Math.min(l,e)),this.speed(this.duration(n,e,t)),this.current(e),this.isVisible()&&this.update()},c.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},c.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},c.prototype.onTransitionEnd=function(e){if(e!==a&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},c.prototype.viewport=function(){var e;return this.options.responsiveBaseElement!==i?e=l(this.options.responsiveBaseElement).width():i.innerWidth?e=i.innerWidth:n.documentElement&&n.documentElement.clientWidth?e=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),e},c.prototype.replace=function(e){this.$stage.empty(),this._items=[],e=e&&(e instanceof jQuery?e:l(e)),(e=this.settings.nestedItemSelector?e.find("."+this.settings.nestedItemSelector):e).filter(function(){return 1===this.nodeType}).each(l.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(+t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},c.prototype.add=function(e,t){var i=this.relative(this._current);t=t===a?this._items.length:this.normalize(t,!0),e=e instanceof jQuery?e:l(e),this.trigger("add",{content:e,position:t}),e=this.prepare(e),0===this._items.length||t===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[t-1].after(e),this._items.push(e),this._mergers.push(+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[t].before(e),this._items.splice(t,0,e),this._mergers.splice(t,0,+e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:e,position:t})},c.prototype.remove=function(e){(e=this.normalize(e,!0))!==a&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},c.prototype.preloadAutoWidthImages=function(e){e.each(l.proxy(function(e,t){this.enter("pre-loading"),t=l(t),l(new Image).one("load",l.proxy(function(e){t.attr("src",e.target.src),t.css("opacity",1),this.leave("pre-loading"),this.is("pre-loading")||this.is("initializing")||this.refresh()},this)).attr("src",t.attr("src")||t.attr("data-src")||t.attr("data-src-retina"))},this))},c.prototype.destroy=function(){for(var e in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),l(n).off(".owl.core"),!1!==this.settings.responsive&&(i.clearTimeout(this.resizeTimer),this.off(i,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[e].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},c.prototype.op=function(e,t,i){var n=this.settings.rtl;switch(t){case"<":return n?i<e:e<i;case">":return n?e<i:i<e;case">=":return n?e<=i:i<=e;case"<=":return n?i<=e:e<=i}},c.prototype.on=function(e,t,i,n){e.addEventListener?e.addEventListener(t,i,n):e.attachEvent&&e.attachEvent("on"+t,i)},c.prototype.off=function(e,t,i,n){e.removeEventListener?e.removeEventListener(t,i,n):e.detachEvent&&e.detachEvent("on"+t,i)},c.prototype.trigger=function(e,t,i,n,o){var s={item:{count:this._items.length,index:this.current()}},r=l.camelCase(l.grep(["on",e,i],function(e){return e}).join("-").toLowerCase()),a=l.Event([e,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},s,t));return this._supress[e]||(l.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(a)}),this.register({type:c.Type.Event,name:e}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},c.prototype.enter=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]===a&&(this._states.current[t]=0),this._states.current[t]++},this))},c.prototype.leave=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]--},this))},c.prototype.register=function(i){var t;i.type===c.Type.Event?(l.event.special[i.name]||(l.event.special[i.name]={}),l.event.special[i.name].owl||(t=l.event.special[i.name]._default,l.event.special[i.name]._default=function(e){return!t||!t.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&-1<e.namespace.indexOf("owl"):t.apply(this,arguments)},l.event.special[i.name].owl=!0)):i.type===c.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=l.grep(this._states.tags[i.name],l.proxy(function(e,t){return l.inArray(e,this._states.tags[i.name])===t},this)))},c.prototype.suppress=function(e){l.each(e,l.proxy(function(e,t){this._supress[t]=!0},this))},c.prototype.release=function(e){l.each(e,l.proxy(function(e,t){delete this._supress[t]},this))},c.prototype.pointer=function(e){var t={x:null,y:null};return(e=(e=e.originalEvent||e||i.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(t.x=e.pageX,t.y=e.pageY):(t.x=e.clientX,t.y=e.clientY),t},c.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},c.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},l.fn.owlCarousel=function(t){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=l(this),i=e.data("owl.carousel");i||(i=new c(this,"object"==typeof t&&t),e.data("owl.carousel",i),l.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,t){i.register({type:c.Type.Event,name:t}),i.$element.on(t+".owl.carousel.core",l.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([t]),i[t].apply(this,[].slice.call(arguments,1)),this.release([t]))},i))})),"string"==typeof t&&"_"!==t.charAt(0)&&i[t].apply(i,n)})},l.fn.owlCarousel.Constructor=c}(window.Zepto||window.jQuery,window,document),function(t,i){function n(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers)}n.Defaults={autoRefresh:!0,autoRefreshInterval:500},n.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=i.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},n.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},n.prototype.destroy=function(){var e,t;for(e in i.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=n}(window.Zepto||window.jQuery,window,document),function(a,o){function t(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var t=this._core.settings,i=t.center&&Math.ceil(t.items/2)||t.items,n=t.center&&-1*i||0,o=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+n,s=this._core.clones().length,r=a.proxy(function(e,t){this.load(t)},this);for(0<t.lazyLoadEager&&(i+=t.lazyLoadEager,t.loop&&(o-=t.lazyLoadEager,i++));n++<i;)this.load(s/2+this._core.relative(o)),s&&a.each(this._core.clones(this._core.relative(o)),r),o++}},this)},this._core.options=a.extend({},t.Defaults,this._core.options),this._core.$element.on(this._handlers)}t.Defaults={lazyLoad:!1,lazyLoadEager:0},t.prototype.load=function(e){var t=this._core.$stage.children().eq(e),e=t&&t.find(".owl-lazy");!e||-1<a.inArray(t.get(0),this._loaded)||(e.each(a.proxy(function(e,t){var i=a(t),n=1<o.devicePixelRatio&&i.attr("data-src-retina")||i.attr("data-src")||i.attr("data-srcset");this._core.trigger("load",{element:i,url:n},"lazy"),i.is("img")?i.one("load.owl.lazy",a.proxy(function(){i.css("opacity",1),this._core.trigger("loaded",{element:i,url:n},"lazy")},this)).attr("src",n):i.is("source")?i.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:i,url:n},"lazy")},this)).attr("srcset",n):((t=new Image).onload=a.proxy(function(){i.css({"background-image":'url("'+n+'")',opacity:"1"}),this._core.trigger("loaded",{element:i,url:n},"lazy")},this),t.src=n)},this)),this._loaded.push(t.get(0)))},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=t}(window.Zepto||window.jQuery,window,document),function(o,i){function n(e){this._core=e,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":o.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":o.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()},this),"loaded.owl.lazy":o.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=o.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var t=this;o(i).on("load",function(){t._core.settings.autoHeight&&t.update()}),o(i).resize(function(){t._core.settings.autoHeight&&(null!=t._intervalId&&clearTimeout(t._intervalId),t._intervalId=setTimeout(function(){t.update()},250))})}n.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},n.prototype.update=function(){var e=this._core._current,t=e+this._core.settings.items,i=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(e,t),n=[],t=0;o.each(e,function(e,t){n.push(o(t).height())}),(t=Math.max.apply(null,n))<=1&&i&&this._previousHeight&&(t=this._previousHeight),this._previousHeight=t,this._core.$stage.parent().height(t).addClass(this._core.settings.autoHeightClass)},n.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},o.fn.owlCarousel.Constructor.Plugins.AutoHeight=n}(window.Zepto||window.jQuery,window,document),function(u,t){function i(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":u.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":u.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":u.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":u.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":u.proxy(function(e){var t;!e.namespace||(t=u(e.content).find(".owl-video")).length&&(t.css("display","none"),this.fetch(t,u(e.content)))},this)},this._core.options=u.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",u.proxy(function(e){this.play(e)},this))}i.Defaults={video:!1,videoHeight:!1,videoWidth:!1},i.prototype.fetch=function(e,t){var i=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",n=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),o=e.attr("data-width")||this._core.settings.videoWidth,s=e.attr("data-height")||this._core.settings.videoHeight,r=e.attr("href");if(!r)throw new Error("Missing video URL.");if(-1<(n=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))i="youtube";else if(-1<n[3].indexOf("vimeo"))i="vimeo";else{if(!(-1<n[3].indexOf("vzaar")))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[r]={type:i,id:n,width:o,height:s},t.attr("data-video",r),this.thumbnail(e,this._videos[r])},i.prototype.thumbnail=function(t,e){function i(e){n=c.lazyLoad?u("<div/>",{class:"owl-video-tn "+l,srcType:e}):u("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+e+")"}),t.after(n),t.after('<div class="owl-video-play-icon"></div>')}var n,o,s=e.width&&e.height?"width:"+e.width+"px;height:"+e.height+"px;":"",r=t.find("img"),a="src",l="",c=this._core.settings;if(t.wrap(u("<div/>",{class:"owl-video-wrapper",style:s})),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),r.length)return i(r.attr(a)),r.remove(),!1;"youtube"===e.type?(o="//img.youtube.com/vi/"+e.id+"/hqdefault.jpg",i(o)):"vimeo"===e.type?u.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e[0].thumbnail_large,i(o)}}):"vzaar"===e.type&&u.ajax({type:"GET",url:"//vzaar.com/api/videos/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){o=e.framegrab_url,i(o)}})},i.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},i.prototype.play=function(e){var t=u(e.target).closest("."+this._core.settings.itemClass),i=this._videos[t.attr("data-video")],n=i.width||"100%",o=i.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),t=this._core.items(this._core.relative(t.index())),this._core.reset(t.index()),(e=u('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",o),e.attr("width",n),"youtube"===i.type?e.attr("src","//www.youtube.com/embed/"+i.id+"?autoplay=1&rel=0&v="+i.id):"vimeo"===i.type?e.attr("src","//player.vimeo.com/video/"+i.id+"?autoplay=1"):"vzaar"===i.type&&e.attr("src","//view.vzaar.com/"+i.id+"/player?autoplay=true"),u(e).wrap('<div class="owl-video-frame" />').insertAfter(t.find(".owl-video")),this._playing=t.addClass("owl-video-playing"))},i.prototype.isInFullScreen=function(){var e=t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement;return e&&u(e).parent().hasClass("owl-video-frame")},i.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},u.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,(window,document)),function(r){function t(e){this.core=e,this.core.options=r.extend({},t.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":r.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}t.Defaults={animateOut:!1,animateIn:!1},t.prototype.swap=function(){var e,t,i,n,o,s;1===this.core.settings.items&&r.support.animation&&r.support.transition&&(this.core.speed(0),t=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,s=this.core.settings.animateOut,this.core.current()!==this.previous&&(s&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(r.support.animation.end,t).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(s)),o&&n.one(r.support.animation.end,t).addClass("animated owl-animated-in").addClass(o)))},t.prototype.clear=function(e){r(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},r.fn.owlCarousel.Constructor.Plugins.Animate=t}(window.Zepto||window.jQuery,(window,document)),function(n,o,t){function i(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":n.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":n.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(e,t,i){e.namespace&&this.play(t,i)},this),"stop.owl.autoplay":n.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=n.extend({},i.Defaults,this._core.options)}i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(e){this._call=o.setTimeout(n.proxy(this._next,this,e),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||t.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(e,t){var i;this._core.is("rotating")||this._core.enter("rotating"),e=e||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||e),e),this._paused?(this._time=this.read(),this._paused=!1):o.clearTimeout(this._call),this._time+=this.read()%e-i,this._timeout=e,this._call=o.setTimeout(n.proxy(this._next,this,t),e-i)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,o.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,o.clearTimeout(this._call))},i.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},n.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(o){"use strict";function t(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+o(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":o.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":o.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)}t.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},t.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?o(i.navContainer):o("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(e){this.prev(i.navSpeed)},this)),this._controls.$next=o("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(e){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[o('<button role="button">').addClass(i.dotClass).append(o("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?o(i.dotsContainer):o("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",o.proxy(function(e){var t=(o(e.target).parent().is(this._controls.$absolute)?o(e.target):o(e.target).parent()).index();e.preventDefault(),this.to(t,i.dotsSpeed)},this)),this._overrides)this._core[e]=o.proxy(this[e],this)},t.prototype.destroy=function(){var e,t,i,n,o=this._core.settings;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&o.navContainer?this._controls[t].html(""):this._controls[t].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.prototype.update=function(){var e,t,i=this._core.clones().length/2,n=i+this._core.items().length,o=this._core.maximum(!0),s=this._core.settings,r=s.center||s.autoWidth||s.dotsData?1:s.dotsEach||s.items;if("page"!==s.slideBy&&(s.slideBy=Math.min(s.slideBy,s.items)),s.dots||"page"==s.slideBy)for(this._pages=[],e=i,t=0;e<n;e++){if(r<=t||0===t){if(this._pages.push({start:Math.min(o,e-i),end:e-i+r-1}),Math.min(o,e-i)===o)break;t=0,0}t+=this._core.mergers(this._core.relative(e))}},t.prototype.draw=function(){var e=this._core.settings,t=this._core.items().length<=e.items,i=this._core.relative(this._core.current()),n=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||t),e.nav&&(this._controls.$previous.toggleClass("disabled",!n&&i<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!n&&i>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||t),e.dots&&(t=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!=t?this._controls.$absolute.html(this._templates.join("")):0<t?this._controls.$absolute.append(new Array(1+t).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(o.inArray(this.current(),this._pages)).addClass("active"))},t.prototype.onTrigger=function(e){var t=this._core.settings;e.page={index:o.inArray(this.current(),this._pages),count:this._pages.length,size:t&&(t.center||t.autoWidth||t.dotsData?1:t.dotsEach||t.items)}},t.prototype.current=function(){var i=this._core.relative(this._core.current());return o.grep(this._pages,o.proxy(function(e,t){return e.start<=i&&e.end>=i},this)).pop()},t.prototype.getPosition=function(e){var t,i,n=this._core.settings;return"page"==n.slideBy?(t=o.inArray(this.current(),this._pages),i=this._pages.length,e?++t:--t,t=this._pages[(t%i+i)%i].start):(t=this._core.relative(this._core.current()),i=this._core.items().length,e?t+=n.slideBy:t-=n.slideBy),t},t.prototype.next=function(e){o.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},t.prototype.prev=function(e){o.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},t.prototype.to=function(e,t,i){!i&&this._pages.length?(i=this._pages.length,o.proxy(this._overrides.to,this._core)(this._pages[(e%i+i)%i].start,t)):o.proxy(this._overrides.to,this._core)(e,t)},o.fn.owlCarousel.Constructor.Plugins.Navigation=t}(window.Zepto||window.jQuery,(window,document)),function(n,o){"use strict";function t(e){this._core=e,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":n.proxy(function(e){e.namespace&&"URLHash"===this._core.settings.startPosition&&n(o).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(e){var t;!e.namespace||(t=n(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"))&&(this._hashes[t]=e.content)},this),"changed.owl.carousel":n.proxy(function(e){var i;e.namespace&&"position"===e.property.name&&(i=this._core.items(this._core.relative(this._core.current())),(e=n.map(this._hashes,function(e,t){return e===i?t:null}).join())&&o.location.hash.slice(1)!==e&&(o.location.hash=e))},this)},this._core.options=n.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers),n(o).on("hashchange.owl.navigation",n.proxy(function(e){var t=o.location.hash.substring(1),i=this._core.$stage.children(),t=this._hashes[t]&&i.index(this._hashes[t]);void 0!==t&&t!==this._core.current()&&this._core.to(this._core.relative(t),!1,!0)},this))}t.Defaults={URLhashListener:!1},t.prototype.destroy=function(){var e,t;for(e in n(o).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},n.fn.owlCarousel.Constructor.Plugins.Hash=t}(window.Zepto||window.jQuery,window,document),function(o){var s=o("<support>").get(0).style,r="Webkit Moz O ms".split(" "),e={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},t=function(){return!!a("transform")},i=function(){return!!a("perspective")},n=function(){return!!a("animation")};function a(e,i){var n=!1,t=e.charAt(0).toUpperCase()+e.slice(1);return o.each((e+" "+r.join(t+" ")+t).split(" "),function(e,t){if(void 0!==s[t])return n=!i||t,!1}),n}function l(e){return a(e,!0)}!function(){return!!a("transition")}()||(o.support.transition=new String(l("transition")),o.support.transition.end=e.transition.end[o.support.transition]),n()&&(o.support.animation=new String(l("animation")),o.support.animation.end=e.animation.end[o.support.animation]),t()&&(o.support.transform=new String(l("transform")),o.support.transform3d=i())}(window.Zepto||window.jQuery,(window,document)),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.L={})}(this,function(e){"use strict";var t=Object.freeze;function l(e){for(var t,i,n=1,o=arguments.length;n<o;n++)for(t in i=arguments[n])e[t]=i[t];return e}Object.freeze=function(e){return e};var s=Object.create||function(e){return i.prototype=e,new i};function i(){}function S(e,t){var i=Array.prototype.slice;if(e.bind)return e.bind.apply(e,i.call(arguments,1));var n=i.call(arguments,2);return function(){return e.apply(t,n.length?n.concat(i.call(arguments)):arguments)}}var n=0;function k(e){return e._leaflet_id=e._leaflet_id||++n,e._leaflet_id}function o(e,t,i){var n,o,s,r=function(){n=!1,o&&(s.apply(i,o),o=!1)};return s=function(){n?o=arguments:(e.apply(i,arguments),setTimeout(r,t),n=!0)}}function r(e,t,i){var n=t[1],o=t[0],t=n-o;return e===n&&i?e:((e-o)%t+t)%t+o}function a(){return!1}function c(e,t){t=Math.pow(10,void 0===t?6:t);return Math.round(e*t)/t}function u(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return u(e).split(/\s+/)}function h(e,t){for(var i in e.hasOwnProperty("options")||(e.options=e.options?s(e.options):{}),t)e.options[i]=t[i];return e.options}function p(e,t,i){var n,o=[];for(n in e)o.push(encodeURIComponent(i?n.toUpperCase():n)+"="+encodeURIComponent(e[n]));return(t&&-1!==t.indexOf("?")?"&":"?")+o.join("&")}var f=/\{ *([\w_-]+) *\}/g;function m(e,i){return e.replace(f,function(e,t){t=i[t];if(void 0===t)throw new Error("No value provided for variable "+e);return t="function"==typeof t?t(i):t})}var g=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function v(e,t){for(var i=0;i<e.length;i++)if(e[i]===t)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var b=0;function w(e){var t=+new Date,i=Math.max(0,16-(t-b));return b=t+i,window.setTimeout(e,i)}var x=window.requestAnimationFrame||_("RequestAnimationFrame")||w,T=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function C(e,t,i){if(!i||x!==w)return x.call(window,S(e,t));e.call(t)}function E(e){e&&T.call(window,e)}var P=(Object.freeze||Object)({freeze:t,extend:l,create:s,bind:S,lastId:n,stamp:k,throttle:o,wrapNum:r,falseFn:a,formatNum:c,trim:u,splitWords:d,setOptions:h,getParamString:p,template:m,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:x,cancelFn:T,requestAnimFrame:C,cancelAnimFrame:E});function A(){}A.extend=function(e){function t(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var i,n=t.__super__=this.prototype,o=s(n);for(i in(o.constructor=t).prototype=o,this)this.hasOwnProperty(i)&&"prototype"!==i&&"__super__"!==i&&(t[i]=this[i]);return e.statics&&(l(t,e.statics),delete e.statics),e.includes&&(function(e){if("undefined"!=typeof L&&L&&L.Mixin){e=g(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(e.includes),l.apply(null,[o].concat(e.includes)),delete e.includes),o.options&&(e.options=l(s(o.options),e.options)),l(o,e),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=o._initHooks.length;e<t;e++)o._initHooks[e].call(this)}},t},A.include=function(e){return l(this.prototype,e),this},A.mergeOptions=function(e){return l(this.prototype.options,e),this},A.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),i="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var M={on:function(e,t,i){if("object"==typeof e)for(var n in e)this._on(n,e[n],t);else for(var o=0,s=(e=d(e)).length;o<s;o++)this._on(e[o],t,i);return this},off:function(e,t,i){if(e)if("object"==typeof e)for(var n in e)this._off(n,e[n],t);else for(var o=0,s=(e=d(e)).length;o<s;o++)this._off(e[o],t,i);else delete this._events;return this},_on:function(e,t,i){this._events=this._events||{};var n=this._events[e];n||(this._events[e]=n=[]);for(var e={fn:t,ctx:i=i===this?void 0:i},o=n,s=0,r=o.length;s<r;s++)if(o[s].fn===t&&o[s].ctx===i)return;o.push(e)},_off:function(e,t,i){var n,o,s;if(this._events&&(n=this._events[e]))if(t){if(i===this&&(i=void 0),n)for(o=0,s=n.length;o<s;o++){var r=n[o];if(r.ctx===i&&r.fn===t)return r.fn=a,this._firingCount&&(this._events[e]=n=n.slice()),void n.splice(o,1)}}else{for(o=0,s=n.length;o<s;o++)n[o].fn=a;delete this._events[e]}},fire:function(e,t,i){if(!this.listens(e,i))return this;var n=l({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var o=this._events[e];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,r=o.length;s<r;s++){var a=o[s];a.fn.call(a.ctx||this,n)}this._firingCount--}}return i&&this._propagateEvent(n),this},listens:function(e,t){var i=this._events&&this._events[e];if(i&&i.length)return!0;if(t)for(var n in this._eventParents)if(this._eventParents[n].listens(e,t))return!0;return!1},once:function(e,t,i){if("object"==typeof e){for(var n in e)this.once(n,e[n],t);return this}var o=S(function(){this.off(e,t,i).off(e,o,i)},this);return this.on(e,t,i).on(e,o,i)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[k(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[k(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,l({layer:e.target,propagatedFrom:e.target},e),!0)}};M.addEventListener=M.on,M.removeEventListener=M.clearAllEventListeners=M.off,M.addOneTimeEventListener=M.once,M.fireEvent=M.fire,M.hasEventListeners=M.listens;var O=A.extend(M);function I(e,t,i){this.x=i?Math.round(e):e,this.y=i?Math.round(t):t}var z=Math.trunc||function(e){return 0<e?Math.floor(e):Math.ceil(e)};function D(e,t,i){return e instanceof I?e:g(e)?new I(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new I(e.x,e.y):new I(e,t,i)}function N(e,t){if(e)for(var i=t?[e,t]:e,n=0,o=i.length;n<o;n++)this.extend(i[n])}function B(e,t){return!e||e instanceof N?e:new N(e,t)}function $(e,t){if(e)for(var i=t?[e,t]:e,n=0,o=i.length;n<o;n++)this.extend(i[n])}function j(e,t){return e instanceof $?e:new $(e,t)}function R(e,t,i){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==i&&(this.alt=+i)}function H(e,t,i){return e instanceof R?e:g(e)&&"object"!=typeof e[0]?3===e.length?new R(e[0],e[1],e[2]):2===e.length?new R(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new R(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new R(e,t,i)}I.prototype={clone:function(){return new I(this.x,this.y)},add:function(e){return this.clone()._add(D(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(D(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new I(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new I(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(e){var t=(e=D(e)).x-this.x,e=e.y-this.y;return Math.sqrt(t*t+e*e)},equals:function(e){return(e=D(e)).x===this.x&&e.y===this.y},contains:function(e){return e=D(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},N.prototype={extend:function(e){return e=D(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new I(this.min.x,this.max.y)},getTopRight:function(){return new I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,i;return(e=("number"==typeof e[0]||e instanceof I?D:B)(e))instanceof N?(t=e.min,i=e.max):t=i=e,t.x>=this.min.x&&i.x<=this.max.x&&t.y>=this.min.y&&i.y<=this.max.y},intersects:function(e){e=B(e);var t=this.min,i=this.max,n=e.min,o=e.max,e=o.x>=t.x&&n.x<=i.x,i=o.y>=t.y&&n.y<=i.y;return e&&i},overlaps:function(e){e=B(e);var t=this.min,i=this.max,n=e.min,o=e.max,e=o.x>t.x&&n.x<i.x,i=o.y>t.y&&n.y<i.y;return e&&i},isValid:function(){return!(!this.min||!this.max)}},$.prototype={extend:function(e){var t,i,n=this._southWest,o=this._northEast;if(e instanceof R)i=t=e;else{if(!(e instanceof $))return e?this.extend(H(e)||j(e)):this;if(t=e._southWest,i=e._northEast,!t||!i)return this}return n||o?(n.lat=Math.min(t.lat,n.lat),n.lng=Math.min(t.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new R(t.lat,t.lng),this._northEast=new R(i.lat,i.lng)),this},pad:function(e){var t=this._southWest,i=this._northEast,n=Math.abs(t.lat-i.lat)*e,e=Math.abs(t.lng-i.lng)*e;return new $(new R(t.lat-n,t.lng-e),new R(i.lat+n,i.lng+e))},getCenter:function(){return new R((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e=("number"==typeof e[0]||e instanceof R||"lat"in e?H:j)(e);var t,i,n=this._southWest,o=this._northEast;return e instanceof $?(t=e.getSouthWest(),i=e.getNorthEast()):t=i=e,t.lat>=n.lat&&i.lat<=o.lat&&t.lng>=n.lng&&i.lng<=o.lng},intersects:function(e){e=j(e);var t=this._southWest,i=this._northEast,n=e.getSouthWest(),o=e.getNorthEast(),e=o.lat>=t.lat&&n.lat<=i.lat,i=o.lng>=t.lng&&n.lng<=i.lng;return e&&i},overlaps:function(e){e=j(e);var t=this._southWest,i=this._northEast,n=e.getSouthWest(),o=e.getNorthEast(),e=o.lat>t.lat&&n.lat<i.lat,i=o.lng>t.lng&&n.lng<i.lng;return e&&i},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=j(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}};var F={latLngToPoint:function(e,t){e=this.projection.project(e),t=this.scale(t);return this.transformation._transform(e,t)},pointToLatLng:function(e,t){t=this.scale(t),t=this.transformation.untransform(e,t);return this.projection.unproject(t)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,e=this.scale(e);return new N(this.transformation.transform(t.min,e),this.transformation.transform(t.max,e))},infinite:!(R.prototype={equals:function(e,t){return!!e&&(e=H(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+c(this.lat,e)+", "+c(this.lng,e)+")"},distanceTo:function(e){return q.distance(this,H(e))},wrap:function(){return q.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,e=t/Math.cos(Math.PI/180*this.lat);return j([this.lat-t,this.lng-e],[this.lat+t,this.lng+e])},clone:function(){return new R(this.lat,this.lng,this.alt)}}),wrapLatLng:function(e){var t=this.wrapLng?r(e.lng,this.wrapLng,!0):e.lng;return new R(this.wrapLat?r(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),i=this.wrapLatLng(t),n=t.lat-i.lat,t=t.lng-i.lng;if(0==n&&0==t)return e;i=e.getSouthWest(),e=e.getNorthEast();return new $(new R(i.lat-n,i.lng-t),new R(e.lat-n,e.lng-t))}},q=l({},F,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var i=Math.PI/180,n=e.lat*i,o=t.lat*i,s=Math.sin((t.lat-e.lat)*i/2),i=Math.sin((t.lng-e.lng)*i/2),i=s*s+Math.cos(n)*Math.cos(o)*i*i,i=2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i));return this.R*i}}),W={R:6378137,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,i=this.MAX_LATITUDE,i=Math.max(Math.min(i,e.lat),-i),i=Math.sin(i*t);return new I(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new R((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:new N([-(ye=6378137*Math.PI),-ye],[ye,ye])};function U(e,t,i,n){if(g(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=i,this._d=n}function V(e,t,i,n){return new U(e,t,i,n)}U.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return e.x=(t=t||1)*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return new I((e.x/(t=t||1)-this._b)/this._a,(e.y/t-this._d)/this._c)}};var G=l({},q,{code:"EPSG:3857",projection:W,transformation:V(_e=.5/(Math.PI*W.R),.5,-_e,.5)}),Z=l({},G,{code:"EPSG:900913"});function Y(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function X(e,t){for(var i,n,o,s,r="",a=0,l=e.length;a<l;a++){for(i=0,n=(o=e[a]).length;i<n;i++)r+=(i?"L":"M")+(s=o[i]).x+" "+s.y;r+=t?ke?"z":"x":""}return r||"M0 0"}var K=document.documentElement.style,Q="ActiveXObject"in window,J=Q&&!document.addEventListener,ee="msLaunchUri"in navigator&&!("documentMode"in document),te=Le("webkit"),ie=Le("android"),ne=Le("android 2")||Le("android 3"),oe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),se=ie&&Le("Google")&&oe<537&&!("AudioNode"in window),re=!!window.opera,ae=Le("chrome"),le=Le("gecko")&&!te&&!re&&!Q,ce=!ae&&Le("safari"),ue=Le("phantom"),de="OTransition"in K,he=0===navigator.platform.indexOf("Win"),pe=Q&&"transition"in K,fe="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ne,me="MozPerspective"in K,ge=!window.L_DISABLE_3D&&(pe||fe||me)&&!de&&!ue,ve="undefined"!=typeof orientation||Le("mobile"),ye=ve&&te,_e=ve&&fe,oe=!window.PointerEvent&&window.MSPointerEvent,be=!(te||!window.PointerEvent&&!oe),we=!window.L_NO_TOUCH&&(be||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),xe=ve&&re,K=ve&&le,Te=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Ce=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",a,t),window.removeEventListener("testPassiveEventSupport",a,t)}catch(e){}return e},Se=!!document.createElement("canvas").getContext,ke=!(!document.createElementNS||!Y("svg").createSVGRect),Ee=!ke&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}();function Le(e){return 0<=navigator.userAgent.toLowerCase().indexOf(e)}var re=(Object.freeze||Object)({ie:Q,ielt9:J,edge:ee,webkit:te,android:ie,android23:ne,androidStock:se,opera:re,chrome:ae,gecko:le,safari:ce,phantom:ue,opera12:de,win:he,ie3d:pe,webkit3d:fe,gecko3d:me,any3d:ge,mobile:ve,mobileWebkit:ye,mobileWebkit3d:_e,msPointer:oe,pointer:be,touch:we,mobileOpera:xe,mobileGecko:K,retina:Te,passiveEvents:Ce,canvas:Se,svg:ke,vml:Ee}),Pe=oe?"MSPointerDown":"pointerdown",Ae=oe?"MSPointerMove":"pointermove",Me=oe?"MSPointerUp":"pointerup",Oe=oe?"MSPointerCancel":"pointercancel",Ie=["INPUT","SELECT","OPTION"],ze={},De=!1,Ne=0;function Be(e){ze[e.pointerId]=e,Ne++}function $e(e){ze[e.pointerId]&&(ze[e.pointerId]=e)}function je(e){delete ze[e.pointerId],Ne--}function Re(e,t){for(var i in e.touches=[],ze)e.touches.push(ze[i]);e.changedTouches=[e],t(e)}var He=oe?"MSPointerDown":be?"pointerdown":"touchstart",Fe=oe?"MSPointerUp":be?"pointerup":"touchend",qe="_leaflet_";var We,Ue,Ve,Ge,Ze,Ye,Xe=ht(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ke=ht(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Qe="webkitTransition"===Ke||"OTransition"===Ke?Ke+"End":"transitionend";function Je(e){return"string"==typeof e?document.getElementById(e):e}function et(e,t){var i=e.style[t]||e.currentStyle&&e.currentStyle[t];return"auto"===(i=(!i||"auto"===i)&&document.defaultView?(e=document.defaultView.getComputedStyle(e,null))?e[t]:null:i)?null:i}function tt(e,t,i){e=document.createElement(e);return e.className=t||"",i&&i.appendChild(e),e}function it(e){var t=e.parentNode;t&&t.removeChild(e)}function nt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ot(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function st(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function rt(e,t){if(void 0!==e.classList)return e.classList.contains(t);e=ut(e);return 0<e.length&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e)}function at(e,t){var i;if(void 0!==e.classList)for(var n=d(t),o=0,s=n.length;o<s;o++)e.classList.add(n[o]);else rt(e,t)||ct(e,((i=ut(e))?i+" ":"")+t)}function lt(e,t){void 0!==e.classList?e.classList.remove(t):ct(e,u((" "+ut(e)+" ").replace(" "+t+" "," ")))}function ct(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function ut(e){return void 0===(e=e.correspondingElement?e.correspondingElement:e).className.baseVal?e.className:e.className.baseVal}function dt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&function(e,t){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=e.filters.item(n)}catch(e){if(1===t)return}t=Math.round(100*t),i?(i.Enabled=100!==t,i.Opacity=t):e.style.filter+=" progid:"+n+"(opacity="+t+")"}(e,t)}function ht(e){for(var t=document.documentElement.style,i=0;i<e.length;i++)if(e[i]in t)return e[i];return!1}function pt(e,t,i){t=t||new I(0,0);e.style[Xe]=(pe?"translate("+t.x+"px,"+t.y+"px)":"translate3d("+t.x+"px,"+t.y+"px,0)")+(i?" scale("+i+")":"")}function ft(e,t){e._leaflet_pos=t,ge?pt(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function mt(e){return e._leaflet_pos||new I(0,0)}function gt(){xt(window,"dragstart",At)}function vt(){Ct(window,"dragstart",At)}function yt(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(_t(),Ve=(Ue=e).style.outline,e.style.outline="none",xt(window,"keydown",_t))}function _t(){Ue&&(Ue.style.outline=Ve,Ve=Ue=void 0,Ct(window,"keydown",_t))}function bt(e){for(;!((e=e.parentNode).offsetWidth&&e.offsetHeight||e===document.body););return e}function wt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}Ye="onselectstart"in document?(Ze=function(){xt(window,"selectstart",At)},function(){Ct(window,"selectstart",At)}):(Ge=ht(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Ze=function(){var e;Ge&&(e=document.documentElement.style,We=e[Ge],e[Ge]="none")},function(){Ge&&(document.documentElement.style[Ge]=We,We=void 0)});ue=(Object.freeze||Object)({TRANSFORM:Xe,TRANSITION:Ke,TRANSITION_END:Qe,get:Je,getStyle:et,create:tt,remove:it,empty:nt,toFront:ot,toBack:st,hasClass:rt,addClass:at,removeClass:lt,setClass:ct,getClass:ut,setOpacity:dt,testProp:ht,setTransform:pt,setPosition:ft,getPosition:mt,disableTextSelection:Ze,enableTextSelection:Ye,disableImageDrag:gt,enableImageDrag:vt,preventOutline:yt,restoreOutline:_t,getSizedParentNode:bt,getScale:wt});function xt(e,t,i,n){if("object"==typeof t)for(var o in t)St(e,o,t[o],i);else for(var s=0,r=(t=d(t)).length;s<r;s++)St(e,t[s],i,n);return this}var Tt="_leaflet_events";function Ct(e,t,i,n){if("object"==typeof t)for(var o in t)kt(e,o,t[o],i);else if(t)for(var s=0,r=(t=d(t)).length;s<r;s++)kt(e,t[s],i,n);else{for(var a in e[Tt])kt(e,a,e[Tt][a]);delete e[Tt]}return this}function St(t,e,i,n){var o=e+k(i)+(n?"_"+k(n):"");if(t[Tt]&&t[Tt][o])return this;var s,r,a,l,c,u,d,h,p,f,m,g,v,y,_=function(e){return i.call(n||t,e||window.event)},b=_;function w(e){var t,i;if(be){if(!ee||"mouse"===e.pointerType)return;i=Ne}else i=e.touches.length;1<i||(i=(t=Date.now())-(r||t),a=e.touches?e.touches[0]:e,l=0<i&&i<=250,r=t)}function x(e){if(l&&!a.cancelBubble){if(be){if(!ee||"mouse"===e.pointerType)return;var t,i,n={};for(i in a)t=a[i],n[i]=t&&t.bind?t.bind(a):t;a=n}a.type="dblclick",a.button=0,s(a),r=null}}function T(e){Re(e,p)}function C(e){(e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType||0!==e.buttons)&&Re(e,f)}be&&0===e.indexOf("touch")?(c=t,d=_,h=o,"touchstart"===(u=e)?(m=c,g=d,v=h,y=S(function(e){if("mouse"!==e.pointerType&&e.MSPOINTER_TYPE_MOUSE&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE){if(!(Ie.indexOf(e.target.tagName)<0))return;At(e)}Re(e,g)}),m["_leaflet_touchstart"+v]=y,m.addEventListener(Pe,y,!1),De||(document.documentElement.addEventListener(Pe,Be,!0),document.documentElement.addEventListener(Ae,$e,!0),document.documentElement.addEventListener(Me,je,!0),document.documentElement.addEventListener(Oe,je,!0),De=!0)):"touchmove"===u?(f=d,(y=c)["_leaflet_touchmove"+h]=C,y.addEventListener(Ae,C,!1)):"touchend"===u&&(p=d,(c=c)["_leaflet_touchend"+h]=T,c.addEventListener(Me,T,!1),c.addEventListener(Oe,T,!1))):!we||"dblclick"!==e||be&&ae?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",_,!!Ce&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(_=function(e){e=e||window.event,jt(t,e)&&b(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",_,!1)):("click"===e&&ie&&(_=function(e){!function(e,t){var i=e.timeStamp||e.originalEvent&&e.originalEvent.timeStamp,n=Dt&&i-Dt;if(n&&100<n&&n<500||e.target._simulatedClick&&!e._simulated)return Mt(e);Dt=i,t(e)}(e,b)}),t.addEventListener(e,_,!1)):"attachEvent"in t&&t.attachEvent("on"+e,_):(s=_,l=!1,(c=t)[qe+He+(e=o)]=w,c[qe+Fe+e]=x,c[qe+"dblclick"+e]=s,c.addEventListener(He,w,!!Ce&&{passive:!1}),c.addEventListener(Fe,x,!!Ce&&{passive:!1}),c.addEventListener("dblclick",s,!1)),t[Tt]=t[Tt]||{},t[Tt][o]=_}function kt(e,t,i,n){var o,s,r=t+k(i)+(n?"_"+k(n):""),i=e[Tt]&&e[Tt][r];if(!i)return this;be&&0===t.indexOf("touch")?(s=(o=e)["_leaflet_"+(n=t)+r],"touchstart"===n?o.removeEventListener(Pe,s,!1):"touchmove"===n?o.removeEventListener(Ae,s,!1):"touchend"===n&&(o.removeEventListener(Me,s,!1),o.removeEventListener(Oe,s,!1))):!we||"dblclick"!==t||be&&ae?"removeEventListener"in e?"mousewheel"===t?e.removeEventListener("onwheel"in e?"wheel":"mousewheel",i,!!Ce&&{passive:!1}):e.removeEventListener("mouseenter"===t?"mouseover":"mouseleave"===t?"mouseout":t,i,!1):"detachEvent"in e&&e.detachEvent("on"+t,i):(t=(o=e)[qe+He+(s=r)],i=o[qe+Fe+r],s=o[qe+"dblclick"+r],o.removeEventListener(He,t,!!Ce&&{passive:!1}),o.removeEventListener(Fe,i,!!Ce&&{passive:!1}),ee||o.removeEventListener("dblclick",s,!1)),e[Tt][r]=null}function Et(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,$t(e),this}function Lt(e){return St(e,"mousewheel",Et),this}function Pt(e){return xt(e,"mousedown touchstart dblclick",Et),St(e,"click",Bt),this}function At(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Mt(e){return At(e),Et(e),this}function Ot(e,t){if(!t)return new I(e.clientX,e.clientY);var i=wt(t),n=i.boundingClientRect;return new I((e.clientX-n.left)/i.x-t.clientLeft,(e.clientY-n.top)/i.y-t.clientTop)}var It=he&&ae?2*window.devicePixelRatio:le?window.devicePixelRatio:1;function zt(e){return ee?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/It:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}var Dt,Nt={};function Bt(e){Nt[e.type]=!0}function $t(e){var t=Nt[e.type];return Nt[e.type]=!1,t}function jt(e,t){var i=t.relatedTarget;if(!i)return!0;try{for(;i&&i!==e;)i=i.parentNode}catch(e){return!1}return i!==e}var de=(Object.freeze||Object)({on:xt,off:Ct,stopPropagation:Et,disableScrollPropagation:Lt,disableClickPropagation:Pt,preventDefault:At,stop:Mt,getMousePosition:Ot,getWheelDelta:zt,fakeStop:Bt,skipped:$t,isExternalTarget:jt,addListener:xt,removeListener:Ct}),Rt=O.extend({run:function(e,t,i,n){this.stop(),this._el=e,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=mt(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,i=1e3*this._duration;t<i?this._runFrame(this._easeOut(t/i),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){e=this._startPos.add(this._offset.multiplyBy(e));t&&e._round(),ft(this._el,e),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),Ht=O.extend({options:{crs:G,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=h(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=S(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(H(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ke&&ge&&!xe&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),xt(this._proxy,Qe,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,i){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(H(e),t,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=l({animate:i.animate},i.zoom),i.pan=l({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,i.zoom):this._tryAnimatedPan(e,i.pan))?clearTimeout(this._sizeTimer):this._resetView(e,t),this},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(ge?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(ge?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,i){var n=this.getZoomScale(t),o=this.getSize().divideBy(2),n=(e instanceof I?e:this.latLngToContainerPoint(e)).subtract(o).multiplyBy(1-1/n),n=this.containerPointToLatLng(o.add(n));return this.setView(n,t,{zoom:i})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():j(e);var i=D(t.paddingTopLeft||t.padding||[0,0]),n=D(t.paddingBottomRight||t.padding||[0,0]),o=this.getBoundsZoom(e,!1,i.add(n));if((o="number"==typeof t.maxZoom?Math.min(t.maxZoom,o):o)===1/0)return{center:e.getCenter(),zoom:o};n=n.subtract(i).divideBy(2),i=this.project(e.getSouthWest(),o),e=this.project(e.getNorthEast(),o);return{center:this.unproject(i.add(e).divideBy(2).add(n),o),zoom:o}},fitBounds:function(e,t){if(!(e=j(e)).isValid())throw new Error("Bounds are not valid.");e=this._getBoundsCenterZoom(e,t);return this.setView(e.center,e.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){return t=t||{},(e=D(e).round()).x||e.y?(!0===t.animate||this.getSize().contains(e)?(this._panAnim||(this._panAnim=new Rt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate?(at(this._mapPane,"leaflet-pan-anim"),i=this._getMapPanePos().subtract(e).round(),this._panAnim.run(this._mapPane,i,t.duration||.25,t.easeLinearity)):(this._rawPanBy(e),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this):this.fire("moveend");var i},flyTo:function(n,o,e){if(!1===(e=e||{}).animate||!ge)return this.setView(n,o,e);this._stop();var s=this.project(this.getCenter()),r=this.project(n),t=this.getSize(),a=this._zoom;n=H(n),o=void 0===o?a:o;var l=Math.max(t.x,t.y),i=l*this.getZoomScale(a,o),c=r.distanceTo(s)||1,u=1.42,d=u*u;function h(e){e=(i*i-l*l+(e?-1:1)*d*d*c*c)/(2*(e?i:l)*d*c),e=Math.sqrt(e*e+1)-e;return e<1e-9?-18:Math.log(e)}function p(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}var m=h(0);var g=Date.now(),v=(h(1)-m)/u,y=e.duration?1e3*e.duration:1e3*v*.8;return this._moveStart(!0,e.noMoveStart),function e(){var t=(Date.now()-g)/y,i=(1-Math.pow(1-t,1.5))*v;t<=1?(this._flyToFrame=C(e,this),this._move(this.unproject(s.add(r.subtract(s).multiplyBy((t=i,l*(f(m)*(p(t=m+u*t)/f(t))-p(m))/d/c))),a),this.getScaleZoom(l/(i=i,l*(f(m)/f(m+u*i))),a),{flyTo:!0})):this._move(n,o)._moveEnd(!0)}.call(this),this},flyToBounds:function(e,t){e=this._getBoundsCenterZoom(e,t);return this.flyTo(e.center,e.zoom,t)},setMaxBounds:function(e){return(e=j(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var i=this.getCenter(),e=this._limitCenter(i,this._zoom,j(e));return i.equals(e)||this.panTo(e,t),this._enforcingBounds=!1,this},panInside:function(e,t){var i=D((t=t||{}).paddingTopLeft||t.padding||[0,0]),n=D(t.paddingBottomRight||t.padding||[0,0]),o=this.getCenter(),s=this.project(o),r=this.project(e),a=this.getPixelBounds(),l=a.getSize().divideBy(2),o=B([a.min.add(i),a.max.subtract(n)]);return o.contains(r)||(this._enforcingBounds=!0,e=s.subtract(r),a=D(r.x+e.x,r.y+e.y),(r.x<o.min.x||r.x>o.max.x)&&(a.x=s.x-e.x,0<e.x?a.x+=l.x-i.x:a.x-=l.x-n.x),(r.y<o.min.y||r.y>o.max.y)&&(a.y=s.y-e.y,0<e.y?a.y+=l.y-i.y:a.y-=l.y-n.y),this.panTo(this.unproject(a),t),this._enforcingBounds=!1),this},invalidateSize:function(e){if(!this._loaded)return this;e=l({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=t.divideBy(2).round(),o=i.divideBy(2).round(),o=n.subtract(o);return o.x||o.y?(e.animate&&e.pan?this.panBy(o):(e.pan&&this._rawPanBy(o),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(S(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=l({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=S(this._handleGeolocationResponse,this),i=S(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,i,e):navigator.geolocation.getCurrentPosition(t,i,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t=e.code,e=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(e){var t,i=new R(e.coords.latitude,e.coords.longitude),n=i.toBounds(2*e.coords.accuracy),o=this._locateOptions;o.setView&&(t=this.getBoundsZoom(n),this.setView(i,o.maxZoom?Math.min(t,o.maxZoom):t));var s,r={latlng:i,bounds:n,timestamp:e.timestamp};for(s in e.coords)"number"==typeof e.coords[s]&&(r[s]=e.coords[s]);this.fire("locationfound",r)},addHandler:function(e,t){if(!t)return this;t=this[e]=new t(this);return this._handlers.push(t),this.options[e]&&t.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}for(var e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),it(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)it(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){t=tt("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=t),t},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new $(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,i){e=j(e),i=D(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=e.getNorthWest(),a=e.getSouthEast(),e=this.getSize().subtract(i),i=B(this.project(a,n),this.project(r,n)).getSize(),a=ge?this.options.zoomSnap:1,r=e.x/i.x,i=e.y/i.y,i=t?Math.max(r,i):Math.min(r,i),n=this.getScaleZoom(i,n);return a&&(n=Math.round(n/(a/100))*(a/100),n=t?Math.ceil(n/a)*a:Math.floor(n/a)*a),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new I(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){t=this._getTopLeftPoint(e,t);return new N(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var i=this.options.crs;return t=void 0===t?this._zoom:t,i.scale(e)/i.scale(t)},getScaleZoom:function(e,t){var i=this.options.crs;t=void 0===t?this._zoom:t;t=i.zoom(e*i.scale(t));return isNaN(t)?1/0:t},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(H(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(D(e),t)},layerPointToLatLng:function(e){e=D(e).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(e){return this.project(H(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(H(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(j(e))},distance:function(e,t){return this.options.crs.distance(H(e),H(t))},containerPointToLayerPoint:function(e){return D(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return D(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){e=this.containerPointToLayerPoint(D(e));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(e)))},mouseEventToContainerPoint:function(e){return Ot(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){e=this._container=Je(e);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");xt(e,"scroll",this._onScroll,this),this._containerId=k(e)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&ge,at(e,"leaflet-container"+(we?" leaflet-touch":"")+(Te?" leaflet-retina":"")+(J?" leaflet-oldie":"")+(ce?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=et(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ft(this._mapPane,new I(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(at(e.markerPane,"leaflet-zoom-hide"),at(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){ft(this._mapPane,new I(0,0));var i=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var n=this._zoom!==t;this._moveStart(n,!1)._move(e,t)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,i){void 0===t&&(t=this._zoom);var n=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),(n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){ft(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={};var t=e?Ct:xt;t((this._targets[k(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),ge&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=C(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var i,n=[],o="mouseout"===t||"mouseover"===t,s=e.target||e.srcElement,r=!1;s;){if((i=this._targets[k(s)])&&("click"===t||"preclick"===t)&&!e._simulated&&this._draggableMoved(i)){r=!0;break}if(i&&i.listens(t,!0)){if(o&&!jt(s,e))break;if(n.push(i),o)break}if(s===this._container)break;s=s.parentNode}return n=!(n.length||r||o)&&jt(s,e)?[this]:n},_handleDOMEvent:function(e){var t;this._loaded&&!$t(e)&&("mousedown"!==(t=e.type)&&"keypress"!==t&&"keyup"!==t&&"keydown"!==t||yt(e.target||e.srcElement),this._fireDOMEvent(e,t))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,i){if("click"===e.type&&((o=l({},e)).type="preclick",this._fireDOMEvent(o,o.type,i)),!e._stopped&&(i=(i||[]).concat(this._findEventTargets(e,t))).length){var n=i[0];"contextmenu"===t&&n.listens(t,!0)&&At(e);var o,s={originalEvent:e};"keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type&&(o=n.getLatLng&&(!n._radius||n._radius<=10),s.containerPoint=o?this.latLngToContainerPoint(n.getLatLng()):this.mouseEventToContainerPoint(e),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=o?n.getLatLng():this.layerPointToLatLng(s.layerPoint));for(var r=0;r<i.length;r++)if(i[r].fire(t,s,!0),s.originalEvent._stopped||!1===i[r].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return mt(this._mapPane)||new I(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var i=this.getSize()._divideBy(2);return this.project(e,t)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,i){i=this._getNewPixelOrigin(i,t);return this.project(e,t)._subtract(i)},_latLngBoundsToNewLayerBounds:function(e,t,i){i=this._getNewPixelOrigin(i,t);return B([this.project(e.getSouthWest(),t)._subtract(i),this.project(e.getNorthWest(),t)._subtract(i),this.project(e.getSouthEast(),t)._subtract(i),this.project(e.getNorthEast(),t)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,i){if(!i)return e;var n=this.project(e,t),o=this.getSize().divideBy(2),o=new N(n.subtract(o),n.add(o)),i=this._getBoundsOffset(o,i,t);return i.round().equals([0,0])?e:this.unproject(n.add(i),t)},_limitOffset:function(e,t){if(!t)return e;var i=this.getPixelBounds(),i=new N(i.min.add(e),i.max.add(e));return e.add(this._getBoundsOffset(i,t))},_getBoundsOffset:function(e,t,i){t=B(this.project(t.getNorthEast(),i),this.project(t.getSouthWest(),i)),i=t.min.subtract(e.min),e=t.max.subtract(e.max);return new I(this._rebound(i.x,-e.x),this._rebound(i.y,-e.y))},_rebound:function(e,t){return 0<e+t?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),i=this.getMaxZoom(),n=ge?this.options.zoomSnap:1;return n&&(e=Math.round(e/n)*n),Math.max(t,Math.min(i,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){lt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){e=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(e)||(this.panBy(e,t),0))},_createAnimProxy:function(){var e=this._proxy=tt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(e){var t=Xe,i=this._proxy.style[t];pt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),i===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){it(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();pt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&0<=e.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(t),n=this._getCenterOffset(e)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(n)||(C(function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)},this),0))},_animateZoom:function(e,t,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,at(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:n}),setTimeout(S(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&lt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),C(function(){this._moveEnd(!0)},this))}});function Ft(e){return new qt(e)}var qt=A.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),i=this.getPosition(),e=e._controlCorners[i];return at(t,"leaflet-control"),-1!==i.indexOf("bottom")?e.insertBefore(t,e.firstChild):e.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(it(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(e){this._map&&e&&0<e.screenX&&0<e.screenY&&this._map.getContainer().focus()}});Ht.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var i=this._controlCorners={},n="leaflet-",o=this._controlContainer=tt("div",n+"control-container",this._container);function e(e,t){i[e+t]=tt("div",n+e+" "+n+t,o)}e("top","left"),e("top","right"),e("bottom","left"),e("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)it(this._controlCorners[e]);it(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Wt=qt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,i,n){return i<n?-1:n<i?1:0}},initialize:function(e,t,i){for(var n in h(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[n],n);for(n in t)this._addLayer(t[n],n,!0)},onAdd:function(e){this._initLayout(),this._update(),(this._map=e).on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return qt.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);e=this._getLayer(k(e));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){at(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(at(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):lt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return lt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=tt("div",e),i=this.options.collapsed;t.setAttribute("aria-haspopup",!0),Pt(t),Lt(t);var n=this._section=tt("section",e+"-list");i&&(this._map.on("click",this.collapse,this),ie||xt(t,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=tt("a",e+"-toggle",t);o.href="#",o.title="Layers",we?(xt(o,"click",Mt),xt(o,"click",this.expand,this)):xt(o,"focus",this.expand,this),i||this.expand(),this._baseLayersList=tt("div",e+"-base",n),this._separator=tt("div",e+"-separator",n),this._overlaysList=tt("div",e+"-overlays",n),t.appendChild(n)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&k(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,i){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:i}),this.options.sortLayers&&this._layers.sort(S(function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;nt(this._baseLayersList),nt(this._overlaysList),this._layerControlInputs=[];for(var e,t,i,n=0,o=0;o<this._layers.length;o++)i=this._layers[o],this._addItem(i),t=t||i.overlay,e=e||!i.overlay,n+=i.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(e=e&&1<n)?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(k(e.target)),e=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;e&&this._map.fire(e,t)},_createRadioElement:function(e,t){e='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",t=document.createElement("div");return t.innerHTML=e,t.firstChild},_addItem:function(e){var t,i=document.createElement("label"),n=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=n):t=this._createRadioElement("leaflet-base-layers_"+k(this),n),this._layerControlInputs.push(t),t.layerId=k(e.layer),xt(t,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+e.name;n=document.createElement("div");return i.appendChild(n),n.appendChild(t),n.appendChild(o),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var e,t,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;0<=s;s--)e=i[s],t=this._getLayer(e.layerId).layer,e.checked?n.push(t):e.checked||o.push(t);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;0<=o;o--)e=i[o],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&n<t.options.minZoom||void 0!==t.options.maxZoom&&n>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Ut=qt.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",i=tt("div",t+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,t+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,t+"-out",i,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,i,n,o){n=tt("a",i,n);return n.innerHTML=e,n.href="#",n.title=t,n.setAttribute("role","button"),n.setAttribute("aria-label",t),Pt(n),xt(n,"click",Mt),xt(n,"click",o,this),xt(n,"click",this._refocusOnMap,this),n},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";lt(this._zoomInButton,t),lt(this._zoomOutButton,t),!this._disabled&&e._zoom!==e.getMinZoom()||at(this._zoomOutButton,t),!this._disabled&&e._zoom!==e.getMaxZoom()||at(this._zoomInButton,t)}});Ht.mergeOptions({zoomControl:!0}),Ht.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ut,this.addControl(this.zoomControl))});var Vt=qt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",i=tt("div",t),n=this.options;return this._addScales(n,t+"-line",i),e.on(n.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),i},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,i){e.metric&&(this._mScale=tt("div",t,i)),e.imperial&&(this._iScale=tt("div",t,i))},_update:function(){var e=this._map,t=e.getSize().y/2,t=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(t)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e);this._updateScale(this._mScale,t<1e3?t+" m":t/1e3+" km",t/e)},_updateImperial:function(e){var t,i=3.2808399*e;5280<i?(e=this._getRoundNum(t=i/5280),this._updateScale(this._iScale,e+" mi",e/t)):(t=this._getRoundNum(i),this._updateScale(this._iScale,t+" ft",t/i))},_updateScale:function(e,t,i){e.style.width=Math.round(this.options.maxWidth*i)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),e=e/t;return t*(10<=e?10:5<=e?5:3<=e?3:2<=e?2:1)}}),Gt=qt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(e){h(this,e),this._attributions={}},onAdd:function(e){for(var t in(e.attributionControl=this)._container=tt("div","leaflet-control-attribution"),Pt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),this._container},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e&&(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update()),this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e,t=[];for(e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}}});Ht.mergeOptions({attributionControl:!0}),Ht.addInitHook(function(){this.options.attributionControl&&(new Gt).addTo(this)}),qt.Layers=Wt,qt.Zoom=Ut,qt.Scale=Vt,qt.Attribution=Gt,Ft.layers=function(e,t,i){return new Wt(e,t,i)},Ft.zoom=function(e){return new Ut(e)},Ft.scale=function(e){return new Vt(e)},Ft.attribution=function(e){return new Gt(e)};fe=A.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});fe.addTo=function(e,t){return e.addHandler(t,this),this};var Zt,me={Events:M},Yt=we?"touchstart mousedown":"mousedown",Xt={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},Kt={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Qt=O.extend({options:{clickTolerance:3},initialize:function(e,t,i,n){h(this,n),this._element=e,this._dragStartTarget=t||e,this._preventOutline=i},enable:function(){this._enabled||(xt(this._dragStartTarget,Yt,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Qt._dragging===this&&this.finishDrag(),Ct(this._dragStartTarget,Yt,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){var t,i;e._simulated||!this._enabled||(this._moved=!1,rt(this._element,"leaflet-zoom-anim")||Qt._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||((Qt._dragging=this)._preventOutline&&yt(this._element),gt(),Ze(),this._moving))||(this.fire("down"),t=e.touches?e.touches[0]:e,i=bt(this._element),this._startPoint=new I(t.clientX,t.clientY),this._parentScale=wt(i),xt(document,Kt[e.type],this._onMove,this),xt(document,Xt[e.type],this._onUp,this))},_onMove:function(e){var t;!e._simulated&&this._enabled&&(e.touches&&1<e.touches.length?this._moved=!0:((t=new I((t=e.touches&&1===e.touches.length?e.touches[0]:e).clientX,t.clientY)._subtract(this._startPoint)).x||t.y)&&(Math.abs(t.x)+Math.abs(t.y)<this.options.clickTolerance||(t.x/=this._parentScale.x,t.y/=this._parentScale.y,At(e),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=mt(this._element).subtract(t),at(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),at(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(t),this._moving=!0,E(this._animRequest),this._lastEvent=e,this._animRequest=C(this._updatePosition,this,!0))))},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),ft(this._element,this._newPos),this.fire("drag",e)},_onUp:function(e){!e._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var e in lt(document.body,"leaflet-dragging"),this._lastTarget&&(lt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Kt)Ct(document,Kt[e],this._onMove,this),Ct(document,Xt[e],this._onUp,this);vt(),Ye(),this._moved&&this._moving&&(E(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,Qt._dragging=!1}});function Jt(e,t){if(!t||!e.length)return e.slice();t*=t;return function(e,t){var i=e.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,function e(t,i,n,o,s){for(var r,a,l=0,c=o+1;c<=s-1;c++)l<(a=oi(t[c],t[o],t[s],!0))&&(r=c,l=a);n<l&&(i[r]=1,e(t,i,n,o,r),e(t,i,n,r,s))}(e,n,t,0,i-1);for(var o=[],s=0;s<i;s++)n[s]&&o.push(e[s]);return o}(e=function(e,t){for(var i,n,o,s=[e[0]],r=1,a=0,l=e.length;r<l;r++)o=e[r],t<(n=(i=e[a]).x-o.x)*n+(o=i.y-o.y)*o&&(s.push(e[r]),a=r);return a<l-1&&s.push(e[l-1]),s}(e,t),t)}function ei(e,t,i){return Math.sqrt(oi(e,t,i,!0))}function ti(e,t,i,n,o){var s,r,a,l=n?Zt:ni(e,i),c=ni(t,i);for(Zt=c;;){if(!(l|c))return[e,t];if(l&c)return!1;a=ni(r=ii(e,t,s=l||c,i,o),i),s===l?(e=r,l=a):(t=r,c=a)}}function ii(e,t,i,n,o){var s,r,a=t.x-e.x,l=t.y-e.y,t=n.min,n=n.max;return 8&i?(s=e.x+a*(n.y-e.y)/l,r=n.y):4&i?(s=e.x+a*(t.y-e.y)/l,r=t.y):2&i?(s=n.x,r=e.y+l*(n.x-e.x)/a):1&i&&(s=t.x,r=e.y+l*(t.x-e.x)/a),new I(s,r,o)}function ni(e,t){var i=0;return e.x<t.min.x?i|=1:e.x>t.max.x&&(i|=2),e.y<t.min.y?i|=4:e.y>t.max.y&&(i|=8),i}function oi(e,t,i,n){var o=t.x,s=t.y,r=i.x-o,a=i.y-s,t=r*r+a*a;return 0<t&&(1<(t=((e.x-o)*r+(e.y-s)*a)/t)?(o=i.x,s=i.y):0<t&&(o+=r*t,s+=a*t)),r=e.x-o,a=e.y-s,n?r*r+a*a:new I(o,s)}function si(e){return!g(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function ri(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),si(e)}ye=(Object.freeze||Object)({simplify:Jt,pointToSegmentDistance:ei,closestPointOnSegment:function(e,t,i){return oi(e,t,i)},clipSegment:ti,_getEdgeIntersection:ii,_getBitCode:ni,_sqClosestPointOnSegment:oi,isFlat:si,_flat:ri});function ai(e,t,i){for(var n,o,s,r,a,l,c,u=[1,4,2,8],d=0,h=e.length;d<h;d++)e[d]._code=ni(e[d],t);for(s=0;s<4;s++){for(l=u[s],n=[],d=0,o=(h=e.length)-1;d<h;o=d++)r=e[d],a=e[o],r._code&l?a._code&l||((c=ii(a,r,l,t,i))._code=ni(c,t),n.push(c)):(a._code&l&&((c=ii(a,r,l,t,i))._code=ni(c,t),n.push(c)),n.push(r));e=n}return e}var _e=(Object.freeze||Object)({clipPolygon:ai}),K={project:function(e){return new I(e.lng,e.lat)},unproject:function(e){return new R(e.y,e.x)},bounds:new N([-180,-90],[180,90])},oe={R:6378137,R_MINOR:6356752.314245179,bounds:new N([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,i=this.R,n=e.lat*t,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),o=s*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-o)/(1+o),s/2),n=-i*Math.log(Math.max(s,1e-10));return new I(e.lng*t*i,n)},unproject:function(e){for(var t,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-e.y/n),a=Math.PI/2-2*Math.atan(r),l=0,c=.1;l<15&&1e-7<Math.abs(c);l++)t=s*Math.sin(a),t=Math.pow((1-t)/(1+t),s/2),a+=c=Math.PI/2-2*Math.atan(r*t)-a;return new R(a*i,e.x*i/n)}},he=(Object.freeze||Object)({LonLat:K,Mercator:oe,SphericalMercator:W}),M=l({},q,{code:"EPSG:3395",projection:oe,transformation:V(le=.5/(Math.PI*oe.R),.5,-le,.5)}),li=l({},q,{code:"EPSG:4326",projection:K,transformation:V(1/180,1,-1/180,.5)}),W=l({},F,{projection:K,transformation:V(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var i=t.lng-e.lng,e=t.lat-e.lat;return Math.sqrt(i*i+e*e)},infinite:!0});F.Earth=q,F.EPSG3395=M,F.EPSG3857=G,F.EPSG900913=Z,F.EPSG4326=li,F.Simple=W;var ci=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[k(e)]=this},removeInteractiveTarget:function(e){return delete this._map._targets[k(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t,i=e.target;i.hasLayer(this)&&(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents&&(t=this.getEvents(),i.on(t,this),this.once("remove",function(){i.off(t,this)},this)),this.onAdd(i),this.getAttribution&&i.attributionControl&&i.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),i.fire("layeradd",{layer:this}))}});Ht.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=k(e);return this._layers[t]||((this._layers[t]=e)._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=k(e);return this._layers[t]&&(this._loaded&&e.onRemove(this),e.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(e.getAttribution()),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null),this},hasLayer:function(e){return!!e&&k(e)in this._layers},eachLayer:function(e,t){for(var i in this._layers)e.call(t,this._layers[i]);return this},_addLayers:function(e){for(var t=0,i=(e=e?g(e)?e:[e]:[]).length;t<i;t++)this.addLayer(e[t])},_addZoomLimit:function(e){!isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[k(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){e=k(e);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var e,t=1/0,i=-1/0,n=this._getZoomSpan();for(e in this._zoomBoundLayers)var o=this._zoomBoundLayers[e].options,t=void 0===o.minZoom?t:Math.min(t,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom);this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ui=ci.extend({initialize:function(e,t){var i,n;if(h(this,t),this._layers={},e)for(i=0,n=e.length;i<n;i++)this.addLayer(e[i])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){e=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(e){return!!e&&(e in this._layers||this.getLayerId(e)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,i,n=Array.prototype.slice.call(arguments,1);for(t in this._layers)(i=this._layers[t])[e]&&i[e].apply(i,n);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var i in this._layers)e.call(t,this._layers[i]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:k}),di=ui.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),ui.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?((e=e in this._layers?this._layers[e]:e).removeEventParent(this),ui.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e,t=new $;for(e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),hi=A.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var i=this._getIconUrl(e);if(!i){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}t=this._createImg(i,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(t,e),t},_setIconStyles:function(e,t){var i=this.options,n=i[t+"Size"],o=D(n="number"==typeof n?[n,n]:n),n=D("shadow"===t&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(i.className||""),n&&(e.style.marginLeft=-n.x+"px",e.style.marginTop=-n.y+"px"),o&&(e.style.width=o.x+"px",e.style.height=o.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Te&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}}),pi=hi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return pi.imagePath||(pi.imagePath=this._detectIconPath()),(this.options.imagePath||pi.imagePath)+hi.prototype._getIconUrl.call(this,e)},_detectIconPath:function(){var e=tt("div","leaflet-default-icon-path",document.body),t=et(e,"background-image")||et(e,"backgroundImage");return document.body.removeChild(e),null===t||0!==t.indexOf("url")?"":t.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),fi=fe.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new Qt(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),at(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&lt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,i=t._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=mt(t._icon),r=i.getPixelBounds(),a=i.getPixelOrigin(),o=B(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o));o.contains(s)||(n=D((Math.max(o.max.x,s.x)-o.max.x)/(r.max.x-o.max.x)-(Math.min(o.min.x,s.x)-o.min.x)/(r.min.x-o.min.x),(Math.max(o.max.y,s.y)-o.max.y)/(r.max.y-o.max.y)-(Math.min(o.min.y,s.y)-o.min.y)/(r.min.y-o.min.y)).multiplyBy(n),i.panBy(n,{animate:!1}),this._draggable._newPos._add(n),this._draggable._startPos._add(n),ft(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=C(this._adjustPan.bind(this,e)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,i=t._shadow,n=mt(t._icon),o=t._map.layerPointToLatLng(n);i&&ft(i,n),t._latlng=o,e.latlng=o,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),mi=ci.extend({options:{icon:new pi,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){h(this,t),this._latlng=H(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=H(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var e;return this._icon&&this._map&&(e=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(e)),this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=e.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,e.title&&(i.title=e.title),"IMG"===i.tagName&&(i.alt=e.alt||"")),at(i,t),e.keyboard&&(i.tabIndex="0"),this._icon=i,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=e.icon.createShadow(this._shadow),i=!1;o!==this._shadow&&(this._removeShadow(),i=!0),o&&(at(o,t),o.alt=""),this._shadow=o,e.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&i&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),it(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&it(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&ft(this._icon,e),this._shadow&&ft(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(e)},_initInteraction:function(){var e;this.options.interactive&&(at(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),fi)&&(e=this.options.draggable,this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new fi(this),e&&this.dragging.enable())},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&dt(this._icon,e),this._shadow&&dt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),gi=ci.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return h(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&e.hasOwnProperty("weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),vi=gi.extend({options:{fill:!0,radius:10},initialize:function(e,t){h(this,t),this._latlng=H(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=H(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return gi.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,i=this._clickTolerance(),i=[e+i,t+i];this._pxBounds=new N(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),yi=vi.extend({initialize:function(e,t,i){if(h(this,t="number"==typeof t?l({},i,{radius:t}):t),this._latlng=H(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new $(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:gi.prototype.setStyle,_project:function(){var e,t,i,n,o,s=this._latlng.lng,r=this._latlng.lat,a=this._map,l=a.options.crs;l.distance===q.distance?(o=Math.PI/180,e=this._mRadius/q.R/o,t=a.project([r+e,s]),n=a.project([r-e,s]),i=t.add(n).divideBy(2),n=a.unproject(i).lat,o=Math.acos((Math.cos(e*o)-Math.sin(r*o)*Math.sin(n*o))/(Math.cos(r*o)*Math.cos(n*o)))/o,!isNaN(o)&&0!==o||(o=e/Math.cos(Math.PI/180*r)),this._point=i.subtract(a.getPixelOrigin()),this._radius=isNaN(o)?0:i.x-a.project([n,s-o]).x,this._radiusY=i.y-t.y):(l=l.unproject(l.project(this._latlng).subtract([this._mRadius,0])),this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(l).x),this._updateBounds()}}),_i=gi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){h(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,i,n=1/0,o=null,s=oi,r=0,a=this._parts.length;r<a;r++)for(var l=this._parts[r],c=1,u=l.length;c<u;c++){var d=s(e,t=l[c-1],i=l[c],!0);d<n&&(n=d,o=s(e,t,i))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,i,n,o,s,r=this._rings[0],a=r.length;if(!a)return null;for(t=e=0;e<a-1;e++)t+=r[e].distanceTo(r[e+1])/2;if(0===t)return this._map.layerPointToLatLng(r[0]);for(i=e=0;e<a-1;e++)if(n=r[e],o=r[e+1],t<(i+=s=n.distanceTo(o)))return this._map.layerPointToLatLng([o.x-(s=(i-t)/s)*(o.x-n.x),o.y-s*(o.y-n.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=H(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new $,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return si(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],i=si(e),n=0,o=e.length;n<o;n++)i?(t[n]=H(e[n]),this._bounds.extend(t[n])):t[n]=this._convertLatLngs(e[n]);return t},_project:function(){var e=new N;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),e=new I(e,e);this._pxBounds=new N([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(e,t,i){var n,o,s=e[0]instanceof R,r=e.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(e[n]),i.extend(o[n]);t.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(e[n],t,i)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var t,i,n,o,s,r=this._parts,a=t=0,l=this._rings.length;t<l;t++)for(i=0,n=(s=this._rings[t]).length;i<n-1;i++)(o=ti(s[i],s[i+1],e,i,!0))&&(r[a]=r[a]||[],r[a].push(o[0]),o[1]===s[i+1]&&i!==n-2||(r[a].push(o[1]),a++))},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,i=0,n=e.length;i<n;i++)e[i]=Jt(e[i],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var i,n,o,s,r,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,s=this._parts.length;i<s;i++)for(n=0,o=(r=(a=this._parts[i]).length)-1;n<r;o=n++)if((t||0!==n)&&ei(e,a[o],a[n])<=l)return!0;return!1}});_i._flat=ri;var bi=_i.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,i,n,o,s,r,a,l,c=this._rings[0],u=c.length;if(!u)return null;for(e=s=r=a=0,t=u-1;e<u;t=e++)i=c[e],n=c[t],o=i.y*n.x-n.y*i.x,r+=(i.x+n.x)*o,a+=(i.y+n.y)*o,s+=3*o;return l=0===s?c[0]:[r/s,a/s],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=_i.prototype._convertLatLngs.call(this,e),e=t.length;return 2<=e&&t[0]instanceof R&&t[0].equals(t[e-1])&&t.pop(),t},_setLatLngs:function(e){_i.prototype._setLatLngs.call(this,e),si(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(si(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,t=new I(t,t),e=new N(e.min.subtract(t),e.max.add(t));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var i,n=0,o=this._rings.length;n<o;n++)(i=ai(this._rings[n],e,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,i,n,o,s,r,a,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(l=(t=this._parts[o]).length)-1;s<l;r=s++)i=t[s],n=t[r],i.y>e.y!=n.y>e.y&&e.x<(n.x-i.x)*(e.y-i.y)/(n.y-i.y)+i.x&&(c=!c);return c||_i.prototype._containsPoint.call(this,e,!0)}}),wi=di.extend({initialize:function(e,t){h(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,i,n,o=g(e)?e:e.features;if(o){for(t=0,i=o.length;t<i;t++)((n=o[t]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(e))return this;var r=xi(e,s);return r?(r.feature=Pi(e),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(e,r),this.addLayer(r)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=l({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});function xi(e,t){var i,n,o,s,r="Feature"===e.type?e.geometry:e,a=r?r.coordinates:null,l=[],c=t&&t.pointToLayer,u=t&&t.coordsToLatLng||Ci;if(!a&&!r)return null;switch(r.type){case"Point":return Ti(c,e,i=u(a),t);case"MultiPoint":for(o=0,s=a.length;o<s;o++)i=u(a[o]),l.push(Ti(c,e,i,t));return new di(l);case"LineString":case"MultiLineString":return n=Si(a,"LineString"===r.type?0:1,u),new _i(n,t);case"Polygon":case"MultiPolygon":return n=Si(a,"Polygon"===r.type?1:2,u),new bi(n,t);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var d=xi({geometry:r.geometries[o],type:"Feature",properties:e.properties},t);d&&l.push(d)}return new di(l);default:throw new Error("Invalid GeoJSON object.")}}function Ti(e,t,i,n){return e?e(t,i):new mi(i,n&&n.markersInheritOptions&&n)}function Ci(e){return new R(e[1],e[0],e[2])}function Si(e,t,i){for(var n,o=[],s=0,r=e.length;s<r;s++)n=t?Si(e[s],t-1,i):(i||Ci)(e[s]),o.push(n);return o}function ki(e,t){return t="number"==typeof t?t:6,void 0!==e.alt?[c(e.lng,t),c(e.lat,t),c(e.alt,t)]:[c(e.lng,t),c(e.lat,t)]}function Ei(e,t,i,n){for(var o=[],s=0,r=e.length;s<r;s++)o.push(t?Ei(e[s],t-1,i,n):ki(e[s],n));return!t&&i&&o.push(o[0]),o}function Li(e,t){return e.feature?l({},e.feature,{geometry:t}):Pi(t)}function Pi(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}oe={toGeoJSON:function(e){return Li(this,{type:"Point",coordinates:ki(this.getLatLng(),e)})}};function Ai(e,t){return new wi(e,t)}mi.include(oe),yi.include(oe),vi.include(oe),_i.include({toGeoJSON:function(e){var t=!si(this._latlngs);return Li(this,{type:(t?"Multi":"")+"LineString",coordinates:Ei(this._latlngs,t?1:0,!1,e)})}}),bi.include({toGeoJSON:function(e){var t=!si(this._latlngs),i=t&&!si(this._latlngs[0]),e=Ei(this._latlngs,i?2:t?1:0,!0,e);return Li(this,{type:(i?"Multi":"")+"Polygon",coordinates:e=!t?[e]:e})}}),ui.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(e){i.push(e.toGeoJSON(t).geometry.coordinates)}),Li(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer(function(e){e.toGeoJSON&&(e=e.toGeoJSON(t),i?n.push(e.geometry):"FeatureCollection"===(e=Pi(e)).type?n.push.apply(n,e.features):n.push(e))}),i?Li(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var le=Ai,Mi=ci.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,i){this._url=e,this._bounds=j(t),h(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(at(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){it(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&ot(this._image),this},bringToBack:function(){return this._map&&st(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=j(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:tt("img");at(t,"leaflet-image-layer"),this._zoomAnimated&&at(t,"leaflet-zoom-animated"),this.options.className&&at(t,this.options.className),t.onselectstart=a,t.onmousemove=a,t.onload=S(this.fire,this,"load"),t.onerror=S(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;pt(this._image,e,t)},_reset:function(){var e=this._image,t=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=t.getSize();ft(e,t.min),e.style.width=i.x+"px",e.style.height=i.y+"px"},_updateOpacity:function(){dt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)}}),Oi=Mi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:tt("video");if(at(t,"leaflet-image-layer"),this._zoomAnimated&&at(t,"leaflet-zoom-animated"),this.options.className&&at(t,this.options.className),t.onselectstart=a,t.onmousemove=a,t.onloadeddata=S(this.fire,this,"load"),e){for(var i=t.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=0<i.length?n:[t.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&t.style.hasOwnProperty("objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop;for(var s=0;s<this._url.length;s++){var r=tt("source");r.src=this._url[s],t.appendChild(r)}}}}),Ii=Mi.extend({_initImage:function(){var e=this._image=this._url;at(e,"leaflet-image-layer"),this._zoomAnimated&&at(e,"leaflet-zoom-animated"),this.options.className&&at(e,this.options.className),e.onselectstart=a,e.onmousemove=a}}),zi=ci.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(e,t){h(this,e),this._source=t},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&dt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&dt(this._container,1),this.bringToFront()},onRemove:function(e){e._fadeAnimated?(dt(this._container,0),this._removeTimeout=setTimeout(S(it,void 0,this._container),200)):it(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=H(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ot(this._container),this},bringToBack:function(){return this._map&&st(this._container),this},_prepareOpen:function(e,t,i){if(t instanceof ci||(i=t,t=e),t instanceof di)for(var n in e._layers){t=e._layers[n];break}if(!i)if(t.getCenter)i=t.getCenter();else{if(!t.getLatLng)throw new Error("Unable to get source layer LatLng.");i=t.getLatLng()}return this._source=t,this.update(),i},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){var e,t,i;this._map&&(e=this._map.latLngToLayerPoint(this._latlng),i=D(this.options.offset),t=this._getAnchor(),this._zoomAnimated?ft(this._container,e.add(t)):i=i.add(e).add(t),t=this._containerBottom=-i.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+i.x,this._container.style.bottom=t+"px",this._container.style.left=i+"px")},_getAnchor:function(){return[0,0]}}),Di=zi.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return e.openPopup(this),this},onAdd:function(e){zi.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof gi||this._source.on("preclick",Et))},onRemove:function(e){zi.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof gi||this._source.off("preclick",Et))},getEvents:function(){var e=zi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this._close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var e="leaflet-popup",t=this._container=tt("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=tt("div",e+"-content-wrapper",t);this._contentNode=tt("div",e+"-content",i),Pt(i),Lt(this._contentNode),xt(i,"contextmenu",Et),this._tipContainer=tt("div",e+"-tip-container",t),this._tip=tt("div",e+"-tip",this._tipContainer),this.options.closeButton&&((t=this._closeButton=tt("a",e+"-close-button",t)).href="#close",t.innerHTML="&#215;",xt(t,"click",this._onCloseButtonClick,this))},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var i=e.offsetWidth,i=Math.min(i,this.options.maxWidth);i=Math.max(i,this.options.minWidth),t.width=i+1+"px",t.whiteSpace="",t.height="";var n=e.offsetHeight,o=this.options.maxHeight,i="leaflet-popup-scrolled";o&&o<n?(t.height=o+"px",at(e,i)):lt(e,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),e=this._getAnchor();ft(this._container,t.add(e))},_adjustPan:function(){var e,t,i,n,o,s,r,a;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),e=this._map,o=parseInt(et(this._container,"marginBottom"),10)||0,t=this._container.offsetHeight+o,a=this._containerWidth,(s=new I(this._containerLeft,-t-this._containerBottom))._add(mt(this._container)),i=e.layerPointToContainerPoint(s),r=D(this.options.autoPanPadding),n=D(this.options.autoPanPaddingTopLeft||r),o=D(this.options.autoPanPaddingBottomRight||r),s=e.getSize(),r=0,i.x+a+o.x>s.x&&(r=i.x+a-s.x+o.x),i.x-r-n.x<(a=0)&&(r=i.x-n.x),i.y+t+o.y>s.y&&(a=i.y+t-s.y+o.y),i.y-a-n.y<0&&(a=i.y-n.y),(r||a)&&e.fire("autopanstart").panBy([r,a]))},_onCloseButtonClick:function(e){this._close(),Mt(e)},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ht.mergeOptions({closePopupOnClick:!0}),Ht.include({openPopup:function(e,t,i){return e instanceof Di||(e=new Di(i).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=e,this.addLayer(e))},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&this.removeLayer(e),this}}),ci.include({bindPopup:function(e,t){return e instanceof Di?(h(e,t),(this._popup=e)._source=this):(this._popup&&!t||(this._popup=new Di(t,this)),this._popup.setContent(e)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e,t){return this._popup&&this._map&&(t=this._popup._prepareOpen(this,e,t),this._map.openPopup(this._popup,t)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(e){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(e)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){var t=e.layer||e.target;this._popup&&this._map&&(Mt(e),t instanceof gi?this.openPopup(e.layer||e.target,e.latlng):this._map.hasLayer(this._popup)&&this._popup._source===t?this.closePopup():this.openPopup(t,e.latlng))},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Ni=zi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(e){zi.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(e){zi.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var e=zi.prototype.getEvents.call(this);return we&&!this.options.permanent&&(e.preclick=this._close),e},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=tt("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t=this._map,i=this._container,n=t.latLngToContainerPoint(t.getCenter()),o=t.layerPointToContainerPoint(e),s=this.options.direction,r=i.offsetWidth,a=i.offsetHeight,l=D(this.options.offset),t=this._getAnchor();e="top"===s?e.add(D(-r/2+l.x,-a+l.y+t.y,!0)):"bottom"===s?e.subtract(D(r/2-l.x,-l.y,!0)):"center"===s?e.subtract(D(r/2+l.x,a/2-t.y+l.y,!0)):"right"===s||"auto"===s&&o.x<n.x?(s="right",e.add(D(l.x+t.x,t.y-a/2+l.y,!0))):(s="left",e.subtract(D(r+t.x-l.x,a/2-t.y-l.y,!0))),lt(i,"leaflet-tooltip-right"),lt(i,"leaflet-tooltip-left"),lt(i,"leaflet-tooltip-top"),lt(i,"leaflet-tooltip-bottom"),at(i,"leaflet-tooltip-"+s),ft(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&dt(this._container,e)},_animateZoom:function(e){e=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(e)},_getAnchor:function(){return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ht.include({openTooltip:function(e,t,i){return e instanceof Ni||(e=new Ni(i).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:this.addLayer(e)},closeTooltip:function(e){return e&&this.removeLayer(e),this}}),ci.include({bindTooltip:function(e,t){return e instanceof Ni?(h(e,t),(this._tooltip=e)._source=this):(this._tooltip&&!t||(this._tooltip=new Ni(t,this)),this._tooltip.setContent(e)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){var t,i;!e&&this._tooltipHandlersAdded||(t=e?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),we&&(i.click=this._openTooltip)),this[t](i),this._tooltipHandlersAdded=!e)},openTooltip:function(e,t){return this._tooltip&&this._map&&(t=this._tooltip._prepareOpen(this,e,t),this._map.openTooltip(this._tooltip,t),this._tooltip.options.interactive&&this._tooltip._container&&(at(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(lt(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(e){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(e)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){var t=e.layer||e.target;this._tooltip&&this._map&&this.openTooltip(t,this._tooltip.options.sticky?e.latlng:void 0)},_moveTooltip:function(e){var t=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(e=this._map.mouseEventToContainerPoint(e.originalEvent),e=this._map.containerPointToLayerPoint(e),t=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(t)}});var Bi=hi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),e=this.options;return e.html instanceof Element?(nt(t),t.appendChild(e.html)):t.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=D(e.bgPos),t.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});hi.Default=pi;var $i=ci.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ve,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){h(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),it(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ot(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(st(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof I?e:new I(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,i=this.getPane().children,n=-e(-1/0,1/0),o=0,s=i.length;o<s;o++)t=i[o].style.zIndex,i[o]!==this._container&&t&&(n=e(n,+t));isFinite(n)&&(this.options.zIndex=n+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!J){dt(this._container,this.options.opacity);var e,t=+new Date,i=!1,n=!1;for(e in this._tiles){var o,s=this._tiles[e];s.current&&s.loaded&&(o=Math.min(1,(t-s.loaded)/200),dt(s.el,o),o<1?i=!0:(s.active?n=!0:this._onOpaqueTile(s),s.active=!0))}n&&!this._noPrune&&this._pruneTiles(),i&&(E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:a,_initContainer:function(){this._container||(this._container=tt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var i in this._levels)this._levels[i].el.children.length||i===e?(this._levels[i].el.style.zIndex=t-Math.abs(e-i),this._onUpdateLevel(i)):(it(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[e],o=this._map;return n||((n=this._levels[e]={}).el=tt("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=t,n.origin=o.project(o.unproject(o.getPixelOrigin()),e).round(),n.zoom=e,this._setZoomTransform(n,o.getCenter(),o.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:a,_onRemoveLevel:a,_onCreateLevel:a,_pruneTiles:function(){if(this._map){var e,t,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)(t=this._tiles[e]).current&&!t.active&&(i=t.coords,this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2));for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)it(this._levels[e].el),this._onRemoveLevel(e),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,i,n){var o=Math.floor(e/2),e=Math.floor(t/2),t=i-1,i=new I(+o,+e);i.z=+t;i=this._tileCoordsToKey(i),i=this._tiles[i];return i&&i.active?i.retain=!0:(i&&i.loaded&&(i.retain=!0),n<t&&this._retainParent(o,e,t,n))},_retainChildren:function(e,t,i,n){for(var o=2*e;o<2*e+2;o++)for(var s=2*t;s<2*t+2;s++){var r=new I(o,s);r.z=i+1;r=this._tileCoordsToKey(r),r=this._tiles[r];r&&r.active?r.retain=!0:(r&&r.loaded&&(r.retain=!0),i+1<n&&this._retainChildren(o,s,i+1,n))}},_resetView:function(e){e=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,i,n){var o=this._clampZoom(Math.round(t));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(e),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var i in this._levels)this._setZoomTransform(this._levels[i],e,t)},_setZoomTransform:function(e,t,i){var n=this._map.getZoomScale(i,e.zoom),i=e.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(t,i)).round();ge?pt(e.el,i,n):ft(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],n).x/i.x),Math.ceil(e.project([0,t.wrapLng[1]],n).x/i.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],n).y/i.x),Math.ceil(e.project([t.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,i=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),i=t.getZoomScale(i,this._tileZoom),e=t.project(e,this._tileZoom).floor(),i=t.getSize().divideBy(2*i);return new N(e.subtract(i),e.add(i))},_update:function(e){var t=this._map;if(t){var i=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var n,t=this._getTiledPixelBounds(e),o=this._pxBoundsToTileRange(t),s=o.getCenter(),r=[],t=this.options.keepBuffer,a=new N(o.getBottomLeft().subtract([t,-t]),o.getTopRight().add([t,-t]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(n in this._tiles){var l=this._tiles[n].coords;l.z===this._tileZoom&&a.contains(new I(l.x,l.y))||(this._tiles[n].current=!1)}if(1<Math.abs(i-this._tileZoom))this._setView(e,i);else{for(var c=o.min.y;c<=o.max.y;c++)for(var u=o.min.x;u<=o.max.x;u++){var d,h=new I(u,c);h.z=this._tileZoom,this._isValidTile(h)&&((d=this._tiles[this._tileCoordsToKey(h)])?d.current=!0:r.push(h))}if(r.sort(function(e,t){return e.distanceTo(s)-t.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));for(var p=document.createDocumentFragment(),u=0;u<r.length;u++)this._addTile(r[u],p);this._level.el.appendChild(p)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var i=this._globalTileRange;if(!t.wrapLng&&(e.x<i.min.x||e.x>i.max.x)||!t.wrapLat&&(e.y<i.min.y||e.y>i.max.y))return!1}if(!this.options.bounds)return!0;e=this._tileCoordsToBounds(e);return j(this.options.bounds).overlaps(e)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,i=this.getTileSize(),n=e.scaleBy(i),i=n.add(i);return[t.unproject(n,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){e=this._tileCoordsToNwSe(e),e=new $(e[0],e[1]);return e=!this.options.noWrap?this._map.wrapLatLngBounds(e):e},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),e=new I(+t[0],+t[1]);return e.z=+t[2],e},_removeTile:function(e){var t=this._tiles[e];t&&(it(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){at(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=a,e.onmousemove=a,J&&this.options.opacity<1&&dt(e,this.options.opacity),ie&&!ne&&(e.style.WebkitBackfaceVisibility="hidden")},_addTile:function(e,t){var i=this._getTilePos(e),n=this._tileCoordsToKey(e),o=this.createTile(this._wrapCoords(e),S(this._tileReady,this,e));this._initTile(o),this.createTile.length<2&&C(S(this._tileReady,this,e,null,o)),ft(o,i),this._tiles[n]={el:o,coords:e,current:!0},t.appendChild(o),this.fire("tileloadstart",{tile:o,coords:e})},_tileReady:function(e,t,i){t&&this.fire("tileerror",{error:t,tile:i,coords:e});var n=this._tileCoordsToKey(e);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(dt(i.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),t||(at(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),J||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(S(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new I(this._wrapX?r(e.x,this._wrapX):e.x,this._wrapY?r(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new N(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),ji=$i.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(e,t){this._url=e,(t=h(this,t)).detectRetina&&Te&&0<t.maxZoom&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),ie||this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var i=document.createElement("img");return xt(i,"load",S(this._tileOnLoad,this,t,i)),xt(i,"error",S(this._tileOnError,this,t,i)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i.alt="",i.setAttribute("role","presentation"),i.src=this.getTileUrl(e),i},getTileUrl:function(e){var t={r:Te?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(e=this._globalTileRange.max.y-e.y,this.options.tms&&(t.y=e),t["-y"]=e),m(this._url,l(t,this.options))},_tileOnLoad:function(e,t){J?setTimeout(S(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,i){var n=this.options.errorTileUrl;n&&t.getAttribute("src")!==n&&(t.src=n),e(i,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return(e=this.options.zoomReverse?t-e:e)+this.options.zoomOffset},_getSubdomain:function(e){e=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var e,t;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=a,t.onerror=a,t.complete||(t.src=y,it(t),delete this._tiles[e]))},_removeTile:function(e){var t=this._tiles[e];if(t)return se||t.el.setAttribute("src",y),$i.prototype._removeTile.call(this,e)},_tileReady:function(e,t,i){if(this._map&&(!i||i.getAttribute("src")!==y))return $i.prototype._tileReady.call(this,e,t,i)}});function Ri(e,t){return new ji(e,t)}var Hi=ji.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var i,n=l({},this.defaultWmsParams);for(i in t)i in this.options||(n[i]=t[i]);var o=(t=h(this,t)).detectRetina&&Te?2:1,e=this.getTileSize();n.width=e.x*o,n.height=e.y*o,this.wmsParams=n},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[t]=this._crs.code,ji.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),i=this._crs,i=B(i.project(t[0]),i.project(t[1])),t=i.min,i=i.max,i=(1.3<=this._wmsVersion&&this._crs===li?[t.y,t.x,i.y,i.x]:[t.x,t.y,i.x,i.y]).join(","),e=ji.prototype.getTileUrl.call(this,e);return e+p(this.wmsParams,e,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+i},setParams:function(e,t){return l(this.wmsParams,e),t||this.redraw(),this}});ji.WMS=Hi,Ri.wms=function(e,t){return new Hi(e,t)};var Fi=ci.extend({options:{padding:.1,tolerance:0},initialize:function(e){h(this,e),k(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&at(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var i=this._map.getZoomScale(t,this._zoom),n=mt(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,t),s=this._map.project(e,t).subtract(s),s=o.multiplyBy(-i).add(n).add(o).subtract(s);ge?pt(this._container,s,i):ft(this._container,s)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),i=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new N(i,i.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),qi=Fi.extend({getEvents:function(){var e=Fi.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Fi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");xt(e,"mousemove",this._onMouseMove,this),xt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),xt(e,"mouseout",this._handleMouseOut,this),this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,it(this._container),Ct(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){var e,t,i,n;this._map._animatingZoom&&this._bounds||(Fi.prototype._update.call(this),e=this._bounds,t=this._container,i=e.getSize(),n=Te?2:1,ft(t,e.min),t.width=n*i.x,t.height=n*i.y,t.style.width=i.x+"px",t.style.height=i.y+"px",Te&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update"))},_reset:function(){Fi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e);e=(this._layers[k(e)]=e)._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,i=t.next,t=t.prev;i?i.prev=t:this._drawLast=t,t?t.next=i:this._drawFirst=i,delete e._order,delete this._layers[k(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){for(var t,i=e.options.dashArray.split(/[, ]+/),n=[],o=0;o<i.length;o++){if(t=Number(i[o]),isNaN(t))return;n.push(t)}e.options._dashArray=n}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(e){var t;e._pxBounds&&(t=(e.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new N,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t])))},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e,t=this._redrawBounds;t?(e=t.getSize(),this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)):this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var e,t,i=this._redrawBounds;this._ctx.save(),i&&(t=i.getSize(),this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,t.x,t.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)e=n.layer,(!i||e._pxBounds&&e._pxBounds.intersects(i))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var i,n,o,s,r=e._parts,a=r.length,l=this._ctx;if(a){for(l.beginPath(),i=0;i<a;i++){for(n=0,o=r[i].length;n<o;n++)s=r[i][n],l[n?"lineTo":"moveTo"](s.x,s.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){var t,i,n,o;this._drawing&&!e._empty()&&(t=e._point,i=this._ctx,n=Math.max(Math.round(e._radius),1),1!=(o=(Math.max(Math.round(e._radiusY),1)||n)/n)&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(t.x,t.y/o,n,0,2*Math.PI,!1),1!=o&&i.restore(),this._fillStroke(i,e))},_fillStroke:function(e,t){var i=t.options;i.fill&&(e.globalAlpha=i.fillOpacity,e.fillStyle=i.fillColor||i.color,e.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=i.opacity,e.lineWidth=i.weight,e.strokeStyle=i.color,e.lineCap=i.lineCap,e.lineJoin=i.lineJoin,e.stroke())},_onClick:function(e){for(var t,i,n=this._map.mouseEventToLayerPoint(e),o=this._drawFirst;o;o=o.next)(t=o.layer).options.interactive&&t._containsPoint(n)&&!this._map._draggableMoved(t)&&(i=t);i&&(Bt(e),this._fireEvent([i],e))},_onMouseMove:function(e){var t;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(t=this._map.mouseEventToLayerPoint(e),this._handleMouseHover(e,t))},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(lt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(t)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(e),n&&(at(this._container,"leaflet-interactive"),this._fireEvent([n],e,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(L.bind(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,t,i){this._map._fireDOMEvent(t,i||t.type,e)},_bringToFront:function(e){var t,i,n=e._order;n&&(t=n.next,i=n.prev,t&&((t.prev=i)?i.next=t:t&&(this._drawFirst=t),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(e)))},_bringToBack:function(e){var t,i,n=e._order;n&&(t=n.next,(i=n.prev)&&((i.next=t)?t.prev=i:i&&(this._drawLast=i),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(e)))}});function Wi(e){return Se?new qi(e):null}var Ui=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),K={_initContainer:function(){this._container=tt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Fi.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Ui("shape");at(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Ui("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[k(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;it(t),e.removeInteractiveTarget(t),delete this._layers[k(e)]},_updateStyle:function(e){var t=e._stroke,i=e._fill,n=e.options,o=e._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(t=t||(e._stroke=Ui("stroke")),o.appendChild(t),t.weight=n.weight+"px",t.color=n.color,t.opacity=n.opacity,n.dashArray?t.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=n.lineCap.replace("butt","flat"),t.joinstyle=n.lineJoin):t&&(o.removeChild(t),e._stroke=null),n.fill?(i=i||(e._fill=Ui("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),i=Math.round(e._radius),n=Math.round(e._radiusY||i);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+i+","+n+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ot(e._container)},_bringToBack:function(e){st(e._container)}},Vi=Ee?Ui:Y,Gi=Fi.extend({getEvents:function(){var e=Fi.prototype.getEvents.call(this);return e.zoomstart=this._onZoomStart,e},_initContainer:function(){this._container=Vi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){it(this._container),Ct(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){var e,t,i;this._map._animatingZoom&&this._bounds||(Fi.prototype._update.call(this),t=(e=this._bounds).getSize(),i=this._container,this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,i.setAttribute("width",t.x),i.setAttribute("height",t.y)),ft(i,e.min),i.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update"))},_initPath:function(e){var t=e._path=Vi("path");e.options.className&&at(t,e.options.className),e.options.interactive&&at(t,"leaflet-interactive"),this._updateStyle(e),this._layers[k(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){it(e._path),e.removeInteractiveTarget(e._path),delete this._layers[k(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,e=e.options;t&&(e.stroke?(t.setAttribute("stroke",e.color),t.setAttribute("stroke-opacity",e.opacity),t.setAttribute("stroke-width",e.weight),t.setAttribute("stroke-linecap",e.lineCap),t.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?t.setAttribute("stroke-dasharray",e.dashArray):t.removeAttribute("stroke-dasharray"),e.dashOffset?t.setAttribute("stroke-dashoffset",e.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),e.fill?(t.setAttribute("fill",e.fillColor||e.color),t.setAttribute("fill-opacity",e.fillOpacity),t.setAttribute("fill-rule",e.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,X(e._parts,t))},_updateCircle:function(e){var t=e._point,i=Math.max(Math.round(e._radius),1),n="a"+i+","+(Math.max(Math.round(e._radiusY),1)||i)+" 0 1,0 ",i=e._empty()?"M0 0":"M"+(t.x-i)+","+t.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(e,i)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){ot(e._path)},_bringToBack:function(e){st(e._path)}});function Zi(e){return ke||Ee?new Gi(e):null}Ee&&Gi.include(K),Ht.include({getRenderer:function(e){e=(e=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Wi(e)||Zi(e)}});var Yi=bi.extend({initialize:function(e,t){bi.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=j(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});Gi.create=Vi,Gi.pointsToPath=X,wi.geometryToLayer=xi,wi.coordsToLatLng=Ci,wi.coordsToLatLngs=Si,wi.latLngToCoords=ki,wi.latLngsToCoords=Ei,wi.getFeature=Li,wi.asFeature=Pi,Ht.mergeOptions({boxZoom:!0});M=fe.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){xt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ct(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){it(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),Ze(),gt(),this._startPoint=this._map.mouseEventToContainerPoint(e),xt(document,{contextmenu:Mt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=tt("div","leaflet-zoom-box",this._container),at(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new N(this._point,this._startPoint),e=t.getSize();ft(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(it(this._box),lt(this._container,"leaflet-crosshair")),Ye(),vt(),Ct(document,{contextmenu:Mt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){1!==e.which&&1!==e.button||(this._finish(),!this._moved)||(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(S(this._resetState,this),0),e=new $(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e}))},_onKeyDown:function(e){27===e.keyCode&&this._finish()}});Ht.addInitHook("addHandler","boxZoom",M),Ht.mergeOptions({doubleClickZoom:!0});G=fe.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,i=t.getZoom(),n=t.options.zoomDelta,n=e.originalEvent.shiftKey?i-n:i+n;"center"===t.options.doubleClickZoom?t.setZoom(n):t.setZoomAround(e.containerPoint,n)}});Ht.addInitHook("addHandler","doubleClickZoom",G),Ht.mergeOptions({dragging:!0,inertia:!ne,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});Z=fe.extend({addHooks:function(){var e;this._draggable||(e=this._map,this._draggable=new Qt(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))),at(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){lt(this._map._container,"leaflet-grab"),lt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e,t=this._map;t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(e=j(this._map.options.maxBounds),this._offsetLimit=B(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){var t,i;this._map.options.inertia&&(t=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(i),this._times.push(t),this._prunePositions(t)),this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;1<this._positions.length&&50<e-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){var e,t;this._viscosity&&this._offsetLimit&&(e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit,e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e))},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-t+i)%e+t-i,t=(n+t+i)%e-t-i,t=Math.abs(o+i)<Math.abs(t+i)?o:t;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd:function(e){var t,i,n,o,s=this._map,r=s.options,a=!r.inertia||this._times.length<2;s.fire("dragend",e),a?s.fire("moveend"):(this._prunePositions(+new Date),i=this._lastPos.subtract(this._positions[0]),e=(this._lastTime-this._times[0])/1e3,t=r.easeLinearity,i=(a=i.multiplyBy(t/e)).distanceTo([0,0]),e=Math.min(r.inertiaMaxSpeed,i),i=a.multiplyBy(e/i),n=e/(r.inertiaDeceleration*t),(o=i.multiplyBy(-n/2).round()).x||o.y?(o=s._limitOffset(o,s.options.maxBounds),C(function(){s.panBy(o,{duration:n,easeLinearity:t,noMoveStart:!0,animate:!0})})):s.fire("moveend"))}});Ht.addInitHook("addHandler","dragging",Z),Ht.mergeOptions({keyboard:!0,keyboardPanDelta:80});W=fe.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),xt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ct(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var e,t,i;this._focused||(e=document.body,i=document.documentElement,t=e.scrollTop||i.scrollTop,i=e.scrollLeft||i.scrollLeft,this._map._container.focus(),window.scrollTo(i,t))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){for(var t=this._panKeys={},i=this.keyCodes,n=0,o=i.left.length;n<o;n++)t[i.left[n]]=[-1*e,0];for(n=0,o=i.right.length;n<o;n++)t[i.right[n]]=[e,0];for(n=0,o=i.down.length;n<o;n++)t[i.down[n]]=[0,e];for(n=0,o=i.up.length;n<o;n++)t[i.up[n]]=[0,-1*e]},_setZoomDelta:function(e){for(var t=this._zoomKeys={},i=this.keyCodes,n=0,o=i.zoomIn.length;n<o;n++)t[i.zoomIn[n]]=e;for(n=0,o=i.zoomOut.length;n<o;n++)t[i.zoomOut[n]]=-e},_addHooks:function(){xt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ct(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,i=e.keyCode,n=this._map;if(i in this._panKeys)n._panAnim&&n._panAnim._inProgress||(t=this._panKeys[i],e.shiftKey&&(t=D(t).multiplyBy(3)),n.panBy(t),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Mt(e)}}});Ht.addInitHook("addHandler","keyboard",W),Ht.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});oe=fe.extend({addHooks:function(){xt(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ct(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=zt(e),i=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);i=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(S(this._performZoom,this),i),Mt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),i=this._map.options.zoomSnap||0;e._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),n=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,n=i?Math.ceil(n/i)*i:n,n=e._limitZoom(t+(0<this._delta?n:-n))-t;this._delta=0,this._startTime=null,n&&("center"===e.options.scrollWheelZoom?e.setZoom(t+n):e.setZoomAround(this._lastMousePos,t+n))}});Ht.addInitHook("addHandler","scrollWheelZoom",oe),Ht.mergeOptions({tap:!0,tapTolerance:15});ve=fe.extend({addHooks:function(){xt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ct(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(At(e),this._fireClick=!0,1<e.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var t=e.touches[0],e=t.target;this._startPos=this._newPos=new I(t.clientX,t.clientY),e.tagName&&"a"===e.tagName.toLowerCase()&&at(e,"leaflet-active"),this._holdTimeout=setTimeout(S(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",t))},this),1e3),this._simulateEvent("mousedown",t),xt(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(e){var t;clearTimeout(this._holdTimeout),Ct(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&e&&e.changedTouches&&((e=(t=e.changedTouches[0]).target)&&e.tagName&&"a"===e.tagName.toLowerCase()&&lt(e,"leaflet-active"),this._simulateEvent("mouseup",t),this._isTapValid()&&this._simulateEvent("click",t))},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){e=e.touches[0];this._newPos=new I(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(e,t){var i=document.createEvent("MouseEvents");i._simulated=!0,t.target._simulatedClick=!0,i.initMouseEvent(e,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(i)}});we&&!be&&Ht.addInitHook("addHandler","tap",ve),Ht.mergeOptions({touchZoom:we&&!ne,bounceAtZoomLimits:!0});K=fe.extend({addHooks:function(){at(this._map._container,"leaflet-touch-zoom"),xt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){lt(this._map._container,"leaflet-touch-zoom"),Ct(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t,i,n=this._map;!e.touches||2!==e.touches.length||n._animatingZoom||this._zooming||(t=n.mouseEventToContainerPoint(e.touches[0]),i=n.mouseEventToContainerPoint(e.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(t.add(i)._divideBy(2))),this._startDist=t.distanceTo(i),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),xt(document,"touchmove",this._onTouchMove,this),xt(document,"touchend",this._onTouchEnd,this),At(e))},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,i=t.mouseEventToContainerPoint(e.touches[0]),n=t.mouseEventToContainerPoint(e.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=t.getScaleZoom(o,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&o<1||this._zoom>t.getMaxZoom()&&1<o)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{n=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1==o&&0===n.x&&0===n.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(n),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest);t=S(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=C(t,this,!0),At(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),Ct(document,"touchmove",this._onTouchMove),Ct(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ht.addInitHook("addHandler","touchZoom",K),Ht.BoxZoom=M,Ht.DoubleClickZoom=G,Ht.Drag=Z,Ht.Keyboard=W,Ht.ScrollWheelZoom=oe,Ht.Tap=ve,Ht.TouchZoom=K,Object.freeze=t,e.version="1.6.0+HEAD.0c81bdf",e.Control=qt,e.control=Ft,e.Browser=re,e.Evented=O,e.Mixin=me,e.Util=P,e.Class=A,e.Handler=fe,e.extend=l,e.bind=S,e.stamp=k,e.setOptions=h,e.DomEvent=de,e.DomUtil=ue,e.PosAnimation=Rt,e.Draggable=Qt,e.LineUtil=ye,e.PolyUtil=_e,e.Point=I,e.point=D,e.Bounds=N,e.bounds=B,e.Transformation=U,e.transformation=V,e.Projection=he,e.LatLng=R,e.latLng=H,e.LatLngBounds=$,e.latLngBounds=j,e.CRS=F,e.GeoJSON=wi,e.geoJSON=Ai,e.geoJson=le,e.Layer=ci,e.LayerGroup=ui,e.layerGroup=function(e,t){return new ui(e,t)},e.FeatureGroup=di,e.featureGroup=function(e){return new di(e)},e.ImageOverlay=Mi,e.imageOverlay=function(e,t,i){return new Mi(e,t,i)},e.VideoOverlay=Oi,e.videoOverlay=function(e,t,i){return new Oi(e,t,i)},e.SVGOverlay=Ii,e.svgOverlay=function(e,t,i){return new Ii(e,t,i)},e.DivOverlay=zi,e.Popup=Di,e.popup=function(e,t){return new Di(e,t)},e.Tooltip=Ni,e.tooltip=function(e,t){return new Ni(e,t)},e.Icon=hi,e.icon=function(e){return new hi(e)},e.DivIcon=Bi,e.divIcon=function(e){return new Bi(e)},e.Marker=mi,e.marker=function(e,t){return new mi(e,t)},e.TileLayer=ji,e.tileLayer=Ri,e.GridLayer=$i,e.gridLayer=function(e){return new $i(e)},e.SVG=Gi,e.svg=Zi,e.Renderer=Fi,e.Canvas=qi,e.canvas=Wi,e.Path=gi,e.CircleMarker=vi,e.circleMarker=function(e,t){return new vi(e,t)},e.Circle=yi,e.circle=function(e,t,i){return new yi(e,t,i)},e.Polyline=_i,e.polyline=function(e,t){return new _i(e,t)},e.Polygon=bi,e.polygon=function(e,t){return new bi(e,t)},e.Rectangle=Yi,e.rectangle=function(e,t){return new Yi(e,t)},e.Map=Ht,e.map=function(e,t){return new Ht(e,t)};var Xi=window.L;e.noConflict=function(){return window.L=Xi,this},window.L=e}),function(s){"use strict";s.fn.fitVids=function(e){var t,i,o={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(t=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("div")).innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',t.appendChild(i.childNodes[1])),e&&s.extend(o,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];o.customSelector&&e.push(o.customSelector);var n=".fitvidsignore";o.ignore&&(n=n+", "+o.ignore);e=s(this).find(e.join(","));(e=(e=e.not("object object")).not(n)).each(function(){var e,t,i=s(this);0<i.parents(n).length||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length||(i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16)),e=("object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height())/(isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10)),i.attr("name")||(t="fitvid"+s.fn.fitVids._count,i.attr("name",t),s.fn.fitVids._count++),i.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),i.removeAttr("height").removeAttr("width"))})})},s.fn.fitVids._count=0}(window.jQuery||window.Zepto),"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):e.Plyr=t()}(this,function(){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function e(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=[],n=!0,o=!1,s=void 0;try{for(var r,a=e[Symbol.iterator]();!(n=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(e){o=!0,s=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw s}}return i}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function t(e){return null!=e?e.constructor:null}function i(e,t){return Boolean(e&&t&&e instanceof t)}function r(e){return a(e)||(u(e)||h(e)||p(e))&&!e.length||c(e)&&!Object.keys(e).length}var a=function(e){return null==e},c=function(e){return t(e)===Object},u=function(e){return t(e)===String},h=function(e){return Array.isArray(e)},p=function(e){return i(e,NodeList)},f={nullOrUndefined:a,object:c,number:function(e){return t(e)===Number&&!Number.isNaN(e)},string:u,boolean:function(e){return t(e)===Boolean},function:function(e){return t(e)===Function},array:h,weakMap:function(e){return i(e,WeakMap)},nodeList:p,element:function(e){return i(e,Element)},textNode:function(e){return t(e)===Text},event:function(e){return i(e,Event)},keyboardEvent:function(e){return i(e,KeyboardEvent)},cue:function(e){return i(e,window.TextTrackCue)||i(e,window.VTTCue)},track:function(e){return i(e,TextTrack)||!a(e)&&u(e.kind)},url:function(e){if(i(e,window.URL))return!0;if(!u(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!r(new URL(t).hostname)}catch(e){return!1}},empty:r},m=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}();function g(t,e,i){var n,o=this,s=3<arguments.length&&void 0!==arguments[3]&&arguments[3],r=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],a=5<arguments.length&&void 0!==arguments[5]&&arguments[5];t&&"addEventListener"in t&&!f.empty(e)&&f.function(i)&&(e=e.split(" "),n=m?{passive:r,capture:a}:a,e.forEach(function(e){o&&o.eventListeners&&s&&o.eventListeners.push({element:t,type:e,callback:i,options:n}),t[s?"addEventListener":"removeEventListener"](e,i,n)}))}function v(e){g.call(this,e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",2<arguments.length?arguments[2]:void 0,!0,!(3<arguments.length&&void 0!==arguments[3])||arguments[3],4<arguments.length&&void 0!==arguments[4]&&arguments[4])}function y(e){g.call(this,e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",2<arguments.length?arguments[2]:void 0,!1,!(3<arguments.length&&void 0!==arguments[3])||arguments[3],4<arguments.length&&void 0!==arguments[4]&&arguments[4])}function _(o){var s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length?arguments[2]:void 0,a=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],l=4<arguments.length&&void 0!==arguments[4]&&arguments[4];g.call(this,o,s,function e(){y(o,s,e,a,l);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];r.apply(this,i)},!0,a,l)}function b(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};f.element(e)&&!f.empty(t)&&(n=new CustomEvent(t,{bubbles:i,detail:Object.assign({},n,{plyr:this})}),e.dispatchEvent(n))}function w(e,o){e=e.length?e:[e];Array.from(e).reverse().forEach(function(e,t){var i=0<t?o.cloneNode(!0):o,n=e.parentNode,t=e.nextSibling;i.appendChild(e),t?n.insertBefore(i,t):n.appendChild(i)})}function x(i,e){f.element(i)&&!f.empty(e)&&Object.entries(e).filter(function(e){e=d(e,2)[1];return!f.nullOrUndefined(e)}).forEach(function(e){var t=d(e,2),e=t[0],t=t[1];return i.setAttribute(e,t)})}function T(e,t,i){e=document.createElement(e);return f.object(t)&&x(e,t),f.string(i)&&(e.innerText=i),e}function C(e,t,i,n){f.element(t)&&t.appendChild(T(e,i,n))}function S(e){f.nodeList(e)||f.array(e)?Array.from(e).forEach(S):f.element(e)&&f.element(e.parentNode)&&e.parentNode.removeChild(e)}function k(e){if(f.element(e))for(var t=e.childNodes.length;0<t;)e.removeChild(e.lastChild),--t}function E(e,t){return f.element(t)&&f.element(t.parentNode)&&f.element(e)?(t.parentNode.replaceChild(e,t),e):null}function L(e,t){if(!f.string(e)||f.empty(e))return{};var s={},r=t;return e.split(",").forEach(function(e){var t=e.trim(),i=t.replace(".",""),e=t.replace(/[[\]]/g,"").split("="),n=e[0],o=1<e.length?e[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":f.object(r)&&f.string(r.class)&&(r.class+=" ".concat(i)),s.class=i;break;case"#":s.id=t.replace("#","");break;case"[":s[n]=o}}),s}function P(e,t){f.element(e)&&((t=!f.boolean(t=t)?!e.hidden:t)?e.setAttribute("hidden",""):e.removeAttribute("hidden"))}function A(e,t,i){if(f.nodeList(e))return Array.from(e).map(function(e){return A(e,t,i)});if(f.element(e)){var n=void 0!==i?i?"add":"remove":"toggle";return e.classList[n](t),e.classList.contains(t)}return!1}function M(e,t){return f.element(e)&&e.classList.contains(t)}function O(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function I(e){return this.elements.container.querySelectorAll(e)}function z(e){return this.elements.container.querySelector(e)}function D(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];f.element(e)&&(e.focus({preventScroll:!0}),t&&A(e,this.config.classNames.tabFocus))}var N,B,$=(N=document.createElement("span"),B={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},Ie=Object.keys(B).find(function(e){return void 0!==N.style[e]}),!!f.string(Ie)&&B[Ie]);function j(e){setTimeout(function(){try{P(e,!0),e.offsetHeight,P(e,!1)}catch(e){}},0)}var R={isIE:!!document.documentMode,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)},H={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},F={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,i){i=R.isIPhone&&i&&F.playsinline,t=F[e]||"html5"!==t;return{api:t,ui:t&&F.rangeInput&&("video"!==e||!R.isIPhone||i)}},pip:!(R.isIPhone||!f.function(T("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||T("video").disablePictureInPicture)),airplay:f.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){var t=d(e.split("/"),1)[0],i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(H).includes(i)&&(i+='; codecs="'.concat(H[e],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:((Ie=document.createElement("input")).type="range")===Ie.type,touch:"ontouchstart"in document.documentElement,transitions:!1!==$,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},q={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(e){return F.mime.call(t,e.getAttribute("type"))}):[]},getQualityOptions:function(){return q.getSources.call(this).map(function(e){return Number(e.getAttribute("size"))}).filter(Boolean)},extend:function(){var r;this.isHTML5&&(r=this,Object.defineProperty(r.media,"quality",{get:function(){var e=q.getSources.call(r).find(function(e){return e.getAttribute("src")===r.source});return e&&Number(e.getAttribute("size"))},set:function(t){var e,i,n,o,s=q.getSources.call(r).find(function(e){return Number(e.getAttribute("size"))===t});s&&(o=r.media,e=o.currentTime,i=o.paused,n=o.preload,o=o.readyState,r.media.src=s.getAttribute("src"),"none"===n&&!o||(r.once("loadedmetadata",function(){r.currentTime=e,i||r.play()}),r.media.load()),b.call(r,r.media,"qualitychange",!1,{quality:t}))}}))},cancelRequests:function(){this.isHTML5&&(S(q.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function W(i){return f.array(i)?i.filter(function(e,t){return i.indexOf(e)===t}):i}function U(e,t){return t.split(".").reduce(function(e,t){return e&&e[t]},e)}function V(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,i=new Array(1<e?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];if(!i.length)return t;var o=i.shift();return f.object(o)?(Object.keys(o).forEach(function(e){f.object(o[e])?(Object.keys(t).includes(e)||Object.assign(t,s({},e,{})),V(t[e],o[e])):Object.assign(t,s({},e,o[e]))}),V.apply(void 0,[t].concat(i))):t}function G(e){for(var t=arguments.length,i=new Array(1<t?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return f.empty(e)?e:e.toString().replace(/{(\d+)}/g,function(e,t){return i[t].toString()})}function Z(e,t,i){e=0<arguments.length&&void 0!==e?e:"",t=1<arguments.length&&void 0!==t?t:"",i=2<arguments.length&&void 0!==i?i:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString())}function Y(e){return(0<arguments.length&&void 0!==e?e:"").toString().replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}function X(e){e=(0<arguments.length&&void 0!==e?e:"").toString();return(e=function(e){return e=Z(e=(0<arguments.length&&void 0!==e?e:"").toString(),"-"," "),e=Z(e,"_"," "),Z(e=Y(e)," ","")}(e)).charAt(0).toLowerCase()+e.slice(1)}function K(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var Q={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},J=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(f.empty(e)||f.empty(t))return"";var i=U(t.i18n,e);if(f.empty(i))return Object.keys(Q).includes(e)?Q[e]:"";t={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(t).forEach(function(e){var t=d(e,2),e=t[0],t=t[1];i=Z(i,e,t)}),i},ee=function(){function i(e){l(this,i),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}return e(i,[{key:"get",value:function(e){if(!i.supported||!this.enabled)return null;var t=window.localStorage.getItem(this.key);if(f.empty(t))return null;t=JSON.parse(t);return f.string(e)&&e.length?t[e]:t}},{key:"set",value:function(e){var t;i.supported&&this.enabled&&f.object(e)&&(t=this.get(),V(t=f.empty(t)?{}:t,e),window.localStorage.setItem(this.key,JSON.stringify(t)))}}],[{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}}}]),i}();function te(e,t){var o=1<arguments.length&&void 0!==t?t:"text";return new Promise(function(t,i){try{var n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",function(){if("text"===o)try{t(JSON.parse(n.responseText))}catch(e){t(n.responseText)}else t(n.response)}),n.addEventListener("error",function(){throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=o,n.send()}catch(e){i(e)}})}function ie(e,t){var i,n,o,s,r,a;f.string(e)&&(i=f.string(t),n=function(){return null!==document.getElementById(t)},o=function(e,t){e.innerHTML=t,i&&n()||document.body.insertAdjacentElement("afterbegin",e)},i&&n()||(s=ee.supported,(r=document.createElement("div")).setAttribute("hidden",""),i&&r.setAttribute("id",t),!s||null!==(a=window.localStorage.getItem("".concat("cache","-").concat(t)))&&(a=JSON.parse(a),o(r,a.content)),te(e).then(function(e){f.empty(e)||(s&&window.localStorage.setItem("".concat("cache","-").concat(t),JSON.stringify({content:e})),o(r,e))}).catch(function(){})))}function ne(e){return parseInt(e/60/60%60,10)}function oe(e,t,i){var n=0<arguments.length&&void 0!==e?e:0,o=1<arguments.length&&void 0!==t&&t,s=2<arguments.length&&void 0!==i&&i;if(!f.number(n))return oe(null,o,s);function r(e){return"0".concat(e).slice(-2)}e=ne(n),t=parseInt(n/60%60,10),i=parseInt(n%60,10),e=o||0<e?"".concat(e,":"):"";return"".concat(s&&0<n?"-":"").concat(e).concat(r(t),":").concat(r(i))}var se={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||R.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=z.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:I.call(this,this.config.selectors.buttons.play),pause:z.call(this,this.config.selectors.buttons.pause),restart:z.call(this,this.config.selectors.buttons.restart),rewind:z.call(this,this.config.selectors.buttons.rewind),fastForward:z.call(this,this.config.selectors.buttons.fastForward),mute:z.call(this,this.config.selectors.buttons.mute),pip:z.call(this,this.config.selectors.buttons.pip),airplay:z.call(this,this.config.selectors.buttons.airplay),settings:z.call(this,this.config.selectors.buttons.settings),captions:z.call(this,this.config.selectors.buttons.captions),fullscreen:z.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=z.call(this,this.config.selectors.progress),this.elements.inputs={seek:z.call(this,this.config.selectors.inputs.seek),volume:z.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:z.call(this,this.config.selectors.display.buffer),currentTime:z.call(this,this.config.selectors.display.currentTime),duration:z.call(this,this.config.selectors.display.duration)},f.element(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 i="http://www.w3.org/2000/svg",n=se.getIconUrl.call(this),o="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),n=document.createElementNS(i,"svg");x(n,V(t,{role:"presentation",focusable:"false"}));i=document.createElementNS(i,"use"),e="".concat(o,"-").concat(e);return"href"in i&&i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e),n.appendChild(i),n},createLabel:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=J(e,this.config);return T("span",Object.assign({},t,{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),e)},createBadge:function(e){if(f.empty(e))return null;var t=T("span",{class:this.config.classNames.menu.value});return t.appendChild(T("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var i=Object.assign({},t),n=X(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.includes(this.config.classNames.control)||(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"),o.label=n="play",o.icon="play";break;default:f.empty(o.label)&&(o.label=n),f.empty(o.icon)&&(o.icon=e)}t=T(o.element);return o.toggle?(t.appendChild(se.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),t.appendChild(se.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),t.appendChild(se.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),t.appendChild(se.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(t.appendChild(se.createIcon.call(this,o.icon)),t.appendChild(se.createLabel.call(this,o.label))),V(i,L(this.config.selectors.buttons[n],i)),x(t,i),"play"===n?(f.array(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(t)):this.elements.buttons[n]=t,t},createRange:function(e,t){t=T("input",V(L(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":J(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=t,se.updateRangeFill.call(this,t),t},createProgress:function(e,t){var i=T("progress",V(L(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"presentation","aria-hidden":!0},t));return"volume"!==e&&(i.appendChild(T("span",null,"0")),t=(t={played:"played",buffer:"buffered"}[e])?J(t,this.config):"",i.innerText="% ".concat(t.toLowerCase())),this.elements.display[e]=i},createTime:function(e){var t=L(this.config.selectors.display[e]),t=T("div",V(t,{class:"".concat(this.config.classNames.display.time," ").concat(t.class||"").trim(),"aria-label":J(e,this.config)}),"00:00");return this.elements.display[e]=t},bindMenuItemShortcuts:function(n,o){var s=this;v(n,"keydown keyup",function(e){var t,i;[32,38,39,40].includes(e.which)&&(e.preventDefault(),e.stopPropagation(),"keydown"!==e.type&&(!(t=O(n,'[role="menuitemradio"]'))&&[32,39].includes(e.which)?se.showMenuPanel.call(s,o,!0):32!==e.which&&(40===e.which||t&&39===e.which?(i=n.nextElementSibling,f.element(i)||(i=n.parentNode.firstElementChild)):(i=n.previousElementSibling,f.element(i)||(i=n.parentNode.lastElementChild)),D.call(s,i,!0))))},!1),v(n,"keyup",function(e){13===e.which&&se.focusFirstMenuItem.call(s,null,!0)})},createMenuItem:function(e){var t=this,i=e.value,n=e.list,o=e.type,s=e.title,r=e.badge,a=void 0===r?null:r,r=e.checked,e=void 0!==r&&r,r=L(this.config.selectors.inputs[o]),l=T("button",V(r,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(r.class||"").trim(),"aria-checked":e,value:i})),e=T("span");e.innerHTML=s,f.element(a)&&e.appendChild(a),l.appendChild(e),Object.defineProperty(l,"checked",{enumerable:!0,get:function(){return"true"===l.getAttribute("aria-checked")},set:function(e){e&&Array.from(l.parentNode.children).filter(function(e){return O(e,'[role="menuitemradio"]')}).forEach(function(e){return e.setAttribute("aria-checked","false")}),l.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(l,"click keyup",function(e){if(!f.keyboardEvent(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),l.checked=!0,o){case"language":t.currentTrack=Number(i);break;case"quality":t.quality=i;break;case"speed":t.speed=parseFloat(i)}se.showMenuPanel.call(t,"home",f.keyboardEvent(e))}},o,!1),se.bindMenuItemShortcuts.call(this,l,o),n.appendChild(l)},formatTime:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return f.number(e)?oe(e,0<ne(this.duration),t):e},updateTimeDisplay:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2];f.element(e)&&f.number(t)&&(e.innerText=se.formatTime(t,i))},updateVolume:function(){this.supported.ui&&(f.element(this.elements.inputs.volume)&&se.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),f.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;f.element(e)&&(e.value=t,se.updateRangeFill.call(this,e))},updateProgress:function(e){var i=this;if(this.supported.ui&&f.event(e)){var t,n,o=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":t=this.currentTime,n=this.duration,o=0===t||0===n||Number.isNaN(t)||Number.isNaN(n)?0:(t/n*100).toFixed(2),"timeupdate"===e.type&&se.setRange.call(this,this.elements.inputs.seek,o);break;case"playing":case"progress":!function(e,t){t=f.number(t)?t:0,e=f.element(e)?e:i.elements.display.buffer;f.element(e)&&(e.value=t,e=e.getElementsByTagName("span")[0],f.element(e)&&(e.childNodes[0].nodeValue=t))}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t,i,n=f.event(e)?e.target:e;f.element(n)&&"range"===n.getAttribute("type")&&(O(n,this.config.selectors.inputs.seek)?(n.setAttribute("aria-valuenow",this.currentTime),t=se.formatTime(this.currentTime),i=se.formatTime(this.duration),e=J("seekLabel",this.config),n.setAttribute("aria-valuetext",e.replace("{currentTime}",t).replace("{duration}",i))):O(n,this.config.selectors.inputs.volume)?(i=100*n.value,n.setAttribute("aria-valuenow",i),n.setAttribute("aria-valuetext","".concat(i.toFixed(1),"%"))):n.setAttribute("aria-valuenow",n.value),R.isWebkit&&n.style.setProperty("--value","".concat(n.value/n.max*100,"%")))},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&f.element(this.elements.inputs.seek)&&f.element(this.elements.display.seekTooltip)&&0!==this.duration){var i=0,n=this.elements.progress.getBoundingClientRect(),o="".concat(this.config.classNames.tooltip,"--visible"),s=function(e){A(t.elements.display.seekTooltip,o,e)};if(this.touch)s(!1);else{if(f.event(e))i=100/n.width*(e.pageX-n.left);else{if(!M(this.elements.display.seekTooltip,o))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:100<i&&(i=100),se.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left="".concat(i,"%"),f.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&s("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!f.element(this.elements.display.duration)&&this.config.invertTime;se.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||se.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return P(this.elements.display.currentTime,!0),void P(this.elements.progress,!0);f.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=f.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&se.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&se.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),se.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){P(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,i){var n=this.elements.settings.panels[e],o=null,t=t;if("captions"===e)o=this.currentTrack;else{if(o=f.empty(i)?this[e]:i,f.empty(o)&&(o=this.config[e].default),!f.empty(this.options[e])&&!this.options[e].includes(o))return void this.debug.warn("Unsupported value of '".concat(o,"' for ").concat(e));if(!this.config[e].options.includes(o))return void this.debug.warn("Disabled value of '".concat(o,"' for ").concat(e))}f.element(t)||(t=n&&n.querySelector('[role="menu"]')),f.element(t)&&(this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=se.getLabel.call(this,e,o),o=t&&t.querySelector('[value="'.concat(o,'"]')),f.element(o)&&(o.checked=!0))},getLabel:function(e,t){switch(e){case"speed":return 1===t?J("normal",this.config):"".concat(t,"&times;");case"quality":if(f.number(t)){var i=J("qualityLabel.".concat(t),this.config);return i.length?i:"".concat(t,"p")}return Y(t);case"captions":return le.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t,i,n=this;f.element(this.elements.settings.panels.quality)&&(t="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]'),f.array(e)&&(this.options.quality=W(e).filter(function(e){return n.config.quality.options.includes(e)})),e=!f.empty(this.options.quality)&&1<this.options.quality.length,se.toggleMenuButton.call(this,t,e),k(i),se.checkMenu.call(this),e&&(this.options.quality.sort(function(e,t){var i=n.config.quality.options;return i.indexOf(e)>i.indexOf(t)?1:-1}).forEach(function(e){se.createMenuItem.call(n,{value:e,list:i,type:t,title:se.getLabel.call(n,"quality",e),badge:function(e){e=J("qualityBadge.".concat(e),n.config);return e.length?se.createBadge.call(n,e):null}(e)})}),se.updateSetting.call(this,t,i)))},setCaptionsMenu:function(){var i,e,t,n=this;f.element(this.elements.settings.panels.captions)&&(i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=le.getTracks.call(this),e=Boolean(t.length),se.toggleMenuButton.call(this,"captions",e),k(i),se.checkMenu.call(this),e&&((t=t.map(function(e,t){return{value:t,checked:n.captions.toggled&&n.currentTrack===t,title:le.getLabel.call(n,e),badge:e.language&&se.createBadge.call(n,e.language.toUpperCase()),list:i,type:"language"}})).unshift({value:-1,checked:!this.captions.toggled,title:J("disabled",this.config),list:i,type:"language"}),t.forEach(se.createMenuItem.bind(this)),se.updateSetting.call(this,"captions",i)))},setSpeedMenu:function(e){var t,i=this;f.element(this.elements.settings.panels.speed)&&(t=this.elements.settings.panels.speed.querySelector('[role="menu"]'),f.array(e)?this.options.speed=e:(this.isHTML5||this.isVimeo)&&(this.options.speed=[.5,.75,1,1.25,1.5,1.75,2]),this.options.speed=this.options.speed.filter(function(e){return i.config.speed.options.includes(e)}),e=!f.empty(this.options.speed)&&1<this.options.speed.length,se.toggleMenuButton.call(this,"speed",e),k(t),se.checkMenu.call(this),e&&(this.options.speed.forEach(function(e){se.createMenuItem.call(i,{value:e,list:t,type:"speed",title:se.getLabel.call(i,"speed",e)})}),se.updateSetting.call(this,"speed",t)))},checkMenu:function(){var e=this.elements.settings.buttons,e=!f.empty(e)&&Object.values(e).some(function(e){return!e.hidden});P(this.elements.settings.menu,!e)},focusFirstMenuItem:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.elements.settings.popup.hidden||(e=(e=!f.element(e=e)?Object.values(this.elements.settings.panels).find(function(e){return!e.hidden}):e).querySelector('[role^="menuitem"]'),D.call(this,e,t))},toggleMenu:function(e){var t=this.elements.settings.popup,i=this.elements.buttons.settings;if(f.element(t)&&f.element(i)){var n=t.hidden,o=n;if(f.boolean(e))o=e;else if(f.keyboardEvent(e)&&27===e.which)o=!1;else if(f.event(e)){var s=t.contains(e.target);if(s||!s&&e.target!==i&&o)return}i.setAttribute("aria-expanded",o),P(t,!o),A(this.elements.container,this.config.classNames.menu.open,o),o&&f.keyboardEvent(e)?se.focusFirstMenuItem.call(this,null,!0):o||n||D.call(this,i,f.keyboardEvent(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 i=t.scrollWidth,e=t.scrollHeight;return S(t),{width:i,height:e}},showMenuPanel:function(){var i,e,t,n=this,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",s=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=document.getElementById("plyr-settings-".concat(this.id,"-").concat(o));f.element(r)&&(i=r.parentNode,e=Array.from(i.children).find(function(e){return!e.hidden}),F.transitions&&!F.reducedMotion&&(i.style.width="".concat(e.scrollWidth,"px"),i.style.height="".concat(e.scrollHeight,"px"),t=se.getMenuSize.call(this,r),o=function e(t){t.target===i&&["width","height"].includes(t.propertyName)&&(i.style.width="",i.style.height="",y.call(n,i,$,e))},v.call(this,i,$,o),i.style.width="".concat(t.width,"px"),i.style.height="".concat(t.height,"px")),P(e,!0),P(r,!1),se.focusFirstMenuItem.call(this,r,s))},setDownloadLink:function(){var e=this.elements.buttons.download;f.element(e)&&e.setAttribute("href",this.download)},create:function(o){var e,t,s,i,r,n,a,l=this,c=T("div",L(this.config.selectors.controls.wrapper));return this.config.controls.includes("restart")&&c.appendChild(se.createButton.call(this,"restart")),this.config.controls.includes("rewind")&&c.appendChild(se.createButton.call(this,"rewind")),this.config.controls.includes("play")&&c.appendChild(se.createButton.call(this,"play")),this.config.controls.includes("fast-forward")&&c.appendChild(se.createButton.call(this,"fast-forward")),this.config.controls.includes("progress")&&((t=T("div",L(this.config.selectors.progress))).appendChild(se.createRange.call(this,"seek",{id:"plyr-seek-".concat(o.id)})),t.appendChild(se.createProgress.call(this,"buffer")),this.config.tooltips.seek&&(e=T("span",{class:this.config.classNames.tooltip},"00:00"),t.appendChild(e),this.elements.display.seekTooltip=e),this.elements.progress=t,c.appendChild(this.elements.progress)),this.config.controls.includes("current-time")&&c.appendChild(se.createTime.call(this,"currentTime")),this.config.controls.includes("duration")&&c.appendChild(se.createTime.call(this,"duration")),(this.config.controls.includes("mute")||this.config.controls.includes("volume"))&&(i=T("div",{class:"plyr__volume"}),this.config.controls.includes("mute")&&i.appendChild(se.createButton.call(this,"mute")),this.config.controls.includes("volume")&&(t={max:1,step:.05,value:this.config.volume},i.appendChild(se.createRange.call(this,"volume",V(t,{id:"plyr-volume-".concat(o.id)}))),this.elements.volume=i),c.appendChild(i)),this.config.controls.includes("captions")&&c.appendChild(se.createButton.call(this,"captions")),this.config.controls.includes("settings")&&!f.empty(this.config.settings)&&((a=T("div",{class:"plyr__menu",hidden:""})).appendChild(se.createButton.call(this,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(o.id),"aria-expanded":!1})),n=T("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(o.id),hidden:""}),s=T("div"),i=T("div",{id:"plyr-settings-".concat(o.id,"-home")}),r=T("div",{role:"menu"}),i.appendChild(r),s.appendChild(i),this.elements.settings.panels.home=i,this.config.settings.forEach(function(e){var t=T("button",V(L(l.config.selectors.buttons.settings),{type:"button",class:"".concat(l.config.classNames.control," ").concat(l.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));se.bindMenuItemShortcuts.call(l,t,e),v(t,"click",function(){se.showMenuPanel.call(l,e,!1)});var i=T("span",null,J(e,l.config)),n=T("span",{class:l.config.classNames.menu.value});n.innerHTML=o[e],i.appendChild(n),t.appendChild(i),r.appendChild(t);n=T("div",{id:"plyr-settings-".concat(o.id,"-").concat(e),hidden:""}),i=T("button",{type:"button",class:"".concat(l.config.classNames.control," ").concat(l.config.classNames.control,"--back")});i.appendChild(T("span",{"aria-hidden":!0},J(e,l.config))),i.appendChild(T("span",{class:l.config.classNames.hidden},J("menuBack",l.config))),v(n,"keydown",function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),se.showMenuPanel.call(l,"home",!0))},!1),v(i,"click",function(){se.showMenuPanel.call(l,"home",!1)}),n.appendChild(i),n.appendChild(T("div",{role:"menu"})),s.appendChild(n),l.elements.settings.buttons[e]=t,l.elements.settings.panels[e]=n}),n.appendChild(s),a.appendChild(n),c.appendChild(a),this.elements.settings.popup=n,this.elements.settings.menu=a),this.config.controls.includes("pip")&&F.pip&&c.appendChild(se.createButton.call(this,"pip")),this.config.controls.includes("airplay")&&F.airplay&&c.appendChild(se.createButton.call(this,"airplay")),this.config.controls.includes("download")&&(n={element:"a",href:this.download,target:"_blank"},a=this.config.urls.download,!f.url(a)&&this.isEmbed&&V(n,{icon:"logo-".concat(this.provider),label:this.provider}),c.appendChild(se.createButton.call(this,"download",n))),this.config.controls.includes("fullscreen")&&c.appendChild(se.createButton.call(this,"fullscreen")),this.config.controls.includes("play-large")&&this.elements.container.appendChild(se.createButton.call(this,"play-large")),this.elements.controls=c,this.isHTML5&&se.setQualityMenu.call(this,q.getQualityOptions.call(this)),se.setSpeedMenu.call(this),c},inject:function(){var i=this;!this.config.loadSprite||(r=se.getIconUrl.call(this)).cors&&ie(r.url,"sprite-plyr"),this.id=Math.floor(1e4*Math.random());var e=null;this.elements.controls=null;var t={id:this.id,seektime:this.config.seekTime,title:this.config.title},n=!0;f.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),f.element(this.config.controls)||f.string(this.config.controls)?e=this.config.controls:(e=se.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:le.getLabel.call(this)}),n=!1);var o,s,r=function(e){var i=e;return Object.entries(t).forEach(function(e){var t=d(e,2),e=t[0],t=t[1];i=Z(i,"{".concat(e,"}"),t)}),i};n&&(f.string(this.config.controls)?e=r(e):f.element(e)&&(e.innerHTML=r(e.innerHTML))),f.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),(s=!f.element(s)?this.elements.container:s)[f.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),f.element(this.elements.controls)||se.findElements.call(this),f.empty(this.elements.buttons)||(o=function(e){var t=i.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:function(){return M(e,t)},set:function(){A(e,t,0<arguments.length&&void 0!==arguments[0]&&arguments[0])}})},Object.values(this.elements.buttons).filter(Boolean).forEach(function(e){f.array(e)||f.nodeList(e)?Array.from(e).filter(Boolean).forEach(o):o(e)})),window.navigator.userAgent.includes("Edge")&&j(s),this.config.tooltips.controls&&(s=(e=this.config).classNames,e=e.selectors,s="".concat(e.controls.wrapper," ").concat(e.labels," .").concat(s.hidden),s=I.call(this,s),Array.from(s).forEach(function(e){A(e,i.config.classNames.hidden,!1),A(e,i.config.classNames.tooltip,!0)}))}};function re(e,t){1<arguments.length&&void 0!==t&&!t||((t=document.createElement("a")).href=e,e=t.href);try{return new URL(e)}catch(e){return null}}function ae(e){var i=new URLSearchParams;return f.object(e)&&Object.entries(e).forEach(function(e){var t=d(e,2),e=t[0],t=t[1];i.set(e,t)}),i}var le={setup:function(){var e,t,i;this.supported.ui&&(!this.isVideo||this.isYouTube||this.isHTML5&&!F.textTracks?f.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&se.setCaptionsMenu.call(this):(f.element(this.elements.captions)||(this.elements.captions=T("div",L(this.config.selectors.captions)),i=this.elements.captions,e=this.elements.wrapper,f.element(i)&&f.element(e)&&e.parentNode.insertBefore(i,e.nextSibling)),R.isIE&&window.URL&&(t=this.media.querySelectorAll("track"),Array.from(t).forEach(function(t){var e=t.getAttribute("src"),i=re(e);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&te(e,"blob").then(function(e){t.setAttribute("src",window.URL.createObjectURL(e))}).catch(function(){S(t)})})),i=W((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(e){return e.split("-")[0]})),"auto"===(e=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase())&&(e=d(i,1)[0]),t=this.storage.get("captions"),f.boolean(t)||(t=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:t,language:e,languages:i}),this.isHTML5&&(i=this.config.captions.update?"addtrack removetrack":"removetrack",v.call(this,this.media.textTracks,i,le.update.bind(this))),setTimeout(le.update.bind(this),0)))},update:function(){var t=this,e=le.getTracks.call(this,!0),i=this.captions,n=i.active,o=i.language,s=i.meta,r=i.currentTrackNode,i=Boolean(e.find(function(e){return e.language===o}));this.isHTML5&&this.isVideo&&e.filter(function(e){return!s.get(e)}).forEach(function(e){t.debug.log("Track added",e),s.set(e,{default:"showing"===e.mode}),e.mode="hidden",v.call(t,e,"cuechange",function(){return le.updateCues.call(t)})}),(i&&this.language!==o||!e.includes(r))&&(le.setLanguage.call(this,o),le.toggle.call(this,n&&i)),A(this.elements.container,this.config.classNames.captions.enabled,!f.empty(e)),(this.config.controls||[]).includes("settings")&&this.config.settings.includes("captions")&&se.setCaptionsMenu.call(this)},toggle:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,n=this.config.classNames.captions.active,e=f.nullOrUndefined(e)?!i:e;if(e!==i){if(t||(this.captions.active=e,this.storage.set({captions:e})),!this.language&&e&&!t){i=le.getTracks.call(this),t=le.findTrack.call(this,[this.captions.language].concat(o(this.captions.languages)),!0);return this.captions.language=t.language,void le.set.call(this,i.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=e),A(this.elements.container,n,e),this.captions.toggled=e,se.updateSetting.call(this,"captions"),b.call(this,this.media,e?"captionsenabled":"captionsdisabled")}}},set:function(e){var t,i=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=le.getTracks.call(this);-1!==e?f.number(e)?e in n?(this.captions.currentTrack!==e&&(n=((t=n[this.captions.currentTrack=e])||{}).language,this.captions.currentTrackNode=t,se.updateSetting.call(this,"captions"),i||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),b.call(this,this.media,"languagechange")),le.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&le.updateCues.call(this)):this.debug.warn("Track not found",e):this.debug.warn("Invalid caption argument",e):le.toggle.call(this,!1,i)},setLanguage:function(e){var t,i,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];f.string(e)?(i=e.toLowerCase(),this.captions.language=i,t=le.getTracks.call(this),i=le.findTrack.call(this,[i]),le.set.call(this,t.indexOf(i),n)):this.debug.warn("Invalid language argument",e)},getTracks:function(){var t=this,i=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter(function(e){return!t.isHTML5||i||t.captions.meta.has(e)}).filter(function(e){return["captions","subtitles"].includes(e.kind)})},findTrack:function(e){function i(e){return Number((t.captions.meta.get(e)||{}).default)}var n,t=this,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],s=le.getTracks.call(this),r=Array.from(s).sort(function(e,t){return i(t)-i(e)});return e.every(function(t){return!(n=r.find(function(e){return e.language===t}))}),n||(o?r[0]:void 0)},getCurrentTrack:function(){return le.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!f.track(t)&&F.textTracks&&this.captions.toggled&&(t=le.getCurrentTrack.call(this)),f.track(t)?f.empty(t.label)?f.empty(t.language)?J("enabled",this.config):e.language.toUpperCase():t.label:J("disabled",this.config)},updateCues:function(e){var t,i;this.supported.ui&&(f.element(this.elements.captions)?f.nullOrUndefined(e)||Array.isArray(e)?((i=e)||(t=le.getCurrentTrack.call(this),i=Array.from((t||{}).activeCues||[]).map(function(e){return e.getCueAsHTML()}).map(K)),(t=i.map(function(e){return e.trim()}).join("\n"))!==this.elements.captions.innerHTML&&(k(this.elements.captions),(i=T("span",L(this.config.selectors.caption))).innerHTML=t,this.elements.captions.appendChild(i),b.call(this,this.media,"cuechange"))):this.debug.warn("updateCues: Invalid input",e):this.debug.warn("No captions element to render to"))}},ce={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:"16:9",clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.4.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240]},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2]},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",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/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://www.googleapis.com/youtube/v3/videos?id={0}&key={1}&fields=items(snippet(title))&part=snippet"},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",menu:{quality:".js-plyr__menu__list--quality"}},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",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"},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},keys:{google:null},ads:{enabled:!1,publisherId:""}},ue="picture-in-picture",de="inline",he={html5:"html5",youtube:"youtube",vimeo:"vimeo"},pe="audio",fe="video";function me(){}var ge=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];l(this,t),this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}return e(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):me}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):me}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):me}}]),t}();function ve(){var e;this.enabled&&(e=this.player.elements.buttons.fullscreen,f.element(e)&&(e.pressed=this.active),b.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0),R.isIos||function(){var i,n,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];f.element(e)&&(e=I.call(this,"button:not(:disabled), input:not(:disabled), [tabindex]"),i=e[0],n=e[e.length-1],g.call(this,this.elements.container,"keydown",function(e){var t;"Tab"===e.key&&9===e.keyCode&&((t=document.activeElement)!==n||e.shiftKey?t===i&&e.shiftKey&&(n.focus(),e.preventDefault()):(i.focus(),e.preventDefault()))},t,!1))}.call(this.player,this.target,this.active))}function ye(){var e,t,i,n=this,o=0<arguments.length&&void 0!==arguments[0]&&arguments[0];o?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=o?"hidden":"",A(this.target,this.player.config.classNames.fullscreen.fallback,o),R.isIos&&(e=document.head.querySelector('meta[name="viewport"]'),t="viewport-fit=cover",e||(e=document.createElement("meta")).setAttribute("name","viewport"),i=f.string(e.content)&&e.content.includes(t),o?(this.cleanupViewport=!i,i||(e.content+=",".concat(t))):this.cleanupViewport&&(e.content=e.content.split(",").filter(function(e){return e.trim()!==t}).join(",")),setTimeout(function(){return j(n.target)},100)),ve.call(this)}var _e=function(){function i(e){var t=this;l(this,i),this.player=e,this.prefix=i.prefix,this.property=i.property,this.scrollPosition={x:0,y:0},v.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){ve.call(t)}),v.call(this.player,this.player.elements.container,"dblclick",function(e){f.element(t.player.elements.controls)&&t.player.elements.controls.contains(e.target)||t.toggle()}),this.update()}return e(i,[{key:"update",value:function(){this.enabled?this.player.debug.log("".concat(i.native?"Native":"Fallback"," fullscreen enabled")):this.player.debug.log("Fullscreen not supported and fallback disabled"),A(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(R.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():i.native?this.prefix?f.empty(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen():ye.call(this,!0))}},{key:"exit",value:function(){var e;this.enabled&&(R.isIos&&this.player.config.fullscreen.iosNative?(this.target.webkitExitFullscreen(),this.player.play()):i.native?this.prefix?f.empty(this.prefix)||(e="moz"===this.prefix?"Cancel":"Exit",document["".concat(this.prefix).concat(e).concat(this.property)]()):(document.cancelFullScreen||document.exitFullscreen).call(document):ye.call(this,!1))}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"enabled",get:function(){return(i.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){return!!this.enabled&&(i.native?(this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement)===this.target:M(this.target,this.player.config.classNames.fullscreen.fallback))}},{key:"target",get:function(){return R.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(f.function(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some(function(e){return!(!f.function(document["".concat(e,"ExitFullscreen")])&&!f.function(document["".concat(e,"CancelFullScreen")]))&&(t=e,!0)}),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),i}();function be(o,e){var s=1<arguments.length&&void 0!==e?e:1;return new Promise(function(e,t){function i(){delete n.onload,delete n.onerror,(n.naturalWidth>=s?e:t)(n)}var n=new Image;Object.assign(n,{onload:i,onerror:i,src:o})})}var we={addStyleHook:function(){A(this.elements.container,this.config.selectors.container.replace(".",""),!0),A(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void we.toggleNativeControls.call(this,!0);f.element(this.elements.controls)||(se.inject.call(this),this.listeners.controls()),we.toggleNativeControls.call(this),this.isHTML5&&le.setup.call(this),this.volume=null,this.muted=null,this.speed=null,this.loop=null,this.quality=null,se.updateVolume.call(this),se.timeUpdate.call(this),we.checkPlaying.call(this),A(this.elements.container,this.config.classNames.pip.supported,F.pip&&this.isHTML5&&this.isVideo),A(this.elements.container,this.config.classNames.airplay.supported,F.airplay&&this.isHTML5),A(this.elements.container,this.config.classNames.isIos,R.isIos),A(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(function(){b.call(e,e.media,"ready")},0),we.setTitle.call(this),this.poster&&we.setPoster.call(this,this.poster,!1).catch(function(){}),this.config.duration&&se.durationUpdate.call(this)},setTitle:function(){var e,t,i,n=J("play",this.config);f.string(this.config.title)&&!f.empty(this.config.title)&&(n+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(e){e.setAttribute("aria-label",n)}),this.isEmbed&&(e=z.call(this,"iframe"),f.element(e)&&(t=f.empty(this.config.title)?"video":this.config.title,i=J("frameTitle",this.config),e.setAttribute("title",i.replace("{title}",t))))},togglePoster:function(e){A(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(t){var i=this;return 1<arguments.length&&void 0!==arguments[1]&&!arguments[1]||!this.poster?(this.media.setAttribute("poster",t),function(){var t=this;return new Promise(function(e){return t.ready?setTimeout(e,0):v.call(t,t.elements.container,"ready",e)}).then(function(){})}.call(this).then(function(){return be(t)}).catch(function(e){throw t===i.poster&&we.togglePoster.call(i,!1),e}).then(function(){if(t!==i.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(function(){return Object.assign(i.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),we.togglePoster.call(i,!0),t})):Promise.reject(new Error("Poster already set"))},checkPlaying:function(e){var t=this;A(this.elements.container,this.config.classNames.playing,this.playing),A(this.elements.container,this.config.classNames.paused,this.paused),A(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(function(e){e.pressed=t.playing}),f.event(e)&&"timeupdate"===e.type||we.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(){A(t.elements.container,t.config.classNames.loading,t.loading),we.toggleControls.call(t)},this.loading?250:0)},toggleControls:function(e){var t,i=this.elements.controls;i&&this.config.hideControls&&(t=this.touch&&this.lastSeekTime+2e3>Date.now(),this.toggleControls(Boolean(e||this.loading||this.paused||i.pressed||i.hover||t)))}},xe=function(){function t(e){l(this,t),this.player=e,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 e(t,[{key:"handleKey",value:function(e){var t=this.player,i=t.elements,n=e.keyCode||e.which,o="keydown"===e.type,s=o&&n===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&f.number(n))if(o){var r=document.activeElement;if(f.element(r)){o=t.config.selectors.editable;if(r!==i.inputs.seek&&O(r,o))return;if(32===e.which&&O(r,'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(n)&&(e.preventDefault(),e.stopPropagation()),n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:s||(t.currentTime=t.duration/10*(n-48));break;case 32:case 75:s||t.togglePlay();break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:s||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:s||t.toggleCaptions();break;case 76:t.loop=!t.loop}!t.fullscreen.enabled&&t.fullscreen.active&&27===n&&t.fullscreen.toggle(),this.lastKey=n}else this.lastKey=null}},{key:"toggleMenu",value:function(e){se.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,A(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t,i,n=this.player,o=n.elements;clearTimeout(this.focusTimer),"keydown"===e.type&&9!==e.which||("keydown"===e.type&&(this.lastKeyDown=e.timeStamp),t=e.timeStamp-this.lastKeyDown<=20,"focus"===e.type&&!t||(i=n.config.classNames.tabFocus,A(I.call(n,".".concat(i)),i,!1),this.focusTimer=setTimeout(function(){var e=document.activeElement;o.container.contains(e)&&A(document.activeElement,n.config.classNames.tabFocus,!0)},10)))}},{key:"global",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=this.player;t.config.keyboard.global&&g.call(t,window,"keydown keyup",this.handleKey,e,!1),g.call(t,document.body,"click",this.toggleMenu,e),_.call(t,document.body,"touchstart",this.firstTouch),g.call(t,document.body,"keydown focus blur",this.setTabFocus,e,!1,!0)}},{key:"container",value:function(){var i=this.player,n=i.elements;!i.config.keyboard.global&&i.config.keyboard.focused&&v.call(i,n.container,"keydown keyup",this.handleKey,!1),v.call(i,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(e){var t=n.controls;t&&"enterfullscreen"===e.type&&(t.pressed=!1,t.hover=!1);t=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(we.toggleControls.call(i,!0),t=i.touch?3e3:2e3),clearTimeout(i.timers.controls),i.timers.controls=setTimeout(function(){return we.toggleControls.call(i,!1)},t)})}},{key:"media",value:function(){var i=this.player,n=i.elements;if(v.call(i,i.media,"timeupdate seeking seeked",function(e){return se.timeUpdate.call(i,e)}),v.call(i,i.media,"durationchange loadeddata loadedmetadata",function(e){return se.durationUpdate.call(i,e)}),v.call(i,i.media,"canplay loadeddata",function(){P(n.volume,!i.hasAudio),P(n.buttons.mute,!i.hasAudio)}),v.call(i,i.media,"ended",function(){i.isHTML5&&i.isVideo&&i.config.resetOnEnd&&i.restart()}),v.call(i,i.media,"progress playing seeking seeked",function(e){return se.updateProgress.call(i,e)}),v.call(i,i.media,"volumechange",function(e){return se.updateVolume.call(i,e)}),v.call(i,i.media,"playing play pause ended emptied timeupdate",function(e){return we.checkPlaying.call(i,e)}),v.call(i,i.media,"waiting canplay seeked playing",function(e){return we.checkLoading.call(i,e)}),v.call(i,i.media,"playing",function(){i.ads&&i.ads.enabled&&!i.ads.initialized&&i.ads.managerPromise.then(function(){return i.ads.play()}).catch(function(){return i.play()})}),i.supported.ui&&i.config.clickToPlay&&!i.isAudio){var t=z.call(i,".".concat(i.config.classNames.video));if(!f.element(t))return;v.call(i,n.container,"click",function(e){([n.container,t].includes(e.target)||t.contains(e.target))&&(i.touch&&i.config.hideControls||(i.ended?(i.restart(),i.play()):i.togglePlay()))})}i.supported.ui&&i.config.disableContextMenu&&v.call(i,n.wrapper,"contextmenu",function(e){e.preventDefault()},!1),v.call(i,i.media,"volumechange",function(){i.storage.set({volume:i.volume,muted:i.muted})}),v.call(i,i.media,"ratechange",function(){se.updateSetting.call(i,"speed"),i.storage.set({speed:i.speed})}),v.call(i,i.media,"qualitychange",function(e){se.updateSetting.call(i,"quality",null,e.detail.quality)}),v.call(i,i.media,"ready qualitychange",function(){se.setDownloadLink.call(i)});var e=i.config.events.concat(["keyup","keydown"]).join(" ");v.call(i,i.media,e,function(e){var t=e.detail,t=void 0===t?{}:t;"error"===e.type&&(t=i.media.error),b.call(i,n.container,e.type,!0,t)})}},{key:"proxy",value:function(e,t,i){var n=this.player,o=n.config.listeners[i],i=!0;(i=f.function(o)?o.call(n,e):i)&&f.function(t)&&t.call(n,e)}},{key:"bind",value:function(e,t,i,n){var o=this,s=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],r=this.player,a=r.config.listeners[n],a=f.function(a);v.call(r,e,t,function(e){return o.proxy(e,i,n)},s&&!a)}},{key:"controls",value:function(){var e,o=this,s=this.player,i=s.elements,t=R.isIE?"change":"input";i.buttons.play&&Array.from(i.buttons.play).forEach(function(e){o.bind(e,"click",s.togglePlay,"play")}),this.bind(i.buttons.restart,"click",s.restart,"restart"),this.bind(i.buttons.rewind,"click",s.rewind,"rewind"),this.bind(i.buttons.fastForward,"click",s.forward,"fastForward"),this.bind(i.buttons.mute,"click",function(){s.muted=!s.muted},"mute"),this.bind(i.buttons.captions,"click",function(){return s.toggleCaptions()}),this.bind(i.buttons.download,"click",function(){b.call(s,s.media,"download")},"download"),this.bind(i.buttons.fullscreen,"click",function(){s.fullscreen.toggle()},"fullscreen"),this.bind(i.buttons.pip,"click",function(){s.pip="toggle"},"pip"),this.bind(i.buttons.airplay,"click",s.airplay,"airplay"),this.bind(i.buttons.settings,"click",function(e){e.stopPropagation(),se.toggleMenu.call(s,e)}),this.bind(i.buttons.settings,"keyup",function(e){var t=e.which;[13,32].includes(t)&&(13!==t?(e.preventDefault(),e.stopPropagation(),se.toggleMenu.call(s,e)):se.focusFirstMenuItem.call(s,null,!0))},null,!1),this.bind(i.settings.menu,"keydown",function(e){27===e.which&&se.toggleMenu.call(s,e)}),this.bind(i.inputs.seek,"mousedown mousemove",function(e){var t=i.progress.getBoundingClientRect(),t=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",t)}),this.bind(i.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(e){var t=e.currentTarget,i=e.keyCode||e.which,n="play-on-seeked";f.keyboardEvent(e)&&39!==i&&37!==i||(s.lastSeekTime=Date.now(),i=t.hasAttribute(n),e=["mouseup","touchend","keyup"].includes(e.type),i&&e?(t.removeAttribute(n),s.play()):!e&&s.playing&&(t.setAttribute(n,""),s.pause()))}),R.isIos&&(e=I.call(s,'input[type="range"]'),Array.from(e).forEach(function(e){return o.bind(e,t,function(e){return j(e.target)})})),this.bind(i.inputs.seek,t,function(e){var t=e.currentTarget,e=t.getAttribute("seek-value");f.empty(e)&&(e=t.value),t.removeAttribute("seek-value"),s.currentTime=e/t.max*s.duration},"seek"),this.bind(i.progress,"mouseenter mouseleave mousemove",function(e){return se.updateSeekTooltip.call(s,e)}),R.isWebkit&&Array.from(I.call(s,'input[type="range"]')).forEach(function(e){o.bind(e,"input",function(e){return se.updateRangeFill.call(s,e.target)})}),s.config.toggleInvert&&!f.element(i.display.duration)&&this.bind(i.display.currentTime,"click",function(){0!==s.currentTime&&(s.config.invertTime=!s.config.invertTime,se.timeUpdate.call(s))}),this.bind(i.inputs.volume,t,function(e){s.volume=e.target.value},"volume"),this.bind(i.controls,"mouseenter mouseleave",function(e){i.controls.hover=!s.touch&&"mouseenter"===e.type}),this.bind(i.controls,"mousedown mouseup touchstart touchend touchcancel",function(e){i.controls.pressed=["mousedown","touchstart"].includes(e.type)}),this.bind(i.controls,"focusin",function(){var e=s.config,t=s.elements,i=s.timers;A(t.controls,e.classNames.noTransition,!0),we.toggleControls.call(s,!0),setTimeout(function(){A(t.controls,e.classNames.noTransition,!1)},0);var n=o.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout(function(){return we.toggleControls.call(s,!1)},n)}),this.bind(i.inputs.volume,"wheel",function(e){var t=e.webkitDirectionInvertedFromDevice,i=d([e.deltaX,-e.deltaY].map(function(e){return t?-e:e}),2),n=i[0],i=i[1],n=Math.sign(Math.abs(n)>Math.abs(i)?n:i);s.increaseVolume(n/50);i=s.media.volume;(1===n&&i<1||-1===n&&0<i)&&e.preventDefault()},"volume",!1)}}]),t}();var Te,Ce=(function(e){function s(e,t){if(e){var i=u[e];if(c[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function r(e,t){e.call&&(e={success:e}),t.length?(e.error||h)(t):(e.success||h)(e)}function a(e,n,t){for(var o=(e=e.push?e:[e]).length,i=o,s=[],r=function(e,t,i){if("e"==t&&s.push(e),"b"==t){if(!i)return;s.push(e)}--o||n(s)},a=0;a<i;a++)!function i(n,o,s,r){var a,l,e=document,t=s.async,c=(s.numRetries||0)+1,u=s.before||h,d=n.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(n)?(a=!0,(l=e.createElement("link")).rel="stylesheet",l.href=d):/(^img!|\.(png|gif|jpg|svg)$)/.test(n)?(l=e.createElement("img")).src=d:((l=e.createElement("script")).src=n,l.async=void 0===t||t),l.onload=l.onerror=l.onbeforeload=function(e){var t=e.type[0];if(a&&"hideFocus"in l)try{l.sheet.cssText.length||(t="e")}catch(e){18!=e.code&&(t="e")}if("e"==t&&(r+=1)<c)return i(n,o,s,r);o(n,t,e.defaultPrevented)},!1!==u(n,l)&&e.head.appendChild(l)}(e[a],r,t)}function i(e,t,i){var n,o;if(t&&t.trim&&(n=t),o=(n?i:t)||{},n){if(n in l)throw"LoadJS";l[n]=!0}a(e,function(e){r(o,e),s(n,e)},o)}var h,l,c,u;e.exports=(h=function(){},l={},c={},u={},i.ready=function(e,t){return function(e,i){e=e.push?e:[e];var t,n,o,s=[],r=e.length,a=r;t=function(e,t){t.length&&s.push(e),--a||i(s)};for(;r--;)n=e[r],(o=c[n])?t(n,o):(u[n]=u[n]||[]).push(t)}(e,function(e){r(t,e)}),i},i.done=function(e){s(e,[])},i.reset=function(){l={},c={},u={}},i.isDefined=function(e){return e in l},i)}(Te={exports:{}}),Te.exports);function Se(i){return new Promise(function(e,t){Ce(i,{success:e,error:t})})}function ke(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,b.call(this,this.media,e?"play":"pause"))}var Ee={setup:function(){var t=this;A(this.elements.wrapper,this.config.classNames.embed,!0),Ee.setAspectRatio.call(this),f.object(window.Vimeo)?Ee.ready.call(this):Se(this.config.urls.vimeo.sdk).then(function(){Ee.ready.call(t)}).catch(function(e){t.debug.warn("Vimeo API failed to load",e)})},setAspectRatio:function(e){e=d((f.string(e)?e:this.config.ratio).split(":").map(Number),2),e=100/e[0]*e[1];Ee.padding=e,this.elements.wrapper.style.paddingBottom="".concat(e,"%"),this.supported.ui&&(this.media.style.transform="translateY(-".concat((240-e)/4.8,"%)"))},ready:function(){var n=this,r=this,e=ae({loop:r.config.loop.active,autoplay:r.autoplay,byline:!1,portrait:!1,title:!1,speed:!0,transparent:0,gesture:"media",playsinline:!this.config.fullscreen.iosNative}),t=r.media.getAttribute("src");f.empty(t)&&(t=r.media.getAttribute(r.config.attributes.embed.id));var t=(i=t,f.empty(i)?null:!f.number(Number(i))&&i.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:i),i=T("iframe"),e=G(r.config.urls.vimeo.iframe,t,e);i.setAttribute("src",e),i.setAttribute("allowfullscreen",""),i.setAttribute("allowtransparency",""),i.setAttribute("allow","autoplay");e=T("div",{poster:r.poster,class:r.config.classNames.embedContainer});e.appendChild(i),r.media=E(e,r.media),te(G(r.config.urls.vimeo.api,t),"json").then(function(e){f.empty(e)||((e=new URL(e[0].thumbnail_large)).pathname="".concat(e.pathname.split("_")[0],".jpg"),we.setPoster.call(r,e.href).catch(function(){}))}),r.embed=new window.Vimeo.Player(i,{autopause:r.config.autopause,muted:r.muted}),r.media.paused=!0,r.media.currentTime=0,r.supported.ui&&r.embed.disableTextTrack(),r.media.play=function(){return ke.call(r,!0),r.embed.play()},r.media.pause=function(){return ke.call(r,!1),r.embed.pause()},r.media.stop=function(){r.pause(),r.currentTime=0};var o=r.media.currentTime;Object.defineProperty(r.media,"currentTime",{get:function(){return o},set:function(e){var t=r.embed,i=r.media,n=r.paused,o=r.volume,s=n&&!t.hasPlayed;i.seeking=!0,b.call(r,i,"seeking"),Promise.resolve(s&&t.setVolume(0)).then(function(){return t.setCurrentTime(e)}).then(function(){return s&&t.pause()}).then(function(){return s&&t.setVolume(o)}).catch(function(){})}});var s=r.config.speed.selected;Object.defineProperty(r.media,"playbackRate",{get:function(){return s},set:function(e){r.embed.setPlaybackRate(e).then(function(){s=e,b.call(r,r.media,"ratechange")}).catch(function(e){"Error"===e.name&&se.setSpeedMenu.call(r,[])})}});var a=r.config.volume;Object.defineProperty(r.media,"volume",{get:function(){return a},set:function(e){r.embed.setVolume(e).then(function(){a=e,b.call(r,r.media,"volumechange")})}});var l=r.config.muted;Object.defineProperty(r.media,"muted",{get:function(){return l},set:function(e){var t=!!f.boolean(e)&&e;r.embed.setVolume(t?0:r.config.volume).then(function(){l=t,b.call(r,r.media,"volumechange")})}});var c,u=r.config.loop;Object.defineProperty(r.media,"loop",{get:function(){return u},set:function(e){var t=f.boolean(e)?e:r.config.loop.active;r.embed.setLoop(t).then(function(){u=t})}}),r.embed.getVideoUrl().then(function(e){c=e,se.setDownloadLink.call(r)}).catch(function(e){n.debug.warn(e)}),Object.defineProperty(r.media,"currentSrc",{get:function(){return c}}),Object.defineProperty(r.media,"ended",{get:function(){return r.currentTime===r.duration}}),Promise.all([r.embed.getVideoWidth(),r.embed.getVideoHeight()]).then(function(e){var t,i;Ee.ratio=(t=e[0],i=e[1],e=function e(t,i){return 0===i?t:e(i,t%i)}(t,i),"".concat(t/e,":").concat(i/e)),Ee.setAspectRatio.call(n,Ee.ratio)}),r.embed.setAutopause(r.config.autopause).then(function(e){r.config.autopause=e}),r.embed.getVideoTitle().then(function(e){r.config.title=e,we.setTitle.call(n)}),r.embed.getCurrentTime().then(function(e){o=e,b.call(r,r.media,"timeupdate")}),r.embed.getDuration().then(function(e){r.media.duration=e,b.call(r,r.media,"durationchange")}),r.embed.getTextTracks().then(function(e){r.media.textTracks=e,le.setup.call(r)}),r.embed.on("cuechange",function(e){e=e.cues,e=(void 0===e?[]:e).map(function(e){return t=e.text,i=document.createDocumentFragment(),e=document.createElement("div"),i.appendChild(e),e.innerHTML=t,i.firstChild.innerText;var t,i});le.updateCues.call(r,e)}),r.embed.on("loaded",function(){r.embed.getPaused().then(function(e){ke.call(r,!e),e||b.call(r,r.media,"playing")}),f.element(r.embed.element)&&r.supported.ui&&r.embed.element.setAttribute("tabindex",-1)}),r.embed.on("play",function(){ke.call(r,!0),b.call(r,r.media,"playing")}),r.embed.on("pause",function(){ke.call(r,!1)}),r.embed.on("timeupdate",function(e){r.media.seeking=!1,o=e.seconds,b.call(r,r.media,"timeupdate")}),r.embed.on("progress",function(e){r.media.buffered=e.percent,b.call(r,r.media,"progress"),1===parseInt(e.percent,10)&&b.call(r,r.media,"canplaythrough"),r.embed.getDuration().then(function(e){e!==r.media.duration&&(r.media.duration=e,b.call(r,r.media,"durationchange"))})}),r.embed.on("seeked",function(){r.media.seeking=!1,b.call(r,r.media,"seeked")}),r.embed.on("ended",function(){r.media.paused=!0,b.call(r,r.media,"ended")}),r.embed.on("error",function(e){r.media.error=e,b.call(r,r.media,"error")}),r.on("enterfullscreen exitfullscreen",function(e){var t,i,n=r.fullscreen.target;n===r.elements.container&&(t="enterfullscreen"===e.type,e=(i=d(Ee.ratio.split(":").map(Number),2))[0],i=i[1],n.style[i<e?"width":"height"]=t?"".concat(Ee.padding,"%"):null)}),setTimeout(function(){return we.build.call(r)},0)}};function Le(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,b.call(this,this.media,e?"play":"pause"))}var Pe={setup:function(){var t=this;A(this.elements.wrapper,this.config.classNames.embed,!0),Pe.setAspectRatio.call(this),f.object(window.YT)&&f.function(window.YT.Player)?Pe.ready.call(this):(Se(this.config.urls.youtube.sdk).catch(function(e){t.debug.warn("YouTube API failed to load",e)}),window.onYouTubeReadyCallbacks=window.onYouTubeReadyCallbacks||[],window.onYouTubeReadyCallbacks.push(function(){Pe.ready.call(t)}),window.onYouTubeIframeAPIReady=function(){window.onYouTubeReadyCallbacks.forEach(function(e){e()})})},getTitle:function(e){var t=this;if(f.function(this.embed.getVideoData)){var i=this.embed.getVideoData().title;if(f.empty(i))return this.config.title=i,void we.setTitle.call(this)}i=this.config.keys.google;f.string(i)&&!f.empty(i)&&te(G(this.config.urls.youtube.api,e,i)).then(function(e){f.object(e)&&(t.config.title=e.items[0].snippet.title,we.setTitle.call(t))}).catch(function(){})},setAspectRatio:function(){var e=this.config.ratio.split(":");this.elements.wrapper.style.paddingBottom="".concat(100/e[0]*e[1],"%")},ready:function(){var o,e,t,s=this,i=s.media.getAttribute("id");!f.empty(i)&&i.startsWith("youtube-")||(e=s.media.getAttribute("src"),f.empty(e)&&(e=s.media.getAttribute(this.config.attributes.embed.id)),i=e,o=f.empty(i)?null:i.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:i,e=s.provider,e=T("div",{id:i="".concat(e,"-").concat(Math.floor(1e4*Math.random())),poster:s.poster}),s.media=E(e,s.media),be((t=function(e){return"https://img.youtube.com/vi/".concat(o,"/").concat(e,"default.jpg")})("maxres"),121).catch(function(){return be(t("sd"),121)}).catch(function(){return be(t("hq"))}).then(function(e){return we.setPoster.call(s,e.src)}).then(function(e){e.includes("maxres")||(s.elements.poster.style.backgroundSize="cover")}).catch(function(){}),s.embed=new window.YT.Player(i,{videoId:o,playerVars:{autoplay:s.config.autoplay?1:0,hl:s.config.hl,controls:s.supported.ui?0:1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,disablekb:1,playsinline:1,widget_referrer:window?window.location.href:null,cc_load_policy:s.captions.active?1:0,cc_lang_pref:s.config.captions.language},events:{onError:function(e){s.media.error||(e=e.data,s.media.error={code:e,message:{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."}[e]||"An unknown error occured"},b.call(s,s.media,"error"))},onPlaybackRateChange:function(e){e=e.target;s.media.playbackRate=e.getPlaybackRate(),b.call(s,s.media,"ratechange")},onReady:function(e){var t,i,n;f.function(s.media.play)||(t=e.target,Pe.getTitle.call(s,o),s.media.play=function(){Le.call(s,!0),t.playVideo()},s.media.pause=function(){Le.call(s,!1),t.pauseVideo()},s.media.stop=function(){t.stopVideo()},s.media.duration=t.getDuration(),s.media.paused=!0,s.media.currentTime=0,Object.defineProperty(s.media,"currentTime",{get:function(){return Number(t.getCurrentTime())},set:function(e){s.paused&&!s.embed.hasPlayed&&s.embed.mute(),s.media.seeking=!0,b.call(s,s.media,"seeking"),t.seekTo(e)}}),Object.defineProperty(s.media,"playbackRate",{get:function(){return t.getPlaybackRate()},set:function(e){t.setPlaybackRate(e)}}),i=s.config.volume,Object.defineProperty(s.media,"volume",{get:function(){return i},set:function(e){i=e,t.setVolume(100*i),b.call(s,s.media,"volumechange")}}),n=s.config.muted,Object.defineProperty(s.media,"muted",{get:function(){return n},set:function(e){e=f.boolean(e)?e:n;t[(n=e)?"mute":"unMute"](),b.call(s,s.media,"volumechange")}}),Object.defineProperty(s.media,"currentSrc",{get:function(){return t.getVideoUrl()}}),Object.defineProperty(s.media,"ended",{get:function(){return s.currentTime===s.duration}}),s.options.speed=t.getAvailablePlaybackRates(),s.supported.ui&&s.media.setAttribute("tabindex",-1),b.call(s,s.media,"timeupdate"),b.call(s,s.media,"durationchange"),clearInterval(s.timers.buffering),s.timers.buffering=setInterval(function(){s.media.buffered=t.getVideoLoadedFraction(),(null===s.media.lastBuffered||s.media.lastBuffered<s.media.buffered)&&b.call(s,s.media,"progress"),s.media.lastBuffered=s.media.buffered,1===s.media.buffered&&(clearInterval(s.timers.buffering),b.call(s,s.media,"canplaythrough"))},200),setTimeout(function(){return we.build.call(s)},50))},onStateChange:function(e){var t=e.target;switch(clearInterval(s.timers.playing),s.media.seeking&&[1,2].includes(e.data)&&(s.media.seeking=!1,b.call(s,s.media,"seeked")),e.data){case-1:b.call(s,s.media,"timeupdate"),s.media.buffered=t.getVideoLoadedFraction(),b.call(s,s.media,"progress");break;case 0:Le.call(s,!1),s.media.loop?(t.stopVideo(),t.playVideo()):b.call(s,s.media,"ended");break;case 1:s.media.paused&&!s.embed.hasPlayed?s.media.pause():(Le.call(s,!0),b.call(s,s.media,"playing"),s.timers.playing=setInterval(function(){b.call(s,s.media,"timeupdate")},50),s.media.duration!==t.getDuration()&&(s.media.duration=t.getDuration(),b.call(s,s.media,"durationchange")));break;case 2:s.muted||s.embed.unMute(),Le.call(s,!1)}b.call(s,s.elements.container,"statechange",!1,{code:e.data})}}}))}},Ae={setup:function(){this.media?(A(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),A(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&A(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=T("div",{class:this.config.classNames.video}),w(this.media,this.elements.wrapper),this.elements.poster=T("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?q.extend.call(this):this.isYouTube?Pe.setup.call(this):this.isVimeo&&Ee.setup.call(this)):this.debug.warn("No media element found!")}},Me=function(){function t(e){var i=this;l(this,t),this.player=e,this.publisherId=e.config.ads.publisherId,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 e(t,[{key:"load",value:function(){var e=this;this.enabled&&(f.object(window.google)&&f.object(window.google.ima)?this.ready():Se(this.player.config.urls.googleIMA.sdk).then(function(){e.ready()}).catch(function(){e.trigger("error",new Error("Google IMA SDK failed to load"))}))}},{key:"ready",value:function(){var e=this;this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(function(){e.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}},{key:"setupIMA",value:function(){this.elements.container=T("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container),this.requestAds()}},{key:"requestAds",value:function(){var t=this,e=this.player.elements.container;try{this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(e){return t.onAdsManagerLoaded(e)},!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return t.onAdError(e)},!1);var i=new google.ima.AdsRequest;i.adTagUrl=this.tagUrl,i.linearAdSlotWidth=e.offsetWidth,i.linearAdSlotHeight=e.offsetHeight,i.nonLinearAdSlotWidth=e.offsetWidth,i.nonLinearAdSlotHeight=e.offsetHeight,i.forceNonLinearFullSlot=!1,i.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(i)}catch(e){this.onAdError(e)}}},{key:"pollCountdown",value:function(){var t=this;if(!(0<arguments.length&&void 0!==arguments[0]&&arguments[0]))return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(function(){var e=oe(Math.max(t.manager.getRemainingTime(),0)),e="".concat(J("advertisement",t.player.config)," - ").concat(e);t.elements.container.setAttribute("data-badge-text",e)},100)}},{key:"onAdsManagerLoaded",value:function(e){var t,n=this;this.enabled&&((t=new google.ima.AdsRenderingSettings).restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),f.empty(this.cuePoints)||this.cuePoints.forEach(function(e){var t,i;0!==e&&-1!==e&&e<n.player.duration&&(t=n.player.elements.progress,f.element(t)&&(i=100/n.player.duration*e,(e=T("span",{class:n.player.config.classNames.cues})).style.left="".concat(i.toString(),"%"),t.appendChild(e)))}),this.manager.setVolume(this.player.volume),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return n.onAdError(e)}),Object.keys(google.ima.AdEvent.Type).forEach(function(e){n.manager.addEventListener(google.ima.AdEvent.Type[e],function(e){return n.onAdEvent(e)})}),this.trigger("loaded"))}},{key:"onAdEvent",value:function(e){function t(e){e="ads".concat(e.replace(/_/g,"").toLowerCase()),b.call(i.player,i.player.media,e)}var i=this,n=this.player.elements.container,o=e.getAd();switch(e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),t(e.type),this.pollCountdown(!0),o.isLinear()||(o.width=n.offsetWidth,o.height=n.offsetHeight);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:t(e.type),this.loadAds();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:t(e.type),this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:t(e.type),this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.STARTED:case google.ima.AdEvent.Type.MIDPOINT:case google.ima.AdEvent.Type.COMPLETE:case google.ima.AdEvent.Type.IMPRESSION:case google.ima.AdEvent.Type.CLICK:t(e.type)}}},{key:"onAdError",value:function(e){this.cancel(),this.player.debug.warn("Ads error",e)}},{key:"listeners",value:function(){var n,o=this,e=this.player.elements.container;this.player.on("ended",function(){o.loader.contentComplete()}),this.player.on("seeking",function(){return n=o.player.currentTime}),this.player.on("seeked",function(){var i=o.player.currentTime;f.empty(o.cuePoints)||o.cuePoints.forEach(function(e,t){n<e&&e<i&&(o.manager.discardAdBreak(),o.cuePoints.splice(t,1))})}),window.addEventListener("resize",function(){o.manager&&o.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)})}},{key:"play",value:function(){var t=this,e=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then(function(){t.elements.displayContainer.initialize();try{t.initialized||(t.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),t.manager.start()),t.initialized=!0}catch(e){t.onAdError(e)}}).catch(function(){})}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="",this.playing=!1,this.player.currentTime<this.player.duration&&this.player.play()}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3,this.playing=!0,this.player.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}},{key:"loadAds",value:function(){var t=this;this.managerPromise.then(function(){t.manager&&t.manager.destroy(),t.managerPromise=new Promise(function(e){t.on("loaded",e),t.player.debug.log(t.manager)}),t.requestAds()}).catch(function(){})}},{key:"trigger",value:function(e){for(var t=this,i=arguments.length,n=new Array(1<i?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];e=this.events[e];f.array(e)&&e.forEach(function(e){f.function(e)&&e.apply(t,n)})}},{key:"on",value:function(e,t){return f.array(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this}},{key:"startSafetyTimer",value:function(e,t){var i=this;this.player.debug.log("Safety timer invoked from: ".concat(t)),this.safetyTimer=setTimeout(function(){i.cancel(),i.clearSafetyTimer("startSafetyTimer()")},e)}},{key:"clearSafetyTimer",value:function(e){f.nullOrUndefined(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.ads.enabled&&!f.empty(this.publisherId)}},{key:"tagUrl",get:function(){var e={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:this.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(ae(e))}}]),t}(),Oe={insertElements:function(t,e){var i=this;f.string(e)?C(t,this.media,{src:e}):f.array(e)&&e.forEach(function(e){C(t,i.media,e)})},change:function(s){var r=this;U(s,"sources.length")?(q.cancelRequests.call(this),this.destroy.call(this,function(){r.options.quality=[],S(r.media),r.media=null,f.element(r.elements.container)&&r.elements.container.removeAttribute("class");var e=s.sources,t=s.type,i=d(e,1)[0],n=i.provider,o=void 0===n?he.html5:n,n=i.src,i="html5"===o?t:"div",n="html5"===o?{}:{src:n};Object.assign(r,{provider:o,type:t,supported:F.check(t,o,r.config.playsinline),media:T(i,n)}),r.elements.container.appendChild(r.media),f.boolean(s.autoplay)&&(r.config.autoplay=s.autoplay),r.isHTML5&&(r.config.crossorigin&&r.media.setAttribute("crossorigin",""),r.config.autoplay&&r.media.setAttribute("autoplay",""),f.empty(s.poster)||(r.poster=s.poster),r.config.loop.active&&r.media.setAttribute("loop",""),r.config.muted&&r.media.setAttribute("muted",""),r.config.playsinline&&r.media.setAttribute("playsinline","")),we.addStyleHook.call(r),r.isHTML5&&Oe.insertElements.call(r,"source",e),r.config.title=s.title,Ae.setup.call(r),r.isHTML5&&Object.keys(s).includes("tracks")&&Oe.insertElements.call(r,"track",s.tracks),(r.isHTML5||r.isEmbed&&!r.supported.ui)&&we.build.call(r),r.isHTML5&&r.media.load(),r.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},Ie=function(){function a(e,t){var i=this;if(l(this,a),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=F.touch,this.media=e,f.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||f.nodeList(this.media)||f.array(this.media))&&(this.media=this.media[0]),this.config=V({},ce,a.defaults,t||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container: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 ge(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",F),!f.nullOrUndefined(this.media)&&f.element(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(F.check().api){t=this.media.cloneNode(!0);t.autoplay=!1,this.elements.original=t;var n=this.media.tagName.toLowerCase(),o=null,s=null;switch(n){case"div":var r,o=this.media.querySelector("iframe");if(f.element(o)?(s=re(o.getAttribute("src")),this.provider=(r=s.toString(),/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.?be)\/.+$/.test(r)?he.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(r)?he.vimeo:null),this.elements.container=this.media,this.media=o,this.elements.container.className="",s.search.length&&((r=["1","true"]).includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),r.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=r.includes(s.searchParams.get("playsinline")),this.config.hl=s.searchParams.get("hl")):this.config.playsinline=!0)):(this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider)),f.empty(this.provider)||!Object.keys(he).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=fe;break;case"video":case"audio":this.type=n,this.provider=he.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=F.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new xe(this),this.storage=new ee(this),this.media.plyr=this,f.element(this.elements.container)||(this.elements.container=T("div"),w(this.media,this.elements.container)),we.addStyleHook.call(this),Ae.setup.call(this),this.config.debug&&v.call(this,this.elements.container,this.config.events.join(" "),function(e){i.debug.log("event: ".concat(e.type))}),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&we.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new _e(this),this.config.ads.enabled&&(this.ads=new Me(this)),this.config.autoplay&&this.play(),this.lastSeekTime=0):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 e(a,[{key:"play",value:function(){return f.function(this.media.play)?this.media.play():null}},{key:"pause",value:function(){this.playing&&f.function(this.media.pause)&&this.media.pause()}},{key:"togglePlay",value:function(e){(f.boolean(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):f.function(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime=this.currentTime-(f.number(e)?e:this.config.seekTime)}},{key:"forward",value:function(e){this.currentTime=this.currentTime+(f.number(e)?e:this.config.seekTime)}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(f.number(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){le.toggle.call(this,e,!1)}},{key:"airplay",value:function(){F.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(!this.supported.ui||this.isAudio)return!1;var t=M(this.elements.container,this.config.classNames.hideControls),e=A(this.elements.container,this.config.classNames.hideControls,void 0===e?void 0:!e);return e&&this.config.controls.includes("settings")&&!f.empty(this.config.settings)&&se.toggleMenu.call(this,!1),e!==t&&b.call(this,this.media,e?"controlshidden":"controlsshown"),!e}},{key:"on",value:function(e,t){v.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){_.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){y(this.elements.container,e,t)}},{key:"destroy",value:function(e){var t,i=this,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.ready&&(t=function(){document.body.style.overflow="",i.embed=null,n?(Object.keys(i.elements).length&&(S(i.elements.buttons.play),S(i.elements.captions),S(i.elements.controls),S(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),f.function(e)&&e()):(function(){this&&this.eventListeners&&(this.eventListeners.forEach(function(e){var t=e.element,i=e.type,n=e.callback,e=e.options;t.removeEventListener(i,n,e)}),this.eventListeners=[])}.call(i),E(i.elements.original,i.elements.container),b.call(i,i.elements.original,"destroyed",!0),f.function(e)&&e.call(i.elements.original),i.ready=!1,setTimeout(function(){i.elements=null,i.media=null},200))},this.stop(),this.isHTML5?(clearTimeout(this.timers.loading),we.toggleNativeControls.call(this,!0),t()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&f.function(this.embed.destroy)&&this.embed.destroy(),t()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(t),setTimeout(t,200)))}},{key:"supports",value:function(e){return F.mime.call(this,e)}},{key:"isHTML5",get:function(){return Boolean(this.provider===he.html5)}},{key:"isEmbed",get:function(){return Boolean(this.isYouTube||this.isVimeo)}},{key:"isYouTube",get:function(){return Boolean(this.provider===he.youtube)}},{key:"isVimeo",get:function(){return Boolean(this.provider===he.vimeo)}},{key:"isVideo",get:function(){return Boolean(this.type===fe)}},{key:"isAudio",get:function(){return Boolean(this.type===pe)}},{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){var t;this.duration&&(t=f.number(e)&&0<e,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 f.number(e)?e:e&&e.length&&0<this.duration?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,t=f.number(t)&&t!==1/0?t:0;return e||t}},{key:"volume",set:function(e){var t=e;f.string(t)&&(t=Number(t)),f.number(t)||(t=this.storage.get("volume")),f.number(t)||(t=this.config.volume),this.config.volume=t=(t=1<t?1:t)<0?0:t,this.media.volume=t,!f.empty(e)&&this.muted&&0<t&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){f.boolean(e)||(e=this.storage.get("muted")),f.boolean(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e},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=null;f.number(e)&&(t=e),f.number(t)||(t=this.storage.get("speed")),f.number(t)||(t=this.config.speed.selected),this.config.speed.options.includes(t=2<(t=t<.1?.1:t)?2:t)?(this.config.speed.selected=t,this.media.playbackRate=t):this.debug.warn("Unsupported speed (".concat(t,")"))},get:function(){return Number(this.media.playbackRate)}},{key:"quality",set:function(e){var t,i,n=this.config.quality,o=this.options.quality;o.length&&(t=[!f.empty(e)&&Number(e),this.storage.get("quality"),n.selected,n.default].find(f.number),e=!0,o.includes(t)||(o=o,i=t,o=f.array(o)&&o.length?o.reduce(function(e,t){return Math.abs(t-i)<Math.abs(e-i)?t:e}):null,this.debug.warn("Unsupported quality option: ".concat(t,", using ").concat(o," instead")),t=o,e=!1),n.selected=t,this.media.quality=t,e&&this.storage.set({quality:t}))},get:function(){return this.media.quality}},{key:"loop",set:function(e){e=f.boolean(e)?e:this.config.loop.active;this.config.loop.active=e,this.media.loop=e},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){Oe.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return f.url(e)?e:this.source}},{key:"poster",set:function(e){this.isVideo?we.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"):null}},{key:"autoplay",set:function(e){e=f.boolean(e)?e:this.config.autoplay;this.config.autoplay=e},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){le.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,e=e.currentTrack;return t?e:-1}},{key:"language",set:function(e){le.setLanguage.call(this,e,!1)},get:function(){return(le.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){F.pip&&(e=f.boolean(e)?e:!this.pip,f.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?ue:de),f.function(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture()))},get:function(){return F.pip?f.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===ue:null}}],[{key:"supported",value:function(e,t,i){return F.check(e,t,i)}},{key:"loadSprite",value:ie},{key:"setup",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;return f.string(e)?i=Array.from(document.querySelectorAll(e)):f.nodeList(e)?i=Array.from(e):f.array(e)&&(i=e.filter(f.element)),f.empty(i)?null:i.map(function(e){return new a(e,t)})}}]),a}();return Ie.defaults=JSON.parse(JSON.stringify(ce)),Ie}),"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):e.Plyr=t()}(this,function(){"use strict";!function(){if("undefined"!=typeof window)try{var t=new window.CustomEvent("test",{cancelable:!0});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default")}catch(e){t=function(e,t){var i,n;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(i=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n=i.preventDefault,i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},i};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}!function(t){function n(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function o(e){return encodeURIComponent(e).replace(/%20/g,"+")}function s(e){return decodeURIComponent(e).replace(/\+/g," ")}var i=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),e=function(){function r(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"!=t)if("string"==t)""!==e&&this._fromString(e);else if(e instanceof r){var i=this;e.forEach(function(e,t){i.append(t,e)})}else{if(null===e||"object"!=t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var n=0;n<e.length;n++){var o=e[n];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+n+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var s in e)e.hasOwnProperty(s)&&this.append(s,e[s])}}var e=r.prototype;e.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},e.delete=function(e){delete this._entries[e]},e.get=function(e){return e in this._entries?this._entries[e][0]:null},e.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},e.has=function(e){return e in this._entries},e.set=function(e,t){this._entries[e]=[String(t)]},e.forEach=function(e,t){for(var i in this._entries)if(this._entries.hasOwnProperty(i))for(var n=this._entries[i],o=0;o<n.length;o++)e.call(t,n[o],i,this)},e.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),n(i)},e.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),n(t)},e.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),n(i)},i&&(e[Symbol.iterator]=e.entries),e.toString=function(){var i=[];return this.forEach(function(e,t){i.push(o(t)+"="+o(e))}),i.join("&")},t.URLSearchParams=r};"URLSearchParams"in t&&"a=1"===new URLSearchParams("?a=1").toString()||e();e=URLSearchParams.prototype;"function"!=typeof e.sort&&(e.sort=function(){var i=this,n=[];this.forEach(function(e,t){n.push([t,e]),i._entries||i.delete(t)}),n.sort(function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0}),i._entries&&(i._entries={});for(var e=0;e<n.length;e++)this.append(n[e][0],n[e][1])}),"function"!=typeof e._fromString&&Object.defineProperty(e,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var i=[];this.forEach(function(e,t){i.push(t)});for(var t=0;t<i.length;t++)this.delete(i[t])}for(var n,o=(e=e.replace(/^\?/,"")).split("&"),t=0;t<o.length;t++)n=o[t].split("="),this.append(s(n[0]),1<n.length?s(n[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),function(c){function e(){function e(e,t){"string"!=typeof e&&(e=String(e));var i,n=document;if(t&&(void 0===c.location||t!==c.location.href)){(i=(n=document.implementation.createHTMLDocument("")).createElement("base")).href=t,n.head.appendChild(i);try{if(0!==i.href.indexOf(t))throw new Error(i.href)}catch(e){throw new Error("URL unable to set base "+t+" due to "+e)}}if((t=n.createElement("a")).href=e,i&&(n.body.appendChild(t),t.href=t.href),":"===t.protocol||!/:/.test(t.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:t});var o=new URLSearchParams(this.search),s=!0,r=!0,a=this;["append","delete","set"].forEach(function(e){var t=o[e];o[e]=function(){t.apply(o,arguments),s&&(r=!1,a.search=o.toString(),r=!0)}}),Object.defineProperty(this,"searchParams",{value:o,enumerable:!0});var l=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==l&&(l=this.search,r&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})}var t=c.URL,i=e.prototype;["hash","host","hostname","port","protocol"].forEach(function(e){var t;t=e,Object.defineProperty(i,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}),Object.defineProperty(i,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(i,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),e.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},e.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},c.URL=e}if(!function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return!1}}()&&e(),void 0!==c.location&&!("origin"in c.location)){var t=function(){return c.location.protocol+"//"+c.location.hostname+(c.location.port?":"+c.location.port:"")};try{Object.defineProperty(c.location,"origin",{get:t,enumerable:!0})}catch(e){setInterval(function(){c.location.origin=t()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e);function v(e){try{return!!e()}catch(e){return!0}}function i(e){return r?o.createElement(e):{}}function p(e,t,i){var n,o,s,r=e&p.F,a=e&p.G,l=e&p.P,c=e&p.B,u=a?y:e&p.S?y[t]||(y[t]={}):(y[t]||{})[k],d=a?f:f[t]||(f[t]={}),h=d[k]||(d[k]={});for(n in i=a?t:i)o=((s=!r&&u&&void 0!==u[n])?u:i)[n],s=c&&s?_(o,y):l&&"function"==typeof o?_(Function.call,o):o,u&&S(u,n,o,e&p.U),d[n]!=o&&T(d,n,s),l&&h[n]!=o&&(h[n]=o)}var s=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},_=function(n,o,e){if(s(n),void 0===o)return n;switch(e){case 1:return function(e){return n.call(o,e)};case 2:return function(e,t){return n.call(o,e,t)};case 3:return function(e,t,i){return n.call(o,e,t,i)}}return function(){return n.apply(o,arguments)}},y=t(function(e){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),f=t(function(e){e=e.exports={version:"2.6.2"};"number"==typeof __e&&(__e=e)}),b=(f.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),x=function(e){if(!b(e))throw TypeError(e+" is not an object!");return e},n=!v(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),o=y.document,r=b(o)&&b(o.createElement),a=!n&&!v(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}),c=function(e,t){if(!b(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!b(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!b(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!b(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")},l=Object.defineProperty,u={f:n?Object.defineProperty:function(e,t,i){if(x(e),t=c(t,!0),x(i),a)try{return l(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T=n?function(e,t,i){return u.f(e,t,w(1,i))}:function(e,t,i){return e[t]=i,e},d={}.hasOwnProperty,h=function(e,t){return d.call(e,t)},m=0,g=Math.random(),C=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++m+g).toString(36))},S=t(function(e){var s=C("src"),t="toString",i=Function[t],r=(""+i).split(t);f.inspectSource=function(e){return i.call(e)},(e.exports=function(e,t,i,n){var o="function"==typeof i;o&&(h(i,"name")||T(i,"name",t)),e[t]!==i&&(o&&(h(i,s)||T(i,s,e[t]?""+e[t]:r.join(String(t)))),e===y?e[t]=i:n?e[t]?e[t]=i:T(e,t,i):(delete e[t],T(e,t,i)))})(Function.prototype,t,function(){return"function"==typeof this&&this[s]||i.call(this)})}),k="prototype";y.core=f,p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128;function E(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}function L(e){return Object(E(e))}function P(t,e,i,n){try{return n?e(x(i)[0],i[1]):e(i)}catch(e){i=t.return;throw void 0!==i&&x(i.call(t)),e}}function A(e){return void 0!==e&&(D.Array===e||j[$]===e)}function M(e){return 0<e?q(F(e),9007199254740991):0}function O(e,t,i){t in e?u.f(e,t,w(0,i)):e[t]=i}function I(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(e=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),V))?e:G?U(t):"Object"==(e=U(t))&&"function"==typeof t.callee?"Arguments":e}var z=p,D={},N=t(function(e){var t="__core-js_shared__",i=y[t]||(y[t]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:f.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),B=t(function(e){var t=N("wks"),i=y.Symbol,n="function"==typeof i;(e.exports=function(e){return t[e]||(t[e]=n&&i[e]||(n?i:C)("Symbol."+e))}).store=t}),$=B("iterator"),j=Array.prototype,R=Math.ceil,H=Math.floor,F=function(e){return isNaN(e=+e)?0:(0<e?H:R)(e)},q=Math.min,W={}.toString,U=function(e){return W.call(e).slice(8,-1)},V=B("toStringTag"),G="Arguments"==U(function(){return arguments}()),Z=B("iterator"),Y=f.getIteratorMethod=function(e){if(null!=e)return e[Z]||e["@@iterator"]||D[I(e)]},X=B("iterator"),K=!1;try{[7][X]().return=function(){K=!0}}catch(e){}function Q(e,t){if(!t&&!K)return!1;var i=!1;try{var n=[7],o=n[X]();o.next=function(){return{done:i=!0}},n[X]=function(){return o},e(n)}catch(e){}return i}z(z.S+z.F*!Q(function(e){}),"Array",{from:function(e){var t,i,n,o,s=L(e),r="function"==typeof this?this:Array,a=arguments.length,l=1<a?arguments[1]:void 0,c=void 0!==l,u=0,e=Y(s);if(c&&(l=_(l,2<a?arguments[2]:void 0,2)),null==e||r==Array&&A(e))for(i=new r(t=M(s.length));u<t;u++)O(i,u,c?l(s[u],u):s[u]);else for(o=e.call(s),i=new r;!(n=o.next()).done;u++)O(i,u,c?P(o,l,[n.value,u],!0):n.value);return i.length=u,i}});function J(e,t){return new(oe(e))(t)}function ee(d,e){var h=1==d,p=2==d,f=3==d,m=4==d,g=6==d,v=5==d||g,y=e||J;return function(e,t,i){for(var n,o,s=L(e),r=te(s),a=_(t,i,3),l=M(r.length),c=0,u=h?y(e,l):p?y(e,0):void 0;c<l;c++)if((v||c in r)&&(o=a(n=r[c],c,s),d))if(h)u[c]=o;else if(o)switch(d){case 3:return!0;case 5:return n;case 6:return c;case 2:u.push(n)}else if(m)return!1;return g?-1:f||m?m:u}}var te=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==U(e)?e.split(""):Object(e)},ie=Array.isArray||function(e){return"Array"==U(e)},ne=B("species"),oe=function(e){var t;return ie(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!ie(t.prototype)||(t=void 0),b(t)&&null===(t=t[ne])&&(t=void 0)),void 0===t?Array:t},se=B("unscopables"),re=Array.prototype;null==re[se]&&T(re,se,{});var ae=function(e){re[se][e]=!0},le=ee(5),ce=!0;"find"in[]&&Array(1).find(function(){ce=!1}),z(z.P+z.F*ce,"Array",{find:function(e){return le(this,e,1<arguments.length?arguments[1]:void 0)}}),ae("find");function ue(e){return te(E(e))}function de(e,t){if(x(e),!b(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}function he(e,t,i){var n;return(t=t.constructor)!==i&&"function"==typeof t&&(n=t.prototype)!==i.prototype&&b(n)&&_e&&_e(e,n),e}function pe(e,t){var i,n=ue(e),o=0,s=[];for(i in n)i!=ke&&h(n,i)&&s.push(i);for(;t.length>o;)h(n,i=t[o++])&&(~Se(s,i)||s.push(i));return s}function fe(){}function me(e){if("string"==typeof(t=c(e,!1))&&2<t.length){var t,i,n,o=(t=Ke?t.trim():Ve(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(e=t.charCodeAt(2))||120===e)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:i=2,n=49;break;case 79:case 111:i=8,n=55;break;default:return+t}for(var s,r=t.slice(2),a=0,l=r.length;a<l;a++)if((s=r.charCodeAt(a))<48||n<s)return NaN;return parseInt(r,i)}}return+t}var ge={f:{}.propertyIsEnumerable},ve=Object.getOwnPropertyDescriptor,ye={f:n?ve:function(e,t){if(e=ue(e),t=c(t,!0),a)try{return ve(e,t)}catch(e){}if(h(e,t))return w(!ge.f.call(e,t),e[t])}},_e={set:Object.setPrototypeOf||("__proto__"in{}?function(e,i,n){try{(n=_(Function.call,ye.f(Object.prototype,"__proto__").set,2))(e,[]),i=!(e instanceof Array)}catch(e){i=!0}return function(e,t){return de(e,t),i?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:de}.set,be=Math.max,we=Math.min,xe=function(a){return function(e,t,i){var n,o=ue(e),s=M(o.length),r=(e=s,(i=F(i=i))<0?be(i+e,0):we(i,e));if(a&&t!=t){for(;r<s;)if((n=o[r++])!=n)return!0}else for(;r<s;r++)if((a||r in o)&&o[r]===t)return a||r||0;return!a&&-1}},Te=N("keys"),Ce=function(e){return Te[e]||(Te[e]=C(e))},Se=xe(!1),ke=Ce("IE_PROTO"),Ee="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Le=Ee.concat("length","prototype"),Pe={f:Object.getOwnPropertyNames||function(e){return pe(e,Le)}},Ae="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff",Me="["+Ae+"]",Oe=RegExp("^"+Me+Me+"*"),Ie=RegExp(Me+Me+"*$"),ze=function(e,t,i){var n={},o=v(function(){return Ae[e]()||"​"!="​"[e]()}),t=n[e]=o?t(De):Ae[e];i&&(n[i]=t),z(z.P+z.F*o,"String",n)},De=ze.trim=function(e,t){return e=String(E(e)),1&t&&(e=e.replace(Oe,"")),e=2&t?e.replace(Ie,""):e},Ne=ze,Be=Object.keys||function(e){return pe(e,Ee)},$e=n?Object.defineProperties:function(e,t){x(e);for(var i,n=Be(t),o=n.length,s=0;s<o;)u.f(e,i=n[s++],t[i]);return e},e=y.document,je=e&&e.documentElement,Re=Ce("IE_PROTO"),He="prototype",Fe=function(){var e=i("iframe"),t=Ee.length;for(e.style.display="none",je.appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),Fe=e.F;t--;)delete Fe[He][Ee[t]];return Fe()},qe=Object.create||function(e,t){var i;return null!==e?(fe[He]=x(e),i=new fe,fe[He]=null,i[Re]=e):i=Fe(),void 0===t?i:$e(i,t)},Me=Pe.f,We=ye.f,Ue=u.f,Ve=Ne.trim,Ge="Number",Ze=Je=y[Ge],Ye=Je.prototype,Xe=U(qe(Ye))==Ge,Ke="trim"in String.prototype;if(!Je(" 0o1")||!Je("0b1")||Je("+0x1")){for(var Qe,Je=function(e){var e=arguments.length<1?0:e,t=this;return t instanceof Je&&(Xe?v(function(){Ye.valueOf.call(t)}):U(t)!=Ge)?he(new Ze(me(e)),t,Je):me(e)},et=n?Me(Ze):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),tt=0;et.length>tt;tt++)h(Ze,Qe=et[tt])&&!h(Je,Qe)&&Ue(Je,Qe,We(Ze,Qe));(Je.prototype=Ye).constructor=Je,S(y,Ge,Je)}var it,nt,ot,st;it="keys",nt=function(){return function(e){return Be(L(e))}},ot=(f.Object||{})[it]||Object[it],(st={})[it]=nt(ot),z(z.S+z.F*v(function(){ot(1)}),"Object",st);function rt(e){var t;return b(e)&&(void 0!==(t=e[lt])?!!t:"RegExp"==U(e))}function at(e,t,i){if(rt(t))throw TypeError("String#"+i+" doesn't accept regex!");return String(E(e))}var lt=B("match"),ct=B("match"),ze=function(t){var i=/./;try{"/./"[t](i)}catch(e){try{return i[ct]=!1,!"/./"[t](i)}catch(e){}}return!0};z(z.P+z.F*ze("includes"),"String",{includes:function(e){return!!~at(this,e,"includes").indexOf(e,1<arguments.length?arguments[1]:void 0)}});var ut=xe(!0);z(z.P,"Array",{includes:function(e){return ut(this,e,1<arguments.length?arguments[1]:void 0)}}),ae("includes");function dt(e,t){var i=e.exec;if("function"==typeof i){i=i.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==I(e))throw new TypeError("RegExp#exec called on incompatible receiver");return ft.call(e,t)}function ht(){var e=x(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}var pt=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},ft=RegExp.prototype.exec,mt=RegExp.prototype.exec,gt=String.prototype.replace,e=mt,vt="lastIndex",yt=(Ne=/a/,Me=/b*/g,mt.call(Ne,"a"),mt.call(Me,"a"),0!==Ne[vt]||0!==Me[vt]),_t=void 0!==/()??/.exec("")[1],bt=e=yt||_t?function(e){var t,i,n,o;return _t&&(i=new RegExp("^"+this.source+"$(?!\\s)",ht.call(this))),yt&&(t=this[vt]),n=mt.call(this,e),yt&&n&&(this[vt]=this.global?n.index+n[0].length:t),_t&&n&&1<n.length&&gt.call(n[0],i,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n}:e;z({target:"RegExp",proto:!0,forced:bt!==/./.exec},{exec:bt});var wt=B("species"),xt=!v(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),Tt=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};e="ab".split(e);return 2===e.length&&"a"===e[0]&&"b"===e[1]}(),xe=function(i,e,t){var s,n,o=B(i),r=!v(function(){var e={};return e[o]=function(){return 7},7!=""[i](e)}),a=r?!v(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},"split"===i&&(t.constructor={},t.constructor[wt]=function(){return t}),t[o](""),!e}):void 0;r&&a&&("replace"!==i||xt)&&("split"!==i||Tt)||(s=/./[o],t=(a=t(E,o,""[i],function(e,t,i,n,o){return t.exec===bt?r&&!o?{done:!0,value:s.call(t,i,n)}:{done:!0,value:e.call(i,t,n)}:{done:!1}}))[0],n=a[1],S(String.prototype,i,t),T(RegExp.prototype,o,2==e?function(e,t){return n.call(e,this,t)}:function(e){return n.call(e,this)}))};xe("search",1,function(n,o,s,r){return[function(e){var t=n(this),i=null==e?void 0:e[o];return void 0!==i?i.call(e,t):new RegExp(e)[o](String(t))},function(e){var t=r(s,e,this);if(t.done)return t.value;var i=x(e),t=String(this),e=i.lastIndex;pt(e,0)||(i.lastIndex=0);t=dt(i,t);return pt(i.lastIndex,e)||(i.lastIndex=e),null===t?-1:t.index}]}),n&&"g"!=/./g.flags&&u.f(RegExp.prototype,"flags",{configurable:!0,get:ht});var Ct="toString",St=/./[Ct],Ne=function(e){S(RegExp.prototype,Ct,e,!0)};v(function(){return"/a/b"!=St.call({source:"a",flags:"b"})})?Ne(function(){var e=x(this);return"/".concat(e.source,"/","flags"in e?e.flags:!n&&e instanceof RegExp?ht.call(e):void 0)}):St.name!=Ct&&Ne(function(){return St.call(this)});function kt(e,t){return{value:t,done:!!e}}var Et=u.f,Lt=B("toStringTag"),Pt=function(e,t,i){e&&!h(e=i?e:e.prototype,Lt)&&Et(e,Lt,{configurable:!0,value:t})},At={};T(At,B("iterator"),function(){return this});function Mt(){return this}var Ot=Ce("IE_PROTO"),It=Object.prototype,zt=Object.getPrototypeOf||function(e){return e=L(e),h(e,Ot)?e[Ot]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?It:null},Dt=B("iterator"),Nt=!([].keys&&"next"in[].keys()),Bt="values",Me=function(e,t,i,n,o,s,r){v=t,(g=i).prototype=qe(At,{next:w(1,n)}),Pt(g,v+" Iterator");function a(e){if(!Nt&&e in f)return f[e];switch(e){case"keys":case Bt:return function(){return new i(this,e)}}return function(){return new i(this,e)}}var l,c,u,d=t+" Iterator",h=o==Bt,p=!1,f=e.prototype,m=f[Dt]||f["@@iterator"]||o&&f[o],n=m||a(o),g=o?h?a("entries"):n:void 0,v="Array"==t&&f.entries||m;if(v&&(u=zt(v.call(new e)))!==Object.prototype&&u.next&&(Pt(u,d,!0),"function"!=typeof u[Dt]&&T(u,Dt,Mt)),h&&m&&m.name!==Bt&&(p=!0,n=function(){return m.call(this)}),!Nt&&!p&&f[Dt]||T(f,Dt,n),D[t]=n,D[d]=Mt,o)if(l={values:h?n:a(Bt),keys:s?n:a("keys"),entries:g},r)for(c in l)c in f||S(f,c,l[c]);else z(z.P+z.F*(Nt||p),t,l);return l},$t=Me(Array,"Array",function(e,t){this._t=ue(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,i=this._i++;return!e||i>=e.length?(this._t=void 0,kt(1)):kt(0,"keys"==t?i:"values"==t?e[i]:[i,e[i]])},"values");D.Arguments=D.Array,ae("keys"),ae("values"),ae("entries");for(var jt=B("iterator"),Rt=B("toStringTag"),Ht=D.Array,Ft={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},qt=Be(Ft),Wt=0;Wt<qt.length;Wt++){var Ut,Vt=qt[Wt],Gt=Ft[Vt],Zt=y[Vt],Yt=Zt&&Zt.prototype;if(Yt&&(Yt[jt]||T(Yt,jt,Ht),Yt[Rt]||T(Yt,Rt,Vt),D[Vt]=Ht,Gt))for(Ut in $t)Yt[Ut]||S(Yt,Ut,$t[Ut],!0)}var e=function(s){return function(e,t){var i,n=String(E(e)),o=F(t),e=n.length;return o<0||e<=o?s?"":void 0:(t=n.charCodeAt(o))<55296||56319<t||o+1===e||(i=n.charCodeAt(o+1))<56320||57343<i?s?n.charAt(o):t:s?n.slice(o,o+2):i-56320+(t-55296<<10)+65536}},Xt=e(!0);Me(String,"String",function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i;return t>=e.length?{value:void 0,done:!0}:(t=Xt(e,t),this._i+=t.length,{value:t,done:!1})});function Kt(e,t,i){for(var n in t)S(e,n,t[n],i);return e}function Qt(e,t,i,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(i+": incorrect invocation!");return e}function Jt(e,t){if(!b(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}function ei(e){return e._l||(e._l=new ti)}function ti(){this.a=[]}function ii(e,t){return ci(e.a,function(e){return e[0]===t})}var ni=t(function(e){function i(e){t(e,n,{value:{i:"O"+ ++o,w:{}}})}var n=C("meta"),t=u.f,o=0,s=Object.isExtensible||function(){return!0},r=!v(function(){return s(Object.preventExtensions({}))}),a=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!b(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!h(e,n)){if(!s(e))return"F";if(!t)return"E";i(e)}return e[n].i},getWeak:function(e,t){if(!h(e,n)){if(!s(e))return!0;if(!t)return!1;i(e)}return e[n].w},onFreeze:function(e){return r&&a.NEED&&s(e)&&!h(e,n)&&i(e),e}}}),oi=(ni.KEY,ni.NEED,ni.fastKey,ni.getWeak,ni.onFreeze,{f:Object.getOwnPropertySymbols}),si=Object.assign,ri=!si||v(function(){var e={},t={},i=Symbol(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach(function(e){t[e]=e}),7!=si({},e)[i]||Object.keys(si({},t)).join("")!=n})?function(e,t){for(var i=L(e),n=arguments.length,o=1,s=oi.f,r=ge.f;o<n;)for(var a,l=te(arguments[o++]),c=s?Be(l).concat(s(l)):Be(l),u=c.length,d=0;d<u;)r.call(l,a=c[d++])&&(i[a]=l[a]);return i}:si,ai=t(function(e){var d={},h={},e=e.exports=function(e,t,i,n,o){var s,r,a,l,o=o?function(){return e}:Y(e),c=_(i,n,t?2:1),u=0;if("function"!=typeof o)throw TypeError(e+" is not iterable!");if(A(o)){for(s=M(e.length);u<s;u++)if((l=t?c(x(r=e[u])[0],r[1]):c(e[u]))===d||l===h)return l}else for(a=o.call(e);!(r=a.next()).done;)if((l=P(a,c,r.value,t))===d||l===h)return l};e.BREAK=d,e.RETURN=h}),li=ni.getWeak,ci=ee(5),ui=ee(6),di=0;ti.prototype={get:function(e){e=ii(this,e);if(e)return e[1]},has:function(e){return!!ii(this,e)},set:function(e,t){var i=ii(this,e);i?i[1]=t:this.a.push([e,t])},delete:function(t){var e=ui(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}};function hi(i,e,t,n,o,s){function r(e){var i=m[e];S(m,e,"delete"==e?function(e){return!(s&&!b(e))&&i.call(this,0===e?0:e)}:"has"==e?function(e){return!(s&&!b(e))&&i.call(this,0===e?0:e)}:"get"==e?function(e){return s&&!b(e)?void 0:i.call(this,0===e?0:e)}:"add"==e?function(e){return i.call(this,0===e?0:e),this}:function(e,t){return i.call(this,0===e?0:e,t),this})}var a,l,c,u,d,h=y[i],p=h,f=o?"set":"add",m=p&&p.prototype,g={};return"function"==typeof p&&(s||m.forEach&&!v(function(){(new p).entries().next()}))?(l=(a=new p)[f](s?{}:-0,1)!=a,c=v(function(){a.has(1)}),u=Q(function(e){new p(e)}),d=!s&&v(function(){for(var e=new p,t=5;t--;)e[f](t,t);return!e.has(-0)}),u||(((p=e(function(e,t){Qt(e,p,i);e=he(new h,e,p);return null!=t&&ai(t,o,e[f],e),e})).prototype=m).constructor=p),(c||d)&&(r("delete"),r("has"),o&&r("get")),(d||l)&&r(f),s&&m.clear&&delete m.clear):(p=n.getConstructor(e,i,o,f),Kt(p.prototype,t),ni.NEED=!0),Pt(p,i),g[i]=p,z(z.G+z.W+z.F*(p!=h),g),s||n.setStrong(p,i,o),p}var pi={getConstructor:function(e,i,n,o){var s=e(function(e,t){Qt(e,s,i,"_i"),e._t=i,e._i=di++,e._l=void 0,null!=t&&ai(t,n,e[o],e)});return Kt(s.prototype,{delete:function(e){if(!b(e))return!1;var t=li(e);return!0===t?ei(Jt(this,i)).delete(e):t&&h(t,this._i)&&delete t[this._i]},has:function(e){if(!b(e))return!1;var t=li(e);return!0===t?ei(Jt(this,i)).has(e):t&&h(t,this._i)}}),s},def:function(e,t,i){var n=li(x(t),!0);return!0===n?ei(e).set(t,i):n[e._i]=i,e},ufstore:ei};t(function(e){function t(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}}var o,i=ee(0),n="WeakMap",s=ni.getWeak,r=Object.isExtensible,a=pi.ufstore,l={},c={get:function(e){if(b(e)){var t=s(e);return!0===t?a(Jt(this,n)).get(e):t?t[this._i]:void 0}},set:function(e,t){return pi.def(Jt(this,n),e,t)}},u=e.exports=hi(n,t,c,pi,!0,!0);v(function(){return 7!=(new u).set((Object.freeze||Object)(l),7).get(l)})&&(o=pi.getConstructor(t,n),ri(o.prototype,c),ni.NEED=!0,i(["delete","has","get","set"],function(i){var e=u.prototype,n=e[i];S(e,i,function(e,t){if(!b(e)||r(e))return n.call(this,e,t);this._f||(this._f=new o);t=this._f[i](e,t);return"set"==i?this:t})}))});function fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mi(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gi(e,t,i){return t&&mi(e.prototype,t),i&&mi(e,i),e}function vi(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function yi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=[],n=!0,o=!1,s=void 0;try{for(var r,a=e[Symbol.iterator]();!(n=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(e){o=!0,s=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw s}}return i}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function _i(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var bi,wi,xi=[].sort,Ti=[1,2,3];z(z.P+z.F*(v(function(){Ti.sort(void 0)})||!v(function(){Ti.sort(null)})||!(!!(bi=xi)&&v(function(){wi?bi.call(null,function(){},1):bi.call(null)}))),"Array",{sort:function(e){return void 0===e?xi.call(L(this)):xi.call(L(this),s(e))}}),z(z.S+z.F,"Object",{assign:ri});function Ci(e,t){var i;return void 0===(e=x(e).constructor)||null==(i=x(e)[ki])?t:s(i)}function Si(e,t,i){return t+(i?Ei(e,t).length:1)}var ki=B("species"),Ei=e(!0),Li=Math.min,Pi=[].push,Ai="split",Mi="length",Oi="lastIndex",Ii=!!function(){try{return new RegExp("x","y")}catch(e){}}();xe("split",2,function(o,s,f,m){var g="c"=="abbc"[Ai](/(b)*/)[1]||4!="test"[Ai](/(?:)/,-1)[Mi]||2!="ab"[Ai](/(?:ab)*/)[Mi]||4!="."[Ai](/(.?)(.?)/)[Mi]||1<"."[Ai](/()()/)[Mi]||""[Ai](/.?/)[Mi]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!rt(e))return f.call(i,e,t);for(var n,o,s,r=[],a=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=void 0===t?4294967295:t>>>0,u=new RegExp(e.source,a+"g");(n=bt.call(u,i))&&!(l<(o=u[Oi])&&(r.push(i.slice(l,n.index)),1<n[Mi]&&n.index<i[Mi]&&Pi.apply(r,n.slice(1)),s=n[0][Mi],l=o,r[Mi]>=c));)u[Oi]===n.index&&u[Oi]++;return l===i[Mi]?!s&&u.test("")||r.push(""):r.push(i.slice(l)),r[Mi]>c?r.slice(0,c):r}:"0"[Ai](void 0,0)[Mi]?function(e,t){return void 0===e&&0===t?[]:f.call(this,e,t)}:f;return[function(e,t){var i=o(this),n=null==e?void 0:e[s];return void 0!==n?n.call(e,i,t):g.call(String(i),e,t)},function(e,t){var i=m(g,e,this,t,g!==f);if(i.done)return i.value;var n=x(e),o=String(this),i=Ci(n,RegExp),s=n.unicode,e=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Ii?"y":"g"),r=new i(Ii?n:"^(?:"+n.source+")",e),a=void 0===t?4294967295:t>>>0;if(0==a)return[];if(0===o.length)return null===dt(r,o)?[o]:[];for(var l=0,c=0,u=[];c<o.length;){r.lastIndex=Ii?c:0;var d,h=dt(r,Ii?o:o.slice(c));if(null===h||(d=Li(M(r.lastIndex+(Ii?0:c)),o.length))===l)c=Si(o,c,s);else{if(u.push(o.slice(l,c)),u.length===a)return u;for(var p=1;p<=h.length-1;p++)if(u.push(h[p]),u.length===a)return u;c=l=d}}return u.push(o.slice(l)),u}]});var zi=ge.f,Ne=function(a){return function(e){for(var t,i=ue(e),n=Be(i),o=n.length,s=0,r=[];s<o;)zi.call(i,t=n[s++])&&r.push(a?[t,i[t]]:i[t]);return r}},Di=Ne(!0);z(z.S,"Object",{entries:function(e){return Di(e)}});var Ni=Ne(!1);z(z.S,"Object",{values:function(e){return Ni(e)}});var Bi=Math.max,$i=Math.min,ji=Math.floor,Ri=/\$([$&`']|\d\d?|<[^>]*>)/g,Hi=/\$([$&`']|\d\d?)/g;xe("replace",2,function(o,s,b,w){return[function(e,t){var i=o(this),n=null==e?void 0:e[s];return void 0!==n?n.call(e,i,t):b.call(String(i),e,t)},function(e,t){var i=w(b,e,this,t);if(i.done)return i.value;var n=x(e),o=String(this),s="function"==typeof t;s||(t=String(t));var r,a=n.global;a&&(r=n.unicode,n.lastIndex=0);for(var l=[];;){if(null===(p=dt(n,o)))break;if(l.push(p),!a)break;""===String(p[0])&&(n.lastIndex=Si(o,M(n.lastIndex),r))}for(var c,u="",d=0,h=0;h<l.length;h++){for(var p=l[h],f=String(p[0]),m=Bi($i(F(p.index),o.length),0),g=[],v=1;v<p.length;v++)g.push(void 0===(c=p[v])?c:String(c));var y,_=p.groups,_=s?(y=[f].concat(g,m,o),void 0!==_&&y.push(_),String(t.apply(void 0,y))):function(s,r,a,l,c,e){var u=a+s.length,d=l.length,t=Hi;void 0!==c&&(c=L(c),t=Ri);return b.call(e,t,function(e,t){var i;switch(t.charAt(0)){case"$":return"$";case"&":return s;case"`":return r.slice(0,a);case"'":return r.slice(u);case"<":i=c[t.slice(1,-1)];break;default:var n=+t;if(0==n)return e;if(d<n){var o=ji(n/10);return 0===o?e:o<=d?void 0===l[o-1]?t.charAt(1):l[o-1]+t.charAt(1):e}i=l[n-1]}return void 0===i?"":i})}(f,o,m,g,_,t);d<=m&&(u+=o.slice(d,m)+_,d=m+f.length)}return u+o.slice(d)}]});function Fi(){var e,t=+this;Gi.hasOwnProperty(t)&&(e=Gi[t],delete Gi[t],e())}var qi,Wi=y.process,Ce=y.setImmediate,ae=y.clearImmediate,Me=y.MessageChannel,Ui=y.Dispatch,Vi=0,Gi={},Zi="onreadystatechange",e=function(e){Fi.call(e.data)};Ce&&ae||(Ce=function(e){for(var t=[],i=1;i<arguments.length;)t.push(arguments[i++]);return Gi[++Vi]=function(){!function(e,t,i){var n=void 0===i;switch(t.length){case 0:return n?e():e.call(i);case 1:return n?e(t[0]):e.call(i,t[0]);case 2:return n?e(t[0],t[1]):e.call(i,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(i,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(i,t[0],t[1],t[2],t[3])}e.apply(i,t)}("function"==typeof e?e:Function(e),t)},qi(Vi),Vi},ae=function(e){delete Gi[e]},"process"==U(Wi)?qi=function(e){Wi.nextTick(_(Fi,e,1))}:Ui&&Ui.now?qi=function(e){Ui.now(_(Fi,e,1))}:Me?(Me=(Ne=new Me).port2,Ne.port1.onmessage=e,qi=_(Me.postMessage,Me,1)):y.addEventListener&&"function"==typeof postMessage&&!y.importScripts?(qi=function(e){y.postMessage(e+"","*")},y.addEventListener("message",e,!1)):qi=Zi in i("script")?function(e){je.appendChild(i("script"))[Zi]=function(){je.removeChild(this),Fi.call(e)}}:function(e){setTimeout(_(Fi,e,1),0)});var Ce={set:Ce,clear:ae},Yi=Ce.set,Xi=y.MutationObserver||y.WebKitMutationObserver,Ki=y.process,Qi=y.Promise,Ji="process"==U(Ki);function en(e){var i,n;this.promise=new e(function(e,t){if(void 0!==i||void 0!==n)throw TypeError("Bad Promise constructor");i=e,n=t}),this.resolve=s(i),this.reject=s(n)}var tn,nn,on,sn,rn,an,ln={f:function(e){return new en(e)}},cn=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},ae=y.navigator,un=ae&&ae.userAgent||"",dn=B("species"),ae=function(e){e=y[e];n&&e&&!e[dn]&&u.f(e,dn,{configurable:!0,get:function(){return this}})},hn=Ce.set,pn=(sn=Ji?function(){Ki.nextTick(fn)}:!Xi||y.navigator&&y.navigator.standalone?Qi&&Qi.resolve?(on=Qi.resolve(void 0),function(){on.then(fn)}):function(){Yi.call(y,fn)}:(rn=!0,an=document.createTextNode(""),new Xi(fn).observe(an,{characterData:!0}),function(){an.data=rn=!rn}),function(e){e={fn:e,next:void 0};nn&&(nn.next=e),tn||(tn=e,sn()),nn=e});function fn(){var e,t;for(Ji&&(e=Ki.domain)&&e.exit();tn;){t=tn.fn,tn=tn.next;try{t()}catch(e){throw tn?sn():nn=void 0,e}}nn=void 0,e&&e.enter()}function mn(){}var gn,vn,yn,_n,bn="Promise",wn=y.TypeError,xn=y.process,Ce=xn&&xn.versions,Tn=Ce&&Ce.v8||"",Cn=y[bn],Sn="process"==I(xn),kn=vn=ln.f,Ce=!!function(){try{var e=Cn.resolve(1),t=(e.constructor={})[B("species")]=function(e){e(mn,mn)};return(Sn||"function"==typeof PromiseRejectionEvent)&&e.then(mn)instanceof t&&0!==Tn.indexOf("6.6")&&-1===un.indexOf("Chrome/66")}catch(e){}}(),En=function(e){var t;return!(!b(e)||"function"!=typeof(t=e.then))&&t},Ln=function(d,i){var n;d._n||(d._n=!0,n=d._c,pn(function(){for(var o,c=d._v,u=1==d._s,e=0,t=function(e){var t,i,n,o,s=u?e.ok:e.fail,r=e.resolve,a=e.reject,l=e.domain;try{s?(u||(2==d._h&&(o=d,hn.call(y,function(){var e;Sn?xn.emit("rejectionHandled",o):(e=y.onrejectionhandled)&&e({promise:o,reason:o._v})})),d._h=1),!0===s?t=c:(l&&l.enter(),t=s(c),l&&(l.exit(),n=!0)),t===e.promise?a(wn("Promise-chain cycle")):(i=En(t))?i.call(t,r,a):r(t)):a(c)}catch(e){l&&!n&&l.exit(),a(e)}};n.length>e;)t(n[e++]);d._c=[],d._n=!1,i&&!d._h&&(o=d,hn.call(y,function(){var e,t,i=o._v,n=Pn(o);if(n&&(e=cn(function(){Sn?xn.emit("unhandledRejection",i,o):(t=y.onunhandledrejection)?t({promise:o,reason:i}):(t=y.console)&&t.error&&t.error("Unhandled promise rejection",i)}),o._h=Sn||Pn(o)?2:1),o._a=void 0,n&&e.e)throw e.v}))}))},Pn=function(e){return 1!==e._h&&0===(e._a||e._c).length},An=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Ln(t,!0))},Mn=function(e){var i,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw wn("Promise can't be resolved itself");(i=En(e))?pn(function(){var t={_w:n,_d:!1};try{i.call(e,_(Mn,t,1),_(An,t,1))}catch(e){An.call(t,e)}}):(n._v=e,n._s=1,Ln(n,!1))}catch(e){An.call({_w:n,_d:!1},e)}}};Ce||(Cn=function(e){Qt(this,Cn,bn,"_h"),s(e),gn.call(this);try{e(_(Mn,this,1),_(An,this,1))}catch(e){An.call(this,e)}},(gn=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=Kt(Cn.prototype,{then:function(e,t){var i=kn(Ci(this,Cn));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=Sn?xn.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&Ln(this,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),yn=function(){var e=new gn;this.promise=e,this.resolve=_(Mn,e,1),this.reject=_(An,e,1)},ln.f=kn=function(e){return e===Cn||e===_n?new yn:vn(e)}),z(z.G+z.W+z.F*!Ce,{Promise:Cn}),Pt(Cn,bn),ae(bn),_n=f[bn],z(z.S+z.F*!Ce,bn,{reject:function(e){var t=kn(this);return(0,t.reject)(e),t.promise}}),z(z.S+z.F*!Ce,bn,{resolve:function(e){return function(e,t){if(x(e),b(t)&&t.constructor===e)return t;e=ln.f(e);return(0,e.resolve)(t),e.promise}(this,e)}}),z(z.S+z.F*!(Ce&&Q(function(e){Cn.all(e).catch(mn)})),bn,{all:function(e){var r=this,t=kn(r),a=t.resolve,l=t.reject,i=cn(function(){var n=[],o=0,s=1;ai(e,!1,function(e){var t=o++,i=!1;n.push(void 0),s++,r.resolve(e).then(function(e){i||(i=!0,n[t]=e,--s||a(n))},l)}),--s||a(n)});return i.e&&l(i.v),t.promise},race:function(e){var t=this,i=kn(t),n=i.reject,o=cn(function(){ai(e,!1,function(e){t.resolve(e).then(i.resolve,n)})});return o.e&&n(o.v),i.promise}});var On="startsWith",In=""[On];z(z.P+z.F*ze(On),"String",{startsWith:function(e){var t=at(this,e,On),i=M(Math.min(1<arguments.length?arguments[1]:void 0,t.length)),e=String(e);return In?In.call(t,e,i):t.slice(i,i+e.length)===e}}),z(z.S,"Number",{isNaN:function(e){return e!=e}});function zn(e){return null!=e?e.constructor:null}function Dn(e,t){return Boolean(e&&t&&e instanceof t)}function Nn(e){return Bn(e)||(jn(e)||Rn(e)||Hn(e))&&!e.length||$n(e)&&!Object.keys(e).length}var Bn=function(e){return null==e},$n=function(e){return zn(e)===Object},jn=function(e){return zn(e)===String},Rn=function(e){return Array.isArray(e)},Hn=function(e){return Dn(e,NodeList)},Fn={nullOrUndefined:Bn,object:$n,number:function(e){return zn(e)===Number&&!Number.isNaN(e)},string:jn,boolean:function(e){return zn(e)===Boolean},function:function(e){return zn(e)===Function},array:Rn,weakMap:function(e){return Dn(e,WeakMap)},nodeList:Hn,element:function(e){return Dn(e,Element)},textNode:function(e){return zn(e)===Text},event:function(e){return Dn(e,Event)},keyboardEvent:function(e){return Dn(e,KeyboardEvent)},cue:function(e){return Dn(e,window.TextTrackCue)||Dn(e,window.VTTCue)},track:function(e){return Dn(e,TextTrack)||!Bn(e)&&jn(e.kind)},url:function(e){if(Dn(e,window.URL))return!0;if(!jn(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!Nn(new URL(t).hostname)}catch(e){return!1}},empty:Nn},qn=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}();function Wn(t,e,i){var n,o=this,s=3<arguments.length&&void 0!==arguments[3]&&arguments[3],r=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],a=5<arguments.length&&void 0!==arguments[5]&&arguments[5];t&&"addEventListener"in t&&!Fn.empty(e)&&Fn.function(i)&&(e=e.split(" "),n=qn?{passive:r,capture:a}:a,e.forEach(function(e){o&&o.eventListeners&&s&&o.eventListeners.push({element:t,type:e,callback:i,options:n}),t[s?"addEventListener":"removeEventListener"](e,i,n)}))}function Un(e){Wn.call(this,e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",2<arguments.length?arguments[2]:void 0,!0,!(3<arguments.length&&void 0!==arguments[3])||arguments[3],4<arguments.length&&void 0!==arguments[4]&&arguments[4])}function Vn(e){Wn.call(this,e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",2<arguments.length?arguments[2]:void 0,!1,!(3<arguments.length&&void 0!==arguments[3])||arguments[3],4<arguments.length&&void 0!==arguments[4]&&arguments[4])}function Gn(o){var s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length?arguments[2]:void 0,a=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],l=4<arguments.length&&void 0!==arguments[4]&&arguments[4];Wn.call(this,o,s,function e(){Vn(o,s,e,a,l);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];r.apply(this,i)},!0,a,l)}function Zn(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Fn.element(e)&&!Fn.empty(t)&&(n=new CustomEvent(t,{bubbles:i,detail:Object.assign({},n,{plyr:this})}),e.dispatchEvent(n))}function Yn(e,o){e=e.length?e:[e];Array.from(e).reverse().forEach(function(e,t){var i=0<t?o.cloneNode(!0):o,n=e.parentNode,t=e.nextSibling;i.appendChild(e),t?n.insertBefore(i,t):n.appendChild(i)})}function Xn(i,e){Fn.element(i)&&!Fn.empty(e)&&Object.entries(e).filter(function(e){e=yi(e,2)[1];return!Fn.nullOrUndefined(e)}).forEach(function(e){var t=yi(e,2),e=t[0],t=t[1];return i.setAttribute(e,t)})}function Kn(e,t,i){e=document.createElement(e);return Fn.object(t)&&Xn(e,t),Fn.string(i)&&(e.innerText=i),e}function Qn(e,t,i,n){Fn.element(t)&&t.appendChild(Kn(e,i,n))}function Jn(e){Fn.nodeList(e)||Fn.array(e)?Array.from(e).forEach(Jn):Fn.element(e)&&Fn.element(e.parentNode)&&e.parentNode.removeChild(e)}function eo(e){if(Fn.element(e))for(var t=e.childNodes.length;0<t;)e.removeChild(e.lastChild),--t}function to(e,t){return Fn.element(t)&&Fn.element(t.parentNode)&&Fn.element(e)?(t.parentNode.replaceChild(e,t),e):null}function io(e,t){if(!Fn.string(e)||Fn.empty(e))return{};var s={},r=t;return e.split(",").forEach(function(e){var t=e.trim(),i=t.replace(".",""),e=t.replace(/[[\]]/g,"").split("="),n=e[0],o=1<e.length?e[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":Fn.object(r)&&Fn.string(r.class)&&(r.class+=" ".concat(i)),s.class=i;break;case"#":s.id=t.replace("#","");break;case"[":s[n]=o}}),s}function no(e,t){Fn.element(e)&&((t=!Fn.boolean(t=t)?!e.hidden:t)?e.setAttribute("hidden",""):e.removeAttribute("hidden"))}function oo(e,t,i){if(Fn.nodeList(e))return Array.from(e).map(function(e){return oo(e,t,i)});if(Fn.element(e)){var n=void 0!==i?i?"add":"remove":"toggle";return e.classList[n](t),e.classList.contains(t)}return!1}function so(e,t){return Fn.element(e)&&e.classList.contains(t)}function ro(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function ao(e){return this.elements.container.querySelectorAll(e)}function lo(e){return this.elements.container.querySelector(e)}function co(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];Fn.element(e)&&(e.focus({preventScroll:!0}),t&&oo(e,this.config.classNames.tabFocus))}var uo,ho=(uo=document.createElement("span"),Ce={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},ze=Object.keys(Ce).find(function(e){return void 0!==uo.style[e]}),!!Fn.string(ze)&&Ce[ze]);function po(e){setTimeout(function(){try{no(e,!0),e.offsetHeight,no(e,!1)}catch(e){}},0)}var fo={isIE:!!document.documentMode,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)},mo={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},go={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,i){i=fo.isIPhone&&i&&go.playsinline,t=go[e]||"html5"!==t;return{api:t,ui:t&&go.rangeInput&&("video"!==e||!fo.isIPhone||i)}},pip:!(fo.isIPhone||!Fn.function(Kn("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Kn("video").disablePictureInPicture)),airplay:Fn.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){var t=yi(e.split("/"),1)[0],i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(mo).includes(i)&&(i+='; codecs="'.concat(mo[e],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:((ze=document.createElement("input")).type="range")===ze.type,touch:"ontouchstart"in document.documentElement,transitions:!1!==ho,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},vo={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(e){return go.mime.call(t,e.getAttribute("type"))}):[]},getQualityOptions:function(){return vo.getSources.call(this).map(function(e){return Number(e.getAttribute("size"))}).filter(Boolean)},extend:function(){var r;this.isHTML5&&(r=this,Object.defineProperty(r.media,"quality",{get:function(){var e=vo.getSources.call(r).find(function(e){return e.getAttribute("src")===r.source});return e&&Number(e.getAttribute("size"))},set:function(t){var e,i,n,o,s=vo.getSources.call(r).find(function(e){return Number(e.getAttribute("size"))===t});s&&(o=r.media,e=o.currentTime,i=o.paused,n=o.preload,o=o.readyState,r.media.src=s.getAttribute("src"),"none"===n&&!o||(r.once("loadedmetadata",function(){r.currentTime=e,i||r.play()}),r.media.load()),Zn.call(r,r.media,"qualitychange",!1,{quality:t}))}}))},cancelRequests:function(){this.isHTML5&&(Jn(vo.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function yo(i){return Fn.array(i)?i.filter(function(e,t){return i.indexOf(e)===t}):i}function _o(e,t){return t.split(".").reduce(function(e,t){return e&&e[t]},e)}function bo(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,i=new Array(1<e?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];if(!i.length)return t;var o=i.shift();return Fn.object(o)?(Object.keys(o).forEach(function(e){Fn.object(o[e])?(Object.keys(t).includes(e)||Object.assign(t,vi({},e,{})),bo(t[e],o[e])):Object.assign(t,vi({},e,o[e]))}),bo.apply(void 0,[t].concat(i))):t}var wo=u.f,Pe=Pe.f,xo=Eo=y.RegExp,To=Eo.prototype,Co=/a/g,So=/a/g,ko=new Eo(Co)!==Co;if(n&&(!ko||v(function(){return So[B("match")]=!1,Eo(Co)!=Co||Eo(So)==So||"/a/i"!=Eo(Co,"i")}))){for(var Eo=function(e,t){var i=this instanceof Eo,n=rt(e),o=void 0===t;return!i&&n&&e.constructor===Eo&&o?e:he(ko?new xo(n&&!o?e.source:e,t):xo((n=e instanceof Eo)?e.source:e,n&&o?ht.call(e):t),i?this:To,Eo)},Lo=Pe(xo),Po=0;Lo.length>Po;)!function(t){t in Eo||wo(Eo,t,{configurable:!0,get:function(){return xo[t]},set:function(e){xo[t]=e}})}(Lo[Po++]);(To.constructor=Eo).prototype=To,S(y,"RegExp",Eo)}function Ao(e){for(var t=arguments.length,i=new Array(1<t?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return Fn.empty(e)?e:e.toString().replace(/{(\d+)}/g,function(e,t){return i[t].toString()})}function Mo(e,t,i){e=0<arguments.length&&void 0!==e?e:"",t=1<arguments.length&&void 0!==t?t:"",i=2<arguments.length&&void 0!==i?i:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString())}function Oo(e){return(0<arguments.length&&void 0!==e?e:"").toString().replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}function Io(e){e=(0<arguments.length&&void 0!==e?e:"").toString();return(e=function(e){return e=Mo(e=(0<arguments.length&&void 0!==e?e:"").toString(),"-"," "),e=Mo(e,"_"," "),Mo(e=Oo(e)," ","")}(e)).charAt(0).toLowerCase()+e.slice(1)}function zo(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}ae("RegExp");var Do={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},No=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(Fn.empty(e)||Fn.empty(t))return"";var i=_o(t.i18n,e);if(Fn.empty(i))return Object.keys(Do).includes(e)?Do[e]:"";t={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(t).forEach(function(e){var t=yi(e,2),e=t[0],t=t[1];i=Mo(i,e,t)}),i},Bo=function(){function i(e){fi(this,i),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}return gi(i,[{key:"get",value:function(e){if(!i.supported||!this.enabled)return null;var t=window.localStorage.getItem(this.key);if(Fn.empty(t))return null;t=JSON.parse(t);return Fn.string(e)&&e.length?t[e]:t}},{key:"set",value:function(e){var t;i.supported&&this.enabled&&Fn.object(e)&&(t=this.get(),bo(t=Fn.empty(t)?{}:t,e),window.localStorage.setItem(this.key,JSON.stringify(t)))}}],[{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}}}]),i}();function $o(e,t){var o=1<arguments.length&&void 0!==t?t:"text";return new Promise(function(t,i){try{var n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",function(){if("text"===o)try{t(JSON.parse(n.responseText))}catch(e){t(n.responseText)}else t(n.response)}),n.addEventListener("error",function(){throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=o,n.send()}catch(e){i(e)}})}function jo(e,t){var i,n,o,s,r,a;Fn.string(e)&&(i=Fn.string(t),n=function(){return null!==document.getElementById(t)},o=function(e,t){e.innerHTML=t,i&&n()||document.body.insertAdjacentElement("afterbegin",e)},i&&n()||(s=Bo.supported,(r=document.createElement("div")).setAttribute("hidden",""),i&&r.setAttribute("id",t),!s||null!==(a=window.localStorage.getItem("".concat("cache","-").concat(t)))&&(a=JSON.parse(a),o(r,a.content)),$o(e).then(function(e){Fn.empty(e)||(s&&window.localStorage.setItem("".concat("cache","-").concat(t),JSON.stringify({content:e})),o(r,e))}).catch(function(){})))}function Ro(e){return parseInt(e/60/60%60,10)}function Ho(e,t,i){var n=0<arguments.length&&void 0!==e?e:0,o=1<arguments.length&&void 0!==t&&t,s=2<arguments.length&&void 0!==i&&i;if(!Fn.number(n))return Ho(null,o,s);function r(e){return"0".concat(e).slice(-2)}e=Ro(n),t=parseInt(n/60%60,10),i=parseInt(n%60,10),e=o||0<e?"".concat(e,":"):"";return"".concat(s&&0<n?"-":"").concat(e).concat(r(t),":").concat(r(i))}var Fo={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||fo.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=lo.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:ao.call(this,this.config.selectors.buttons.play),pause:lo.call(this,this.config.selectors.buttons.pause),restart:lo.call(this,this.config.selectors.buttons.restart),rewind:lo.call(this,this.config.selectors.buttons.rewind),fastForward:lo.call(this,this.config.selectors.buttons.fastForward),mute:lo.call(this,this.config.selectors.buttons.mute),pip:lo.call(this,this.config.selectors.buttons.pip),airplay:lo.call(this,this.config.selectors.buttons.airplay),settings:lo.call(this,this.config.selectors.buttons.settings),captions:lo.call(this,this.config.selectors.buttons.captions),fullscreen:lo.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=lo.call(this,this.config.selectors.progress),this.elements.inputs={seek:lo.call(this,this.config.selectors.inputs.seek),volume:lo.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:lo.call(this,this.config.selectors.display.buffer),currentTime:lo.call(this,this.config.selectors.display.currentTime),duration:lo.call(this,this.config.selectors.display.duration)},Fn.element(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 i="http://www.w3.org/2000/svg",n=Fo.getIconUrl.call(this),o="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),n=document.createElementNS(i,"svg");Xn(n,bo(t,{role:"presentation",focusable:"false"}));i=document.createElementNS(i,"use"),e="".concat(o,"-").concat(e);return"href"in i&&i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e),n.appendChild(i),n},createLabel:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=No(e,this.config);return Kn("span",Object.assign({},t,{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),e)},createBadge:function(e){if(Fn.empty(e))return null;var t=Kn("span",{class:this.config.classNames.menu.value});return t.appendChild(Kn("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var i=Object.assign({},t),n=Io(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.includes(this.config.classNames.control)||(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"),o.label=n="play",o.icon="play";break;default:Fn.empty(o.label)&&(o.label=n),Fn.empty(o.icon)&&(o.icon=e)}t=Kn(o.element);return o.toggle?(t.appendChild(Fo.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),t.appendChild(Fo.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),t.appendChild(Fo.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),t.appendChild(Fo.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(t.appendChild(Fo.createIcon.call(this,o.icon)),t.appendChild(Fo.createLabel.call(this,o.label))),bo(i,io(this.config.selectors.buttons[n],i)),Xn(t,i),"play"===n?(Fn.array(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(t)):this.elements.buttons[n]=t,t},createRange:function(e,t){t=Kn("input",bo(io(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":No(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=t,Fo.updateRangeFill.call(this,t),t},createProgress:function(e,t){var i=Kn("progress",bo(io(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"presentation","aria-hidden":!0},t));return"volume"!==e&&(i.appendChild(Kn("span",null,"0")),t=(t={played:"played",buffer:"buffered"}[e])?No(t,this.config):"",i.innerText="% ".concat(t.toLowerCase())),this.elements.display[e]=i},createTime:function(e){var t=io(this.config.selectors.display[e]),t=Kn("div",bo(t,{class:"".concat(this.config.classNames.display.time," ").concat(t.class||"").trim(),"aria-label":No(e,this.config)}),"00:00");return this.elements.display[e]=t},bindMenuItemShortcuts:function(n,o){var s=this;Un(n,"keydown keyup",function(e){var t,i;[32,38,39,40].includes(e.which)&&(e.preventDefault(),e.stopPropagation(),"keydown"!==e.type&&(!(t=ro(n,'[role="menuitemradio"]'))&&[32,39].includes(e.which)?Fo.showMenuPanel.call(s,o,!0):32!==e.which&&(40===e.which||t&&39===e.which?(i=n.nextElementSibling,Fn.element(i)||(i=n.parentNode.firstElementChild)):(i=n.previousElementSibling,Fn.element(i)||(i=n.parentNode.lastElementChild)),co.call(s,i,!0))))},!1),Un(n,"keyup",function(e){13===e.which&&Fo.focusFirstMenuItem.call(s,null,!0)})},createMenuItem:function(e){var t=this,i=e.value,n=e.list,o=e.type,s=e.title,r=e.badge,a=void 0===r?null:r,r=e.checked,e=void 0!==r&&r,r=io(this.config.selectors.inputs[o]),l=Kn("button",bo(r,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(r.class||"").trim(),"aria-checked":e,value:i})),e=Kn("span");e.innerHTML=s,Fn.element(a)&&e.appendChild(a),l.appendChild(e),Object.defineProperty(l,"checked",{enumerable:!0,get:function(){return"true"===l.getAttribute("aria-checked")},set:function(e){e&&Array.from(l.parentNode.children).filter(function(e){return ro(e,'[role="menuitemradio"]')}).forEach(function(e){return e.setAttribute("aria-checked","false")}),l.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(l,"click keyup",function(e){if(!Fn.keyboardEvent(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),l.checked=!0,o){case"language":t.currentTrack=Number(i);break;case"quality":t.quality=i;break;case"speed":t.speed=parseFloat(i)}Fo.showMenuPanel.call(t,"home",Fn.keyboardEvent(e))}},o,!1),Fo.bindMenuItemShortcuts.call(this,l,o),n.appendChild(l)},formatTime:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return Fn.number(e)?Ho(e,0<Ro(this.duration),t):e},updateTimeDisplay:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2];Fn.element(e)&&Fn.number(t)&&(e.innerText=Fo.formatTime(t,i))},updateVolume:function(){this.supported.ui&&(Fn.element(this.elements.inputs.volume)&&Fo.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),Fn.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;Fn.element(e)&&(e.value=t,Fo.updateRangeFill.call(this,e))},updateProgress:function(e){var i=this;if(this.supported.ui&&Fn.event(e)){var t,n,o=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":t=this.currentTime,n=this.duration,o=0===t||0===n||Number.isNaN(t)||Number.isNaN(n)?0:(t/n*100).toFixed(2),"timeupdate"===e.type&&Fo.setRange.call(this,this.elements.inputs.seek,o);break;case"playing":case"progress":!function(e,t){t=Fn.number(t)?t:0,e=Fn.element(e)?e:i.elements.display.buffer;Fn.element(e)&&(e.value=t,e=e.getElementsByTagName("span")[0],Fn.element(e)&&(e.childNodes[0].nodeValue=t))}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t,i,n=Fn.event(e)?e.target:e;Fn.element(n)&&"range"===n.getAttribute("type")&&(ro(n,this.config.selectors.inputs.seek)?(n.setAttribute("aria-valuenow",this.currentTime),t=Fo.formatTime(this.currentTime),i=Fo.formatTime(this.duration),e=No("seekLabel",this.config),n.setAttribute("aria-valuetext",e.replace("{currentTime}",t).replace("{duration}",i))):ro(n,this.config.selectors.inputs.volume)?(i=100*n.value,n.setAttribute("aria-valuenow",i),n.setAttribute("aria-valuetext","".concat(i.toFixed(1),"%"))):n.setAttribute("aria-valuenow",n.value),fo.isWebkit&&n.style.setProperty("--value","".concat(n.value/n.max*100,"%")))},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&Fn.element(this.elements.inputs.seek)&&Fn.element(this.elements.display.seekTooltip)&&0!==this.duration){var i=0,n=this.elements.progress.getBoundingClientRect(),o="".concat(this.config.classNames.tooltip,"--visible"),s=function(e){oo(t.elements.display.seekTooltip,o,e)};if(this.touch)s(!1);else{if(Fn.event(e))i=100/n.width*(e.pageX-n.left);else{if(!so(this.elements.display.seekTooltip,o))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:100<i&&(i=100),Fo.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left="".concat(i,"%"),Fn.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&s("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!Fn.element(this.elements.display.duration)&&this.config.invertTime;Fo.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||Fo.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return no(this.elements.display.currentTime,!0),void no(this.elements.progress,!0);Fn.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=Fn.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Fo.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Fo.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Fo.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){no(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,i){var n=this.elements.settings.panels[e],o=null,t=t;if("captions"===e)o=this.currentTrack;else{if(o=Fn.empty(i)?this[e]:i,Fn.empty(o)&&(o=this.config[e].default),!Fn.empty(this.options[e])&&!this.options[e].includes(o))return void this.debug.warn("Unsupported value of '".concat(o,"' for ").concat(e));if(!this.config[e].options.includes(o))return void this.debug.warn("Disabled value of '".concat(o,"' for ").concat(e))}Fn.element(t)||(t=n&&n.querySelector('[role="menu"]')),Fn.element(t)&&(this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Fo.getLabel.call(this,e,o),o=t&&t.querySelector('[value="'.concat(o,'"]')),Fn.element(o)&&(o.checked=!0))},getLabel:function(e,t){switch(e){case"speed":return 1===t?No("normal",this.config):"".concat(t,"&times;");case"quality":if(Fn.number(t)){var i=No("qualityLabel.".concat(t),this.config);return i.length?i:"".concat(t,"p")}return Oo(t);case"captions":return Uo.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t,i,n=this;Fn.element(this.elements.settings.panels.quality)&&(t="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]'),Fn.array(e)&&(this.options.quality=yo(e).filter(function(e){return n.config.quality.options.includes(e)})),e=!Fn.empty(this.options.quality)&&1<this.options.quality.length,Fo.toggleMenuButton.call(this,t,e),eo(i),Fo.checkMenu.call(this),e&&(this.options.quality.sort(function(e,t){var i=n.config.quality.options;return i.indexOf(e)>i.indexOf(t)?1:-1}).forEach(function(e){Fo.createMenuItem.call(n,{value:e,list:i,type:t,title:Fo.getLabel.call(n,"quality",e),badge:function(e){e=No("qualityBadge.".concat(e),n.config);return e.length?Fo.createBadge.call(n,e):null}(e)})}),Fo.updateSetting.call(this,t,i)))},setCaptionsMenu:function(){var i,e,t,n=this;Fn.element(this.elements.settings.panels.captions)&&(i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=Uo.getTracks.call(this),e=Boolean(t.length),Fo.toggleMenuButton.call(this,"captions",e),eo(i),Fo.checkMenu.call(this),e&&((t=t.map(function(e,t){return{value:t,checked:n.captions.toggled&&n.currentTrack===t,title:Uo.getLabel.call(n,e),badge:e.language&&Fo.createBadge.call(n,e.language.toUpperCase()),list:i,type:"language"}})).unshift({value:-1,checked:!this.captions.toggled,title:No("disabled",this.config),list:i,type:"language"}),t.forEach(Fo.createMenuItem.bind(this)),Fo.updateSetting.call(this,"captions",i)))},setSpeedMenu:function(e){var t,i=this;Fn.element(this.elements.settings.panels.speed)&&(t=this.elements.settings.panels.speed.querySelector('[role="menu"]'),Fn.array(e)?this.options.speed=e:(this.isHTML5||this.isVimeo)&&(this.options.speed=[.5,.75,1,1.25,1.5,1.75,2]),this.options.speed=this.options.speed.filter(function(e){return i.config.speed.options.includes(e)}),e=!Fn.empty(this.options.speed)&&1<this.options.speed.length,Fo.toggleMenuButton.call(this,"speed",e),eo(t),Fo.checkMenu.call(this),e&&(this.options.speed.forEach(function(e){Fo.createMenuItem.call(i,{value:e,list:t,type:"speed",title:Fo.getLabel.call(i,"speed",e)})}),Fo.updateSetting.call(this,"speed",t)))},checkMenu:function(){var e=this.elements.settings.buttons,e=!Fn.empty(e)&&Object.values(e).some(function(e){return!e.hidden});no(this.elements.settings.menu,!e)},focusFirstMenuItem:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.elements.settings.popup.hidden||(e=(e=!Fn.element(e=e)?Object.values(this.elements.settings.panels).find(function(e){return!e.hidden}):e).querySelector('[role^="menuitem"]'),co.call(this,e,t))},toggleMenu:function(e){var t=this.elements.settings.popup,i=this.elements.buttons.settings;if(Fn.element(t)&&Fn.element(i)){var n=t.hidden,o=n;if(Fn.boolean(e))o=e;else if(Fn.keyboardEvent(e)&&27===e.which)o=!1;else if(Fn.event(e)){var s=t.contains(e.target);if(s||!s&&e.target!==i&&o)return}i.setAttribute("aria-expanded",o),no(t,!o),oo(this.elements.container,this.config.classNames.menu.open,o),o&&Fn.keyboardEvent(e)?Fo.focusFirstMenuItem.call(this,null,!0):o||n||co.call(this,i,Fn.keyboardEvent(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 i=t.scrollWidth,e=t.scrollHeight;return Jn(t),{width:i,height:e}},showMenuPanel:function(){var i,e,t,n=this,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",s=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=document.getElementById("plyr-settings-".concat(this.id,"-").concat(o));Fn.element(r)&&(i=r.parentNode,e=Array.from(i.children).find(function(e){return!e.hidden}),go.transitions&&!go.reducedMotion&&(i.style.width="".concat(e.scrollWidth,"px"),i.style.height="".concat(e.scrollHeight,"px"),t=Fo.getMenuSize.call(this,r),o=function e(t){t.target===i&&["width","height"].includes(t.propertyName)&&(i.style.width="",i.style.height="",Vn.call(n,i,ho,e))},Un.call(this,i,ho,o),i.style.width="".concat(t.width,"px"),i.style.height="".concat(t.height,"px")),no(e,!0),no(r,!1),Fo.focusFirstMenuItem.call(this,r,s))},setDownloadLink:function(){var e=this.elements.buttons.download;Fn.element(e)&&e.setAttribute("href",this.download)},create:function(o){var e,t,s,i,r,n,a,l=this,c=Kn("div",io(this.config.selectors.controls.wrapper));return this.config.controls.includes("restart")&&c.appendChild(Fo.createButton.call(this,"restart")),this.config.controls.includes("rewind")&&c.appendChild(Fo.createButton.call(this,"rewind")),this.config.controls.includes("play")&&c.appendChild(Fo.createButton.call(this,"play")),this.config.controls.includes("fast-forward")&&c.appendChild(Fo.createButton.call(this,"fast-forward")),this.config.controls.includes("progress")&&((t=Kn("div",io(this.config.selectors.progress))).appendChild(Fo.createRange.call(this,"seek",{id:"plyr-seek-".concat(o.id)})),t.appendChild(Fo.createProgress.call(this,"buffer")),this.config.tooltips.seek&&(e=Kn("span",{class:this.config.classNames.tooltip},"00:00"),t.appendChild(e),this.elements.display.seekTooltip=e),this.elements.progress=t,c.appendChild(this.elements.progress)),this.config.controls.includes("current-time")&&c.appendChild(Fo.createTime.call(this,"currentTime")),this.config.controls.includes("duration")&&c.appendChild(Fo.createTime.call(this,"duration")),(this.config.controls.includes("mute")||this.config.controls.includes("volume"))&&(i=Kn("div",{class:"plyr__volume"}),this.config.controls.includes("mute")&&i.appendChild(Fo.createButton.call(this,"mute")),this.config.controls.includes("volume")&&(t={max:1,step:.05,value:this.config.volume},i.appendChild(Fo.createRange.call(this,"volume",bo(t,{id:"plyr-volume-".concat(o.id)}))),this.elements.volume=i),c.appendChild(i)),this.config.controls.includes("captions")&&c.appendChild(Fo.createButton.call(this,"captions")),this.config.controls.includes("settings")&&!Fn.empty(this.config.settings)&&((a=Kn("div",{class:"plyr__menu",hidden:""})).appendChild(Fo.createButton.call(this,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(o.id),"aria-expanded":!1})),n=Kn("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(o.id),hidden:""}),s=Kn("div"),i=Kn("div",{id:"plyr-settings-".concat(o.id,"-home")}),r=Kn("div",{role:"menu"}),i.appendChild(r),s.appendChild(i),this.elements.settings.panels.home=i,this.config.settings.forEach(function(e){var t=Kn("button",bo(io(l.config.selectors.buttons.settings),{type:"button",class:"".concat(l.config.classNames.control," ").concat(l.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));Fo.bindMenuItemShortcuts.call(l,t,e),Un(t,"click",function(){Fo.showMenuPanel.call(l,e,!1)});var i=Kn("span",null,No(e,l.config)),n=Kn("span",{class:l.config.classNames.menu.value});n.innerHTML=o[e],i.appendChild(n),t.appendChild(i),r.appendChild(t);n=Kn("div",{id:"plyr-settings-".concat(o.id,"-").concat(e),hidden:""}),i=Kn("button",{type:"button",class:"".concat(l.config.classNames.control," ").concat(l.config.classNames.control,"--back")});i.appendChild(Kn("span",{"aria-hidden":!0},No(e,l.config))),i.appendChild(Kn("span",{class:l.config.classNames.hidden},No("menuBack",l.config))),Un(n,"keydown",function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),Fo.showMenuPanel.call(l,"home",!0))},!1),Un(i,"click",function(){Fo.showMenuPanel.call(l,"home",!1)}),n.appendChild(i),n.appendChild(Kn("div",{role:"menu"})),s.appendChild(n),l.elements.settings.buttons[e]=t,l.elements.settings.panels[e]=n}),n.appendChild(s),a.appendChild(n),c.appendChild(a),this.elements.settings.popup=n,this.elements.settings.menu=a),this.config.controls.includes("pip")&&go.pip&&c.appendChild(Fo.createButton.call(this,"pip")),this.config.controls.includes("airplay")&&go.airplay&&c.appendChild(Fo.createButton.call(this,"airplay")),this.config.controls.includes("download")&&(n={element:"a",href:this.download,target:"_blank"},a=this.config.urls.download,!Fn.url(a)&&this.isEmbed&&bo(n,{icon:"logo-".concat(this.provider),label:this.provider}),c.appendChild(Fo.createButton.call(this,"download",n))),this.config.controls.includes("fullscreen")&&c.appendChild(Fo.createButton.call(this,"fullscreen")),this.config.controls.includes("play-large")&&this.elements.container.appendChild(Fo.createButton.call(this,"play-large")),this.elements.controls=c,this.isHTML5&&Fo.setQualityMenu.call(this,vo.getQualityOptions.call(this)),Fo.setSpeedMenu.call(this),c},inject:function(){var i=this;!this.config.loadSprite||(r=Fo.getIconUrl.call(this)).cors&&jo(r.url,"sprite-plyr"),this.id=Math.floor(1e4*Math.random());var e=null;this.elements.controls=null;var t={id:this.id,seektime:this.config.seekTime,title:this.config.title},n=!0;Fn.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),Fn.element(this.config.controls)||Fn.string(this.config.controls)?e=this.config.controls:(e=Fo.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Uo.getLabel.call(this)}),n=!1);var o,s,r=function(e){var i=e;return Object.entries(t).forEach(function(e){var t=yi(e,2),e=t[0],t=t[1];i=Mo(i,"{".concat(e,"}"),t)}),i};n&&(Fn.string(this.config.controls)?e=r(e):Fn.element(e)&&(e.innerHTML=r(e.innerHTML))),Fn.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),(s=!Fn.element(s)?this.elements.container:s)[Fn.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),Fn.element(this.elements.controls)||Fo.findElements.call(this),Fn.empty(this.elements.buttons)||(o=function(e){var t=i.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:function(){return so(e,t)},set:function(){oo(e,t,0<arguments.length&&void 0!==arguments[0]&&arguments[0])}})},Object.values(this.elements.buttons).filter(Boolean).forEach(function(e){Fn.array(e)||Fn.nodeList(e)?Array.from(e).filter(Boolean).forEach(o):o(e)})),window.navigator.userAgent.includes("Edge")&&po(s),this.config.tooltips.controls&&(s=(e=this.config).classNames,e=e.selectors,s="".concat(e.controls.wrapper," ").concat(e.labels," .").concat(s.hidden),s=ao.call(this,s),Array.from(s).forEach(function(e){oo(e,i.config.classNames.hidden,!1),oo(e,i.config.classNames.tooltip,!0)}))}};function qo(e,t){1<arguments.length&&void 0!==t&&!t||((t=document.createElement("a")).href=e,e=t.href);try{return new URL(e)}catch(e){return null}}function Wo(e){var i=new URLSearchParams;return Fn.object(e)&&Object.entries(e).forEach(function(e){var t=yi(e,2),e=t[0],t=t[1];i.set(e,t)}),i}var Uo={setup:function(){var e,t,i;this.supported.ui&&(!this.isVideo||this.isYouTube||this.isHTML5&&!go.textTracks?Fn.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Fo.setCaptionsMenu.call(this):(Fn.element(this.elements.captions)||(this.elements.captions=Kn("div",io(this.config.selectors.captions)),i=this.elements.captions,e=this.elements.wrapper,Fn.element(i)&&Fn.element(e)&&e.parentNode.insertBefore(i,e.nextSibling)),fo.isIE&&window.URL&&(t=this.media.querySelectorAll("track"),Array.from(t).forEach(function(t){var e=t.getAttribute("src"),i=qo(e);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&$o(e,"blob").then(function(e){t.setAttribute("src",window.URL.createObjectURL(e))}).catch(function(){Jn(t)})})),i=yo((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(e){return e.split("-")[0]})),"auto"===(e=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase())&&(e=yi(i,1)[0]),t=this.storage.get("captions"),Fn.boolean(t)||(t=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:t,language:e,languages:i}),this.isHTML5&&(i=this.config.captions.update?"addtrack removetrack":"removetrack",Un.call(this,this.media.textTracks,i,Uo.update.bind(this))),setTimeout(Uo.update.bind(this),0)))},update:function(){var t=this,e=Uo.getTracks.call(this,!0),i=this.captions,n=i.active,o=i.language,s=i.meta,r=i.currentTrackNode,i=Boolean(e.find(function(e){return e.language===o}));this.isHTML5&&this.isVideo&&e.filter(function(e){return!s.get(e)}).forEach(function(e){t.debug.log("Track added",e),s.set(e,{default:"showing"===e.mode}),e.mode="hidden",Un.call(t,e,"cuechange",function(){return Uo.updateCues.call(t)})}),(i&&this.language!==o||!e.includes(r))&&(Uo.setLanguage.call(this,o),Uo.toggle.call(this,n&&i)),oo(this.elements.container,this.config.classNames.captions.enabled,!Fn.empty(e)),(this.config.controls||[]).includes("settings")&&this.config.settings.includes("captions")&&Fo.setCaptionsMenu.call(this)},toggle:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,n=this.config.classNames.captions.active,e=Fn.nullOrUndefined(e)?!i:e;if(e!==i){if(t||(this.captions.active=e,this.storage.set({captions:e})),!this.language&&e&&!t){i=Uo.getTracks.call(this),t=Uo.findTrack.call(this,[this.captions.language].concat(_i(this.captions.languages)),!0);return this.captions.language=t.language,void Uo.set.call(this,i.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=e),oo(this.elements.container,n,e),this.captions.toggled=e,Fo.updateSetting.call(this,"captions"),Zn.call(this,this.media,e?"captionsenabled":"captionsdisabled")}}},set:function(e){var t,i=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=Uo.getTracks.call(this);-1!==e?Fn.number(e)?e in n?(this.captions.currentTrack!==e&&(n=((t=n[this.captions.currentTrack=e])||{}).language,this.captions.currentTrackNode=t,Fo.updateSetting.call(this,"captions"),i||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),Zn.call(this,this.media,"languagechange")),Uo.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&Uo.updateCues.call(this)):this.debug.warn("Track not found",e):this.debug.warn("Invalid caption argument",e):Uo.toggle.call(this,!1,i)},setLanguage:function(e){var t,i,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];Fn.string(e)?(i=e.toLowerCase(),this.captions.language=i,t=Uo.getTracks.call(this),i=Uo.findTrack.call(this,[i]),Uo.set.call(this,t.indexOf(i),n)):this.debug.warn("Invalid language argument",e)},getTracks:function(){var t=this,i=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter(function(e){return!t.isHTML5||i||t.captions.meta.has(e)}).filter(function(e){return["captions","subtitles"].includes(e.kind)})},findTrack:function(e){function i(e){return Number((t.captions.meta.get(e)||{}).default)}var n,t=this,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],s=Uo.getTracks.call(this),r=Array.from(s).sort(function(e,t){return i(t)-i(e)});return e.every(function(t){return!(n=r.find(function(e){return e.language===t}))}),n||(o?r[0]:void 0)},getCurrentTrack:function(){return Uo.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!Fn.track(t)&&go.textTracks&&this.captions.toggled&&(t=Uo.getCurrentTrack.call(this)),Fn.track(t)?Fn.empty(t.label)?Fn.empty(t.language)?No("enabled",this.config):e.language.toUpperCase():t.label:No("disabled",this.config)},updateCues:function(e){var t,i;this.supported.ui&&(Fn.element(this.elements.captions)?Fn.nullOrUndefined(e)||Array.isArray(e)?((i=e)||(t=Uo.getCurrentTrack.call(this),i=Array.from((t||{}).activeCues||[]).map(function(e){return e.getCueAsHTML()}).map(zo)),(t=i.map(function(e){return e.trim()}).join("\n"))!==this.elements.captions.innerHTML&&(eo(this.elements.captions),(i=Kn("span",io(this.config.selectors.caption))).innerHTML=t,this.elements.captions.appendChild(i),Zn.call(this,this.media,"cuechange"))):this.debug.warn("updateCues: Invalid input",e):this.debug.warn("No captions element to render to"))}},Vo={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:"16:9",clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.4.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240]},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2]},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",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/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://www.googleapis.com/youtube/v3/videos?id={0}&key={1}&fields=items(snippet(title))&part=snippet"},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",menu:{quality:".js-plyr__menu__list--quality"}},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",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"},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},keys:{google:null},ads:{enabled:!1,publisherId:""}},Go="picture-in-picture",Zo="inline",Yo={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Xo="audio",Ko="video";function Qo(){}var Jo=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];fi(this,t),this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}return gi(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Qo}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Qo}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Qo}}]),t}();function es(){var e;this.enabled&&(e=this.player.elements.buttons.fullscreen,Fn.element(e)&&(e.pressed=this.active),Zn.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0),fo.isIos||function(){var i,n,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];Fn.element(e)&&(e=ao.call(this,"button:not(:disabled), input:not(:disabled), [tabindex]"),i=e[0],n=e[e.length-1],Wn.call(this,this.elements.container,"keydown",function(e){var t;"Tab"===e.key&&9===e.keyCode&&((t=document.activeElement)!==n||e.shiftKey?t===i&&e.shiftKey&&(n.focus(),e.preventDefault()):(i.focus(),e.preventDefault()))},t,!1))}.call(this.player,this.target,this.active))}function ts(){var e,t,i,n=this,o=0<arguments.length&&void 0!==arguments[0]&&arguments[0];o?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=o?"hidden":"",oo(this.target,this.player.config.classNames.fullscreen.fallback,o),fo.isIos&&(e=document.head.querySelector('meta[name="viewport"]'),t="viewport-fit=cover",e||(e=document.createElement("meta")).setAttribute("name","viewport"),i=Fn.string(e.content)&&e.content.includes(t),o?(this.cleanupViewport=!i,i||(e.content+=",".concat(t))):this.cleanupViewport&&(e.content=e.content.split(",").filter(function(e){return e.trim()!==t}).join(",")),setTimeout(function(){return po(n.target)},100)),es.call(this)}var is=function(){function i(e){var t=this;fi(this,i),this.player=e,this.prefix=i.prefix,this.property=i.property,this.scrollPosition={x:0,y:0},Un.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){es.call(t)}),Un.call(this.player,this.player.elements.container,"dblclick",function(e){Fn.element(t.player.elements.controls)&&t.player.elements.controls.contains(e.target)||t.toggle()}),this.update()}return gi(i,[{key:"update",value:function(){this.enabled?this.player.debug.log("".concat(i.native?"Native":"Fallback"," fullscreen enabled")):this.player.debug.log("Fullscreen not supported and fallback disabled"),oo(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(fo.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():i.native?this.prefix?Fn.empty(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen():ts.call(this,!0))}},{key:"exit",value:function(){var e;this.enabled&&(fo.isIos&&this.player.config.fullscreen.iosNative?(this.target.webkitExitFullscreen(),this.player.play()):i.native?this.prefix?Fn.empty(this.prefix)||(e="moz"===this.prefix?"Cancel":"Exit",document["".concat(this.prefix).concat(e).concat(this.property)]()):(document.cancelFullScreen||document.exitFullscreen).call(document):ts.call(this,!1))}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"enabled",get:function(){return(i.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){return!!this.enabled&&(i.native?(this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement)===this.target:so(this.target,this.player.config.classNames.fullscreen.fallback))}},{key:"target",get:function(){return fo.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(Fn.function(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some(function(e){return!(!Fn.function(document["".concat(e,"ExitFullscreen")])&&!Fn.function(document["".concat(e,"CancelFullScreen")]))&&(t=e,!0)}),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),i}(),Pe=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};function ns(o,e){var s=1<arguments.length&&void 0!==e?e:1;return new Promise(function(e,t){function i(){delete n.onload,delete n.onerror,(n.naturalWidth>=s?e:t)(n)}var n=new Image;Object.assign(n,{onload:i,onerror:i,src:o})})}z(z.S,"Math",{sign:Pe});var os={addStyleHook:function(){oo(this.elements.container,this.config.selectors.container.replace(".",""),!0),oo(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void os.toggleNativeControls.call(this,!0);Fn.element(this.elements.controls)||(Fo.inject.call(this),this.listeners.controls()),os.toggleNativeControls.call(this),this.isHTML5&&Uo.setup.call(this),this.volume=null,this.muted=null,this.speed=null,this.loop=null,this.quality=null,Fo.updateVolume.call(this),Fo.timeUpdate.call(this),os.checkPlaying.call(this),oo(this.elements.container,this.config.classNames.pip.supported,go.pip&&this.isHTML5&&this.isVideo),oo(this.elements.container,this.config.classNames.airplay.supported,go.airplay&&this.isHTML5),oo(this.elements.container,this.config.classNames.isIos,fo.isIos),oo(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(function(){Zn.call(e,e.media,"ready")},0),os.setTitle.call(this),this.poster&&os.setPoster.call(this,this.poster,!1).catch(function(){}),this.config.duration&&Fo.durationUpdate.call(this)},setTitle:function(){var e,t,i,n=No("play",this.config);Fn.string(this.config.title)&&!Fn.empty(this.config.title)&&(n+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(e){e.setAttribute("aria-label",n)}),this.isEmbed&&(e=lo.call(this,"iframe"),Fn.element(e)&&(t=Fn.empty(this.config.title)?"video":this.config.title,i=No("frameTitle",this.config),e.setAttribute("title",i.replace("{title}",t))))},togglePoster:function(e){oo(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(t){var i=this;return 1<arguments.length&&void 0!==arguments[1]&&!arguments[1]||!this.poster?(this.media.setAttribute("poster",t),function(){var t=this;return new Promise(function(e){return t.ready?setTimeout(e,0):Un.call(t,t.elements.container,"ready",e)}).then(function(){})}.call(this).then(function(){return ns(t)}).catch(function(e){throw t===i.poster&&os.togglePoster.call(i,!1),e}).then(function(){if(t!==i.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(function(){return Object.assign(i.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),os.togglePoster.call(i,!0),t})):Promise.reject(new Error("Poster already set"))},checkPlaying:function(e){var t=this;oo(this.elements.container,this.config.classNames.playing,this.playing),oo(this.elements.container,this.config.classNames.paused,this.paused),oo(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(function(e){e.pressed=t.playing}),Fn.event(e)&&"timeupdate"===e.type||os.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(){oo(t.elements.container,t.config.classNames.loading,t.loading),os.toggleControls.call(t)},this.loading?250:0)},toggleControls:function(e){var t,i=this.elements.controls;i&&this.config.hideControls&&(t=this.touch&&this.lastSeekTime+2e3>Date.now(),this.toggleControls(Boolean(e||this.loading||this.paused||i.pressed||i.hover||t)))}},ss=function(){function t(e){fi(this,t),this.player=e,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 gi(t,[{key:"handleKey",value:function(e){var t=this.player,i=t.elements,n=e.keyCode||e.which,o="keydown"===e.type,s=o&&n===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&Fn.number(n))if(o){var r=document.activeElement;if(Fn.element(r)){o=t.config.selectors.editable;if(r!==i.inputs.seek&&ro(r,o))return;if(32===e.which&&ro(r,'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(n)&&(e.preventDefault(),e.stopPropagation()),n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:s||(t.currentTime=t.duration/10*(n-48));break;case 32:case 75:s||t.togglePlay();break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:s||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:s||t.toggleCaptions();break;case 76:t.loop=!t.loop}!t.fullscreen.enabled&&t.fullscreen.active&&27===n&&t.fullscreen.toggle(),this.lastKey=n}else this.lastKey=null}},{key:"toggleMenu",value:function(e){Fo.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,oo(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t,i,n=this.player,o=n.elements;clearTimeout(this.focusTimer),"keydown"===e.type&&9!==e.which||("keydown"===e.type&&(this.lastKeyDown=e.timeStamp),t=e.timeStamp-this.lastKeyDown<=20,"focus"===e.type&&!t||(i=n.config.classNames.tabFocus,oo(ao.call(n,".".concat(i)),i,!1),this.focusTimer=setTimeout(function(){var e=document.activeElement;o.container.contains(e)&&oo(document.activeElement,n.config.classNames.tabFocus,!0)},10)))}},{key:"global",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=this.player;t.config.keyboard.global&&Wn.call(t,window,"keydown keyup",this.handleKey,e,!1),Wn.call(t,document.body,"click",this.toggleMenu,e),Gn.call(t,document.body,"touchstart",this.firstTouch),Wn.call(t,document.body,"keydown focus blur",this.setTabFocus,e,!1,!0)}},{key:"container",value:function(){var i=this.player,n=i.elements;!i.config.keyboard.global&&i.config.keyboard.focused&&Un.call(i,n.container,"keydown keyup",this.handleKey,!1),Un.call(i,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(e){var t=n.controls;t&&"enterfullscreen"===e.type&&(t.pressed=!1,t.hover=!1);t=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(os.toggleControls.call(i,!0),t=i.touch?3e3:2e3),clearTimeout(i.timers.controls),i.timers.controls=setTimeout(function(){return os.toggleControls.call(i,!1)},t)})}},{key:"media",value:function(){var i=this.player,n=i.elements;if(Un.call(i,i.media,"timeupdate seeking seeked",function(e){return Fo.timeUpdate.call(i,e)}),Un.call(i,i.media,"durationchange loadeddata loadedmetadata",function(e){return Fo.durationUpdate.call(i,e)}),Un.call(i,i.media,"canplay loadeddata",function(){no(n.volume,!i.hasAudio),no(n.buttons.mute,!i.hasAudio)}),Un.call(i,i.media,"ended",function(){i.isHTML5&&i.isVideo&&i.config.resetOnEnd&&i.restart()}),Un.call(i,i.media,"progress playing seeking seeked",function(e){return Fo.updateProgress.call(i,e)}),Un.call(i,i.media,"volumechange",function(e){return Fo.updateVolume.call(i,e)}),Un.call(i,i.media,"playing play pause ended emptied timeupdate",function(e){return os.checkPlaying.call(i,e)}),Un.call(i,i.media,"waiting canplay seeked playing",function(e){return os.checkLoading.call(i,e)}),Un.call(i,i.media,"playing",function(){i.ads&&i.ads.enabled&&!i.ads.initialized&&i.ads.managerPromise.then(function(){return i.ads.play()}).catch(function(){return i.play()})}),i.supported.ui&&i.config.clickToPlay&&!i.isAudio){var t=lo.call(i,".".concat(i.config.classNames.video));if(!Fn.element(t))return;Un.call(i,n.container,"click",function(e){([n.container,t].includes(e.target)||t.contains(e.target))&&(i.touch&&i.config.hideControls||(i.ended?(i.restart(),i.play()):i.togglePlay()))})}i.supported.ui&&i.config.disableContextMenu&&Un.call(i,n.wrapper,"contextmenu",function(e){e.preventDefault()},!1),Un.call(i,i.media,"volumechange",function(){i.storage.set({volume:i.volume,muted:i.muted})}),Un.call(i,i.media,"ratechange",function(){Fo.updateSetting.call(i,"speed"),i.storage.set({speed:i.speed})}),Un.call(i,i.media,"qualitychange",function(e){Fo.updateSetting.call(i,"quality",null,e.detail.quality)}),Un.call(i,i.media,"ready qualitychange",function(){Fo.setDownloadLink.call(i)});var e=i.config.events.concat(["keyup","keydown"]).join(" ");Un.call(i,i.media,e,function(e){var t=e.detail,t=void 0===t?{}:t;"error"===e.type&&(t=i.media.error),Zn.call(i,n.container,e.type,!0,t)})}},{key:"proxy",value:function(e,t,i){var n=this.player,o=n.config.listeners[i],i=!0;(i=Fn.function(o)?o.call(n,e):i)&&Fn.function(t)&&t.call(n,e)}},{key:"bind",value:function(e,t,i,n){var o=this,s=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],r=this.player,a=r.config.listeners[n],a=Fn.function(a);Un.call(r,e,t,function(e){return o.proxy(e,i,n)},s&&!a)}},{key:"controls",value:function(){var e,o=this,s=this.player,i=s.elements,t=fo.isIE?"change":"input";i.buttons.play&&Array.from(i.buttons.play).forEach(function(e){o.bind(e,"click",s.togglePlay,"play")}),this.bind(i.buttons.restart,"click",s.restart,"restart"),this.bind(i.buttons.rewind,"click",s.rewind,"rewind"),this.bind(i.buttons.fastForward,"click",s.forward,"fastForward"),this.bind(i.buttons.mute,"click",function(){s.muted=!s.muted},"mute"),this.bind(i.buttons.captions,"click",function(){return s.toggleCaptions()}),this.bind(i.buttons.download,"click",function(){Zn.call(s,s.media,"download")},"download"),this.bind(i.buttons.fullscreen,"click",function(){s.fullscreen.toggle()},"fullscreen"),this.bind(i.buttons.pip,"click",function(){s.pip="toggle"},"pip"),this.bind(i.buttons.airplay,"click",s.airplay,"airplay"),this.bind(i.buttons.settings,"click",function(e){e.stopPropagation(),Fo.toggleMenu.call(s,e)}),this.bind(i.buttons.settings,"keyup",function(e){var t=e.which;[13,32].includes(t)&&(13!==t?(e.preventDefault(),e.stopPropagation(),Fo.toggleMenu.call(s,e)):Fo.focusFirstMenuItem.call(s,null,!0))},null,!1),this.bind(i.settings.menu,"keydown",function(e){27===e.which&&Fo.toggleMenu.call(s,e)}),this.bind(i.inputs.seek,"mousedown mousemove",function(e){var t=i.progress.getBoundingClientRect(),t=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",t)}),this.bind(i.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(e){var t=e.currentTarget,i=e.keyCode||e.which,n="play-on-seeked";Fn.keyboardEvent(e)&&39!==i&&37!==i||(s.lastSeekTime=Date.now(),i=t.hasAttribute(n),e=["mouseup","touchend","keyup"].includes(e.type),i&&e?(t.removeAttribute(n),s.play()):!e&&s.playing&&(t.setAttribute(n,""),s.pause()))}),fo.isIos&&(e=ao.call(s,'input[type="range"]'),Array.from(e).forEach(function(e){return o.bind(e,t,function(e){return po(e.target)})})),this.bind(i.inputs.seek,t,function(e){var t=e.currentTarget,e=t.getAttribute("seek-value");Fn.empty(e)&&(e=t.value),t.removeAttribute("seek-value"),s.currentTime=e/t.max*s.duration},"seek"),this.bind(i.progress,"mouseenter mouseleave mousemove",function(e){return Fo.updateSeekTooltip.call(s,e)}),fo.isWebkit&&Array.from(ao.call(s,'input[type="range"]')).forEach(function(e){o.bind(e,"input",function(e){return Fo.updateRangeFill.call(s,e.target)})}),s.config.toggleInvert&&!Fn.element(i.display.duration)&&this.bind(i.display.currentTime,"click",function(){0!==s.currentTime&&(s.config.invertTime=!s.config.invertTime,Fo.timeUpdate.call(s))}),this.bind(i.inputs.volume,t,function(e){s.volume=e.target.value},"volume"),this.bind(i.controls,"mouseenter mouseleave",function(e){i.controls.hover=!s.touch&&"mouseenter"===e.type}),this.bind(i.controls,"mousedown mouseup touchstart touchend touchcancel",function(e){i.controls.pressed=["mousedown","touchstart"].includes(e.type)}),this.bind(i.controls,"focusin",function(){var e=s.config,t=s.elements,i=s.timers;oo(t.controls,e.classNames.noTransition,!0),os.toggleControls.call(s,!0),setTimeout(function(){oo(t.controls,e.classNames.noTransition,!1)},0);var n=o.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout(function(){return os.toggleControls.call(s,!1)},n)}),this.bind(i.inputs.volume,"wheel",function(e){var t=e.webkitDirectionInvertedFromDevice,i=yi([e.deltaX,-e.deltaY].map(function(e){return t?-e:e}),2),n=i[0],i=i[1],n=Math.sign(Math.abs(n)>Math.abs(i)?n:i);s.increaseVolume(n/50);i=s.media.volume;(1===n&&i<1||-1===n&&0<i)&&e.preventDefault()},"volume",!1)}}]),t}(),ae=u.f,Pe=Function.prototype,rs=/^\s*function ([^ (]*)/;"name"in Pe||n&&ae(Pe,"name",{configurable:!0,get:function(){try{return(""+this).match(rs)[1]}catch(e){return""}}}),xe("match",1,function(n,o,l,c){return[function(e){var t=n(this),i=null==e?void 0:e[o];return void 0!==i?i.call(e,t):new RegExp(e)[o](String(t))},function(e){var t=c(l,e,this);if(t.done)return t.value;var i=x(e),n=String(this);if(!i.global)return dt(i,n);for(var o=i.unicode,s=[],r=i.lastIndex=0;null!==(a=dt(i,n));){var a=String(a[0]);""===(s[r]=a)&&(i.lastIndex=Si(n,M(i.lastIndex),o)),r++}return 0===r?null:s}]});var as=t(function(e,t){function s(e,t){if(e){var i=u[e];if(c[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function r(e,t){e.call&&(e={success:e}),t.length?(e.error||h)(t):(e.success||h)(e)}function a(e,n,t){for(var o=(e=e.push?e:[e]).length,i=o,s=[],r=function(e,t,i){if("e"==t&&s.push(e),"b"==t){if(!i)return;s.push(e)}--o||n(s)},a=0;a<i;a++)!function i(n,o,s,r){var a,l,e=document,t=s.async,c=(s.numRetries||0)+1,u=s.before||h,d=n.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(n)?(a=!0,(l=e.createElement("link")).rel="stylesheet",l.href=d):/(^img!|\.(png|gif|jpg|svg)$)/.test(n)?(l=e.createElement("img")).src=d:((l=e.createElement("script")).src=n,l.async=void 0===t||t),l.onload=l.onerror=l.onbeforeload=function(e){var t=e.type[0];if(a&&"hideFocus"in l)try{l.sheet.cssText.length||(t="e")}catch(e){18!=e.code&&(t="e")}if("e"==t&&(r+=1)<c)return i(n,o,s,r);o(n,t,e.defaultPrevented)},!1!==u(n,l)&&e.head.appendChild(l)}(e[a],r,t)}function i(e,t,i){var n,o;if(t&&t.trim&&(n=t),o=(n?i:t)||{},n){if(n in l)throw"LoadJS";l[n]=!0}a(e,function(e){r(o,e),s(n,e)},o)}var h,l,c,u;e.exports=(h=function(){},l={},c={},u={},i.ready=function(e,t){return function(e,i){e=e.push?e:[e];var t,n,o,s=[],r=e.length,a=r;t=function(e,t){t.length&&s.push(e),--a||i(s)};for(;r--;)n=e[r],(o=c[n])?t(n,o):(u[n]=u[n]||[]).push(t)}(e,function(e){r(t,e)}),i},i.done=function(e){s(e,[])},i.reset=function(){l={},c={},u={}},i.isDefined=function(e){return e in l},i)});function ls(i){return new Promise(function(e,t){as(i,{success:e,error:t})})}function cs(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Zn.call(this,this.media,e?"play":"pause"))}var us={setup:function(){var t=this;oo(this.elements.wrapper,this.config.classNames.embed,!0),us.setAspectRatio.call(this),Fn.object(window.Vimeo)?us.ready.call(this):ls(this.config.urls.vimeo.sdk).then(function(){us.ready.call(t)}).catch(function(e){t.debug.warn("Vimeo API failed to load",e)})},setAspectRatio:function(e){e=yi((Fn.string(e)?e:this.config.ratio).split(":").map(Number),2),e=100/e[0]*e[1];us.padding=e,this.elements.wrapper.style.paddingBottom="".concat(e,"%"),this.supported.ui&&(this.media.style.transform="translateY(-".concat((240-e)/4.8,"%)"))},ready:function(){var n=this,r=this,e=Wo({loop:r.config.loop.active,autoplay:r.autoplay,byline:!1,portrait:!1,title:!1,speed:!0,transparent:0,gesture:"media",playsinline:!this.config.fullscreen.iosNative}),t=r.media.getAttribute("src");Fn.empty(t)&&(t=r.media.getAttribute(r.config.attributes.embed.id));var t=(i=t,Fn.empty(i)?null:!Fn.number(Number(i))&&i.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:i),i=Kn("iframe"),e=Ao(r.config.urls.vimeo.iframe,t,e);i.setAttribute("src",e),i.setAttribute("allowfullscreen",""),i.setAttribute("allowtransparency",""),i.setAttribute("allow","autoplay");e=Kn("div",{poster:r.poster,class:r.config.classNames.embedContainer});e.appendChild(i),r.media=to(e,r.media),$o(Ao(r.config.urls.vimeo.api,t),"json").then(function(e){Fn.empty(e)||((e=new URL(e[0].thumbnail_large)).pathname="".concat(e.pathname.split("_")[0],".jpg"),os.setPoster.call(r,e.href).catch(function(){}))}),r.embed=new window.Vimeo.Player(i,{autopause:r.config.autopause,muted:r.muted}),r.media.paused=!0,r.media.currentTime=0,r.supported.ui&&r.embed.disableTextTrack(),r.media.play=function(){return cs.call(r,!0),r.embed.play()},r.media.pause=function(){return cs.call(r,!1),r.embed.pause()},r.media.stop=function(){r.pause(),r.currentTime=0};var o=r.media.currentTime;Object.defineProperty(r.media,"currentTime",{get:function(){return o},set:function(e){var t=r.embed,i=r.media,n=r.paused,o=r.volume,s=n&&!t.hasPlayed;i.seeking=!0,Zn.call(r,i,"seeking"),Promise.resolve(s&&t.setVolume(0)).then(function(){return t.setCurrentTime(e)}).then(function(){return s&&t.pause()}).then(function(){return s&&t.setVolume(o)}).catch(function(){})}});var s=r.config.speed.selected;Object.defineProperty(r.media,"playbackRate",{get:function(){return s},set:function(e){r.embed.setPlaybackRate(e).then(function(){s=e,Zn.call(r,r.media,"ratechange")}).catch(function(e){"Error"===e.name&&Fo.setSpeedMenu.call(r,[])})}});var a=r.config.volume;Object.defineProperty(r.media,"volume",{get:function(){return a},set:function(e){r.embed.setVolume(e).then(function(){a=e,Zn.call(r,r.media,"volumechange")})}});var l=r.config.muted;Object.defineProperty(r.media,"muted",{get:function(){return l},set:function(e){var t=!!Fn.boolean(e)&&e;r.embed.setVolume(t?0:r.config.volume).then(function(){l=t,Zn.call(r,r.media,"volumechange")})}});var c,u=r.config.loop;Object.defineProperty(r.media,"loop",{get:function(){return u},set:function(e){var t=Fn.boolean(e)?e:r.config.loop.active;r.embed.setLoop(t).then(function(){u=t})}}),r.embed.getVideoUrl().then(function(e){c=e,Fo.setDownloadLink.call(r)}).catch(function(e){n.debug.warn(e)}),Object.defineProperty(r.media,"currentSrc",{get:function(){return c}}),Object.defineProperty(r.media,"ended",{get:function(){return r.currentTime===r.duration}}),Promise.all([r.embed.getVideoWidth(),r.embed.getVideoHeight()]).then(function(e){var t,i;us.ratio=(t=e[0],i=e[1],e=function e(t,i){return 0===i?t:e(i,t%i)}(t,i),"".concat(t/e,":").concat(i/e)),us.setAspectRatio.call(n,us.ratio)}),r.embed.setAutopause(r.config.autopause).then(function(e){r.config.autopause=e}),r.embed.getVideoTitle().then(function(e){r.config.title=e,os.setTitle.call(n)}),r.embed.getCurrentTime().then(function(e){o=e,Zn.call(r,r.media,"timeupdate")}),r.embed.getDuration().then(function(e){r.media.duration=e,Zn.call(r,r.media,"durationchange")}),r.embed.getTextTracks().then(function(e){r.media.textTracks=e,Uo.setup.call(r)}),r.embed.on("cuechange",function(e){e=e.cues,e=(void 0===e?[]:e).map(function(e){return t=e.text,i=document.createDocumentFragment(),e=document.createElement("div"),i.appendChild(e),e.innerHTML=t,i.firstChild.innerText;var t,i});Uo.updateCues.call(r,e)}),r.embed.on("loaded",function(){r.embed.getPaused().then(function(e){cs.call(r,!e),e||Zn.call(r,r.media,"playing")}),Fn.element(r.embed.element)&&r.supported.ui&&r.embed.element.setAttribute("tabindex",-1)}),r.embed.on("play",function(){cs.call(r,!0),Zn.call(r,r.media,"playing")}),r.embed.on("pause",function(){cs.call(r,!1)}),r.embed.on("timeupdate",function(e){r.media.seeking=!1,o=e.seconds,Zn.call(r,r.media,"timeupdate")}),r.embed.on("progress",function(e){r.media.buffered=e.percent,Zn.call(r,r.media,"progress"),1===parseInt(e.percent,10)&&Zn.call(r,r.media,"canplaythrough"),r.embed.getDuration().then(function(e){e!==r.media.duration&&(r.media.duration=e,Zn.call(r,r.media,"durationchange"))})}),r.embed.on("seeked",function(){r.media.seeking=!1,Zn.call(r,r.media,"seeked")}),r.embed.on("ended",function(){r.media.paused=!0,Zn.call(r,r.media,"ended")}),r.embed.on("error",function(e){r.media.error=e,Zn.call(r,r.media,"error")}),r.on("enterfullscreen exitfullscreen",function(e){var t,i,n=r.fullscreen.target;n===r.elements.container&&(t="enterfullscreen"===e.type,e=(i=yi(us.ratio.split(":").map(Number),2))[0],i=i[1],n.style[i<e?"width":"height"]=t?"".concat(us.padding,"%"):null)}),setTimeout(function(){return os.build.call(r)},0)}};function ds(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Zn.call(this,this.media,e?"play":"pause"))}var hs={setup:function(){var t=this;oo(this.elements.wrapper,this.config.classNames.embed,!0),hs.setAspectRatio.call(this),Fn.object(window.YT)&&Fn.function(window.YT.Player)?hs.ready.call(this):(ls(this.config.urls.youtube.sdk).catch(function(e){t.debug.warn("YouTube API failed to load",e)}),window.onYouTubeReadyCallbacks=window.onYouTubeReadyCallbacks||[],window.onYouTubeReadyCallbacks.push(function(){hs.ready.call(t)}),window.onYouTubeIframeAPIReady=function(){window.onYouTubeReadyCallbacks.forEach(function(e){e()})})},getTitle:function(e){var t=this;if(Fn.function(this.embed.getVideoData)){var i=this.embed.getVideoData().title;if(Fn.empty(i))return this.config.title=i,void os.setTitle.call(this)}i=this.config.keys.google;Fn.string(i)&&!Fn.empty(i)&&$o(Ao(this.config.urls.youtube.api,e,i)).then(function(e){Fn.object(e)&&(t.config.title=e.items[0].snippet.title,os.setTitle.call(t))}).catch(function(){})},setAspectRatio:function(){var e=this.config.ratio.split(":");this.elements.wrapper.style.paddingBottom="".concat(100/e[0]*e[1],"%")},ready:function(){var o,e,t,s=this,i=s.media.getAttribute("id");!Fn.empty(i)&&i.startsWith("youtube-")||(e=s.media.getAttribute("src"),Fn.empty(e)&&(e=s.media.getAttribute(this.config.attributes.embed.id)),i=e,o=Fn.empty(i)?null:i.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:i,e=s.provider,e=Kn("div",{id:i="".concat(e,"-").concat(Math.floor(1e4*Math.random())),poster:s.poster}),s.media=to(e,s.media),ns((t=function(e){return"https://img.youtube.com/vi/".concat(o,"/").concat(e,"default.jpg")})("maxres"),121).catch(function(){return ns(t("sd"),121)}).catch(function(){return ns(t("hq"))}).then(function(e){return os.setPoster.call(s,e.src)}).then(function(e){e.includes("maxres")||(s.elements.poster.style.backgroundSize="cover")}).catch(function(){}),s.embed=new window.YT.Player(i,{videoId:o,playerVars:{autoplay:s.config.autoplay?1:0,hl:s.config.hl,controls:s.supported.ui?0:1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,disablekb:1,playsinline:1,widget_referrer:window?window.location.href:null,cc_load_policy:s.captions.active?1:0,cc_lang_pref:s.config.captions.language},events:{onError:function(e){s.media.error||(e=e.data,s.media.error={code:e,message:{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."}[e]||"An unknown error occured"},Zn.call(s,s.media,"error"))},onPlaybackRateChange:function(e){e=e.target;s.media.playbackRate=e.getPlaybackRate(),Zn.call(s,s.media,"ratechange")},onReady:function(e){var t,i,n;Fn.function(s.media.play)||(t=e.target,hs.getTitle.call(s,o),s.media.play=function(){ds.call(s,!0),t.playVideo()},s.media.pause=function(){ds.call(s,!1),t.pauseVideo()},s.media.stop=function(){t.stopVideo()},s.media.duration=t.getDuration(),s.media.paused=!0,s.media.currentTime=0,Object.defineProperty(s.media,"currentTime",{get:function(){return Number(t.getCurrentTime())},set:function(e){s.paused&&!s.embed.hasPlayed&&s.embed.mute(),s.media.seeking=!0,Zn.call(s,s.media,"seeking"),t.seekTo(e)}}),Object.defineProperty(s.media,"playbackRate",{get:function(){return t.getPlaybackRate()},set:function(e){t.setPlaybackRate(e)}}),i=s.config.volume,Object.defineProperty(s.media,"volume",{get:function(){return i},set:function(e){i=e,t.setVolume(100*i),Zn.call(s,s.media,"volumechange")}}),n=s.config.muted,Object.defineProperty(s.media,"muted",{get:function(){return n},set:function(e){e=Fn.boolean(e)?e:n;t[(n=e)?"mute":"unMute"](),Zn.call(s,s.media,"volumechange")}}),Object.defineProperty(s.media,"currentSrc",{get:function(){return t.getVideoUrl()}}),Object.defineProperty(s.media,"ended",{get:function(){return s.currentTime===s.duration}}),s.options.speed=t.getAvailablePlaybackRates(),s.supported.ui&&s.media.setAttribute("tabindex",-1),Zn.call(s,s.media,"timeupdate"),Zn.call(s,s.media,"durationchange"),clearInterval(s.timers.buffering),s.timers.buffering=setInterval(function(){s.media.buffered=t.getVideoLoadedFraction(),(null===s.media.lastBuffered||s.media.lastBuffered<s.media.buffered)&&Zn.call(s,s.media,"progress"),s.media.lastBuffered=s.media.buffered,1===s.media.buffered&&(clearInterval(s.timers.buffering),Zn.call(s,s.media,"canplaythrough"))},200),setTimeout(function(){return os.build.call(s)},50))},onStateChange:function(e){var t=e.target;switch(clearInterval(s.timers.playing),s.media.seeking&&[1,2].includes(e.data)&&(s.media.seeking=!1,Zn.call(s,s.media,"seeked")),e.data){case-1:Zn.call(s,s.media,"timeupdate"),s.media.buffered=t.getVideoLoadedFraction(),Zn.call(s,s.media,"progress");break;case 0:ds.call(s,!1),s.media.loop?(t.stopVideo(),t.playVideo()):Zn.call(s,s.media,"ended");break;case 1:s.media.paused&&!s.embed.hasPlayed?s.media.pause():(ds.call(s,!0),Zn.call(s,s.media,"playing"),s.timers.playing=setInterval(function(){Zn.call(s,s.media,"timeupdate")},50),s.media.duration!==t.getDuration()&&(s.media.duration=t.getDuration(),Zn.call(s,s.media,"durationchange")));break;case 2:s.muted||s.embed.unMute(),ds.call(s,!1)}Zn.call(s,s.elements.container,"statechange",!1,{code:e.data})}}}))}},ps={setup:function(){this.media?(oo(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),oo(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&oo(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Kn("div",{class:this.config.classNames.video}),Yn(this.media,this.elements.wrapper),this.elements.poster=Kn("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?vo.extend.call(this):this.isYouTube?hs.setup.call(this):this.isVimeo&&us.setup.call(this)):this.debug.warn("No media element found!")}},fs=function(){function t(e){var i=this;fi(this,t),this.player=e,this.publisherId=e.config.ads.publisherId,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 gi(t,[{key:"load",value:function(){var e=this;this.enabled&&(Fn.object(window.google)&&Fn.object(window.google.ima)?this.ready():ls(this.player.config.urls.googleIMA.sdk).then(function(){e.ready()}).catch(function(){e.trigger("error",new Error("Google IMA SDK failed to load"))}))}},{key:"ready",value:function(){var e=this;this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(function(){e.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}},{key:"setupIMA",value:function(){this.elements.container=Kn("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container),this.requestAds()}},{key:"requestAds",value:function(){var t=this,e=this.player.elements.container;try{this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(e){return t.onAdsManagerLoaded(e)},!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return t.onAdError(e)},!1);var i=new google.ima.AdsRequest;i.adTagUrl=this.tagUrl,i.linearAdSlotWidth=e.offsetWidth,i.linearAdSlotHeight=e.offsetHeight,i.nonLinearAdSlotWidth=e.offsetWidth,i.nonLinearAdSlotHeight=e.offsetHeight,i.forceNonLinearFullSlot=!1,i.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(i)}catch(e){this.onAdError(e)}}},{key:"pollCountdown",value:function(){var t=this;if(!(0<arguments.length&&void 0!==arguments[0]&&arguments[0]))return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(function(){var e=Ho(Math.max(t.manager.getRemainingTime(),0)),e="".concat(No("advertisement",t.player.config)," - ").concat(e);t.elements.container.setAttribute("data-badge-text",e)},100)}},{key:"onAdsManagerLoaded",value:function(e){var t,n=this;this.enabled&&((t=new google.ima.AdsRenderingSettings).restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),Fn.empty(this.cuePoints)||this.cuePoints.forEach(function(e){var t,i;0!==e&&-1!==e&&e<n.player.duration&&(t=n.player.elements.progress,Fn.element(t)&&(i=100/n.player.duration*e,(e=Kn("span",{class:n.player.config.classNames.cues})).style.left="".concat(i.toString(),"%"),t.appendChild(e)))}),this.manager.setVolume(this.player.volume),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return n.onAdError(e)}),Object.keys(google.ima.AdEvent.Type).forEach(function(e){n.manager.addEventListener(google.ima.AdEvent.Type[e],function(e){return n.onAdEvent(e)})}),this.trigger("loaded"))}},{key:"onAdEvent",value:function(e){function t(e){e="ads".concat(e.replace(/_/g,"").toLowerCase()),Zn.call(i.player,i.player.media,e)}var i=this,n=this.player.elements.container,o=e.getAd();switch(e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),t(e.type),this.pollCountdown(!0),o.isLinear()||(o.width=n.offsetWidth,o.height=n.offsetHeight);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:t(e.type),this.loadAds();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:t(e.type),this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:t(e.type),this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.STARTED:case google.ima.AdEvent.Type.MIDPOINT:case google.ima.AdEvent.Type.COMPLETE:case google.ima.AdEvent.Type.IMPRESSION:case google.ima.AdEvent.Type.CLICK:t(e.type)}}},{key:"onAdError",value:function(e){this.cancel(),this.player.debug.warn("Ads error",e)}},{key:"listeners",value:function(){var n,o=this,e=this.player.elements.container;this.player.on("ended",function(){o.loader.contentComplete()}),this.player.on("seeking",function(){return n=o.player.currentTime}),this.player.on("seeked",function(){var i=o.player.currentTime;Fn.empty(o.cuePoints)||o.cuePoints.forEach(function(e,t){n<e&&e<i&&(o.manager.discardAdBreak(),o.cuePoints.splice(t,1))})}),window.addEventListener("resize",function(){o.manager&&o.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)})}},{key:"play",value:function(){var t=this,e=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then(function(){t.elements.displayContainer.initialize();try{t.initialized||(t.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),t.manager.start()),t.initialized=!0}catch(e){t.onAdError(e)}}).catch(function(){})}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="",this.playing=!1,this.player.currentTime<this.player.duration&&this.player.play()}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3,this.playing=!0,this.player.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}},{key:"loadAds",value:function(){var t=this;this.managerPromise.then(function(){t.manager&&t.manager.destroy(),t.managerPromise=new Promise(function(e){t.on("loaded",e),t.player.debug.log(t.manager)}),t.requestAds()}).catch(function(){})}},{key:"trigger",value:function(e){for(var t=this,i=arguments.length,n=new Array(1<i?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];e=this.events[e];Fn.array(e)&&e.forEach(function(e){Fn.function(e)&&e.apply(t,n)})}},{key:"on",value:function(e,t){return Fn.array(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this}},{key:"startSafetyTimer",value:function(e,t){var i=this;this.player.debug.log("Safety timer invoked from: ".concat(t)),this.safetyTimer=setTimeout(function(){i.cancel(),i.clearSafetyTimer("startSafetyTimer()")},e)}},{key:"clearSafetyTimer",value:function(e){Fn.nullOrUndefined(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.ads.enabled&&!Fn.empty(this.publisherId)}},{key:"tagUrl",get:function(){var e={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:this.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(Wo(e))}}]),t}(),ms={insertElements:function(t,e){var i=this;Fn.string(e)?Qn(t,this.media,{src:e}):Fn.array(e)&&e.forEach(function(e){Qn(t,i.media,e)})},change:function(s){var r=this;_o(s,"sources.length")?(vo.cancelRequests.call(this),this.destroy.call(this,function(){r.options.quality=[],Jn(r.media),r.media=null,Fn.element(r.elements.container)&&r.elements.container.removeAttribute("class");var e=s.sources,t=s.type,i=yi(e,1)[0],n=i.provider,o=void 0===n?Yo.html5:n,n=i.src,i="html5"===o?t:"div",n="html5"===o?{}:{src:n};Object.assign(r,{provider:o,type:t,supported:go.check(t,o,r.config.playsinline),media:Kn(i,n)}),r.elements.container.appendChild(r.media),Fn.boolean(s.autoplay)&&(r.config.autoplay=s.autoplay),r.isHTML5&&(r.config.crossorigin&&r.media.setAttribute("crossorigin",""),r.config.autoplay&&r.media.setAttribute("autoplay",""),Fn.empty(s.poster)||(r.poster=s.poster),r.config.loop.active&&r.media.setAttribute("loop",""),r.config.muted&&r.media.setAttribute("muted",""),r.config.playsinline&&r.media.setAttribute("playsinline","")),os.addStyleHook.call(r),r.isHTML5&&ms.insertElements.call(r,"source",e),r.config.title=s.title,ps.setup.call(r),r.isHTML5&&Object.keys(s).includes("tracks")&&ms.insertElements.call(r,"track",s.tracks),(r.isHTML5||r.isEmbed&&!r.supported.ui)&&os.build.call(r),r.isHTML5&&r.media.load(),r.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},xe=function(){function a(e,t){var i=this;if(fi(this,a),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=go.touch,this.media=e,Fn.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||Fn.nodeList(this.media)||Fn.array(this.media))&&(this.media=this.media[0]),this.config=bo({},Vo,a.defaults,t||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container: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 Jo(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",go),!Fn.nullOrUndefined(this.media)&&Fn.element(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(go.check().api){t=this.media.cloneNode(!0);t.autoplay=!1,this.elements.original=t;var n=this.media.tagName.toLowerCase(),o=null,s=null;switch(n){case"div":var r,o=this.media.querySelector("iframe");if(Fn.element(o)?(s=qo(o.getAttribute("src")),this.provider=(r=s.toString(),/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.?be)\/.+$/.test(r)?Yo.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(r)?Yo.vimeo:null),this.elements.container=this.media,this.media=o,this.elements.container.className="",s.search.length&&((r=["1","true"]).includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),r.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=r.includes(s.searchParams.get("playsinline")),this.config.hl=s.searchParams.get("hl")):this.config.playsinline=!0)):(this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider)),Fn.empty(this.provider)||!Object.keys(Yo).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Ko;break;case"video":case"audio":this.type=n,this.provider=Yo.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=go.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new ss(this),this.storage=new Bo(this),this.media.plyr=this,Fn.element(this.elements.container)||(this.elements.container=Kn("div"),Yn(this.media,this.elements.container)),os.addStyleHook.call(this),ps.setup.call(this),this.config.debug&&Un.call(this,this.elements.container,this.config.events.join(" "),function(e){i.debug.log("event: ".concat(e.type))}),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&os.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new is(this),this.config.ads.enabled&&(this.ads=new fs(this)),this.config.autoplay&&this.play(),this.lastSeekTime=0):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 gi(a,[{key:"play",value:function(){return Fn.function(this.media.play)?this.media.play():null}},{key:"pause",value:function(){this.playing&&Fn.function(this.media.pause)&&this.media.pause()}},{key:"togglePlay",value:function(e){(Fn.boolean(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):Fn.function(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime=this.currentTime-(Fn.number(e)?e:this.config.seekTime)}},{key:"forward",value:function(e){this.currentTime=this.currentTime+(Fn.number(e)?e:this.config.seekTime)}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(Fn.number(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){Uo.toggle.call(this,e,!1)}},{key:"airplay",value:function(){go.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(!this.supported.ui||this.isAudio)return!1;var t=so(this.elements.container,this.config.classNames.hideControls),e=oo(this.elements.container,this.config.classNames.hideControls,void 0===e?void 0:!e);return e&&this.config.controls.includes("settings")&&!Fn.empty(this.config.settings)&&Fo.toggleMenu.call(this,!1),e!==t&&Zn.call(this,this.media,e?"controlshidden":"controlsshown"),!e}},{key:"on",value:function(e,t){Un.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){Gn.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){Vn(this.elements.container,e,t)}},{key:"destroy",value:function(e){var t,i=this,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.ready&&(t=function(){document.body.style.overflow="",i.embed=null,n?(Object.keys(i.elements).length&&(Jn(i.elements.buttons.play),Jn(i.elements.captions),Jn(i.elements.controls),Jn(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),Fn.function(e)&&e()):(function(){this&&this.eventListeners&&(this.eventListeners.forEach(function(e){var t=e.element,i=e.type,n=e.callback,e=e.options;t.removeEventListener(i,n,e)}),this.eventListeners=[])}.call(i),to(i.elements.original,i.elements.container),Zn.call(i,i.elements.original,"destroyed",!0),Fn.function(e)&&e.call(i.elements.original),i.ready=!1,setTimeout(function(){i.elements=null,i.media=null},200))},this.stop(),this.isHTML5?(clearTimeout(this.timers.loading),os.toggleNativeControls.call(this,!0),t()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&Fn.function(this.embed.destroy)&&this.embed.destroy(),t()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(t),setTimeout(t,200)))}},{key:"supports",value:function(e){return go.mime.call(this,e)}},{key:"isHTML5",get:function(){return Boolean(this.provider===Yo.html5)}},{key:"isEmbed",get:function(){return Boolean(this.isYouTube||this.isVimeo)}},{key:"isYouTube",get:function(){return Boolean(this.provider===Yo.youtube)}},{key:"isVimeo",get:function(){return Boolean(this.provider===Yo.vimeo)}},{key:"isVideo",get:function(){return Boolean(this.type===Ko)}},{key:"isAudio",get:function(){return Boolean(this.type===Xo)}},{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){var t;this.duration&&(t=Fn.number(e)&&0<e,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 Fn.number(e)?e:e&&e.length&&0<this.duration?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,t=Fn.number(t)&&t!==1/0?t:0;return e||t}},{key:"volume",set:function(e){var t=e;Fn.string(t)&&(t=Number(t)),Fn.number(t)||(t=this.storage.get("volume")),Fn.number(t)||(t=this.config.volume),this.config.volume=t=(t=1<t?1:t)<0?0:t,this.media.volume=t,!Fn.empty(e)&&this.muted&&0<t&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){Fn.boolean(e)||(e=this.storage.get("muted")),Fn.boolean(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e},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=null;Fn.number(e)&&(t=e),Fn.number(t)||(t=this.storage.get("speed")),Fn.number(t)||(t=this.config.speed.selected),this.config.speed.options.includes(t=2<(t=t<.1?.1:t)?2:t)?(this.config.speed.selected=t,this.media.playbackRate=t):this.debug.warn("Unsupported speed (".concat(t,")"))},get:function(){return Number(this.media.playbackRate)}},{key:"quality",set:function(e){var t,i,n=this.config.quality,o=this.options.quality;o.length&&(t=[!Fn.empty(e)&&Number(e),this.storage.get("quality"),n.selected,n.default].find(Fn.number),e=!0,o.includes(t)||(o=o,i=t,o=Fn.array(o)&&o.length?o.reduce(function(e,t){return Math.abs(t-i)<Math.abs(e-i)?t:e}):null,this.debug.warn("Unsupported quality option: ".concat(t,", using ").concat(o," instead")),t=o,e=!1),n.selected=t,this.media.quality=t,e&&this.storage.set({quality:t}))},get:function(){return this.media.quality}},{key:"loop",set:function(e){e=Fn.boolean(e)?e:this.config.loop.active;this.config.loop.active=e,this.media.loop=e},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){ms.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return Fn.url(e)?e:this.source}},{key:"poster",set:function(e){this.isVideo?os.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"):null}},{key:"autoplay",set:function(e){e=Fn.boolean(e)?e:this.config.autoplay;this.config.autoplay=e},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){Uo.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,e=e.currentTrack;return t?e:-1}},{key:"language",set:function(e){Uo.setLanguage.call(this,e,!1)},get:function(){return(Uo.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){go.pip&&(e=Fn.boolean(e)?e:!this.pip,Fn.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?Go:Zo),Fn.function(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture()))},get:function(){return go.pip?Fn.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Go:null}}],[{key:"supported",value:function(e,t,i){return go.check(e,t,i)}},{key:"loadSprite",value:jo},{key:"setup",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;return Fn.string(e)?i=Array.from(document.querySelectorAll(e)):Fn.nodeList(e)?i=Array.from(e):Fn.array(e)&&(i=e.filter(Fn.element)),Fn.empty(i)?null:i.map(function(e){return new a(e,t)})}}]),a}();return xe.defaults=JSON.parse(JSON.stringify(Vo)),xe}),function(e,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(["jquery","googlemaps!"],t):e.GMaps=t()}(this,function(){function k(e,t){if(e===t)return e;for(var i in t)void 0!==t[i]&&(e[i]=t[i]);return e}function s(e,i){var t,n=Array.prototype.slice.call(arguments,2),o=[],s=e.length;if(Array.prototype.map&&e.map===Array.prototype.map)o=Array.prototype.map.call(e,function(e){var t=n.slice(0);return t.splice(0,0,e),i.apply(this,t)});else for(t=0;t<s;t++)callback_params=n,callback_params.splice(0,0,e[t]),o.push(i.apply(this,callback_params));return o}function r(e){for(var t=[],i=0;i<e.length;i++)t=t.concat(e[i]);return t}function a(e,t){for(var i,n,o,s=0;s<e.length;s++)e[s]instanceof google.maps.LatLng||(0<e[s].length&&"object"==typeof e[s][0]?e[s]=a(e[s],t):e[s]=(i=e[s],o=n=void 0,n=i[0],o=i[1],t&&(n=i[1],o=i[0]),new google.maps.LatLng(n,o)));return e}function E(e,t){var e=e.replace("#","");return e="jQuery"in window&&t?$("#"+e,t)[0]:document.getElementById(e)}var t,i,c=function(){"use strict";function C(i){if("object"!=typeof window.google||!window.google.maps)return"object"==typeof window.console&&window.console.error&&console.error("Google Maps API is required. Please register the following JavaScript library https://maps.googleapis.com/maps/api/js."),function(){};if(!this)return new C(i);i.zoom=i.zoom||15,i.mapType=i.mapType||"roadmap";var e,t=function(e,t){return void 0===e?t:e},h=this,n=["bounds_changed","center_changed","click","dblclick","drag","dragend","dragstart","idle","maptypeid_changed","projection_changed","resize","tilesloaded","zoom_changed"],o=["mousemove","mouseout","mouseover"],s=["el","lat","lng","mapType","width","height","markerClusterer","enableNewStyle"],r=i.el||i.div,a=i.markerClusterer,l=google.maps.MapTypeId[i.mapType.toUpperCase()],c=new google.maps.LatLng(i.lat,i.lng),u=t(i.zoomControl,!0),d=(g=i.zoomControlOpt||{style:"DEFAULT",position:"TOP_LEFT"}).style||"DEFAULT",p=g.position||"TOP_LEFT",f=t(i.panControl,!0),m=t(i.mapTypeControl,!0),g=t(i.scaleControl,!0),t=t(i.streetViewControl,!0),v={},l={zoom:this.zoom,center:c,mapTypeId:l},t={panControl:f,zoomControl:u,zoomControlOptions:{style:google.maps.ZoomControlStyle[d],position:google.maps.ControlPosition[p]},mapTypeControl:m,scaleControl:g,streetViewControl:t,overviewMapControl:!0};if("string"==typeof i.el||"string"==typeof i.div?-1<r.indexOf("#")?this.el=E(r,i.context):this.el=function(e,t){var e=e.replace(".",""),e=("jQuery"in this&&t?$("."+e,t):document.getElementsByClassName(e))[0];return e}.apply(this,[r,i.context]):this.el=r,void 0===this.el||null===this.el)throw"No element defined.";for(window.context_menu=window.context_menu||{},window.context_menu[h.el.id]={},this.controls=[],this.overlays=[],this.layers=[],this.singleLayers={},this.markers=[],this.polylines=[],this.routes=[],this.polygons=[],this.infoWindow=null,this.overlay_el=null,this.zoom=i.zoom,this.registered_events={},this.el.style.width=i.width||this.el.scrollWidth||this.el.offsetWidth,this.el.style.height=i.height||this.el.scrollHeight||this.el.offsetHeight,google.maps.visualRefresh=i.enableNewStyle,e=0;e<s.length;e++)delete i[s[e]];for(1!=i.disableDefaultUI&&(l=k(l,t)),v=k(l,i),e=0;e<n.length;e++)delete v[n[e]];for(e=0;e<o.length;e++)delete v[o[e]];function y(t,i){var e,n="",o=window.context_menu[h.el.id][t];for(r in o)o.hasOwnProperty(r)&&(e=o[r],n+='<li><a id="'+t+"_"+r+'" href="#">'+e.title+"</a></li>");if(E("gmaps_context_menu")){var s=E("gmaps_context_menu");s.innerHTML=n;var r,a=s.getElementsByTagName("a"),l=a.length;for(r=0;r<l;r++){var c=a[r];google.maps.event.clearListeners(c,"click"),google.maps.event.addDomListenerOnce(c,"click",function(e){e.preventDefault(),o[this.id.replace(t+"_","")].action.apply(h,[i]),h.hideContextMenu()},!1)}var u=function(e){var t=0,i=0;if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),o=-(window.scrollX||window.pageXOffset),s=-(window.scrollY||window.pageYOffset);return[n.left-o,n.top-s]}if(e.offsetParent)for(;t+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;);return[t,i]}.apply(this,[h.el]),d=u[0]+i.pixel.x-15,u=u[1]+i.pixel.y-15;s.style.left=d+"px",s.style.top=u+"px"}}function _(e,t){google.maps.event.addListener(e,t,function(e){i[t].apply(this,[e=null==e?this:e]),h.hideContextMenu()})}this.map=new google.maps.Map(this.el,v),a&&(this.markerClusterer=a.apply(this,[this.map])),this.buildContextMenu=function(i,n){var o;"marker"===i?(n.pixel={},(o=new google.maps.OverlayView).setMap(h.map),o.draw=function(){var e=o.getProjection(),t=n.marker.getPosition();n.pixel=e.fromLatLngToContainerPixel(t),y(i,n)}):y(i,n);var e=E("gmaps_context_menu");setTimeout(function(){e.style.display="block"},0)},this.setContextMenu=function(e){window.context_menu[h.el.id][e.control]={};var t,i,n=S.createElement("ul");for(t in e.options)e.options.hasOwnProperty(t)&&(i=e.options[t],window.context_menu[h.el.id][e.control][i.name]={title:i.title,action:i.action});n.id="gmaps_context_menu",n.style.display="none",n.style.position="absolute",n.style.minWidth="100px",n.style.background="white",n.style.listStyle="none",n.style.padding="8px",n.style.boxShadow="2px 2px 6px #ccc",E("gmaps_context_menu")||S.body.appendChild(n);var o=E("gmaps_context_menu");google.maps.event.addDomListener(o,"mouseout",function(e){e.relatedTarget&&this.contains(e.relatedTarget)||window.setTimeout(function(){o.style.display="none"},400)},!1)},this.hideContextMenu=function(){var e=E("gmaps_context_menu");e&&(e.style.display="none")},google.maps.event.addListener(this.map,"zoom_changed",this.hideContextMenu);for(var b=0;b<n.length;b++)(w=n[b])in i&&_(this.map,w);for(var w,b=0;b<o.length;b++)(w=o[b])in i&&_(this.map,w);google.maps.event.addListener(this.map,"rightclick",function(e){i.rightclick&&i.rightclick.apply(this,[e]),null!=window.context_menu[h.el.id].map&&h.buildContextMenu("map",e)}),this.refresh=function(){google.maps.event.trigger(this.map,"resize")},this.fitZoom=function(){for(var e=[],t=this.markers.length,i=0;i<t;i++)"boolean"==typeof this.markers[i].visible&&this.markers[i].visible&&e.push(this.markers[i].getPosition());this.fitLatLngBounds(e)},this.fitLatLngBounds=function(e){for(var t=e.length,i=new google.maps.LatLngBounds,n=0;n<t;n++)i.extend(e[n]);this.map.fitBounds(i)},this.setCenter=function(e,t,i){this.map.panTo(new google.maps.LatLng(e,t)),i&&i()},this.getElement=function(){return this.el},this.zoomIn=function(e){e=e||1,this.zoom=this.map.getZoom()+e,this.map.setZoom(this.zoom)},this.zoomOut=function(e){e=e||1,this.zoom=this.map.getZoom()-e,this.map.setZoom(this.zoom)};var x,T=[];for(x in this.map)"function"!=typeof this.map[x]||this[x]||T.push(x);for(e=0;e<T.length;e++)!function(e,t,i){e[i]=function(){return t[i].apply(t,arguments)}}(this,this.map,T[e])}var S=document;return C}();return c.prototype.createControl=function(t){var e,i,n=document.createElement("div");for(e in n.style.cursor="pointer",!0!==t.disableDefaultStyles&&(n.style.fontFamily="Roboto, Arial, sans-serif",n.style.fontSize="11px",n.style.boxShadow="rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px"),t.style)n.style[e]=t.style[e];for(i in t.id&&(n.id=t.id),t.title&&(n.title=t.title),t.classes&&(n.className=t.classes),t.content&&("string"==typeof t.content?n.innerHTML=t.content:t.content instanceof HTMLElement&&n.appendChild(t.content)),t.position&&(n.position=google.maps.ControlPosition[t.position.toUpperCase()]),t.events)!function(e){google.maps.event.addDomListener(n,e,function(){t.events[e].apply(this,[this])})}(i);return n.index=1,n},c.prototype.addControl=function(e){e=this.createControl(e);return this.controls.push(e),this.map.controls[e.position].push(e),e},c.prototype.removeControl=function(e){for(var t=null,i=0;i<this.controls.length;i++)this.controls[i]==e&&(t=this.controls[i].position,this.controls.splice(i,1));if(t)for(i=0;i<this.map.controls.length;i++){var n=this.map.controls[e.position];if(n.getAt(i)==e){n.removeAt(i);break}}return e},c.prototype.createMarker=function(n){if(null==n.lat&&null==n.lng&&null==n.position)throw"No latitude or longitude defined.";var t=this,e=n.details,i=n.fences,o=n.outside,s={position:new google.maps.LatLng(n.lat,n.lng),map:null},s=k(s,n);delete s.lat,delete s.lng,delete s.fences,delete s.outside;var r=new google.maps.Marker(s);if(r.fences=i,n.infoWindow){r.infoWindow=new google.maps.InfoWindow(n.infoWindow);for(var a=["closeclick","content_changed","domready","position_changed","zindex_changed"],l=0;l<a.length;l++)!function(e,t){n.infoWindow[t]&&google.maps.event.addListener(e,t,function(e){n.infoWindow[t].apply(this,[e])})}(r.infoWindow,a[l])}for(var c=["animation_changed","clickable_changed","cursor_changed","draggable_changed","flat_changed","icon_changed","position_changed","shadow_changed","shape_changed","title_changed","visible_changed","zindex_changed"],u=["dblclick","drag","dragend","dragstart","mousedown","mouseout","mouseover","mouseup"],l=0;l<c.length;l++)!function(e){n[e]&&google.maps.event.addListener(r,e,function(){n[e].apply(this,[this])})}(c[l]);for(l=0;l<u.length;l++)!function(t,i){n[i]&&google.maps.event.addListener(r,i,function(e){e.pixel||(e.pixel=t.getProjection().fromLatLngToPoint(e.latLng)),n[i].apply(this,[e])})}(this.map,u[l]);return google.maps.event.addListener(r,"click",function(){this.details=e,n.click&&n.click.apply(this,[this]),r.infoWindow&&(t.hideInfoWindows(),r.infoWindow.open(t.map,r))}),google.maps.event.addListener(r,"rightclick",function(e){e.marker=this,n.rightclick&&n.rightclick.apply(this,[e]),null!=window.context_menu[t.el.id].marker&&t.buildContextMenu("marker",e)}),r.fences&&google.maps.event.addListener(r,"dragend",function(){t.checkMarkerGeofence(r,function(e,t){o(e,t)})}),r},c.prototype.addMarker=function(e){var t;if(e.hasOwnProperty("gm_accessors_"))t=e;else{if(!(e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")||e.position))throw"No latitude or longitude defined.";t=this.createMarker(e)}return t.setMap(this.map),this.markerClusterer&&this.markerClusterer.addMarker(t),this.markers.push(t),c.fire("marker_added",t,this),t},c.prototype.addMarkers=function(e){for(var t,i=0;t=e[i];i++)this.addMarker(t);return this.markers},c.prototype.hideInfoWindows=function(){for(var e,t=0;e=this.markers[t];t++)e.infoWindow&&e.infoWindow.close()},c.prototype.removeMarker=function(e){for(var t=0;t<this.markers.length;t++)if(this.markers[t]===e){this.markers[t].setMap(null),this.markers.splice(t,1),this.markerClusterer&&this.markerClusterer.removeMarker(e),c.fire("marker_removed",e,this);break}return e},c.prototype.removeMarkers=function(e){var t=[];if(void 0===e){for(var i=0;i<this.markers.length;i++)(o=this.markers[i]).setMap(null),c.fire("marker_removed",o,this);this.markerClusterer&&this.markerClusterer.clearMarkers&&this.markerClusterer.clearMarkers(),this.markers=t}else{for(i=0;i<e.length;i++){var n=this.markers.indexOf(e[i]);-1<n&&((o=this.markers[n]).setMap(null),this.markerClusterer&&this.markerClusterer.removeMarker(o),c.fire("marker_removed",o,this))}for(var o,i=0;i<this.markers.length;i++)null!=(o=this.markers[i]).getMap()&&t.push(o);this.markers=t}},c.prototype.drawOverlay=function(s){var r=new google.maps.OverlayView,a=!0;return r.setMap(this.map),null!=s.auto_show&&(a=s.auto_show),r.onAdd=function(){var e=document.createElement("div");e.style.borderStyle="none",e.style.borderWidth="0px",e.style.position="absolute",e.style.zIndex=100,e.innerHTML=s.content,r.el=e,s.layer||(s.layer="overlayLayer");var t=this.getPanes(),i=["contextmenu","DOMMouseScroll","dblclick","mousedown"];t[s.layer].appendChild(e);for(var n=0;n<i.length;n++)google.maps.event.addDomListener(e,i[n],function(e){-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&document.all?(e.cancelBubble=!0,e.returnValue=!1):e.stopPropagation()});s.click&&(t.overlayMouseTarget.appendChild(r.el),google.maps.event.addDomListener(r.el,"click",function(){s.click.apply(r,[r])})),google.maps.event.trigger(this,"ready")},r.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(new google.maps.LatLng(s.lat,s.lng));s.horizontalOffset=s.horizontalOffset||0,s.verticalOffset=s.verticalOffset||0;var t=r.el,i=t.children[0],n=i.clientHeight,o=i.clientWidth;switch(s.verticalAlign){case"top":t.style.top=e.y-n+s.verticalOffset+"px";break;default:case"middle":t.style.top=e.y-n/2+s.verticalOffset+"px";break;case"bottom":t.style.top=e.y+s.verticalOffset+"px"}switch(s.horizontalAlign){case"left":t.style.left=e.x-o+s.horizontalOffset+"px";break;default:case"center":t.style.left=e.x-o/2+s.horizontalOffset+"px";break;case"right":t.style.left=e.x+s.horizontalOffset+"px"}t.style.display=a?"block":"none",a||s.show.apply(this,[t])},r.onRemove=function(){var e=r.el;s.remove?s.remove.apply(this,[e]):(r.el.parentNode.removeChild(r.el),r.el=null)},this.overlays.push(r),r},c.prototype.removeOverlay=function(e){for(var t=0;t<this.overlays.length;t++)if(this.overlays[t]===e){this.overlays[t].setMap(null),this.overlays.splice(t,1);break}},c.prototype.removeOverlays=function(){for(var e,t=0;e=this.overlays[t];t++)e.setMap(null);this.overlays=[]},c.prototype.drawPolyline=function(i){var e=[],t=i.path;if(t.length)if(void 0===t[0][0])e=t;else for(var n,o=0;n=t[o];o++)e.push(new google.maps.LatLng(n[0],n[1]));var s={map:this.map,path:e,strokeColor:i.strokeColor,strokeOpacity:i.strokeOpacity,strokeWeight:i.strokeWeight,geodesic:i.geodesic,clickable:!0,editable:!1,visible:!0};i.hasOwnProperty("clickable")&&(s.clickable=i.clickable),i.hasOwnProperty("editable")&&(s.editable=i.editable),i.hasOwnProperty("icons")&&(s.icons=i.icons),i.hasOwnProperty("zIndex")&&(s.zIndex=i.zIndex);for(var r=new google.maps.Polyline(s),a=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],l=0;l<a.length;l++)!function(t){i[t]&&google.maps.event.addListener(r,t,function(e){i[t].apply(this,[e])})}(a[l]);return this.polylines.push(r),c.fire("polyline_added",r,this),r},c.prototype.removePolyline=function(e){for(var t=0;t<this.polylines.length;t++)if(this.polylines[t]===e){this.polylines[t].setMap(null),this.polylines.splice(t,1),c.fire("polyline_removed",e,this);break}},c.prototype.removePolylines=function(){for(var e,t=0;e=this.polylines[t];t++)e.setMap(null);this.polylines=[]},c.prototype.drawCircle=function(i){delete(i=k({map:this.map,center:new google.maps.LatLng(i.lat,i.lng)},i)).lat,delete i.lng;for(var e=new google.maps.Circle(i),t=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=0;n<t.length;n++)!function(t){i[t]&&google.maps.event.addListener(e,t,function(e){i[t].apply(this,[e])})}(t[n]);return this.polygons.push(e),e},c.prototype.drawRectangle=function(i){i=k({map:this.map},i);var e=new google.maps.LatLngBounds(new google.maps.LatLng(i.bounds[0][0],i.bounds[0][1]),new google.maps.LatLng(i.bounds[1][0],i.bounds[1][1]));i.bounds=e;for(var n=new google.maps.Rectangle(i),t=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],o=0;o<t.length;o++)!function(t){i[t]&&google.maps.event.addListener(n,t,function(e){i[t].apply(this,[e])})}(t[o]);return this.polygons.push(n),n},c.prototype.drawPolygon=function(i){var e=!1;i.hasOwnProperty("useGeoJSON")&&(e=i.useGeoJSON),delete i.useGeoJSON,i=k({map:this.map},i),0==e&&(i.paths=[i.paths.slice(0)]),0<i.paths.length&&0<i.paths[0].length&&(i.paths=r(s(i.paths,a,e)));for(var n=new google.maps.Polygon(i),t=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],o=0;o<t.length;o++)!function(t){i[t]&&google.maps.event.addListener(n,t,function(e){i[t].apply(this,[e])})}(t[o]);return this.polygons.push(n),c.fire("polygon_added",n,this),n},c.prototype.removePolygon=function(e){for(var t=0;t<this.polygons.length;t++)if(this.polygons[t]===e){this.polygons[t].setMap(null),this.polygons.splice(t,1),c.fire("polygon_removed",e,this);break}},c.prototype.removePolygons=function(){for(var e,t=0;e=this.polygons[t];t++)e.setMap(null);this.polygons=[]},c.prototype.getFromFusionTables=function(e){var i=e.events;delete e.events;var t,n=new google.maps.FusionTablesLayer(e);for(t in i)!function(t){google.maps.event.addListener(n,t,function(e){i[t].apply(this,[e])})}(t);return this.layers.push(n),n},c.prototype.loadFromFusionTables=function(e){e=this.getFromFusionTables(e);return e.setMap(this.map),e},c.prototype.getFromKML=function(e){var t=e.url,i=e.events;delete e.url,delete e.events;var n,o=new google.maps.KmlLayer(t,e);for(n in i)!function(t){google.maps.event.addListener(o,t,function(e){i[t].apply(this,[e])})}(n);return this.layers.push(o),o},c.prototype.loadFromKML=function(e){e=this.getFromKML(e);return e.setMap(this.map),e},c.prototype.addLayer=function(e,t){var i,n;switch(t=t||{},e){case"weather":this.singleLayers.weather=i=new google.maps.weather.WeatherLayer;break;case"clouds":this.singleLayers.clouds=i=new google.maps.weather.CloudLayer;break;case"traffic":this.singleLayers.traffic=i=new google.maps.TrafficLayer;break;case"transit":this.singleLayers.transit=i=new google.maps.TransitLayer;break;case"bicycling":this.singleLayers.bicycling=i=new google.maps.BicyclingLayer;break;case"panoramio":this.singleLayers.panoramio=i=new google.maps.panoramio.PanoramioLayer,i.setTag(t.filter),delete t.filter,t.click&&google.maps.event.addListener(i,"click",function(e){t.click(e),delete t.click});break;case"places":this.singleLayers.places=i=new google.maps.places.PlacesService(this.map),(t.search||t.nearbySearch||t.radarSearch)&&(n={bounds:t.bounds||null,keyword:t.keyword||null,location:t.location||null,name:t.name||null,radius:t.radius||null,rankBy:t.rankBy||null,types:t.types||null},t.radarSearch&&i.radarSearch(n,t.radarSearch),t.search&&i.search(n,t.search),t.nearbySearch&&i.nearbySearch(n,t.nearbySearch)),t.textSearch&&(n={bounds:t.bounds||null,location:t.location||null,query:t.query||null,radius:t.radius||null},i.textSearch(n,t.textSearch))}if(void 0!==i)return"function"==typeof i.setOptions&&i.setOptions(t),"function"==typeof i.setMap&&i.setMap(this.map),i},c.prototype.removeLayer=function(e){if("string"==typeof e&&void 0!==this.singleLayers[e])this.singleLayers[e].setMap(null),delete this.singleLayers[e];else for(var t=0;t<this.layers.length;t++)if(this.layers[t]===e){this.layers[t].setMap(null),this.layers.splice(t,1);break}},c.prototype.getRoutes=function(n){switch(n.travelMode){case"bicycling":t=google.maps.TravelMode.BICYCLING;break;case"transit":t=google.maps.TravelMode.TRANSIT;break;case"driving":t=google.maps.TravelMode.DRIVING;break;default:t=google.maps.TravelMode.WALKING}i="imperial"===n.unitSystem?google.maps.UnitSystem.IMPERIAL:google.maps.UnitSystem.METRIC;var e=k({avoidHighways:!1,avoidTolls:!1,optimizeWaypoints:!1,waypoints:[]},n);e.origin=/string/.test(typeof n.origin)?n.origin:new google.maps.LatLng(n.origin[0],n.origin[1]),e.destination=/string/.test(typeof n.destination)?n.destination:new google.maps.LatLng(n.destination[0],n.destination[1]),e.travelMode=t,e.unitSystem=i,delete e.callback,delete e.error;var o=[];(new google.maps.DirectionsService).route(e,function(e,t){if(t===google.maps.DirectionsStatus.OK){for(var i in e.routes)e.routes.hasOwnProperty(i)&&o.push(e.routes[i]);n.callback&&n.callback(o,e,t)}else n.error&&n.error(e,t)})},c.prototype.removeRoutes=function(){this.routes.length=0},c.prototype.getElevations=function(e){0<(e=k({locations:[],path:!1,samples:256},e)).locations.length&&0<e.locations[0].length&&(e.locations=r(s([e.locations],a,!1)));var i=e.callback;delete e.callback;var t,n=new google.maps.ElevationService;e.path?(t={path:e.locations,samples:e.samples},n.getElevationAlongPath(t,function(e,t){i&&"function"==typeof i&&i(e,t)})):(delete e.path,delete e.samples,n.getElevationForLocations(e,function(e,t){i&&"function"==typeof i&&i(e,t)}))},c.prototype.cleanRoute=c.prototype.removePolylines,c.prototype.renderRoute=function(e,t){var n,i="string"==typeof t.panel?document.getElementById(t.panel.replace("#","")):t.panel;t.panel=i,t=k({map:this.map},t),n=new google.maps.DirectionsRenderer(t),this.getRoutes({origin:e.origin,destination:e.destination,travelMode:e.travelMode,waypoints:e.waypoints,unitSystem:e.unitSystem,error:e.error,avoidHighways:e.avoidHighways,avoidTolls:e.avoidTolls,optimizeWaypoints:e.optimizeWaypoints,callback:function(e,t,i){i===google.maps.DirectionsStatus.OK&&n.setDirections(t)}})},c.prototype.drawRoute=function(i){var n=this;this.getRoutes({origin:i.origin,destination:i.destination,travelMode:i.travelMode,waypoints:i.waypoints,unitSystem:i.unitSystem,error:i.error,avoidHighways:i.avoidHighways,avoidTolls:i.avoidTolls,optimizeWaypoints:i.optimizeWaypoints,callback:function(e){var t;0<e.length&&(t={path:e[e.length-1].overview_path,strokeColor:i.strokeColor,strokeOpacity:i.strokeOpacity,strokeWeight:i.strokeWeight},i.hasOwnProperty("icons")&&(t.icons=i.icons),n.drawPolyline(t),i.callback&&i.callback(e[e.length-1]))}})},c.prototype.travelRoute=function(s){if(s.origin&&s.destination)this.getRoutes({origin:s.origin,destination:s.destination,travelMode:s.travelMode,waypoints:s.waypoints,unitSystem:s.unitSystem,error:s.error,callback:function(e){if(0<e.length&&s.start&&s.start(e[e.length-1]),0<e.length&&s.step){var t=e[e.length-1];if(0<t.legs.length)for(var i,n=t.legs[0].steps,o=0;i=n[o];o++)i.step_number=o,s.step(i,t.legs[0].steps.length-1)}0<e.length&&s.end&&s.end(e[e.length-1])}});else if(s.route&&0<s.route.legs.length)for(var e,t=s.route.legs[0].steps,i=0;e=t[i];i++)e.step_number=i,s.step(e)},c.prototype.drawSteppedRoute=function(r){var a=this;if(r.origin&&r.destination)this.getRoutes({origin:r.origin,destination:r.destination,travelMode:r.travelMode,waypoints:r.waypoints,error:r.error,callback:function(e){if(0<e.length&&r.start&&r.start(e[e.length-1]),0<e.length&&r.step){var t=e[e.length-1];if(0<t.legs.length)for(var i,n=t.legs[0].steps,o=0;i=n[o];o++){i.step_number=o;var s={path:i.path,strokeColor:r.strokeColor,strokeOpacity:r.strokeOpacity,strokeWeight:r.strokeWeight};r.hasOwnProperty("icons")&&(s.icons=r.icons),a.drawPolyline(s),r.step(i,t.legs[0].steps.length-1)}}0<e.length&&r.end&&r.end(e[e.length-1])}});else if(r.route&&0<r.route.legs.length)for(var e,t=r.route.legs[0].steps,i=0;e=t[i];i++){e.step_number=i;var n={path:e.path,strokeColor:r.strokeColor,strokeOpacity:r.strokeOpacity,strokeWeight:r.strokeWeight};r.hasOwnProperty("icons")&&(n.icons=r.icons),a.drawPolyline(n),r.step(e)}},c.Route=function(e){this.origin=e.origin,this.destination=e.destination,this.waypoints=e.waypoints,this.map=e.map,this.route=e.route,this.step_count=0,this.steps=this.route.legs[0].steps,this.steps_length=this.steps.length;var t={path:new google.maps.MVCArray,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight};e.hasOwnProperty("icons")&&(t.icons=e.icons),this.polyline=this.map.drawPolyline(t).getPath()},c.Route.prototype.getRoute=function(t){var i=this;this.map.getRoutes({origin:this.origin,destination:this.destination,travelMode:t.travelMode,waypoints:this.waypoints||[],error:t.error,callback:function(){i.route=e[0],t.callback&&t.callback.call(i)}})},c.Route.prototype.back=function(){if(0<this.step_count){this.step_count--;var e,t=this.route.legs[0].steps[this.step_count].path;for(e in t)t.hasOwnProperty(e)&&this.polyline.pop()}},c.Route.prototype.forward=function(){if(this.step_count<this.steps_length){var e,t=this.route.legs[0].steps[this.step_count].path;for(e in t)t.hasOwnProperty(e)&&this.polyline.push(t[e]);this.step_count++}},c.prototype.checkGeofence=function(e,t,i){return i.containsLatLng(new google.maps.LatLng(e,t))},c.prototype.checkMarkerGeofence=function(e,t){if(e.fences)for(var i,n=0;i=e.fences[n];n++){var o=e.getPosition();this.checkGeofence(o.lat(),o.lng(),i)||t(e,i)}},c.prototype.toImage=function(e){var e=e||{},t={};if(t.size=e.size||[this.el.clientWidth,this.el.clientHeight],t.lat=this.getCenter().lat(),t.lng=this.getCenter().lng(),0<this.markers.length){t.markers=[];for(var i=0;i<this.markers.length;i++)t.markers.push({lat:this.markers[i].getPosition().lat(),lng:this.markers[i].getPosition().lng()})}return 0<this.polylines.length&&(e=this.polylines[0],t.polyline={},t.polyline.path=google.maps.geometry.encoding.encodePath(e.getPath()),t.polyline.strokeColor=e.strokeColor,t.polyline.strokeOpacity=e.strokeOpacity,t.polyline.strokeWeight=e.strokeWeight),c.staticMapURL(t)},c.staticMapURL=function(e){var t=[],i=("file:"===location.protocol?"http:":location.protocol)+"//maps.googleapis.com/maps/api/staticmap";e.url&&(i=e.url,delete e.url),i+="?";var n=e.markers;delete e.markers,!n&&e.marker&&(n=[e.marker],delete e.marker);var o=e.styles;delete e.styles;var s=e.polyline;delete e.polyline,e.center?(t.push("center="+e.center),delete e.center):e.address?(t.push("center="+e.address),delete e.address):e.lat?(t.push(["center=",e.lat,",",e.lng].join("")),delete e.lat,delete e.lng):e.visible&&(r=encodeURI(e.visible.join("|")),t.push("visible="+r));var r=e.size;r?(r.join&&(r=r.join("x")),delete e.size):r="630x300",t.push("size="+r),e.zoom||!1===e.zoom||(e.zoom=15);r=!e.hasOwnProperty("sensor")||!!e.sensor;for(u in delete e.sensor,t.push("sensor="+r),e)e.hasOwnProperty(u)&&t.push(u+"="+e[u]);if(n)for(var a,l,c=0;v=n[c];c++){for(var u in a=[],v.size&&"normal"!==v.size?(a.push("size:"+v.size),delete v.size):v.icon&&(a.push("icon:"+encodeURI(v.icon)),delete v.icon),v.color&&(a.push("color:"+v.color.replace("#","0x")),delete v.color),v.label&&(a.push("label:"+v.label[0].toUpperCase()),delete v.label),l=v.address||v.lat+","+v.lng,delete v.address,delete v.lat,delete v.lng,v)v.hasOwnProperty(u)&&a.push(u+":"+v[u]);a.length||0===c?(a.push(l),a=a.join("|"),t.push("markers="+encodeURI(a))):(a=t.pop()+encodeURI("|"+l),t.push(a))}if(o)for(c=0;c<o.length;c++){var d=[];o[c].featureType&&d.push("feature:"+o[c].featureType.toLowerCase()),o[c].elementType&&d.push("element:"+o[c].elementType.toLowerCase());for(var h=0;h<o[c].stylers.length;h++)for(var p in o[c].stylers[h]){var f=o[c].stylers[h][p];"hue"!=p&&"color"!=p||(f="0x"+f.substring(1)),d.push(p+":"+f)}var m=d.join("|");""!=m&&t.push("style="+m)}function g(e,t){if("#"===e[0]&&(e=e.replace("#","0x"),t)){if(t=parseFloat(t),0===(t=Math.min(1,Math.max(t,0))))return"0x00000000";1===(t=(255*t).toString(16)).length&&(t+=t),e=e.slice(0,8)+t}return e}if(s){var v=s,s=[];v.strokeWeight&&s.push("weight:"+parseInt(v.strokeWeight,10)),v.strokeColor&&(r=g(v.strokeColor,v.strokeOpacity),s.push("color:"+r)),v.fillColor&&(b=g(v.fillColor,v.fillOpacity),s.push("fillcolor:"+b));var y=v.path;if(y.join)for(var _,h=0;_=y[h];h++)s.push(_.join(","));else s.push("enc:"+y);s=s.join("|"),t.push("path="+encodeURI(s))}var b=window.devicePixelRatio||1;return t.push("scale="+b),i+(t=t.join("&"))},c.prototype.addMapType=function(e,t){if(!t.hasOwnProperty("getTileUrl")||"function"!=typeof t.getTileUrl)throw"'getTileUrl' function required.";t.tileSize=t.tileSize||new google.maps.Size(256,256);t=new google.maps.ImageMapType(t);this.map.mapTypes.set(e,t)},c.prototype.addOverlayMapType=function(e){if(!e.hasOwnProperty("getTile")||"function"!=typeof e.getTile)throw"'getTile' function required.";var t=e.index;delete e.index,this.map.overlayMapTypes.insertAt(t,e)},c.prototype.removeOverlayMapType=function(e){this.map.overlayMapTypes.removeAt(e)},c.prototype.addStyle=function(e){var t=new google.maps.StyledMapType(e.styles,{name:e.styledMapName});this.map.mapTypes.set(e.mapTypeId,t)},c.prototype.setStyle=function(e){this.map.setMapTypeId(e)},c.prototype.createPanorama=function(e){return e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")||(e.lat=this.getCenter().lat(),e.lng=this.getCenter().lng()),this.panorama=c.createPanorama(e),this.map.setStreetView(this.panorama),this.panorama},c.createPanorama=function(t){var e=E(t.el,t.context);t.position=new google.maps.LatLng(t.lat,t.lng),delete t.el,delete t.context,delete t.lat,delete t.lng;for(var i=["closeclick","links_changed","pano_changed","position_changed","pov_changed","resize","visible_changed"],n=k({visible:!0},t),o=0;o<i.length;o++)delete n[i[o]];for(var s=new google.maps.StreetViewPanorama(e,n),o=0;o<i.length;o++)!function(e){t[e]&&google.maps.event.addListener(s,e,function(){t[e].apply(this)})}(i[o]);return s},c.prototype.on=function(e,t){return c.on(e,this,t)},c.prototype.off=function(e){c.off(e,this)},c.prototype.once=function(e,t){return c.once(e,this,t)},c.custom_events=["marker_added","marker_removed","polyline_added","polyline_removed","polygon_added","polygon_removed","geolocated","geolocation_failed"],c.on=function(e,t,i){if(-1==c.custom_events.indexOf(e))return t instanceof c&&(t=t.map),google.maps.event.addListener(t,e,i);i={handler:i,eventName:e};return t.registered_events[e]=t.registered_events[e]||[],t.registered_events[e].push(i),i},c.off=function(e,t){-1==c.custom_events.indexOf(e)?(t instanceof c&&(t=t.map),google.maps.event.clearListeners(t,e)):t.registered_events[e]=[]},c.once=function(e,t,i){if(-1==c.custom_events.indexOf(e))return t instanceof c&&(t=t.map),google.maps.event.addListenerOnce(t,e,i)},c.fire=function(e,t,i){if(-1==c.custom_events.indexOf(e))google.maps.event.trigger(t,e,Array.prototype.slice.apply(arguments).slice(2));else if(e in i.registered_events)for(var n=i.registered_events[e],o=0;o<n.length;o++)n[o].handler.apply(i,[t])},c.geolocate=function(t){var i=t.always||t.complete;navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){t.success(e),i&&i()},function(e){t.error(e),i&&i()},t.options):(t.not_supported(),i&&i())},c.geocode=function(e){this.geocoder=new google.maps.Geocoder;var i=e.callback;e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")&&(e.latLng=new google.maps.LatLng(e.lat,e.lng)),delete e.lat,delete e.lng,delete e.callback,this.geocoder.geocode(e,function(e,t){i(e,t)})},"object"==typeof window.google&&window.google.maps&&(google.maps.Polygon.prototype.getBounds||(google.maps.Polygon.prototype.getBounds=function(e){for(var t=new google.maps.LatLngBounds,i=this.getPaths(),n=0;n<i.getLength();n++)for(var o=i.getAt(n),s=0;s<o.getLength();s++)t.extend(o.getAt(s));return t}),google.maps.Polygon.prototype.containsLatLng||(google.maps.Polygon.prototype.containsLatLng=function(e){var t=this.getBounds();if(null!==t&&!t.contains(e))return!1;for(var i=!1,n=this.getPaths().getLength(),o=0;o<n;o++)for(var s=this.getPaths().getAt(o),r=s.getLength(),a=r-1,l=0;l<r;l++){var c=s.getAt(l),u=s.getAt(a);(c.lng()<e.lng()&&u.lng()>=e.lng()||u.lng()<e.lng()&&c.lng()>=e.lng())&&c.lat()+(e.lng()-c.lng())/(u.lng()-c.lng())*(u.lat()-c.lat())<e.lat()&&(i=!i),a=l}return i}),google.maps.Circle.prototype.containsLatLng||(google.maps.Circle.prototype.containsLatLng=function(e){return!google.maps.geometry||google.maps.geometry.spherical.computeDistanceBetween(this.getCenter(),e)<=this.getRadius()}),google.maps.Rectangle.prototype.containsLatLng=function(e){return this.getBounds().contains(e)},google.maps.LatLngBounds.prototype.containsLatLng=function(e){return this.contains(e)},google.maps.Marker.prototype.setFences=function(e){this.fences=e},google.maps.Marker.prototype.addFence=function(e){this.fences.push(e)},google.maps.Marker.prototype.getId=function(){return this.__gm_id}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),i=t.length>>>0;if(0==i)return-1;var n=0;if(1<arguments.length&&((n=Number(arguments[1]))!=n?n=0:0!=n&&n!=1/0&&n!=-1/0&&(n=(0<n||-1)*Math.floor(Math.abs(n)))),i<=n)return-1;for(var o=0<=n?n:Math.max(i-Math.abs(n),0);o<i;o++)if(o in t&&t[o]===e)return o;return-1}),c}),function(){"use strict";function t(e){if(!e)throw new Error("No options passed to Waypoint constructor");if(!e.element)throw new Error("No element option passed to Waypoint constructor");if(!e.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i,this.options=t.Adapter.extend({},t.defaults,e),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=e.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),s[this.key]=this,i+=1}var i=0,s={};t.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},t.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete s[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(e){var t,i=[];for(t in s)i.push(s[t]);for(var n=0,o=i.length;n<o;n++)i[n][e]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){for(var e in t.Context.refreshAll(),s)s[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(e){window.setTimeout(e,1e3/60)}function i(e){this.element=e,this.Adapter=p.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,o[e.waypointContextKey]=this,n+=1,p.windowContext||(p.windowContext=!0,p.windowContext=new i(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,o={},p=window.Waypoint,e=window.onload;i.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},i.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;e&&t&&!i&&(this.adapter.off(".waypoints"),delete o[this.key])},i.prototype.createThrottledResizeHandler=function(){function e(){t.handleResize(),t.didResize=!1}var t=this;this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,p.requestAnimationFrame(e))})},i.prototype.createThrottledScrollHandler=function(){function e(){t.handleScroll(),t.didScroll=!1}var t=this;this.adapter.on("scroll.waypoints",function(){t.didScroll&&!p.isTouch||(t.didScroll=!0,p.requestAnimationFrame(e))})},i.prototype.handleResize=function(){p.Context.refreshAll()},i.prototype.handleScroll=function(){var e,t,i={},n={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(e in n){var o,s=n[e],r=s.newScroll>s.oldScroll?s.forward:s.backward;for(o in this.waypoints[e]){var a,l,c=this.waypoints[e][o];null!==c.triggerPoint&&(a=s.oldScroll<c.triggerPoint,l=s.newScroll>=c.triggerPoint,(a&&l||!a&&!l)&&(c.queueTrigger(r),i[c.group.id]=c.group))}}for(t in i)i[t].flushTriggers();this.oldScroll={x:n.horizontal.newScroll,y:n.vertical.newScroll}},i.prototype.innerHeight=function(){return this.element==this.element.window?p.viewportHeight():this.adapter.innerHeight()},i.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},i.prototype.innerWidth=function(){return this.element==this.element.window?p.viewportWidth():this.adapter.innerWidth()},i.prototype.destroy=function(){var e,t=[];for(e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;n<o;n++)t[n].destroy()},i.prototype.refresh=function(){var e,t,i=this.element==this.element.window,n=i?void 0:this.adapter.offset(),o={};for(t in this.handleScroll(),e={horizontal:{contextOffset:i?0:n.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:n.top,contextScroll:i?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s,r=e[t];for(s in this.waypoints[t]){var a,l=this.waypoints[t][s],c=l.options.offset,u=l.triggerPoint,d=0,h=null==u;l.element!==l.element.window&&(d=l.adapter.offset()[r.offsetProp]),"function"==typeof c?c=c.apply(l):"string"==typeof c&&(c=parseFloat(c),-1<l.options.offset.indexOf("%")&&(c=Math.ceil(r.contextDimension*c/100))),a=r.contextScroll-r.contextOffset,l.triggerPoint=Math.floor(d+a-c),a=u<r.oldScroll,c=l.triggerPoint>=r.oldScroll,u=!a&&!c,!h&&(a&&c)?(l.queueTrigger(r.backward),o[l.group.id]=l.group):(!h&&u||h&&r.oldScroll>=l.triggerPoint)&&(l.queueTrigger(r.forward),o[l.group.id]=l.group)}}return p.requestAnimationFrame(function(){for(var e in o)o[e].flushTriggers()}),this},i.findOrCreateByElement=function(e){return i.findByElement(e)||new i(e)},i.refreshAll=function(){for(var e in o)o[e].refresh()},i.findByElement=function(e){return o[e.waypointContextKey]},window.onload=function(){e&&e(),i.refreshAll()},p.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},p.Context=i}(),function(){"use strict";function s(e,t){return e.triggerPoint-t.triggerPoint}function r(e,t){return t.triggerPoint-e.triggerPoint}function t(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},n=window.Waypoint;t.prototype.add=function(e){this.waypoints.push(e)},t.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},t.prototype.flushTriggers=function(){for(var e in this.triggerQueues){var t=this.triggerQueues[e];t.sort("up"===e||"left"===e?r:s);for(var i=0,n=t.length;i<n;i+=1){var o=t[i];!o.options.continuous&&i!==t.length-1||o.trigger([e])}}this.clearTriggerQueues()},t.prototype.next=function(e){this.waypoints.sort(s);e=n.Adapter.inArray(e,this.waypoints);return e===this.waypoints.length-1?null:this.waypoints[e+1]},t.prototype.previous=function(e){this.waypoints.sort(s);e=n.Adapter.inArray(e,this.waypoints);return e?this.waypoints[e-1]:null},t.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},t.prototype.remove=function(e){e=n.Adapter.inArray(e,this.waypoints);-1<e&&this.waypoints.splice(e,1)},t.prototype.first=function(){return this.waypoints[0]},t.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},t.findOrCreate=function(e){return i[e.axis][e.name]||new t(e)},n.Group=t}(),function(){"use strict";function i(e){this.$element=n(e)}var n=window.jQuery,e=window.Waypoint;n.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,t){i.prototype[t]=function(){var e=Array.prototype.slice.call(arguments);return this.$element[t].apply(this.$element,e)}}),n.each(["extend","inArray","isEmptyObject"],function(e,t){i[t]=n[t]}),e.adapters.push({name:"jquery",Adapter:i}),e.Adapter=i}(),function(){"use strict";function e(n){return function(){var t=[],i=arguments[0];return n.isFunction(arguments[0])&&((i=n.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var e=n.extend({},i,{element:this});"string"==typeof e.context&&(e.context=n(this).closest(e.context)[0]),t.push(new o(e))}),t}}var o=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}();