vendor: 11,865 bytes, line 1
1!function(e,t){"use strict";"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(e,t){"use strict";var i=[],n=Object.getPrototypeOf,s=i.slice,a=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},r=i.push,o=i.indexOf,l={},c=l.toString,d=l.hasOwnProperty,h=d.toString,u=h.call(Object),p={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,i){var n,s,a=(i=i||m).createElement("script");if(a.text=e,t)for(n in v)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&a.setAttribute(n,s);i.head.appendChild(a).parentNode.removeChild(a)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var y="3.6.1",w=function(e,t){return new w.fn.init(e,t)};function _(e){var t=!!e&&"length"in e&&e.length,i=x(e);return!f(e)&&!g(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}w.fn=w.prototype={jquery:y,constructor:w,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:r,sort:i.sort,splice:i.splice},w.extend=w.fn.extend=function(){var e,t,i,n,s,a,r=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[o]||{},o++),"object"==typeof r||f(r)||(r={}),o===l&&(r=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)n=e[t],"__proto__"!==t&&r!==n&&(c&&n&&(w.isPlainObject(n)||(s=Array.isArray(n)))?(i=r[t],a=s&&!Array.isArray(i)?[]:s||w.isPlainObject(i)?i:{},s=!1,r[t]=w.extend(c,a,n)):void 0!==n&&(r[t]=n));return r},w.extend({expando:"jQuery"+(y+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==c.call(e)||(t=n(e))&&("function"!=typeof(i=d.call(t,"constructor")&&t.constructor)||h.call(i)!==u))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){b(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(_(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},makeArray:function(e,t){var i=t||[];return null!=e&&(_(Object(e))?w.merge(i,"string"==typeof e?[e]:e):r.call(i,e)),i},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,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,a=e.length,r=!i;s<a;s++)!t(e[s],s)!==r&&n.push(e[s]);return n},map:function(e,t,i){var n,s,r=0,o=[];if(_(e))for(n=e.length;r<n;r++)null!=(s=t(e[r],r,i))&&o.push(s);else for(r in e)null!=(s=t(e[r],r,i))&&o.push(s);return a(o)},guid:1,support:p}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=i[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,i,n,s,a,r,o,l,c,d,h,u,p,f,g,m,v,b,x,y="sizzle"+1*new Date,w=e.document,_=0,S=0,T=le(),C=le(),E=le(),M=le(),k=function(e,t){return e===t&&(h=!0),0},P={}.hasOwnProperty,$=[],D=$.pop,A=$.push,L=$.push,O=$.slice,I=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",N="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\["+R+"*("+N+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+R+"*\\]",F=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",j=new RegExp(R+"+","g"),H=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),V=new RegExp("^"+R+"*,"+R+"*"),W=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),q=new RegExp(R+"|>"),Y=new RegExp(F),X=new RegExp("^"+N+"$"),G={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},U=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){u()},re=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply($=O.call(w.childNodes),w.childNodes),$[w.childNodes.length].nodeType}catch(t){L={apply:$.length?function(e,t){A.apply(e,O.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function oe(e,t,n,s){var a,o,c,d,h,f,v,b=t&&t.ownerDocument,w=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return n;if(!s&&(u(t),t=t||p,g)){if(11!==w&&(h=J.exec(e)))if(a=h[1]){if(9===w){if(!(c=t.getElementById(a)))return n;if(c.id===a)return n.push(c),n}else if(b&&(c=b.getElementById(a))&&x(t,c)&&c.id===a)return n.push(c),n}else{if(h[2])return L.apply(n,t.getElementsByTagName(e)),n;if((a=h[3])&&i.getElementsByClassName&&t.getElementsByClassName)return L.apply(n,t.getElementsByClassName(a)),n}if(i.qsa&&!M[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,b=t,1===w&&(q.test(e)||W.test(e))){for((b=ee.test(e)&&ve(t.parentNode)||t)===t&&i.scope||((d=t.getAttribute("id"))?d=d.replace(ne,se):t.setAttribute("id",d=y)),o=(f=r(e)).length;o--;)f[o]=(d?"#"+d:":scope")+" "+xe(f[o]);v=f.join(",")}try{return L.apply(n,b.querySelectorAll(v)),n}catch(t){M(e,!0)}finally{d===y&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,n,s)}function le(){var e=[];return function t(i,s){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=s}}function ce(e){return e[y]=!0,e}function de(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var i=e.split("|"),s=i.length;s--;)n.attrHandle[i[s]]=t}function ue(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(i,n){for(var s,a=e([],i.length,t),r=a.length;r--;)i[s=a[r]]&&(i[s]=!(n[s]=i[s]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=oe.support={},a=oe.isXML=function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!U.test(t||i&&i.nodeName||"HTML")},u=oe.setDocument=function(e){var t,s,r=e?e.ownerDocument||e:w;return r!=p&&9===r.nodeType&&r.documentElement&&(f=(p=r).documentElement,g=!a(p),w!=p&&(s=p.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",ae,!1):s.attachEvent&&s.attachEvent("onunload",ae)),i.scope=de((function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.attributes=de((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=de((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=Z.test(p.getElementsByClassName),i.getById=de((function(e){return f.appendChild(e).id=y,!p.getElementsByName||!p.getElementsByName(y).length})),i.getById?(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i,n,s,a=t.getElementById(e);if(a){if((i=a.getAttributeNode("id"))&&i.value===e)return[a];for(s=t.getElementsByName(e),n=0;a=s[n++];)if((i=a.getAttributeNode("id"))&&i.value===e)return[a]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,a=t.getElementsByTagName(e);if("*"===e){for(;i=a[s++];)1===i.nodeType&&n.push(i);return n}return a},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(i.qsa=Z.test(p.querySelectorAll))&&(de((function(e){var t;f.appendChild(e).innerHTML="<a id='"+y+"'></a><select id='"+y+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+R+"*(?:value|"+z+")"),e.querySelectorAll("[id~="+y+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),de((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=Z.test(b=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&de((function(e){i.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),v.push("!=",F)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.j
vendor: 10,103 bytes, line 1
1oin("|")),t=Z.test(f.compareDocumentPosition),x=t||Z.test(f.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return h=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e==p||e.ownerDocument==w&&x(w,e)?-1:t==p||t.ownerDocument==w&&x(w,t)?1:d?I(d,e)-I(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return h=!0,0;var i,n=0,s=e.parentNode,a=t.parentNode,r=[e],o=[t];if(!s||!a)return e==p?-1:t==p?1:s?-1:a?1:d?I(d,e)-I(d,t):0;if(s===a)return ue(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)o.unshift(i);for(;r[n]===o[n];)n++;return n?ue(r[n],o[n]):r[n]==w?-1:o[n]==w?1:0}),p},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(u(e),i.matchesSelector&&g&&!M[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var n=b.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){M(t,!0)}return 0<oe(t,p,null,[e]).length},oe.contains=function(e,t){return(e.ownerDocument||e)!=p&&u(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=p&&u(e);var s=n.attrHandle[t.toLowerCase()],a=s&&P.call(n.attrHandle,t.toLowerCase())?s(e,t,!g):void 0;return void 0!==a?a:i.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},oe.escape=function(e){return(e+"").replace(ne,se)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,n=[],s=0,a=0;if(h=!i.detectDuplicates,d=!i.sortStable&&e.slice(0),e.sort(k),h){for(;t=e[a++];)t===e[a]&&(s=n.push(a));for(;s--;)e.splice(n[s],1)}return d=null,e},s=oe.getText=function(e){var t,i="",n=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=s(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[n++];)i+=s(t);return i},(n=oe.selectors={cacheLength:50,createPseudo:ce,match:G,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(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===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]||oe.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]&&oe.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&Y.test(i)&&(t=r(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(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&T(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var s=oe.attr(n,e);return null==s?"!="===t:!t||(s+="","="===t?s===i:"!="===t?s!==i:"^="===t?i&&0===s.indexOf(i):"*="===t?i&&-1<s.indexOf(i):"$="===t?i&&s.slice(-i.length)===i:"~="===t?-1<(" "+s.replace(j," ")+" ").indexOf(i):"|="===t&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,s){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===s?function(e){return!!e.parentNode}:function(t,i,l){var c,d,h,u,p,f,g=a!==r?"nextSibling":"previousSibling",m=t.parentNode,v=o&&t.nodeName.toLowerCase(),b=!l&&!o,x=!1;if(m){if(a){for(;g;){for(u=t;u=u[g];)if(o?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&b){for(x=(p=(c=(d=(h=(u=m)[y]||(u[y]={}))[u.uniqueID]||(h[u.uniqueID]={}))[e]||[])[0]===_&&c[1])&&c[2],u=p&&m.childNodes[p];u=++p&&u&&u[g]||(x=p=0)||f.pop();)if(1===u.nodeType&&++x&&u===t){d[e]=[_,p,x];break}}else if(b&&(x=p=(c=(d=(h=(u=t)[y]||(u[y]={}))[u.uniqueID]||(h[u.uniqueID]={}))[e]||[])[0]===_&&c[1]),!1===x)for(;(u=++p&&u&&u[g]||(x=p=0)||f.pop())&&((o?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++x||(b&&((d=(h=u[y]||(u[y]={}))[u.uniqueID]||(h[u.uniqueID]={}))[e]=[_,x]),u!==t)););return(x-=s)===n||x%n==0&&0<=x/n}}},PSEUDO:function(e,t){var i,s=n.pseudos[e]||n.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return s[y]?s(t):1<s.length?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,i){for(var n,a=s(e,t),r=a.length;r--;)e[n=I(e,a[r])]=!(i[n]=a[r])})):function(e){return s(e,0,i)}):s}},pseudos:{not:ce((function(e){var t=[],i=[],n=o(e.replace(H,"$1"));return n[y]?ce((function(e,t,i,s){for(var a,r=n(e,null,s,[]),o=e.length;o--;)(a=r[o])&&(e[o]=!(t[o]=a))})):function(e,s,a){return t[0]=e,n(t,null,a,i),t[0]=null,!i.pop()}})),has:ce((function(e){return function(t){return 0<oe(e,t).length}})),contains:ce((function(e){return e=e.replace(te,ie),function(t){return-1<(t.textContent||s(t)).indexOf(e)}})),lang:ce((function(e){return X.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),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!n.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,i){return[i<0?i+t:i]})),even:me((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:me((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:me((function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e})),gt:me((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=fe(t);function be(){}function xe(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function ye(e,t,i){var n=t.dir,s=t.next,a=s||n,r=i&&"parentNode"===a,o=S++;return t.first?function(t,i,s){for(;t=t[n];)if(1===t.nodeType||r)return e(t,i,s);return!1}:function(t,i,l){var c,d,h,u=[_,o];if(l){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||r)if(d=(h=t[y]||(t[y]={}))[t.uniqueID]||(h[t.uniqueID]={}),s&&s===t.nodeName.toLowerCase())t=t[n]||t;else{if((c=d[a])&&c[0]===_&&c[1]===o)return u[2]=c[2];if((d[a]=u)[2]=e(t,i,l))return!0}return!1}}function we(e){return 1<e.length?function(t,i,n){for(var s=e.length;s--;)if(!e[s](t,i,n))return!1;return!0}:e[0]}function _e(e,t,i,n,s){for(var a,r=[],o=0,l=e.length,c=null!=t;o<l;o++)(a=e[o])&&(i&&!i(a,n,s)||(r.push(a),c&&t.push(o)));return r}function Se(e,t,i,n,s,a){return n&&!n[y]&&(n=Se(n)),s&&!s[y]&&(s=Se(s,a)),ce((function(a,r,o,l){var c,d,h,u=[],p=[],f=r.length,g=a||function(e,t,i){for(var n=0,s=t.length;n<s;n++)oe(e,t[n],i);return i}(t||"*",o.nodeType?[o]:o,[]),m=!e||!a&&t?g:_e(g,u,e,o,l),v=i?s||(a?e:f||n)?[]:r:m;if(i&&i(m,v,o,l),n)for(c=_e(v,p),n(c,[],o,l),d=c.length;d--;)(h=c[d])&&(v[p[d]]=!(m[p[d]]=h));if(a){if(s||e){if(s){for(c=[],d=v.length;d--;)(h=v[d])&&c.push(m[d]=h);s(null,v=[],c,l)}for(d=v.length;d--;)(h=v[d])&&-1<(c=s?I(a,h):u[d])&&(a[c]=!(r[c]=h))}}else v=_e(v===r?v.splice(f,v.length):v),s?s(null,r,v,l):L.apply(r,v)}))}function Te(e){for(var t,i,s,a=e.length,r=n.relative[e[0].type],o=r||n.relative[" "],l=r?1:0,d=ye((function(e){return e===t}),o,!0),h=ye((function(e){return-1<I(t,e)}),o,!0),u=[function(e,i,n){var s=!r&&(n||i!==c)||((t=i).nodeType?d(e,i,n):h(e,i,n));return t=null,s}];l<a;l++)if(i=n.relative[e[l].type])u=[ye(we(u),i)];else{if((i=n.filter[e[l].type].apply(null,e[l].matches))[y]){for(s=++l;s<a&&!n.relative[e[s].type];s++);return Se(1<l&&we(u),1<l&&xe(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),i,l<s&&Te(e.slice(l,s)),s<a&&Te(e=e.slice(s)),s<a&&xe(e))}u.push(i)}return we(u)}return be.prototype=n.filters=n.pseudos,n.setFilters=new be,r=oe.tokenize=function(e,t){var i,s,a,r,o,l,c,d=C[e+" "];if(d)return t?0:d.slice(0);for(o=e,l=[],c=n.preFilter;o;){for(r in i&&!(s=V.exec(o))||(s&&(o=o.slice(s[0].length)||o),l.push(a=[])),i=!1,(s=W.exec(o))&&(i=s.shift(),a.push({value:i,type:s[0].replace(H," ")}),o=o.slice(i.length)),n.filter)!(s=G[r].exec(o))||c[r]&&!(s=c[r](s))||(i=s.shift(),a.push({value:i,type:r,matches:s}),o=o.slice(i.length));if(!i)break}return t?o.length:o?oe.error(e):C(e,l).slice(0)},o=oe.compile=function(e,t){var i,s,a,o,l,d,h=[],f=[],m=E[e+" "];if(!m){for(t||(t=r(e)),i=t.length;i--;)(m=Te(t[i]))[y]?h.push(m):f.push(m);(m=E(e,(s=f,o=0<(a=h).length,l=0<s.length,d=function(e,t,i,r,d){var h,f,m,v=0,b="0",x=e&&[],y=[],w=c,S=e||l&&n.find.TAG("*",d),T=_+=null==w?1:Math.random()||.1,C=S.length;for(d&&(c=t==p||t||d);b!==C&&null!=(h=S[b]);
vendor: 8,012 bytes, line 1
1b++){if(l&&h){for(f=0,t||h.ownerDocument==p||(u(h),i=!g);m=s[f++];)if(m(h,t||p,i)){r.push(h);break}d&&(_=T)}o&&((h=!m&&h)&&v--,e&&x.push(h))}if(v+=b,o&&b!==v){for(f=0;m=a[f++];)m(x,y,t,i);if(e){if(0<v)for(;b--;)x[b]||y[b]||(y[b]=D.call(r));y=_e(y)}L.apply(r,y),d&&!e&&0<y.length&&1<v+a.length&&oe.uniqueSort(r)}return d&&(_=T,c=w),x},o?ce(d):d))).selector=e}return m},l=oe.select=function(e,t,i,s){var a,l,c,d,h,u="function"==typeof e&&e,p=!s&&r(e=u.selector||e);if(i=i||[],1===p.length){if(2<(l=p[0]=p[0].slice(0)).length&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&n.relative[l[1].type]){if(!(t=(n.find.ID(c.matches[0].replace(te,ie),t)||[])[0]))return i;u&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=G.needsContext.test(e)?0:l.length;a--&&(c=l[a],!n.relative[d=c.type]);)if((h=n.find[d])&&(s=h(c.matches[0].replace(te,ie),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(a,1),!(e=s.length&&xe(l)))return L.apply(i,s),i;break}}return(u||o(e,p))(s,t,!g,i,!t||ee.test(e)&&ve(t.parentNode)||t),i},i.sortStable=y.split("").sort(k).join("")===y,i.detectDuplicates=!!h,u(),i.sortDetached=de((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),de((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&de((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((function(e){return null==e.getAttribute("disabled")}))||he(z,(function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),oe}(e);w.find=S,w.expr=S.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=S.uniqueSort,w.text=S.getText,w.isXMLDoc=S.isXML,w.contains=S.contains,w.escapeSelector=S.escape;var T=function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&w(e).is(i))break;n.push(e)}return n},C=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},E=w.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,i){return f(t)?w.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?w.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?w.grep(e,(function(e){return-1<o.call(t,e)!==i})):w.filter(t,e,i)}w.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?w.find.matchesSelector(n,e)?[n]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<n;t++)if(w.contains(s[t],this))return!0})));for(i=this.pushStack([]),t=0;t<n;t++)w.find(e,s[t],i);return 1<n?w.uniqueSort(i):i},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&E.test(e)?w(e):e||[],!1).length}});var $,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||$,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:D.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),k.test(n[1])&&w.isPlainObject(t))for(n in t)f(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(s=m.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==i.ready?i.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,$=w(m);var A=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var i,n=0,s=this.length,a=[],r="string"!=typeof e&&w(e);if(!E.test(e))for(;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&w.find.matchesSelector(i,e))){a.push(i);break}return this.pushStack(1<a.length?w.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?o.call(w(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(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,i){return T(e,"parentNode",i)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,i){return T(e,"nextSibling",i)},prevUntil:function(e,t,i){return T(e,"previousSibling",i)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&n(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(i,n){var s=w.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=w.filter(n,s)),1<this.length&&(L[e]||w.uniqueSort(s),A.test(e)&&s.reverse()),this.pushStack(s)}}));var I=/[^\x20\t\r\n\f]+/g;function z(e){return e}function R(e){throw e}function N(e,t,i,n){var s;try{e&&f(s=e.promise)?s.call(e).done(t).fail(i):e&&f(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}w.Callbacks=function(e){var t,i;e="string"==typeof e?(t=e,i={},w.each(t.match(I)||[],(function(e,t){i[t]=!0})),i):w.extend({},e);var n,s,a,r,o=[],l=[],c=-1,d=function(){for(r=r||e.once,a=n=!0;l.length;c=-1)for(s=l.shift();++c<o.length;)!1===o[c].apply(s[0],s[1])&&e.stopOnFalse&&(c=o.length,s=!1);e.memory||(s=!1),n=!1,r&&(o=s?[]:"")},h={add:function(){return o&&(s&&!n&&(c=o.length-1,l.push(s)),function t(i){w.each(i,(function(i,n){f(n)?e.unique&&h.has(n)||o.push(n):n&&n.length&&"string"!==x(n)&&t(n)}))}(arguments),s&&!n&&d()),this},remove:function(){return w.each(arguments,(function(e,t){for(var i;-1<(i=w.inArray(t,o,i));)o.splice(i,1),i<=c&&c--})),this},has:function(e){return e?-1<w.inArray(e,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return r=l=[],o=s="",this},disabled:function(){return!o},lock:function(){return r=l=[],s||n||(o=s=""),this},locked:function(){return!!r},fireWith:function(e,t){return r||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),n||d()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!a}};return h},w.extend({Deferred:function(t){var i=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(i,(function(i,n){var s=f(e[n[4]])&&e[n[4]];a[n[1]]((function(){var e=s&&s.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[n[0]+"With"](this,s?[e]:arguments)}))})),e=null})).promise()},then:function(t,n,s){var a=0;function r(t,i,n,s){return function(){var o=this,l=arguments,c=function(){var e,c;
vendor: 9,717 bytes, line 1
1if(!(t<a)){if((e=n.apply(o,l))===i.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(c)?s?c.call(e,r(a,i,z,s),r(a,i,R,s)):(a++,c.call(e,r(a,i,z,s),r(a,i,R,s),r(a,i,z,i.notifyWith))):(n!==z&&(o=void 0,l=[e]),(s||i.resolveWith)(o,l))}},d=s?c:function(){try{c()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,d.stackTrace),a<=t+1&&(n!==R&&(o=void 0,l=[e]),i.rejectWith(o,l))}};t?d():(w.Deferred.getStackHook&&(d.stackTrace=w.Deferred.getStackHook()),e.setTimeout(d))}}return w.Deferred((function(e){i[0][3].add(r(0,e,f(s)?s:z,e.notifyWith)),i[1][3].add(r(0,e,f(t)?t:z)),i[2][3].add(r(0,e,f(n)?n:R))})).promise()},promise:function(e){return null!=e?w.extend(e,s):s}},a={};return w.each(i,(function(e,t){var r=t[2],o=t[5];s[t[1]]=r.add,o&&r.add((function(){n=o}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),r.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=r.fireWith})),s.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,i=t,n=Array(i),a=s.call(arguments),r=w.Deferred(),o=function(e){return function(i){n[e]=this,a[e]=1<arguments.length?s.call(arguments):i,--t||r.resolveWith(n,a)}};if(t<=1&&(N(e,r.done(o(i)).resolve,r.reject,!t),"pending"===r.state()||f(a[i]&&a[i].then)))return r.then();for(;i--;)N(a[i],o(i),r.reject);return r.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&B.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var F=w.Deferred();function j(){m.removeEventListener("DOMContentLoaded",j),e.removeEventListener("load",j),w.ready()}w.fn.ready=function(e){return F.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||F.resolveWith(m,[w])}}),w.ready.then=F.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",j),e.addEventListener("load",j));var H=function(e,t,i,n,s,a,r){var o=0,l=e.length,c=null==i;if("object"===x(i))for(o in s=!0,i)H(e,t,o,i[o],!0,a,r);else if(void 0!==n&&(s=!0,f(n)||(r=!0),c&&(r?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(w(e),i)})),t))for(;o<l;o++)t(e[o],i,r?n:n.call(e[o],o,t(e[o],i)));return s?e:c?t.call(e):l?t(e[0],i):a},V=/^-ms-/,W=/-([a-z])/g;function q(e,t){return t.toUpperCase()}function Y(e){return e.replace(V,"ms-").replace(W,q)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=w.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,s=this.cache(e);if("string"==typeof t)s[Y(t)]=i;else for(n in t)s[Y(n)]=t[n];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Y(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(Y):(t=Y(t))in n?[t]:t.match(I)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||w.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var U=new G,K=new G,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function J(e,t,i){var n,s;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(Z,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:Q.test(s)?JSON.parse(s):s)}catch(e){}K.set(e,t,i)}else i=void 0;return i}w.extend({hasData:function(e){return K.hasData(e)||U.hasData(e)},data:function(e,t,i){return K.access(e,t,i)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,i){return U.access(e,t,i)},_removeData:function(e,t){U.remove(e,t)}}),w.fn.extend({data:function(e,t){var i,n,s,a=this[0],r=a&&a.attributes;if(void 0===e){if(this.length&&(s=K.get(a),1===a.nodeType&&!U.get(a,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=Y(n.slice(5)),J(a,n,s[n]));U.set(a,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each((function(){K.set(this,e)})):H(this,(function(t){var i;if(a&&void 0===t)return void 0!==(i=K.get(a,e))||void 0!==(i=J(a,e))?i:void 0;this.each((function(){K.set(this,e,t)}))}),null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each((function(){K.remove(this,e)}))}}),w.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=U.get(e,t),i&&(!n||Array.isArray(i)?n=U.access(e,t,w.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=w.queue(e,t),n=i.length,s=i.shift(),a=w._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete a.stop,s.call(e,(function(){w.dequeue(e,t)}),a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return U.get(e,i)||U.access(e,i,{empty:w.Callbacks("once memory").add((function(){U.remove(e,[t+"queue",i])}))})}}),w.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?w.queue(this[0],e):void 0===t?this:this.each((function(){var i=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,s=w.Deferred(),a=this,r=this.length,o=function(){--n||s.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(i=U.get(a[r],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),s.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ne=m.documentElement,se=function(e){return w.contains(e.ownerDocument,e)},ae={composed:!0};ne.getRootNode&&(se=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var re=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===w.css(e,"display")};function oe(e,t,i,n){var s,a,r=20,o=n?function(){return n.cur()}:function(){return w.css(e,t,"")},l=o(),c=i&&i[3]||(w.cssNumber[t]?"":"px"),d=e.nodeType&&(w.cssNumber[t]||"px"!==c&&+l)&&te.exec(w.css(e,t));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;r--;)w.style(e,t,d+c),(1-a)*(1-(a=o()/l||.5))<=0&&(r=0),d/=a;d*=2,w.style(e,t,d+c),i=i||[]}return i&&(d=+d||+l||0,s=i[1]?d+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=d,n.end=s)),s}var le={};function ce(e,t){for(var i,n,s,a,r,o,l,c=[],d=0,h=e.length;d<h;d++)(n=e[d]).style&&(i=n.style.display,t?("none"===i&&(c[d]=U.get(n,"display")||null,c[d]||(n.style.display="")),""===n.style.display&&re(n)&&(c[d]=(l=r=a=void 0,r=(s=n).ownerDocument,o=s.nodeName,(l=le[o])||(a=r.body.appendChild(r.createElement(o)),l=w.css(a,"display"),a.parentNode.removeChild(a),"none"===l&&(l="block"),le[o]=l)))):"none"!==i&&(c[d]="none",U.set(n,"display",i)));for(d=0;d<h;d++)null!=c[d]&&(e[d].style.display=c[d]);return e}w.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){re(this)?w(this).show():w(this).hide()}))}});var de,he,ue=/^(?:checkbox|radio)$/i,pe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i;de=m.createDocumentFragment().appendChild(m.createElement("div")),(he=m.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),de.appendChild(he),p.checkClone=de.cloneNode(!0).cloneNode(!0).lastChild.checked,de.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!de.cloneNode(!0).lastChild.defaultValue,de.innerHTML="<option></option>",p.option=!!de.lastChild;var ge={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 me(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?w.merge([e],i):i}function ve(e,t){for(var i=0,n=e.length;i<n;i++)U.set(e[i],"globalEval",!t||U.get(t[i],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,p.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var be=/<|&#?\w+;/;function xe(e,t,i,n,s){for(var a,r,o,l,c,d,h=t.createDocumentFragment(),u=[],p=0,f=e.length;p<f;p++)if((a=e[p])||0===a)if("object"===x(a))w.merge(u,a.nodeType?[a]:a);else if(be.test(a)){for(r=r||h.appendChild(t.createElement("div")),o=(pe.exec(a)||["",""])[1].toLowerCase(),l=ge[o]||ge._default,r.innerHTML=l[1]+w.htmlPrefilter(a)+l[2],d=l[0];d--;)r=r.lastChild;w.merge(u,r.childNodes),(r=h.firstChild).textContent=""}else u.push(t.createTextNode(a));for(h.textContent="",p=0;a=u[p++];)if(n&&-1<w.inArray(a,n))s&&s.push(a);else if(c=se(a),r=me(h.appendChild(a),"script"),c&&ve(r),i)for(d=0;a=r[d++];)fe.test(a.type||"")&&i.push(a);return h}var ye=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function _e(){return!1}function Se(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,i,n,s,a){var r,o;
vendor: 4,148 bytes, line 1
1if("object"==typeof t){for(o in"string"!=typeof i&&(n=n||i,i=void 0),t)Te(e,o,i,n,t[o],a);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=_e;else if(!s)return e;return 1===a&&(r=s,(s=function(e){return w().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=w.guid++)),e.each((function(){w.event.add(this,t,s,n,i)}))}function Ce(e,t,i){i?(U.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var n,a,r=U.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),U.set(this,t,r),n=i(this,t),this[t](),r!==(a=U.get(this,t))||n?U.set(this,t,!1):a={},r!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else r.length&&(U.set(this,t,{value:w.event.trigger(w.extend(r[0],w.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===U.get(e,t)&&w.event.add(e,t,we)}w.event={global:{},add:function(e,t,i,n,s){var a,r,o,l,c,d,h,u,p,f,g,m=U.get(e);if(X(e))for(i.handler&&(i=(a=i).handler,s=a.selector),s&&w.find.matchesSelector(ne,s),i.guid||(i.guid=w.guid++),(l=m.events)||(l=m.events=Object.create(null)),(r=m.handle)||(r=m.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(I)||[""]).length;c--;)p=g=(o=ye.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),p&&(h=w.event.special[p]||{},p=(s?h.delegateType:h.bindType)||p,h=w.event.special[p]||{},d=w.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&w.expr.match.needsContext.test(s),namespace:f.join(".")},a),(u=l[p])||((u=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,n,f,r)||e.addEventListener&&e.addEventListener(p,r)),h.add&&(h.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),s?u.splice(u.delegateCount++,0,d):u.push(d),w.event.global[p]=!0)},remove:function(e,t,i,n,s){var a,r,o,l,c,d,h,u,p,f,g,m=U.hasData(e)&&U.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(I)||[""]).length;c--;)if(p=g=(o=ye.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),p){for(h=w.event.special[p]||{},u=l[p=(n?h.delegateType:h.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=u.length;a--;)d=u[a],!s&&g!==d.origType||i&&i.guid!==d.guid||o&&!o.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(u.splice(a,1),d.selector&&u.delegateCount--,h.remove&&h.remove.call(e,d));r&&!u.length&&(h.teardown&&!1!==h.teardown.call(e,f,m.handle)||w.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)w.event.remove(e,p+t[c],i,n,!0);w.isEmptyObject(l)&&U.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,a,r,o=new Array(arguments.length),l=w.event.fix(e),c=(U.get(this,"events")||Object.create(null))[l.type]||[],d=w.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(r=w.event.handlers.call(this,l,c),t=0;(s=r[t++])&&!l.isPropagationStopped();)for(l.currentTarget=s.elem,i=0;(a=s.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(n=((w.event.special[a.origType]||{}).handle||a.handler).apply(s.elem,o))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,s,a,r,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],r={},i=0;i<l;i++)void 0===r[s=(n=t[i]).selector+" "]&&(r[s]=n.needsContext?-1<w(s,this).index(c):w.find(s,this,null,[c]).length),r[s]&&a.push(n);a.length&&o.push({elem:c,handlers:a})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 2,311 bytes, line 1
1,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ue.test(t.type)&&t.click&&M(t,"input")&&Ce(t,"click",we),!1},trigger:function(e){var t=this||e;return ue.test(t.type)&&t.click&&M(t,"input")&&Ce(t,"click"),!0},_default:function(e){var t=e.target;return ue.test(t.type)&&t.click&&M(t,"input")&&U.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:_e,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:_e,isPropagationStopped:_e,isImmediatePropagationStopped:_e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(e,t){w.event.special[e]={setup:function(){return Ce(this,e,Se),!1},trigger:function(){return Ce(this,e),!0},_default:function(t){return U.get(t.target,e)},delegateType:t}}
vendor: 6,029 bytes, line 1
1)),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,s=e.handleObj;return n&&(n===this||w.contains(this,n))||(e.type=s.origType,i=s.handler.apply(this,arguments),e.type=t),i}}})),w.fn.extend({on:function(e,t,i,n){return Te(this,e,t,i,n)},one:function(e,t,i,n){return Te(this,e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,w(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=_e),this.each((function(){w.event.remove(this,e,i,t)}))}});var Ee=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Pe(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function $e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function De(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ae(e,t){var i,n,s,a,r,o;if(1===t.nodeType){if(U.hasData(e)&&(o=U.get(e).events))for(s in U.remove(t,"handle events"),o)for(i=0,n=o[s].length;i<n;i++)w.event.add(t,s,o[s][i]);K.hasData(e)&&(a=K.access(e),r=w.extend({},a),K.set(t,r))}}function Le(e,t,i,n){t=a(t);var s,r,o,l,c,d,h=0,u=e.length,g=u-1,m=t[0],v=f(m);if(v||1<u&&"string"==typeof m&&!p.checkClone&&Me.test(m))return e.each((function(s){var a=e.eq(s);v&&(t[0]=m.call(this,s,a.html())),Le(a,t,i,n)}));if(u&&(r=(s=xe(t,e[0].ownerDocument,!1,e,n)).firstChild,1===s.childNodes.length&&(s=r),r||n)){for(l=(o=w.map(me(s,"script"),$e)).length;h<u;h++)c=s,h!==g&&(c=w.clone(c,!0,!0),l&&w.merge(o,me(c,"script"))),i.call(e[h],c,h);if(l)for(d=o[o.length-1].ownerDocument,w.map(o,De),h=0;h<l;h++)c=o[h],fe.test(c.type||"")&&!U.access(c,"globalEval")&&w.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):b(c.textContent.replace(ke,""),c,d))}return e}function Oe(e,t,i){for(var n,s=t?w.filter(t,e):e,a=0;null!=(n=s[a]);a++)i||1!==n.nodeType||w.cleanData(me(n)),n.parentNode&&(i&&se(n)&&ve(me(n,"script")),n.parentNode.removeChild(n));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,s,a,r,o,l,c,d=e.cloneNode(!0),h=se(e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(r=me(d),n=0,s=(a=me(e)).length;n<s;n++)o=a[n],"input"===(c=(l=r[n]).nodeName.toLowerCase())&&ue.test(o.type)?l.checked=o.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=o.defaultValue);if(t)if(i)for(a=a||me(e),r=r||me(d),n=0,s=a.length;n<s;n++)Ae(a[n],r[n]);else Ae(e,d);return 0<(r=me(d,"script")).length&&ve(r,!h&&me(e,"script")),d},cleanData:function(e){for(var t,i,n,s=w.event.special,a=0;void 0!==(i=e[a]);a++)if(X(i)){if(t=i[U.expando]){if(t.events)for(n in t.events)s[n]?w.event.remove(i,n):w.removeEvent(i,n,t.handle);i[U.expando]=void 0}i[K.expando]&&(i[K.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return H(this,(function(e){return void 0===e?w.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 Le(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)}))},prepend:function(){return Le(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Le(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&&(w.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return H(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&&!Ee.test(e)&&!ge[(pe.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(w.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,(function(t){var i=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(me(this)),i&&i.replaceChild(t,this))}),e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){w.fn[e]=function(e){for(var i,n=[],s=w(e),a=s.length-1,o=0;o<=a;o++)i=o===a?this:this.clone(!0),w(s[o])[t](i),r.apply(n,i.get());return this.pushStack(n)}}));var Ie=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),ze=/^--/,Re=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},Ne=function(e,t,i){var n,s,a={};for(s in t)a[s]=e.style[s],e.style[s]=t[s];for(s in n=i.call(e),t)e.style[s]=a[s];return n},Be=new RegExp(ie.join("|"),"i"),Fe="[\\x20\\t\\r\\n\\f]",je=new RegExp("^"+Fe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Fe+"+$","g");function He(e,t,i){var n,s,a,r,o=ze.test(t),l=e.style;return(i=i||Re(e))&&(r=i.getPropertyValue(t)||i[t],o&&(r=r.replace(je,"$1")),""!==r||se(e)||(r=w.style(e,t)),!p.pixelBoxStyles()&&Ie.test(r)&&Be.test(t)&&(n=l.width,s=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=i.width,l.width=n,l.minWidth=s,l.maxWidth=a)),void 0!==r?r+"":r}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(d){c.style.cssText="position:absolute;
1left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(c).appendChild(d);var t=e.getComputedStyle(d);n="1%"!==t.top,l=12===i(t.marginLeft),d.style.right="60%",r=36===i(t.right),s=36===i(t.width),d.style.position="absolute",a=12===i(d.offsetWidth/3),ne.removeChild(c),d=null}}function i(e){return Math.round(parseFloat(e))}var n,s,a,r,o,l,c=m.createElement("div"),d=m.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===d.style.backgroundClip,w.extend(p,{boxSizingReliable:function(){return t(),s},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),a},reliableTrDimensions:function(){var t,i,n,s;return null==o&&(t=m.createElement("table"),i=m.createElement("tr"),n=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",i.style.cssText="border:1px solid",i.style.height="1px",n.style.height="9px",n.style.display="block",ne.appendChild(t).appendChild(i).appendChild(n),s=e.getComputedStyle(i),o=parseInt(s.height,10)+parseInt(s.borderTopWidth,10)+parseInt(s.borderBottomWidth,10)===i.offsetHeight,ne.removeChild(t)),o}}))}();var We=["Webkit","Moz","ms"],qe=m.createElement("div").style,Ye={};function Xe(e){return w.cssProps[e]||Ye[e]||(e in qe?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=We.length;i--;)if((e=We[i]+t)in qe)return e}(e)||e)}var Ge=/^(none|table(?!-c[ea]).+)/,Ue={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"};function Qe(e,t,i){var n=te.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function Ze(e,t,i,n,s,a){var r="width"===t?1:0,o=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=w.css(e,i+ie[r],!0,s)),n?("content"===i&&(l-=w.css(e,"padding"+ie[r],!0,s)),"margin"!==i&&(l-=w.css(e,"border"+ie[r]+"Width",!0,s))):(l+=w.css(e,"padding"+ie[r],!0,s),"padding"!==i?l+=w.css(e,"border"+ie[r]+"Width",!0,s):o+=w.css(e,"border"+ie[r]+"Width",!0,s));return!n&&0<=a&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-o-.5))||0),l}function Je(e,t,i){var n=Re(e),s=(!p.boxSizingReliable()||i)&&"border-box"===w.css(e,"boxSizing",!1,n),a=s,r=He(e,t,n),o="offset"+t[0].toUpperCase()+t.slice(1);if(Ie.test(r)){if(!i)return r;r="auto"}return(!p.boxSizingReliable()&&s||!p.reliableTrDimensions()&&M(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===w.css(e,"display",!1,n))&&e.getClientRects().length&&(s="border-box"===w.css(e,"boxSizing",!1,n),(a=o in e)&&(r=e[o])),(r=parseFloat(r)||0)+Ze(e,t,i||(s?"border":"content"),a,n,r)+"px"}function et(e,t,i,n,s){return new et.prototype.init(e,t,i,n,s)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=He(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,a,r,o=Y(t),l=ze.test(t),c=e.style;if(l||(t=Xe(o)),r=w.cssHooks[t]||w.cssHooks[o],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:c[t];"string"==(a=typeof i)&&(s=te.exec(i))&&s[1]&&(i=oe(e,t,s),a="number"),null!=i&&i==i&&("number"!==a||l||(i+=s&&s[3]||(w.cssNumber[o]?"":"px")),p.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var s,a,r,o=Y(t);return ze.test(t)||(t=Xe(o)),(r=w.cssHooks[t]||w.cssHooks[o])&&"get"in r&&(s=r.get(e,!0,i)),void 0===s&&(s=He(e,t,n)),"normal"===s&&t in Ke&&(s=Ke[t]),""===i||i?(a=parseFloat(s),!0===i||isFinite(a)?a||0:s):s}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,i,n){if(i)return!Ge.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,t,n):Ne(e,Ue,(function(){return Je(e,t,n)}))},set:function(e,i,n){var s,a=Re(e),r=!p.scrollboxSize()&&"absolute"===a.position,o=(r||n)&&"border-box"===w.css(e,"boxSizing",!1,a),l=n?Ze(e,t,n,o,a):0;return o&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-Ze(e,t,"border",!1,a)-.5)),l&&(s=te.exec(i))&&"px"!==(s[3]||"px")&&(e.style[t]=i,i=w.css(e,t)),Qe(0,i,l)}}}
vendor: 4,250 bytes, line 1
1)),w.cssHooks.marginLeft=Ve(p.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-Ne(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(i){for(var n=0,s={},a="string"==typeof i?i.split(" "):[i];n<4;n++)s[e+ie[n]+t]=a[n]||a[n-2]||a[0];return s}},"margin"!==e&&(w.cssHooks[e+t].set=Qe)})),w.fn.extend({css:function(e,t){return H(this,(function(e,t,i){var n,s,a={},r=0;if(Array.isArray(t)){for(n=Re(e),s=t.length;r<s;r++)a[t[r]]=w.css(e,t[r],!1,n);return a}return void 0!==i?w.style(e,t,i):w.css(e,t)}),e,t,1<arguments.length)}}),((w.Tween=et).prototype={constructor:et,init:function(e,t,i,n,s,a){this.elem=e,this.prop=i,this.easing=s||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(w.cssNumber[i]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,i=et.propHooks[this.prop];return this.options.duration?this.pos=t=w.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.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=et.prototype.init,w.fx.step={};var tt,it,nt,st,at=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function ot(){it&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ot):e.setTimeout(ot,w.fx.interval),w.fx.tick())}function lt(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function ct(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=ie[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function dt(e,t,i){for(var n,s=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),a=0,r=s.length;a<r;a++)if(n=s[a].call(i,t,e))return n}function ht(e,t,i){var n,s,a=0,r=ht.prefilters.length,o=w.Deferred().always((function(){delete l.elem})),l=function(){if(s)return!1;for(var t=tt||lt(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),a=0,r=c.tweens.length;a<r;a++)c.tweens[a].run(n);return o.notifyWith(e,[c,n,i]),n<1&&r?i:(r||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},i),originalProperties:t,originalOptions:i,startTime:tt||lt(),duration:i.duration,tweens:[],createTween:function(t,i){var n=w.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)c.tweens[i].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),d=c.props;for(function(e,t){var i,n,s,a,r;for(i in e)if(s=t[n=Y(i)],a=e[i],Array.isArray(a)&&(s=a[1],a=e[i]=a[0]),i!==n&&(e[n]=a,delete e[i]),(r=w.cssHooks[n])&&"expand"in r)for(i in a=r.expand(a),delete e[n],a)i in e||(e[i]=a[i],t[i]=s);else t[n]=s}(d,c.opts.specialEasing);a<r;a++)if(n=ht.prefilters[a].call(c,e,d,c.opts))return f(n.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return w.map(d,dt,c),f(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(ht,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return oe(i.elem,e,te.exec(t),i),i}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(I);for(var i,n=0,s=e.length;n<s;
vendor: 5,075 bytes, line 1
1n++)i=e[n],ht.tweeners[i]=ht.tweeners[i]||[],ht.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,s,a,r,o,l,c,d,h="width"in t||"height"in t,u=this,p={},f=e.style,g=e.nodeType&&re(e),m=U.get(e,"fxshow");for(n in i.queue||(null==(r=w._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,o=r.empty.fire,r.empty.fire=function(){r.unqueued||o()}),r.unqueued++,u.always((function(){u.always((function(){r.unqueued--,w.queue(e,"fx").length||r.empty.fire()}))}))),t)if(s=t[n],at.test(s)){if(delete t[n],a=a||"toggle"===s,s===(g?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||w.style(e,n)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(p))for(n in h&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=U.get(e,"display")),"none"===(d=w.css(e,"display"))&&(c?d=c:(ce([e],!0),c=e.style.display||c,d=w.css(e,"display"),ce([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===w.css(e,"float")&&(l||(u.done((function(){f.display=c})),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",u.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=U.access(e,"fxshow",{display:c}),a&&(m.hidden=!g),g&&ce([e],!0),u.done((function(){for(n in g||ce([e]),U.remove(e,"fxshow"),p)w.style(e,n,p[n])}))),l=dt(g?m[n]:0,n,u),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),w.speed=function(e,t,i){var n=e&&"object"==typeof e?w.extend({},e):{complete:i||!i&&t||f(e)&&e,duration:e,easing:i&&t||t&&!f(t)&&t};return w.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in w.fx.speeds?n.duration=w.fx.speeds[n.duration]:n.duration=w.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){f(n.old)&&n.old.call(this),n.queue&&w.dequeue(this,n.queue)},n},w.fn.extend({fadeTo:function(e,t,i,n){return this.filter(re).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var s=w.isEmptyObject(e),a=w.speed(t,i,n),r=function(){var t=ht(this,w.extend({},e),a);(s||U.get(this,"finish"))&&t.stop(!0)};return r.finish=r,s||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,s=null!=e&&e+"queueHooks",a=w.timers,r=U.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&rt.test(s)&&n(r[s]);for(s=a.length;s--;)a[s].elem!==this||null!=e&&a[s].queue!==e||(a[s].anim.stop(i),t=!1,a.splice(s,1));!t&&i||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=U.get(this),n=i[e+"queue"],s=i[e+"queueHooks"],a=w.timers,r=n?n.length:0;for(i.finish=!0,w.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),w.each(["toggle","show","hide"],(function(e,t){var i=w.fn[t];w.fn[t]=function(e,n,s){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(ct(t,!0),e,n,s)}})),w.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){w.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),w.timers=[],w.fx.tick=function(){var e,t=0,i=w.timers;for(tt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||w.fx.stop(),tt=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){it||(it=!0,ot())},w.fx.stop=function(){it=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,i){return t=w.fx&&w.fx.speeds[t]||t,i=i||"fx",this.queue(i,(function(i,n){var s=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(s)}}))},nt=m.createElement("input"),st=m.createElement("select").appendChild(m.createElement("option")),nt.type="checkbox",p.checkOn=""!==nt.value,p.optSelected=st.selected,(nt=m.createElement("input")).value="t",nt.type="radio",p.radioValue="t"===nt.value;var ut,pt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return H(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,i){var n,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?w.prop(e,t,i):(1===a&&w.isXMLDoc(e)||(s=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ut:void 0)),void 0!==i?null===i?void w.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):s&&"get"in s&&null!==(n=s.get(e,t))?n:null==(n=w.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&M(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(I);
vendor: 4,130 bytes, line 1
1if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),ut={set:function(e,t,i){return!1===t?w.removeAttr(e,i):e.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=pt[t]||w.find.attr;pt[t]=function(e,t,n){var s,a,r=t.toLowerCase();return n||(a=pt[r],pt[r]=s,s=null!=i(e,t,n)?r:null,pt[r]=a),s}}));var ft=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function mt(e){return(e.match(I)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(I)||[]}w.fn.extend({prop:function(e,t){return H(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,i){var n,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&w.isXMLDoc(e)||(t=w.propFix[t]||t,s=w.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,i,n,s,a,r;return f(e)?this.each((function(t){w(this).addClass(e.call(this,t,vt(this)))})):(t=bt(e)).length?this.each((function(){if(n=vt(this),i=1===this.nodeType&&" "+mt(n)+" "){for(a=0;a<t.length;a++)s=t[a],i.indexOf(" "+s+" ")<0&&(i+=s+" ");r=mt(i),n!==r&&this.setAttribute("class",r)}})):this},removeClass:function(e){var t,i,n,s,a,r;return f(e)?this.each((function(t){w(this).removeClass(e.call(this,t,vt(this)))})):arguments.length?(t=bt(e)).length?this.each((function(){if(n=vt(this),i=1===this.nodeType&&" "+mt(n)+" "){for(a=0;a<t.length;a++)for(s=t[a];-1<i.indexOf(" "+s+" ");)i=i.replace(" "+s+" "," ");r=mt(i),n!==r&&this.setAttribute("class",r)}})):this:this.attr("class","")},toggleClass:function(e,t){var i,n,s,a,r=typeof e,o="string"===r||Array.isArray(e);return f(e)?this.each((function(i){w(this).toggleClass(e.call(this,i,vt(this),t),t)})):"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):(i=bt(e),this.each((function(){if(o)for(a=w(this),s=0;s<i.length;s++)n=i[s],a.hasClass(n)?a.removeClass(n):a.addClass(n);else void 0!==e&&"boolean"!==r||((n=vt(this))&&U.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":U.get(this,"__className__")||""))})))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+mt(vt(i))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;w.fn.extend({val:function(e){var t,i,n,s=this[0];return arguments.length?(n=f(e),this.each((function(i){var s;1===this.nodeType&&(null==(s=n?e.call(this,i,w(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=w.map(s,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))}))):s?(t=w.valHooks[s.type]||w.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(xt,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:mt(w.text(e))}},select:{get:function(e){var t,i,n,s=e.options,a=e.selectedIndex,r="select-one"===e.type,o=r?null:[],l=r?a+1:s.length;for(n=a<0?l:r?a:0;n<l;n++)if(((i=s[n]).selected||n===a)&&!i.disabled&&(!i.parentNode.disabled||!M(i.parentNode,"optgroup"))){if(t=w(i).val(),r)return t;o.push(t)}return o},set:function(e,t){for(var i,n,s=e.options,a=w.makeArray(t),r=s.length;r--;)((n=s[r]).selected=-1<w.inArray(w.valHooks.option.get(n),a))&&(i=!0);
vendor: 5,403 bytes, line 1
1return i||(e.selectedIndex=-1),a}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<w.inArray(w(e).val(),t)}},p.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),p.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,i,n,s){var a,r,o,l,c,h,u,p,v=[n||m],b=d.call(t,"type")?t.type:t,x=d.call(t,"namespace")?t.namespace.split("."):[];if(r=p=o=n=n||m,3!==n.nodeType&&8!==n.nodeType&&!yt.test(b+w.event.triggered)&&(-1<b.indexOf(".")&&(b=(x=b.split(".")).shift(),x.sort()),c=b.indexOf(":")<0&&"on"+b,(t=t[w.expando]?t:new w.Event(b,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:w.makeArray(i,[t]),u=w.event.special[b]||{},s||!u.trigger||!1!==u.trigger.apply(n,i))){if(!s&&!u.noBubble&&!g(n)){for(l=u.delegateType||b,yt.test(l+b)||(r=r.parentNode);r;r=r.parentNode)v.push(r),o=r;o===(n.ownerDocument||m)&&v.push(o.defaultView||o.parentWindow||e)}for(a=0;(r=v[a++])&&!t.isPropagationStopped();)p=r,t.type=1<a?l:u.bindType||b,(h=(U.get(r,"events")||Object.create(null))[t.type]&&U.get(r,"handle"))&&h.apply(r,i),(h=c&&r[c])&&h.apply&&X(r)&&(t.result=h.apply(r,i),!1===t.result&&t.preventDefault());return t.type=b,s||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(v.pop(),i)||!X(n)||c&&f(n[b])&&!g(n)&&((o=n[c])&&(n[c]=null),w.event.triggered=b,t.isPropagationStopped()&&p.addEventListener(b,wt),n[b](),t.isPropagationStopped()&&p.removeEventListener(b,wt),w.event.triggered=void 0,o&&(n[c]=o)),t.result}},simulate:function(e,t,i){var n=w.extend(new w.Event,i,{type:e,isSimulated:!0});w.event.trigger(n,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return w.event.trigger(e,t,i,!0)}}),p.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,s=U.access(n,t);s||n.addEventListener(e,i,!0),U.access(n,t,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,s=U.access(n,t)-1;s?U.access(n,t,s):(n.removeEventListener(e,i,!0),U.remove(n,t))}}}));var _t=e.location,St={guid:Date.now()},Tt=/\?/;w.parseXML=function(t){var i,n;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=i&&i.getElementsByTagName("parsererror")[0],i&&!n||w.error("Invalid XML: "+(n?w.map(n.childNodes,(function(e){return e.textContent})).join("\n"):t)),i};var Ct=/\[\]$/,Et=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,i,n){var s;if(Array.isArray(t))w.each(t,(function(t,s){i||Ct.test(e)?n(e,s):Pt(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,i,n)}));else if(i||"object"!==x(t))n(e,t);else for(s in t)Pt(e+"["+s+"]",t[s],i,n)}w.param=function(e,t){var i,n=[],s=function(e,t){var i=f(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){s(this.name,this.value)}));else for(i in e)Pt(i,e[i],t,s);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&kt.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ue.test(e))})).map((function(e,t){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(e){return{name:t.name,value:e.replace(Et,"\r\n")}})):{name:t.name,value:i.replace(Et,"\r\n")}})).get()}});var $t=/%20/g,Dt=/#.*$/,At=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,It=/^\/\//,zt={},Rt={},Nt="*/".concat("*"),Bt=m.createElement("a");function Ft(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,s=0,a=t.toLowerCase().match(I)||[];if(f(i))for(;n=a[s++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function jt(e,t,i,n){var s={},a=e===Rt;function r(o){var l;return s[o]=!0,w.each(e[o]||[],(function(e,o){var c=o(t,i,n);return"string"!=typeof c||a||s[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)})),l}return r(t.dataTypes[0])||!s["*"]&&r("*")}function Ht(e,t){var i,n,s=w.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n||(n={}))[i]=t[i]);return n&&w.extend(!0,e,n),e}Bt.href=_t.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,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":JSON.parse,"text xml":w.parseXML}
vendor: 6,168 bytes, line 1
1,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,w.ajaxSettings),t):Ht(w.ajaxSettings,e)},ajaxPrefilter:Ft(zt),ajaxTransport:Ft(Rt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var n,s,a,r,o,l,c,d,h,u,p=w.ajaxSetup({},i),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?w(f):w.event,v=w.Deferred(),b=w.Callbacks("once memory"),x=p.statusCode||{},y={},_={},S="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(c){if(!r)for(r={};t=Lt.exec(a);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)T.always(e[T.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),C(0,t),this}};if(v.promise(T),p.url=((t||p.url||_t.href)+"").replace(It,_t.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(I)||[""],null==p.crossDomain){l=m.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Bt.protocol+"//"+Bt.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),jt(zt,p,i,T),c)return T;for(h in(d=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ot.test(p.type),s=p.url.replace(Dt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace($t,"+")):(u=p.url.slice(s.length),p.data&&(p.processData||"string"==typeof p.data)&&(s+=(Tt.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace(At,"$1"),u=(Tt.test(s)?"&":"?")+"_="+St.guid+++u),p.url=s+u),p.ifModified&&(w.lastModified[s]&&T.setRequestHeader("If-Modified-Since",w.lastModified[s]),w.etag[s]&&T.setRequestHeader("If-None-Match",w.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&T.setRequestHeader("Content-Type",p.contentType),T.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Nt+"; q=0.01":""):p.accepts["*"]),p.headers)T.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(f,T,p)||c))return T.abort();if(S="abort",b.add(p.complete),T.done(p.success),T.fail(p.error),n=jt(Rt,p,i,T)){if(T.readyState=1,d&&g.trigger("ajaxSend",[T,p]),c)return T;p.async&&0<p.timeout&&(o=e.setTimeout((function(){T.abort("timeout")}),p.timeout));try{c=!1,n.send(y,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,i,r,l){var h,u,m,y,_,S=i;c||(c=!0,o&&e.clearTimeout(o),n=void 0,a=l||"",T.readyState=0<t?4:0,h=200<=t&&t<300||304===t,r&&(y=function(e,t,i){for(var n,s,a,r,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in o)if(o[s]&&o[s].test(n)){l.unshift(s);break}if(l[0]in i)a=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}r||(r=s)}a=a||r}if(a)return a!==l[0]&&l.unshift(a),i[a]}(p,T,r)),!h&&-1<w.inArray("script",p.dataTypes)&&w.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),y=function(e,t,i,n){var s,a,r,o,l,c={},d=e.dataTypes.slice();if(d[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(a=d.shift();a;)if(e.responseFields[a]&&(i[e.responseFields[a]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=d.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=c[l+" "+a]||c["* "+a]))for(s in c)if((o=s.split(" "))[1]===a&&(r=c[l+" "+o[0]]||c["* "+o[0]])){!0===r?r=c[s]:!0!==c[s]&&(a=o[0],d.unshift(o[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 "+a}}}return{state:"success",data:t}}(p,y,T,h),h?(p.ifModified&&((_=T.getResponseHeader("Last-Modified"))&&(w.lastModified[s]=_),(_=T.getResponseHeader("etag"))&&(w.etag[s]=_)),204===t||"HEAD"===p.type?S="nocontent":304===t?S="notmodified":(S=y.state,u=y.data,h=!(m=y.error))):(m=S,!t&&S||(S="error",t<0&&(t=0))),T.status=t,T.statusText=(i||S)+"",h?v.resolveWith(f,[u,S,T]):v.rejectWith(f,[T,S,m]),T.statusCode(x),x=void 0,d&&g.trigger(h?"ajaxSuccess":"ajaxError",[T,p,h?u:m]),b.fireWith(f,[T,S]),d&&(g.trigger("ajaxComplete",[T,p]),--w.active||w.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,i){return w.get(e,t,i,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,i,n,s){return f(i)&&(s=s||n,n=i,i=void 0),w.ajax(w.extend({url:e,type:t,dataType:s,data:i,success:n},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,i){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,i)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return f(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(i){w(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Wt=w.ajaxSettings.xhr();
vendor: 5,291 bytes, line 1
1p.cors=!!Wt&&"withCredentials"in Wt,p.ajax=Wt=!!Wt,w.ajaxTransport((function(t){var i,n;if(p.cors||Wt&&!t.crossDomain)return{send:function(s,a){var r,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];for(r in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)o.setRequestHeader(r,s[r]);i=function(e){return function(){i&&(i=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a(Vt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),n=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout((function(){i&&n()}))},i=i("abort");try{o.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s}},abort:function(){i&&i()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,s){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&s("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){i&&i()}}}));var qt,Yt=[],Xt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||w.expando+"_"+St.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(t,i,n){var s,a,r,o=!1!==t.jsonp&&(Xt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Xt,"$1"+s):!1!==t.jsonp&&(t.url+=(Tt.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return r||w.error(s+" was not called"),r[0]},t.dataTypes[0]="json",a=e[s],e[s]=function(){r=arguments},n.always((function(){void 0===a?w(e).removeProp(s):e[s]=a,t[s]&&(t.jsonpCallback=i.jsonpCallback,Yt.push(s)),r&&f(a)&&a(r[0]),r=a=void 0})),"script"})),p.createHTMLDocument=((qt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qt.childNodes.length),w.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(p.createHTMLDocument?((n=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(n)):t=m),a=!i&&[],(s=k.exec(e))?[t.createElement(s[1])]:(s=xe([e],t,a),a&&a.length&&w(a).remove(),w.merge([],s.childNodes)));var n,s,a},w.fn.load=function(e,t,i){var n,s,a,r=this,o=e.indexOf(" ");return-1<o&&(n=mt(e.slice(o)),e=e.slice(0,o)),f(t)?(i=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<r.length&&w.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done((function(e){a=arguments,r.html(n?w("<div>").append(w.parseHTML(e)).find(n):e)})).always(i&&function(e,t){r.each((function(){i.apply(this,a||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,i){var n,s,a,r,o,l,c=w.css(e,"position"),d=w(e),h={};"static"===c&&(e.style.position="relative"),o=d.offset(),a=w.css(e,"top"),l=w.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(a+l).indexOf("auto")?(r=(n=d.position()).top,s=n.left):(r=parseFloat(a)||0,s=parseFloat(l)||0),f(t)&&(t=t.call(e,i,w.extend({},o))),null!=t.top&&(h.top=t.top-o.top+r),null!=t.left&&(h.left=t.left-o.left+s),"using"in t?t.using.call(e,h):d.css(h)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],s={top:0,left:0};if("fixed"===w.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((s=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),s.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-w.css(n,"marginTop",!0),left:t.left-s.left-w.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ne}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;w.fn[e]=function(n){return H(this,(function(e,n,s){var a;
1if(g(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===s)return a?a[t]:e[n];a?a.scrollTo(i?a.pageXOffset:s,i?s:a.pageYOffset):e[n]=s}),e,n,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=Ve(p.pixelPosition,(function(e,i){if(i)return i=He(e,t),Ie.test(i)?w(e).position()[t]+"px":i}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){w.fn[n]=function(s,a){var r=arguments.length&&(i||"boolean"!=typeof s),o=i||(!0===s||!0===a?"margin":"border");return H(this,(function(t,i,s){var a;return g(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===s?w.css(t,i,o):w.style(t,i,s,o)}),t,r?s:void 0,r)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.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)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,i){return 0<arguments.length?this.on(t,null,e,i):this.trigger(t)}}));var Gt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var i,n,a;if("string"==typeof t&&(i=e[t],t=e,e=i),f(e))return n=s.call(arguments,2),(a=function(){return e.apply(t||this,n.concat(s.call(arguments)))}).guid=e.guid=e.guid||w.guid++,a},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=M,w.isFunction=f,w.isWindow=g,w.camelCase=Y,w.type=x,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(Gt,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var Ut=e.jQuery,Kt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Kt),t&&e.jQuery===w&&(e.jQuery=Ut),w},void 0===t&&(e.jQuery=e.$=w),w})),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 e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(i,n){void 0===i&&(i={}),void 0===n&&(n={}),Object.keys(n).forEach((s=>{void 0===i[s]?i[s]=n[s]:e(n[s])&&e(i[s])&&Object.keys(n[s]).length>0&&t(i[s],n[s])}))}const i={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function n(){const e="undefined"!=typeof document?document:{};return t(e,i),e}const s={document:i,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function a(){const e="undefined"!=typeof window?window:{};return t(e,s),e}class r extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function o(e){void 0===e&&(e=[]);const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...o(e)):t.push(e)})),t}function l(e,t){return Array.prototype.filter.call(e,t)}function c(e,t){const i=a(),s=n();let o=[];if(!t&&e instanceof r)return e;if(!e)return new r(o);if("string"==typeof e){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";0===i.indexOf("<li")&&(e="ul"),0===i.indexOf("<tr")&&(e="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(e="tr"),0===i.indexOf("<tbody")&&(e="table"),0===i.indexOf("<option")&&(e="select");const t=s.createElement(e);t.innerHTML=i;for(let e=0;e<t.childNodes.length;e+=1)o.push(t.childNodes[e])}else o=function(e,t){if("string"!=typeof e)return[e];const i=[],n=t.querySelectorAll(e);for(let e=0;e<n.length;e+=1)i.push(n[e]);return i}(e.trim(),t||s)}else if(e.nodeType||e===i||e===s)o.push(e);else if(Array.isArray(e)){if(e instanceof r)return e;o=e}return new r(function(e){const t=[];for(let i=0;i<e.length;
vendor: 5,384 bytes, line 1
1i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(o))}c.fn=r.prototype;const d={addClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const n=o(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...n)})),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const n=o(t.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...n)})),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const n=o(t.map((e=>e.split(" "))));return l(this,(e=>n.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const n=o(t.map((e=>e.split(" "))));this.forEach((e=>{n.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(const t in e)this[i][t]=e[t],this[i].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let 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];let[n,s,a,r]=t;function o(e){const t=e.target;if(!t)return;const i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),c(t).is(s))a.apply(t,i);else{const e=c(t).parents();for(let t=0;t<e.length;t+=1)c(e[t]).is(s)&&a.apply(e[t],i)}}function l(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof t[1]&&([n,a,r]=t,s=void 0),r||(r=!1);const d=n.split(" ");let h;for(let e=0;e<this.length;e+=1){const t=this[e];if(s)for(h=0;h<d.length;h+=1){const e=d[h];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:a,proxyListener:o}),t.addEventListener(e,o,r)}else for(h=0;h<d.length;h+=1){const e=d[h];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:a,proxyListener:l}),t.addEventListener(e,l,r)}}return this},off:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];let[n,s,a,r]=t;"function"==typeof t[1]&&([n,a,r]=t,s=void 0),r||(r=!1);const o=n.split(" ");for(let e=0;e<o.length;e+=1){const t=o[e];for(let e=0;e<this.length;e+=1){const i=this[e];let n;if(!s&&i.dom7Listeners?n=i.dom7Listeners[t]:s&&i.dom7LiveListeners&&(n=i.dom7LiveListeners[t]),n&&n.length)for(let e=n.length-1;e>=0;e-=1){const s=n[e];a&&s.listener===a||a&&s.listener&&s.listener.dom7proxy&&s.listener.dom7proxy===a?(i.removeEventListener(t,s.proxyListener,r),n.splice(e,1)):a||(i.removeEventListener(t,s.proxyListener,r),n.splice(e,1))}}}return this},trigger:function(){const e=a();for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];const s=i[0].split(" "),r=i[1];for(let t=0;t<s.length;t+=1){const n=s[t];for(let t=0;t<this.length;t+=1){const s=this[t];if(e.CustomEvent){const t=new e.CustomEvent(n,{detail:r,bubbles:!0,cancelable:!0});s.dom7EventData=i.filter(((e,t)=>t>0)),s.dispatchEvent(t),s.dom7EventData=[],delete s.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function i(n){n.target===this&&(e.call(this,n),t.off("transitionend",i))})),this},outerWidth:function(e){if(this.length>0){if(e){const 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(this.length>0){if(e){const 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(){const e=a();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=a(),t=n(),i=this[0],s=i.getBoundingClientRect(),r=t.body,o=i.clientTop||r.clientTop||0,l=i.clientLeft||r.clientLeft||0,c=i===e?e.scrollY:i.scrollTop,d=i===e?e.scrollX:i.scrollLeft;return{top:s.top+c-o,left:s.left+d-l}}return null},css:function(e,t){const i=a();let n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(const t in e)this[n].style[t]=e[t];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,i)=>{e.apply(t,[t,i])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let 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(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=a(),i=n(),s=this[0];let o,l;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);
vendor: 6,776 bytes, line 1
1if(s.msMatchesSelector)return s.msMatchesSelector(e);for(o=c(e),l=0;l<o.length;l+=1)if(o[l]===s)return!0;return!1}if(e===i)return s===i;if(e===t)return s===t;if(e.nodeType||e instanceof r){for(o=e.nodeType?[e]:e,l=0;l<o.length;l+=1)if(o[l]===s)return!0;return!1}return!1},index:function(){let 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;const t=this.length;if(e>t-1)return c([]);if(e<0){const i=t+e;return c(i<0?[]:[this[i]])}return c([this[e]])},append:function(){let e;const t=n();for(let i=0;i<arguments.length;i+=1){e=i<0||arguments.length<=i?void 0:arguments[i];for(let i=0;i<this.length;i+=1)if("string"==typeof e){const n=t.createElement("div");for(n.innerHTML=e;n.firstChild;)this[i].appendChild(n.firstChild)}else if(e instanceof r)for(let t=0;t<e.length;t+=1)this[i].appendChild(e[t]);else this[i].appendChild(e)}return this},prepend:function(e){const t=n();let i,s;for(i=0;i<this.length;i+=1)if("string"==typeof e){const n=t.createElement("div");for(n.innerHTML=e,s=n.childNodes.length-1;s>=0;s-=1)this[i].insertBefore(n.childNodes[s],this[i].childNodes[0])}else if(e instanceof r)for(s=0;s<e.length;s+=1)this[i].insertBefore(e[s],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this},next:function(e){return this.length>0?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){const t=[];let i=this[0];if(!i)return c([]);for(;i.nextElementSibling;){const n=i.nextElementSibling;e?c(n).is(e)&&t.push(n):t.push(n),i=n}return c(t)},prev:function(e){if(this.length>0){const 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){const t=[];let i=this[0];if(!i)return c([]);for(;i.previousElementSibling;){const n=i.previousElementSibling;e?c(n).is(e)&&t.push(n):t.push(n),i=n}return c(t)},parent:function(e){const t=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?c(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return c(t)},parents:function(e){const t=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)e?c(n).is(e)&&t.push(n):t.push(n),n=n.parentNode}return c(t)},closest:function(e){let t=this;return void 0===e?c([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(e);for(let e=0;e<n.length;e+=1)t.push(n[e])}return c(t)},children:function(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].children;for(let i=0;i<n.length;i+=1)e&&!c(n[i]).is(e)||t.push(n[i])}return c(t)},filter:function(e){return c(l(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};function h(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function u(){return Date.now()}function p(e,t){void 0===t&&(t="x");const i=a();let n,s,r;const o=function(e){const t=a();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((e=>e.replace(",","."))).join(", ")),r=new i.WebKitCSSMatrix("none"===s?"":s)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=r.toString().split(",")),"x"===t&&(s=i.WebKitCSSMatrix?r.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(s=i.WebKitCSSMatrix?r.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),s||0}function f(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function g(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function m(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const n=i<0||arguments.length<=i?void 0:arguments[i];if(null!=n&&!g(n)){const i=Object.keys(Object(n)).filter((e=>t.indexOf(e)<0));for(let t=0,s=i.length;t<s;t+=1){const s=i[t],a=Object.getOwnPropertyDescriptor(n,s);void 0!==a&&a.enumerable&&(f(e[s])&&f(n[s])?n[s].__swiper__?e[s]=n[s]:m(e[s],n[s]):!f(e[s])&&f(n[s])?(e[s]={},n[s].__swiper__?e[s]=n[s]:m(e[s],n[s])):e[s]=n[s])}}}return e}function v(e,t,i){e.style.setProperty(t,i)}function b(e){let{swiper:t,targetPosition:i,side:n}=e;const s=a(),r=-t.translate;let o,l=null;const c=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const d=i>r?"next":"prev",h=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,u=()=>{o=(new Date).getTime(),null===l&&(l=o);const e=Math.max(Math.min((o-l)/c,1),0),a=.5-Math.cos(e*Math.PI)/2;let d=r+a*(i-r);if(h(d,i)&&(d=i),t.wrapperEl.scrollTo({[n]:d}),h(d,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:d})})),void s.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=s.requestAnimationFrame(u)};u()}let x,y,w;function _(){return x||(x=function(){const e=a(),t=n();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const i=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),x}function S(e){return void 0===e&&(e={}),y||(y=function(e){let{userAgent:t}=void 0===e?{}:e;const i=_(),n=a(),s=n.navigator.platform,r=t||n.navigator.userAgent,o={ios:!1,android:!1},l=n.screen.width,c=n.screen.height,d=r.match(/(Android);?[\s\/]+([\d.]+)?/);let h=r.match(/(iPad).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!h&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===s;let g="MacIntel"===s;return!h&&g&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${c}`)>=0&&(h=r.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),g=!1),d&&!f&&(o.os="android",o.android=!0),(h||p||u)&&(o.os="ios",o.ios=!0),o}(e)),y}function T(){return w||(w=function(){const e=a();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}
1(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),w}Object.keys(d).forEach((e=>{Object.defineProperty(c.fn,e,{value:d[e],writable:!0})}));var C={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const s=i?"unshift":"push";return e.split(" ").forEach((e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][s](t)})),n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;function s(){n.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];t.apply(n,a)}return s.__emitterProxy=t,n.on(e,s,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const n=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[n](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((n,s)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&i.eventsListeners[e].splice(s,1)}))})),i):i},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,n;for(var s=arguments.length,a=new Array(s),r=0;r<s;r++)a[r]=arguments[r];return"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],i=a.slice(1,a.length),n=e):(t=a[0].events,i=a[0].data,n=a[0].context||e),i.unshift(n),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(n,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(n,i)}))})),e}},E={updateSize:function(){const e=this;let t,i;const n=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:n[0].clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:n[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),i=i-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const n=e.params,{$wrapperEl:s,size:a,rtlTranslate:r,wrongRTL:o}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=s.children(`.${e.params.slideClass}`),h=l?e.virtual.slides.length:d.length;let u=[];const p=[],f=[];let g=n.slidesOffsetBefore;"function"==typeof g&&(g=n.slidesOffsetBefore.call(e));let m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(e));const b=e.snapGrid.length,x=e.slidesGrid.length;let y=n.spaceBetween,w=-g,_=0,S=0;if(void 0===a)return;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*a),e.virtualSize=-y,r?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),n.centeredSlides&&n.cssMode&&(v(e.wrapperEl,"--swiper-centered-offset-before",""),v(e.wrapperEl,"--swiper-centered-offset-after",""));const T=n.grid&&n.grid.rows>1&&e.grid;let C;T&&e.grid.initSlides(h);const E="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let s=0;s<h;s+=1){C=0;const r=d.eq(s);if(T&&e.grid.updateSlide(s,r,h,t),"none"!==r.css("display")){if("auto"===n.slidesPerView){E&&(d[s].style[t("width")]="");const a=getComputedStyle(r[0]),o=r[0].style.transform,l=r[0].style.webkitTransform;if(o&&(r[0].style.transform="none"),l&&(r[0].style.webkitTransform="none"),n.roun
1dLengths)C=e.isHorizontal()?r.outerWidth(!0):r.outerHeight(!0);else{const e=i(a,"width"),t=i(a,"padding-left"),n=i(a,"padding-right"),s=i(a,"margin-left"),o=i(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=e+s+o;else{const{clientWidth:i,offsetWidth:a}=r[0];C=e+t+n+s+o+(a-i)}}o&&(r[0].style.transform=o),l&&(r[0].style.webkitTransform=l),n.roundLengths&&(C=Math.floor(C))}else C=(a-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),d[s]&&(d[s].style[t("width")]=`${C}px`);d[s]&&(d[s].swiperSlideSize=C),f.push(C),n.centeredSlides?(w=w+C/2+_/2+y,0===_&&0!==s&&(w=w-a/2-y),0===s&&(w=w-a/2-y),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),S%n.slidesPerGroup==0&&u.push(w),p.push(w)):(n.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&u.push(w),p.push(w),w=w+C+y),e.virtualSize+=C+y,_=C,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+m,r&&o&&("slide"===n.effect||"coverflow"===n.effect)&&s.css({width:`${e.virtualSize+n.spaceBetween}px`}),n.setWrapperSize&&s.css({[t("width")]:`${e.virtualSize+n.spaceBetween}px`}),T&&e.grid.updateWrapperSize(C,u,t),!n.centeredSlides){const t=[];for(let i=0;i<u.length;i+=1){let s=u[i];n.roundLengths&&(s=Math.floor(s)),u[i]<=e.virtualSize-a&&t.push(s)}u=t,Math.floor(e.virtualSize-a)-Math.floor(u[u.length-1])>1&&u.push(e.virtualSize-a)}if(0===u.length&&(u=[0]),0!==n.spaceBetween){const i=e.isHorizontal()&&r?"marginLeft":t("marginRight");d.filter(((e,t)=>!n.cssMode||t!==d.length-1)).css({[i]:`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)})),e-=n.spaceBetween;const t=e-a;u=u.map((e=>e<0?-g:e>t?t+m:e))}if(n.centerInsufficientSlides){let e=0;if(f.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)})),e-=n.spaceBetween,e<a){const t=(a-e)/2;u.forEach(((e,i)=>{u[i]=e-t})),p.forEach(((e,i)=>{p[i]=e+t}))}}if(Object.assign(e,{slides:d,snapGrid:u,slidesGrid:p,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){v(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),v(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(h!==c&&e.emit("slidesLengthChange"),u.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==x&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.$el.hasClass(t);h<=n.maxBackfaceHiddenSlides?i||e.$el.addClass(t):i&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,i=[],n=t.virtual&&t.params.virtual.enabled;let s,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const r=e=>n?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||c([])).each((e=>{i.push(e)}));else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!n)break;i.push(r(e))}else i.push(r(t.activeIndex));for(s=0;s<i.length;s+=1)if(void 0!==i[s]){const e=i[s].offsetHeight;a=e>a?e:a}(a||0===a)&&t.$wrapperEl.css("height",`${a}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,i=t.params,{slides:n,rtlTranslate:s,snapGrid:a}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let r=-e;s&&(r=e),n.removeClass(i.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<n.length;e+=1){const o=n[e];let l=o.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(l-=n[0].swiperSlideOffset);const c=(r+(i.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+i.spaceBetween),d=(r-a[0]+(i.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+i.spaceBetween),h=-(r-l),u=h+t.slidesSizesGrid[e];(h>=0&&h<t.size-1||u>1&&u<=t.size||h<=0&&u>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e),n.eq(e).addClass(i.slideVisibleClass)),o.progress=s?-c:c,o.originalProgress=s?-d:d}t.visibleSlides=c(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:a,isEnd:r}=t;const o=a,l=r;0===n?(s=0,a=!0,r=!0):(s=(e-t.minTranslate())/n,a=s<=0,r=s>=1),Object.assign(t,{progress:s,isBeginning:a,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),a&&!o&&t.emit("reachBeginning toEdge"),r&&!l&&t.emit("reachEnd toEdge"),(o&&!a||l&&!r)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,$wrapperEl:n,activeIndex:s,realIndex:a}=e,r=e.virtual&&i.virtual.enabled;let o;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),o=r?e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${s}"]`):t.eq(s),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${a}"]`).addClass(i.slideDuplicateActiveClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${a}"]`).addClass(i.slideDuplicateActiveClass));let l=o.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);
vendor: 6,819 bytes, line 1
1i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));let c=o.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=t.eq(-1),c.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:n,snapGrid:s,params:a,activeIndex:r,realIndex:o,snapIndex:l}=t;let c,d=e;if(void 0===d){for(let e=0;e<n.length;e+=1)void 0!==n[e+1]?i>=n[e]&&i<n[e+1]-(n[e+1]-n[e])/2?d=e:i>=n[e]&&i<n[e+1]&&(d=e+1):i>=n[e]&&(d=e);a.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(s.indexOf(i)>=0)c=s.indexOf(i);else{const e=Math.min(a.slidesPerGroupSkip,d);c=e+Math.floor((d-e)/a.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),d===r)return void(c!==l&&(t.snapIndex=c,t.emit("snapIndexChange")));const h=parseInt(t.slides.eq(d).attr("data-swiper-slide-index")||d,10);Object.assign(t,{snapIndex:c,realIndex:h,previousIndex:r,activeIndex:d}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==h&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,n=c(e).closest(`.${i.slideClass}`)[0];let s,a=!1;if(n)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===n){a=!0,s=e;break}if(!n||!a)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=s,i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},M={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:i,translate:n,$wrapperEl:s}=this;if(t.virtualTranslate)return i?-n:n;if(t.cssMode)return n;let a=p(s[0],e);return i&&(a=-a),a||0},setTranslate:function(e,t){const i=this,{rtlTranslate:n,params:s,$wrapperEl:a,wrapperEl:r,progress:o}=i;let l,c=0,d=0;i.isHorizontal()?c=n?-e:e:d=e,s.roundLengths&&(c=Math.floor(c),d=Math.floor(d)),s.cssMode?r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-d:s.virtualTranslate||a.transform(`translate3d(${c}px, ${d}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:d;const h=i.maxTranslate()-i.minTranslate();l=0===h?0:(e-i.minTranslate())/h,l!==o&&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,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);const a=this,{params:r,wrapperEl:o}=a;if(a.animating&&r.preventInteractionOnTransition)return!1;const l=a.minTranslate(),c=a.maxTranslate();let d;if(d=n&&e>l?l:n&&e<c?c:e,a.updateProgress(d),r.cssMode){const e=a.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-d;else{if(!a.support.smoothScroll)return b({swiper:a,targetPosition:-d,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,s),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,s),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,i&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}};function k(e){let{swiper:t,runCallbacks:i,direction:n,step:s}=e;const{activeIndex:a,previousIndex:r}=t;let o=n;if(o||(o=a>r?"next":a<r?"prev":"reset"),t.emit(`transition${s}`),i&&a!==r){if("reset"===o)return void t.emit(`slideResetTransition${s}`);t.emit(`slideChangeTransition${s}`),"next"===o?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`)}}var P={slideTo:function(e,t,i,n,s){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),"number"!=typeof 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){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const a=this;let r=e;r<0&&(r=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:h,rtlTranslate:u,wrapperEl:p,enabled:f}=a;if(a.animating&&o.preventInteractionOnTransition||!f&&!n&&!s)return!1;const g=Math.min(a.params.slidesPerGroupSkip,r);let m=g+Math.floor((r-g)/a.params.slidesPerGroup);m>=l.length&&(m=l.length-1);const v=-l[m];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),i=Math.floor(100*c[e]),n=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<n-(n-i)/2?r=e:t>=i&&t<n&&(r=e+1):t>=i&&(r=e)}if(a.initialized&&r!==h){if(!a.allowSlideNext&&v<a.translate&&v<a.minTranslate())return!1;if(!a.allowSlidePrev&&v>a.translate&&v>a.maxTranslate()&&(h||0)!==r)return!1}let x;if(r!==(d||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(v),x=r>h?"next":r<h?"prev":"reset",u&&-v===a.translate||!u&&v===a.translate)return a.updateActiveIndex(r),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==o.effect&&a.setTranslate(v),"reset"!==x&&(a.transitionStart(i,x),a.transitionEnd(i,x)),!1;if(o.cssMode){const e=a.isHorizontal(),i=u?v:-v;if(0===t){const t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),p[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame((()=>{a.wrapperEl.style.scrollSnapType="",a._swiperImmediateVirtual=!1}))}else{if(!a.support.smoothScroll)return b({swiper:a,targetPosition:i,side:e?"left"
1:"top"}),!0;p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(v),a.updateActiveIndex(r),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,n),a.transitionStart(i,x),0===t?a.transitionEnd(i,x):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,x))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,n){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),"string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const s=this;let a=e;return s.params.loop&&(a+=s.loopedSlides),s.slideTo(a,t,i,n)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const n=this,{animating:s,enabled:a,params:r}=n;if(!a)return n;let o=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<r.slidesPerGroupSkip?1:o;if(r.loop){if(s&&r.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return r.rewind&&n.isEnd?n.slideTo(0,e,t,i):n.slideTo(n.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const n=this,{params:s,animating:a,snapGrid:r,slidesGrid:o,rtlTranslate:l,enabled:c}=n;if(!c)return n;if(s.loop){if(a&&s.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=d(l?n.translate:-n.translate),u=r.map((e=>d(e)));let p=r[u.indexOf(h)-1];if(void 0===p&&s.cssMode){let e;r.forEach(((t,i)=>{h>=t&&(e=i)})),void 0!==e&&(p=r[e>0?e-1:e])}let f=0;if(void 0!==p&&(f=o.indexOf(p),f<0&&(f=n.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(f=f-n.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),s.rewind&&n.isBeginning){const s=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(s,e,t,i)}return n.slideTo(f,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,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);const s=this;let a=s.activeIndex;const r=Math.min(s.params.slidesPerGroupSkip,a),o=r+Math.floor((a-r)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const e=s.snapGrid[o];l-e>(s.snapGrid[o+1]-e)*n&&(a+=s.params.slidesPerGroup)}else{const e=s.snapGrid[o-1];l-e<=(s.snapGrid[o]-e)*n&&(a-=s.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,s.slidesGrid.length-1),s.slideTo(a,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:i}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,a=e.clickedIndex;if(t.loop){if(e.animating)return;s=parseInt(c(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-n/2||a>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),a=i.children(`.${t.slideClass}[data-swiper-slide-index="${s}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),h((()=>{e.slideTo(a)}))):e.slideTo(a):a>e.slides.length-n?(e.loopFix(),a=i.children(`.${t.slideClass}[data-swiper-slide-index="${s}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),h((()=>{e.slideTo(a)}))):e.slideTo(a)}else e.slideTo(a)}},$={loopCreate:function(){const e=this,t=n(),{params:i,$wrapperEl:s}=e,a=s.children().length>0?c(s.children()[0].parentNode):s;a.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let r=a.children(`.${i.slideClass}`);
1if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-r.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let n=0;n<e;n+=1){const e=c(t.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);a.append(e)}r=a.children(`.${i.slideClass}`)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),e.loopedSlides+=i.loopAdditionalSlides,e.loopedSlides>r.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=r.length);const o=[],l=[];r.each(((e,t)=>{c(e).attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/r.length)*r.length;l.push(r.eq(e)[0]),o.unshift(r.eq(r.length-e-1)[0])}for(let e=0;e<l.length;e+=1)a.append(c(l[e].cloneNode(!0)).addClass(i.slideDuplicateClass));for(let e=o.length-1;e>=0;e-=1)a.prepend(c(o[e].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:n,allowSlidePrev:s,allowSlideNext:a,snapGrid:r,rtlTranslate:o}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-r[t]-e.getTranslate();t<n?(l=i.length-3*n+t,l+=n,e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((o?-e.translate:e.translate)-c)):t>=i.length-n&&(l=-i.length+t+n,l+=n,e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((o?-e.translate:e.translate)-c)),e.allowSlidePrev=s,e.allowSlideNext=a,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};function D(e){const t=this,i=n(),s=a(),r=t.touchEventsData,{params:o,touches:l,enabled:d}=t;if(!d)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let h=e;h.originalEvent&&(h=h.originalEvent);let p=c(h.target);if("wrapper"===o.touchEventsTarget&&!p.closest(t.wrapperEl).length)return;if(r.isTouchEvent="touchstart"===h.type,!r.isTouchEvent&&"which"in h&&3===h.which)return;if(!r.isTouchEvent&&"button"in h&&h.button>0)return;if(r.isTouched&&r.isMoved)return;const f=!!o.noSwipingClass&&""!==o.noSwipingClass,g=e.composedPath?e.composedPath():e.path?e.path[0]:void 0;f&&h.target&&h.target.shadowRoot&&g&&(p=c(g));const m=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,v=!(!h.target||!h.target.shadowRoot);if(o.noSwiping&&(v?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===n()||i===a())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(m,p[0]):p.closest(m)[0]))return void(t.allowClick=!0);if(o.swipeHandler&&!p.closest(o.swipeHandler)[0])return;l.currentX="touchstart"===h.type?h.targetTouches[0].pageX:h.pageX,l.currentY="touchstart"===h.type?h.targetTouches[0].pageY:h.pageY;const b=l.currentX,x=l.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,w=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(y&&(b<=w||b>=s.innerWidth-w)){if("prevent"!==y)return;e.preventDefault()}if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=b,l.startY=x,r.touchStartTime=u(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==h.type){let e=!0;p.is(r.focusableElements)&&(e=!1,"SELECT"===p[0].nodeName&&(r.isTouched=!1)),i.activeElement&&c(i.activeElement).is(r.focusableElements)&&i.activeElement!==p[0]&&i.activeElement.blur();const n=e&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!n||p[0].isContentEditable||h.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",h)}function A(e){const t=n(),i=this,s=i.touchEventsData,{params:a,touches:r,rtlTranslate:o,enabled:l}=i;if(!l)return;let d=e;if(d.originalEvent&&(d=d.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",d));if(s.isTouchEvent&&"touchmove"!==d.type)return;const h="touchmove"===d.type&&d.targetTouches&&(d.targetTouches[0]||d.changedTouches[0]),p="touchmove"===d.type?h.pageX:d.pageX,f="touchmove"===d.type?h.pageY:d.pageY;if(d.preventedByNestedSwiper)return r.startX=p,void(r.startY=f);if(!i.allowTouchMove)return c(d.target).is(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(r,{startX:p,startY:f,currentX:p,currentY:f}),s.touchStartTime=u()));if(s.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(i.isVertical()){if(f<r.startY&&i.translate<=i.maxTranslate()||f>r.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(p<r.startX&&i.translate<=i.maxTranslate()||p>r.startX&&i.translate>=i.minTranslate())return;if(s.isTouchEvent&&t.activeElement&&d.target===t.activeElement&&c(d.target).is(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);if(s.allowTouchCallbacks&&i.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;r.currentX=p,r.currentY=f;const g=r.currentX-r.startX,m=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(g**2+m**2)<i.params.threshold)return;if(void 0===s.isScrolling){let e;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:g*g+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(g))/Math.PI,s.isScrolling=i.isHorizontal()?e>a.touchAngle:90-e>a.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",d),void 0===s.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(s.startMoving=!0)),s.isScrolling)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!a.cssMode&&d.cancelable&&d.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&d.stopPropagation(),s.isMoved||(a.loop&&!a.cssMode&&i.loopFix(),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce
vendor: 1,100 bytes, line 1
1=!1,!a.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",d)),i.emit("sliderMove",d),s.isMoved=!0;let v=i.isHorizontal()?g:m;r.diff=v,v*=a.touchRatio,o&&(v=-v),i.swipeDirection=v>0?"prev":"next",s.currentTranslate=v+s.startTranslate;let b=!0,x=a.resistanceRatio;if(a.touchReleaseOnEdges&&(x=0),v>0&&s.currentTranslate>i.minTranslate()?(b=!1,a.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+v)**x)):v<0&&s.currentTranslate<i.maxTranslate()&&(b=!1,a.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-v)**x)),b&&(d.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),a.threshold>0){if(!(Math.abs(v)>a.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);
1if(!s.allowThresholdMove)return s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,void(r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function L(e){const t=this,i=t.touchEventsData,{params:n,touches:s,rtlTranslate:a,slidesGrid:r,enabled:o}=t;if(!o)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",l),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);const c=u(),d=c-i.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),d<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(i.lastClickTime=u(),h((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===s.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let p;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,p=n.followFinger?a?t.translate:-t.translate:-i.currentTranslate,n.cssMode)return;if(t.params.freeMode&&n.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});let f=0,g=t.slidesSizesGrid[0];for(let e=0;e<r.length;e+=e<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=e<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==r[e+t]?p>=r[e]&&p<r[e+t]&&(f=e,g=r[e+t]-r[e]):p>=r[e]&&(f=e,g=r[r.length-1]-r[r.length-2])}let m=null,v=null;n.rewind&&(t.isBeginning?v=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const b=(p-r[f])/g,x=f<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(d>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=n.longSwipesRatio?t.slideTo(n.rewind&&t.isEnd?m:f+x):t.slideTo(f)),"prev"===t.swipeDirection&&(b>1-n.longSwipesRatio?t.slideTo(f+x):null!==v&&b<0&&Math.abs(b)>n.longSwipesRatio?t.slideTo(v):t.slideTo(f))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||l.target!==t.navigation.nextEl&&l.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==m?m:f+x),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:f)):l.target===t.navigation.nextEl?t.slideTo(f+x):t.slideTo(f)}}function O(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:a}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=s,e.allowSlideNext=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function I(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function z(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:n}=e;if(!n)return;let s;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const a=e.maxTranslate()-e.minTranslate();s=0===a?0:(e.translate-e.minTranslate())/a,s!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let R=!1;function N(){}const B=(e,t)=>{const i=n(),{params:s,touchEvents:a,el:r,wrapperEl:o,device:l,support:c}=e,d=!!s.nested,h="on"===t?"addEventListener":"removeEventListener",u=t;if(c.touch){const t=!("touchstart"!==a.start||!c.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};r[h](a.start,e.onTouchStart,t),r[h](a.move,e.onTouchMove,c.passiveListener?{passive:!1,capture:d}:d),r[h](a.end,e.onTouchEnd,t),a.cancel&&r[h](a.cancel,e.onTouchEnd,t)}else r[h](a.start,e.onTouchStart,!1),i[h](a.move,e.onTouchMove,d),i[h](a.end,e.onTouchEnd,!1);(s.preventClicks||s.preventClicksPropagation)&&r[h]("click",e.onClick,!0),s.cssMode&&o[h]("scroll",e.onScroll),s.updateOnWindowResize?e[u](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",O,!0):e[u]("observerUpdate",O,!0)};var F={attachEvents:function(){const e=this,t=n(),{params:i,support:s}=e;e.onTouchStart=D.bind(e),e.onTouchMove=A.bind(e),e.onTouchEnd=L.bind(e),i.cssMode&&(e.onScroll=z.bind(e)),e.onClick=I.bind(e),s.touch&&!R&&(t.addEventListener("touchstart",N),R=!0),B(e,"on")},detachEvents:function(){B(this,"off")}};const j=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var H={addClasses:function(){const e=this,{classNames:t,params:i,rtl:n,$el:s,device:a,support:r}=e,o=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((n=>{e[n]&&i.push(t+n)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"pointer-events":!r.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...o),s.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},V={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
1spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,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,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",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};function W(e,t){return function(i){void 0===i&&(i={});const n=Object.keys(i)[0],s=i[n];"object"==typeof s&&null!==s?(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===e[n]&&(e[n]={auto:!0}),n in e&&"enabled"in s?(!0===e[n]&&(e[n]={enabled:!0}),"object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),m(t,i)):m(t,i)):m(t,i)}}const q={eventsEmitter:C,update:E,translate:M,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||i.$wrapperEl.transition(e),i.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),k({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const i=this,{params:n}=i;i.animating=!1,n.cssMode||(i.setTransition(0),k({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:P,loop:$,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;i.style.cursor="move",i.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:F,breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:i,loopedSlides:n=0,params:s,$el:a}=e,r=s.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in r?r[o]:void 0)||e.originalParams,c=j(e,s),d=j(e,l),h=s.enabled;c&&!d?(a.removeClass(`${s.containerModifierClass}grid ${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&d&&(a.addClass(`${s.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===s.grid.fill)&&a.addClass(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const i=s[t]&&s[t].enabled,n=l[t]&&l[t].enabled;i&&!n&&e[t].disable(),!i&&n&&e[t].enable()}));const u=l.direction&&l.direction!==s.direction,p=s.loop&&(l.slidesPerView!==s.slidesPerView||u);u&&i&&e.changeDirection(),m(e.params,l);const f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!f?e.disable():!h&&f&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),p&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",l)}
1,getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let n=!1;const s=a(),r="window"===t?s.innerHeight:i.clientHeight,o=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));o.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<o.length;e+=1){const{point:a,value:r}=o[e];"window"===t?s.matchMedia(`(min-width: ${r}px)`).matches&&(n=a):r<=i.clientWidth&&(n=a)}return n||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:n}=i;if(n){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:H,images:{loadImage:function(e,t,i,n,s,r){const o=a();let l;function d(){r&&r()}c(e).parent("picture")[0]||e.complete&&s?d():t?(l=new o.Image,l.onload=d,l.onerror=d,n&&(l.sizes=n),i&&(l.srcset=i),t&&(l.src=t)):d()},preloadImages:function(){const 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(let i=0;i<e.imagesToLoad.length;i+=1){const n=e.imagesToLoad[i];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,t)}}}},Y={};class X{constructor(){let e,t;for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];if(1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?t=n[0]:[e,t]=n,t||(t={}),t=m({},t),e&&!t.el&&(t.el=e),t.el&&c(t.el).length>1){const e=[];return c(t.el).each((i=>{const n=m({},t,{el:i});e.push(new X(n))})),e}const a=this;a.__swiper__=!0,a.support=_(),a.device=S({userAgent:t.userAgent}),a.browser=T(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],t.modules&&Array.isArray(t.modules)&&a.modules.push(...t.modules);const r={};a.modules.forEach((e=>{e({swiper:a,extendParams:W(t,r),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}));const o=m({},V,r);return a.params=m({},o,Y,t),a.originalParams=m({},a.params),a.passedParams=m({}
1,t),a.params&&a.params.on&&Object.keys(a.params.on).forEach((e=>{a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=c,Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:c(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return a.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},a.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.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,focusableElements:a.params.focusableElements,lastClickTime:u(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const n=i.minTranslate(),s=(i.maxTranslate()-n)*e+n;i.translateTo(s,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((i=>{const n=e.getSlideClasses(i);t.push({slideEl:i,classNames:n}),e.emit("_slideClass",i,n)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:n,slidesGrid:s,slidesSizesGrid:a,size:r,activeIndex:o}=this;let l=1;if(i.centeredSlides){let e,t=n[o].swiperSlideSize;for(let i=o+1;i<n.length;i+=1)n[i]&&!e&&(t+=n[i].swiperSlideSize,l+=1,t>r&&(e=!0));for(let i=o-1;i>=0;i-=1)n[i]&&!e&&(t+=n[i].swiperSlideSize,l+=1,t>r&&(e=!0))}else if("current"===e)for(let e=o+1;e<n.length;e+=1)(t?s[e]+a[e]-s[o]<r:s[e]-s[o]<r)&&(l+=1);else for(let e=o-1;e>=0;e-=1)s[o]-s[e]<r&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function n(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let s;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(n(),e.params.autoHeight&&e.updateAutoHeight()):(s=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),s||n()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(`${i.params.containerModifierClass}${n}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}
1rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const i=c(e||t.params.el);if(!(e=i[0]))return!1;e.swiper=t;const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=c(e.shadowRoot.querySelector(s()));return t.children=e=>i.children(e),t}return i.children?i.children(s()):c(i).children(s())})();if(0===a.length&&t.params.createElements){const e=n().createElement("div");a=c(e),e.className=t.params.wrapperClass,i.append(e),i.children(`.${t.params.slideClass}`).each((e=>{a.append(e)}))}return Object.assign(t,{$el:i,el:e,$wrapperEl:a,wrapperEl:a[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===a.css("display")}),!0}init(e){const t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:n,$el:s,$wrapperEl:a,slides:r}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),s.removeAttr("style"),a.removeAttr("style"),r&&r.length&&r.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){m(Y,e)}static get extendedDefaults(){return Y}static get defaults(){return V}static installModule(e){X.prototype.__modules__||(X.prototype.__modules__=[]);const t=X.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>X.installModule(e))),X):(X.installModule(e),X)}}function G(e,t,i,s){const a=n();return e.params.createElements&&Object.keys(s).forEach((n=>{if(!i[n]&&!0===i.auto){let r=e.$el.children(`.${s[n]}`)[0];r||(r=a.createElement("div"),r.className=s[n],e.$el.append(r)),i[n]=r,t[n]=r}})),i}function U(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function K(e){const t=this,{$wrapperEl:i,params:n}=t;if(n.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i.append(e[t]);else i.append(e);n.loop&&t.loopCreate(),n.observer||t.update()}function Q(e){const t=this,{params:i,$wrapperEl:n,activeIndex:s}=t;i.loop&&t.loopDestroy();let a=s+1;if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n.prepend(e[t]);a=s+e.length}else n.prepend(e);i.loop&&t.loopCreate(),i.observer||t.update(),t.slideTo(a,0,!1)}function Z(e,t){const i=this,{$wrapperEl:n,params:s,activeIndex:a}=i;let r=a;s.loop&&(r-=i.loopedSlides,i.loopDestroy(),i.slides=n.children(`.${s.slideClass}`));const o=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=o)return void i.appendSlide(t);let l=r>e?r+1:r;const c=[];for(let t=o-1;t>=e;t-=1){const e=i.slides.eq(t);e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&n.append(t[e]);l=r>e?r+t.length:r}else n.append(t);for(let e=0;e<c.length;e+=1)n.append(c[e]);s.loop&&i.loopCreate(),s.observer||i.update(),s.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function J(e){const t=this,{params:i,$wrapperEl:n,activeIndex:s}=t;let a=s;i.loop&&(a-=t.loopedSlides,t.loopDestroy(),t.slides=n.children(`.${i.slideClass}`));let r,o=a;if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)r=e[i],t.slides[r]&&t.slides.eq(r).remove(),r<o&&(o-=1);o=Math.max(o,0)}else r=e,t.slides[r]&&t.slides.eq(r).remove(),r<o&&(o-=1),o=Math.max(o,0);
1i.loop&&t.loopCreate(),i.observer||t.update(),i.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function ee(){const e=this,t=[];for(let i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function te(e){const{effect:t,swiper:i,on:n,setTranslate:s,setTransition:a,overwriteParams:r,perspective:o,recreateShadows:l,getEffectParams:c}=e;let d;n("beforeInit",(()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),o&&o()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=r?r():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)})),n("setTranslate",(()=>{i.params.effect===t&&s()})),n("setTransition",((e,n)=>{i.params.effect===t&&a(n)})),n("transitionEnd",(()=>{if(i.params.effect===t&&l){if(!c||!c().slideShadows)return;i.slides.each((e=>{i.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),l()}})),n("virtualUpdate",(()=>{i.params.effect===t&&(i.slides.length||(d=!0),requestAnimationFrame((()=>{d&&i.slides&&i.slides.length&&(s(),d=!1)})))}))}function ie(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function ne(e){let{swiper:t,duration:i,transformEl:n,allSlides:s}=e;const{slides:a,activeIndex:r,$wrapperEl:o}=t;if(t.params.virtualTranslate&&0!==i){let e,i=!1;e=s?n?a.find(n):a:n?a.eq(r).find(n):a.eq(r),e.transitionEnd((()=>{if(i)return;if(!t||t.destroyed)return;i=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t<e.length;t+=1)o.trigger(e[t])}))}}function se(e,t,i){const n="swiper-slide-shadow"+(i?`-${i}`:""),s=e.transformEl?t.find(e.transformEl):t;let a=s.children(`.${n}`);return a.length||(a=c(`<div class="swiper-slide-shadow${i?`-${i}`:""}"></div>`),s.append(a)),a}Object.keys(q).forEach((e=>
1{Object.keys(q[e]).forEach((t=>{X.prototype[t]=q[e][t]}))})),X.use([function(e){let{swiper:t,on:i,emit:n}=e;const s=a();let r=null,o=null;const l=()=>{t&&!t.destroyed&&t.initialized&&(n("beforeResize"),n("resize"))},c=()=>{t&&!t.destroyed&&t.initialized&&n("orientationchange")};i("init",(()=>{t.params.resizeObserver&&void 0!==s.ResizeObserver?t&&!t.destroyed&&t.initialized&&(r=new ResizeObserver((e=>{o=s.requestAnimationFrame((()=>{const{width:i,height:n}=t;let s=i,a=n;e.forEach((e=>{let{contentBoxSize:i,contentRect:n,target:r}=e;r&&r!==t.el||(s=n?n.width:(i[0]||i).inlineSize,a=n?n.height:(i[0]||i).blockSize)})),s===i&&a===n||l()}))})),r.observe(t.el)):(s.addEventListener("resize",l),s.addEventListener("orientationchange",c))})),i("destroy",(()=>{o&&s.cancelAnimationFrame(o),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null),s.removeEventListener("resize",l),s.removeEventListener("orientationchange",c)}))},function(e){let{swiper:t,extendParams:i,on:n,emit:s}=e;const r=[],o=a(),l=function(e,t){void 0===t&&(t={});const i=new(o.MutationObserver||o.WebkitMutationObserver)((e=>{if(1===e.length)return void s("observerUpdate",e[0]);const t=function(){s("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(t):o.setTimeout(t,0)}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),r.push(i)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t<e.length;t+=1)l(e[t])}l(t.$el[0],{childList:t.params.observeSlideChildren}),l(t.$wrapperEl[0],{attributes:!1})}})),n("destroy",(()=>{r.forEach((e=>{e.disconnect()})),r.splice(0,r.length)}))}]);const ae=[function(e){let t,{swiper:i,extendParams:n,on:s,emit:a}=e;function r(e,t){const n=i.params.virtual;if(n.cache&&i.virtual.cache[t])return i.virtual.cache[t];const s=n.renderSlide?c(n.renderSlide.call(i,e,t)):c(`<div class="${i.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),n.cache&&(i.virtual.cache[t]=s),s}function o(e){const{slidesPerView:t,slidesPerGroup:n,centeredSlides:s}=i.params,{addSlidesBefore:o,addSlidesAfter:l}=i.params.virtual,{from:c,to:d,slides:h,slidesGrid:u,offset:p}=i.virtual;i.params.cssMode||i.updateActiveIndex();const f=i.activeIndex||0;let g,m,v;g=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",s?(m=Math.floor(t/2)+n+l,v=Math.floor(t/2)+n+o):(m=t+(n-1)+l,v=n+o);const b=Math.max((f||0)-v,0),x=Math.min((f||0)+m,h.length-1),y=(i.slidesGrid[b]||0)-(i.slidesGrid[0]||0);function w(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load(),a("virtualUpdate")}if(Object.assign(i.virtual,{from:b,to:x,offset:y,slidesGrid:i.slidesGrid}),c===b&&d===x&&!e)return i.slidesGrid!==u&&y!==p&&i.slides.css(g,`${y}px`),i.updateProgress(),void a("virtualUpdate");if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:y,from:b,to:x,slides:function(){const e=[];for(let t=b;t<=x;t+=1)e.push(h[t]);return e}()}),void(i.params.virtual.renderExternalUpdate?w():a("virtualUpdate"));const _=[],S=[];if(e)i.$wrapperEl.find(`.${i.params.slideClass}`).remove();else for(let e=c;e<=d;e+=1)(e<b||e>x)&&i.$wrapperEl.find(`.${i.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let t=0;t<h.length;t+=1)t>=b&&t<=x&&(void 0===d||e?S.push(t):(t>d&&S.push(t),t<c&&_.push(t)));S.forEach((e=>{i.$wrapperEl.append(r(h[e],e))})),_.sort(((e,t)=>t-e)).forEach((e=>{i.$wrapperEl.prepend(r(h[e],e))})),i.$wrapperEl.children(".swiper-slide").css(g,`${y}px`),w()}n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},s("beforeInit",(()=>{i.params.virtual.enabled&&(i.virtual.slides=i.params.virtual.slides,i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,i.params.initialSlide||o())})),s("setTranslate",(()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{o()}),100)):o())})),s("init update resize",(()=>{i.params.virtual.enabled&&i.params.cssMode&&v(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)})),Object.assign(i.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i.virtual.slides.push(e[t]);else i.virtual.slides.push(e);o(!0)},prependSlide:function(e){const t=i.activeIndex;let n=t+1,s=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&i.virtual.slides.unshift(e[t]);n=t+e.length,s=e.length}else i.virtual.slides.unshift(e);
vendor: 4,759 bytes, line 1
1if(i.params.virtual.cache){const e=i.virtual.cache,t={};Object.keys(e).forEach((i=>{const n=e[i],a=n.attr("data-swiper-slide-index");a&&n.attr("data-swiper-slide-index",parseInt(a,10)+s),t[parseInt(i,10)+s]=n})),i.virtual.cache=t}o(!0),i.slideTo(n,0)},removeSlide:function(e){if(null==e)return;let t=i.activeIndex;if(Array.isArray(e))for(let n=e.length-1;n>=0;n-=1)i.virtual.slides.splice(e[n],1),i.params.virtual.cache&&delete i.virtual.cache[e[n]],e[n]<t&&(t-=1),t=Math.max(t,0);else i.virtual.slides.splice(e,1),i.params.virtual.cache&&delete i.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);o(!0),i.slideTo(t,0)},removeAllSlides:function(){i.virtual.slides=[],i.params.virtual.cache&&(i.virtual.cache={}),o(!0),i.slideTo(0,0)},update:o})},function(e){let{swiper:t,extendParams:i,on:s,emit:r}=e;const o=n(),l=a();function d(e){if(!t.enabled)return;const{rtlTranslate:i}=t;let n=e;n.originalEvent&&(n=n.originalEvent);const s=n.keyCode||n.charCode,a=t.params.keyboard.pageUpDown,c=a&&33===s,d=a&&34===s,h=37===s,u=39===s,p=38===s,f=40===s;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&f||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&h||t.isVertical()&&p||c))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||o.activeElement&&o.activeElement.nodeName&&("input"===o.activeElement.nodeName.toLowerCase()||"textarea"===o.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||d||h||u||p||f)){let e=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&0===t.$el.parents(`.${t.params.slideActiveClass}`).length)return;const n=t.$el,s=n[0].clientWidth,a=n[0].clientHeight,r=l.innerWidth,o=l.innerHeight,c=t.$el.offset();i&&(c.left-=t.$el[0].scrollLeft);const d=[[c.left,c.top],[c.left+s,c.top],[c.left,c.top+a],[c.left+s,c.top+a]];for(let t=0;t<d.length;t+=1){const i=d[t];if(i[0]>=0&&i[0]<=r&&i[1]>=0&&i[1]<=o){if(0===i[0]&&0===i[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||h||u)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),((d||u)&&!i||(c||h)&&i)&&t.slideNext(),((c||h)&&!i||(d||u)&&i)&&t.slidePrev()):((c||d||p||f)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(d||f)&&t.slideNext(),(c||p)&&t.slidePrev()),r("keyPress",s)}}function h(){t.keyboard.enabled||(c(o).on("keydown",d),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(c(o).off("keydown",d),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),s("init",(()=>{t.params.keyboard.enabled&&h()})),s("destroy",(()=>{t.keyboard.enabled&&u()})),Object.assign(t.keyboard,{enable:h,disable:u})},function(e){let{swiper:t,extendParams:i,on:n,emit:s}=e;const r=a();let o;i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let l,d=u();const p=[];function f(){t.enabled&&(t.mouseEntered=!0)}function g(){t.enabled&&(t.mouseEntered=!1)}function m(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&u()-d<t.params.mousewheel.thresholdTime||!(e.delta>=6&&u()-d<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),s("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),s("scroll",e.raw)),d=(new r.Date).getTime(),1))}function v(e){let i=e,n=!0;if(!t.enabled)return;const a=t.params.mousewheel;t.params.cssMode&&i.preventDefault();let r=t.$el;if("container"!==t.params.mousewheel.eventsTarget&&(r=c(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!r[0].contains(i.target)&&!a.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let d=0;const f=t.rtlTranslate?-1:1,g=function(e){let t=0,i=0,n=0,s=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,s=10*i,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(n=e.deltaX),e.shiftKey&&!n&&(n=s,s=0),(n||s)&&e.deltaMode&&(1===e.deltaMode?(n*=40,s*=40):(n*=800,s*=800)),n&&!t&&(t=n<1?-1:1),s&&!i&&(i=s<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:s}}(i);if(a.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;d=-g.pixelX*f}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;d=-g.pixelY}else d=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*f:-g.pixelY;if(0===d)return!0;a.invert&&(d=-d);let v=t.getTranslate()+d*a.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),n=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),n&&t.params.nested&&i.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={t
1ime:u(),delta:Math.abs(d),direction:Math.sign(d)},n=l&&e.time<l.time+500&&e.delta<=l.delta&&e.direction===l.direction;if(!n){l=void 0,t.params.loop&&t.loopFix();let r=t.getTranslate()+d*a.sensitivity;const c=t.isBeginning,u=t.isEnd;if(r>=t.minTranslate()&&(r=t.minTranslate()),r<=t.maxTranslate()&&(r=t.maxTranslate()),t.setTransition(0),t.setTranslate(r),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!c&&t.isBeginning||!u&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(o),o=void 0,p.length>=15&&p.shift();const i=p.length?p[p.length-1]:void 0,n=p[0];if(p.push(e),i&&(e.delta>i.delta||e.direction!==i.direction))p.splice(0);else if(p.length>=15&&e.time-n.time<500&&n.delta-e.delta>=1&&e.delta<=6){const i=d>0?.8:.2;l=e,p.splice(0),o=h((()=>{t.slideToClosest(t.params.speed,!0,void 0,i)}),0)}o||(o=h((()=>{l=e,p.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(n||s("scroll",i),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),r===t.minTranslate()||r===t.maxTranslate())return!0}}else{const i={time:u(),delta:Math.abs(d),direction:Math.sign(d),raw:e};p.length>=2&&p.shift();const n=p.length?p[p.length-1]:void 0;if(p.push(i),n?(i.direction!==n.direction||i.delta>n.delta||i.time>n.time+150)&&m(i):m(i),function(e){const i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function b(e){let i=t.$el;"container"!==t.params.mousewheel.eventsTarget&&(i=c(t.params.mousewheel.eventsTarget)),i[e]("mouseenter",f),i[e]("mouseleave",g),i[e]("wheel",v)}function x(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",v),!0):!t.mousewheel.enabled&&(b("on"),t.mousewheel.enabled=!0,!0)}function y(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,v),!0):!!t.mousewheel.enabled&&(b("off"),t.mousewheel.enabled=!1,!0)}n("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&y(),t.params.mousewheel.enabled&&x()})),n("destroy",(()=>{t.params.cssMode&&x(),t.mousewheel.enabled&&y()})),Object.assign(t.mousewheel,{enable:x,disable:y})},function(e){let{swiper:t,extendParams:i,on:n,emit:s}=e;function a(e){let i;return e&&(i=c(e),t.params.uniqueNavElements&&"string"==typeof e&&i.length>1&&1===t.$el.find(e).length&&(i=t.$el.find(e))),i}function r(e,i){const n=t.params.navigation;e&&e.length>0&&(e[i?"addClass":"removeClass"](n.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=i),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](n.lockClass))}function o(){if(t.params.loop)return;const{$nextEl:e,$prevEl:i}=t.navigation;r(i,t.isBeginning&&!t.params.rewind),r(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function h(){const e=t.params.navigation;if(t.params.navigation=G(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const i=a(e.nextEl),n=a(e.prevEl);i&&i.length>0&&i.on("click",d),n&&n.length>0&&n.on("click",l),Object.assign(t.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:n,prevEl:n&&n[0]}),t.enabled||(i&&i.addClass(e.lockClass),n&&n.addClass(e.lockClass))}function u(){const{$nextEl:e,$prevEl:i}=t.navigation;e&&e.length&&(e.off("click",d),e.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",l),i.removeClass(t.params.navigation.disabledClass))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},n("init",(()=>{!1===t.params.navigation.enabled?p():(h(),o())})),n("toEdge fromEdge lock unlock",(()=>{o()})),n("destroy",(()=>{u()})),n("enable disable",(()=>{const{$nextEl:e,$prevEl:i}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),n("click",((e,i)=>{const{$nextEl:n,$prevEl:a}=t.navigation,r=i.target;if(t.params.navigation.hideOnClick&&!c(r).is(a)&&!c(r).is(n)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===r||t.pagination.el.contains(r)))return;let e;n?e=n.hasClass(t.params.navigation.hiddenClass):a&&(e=a.hasClass(t.params.navigation.hiddenClass)),s(!0===e?"navigationShow":"navigationHide"),n&&n.toggleClass(t.params.navigation.hiddenClass),a&&a.toggleClass(t.params.navigation.hiddenClass)}}));const p=()=>{t.$el.addClass(t.params.navigation.navigationDisabledClass),u()};Object.assign(t.navigation,{enable:()=>{t.$el.removeClass(t.params.navigation.navigationDisabledClass),h(),o()},disable:p,update:o,init:h,destroy:u})},function(e){let{swiper:t,extendParams:i,on:n,emit:s}=e;const a="swiper-pagination";let r;i({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:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}
1-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,$el:null,bullets:[]};let o=0;function l(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function d(e,i){const{bulletActiveClass:n}=t.params.pagination;e[i]().addClass(`${n}-${i}`)[i]().addClass(`${n}-${i}-${i}`)}function h(){const e=t.rtl,i=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,a=t.pagination.$el;let h;const u=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(h=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),h>n-1-2*t.loopedSlides&&(h-=n-2*t.loopedSlides),h>u-1&&(h-=u),h<0&&"bullets"!==t.params.paginationType&&(h=u+h)):h=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let s,l,u;if(i.dynamicBullets&&(r=n.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),a.css(t.isHorizontal()?"width":"height",r*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==t.previousIndex&&(o+=h-(t.previousIndex-t.loopedSlides||0),o>i.dynamicMainBullets-1?o=i.dynamicMainBullets-1:o<0&&(o=0)),s=Math.max(h-o,0),l=s+(Math.min(n.length,i.dynamicMainBullets)-1),u=(l+s)/2),n.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`)).join(" ")),a.length>1)n.each((e=>{const t=c(e),n=t.index();n===h&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(n>=s&&n<=l&&t.addClass(`${i.bulletActiveClass}-main`),n===s&&d(t,"prev"),n===l&&d(t,"next"))}));else{const e=n.eq(h),a=e.index();if(e.addClass(i.bulletActiveClass),i.dynamicBullets){const e=n.eq(s),r=n.eq(l);for(let e=s;e<=l;e+=1)n.eq(e).addClass(`${i.bulletActiveClass}-main`);if(t.params.loop)if(a>=n.length){for(let e=i.dynamicMainBullets;e>=0;e-=1)n.eq(n.length-e).addClass(`${i.bulletActiveClass}-main`);n.eq(n.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else d(e,"prev"),d(r,"next");else d(e,"prev"),d(r,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),a=(r*s-r)/2-u*r,o=e?"right":"left";n.css(t.isHorizontal()?o:"top",`${a}px`)}}if("fraction"===i.type&&(a.find(U(i.currentClass)).text(i.formatFractionCurrent(h+1)),a.find(U(i.totalClass)).text(i.formatFractionTotal(u))),"progressbar"===i.type){let e;e=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const n=(h+1)/u;let s=1,r=1;"horizontal"===e?s=n:r=n,a.find(U(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${s}) scaleY(${r})`).transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(a.html(i.renderCustom(t,h+1,u)),s("paginationRender",a[0])):s("paginationUpdate",a[0]),t.params.watchOverflow&&t.enabled&&a[t.isLocked?"addClass":"removeClass"](i.lockClass)}function u(){const e=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,n=t.pagination.$el;let a="";if("bullets"===e.type){let s=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&s>i&&(s=i);for(let i=0;i<s;i+=1)e.renderBullet?a+=e.renderBullet.call(t,i,e.bulletClass):a+=`<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`;n.html(a),t.pagination.bullets=n.find(U(e.bulletClass))}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`,n.html(a)),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`,n.html(a)),"custom"!==e.type&&s("paginationRender",t.pagination.$el[0])}function p(){t.params.pagination=G(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i=c(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&(i=t.$el.find(e.el),i.length>1&&(i=i.filter((e=>c(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),i.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click",U(e.bulletClass),(function(e){e.preventDefault();let i=c(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),Object.assign(t.pagination,{$el:i,el:i[0]}),t.enabled||i.addClass(e.lockClass))}function f(){const e=t.params.pagination;if(l())return;const i=t.pagination.$el;i.removeClass(e.hiddenClass),i.removeClass(e.modifierClass+e.type),i.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&i.off("click",U(e.bulletClass))}n("init",(()=>{!1===t.params.pagination.enabled?g():(p(),u(),h())})),n("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&h()})),n("snapIndexChange",(()=>{t.params.loop||h()})),n("slidesLengthChange",(()=>{t.params.loop&&(u(),h())})),n("snapGridLengthChange",(()=>{t.params.loop||(u(),h())})),n("destroy",(()=>{f()})),n("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),n("lock unlock",(()=>{h()})),n("click",((e,i)=>{const n=i.target,{$el:a}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&a&&a.length>0&&!c(n).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const e=a.hasClass(t.params.pagination.hiddenClass);s(!0===e?"paginationShow":"paginationHide"),a.toggleClass(t.params.pagination.hiddenClass)}}));const g=()=>{t.$el.addClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass),f()};Object.assign(t.pagination,{enable:()=>{t.$el.removeClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass),p(),u(),h()},disable:g,render:u,update:h,init:p,destroy:f})},function(e){let{swiper:t,extendParams:i,on:s,emit:a}=e;const r=n();let o,l,d,u,p=!1,f=null,g=null;function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i,progress:n}=t,{$dragEl:s,$el:a}=e,r=t.params.scrollbar;let o=l,c=(d-l)*n;i?(c=-c,c>0?(o=l-c,c=0):-c+l>d&&(o=d+c)):c<0?(o=l+c,c=0):c+l>d&&(o=d-c),t.isHorizontal()?(s.transform(`translate3d(${c}
1px, 0, 0)`),s[0].style.width=`${o}px`):(s.transform(`translate3d(0px, ${c}px, 0)`),s[0].style.height=`${o}px`),r.hide&&(clearTimeout(f),a[0].style.opacity=1,f=setTimeout((()=>{a[0].style.opacity=0,a.transition(400)}),1e3))}function v(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:i,$el:n}=e;i[0].style.width="",i[0].style.height="",d=t.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),l="auto"===t.params.scrollbar.dragSize?d*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i[0].style.width=`${l}px`:i[0].style.height=`${l}px`,n[0].style.display=u>=1?"none":"",t.params.scrollbar.hide&&(n[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function b(e){return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY}function x(e){const{scrollbar:i,rtlTranslate:n}=t,{$el:s}=i;let a;a=(b(e)-s.offset()[t.isHorizontal()?"left":"top"]-(null!==o?o:l/2))/(d-l),a=Math.max(Math.min(a,1),0),n&&(a=1-a);const r=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*a;t.updateProgress(r),t.setTranslate(r),t.updateActiveIndex(),t.updateSlidesClasses()}function y(e){const i=t.params.scrollbar,{scrollbar:n,$wrapperEl:s}=t,{$el:r,$dragEl:l}=n;p=!0,o=e.target===l[0]||e.target===l?b(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),l.transition(100),x(e),clearTimeout(g),r.transition(0),i.hide&&r.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),a("scrollbarDragStart",e)}function w(e){const{scrollbar:i,$wrapperEl:n}=t,{$el:s,$dragEl:r}=i;p&&(e.preventDefault?e.preventDefault():e.returnValue=!1,x(e),n.transition(0),s.transition(0),r.transition(0),a("scrollbarDragMove",e))}function _(e){const i=t.params.scrollbar,{scrollbar:n,$wrapperEl:s}=t,{$el:r}=n;p&&(p=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),s.transition("")),i.hide&&(clearTimeout(g),g=h((()=>{r.css("opacity",0),r.transition(400)}),1e3)),a("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())}function S(e){const{scrollbar:i,touchEventsTouch:n,touchEventsDesktop:s,params:a,support:o}=t,l=i.$el;if(!l)return;const c=l[0],d=!(!o.passiveListener||!a.passiveListeners)&&{passive:!1,capture:!1},h=!(!o.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1};if(!c)return;const u="on"===e?"addEventListener":"removeEventListener";o.touch?(c[u](n.start,y,d),c[u](n.move,w,d),c[u](n.end,_,h)):(c[u](s.start,y,d),r[u](s.move,w,d),r[u](s.end,_,h))}function T(){const{scrollbar:e,$el:i}=t;t.params.scrollbar=G(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const n=t.params.scrollbar;if(!n.el)return;let s=c(n.el);t.params.uniqueNavElements&&"string"==typeof n.el&&s.length>1&&1===i.find(n.el).length&&(s=i.find(n.el)),s.addClass(t.isHorizontal()?n.horizontalClass:n.verticalClass);let a=s.find(`.${t.params.scrollbar.dragClass}`);0===a.length&&(a=c(`<div class="${t.params.scrollbar.dragClass}"></div>`),s.append(a)),Object.assign(e,{$el:s,el:s[0],$dragEl:a,dragEl:a[0]}),n.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&S("on"),s&&s[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function C(){const e=t.params.scrollbar,i=t.scrollbar.$el;i&&i.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.params.scrollbar.el&&t.scrollbar.el&&S("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},s("init",(()=>{!1===t.params.scrollbar.enabled?E():(T(),v(),m())})),s("update resize observerUpdate lock unlock",(()=>{v()})),s("setTranslate",(()=>{m()}
1)),s("setTransition",((e,i)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)}(i)})),s("enable disable",(()=>{const{$el:e}=t.scrollbar;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)})),s("destroy",(()=>{C()}));const E=()=>{t.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),C()};Object.assign(t.scrollbar,{enable:()=>{t.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),T(),v(),m()},disable:E,updateSize:v,setTranslate:m,init:T,destroy:C})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({parallax:{enabled:!1}});const s=(e,i)=>{const{rtl:n}=t,s=c(e),a=n?-1:1,r=s.attr("data-swiper-parallax")||"0";let o=s.attr("data-swiper-parallax-x"),l=s.attr("data-swiper-parallax-y");const d=s.attr("data-swiper-parallax-scale"),h=s.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):t.isHorizontal()?(o=r,l="0"):(l=r,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*i*a+"%":o*i*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*i+"%":l*i+"px",null!=h){const e=h-(h-1)*(1-Math.abs(i));s[0].style.opacity=e}if(null==d)s.transform(`translate3d(${o}, ${l}, 0px)`);else{const e=d-(d-1)*(1-Math.abs(i));s.transform(`translate3d(${o}, ${l}, 0px) scale(${e})`)}},a=()=>{const{$el:e,slides:i,progress:n,snapGrid:a}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{s(e,n)})),i.each(((e,i)=>{let r=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(r+=Math.ceil(i/2)-n*(a.length-1)),r=Math.min(Math.max(r,-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((e=>{s(e,r)}))}))};n("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),n("init",(()=>{t.params.parallax.enabled&&a()})),n("setTranslate",(()=>{t.params.parallax.enabled&&a()})),n("setTransition",((e,i)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{$el:i}=t;i.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{const i=c(t);let n=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),i.transition(n)}))}(i)}))},function(e){let{swiper:t,extendParams:i,on:n,emit:s}=e;const r=a();i({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let o,l,d,h=1,u=!1;const f={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},g={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:{}},m={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v=1;function b(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,s=e.targetTouches[1].pageY;return Math.sqrt((n-t)**2+(s-i)**2)}function x(e){const i=t.support,n=t.params.zoom;if(l=!1,d=!1,!i.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;l=!0,f.scaleStart=b(e)}f.$slideEl&&f.$slideEl.length||(f.$slideEl=c(e.target).closest(`.${t.params.slideClass}`),0===f.$slideEl.length&&(f.$slideEl=t.slides.eq(t.activeIndex)),f.$imageEl=f.$slideEl.find(`.${n.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),f.$imageWrapEl=f.$imageEl.parent(`.${n.containerClass}`),f.maxRatio=f.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==f.$imageWrapEl.length)?(f.$imageEl&&f.$imageEl.transition(0),u=!0):f.$imageEl=void 0}function y(e){const i=t.support,n=t.params.zoom,s=t.zoom;if(!i.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;d=!0,f.scaleMove=b(e)}f.$imageEl&&0!==f.$imageEl.length?(i.gestures?s.scale=e.scale*h:s.scale=f.scaleMove/f.scaleStart*h,s.scale>f.maxRatio&&(s.scale=f.maxRatio-1+(s.scale-f.maxRatio+1)**.5),s.scale<n.minRatio&&(s.scale=n.minRatio+1-(n.minRatio-s.scale+1)**.5),f.$imageEl.transform(`translate3d(0,
10,0) scale(${s.scale})`)):"gesturechange"===e.type&&x(e)}function w(e){const i=t.device,n=t.support,s=t.params.zoom,a=t.zoom;if(!n.gestures){if(!l||!d)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!i.android)return;l=!1,d=!1}f.$imageEl&&0!==f.$imageEl.length&&(a.scale=Math.max(Math.min(a.scale,f.maxRatio),s.minRatio),f.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${a.scale})`),h=a.scale,u=!1,1===a.scale&&(f.$slideEl=void 0))}function _(e){const i=t.zoom;if(!f.$imageEl||0===f.$imageEl.length)return;if(t.allowClick=!1,!g.isTouched||!f.$slideEl)return;g.isMoved||(g.width=f.$imageEl[0].offsetWidth,g.height=f.$imageEl[0].offsetHeight,g.startX=p(f.$imageWrapEl[0],"x")||0,g.startY=p(f.$imageWrapEl[0],"y")||0,f.slideWidth=f.$slideEl[0].offsetWidth,f.slideHeight=f.$slideEl[0].offsetHeight,f.$imageWrapEl.transition(0));const n=g.width*i.scale,s=g.height*i.scale;if(!(n<f.slideWidth&&s<f.slideHeight)){if(g.minX=Math.min(f.slideWidth/2-n/2,0),g.maxX=-g.minX,g.minY=Math.min(f.slideHeight/2-s/2,0),g.maxY=-g.minY,g.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,g.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!g.isMoved&&!u){if(t.isHorizontal()&&(Math.floor(g.minX)===Math.floor(g.startX)&&g.touchesCurrent.x<g.touchesStart.x||Math.floor(g.maxX)===Math.floor(g.startX)&&g.touchesCurrent.x>g.touchesStart.x))return void(g.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(g.minY)===Math.floor(g.startY)&&g.touchesCurrent.y<g.touchesStart.y||Math.floor(g.maxY)===Math.floor(g.startY)&&g.touchesCurrent.y>g.touchesStart.y))return void(g.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),g.isMoved=!0,g.currentX=g.touchesCurrent.x-g.touchesStart.x+g.startX,g.currentY=g.touchesCurrent.y-g.touchesStart.y+g.startY,g.currentX<g.minX&&(g.currentX=g.minX+1-(g.minX-g.currentX+1)**.8),g.currentX>g.maxX&&(g.currentX=g.maxX-1+(g.currentX-g.maxX+1)**.8),g.currentY<g.minY&&(g.currentY=g.minY+1-(g.minY-g.currentY+1)**.8),g.currentY>g.maxY&&(g.currentY=g.maxY-1+(g.currentY-g.maxY+1)**.8),m.prevPositionX||(m.prevPositionX=g.touchesCurrent.x),m.prevPositionY||(m.prevPositionY=g.touchesCurrent.y),m.prevTime||(m.prevTime=Date.now()),m.x=(g.touchesCurrent.x-m.prevPositionX)/(Date.now()-m.prevTime)/2,m.y=(g.touchesCurrent.y-m.prevPositionY)/(Date.now()-m.prevTime)/2,Math.abs(g.touchesCurrent.x-m.prevPositionX)<2&&(m.x=0),Math.abs(g.touchesCurrent.y-m.prevPositionY)<2&&(m.y=0),m.prevPositionX=g.touchesCurrent.x,m.prevPositionY=g.touchesCurrent.y,m.prevTime=Date.now(),f.$imageWrapEl.transform(`translate3d(${g.currentX}px, ${g.currentY}px,0)`)}}function S(){const e=t.zoom;f.$slideEl&&t.previousIndex!==t.activeIndex&&(f.$imageEl&&f.$imageEl.transform("translate3d(0,0,0) scale(1)"),f.$imageWrapEl&&f.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,h=1,f.$slideEl=void 0,f.$imageEl=void 0,f.$imageWrapEl=void 0)}function T(e){const i=t.zoom,n=t.params.zoom;if(f.$slideEl||(e&&e.target&&(f.$slideEl=c(e.target).closest(`.${t.params.slideClass}`)),f.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?f.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):f.$slideEl=t.slides.eq(t.activeIndex)),f.$imageEl=f.$slideEl.find(`.${n.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),f.$imageWrapEl=f.$imageEl.parent(`.${n.containerClass}
1`)),!f.$imageEl||0===f.$imageEl.length||!f.$imageWrapEl||0===f.$imageWrapEl.length)return;let s,a,o,l,d,u,p,m,v,b,x,y,w,_,S,T,C,E;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),f.$slideEl.addClass(`${n.zoomedSlideClass}`),void 0===g.touchesStart.x&&e?(s="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,a="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(s=g.touchesStart.x,a=g.touchesStart.y),i.scale=f.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,h=f.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,e?(C=f.$slideEl[0].offsetWidth,E=f.$slideEl[0].offsetHeight,o=f.$slideEl.offset().left+r.scrollX,l=f.$slideEl.offset().top+r.scrollY,d=o+C/2-s,u=l+E/2-a,v=f.$imageEl[0].offsetWidth,b=f.$imageEl[0].offsetHeight,x=v*i.scale,y=b*i.scale,w=Math.min(C/2-x/2,0),_=Math.min(E/2-y/2,0),S=-w,T=-_,p=d*i.scale,m=u*i.scale,p<w&&(p=w),p>S&&(p=S),m<_&&(m=_),m>T&&(m=T)):(p=0,m=0),f.$imageWrapEl.transition(300).transform(`translate3d(${p}px, ${m}px,0)`),f.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${i.scale})`)}function C(){const e=t.zoom,i=t.params.zoom;f.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?f.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):f.$slideEl=t.slides.eq(t.activeIndex),f.$imageEl=f.$slideEl.find(`.${i.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),f.$imageWrapEl=f.$imageEl.parent(`.${i.containerClass}`)),f.$imageEl&&0!==f.$imageEl.length&&f.$imageWrapEl&&0!==f.$imageWrapEl.length&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,h=1,f.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),f.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),f.$slideEl.removeClass(`${i.zoomedSlideClass}`),f.$slideEl=void 0)}function E(e){const i=t.zoom;i.scale&&1!==i.scale?C():T(e)}function M(){const e=t.support;return{passiveListener:!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function k(){return`.${t.params.slideClass}`}function P(e){const{passiveListener:i}=M(),n=k();t.$wrapperEl[e]("gesturestart",n,x,i),t.$wrapperEl[e]("gesturechange",n,y,i),t.$wrapperEl[e]("gestureend",n,w,i)}function $(){o||(o=!0,P("on"))}function D(){o&&(o=!1,P("off"))}function A(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const i=t.support,{passiveListener:n,activeListenerWithCapture:s}=M(),a=k();i.gestures?(t.$wrapperEl.on(t.touchEvents.start,$,n),t.$wrapperEl.on(t.touchEvents.end,D,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,a,x,n),t.$wrapperEl.on(t.touchEvents.move,a,y,s),t.$wrapperEl.on(t.touchEvents.end,a,w,n),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,a,w,n)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,_,s)}function L(){const e=t.zoom;if(!e.enabled)return;const i=t.support;e.enabled=!1;const{passiveListener:n,activeListenerWithCapture:s}=M(),a=k();i.gestures?(t.$wrapperEl.off(t.touchEvents.start,$,n),t.$wrapperEl.off(t.touchEvents.end,D,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,a,x,n),t.$wrapperEl.off(t.touchEvents.move,a,y,s),t.$wrapperEl.off(t.touchEvents.end,a,w,n),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,a,w,n)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,_,s)}Object.defineProperty(t.zoom,"scale",{get:()=>v,set(e){if(v!==e){const t=f.$imageEl?f.$imageEl[0]:void 0,i=f.$slideEl?f.$slideEl[0]:void 0;s("zoomChange",e,t,i)}v=e}}),n("init",(()=>{t.params.zoom.enabled&&A()})),n("destroy",(()=>{L()})),n("touchStart",((e,i)=>{t.zoom.enabled&&function(e){const i=t.device;f.$imageEl&&0!==f.$imageEl.length&&(g.isTouched||(i.android&&e.cancelable&&e.preventDefault(),g.isTouched=!0,g.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,g.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))}(i)})),n("touchEnd",((e,i)=>{t.zoom.enabled&&function(){const e=t.zoom;
1if(!f.$imageEl||0===f.$imageEl.length)return;if(!g.isTouched||!g.isMoved)return g.isTouched=!1,void(g.isMoved=!1);g.isTouched=!1,g.isMoved=!1;let i=300,n=300;const s=m.x*i,a=g.currentX+s,r=m.y*n,o=g.currentY+r;0!==m.x&&(i=Math.abs((a-g.currentX)/m.x)),0!==m.y&&(n=Math.abs((o-g.currentY)/m.y));const l=Math.max(i,n);g.currentX=a,g.currentY=o;const c=g.width*e.scale,d=g.height*e.scale;g.minX=Math.min(f.slideWidth/2-c/2,0),g.maxX=-g.minX,g.minY=Math.min(f.slideHeight/2-d/2,0),g.maxY=-g.minY,g.currentX=Math.max(Math.min(g.currentX,g.maxX),g.minX),g.currentY=Math.max(Math.min(g.currentY,g.maxY),g.minY),f.$imageWrapEl.transition(l).transform(`translate3d(${g.currentX}px, ${g.currentY}px,0)`)}()})),n("doubleTap",((e,i)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&E(i)})),n("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&S()})),n("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&S()})),Object.assign(t.zoom,{enable:A,disable:L,in:T,out:C,toggle:E})},function(e){let{swiper:t,extendParams:i,on:n,emit:s}=e;i({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"}}),t.lazy={};let r=!1,o=!1;function l(e,i){void 0===i&&(i=!0);const n=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const a=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),r=a.find(`.${n.elementClass}:not(.${n.loadedClass}):not(.${n.loadingClass})`);!a.hasClass(n.elementClass)||a.hasClass(n.loadedClass)||a.hasClass(n.loadingClass)||r.push(a[0]),0!==r.length&&r.each((e=>{const r=c(e);r.addClass(n.loadingClass);const o=r.attr("data-background"),d=r.attr("data-src"),h=r.attr("data-srcset"),u=r.attr("data-sizes"),p=r.parent("picture");
1t.loadImage(r[0],d||o,h,u,!1,(()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(o?(r.css("background-image",`url("${o}")`),r.removeAttr("data-background")):(h&&(r.attr("srcset",h),r.removeAttr("data-srcset")),u&&(r.attr("sizes",u),r.removeAttr("data-sizes")),p.length&&p.children("source").each((e=>{const t=c(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),d&&(r.attr("src",d),r.removeAttr("data-src"))),r.addClass(n.loadedClass).removeClass(n.loadingClass),a.find(`.${n.preloaderClass}`).remove(),t.params.loop&&i){const e=a.attr("data-swiper-slide-index");a.hasClass(t.params.slideDuplicateClass)?l(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1):l(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}s("lazyImageReady",a[0],r[0]),t.params.autoHeight&&t.updateAutoHeight()}})),s("lazyImageLoad",a[0],r[0])}))}function d(){const{$wrapperEl:e,params:i,slides:n,activeIndex:s}=t,a=t.virtual&&i.virtual.enabled,r=i.lazy;let d=i.slidesPerView;function h(t){if(a){if(e.children(`.${i.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(n[t])return!0;return!1}function u(e){return a?c(e).attr("data-swiper-slide-index"):c(e).index()}if("auto"===d&&(d=0),o||(o=!0),t.params.watchSlidesProgress)e.children(`.${i.slideVisibleClass}`).each((e=>{l(a?c(e).attr("data-swiper-slide-index"):c(e).index())}));else if(d>1)for(let e=s;e<s+d;e+=1)h(e)&&l(e);else l(s);if(r.loadPrevNext)if(d>1||r.loadPrevNextAmount&&r.loadPrevNextAmount>1){const e=r.loadPrevNextAmount,t=Math.ceil(d),i=Math.min(s+t+Math.max(e,t),n.length),a=Math.max(s-Math.max(t,e),
10);for(let e=s+t;e<i;e+=1)h(e)&&l(e);for(let e=a;e<s;e+=1)h(e)&&l(e)}else{const t=e.children(`.${i.slideNextClass}`);t.length>0&&l(u(t));const n=e.children(`.${i.slidePrevClass}`);n.length>0&&l(u(n))}}function h(){const e=a();if(!t||t.destroyed)return;const i=t.params.lazy.scrollingElement?c(t.params.lazy.scrollingElement):c(e),n=i[0]===e,s=n?e.innerWidth:i[0].offsetWidth,o=n?e.innerHeight:i[0].offsetHeight,l=t.$el.offset(),{rtlTranslate:u}=t;let p=!1;u&&(l.left-=t.$el[0].scrollLeft);const f=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]];for(let e=0;e<f.length;e+=1){const t=f[e];if(t[0]>=0&&t[0]<=s&&t[1]>=0&&t[1]<=o){if(0===t[0]&&0===t[1])continue;p=!0}}const g=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};p?(d(),i.off("scroll",h,g)):r||(r=!0,i.on("scroll",h,g))}n("beforeInit",(()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)})),n("init",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?h():d())})),n("scroll",(()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&d()})),n("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?h():d())})),n("transitionStart",(()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!o)&&(t.params.lazy.checkInView?h():d())})),n("transitionEnd",(()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?h():d())})),n("slideChange",(()=>{const{lazy:e,cssMode:i,watchSlidesProgress:n,touchReleaseOnEdges:s,resistanceRatio:a}=t.params;e.enabled&&(i||n&&(s||0===a))&&d()})),n("destroy",(()=>{t.$el&&t.$el.find(`.${t.params.lazy.loadingClass}`).removeClass(t.params.lazy.loadingClass)})),Object.assign(t.lazy,{load:d,loadInSlide:l})},function(e){let{swiper:t,extendParams:i,on:n}=e;function s(e,t){const i=function(){let e,t,i;return(n,s)=>{for(t=-1,e=n.length;e-t>1;)i=e+t>>1,n[i]<=s?t=i:e=i;return e}}();let n,s;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(s=i(this.x,e),n=s-1,(e-this.x[n])*(this.y[s]-this.y[n])/(this.x[s]-this.x[n])+this.y[n]):0},this}function a(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},n("beforeInit",(()=>{t.controller.control=t.params.controller.control})),n("update",(()=>{a()})),n("resize",(()=>{a()})),n("observerUpdate",(()=>{a()})),n("setTranslate",((e,i,n)=>{t.controller.control&&t.controller.setTranslate(i,n)})),n("setTransition",((e,i,n)=>{t.controller.control&&t.controller.setTransition(i,n)})),Object.assign(t.controller,{setTranslate:function(e,i){const n=t.controller.control;let a,r;const o=t.constructor;function l(e){const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline||(t.controller.spline=t.params.loop?new s(t.slidesGrid,e.slidesGrid):new s(t.snapGrid,e.snapGrid))}(e),r=-t.controller.spline.interpolate(-i)),r&&"container"!==t.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),r=(i-t.minTranslate())*a+e.minTranslate()),t.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(n))for(let e=0;e<n.length;e+=1)n[e]!==i&&n[e]instanceof o&&l(n[e]);else n instanceof o&&i!==n&&l(n)},setTransition:function(e,i){const n=t.constructor,s=t.controller.control;let a;function r(i){i.setTransition(e,t),0!==e&&(i.transitionStart(),i.params.autoHeight&&h((()=>{i.updateAutoHeight()})),i.$wrapperEl.transitionEnd((()=>{s&&(i.params.loop&&"slide"===t.params.controller.by&&i.loopFix(),i.transitionEnd())})))}if(Array.isArray(s))for(a=0;a<s.length;a+=1)s[a]!==i&&s[a]instanceof n&&r(s[a]);else s instanceof n&&i!==s&&r(s)}})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({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}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let s=null;function a(e){const t=s;0!==t.length&&(t.html(""),t.html(e))}function r(e){e.attr("tabIndex","0")}function o(e){e.attr("tabIndex","-1")}function l(e,t){e.attr("role",t)}function d(e,t){e.attr("aria-roledescription",t)}function h(e,t){e.attr("aria-label",t)}function u(e){e.attr("aria-disabled",!0)}function p(e){e.attr("aria-disabled",!1)}function f(e){if(13!==e.keyCode&&32!==e.keyCode)return;const i=t.params.a11y,n=c(e.target);t.navigation&&t.navigation.$nextEl&&n.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?a(i.lastSlideMessage):a(i.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&n.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?a(i.firstSlideMessage):a(i.prevSlideMessage)),t.pagination&&n.is(U(t.params.pagination.bulletClass))&&n[0].click()}function g(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function m(){return g()&&t.params.pagination.clickable}const v=(e,t,i)=>
1{r(e),"BUTTON"!==e[0].tagName&&(l(e,"button"),e.on("keydown",f)),h(e,i),function(e,t){e.attr("aria-controls",t)}(e,t)},b=()=>{t.a11y.clicked=!0},x=()=>{t.a11y.clicked=!1},y=e=>{if(t.a11y.clicked)return;const i=e.target.closest(`.${t.params.slideClass}`);if(!i||!t.slides.includes(i))return;const n=t.slides.indexOf(i)===t.activeIndex,s=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);n||s||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(i),0))},w=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&d(c(t.slides),e.itemRoleDescriptionMessage),e.slideRole&&l(c(t.slides),e.slideRole);const i=t.params.loop?t.slides.filter((e=>!e.classList.contains(t.params.slideDuplicateClass))).length:t.slides.length;e.slideLabelMessage&&t.slides.each(((n,s)=>{const a=c(n),r=t.params.loop?parseInt(a.attr("data-swiper-slide-index"),10):s;h(a,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,i))}))};n("beforeInit",(()=>{s=c(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)})),n("afterInit",(()=>{t.params.a11y.enabled&&(()=>{const e=t.params.a11y;t.$el.append(s);const i=t.$el;e.containerRoleDescriptionMessage&&d(i,e.containerRoleDescriptionMessage),e.containerMessage&&h(i,e.containerMessage);const n=t.$wrapperEl,a=e.id||n.attr("id")||`swiper-wrapper-${r=16,void 0===r&&(r=16),"x".repeat(r).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var r;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;let c,u;l=a,n.attr("id",l),function(e,t){e.attr("aria-live",t)}(n,o),w(),t.navigation&&t.navigation.$nextEl&&(c=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(u=t.navigation.$prevEl),c&&c.length&&v(c,a,e.nextSlideMessage),u&&u.length&&v(u,a,e.prevSlideMessage),m()&&t.pagination.$el.on("keydown",U(t.params.pagination.bulletClass),f),t.$el.on("focus",y,!0),t.$el.on("pointerdown",b,!0),t.$el.on("pointerup",x,!0)})()})),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&w()})),n("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:e,$prevEl:i}=t.navigation;i&&i.length>0&&(t.isBeginning?(u(i),o(i)):(p(i),r(i))),e&&e.length>0&&(t.isEnd?(u(e),o(e)):(p(e),r(e)))}()})),n("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;g()&&t.pagination.bullets.each((i=>{const n=c(i);t.params.pagination.clickable&&(r(n),t.params.pagination.renderBullet||(l(n,"button"),h(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,n.index()+1)))),n.is(`.${t.params.pagination.bulletActiveClass}`)?n.attr("aria-current","true"):n.removeAttr("aria-current")}))}()})),n("destroy",(()=>{t.params.a11y.enabled&&function(){let e,i;s&&s.length>0&&s.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(i=t.navigation.$prevEl),e&&e.off("keydown",f),i&&i.off("keydown",f),m()&&t.pagination.$el.off("keydown",U(t.params.pagination.bulletClass),f),t.$el.off("focus",y,!0),t.$el.off("pointerdown",b,!0),t.$el.off("pointerup",x,!0)}()}))},function(e){let{swiper:t,extendParams:i,on:n}=e;i({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,r={};const o=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=a();let i;i=e?new URL(e):t.location;const n=i.pathname.slice(1).split("/").filter((e=>""!==e)),s=n.length;return{key:n[s-2],value:n[s-1]}},c=(e,i)=>{const n=a();if(!s||!t.params.history.enabled)return;let r;r=t.params.url?new URL(t.params.url):n.location;const l=t.slides.eq(i);let c=o(l.attr("data-history"));if(t.params.history.root.length>0){let i=t.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),c=`${i}/${e}/${c}`}else r.pathname.includes(e)||(c=`${e}/${c}`);t.params.history.keepQuery&&(c+=r.search);const d=n.history.state;d&&d.value===c||(t.params.history.replaceState?n.history.replaceState({value:c},null,c):n.history.pushState({value:c},null,c))},d=(e,i,n)=>{if(i)for(let s=0,a=t.slides.length;s<a;s+=1){const a=t.slides.eq(s);if(o(a.attr("data-history"))===i&&!a.hasClass(t.params.slideDuplicateClass)){const i=a.index();t.slideTo(i,e,n)}}else t.slideTo(0,e,n)},h=()=>{r=l(t.params.url),d(t.params.speed,r.value,!1)};n("init",(()=>{t.params.history.enabled&&(()=>{const e=a();
1if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);s=!0,r=l(t.params.url),(r.key||r.value)&&(d(0,r.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",h))}})()})),n("destroy",(()=>{t.params.history.enabled&&(()=>{const e=a();t.params.history.replaceState||e.removeEventListener("popstate",h)})()})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{s&&c(t.params.history.key,t.activeIndex)})),n("slideChange",(()=>{s&&t.params.cssMode&&c(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:i,emit:s,on:r}=e,o=!1;const l=n(),d=a();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const h=()=>{s("hashChange");const e=l.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const i=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===i)return;t.slideTo(i)}},u=()=>{if(o&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState)d.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),s("hashSet");else{const e=t.slides.eq(t.activeIndex),i=e.attr("data-hash")||e.attr("data-history");l.location.hash=i||"",s("hashSet")}};r("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;o=!0;const e=l.location.hash.replace("#","");if(e){const i=0;for(let n=0,s=t.slides.length;n<s;n+=1){const s=t.slides.eq(n);if((s.attr("data-hash")||s.attr("data-history"))===e&&!s.hasClass(t.params.slideDuplicateClass)){const e=s.index();t.slideTo(e,i,t.params.runCallbacksOnInit,!0)}}}t.params.hashNavigation.watchState&&c(d).on("hashchange",h)})()})),r("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&c(d).off("hashchange",h)})),r("transitionEnd _freeModeNoMomentumRelease",(()=>{o&&u()})),r("slideChange",(()=>{o&&t.params.cssMode&&u()}))},function(e){let t,{swiper:i,extendParams:s,on:a,emit:r}=e;function o(){if(!i.size)return i.autoplay.running=!1,void(i.autoplay.paused=!1);const e=i.slides.eq(i.activeIndex);let n=i.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||i.params.autoplay.delay),clearTimeout(t),t=h((()=>{let e;i.params.autoplay.reverseDirection?i.params.loop?(i.loopFix(),e=i.slidePrev(i.params.speed,!0,!0),r("autoplay")):i.isBeginning?i.params.autoplay.stopOnLastSlide?c():(e=i.slideTo(i.slides.length-1,i.params.speed,!0,!0),r("autoplay")):(e=i.slidePrev(i.params.speed,!0,!0),r("autoplay")):i.params.loop?(i.loopFix(),e=i.slideNext(i.params.speed,!0,!0),r("autoplay")):i.isEnd?i.params.autoplay.stopOnLastSlide?c():(e=i.slideTo(0,i.params.speed,!0,!0),r("autoplay")):(e=i.slideNext(i.params.speed,!0,!0),r("autoplay")),(i.params.cssMode&&i.autoplay.running||!1===e)&&o()}),n)}function l(){return void 0===t&&!i.autoplay.running&&(i.autoplay.running=!0,r("autoplayStart"),o(),!0)}function c(){return!!i.autoplay.running&&void 0!==t&&(t&&(clearTimeout(t),t=void 0),i.autoplay.running=!1,r("autoplayStop"),!0)}function d(e){i.autoplay.running&&(i.autoplay.paused||(t&&clearTimeout(t),i.autoplay.paused=!0,0!==e&&i.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((e=>{i.$wrapperEl[0].addEventListener(e,p)})):(i.autoplay.paused=!1,o())))}function u(){const e=n();"hidden"===e.visibilityState&&i.autoplay.running&&d(),"visible"===e.visibilityState&&i.autoplay.paused&&(o(),i.autoplay.paused=!1)}function p(e){i&&!i.destroyed&&i.$wrapperEl&&e.target===i.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((e=>{i.$wrapperEl[0].removeEventListener(e,p)})),i.autoplay.paused=!1,i.autoplay.running?o():c())}function f(){i.params.autoplay.disableOnInteraction?c():(r("autoplayPause"),d()),["transitionend","webkitTransitionEnd"].forEach((e=>{i.$wrapperEl[0].removeEventListener(e,p)}))}function g(){i.params.autoplay.disableOnInteraction||(i.autoplay.paused=!1,r("autoplayResume"),o())}i.autoplay={running:!1,paused:!1},s({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),a("init",(()=>{i.params.autoplay.enabled&&(l(),n().addEventListener("visibilitychange",u),i.params.autoplay.pauseOnMouseEnter&&(i.$el.on("mouseenter",f),i.$el.on("mouseleave",g)))}
1)),a("beforeTransitionStart",((e,t,n)=>{i.autoplay.running&&(n||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(t):c())})),a("sliderFirstMove",(()=>{i.autoplay.running&&(i.params.autoplay.disableOnInteraction?c():d())})),a("touchEnd",(()=>{i.params.cssMode&&i.autoplay.paused&&!i.params.autoplay.disableOnInteraction&&o()})),a("destroy",(()=>{i.$el.off("mouseenter",f),i.$el.off("mouseleave",g),i.autoplay.running&&c(),n().removeEventListener("visibilitychange",u)})),Object.assign(i.autoplay,{pause:d,run:o,start:l,stop:c})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,a=!1;function r(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const i=e.clickedIndex,n=e.clickedSlide;if(n&&c(n).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let s;if(s=e.params.loop?parseInt(c(e.clickedSlide).attr("data-swiper-slide-index"),10):i,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const i=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${s}"]`).eq(0).index(),n=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${s}"]`).eq(0).index();s=void 0===i?n:void 0===n?i:n-e<e-i?n:i}t.slideTo(s)}function o(){const{thumbs:e}=t.params;if(s)return!1;s=!0;const i=t.constructor;if(e.swiper instanceof i)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(f(e.swiper)){const n=Object.assign({},e.swiper);Object.assign(n,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new i(n),a=!0}return t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",r),!0}function l(e){const i=t.thumbs.swiper;if(!i||i.destroyed)return;const n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let s=1;const a=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(s=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(s=1),s=Math.floor(s),i.slides.removeClass(a),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e<s;e+=1)i.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+e}"]`).addClass(a);else for(let e=0;e<s;e+=1)i.slides.eq(t.realIndex+e).addClass(a);const r=t.params.thumbs.autoScrollOffset,o=r&&!i.params.loop;if(t.realIndex!==i.realIndex||o){let s,a,l=i.activeIndex;if(i.params.loop){i.slides.eq(l).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,l=i.activeIndex);const e=i.slides.eq(l).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),n=i.slides.eq(l).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();s=void 0===e?n:void 0===n?e:n-l==l-e?i.params.slidesPerGroup>1?n:l:n-l<l-e?n:e,a=t.activeIndex>t.previousIndex?"next":"prev"}else s=t.realIndex,a=s>t.previousIndex?"next":"prev";o&&(s+="next"===a?r:-1*r),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(s)<0&&(i.params.centeredSlides?s=s>l?s-Math.floor(n/2)+1:s+Math.floor(n/2)-1:s>l&&i.params.slidesPerGroup,i.slideTo(s,e?0:void 0))}}t.thumbs={swiper:null},n("beforeInit",(()=>{const{thumbs:e}=t.params;e&&e.swiper&&(o(),l(!0))})),n("slideChange update resize observerUpdate",(()=>{l()})),n("setTransition",((e,i)=>{const n=t.thumbs.swiper;n&&!n.destroyed&&n.setTransition(i)})),n("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&a&&e.destroy()})),Object.assign(t.thumbs,{init:o,update:l})},function(e){let{swiper:t,extendParams:i,emit:n,once:s}=e;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){const{touchEventsData:e,touches:i}=t;0===e.velocities.length&&e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:u()})},onTouchEnd:function(e){let{currentPos:i}=e;const{params:a,$wrapperEl:r,rtlTranslate:o,snapGrid:l,touchEventsData:c}=t,d=u()-c.touchStartTime;if(i<-t.minTranslate())t.slideTo(t.activeIndex);else if(i>-t.maxTranslate())t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1);else{if(a.freeMode.momentum){if(c.velocities.length>1){const e=c.velocities.pop(),i=c.velocities.pop(),n=e.position-i.position,s=e.time-i.time;t.velocity=n/s,t.velocity/=2,Math.abs(t.velocity)<a.freeMode.minimumVelocity&&(t.velocity=0),(s>150||u()-e.time>300)&&(t.velocity=0)}else t.velocity=0;
vendor: 5,341 bytes, line 1
1t.velocity*=a.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*a.freeMode.momentumRatio;const i=t.velocity*e;let d=t.translate+i;o&&(d=-d);let h,p=!1;const f=20*Math.abs(t.velocity)*a.freeMode.momentumBounceRatio;let g;if(d<t.maxTranslate())a.freeMode.momentumBounce?(d+t.maxTranslate()<-f&&(d=t.maxTranslate()-f),h=t.maxTranslate(),p=!0,c.allowMomentumBounce=!0):d=t.maxTranslate(),a.loop&&a.centeredSlides&&(g=!0);else if(d>t.minTranslate())a.freeMode.momentumBounce?(d-t.minTranslate()>f&&(d=t.minTranslate()+f),h=t.minTranslate(),p=!0,c.allowMomentumBounce=!0):d=t.minTranslate(),a.loop&&a.centeredSlides&&(g=!0);else if(a.freeMode.sticky){let e;for(let t=0;t<l.length;t+=1)if(l[t]>-d){e=t;break}d=Math.abs(l[e]-d)<Math.abs(l[e-1]-d)||"next"===t.swipeDirection?l[e]:l[e-1],d=-d}if(g&&s("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=o?Math.abs((-d-t.translate)/t.velocity):Math.abs((d-t.translate)/t.velocity),a.freeMode.sticky){const i=Math.abs((o?-d:d)-t.translate),n=t.slidesSizesGrid[t.activeIndex];e=i<n?a.speed:i<2*n?1.5*a.speed:2.5*a.speed}}else if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode.momentumBounce&&p?(t.updateProgress(h),t.setTransition(e),t.setTranslate(d),t.transitionStart(!0,t.swipeDirection),t.animating=!0,r.transitionEnd((()=>{t&&!t.destroyed&&c.allowMomentumBounce&&(n("momentumBounce"),t.setTransition(a.speed),setTimeout((()=>{t.setTranslate(h),r.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(n("_freeModeNoMomentumRelease"),t.updateProgress(d),t.setTransition(e),t.setTranslate(d),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,r.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(d),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode&&n("_freeModeNoMomentumRelease")}(!a.freeMode.momentum||d>=a.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,i,n,{swiper:s,extendParams:a}=e;a({grid:{rows:1,fill:"column"}}),s.grid={initSlides:e=>{const{slidesPerView:a}=s.params,{rows:r,fill:o}=s.params.grid;i=t/r,n=Math.floor(e/r),t=Math.floor(e/r)===e/r?e:Math.ceil(e/r)*r,"auto"!==a&&"row"===o&&(t=Math.max(t,a*r))},updateSlide:(e,a,r,o)=>{const{slidesPerGroup:l,spaceBetween:c}=s.params,{rows:d,fill:h}=s.params.grid;let u,p,f;if("row"===h&&l>1){const i=Math.floor(e/(l*d)),n=e-d*l*i,s=0===i?l:Math.min(Math.ceil((r-i*d*l)/d),l);f=Math.floor(n/s),p=n-f*s+i*l,u=p+f*t/d,a.css({"-webkit-order":u,order:u})}else"column"===h?(p=Math.floor(e/d),f=e-p*d,(p>n||p===n&&f===d-1)&&(f+=1,f>=d&&(f=0,p+=1))):(f=Math.floor(e/i),p=e-f*i);a.css(o("margin-top"),0!==f?c&&`${c}px`:"")},updateWrapperSize:(e,i,n)=>{const{spaceBetween:a,centeredSlides:r,roundLengths:o}=s.params,{rows:l}=s.params.grid;if(s.virtualSize=(e+a)*t,s.virtualSize=Math.ceil(s.virtualSize/l)-a,s.$wrapperEl.css({[n("width")]:`${s.virtualSize+a}px`}),r){i.splice(0,i.length);const e=[];for(let t=0;t<i.length;t+=1){let n=i[t];o&&(n=Math.floor(n)),i[t]<s.virtualSize+i[0]&&e.push(n)}i.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:K.bind(t),prependSlide:Q.bind(t),addSlide:Z.bind(t),removeSlide:J.bind(t),removeAllSlides:ee.bind(t)})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({fadeEffect:{crossFade:!1,transformEl:null}}),te({effect:"fade",swiper:t,on:n,setTranslate:()=>{const{slides:e}=t,i=t.params.fadeEffect;for(let n=0;n<e.length;n+=1){const e=t.slides.eq(n);let s=-e[0].swiperSlideOffset;t.params.virtualTranslate||(s-=t.translate);let a=0;t.isHorizontal()||(a=s,s=0);const r=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);ie(i,e).css({opacity:r}).transform(`translate3d(${s}px, ${a}px, 0px)`)}},setTransition:e=>{const{transformEl:i}=t.params.fadeEffect;(i?t.slides.find(i):t.slides).transition(e),ne({swiper:t,duration:e,transformEl:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(e,t,i)=>{let n=i?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),s=i?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===n.length&&(n=c(`<div class="swiper-slide-shadow-${i?"left":"top"}"></div>`),e.append(n)),0===s.length&&(s=c(`<div class="swiper-slide-shadow-${i?"right":"bottom"}"></div>`),e.append(s)),n.length&&(n[0].style.opacity=Math.max(-t,0)),s.length&&(s[0].style.opacity=Math.max(t,0))};te({effect:"cube",swiper:t,on:n,setTranslate:()=>{const{$el:e,$wrapperEl:i,slides:n,width:a,height:r,rtlTranslate:o,size:l,browser:d}=t,h=t.params.cubeEffect,u=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled;let f,g=0;h.shadow&&(u?(f=i.find(".swiper-cube-shadow"),0===f.length&&(f=c('<div class="swiper-cube-shadow"></div>'),i.append(f)),f.css({height:`${a}px`})):(f=e.find(".swiper-cube-shadow"),0===f.length&&(f=c('<div class="swiper-cube-shadow"></div>'),e.append(f))));for(let e=0;e<n.length;e+=1){const t=n.eq(e);let i=e;p&&(i=parseInt(t.attr("data-swiper-slide-index"),10));let a=90*i,r=Math.floor(a/360);o&&(a=-a,r=Math.floor(-a/360));
1const c=Math.max(Math.min(t[0].progress,1),-1);let d=0,f=0,m=0;i%4==0?(d=4*-r*l,m=0):(i-1)%4==0?(d=0,m=4*-r*l):(i-2)%4==0?(d=l+4*r*l,m=l):(i-3)%4==0&&(d=-l,m=3*l+4*l*r),o&&(d=-d),u||(f=d,d=0);const v=`rotateX(${u?0:-a}deg) rotateY(${u?a:0}deg) translate3d(${d}px, ${f}px, ${m}px)`;c<=1&&c>-1&&(g=90*i+90*c,o&&(g=90*-i-90*c)),t.transform(v),h.slideShadows&&s(t,c,u)}if(i.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),h.shadow)if(u)f.transform(`translate3d(0px, ${a/2+h.shadowOffset}px, ${-a/2}px) rotateX(90deg) rotateZ(0deg) scale(${h.shadowScale})`);else{const e=Math.abs(g)-90*Math.floor(Math.abs(g)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=h.shadowScale,n=h.shadowScale/t,s=h.shadowOffset;f.transform(`scale3d(${i}, 1, ${n}) translate3d(0px, ${r/2+s}px, ${-r/2/n}px) rotateX(-90deg)`)}const m=d.isSafari||d.isWebView?-l/2:0;i.transform(`translate3d(0px,0,${m}px) rotateX(${t.isHorizontal()?0:g}deg) rotateY(${t.isHorizontal()?-g:0}deg)`),i[0].style.setProperty("--swiper-cube-translate-z",`${m}px`)},setTransition:e=>{const{$el:i,slides:n}=t;n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&i.find(".swiper-cube-shadow").transition(e)},recreateShadows:()=>{const e=t.isHorizontal();t.slides.each((t=>{const i=Math.max(Math.min(t.progress,1),-1);s(c(t),i,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const s=(e,i,n)=>{let s=t.isHorizontal()?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),a=t.isHorizontal()?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===s.length&&(s=se(n,e,t.isHorizontal()?"left":"top")),0===a.length&&(a=se(n,e,t.isHorizontal()?"right":"bottom")),s.length&&(s[0].style.opacity=Math.max(-i,0)),a.length&&(a[0].style.opacity=Math.max(i,0))};te({effect:"flip",swiper:t,on:n,setTranslate:()=>{const{slides:e,rtlTranslate:i}=t,n=t.params.flipEffect;for(let a=0;a<e.length;a+=1){const r=e.eq(a);let o=r[0].progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(r[0].progress,1),-1));const l=r[0].swiperSlideOffset;let c=-180*o,d=0,h=t.params.cssMode?-l-t.translate:-l,u=0;t.isHorizontal()?i&&(c=-c):(u=h,h=0,d=-c,c=0),r[0].style.zIndex=-Math.abs(Math.round(o))+e.length,n.slideShadows&&s(r,o,n);const p=`translate3d(${h}px, ${u}px, 0px) rotateX(${d}deg) rotateY(${c}deg)`;ie(n,r).transform(p)}},setTransition:e=>{const{transformEl:i}=t.params.flipEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),ne({swiper:t,duration:e,transformEl:i})},recreateShadows:()=>{const e=t.params.flipEffect;t.slides.each((i=>{const n=c(i);let a=n[0].progress;t.params.flipEffect.limitRotation&&(a=Math.max(Math.min(i.progress,1),-1)),s(n,a,e)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),te({effect:"coverflow",swiper:t,on:n,setTranslate:()=>{const{width:e,height:i,slides:n,slidesSizesGrid:s}=t,a=t.params.coverflowEffect,r=t.isHorizontal(),o=t.translate,l=r?e/2-o:i/2-o,c=r?a.rotate:-a.rotate,d=a.depth;for(let e=0,t=n.length;e<t;e+=1){const t=n.eq(e),i=s[e],o=(l-t[0].swiperSlideOffset-i/2)/i,h="function"==typeof a.modifier?a.modifier(o):o*a.modifier;let u=r?c*h:0,p=r?0:c*h,f=-d*Math.abs(h),g=a.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(a.stretch)/100*i);let m=r?0:g*h,v=r?g*h:0,b=1-(1-a.scale)*Math.abs(h);Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(f)<.001&&(f=0),Math.abs(u)<.001&&(u=0),Math.abs(p)<.001&&(p=0),Math.abs(b)<.001&&(b=0);const x=`translate3d(${v}px,${m}px,${f}px) rotateX(${p}deg) rotateY(${u}deg) scale(${b})`;if(ie(a,t).transform(x),t[0].style.zIndex=1-Math.abs(Math.round(h)),a.slideShadows){let e=r?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),i=r?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");
10===e.length&&(e=se(a,t,r?"left":"top")),0===i.length&&(i=se(a,t,r?"right":"bottom")),e.length&&(e[0].style.opacity=h>0?h:0),i.length&&(i[0].style.opacity=-h>0?-h:0)}}},setTransition:e=>{const{transformEl:i}=t.params.coverflowEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const s=e=>"string"==typeof e?e:`${e}px`;te({effect:"creative",swiper:t,on:n,setTranslate:()=>{const{slides:e,$wrapperEl:i,slidesSizesGrid:n}=t,a=t.params.creativeEffect,{progressMultiplier:r}=a,o=t.params.centeredSlides;if(o){const e=n[0]/2-t.params.slidesOffsetBefore||0;i.transform(`translateX(calc(50% - ${e}px))`)}for(let i=0;i<e.length;i+=1){const n=e.eq(i),l=n[0].progress,c=Math.min(Math.max(n[0].progress,-a.limitProgress),a.limitProgress);let d=c;o||(d=Math.min(Math.max(n[0].originalProgress,-a.limitProgress),a.limitProgress));const h=n[0].swiperSlideOffset,u=[t.params.cssMode?-h-t.translate:-h,0,0],p=[0,0,0];let f=!1;t.isHorizontal()||(u[1]=u[0],u[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};c<0?(g=a.next,f=!0):c>0&&(g=a.prev,f=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${s(g.translate[t])} * ${Math.abs(c*r)}))`})),p.forEach(((e,t)=>{p[t]=g.rotate[t]*Math.abs(c*r)})),n[0].style.zIndex=-Math.abs(Math.round(l))+e.length;const m=u.join(", "),v=`rotateX(${p[0]}deg) rotateY(${p[1]}deg) rotateZ(${p[2]}deg)`,b=d<0?`scale(${1+(1-g.scale)*d*r})`:`scale(${1-(1-g.scale)*d*r})`,x=d<0?1+(1-g.opacity)*d*r:1-(1-g.opacity)*d*r,y=`translate3d(${m}) ${v} ${b}`;if(f&&g.shadow||!f){let e=n.children(".swiper-slide-shadow");if(0===e.length&&g.shadow&&(e=se(a,n)),e.length){const t=a.shadowPerProgress?c*(1/a.limitProgress):c;e[0].style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const w=ie(a,n);w.transform(y).css({opacity:x}),g.origin&&w.css("transform-origin",g.origin)}},setTransition:e=>{const{transformEl:i}=t.params.creativeEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),ne({swiper:t,duration:e,transformEl:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),te({effect:"cards",swiper:t,on:n,setTranslate:()=>{const{slides:e,activeIndex:i}=t,n=t.params.cardsEffect,{startTranslate:s,isTouched:a}=t.touchEventsData,r=t.translate;for(let o=0;o<e.length;o+=1){const l=e.eq(o),c=l[0].progress,d=Math.min(Math.max(c,-4),4);let h=l[0].swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&t.$wrapperEl.transform(`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(h-=e[0].swiperSlideOffset);let u=t.params.cssMode?-h-t.translate:-h,p=0;const f=-100*Math.abs(d);let g=1,m=-n.perSlideRotate*d,v=n.perSlideOffset-.75*Math.abs(d);const b=t.virtual&&t.params.virtual.enabled?t.virtual.from+o:o,x=(b===i||b===i-1)&&d>0&&d<1&&(a||t.params.cssMode)&&r<s,y=(b===i||b===i+1)&&d<0&&d>-1&&(a||t.params.cssMode)&&r>s;if(x||y){const e=(1-Math.abs((Math.abs(d)-.5)/.5))**.5;m+=-28*d*e,g+=-.5*e,v+=96*e,p=-25*e*Math.abs(d)+"%"}if(u=d<0?`calc(${u}px + (${v*Math.abs(d)}%))`:d>0?`calc(${u}px + (-${v*Math.abs(d)}%))`:`${u}px`,!t.isHorizontal()){const e=p;p=u,u=e}const w=d<0?""+(1+(1-g)*d):""+(1-(1-g)*d),_=`\n translate3d(${u}, ${p}, ${f}px)\n rotateZ(${n.rotate?m:0}deg)\n scale(${w})\n `;if(n.slideShadows){let e=l.find(".swiper-slide-shadow");0===e.length&&(e=se(n,l)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(d)-.5)/.5,0),1))}l[0].style.zIndex=-Math.abs(Math.round(c))+e.length,ie(n,l).transform(_)}},setTransition:e=>{const{transformEl:i}=t.params.cardsEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),ne({swiper:t,duration:e,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return X.use(ae),X}
1));var popupSize={width:780,height:550};$(document).on("click",".social-button",(function(e){var t=Math.floor(($(window).width()-popupSize.width)/2),i=Math.floor(($(window).height()-popupSize.height)/2),n=window.open($(this).prop("href"),"social","width="+popupSize.width+",height="+popupSize.height+",left="+t+",top="+i+",location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1");n&&(n.focus(),e.preventDefault())}));const selectedTextArea=document.querySelectorAll(".selected-text-area"),shareBtns=document.querySelector("#share-btn");function selectableTextAreMouseUp(e){setTimeout((()=>{if(window.getSelection().toString().trim().length){const t=e.pageX,i=e.pageY,n=Number(getComputedStyle(shareBtns).width.slice(0,-2))-50,s=Number(getComputedStyle(shareBtns).height.slice(0,-2))+18;shareBtns.style.left=t-n+"px",shareBtns.style.top=i-s+"px",shareBtns.style.display="block",shareBtns.classList.add("show")}}),0)}function documentMouseDown(e){"block"===getComputedStyle(shareBtns).display&&"share-btn"!==e.target.id&&"twitterShare"!==e.target.id&&"facebookShare"!==e.target.id&&(shareBtns.style.display="none",shareBtns.classList.remove("show"),window.getSelection().empty())}selectedTextArea.forEach((e=>{e.addEventListener("mouseup",selectableTextAreMouseUp)})),selectedTextArea.forEach((e=>{e.addEventListener("mousedown",documentMouseDown)}));const facebookShare=document.querySelector("#facebookShare"),twitterShare=document.querySelector("#twitterShare");function shareTwitter(e){const t=window.getSelection().toString().trim(),i=window.location.href;window.open(`https://twitter.com/intent/tweet?text="${t}"&url=${i}&hashtags=&via=diariodominho`)}function shareFacebook(e){const t=window.getSelection().toString().trim(),i=window.location.href;window.open(`https://www.facebook.com/sharer/sharer.php?"e=${t}&u=${i}&hashtags=&display=popup`)}facebookShare&&facebookShare.addEventListener("click",shareFacebook),twitterShare&&twitterShare.addEventListener("click",shareTwitter);var shareBtn=document.getElementById("copyUrl");let url=document.location.href;var userText="Caso queira utilizar os nossos textos e/ou imagens, use, por favor, as ferramentas de partilha que encontra na página do artigo, ou identifique, devidamente, a sua origem. Apoie o jornalismo de qualidade. Todos os conteúdos do Diário do Minho são protegidos por Direitos de Autor ao abrigo da legislação portuguesa.";document.body.addEventListener("keydown",(function(e){e.key,e.metaKey;(url.includes("reportagem")||url.includes("entrevista")||url.includes("opiniao")||url.includes("canudo")||url.includes("noticias"))&&((e.ctrlKey||e.metaKey)&&67==e.keyCode&&navigator.clipboard.writeText(userText+" \n"+url+"\n \n"+window.getSelection()),(e.ctrlKey||e.metaKey)&&86==e.keyCode&&navigator.clipboard.writeText(userText+" \n"+url+"\n \n"+window.getSelection()),(e.ctrlKey||e.metaKey)&&88==e.keyCode&&navigator.clipboard.writeText(userText+" \n"+url+"\n \n"+window.getSelection()))}));const showVideo=document.querySelector("#showVideo"),videoIframe=document.querySelector("#videoIframe"),imagePost=document.querySelector(".imagePost"),videoCaption=document.querySelector("#videoCaption"),imageCaption=document.querySelector("#imageCaption");function showVideoIframe(){videoIframe.classList.remove("hidden"),videoCaption.classList.remove("hidden"),imagePost.classList.add("hidden"),showVideo.classList.add("hidden"),imageCaption.classList.add("hidden");
1var e=$("#video-player")[0].src.indexOf("?")>-1?"&":"?";$("#video-player")[0].src+=e+"autoplay=1"}showVideo&&showVideo.addEventListener("click",showVideoIframe);const categoryLetter=document.querySelector("#hidden-text"),categoryName=document.querySelector("#hidden-text-2");if(categoryLetter&&categoryName){var _INTERVAL_VAL,_CONTENT=[categoryLetter.innerHTML,categoryName.innerHTML],_PART=0,_PART_INDEX=0,_ELEMENT=document.querySelector("#animatedText");function Type(){var e=_CONTENT[_PART].substring(0,_PART_INDEX+1);_ELEMENT.innerHTML=e,_PART_INDEX++,e===_CONTENT[_PART]&&(clearInterval(_INTERVAL_VAL),setTimeout((function(){_INTERVAL_VAL=setInterval(Delete,50)}),2e3))}function Delete(){var e=_CONTENT[_PART].substring(0,_PART_INDEX-1);_ELEMENT.innerHTML=e,_PART_INDEX--,""===e&&(clearInterval(_INTERVAL_VAL),_PART==_CONTENT.length-1?_PART=0:_PART++,_PART_INDEX=0,setTimeout((function(){_INTERVAL_VAL=setInterval(Type,150)}),10))}_INTERVAL_VAL=setInterval(Type,150)}!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).Chart=t()}(this,(function(){"use strict";function e(){}const t=function(){let e=0;return function(){return e++}}();function i(e){return null==e}function n(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function s(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const a=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function r(e,t){return a(e)?e:t}function o(e,t){return void 0===e?t:e}const l=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t,c=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function d(e,t,i){if(e&&"function"==typeof e.call)return e.apply(i,t)}function h(e,t,i,a){let r,o,l;if(n(e))if(o=e.length,a)for(r=o-1;r>=0;r--)t.call(i,e[r],r);else for(r=0;r<o;r++)t.call(i,e[r],r);else if(s(e))for(l=Object.keys(e),o=l.length,r=0;r<o;r++)t.call(i,e[l[r]],l[r])}function u(e,t){let i,n,s,a;if(!e||!t||e.length!==t.length)return!1;for(i=0,n=e.length;i<n;++i)if(s=e[i],a=t[i],s.datasetIndex!==a.datasetIndex||s.index!==a.index)return!1;return!0}function p(e){if(n(e))return e.map(p);if(s(e)){const t=Object.create(null),i=Object.keys(e),n=i.length;let s=0;for(;s<n;++s)t[i[s]]=p(e[i[s]]);return t}return e}function f(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function g(e,t,i,n){if(!f(e))return;const a=t[e],r=i[e];s(a)&&s(r)?m(a,r,n):t[e]=p(r)}function m(e,t,i){const a=n(t)?t:[t],r=a.length;if(!s(e))return e;const o=(i=i||{}).merger||g;for(let n=0;n<r;++n){if(!s(t=a[n]))continue;const r=Object.keys(t);for(let n=0,s=r.length;n<s;++n)o(r[n],e,t,i)}return e}function v(e,t){return m(e,t,{merger:b})}function b(e,t,i){if(!f(e))return;const n=t[e],a=i[e];s(n)&&s(a)?v(n,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=p(a))}const x={"":e=>e,x:e=>e.x,y:e=>e.y};function y(e,t){const i=x[t]||(x[t]=function(e){const t=w(e);return e=>{for(const i of t){if(""===i)break;e=e&&e[i]}return e}}(t));return i(e)}function w(e){const t=e.split("."),i=[];let n="";for(const e of t)n+=e,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}function _(e){return e.charAt(0).toUpperCase()+e.slice(1)}const S=e=>void 0!==e,T=e=>"function"==typeof e,C=(e,t)=>{if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0};function E(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}const M=Math.PI,k=2*M,P=k+M,$=Number.POSITIVE_INFINITY,D=M/180,A=M/2,L=M/4,O=2*M/3,I=Math.log10,z=Math.sign;function R(e){const t=Math.round(e);e=F(e,t,e/1e3)?t:e;const i=Math.pow(10,Math.floor(I(e))),n=e/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function N(e){const t=[],i=Math.sqrt(e);let n;for(n=1;n<i;n++)e%n==0&&(t.push(n),t.push(e/n));return i===(0|i)&&t.push(i),t.sort(((e,t)=>e-t)).pop(),t}function B(e){return!isNaN(parseFloat(e))&&isFinite(e)}function F(e,t,i){return Math.abs(e-t)<i}function j(e,t){const i=Math.round(e);return i-t<=e&&i+t>=e}function H(e,t,i){let n,s,a;for(n=0,s=e.length;n<s;
vendor: 6,361 bytes, line 1
1n++)a=e[n][i],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function V(e){return e*(M/180)}function W(e){return e*(180/M)}function q(e){if(!a(e))return;let t=1,i=0;for(;Math.round(e*t)/t!==e;)t*=10,i++;return i}function Y(e,t){const i=t.x-e.x,n=t.y-e.y,s=Math.sqrt(i*i+n*n);let a=Math.atan2(n,i);return a<-.5*M&&(a+=k),{angle:a,distance:s}}function X(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function G(e,t){return(e-t+P)%k-M}function U(e){return(e%k+k)%k}function K(e,t,i,n){const s=U(e),a=U(t),r=U(i),o=U(a-s),l=U(r-s),c=U(s-a),d=U(s-r);return s===a||s===r||n&&a===r||o>l&&c<d}function Q(e,t,i){return Math.max(t,Math.min(i,e))}function Z(e){return Q(e,-32768,32767)}function J(e,t,i,n=1e-6){return e>=Math.min(t,i)-n&&e<=Math.max(t,i)+n}function ee(e,t,i){i=i||(i=>e[i]<t);let n,s=e.length-1,a=0;for(;s-a>1;)n=a+s>>1,i(n)?a=n:s=n;return{lo:a,hi:s}}const te=(e,t,i,n)=>ee(e,i,n?n=>e[n][t]<=i:n=>e[n][t]<i),ie=(e,t,i)=>ee(e,i,(n=>e[n][t]>=i));function ne(e,t,i){let n=0,s=e.length;for(;n<s&&e[n]<t;)n++;for(;s>n&&e[s-1]>i;)s--;return n>0||s<e.length?e.slice(n,s):e}const se=["push","pop","shift","splice","unshift"];function ae(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),se.forEach((t=>{const i="_onData"+_(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const s=n.apply(this,t);return e._chartjs.listeners.forEach((e=>{"function"==typeof e[i]&&e[i](...t)})),s}})})))}function re(e,t){const i=e._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(t);-1!==s&&n.splice(s,1),n.length>0||(se.forEach((t=>{delete e[t]})),delete e._chartjs)}function oe(e){const t=new Set;let i,n;for(i=0,n=e.length;i<n;++i)t.add(e[i]);return t.size===n?e:Array.from(t)}const le="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function ce(e,t,i){const n=i||(e=>Array.prototype.slice.call(e));let s=!1,a=[];return function(...i){a=n(i),s||(s=!0,le.call(window,(()=>{s=!1,e.apply(t,a)})))}}function de(e,t){let i;return function(...n){return t?(clearTimeout(i),i=setTimeout(e,t,n)):e.apply(this,n),t}}const he=e=>"start"===e?"left":"end"===e?"right":"center",ue=(e,t,i)=>"start"===e?t:"end"===e?i:(t+i)/2,pe=(e,t,i,n)=>e===(n?"left":"right")?i:"center"===e?(t+i)/2:t;function fe(e,t,i){const n=t.length;let s=0,a=n;if(e._sorted){const{iScale:r,_parsed:o}=e,l=r.axis,{min:c,max:d,minDefined:h,maxDefined:u}=r.getUserBounds();h&&(s=Q(Math.min(te(o,r.axis,c).lo,i?n:te(t,l,r.getPixelForValue(c)).lo),0,n-1)),a=u?Q(Math.max(te(o,r.axis,d,!0).hi+1,i?0:te(t,l,r.getPixelForValue(d),!0).hi+1),s,n)-s:n-s}return{start:s,count:a}}function ge(e){const{xScale:t,yScale:i,_scaleRanges:n}=e,s={xmin:t.min,xmax:t.max,ymin:i.min,ymax:i.max};if(!n)return e._scaleRanges=s,!0;const a=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),a}var me=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,i,n){const s=t.listeners[n],a=t.duration;s.forEach((n=>n({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(i-t.start,a)})))}_refresh(){this._request||(this._running=!0,this._request=le.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let a,r=s.length-1,o=!1;for(;r>=0;--r)a=s[r],a._active?(a._total>i.duration&&(i.duration=a._total),a.tick(e),o=!0):(s[r]=s[s.length-1],s.pop());o&&(n.draw(),this._notify(n,i,e,"progress")),s.length||(i.running=!1,this._notify(n,i,e,"complete"),i.initial=!1),t+=s.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let i=t.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,i)),i}listen(e,t,i){this._getAnims(e).listeners[t].push(i)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const i=t.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};function ve(e){return e+.5|0}const be=(e,t,i)=>Math.max(Math.min(e,i),t);function xe(e){return be(ve(2.55*e),0,255)}function ye(e){return be(ve(255*e),0,255)}function we(e){return be(ve(e/2.55)/100,0,1)}function _e(e){return be(ve(100*e),0,100)}const Se={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Te=[..."0123456789ABCDEF"],Ce=e=>Te[15&e],Ee=e=>Te[(240&e)>>4]+Te[15&e],Me=e=>(240&e)>>4==(15&e);const ke=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Pe(e,t,i){const n=t*Math.min(i,1-i),s=(t,s=(t+e/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function $e(e,t,i){const n=(n,s=(n+e/60)%6)=>i-i*t*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function De(e,t,i){const n=Pe(e,1,.5);let s;for(t+i>1&&(s=1/(t+i),t*=s,i*=s),s=0;s<3;s++)n[s]*=1-t-i,n[s]+=t;return n}function Ae(e){const t=e.r/255,i=e.g/255,n=e.b/255,s=Math.max(t,i,n),a=Math.min(t,i,n),r=(s+a)/2;let o,l,c;return s!==a&&(c=s-a,l=r>.5?c/(2-s-a):c/(s+a),o=function(e,t,i,n,s){return e===s?(t-i)/n+(t<i?6:0):t===s?(i-e)/n+2:(e-t)/n+4}(t,i,n,c,s),o=60*o+.5),[0|o,l||0,r]}function Le(e,t,i,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,i,n)).map(ye)}function Oe(e,t,i){return Le(Pe,e,t,i)}function Ie(e){return(e%360+360)%360}const ze={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Re={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
vendor: 4,112 bytes, line 1
1ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Ne;const Be=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Fe=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,je=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function He(e,t,i){if(e){let n=Ae(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*i,0===t?360:1)),n=Oe(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function Ve(e,t){return e?Object.assign(t||{},e):e}function We(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ye(e[3]))):(t=Ve(e,{r:0,g:0,b:0,a:1})).a=ye(t.a),t}function qe(e){return"r"===e.charAt(0)?function(e){const t=Be.exec(e);let i,n,s,a=255;if(t){if(t[7]!==i){const e=+t[7];a=t[8]?xe(e):be(255*e,0,255)}return i=+t[1],n=+t[3],s=+t[5],i=255&(t[2]?xe(i):be(i,0,255)),n=255&(t[4]?xe(n):be(n,0,255)),s=255&(t[6]?xe(s):be(s,0,255)),{r:i,g:n,b:s,a:a}}}(e):function(e){const t=ke.exec(e);let i,n=255;if(!t)return;t[5]!==i&&(n=t[6]?xe(+t[5]):ye(+t[5]));const s=Ie(+t[2]),a=+t[3]/100,r=+t[4]/100;return i="hwb"===t[1]?function(e,t,i){return Le(De,e,t,i)}(s,a,r):"hsv"===t[1]?function(e,t,i){return Le($e,e,t,i)}(s,a,r):Oe(s,a,r),{r:i[0],g:i[1],b:i[2],a:n}}(e)}class Ye{constructor(e){if(e instanceof Ye)return e;const t=typeof e;let i;var n,s,a;"object"===t?i=We(e):"string"===t&&(a=(n=e).length,"#"===n[0]&&(4===a||5===a?s={r:255&17*Se[n[1]],g:255&17*Se[n[2]],b:255&17*Se[n[3]],a:5===a?17*Se[n[4]]:255}:7!==a&&9!==a||(s={r:Se[n[1]]<<4|Se[n[2]],g:Se[n[3]]<<4|Se[n[4]],b:Se[n[5]]<<4|Se[n[6]],a:9===a?Se[n[7]]<<4|Se[n[8]]:255})),i=s||function(e){Ne||(Ne=function(){const e={},t=Object.keys(Re),i=Object.keys(ze);let n,s,a,r,o;for(n=0;n<t.length;n++){for(r=o=t[n],s=0;s<i.length;s++)a=i[s],o=o.replace(a,ze[a]);a=parseInt(Re[r],16),e[o]=[a>>16&255,a>>8&255,255&a]}return e}(),Ne.transparent=[0,0,0,0]);const t=Ne[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||qe(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=Ve(this._rgb);return e&&(e.a=we(e.a)),e}set rgb(e){this._rgb=We(e)}
vendor: 2,964 bytes, line 1
1rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${we(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?function(e){var t=(e=>Me(e.r)&&Me(e.g)&&Me(e.b)&&Me(e.a))(e)?Ce:Ee;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=Ae(e),i=t[0],n=_e(t[1]),s=_e(t[2]);return e.a<255?`hsla(${i}, ${n}%, ${s}%, ${we(e.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):void 0}mix(e,t){if(e){const i=this.rgb,n=e.rgb;let s;const a=t===s?.5:t,r=2*a-1,o=i.a-n.a,l=((r*o==-1?r:(r+o)/(1+r*o))+1)/2;s=1-l,i.r=255&l*i.r+s*n.r+.5,i.g=255&l*i.g+s*n.g+.5,i.b=255&l*i.b+s*n.b+.5,i.a=a*i.a+(1-a)*n.a,this.rgb=i}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,i){const n=je(we(e.r)),s=je(we(e.g)),a=je(we(e.b));return{r:ye(Fe(n+i*(je(we(t.r))-n))),g:ye(Fe(s+i*(je(we(t.g))-s))),b:ye(Fe(a+i*(je(we(t.b))-a))),a:e.a+i*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Ye(this.rgb)}alpha(e){return this._rgb.a=ye(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=ve(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return He(this._rgb,2,e),this}darken(e){return He(this._rgb,2,-e),this}saturate(e){return He(this._rgb,1,e),this}desaturate(e){return He(this._rgb,1,-e),this}rotate(e){return function(e,t){var i=Ae(e);i[0]=Ie(i[0]+t),i=Oe(i),e.r=i[0],e.g=i[1],e.b=i[2]}(this._rgb,e),this}}function Xe(e){return new Ye(e)}function Ge(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Ue(e){return Ge(e)?e:Xe(e)}function Ke(e){return Ge(e)?e:Xe(e).saturate(.5).darken(.1).hexString()}const Qe=Object.create(null),Ze=Object.create(null);function Je(e,t){if(!t)return e;const i=t.split(".");for(let t=0,n=i.length;t<n;++t){const n=i[t];e=e[n]||(e[n]=Object.create(null))}return e}function et(e,t,i){return"string"==typeof t?m(Je(e,t),i):m(Je(e,""),t)}var tt=new class{constructor(e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Ke(t.backgroundColor),this.hoverBorderColor=(e,t)=>Ke(t.borderColor),this.hoverColor=(e,t)=>Ke(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e)}set(e,t){return et(this,e,t)}get(e){return Je(this,e)}describe(e,t){return et(Ze,e,t)}override(e,t){return et(Qe,e,t)}route(e,t,i,n){const a=Je(this,e),r=Je(this,i),l="_"+t;Object.defineProperties(a,{[l]:{value:a[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[l],t=r[n];return s(e)?Object.assign({},t,e):o(e,t)},set(e){this[l]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function it(){return"undefined"!=typeof window&&"undefined"!=typeof document}function nt(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function st(e,t,i){let n;return"string"==typeof e?(n=parseInt(e,10),-1!==e.indexOf("%")&&(n=n/100*t.parentNode[i])):n=e,n}const at=e=>window.getComputedStyle(e,null);function rt(e,t){return at(e).getPropertyValue(t)}const ot=["top","right","bottom","left"];function lt(e,t,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const a=ot[s];n[a]=parseFloat(e[t+"-"+a+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function ct(e,t){if("native"in e)return e;const{canvas:i,currentDevicePixelRatio:n}=t,s=at(i),a="border-box"===s.boxSizing,r=lt(s,"padding"),o=lt(s,"border","width"),{x:l,y:c,box:d}=function(e,t){const i=e.touches,n=i&&i.length?i[0]:e,{offsetX:s,offsetY:a}=n;let r,o,l=!1;if(((e,t,i)=>(e>0||t>0)&&(!i||!i.shadowRoot))(s,a,e.target))r=s,o=a;else{const e=t.getBoundingClientRect();r=n.clientX-e.left,o=n.clientY-e.top,l=!0}return{x:r,y:o,box:l}}(e,i),h=r.left+(d&&o.left),u=r.top+(d&&o.top);let{width:p,height:f}=t;return a&&(p-=r.width+o.width,f-=r.height+o.height),{x:Math.round((l-h)/p*i.width/n),y:Math.round((c-u)/f*i.height/n)}}const dt=e=>Math.round(10*e)/10;function ht(e,t,i,n){const s=at(e),a=lt(s,"margin"),r=st(s.maxWidth,e,"clientWidth")||$,o=st(s.maxHeight,e,"clientHeight")||$,l=function(e,t,i){let n,s;if(void 0===t||void 0===i){const a=nt(e);if(a){const e=a.getBoundingClientRect(),r=at(a),o=lt(r,"border","width"),l=lt(r,"padding");t=e.width-l.width-o.width,i=e.height-l.height-o.height,n=st(r.maxWidth,a,"clientWidth"),s=st(r.maxHeight,a,"clientHeight")}else t=e.clientWidth,i=e.clientHeight}return{width:t,height:i,maxWidth:n||$,maxHeight:s||$}}(e,t,i);let{width:c,height:d}=l;if("content-box"===s.boxSizing){const e=lt(s,"border","width"),t=lt(s,"padding");c-=t.width+e.width,d-=t.height+e.height}return c=Math.max(0,c-a.width),d=Math.max(0,n?Math.floor(c/n):d-a.height),c=dt(Math.min(c,r,l.maxWidth)),d=dt(Math.min(d,o,l.maxHeight)),c&&!d&&(d=dt(c/2)),{width:c,height:d}}function ut(e,t,i){const n=t||1,s=Math.floor(e.height*n),a=Math.floor(e.width*n);e.height=s/n,e.width=a/n;const r=e.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==n||r.height!==s||r.width!==a)&&(e.currentDevicePixelRatio=n,r.height=s,r.width=a,e.ctx.setTransform(n,0,0,n,0,0),!0)}const pt=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function ft(e,t){const i=rt(e,t),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function gt(e){return!e||i(e.size)||i(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function mt(e,t,i,n,s){let a=t[s];return a||(a=t[s]=e.measureText(s).width,i.push(s)),a>n&&(n=a),n}function vt(e,t,i,s){let a=(s=s||{}).data=s.data||{},r=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(a=s.data={},r=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let o=0;const l=i.length;let c,d,h,u,p;for(c=0;c<l;c++)if(u=i[c],null!=u&&!0!==n(u))o=mt(e,a,r,o,u);else if(n(u))for(d=0,h=u.length;d<h;d++)p=u[d],null==p||n(p)||(o=mt(e,a,r,o,p));e.restore();const f=r.length/2;if(f>i.length){for(c=0;c<f;c++)delete a[r[c]];r.splice(0,f)}return o}function bt(e,t,i){const n=e.currentDevicePixelRatio,s=0!==i?Math.max(i/2,.5):0;return Math.round((t-s)*n)/n+s}function xt(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore(
vendor: 16,581 bytes, line 1
1)}function yt(e,t,i,n){wt(e,t,i,n,null)}function wt(e,t,i,n,s){let a,r,o,l,c,d;const h=t.pointStyle,u=t.rotation,p=t.radius;let f=(u||0)*D;if(h&&"object"==typeof h&&(a=h.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(i,n),e.rotate(f),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(p)||p<=0)){switch(e.beginPath(),h){default:s?e.ellipse(i,n,s/2,p,0,0,k):e.arc(i,n,p,0,k),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(f)*p,n-Math.cos(f)*p),f+=O,e.lineTo(i+Math.sin(f)*p,n-Math.cos(f)*p),f+=O,e.lineTo(i+Math.sin(f)*p,n-Math.cos(f)*p),e.closePath();break;case"rectRounded":c=.516*p,l=p-c,r=Math.cos(f+L)*l,o=Math.sin(f+L)*l,e.arc(i-r,n-o,c,f-M,f-A),e.arc(i+o,n-r,c,f-A,f),e.arc(i+r,n+o,c,f,f+A),e.arc(i-o,n+r,c,f+A,f+M),e.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*p,d=s?s/2:l,e.rect(i-d,n-l,2*d,2*l);break}f+=L;case"rectRot":r=Math.cos(f)*p,o=Math.sin(f)*p,e.moveTo(i-r,n-o),e.lineTo(i+o,n-r),e.lineTo(i+r,n+o),e.lineTo(i-o,n+r),e.closePath();break;case"crossRot":f+=L;case"cross":r=Math.cos(f)*p,o=Math.sin(f)*p,e.moveTo(i-r,n-o),e.lineTo(i+r,n+o),e.moveTo(i+o,n-r),e.lineTo(i-o,n+r);break;case"star":r=Math.cos(f)*p,o=Math.sin(f)*p,e.moveTo(i-r,n-o),e.lineTo(i+r,n+o),e.moveTo(i+o,n-r),e.lineTo(i-o,n+r),f+=L,r=Math.cos(f)*p,o=Math.sin(f)*p,e.moveTo(i-r,n-o),e.lineTo(i+r,n+o),e.moveTo(i+o,n-r),e.lineTo(i-o,n+r);break;case"line":r=s?s/2:Math.cos(f)*p,o=Math.sin(f)*p,e.moveTo(i-r,n-o),e.lineTo(i+r,n+o);break;case"dash":e.moveTo(i,n),e.lineTo(i+Math.cos(f)*p,n+Math.sin(f)*p)}e.fill(),t.borderWidth>0&&e.stroke()}}function _t(e,t,i){return i=i||.5,!t||e&&e.x>t.left-i&&e.x<t.right+i&&e.y>t.top-i&&e.y<t.bottom+i}function St(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Tt(e){e.restore()}function Ct(e,t,i,n,s){if(!t)return e.lineTo(i.x,i.y);if("middle"===s){const n=(t.x+i.x)/2;e.lineTo(n,t.y),e.lineTo(n,i.y)}else"after"===s!=!!n?e.lineTo(t.x,i.y):e.lineTo(i.x,t.y);e.lineTo(i.x,i.y)}function Et(e,t,i,n){if(!t)return e.lineTo(i.x,i.y);e.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function Mt(e,t,s,a,r,o={}){const l=n(t)?t:[t],c=o.strokeWidth>0&&""!==o.strokeColor;let d,h;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),i(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,o),d=0;d<l.length;++d)h=l[d],c&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),i(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(h,s,a,o.maxWidth)),e.fillText(h,s,a,o.maxWidth),kt(e,s,a,h,o),a+=r.lineHeight;e.restore()}function kt(e,t,i,n,s){if(s.strikethrough||s.underline){const a=e.measureText(n),r=t-a.actualBoundingBoxLeft,o=t+a.actualBoundingBoxRight,l=i-a.actualBoundingBoxAscent,c=i+a.actualBoundingBoxDescent,d=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(r,d),e.lineTo(o,d),e.stroke()}}function Pt(e,t){const{x:i,y:n,w:s,h:a,radius:r}=t;e.arc(i+r.topLeft,n+r.topLeft,r.topLeft,-A,M,!0),e.lineTo(i,n+a-r.bottomLeft),e.arc(i+r.bottomLeft,n+a-r.bottomLeft,r.bottomLeft,M,A,!0),e.lineTo(i+s-r.bottomRight,n+a),e.arc(i+s-r.bottomRight,n+a-r.bottomRight,r.bottomRight,A,0,!0),e.lineTo(i+s,n+r.topRight),e.arc(i+s-r.topRight,n+r.topRight,r.topRight,0,-A,!0),e.lineTo(i+r.topLeft,n)}function $t(e,t=[""],i=e,n,s=(()=>e[0])){S(n)||(n=jt("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:n,_getTarget:s,override:s=>$t([s,...e],t,i,n)};return new Proxy(a,{deleteProperty:(t,i)=>(delete t[i],delete t._keys,delete e[0][i],!0),get:(i,n)=>It(i,n,(()=>function(e,t,i,n){let s;for(const a of t)if(s=jt(Lt(a,e),i),S(s))return Ot(e,s)?Bt(i,n,e,s):s}(n,t,e,i))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Ht(e).includes(t),ownKeys:e=>Ht(e),set(e,t,i){const n=e._storage||(e._storage=s());return e[t]=n[t]=i,delete e._keys,!0}})}function Dt(e,t,i,a){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:i,_stack:new Set,_descriptors:At(e,a),setContext:t=>Dt(e,t,i,a),override:n=>Dt(e.override(n),t,i,a)};return new Proxy(r,{deleteProperty:(t,i)=>(delete t[i],delete e[i],!0),get:(e,t,i)=>It(e,t,(()=>function(e,t,i){const{_proxy:a,_context:r,_subProxy:o,_descriptors:l}=e;let c=a[t];return T(c)&&l.isScriptable(t)&&(c=function(e,t,i,n){const{_proxy:s,_context:a,_subProxy:r,_stack:o}=i;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);return o.add(e),t=t(a,r||n),o.delete(e),Ot(e,t)&&(t=Bt(s._scopes,s,e,t)),t}(t,c,e,i)),n(c)&&c.length&&(c=function(e,t,i,n){const{_proxy:a,_context:r,_subProxy:o,_descriptors:l}=i;if(S(r.index)&&n(e))t=t[r.index%t.length];else if(s(t[0])){const i=t,n=a._scopes.filter((e=>e!==i));t=[];for(const s of i){const i=Bt(n,a,e,s);t.push(Dt(i,r,o&&o[e],l))}}return t}(t,c,e,l.isIndexable)),Ot(t,c)&&(c=Dt(c,r,o&&o[t],l)),c}(e,t,i))),getOwnPropertyDescriptor:(t,i)=>t._descriptors.allKeys?Reflect.has(e,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,i),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,i)=>Reflect.has(e,i),ownKeys:()=>Reflect.ownKeys(e),set:(t,i,n)=>(e[i]=n,delete t[i],!0)})}function At(e,t={scriptable:!0,indexable:!0}){const{_scriptable:i=t.scriptable,_indexable:n=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:i,indexable:n,isScriptable:T(i)?i:()=>i,isIndexable:T(n)?n:()=>n}}const Lt=(e,t)=>e?e+_(t):t,Ot=(e,t)=>s(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function It(e,t,i){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const n=i();return e[t]=n,n}function zt(e,t,i){return T(e)?e(t,i):e}const Rt=(e,t)=>!0===e?t:"string"==typeof e?y(t,e):void 0;function Nt(e,t,i,n,s){for(const a of t){const t=Rt(i,a);if(t){e.add(t);const a=zt(t._fallback,i,s);if(S(a)&&a!==i&&a!==n)return a}else if(!1===t&&S(n)&&i!==n)return null}return!1}function Bt(e,t,i,a){const r=t._rootScopes,o=zt(t._fallback,i,a),l=[...e,...r],c=new Set;c.add(a);let d=Ft(c,l,i,o||i,a);return null!==d&&(!S(o)||o===i||(d=Ft(c,l,o,d,a),null!==d))&&$t(Array.from(c),[""],r,o,(()=>function(e,t,i){const a=e._getTarget();t in a||(a[t]={});const r=a[t];return n(r)&&s(i)?i:r}(t,i,a)))}function Ft(e,t,i,n,s){for(;i;)i=Nt(e,t,i,n,s);return i}function jt(e,t){for(const i of t){if(!i)continue;const t=i[e];if(S(t))return t}}function Ht(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const i of e)for(const e of Object.keys(i).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function Vt(e,t,i,n){const{iScale:s}=e,{key:a="r"}=this._parsing,r=new Array(n);let o,l,c,d;for(o=0,l=n;o<l;++o)c=o+i,d=t[c],r[o]={r:s.parse(y(d,a),c)};return r}const Wt=Number.EPSILON||1e-14,qt=(e,t)=>t<e.length&&!e[t].skip&&e[t],Yt=e=>"x"===e?"y":"x";function Xt(e,t,i,n){const s=e.skip?t:e,a=t,r=i.skip?t:i,o=X(a,s),l=X(r,a);let c=o/(o+l),d=l/(o+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=n*c,u=n*d;return{previous:{x:a.x-h*(r.x-s.x),y:a.y-h*(r.y-s.y)},next:{x:a.x+u*(r.x-s.x),y:a.y+u*(r.y-s.y)}}}function Gt(e,t="x"){const i=Yt(t),n=e.length,s=Array(n).fill(0),a=Array(n);let r,o,l,c=qt(e,0);for(r=0;r<n;++r)if(o=l,l=c,c=qt(e,r+1),l){if(c){const e=c[t]-l[t];s[r]=0!==e?(c[i]-l[i])/e:0}a[r]=o?c?z(s[r-1])!==z(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(e,t,i){const n=e.length;let s,a,r,o,l,c=qt(e,0);for(let d=0;d<n-1;++d)l=c,c=qt(e,d+1),l&&c&&(F(t[d],0,Wt)?i[d]=i[d+1]=0:(s=i[d]/t[d],a=i[d+1]/t[d],o=Math.pow(s,2)+Math.pow(a,2),o<=9||(r=3/Math.sqrt(o),i[d]=s*r*t[d],i[d+1]=a*r*t[d])))}(e,s,a),function(e,t,i="x"){const n=Yt(i),s=e.length;let a,r,o,l=qt(e,0);for(let c=0;c<s;++c){if(r=o,o=l,l=qt(e,c+1),!o)continue;const s=o[i],d=o[n];r&&(a=(s-r[i])/3,o[`cp1${i}`]=s-a,o[`cp1${n}`]=d-a*t[c]),l&&(a=(l[i]-s)/3,o[`cp2${i}`]=s+a,o[`cp2${n}`]=d+a*t[c])}}(e,a,t)}function Ut(e,t,i){return Math.max(Math.min(e,i),t)}function Kt(e,t,i,n,s){let a,r,o,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)Gt(e,s);else{let i=n?e[e.length-1]:e[0];for(a=0,r=e.length;a<r;++a)o=e[a],l=Xt(i,o,e[Math.min(a+1,r-(n?0:1))%r],t.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,i=o}t.capBezierPoints&&function(e,t){let i,n,s,a,r,o=_t(e[0],t);for(i=0,n=e.length;i<n;++i)r=a,a=o,o=i<n-1&&_t(e[i+1],t),a&&(s=e[i],r&&(s.cp1x=Ut(s.cp1x,t.left,t.right),s.cp1y=Ut(s.cp1y,t.top,t.bottom)),o&&(s.cp2x=Ut(s.cp2x,t.left,t.right),s.cp2y=Ut(s.cp2y,t.top,t.bottom)))}(e,i)}const Qt=e=>0===e||1===e,Zt=(e,t,i)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*k/i),Jt=(e,t,i)=>Math.pow(2,-10*e)*Math.sin((e-t)*k/i)+1,ei={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*A),easeOutSine:e=>Math.sin(e*A),easeInOutSine:e=>-.5*(Math.cos(M*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>Qt(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Qt(e)?e:Zt(e,.075,.3),easeOutElastic:e=>Qt(e)?e:Jt(e,.075,.3),easeInOutElastic(e){const t=.1125;return Qt(e)?e:e<.5?.5*Zt(2*e,t,.45):.5+.5*Jt(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-ei.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,i=2.75;return e<1/i?t*e*e:e<2/i?t*(e-=1.5/i)*e+.75:e<2.5/i?t*(e-=2.25/i)*e+.9375:t*(e-=2.625/i)*e+.984375},easeInOutBounce:e=>e<.5?.5*ei.easeInBounce(2*e):.5*ei.easeOutBounce(2*e-1)+.5};function ti(e,t,i,n){return{x:e.x+i*(t.x-e.x),y:e.y+i*(t.y-e.y)}}function ii(e,t,i,n){return{x:e.x+i*(t.x-e.x),y:"middle"===n?i<.5?e.y:t.y:"after"===n?i<1?e.y:t.y:i>0?t.y:e.y}}function ni(e,t,i,n){const s={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},r=ti(e,s,i),o=ti(s,a,i),l=ti(a,t,i),c=ti(r,o,i),d=ti(o,l,i);return ti(c,d,i)}const si=new Map;function ai(e,t,i){return function(e,t){t=t||{};const i=e+JSON.stringify(t);let n=si.get(i);return n||(n=new Intl.NumberFormat(e,t),si.set(i,n)),n}(t,i).format(e)}const ri=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),oi=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function li(e,t){const i=(""+e).match(ri);if(!i||"normal"===i[1])return 1.2*t;switch(e=+i[2],i[3]){case"px":return e;case"%":e/=100}return t*e}function ci(e,t){const i={},n=s(t),a=n?Object.keys(t):t,r=s(e)?n?i=>o(e[i],e[t[i]]):t=>e[t]:()=>e;for(const e of a)i[e]=+r(e)||0;return i}function di(e){return ci(e,{top:"y",right:"x",bottom:"y",left:"x"})}function hi(e){return ci(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ui(e){const t=di(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function pi(e,t){e=e||{},t=t||tt.font;let i=o(e.size,t.size);"string"==typeof i&&(i=parseInt(i,10));let n=o(e.style,t.style);n&&!(""+n).match(oi)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const s={family:o(e.family,t.family),lineHeight:li(o(e.lineHeight,t.lineHeight),i),size:i,style:n,weight:o(e.weight,t.weight),string:""};return s.string=gt(s),s}function fi(e,t,i,s){let a,r,o,l=!0;for(a=0,r=e.length;a<r;++a)if(o=e[a],void 0!==o&&(void 0!==t&&"function"==typeof o&&(o=o(t),l=!1),void 0!==i&&n(o)&&(o=o[i%o.length],l=!1),void 0!==o))return s&&!l&&(s.cacheable=!1),o}function gi(e,t,i){const{min:n,max:s}=e,a=c(t,(s-n)/2),r=(e,t)=>i&&0===e?0:e+t;return{min:r(n,-Math.abs(a)),max:r(s,a)}}function mi(e,t){return Object.assign(Object.create(e),t)}function vi(e,t,i){return e?function(e,t){return{x:i=>e+e+t-i,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,i):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function bi(e,t){let i,n;"ltr"!==t&&"rtl"!==t||(i=e.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",t,"important"),e.prevTextDirection=n)}function xi(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function yi(e){return"angle"===e?{between:K,compare:G,normalize:U}:{between:J,compare:(e,t)=>e-t,normalize:e=>e}}function wi({start:e,end:t,count:i,loop:n,style:s}){return{start:e%i,end:t%i,loop:n&&(t-e+1)%i==0,style:s}}function _i(e,t,i){if(!i)return[e];const{property:n,start:s,end:a}=i,r=t.length,{compare:o,between:l,normalize:c}=yi(n),{start:d,end:h,loop:u,style:p}=function(e,t,i){const{property:n,start:s,end:a}=i,{between:r,normalize:o}=yi(n),l=t.length;let c,d,{start:h,end:u,loop:p}=e;if(p){for(h+=l,u+=l,c=0,d=l;c<d&&r(o(t[h%l][n]),s,a);++c)h--,u--;h%=l,u%=l}return u<h&&(u+=l),{start:h,end:u,loop:p,style:e.style}}(e,t,i),f=[];let g,m,v,b=!1,x=null;for(let e=d,i=d;e<=h;++e)m=t[e%r],m.skip||(g=c(m[n]),g!==v&&(b=l(g,s,a),null===x&&(b||l(s,v,g)&&0!==o(s,v))&&(x=0===o(g,s)?e:i),null!==x&&(!b||0===o(a,g)||l(a,v,g))&&(f.push(wi({start:x,end:e,loop:u,count:r,style:p})),x=null),i=e,v=g));return null!==x&&f.push(wi({start:x,end:h,loop:u,count:r,style:p})),f}function Si(e,t){const i=[],n=e.segments;for(let s=0;s<n.length;s++){const a=_i(n[s],e.points,t);a.length&&i.push(...a)}return i}function Ti(e,t){const i=e.points,n=e.options.spanGaps,s=i.length;if(!s)return[];const a=!!e._loop,{start:r,end:o}=function(e,t,i,n){let s=0,a=t-1;if(i&&!n)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,i&&(a+=s);a>s&&e[a%t].skip;)a--;return a%=t,{start:s,end:a}}(i,s,a,n);return Ci(e,!0===n?[{start:r,end:o,loop:a}]:function(e,t,i,n){const s=e.length,a=[];let r,o=t,l=e[t];for(r=t+1;r<=i;++r){const i=e[r%s];i.skip||i.stop?l.skip||(n=!1,a.push({start:t%s,end:(r-1)%s,loop:n}),t=o=i.stop?r:null):(o=r,l.skip&&(t=r)),l=i}return null!==o&&a.push({start:t%s,end:o%s,loop:n}),a}(i,r,o<r?o+s:o,!!e._fullLoop&&0===r&&o===s-1),i,t)}function Ci(e,t,i,n){return n&&n.setContext&&i?function(e,t,i,n){const s=e._chart.getContext(),a=Ei(e.options),{_datasetIndex:r,options:{spanGaps:o}}=e,l=i.length,c=[];let d=a,h=t[0].start,u=h;function p(e,t,n,s){const a=o?-1:1;if(e!==t){for(e+=l;i[e%l].skip;)e-=a;for(;i[t%l].skip;)t+=a;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:n,style:s}),d=s,h=t%l)}}for(const e of t){h=o?h:e.start;let t,a=i[h%l];for(u=h+1;u<=e.end;u++){const o=i[u%l];t=Ei(n.setContext(mi(s,{type:"segment",p0:a,p1:o,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:r}))),Mi(t,d)&&p(h,u-1,e.loop,d),a=o,d=t}h<u-1&&p(h,u-1,e.loop,d)}return c}(e,t,i,n):t}function Ei(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Mi(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var ki=Object.freeze({__proto__:null,easingEffects:ei,isPatternOrGradient:Ge,color:Ue,getHoverColor:Ke,noop:e,uid:t,isNullOrUndef:i,isArray:n,isObject:s,isFinite:a,finiteOrDefault:r,valueOrDefault:o,toPercentage:l,toDimension:c,callback:d,each:h,_elementsEqual:u,clone:p,_merger:g,merge:m,mergeIf:v,_mergerIf:b,_deprecated:function(e,t,i,n){void 0!==t&&console.warn(e+': "'+i+'" is deprecated. Please use "'+n+'" instead')},resolveObjectKey:y,_splitKey:w,_capitalize:_,defined:S,isFunction:T,setsEqual:C,_isClickEvent:E,toFontString:gt,_measureText:mt,_longestText:vt,_alignPixel:bt,clearCanvas:xt,drawPoint:yt,drawPointLegend:wt,_isPointInArea:_t,clipArea:St,unclipArea:Tt,_steppedLineTo:Ct,_bezierCurveTo:Et,renderText:Mt,addRoundedRectPath:Pt,_lookup:ee,_lookupByKey:te,_rlookupByKey:ie,_filterBetween:ne,listenArrayEvents:ae,unlistenArrayEvents:re,_arrayUnique:oe,_createResolver:$t,_attachContext:Dt,_descriptors:At,_parseObjectDataRadialScale:Vt,splineCurve:Xt,splineCurveMonotone:Gt,_updateBezierControlPoints:Kt,_isDomSupp
vendor: 4,328 bytes, line 1
1orted:it,_getParentNode:nt,getStyle:rt,getRelativePosition:ct,getMaximumSize:ht,retinaScale:ut,supportsEventListenerOptions:pt,readUsedSize:ft,fontString:function(e,t,i){return t+" "+e+"px "+i},requestAnimFrame:le,throttled:ce,debounce:de,_toLeftRightCenter:he,_alignStartEnd:ue,_textX:pe,_getStartAndCountOfVisiblePoints:fe,_scaleRangesChanged:ge,_pointInLine:ti,_steppedInterpolation:ii,_bezierInterpolation:ni,formatNumber:ai,toLineHeight:li,_readValueToProps:ci,toTRBL:di,toTRBLCorners:hi,toPadding:ui,toFont:pi,resolve:fi,_addGrace:gi,createContext:mi,PI:M,TAU:k,PITAU:P,INFINITY:$,RAD_PER_DEG:D,HALF_PI:A,QUARTER_PI:L,TWO_THIRDS_PI:O,log10:I,sign:z,niceNum:R,_factorize:N,isNumber:B,almostEquals:F,almostWhole:j,_setMinAndMaxByKey:H,toRadians:V,toDegrees:W,_decimalPlaces:q,getAngleFromPoint:Y,distanceBetweenPoints:X,_angleDiff:G,_normalizeAngle:U,_angleBetween:K,_limitValue:Q,_int16Range:Z,_isBetween:J,getRtlAdapter:vi,overrideTextDirection:bi,restoreTextDirection:xi,_boundSegment:_i,_boundSegments:Si,_computeSegments:Ti});function Pi(e,t,i,n){const{controller:s,data:a,_sorted:r}=e,o=s._cachedMeta.iScale;if(o&&t===o.axis&&"r"!==t&&r&&a.length){const e=o._reversePixels?ie:te;if(!n)return e(a,t,i);if(s._sharedOptions){const n=a[0],s="function"==typeof n.getRange&&n.getRange(t);if(s){const n=e(a,t,i-s),r=e(a,t,i+s);return{lo:n.lo,hi:r.hi}}}}return{lo:0,hi:a.length-1}}function $i(e,t,i,n,s){const a=e.getSortedVisibleDatasetMetas(),r=i[t];for(let e=0,i=a.length;e<i;++e){const{index:i,data:o}=a[e],{lo:l,hi:c}=Pi(a[e],t,r,s);for(let e=l;e<=c;++e){const t=o[e];t.skip||n(t,i,e)}}}function Di(e,t,i,n,s){const a=[];return s||e.isPointInArea(t)?($i(e,i,t,(function(i,r,o){(s||_t(i,e.chartArea,0))&&i.inRange(t.x,t.y,n)&&a.push({element:i,datasetIndex:r,index:o})}),!0),a):a}function Ai(e,t,i,n,s,a){return a||e.isPointInArea(t)?"r"!==i||n?function(e,t,i,n,s,a){let r=[];const o=function(e){const t=-1!==e.indexOf("x"),i=-1!==e.indexOf("y");return function(e,n){const s=t?Math.abs(e.x-n.x):0,a=i?Math.abs(e.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}(i);let l=Number.POSITIVE_INFINITY;return $i(e,i,t,(function(i,c,d){const h=i.inRange(t.x,t.y,s);if(n&&!h)return;const u=i.getCenterPoint(s);if(!a&&!e.isPointInArea(u)&&!h)return;const p=o(t,u);p<l?(r=[{element:i,datasetIndex:c,index:d}],l=p):p===l&&r.push({element:i,datasetIndex:c,index:d})})),r}(e,t,i,n,s,a):function(e,t,i,n){let s=[];return $i(e,i,t,(function(e,i,a){const{startAngle:r,endAngle:o}=e.getProps(["startAngle","endAngle"],n),{angle:l}=Y(e,{x:t.x,y:t.y});K(l,r,o)&&s.push({element:e,datasetIndex:i,index:a})})),s}(e,t,i,s):[]}function Li(e,t,i,n,s){const a=[],r="x"===i?"inXRange":"inYRange";let o=!1;return $i(e,i,t,((e,n,l)=>{e[r](t[i],s)&&(a.push({element:e,datasetIndex:n,index:l}),o=o||e.inRange(t.x,t.y,s))})),n&&!o?[]:a}var Oi={evaluateInteractionItems:$i,modes:{index(e,t,i,n){const s=ct(t,e),a=i.axis||"x",r=i.includeInvisible||!1,o=i.intersect?Di(e,s,a,n,r):Ai(e,s,a,!1,n,r),l=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=o[0].index,i=e.data[t];i&&!i.skip&&l.push({element:i,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,i,n){const s=ct(t,e),a=i.axis||"xy",r=i.includeInvisible||!1;let o=i.intersect?Di(e,s,a,n,r):Ai(e,s,a,!1,n,r);if(o.length>0){const t=o[0].datasetIndex,i=e.getDatasetMeta(t).data;o=[];for(let e=0;e<i.length;++e)o.push({element:i[e],datasetIndex:t,index:e})}return o},point:(e,t,i,n)=>Di(e,ct(t,e),i.axis||"xy",n,i.includeInvisible||!1),nearest(e,t,i,n){const s=ct(t,e),a=i.axis||"xy",r=i.includeInvisible||!1;return Ai(e,s,a,i.intersect,n,r)},x:(e,t,i,n)=>Li(e,ct(t,e),"x",i.intersect,n),y:(e,t,i,n)=>Li(e,ct(t,e),"y",i.intersect,n)}};const Ii=["left","top","right","bottom"];function zi(e,t){return e.filter((e=>e.pos===t))}function Ri(e,t){return e.filter((e=>-1===Ii.indexOf(e.pos)&&e.box.axis===t))}function Ni(e,t){return e.sort(((e,i)=>{const n=t?i:e,s=t?e:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight}))}function Bi(e,t,i,n){return Math.max(e[i],t[i])+Math.max(e[n],t[n])}function Fi(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function ji(e,t,i,n){const{pos:a,box:r}=i,o=e.maxPadding;if(!s(a)){i.size&&(e[a]-=i.size);const t=n[i.stack]||{size:0,count:1};
vendor: 4,356 bytes, line 1
1t.size=Math.max(t.size,i.horizontal?r.height:r.width),i.size=t.size/t.count,e[a]+=i.size}r.getPadding&&Fi(o,r.getPadding());const l=Math.max(0,t.outerWidth-Bi(o,e,"left","right")),c=Math.max(0,t.outerHeight-Bi(o,e,"top","bottom")),d=l!==e.w,h=c!==e.h;return e.w=l,e.h=c,i.horizontal?{same:d,other:h}:{same:h,other:d}}function Hi(e,t){const i=t.maxPadding;return function(e){const n={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{n[e]=Math.max(t[e],i[e])})),n}(e?["left","right"]:["top","bottom"])}function Vi(e,t,i,n){const s=[];let a,r,o,l,c,d;for(a=0,r=e.length,c=0;a<r;++a){o=e[a],l=o.box,l.update(o.width||t.w,o.height||t.h,Hi(o.horizontal,t));const{same:r,other:h}=ji(t,i,o,n);c|=r&&s.length,d=d||h,l.fullSize||s.push(o)}return c&&Vi(s,t,i,n)||d}function Wi(e,t,i,n,s){e.top=i,e.left=t,e.right=t+n,e.bottom=i+s,e.width=n,e.height=s}function qi(e,t,i,n){const s=i.padding;let{x:a,y:r}=t;for(const o of e){const e=o.box,l=n[o.stack]||{count:1,placed:0,weight:1},c=o.stackWeight/l.weight||1;if(o.horizontal){const n=t.w*c,a=l.size||e.height;S(l.start)&&(r=l.start),e.fullSize?Wi(e,s.left,r,i.outerWidth-s.right-s.left,a):Wi(e,t.left+l.placed,r,n,a),l.start=r,l.placed+=n,r=e.bottom}else{const n=t.h*c,r=l.size||e.width;S(l.start)&&(a=l.start),e.fullSize?Wi(e,a,s.top,r,i.outerHeight-s.bottom-s.top):Wi(e,a,t.top+l.placed,r,n),l.start=a,l.placed+=n,a=e.right}}t.x=a,t.y=r}tt.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Yi={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const i=e.boxes?e.boxes.indexOf(t):-1;-1!==i&&e.boxes.splice(i,1)},configure(e,t,i){t.fullSize=i.fullSize,t.position=i.position,t.weight=i.weight},update(e,t,i,n){if(!e)return;const s=ui(e.options.layout.padding),a=Math.max(t-s.width,0),r=Math.max(i-s.height,0),o=function(e){const t=function(e){const t=[];let i,n,s,a,r,o;for(i=0,n=(e||[]).length;i<n;++i)s=e[i],({position:a,options:{stack:r,stackWeight:o=1}}=s),t.push({index:i,box:s,pos:a,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&a+r,stackWeight:o});return t}(e),i=Ni(t.filter((e=>e.box.fullSize)),!0),n=Ni(zi(t,"left"),!0),s=Ni(zi(t,"right")),a=Ni(zi(t,"top"),!0),r=Ni(zi(t,"bottom")),o=Ri(t,"x"),l=Ri(t,"y");return{fullSize:i,leftAndTop:n.concat(a),rightAndBottom:s.concat(l).concat(r).concat(o),chartArea:zi(t,"chartArea"),vertical:n.concat(s).concat(l),horizontal:a.concat(r).concat(o)}}(e.boxes),l=o.vertical,c=o.horizontal;h(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const d=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,u=Object.freeze({outerWidth:t,outerHeight:i,padding:s,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),p=Object.assign({},s);Fi(p,ui(n));const f=Object.assign({maxPadding:p,w:a,h:r,x:s.left,y:s.top},s),g=function(e,t){const i=function(e){const t={};for(const i of e){const{stack:e,pos:n,stackWeight:s}=i;if(!e||!Ii.includes(n))continue;const a=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return t}(e),{vBoxMaxWidth:n,hBoxMaxHeight:s}=t;let a,r,o;for(a=0,r=e.length;a<r;++a){o=e[a];const{fullSize:r}=o.box,l=i[o.stack],c=l&&o.stackWeight/l.weight;o.horizontal?(o.width=c?c*n:r&&t.availableWidth,o.height=s):(o.width=n,o.height=c?c*s:r&&t.availableHeight)}return i}(l.concat(c),u);Vi(o.fullSize,f,u,g),Vi(l,f,u,g),Vi(c,f,u,g)&&Vi(l,f,u,g),function(e){const t=e.maxPadding;function i(i){const n=Math.max(t[i]-e[i],0);return e[i]+=n,n}e.y+=i("top"),e.x+=i("left"),i("right"),i("bottom")}(f),qi(o.leftAndTop,f,u,g),f.x+=f.w,f.y+=f.h,qi(o.rightAndBottom,f,u,g),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},h(o.chartArea,(t=>{const i=t.box;Object.assign(i,e.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Xi{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,i){}removeEventListener(e,t,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,i,n){return t=Math.max(0,t||e.width),i=i||e.height,{width:t,height:Math.max(0,n?Math.floor(t/n):i)}}isAttached(e){return!0}updateConfig(e){}}class Gi extends Xi{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}
vendor: 5,660 bytes, line 1
1const Ui={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ki=e=>null===e||""===e,Qi=!!pt&&{passive:!0};function Zi(e,t,i){e.canvas.removeEventListener(t,i,Qi)}function Ji(e,t){for(const i of e)if(i===t||i.contains(t))return!0}function en(e,t,i){const n=e.canvas,s=new MutationObserver((e=>{let t=!1;for(const i of e)t=t||Ji(i.addedNodes,n),t=t&&!Ji(i.removedNodes,n);t&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}function tn(e,t,i){const n=e.canvas,s=new MutationObserver((e=>{let t=!1;for(const i of e)t=t||Ji(i.removedNodes,n),t=t&&!Ji(i.addedNodes,n);t&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}const nn=new Map;let sn=0;function an(){const e=window.devicePixelRatio;e!==sn&&(sn=e,nn.forEach(((t,i)=>{i.currentDevicePixelRatio!==e&&t()})))}function rn(e,t,i){const n=e.canvas,s=n&&nt(n);if(!s)return;const a=ce(((e,t)=>{const n=s.clientWidth;i(e,t),n<s.clientWidth&&i()}),window),r=new ResizeObserver((e=>{const t=e[0],i=t.contentRect.width,n=t.contentRect.height;0===i&&0===n||a(i,n)}));return r.observe(s),function(e,t){nn.size||window.addEventListener("resize",an),nn.set(e,t)}(e,a),r}function on(e,t,i){i&&i.disconnect(),"resize"===t&&function(e){nn.delete(e),nn.size||window.removeEventListener("resize",an)}(e)}function ln(e,t,i){const n=e.canvas,s=ce((t=>{null!==e.ctx&&i(function(e,t){const i=Ui[e.type]||e.type,{x:n,y:s}=ct(e,t);return{type:i,chart:t,native:e,x:void 0!==n?n:null,y:void 0!==s?s:null}}(t,e))}),e,(e=>{const t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,i){e.addEventListener(t,i,Qi)}(n,t,s),s}class cn extends Xi{acquireContext(e,t){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(function(e,t){const i=e.style,n=e.getAttribute("height"),s=e.getAttribute("width");if(e.$chartjs={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Ki(s)){const t=ft(e,"width");void 0!==t&&(e.width=t)}if(Ki(n))if(""===e.style.height)e.height=e.width/(t||2);else{const t=ft(e,"height");void 0!==t&&(e.height=t)}}(e,t),i):null}releaseContext(e){const t=e.canvas;if(!t.$chartjs)return!1;const n=t.$chartjs.initial;["height","width"].forEach((e=>{const s=n[e];i(s)?t.removeAttribute(e):t.setAttribute(e,s)}));const s=n.style||{};return Object.keys(s).forEach((e=>{t.style[e]=s[e]})),t.width=t.width,delete t.$chartjs,!0}addEventListener(e,t,i){this.removeEventListener(e,t);const n=e.$proxies||(e.$proxies={}),s={attach:en,detach:tn,resize:rn}[t]||ln;n[t]=s(e,t,i)}removeEventListener(e,t){const i=e.$proxies||(e.$proxies={}),n=i[t];n&&(({attach:on,detach:on,resize:on}[t]||Zi)(e,t,n),i[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,i,n){return ht(e,t,i,n)}isAttached(e){const t=nt(e);return!(!t||!t.isConnected)}}function dn(e){return!it()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Gi:cn}var hn=Object.freeze({__proto__:null,_detectPlatform:dn,BasePlatform:Xi,BasicPlatform:Gi,DomPlatform:cn});const un="transparent",pn={boolean:(e,t,i)=>i>.5?t:e,color(e,t,i){const n=Ue(e||un),s=n.valid&&Ue(t||un);return s&&s.valid?s.mix(n,i).hexString():t},number:(e,t,i)=>e+(t-e)*i};class fn{constructor(e,t,i,n){const s=t[i];n=fi([e.to,n,s,e.from]);const a=fi([e.from,s,n]);this._active=!0,this._fn=e.fn||pn[e.type||typeof a],this._easing=ei[e.easing]||ei.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=i,this._from=a,this._to=n,this._promises=void 0}active(){return this._active}update(e,t,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,a=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=fi([e.to,t,n,e.from]),this._from=fi([e.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,i=this._duration,n=this._prop,s=this._from,a=this._loop,r=this._to;let o;if(this._active=s!==r&&(a||t<i),!this._active)return this._target[n]=r,void this._notify(!0);t<0?this._target[n]=s:(o=t/i%2,o=a&&o>1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[n]=this._fn(s,r,o))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,i)=>{e.push({res:t,rej:i})}))}_notify(e){const t=e?"res":"rej",i=this._promises||[];for(let e=0;e<i.length;e++)i[e][t]()}}tt.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const gn=Object.keys(tt.animation);tt.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),tt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),tt.describe("animations",{_fallback:"animation"}),tt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class mn{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!s(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach((i=>{const a=e[i];if(!s(a))return;const r={};for(const e of gn)r[e]=a[e];
vendor: 5,688 bytes, line 1
1(n(a.properties)&&a.properties||[i]).forEach((e=>{e!==i&&t.has(e)||t.set(e,r)}))}))}_animateOptions(e,t){const i=t.options,n=function(e,t){if(!t)return;let i=e.options;if(i)return i.$shared&&(e.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;e.options=t}(e,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(e,t){const i=[],n=Object.keys(t);for(let t=0;t<n.length;t++){const s=e[n[t]];s&&s.active()&&i.push(s.wait())}return Promise.all(i)}(e.options.$animations,i).then((()=>{e.options=i}),(()=>{})),s}_createAnimations(e,t){const i=this._properties,n=[],s=e.$animations||(e.$animations={}),a=Object.keys(t),r=Date.now();let o;for(o=a.length-1;o>=0;--o){const l=a[o];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(e,t));continue}const c=t[l];let d=s[l];const h=i.get(l);if(d){if(h&&d.active()){d.update(h,c,r);continue}d.cancel()}h&&h.duration?(s[l]=d=new fn(h,e,l,c),n.push(d)):e[l]=c}return n}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const i=this._createAnimations(e,t);return i.length?(me.add(this._chart,i),!0):void 0}}function vn(e,t){const i=e&&e.options||{},n=i.reverse,s=void 0===i.min?t:0,a=void 0===i.max?t:0;return{start:n?a:s,end:n?s:a}}function bn(e,t){const i=[],n=e._getSortedDatasetMetas(t);let s,a;for(s=0,a=n.length;s<a;++s)i.push(n[s].index);return i}function xn(e,t,i,n={}){const s=e.keys,r="single"===n.mode;let o,l,c,d;if(null!==t){for(o=0,l=s.length;o<l;++o){if(c=+s[o],c===i){if(n.all)continue;break}d=e.values[c],a(d)&&(r||0===t||z(t)===z(d))&&(t+=d)}return t}}function yn(e,t){const i=e&&e.options.stacked;return i||void 0===i&&void 0!==t.stack}function wn(e,t,i){const n=e[t]||(e[t]={});return n[i]||(n[i]={})}function _n(e,t,i,n){for(const s of t.getMatchingVisibleMetas(n).reverse()){const t=e[s.index];if(i&&t>0||!i&&t<0)return s.index}return null}function Sn(e,t){const{chart:i,_cachedMeta:n}=e,s=i._stacks||(i._stacks={}),{iScale:a,vScale:r,index:o}=n,l=a.axis,c=r.axis,d=function(e,t,i){return`${e.id}.${t.id}.${i.stack||i.type}`}(a,r,n),h=t.length;let u;for(let e=0;e<h;++e){const i=t[e],{[l]:a,[c]:h}=i;u=(i._stacks||(i._stacks={}))[c]=wn(s,d,a),u[o]=h,u._top=_n(u,r,!0,n.type),u._bottom=_n(u,r,!1,n.type)}}function Tn(e,t){const i=e.scales;return Object.keys(i).filter((e=>i[e].axis===t)).shift()}function Cn(e,t){const i=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[n]||void 0===t[n][i])return;delete t[n][i]}}}const En=e=>"reset"===e||"none"===e,Mn=(e,t)=>t?e:Object.assign({},e);class kn{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=yn(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&Cn(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,i=this.getDataset(),n=(e,t,i,n)=>"x"===e?t:"r"===e?n:i,s=t.xAxisID=o(i.xAxisID,Tn(e,"x")),a=t.yAxisID=o(i.yAxisID,Tn(e,"y")),r=t.rAxisID=o(i.rAxisID,Tn(e,"r")),l=t.indexAxis,c=t.iAxisID=n(l,s,a,r),d=t.vAxisID=n(l,a,s,r);t.xScale=this.getScaleForId(s),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(r),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&re(this._data,this),e._stacked&&Cn(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),i=this._data;if(s(t))this._data=function(e){const t=Object.keys(e),i=new Array(t.length);let n,s,a;for(n=0,s=t.length;n<s;++n)a=t[n],i[n]={x:a,y:e[a]};return i}(t);else if(i!==t){if(i){re(i,this);const e=this._cachedMeta;Cn(e),e._parsed=[]}t&&Object.isExtensible(t)&&ae(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=t._stacked;t._stacked=yn(t.vScale,t),t.stack!==i.stack&&(n=!0,Cn(t),t.stack=i.stack),this._resyncElements(e),(n||s!==t._stacked)&&Sn(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:i,_data:a}=this,{iScale:r,_stacked:o}=i,l=r.axis;let c,d,h,u=0===e&&t===a.length||i._sorted,p=e>0&&i._parsed[e-1];if(!1===this._parsing)i._parsed=a,i._sorted=!0,h=a;else{h=n(a[e])?this.parseArrayData(i,a,e,t):s(a[e])?this.parseObjectData(i,a,e,t):this.parsePrimitiveData(i,a,e,t);const r=()=>null===d[l]||p&&d[l]<p[l];for(c=0;c<t;++c)i._parsed[c+e]=d=h[c],u&&(r()&&(u=!1),p=d);i._sorted=u}o&&Sn(this,h)}parsePrimitiveData(e,t,i,n){const{iScale:s,vScale:a}=e,r=s.axis,o=a.axis,l=s.getLabels(),c=s===a,d=new Array(n);let h,u,p;for(h=0,u=n;h<u;++h)p=h+i,d[h]={[r]:c||s.parse(l[p],p),[o]:a.parse(t[p],p)};return d}parseArrayData(e,t,i,n){const{xScale:s,yScale:a}=e,r=new Array(n);let o,l,c,d;for(o=0,l=n;o<l;
vendor: 25,071 bytes, line 1
1++o)c=o+i,d=t[c],r[o]={x:s.parse(d[0],c),y:a.parse(d[1],c)};return r}parseObjectData(e,t,i,n){const{xScale:s,yScale:a}=e,{xAxisKey:r="x",yAxisKey:o="y"}=this._parsing,l=new Array(n);let c,d,h,u;for(c=0,d=n;c<d;++c)h=c+i,u=t[h],l[c]={x:s.parse(y(u,r),h),y:a.parse(y(u,o),h)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,i){const n=this.chart,s=this._cachedMeta,a=t[e.axis];return xn({keys:bn(n,!0),values:t._stacks[e.axis]},a,s.index,{mode:i})}updateRangeFromParsed(e,t,i,n){const s=i[t.axis];let a=null===s?NaN:s;const r=n&&i._stacks[t.axis];n&&r&&(n.values=r,a=xn(n,s,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,t){const i=this._cachedMeta,n=i._parsed,s=i._sorted&&e===i.iScale,r=n.length,o=this._getOtherScale(e),l=((e,t,i)=>e&&!t.hidden&&t._stacked&&{keys:bn(i,!0),values:null})(t,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:h}=function(e){const{min:t,max:i,minDefined:n,maxDefined:s}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(o);let u,p;function f(){p=n[u];const t=p[o.axis];return!a(p[e.axis])||d>t||h<t}for(u=0;u<r&&(f()||(this.updateRangeFromParsed(c,e,p,l),!s));++u);if(s)for(u=r-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(c,e,p,l);break}return c}getAllParsedValues(e){const t=this._cachedMeta._parsed,i=[];let n,s,r;for(n=0,s=t.length;n<s;++n)r=t[n][e.axis],a(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,i=t.iScale,n=t.vScale,s=this.getParsed(e);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:n?""+n.getLabelForValue(s[n.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,i,n,a;return s(e)?(t=e.top,i=e.right,n=e.bottom,a=e.left):t=i=n=a=e,{top:t,right:i,bottom:n,left:a,disabled:!1===e}}(o(this.options.clip,function(e,t,i){if(!1===i)return!1;const n=vn(e,i),s=vn(t,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,i=this._cachedMeta,n=i.data||[],s=t.chartArea,a=[],r=this._drawStart||0,o=this._drawCount||n.length-r,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(e,s,r,o),c=r;c<r+o;++c){const t=n[c];t.hidden||(t.active&&l?a.push(t):t.draw(e,s))}for(c=0;c<a.length;++c)a[c].draw(e,s)}getStyle(e,t){const i=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,t,i){const n=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];s=t.$context||(t.$context=function(e,t,i){return mi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:i,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),s.parsed=this.getParsed(e),s.raw=n.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=function(e,t){return mi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=n,s.index=s.datasetIndex=this.index;return s.active=!!t,s.mode=i,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",i){const n="active"===t,s=this._cachedDataOpts,a=e+"-"+t,r=s[a],o=this.enableOptionSharing&&S(i);if(r)return Mn(r,o);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),d=n?[`${e}Hover`,"hover",e,""]:[e,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys(tt.elements[e]),p=l.resolveNamedOptions(h,u,(()=>this.getContext(i,n)),d);return p.$shared&&(p.$shared=o,s[a]=Object.freeze(Mn(p,o))),p}_resolveAnimations(e,t,i){const n=this.chart,s=this._cachedDataOpts,a=`animation-${t}`,r=s[a];if(r)return r;let o;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,t),a=n.getOptionScopes(this.getDataset(),s);o=n.createResolver(a,this.getContext(e,i,t))}const l=new mn(n,o&&o.animations);return o&&o._cacheable&&(s[a]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||En(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const i=this.resolveDataElementOptions(e,t),n=this._sharedOptions,s=this.getSharedOptions(i),a=this.includeOptions(t,s)||s!==n;return this.updateSharedOptions(s,t,i),{sharedOptions:s,includeOptions:a}}updateElement(e,t,i,n){En(n)?Object.assign(e,i):this._resolveAnimations(t,n).update(e,i)}updateSharedOptions(e,t,i){e&&!En(t)&&this._resolveAnimations(void 0,t).update(e,i)}_setStyle(e,t,i,n){e.active=n;const s=this.getStyle(t,n);this._resolveAnimations(t,i,n).update(e,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(e,t,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,t,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,i=this._cachedMeta.data;for(const[e,t,i]of this._syncList)this[e](t,i);this._syncList=[];const n=i.length,s=t.length,a=Math.min(s,n);a&&this.parse(0,a),s>n?this._insertElements(n,s-n,e):s<n&&this._removeElements(s,n-s)}_insertElements(e,t,i=!0){const n=this._cachedMeta,s=n.data,a=e+t;let r;const o=e=>{for(e.length+=t,r=e.length-1;r>=a;r--)e[r]=e[r-t]};for(o(s),r=e;r<a;++r)s[r]=new this.dataElementType;this._parsing&&o(n._parsed),this.parse(e,t),i&&this.updateElements(s,e,t,"reset")}updateElements(e,t,i,n){}_removeElements(e,t){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(e,t);i._stacked&&Cn(i,n)}i.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,i,n]=e;this[t](i,n)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const i=arguments.length-2;i&&this._sync(["_insertElements",e,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}kn.defaults={},kn.prototype.datasetElementType=null,kn.prototype.dataElementType=null;class Pn{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:i}=this.getProps(["x","y"],e);return{x:t,y:i}}hasValue(){return B(this.x)&&B(this.y)}getProps(e,t){const i=this.$animations;if(!t||!i)return this;const n={};return e.forEach((e=>{n[e]=i[e]&&i[e].active()?i[e]._to:this[e]})),n}}Pn.defaults={},Pn.defaultRoutes=void 0;const $n={values:e=>n(e)?e:""+e,numeric(e,t,i){if(0===e)return"0";const n=this.chart.options.locale;let s,a=e;if(i.length>1){const t=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(t<1e-4||t>1e15)&&(s="scientific"),a=function(e,t){let i=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(i)>=1&&e!==Math.floor(e)&&(i=e-Math.floor(e)),i}(e,i)}const r=I(Math.abs(a)),o=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),ai(e,n,l)},logarithmic(e,t,i){if(0===e)return"0";const n=e/Math.pow(10,Math.floor(I(e)));return 1===n||2===n||5===n?$n.numeric.call(this,e,t,i):""}};var Dn={formatters:$n};function An(e,t){const n=e.options.ticks,s=n.maxTicksLimit||function(e){const t=e.options.offset,i=e._tickSize(),n=e._length/i+(t?0:1),s=e._maxLength/i;return Math.floor(Math.min(n,s))}(e),a=n.major.enabled?function(e){const t=[];let i,n;for(i=0,n=e.length;i<n;i++)e[i].major&&t.push(i);return t}(t):[],r=a.length,o=a[0],l=a[r-1],c=[];if(r>s)return function(e,t,i,n){let s,a=0,r=i[0];for(n=Math.ceil(n),s=0;s<e.length;s++)s===r&&(t.push(e[s]),a++,r=i[a*n])}(t,c,a,r/s),c;const d=function(e,t,i){const n=function(e){const t=e.length;let i,n;if(t<2)return!1;for(n=e[0],i=1;i<t;++i)if(e[i]-e[i-1]!==n)return!1;return n}(e),s=t.length/i;if(!n)return Math.max(s,1);const a=N(n);for(let e=0,t=a.length-1;e<t;e++){const t=a[e];if(t>s)return t}return Math.max(s,1)}(a,t,s);if(r>0){let e,n;const s=r>1?Math.round((l-o)/(r-1)):null;for(Ln(t,c,d,i(s)?0:o-s,o),e=0,n=r-1;e<n;e++)Ln(t,c,d,a[e],a[e+1]);return Ln(t,c,d,l,i(s)?t.length:l+s),c}return Ln(t,c,d),c}function Ln(e,t,i,n,s){const a=o(n,0),r=Math.min(o(s,e.length),e.length);let l,c,d,h=0;for(i=Math.ceil(i),s&&(l=s-n,i=l/Math.floor(l/i)),d=a;d<0;)h++,d=Math.round(a+h*i);for(c=Math.max(a,0);c<r;c++)c===d&&(t.push(e[c]),h++,d=Math.round(a+h*i))}tt.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Dn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),tt.route("scale.ticks","color","","color"),tt.route("scale.grid","color","","borderColor"),tt.route("scale.grid","borderColor","","borderColor"),tt.route("scale.title","color","","color"),tt.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),tt.describe("scales",{_fallback:"scale"}),tt.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const On=(e,t,i)=>"top"===t||"left"===t?e[t]+i:e[t]-i;function In(e,t){const i=[],n=e.length/t,s=e.length;let a=0;for(;a<s;a+=n)i.push(e[Math.floor(a)]);return i}function zn(e,t,i){const n=e.ticks.length,s=Math.min(t,n-1),a=e._startPixel,r=e._endPixel,o=1e-6;let l,c=e.getPixelForTick(s);if(!(i&&(l=1===n?Math.max(c-a,r-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(s-1))/2,c+=s<t?l:-l,c<a-o||c>r+o)))return c}function Rn(e){return e.drawTicks?e.tickLength:0}function Nn(e,t){if(!e.display)return 0;const i=pi(e.font,t),s=ui(e.padding);return(n(e.text)?e.text.length:1)*i.lineHeight+s.height}function Bn(e,t,i){let n=he(e);return(i&&"right"!==t||!i&&"right"===t)&&(n=(e=>"left"===e?"right":"right"===e?"left":e)(n)),n}class Fn extends Pn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:i,_suggestedMax:n}=this;return e=r(e,Number.POSITIVE_INFINITY),t=r(t,Number.NEGATIVE_INFINITY),i=r(i,Number.POSITIVE_INFINITY),n=r(n,Number.NEGATIVE_INFINITY),{min:r(e,i),max:r(t,n),minDefined:a(e),maxDefined:a(t)}}getMinMax(e){let t,{min:i,max:n,minDefined:s,maxDefined:a}=this.getUserBounds();if(s&&a)return{min:i,max:n};const o=this.getMatchingVisibleMetas();for(let r=0,l=o.length;r<l;++r)t=o[r].controller.getMinMax(this,e),s||(i=Math.min(i,t.min)),a||(n=Math.max(n,t.max));return i=a&&i>n?n:i,n=s&&i>n?i:n,{min:r(i,r(n,i)),max:r(n,r(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){d(this.options.beforeUpdate,[this])}update(e,t,i){const{beginAtZero:n,grace:s,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=gi(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=r<this.ticks.length;this._convertTicksToLabels(o?In(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=An(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),o&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,i=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,i=!i),this._startPixel=e,this._endPixel=t,this._reversePixels=i,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){d(this.options.afterUpdate,[this])}beforeSetDimensions(){d(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){d(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),d(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){d(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let i,n,s;for(i=0,n=e.length;i<n;i++)s=e[i],s.label=d(t.callback,[s.value,i,e],this)}afterTickToLabelConversion(){d(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){d(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,i=this.ticks.length,n=t.minRotation||0,s=t.maxRotation;let a,r,o,l=n;if(!this._isVisible()||!t.display||n>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=Q(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/i:u/(i-1),d+6>a&&(a=u/(i-(e.offset?.5:1)),r=this.maxHeight-Rn(e.grid)-t.padding-Nn(e.title,this.chart.options.font),o=Math.sqrt(d*d+h*h),l=W(Math.min(Math.asin(Q((c.highest.height+6)/a,-1,1)),Math.asin(Q(r/o,-1,1))-Math.asin(Q(h/o,-1,1)))),l=Math.max(n,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){d(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){d(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:i,title:n,grid:s}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=Nn(n,t.options.font);if(r?(e.width=this.maxWidth,e.height=Rn(s)+a):(e.height=this.maxHeight,e.width=Rn(s)+a),i.display&&this.ticks.length){const{first:t,last:n,widest:s,highest:a}=this._getLabelSizes(),o=2*i.padding,l=V(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(r){const t=i.mirror?0:d*s.width+c*a.height;e.height=Math.min(this.maxHeight,e.height+t+o)}else{const t=i.mirror?0:c*s.width+d*a.height;e.width=Math.min(this.maxWidth,e.width+t+o)}this._calculatePadding(t,n,d,c)}}this._handleMargins(),r?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,i,n){const{ticks:{align:s,padding:a},position:r}=this.options,o=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;o?l?(d=n*e.width,h=i*t.height):(d=i*e.height,h=n*t.width):"start"===s?h=t.width:"end"===s?d=e.width:"inner"!==s&&(d=e.width/2,h=t.width/2),this.paddingLeft=Math.max((d-r+a)*this.width/(this.width-r),0),this.paddingRight=Math.max((h-c+a)*this.width/(this.width-c),0)}else{let i=t.height/2,n=e.height/2;"start"===s?(i=0,n=e.height):"end"===s&&(i=t.height,n=0),this.paddingTop=i+a,this.paddingBottom=n+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){d(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)i(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let i=this.ticks;t<i.length&&(i=In(i,t)),this._labelSizes=e=this._computeLabelSizes(i,i.length)}return e}_computeLabelSizes(e,t){const{ctx:s,_longestTextCache:a}=this,r=[],o=[];let l,c,d,u,p,f,g,m,v,b,x,y=0,w=0;for(l=0;l<t;++l){if(u=e[l].label,p=this._resolveTickFontOptions(l),s.font=f=p.string,g=a[f]=a[f]||{data:{},gc:[]},m=p.lineHeight,v=b=0,i(u)||n(u)){if(n(u))for(c=0,d=u.length;c<d;++c)x=u[c],i(x)||n(x)||(v=mt(s,g.data,g.gc,v,x),b+=m)}else v=mt(s,g.data,g.gc,v,u),b=m;r.push(v),o.push(b),y=Math.max(v,y),w=Math.max(b,w)}!function(e,t){h(e,(e=>{const i=e.gc,n=i.length/2;let s;if(n>t){for(s=0;s<n;++s)delete e.data[i[s]];i.splice(0,n)}}))}(a,t);const _=r.indexOf(y),S=o.indexOf(w),T=e=>({width:r[e]||0,height:o[e]||0});return{first:T(0),last:T(t-1),widest:T(_),highest:T(S),widths:r,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return Z(this._alignToPixels?bt(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const i=t[e];return i.$context||(i.$context=function(e,t,i){return mi(e,{tick:i,index:t,type:"tick"})}(this.getContext(),e,i))}return this.$context||(this.$context=mi(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=V(this.labelRotation),i=Math.abs(Math.cos(t)),n=Math.abs(Math.sin(t)),s=this._getLabelSizes(),a=e.autoSkipPadding||0,r=s?s.widest.width+a:0,o=s?s.highest.height+a:0;return this.isHorizontal()?o*i>r*n?r/i:o/n:o*n<r*i?o/i:r/n}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,i=this.chart,n=this.options,{grid:a,position:r}=n,l=a.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=Rn(a),u=[],p=a.setContext(this.getContext()),f=p.drawBorder?p.borderWidth:0,g=f/2,m=function(e){return bt(i,e,f)};let v,b,x,y,w,_,S,T,C,E,M,k;if("top"===r)v=m(this.bottom),_=this.bottom-h,T=v-g,E=m(e.top)+g,k=e.bottom;else if("bottom"===r)v=m(this.top),E=e.top,k=m(e.bottom)-g,_=v+g,T=this.top+h;else if("left"===r)v=m(this.right),w=this.right-h,S=v-g,C=m(e.left)+g,M=e.right;else if("right"===r)v=m(this.left),C=e.left,M=m(e.right)-g,w=v+g,S=this.left+h;else if("x"===t){if("center"===r)v=m((e.top+e.bottom)/2+.5);else if(s(r)){const e=Object.keys(r)[0],t=r[e];v=m(this.chart.scales[e].getPixelForValue(t))}E=e.top,k=e.bottom,_=v+g,T=_+h}else if("y"===t){if("center"===r)v=m((e.left+e.right)/2);else if(s(r)){const e=Object.keys(r)[0],t=r[e];v=m(this.chart.scales[e].getPixelForValue(t))}w=v-g,S=w-h,C=e.left,M=e.right}const P=o(n.ticks.maxTicksLimit,d),$=Math.max(1,Math.ceil(d/P));for(b=0;b<d;b+=$){const e=a.setContext(this.getContext(b)),t=e.lineWidth,n=e.color,s=e.borderDash||[],r=e.borderDashOffset,o=e.tickWidth,d=e.tickColor,h=e.tickBorderDash||[],p=e.tickBorderDashOffset;x=zn(this,b,l),void 0!==x&&(y=bt(i,x,t),c?w=S=C=M=y:_=T=E=k=y,u.push({tx1:w,ty1:_,tx2:S,ty2:T,x1:C,y1:E,x2:M,y2:k,width:t,color:n,borderDash:s,borderDashOffset:r,tickWidth:o,tickColor:d,tickBorderDash:h,tickBorderDashOffset:p}))}return this._ticksLength=d,this._borderValue=v,u}_computeLabelItems(e){const t=this.axis,i=this.options,{position:a,ticks:r}=i,o=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:h,mirror:u}=r,p=Rn(i.grid),f=p+h,g=u?-h:f,m=-V(this.labelRotation),v=[];let b,x,y,w,_,S,T,C,E,M,k,P,$="middle";if("top"===a)S=this.bottom-g,T=this._getXAxisLabelAlignment();else if("bottom"===a)S=this.top+g,T=this._getXAxisLabelAlignment();else if("left"===a){const e=this._getYAxisLabelAlignment(p);T=e.textAlign,_=e.x}else if("right"===a){const e=this._getYAxisLabelAlignment(p);T=e.textAlign,_=e.x}else if("x"===t){if("center"===a)S=(e.top+e.bottom)/2+f;else if(s(a)){const e=Object.keys(a)[0],t=a[e];S=this.chart.scales[e].getPixelForValue(t)+f}T=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===a)_=(e.left+e.right)/2-f;else if(s(a)){const e=Object.keys(a)[0],t=a[e];_=this.chart.scales[e].getPixelForValue(t)}T=this._getYAxisLabelAlignment(p).textAlign}"y"===t&&("start"===c?$="top":"end"===c&&($="bottom"));const D=this._getLabelSizes();for(b=0,x=l.length;b<x;++b){y=l[b],w=y.label;const e=r.setContext(this.getContext(b));C=this.getPixelForTick(b)+r.labelOffset,E=this._resolveTickFontOptions(b),M=E.lineHeight,k=n(w)?w.length:1;const t=k/2,i=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let h,p=T;if(o?(_=C,"inner"===T&&(p=b===x-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),P="top"===a?"near"===d||0!==m?-k*M+M/2:"center"===d?-D.highest.height/2-t*M+M:-D.highest.height+M/2:"near"===d||0!==m?M/2:"center"===d?D.highest.height/2-t*M:D.highest.height-k*M,u&&(P*=-1)):(S=C,P=(1-k)*M/2),e.showLabelBackdrop){const t=ui(e.backdropPadding),i=D.heights[b],n=D.widths[b];let s=S+P-t.top,a=_-t.left;switch($){case"middle":s-=i/2;break;case"bottom":s-=i}switch(T){case"center":a-=n/2;break;case"right":a-=n}h={left:a,top:s,width:n+t.width,height:i+t.height,color:e.backdropColor}}v.push({rotation:m,label:w,font:E,color:i,strokeColor:s,strokeWidth:c,textOffset:P,textAlign:p,textBaseline:$,translation:[_,S],backdrop:h})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-V(this.labelRotation))return"top"===e?"left":"right";let i="center";return"start"===t.align?i="left":"end"===t.align?i="right":"inner"===t.align&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,a=e+s,r=this._getLabelSizes().widest.width;let o,l;return"left"===t?n?(l=this.right+s,"near"===i?o="left":"center"===i?(o="center",l+=r/2):(o="right",l+=r)):(l=this.right-a,"near"===i?o="right":"center"===i?(o="center",l-=r/2):(o="left",l=this.left)):"right"===t?n?(l=this.left+s,"near"===i?o="right":"center"===i?(o="center",l-=r/2):(o="left",l-=r)):(l=this.left+a,"near"===i?o="left":"center"===i?(o="center",l+=r/2):(o="right",l=this.right)):o="right",{textAlign:o,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}
1:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:i,top:n,width:s,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(i,n,s,a),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const i=this.ticks.findIndex((t=>t.value===e));return i>=0?t.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const t=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,a;const r=(e,t,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(t.display)for(s=0,a=n.length;s<a;++s){const e=n[s];t.drawOnChartArea&&r({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&r({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{grid:i}}=this,n=i.setContext(this.getContext()),s=i.drawBorder?n.borderWidth:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let o,l,c,d;this.isHorizontal()?(o=bt(e,this.left,s)-s/2,l=bt(e,this.right,a)+a/2,c=d=r):(c=bt(e,this.top,s)-s/2,d=bt(e,this.bottom,a)+a/2,o=l=r),t.save(),t.lineWidth=n.borderWidth,t.strokeStyle=n.borderColor,t.beginPath(),t.moveTo(o,c),t.lineTo(l,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,i=this._computeLabelArea();i&&St(t,i);const n=this._labelItems||(this._labelItems=this._computeLabelItems(e));let s,a;for(s=0,a=n.length;s<a;++s){const e=n[s],i=e.font,a=e.label;e.backdrop&&(t.fillStyle=e.backdrop.color,t.fillRect(e.backdrop.left,e.backdrop.top,e.backdrop.width,e.backdrop.height)),Mt(t,a,0,e.textOffset,i,e)}i&&Tt(t)}
vendor: 4,184 bytes, line 1
1drawTitle(){const{ctx:e,options:{position:t,title:i,reverse:a}}=this;if(!i.display)return;const r=pi(i.font),o=ui(i.padding),l=i.align;let c=r.lineHeight/2;"bottom"===t||"center"===t||s(t)?(c+=o.bottom,n(i.text)&&(c+=r.lineHeight*(i.text.length-1))):c+=o.top;const{titleX:d,titleY:h,maxWidth:u,rotation:p}=function(e,t,i,n){const{top:a,left:r,bottom:o,right:l,chart:c}=e,{chartArea:d,scales:h}=c;let u,p,f,g=0;const m=o-a,v=l-r;if(e.isHorizontal()){if(p=ue(n,r,l),s(i)){const e=Object.keys(i)[0],n=i[e];f=h[e].getPixelForValue(n)+m-t}else f="center"===i?(d.bottom+d.top)/2+m-t:On(e,i,t);u=l-r}else{if(s(i)){const e=Object.keys(i)[0],n=i[e];p=h[e].getPixelForValue(n)-v+t}else p="center"===i?(d.left+d.right)/2-v+t:On(e,i,t);f=ue(n,o,a),g="left"===i?-A:A}return{titleX:p,titleY:f,maxWidth:u,rotation:g}}(this,c,t,l);Mt(e,i.text,0,0,r,{color:i.color,maxWidth:u,rotation:p,textAlign:Bn(l,t,a),textBaseline:"middle",translation:[d,h]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,i=o(e.grid&&e.grid.z,-1);return this._isVisible()&&this.draw===Fn.prototype.draw?[{z:i,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,a;for(s=0,a=t.length;s<a;++s){const a=t[s];a[i]!==this.id||e&&a.type!==e||n.push(a)}return n}_resolveTickFontOptions(e){return pi(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class jn{constructor(e,t,i){this.type=e,this.scope=t,this.override=i,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let i;(function(e){return"id"in e&&"defaults"in e})(t)&&(i=this.register(t));const n=this.items,s=e.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in n||(n[s]=e,function(e,t,i){const n=m(Object.create(null),[i?tt.get(i):{},tt.get(t),e.defaults]);tt.set(t,n),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((i=>{const n=i.split("."),s=n.pop(),a=[e].concat(n).join("."),r=t[i].split("."),o=r.pop(),l=r.join(".");tt.route(a,s,l,o)}))}(t,e.defaultRoutes),e.descriptors&&tt.describe(t,e.descriptors)}(e,a,i),this.override&&tt.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const t=this.items,i=e.id,n=this.scope;i in t&&delete t[i],n&&i in tt[n]&&(delete tt[n][i],this.override&&delete Qe[i])}}var Hn=new class{constructor(){this.controllers=new jn(kn,"datasets",!0),this.elements=new jn(Pn,"elements"),this.plugins=new jn(Object,"plugins"),this.scales=new jn(Fn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,i){[...t].forEach((t=>{const n=i||this._getRegistryForType(t);i||n.isForType(t)||n===this.plugins&&t.id?this._exec(e,n,t):h(t,(t=>{const n=i||this._getRegistryForType(t);this._exec(e,n,t)}))}))}_exec(e,t,i){const n=_(e);d(i["before"+n],[],i),t[e](i),d(i["after"+n],[],i)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const i=this._typedRegistries[t];
vendor: 10,886 bytes, line 1
1if(i.isForType(e))return i}return this.plugins}_get(e,t,i){const n=t.get(e);if(void 0===n)throw new Error('"'+e+'" is not a registered '+i+".");return n}};class Vn{constructor(){this._init=[]}notify(e,t,i,n){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const s=n?this._descriptors(e).filter(n):this._descriptors(e),a=this._notify(s,e,t,i);return"afterDestroy"===t&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall")),a}_notify(e,t,i,n){n=n||{};for(const s of e){const e=s.plugin;if(!1===d(e[i],[t,n,s.options],e)&&n.cancelable)return!1}return!0}invalidate(){i(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const i=e&&e.config,n=o(i.options&&i.options.plugins,{}),s=function(e){const t={},i=[],n=Object.keys(Hn.plugins.items);for(let e=0;e<n.length;e++)i.push(Hn.getPlugin(n[e]));const s=e.plugins||[];for(let e=0;e<s.length;e++){const n=s[e];-1===i.indexOf(n)&&(i.push(n),t[n.id]=!0)}return{plugins:i,localIds:t}}(i);return!1!==n||t?function(e,{plugins:t,localIds:i},n,s){const a=[],r=e.getContext();for(const o of t){const t=o.id,l=Wn(n[t],s);null!==l&&a.push({plugin:o,options:qn(e.config,{plugin:o,local:i[t]},l,r)})}return a}(e,s,n,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],i=this._cache,n=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(n(t,i),e,"stop"),this._notify(n(i,t),e,"start")}}function Wn(e,t){return t||!1!==e?!0===e?{}:e:null}function qn(e,{plugin:t,local:i},n,s){const a=e.pluginScopeKeys(t),r=e.getOptionScopes(n,a);return i&&t.defaults&&r.push(t.defaults),e.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Yn(e,t){const i=tt.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||i.indexAxis||"x"}function Xn(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(i=t.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||e.charAt(0).toLowerCase();var i}function Gn(e){const t=e.options||(e.options={});t.plugins=o(t.plugins,{}),t.scales=function(e,t){const i=Qe[e.type]||{scales:{}},n=t.scales||{},a=Yn(e.type,t),r=Object.create(null),o=Object.create(null);return Object.keys(n).forEach((e=>{const t=n[e];if(!s(t))return console.error(`Invalid scale configuration for scale: ${e}`);if(t._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const l=Xn(e,t),c=function(e,t){return e===t?"_index_":"_value_"}(l,a),d=i.scales||{};r[l]=r[l]||e,o[e]=v(Object.create(null),[{axis:l},t,d[l],d[c]])})),e.data.datasets.forEach((i=>{const s=i.type||e.type,a=i.indexAxis||Yn(s,t),l=(Qe[s]||{}).scales||{};Object.keys(l).forEach((e=>{const t=function(e,t){let i=e;return"_index_"===e?i=t:"_value_"===e&&(i="x"===t?"y":"x"),i}(e,a),s=i[t+"AxisID"]||r[t]||t;o[s]=o[s]||Object.create(null),v(o[s],[{axis:t},n[s],l[e]])}))})),Object.keys(o).forEach((e=>{const t=o[e];v(t,[tt.scales[t.type],tt.scale])})),o}(e,t)}function Un(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Kn=new Map,Qn=new Set;function Zn(e,t){let i=Kn.get(e);return i||(i=t(),Kn.set(e,i),Qn.add(i)),i}const Jn=(e,t,i)=>{const n=y(t,i);void 0!==n&&e.add(n)};class es{constructor(e){this._config=function(e){return(e=e||{}).data=Un(e.data),Gn(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Un(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Gn(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Zn(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Zn(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Zn(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Zn(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const i=this._scopeCache;let n=i.get(e);return n&&!t||(n=new Map,i.set(e,n)),n}getOptionScopes(e,t,i){const{options:n,type:s}=this,a=this._cachedScopes(e,i),r=a.get(t);if(r)return r;const o=new Set;t.forEach((t=>{e&&(o.add(e),t.forEach((t=>Jn(o,e,t)))),t.forEach((e=>Jn(o,n,e))),t.forEach((e=>Jn(o,Qe[s]||{},e))),t.forEach((e=>Jn(o,tt,e))),t.forEach((e=>Jn(o,Ze,e)))}));const l=Array.from(o);return 0===l.length&&l.push(Object.create(null)),Qn.has(t)&&a.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Qe[t]||{},tt.datasets[t]||{},{type:t},tt,Ze]}resolveNamedOptions(e,t,i,s=[""]){const a={$shared:!0},{resolver:r,subPrefixes:o}=ts(this._resolverCache,e,s);let l=r;(function(e,t){const{isScriptable:i,isIndexable:s}=At(e);for(const a of t){const t=i(a),r=s(a),o=(r||t)&&e[a];if(t&&(T(o)||is(o))||r&&n(o))return!0}return!1})(r,t)&&(a.$shared=!1,l=Dt(r,i=T(i)?i():i,this.createResolver(e,i,o)));for(const e of t)a[e]=l[e];return a}createResolver(e,t,i=[""],n){const{resolver:a}=ts(this._resolverCache,e,i);return s(t)?Dt(a,t,void 0,n):a}}function ts(e,t,i){let n=e.get(t);n||(n=new Map,e.set(t,n));const s=i.join();let a=n.get(s);return a||(a={resolver:$t(t,i),subPrefixes:i.filter((e=>!e.toLowerCase().includes("hover")))},n.set(s,a)),a}const is=e=>s(e)&&Object.getOwnPropertyNames(e).reduce(((t,i)=>t||T(e[i])),!1),ns=["top","bottom","left","right","chartArea"];function ss(e,t){return"top"===e||"bottom"===e||-1===ns.indexOf(e)&&"x"===t}function as(e,t){return function(i,n){return i[e]===n[e]?i[t]-n[t]:i[e]-n[e]}}function rs(e){const t=e.chart,i=t.options.animation;t.notifyPlugins("afterRender"),d(i&&i.onComplete,[e],t)}function os(e){const t=e.chart,i=t.options.animation;d(i&&i.onProgress,[e],t)}function ls(e){return it()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const cs={},ds=e=>{const t=ls(e);return Object.values(cs).filter((e=>e.canvas===t)).pop()};function hs(e,t,i){const n=Object.keys(e);for(const s of n){const n=+s;if(n>=t){const a=e[s];delete e[s],(i>0||n>t)&&(e[n+i]=a)}}}class us{constructor(e,i){const n=this.config=new es(i),s=ls(e),a=ds(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||dn(s)),this.platform.updateConfig(n);const o=this.platform.acquireContext(s,r.aspectRatio),l=o&&o.canvas,c=l&&l.height,d=l&&l.width;this.id=t(),this.ctx=o,this.canvas=l,this.width=d,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Vn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=de((e=>this.update(e)),r.resizeDelay||0),this._dataChanges=[],cs[this.id]=this,o&&l?(me.listen(this,"complete",rs),me.listen(this,"progress",os),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:s,_aspectRatio:a}=this;return i(e)?t&&a?a:s?n/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ut(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return xt(this.canvas,this.ctx),this}stop(){return me.stop(this),this}resize(e,t){me.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,e,t,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,ut(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),d(i.onResize,[this,a],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){h(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,i=this.scales,n=Object.keys(i).reduce(((e,t)=>(e[t]=!1,e)),{});let s=[];t&&(s=s.concat(Object.keys(t).map((e=>{const i=t[e],n=Xn(e,i),s="r"===n,a="x"===n;return{options:i,dposition:s?"chartArea":a?"bottom":"left",dtype:s?"radialLinear":a?"category":"linear"}})))),h(s,(t=>{const s=t.options,a=s.id,r=Xn(a,s),l=o(s.type,t.dtype);void 0!==s.position&&ss(s.position,r)===ss(t.dposition)||(s.position=t.dposition),n[a]=!0;let c=null;a in i&&i[a].type===l?c=i[a]:(c=new(Hn.getScale(l))({id:a,type:l,ctx:this.ctx,chart:this}),i[c.id]=c),c.init(s,e)})),h(n,((e,t)=>{e||delete i[t]})),h(i,(e=>{Yi.configure(this,e,e.options),Yi.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,i=e.length;if(e.sort(((e,t)=>e.index-t.index)),i>t){for(let e=t;e<i;++e)this._destroyDatasetMeta(e);e.splice(t,i-t)}this._sortedMetasets=e.slice(0).sort(as("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,i)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=t.length;i<n;i++){const n=t[i];let s=this.getDatasetMeta(i);const a=n.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=a,s.indexAxis=n.indexAxis||Yn(a,this.options),s.order=n.order||0,s.index=i,s.label=""+n.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const t=Hn.getController(a),{datasetElementType:n,dataElementType:r}=tt.datasets[a];Object.assign(t.prototype,{dataElementType:Hn.getElement(r),datasetElementType:n&&Hn.getElement(n)}),s.controller=new t(this,i),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){h(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;
vendor: 4,634 bytes, line 1
1t.update();const i=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),i=!n&&-1===s.indexOf(t);t.buildOrUpdateElements(i),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=i.layout.autoPadding?a:0,this._updateLayout(a),n||h(s,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(as("z","_idx"));const{_active:r,_lastEvent:o}=this;o?this._eventHandler(o,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){h(this.scales,(e=>{Yi.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),i=new Set(e.events);C(t,i)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of t)hs(e,n,"_removeElements"===i?-s:s)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,i=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),n=i(0);for(let e=1;e<t;e++)if(!C(n,i(e)))return;return Array.from(n).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Yi.update(this,this.width,this.height,e);const t=this.chartArea,i=t.width<=0||t.height<=0;this._layers=[],h(this.boxes,(e=>{i&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,i=this.data.datasets.length;t<i;++t)this._updateDataset(t,T(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const i=this.getDatasetMeta(e),n={meta:i,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(t),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(me.has(this)?this.attached&&!me.running(this)&&me.start(this):(this.draw(),rs({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,i=[];let n,s;for(n=0,s=t.length;n<s;++n){const s=t[n];e&&!s.visible||i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,i=e._clip,n=!i.disabled,s=this.chartArea,a={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(n&&St(t,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),e.controller.draw(),n&&Tt(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return _t(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,i,n){const s=Oi.modes[t];return"function"==typeof s?s(this,e,i,n):[]}getDatasetMeta(e){const t=this.data.datasets[e],i=this._metasets;let n=i.filter((e=>e&&e._dataset===t)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=mi(null,{chart:this,type:"chart"}))}
vendor: 5,908 bytes, line 1
1getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const i=this.getDatasetMeta(e);return"boolean"==typeof i.hidden?!i.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,i){const n=i?"show":"hide",s=this.getDatasetMeta(e),a=s.controller._resolveAnimations(void 0,n);S(t)?(s.data[t].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),a.update(s,{visible:i}),this.update((t=>t.datasetIndex===e?n:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),me.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),xt(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete cs[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,i=(i,n)=>{t.addEventListener(this,i,n),e[i]=n},n=(e,t,i)=>{e.offsetX=t,e.offsetY=i,this._eventHandler(e)};h(this.options.events,(e=>i(e,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,i=(i,n)=>{t.addEventListener(this,i,n),e[i]=n},n=(i,n)=>{e[i]&&(t.removeEventListener(this,i,n),delete e[i])},s=(e,t)=>{this.canvas&&this.resize(e,t)};let a;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",a)};a=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},t.isAttached(this.canvas)?r():a()}unbindEvents(){h(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},h(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,i){const n=i?"set":"remove";let s,a,r,o;for("dataset"===t&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,o=e.length;r<o;++r){a=e[r];const t=a&&this.getDatasetMeta(a.datasetIndex).controller;t&&t[n+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],i=e.map((({datasetIndex:e,index:t})=>{const i=this.getDatasetMeta(e);if(!i)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:i.data[t],index:t}}));!u(i,t)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,t))}notifyPlugins(e,t,i){return this._plugins.notify(this,e,t,i)}_updateHoverStyles(e,t,i){const n=this.options.hover,s=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),a=s(t,e),r=i?e:s(e,t);a.length&&this.updateHoverStyle(a,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(e,t){const i={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},n=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(e,t,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(e,t,i){const{_active:n=[],options:s}=this,a=t,r=this._getActiveElements(e,n,i,a),o=E(e),l=function(e,t,i,n){return i&&"mouseout"!==e.type?n?t:e:null}(e,this._lastEvent,i,o);i&&(this._lastEvent=null,d(s.onHover,[e,r,this],this),o&&d(s.onClick,[e,r,this],this));const c=!u(r,n);return(c||t)&&(this._active=r,this._updateHoverStyles(r,n,t)),this._lastEvent=l,c}_getActiveElements(e,t,i,n){if("mouseout"===e.type)return[];if(!i)return t;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,n)}}const ps=()=>h(us.instances,(e=>e._plugins.invalidate())),fs=!0;function gs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Object.defineProperties(us,{defaults:{enumerable:fs,value:tt},instances:{enumerable:fs,value:cs},overrides:{enumerable:fs,value:Qe},registry:{enumerable:fs,value:Hn},version:{enumerable:fs,value:"3.9.1"},getChart:{enumerable:fs,value:ds},register:{enumerable:fs,value:(...e)=>{Hn.add(...e),ps()}},unregister:{enumerable:fs,value:(...e)=>{Hn.remove(...e),ps()}}});class ms{constructor(e){this.options=e||{}}init(e){}formats(){return gs()}parse(e,t){return gs()}format(e,t){return gs()}add(e,t,i){return gs()}diff(e,t,i){return gs()}startOf(e,t,i){return gs()}endOf(e,t){return gs()}}ms.override=function(e){Object.assign(ms.prototype,e)};var vs={_date:ms};function bs(e){const t=e.iScale,i=function(e,t){if(!e._cache.$bar){const i=e.getMatchingVisibleMetas(t);let n=[];for(let t=0,s=i.length;t<s;t++)n=n.concat(i[t].controller.getAllParsedValues(e));e._cache.$bar=oe(n.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let n,s,a,r,o=t._length;const l=()=>{32767!==a&&-32768!==a&&(S(r)&&(o=Math.min(o,Math.abs(a-r)||o)),r=a)};for(n=0,s=i.length;n<s;++n)a=t.getPixelForValue(i[n]),l();for(r=void 0,n=0,s=t.ticks.length;n<s;++n)a=t.getPixelForTick(n),l();return o}function xs(e,t,i,s){return n(e)?function(e,t,i,n){const s=i.parse(e[0],n),a=i.parse(e[1],n),r=Math.min(s,a),o=Math.max(s,a);let l=r,c=o;Math.abs(r)>Math.abs(o)&&(l=o,c=r),t[i.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:a,min:r,max:o}}(e,t,i,s):t[i.axis]=i.parse(e,s),t}function ys(e,t,i,n){const s=e.iScale,a=e.vScale,r=s.getLabels(),o=s===a,l=[];let c,d,h,u;
vendor: 10,805 bytes, line 1
1for(c=i,d=i+n;c<d;++c)u=t[c],h={},h[s.axis]=o||s.parse(r[c],c),l.push(xs(u,h,a,c));return l}function ws(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function _s(e,t,i,n){let s=t.borderSkipped;const a={};if(!s)return void(e.borderSkipped=a);if(!0===s)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:o,reverse:l,top:c,bottom:d}=function(e){let t,i,n,s,a;return e.horizontal?(t=e.base>e.x,i="left",n="right"):(t=e.base<e.y,i="bottom",n="top"),t?(s="end",a="start"):(s="start",a="end"),{start:i,end:n,reverse:t,top:s,bottom:a}}(e);"middle"===s&&i&&(e.enableBorderRadius=!0,(i._top||0)===n?s=c:(i._bottom||0)===n?s=d:(a[Ss(d,r,o,l)]=!0,s=c)),a[Ss(s,r,o,l)]=!0,e.borderSkipped=a}function Ss(e,t,i,n){var s,a,r;return n?(r=i,e=Ts(e=(s=e)===(a=t)?r:s===r?a:s,i,t)):e=Ts(e,t,i),e}function Ts(e,t,i){return"start"===e?t:"end"===e?i:e}function Cs(e,{inflateAmount:t},i){e.inflateAmount="auto"===t?1===i?.33:0:t}class Es extends kn{parsePrimitiveData(e,t,i,n){return ys(e,t,i,n)}parseArrayData(e,t,i,n){return ys(e,t,i,n)}parseObjectData(e,t,i,n){const{iScale:s,vScale:a}=e,{xAxisKey:r="x",yAxisKey:o="y"}=this._parsing,l="x"===s.axis?r:o,c="x"===a.axis?r:o,d=[];let h,u,p,f;for(h=i,u=i+n;h<u;++h)f=t[h],p={},p[s.axis]=s.parse(y(f,l),h),d.push(xs(y(f,c),p,a,h));return d}updateRangeFromParsed(e,t,i,n){super.updateRangeFromParsed(e,t,i,n);const s=i._custom;s&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,s.min),e.max=Math.max(e.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:i,vScale:n}=t,s=this.getParsed(e),a=s._custom,r=ws(a)?"["+a.start+", "+a.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,s){const a="reset"===s,{index:r,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),c=o.isHorizontal(),d=this._getRuler(),{sharedOptions:h,includeOptions:u}=this._getSharedOptions(t,s);for(let p=t;p<t+n;p++){const t=this.getParsed(p),n=a||i(t[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),f=this._calculateBarIndexPixels(p,d),g=(t._stacks||{})[o.axis],m={horizontal:c,base:n.base,enableBorderRadius:!g||ws(t._custom)||r===g._top||r===g._bottom,x:c?n.head:f.center,y:c?f.center:n.head,height:c?f.size:Math.abs(n.size),width:c?Math.abs(n.size):f.size};u&&(m.options=h||this.resolveDataElementOptions(p,e[p].active?"active":s));const v=m.options||e[p].options;_s(m,v,g,r),Cs(m,v,d.ratio),this.updateElement(e[p],p,m,s)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,s=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),a=n.options.stacked,r=[],o=e=>{const n=e.controller.getParsed(t),s=n&&n[e.vScale.axis];if(i(s)||isNaN(s))return!0};for(const i of s)if((void 0===t||!o(i))&&((!1===a||-1===r.indexOf(i.stack)||void 0===a&&void 0===i.stack)&&r.push(i.stack),i.index===e))break;return r.length||r.push(void 0),r}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,i){const n=this._getStacks(e,i),s=void 0!==t?n.indexOf(t):-1;return-1===s?n.length-1:s}_getRuler(){const e=this.options,t=this._cachedMeta,i=t.iScale,n=[];let s,a;for(s=0,a=t.data.length;s<a;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const r=e.barThickness;return{min:r||bs(t),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:r?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n},options:{base:s,minBarLength:a}}=this,r=s||0,o=this.getParsed(e),l=o._custom,c=ws(l);let d,h,u=o[t.axis],p=0,f=n?this.applyStack(t,o,n):u;f!==u&&(p=f-u,f=u),c&&(u=l.barStart,f=l.barEnd-l.barStart,0!==u&&z(u)!==z(l.barEnd)&&(p=0),p+=u);const g=i(s)||c?p:s;let m=t.getPixelForValue(g);if(d=this.chart.getDataVisibility(e)?t.getPixelForValue(p+f):m,h=d-m,Math.abs(h)<a){h=function(e,t,i){return 0!==e?z(e):(t.isHorizontal()?1:-1)*(t.min>=i?1:-1)}(h,t,r)*a,u===r&&(m-=h/2);const e=t.getPixelForDecimal(0),i=t.getPixelForDecimal(1),n=Math.min(e,i),s=Math.max(e,i);m=Math.max(Math.min(m,s),n),d=m+h}if(m===t.getPixelForValue(r)){const e=z(h)*t.getLineWidthForValue(r)/2;m+=e,h-=e}return{size:h,base:m,head:d,center:d+h/2}}_calculateBarIndexPixels(e,t){const n=t.scale,s=this.options,a=s.skipNull,r=o(s.maxBarThickness,1/0);let l,c;if(t.grouped){const n=a?this._getStackCount(e):t.stackCount,o="flex"===s.barThickness?function(e,t,i,n){const s=t.pixels,a=s[e];let r=e>0?s[e-1]:null,o=e<s.length-1?s[e+1]:null;const l=i.categoryPercentage;null===r&&(r=a-(null===o?t.end-t.start:o-a)),null===o&&(o=a+a-r);const c=a-(a-Math.min(r,o))/2*l;return{chunk:Math.abs(o-r)/2*l/n,ratio:i.barPercentage,start:c}}(e,t,s,n):function(e,t,n,s){const a=n.barThickness;let r,o;return i(a)?(r=t.min*n.categoryPercentage,o=n.barPercentage):(r=a*s,o=1),{chunk:r/s,ratio:o,start:t.pixels[e]-r/2}}(e,t,s,n),d=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);l=o.start+o.chunk*d+o.chunk/2,c=Math.min(r,o.chunk*o.ratio)}else l=n.getPixelForValue(this.getParsed(e)[n.axis],e),c=Math.min(r,t.min*t.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const e=this._cachedMeta,t=e.vScale,i=e.data,n=i.length;let s=0;for(;s<n;++s)null!==this.getParsed(s)[t.axis]&&i[s].draw(this._ctx)}}Es.id="bar",Es.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Es.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Ms extends kn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,i,n){const s=super.parsePrimitiveData(e,t,i,n);for(let e=0;e<s.length;e++)s[e]._custom=this.resolveDataElementOptions(e+i).radius;return s}parseArrayData(e,t,i,n){const s=super.parseArrayData(e,t,i,n);for(let e=0;e<s.length;e++){const n=t[i+e];s[e]._custom=o(n[2],this.resolveDataElementOptions(e+i).radius)}return s}parseObjectData(e,t,i,n){const s=super.parseObjectData(e,t,i,n);for(let e=0;e<s.length;e++){const n=t[i+e];s[e]._custom=o(n&&n.r&&+n.r,this.resolveDataElementOptions(e+i).radius)}return s}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,{xScale:i,yScale:n}=t,s=this.getParsed(e),a=i.getLabelForValue(s.x),r=n.getLabelForValue(s.y),o=s._custom;return{label:t.label,value:"("+a+", "+r+(o?", "+o:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,i,n){const s="reset"===n,{iScale:a,vScale:r}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(t,n),c=a.axis,d=r.axis;for(let h=t;h<t+i;h++){const t=e[h],i=!s&&this.getParsed(h),u={},p=u[c]=s?a.getPixelForDecimal(.5):a.getPixelForValue(i[c]),f=u[d]=s?r.getBasePixel():r.getPixelForValue(i[d]);u.skip=isNaN(p)||isNaN(f),l&&(u.options=o||this.resolveDataElementOptions(h,t.active?"active":n),s&&(u.options.radius=0)),this.updateElement(t,h,u,n)}}resolveDataElementOptions(e,t){const i=this.getParsed(e);let n=super.resolveDataElementOptions(e,t);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const s=n.radius;return"active"!==t&&(n.radius=0),n.radius+=o(i&&i._custom,s),n}}Ms.id="bubble",Ms.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Ms.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class ks extends kn{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let a,r,o=e=>+i[e];if(s(i[e])){const{key:e="value"}=this._parsing;o=t=>+y(i[t],e)}for(a=e,r=e+t;a<r;++a)n._parsed[a]=o(a)}}_getRotation(){return V(this.options.rotation-90)}_getCircumference(){return V(this.options.circumference)}_getRotationExtents(){let e=k,t=-k;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),a=n._getCircumference();e=Math.min(e,s),t=Math.max(t,s+a)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:i}=t,n=this._cachedMeta,s=n.data,a=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,r=Math.max((Math.min(i.width,i.height)-a)/2,0),o=Math.min(l(this.options.cutout,r),1),d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:g,offsetY:m}=function(e,t,i){let n=1,s=1,a=0,r=0;if(t<k){const o=e,l=o+t,c=Math.cos(o),d=Math.sin(o),h=Math.cos(l),u=Math.sin(l),p=(e,t,n)=>K(e,o,l,!0)?1:Math.max(t,t*i,n,n*i),f=(e,t,n)=>K(e,o,l,!0)?-1:Math.min(t,t*i,n,n*i),g=p(0,c,h),m=p(A,d,u),v=f(M,c,h),b=f(M+A,d,u);n=(g-v)/2,s=(m-b)/2,a=-(g+v)/2,r=-(m+b)/2}return{ratioX:n,ratioY:s,offsetX:a,offsetY:r}}(u,h,o),v=(i.width-a)/p,b=(i.height-a)/f,x=Math.max(Math.min(v,b)/2,0),y=c(this.options.radius,x),w=(y-Math.max(y*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,n.total=this.calculateTotal(),this.outerRadius=y-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*d,0),this.updateElements(s,0,s.length,e)}_circumference(e,t){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return t&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||null===n._parsed[e]||n.data[e].hidden?0:this.calculateCircumference(n._parsed[e]*s/k)}updateElements(e,t,i,n){const s="reset"===n,a=this.chart,r=a.chartArea,o=a.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=s&&o.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(t,n);let g,m=this._getRotation();for(g=0;g<t;++g)m+=this._circumference(g,s);for(g=t;g<t+i;++g){const t=this._circumference(g,s),i=e[g],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+t,circumference:t,outerRadius:u,innerRadius:h};f&&(a.options=p||this.resolveDataElementOptions(g,i.active?"active":n)),m+=t,this.updateElement(i,g,a,n)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let i,n=0;for(i=0;i<t.length;i++){const s=e._parsed[i];null===s||isNaN(s)||!this.chart.getDataVisibility(i)||t[i].hidden||(n+=Math.abs(s))}return n}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?k*(Math.abs(e)/t):0}
1getLabelAndValue(e){const t=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=ai(t._parsed[e],i.options.locale);return{label:n[e]||"",value:s}}getMaxBorderWidth(e){let t=0;const i=this.chart;let n,s,a,r,o;if(!e)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){a=i.getDatasetMeta(n),e=a.data,r=a.controller;break}if(!e)return 0;for(n=0,s=e.length;n<s;++n)o=r.resolveDataElementOptions(n),"inner"!==o.borderAlign&&(t=Math.max(t,o.borderWidth||0,o.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let i=0,n=e.length;i<n;++i){const e=this.resolveDataElementOptions(i);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(t+=this._getRingWeight(i));return t}_getRingWeight(e){return Math.max(o(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ks.id="doughnut",ks.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},ks.descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e},ks.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:i}}=e.legend.options;return t.labels.map(((t,n)=>{const s=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(n),index:n}}))}return[]}},onClick(e,t,i){i.chart.toggleDataVisibility(t.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const i=": "+e.formattedValue;return n(t)?(t=t.slice(),t[0]+=i):t+=i,t}}}}};class Ps extends kn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=t,a=this.chart._animationsDisabled;let{start:r,count:o}=fe(t,n,a);this._drawStart=r,this._drawCount=o,ge(t)&&(r=0,o=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:l},e),this.updateElements(n,r,o,e)}updateElements(e,t,n,s){const a="reset"===s,{iScale:r,vScale:o,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(t,s),u=r.axis,p=o.axis,{spanGaps:f,segment:g}=this.options,m=B(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||"none"===s;let b=t>0&&this.getParsed(t-1);for(let f=t;f<t+n;++f){const t=e[f],n=this.getParsed(f),x=v?t:{},y=i(n[p]),w=x[u]=r.getPixelForValue(n[u],f),_=x[p]=a||y?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,n,l):n[p],f);x.skip=isNaN(w)||isNaN(_)||y,x.stop=f>0&&Math.abs(n[u]-b[u])>m,g&&(x.parsed=n,x.raw=c.data[f]),h&&(x.options=d||this.resolveDataElementOptions(f,t.active?"active":s)),v||this.updateElement(t,f,x,s),b=n}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,i=t.options&&t.options.borderWidth||0,n=e.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}Ps.id="line",Ps.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Ps.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class $s extends kn{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=ai(t._parsed[e].r,i.options.locale);return{label:n[e]||"",value:s}}parseObjectData(e,t,i,n){return Vt.bind(this)(e,t,i,n)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(n<t.min&&(t.min=n),n>t.max&&(t.max=n))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,i=e.options,n=Math.min(t.right-t.left,t.bottom-t.top),s=Math.max(n/2,0),a=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=s-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,i,n){const s="reset"===n,a=this.chart,r=a.options.animation,o=this._cachedMeta.rScale,l=o.xCenter,c=o.yCenter,d=o.getIndexAngle(0)-.5*M;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<t;++h)u+=this._computeAngle(h,n,p);for(h=t;h<t+i;h++){const t=e[h];let i=u,f=u+this._computeAngle(h,n,p),g=a.getDataVisibility(h)?o.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=f,s&&(r.animateScale&&(g=0),r.animateRotate&&(i=f=d));
1const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:i,endAngle:f,options:this.resolveDataElementOptions(h,t.active?"active":n)};this.updateElement(t,h,m,n)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&t++})),t}_computeAngle(e,t,i){return this.chart.getDataVisibility(e)?V(this.resolveDataElementOptions(e,t).angle||i):0}}$s.id="polarArea",$s.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},$s.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:i}}=e.legend.options;return t.labels.map(((t,n)=>{const s=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,lineWidth:s.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(n),index:n}}))}return[]}},onClick(e,t,i){i.chart.toggleDataVisibility(t.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Ds extends ks{}Ds.id="pie",Ds.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class As extends kn{getLabelAndValue(e){const t=this._cachedMeta.vScale,i=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(i[t.axis])}}parseObjectData(e,t,i,n){return Vt.bind(this)(e,t,i,n)}update(e){const t=this._cachedMeta,i=t.dataset,n=t.data||[],s=t.iScale.getLabels();if(i.points=n,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const a={_loop:!0,_fullLoop:s.length===n.length,options:t};this.updateElement(i,void 0,a,e)}this.updateElements(n,0,n.length,e)}updateElements(e,t,i,n){const s=this._cachedMeta.rScale,a="reset"===n;for(let r=t;r<t+i;r++){const t=e[r],i=this.resolveDataElementOptions(r,t.active?"active":n),o=s.getPointPositionForValue(r,this.getParsed(r).r),l=a?s.xCenter:o.x,c=a?s.yCenter:o.y,d={x:l,y:c,angle:o.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(t,r,d,n)}}}As.id="radar",As.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},As.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Ls extends kn{update(e){const t=this._cachedMeta,{data:i=[]}=t,n=this.chart._animationsDisabled;let{start:s,count:a}=fe(t,i,n);if(this._drawStart=s,this._drawCount=a,ge(t)&&(s=0,a=i.length),this.options.showLine){const{dataset:s,_dataset:a}=t;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!a._decimated,s.points=i;const r=this.resolveDatasetElementOptions(e);r.segment=this.options.segment,this.updateElement(s,void 0,{animated:!n,options:r},e)}this.updateElements(i,s,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=Hn.getElement("line")),super.addElements()}updateElements(e,t,n,s){const a="reset"===s,{iScale:r,vScale:o,_stacked:l,_dataset:c}=this._cachedMeta,d=this.resolveDataElementOptions(t,s),h=this.getSharedOptions(d),u=this.includeOptions(s,h),p=r.axis,f=o.axis,{spanGaps:g,segment:m}=this.options,v=B(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||a||"none"===s;let x=t>0&&this.getParsed(t-1);for(let d=t;d<t+n;++d){const t=e[d],n=this.getParsed(d),g=b?t:{},y=i(n[f]),w=g[p]=r.getPixelForValue(n[p],d),_=g[f]=a||y?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,n,l):n[f],d);g.skip=isNaN(w)||isNaN(_)||y,g.stop=d>0&&Math.abs(n[p]-x[p])>v,m&&(g.parsed=n,g.raw=c.data[d]),u&&(g.options=h||this.resolveDataElementOptions(d,t.active?"active":s)),b||this.updateElement(t,d,g,s),x=n}this.updateSharedOptions(h,s,d)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}const i=e.dataset,n=i.options&&i.options.borderWidth||0;if(!t.length)return n;const s=t[0].size(this.resolveDataElementOptions(0)),a=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(n,s,a)/2}}Ls.id="scatter",Ls.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},Ls.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var Os=Object.freeze({__proto__:null,BarController:Es,BubbleController:Ms,DoughnutController:ks,LineController:Ps,PolarAreaController:$s,PieController:Ds,RadarController:As,ScatterController:Ls});function Is(e,t,i){const{startAngle:n,pixelMargin:s,x:a,y:r,outerRadius:o,innerRadius:l}=t;
1let c=s/o;e.beginPath(),e.arc(a,r,o,n-c,i+c),l>s?(c=s/l,e.arc(a,r,l,i+c,n-c,!0)):e.arc(a,r,s,i+A,n-A),e.closePath(),e.clip()}function zs(e,t,i,n){return{x:i+e*Math.cos(t),y:n+e*Math.sin(t)}}function Rs(e,t,i,n,s,a){const{x:r,y:o,startAngle:l,pixelMargin:c,innerRadius:d}=t,h=Math.max(t.outerRadius+n+i-c,0),u=d>0?d+n+i+c:0;let p=0;const f=s-l;if(n){const e=((d>0?d-n:0)+(h>0?h-n:0))/2;p=(f-(0!==e?f*e/(e+n):f))/2}const g=(f-Math.max(.001,f*h-i/M)/h)/2,m=l+g+p,v=s-g-p,{outerStart:b,outerEnd:x,innerStart:y,innerEnd:w}=function(e,t,i,n){const s=ci(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(i-t)/2,r=Math.min(a,n*t/2),o=e=>{const t=(i-Math.min(a,e))*n/2;return Q(e,0,Math.min(a,t))};return{outerStart:o(s.outerStart),outerEnd:o(s.outerEnd),innerStart:Q(s.innerStart,0,r),innerEnd:Q(s.innerEnd,0,r)}}(t,u,h,v-m),_=h-b,S=h-x,T=m+b/_,C=v-x/S,E=u+y,k=u+w,P=m+y/E,$=v-w/k;if(e.beginPath(),a){if(e.arc(r,o,h,T,C),x>0){const t=zs(S,C,r,o);e.arc(t.x,t.y,x,C,v+A)}const t=zs(k,v,r,o);if(e.lineTo(t.x,t.y),w>0){const t=zs(k,$,r,o);e.arc(t.x,t.y,w,v+A,$+Math.PI)}if(e.arc(r,o,u,v-w/u,m+y/u,!0),y>0){const t=zs(E,P,r,o);e.arc(t.x,t.y,y,P+Math.PI,m-A)}const i=zs(_,m,r,o);if(e.lineTo(i.x,i.y),b>0){const t=zs(_,T,r,o);e.arc(t.x,t.y,b,m-A,T)}}else{e.moveTo(r,o);const t=Math.cos(T)*h+r,i=Math.sin(T)*h+o;e.lineTo(t,i);const n=Math.cos(C)*h+r,s=Math.sin(C)*h+o;e.lineTo(n,s)}e.closePath()}class Ns extends Pn{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,i){const n=this.getProps(["x","y"],i),{angle:s,distance:a}=Y(n,{x:e,y:t}),{startAngle:r,endAngle:l,innerRadius:c,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,p=o(h,l-r)>=k||K(s,r,l),f=J(a,c+u,d+u);return p&&f}getCenterPoint(e){const{x:t,y:i,startAngle:n,endAngle:s,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:o,spacing:l}=this.options,c=(n+s)/2,d=(a+r+l+o)/2;return{x:t+Math.cos(c)*d,y:i+Math.sin(c)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:i}=this,n=(t.offset||0)/2,s=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=i>k?Math.floor(i/k):0,0===i||this.innerRadius<0||this.outerRadius<0)return;e.save();let r=0;if(n){r=n/2;const t=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(t)*r,Math.sin(t)*r),this.circumference>=M&&(r=n)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;const o=function(e,t,i,n,s){const{fullCircles:a,startAngle:r,circumference:o}=t;let l=t.endAngle;if(a){Rs(e,t,i,n,r+k,s);for(let t=0;t<a;++t)e.fill();isNaN(o)||(l=r+o%k,o%k==0&&(l+=k))}return Rs(e,t,i,n,l,s),e.fill(),l}(e,this,r,s,a);(function(e,t,i,n,s,a){const{options:r}=t,{borderWidth:o,borderJoinStyle:l}=r,c="inner"===r.borderAlign;o&&(c?(e.lineWidth=2*o,e.lineJoin=l||"round"):(e.lineWidth=o,e.lineJoin=l||"bevel"),t.fullCircles&&function(e,t,i){const{x:n,y:s,startAngle:a,pixelMargin:r,fullCircles:o}=t,l=Math.max(t.outerRadius-r,0),c=t.innerRadius+r;let d;for(i&&Is(e,t,a+k),e.beginPath(),e.arc(n,s,c,a+k,a,!0),d=0;d<o;++d)e.stroke();for(e.beginPath(),e.arc(n,s,l,a,a+k),d=0;d<o;++d)e.stroke()}(e,t,c),c&&Is(e,t,s),Rs(e,t,i,n,s,a),e.stroke())})(e,this,r,s,o,a),e.restore()}}function Bs(e,t,i=t){e.lineCap=o(i.borderCapStyle,t.borderCapStyle),e.setLineDash(o(i.borderDash,t.borderDash)),e.lineDashOffset=o(i.borderDashOffset,t.borderDashOffset),e.lineJoin=o(i.borderJoinStyle,t.borderJoinStyle),e.lineWidth=o(i.borderWidth,t.borderWidth),e.strokeStyle=o(i.borderColor,t.borderColor)}function Fs(e,t,i){e.lineTo(i.x,i.y)}function js(e,t,i={}){const n=e.length,{start:s=0,end:a=n-1}=i,{start:r,end:o}=t,l=Math.max(s,r),c=Math.min(a,o),d=s<r&&a<r||s>o&&a>o;return{count:n,start:l,loop:t.loop,ilen:c<l&&!d?n+c-l:c-l}}function Hs(e,t,i,n){const{points:s,options:a}=t,{count:r,start:o,loop:l,ilen:c}=js(s,i,n),d=function(e){return e.stepped?Ct:e.tension||"monotone"===e.cubicInterpolationMode?Et:Fs}(a);let h,u,p,{move:f=!0,reverse:g}=n||{};for(h=0;h<=c;++h)u=s[(o+(g?c-h:h))%r],u.skip||(f?(e.moveTo(u.x,u.y),f=!1):d(e,p,u,g,a.stepped),p=u);return l&&(u=s[(o+(g?c:0))%r],d(e,p,u,g,a.stepped)),!!l}function Vs(e,t,i,n){const s=t.points,{count:a,start:r,ilen:o}=js(s,i,n),{move:l=!0,reverse:c}=n||{};let d,h,u,p,f,g,m=0,v=0;const b=e=>(r+(c?o-e:e))%a,x=()=>{p!==f&&(e.lineTo(m,f),e.lineTo(m,p),e.lineTo(m,g))};for(l&&(h=s[b(0)],e.moveTo(h.x,h.y)),d=0;d<=o;++d){if(h=s[b(d)],h.skip)continue;const t=h.x,i=h.y,n=0|t;n===u?(i<p?p=i:i>f&&(f=i),m=(v*m+t)/++v):(x(),e.lineTo(t,i),u=n,v=0,p=f=i),g=i}x()}function Ws(e){const t=e.options,i=t.borderDash&&t.borderDash.length;return e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||i?Hs:Vs}
vendor: 9,655 bytes, line 1
1Ns.id="arc",Ns.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Ns.defaultRoutes={backgroundColor:"backgroundColor"};const qs="function"==typeof Path2D;class Ys extends Pn{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;Kt(this._points,i,e,n,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Ti(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,i=e.length;return i&&t[e[i-1].end]}interpolate(e,t){const i=this.options,n=e[t],s=this.points,a=Si(this,{property:t,start:n,end:n});if(!a.length)return;const r=[],o=function(e){return e.stepped?ii:e.tension||"monotone"===e.cubicInterpolationMode?ni:ti}(i);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],h=s[c],u=s[d];if(h===u){r.push(h);continue}const p=o(h,u,Math.abs((n-h[t])/(u[t]-h[t])),i.stepped);p[t]=e[t],r.push(p)}return 1===r.length?r[0]:r}pathSegment(e,t,i){return Ws(this)(e,this,t,i)}path(e,t,i){const n=this.segments,s=Ws(this);let a=this._loop;t=t||0,i=i||this.points.length-t;for(const r of n)a&=s(e,this,r,{start:t,end:t+i-1});return!!a}draw(e,t,i,n){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(e.save(),function(e,t,i,n){qs&&!t.options.segment?function(e,t,i,n){let s=t._path;s||(s=t._path=new Path2D,t.path(s,i,n)&&s.closePath()),Bs(e,t.options),e.stroke(s)}(e,t,i,n):function(e,t,i,n){const{segments:s,options:a}=t,r=Ws(t);for(const o of s)Bs(e,a,o.style),e.beginPath(),r(e,t,o,{start:i,end:i+n-1})&&e.closePath(),e.stroke()}(e,t,i,n)}(e,this,i,n),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Xs(e,t,i,n){const s=e.options,{[i]:a}=e.getProps([i],n);return Math.abs(t-a)<s.radius+s.hitRadius}Ys.id="line",Ys.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Ys.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Ys.descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};class Gs extends Pn{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,i){const n=this.options,{x:s,y:a}=this.getProps(["x","y"],i);return Math.pow(e-s,2)+Math.pow(t-a,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(e,t){return Xs(this,e,"x",t)}inYRange(e,t){return Xs(this,e,"y",t)}getCenterPoint(e){const{x:t,y:i}=this.getProps(["x","y"],e);return{x:t,y:i}}size(e){let t=(e=e||this.options||{}).radius||0;return t=Math.max(t,t&&e.hoverRadius||0),2*(t+(t&&e.borderWidth||0))}draw(e,t){const i=this.options;this.skip||i.radius<.1||!_t(this,t,this.size(i)/2)||(e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.fillStyle=i.backgroundColor,yt(e,i,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function Us(e,t){const{x:i,y:n,base:s,width:a,height:r}=e.getProps(["x","y","base","width","height"],t);let o,l,c,d,h;return e.horizontal?(h=r/2,o=Math.min(i,s),l=Math.max(i,s),c=n-h,d=n+h):(h=a/2,o=i-h,l=i+h,c=Math.min(n,s),d=Math.max(n,s)),{left:o,top:c,right:l,bottom:d}}function Ks(e,t,i,n){return e?0:Q(t,i,n)}function Qs(e){const t=Us(e),i=t.right-t.left,n=t.bottom-t.top,a=function(e,t,i){const n=e.options.borderWidth,s=e.borderSkipped,a=di(n);return{t:Ks(s.top,a.top,0,i),r:Ks(s.right,a.right,0,t),b:Ks(s.bottom,a.bottom,0,i),l:Ks(s.left,a.left,0,t)}}(e,i/2,n/2),r=function(e,t,i){const{enableBorderRadius:n}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,r=hi(a),o=Math.min(t,i),l=e.borderSkipped,c=n||s(a);return{topLeft:Ks(!c||l.top||l.left,r.topLeft,0,o),topRight:Ks(!c||l.top||l.right,r.topRight,0,o),bottomLeft:Ks(!c||l.bottom||l.left,r.bottomLeft,0,o),bottomRight:Ks(!c||l.bottom||l.right,r.bottomRight,0,o)}}(e,i/2,n/2);return{outer:{x:t.left,y:t.top,w:i,h:n,radius:r},inner:{x:t.left+a.l,y:t.top+a.t,w:i-a.l-a.r,h:n-a.t-a.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,r.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(a.b,a.r))}}}}function Zs(e,t,i,n){const s=null===t,a=null===i,r=e&&!(s&&a)&&Us(e,n);return r&&(s||J(t,r.left,r.right))&&(a||J(i,r.top,r.bottom))}function Js(e,t){e.rect(t.x,t.y,t.w,t.h)}function ea(e,t,i={}){const n=e.x!==i.x?-t:0,s=e.y!==i.y?-t:0,a=(e.x+e.w!==i.x+i.w?t:0)-n,r=(e.y+e.h!==i.y+i.h?t:0)-s;return{x:e.x+n,y:e.y+s,w:e.w+a,h:e.h+r,radius:e.radius}}Gs.id="point",Gs.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Gs.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class ta extends Pn{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:i,backgroundColor:n}}=this,{inner:s,outer:a}=Qs(this),r=(o=a.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?Pt:Js;var o;e.save(),a.w===s.w&&a.h===s.h||(e.beginPath(),r(e,ea(a,t,s)),e.clip(),r(e,ea(s,-t,a)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),r(e,ea(s,t)),e.fillStyle=n,e.fill(),e.restore()}inRange(e,t,i){return Zs(this,e,t,i)}inXRange(e,t){return Zs(this,e,null,t)}inYRange(e,t){return Zs(this,null,e,t)}getCenterPoint(e){const{x:t,y:i,base:n,horizontal:s}=this.getProps(["x","y","base","horizontal"],e);return{x:s?(t+n)/2:t,y:s?i:(i+n)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}ta.id="bar",ta.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},ta.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var ia=Object.freeze({__proto__:null,ArcElement:Ns,LineElement:Ys,PointElement:Gs,BarElement:ta});function na(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function sa(e){e.data.datasets.forEach((e=>{na(e)}))}var aa={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void sa(e);const s=e.width;e.data.datasets.forEach(((t,a)=>{const{_data:r,indexAxis:o}=t,l=e.getDatasetMeta(a),c=r||t.data;if("y"===fi([o,e.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const d=e.scales[l.xAxisID];if("linear"!==d.type&&"time"!==d.type)return;if(e.options.parsing)return;let h,{start:u,count:p}=function(e,t){const i=t.length;let n,s=0;const{iScale:a}=e,{min:r,max:o,minDefined:l,maxDefined:c}=a.getUserBounds();return l&&(s=Q(te(t,a.axis,r).lo,0,i-1)),n=c?Q(te(t,a.axis,o).hi+1,s,i)-s:i-s,{start:s,count:n}}(l,c);if(p<=(n.threshold||4*s))na(t);else{switch(i(r)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":h=function(e,t,i,n,s){const a=s.samples||n;if(a>=i)return e.slice(t,t+i);const r=[],o=(i-2)/(a-2);let l=0;const c=t+i-1;let d,h,u,p,f,g=t;for(r[l++]=e[g],d=0;d<a-2;d++){let n,s=0,a=0;const c=Math.floor((d+1)*o)+1+t,m=Math.min(Math.floor((d+2)*o)+1,i)+t,v=m-c;for(n=c;n<m;n++)s+=e[n].x,a+=e[n].y;s/=v,a/=v;const b=Math.floor(d*o)+1+t,x=Math.min(Math.floor((d+1)*o)+1,i)+t,{x:y,y:w}=e[g];for(u=p=-1,n=b;n<x;n++)p=.5*Math.abs((y-s)*(e[n].y-w)-(y-e[n].x)*(a-w)),p>u&&(u=p,h=e[n],f=n);r[l++]=h,g=f}return r[l++]=e[c],r}(c,u,p,s,n);break;case"min-max":h=function(e,t,n,s){let a,r,o,l,c,d,h,u,p,f,g=0,m=0;const v=[],b=t+n-1,x=e[t].x,y=e[b].x-x;for(a=t;a<t+n;++a){r=e[a],o=(r.x-x)/y*s,l=r.y;const t=0|o;if(t===c)l<p?(p=l,d=a):l>f&&(f=l,h=a),g=(m*g+r.x)/++m;else{const n=a-1;if(!i(d)&&!i(h)){const t=Math.min(d,h),i=Math.max(d,h);t!==u&&t!==n&&v.push({...e[t],x:g}),i!==u&&i!==n&&v.push({...e[i],x:g})}a>0&&n!==u&&v.push(e[n]),v.push(r),c=t,m=0,p=f=l,d=h=u=a}}return v}(c,u,p,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=h}}))},destroy(e){sa(e)}};function ra(e,t,i,n){if(n)return;let s=t[e],a=i[e];return"angle"===e&&(s=U(s),a=U(a)),{property:e,start:s,end:a}}function oa(e,t,i){for(;t>e;t--){const e=i[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function la(e,t,i,n){return e&&t?n(e[i],t[i]):e?e[i]:t?t[i]:0}function ca(e,t){let i=[],s=!1;return n(e)?(s=!0,i=e):i=function(e,t){const{x:i=null,y:n=null}=e||{},s=t.points,a=[];return t.segments.forEach((({start:e,end:t})=>{t=oa(e,t,s);const r=s[e],o=s[t];null!==n?(a.push({x:r.x,y:n}),a.push({x:o.x,y:n})):null!==i&&(a.push({x:i,y:r.y}),a.push({x:i,y:o.y}))})),a}(e,t),i.length?new Ys({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function da(e){return e&&!1!==e.fill}function ha(e,t,i){let n=e[t].fill;const s=[t];let r;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!a(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;s.push(n),n=r.fill}return!1}function ua(e,t,i){const n=function(e){const t=e.options,i=t.fill;
vendor: 8,220 bytes, line 1
1let n=o(i&&i.target,i);return void 0===n&&(n=!!t.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(e);if(s(n))return!isNaN(n.value)&&n;let r=parseFloat(n);return a(r)&&Math.floor(r)===r?function(e,t,i,n){return"-"!==e&&"+"!==e||(i=t+i),!(i===t||i<0||i>=n)&&i}(n[0],t,r,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function pa(e,t,i){const n=[];for(let s=0;s<i.length;s++){const a=i[s],{first:r,last:o,point:l}=fa(a,t,"x");if(!(!l||r&&o))if(r)n.unshift(l);else if(e.push(l),!o)break}e.push(...n)}function fa(e,t,i){const n=e.interpolate(t,i);if(!n)return{};const s=n[i],a=e.segments,r=e.points;let o=!1,l=!1;for(let e=0;e<a.length;e++){const t=a[e],n=r[t.start][i],c=r[t.end][i];if(J(s,n,c)){o=s===n,l=s===c;break}}return{first:o,last:l,point:n}}class ga{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,i){const{x:n,y:s,radius:a}=this;return t=t||{start:0,end:k},e.arc(n,s,a,t.end,t.start,!0),!i.bounds}interpolate(e){const{x:t,y:i,radius:n}=this,s=e.angle;return{x:t+Math.cos(s)*n,y:i+Math.sin(s)*n,angle:s}}}function ma(e){const{chart:t,fill:i,line:n}=e;if(a(i))return function(e,t){const i=e.getDatasetMeta(t);return i&&e.isDatasetVisible(t)?i.dataset:null}(t,i);if("stack"===i)return function(e){const{scale:t,index:i,line:n}=e,s=[],a=n.segments,r=n.points,o=function(e,t){const i=[],n=e.getMatchingVisibleMetas("line");for(let e=0;e<n.length;e++){const s=n[e];if(s.index===t)break;s.hidden||i.unshift(s.dataset)}return i}(t,i);o.push(ca({x:null,y:t.bottom},n));for(let e=0;e<a.length;e++){const t=a[e];for(let e=t.start;e<=t.end;e++)pa(s,r[e],o)}return new Ys({points:s,options:{}})}(e);if("shape"===i)return!0;const r=function(e){return(e.scale||{}).getPointPositionForValue?function(e){const{scale:t,fill:i}=e,n=t.options,a=t.getLabels().length,r=n.reverse?t.max:t.min,o=function(e,t,i){let n;return n="start"===e?i:"end"===e?t.options.reverse?t.min:t.max:s(e)?e.value:t.getBaseValue(),n}(i,t,r),l=[];if(n.grid.circular){const e=t.getPointPositionForValue(0,r);return new ga({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(o)})}for(let e=0;e<a;++e)l.push(t.getPointPositionForValue(e,o));return l}(e):function(e){const{scale:t={},fill:i}=e,n=function(e,t){let i=null;return"start"===e?i=t.bottom:"end"===e?i=t.top:s(e)?i=t.getPixelForValue(e.value):t.getBasePixel&&(i=t.getBasePixel()),i}(i,t);if(a(n)){const e=t.isHorizontal();return{x:e?n:null,y:e?null:n}}return null}(e)}(e);return r instanceof ga?r:ca(r,n)}function va(e,t,i){const n=ma(t),{line:s,scale:a,axis:r}=t,o=s.options,l=o.fill,c=o.backgroundColor,{above:d=c,below:h=c}=l||{};n&&s.points.length&&(St(e,i),function(e,t){const{line:i,target:n,above:s,below:a,area:r,scale:o}=t,l=i._loop?"angle":t.axis;e.save(),"x"===l&&a!==s&&(ba(e,n,r.top),xa(e,{line:i,target:n,color:s,scale:o,property:l}),e.restore(),e.save(),ba(e,n,r.bottom)),xa(e,{line:i,target:n,color:a,scale:o,property:l}),e.restore()}(e,{line:s,target:n,above:d,below:h,area:i,scale:a,axis:r}),Tt(e))}function ba(e,t,i){const{segments:n,points:s}=t;let a=!0,r=!1;e.beginPath();for(const o of n){const{start:n,end:l}=o,c=s[n],d=s[oa(n,l,s)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(c.x,i),e.lineTo(c.x,c.y)),r=!!t.pathSegment(e,o,{move:r}),r?e.closePath():e.lineTo(d.x,i)}e.lineTo(t.first().x,i),e.closePath(),e.clip()}function xa(e,t){const{line:i,target:n,property:s,color:a,scale:r}=t,o=function(e,t,i){const n=e.segments,s=e.points,a=t.points,r=[];for(const e of n){let{start:n,end:o}=e;o=oa(n,o,s);const l=ra(i,s[n],s[o],e.loop);if(!t.segments){r.push({source:e,target:l,start:s[n],end:s[o]});continue}const c=Si(t,l);for(const t of c){const n=ra(i,a[t.start],a[t.end],t.loop),o=_i(e,s,n);for(const e of o)r.push({source:e,target:t,start:{[i]:la(l,n,"start",Math.max)},end:{[i]:la(l,n,"end",Math.min)}})}}return r}(i,n,s);for(const{source:t,target:l,start:c,end:d}of o){const{style:{backgroundColor:o=a}={}}=t,h=!0!==n;e.save(),e.fillStyle=o,ya(e,r,h&&ra(s,c,d)),e.beginPath();const u=!!i.pathSegment(e,t);let p;if(h){u?e.closePath():wa(e,n,d,s);const t=!!n.pathSegment(e,l,{move:u,reverse:!0});p=u&&t,p||wa(e,n,c,s)}e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function ya(e,t,i){const{top:n,bottom:s}=t.chart.chartArea,{property:a,start:r,end:o}=i||{};"x"===a&&(e.beginPath(),e.rect(r,n,o-r,s-n),e.clip())}function wa(e,t,i,n){const s=t.interpolate(i,n);s&&e.lineTo(s.x,s.y)}var _a={id:"filler",afterDatasetsUpdate(e,t,i){const n=(e.data.datasets||[]).length,s=[];let a,r,o,l;for(r=0;r<n;++r)a=e.getDatasetMeta(r),o=a.dataset,l=null,o&&o.options&&o instanceof Ys&&(l={visible:e.isDatasetVisible(r),index:r,fill:ua(o,r,n),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:o}),a.$filler=l,s.push(l);for(r=0;r<n;++r)l=s[r],l&&!1!==l.fill&&(l.fill=ha(s,r,i.propagate))},beforeDraw(e,t,i){const n="beforeDraw"===i.drawTime,s=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let t=s.length-1;t>=0;--t){const i=s[t].$filler;i&&(i.line.updateControlPoints(a,i.axis),n&&i.fill&&va(e.ctx,i,a))}},beforeDatasetsDraw(e,t,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=e.getSortedVisibleDatasetMetas();for(let t=n.length-1;t>=0;--t){const i=n[t].$filler;da(i)&&va(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,i){const n=t.meta.$filler;da(n)&&"beforeDatasetDraw"===i.drawTime&&va(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Sa=(e,t)=>{let{boxHeight:i=t,boxWidth:n=t}=e;return e.usePointStyle&&(i=Math.min(i,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(t,i)}};class Ta extends Pn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,i){this.maxWidth=e,this.maxHeight=t,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=d(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,i)=>e.sort(t,i,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const i=e.labels,n=pi(i.font),s=n.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:o}=Sa(i,s);let l,c;t.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,s,r,o)+10):(c=this.maxHeight,l=this._fitCols(a,s,r,o)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,i,n){const{ctx:s,maxWidth:a,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+r;let d=e;s.textAlign="left",s.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach(((e,p)=>{const f=i+t/2+s.measureText(e.text).width;(0===p||l[l.length-1]+f+2*r>a)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),o[p]={left:0,top:u,row:h,width:f,height:n},l[l.length-1]+=f+r})),d}_fitCols(e,t,i,n){const{ctx:s,maxHeight:a,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-e;let d=r,h=0,u=0,p=0,f=0;return this.legendItems.forEach(((e,a)=>{const g=i+t/2+s.measureText(e.text).width;a>0&&u+n+2*r>c&&(d+=h+r,l.push({width:h,height:u}),p+=h+r,f++,h=u=0),o[a]={left:p,top:u,col:f,width:g,height:n},h=Math.max(h,g),u+=n+r})),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:i,labels:{padding:n},rtl:s}}=this,a=vi(s,this.left,this.width);if(this.isHorizontal()){let s=0,r=ue(i,this.left+n,this.right-this.lineWidths[s]);for(const o of t)s!==o.row&&(s=o.row,r=ue(i,this.left+n,this.right-this.lineWidths[s])),o.top+=this.top+e+n,o.left
vendor: 2,034 bytes, line 1
1=a.leftForLtr(a.x(r),o.width),r+=o.width+n}else{let s=0,r=ue(i,this.top+e+n,this.bottom-this.columnSizes[s].height);for(const o of t)o.col!==s&&(s=o.col,r=ue(i,this.top+e+n,this.bottom-this.columnSizes[s].height)),o.top=r,o.left+=this.left+n,o.left=a.leftForLtr(a.x(o.left),o.width),r+=o.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;St(e,this),this._draw(),Tt(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:i,ctx:n}=this,{align:s,labels:a}=e,r=tt.color,l=vi(e.rtl,this.left,this.width),c=pi(a.font),{color:d,padding:h}=a,u=c.size,p=u/2;let f;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:v}=Sa(a,u),b=this.isHorizontal(),x=this._computeTitleHeight();f=b?{x:ue(s,this.left+h,this.right-i[0]),y:this.top+h+x,line:0}:{x:this.left+h,y:ue(s,this.top+x+h,this.bottom-t[0].height),line:0},bi(this.ctx,e.textDirection);const y=v+h;this.legendItems.forEach(((w,_)=>{n.strokeStyle=w.fontColor||d,n.fillStyle=w.fontColor||d;const S=n.measureText(w.text).width,T=l.textAlign(w.textAlign||(w.textAlign=a.textAlign)),C=g+p+S;let E=f.x,M=f.y;l.setWidth(this.width),b?_>0&&E+C+h>this.right&&(M=f.y+=y,f.line++,E=f.x=ue(s,this.left+h,this.right-i[f.line])):_>0&&M+y>this.bottom&&(E=f.x=E+t[f.line].width+h,f.line++,M=f.y=ue(s,this.top+x+h,this.bottom-t[f.line].height)),function(e,t,i){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;n.save();const s=o(i.lineWidth,1);if(n.fillStyle=o(i.fillStyle,r),n.lineCap=o(i.lineCap,"butt"),n.lineDashOffset=o(i.lineDashOffset,0),n.lineJoin=o(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=o(i.strokeStyle,r),n.setLineDash(o(i.lineDash,[])),a.usePointStyle){const r={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},o=l.xPlus(e,g/2);wt(n,r,o,t+p,a.pointStyleWidth&&g)}else{const a=t+Math.max((u-m)/2,0),r=l.leftForLtr(e,g),o=hi(i.borderRadius);n.beginPath(),Object.values(o).some((e=>
vendor: 4,135 bytes, line 1
10!==e))?Pt(n,{x:r,y:a,w:g,h:m,radius:o}):n.rect(r,a,g,m),n.fill(),0!==s&&n.stroke()}n.restore()}(l.x(E),M,w),E=pe(T,E+g+p,b?E+C:this.right,e.rtl),function(e,t,i){Mt(n,i.text,e,t+v/2,c,{strikethrough:i.hidden,textAlign:l.textAlign(i.textAlign)})}(l.x(E),M,w),b?f.x+=C+h:f.y+=y})),xi(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,i=pi(t.font),n=ui(t.padding);if(!t.display)return;const s=vi(e.rtl,this.left,this.width),a=this.ctx,r=t.position,o=i.size/2,l=n.top+o;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=ue(e.align,d,this.right-h);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+ue(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const u=ue(r,d,d+h);a.textAlign=s.textAlign(he(r)),a.textBaseline="middle",a.strokeStyle=t.color,a.fillStyle=t.color,a.font=i.string,Mt(a,t.text,u,c,i)}_computeTitleHeight(){const e=this.options.title,t=pi(e.font),i=ui(e.padding);return e.display?t.lineHeight+i.height:0}_getLegendItemAt(e,t){let i,n,s;if(J(e,this.left,this.right)&&J(t,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(n=s[i],J(e,n.left,n.left+n.width)&&J(t,n.top,n.top+n.height))return this.legendItems[i];return null}handleEvent(e){const t=this.options;if(!function(e,t){return!("mousemove"!==e&&"mouseout"!==e||!t.onHover&&!t.onLeave)||!(!t.onClick||"click"!==e&&"mouseup"!==e)}(e.type,t))return;const i=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const a=this._hoveredItem,r=(s=i,null!==(n=a)&&null!==s&&n.datasetIndex===s.datasetIndex&&n.index===s.index);a&&!r&&d(t.onLeave,[e,a,this],this),this._hoveredItem=i,i&&!r&&d(t.onHover,[e,i,this],this)}else i&&d(t.onClick,[e,i,this],this);var n,s}}var Ca={id:"legend",_element:Ta,start(e,t,i){const n=e.legend=new Ta({ctx:e.ctx,options:i,chart:e});Yi.configure(e,n,i),Yi.addBox(e,n)},stop(e){Yi.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,i){const n=e.legend;Yi.configure(e,n,i),n.options=i},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,i){const n=t.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),t.hidden=!0):(s.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:a}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const r=e.controller.getStyle(i?0:void 0),o=ui(r.borderWidth);return{text:t[e.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(o.width+o.height)/4,strokeStyle:r.borderColor,pointStyle:n||r.pointStyle,rotation:r.rotation,textAlign:s||r.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Ea extends Pn{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const s=n(i.text)?i.text.length:1;this._padding=ui(i.padding);const a=s*pi(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:i,bottom:n,right:s,options:a}=this,r=a.align;let o,l,c,d=0;return this.isHorizontal()?(l=ue(r,i,s),c=t+e,o=s-i):("left"===a.position?(l=i+e,c=ue(r,
vendor: 16,754 bytes, line 1
1n,t),d=-.5*M):(l=s-e,c=ue(r,t,n),d=.5*M),o=n-t),{titleX:l,titleY:c,maxWidth:o,rotation:d}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const i=pi(t.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:r,rotation:o}=this._drawArgs(n);Mt(e,t.text,0,0,i,{color:t.color,maxWidth:r,rotation:o,textAlign:he(t.align),textBaseline:"middle",translation:[s,a]})}}var Ma={id:"title",_element:Ea,start(e,t,i){!function(e,t){const i=new Ea({ctx:e.ctx,options:t,chart:e});Yi.configure(e,i,t),Yi.addBox(e,i),e.titleBlock=i}(e,i)},stop(e){const t=e.titleBlock;Yi.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,i){const n=e.titleBlock;Yi.configure(e,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ka=new WeakMap;var Pa={id:"subtitle",start(e,t,i){const n=new Ea({ctx:e.ctx,options:i,chart:e});Yi.configure(e,n,i),Yi.addBox(e,n),ka.set(e,n)},stop(e){Yi.removeBox(e,ka.get(e)),ka.delete(e)},beforeUpdate(e,t,i){const n=ka.get(e);Yi.configure(e,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const $a={average(e){if(!e.length)return!1;let t,i,n=0,s=0,a=0;for(t=0,i=e.length;t<i;++t){const i=e[t].element;if(i&&i.hasValue()){const e=i.tooltipPosition();n+=e.x,s+=e.y,++a}}return{x:n/a,y:s/a}},nearest(e,t){if(!e.length)return!1;let i,n,s,a=t.x,r=t.y,o=Number.POSITIVE_INFINITY;for(i=0,n=e.length;i<n;++i){const n=e[i].element;if(n&&n.hasValue()){const e=X(t,n.getCenterPoint());e<o&&(o=e,s=n)}}if(s){const e=s.tooltipPosition();a=e.x,r=e.y}return{x:a,y:r}}};function Da(e,t){return t&&(n(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Aa(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function La(e,t){const{element:i,datasetIndex:n,index:s}=t,a=e.getDatasetMeta(n).controller,{label:r,value:o}=a.getLabelAndValue(s);return{chart:e,label:r,parsed:a.getParsed(s),raw:e.data.datasets[n].data[s],formattedValue:o,dataset:a.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function Oa(e,t){const i=e.chart.ctx,{body:n,footer:s,title:a}=e,{boxWidth:r,boxHeight:o}=t,l=pi(t.bodyFont),c=pi(t.titleFont),d=pi(t.footerFont),u=a.length,p=s.length,f=n.length,g=ui(t.padding);let m=g.height,v=0,b=n.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);b+=e.beforeBody.length+e.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b&&(m+=f*(t.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*t.bodySpacing),p&&(m+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let x=0;const y=function(e){v=Math.max(v,i.measureText(e).width+x)};return i.save(),i.font=c.string,h(e.title,y),i.font=l.string,h(e.beforeBody.concat(e.afterBody),y),x=t.displayColors?r+2+t.boxPadding:0,h(n,(e=>{h(e.before,y),h(e.lines,y),h(e.after,y)})),x=0,i.font=d.string,h(e.footer,y),i.restore(),v+=g.width,{width:v,height:m}}function Ia(e,t,i,n){const{x:s,width:a}=i,{width:r,chartArea:{left:o,right:l}}=e;let c="center";return"center"===n?c=s<=(o+l)/2?"left":"right":s<=a/2?c="left":s>=r-a/2&&(c="right"),function(e,t,i,n){const{x:s,width:a}=n,r=i.caretSize+i.caretPadding;return"left"===e&&s+a+r>t.width||"right"===e&&s-a-r<0||void 0}(c,e,t,i)&&(c="center"),c}function za(e,t,i){const n=i.yAlign||t.yAlign||function(e,t){const{y:i,height:n}=t;return i<n/2?"top":i>e.height-n/2?"bottom":"center"}(e,i);return{xAlign:i.xAlign||t.xAlign||Ia(e,t,i,n),yAlign:n}}function Ra(e,t,i,n){const{caretSize:s,caretPadding:a,cornerRadius:r}=e,{xAlign:o,yAlign:l}=i,c=s+a,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=hi(r);let f=function(e,t){let{x:i,width:n}=e;return"right"===t?i-=n:"center"===t&&(i-=n/2),i}(t,o);const g=function(e,t,i){let{y:n,height:s}=e;return"top"===t?n+=i:n-="bottom"===t?s+i:s/2,n}(t,l,c);return"center"===l?"left"===o?f+=c:"right"===o&&(f-=c):"left"===o?f-=Math.max(d,u)+s:"right"===o&&(f+=Math.max(h,p)+s),{x:Q(f,0,n.width-t.width),y:Q(g,0,n.height-t.height)}}function Na(e,t,i){const n=ui(i.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-n.right:e.x+n.left}function Ba(e){return Da([],Aa(e))}function Fa(e,t){const i=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return i?e.override(i):e}class ja extends Pn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&t.options.animation&&i.animations,s=new mn(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(this,mi(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(e,t){const{callbacks:i}=t,n=i.beforeTitle.apply(this,[e]),s=i.title.apply(this,[e]),a=i.afterTitle.apply(this,[e]);let r=[];return r=Da(r,Aa(n)),r=Da(r,Aa(s)),r=Da(r,Aa(a)),r}getBeforeBody(e,t){return Ba(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:i}=t,n=[];return h(e,(e=>{const t={before:[],lines:[],after:[]},s=Fa(i,e);Da(t.before,Aa(s.beforeLabel.call(this,e))),Da(t.lines,s.label.call(this,e)),Da(t.after,Aa(s.afterLabel.call(this,e))),n.push(t)})),n}getAfterBody(e,t){return Ba(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const{callbacks:i}=t,n=i.beforeFooter.apply(this,[e]),s=i.footer.apply(this,[e]),a=i.afterFooter.apply(this,[e]);let r=[];return r=Da(r,Aa(n)),r=Da(r,Aa(s)),r=Da(r,Aa(a)),r}_createItems(e){const t=this._active,i=this.chart.data,n=[],s=[],a=[];let r,o,l=[];for(r=0,o=t.length;r<o;++r)l.push(La(this.chart,t[r]));return e.filter&&(l=l.filter(((t,n,s)=>e.filter(t,n,s,i)))),e.itemSort&&(l=l.sort(((t,n)=>e.itemSort(t,n,i)))),h(l,(t=>{const i=Fa(e.callbacks,t);n.push(i.labelColor.call(this,t)),s.push(i.labelPointStyle.call(this,t)),a.push(i.labelTextColor.call(this,t))})),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=l,l}update(e,t){const i=this.options.setContext(this.getContext()),n=this._active;let s,a=[];if(n.length){const e=$a[i.position].call(this,n,this._eventPosition);a=this._createItems(i),this.title=this.getTitle(a,i),this.beforeBody=this.getBeforeBody(a,i),this.body=this.getBody(a,i),this.afterBody=this.getAfterBody(a,i),this.footer=this.getFooter(a,i);const t=this._size=Oa(this,i),r=Object.assign({},e,t),o=za(this.chart,i,r),l=Ra(i,r,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,s={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=a,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,i,n){const s=this.getCaretPosition(e,i,n);t.lineTo(s.x1,s.y1),t.lineTo(s.x2,s.y2),t.lineTo(s.x3,s.y3)}getCaretPosition(e,t,i){const{xAlign:n,yAlign:s}=this,{caretSize:a,cornerRadius:r}=i,{topLeft:o,topRight:l,bottomLeft:c,bottomRight:d}=hi(r),{x:h,y:u}=e,{width:p,height:f}=t;let g,m,v,b,x,y;return"center"===s?(x=u+f/2,"left"===n?(g=h,m=g-a,b=x+a,y=x-a):(g=h+p,m=g+a,b=x-a,y=x+a),v=g):(m="left"===n?h+Math.max(o,c)+a:"right"===n?h+p-Math.max(l,d)-a:this.caretX,"top"===s?(b=u,x=b-a,g=m-a,v=m+a):(b=u+f,x=b+a,g=m+a,v=m-a),y=b),{x1:g,x2:m,x3:v,y1:b,y2:x,y3:y}}drawTitle(e,t,i){const n=this.title,s=n.length;let a,r,o;if(s){const l=vi(i.rtl,this.x,this.width);for(e.x=Na(this,i.titleAlign,i),t.textAlign=l.textAlign(i.titleAlign),t.textBaseline="middle",a=pi(i.titleFont),r=i.titleSpacing,t.fillStyle=i.titleColor,t.font=a.string,o=0;o<s;++o)t.fillText(n[o],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r,o+1===s&&(e.y+=i.titleMarginBottom-r)}}_drawColorBox(e,t,i,n,a){const r=this.labelColors[i],o=this.labelPointStyles[i],{boxHeight:l,boxWidth:c,boxPadding:d}=a,h=pi(a.bodyFont),u=Na(this,"left",a),p=n.x(u),f=l<h.lineHeight?(h.lineHeight-l)/2:0,g=t.y+f;if(a.usePointStyle){const t={radius:Math.min(c,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},i=n.leftForLtr(p,c)+c/2,s=g+l/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,yt(e,t,i,s),e.strokeStyle=r.borderColor,e.fillStyle=r.backgroundColor,yt(e,t,i,s)}else{e.lineWidth=s(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,e.strokeStyle=r.borderColor,e.setLineDash(r.borderDash||[]),e.lineDashOffset=r.borderDashOffset||0;const t=n.leftForLtr(p,c-d),i=n.leftForLtr(n.xPlus(p,1),c-d-2),o=hi(r.borderRadius);Object.values(o).some((e=>0!==e))?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Pt(e,{x:t,y:g,w:c,h:l,radius:o}),e.fill(),e.stroke(),e.fillStyle=r.backgroundColor,e.beginPath(),Pt(e,{x:i,y:g+1,w:c-2,h:l-2,radius:o}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(t,g,c,l),e.strokeRect(t,g,c,l),e.fillStyle=r.backgroundColor,e.fillRect(i,g+1,c-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,t,i){const{body:n}=this,{bodySpacing:s,bodyAlign:a,displayColors:r,boxHeight:o,boxWidth:l,boxPadding:c}=i,d=pi(i.bodyFont);let u=d.lineHeight,p=0;const f=vi(i.rtl,this.x,this.width),g=function(i){t.fillText(i,f.x(e.x+p),e.y+u/2),e.y+=u+s},m=f.textAlign(a);let v,b,x,y,w,_,S;for(t.textAlign=a,t.textBaseline="middle",t.font=d.string,e.x=Na(this,m,i),t.fillStyle=i.bodyColor,h(this.beforeBody,g),p=r&&"right"!==m?"center"===a?l/2+c:l+2+c:0,y=0,_=n.length;y<_;++y){for(v=n[y],b=this.labelTextColors[y],t.fillStyle=b,h(v.before,g),x=v.lines,r&&x.length&&(this._drawColorBox(t,e,y,f,i),u=Math.max(d.lineHeight,o)),w=0,S=x.length;w<S;++w)g(x[w]),u=d.lineHeight;h(v.after,g)}p=0,u=d.lineHeight,h(this.afterBody,g),e.y-=s}drawFooter(e,t,i){const n=this.footer,s=n.length;let a,r;if(s){const o=vi(i.rtl,this.x,this.width);for(e.x=Na(this,i.footerAlign,i),e.y+=i.footerMarginTop,t.textAlign=o.textAlign(i.footerAlign),t.textBaseline="middle",a=pi(i.footerFont),t.fillStyle=i.footerColor,t.font=a.string,r=0;r<s;++r)t.fillText(n[r],o.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+i.footerSpacing}}drawBackground(e,t,i,n){const{xAlign:s,yAlign:a}=this,{x:r,y:o}=e,{width:l,height:c}=i,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=hi(n.cornerRadius);t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.beginPath(),t.moveTo(r+d,o),"top"===a&&this.drawCaret(e,t,i,n),t.lineTo(r+l-h,o),t.quadraticCurveTo(r+l,o,r+l,o+h),"center"===a&&"right"===s&&this.drawCaret(e,t,i,n),t.lineTo(r+l,o+c-p),t.quadraticCurveTo(r+l,o+c,r+l-p,o+c),"bottom"===a&&this.drawCaret(e,t,i,n),t.lineTo(r+u,o+c),t.quadraticCurveTo(r,o+c,r,o+c-u),"center"===a&&"left"===s&&this.drawCaret(e,t,i,n),t.lineTo(r,o+d),t.quadraticCurveTo(r,o,r+d,o),t.closePath(),t.fill(),n.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=$a[e.position].call(this,this._active,this._eventPosition);if(!i)return;const a=this._size=Oa(this,e),r=Object.assign({},i,this._size),o=za(t,e,r),l=Ra(e,r,o,t);n._to===l.x&&s._to===l.y||(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=a.width,this.height=a.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(t);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=ui(t.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&r&&(e.save(),e.globalAlpha=i,this.drawBackground(s,e,n,t),bi(e,t.textDirection),s.y+=a.top,this.drawTitle(s,e,t),this.drawBody(s,e,t),this.drawFooter(s,e,t),xi(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const i=this._active,n=e.map((({datasetIndex:e,index:t})=>{const i=this.chart.getDatasetMeta(e);if(!i)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:i.data[t],index:t}})),s=!u(i,n),a=this._positionChanged(n,t);(s||a)&&(this._active=n,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,i=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],a=this._getActiveElements(e,s,t,i),r=this._positionChanged(a,e),o=t||!u(a,s)||r;return o&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),o}_getActiveElements(e,t,i,n){const s=this.options;if("mouseout"===e.type)return[];if(!n)return t;const a=this.chart.getElementsAtEventForMode(e,s.mode,s,i);return s.reverse&&a.reverse(),a}_positionChanged(e,t){const{caretX:i,caretY:n,options:s}=this,a=$a[s.position].call(this,e,t);return!1!==a&&(i!==a.x||n!==a.y)}}ja.positioners=$a;var Ha={id:"tooltip",_element:ja,positioners:$a,afterInit(e,t,i){i&&(e.tooltip=new ja({chart:e,options:i}))},beforeUpdate(e,t,i){e.tooltip&&e.tooltip.initialize(i)},reset(e,t,i){e.tooltip&&e.tooltip.initialize(i)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const i={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",i))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",i)}},afterEvent(e,t){if(e.tooltip){const i=t.replay;e.tooltip.handleEvent(t.event,i,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:e,title(e){if(e.length>0){const t=e[0],i=t.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return i[t.dataIndex]}return""},afterTitle:e,beforeBody:e,beforeLabel:e,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return i(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:e,afterBody:e,beforeFooter:e,footer:e,afterFooter:e}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Va=Object.freeze({__proto__:null,Decimation:aa,Filler:_a,Legend:Ca,SubTitle:Pa,Title:Ma,Tooltip:Ha});class Wa extends Fn{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:i,label:n}of t)e[i]===n&&e.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(i(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:Q(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:function(e,t,i,n){const s=e.indexOf(t);return-1===s?((e,t,i,n)=>
1("string"==typeof t?(i=e.push(t)-1,n.unshift({index:i,label:t})):isNaN(t)&&(i=null),i))(e,t,i,n):s!==e.lastIndexOf(t)?i:s}(n,e,o(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(i=0),t||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const e=this.min,t=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===e&&t===s.length-1?s:s.slice(e,t+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=e;i<=t;i++)n.push({value:i});return n}getLabelForValue(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function qa(e,t,{horizontal:i,minRotation:n}){const s=V(n),a=(i?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+e).length;return Math.min(t/a,r)}Wa.id="category",Wa.defaults={ticks:{callback:Wa.prototype.getLabelForValue}};class Ya extends Fn{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return i(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const a=e=>n=t?n:e,r=e=>s=i?s:e;if(e){const e=z(n),t=z(s);e<0&&t<0?r(0):e>0&&t>0&&a(0)}if(n===s){let t=1;(s>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*s)),r(s+t),e||a(n-t)}this.min=n,this.max=s}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:i,stepSize:n}=e;return n?(t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const s=function(e,t){const n=[],{bounds:s,step:a,min:r,max:o,precision:l,count:c,maxTicks:d,maxDigits:h,includeBounds:u}=e,p=a||1,f=d-1,{min:g,max:m}=t,v=!i(r),b=!i(o),x=!i(c),y=(m-g)/(h+1);let w,_,S,T,C=R((m-g)/f/p)*p;if(C<1e-14&&!v&&!b)return[{value:g},{value:m}];T=Math.ceil(m/C)-Math.floor(g/C),T>f&&(C=R(T*C/f/p)*p),i(l)||(w=Math.pow(10,l),C=Math.ceil(C*w)/w),"ticks"===s?(_=Math.floor(g/C)*C,S=Math.ceil(m/C)*C):(_=g,S=m),v&&b&&a&&j((o-r)/a,C/1e3)?(T=Math.round(Math.min((o-r)/C,d)),C=(o-r)/T,_=r,S=o):x?(_=v?r:_,S=b?o:S,T=c-1,C=(S-_)/T):(T=(S-_)/C,T=F(T,Math.round(T),C/1e3)?Math.round(T):Math.ceil(T));const E=Math.max(q(C),q(_));w=Math.pow(10,i(l)?E:l),_=Math.round(_*w)/w,S=Math.round(S*w)/w;let M=0;for(v&&(u&&_!==r?(n.push({value:r}),_<r&&M++,F(Math.round((_+M*C)*w)/w,r,qa(r,y,e))&&M++):_<r&&M++);M<T;++M)n.push({value:Math.round((_+M*C)*w)/w});return b&&u&&S!==o?n.length&&F(n[n.length-1].value,o,qa(o,y,e))?n[n.length-1].value=o:n.push({value:o}):b&&S!==o||n.push({value:S}),n}({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&H(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let t=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const n=(i-t)/Math.max(e.length-1,1)/2;t-=n,i+=n}this._startValue=t,this._endValue=i,this._valueRange=i-t}getLabelForValue(e){return ai(e,this.chart.options.locale,this.options.ticks.format)}}class Xa extends Ya{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=a(e)?e:0,this.max=a(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,i=V(this.options.ticks.minRotation),n=(e?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,s.lineHeight/n))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function Ga(e){return 1==e/Math.pow(10,Math.floor(I(e)))}Xa.id="linear",Xa.defaults={ticks:{callback:Dn.formatters.numeric}};class Ua extends Fn{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const i=Ya.prototype.parse.apply(this,[e,t]);if(0!==i)return a(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=a(e)?Math.max(0,e):null,this.max=a(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let i=this.min,n=this.max;const s=t=>i=e?i:t,a=e=>n=t?n:e,r=(e,t)=>Math.pow(10,Math.floor(I(e))+t);i===n&&(i<=0?(s(1),a(10)):(s(r(i,-1)),a(r(n,1)))),i<=0&&s(r(n,-1)),n<=0&&a(r(i,1)),this._zero&&this.min!==this._suggestedMin&&i===r(this.min,0)&&s(r(i,-1)),this.min=i,this.max=n}buildTicks(){const e=this.options,t=function(e,t){const i=Math.floor(I(t.max)),n=Math.ceil(t.max/Math.pow(10,i)),s=[];let a=r(e.min,Math.pow(10,Math.floor(I(t.min)))),o=Math.floor(I(a)),l=Math.floor(a/Math.pow(10,o)),c=o<0?Math.pow(10,Math.abs(o)):1;do{s.push({value:a,major:Ga(a)}),++l,10===l&&(l=1,++o,c=o>=0?1:c),a=Math.round(l*Math.pow(10,o)*c)/c}while(o<i||o===i&&l<n);const d=r(e.max,a);return s.push({value:d,major:Ga(a)}),s}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&H(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":ai(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=I(e),this._valueRange=I(this.max)-I(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(I(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function Ka(e){const t=e.ticks;if(t.display&&e.display){const e=ui(t.backdropPadding);return o(t.font&&t.font.size,tt.font.size)+e.height}return 0}function Qa(e,t,i,n,s){return e===n||e===s?{start:t-i/2,end:t+i/2}:e<n||e>s?{start:t-i,end:t}:{start:t,end:t+i}}function Za(e,t,i,n,s){const a=Math.abs(Math.sin(i)),r=Math.abs(Math.cos(i));let o=0,l=0;n.start<t.l?(o=(t.l-n.start)/a,e.l=Math.min(e.l,t.l-o)):n.end>t.r&&(o=(n.end-t.r)/a,e.r=Math.max(e.r,t.r+o)),s.start<t.t?(l=(t.t-s.start)/r,e.t=Math.min(e.t,t.t-l)):s.end>t.b&&(l=(s.end-t.b)/r,e.b=Math.max(e.b,t.b+l))}function Ja(e){return 0===e||180===e?"center":e<180?"left":"right"}function er(e,t,i){return"right"===i?e-=t:"center"===i&&(e-=t/2),e}function tr(e,t,i){return 90===i||270===i?e-=t/2:(i>270||i<90)&&(e-=t),e}function ir(e,t,i,n){const{ctx:s}=e;if(i)s.arc(e.xCenter,e.yCenter,t,0,k);else{let i=e.getPointPosition(0,t);s.moveTo(i.x,i.y);for(let a=1;a<n;a++)i=e.getPointPosition(a,t),s.lineTo(i.x,i.y)}}Ua.id="logarithmic",Ua.defaults={ticks:{callback:Dn.formatters.logarithmic,major:{enabled:!0}}};
vendor: 13,996 bytes, line 1
1class nr extends Ya{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=ui(Ka(this.options)/2),t=this.width=this.maxWidth-e.width,i=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+i/2+e.top),this.drawingArea=Math.floor(Math.min(t,i)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=a(e)&&!isNaN(e)?e:0,this.max=a(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ka(this.options))}generateTickLabels(e){Ya.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const i=d(this.options.pointLabels.callback,[e,t],this);return i||0===i?i:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?function(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},i=Object.assign({},t),s=[],a=[],r=e._pointLabels.length,o=e.options.pointLabels,l=o.centerPointLabels?M/r:0;for(let u=0;u<r;u++){const r=o.setContext(e.getPointLabelContext(u));a[u]=r.padding;const p=e.getPointPosition(u,e.drawingArea+a[u],l),f=pi(r.font),g=(c=e.ctx,d=f,h=n(h=e._pointLabels[u])?h:[h],{w:vt(c,d.string,h),h:h.length*d.lineHeight});s[u]=g;const m=U(e.getIndexAngle(u)+l),v=Math.round(W(m));Za(i,t,m,Qa(v,p.x,g.w,0,180),Qa(v,p.y,g.h,90,270))}var c,d,h;e.setCenterPoint(t.l-i.l,i.r-t.r,t.t-i.t,i.b-t.b),e._pointLabelItems=function(e,t,i){const n=[],s=e._pointLabels.length,a=e.options,r=Ka(a)/2,o=e.drawingArea,l=a.pointLabels.centerPointLabels?M/s:0;for(let a=0;a<s;a++){const s=e.getPointPosition(a,o+r+i[a],l),c=Math.round(W(U(s.angle+A))),d=t[a],h=tr(s.y,d.h,c),u=Ja(c),p=er(s.x,d.w,u);n.push({x:s.x,y:h,textAlign:u,left:p,top:h,right:p+d.w,bottom:h+d.h})}return n}(e,s,a)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,i,n){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,i,n))}getIndexAngle(e){return U(e*(k/(this._pointLabels.length||1))+V(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(i(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(i(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const i=t[e];return function(e,t,i){return mi(e,{label:i,index:t,type:"pointLabel"})}(this.getContext(),e,i)}}getPointPosition(e,t,i=0){const n=this.getIndexAngle(e)-A+i;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter,angle:n}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:i,right:n,bottom:s}=this._pointLabelItems[e];return{left:t,top:i,right:n,bottom:s}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),ir(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),i.closePath(),i.fillStyle=e,i.fill(),i.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:s}=t,a=this._pointLabels.length;let r,o,l;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:s}}=e;for(let a=t-1;a>=0;a--){const t=s.setContext(e.getPointLabelContext(a)),r=pi(t.font),{x:o,y:l,textAlign:c,left:d,top:h,right:u,bottom:p}=e._pointLabelItems[a],{backdropColor:f}=t;if(!i(f)){const e=hi(t.borderRadius),i=ui(t.backdropPadding);n.fillStyle=f;const s=d-i.left,a=h-i.top,r=u-d+i.width,o=p-h+i.height;Object.values(e).some((e=>0!==e))?(n.beginPath(),Pt(n,{x:s,y:a,w:r,h:o,radius:e}),n.fill()):n.fillRect(s,a,r,o)}Mt(n,e._pointLabels[a],o,l+r.lineHeight/2,r,{color:t.color,textAlign:c,textBaseline:"middle"})}}(this,a),s.display&&this.ticks.forEach(((e,t)=>{0!==t&&(o=this.getDistanceFromCenterForValue(e.value),function(e,t,i,n){const s=e.ctx,a=t.circular,{color:r,lineWidth:o}=t;!a&&!n||!r||!o||i<0||(s.save(),s.strokeStyle=r,s.lineWidth=o,s.setLineDash(t.borderDash),s.lineDashOffset=t.borderDashOffset,s.beginPath(),ir(e,i,a,n),s.closePath(),s.stroke(),s.restore())}(this,s.setContext(this.getContext(t-1)),o,a))})),n.display){for(e.save(),r=a-1;r>=0;r--){const i=n.setContext(this.getPointLabelContext(r)),{color:s,lineWidth:a}=i;a&&s&&(e.lineWidth=a,e.strokeStyle=s,e.setLineDash(i.borderDash),e.lineDashOffset=i.borderDashOffset,o=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,o),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,i=t.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!t.reverse)return;const o=i.setContext(this.getContext(r)),l=pi(o.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),o.showLabelBackdrop){e.font=l.string,a=e.measureText(n.label).width,e.fillStyle=o.backdropColor;const t=ui(o.backdropPadding);e.fillRect(-a/2-t.left,-s-l.size/2-t.top,a+t.width,l.size+t.height)}Mt(e,n.label,0,-s,l,{color:o.color})})),e.restore()}drawTitle(){}}nr.id="radialLinear",nr.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Dn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}},nr.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},nr.descriptors={angleLines:{_fallback:"grid"}};const sr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ar=Object.keys(sr);function rr(e,t){return e-t}function or(e,t){if(i(t))return null;const n=e._adapter,{parser:s,round:r,isoWeekday:o}=e._parseOpts;let l=t;return"function"==typeof s&&(l=s(l)),a(l)||(l="string"==typeof s?n.parse(l,s):n.parse(l)),null===l?null:(r&&(l="week"!==r||!B(o)&&!0!==o?n.startOf(l,r):n.startOf(l,"isoWeek",o)),+l)}function lr(e,t,i,n){const s=ar.length;for(let a=ar.indexOf(e);a<s-1;++a){const e=sr[ar[a]],s=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((i-t)/(s*e.size))<=n)return ar[a]}return ar[s-1]}function cr(e,t,i){if(i){if(i.length){const{lo:n,hi:s}=ee(i,t);e[i[n]>=t?i[n]:i[s]]=!0}}else e[t]=!0}function dr(e,t,i){const n=[],s={},a=t.length;let r,o;for(r=0;r<a;++r)o=t[r],s[o]=r,n.push({value:o,major:!1});return 0!==a&&i?function(e,t,i,n){const s=e._adapter,a=+s.startOf(t[0].value,n),r=t[t.length-1].value;let o,l;for(o=a;o<=r;o=+s.add(o,1,n))l=i[o],l>=0&&(t[l].major=!0);return t}(e,n,s,i):n}class hr extends Fn{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const i=e.time||(e.time={}),n=this._adapter=new vs._date(e.adapters.date);n.init(t),v(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:or(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,i=e.time.unit||"day";let{min:n,max:s,minDefined:r,maxDefined:o}=this.getUserBounds();function l(e){r||isNaN(e.min)||(n=Math.min(n,e.min)),o||isNaN(e.max)||(s=Math.max(s,e.max))}r&&o||(l(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||l(this.getMinMax(!1))),n=a(n)&&!isNaN(n)?n:+t.startOf(Date.now(),i),s=a(s)&&!isNaN(s)?s:+t.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],i=e[e.length-1]),{min:t,max:i}}buildTicks(){const e=this.options,t=e.time,i=e.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,a=ne(n,s,this.max);return this._unit=t.unit||(i.autoSkip?lr(t.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(e,t,i,n,s){for(let a=ar.length-1;a>=ar.indexOf(i);a--){const i=ar[a];if(sr[i].common&&e._adapter.diff(s,n,i)>=t-1)return i}return ar[i?ar.indexOf(i):0]}(this,a.length,t.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(e){for(let t=ar.indexOf(e)+1,i=ar.length;t<i;++t)if(sr[ar[t]].common)return ar[t]}(this._unit):void 0,this.initOffsets(n),e.reverse&&a.reverse(),dr(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(e){let t,i,n=0,s=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),n=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,i=this.getDecimalForValue(e[e.length-1]),s=1===e.length?i:(i-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=Q(n,0,a),s=Q(s,0,a),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const e=this._adapter,t=this.min,i=this.max,n=this.options,s=n.time,a=s.unit||lr(s.minUnit,t,i,this._getLabelCapacity(t)),r=o(s.stepSize,1),l="week"===a&&s.isoWeekday,c=B(l)||!0===l,d={};let h,u,p=t;if(c&&(p=+e.startOf(p,"isoWeek",l)),p=+e.startOf(p,c?"day":a),e.diff(i,t,a)>1e5*r)throw new Error(t+" and "+i+" are too far apart with stepSize of "+r+" "+a);const f="data"===n.ticks.source&&this.getDataTimestamps();for(h=p,u=0;h<i;h=+e.add(h,r,a),u++)cr(d,h,f);return h!==i&&"ticks"!==n.bounds&&1!==u||cr(d,h,f),Object.keys(d).sort(((e,t)=>e-t)).map((e=>+e))}getLabelForValue(e){const t=this._adapter,i=this.options.time;return i.tooltipFormat?t.format(e,i.tooltipFormat):t.format(e,i.displayFormats.datetime)}_tickFormatFunction(e,t,i,n){const s=this.options,a=s.time.displayFormats,r=this._unit,o=this._majorUnit,l=r&&a[r],c=o&&a[o],h=i[t],u=o&&c&&h&&h.major,p=this._adapter.format(e,n||(u?c:l)),f=s.ticks.callback;return f?d(f,[p,t,i],this):p}generateTickLabels(e){let t,i,n;for(t=0,i=e.length;t<i;++t)n=e[t],n.label=this._tickFormatFunction(n.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+i)*t.factor)}getValueForPixel(e){const t=this._offsets,i=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,i=this.ctx.measureText(e).width,n=V(this.isHorizontal()?t.maxRotation:t.minRotation),s=Math.cos(n),a=Math.sin(n),r=this._resolveTickFontOptions(0).size;return{w:i*s+r*a,h:i*a+r*s}}_getLabelCapacity(e){const t=this.options.time,i=t.displayFormats,n=i[t.unit]||i.millisecond,s=this._tickFormatFunction(e,0,dr(this,[e],this._majorUnit),n),a=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return r>0?r:1}getDataTimestamps(){let e,t,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,t=n.length;e<t;++e)i=i.concat(n[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const e=this._cache.labels||[];let t,i;if(e.length)return e;const n=this.getLabels();for(t=0,i=n.length;t<i;++t)e.push(or(this,n[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return oe(e.sort(rr))}}function ur(e,t,i){let n,s,a,r,o=0,l=e.length-1;i?(t>=e[o].pos&&t<=e[l].pos&&({lo:o,hi:l}=te(e,"pos",t)),({pos:n,time:a}=e[o]),({pos:s,time:r}=e[l])):(t>=e[o].time&&t<=e[l].time&&({lo:o,hi:l}=te(e,"time",t)),({time:n,pos:a}=e[o]),({time:s,pos:r}=e[l]));const c=s-n;return c?a+(r-a)*(t-n)/c:a}hr.id="time",hr.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class pr extends hr{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=ur(t,this.min),this._tableRange=ur(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:i}=this,n=[],s=[];let a,r,o,l,c;for(a=0,r=e.length;a<r;++a)l=e[a],l>=t&&l<=i&&n.push(l);if(n.length<2)return[{time:t,pos:0},{time:i,pos:1}];for(a=0,r=n.length;a<r;++a)c=n[a+1],o=n[a-1],l=n[a],Math.round((c+o)/2)!==l&&s.push({time:l,pos:a/(r-1)});return s}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),i=this.getLabelTimestamps();return e=t.length&&i.length?this.normalize(t.concat(i)):t.length?t:i,e=this._cache.all=e,e}getDecimalForValue(e){return(ur(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,i=this.getDecimalForPixel(e)/t.factor-t.end;return ur(this._table,i*this._tableRange+this._minPos,!0)}}pr.id="timeseries",pr.defaults=hr.defaults;var fr=Object.freeze({__proto__:null,CategoryScale:Wa,LinearScale:Xa,LogarithmicScale:Ua,RadialLinearScale:nr,TimeScale:hr,TimeSeriesScale:pr});
1return us.register(Os,fr,ia,Va),us.helpers={...ki},us._adapters=vs,us.Animation=fn,us.Animations=mn,us.animator=me,us.controllers=Hn.controllers.items,us.DatasetController=kn,us.Element=Pn,us.elements=ia,us.Interaction=Oi,us.layouts=Yi,us.platforms=hn,us.Scale=Fn,us.Ticks=Dn,Object.assign(us,Os,fr,ia,Va,hn),us.Chart=us,"undefined"!=typeof window&&(window.Chart=us),us}));var santacasaBtn=document.getElementById("atalho-santa-casa");function showSantacasa(){santacasaBtn&&(santacasaBtn.style.right="0px")}function hideSantacasa(){santacasaBtn&&(santacasaBtn.style.right="-120px")}setTimeout(showSantacasa,3500);var scrollState=0,navClasses=document.body.classList,scrollTop=function(){return window.scrollY},scrollDetect=function(e,t,i){var n=scrollTop();0===scrollTop()?e():n>scrollState?t():i(),n>1400?(navClasses.add("superCompact"),$(".loginmodal").hide(1e3),santacasaBtn&&hideSantacasa()):navClasses.remove("superCompact"),scrollState=scrollTop()};function homeAction(){santacasaBtn&&showSantacasa()}function downAction(){navClasses.add("compact")}function upAction(){navClasses.remove("compact")}function myFunction(){document.getElementById("myDropdown").classList.toggle("show")}function clearText(){document.getElementById("search").value=""}window.addEventListener("scroll",(function(){scrollDetect(homeAction,downAction,upAction)})),window.onclick=function(e){if(!e.target.matches(".dropbtn")){var t,i=document.getElementsByClassName("dropdown-content");for(t=0;t<i.length;t++){var n=i[t];n.classList.contains("show")&&n.classList.remove("show")}}},$(document).ready((function(){$("#showlogin").click((function(){$(".loginmodal").show(1e3)})),$("#hidelogin").click((function(){$(".loginmodal").hide(1e3)}))}));var body=document.body,mobileMenu=document.getElementById("trigger-menu"),icnMenu=document.querySelector(".menu-icon"),isMobileMenuOpen=!1;function openMobileNav(){document.body.scrollTop=document.documentElement.scrollTop=0,body.classList.add("lock-scroll"),setTimeout((function(){document.getElementById("swiper-pagination-mobile").style.opacity="1"}),500),document.getElementById("pub-menu").style.display="none",document.getElementById("menu-mobile").style.maxHeight="calc(100% - 80px)",document.getElementById("menu-mobile").style.maxHeight="-webkit-calc(100% - 80px)",document.getElementById("menu-mobile").style.maxHeight="-moz-calc(100% - 80px)"}function closeMobileNav(){body.classList.remove("lock-scroll"),document.getElementById("swiper-pagination-mobile").style.opacity="0",document.getElementById("menu-mobile").style.maxHeight="0%",$("body").toggleClass("lock-scroll"),body.classList.remove("lock-scroll")}mobileMenu.addEventListener("click",(function(e){isMobileMenuOpen?(closeMobileNav(),isMobileMenuOpen=!1):(openMobileNav(),isMobileMenuOpen=!0),icnMenu.classList.toggle("active")}),!1);var sideMenu=document.getElementById("side-menu"),isOpen=!1;function openSideNav(){document.getElementById("mySidenav").style.left="0"}function closeSideNav(){document.getElementById("mySidenav").style.left="-260px"}
1function renderSwiperMenu(){if($(".mySwiperMenu").length){new Swiper(".mySwiperMenu",{spaceBetween:0,slidesPerView:1,pagination:{el:".swiper-pagination",clickable:!0,dynamicBullets:!0},loop:!1})}}function renderSwiperSuplements(){if($(".swiperSuplements").length){new Swiper(".swiperSuplements",{spaceBetween:0,slidesPerView:"auto",dots:!0,loop:!1,pagination:{el:".swiper-pagination"},breakpoints:{640:{slidesPerView:"auto",spaceBetween:0},768:{slidesPerView:"auto",spaceBetween:0},1024:{slidesPerView:2,spaceBetween:0}}})}}function renderSwiperSanto(){if($(".swiperSanto").length){new Swiper(".swiperSanto",{spaceBetween:0,slidesPerView:"auto",dots:!1,loop:!0}),document.getElementsByClassName("swiperFarmacia");const e=new Swiper(".swiperFarmacia",{spaceBetween:0,slidesPerView:"auto",centeredSlides:!0,allowTouchMove:!0,shortSwipes:!0,slideToClickedSlide:!0,dots:!1,loop:!1,on:{slideChange:function(){0==e.activeIndex&&openFarmaciasInfo("amares",0),1==e.activeIndex&&openFarmaciasInfo("barcelos",1),2==e.activeIndex&&openFarmaciasInfo("braga",2),3==e.activeIndex&&openFarmaciasInfo("esposende",3),4==e.activeIndex&&openFarmaciasInfo("fafe",4),5==e.activeIndex&&openFarmaciasInfo("guimaraes",5),6==e.activeIndex&&openFarmaciasInfo("povoa_de_lanhoso",6),7==e.activeIndex&&openFarmaciasInfo("terras_de_bouro",7),8==e.activeIndex&&openFarmaciasInfo("viana_do_castelo",8),9==e.activeIndex&&openFarmaciasInfo("vila_nova_de_famalicao",9),10==e.activeIndex&&openFarmaciasInfo("vila_verde",10)}}})}}
1function renderSwiperPolls(){if($(".swiperPolls").length){new Swiper(".swiperPolls",{spaceBetween:0,slidesPerView:1,dots:!1,loop:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,allowTouchMove:!1,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})}}function renderMySwiperOpinon(){if($(".mySwiperOpinion").length){new Swiper(".mySwiperOpinion",{spaceBetween:0,slidesPerView:"auto",dots:!0,loop:!1,preventClicks:!1,preventClicksPropagation:!1,allowTouchMove:!0,pagination:{el:".swiper-pagination"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})}}function renderSwiperOpinon(){if($(".swiperOpinion").length){new Swiper(".swiperOpinion",{spaceBetween:0,slidesPerView:"auto",dots:!1,loop:!1,pagination:{el:".swiper-pagination"},breakpoints:{640:{slidesPerView:"auto",spaceBetween:0},768:{slidesPerView:2,spaceBetween:0},1024:{slidesPerView:3,spaceBetween:0}}})}}function renderSwiperReports(){if($(".mySwiperReports").length){new Swiper(".mySwiperReports",{spaceBetween:0,slidesPerView:"auto",dots:!1,loop:!1,breakpoints:{640:{slidesPerView:"auto",spaceBetween:0},768:{slidesPerView:"auto",spaceBetween:0},1024:{slidesPerView:3,spaceBetween:0}}})}}
1function renderSwiperImportantNews(){if($(".swiperImportantNews").length){new Swiper(".swiperImportantNews",{spaceBetween:0,slidesPerView:1,dots:!1,loop:!1,pagination:{el:".swiper-pagination"}})}}function renderSwiperMinha(){if($(".mySwiperMinha").length){new Swiper(".mySwiperMinha",{spaceBetween:0,slidesPerView:"auto",dots:!1,loop:!1,breakpoints:{640:{slidesPerView:"auto",spaceBetween:0},768:{slidesPerView:"auto",spaceBetween:0},1024:{slidesPerView:3,spaceBetween:0}}})}}function renderSwiperCanudos(){if($(".mySwiperCanudos").length){new Swiper(".mySwiperCanudos",{spaceBetween:0,slidesPerView:"auto",dots:!1,loop:!1,breakpoints:{640:{slidesPerView:"auto",spaceBetween:0}}})}}function renderSwiperFarmacia(){if($(".swiperFarmacia").length){const e=new Swiper(".swiperFarmacia",{spaceBetween:0,slidesPerView:"auto",centeredSlides:!0,allowTouchMove:!0,shortSwipes:!0,slideToClickedSlide:!0,dots:!1,loop:!1,on:{slideChange:function(){0==e.activeIndex&&openFarmaciasInfo("amares",0),1==e.activeIndex&&openFarmaciasInfo("barcelos",1),2==e.activeIndex&&openFarmaciasInfo("braga",2),3==e.activeIndex&&openFarmaciasInfo("esposende",3),4==e.activeIndex&&openFarmaciasInfo("fafe",4),5==e.activeIndex&&openFarmaciasInfo("guimaraes",5),6==e.activeIndex&&openFarmaciasInfo("povoa_de_lanhoso",6),7==e.activeIndex&&openFarmaciasInfo("terras_de_bouro",7),8==e.activeIndex&&openFarmaciasInfo("viana_do_castelo",8),9==e.activeIndex&&openFarmaciasInfo("vila_nova_de_famalicao",9),10==e.activeIndex&&openFarmaciasInfo("vila_verde",10)}}})}}
1function renderSwiperCategory(e){$(".mySwiperCategory-"+e).length&&new Swiper(".mySwiperCategory-"+e,{spaceBetween:0,slidesPerView:"auto",dots:!1,loop:!1,breakpoints:{640:{slidesPerView:"auto",spaceBetween:0},768:{slidesPerView:"auto",spaceBetween:0},1024:{slidesPerView:3,spaceBetween:0}}})}function renderSwiperExternalNews(e){$(".swiper-"+e).length&&new Swiper(".swiper-"+e,{spaceBetween:0,slidesPerView:"auto",dots:!1,loop:!1,breakpoints:{640:{slidesPerView:"auto",spaceBetween:0},768:{slidesPerView:"auto",spaceBetween:0},1024:{slidesPerView:3,spaceBetween:0}}})}function renderSwiperPubs(e){if($(".swiperPub3-"+e).length){new Swiper(".swiperPub3-"+e,{spaceBetween:0,slidesPerView:1,dots:!1,loop:!1,pagination:{el:".swiper-pagination"}})}}function renderSwiperPodcasts(){if($(".swiperPodcasts").length){new Swiper(".swiperPodcasts",{spaceBetween:0,slidesPerView:"auto",dots:!0,loop:!1,pagination:{el:".swiper-pagination"},breakpoints:{640:{slidesPerView:"auto",spaceBetween:0},768:{slidesPerView:"auto",spaceBetween:0},1024:{slidesPerView:2,spaceBetween:0}}})}}sideMenu.addEventListener("click",(function(e){isOpen?closeSideNav():openSideNav(),isOpen=!isOpen}),!1),document.addEventListener("click",(function(e){sideMenu.contains(e.target)||(closeSideNav(),isOpen=!isOpen)})),$((function(){$(document).on("submit","#handleAjax",(function(){if(this.classList.contains("login")){var e=this;return $(this).find("[type='submit']").html("Login..."),$.post($(this).attr("action"),$(this).serialize(),(function(t){$(e).find("[type='submit']").html("Login"),t.status&&(window.location=t.redirect_location)})).fail((function(t){$(e).find("[type='submit']").html("Login"),$(".alert").remove();var i=JSON.parse(t.responseText);for(var n in i)for(var s of i[n])$("#errors-list").append("<div class='alert alert-danger'>"+s+"</div>")})),!1}if(this.classList.contains("register")){e=this;return $(this).find("[type='submit']").html("Registar..."),$.post($(this).attr("action"),$(this).serialize(),(function(t){$(e).find("[type='submit']").html("Registar"),t.status&&(window.location=t.redirect_location)})).fail((function(t){$(e).find("[type='submit']").html("Registar"),$(".alert").remove();var i=JSON.parse(t.responseText);for(var n in i)$("#"+n).append("<div class='alert alert-danger'>"+i[n]+"</div>")})),!1}}))})),function(e){var t=[];e("#gallery").find("figure").each((function(){var i=e(this).find("a"),n={src:i.attr("href"),w:i.data("width"),h:i.data("height"),title:i.data("caption")};t.push(n)})),e("a.gallery-img").click((function(i){i.preventDefault();var n=e(".pswp")[0],s={index:e(this).parent("figure").index(),bgOpacity:.85,showHideOpacity:!0,allowPanToNext:!0,loop:!0,closeOnVerticalDrag:!0,clickToCloseNonZoomable:!0,arrowKeys:!0,indexIndicatorSep:" de "},a=new PhotoSwipe(n,PhotoSwipeUI_Default,t,s);a.init(),a.on("closingAnimationEnd",(()=>{n.destroy()}))}))}(jQuery),window.addEventListener("suplementsChanged",(e=>
1{renderSwiperSuplements()})),window.addEventListener("loadSwipers",(e=>{renderSwiperSanto()})),window.addEventListener("pollsChanged",(e=>{renderSwiperPolls()})),window.addEventListener("opinionChanged",(e=>{renderSwiperOpinon()})),window.addEventListener("canudosChanged",(e=>{renderSwiperCanudos()})),window.addEventListener("podcastsChanged",(e=>{renderSwiperPodcasts()})),window.addEventListener("load",(e=>{renderMySwiperOpinon(),renderSwiperFarmacia(),window.innerWidth<=1280&&(renderSwiperPolls(),renderSwiperSuplements(),renderSwiperReports(),renderSwiperImportantNews(),renderSwiperMinha(),renderSwiperCanudos(),renderSwiperMenu(),renderSwiperOpinon(),renderSwiperPodcasts())}));var i,acc=document.getElementsByClassName("accordion");for(i=0;i<acc.length;i++)acc[i].addEventListener("click",(function(){this.classList.toggle("active");var e=this.nextElementSibling;"block"===e.style.display?e.style.display="none":e.style.display="block"}));window.onload=function(){document.querySelectorAll(".white-svg").forEach((e=>{let t=e.getSVGDocument();if(t){t.querySelectorAll("path").forEach((e=>{e.style.fill="white"}))}}))},window.onorientationchange=function(){switch(window.orientation){case 0:case 90:case-90:window.location.reload()}},setTimeout((function(){var e=document.getElementById("subscribe-banner");e&&e.classList.add("revealBanner")}),3e3),document.querySelectorAll('a[href^="#"]').forEach((e=>{e.addEventListener("click",(function(e){e.preventDefault(),document.querySelector(this.getAttribute("href")).scrollIntoView({behavior:"smooth"})}))})),window.addEventListener("load",(()=>{let e=document.querySelectorAll("ins.ADSENSE");Array.from(e).forEach((e=>{let t=e.parentElement;"none"===window.getComputedStyle(t).getPropertyValue("display")?e.remove():(e.classList.remove("ADSENSE"),e.classList.add("adsbygoogle"),(adsbygoogle=window.adsbygoogle||[]).push({}))}))})),document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("oembed[url]").forEach((async e=>{const t=e.getAttribute("url");if(!t)return void console.error("O elemento oEmbed não possui uma URL válida.");const i=`https://www.diariodominho.pt/oembed?format=json&url=${encodeURIComponent(t)}`;try{const t=await fetch(i);if(!t.ok)return void console.error(`Falha na requisição oEmbed: HTTP status ${t.status}`);const n=await t.json();if(!n.html)return void console.error("A resposta oEmbed não contém dados HTML:",n);const s=document.createElement("div");s.innerHTML=n.html,e.parentNode.replaceChild(s,e),window.FB&&FB.XFBML.parse(s),window.twttr&&window.twttr.widgets&&twttr.widgets.load(),window.instgrm&&window.instgrm.Embeds&&instgrm.Embeds.process()}catch(e){console.error("Erro ao tentar carregar o oEmbed:",e)}}))}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.