PageSourceSearch

https://www.uferlichter.de/static/script/script.js?1790757948

js uferlichter.de collected 2026-10-08 23:01:41 UTC 1,341,055 bytes, 74 lines download raw bytes

1/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */
2function SuggestController(){this.init=function(){jQuery("form[data-suggest]").each((function(){var t,e=$(this),i=e.find(".tx-solr-suggest");t=e.find(".tx-solr-autocomplete").length>0?e.find(".tx-solr-autocomplete"):$("body"),e.find(".tx-solr-suggest-focus").focus(),0===i.length&&(i=e),i.css("position","relative"),e.on("submit",(function(t){""===e.find(".tx-solr-suggest").val()&&(t.preventDefault(),e.find(".tx-solr-suggest").focus())})),e.find(".tx-solr-suggest").devbridgeAutocomplete({serviceUrl:e.data("suggest"),dataType:"jsonp",ajaxSettings:{jsonp:"tx_solr[callback]"},paramName:"tx_solr[queryString]",groupBy:"category",maxHeight:1e3,appendTo:t,autoSelectFirst:!1,triggerSelectOnValidInput:!1,width:.66*i.outerWidth(),onSelect:function(t){t.data.link?0===t.data.link.indexOf("https://www.youtube.com")?openVideoOverlay(t.data.link):location.href=t.data.link:e.trigger("submit")},transformResult:function(t){if(!t.suggestions)return{suggestions:[]};var i,n={suggestions:$.map(t.suggestions,(function(t,e){return i||(i=e),{value:e,data:{category:"suggestion",count:t}}}))};return $.each(t.documents,(function(t,s){var o=s,a=e.data("suggest-header")?e.data("suggest-header"):"Top results";o.category=a,o.group&&(o.category=e.data("suggest-header-"+o.group)?e.data("suggest-header-"+o.group):o.group),n.suggestions.push({value:i,data:o})})),n},beforeRender:function(t){t.find(".autocomplete-group:first").remove(),t.addClass("tx-solr-autosuggest"),i.parent().addClass("autocomplete-active").fadeIn()},formatResult:function(t,e){if(!e)return t.value;var i="("+$.Autocomplete.utils.escapeRegExChars(e.trim())+")";if("suggestion"===t.data.category)return t.value.replace(new RegExp(i,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>");var n=t.data.title.replace(new RegExp(i,"gi"),"<em>$1</em>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?em)&gt;/g,"<$1>");return'<div class="'+t.data.type+'">'+(t.data.previewImage?"<figure "+(t.data.hasVideo?'class="hasVideo"':"")+'><img src="'+t.data.previewImage+'" /></figure>':"")+'<a href="'+t.data.link+'" class="internal-link">'+n+"</a></div>"}}).on("blur",(function(){i.parent().removeClass("autocomplete-active");var t=$(this);setTimeout((function(){t.devbridgeAutocomplete("hide")}),200)}))}))}}function __(t){var e=$("html").attr("lang"),i={de:{"more ...":"weiterlesen","less ...":"weniger Text",difficulty1:"leicht",difficulty2:"mittel",difficulty3:"schwer",short:"kurz (< 5km)",medium:"mittel (5-10 km)",long:"lang (>= 10km)",selectregions:"Regionen wählen",choosen:"ausgewählt",showFilter:"Filter",showSearch:"Suche ändern",showList:"Liste anzeigen",showMap:"Karte anzeigen",confirm:"Übernehmen",categories:"Kategorien",category:"Kategorie",moreText:"Mehr dazu",showOnMap:"Auf Karte",Unterkunftsart:"Unterkunftsart",listTooLong:"List hat mehr als 50 Einträge. Bitte zoomen Sie näher heran.",search:"suchen",reset:"zurücksetzen","reset all":"Alle zurücksetzen",Filter:"Filter","type of content":"Inhaltstypen","show results":"Ergebnisse anzeigen","more filters":"Mehr Filter","more filter":"Mehr Filter",none:"Ohne",weak:"Schwach",fair:"Angemessen",good:"Gut","very Good":"Sehr gut",excellent:"Ausgezeichnet",save:"Speichern",Search:"Suchen","less filter":"Weniger Filter"},en:{"more ...":"read more","less ...":"less text",selectregions:"choose holiday region",choosen:"choosen",showFilter:"Filter",showSearch:"change search",showList:"show list",showMap:"show map",confirm:"confirm",categories:"Categories",category:"Category",showOnMap:"show on map",moreText:"more",Unterkunftsart:"Accommodation type",listTooLong:"List contains more than 50 entries. Please zoom in",search:"search",reset:"Reset","reset all":"Reset all",Filter:"filter","type of content":"type of content","show results":"Show results","more filter":"more filters",none:"None",weak:"Weak",fair:"Fair",good:"Good","very Good":"Very Good",excellent:"Excellent",save:"Save",Search:"Search","less filter":"Less filters",difficulty1:"easy",difficulty2:"medium",difficulty3:"difficult",short:"short (< 5km)",medium:"medium (5-10 km)",long:"long (>= 10km)"},nl:{"more ...":"meer","less ...":"Minder tekst",selectregions:"kiez regio",choosen:"selecteerd",showFilter:"Filter",showSearch:"Suche ändern",showList:"lijst weergeven",showMap:"kaart weergeven",confirm:"Über
2nehmen",categories:"Kategorien",category:"Kategorie",showOnMap:"op de kaart",moreText:"meer hierover",Unterkunftsart:"sort accommodatie",listTooLong:"Lijst heeft meer dan 50 items. Zoom in a.u.b.",search:"zoek",reset:"resetten","reset all":"alles resetten",Filter:"filter","type of content":"Inhoudstypen","show results":"toon resultaten","more filter":"meer filteren",none:"Geen",weak:"Zwak",fair:"Redelijk",good:"Goed","very Good":"Zeer goed",excellent:"Uitstekend",save:"redden",Search:"Zoek","less filter":"minder filteren",difficulty1:"eenvoudig",difficulty2:"gemiddeld",difficulty3:"zwaar",short:"kort (< 5km)",medium:"medium (5-10 km)",long:"lang (>= 10km)"},fr:{"more ...":"En savoir plus","less ...":"Moins de texte",selectregions:"Sélectionner une région",showList:"Afficher la liste",showMap:"Afficher la carte",moreText:"En savoir plus",showOnMap:"Voir sur la carte",search:"chercher",Unterkunftsart:"Type d'hébergement",reset:"effacer","reset all":"effacer tout",Filter:"filtre","type of content":"type de contenu","show results":"montrer les résultats","more filter":"plus de filtre",none:"Aucun",weak:"Faible",fair:"Passable",good:"Bon","very Good":"Très bon",excellent:"Excellent",save:"sauvegarder",Search:"recherche","less filter":"moins de filtre",difficulty1:"Facile",difficulty2:"Moyen",difficulty3:"Difficile",short:"court (< 5km)",medium:"moyen (5-10 km)",long:"long (>= 10km)"}};return this.customLang&&this.customLang[e]&&this.customLang[e][t]?this.customLang[e]&&this.customLang[e][t]?this.customLang[e][t]:t:i[e]&&i[e][t]?i[e][t]:t}!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=[],n=Object.getPrototypeOf,s=i.slice,o=i.flat?function(t){return i.flat.call(t)}:function(t){return i.concat.apply([],t)},a=i.push,r=i.indexOf,l={},c=l.toString,h=l.hasOwnProperty,d=h.toString,u=d.call(Object),p={},f=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},m=function(t){return null!=t&&t===t.window},g=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,i){var n,s,o=(i=i||g).createElement("script");if(o.text=t,e)for(n in v)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function y(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var b="3.5.1",w=function(t,e){return new w.fn.init(t,e)};function x(t){var e=!!t&&"length"in t&&t.length,i=y(t);return!f(t)&&!m(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}w.fn=w.prototype={jquery:b,constructor:w,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=w.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return w.each(this,t)},map:function(t){return this.pushStack(w.map(this,(function(e,i){return t.call(e,i,e)})))},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(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(0<=i&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:i.sort,splice:i.splice},w.extend=w.fn.extend=function(){var t,e,i,n,s,o,a=arguments[0]||{},r=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[r]||{},r++),"object"==typeof a||f(a)||(a={}),r===l&&(a=this,r--);r<l;r++)if(null!=(t=arguments[r]))for(e in t)n=t[e],"__proto__"!==e&&a!==n&&(c&&n&&(w.isPlainObject(n)||(s=Array.isArray(n)))?(i=a[e],o=s&&!Array.isArray(i)?[]:s||w.isPlainObject(i)?i:{},s=!1,a[e]=w.extend(c,o,n)):void 0!==n&&(a[e]=n));return a},w.extend({expando:"jQuery"+(b+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==c.call(t)||(e=n(t))&&("function"!=typeof(i=h.call(e,"constructor")&&e.constructor)||d.call(i)!==u))},isEmptyObject:function(t){var e;
vendor: 9,006 bytes, line 2
2for(e in t)return!1;return!0},globalEval:function(t,e,i){_(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(x(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(x(Object(t))?w.merge(i,"string"==typeof t?[t]:t):a.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:r.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,a=!i;s<o;s++)!e(t[s],s)!==a&&n.push(t[s]);return n},map:function(t,e,i){var n,s,a=0,r=[];if(x(t))for(n=t.length;a<n;a++)null!=(s=e(t[a],a,i))&&r.push(s);else for(a in t)null!=(s=e(t[a],a,i))&&r.push(s);return o(r)},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(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var k=function(t){var e,i,n,s,o,a,r,l,c,h,d,u,p,f,m,g,v,_,y,b="sizzle"+1*new Date,w=t.document,x=0,k=0,S=lt(),T=lt(),E=lt(),C=lt(),M=function(t,e){return t===e&&(d=!0),0},L={}.hasOwnProperty,P=[],D=P.pop,A=P.push,O=P.push,I=P.slice,z=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}"+$+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+$+"*("+B+")(?:"+$+"*([*^$|!~]?=)"+$+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+$+"*\\]",H=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",j=new RegExp($+"+","g"),F=new RegExp("^"+$+"+|((?:^|[^\\\\])(?:\\\\.)*)"+$+"+$","g"),W=new RegExp("^"+$+"*,"+$+"*"),Y=new RegExp("^"+$+"*([>+~]|"+$+")"+$+"*"),Z=new RegExp($+"|>"),V=new RegExp(H),q=new RegExp("^"+B+"$"),U={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+$+"*(even|odd|(([+-]|)(\\d*)n|)"+$+"*(?:([+-]|)"+$+"*(\\d+)|))"+$+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+$+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+$+"*((?:-\\d)?\\d*)"+$+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+$+"?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,st=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){u()},at=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(P=I.call(w.childNodes),w.childNodes),P[w.childNodes.length].nodeType}catch(e){O={apply:P.length?function(t,e){A.apply(t,I.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function rt(t,e,n,s){var o,r,c,h,d,f,v,_=e&&e.ownerDocument,w=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return n;if(!s&&(u(e),e=e||p,m)){if(11!==w&&(d=J.exec(t)))if(o=d[1]){if(9===w){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(_&&(c=_.getElementById(o))&&y(e,c)&&c.id===o)return n.push(c),n}else{if(d[2])return O.apply(n,e.getElementsByTagName(t)),n;if((o=d[3])&&i.getElementsByClassName&&e.getElementsByClassName)return O.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!C[t+" "]&&(!g||!g.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(v=t,_=e,1===w&&(Z.test(t)||Y.test(t))){for((_=tt.test(t)&&vt(e.parentNode)||e)===e&&i.scope||((h=e.getAttribute("id"))?h=h.replace(nt,st):e.setAttribute("id",h=b)),r=(f=a(t)).length;r--;)f[r]=(h?"#"+h:":scope")+" "+yt(f[r]);v=f.join(",")}try{return O.apply(n,_.querySelectorAll(v)),n}catch(e){C(t,!0)}finally{h===b&&e.removeAttribute("id")}}}return l(t.replace(F,"$1"),e,n,s)}function lt(){var t=[];return function e(i,s){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=s}}function ct(t){return t[b]=!0,t}function ht(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var i=t.split("|"),s=i.length;s--;)n.attrHandle[i[s]]=e}function ut(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function mt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ct((function(e){return e=+e,ct((function(i,n){for(var s,o=t([],i.length,e),a=o.length;a--;)i[s=o[a]]&&(i[s]=!(n[s]=i[s]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=rt.support={},o=rt.isXML=function(t){var e=t.namespaceURI,i=(t.ownerDocument||t).documentElement;return!G.test(e||i&&i.nodeName||"HTML")},u=rt.setDocument=function(t){var e,s,a=t?t.ownerDocument||t:w;return a!=p&&9===a.nodeType&&a.documentElement&&(f=(p=a).documentElement,m=!o(p),w!=p&&(s=p.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",ot,!1):s.attachEvent&&s.attachEvent("onunload",ot)),i.scope=ht((function(t){return f.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=ht((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=ht((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=Q.test(p.getElementsByClassName),i.getById=ht((function(t){return f.appendChild(t).id=b,!p.getElementsByName||!p.getElementsByName(b).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(i.qsa=Q.test(p.querySelectorAll))&&(ht((function(t){var e;f.appendChild(t).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+$+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+$+"*(?:value|"+N+")"),t.querySelectorAll("[id~="+b+"-]").length||g.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||g.push("\\["+$+"*name"+$+"*="+$+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]"),t.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ht((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+$+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(i.matchesSelector=Q.test(_=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ht((function(t){i.disconnectedMatch=_.call(t,"*"),_.call(t,"[s!='']:x"),v.push("!=",H)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.j
vendor: 5,066 bytes, line 2
2oin("|")),e=Q.test(f.compareDocumentPosition),y=e||Q.test(f.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},M=e?function(t,e){if(t===e)return d=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==p||t.ownerDocument==w&&y(w,t)?-1:e==p||e.ownerDocument==w&&y(w,e)?1:h?z(h,t)-z(h,e):0:4&n?-1:1)}:function(t,e){if(t===e)return d=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,a=[t],r=[e];if(!s||!o)return t==p?-1:e==p?1:s?-1:o?1:h?z(h,t)-z(h,e):0;if(s===o)return ut(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)r.unshift(i);for(;a[n]===r[n];)n++;return n?ut(a[n],r[n]):a[n]==w?-1:r[n]==w?1:0}),p},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if(u(t),i.matchesSelector&&m&&!C[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var n=_.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){C(e,!0)}return 0<rt(e,p,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!=p&&u(t),y(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!=p&&u(t);var s=n.attrHandle[e.toLowerCase()],o=s&&L.call(n.attrHandle,e.toLowerCase())?s(t,e,!m):void 0;return void 0!==o?o:i.attributes||!m?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},rt.escape=function(t){return(t+"").replace(nt,st)},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,n=[],s=0,o=0;if(d=!i.detectDuplicates,h=!i.sortStable&&t.slice(0),t.sort(M),d){for(;e=t[o++];)e===t[o]&&(s=n.push(o));for(;s--;)t.splice(n[s],1)}return h=null,t},s=rt.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=s(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=s(e);return i},(n=rt.selectors={cacheLength:50,createPseudo:ct,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return U.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&V.test(i)&&(e=a(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+$+")"+t+"("+$+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var s=rt.attr(n,t);return null==s?"!="===e:!e||(s+="","="===e?s===i:"!="===e?s!==i:"^="===e?i&&0===s.indexOf(i):"*="===e?i&&-1<s.indexOf(i):"$="===e?i&&s.slice(-i.length)===i:"~="===e?-1<(" "+s.replace(j," ")+" ").indexOf(i):"|="===e&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),r="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var c,h,d,u,p,f,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,v=r&&e.nodeName.toLowerCase(),_=!l&&!r,y=!1;if(g){if(o){for(;m;){for(u=e;u=u[m];)if(r?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&_){for(y=(p=(c=(h=(d=(u=g)[b]||(u[b]={}))[u.uniqueID]||(d[u.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],u=p&&g.childNodes[p];u=++p&&u&&u[m]||(y=p=0)||f.pop();)if(1===u.nodeType&&++y&&u===e){h[t]=[x,p,y];break}}else if(_&&(y=p=(c=(h=(d=(u=e)[b]||(u[b]={}))[u.uniqueID]||(d[u.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===y)for(;(u=++p&&u&&u[m]||(y=p=0)||f.pop())&&((r?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++y||(_&&((h=(d=u[b]||(u[b]={}))[u.uniqueID]||(d[u.uniqueID]={}))[t]=[x,y]),u!==e)););return(y-=s)===n||y%n==0&&0<=y/n}}},PSEUDO:function(t,e){var i,s=n.pseudos[t]||n.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return s[b]?s(e):1<s.length?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,i){for(var n,o=s(t,e),a=o.length;a--;)t[n=z(t,o[a])]=!(i[n]=o[a])})):function(t){return s(t,0,i)}):s}},pseudos:{not:ct((function(t){var e=[],i=[],n=r(t.replace(F,"$1"));
vendor: 13,592 bytes, line 2
2return n[b]?ct((function(t,e,i,s){for(var o,a=n(t,null,s,[]),r=t.length;r--;)(o=a[r])&&(t[r]=!(e[r]=o))})):function(t,s,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:ct((function(t){return function(e){return 0<rt(t,e).length}})),contains:ct((function(t){return t=t.replace(et,it),function(e){return-1<(e.textContent||s(e)).indexOf(t)}})),lang:ct((function(t){return q.test(t||"")||rt.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,i){return[i<0?i+e:i]})),even:gt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:gt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:gt((function(t,e,i){for(var n=i<0?i+e:e<i?e:i;0<=--n;)t.push(n);return t})),gt:gt((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ft(e);function _t(){}function yt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function bt(t,e,i){var n=e.dir,s=e.next,o=s||n,a=i&&"parentNode"===o,r=k++;return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||a)return t(e,i,s);return!1}:function(e,i,l){var c,h,d,u=[x,r];if(l){for(;e=e[n];)if((1===e.nodeType||a)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||a)if(h=(d=e[b]||(e[b]={}))[e.uniqueID]||(d[e.uniqueID]={}),s&&s===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=h[o])&&c[0]===x&&c[1]===r)return u[2]=c[2];if((h[o]=u)[2]=t(e,i,l))return!0}return!1}}function wt(t){return 1<t.length?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function xt(t,e,i,n,s){for(var o,a=[],r=0,l=t.length,c=null!=e;r<l;r++)(o=t[r])&&(i&&!i(o,n,s)||(a.push(o),c&&e.push(r)));return a}function kt(t,e,i,n,s,o){return n&&!n[b]&&(n=kt(n)),s&&!s[b]&&(s=kt(s,o)),ct((function(o,a,r,l){var c,h,d,u=[],p=[],f=a.length,m=o||function(t,e,i){for(var n=0,s=e.length;n<s;n++)rt(t,e[n],i);return i}(e||"*",r.nodeType?[r]:r,[]),g=!t||!o&&e?m:xt(m,u,t,r,l),v=i?s||(o?t:f||n)?[]:a:g;if(i&&i(g,v,r,l),n)for(c=xt(v,p),n(c,[],r,l),h=c.length;h--;)(d=c[h])&&(v[p[h]]=!(g[p[h]]=d));if(o){if(s||t){if(s){for(c=[],h=v.length;h--;)(d=v[h])&&c.push(g[h]=d);s(null,v=[],c,l)}for(h=v.length;h--;)(d=v[h])&&-1<(c=s?z(o,d):u[h])&&(o[c]=!(a[c]=d))}}else v=xt(v===a?v.splice(f,v.length):v),s?s(null,a,v,l):O.apply(a,v)}))}function St(t){for(var e,i,s,o=t.length,a=n.relative[t[0].type],r=a||n.relative[" "],l=a?1:0,h=bt((function(t){return t===e}),r,!0),d=bt((function(t){return-1<z(e,t)}),r,!0),u=[function(t,i,n){var s=!a&&(n||i!==c)||((e=i).nodeType?h(t,i,n):d(t,i,n));return e=null,s}];l<o;l++)if(i=n.relative[t[l].type])u=[bt(wt(u),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[b]){for(s=++l;s<o&&!n.relative[t[s].type];s++);return kt(1<l&&wt(u),1<l&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(F,"$1"),i,l<s&&St(t.slice(l,s)),s<o&&St(t=t.slice(s)),s<o&&yt(t))}u.push(i)}return wt(u)}return _t.prototype=n.filters=n.pseudos,n.setFilters=new _t,a=rt.tokenize=function(t,e){var i,s,o,a,r,l,c,h=T[t+" "];if(h)return e?0:h.slice(0);for(r=t,l=[],c=n.preFilter;r;){for(a in i&&!(s=W.exec(r))||(s&&(r=r.slice(s[0].length)||r),l.push(o=[])),i=!1,(s=Y.exec(r))&&(i=s.shift(),o.push({value:i,type:s[0].replace(F," ")}),r=r.slice(i.length)),n.filter)!(s=U[a].exec(r))||c[a]&&!(s=c[a](s))||(i=s.shift(),o.push({value:i,type:a,matches:s}),r=r.slice(i.length));if(!i)break}return e?r.length:r?rt.error(t):T(t,l).slice(0)},r=rt.compile=function(t,e){var i,s,o,r,l,h,d=[],f=[],g=E[t+" "];if(!g){for(e||(e=a(t)),i=e.length;i--;)(g=St(e[i]))[b]?d.push(g):f.push(g);(g=E(t,(s=f,r=0<(o=d).length,l=0<s.length,h=function(t,e,i,a,h){var d,f,g,v=0,_="0",y=t&&[],b=[],w=c,k=t||l&&n.find.TAG("*",h),S=x+=null==w?1:Math.random()||.1,T=k.length;for(h&&(c=e==p||e||h);_!==T&&null!=(d=k[_]);_++){if(l&&d){for(f=0,e||d.ownerDocument==p||(u(d),i=!m);g=s[f++];)if(g(d,e||p,i)){a.push(d);break}h&&(x=S)}r&&((d=!g&&d)&&v--,t&&y.push(d))}if(v+=_,r&&_!==v){for(f=0;g=o[f++];)g(y,b,e,i);if(t){if(0<v)for(;_--;)y[_]||b[_]||(b[_]=D.call(a));b=xt(b)}O.apply(a,b),h&&!t&&0<b.length&&1<v+o.length&&rt.uniqueSort(a)}return h&&(x=S,c=w),y},r?ct(h):h))).selector=t}return g},l=rt.select=function(t,e,i,s){var o,l,c,h,d,u="function"==typeof t&&t,p=!s&&a(t=u.selector||t);if(i=i||[],1===p.length){if(2<(l=p[0]=p[0].slice(0)).length&&"ID"===(c=l[0]).type&&9===e.nodeType&&m&&n.relative[l[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,it),e)||[])[0]))return i;u&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=U.needsContext.test(t)?0:l.length;o--&&(c=l[o],!n.relative[h=c.type]);)if((d=n.find[h])&&(s=d(c.matches[0].replace(et,it),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),!(t=s.length&&yt(l)))return O.apply(i,s),i;break}}return(u||r(t,p))(s,e,!m,i,!e||tt.test(t)&&vt(e.parentNode)||e),i},i.sortStable=b.split("").sort(M).join("")===b,i.detectDuplicates=!!d,u(),i.sortDetached=ht((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ht((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&ht((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ht((function(t){return null==t.getAttribute("disabled")}))||dt(N,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),rt}(t);w.find=k,w.expr=k.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=k.uniqueSort,w.text=k.getText,w.isXMLDoc=k.isXML,w.contains=k.contains,w.escapeSelector=k.escape;var S=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&w(t).is(i))break;n.push(t)}return n},T=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},E=w.expr.match.needsContext;function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(t,e,i){return f(e)?w.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?w.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?w.grep(t,(function(t){return-1<r.call(e,t)!==i})):w.filter(e,t,i)}w.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?w.find.matchesSelector(n,t)?[n]:[]:w.find.matches(t,w.grep(e,(function(t){return 1===t.nodeType})))},w.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(w(t).filter((function(){for(e=0;e<n;e++)if(w.contains(s[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)w.find(t,s[e],i);return 1<n?w.uniqueSort(i):i},filter:function(t){return this.pushStack(L(this,t||[],!1))},not:function(t){return this.pushStack(L(this,t||[],!0))},is:function(t){return!!L(this,"string"==typeof t&&E.test(t)?w(t):t||[],!1).length}});var P,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||P,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:D.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:g,!0)),M.test(n[1])&&w.isPlainObject(e))for(n in e)f(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(s=g.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):f(t)?void 0!==i.ready?i.ready(t):t(w):w.makeArray(t,this)}).prototype=w.fn,P=w(g);var A=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function I(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(w.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,s=this.length,o=[],a="string"!=typeof t&&w(t);if(!E.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?-1<a.index(i):1===i.nodeType&&w.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(1<o.length?w.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?r.call(w(t),this[0]):r.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return S(t,"parentNode")},parentsUntil:function(t,e,i){return S(t,"parentNode",i)},next:function(t){return I(t,"nextSibling")},prev:function(t){return I(t,"previousSibling")},nextAll:function(t){return S(t,"nextSibling")},prevAll:function(t){return S(t,"previousSibling")},nextUntil:function(t,e,i){return S(t,"nextSibling",i)},prevUntil:function(t,e,i){return S(t,"previousSibling",i)},siblings:function(t){return T((t.parentNode||{}).firstChild,t)},children:function(t){return T(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},(function(t,e){w.fn[t]=function(i,n){var s=w.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=w.filter(n,s)),1<this.length&&(O[t]||w.uniqueSort(s),A.test(t)&&s.reverse()),this.pushStack(s)}}));var z=/[^\x20\t\r\n\f]+/g;function N(t){return t}function $(t){throw t}function B(t,e,i,n){var s;try{t&&f(s=t.promise)?s.call(t).done(e).fail(i):t&&f(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}w.Callbacks=function(t){var e,i;t="string"==typeof t?(e=t,i={},w.each(e.match(z)||[],(function(t,e){i[e]=!0})),i):w.extend({},t);var n,s,o,a,r=[],l=[],c=-1,h=function(){for(a=a||t.once,o=n=!0;l.length;c=-1)for(s=l.shift();++c<r.length;)!1===r[c].apply(s[0],s[1])&&t.stopOnFalse&&(c=r.length,s=!1);t.memory||(s=!1),n=!1,a&&(r=s?[]:"")},d={add:function(){return r&&(s&&!n&&(c=r.length-1,l.push(s)),function e(i){w.each(i,(function(i,n){f(n)?t.unique&&d.has(n)||r.push(n):n&&n.length&&"string"!==y(n)&&e(n)}))}(arguments),s&&!n&&h()),this},remove:function(){return w.each(arguments,(function(t,e){for(var i;-1<(i=w.inArray(e,r,i));)r.splice(i,1),i<=c&&c--})),this},has:function(t){return t?-1<w.inArray(t,r):0<r.length},empty:function(){return r&&(r=[]),this},disable:function(){return a=l=[],r=s="",this},disabled:function(){return!r},lock:function(){return a=l=[],s||n||(r=s=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),n||h()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},w.extend({Deferred:function(e){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 o.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var t=arguments;return w.Deferred((function(e){w.each(i,(function(i,n){var s=f(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=s&&s.apply(this,arguments);t&&f(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,s?[t]:arguments)}))})),t=null})).promise()},then:function(e,n,s){var o=0;function a(e,i,n,s){return function(){var r=this,l=arguments,c=function(){var t,c;if(!(e<o)){if((t=n.apply(r,l))===i.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,f(c)?s?c.call(t,a(o,i,N,s),a(o,i,$,s)):(o++,c.call(t,a(o,i,N,s),a(o,i,$,s),a(o,i,N,i.notifyWith))):(n!==N&&(r=void 0,l=[t]),(s||i.resolveWith)(r,l))}},h=s?c:function(){try{c()}catch(t){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(t,h.stackTrace),o<=e+1&&(n!==$&&(r=void 0,l=[t]),i.rejectWith(r,l))}};e?h():(w.Deferred.getStackHook&&(h.stackTrace=w.Deferred.getStackHook()),t.setTimeout(h)
vendor: 2,940 bytes, line 2
2)}}return w.Deferred((function(t){i[0][3].add(a(0,t,f(s)?s:N,t.notifyWith)),i[1][3].add(a(0,t,f(e)?e:N)),i[2][3].add(a(0,t,f(n)?n:$))})).promise()},promise:function(t){return null!=t?w.extend(t,s):s}},o={};return w.each(i,(function(t,e){var a=e[2],r=e[5];s[e[1]]=a.add,r&&a.add((function(){n=r}),i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith})),s.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),o=s.call(arguments),a=w.Deferred(),r=function(t){return function(i){n[t]=this,o[t]=1<arguments.length?s.call(arguments):i,--e||a.resolveWith(n,o)}};if(e<=1&&(B(t,a.done(r(i)).resolve,a.reject,!e),"pending"===a.state()||f(o[i]&&o[i].then)))return a.then();for(;i--;)B(o[i],r(i),a.reject);return a.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&R.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},w.readyException=function(e){t.setTimeout((function(){throw e}))};var H=w.Deferred();function j(){g.removeEventListener("DOMContentLoaded",j),t.removeEventListener("load",j),w.ready()}w.fn.ready=function(t){return H.then(t).catch((function(t){w.readyException(t)})),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0)!==t&&0<--w.readyWait||H.resolveWith(g,[w])}}),w.ready.then=H.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?t.setTimeout(w.ready):(g.addEventListener("DOMContentLoaded",j),t.addEventListener("load",j));var F=function(t,e,i,n,s,o,a){var r=0,l=t.length,c=null==i;if("object"===y(i))for(r in s=!0,i)F(t,e,r,i[r],!0,o,a);else if(void 0!==n&&(s=!0,f(n)||(a=!0),c&&(a?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(w(t),i)})),e))for(;r<l;r++)e(t[r],i,a?n:n.call(t[r],r,e(t[r],i)));return s?t:c?e.call(t):l?e(t[0],i):o},W=/^-ms-/,Y=/-([a-z])/g;function Z(t,e){return e.toUpperCase()}function V(t){return t.replace(W,"ms-").replace(Y,Z)}var q=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function U(){this.expando=w.expando+U.uid++}U.uid=1,U.prototype={cache:function(t){var e=t[this.expando];return e||(e={},q(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[V(e)]=i;else for(n in e)s[V(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][V(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(V):(e=V(e))in n?[e]:e.match(z)||[]).length;for(;i--;)delete n[e[i]]}
vendor: 4,527 bytes, line 2
2(void 0===e||w.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var G=new U,X=new U,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function J(t,e,i){var n,s;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Q,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:K.test(s)?JSON.parse(s):s)}catch(t){}X.set(t,e,i)}else i=void 0;return i}w.extend({hasData:function(t){return X.hasData(t)||G.hasData(t)},data:function(t,e,i){return X.access(t,e,i)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,i){return G.access(t,e,i)},_removeData:function(t,e){G.remove(t,e)}}),w.fn.extend({data:function(t,e){var i,n,s,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(s=X.get(o),1===o.nodeType&&!G.get(o,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&0===(n=a[i].name).indexOf("data-")&&(n=V(n.slice(5)),J(o,n,s[n]));G.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each((function(){X.set(this,t)})):F(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=X.get(o,t))||void 0!==(i=J(o,t))?i:void 0;this.each((function(){X.set(this,t,e)}))}),null,e,1<arguments.length,null,!0)},removeData:function(t){return this.each((function(){X.remove(this,t)}))}}),w.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=G.get(t,e),i&&(!n||Array.isArray(i)?n=G.access(t,e,w.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=w.queue(t,e),n=i.length,s=i.shift(),o=w._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,(function(){w.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return G.get(t,i)||G.access(t,i,{empty:w.Callbacks("once memory").add((function(){G.remove(t,[e+"queue",i])}))})}}),w.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?w.queue(this[0],t):void 0===e?this:this.each((function(){var i=w.queue(this,t,e);w._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&w.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){w.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=w.Deferred(),o=this,a=this.length,r=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=G.get(o[a],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(r));return r(),s.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],nt=g.documentElement,st=function(t){return w.contains(t.ownerDocument,t)},ot={composed:!0};nt.getRootNode&&(st=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});var at=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&st(t)&&"none"===w.css(t,"display")};function rt(t,e,i,n){var s,o,a=20,r=n?function(){return n.cur()}:function(){return w.css(t,e,"")},l=r(),c=i&&i[3]||(w.cssNumber[e]?"":"px"),h=t.nodeType&&(w.cssNumber[e]||"px"!==c&&+l)&&et.exec(w.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;a--;)w.style(t,e,h+c),(1-o)*(1-(o=r()/l||.5))<=0&&(a=0),h/=o;h*=2,w.style(t,e,h+c),i=i||[]}return i&&(h=+h||+l||0,s=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=s)),s}var lt={};function ct(t,e){for(var i,n,s,o,a,r,l,c=[],h=0,d=t.length;h<d;h++)(n=t[h]).style&&(i=n.style.display,e?("none"===i&&(c[h]=G.get(n,"display")||null,c[h]||(n.style.display="")),""===n.style.display&&at(n)&&(c[h]=(l=a=o=void 0,a=(s=n).ownerDocument,r=s.nodeName,(l=lt[r])||(o=a.body.appendChild(a.createElement(r)),l=w.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),lt[r]=l)))):"none"!==i&&(c[h]="none",G.set(n,"display",i)));for(h=0;h<d;h++)null!=c[h]&&(t[h].style.display=c[h]);return t}w.fn.extend({show:function(){return ct(this,!0)},hide:function(){return ct(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){at(this)?w(this).show():w(this).hide()}))}});var ht,dt,ut=/^(?:checkbox|radio)$/i,pt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ft=/^$|^module$|\/(?:java|ecma)script/i;ht=g.createDocumentFragment().appendChild(g.createElement("div")),(dt=g.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ht.appendChild(dt),p.checkClone
vendor: 6,534 bytes, line 2
2=ht.cloneNode(!0).cloneNode(!0).lastChild.checked,ht.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!ht.cloneNode(!0).lastChild.defaultValue,ht.innerHTML="<option></option>",p.option=!!ht.lastChild;var mt={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 gt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?w.merge([t],i):i}function vt(t,e){for(var i=0,n=t.length;i<n;i++)G.set(t[i],"globalEval",!e||G.get(e[i],"globalEval"))}mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,p.option||(mt.optgroup=mt.option=[1,"<select multiple='multiple'>","</select>"]);var _t=/<|&#?\w+;/;function yt(t,e,i,n,s){for(var o,a,r,l,c,h,d=e.createDocumentFragment(),u=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===y(o))w.merge(u,o.nodeType?[o]:o);else if(_t.test(o)){for(a=a||d.appendChild(e.createElement("div")),r=(pt.exec(o)||["",""])[1].toLowerCase(),l=mt[r]||mt._default,a.innerHTML=l[1]+w.htmlPrefilter(o)+l[2],h=l[0];h--;)a=a.lastChild;w.merge(u,a.childNodes),(a=d.firstChild).textContent=""}else u.push(e.createTextNode(o));for(d.textContent="",p=0;o=u[p++];)if(n&&-1<w.inArray(o,n))s&&s.push(o);else if(c=st(o),a=gt(d.appendChild(o),"script"),c&&vt(a),i)for(h=0;o=a[h++];)ft.test(o.type||"")&&i.push(o);return d}var bt=/^key/,wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xt=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function St(){return!1}function Tt(t,e){return t===function(){try{return g.activeElement}catch(t){}}()==("focus"===e)}function Et(t,e,i,n,s,o){var a,r;if("object"==typeof e){for(r in"string"!=typeof i&&(n=n||i,i=void 0),e)Et(t,r,i,n,e[r],o);return t}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=St;else if(!s)return t;return 1===o&&(a=s,(s=function(t){return w().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),t.each((function(){w.event.add(this,e,s,n,i)}))}function Ct(t,e,i){i?(G.set(t,e,!1),w.event.add(t,e,{namespace:!1,handler:function(t){var n,o,a=G.get(this,e);if(1&t.isTrigger&&this[e]){if(a.length)(w.event.special[e]||{}).delegateType&&t.stopPropagation();else if(a=s.call(arguments),G.set(this,e,a),n=i(this,e),this[e](),a!==(o=G.get(this,e))||n?G.set(this,e,!1):o={},a!==o)return t.stopImmediatePropagation(),t.preventDefault(),o.value}else a.length&&(G.set(this,e,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===G.get(t,e)&&w.event.add(t,e,kt)}w.event={global:{},add:function(t,e,i,n,s){var o,a,r,l,c,h,d,u,p,f,m,g=G.get(t);if(q(t))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&w.find.matchesSelector(nt,s),i.guid||(i.guid=w.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(z)||[""]).length;c--;)p=m=(r=xt.exec(e[c])||[])[1],f=(r[2]||"").split(".").sort(),p&&(d=w.event.special[p]||{},p=(s?d.delegateType:d.bindType)||p,d=w.event.special[p]||{},h=w.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&w.expr.match.needsContext.test(s),namespace:f.join(".")},o),(u=l[p])||((u=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,f,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),s?u.splice(u.delegateCount++,0,h):u.push(h),w.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,a,r,l,c,h,d,u,p,f,m,g=G.hasData(t)&&G.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(z)||[""]).length;c--;)if(p=m=(r=xt.exec(e[c])||[])[1],f=(r[2]||"").split(".").sort(),p){for(d=w.event.special[p]||{},u=l[p=(n?d.delegateType:d.bindType)||p]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=u.length;o--;)h=u[o],!s&&m!==h.origType||i&&i.guid!==h.guid||r&&!r.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(u.splice(o,1),h.selector&&u.delegateCount--,d.remove&&d.remove.call(t,h));a&&!u.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||w.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)w.event.remove(t,p+e[c],i,n,!0);w.isEmptyObject(l)&&G.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,o,a,r=new Array(arguments.length),l=w.event.fix(t),c=(G.get(this,"events")||Object.create(null))[l.type]||[],h=w.event.special[l.type]||{};for(r[0]=l,e=1;e<arguments.length;e++)r[e]=arguments[e];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(a=w.event.handlers.call(this,l,c),e=0;(s=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((w.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,r))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,s,o,a,r=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},i=0;i<l;i++)void 0===a[s=(n=e[i]).selector+" "]&&(a[s]=n.needsContext?-1<w(s,this).index(c):w.find(s,this,null,[c]).length),a[s]&&o.push(n);o.length&&r.push({elem:c,handlers:o})}return c=this,l<e.length&&r.push({elem:c,handlers:e.slice(l)}),r},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:f(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ut.test(e.type)&&e.click&&C(e,"input")&&Ct(e,"click",kt),!1},trigger:function(t){var e=this||t;return ut.test(e.type)&&e.click&&C(e,"input")&&Ct(e,"click"),!0},_default:function(t){var e=t.target;return ut.test(e.type)&&e.click&&C(e,"input")&&G.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}}
vendor: 1,811 bytes, line 2
2,w.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?kt:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=kt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=kt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=kt,t&&!this.isSimulated&&t.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:function(t){var e=t.button;return null==t.which&&bt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&wt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(t,e){w.event.special[t]={setup:function(){return Ct(this,t,Tt),!1},trigger:function(){return Ct(this,t),!0},delegateType:e}}
vendor: 4,550 bytes, line 2
2)),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){w.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,s=t.handleObj;return n&&(n===this||w.contains(this,n))||(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}})),w.fn.extend({on:function(t,e,i,n){return Et(this,t,e,i,n)},one:function(t,e,i,n){return Et(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,w(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=St),this.each((function(){w.event.remove(this,t,i,e)}))}});var Mt=/<script|<style|<link/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Dt(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function At(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ot(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function It(t,e){var i,n,s,o,a,r;if(1===e.nodeType){if(G.hasData(t)&&(r=G.get(t).events))for(s in G.remove(e,"handle events"),r)for(i=0,n=r[s].length;i<n;i++)w.event.add(e,s,r[s][i]);X.hasData(t)&&(o=X.access(t),a=w.extend({},o),X.set(e,a))}}function zt(t,e,i,n){e=o(e);var s,a,r,l,c,h,d=0,u=t.length,m=u-1,g=e[0],v=f(g);if(v||1<u&&"string"==typeof g&&!p.checkClone&&Lt.test(g))return t.each((function(s){var o=t.eq(s);v&&(e[0]=g.call(this,s,o.html())),zt(o,e,i,n)}));if(u&&(a=(s=yt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===s.childNodes.length&&(s=a),a||n)){for(l=(r=w.map(gt(s,"script"),At)).length;d<u;d++)c=s,d!==m&&(c=w.clone(c,!0,!0),l&&w.merge(r,gt(c,"script"))),i.call(t[d],c,d);if(l)for(h=r[r.length-1].ownerDocument,w.map(r,Ot),d=0;d<l;d++)c=r[d],ft.test(c.type||"")&&!G.access(c,"globalEval")&&w.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):_(c.textContent.replace(Pt,""),c,h))}return t}function Nt(t,e,i){for(var n,s=e?w.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||w.cleanData(gt(n)),n.parentNode&&(i&&st(n)&&vt(gt(n,"script")),n.parentNode.removeChild(n));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,s,o,a,r,l,c,h=t.cloneNode(!0),d=st(t);if(!(p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(a=gt(h),n=0,s=(o=gt(t)).length;n<s;n++)r=o[n],"input"===(c=(l=a[n]).nodeName.toLowerCase())&&ut.test(r.type)?l.checked=r.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=r.defaultValue);if(e)if(i)for(o=o||gt(t),a=a||gt(h),n=0,s=o.length;n<s;n++)It(o[n],a[n]);else It(t,h);return 0<(a=gt(h,"script")).length&&vt(a,!d&&gt(t,"script")),h},cleanData:function(t){for(var e,i,n,s=w.event.special,o=0;void 0!==(i=t[o]);o++)if(q(i)){if(e=i[G.expando]){if(e.events)for(n in e.events)s[n]?w.event.remove(i,n):w.removeEvent(i,n,e.handle);i[G.expando]=void 0}i[X.expando]&&(i[X.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Nt(this,t,!0)},remove:function(t){return Nt(this,t)},text:function(t){return F(this,(function(t){return void 0===t?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dt(this,t).appendChild(t)}))},prepend:function(){return zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Dt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return w.clone(this,t,e)}))},html:function(t){return F(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Mt.test(t)&&!mt[(pt.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}
vendor: 4,520 bytes, line 2
2).nodeType&&(w.cleanData(gt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return zt(this,arguments,(function(e){var i=this.parentNode;w.inArray(this,t)<0&&(w.cleanData(gt(this)),i&&i.replaceChild(e,this))}),t)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){w.fn[t]=function(t){for(var i,n=[],s=w(t),o=s.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),w(s[r])[e](i),a.apply(n,i.get());return this.pushStack(n)}}));var $t=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Bt=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Rt=function(t,e,i){var n,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];for(s in n=i.call(t),e)t.style[s]=o[s];return n},Ht=new RegExp(it.join("|"),"i");function jt(t,e,i){var n,s,o,a,r=t.style;return(i=i||Bt(t))&&(""!==(a=i.getPropertyValue(e)||i[e])||st(t)||(a=w.style(t,e)),!p.pixelBoxStyles()&&$t.test(a)&&Ht.test(e)&&(n=r.width,s=r.minWidth,o=r.maxWidth,r.minWidth=r.maxWidth=r.width=a,a=i.width,r.width=n,r.minWidth=s,r.maxWidth=o)),void 0!==a?a+"":a}function Ft(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild(c).appendChild(h);var e=t.getComputedStyle(h);n="1%"!==e.top,l=12===i(e.marginLeft),h.style.right="60%",a=36===i(e.right),s=36===i(e.width),h.style.position="absolute",o=12===i(h.offsetWidth/3),nt.removeChild(c),h=null}}function i(t){return Math.round(parseFloat(t))}var n,s,o,a,r,l,c=g.createElement("div"),h=g.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===h.style.backgroundClip,w.extend(p,{boxSizingReliable:function(){return e(),s},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,i,n,s;return null==r&&(e=g.createElement("table"),i=g.createElement("tr"),n=g.createElement("div"),e.style.cssText="position:absolute;left:-11111px",i.style.height="1px",n.style.height="9px",nt.appendChild(e).appendChild(i).appendChild(n),s=t.getComputedStyle(i),r=3<parseInt(s.height),nt.removeChild(e)),r}}))}();var Wt=["Webkit","Moz","ms"],Yt=g.createElement("div").style,Zt={};function Vt(t){return w.cssProps[t]||Zt[t]||(t in Yt?t:Zt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Wt.length;i--;)if((t=Wt[i]+e)in Yt)return t}(t)||t)}var qt=/^(none|table(?!-c[ea]).+)/,Ut=/^--/,Gt={position:"absolute",visibility:"hidden",display:"block"},Xt={letterSpacing:"0",fontWeight:"400"};function Kt(t,e,i){var n=et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Qt(t,e,i,n,s,o){var a="width"===e?1:0,r=0,l=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(l+=w.css(t,i+it[a],!0,s)),n?("content"===i&&(l-=w.css(t,"padding"+it[a],!0,s)),"margin"!==i&&(l-=w.css(t,"border"+it[a]+"Width",!0,s))):(l+=w.css(t,"padding"+it[a],!0,s),"padding"!==i?l+=w.css(t,"border"+it[a]+"Width",!0,s):r+=w.css(t,"border"+it[a]+"Width",!0,s));return!n&&0<=o&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-r-.5))||0),l}function Jt(t,e,i){var n=Bt(t),s=(!p.boxSizingReliable()||i)&&"border-box"===w.css(t,"boxSizing",!1,n),o=s,a=jt(t,e,n),r="offset"+e[0].toUpperCase()+e.slice(1);if($t.test(a)){if(!i)return a;a="auto"}return(!p.boxSizingReliable()&&s||!p.reliableTrDimensions()&&C(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(t,"display",!1,n))&&t.getClientRects().length&&(s="border-box"===w.css(t,"boxSizing",!1,n),(o=r in t)&&(a=t[r])),(a=parseFloat(a)||0)+Qt(t,e,i||(s?"border":"content"),o,n,a)+"px"}function te(t,e,i,n,s){return new te.prototype.init(t,e,i,n,s)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=jt(t,"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:{}
vendor: 5,657 bytes, line 2
2,style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,a,r=V(e),l=Ut.test(e),c=t.style;if(l||(e=Vt(r)),a=w.cssHooks[e]||w.cssHooks[r],void 0===i)return a&&"get"in a&&void 0!==(s=a.get(t,!1,n))?s:c[e];"string"==(o=typeof i)&&(s=et.exec(i))&&s[1]&&(i=rt(t,e,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(w.cssNumber[r]?"":"px")),p.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var s,o,a,r=V(e);return Ut.test(e)||(e=Vt(r)),(a=w.cssHooks[e]||w.cssHooks[r])&&"get"in a&&(s=a.get(t,!0,i)),void 0===s&&(s=jt(t,e,n)),"normal"===s&&e in Xt&&(s=Xt[e]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),w.each(["height","width"],(function(t,e){w.cssHooks[e]={get:function(t,i,n){if(i)return!qt.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Jt(t,e,n):Rt(t,Gt,(function(){return Jt(t,e,n)}))},set:function(t,i,n){var s,o=Bt(t),a=!p.scrollboxSize()&&"absolute"===o.position,r=(a||n)&&"border-box"===w.css(t,"boxSizing",!1,o),l=n?Qt(t,e,n,r,o):0;return r&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Qt(t,e,"border",!1,o)-.5)),l&&(s=et.exec(i))&&"px"!==(s[3]||"px")&&(t.style[e]=i,i=w.css(t,e)),Kt(0,i,l)}}})),w.cssHooks.marginLeft=Ft(p.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(jt(t,"marginLeft"))||t.getBoundingClientRect().left-Rt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(t,e){w.cssHooks[t+e]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+it[n]+e]=o[n]||o[n-2]||o[0];return s}},"margin"!==t&&(w.cssHooks[t+e].set=Kt)})),w.fn.extend({css:function(t,e){return F(this,(function(t,e,i){var n,s,o={},a=0;if(Array.isArray(e)){for(n=Bt(t),s=e.length;a<s;a++)o[e[a]]=w.css(t,e[a],!1,n);return o}return void 0!==i?w.style(t,e,i):w.css(t,e)}),t,e,1<arguments.length)}}),((w.Tween=te).prototype={constructor:te,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(w.cssNumber[i]?"":"px")},cur:function(){var t=te.propHooks[this.prop];return t&&t.get?t.get(this):te.propHooks._default.get(this)},run:function(t){var e,i=te.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):te.propHooks._default.set(this),this}}).init.prototype=te.prototype,(te.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=w.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[Vt(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=te.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=te.prototype.init,w.fx.step={};var ee,ie,ne,se,oe=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;function re(){ie&&(!1===g.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(re):t.setTimeout(re,w.fx.interval),w.fx.tick())}function le(){return t.setTimeout((function(){ee=void 0})),ee=Date.now()}function ce(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=it[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function he(t,e,i){for(var n,s=(de.tweeners[e]||[]).concat(de.tweeners["*"]),o=0,a=s.length;o<a;o++)if(n=s[o].call(i,e,t))return n}function de(t,e,i){var n,s,o=0,a=de.prefilters.length,r=w.Deferred().always((function(){delete l.elem})),l=function(){if(s)return!1;for(var e=ee||le(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(n);return r.notifyWith(t,[c,n,i]),n<1&&a?i:(a||r.notifyWith(t,[c,1,0]),r.resolveWith(t,[c]),!1)},c=r.promise({elem:t,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},i),originalProperties:e,originalOptions:i,startTime:ee||le(),duration:i.duration,tweens:[],createTween:function(e,i){var n=w.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)c.tweens[i].run(1);return e?(r.notifyWith(t,[c,1,0]),r.resolveWith(t,[c,e])):r.rejectWith(t,[c,e]),this}}),h=c.props;for(function(t,e){var i,n,s,o,a;for(i in t)if(s=e[n=V(i)],o=t[i],Array.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(a=w.cssHooks[n])&&"expand"in a)for(i in o=a.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=s);else e[n]=s}(h,c.opts.specialEasing);o<a;o++)if(n=de.prefilters[o].call(c,t,h,c.opts))return f(n.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return w.map(h,he,c),f(c.opts.start)&&c.opts.start.call(t,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:t,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(de,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return rt(i.elem,t,et.exec(e),i),i}]},tweener:function(t,e){f(t)?(e=t,t=["*"]):t=t.match(z);for(var i,n=0,s=t.length;n<s;n++)i=t[n],de.tweeners[i]=de.tweeners[i]||[],de.tweeners[i].unshift(e)}
vendor: 4,401 bytes, line 2
2,prefilters:[function(t,e,i){var n,s,o,a,r,l,c,h,d="width"in e||"height"in e,u=this,p={},f=t.style,m=t.nodeType&&at(t),g=G.get(t,"fxshow");for(n in i.queue||(null==(a=w._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,r=a.empty.fire,a.empty.fire=function(){a.unqueued||r()}),a.unqueued++,u.always((function(){u.always((function(){a.unqueued--,w.queue(t,"fx").length||a.empty.fire()}))}))),e)if(s=e[n],oe.test(s)){if(delete e[n],o=o||"toggle"===s,s===(m?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||w.style(t,n)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(p))for(n in d&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=G.get(t,"display")),"none"===(h=w.css(t,"display"))&&(c?h=c:(ct([t],!0),c=t.style.display||c,h=w.css(t,"display"),ct([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===w.css(t,"float")&&(l||(u.done((function(){f.display=c})),null==c&&(h=f.display,c="none"===h?"":h)),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||(g?"hidden"in g&&(m=g.hidden):g=G.access(t,"fxshow",{display:c}),o&&(g.hidden=!m),m&&ct([t],!0),u.done((function(){for(n in m||ct([t]),G.remove(t,"fxshow"),p)w.style(t,n,p[n])}))),l=he(m?g[n]:0,n,u),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?de.prefilters.unshift(t):de.prefilters.push(t)}}),w.speed=function(t,e,i){var n=t&&"object"==typeof t?w.extend({},t):{complete:i||!i&&e||f(t)&&t,duration:t,easing:i&&e||e&&!f(e)&&e};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(t,e,i,n){return this.filter(at).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=w.isEmptyObject(t),o=w.speed(e,i,n),a=function(){var e=de(this,w.extend({},t),o);(s||G.get(this,"finish"))&&e.stop(!0)};return a.finish=a,s||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,s=null!=t&&t+"queueHooks",o=w.timers,a=G.get(this);if(s)a[s]&&a[s].stop&&n(a[s]);else for(s in a)a[s]&&a[s].stop&&ae.test(s)&&n(a[s]);for(s=o.length;s--;)o[s].elem!==this||null!=t&&o[s].queue!==t||(o[s].anim.stop(i),e=!1,o.splice(s,1));!e&&i||w.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=G.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],o=w.timers,a=n?n.length:0;for(i.finish=!0,w.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),w.each(["toggle","show","hide"],(function(t,e){var i=w.fn[e];w.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(ce(e,!0),t,n,s)}})),w.each({slideDown:ce("show"),slideUp:ce("hide"),slideToggle:ce("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){w.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),w.timers=[],w.fx.tick=function(){var t,e=0,i=w.timers;for(ee=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||w.fx.stop(),ee=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ie||(ie=!0,re())},w.fx.stop=function(){ie=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(e,i){return e=w.fx&&w.fx.speeds[e]||e,i=i||"fx",this.queue(i,(function(i,n){var s=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(s)}}))},ne=g.createElement("input"),se=g.createElement("select").appendChild(g.createElement("option")),ne.type="checkbox",p.checkOn=""!==ne.value,p.optSelected=se.selected,(ne=g.createElement("input")).value="t",ne.type="radio",p.radioValue="t"===ne.value;var ue,pe=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return F(this,w.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each((function(){w.removeAttr(this,t)}))}}
vendor: 4,280 bytes, line 2
2),w.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?w.prop(t,e,i):(1===o&&w.isXMLDoc(t)||(s=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?ue:void 0)),void 0!==i?null===i?void w.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=w.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&C(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(z);if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),ue={set:function(t,e,i){return!1===e?w.removeAttr(t,i):t.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=pe[e]||w.find.attr;pe[e]=function(t,e,n){var s,o,a=e.toLowerCase();return n||(o=pe[a],pe[a]=s,s=null!=i(t,e,n)?a:null,pe[a]=o),s}}));var fe=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function ge(t){return(t.match(z)||[]).join(" ")}function ve(t){return t.getAttribute&&t.getAttribute("class")||""}function _e(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(z)||[]}w.fn.extend({prop:function(t,e){return F(this,w.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each((function(){delete this[w.propFix[t]||t]}))}}),w.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(t)||(e=w.propFix[e]||e,s=w.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):fe.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(w.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.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(t){var e,i,n,s,o,a,r,l=0;if(f(t))return this.each((function(e){w(this).addClass(t.call(this,e,ve(this)))}));if((e=_e(t)).length)for(;i=this[l++];)if(s=ve(i),n=1===i.nodeType&&" "+ge(s)+" "){for(a=0;o=e[a++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");s!==(r=ge(n))&&i.setAttribute("class",r)}return this},removeClass:function(t){var e,i,n,s,o,a,r,l=0;if(f(t))return this.each((function(e){w(this).removeClass(t.call(this,e,ve(this)))}));if(!arguments.length)return this.attr("class","");if((e=_e(t)).length)for(;i=this[l++];)if(s=ve(i),n=1===i.nodeType&&" "+ge(s)+" "){for(a=0;o=e[a++];)for(;-1<n.indexOf(" "+o+" ");)n=n.replace(" "+o+" "," ");s!==(r=ge(n))&&i.setAttribute("class",r)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):f(t)?this.each((function(i){w(this).toggleClass(t.call(this,i,ve(this),e),e)})):this.each((function(){var e,s,o,a;if(n)for(s=0,o=w(this),a=_e(t);e=a[s++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=ve(this))&&G.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":G.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+ge(ve(i))+" ").indexOf(e))return!0;return!1}});var ye=/\r/g;w.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=f(t),this.each((function(i){var s;1===this.nodeType&&(null==(s=n?t.call(this,i,w(this).val()):t)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=w.map(s,(function(t){return null==t?"":t+""}))),(e=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))}))):s?(e=w.valHooks[s.type]||w.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(ye,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:ge(w.text(t))}}
vendor: 3,336 bytes, line 2
2,select:{get:function(t){var e,i,n,s=t.options,o=t.selectedIndex,a="select-one"===t.type,r=a?null:[],l=a?o+1:s.length;for(n=o<0?l:a?o:0;n<l;n++)if(((i=s[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!C(i.parentNode,"optgroup"))){if(e=w(i).val(),a)return e;r.push(e)}return r},set:function(t,e){for(var i,n,s=t.options,o=w.makeArray(e),a=s.length;a--;)((n=s[a]).selected=-1<w.inArray(w.valHooks.option.get(n),o))&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<w.inArray(w(t).val(),e)}},p.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),p.focusin="onfocusin"in t;var be=/^(?:focusinfocus|focusoutblur)$/,we=function(t){t.stopPropagation()};w.extend(w.event,{trigger:function(e,i,n,s){var o,a,r,l,c,d,u,p,v=[n||g],_=h.call(e,"type")?e.type:e,y=h.call(e,"namespace")?e.namespace.split("."):[];if(a=p=r=n=n||g,3!==n.nodeType&&8!==n.nodeType&&!be.test(_+w.event.triggered)&&(-1<_.indexOf(".")&&(_=(y=_.split(".")).shift(),y.sort()),c=_.indexOf(":")<0&&"on"+_,(e=e[w.expando]?e:new w.Event(_,"object"==typeof e&&e)).isTrigger=s?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:w.makeArray(i,[e]),u=w.event.special[_]||{},s||!u.trigger||!1!==u.trigger.apply(n,i))){if(!s&&!u.noBubble&&!m(n)){for(l=u.delegateType||_,be.test(l+_)||(a=a.parentNode);a;a=a.parentNode)v.push(a),r=a;r===(n.ownerDocument||g)&&v.push(r.defaultView||r.parentWindow||t)}for(o=0;(a=v[o++])&&!e.isPropagationStopped();)p=a,e.type=1<o?l:u.bindType||_,(d=(G.get(a,"events")||Object.create(null))[e.type]&&G.get(a,"handle"))&&d.apply(a,i),(d=c&&a[c])&&d.apply&&q(a)&&(e.result=d.apply(a,i),!1===e.result&&e.preventDefault());return e.type=_,s||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(v.pop(),i)||!q(n)||c&&f(n[_])&&!m(n)&&((r=n[c])&&(n[c]=null),w.event.triggered=_,e.isPropagationStopped()&&p.addEventListener(_,we),n[_](),e.isPropagationStopped()&&p.removeEventListener(_,we),w.event.triggered=void 0,r&&(n[c]=r)),e.result}},simulate:function(t,e,i){var n=w.extend(new w.Event,i,{type:t,isSimulated:!0});w.event.trigger(n,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each((function(){w.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return w.event.trigger(t,e,i,!0)}}),p.focusin||w.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){w.event.simulate(e,t.target,w.event.fix(t))};w.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,s=G.access(n,e);s||n.addEventListener(t,i,!0),G.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,s=G.access(n,e)-1;s?G.access(n,e,s):(n.removeEventListener(t,i,!0),G.remove(n,e))}}}));var xe=t.location,ke={guid:Date.now()},Se=/\?/;w.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(e){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),i};var Te=/\[\]$/,Ee=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;function Le(t,e,i,n){var s;
vendor: 4,876 bytes, line 2
2if(Array.isArray(e))w.each(e,(function(e,s){i||Te.test(t)?n(t,s):Le(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,i,n)}));else if(i||"object"!==y(e))n(t,e);else for(s in e)Le(t+"["+s+"]",e[s],i,n)}w.param=function(t,e){var i,n=[],s=function(t,e){var i=f(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,(function(){s(this.name,this.value)}));else for(i in t)Le(i,t[i],e,s);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Me.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!ut.test(t))})).map((function(t,e){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(t){return{name:e.name,value:t.replace(Ee,"\r\n")}})):{name:e.name,value:i.replace(Ee,"\r\n")}})).get()}});var Pe=/%20/g,De=/#.*$/,Ae=/([?&])_=[^&]*/,Oe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ie=/^(?:GET|HEAD)$/,ze=/^\/\//,Ne={},$e={},Be="*/".concat("*"),Re=g.createElement("a");function He(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,o=e.toLowerCase().match(z)||[];if(f(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function je(t,e,i,n){var s={},o=t===$e;function a(r){var l;return s[r]=!0,w.each(t[r]||[],(function(t,r){var c=r(e,i,n);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!s["*"]&&a("*")}function Fe(t,e){var i,n,s=w.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&w.extend(!0,t,n),t}Re.href=xe.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,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},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Fe(Fe(t,w.ajaxSettings),e):Fe(w.ajaxSettings,t)},ajaxPrefilter:He(Ne),ajaxTransport:He($e),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var n,s,o,a,r,l,c,h,d,u,p=w.ajaxSetup({},i),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?w(f):w.event,v=w.Deferred(),_=w.Callbacks("once memory"),y=p.statusCode||{},b={},x={},k="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Oe.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||k;return n&&n.abort(e),T(0,e),this}};if(v.promise(S),p.url=((e||p.url||xe.href)+"").replace(ze,xe.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(z)||[""],null==p.crossDomain){l=g.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Re.protocol+"//"+Re.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),je(Ne,p,i,S),c)return S;for(d in(h=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ie.test(p.type),s=p.url.replace(De,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pe,"+")):(u=p.url.slice(s.length),p.data&&(p.processData||"string"==typeof p.data)&&(s+=(Se.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace(Ae,"$1"),u=(Se.test(s)?"&":"?")+"_="+ke.guid+++u),p.url=s+u),p.ifModified&&(w.lastModified[s]&&S.setRequestHeader("If-Modified-Since",w.lastModified[s]),w.etag[s]&&S.setRequestHeader("If-None-Match",w.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Be+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(d,p.headers[d]);
vendor: 5,338 bytes, line 2
2if(p.beforeSend&&(!1===p.beforeSend.call(f,S,p)||c))return S.abort();if(k="abort",_.add(p.complete),S.done(p.success),S.fail(p.error),n=je($e,p,i,S)){if(S.readyState=1,h&&m.trigger("ajaxSend",[S,p]),c)return S;p.async&&0<p.timeout&&(r=t.setTimeout((function(){S.abort("timeout")}),p.timeout));try{c=!1,n.send(b,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,i,a,l){var d,u,g,b,x,k=i;c||(c=!0,r&&t.clearTimeout(r),n=void 0,o=l||"",S.readyState=0<e?4:0,d=200<=e&&e<300||304===e,a&&(b=function(t,e,i){for(var n,s,o,a,r=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in r)if(r[s]&&r[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}a||(a=s)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,S,a)),!d&&-1<w.inArray("script",p.dataTypes)&&(p.converters["text script"]=function(){}),b=function(t,e,i,n){var s,o,a,r,l,c={},h=t.dataTypes.slice();if(h[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=h.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(s in c)if((r=s.split(" "))[1]===o&&(a=c[l+" "+r[0]]||c["* "+r[0]])){!0===a?a=c[s]:!0!==c[s]&&(o=r[0],h.unshift(r[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,b,S,d),d?(p.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(w.lastModified[s]=x),(x=S.getResponseHeader("etag"))&&(w.etag[s]=x)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=b.state,u=b.data,d=!(g=b.error))):(g=k,!e&&k||(k="error",e<0&&(e=0))),S.status=e,S.statusText=(i||k)+"",d?v.resolveWith(f,[u,k,S]):v.rejectWith(f,[S,k,g]),S.statusCode(y),y=void 0,h&&m.trigger(d?"ajaxSuccess":"ajaxError",[S,p,d?u:g]),_.fireWith(f,[S,k]),h&&(m.trigger("ajaxComplete",[S,p]),--w.active||w.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,i){return w.get(t,e,i,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],(function(t,e){w[e]=function(t,i,n,s){return f(i)&&(s=s||n,n=i,i=void 0),w.ajax(w.extend({url:t,type:e,dataType:s,data:i,success:n},w.isPlainObject(t)&&t))}})),w.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),w._evalUrl=function(t,e,i){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e,i)}})},w.fn.extend({wrapAll:function(t){var e;return this[0]&&(f(t)&&(t=t.call(this[0])),e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return f(t)?this.each((function(e){w(this).wrapInner(t.call(this,e))})):this.each((function(){var e=w(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=f(t);return this.each((function(i){w(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},Ye=w.ajaxSettings.xhr();p.cors=!!Ye&&"withCredentials"in Ye,p.ajax=Ye=!!Ye,w.ajaxTransport((function(e){var i,n;if(p.cors||Ye&&!e.crossDomain)return{send:function(s,o){var a,r=e.xhr();if(r.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)r[a]=e.xhrFields[a];for(a in e.mimeType&&r.overrideMimeType&&r.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)r.setRequestHeader(a,s[a]);i=function(t){return function(){i&&(i=n=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===t?r.abort():"error"===t?"number"!=typeof r.status?o(0,"error"):o(r.status,r.statusText):o(We[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=i(),n=r.onerror=r.ontimeout=i("error"),void 0!==r.onabort?r.onabort=n:r.onreadystatechange=function(){4===r.readyState&&t.setTimeout((function(){i&&n()}))},i=i("abort");try{r.send(e.hasContent&&e.data||null)}catch(s){if(i)throw s}},abort:function(){i&&i()}}})),w.ajaxPrefilter((function(t){t.crossDomain&&(t.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(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),w.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,s){e=w("<script>").attr(t.scriptAttrs||{}
vendor: 4,723 bytes, line 2
2).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&s("error"===t.type?404:200,t.type)}),g.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ze,Ve=[],qe=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ve.pop()||w.expando+"_"+ke.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",(function(e,i,n){var s,o,a,r=!1!==e.jsonp&&(qe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&qe.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=f(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(qe,"$1"+s):!1!==e.jsonp&&(e.url+=(Se.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return a||w.error(s+" was not called"),a[0]},e.dataTypes[0]="json",o=t[s],t[s]=function(){a=arguments},n.always((function(){void 0===o?w(t).removeProp(s):t[s]=o,e[s]&&(e.jsonpCallback=i.jsonpCallback,Ve.push(s)),a&&f(o)&&o(a[0]),a=o=void 0})),"script"})),p.createHTMLDocument=((Ze=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ze.childNodes.length),w.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(p.createHTMLDocument?((n=(e=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,e.head.appendChild(n)):e=g),o=!i&&[],(s=M.exec(t))?[e.createElement(s[1])]:(s=yt([t],e,o),o&&o.length&&w(o).remove(),w.merge([],s.childNodes)));var n,s,o},w.fn.load=function(t,e,i){var n,s,o,a=this,r=t.indexOf(" ");return-1<r&&(n=ge(t.slice(r)),t=t.slice(0,r)),f(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),0<a.length&&w.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(n?w("<div>").append(w.parseHTML(t)).find(n):t)})).always(i&&function(t,e){a.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},w.expr.pseudos.animated=function(t){return w.grep(w.timers,(function(e){return t===e.elem})).length},w.offset={setOffset:function(t,e,i){var n,s,o,a,r,l,c=w.css(t,"position"),h=w(t),d={};"static"===c&&(t.style.position="relative"),r=h.offset(),o=w.css(t,"top"),l=w.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(a=(n=h.position()).top,s=n.left):(a=parseFloat(o)||0,s=parseFloat(l)||0),f(e)&&(e=e.call(t,i,w.extend({},r))),null!=e.top&&(d.top=e.top-r.top+a),null!=e.left&&(d.left=e.left-r.left+s),"using"in e?e.using.call(t,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),h.css(d))}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){w.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],s={top:0,left:0};if("fixed"===w.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((s=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),s.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-w.css(n,"marginTop",!0),left:e.left-s.left-w.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||nt}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;w.fn[t]=function(n){return F(this,(function(t,n,s){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===s)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:s,i?s:o.pageYOffset):t[n]=s}),t,n,arguments.length)}})),w.each(["top","left"],(function(t,e){w.cssHooks[e]=Ft(p.pixelPosition,(function(t,i){if(i)return i=jt(t,e),$t.test(i)?w(t).position()[e]+"px":i}))})),w.each({Height:"height",Width:"width"},(function(t,e){w.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){w.fn[n]=function(s,o){var a=arguments.length&&(i||"boolean"!=typeof s),r=i||(!0===s||!0===o?"margin":"border");return F(this,(function(e,i,s){var o;return m(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===s?w.css(e,i,r):w.style(e,i,s,r)}),e,a?s:void 0,a)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){w.fn[e]=function(t){return this.on(e,t)}}
2)),w.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),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(t,e){w.fn[e]=function(t,i){return 0<arguments.length?this.on(e,null,t,i):this.trigger(e)}}));var Ue=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),f(t))return n=s.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(s.call(arguments)))}).guid=t.guid=t.guid||w.guid++,o},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=C,w.isFunction=f,w.isWindow=m,w.camelCase=V,w.type=y,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},w.trim=function(t){return null==t?"":(t+"").replace(Ue,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var Ge=t.jQuery,Xe=t.$;return w.noConflict=function(e){return t.$===w&&(t.$=Xe),e&&t.jQuery===w&&(t.jQuery=Ge),w},void 0===e&&(t.jQuery=t.$=w),w})),
3/**!
4 * @fileOverview Kickass library to create and place poppers near their reference elements.
5 * @version 1.16.1
6 * @license
7 * Copyright (c) 2016 Federico Zivolo and contributors
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * of this software and associated documentation files (the "Software"), to deal
11 * in the Software without restriction, including without limitation the rights
12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 * copies of the Software, and to permit persons to whom the Software is
14 * furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in all
17 * copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 * SOFTWARE.
26 */
27function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,(function(){"use strict";var t="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,e=function(){for(var e=["Edge","Trident","Firefox"],i=0;i<e.length;i+=1)if(t&&navigator.userAgent.indexOf(e[i])>=0)return 1;return 0}();var i=t&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var i=!1;return function(){i||(i=!0,setTimeout((function(){i=!1,t()}),e))}};function n(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i[e]:i}function o(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function a(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(i+r+n)?t:a(o(t))}function r(t){return t&&t.referenceNode?t.referenceNode:t}var l=t&&!(!window.MSInputMethodContext||!document.documentMode),c=t&&/MSIE 10/.test(navigator.userAgent);function h(t){return 11===t?l:10===t?c:l||c}function d(t){if(!t)return document.documentElement;for(var e=h(10)?document.body:null,i=t.offsetParent||null;i===e&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===s(i,"position")?d(i):i:t?t.ownerDocument.documentElement:document.documentElement}function u(t){return null!==t.parentNode?u(t.parentNode):t}function p(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,s=i?e:t,o=document.createRange();o.setStart(n,0),o.setEnd(s,0);var a,r,l=o.commonAncestorContainer;if(t!==l&&e!==l||n.contains(s))return"BODY"===(r=(a=l).nodeName)||"HTML"!==r&&d(a.firstElementChild)!==a?d(l):l;var c=u(t);return c.host?p(c.host,e):p(t,u(e).host)}function f(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var n=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||n)[e]}return t[e]}function m(t,e){var i="x"===e?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"])+parseFloat(t["border"+n+"Width"])}function g(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],h(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function v(t){var e=t.body,i=t.documentElement,n=h(10)&&getComputedStyle(i);return{height:g("Height",e,i,n),width:g("Width",e,i,n)}}var _=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
vendor: 4,119 bytes, line 27
27return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),y=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function w(t){return b({},t,{right:t.left+t.width,bottom:t.top+t.height})}function x(t){var e={};try{if(h(10)){e=t.getBoundingClientRect();var i=f(t,"top"),n=f(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},a="HTML"===t.nodeName?v(t.ownerDocument):{},r=a.width||t.clientWidth||o.width,l=a.height||t.clientHeight||o.height,c=t.offsetWidth-r,d=t.offsetHeight-l;if(c||d){var u=s(t);c-=m(u,"x"),d-=m(u,"y"),o.width-=c,o.height-=d}return w(o)}function k(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=h(10),o="HTML"===e.nodeName,r=x(t),l=x(e),c=a(t),d=s(e),u=parseFloat(d.borderTopWidth),p=parseFloat(d.borderLeftWidth);i&&o&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var m=w({top:r.top-l.top-u,left:r.left-l.left-p,width:r.width,height:r.height});if(m.marginTop=0,m.marginLeft=0,!n&&o){var g=parseFloat(d.marginTop),v=parseFloat(d.marginLeft);m.top-=u-g,m.bottom-=u-g,m.left-=p-v,m.right-=p-v,m.marginTop=g,m.marginLeft=v}return(n&&!i?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(m=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=f(e,"top"),s=f(e,"left"),o=i?-1:1;return t.top+=n*o,t.bottom+=n*o,t.left+=s*o,t.right+=s*o,t}(m,e)),m}function S(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var i=o(t);return!!i&&S(i)}function T(t){if(!t||!t.parentElement||h())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function E(t,e,i,n){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},c=s?T(t):p(t,r(e));if("viewport"===n)l=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=k(t,i),s=Math.max(i.clientWidth,window.innerWidth||0),o=Math.max(i.clientHeight,window.innerHeight||0),a=e?0:f(i),r=e?0:f(i,"left");return w({top:a-n.top+n.marginTop,left:r-n.left+n.marginLeft,width:s,height:o})}(c,s);else{var h=void 0;"scrollParent"===n?"BODY"===(h=a(o(e))).nodeName&&(h=t.ownerDocument.documentElement):h="window"===n?t.ownerDocument.documentElement:n;var d=k(h,c,s);if("HTML"!==h.nodeName||S(c))l=d;else{var u=v(t.ownerDocument),m=u.height,g=u.width;l.top+=d.top-d.marginTop,l.bottom=m+d.top,l.left+=d.left-d.marginLeft,l.right=g+d.left}}var _="number"==typeof(i=i||0);return l.left+=_?i:i.left||0,l.top+=_?i:i.top||0,l.right-=_?i:i.right||0,l.bottom-=_?i:i.bottom||0,l}function C(t,e,i,n,s){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=E(i,n,o,s),r={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(r).map((function(t){return b({key:t},r[t],{area:(e=r[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight})),h=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return h+(d?"-"+d:"")}function M(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(i,n?T(e):p(e,r(i)),n)}function L(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),i=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function P(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function D(t,e,i){i=i.split("-")[0];var n=L(t),s={width:n.width,height:n.height}
vendor: 4,599 bytes, line 27
27,o=-1!==["right","left"].indexOf(i),a=o?"top":"left",r=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return s[a]=e[a]+e[l]/2-n[l]/2,s[r]=i===r?e[r]-n[c]:e[P(r)],s}function A(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function O(t,e,i){return(void 0===i?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===i}));var n=A(t,(function(t){return t[e]===i}));return t.indexOf(n)}(t,"name",i))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t.function||t.fn;t.enabled&&n(i)&&(e.offsets.popper=w(e.offsets.popper),e.offsets.reference=w(e.offsets.reference),e=i(e,t))})),e}function I(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=M(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=C(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=D(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=O(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function z(t,e){return t.some((function(t){var i=t.name;return t.enabled&&i===e}))}function N(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var s=e[n],o=s?""+s+i:t;if(void 0!==document.body.style[o])return o}return null}function $(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[N("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function B(t){var e=t.ownerDocument;return e?e.defaultView:window}function R(t,e,i,n){var s="BODY"===t.nodeName,o=s?t.ownerDocument.defaultView:t;o.addEventListener(e,i,{passive:!0}),s||R(a(o.parentNode),e,i,n),n.push(o)}function H(t,e,i,n){i.updateBound=n,B(t).addEventListener("resize",i.updateBound,{passive:!0});var s=a(t);return R(s,"scroll",i.updateBound,i.scrollParents),i.scrollElement=s,i.eventsEnabled=!0,i}function j(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}function F(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,B(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function W(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Y(t,e){Object.keys(e).forEach((function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&W(e[i])&&(n="px"),t.style[i]=e[i]+n}))}var Z=t&&/Firefox/i.test(navigator.userAgent);function V(t,e,i){var n=A(t,(function(t){return t.name===e})),s=!!n&&t.some((function(t){return t.name===i&&t.enabled&&t.order<n.order}));if(!s){var o="`"+e+"`",a="`"+i+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return s}var q=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],U=q.slice(3);function G(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=U.indexOf(t),n=U.slice(i+1).concat(U.slice(0,i));return e?n.reverse():n}var X="flip",K="clockwise",Q="counterclockwise";function J(t,e,i,n){var s=[0,0],o=-1!==["right","left"].indexOf(n),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),r=a.indexOf(A(a,(function(t){return-1!==t.search(/,|\s/)})));a[r]&&-1===a[r].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==r?[a.slice(0,r).concat([a[r].split(l)[0]]),[a[r].split(l)[1]].concat(a.slice(r+1))]:[a];return c=c.map((function(t,n){var s=(1===n?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}
vendor: 7,094 bytes, line 27
27),[]).map((function(t){return function(t,e,i,n){var s=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+s[1],a=s[2];if(!o)return t;if(0===a.indexOf("%")){return w("%p"===a?i:n)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,s,e,i)}))})),c.forEach((function(t,e){t.forEach((function(i,n){W(i)&&(s[e]+=i*("-"===t[n-1]?-1:1))}))})),s}var tt={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var s=t.offsets,o=s.reference,a=s.popper,r=-1!==["bottom","top"].indexOf(i),l=r?"left":"top",c=r?"width":"height",h={start:y({},l,o[l]),end:y({},l,o[l]+o[c]-a[c])};t.offsets.popper=b({},a,h[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i=e.offset,n=t.placement,s=t.offsets,o=s.popper,a=s.reference,r=n.split("-")[0],l=void 0;return l=W(+i)?[+i,0]:J(i,o,a,r),"left"===r?(o.top+=l[0],o.left-=l[1]):"right"===r?(o.top+=l[0],o.left+=l[1]):"top"===r?(o.left+=l[0],o.top-=l[1]):"bottom"===r&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var i=e.boundariesElement||d(t.instance.popper);t.instance.reference===i&&(i=d(i));var n=N("transform"),s=t.instance.popper.style,o=s.top,a=s.left,r=s[n];s.top="",s.left="",s[n]="";var l=E(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);s.top=o,s.left=a,s[n]=r,e.boundaries=l;var c=e.priority,h=t.offsets.popper,u={primary:function(t){var i=h[t];return h[t]<l[t]&&!e.escapeWithReference&&(i=Math.max(h[t],l[t])),y({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=h[i];return h[t]>l[t]&&!e.escapeWithReference&&(n=Math.min(h[i],l[t]-("right"===t?h.width:h.height))),y({},i,n)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";h=b({},h,u[e](t))})),t.offsets.popper=h,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,s=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(s),r=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return i[r]<o(n[l])&&(t.offsets.popper[l]=o(n[l])-i[c]),i[l]>o(n[r])&&(t.offsets.popper[l]=o(n[r])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!V(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],a=t.offsets,r=a.popper,l=a.reference,c=-1!==["left","right"].indexOf(o),h=c?"height":"width",d=c?"Top":"Left",u=d.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",m=L(n)[h];l[f]-m<r[u]&&(t.offsets.popper[u]-=r[u]-(l[f]-m)),l[u]+m>r[f]&&(t.offsets.popper[u]+=l[u]+m-r[f]),t.offsets.popper=w(t.offsets.popper);var g=l[u]+l[h]/2-m/2,v=s(t.instance.popper),_=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),x=g-t.offsets.popper[u]-_-b;return x=Math.max(Math.min(r[h]-m,x),0),t.arrowElement=n,t.offsets.arrow=(y(i={},u,Math.round(x)),y(i,p,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(z(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=E(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],s=P(n),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case X:a=[n,s];break;case K:a=G(n);break;case Q:a=G(n,!0);break;default:a=e.behavior}return a.forEach((function(r,l){if(n!==r||a.length===l+1)return t;n=t.placement.split("-")[0],s=P(n);var c=t.offsets.popper,h=t.offsets.reference,d=Math.floor,u="left"===n&&d(c.right)>d(h.left)||"right"===n&&d(c.left)<d(h.right)||"top"===n&&d(c.bottom)>d(h.top)||"bottom"===n&&d(c.top)<d(h.bottom),p=d(c.left)<d(i.left),f=d(c.right)>d(i.right),m=d(c.top)<d(i.top),g=d(c.bottom)>d(i.bottom),v="left"===n&&p||"right"===n&&f||"top"===n&&m||"bottom"===n&&g,_=-1!==["top","bottom"].indexOf(n),y=!!e.flipVariations&&(_&&"start"===o&&p||_&&"end"===o&&f||!_&&"start"===o&&m||!_&&"end"===o&&g),w=!!e.flipVariationsByContent&&(_&&"start"===o&&f||_&&"end"===o&&p||!_&&"start"===o&&g||!_&&"end"===o&&m),x=y||w;(u||v||x)&&(t.flipped=!0,(u||v)&&(n=a[l+1]),x&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=n+(o?"-"+o:""),t.offsets.popper=b({},t.offsets.popper,D(t.instance.popper,t.offsets.reference,t.placement)),t=O(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,s=n.popper,o=n.reference,a=-1!==["left","right"].indexOf(i),r=-1===["top","left"].indexOf(i);return s[a?"left":"top"]=o[i]-(r?s[a?"width":"height"]:0),t.placement=P(e),t.offsets.popper=w(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!V(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=A(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var i=e.x,n=e.y,s=t.offsets.popper,o=A(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,r=d(t.instance.popper),l=x(r),c={position:s.position},h=function(t,e){var i=t.offsets,n=i.popper,s=i.reference,o=Math.round,a=Math.floor,r=function(t){return t},l=o(s.width),c=o(n.width),h=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),u=e?h||d||l%2==c%2?o:a:r,p=e?o:r;return{left:u(l%2==1&&c%2==1&&!d&&e?n.left-1:n.left),top:p(n.top),bottom:p(n.bottom),right:u(n.right)}}(t,window.devicePixelRatio<2||!Z),u="bottom"===i?"top":"bottom",p="right"===n?"left":"right",f=N("transform"),m=void 0,g=void 0;if(g="bottom"===u?"HTML"===r.nodeName?-r.clientHeight+h.bottom:-l.height+h.bottom:h.top,m="right"===p?"HTML"===r.nodeName?-r.clientWidth+h.right:-l.width+h.right:h.left,a&&f)c[f]="translate3d("+m+"px, "+g+"px, 0)",c[u]=0,c[p]=0,c.willChange="transform";else{var v="bottom"===u?-1:1,_="right"===p?-1:1;c[u]=g*v,c[p]=m*_,c.willChange=u+", "+p}var y={"x-placement":t.placement};return t.attributes=b({},y,t.attributes),t.styles=b({},c,t.styles),t.arrowStyles=b({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,i;return Y(t.instance.popper,t.styles),e=t.instance.popper,i=t.attributes,Object.keys(i).forEac
vendor: 5,272 bytes, line 27
27h((function(t){!1!==i[t]?e.setAttribute(t,i[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&Y(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i,n,s){var o=M(s,e,t,i.positionFixed),a=C(i.placement,o,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",a),Y(e,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}},et={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:tt},it=function(){function t(e,s){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=i(this.update.bind(this)),this.options=b({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=s&&s.jquery?s[0]:s,this.options.modifiers={},Object.keys(b({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){o.options.modifiers[e]=b({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return b({name:t},o.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&n(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return _(t,[{key:"update",value:function(){return I.call(this)}},{key:"destroy",value:function(){return $.call(this)}},{key:"enableEventListeners",value:function(){return j.call(this)}},{key:"disableEventListeners",value:function(){return F.call(this)}}]),t}();return it.Utils=("undefined"!=typeof window?window:global).PopperUtils,it.placements=q,it.Defaults=et,it})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,i){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=n(e),o=n(i);function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),t}function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}var c={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=s.default(t).css("transition-duration"),i=s.default(t).css("transition-delay"),n=parseFloat(e),o=parseFloat(i);return n||o?(e=e.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(e)+parseFloat(i))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){s.default(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=i[n],o=e[n],a=o&&c.isElement(o)?"element":null===(r=o)||void 0===r?""+r:{}.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(a))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+a+'" but expected type "'+s+'".')}var r},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===s.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=s.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),s.default.fn.emulateTransitionEnd=function(t){var e=this,i=!1;return s.default(this).one(c.TRANSITION_END,(function(){i=!0})),setTimeout((function(){i||c.triggerTransitionEnd(e)}),t),this},s.default.event.special[c.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(s.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var h="alert",d=s.default.fn[h],u=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}
vendor: 11,015 bytes, line 27
27,e.dispose=function(){s.default.removeData(this._element,"bs.alert"),this._element=null},e._getRootElement=function(t){var e=c.getSelectorFromElement(t),i=!1;return e&&(i=document.querySelector(e)),i||(i=s.default(t).closest(".alert")[0]),i},e._triggerCloseEvent=function(t){var e=s.default.Event("close.bs.alert");return s.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(s.default(t).removeClass("show"),s.default(t).hasClass("fade")){var i=c.getTransitionDurationFromElement(t);s.default(t).one(c.TRANSITION_END,(function(i){return e._destroyElement(t,i)})).emulateTransitionEnd(i)}else this._destroyElement(t)},e._destroyElement=function(t){s.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var i=s.default(this),n=i.data("bs.alert");n||(n=new t(this),i.data("bs.alert",n)),"close"===e&&n[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),t}();s.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',u._handleDismiss(new u)),s.default.fn[h]=u._jQueryInterface,s.default.fn[h].Constructor=u,s.default.fn[h].noConflict=function(){return s.default.fn[h]=d,u._jQueryInterface};var p=s.default.fn.button,f=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,i=s.default(this._element).closest('[data-toggle="buttons"]')[0];if(i){var n=this._element.querySelector('input:not([type="hidden"])');if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains("active"))t=!1;else{var o=i.querySelector(".active");o&&s.default(o).removeClass("active")}t&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||s.default(n).trigger("change")),n.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&s.default(this._element).toggleClass("active"))},e.dispose=function(){s.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,i){return this.each((function(){var n=s.default(this),o=n.data("bs.button");o||(o=new t(this),n.data("bs.button",o)),o.shouldAvoidTriggerChange=i,"toggle"===e&&o[e]()}))},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),t}();s.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=t.target,i=e;if(s.default(e).hasClass("btn")||(e=s.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var n=e.querySelector('input:not([type="hidden"])');if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==i.tagName&&"LABEL"===e.tagName||f._jQueryInterface.call(s.default(e),"toggle","INPUT"===i.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=s.default(t.target).closest(".btn")[0];s.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),s.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,i=t.length;e<i;e++){var n=t[e],s=n.querySelector('input:not([type="hidden"])');s.checked||s.hasAttribute("checked")?n.classList.add("active"):n.classList.remove("active")}for(var o=0,a=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;o<a;o++){var r=t[o];"true"===r.getAttribute("aria-pressed")?r.classList.add("active"):r.classList.remove("active")}})),s.default.fn.button=f._jQueryInterface,s.default.fn.button.Constructor=f,s.default.fn.button.noConflict=function(){return s.default.fn.button=p,f._jQueryInterface};var m="carousel",g=s.default.fn[m],v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},_={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},y={TOUCH:"touch",PEN:"pen"},b=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide("next")},e.nextWhenVisible=function(){var t=s.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide("prev")},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(c.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(".active.carousel-item");var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)s.default(this._element).one("slid.bs.carousel",(function(){return e.to(t)}));else{if(i===t)return this.pause(),void this.cycle();var n=t>i?"next":"prev";this._slide(n,this._items[t])}},e.dispose=function(){s.default(this._element).off(".bs.carousel"),s.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=l({},v,t),c.typeCheckConfig(m,t,_),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&s.default(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&s.default(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&y[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){t._pointerEvent&&y[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};s.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(s.default(this._element).on("pointerdown.bs.carousel",(function(t){return e(t)})),s.default(this._element).on("pointerup.bs.carousel",(function(t){return i(t)})),this._element.classList.add("pointer-event")):(s.default(this._element).on("touchstart.bs.carousel",(function(t){return e(t)})),s.default(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),s.default(this._element).on("touchend.bs.carousel",(function(t){return i(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var i="next"===t,n="prev"===t,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;var a=(s+("prev"===t?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(this._element.querySelector(".active.carousel-item")),o=s.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:i});return s.default(this._element).trigger(o),o},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));s.default(e).removeClass("active");var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&s.default(i).addClass("active")}},e._slide=function(t,e){var i,n,o,a=this,r=this._element.querySelector(".active.carousel-item"),l=this._getItemIndex(r),h=e||r&&this._getItemByDirection(t,r),d=this._getItemIndex(h),u=Boolean(this._interval);if("next"===t?(i="carousel-item-left",n="carousel-item-next",o="left"):(i="carousel-item-right",n="carousel-item-prev",o="right"),h&&s.default(h).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(h,o).isDefaultPrevented()&&r&&h){this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(h);var p=s.default.Event("slid.bs.carousel",{relatedTarget:h,direction:o,from:l,to:d});if(s.default(this._element).hasClass("slide")){s.default(h).addClass(n),c.reflow(h),s.default(r).addClass(i),s.default(h).addClass(i);var f=parseInt(h.getAttribute("data-interval"),10);f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=f):this._config.interval=this._config.defaultInterval||this._config.interval;var m=c.getTransitionDurationFromElement(r);s.default(r).one(c.TRANSITION_END,(function(){s.default(h).removeClass(i+" "+n).addClass("active"),s.default(r).removeClass("active "+n+" "+i),a._isSliding=!1,setTimeout((function(){return s.default(a._element).trigger(p)}),0)})).emulateTransitionEnd(m)}else s.default(r).removeClass("active"),s.default(h).addClass("active"),this._isSliding=!1,s.default(this._element).trigger(p);u&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var i=s.default(this).data("bs.carousel"),n=l({},v,s.default(this).data());"object"==typeof e&&(n=l({},n,e));var o="string"==typeof e?e:n.slide;if(i||(i=new t(this,n),s.default(this).data("bs.carousel",i)),"number"==typeof e)i.to(e);else if("string"==typeof o){if(void 0===i[o])throw new TypeError('No method n
27amed "'+o+'"');i[o]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}))},t._dataApiClickHandler=function(e){var i=c.getSelectorFromElement(this);if(i){var n=s.default(i)[0];if(n&&s.default(n).hasClass("carousel")){var o=l({},s.default(n).data(),s.default(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(s.default(n),o),a&&s.default(n).data("bs.carousel").to(a),e.preventDefault()}}},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return v}}]),t}();s.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",b._dataApiClickHandler),s.default(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,i=t.length;e<i;e++){var n=s.default(t[e]);b._jQueryInterface.call(n,n.data())}})),s.default.fn[m]=b._jQueryInterface,s.default.fn[m].Constructor=b,s.default.fn[m].noConflict=function(){return s.default.fn[m]=g,b._jQueryInterface};var w="collapse",x=s.default.fn[w],k={toggle:!0,parent:""},S={toggle:"boolean",parent:"(string|element)"},T=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),n=0,s=i.length;n<s;n++){var o=i[n],a=c.getSelectorFromElement(o),r=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t}));null!==a&&r.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){s.default(this._element).hasClass("show")?this.hide():this.show()},e.show=function(){var e,i,n=this;if(!(this._isTransitioning||s.default(this._element).hasClass("show")||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains("collapse")}))).length&&(e=null),e&&(i=s.default(e).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var o=s.default.Event("show.bs.collapse");if(s.default(this._element).trigger(o),!o.isDefaultPrevented()){e&&(t._jQueryInterface.call(s.default(e).not(this._selector),"hide"),i||s.default(e).data("bs.collapse",null));var a=this._getDimension();s.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[a]=0,this._triggerArray.length&&s.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var r="scroll"+(a[0].toUpperCase()+a.slice(1)),l=c.getTransitionDurationFromElement(this._element);s.default(this._element).one(c.TRANSITION_END,(function(){s.default(n._element).removeClass("collapsing").addClass("collapse show"),n._element.style[a]="",n.setTransitioning(!1),s.default(n._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(l),this._element.style[a]=this._element[r]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&s.default(this._element).hasClass("show")){var e=s.default.Event("hide.bs.collapse");if(s.default(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",c.reflow(this._element),s.default(this._element).addClass("collapsing").removeClass("collapse show");var n=this._triggerArray.length;if(n>0)for(var o=0;o<n;o++){var a=this._triggerArray[o],r=c.getSelectorFromElement(a);null!==r&&(s.default([].slice.call(document.querySelectorAll(r))).hasClass("show")||s.default(a).addClass("collapsed").attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";var l=c.getTransitionDurationFromElement(this._element);s.default(this._element).one(c.TRANSITION_END,(function(){t.setTransitioning(!1),s.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(l)}}},e.setTransitioning=function(t){this._isTransitioning=t}
vendor: 10,855 bytes, line 27
27,e.dispose=function(){s.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=l({},k,t)).toggle=Boolean(t.toggle),c.typeCheckConfig(w,t,S),t},e._getDimension=function(){return s.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,i=this;c.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(e.querySelectorAll(n));return s.default(o).each((function(e,n){i._addAriaAndCollapsedClass(t._getTargetFromElement(n),[n])})),e},e._addAriaAndCollapsedClass=function(t,e){var i=s.default(t).hasClass("show");e.length&&s.default(e).toggleClass("collapsed",!i).attr("aria-expanded",i)},t._getTargetFromElement=function(t){var e=c.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var i=s.default(this),n=i.data("bs.collapse"),o=l({},k,i.data(),"object"==typeof e&&e?e:{});if(!n&&o.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(o.toggle=!1),n||(n=new t(this,o),i.data("bs.collapse",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return k}}]),t}();s.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=s.default(this),i=c.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(i));s.default(n).each((function(){var t=s.default(this),i=t.data("bs.collapse")?"toggle":e.data();T._jQueryInterface.call(t,i)}))})),s.default.fn[w]=T._jQueryInterface,s.default.fn[w].Constructor=T,s.default.fn[w].noConflict=function(){return s.default.fn[w]=x,T._jQueryInterface};var E="dropdown",C=s.default.fn[E],M=new RegExp("38|40|27"),L={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},P={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},D=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!s.default(this._element).hasClass("disabled")){var e=s.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||s.default(this._element).hasClass("disabled")||s.default(this._menu).hasClass("show"))){var i={relatedTarget:this._element},n=s.default.Event("show.bs.dropdown",i),a=t._getParentFromElement(this._element);if(s.default(a).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===o.default)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var r=this._element;"parent"===this._config.reference?r=a:c.isElement(this._config.reference)&&(r=this._config.reference,void 0!==this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&s.default(a).addClass("position-static"),this._popper=new o.default(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===s.default(a).closest(".navbar-nav").length&&s.default(document.body).children().on("mouseover",null,s.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),s.default(this._menu).toggleClass("show"),s.default(a).toggleClass("show").trigger(s.default.Event("shown.bs.dropdown",i))}}},e.hide=function(){if(!this._element.disabled&&!s.default(this._element).hasClass("disabled")&&s.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},i=s.default.Event("hide.bs.dropdown",e),n=t._getParentFromElement(this._element);s.default(n).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),s.default(this._menu).toggleClass("show"),s.default(n).toggleClass("show").trigger(s.default.Event("hidden.bs.dropdown",e)))}},e.dispose=function(){s.default.removeData(this._element,"bs.dropdown"),s.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;s.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=l({},this.constructor.Default,s.default(this._element).data(),t),c.typeCheckConfig(E,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var t=s.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=s.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":s.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},e._detectNavbar=function(){return s.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var i=s.default(this).data("bs.dropdown");if(i||(i=new t(this,"object"==typeof e?e:null),s.default(this).data("bs.dropdown",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var i=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),n=0,o=i.length;n<o;n++){var a=t._getParentFromElement(i[n]),r=s.default(i[n]).data("bs.dropdown"),l={relatedTarget:i[n]};if(e&&"click"===e.type&&(l.clickEvent=e),r){var c=r._menu;if(s.default(a).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&s.default.contains(a,e.target))){var h=s.default.Event("hide.bs.dropdown",l);s.default(a).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&s.default(document.body).children().off("mouseover",null,s.default.noop),i[n].setAttribute("aria-expanded","false"),r._popper&&r._popper.destroy(),s.default(c).removeClass("show"),s.default(a).removeClass("show").trigger(s.default.Event("hidden.bs.dropdown",l)))}}}},t._getParentFromElement=function(t){var e,i=c.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||s.default(e.target).closest(".dropdown-menu").length):!M.test(e.which))&&!this.disabled&&!s.default(this).hasClass("disabled")){var i=t._getParentFromElement(this),n=s.default(i).hasClass("show");if(n||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!n||27===e.which||32===e.which)return 27===e.which&&s.default(i.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void s.default(this).trigger("click");var o=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return s.default(t).is(":visible")}));if(0!==o.length){var a=o.indexOf(e.target);38===e.which&&a>0&&a--,40===e.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}}},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return L}},{key:"DefaultType",get:function(){return P}}]),t}();s.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',D._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",D._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",D._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),D._jQueryInterface.call(s.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),s.default.fn[E]=D._jQueryInterface,s.default.fn[E].Constructor=D,s.default.fn[E].noConflict=function(){return s.default.fn[E]=C,D._jQueryInterface};var A=s.default.fn.modal,O={backdrop:!0,keyboard:!0,focus:!0,show:!0},I={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},z=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){s.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var i=s.default.Event("show.bs.modal",{relatedTarget:t});s.default(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),s.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return e.hide(t)})),s.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){s.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){s.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var i=s.default.Event("hide.bs.modal");if(s.default(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=s.default(this._element).hasClass("fade");if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),s.default(document).off("focusin.bs.modal"),s.default(this._element).removeClass("show"),s.default(this._element).off("
27click.dismiss.bs.modal"),s.default(this._dialog).off("mousedown.dismiss.bs.modal"),n){var o=c.getTransitionDurationFromElement(this._element);s.default(this._element).one(c.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(o)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return s.default(t).off(".bs.modal")})),s.default(document).off("focusin.bs.modal"),s.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=l({},O,t),c.typeCheckConfig("modal",t,I),t},e._triggerBackdropTransition=function(){var t=this;if("static"===this._config.backdrop){var e=s.default.Event("hidePrevented.bs.modal");if(s.default(this._element).trigger(e),e.isDefaultPrevented())return;var i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var n=c.getTransitionDurationFromElement(this._dialog);s.default(this._element).off(c.TRANSITION_END),s.default(this._element).one(c.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),i||s.default(t._element).one(c.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,n)})).emulateTransitionEnd(n),this._element.focus()}else this.hide()},e._showElement=function(t){var e=this,i=s.default(this._element).hasClass("fade"),n=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),s.default(this._dialog).hasClass("modal-dialog-scrollable")&&n?n.scrollTop=0:this._element.scrollTop=0,i&&c.reflow(this._element),s.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var o=s.default.Event("shown.bs.modal",{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,s.default(e._element).trigger(o)};if(i){var r=c.getTransitionDurationFromElement(this._dialog);s.default(this._dialog).one(c.TRANSITION_END,a).emulateTransitionEnd(r)}else a()},e._enforceFocus=function(){var t=this;s.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(e){document!==e.target&&t._element!==e.target&&0===s.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?s.default(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||s.default(this._element).off("keydown.dismiss.bs.modal")},e._setResizeEvent=function(){var t=this;this._isShown?s.default(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):s.default(window).off("resize.bs.modal")},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){s.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),s.default(t._element).trigger("hidden.bs.modal")}))},e._removeBackdrop=function(){this._backdrop&&(s.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,i=s.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),s.default(this._backdrop).appendTo(document.body),s.default(this._element).on("click.dismiss.bs.modal",(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&e._triggerBackdropTransition()})),i&&c.reflow(this._backdrop),s.default(this._backdrop).addClass("show"),!t)return;if(!i)return void t();var n=c.getTransitionDurationFromElement(this._backdrop);s.default(this._backdrop).one(c.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){s.default(this._backdrop).removeClass("show");var o=function(){e._removeBackdrop(),t&&t()};if(s.default(this._element).hasClass("fade")){var a=c.getTransitionDurationFromElement(this._backdrop);s.default(this._backdrop).one(c.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),i=[].slice.call(document.querySelectorAll(".sticky-top"));s.default(e).each((function(e,i){var n=i.style.paddingRight,o=s.default(i).css("padding-right");s.default(i).data("padding-right",n).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")})),s.default(i).each((function(e,i){var n=i.style.marginRight,o=s.default(i).css("margin-right");s.default(i).data("margin-right",n).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}));var n=document.body.style.paddingRight,o=s.default(document.body).css("padding-right");s.default(document.body).data("padding-right",n).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}s.default(document.body).addClass("modal-open")},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));s.default(t).each((function(t,e){var i=s.default(e).data("padding-right");s.default(e).removeData("padding-right"),e.style.paddingRight=i||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));s.default(e).each((function(t,e){var i=s.default(e).data("margin-right");void 0!==i&&s.default(e).css("margin-right",i).removeData("margin-right")}));var i=s.default(document.body).data("padding-right");s.default(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,i){return this.each((function(){var n=s.default(this).data("bs.modal"),o=l({},O,s.default(this).data(),"object"==typeof e&&e?e:{});if(n||(n=new t(this,o),s.default(this).data("bs.modal",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method n
vendor: 12,750 bytes, line 27
27amed "'+e+'"');n[e](i)}else o.show&&n.show(i)}))},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return O}}]),t}();s.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,i=this,n=c.getSelectorFromElement(this);n&&(e=document.querySelector(n));var o=s.default(e).data("bs.modal")?"toggle":l({},s.default(e).data(),s.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=s.default(e).one("show.bs.modal",(function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",(function(){s.default(i).is(":visible")&&i.focus()}))}));z._jQueryInterface.call(s.default(e),o,this)})),s.default.fn.modal=z._jQueryInterface,s.default.fn.modal.Constructor=z,s.default.fn.modal.noConflict=function(){return s.default.fn.modal=A,z._jQueryInterface};var N=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],$=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,B=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function R(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);for(var n=(new window.DOMParser).parseFromString(t,"text/html"),s=Object.keys(e),o=[].slice.call(n.body.querySelectorAll("*")),a=function(t,i){var n=o[t],a=n.nodeName.toLowerCase();if(-1===s.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var r=[].slice.call(n.attributes),l=[].concat(e["*"]||[],e[a]||[]);r.forEach((function(t){(function(t,e){var i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===N.indexOf(i)||Boolean(t.nodeValue.match($)||t.nodeValue.match(B));for(var n=e.filter((function(t){return t instanceof RegExp})),s=0,o=n.length;s<o;s++)if(i.match(n[s]))return!0;return!1})(t,l)||n.removeAttribute(t.nodeName)}))},r=0,l=o.length;r<l;r++)a(r);return n.body.innerHTML}var H="tooltip",j=s.default.fn[H],F=new RegExp("(^|\\s)bs-tooltip\\S+","g"),W=["sanitize","whiteList","sanitizeFn"],Y={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Z={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},V={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},q={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},U=function(){function t(t,e){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=s.default(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),s.default(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(s.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),s.default.removeData(this.element,this.constructor.DATA_KEY),s.default(this.element).off(this.constructor.EVENT_KEY),s.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&s.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===s.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=s.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){s.default(this.element).trigger(e);var i=c.findShadowRoot(this.element),n=s.default.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var a=this.getTipElement(),r=c.getUID(this.constructor.NAME);a.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&s.default(a).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,h=this._getAttachment(l);this.addAttachmentClass(h);var d=this._getContainer();s.default(a).data(this.constructor.DATA_KEY,this),s.default.contains(this.element.ownerDocument.documentElement,this.tip)||s.default(a).appendTo(d),s.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(h)),s.default(a).addClass("show"),"ontouchstart"in document.documentElement&&s.default(document.body).children().on("mouseover",null,s.default.noop);var u=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,s.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(s.default(this.tip).hasClass("fade")){var p=c.getTransitionDurationFromElement(this.tip);s.default(this.tip).one(c.TRANSITION_END,u).emulateTransitionEnd(p)}else u()}},e.hide=function(t){var e=this,i=this.getTipElement(),n=s.default.Event(this.constructor.Event.HIDE),o=function(){"show"!==e._hoverState&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),s.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(s.default(this.element).trigger(n),!n.isDefaultPrevented()){if(s.default(i).removeClass("show"),"ontouchstart"in document.documentElement&&s.default(document.body).children().off("mouseover",null,s.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,s.default(this.tip).hasClass("fade")){var a=c.getTransitionDurationFromElement(i);s.default(i).one(c.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){s.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||s.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(s.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),s.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=R(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?s.default(e).parent().is(t)||t.empty().append(e):t.text(s.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:c.isElement(this.config.container)?s.default(this.config.container):s.default(document).find(this.config.container)},e._getAttachment=function(t){return Z[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)s.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var i="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,n="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;s.default(t.element).on(i,t.config.selector,(function(e){return t._enter(e)})).on(n,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},s.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||s.default(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),s.default(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),s.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||s.default(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),s.default(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=s.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==W.indexOf(t)&&delete e[t]})),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),c.typeCheckConfig(H,t,this.constructor.DefaultType),t.sanitize&&(t.template=R(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=s.default(this.getTipElement()),e=t.attr("class").match(F);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(s.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var i=s.default(this),n=i.data("bs.tooltip"),o="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,o),i.data("bs.tooltip",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method n
27amed "'+e+'"');n[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return V}},{key:"NAME",get:function(){return H}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return q}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Y}}]),t}();s.default.fn[H]=U._jQueryInterface,s.default.fn[H].Constructor=U,s.default.fn[H].noConflict=function(){return s.default.fn[H]=j,U._jQueryInterface};var G="popover",X=s.default.fn[G],K=new RegExp("(^|\\s)bs-popover\\S+","g"),Q=l({},U.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),J=l({},U.DefaultType,{content:"(string|element|function)"}),tt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},et=function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var o=n.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){s.default(this.getTipElement()).addClass("bs-popover-"+t)},o.getTipElement=function(){return this.tip=this.tip||s.default(this.config.template)[0],this.tip},o.setContent=function(){var t=s.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=s.default(this.getTipElement()),e=t.attr("class").match(K);null!==e&&e.length>0&&t.removeClass(e.join(""))},n._jQueryInterface=function(t){return this.each((function(){var e=s.default(this).data("bs.popover"),i="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new n(this,i),s.default(this).data("bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},r(n,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return Q}},{key:"NAME",get:function(){return G}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return tt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return J}}]),n}(U);s.default.fn[G]=et._jQueryInterface,s.default.fn[G].Constructor=et,s.default.fn[G].noConflict=function(){return s.default.fn[G]=X,et._jQueryInterface};var it="scrollspy",nt=s.default.fn[it],st={offset:10,method:"auto",target:""},ot={offset:"number",method:"string",target:"(string|element)"},at=function(){function t(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,s.default(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return i._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?e:this._config.method,n="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,o=c.getSelectorFromElement(t);if(o&&(e=document.querySelector(o)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[s.default(e)[i]().top+n,o]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]}
vendor: 8,438 bytes, line 27
27)).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){s.default.removeData(this._element,"bs.scrollspy"),s.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=l({},st,"object"==typeof t&&t?t:{})).target&&c.isElement(t.target)){var e=s.default(t.target).attr("id");e||(e=c.getUID(it),s.default(t.target).attr("id",e)),t.target="#"+e}return c.typeCheckConfig(it,t,ot),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||t<this._offsets[s+1])&&this._activate(this._targets[s])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),i=s.default([].slice.call(document.querySelectorAll(e.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass("active"),i.addClass("active")):(i.addClass("active"),i.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),i.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),s.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains("active")})).forEach((function(t){return t.classList.remove("active")}))},t._jQueryInterface=function(e){return this.each((function(){var i=s.default(this).data("bs.scrollspy");if(i||(i=new t(this,"object"==typeof e&&e),s.default(this).data("bs.scrollspy",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return st}}]),t}();s.default(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var i=s.default(t[e]);at._jQueryInterface.call(i,i.data())}})),s.default.fn[it]=at._jQueryInterface,s.default.fn[it].Constructor=at,s.default.fn[it].noConflict=function(){return s.default.fn[it]=nt,at._jQueryInterface};var rt=s.default.fn.tab,lt=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&s.default(this._element).hasClass("active")||s.default(this._element).hasClass("disabled"))){var e,i,n=s.default(this._element).closest(".nav, .list-group")[0],o=c.getSelectorFromElement(this._element);if(n){var a="UL"===n.nodeName||"OL"===n.nodeName?"> li > .active":".active";i=(i=s.default.makeArray(s.default(n).find(a)))[i.length-1]}var r=s.default.Event("hide.bs.tab",{relatedTarget:this._element}),l=s.default.Event("show.bs.tab",{relatedTarget:i});if(i&&s.default(i).trigger(r),s.default(this._element).trigger(l),!l.isDefaultPrevented()&&!r.isDefaultPrevented()){o&&(e=document.querySelector(o)),this._activate(this._element,n);var h=function(){var e=s.default.Event("hidden.bs.tab",{relatedTarget:t._element}),n=s.default.Event("shown.bs.tab",{relatedTarget:i});s.default(i).trigger(e),s.default(t._element).trigger(n)};e?this._activate(e,e.parentNode,h):h()}}},e.dispose=function(){s.default.removeData(this._element,"bs.tab"),this._element=null},e._activate=function(t,e,i){var n=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?s.default(e).children(".active"):s.default(e).find("> li > .active"))[0],a=i&&o&&s.default(o).hasClass("fade"),r=function(){return n._transitionComplete(t,o,i)};if(o&&a){var l=c.getTransitionDurationFromElement(o);s.default(o).removeClass("show").one(c.TRANSITION_END,r).emulateTransitionEnd(l)}else r()},e._transitionComplete=function(t,e,i){if(e){s.default(e).removeClass("active");var n=s.default(e.parentNode).find("> .dropdown-menu .active")[0];n&&s.default(n).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(s.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),c.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&s.default(t.parentNode).hasClass("dropdown-menu")){var o=s.default(t).closest(".dropdown")[0];if(o){var a=[].slice.call(o.querySelectorAll(".dropdown-toggle"));s.default(a).addClass("active")}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(e){return this.each((function(){var i=s.default(this),n=i.data("bs.tab");if(n||(n=new t(this),i.data("bs.tab",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),t}();s.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),lt._jQueryInterface.call(s.default(this),"show")})),s.default.fn.tab=lt._jQueryInterface,s.default.fn.tab.Constructor=lt,s.default.fn.tab.noConflict=function(){return s.default.fn.tab=rt,lt._jQueryInterface};var ct=s.default.fn.toast,ht={animation:"boolean",autohide:"boolean",delay:"number"},dt={animation:!0,autohide:!0,delay:500},ut=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=s.default.Event("show.bs.toast");if(s.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),s.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),c.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var n=c.getTransitionDurationFromElement(this._element);s.default(this._element).one(c.TRANSITION_END,i).emulateTransitionEnd(n)}else i()}},e.hide=function(){if(this._element.classList.contains("show")){var t=s.default.Event("hide.bs.toast");s.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),s.default(this._element).off("click.dismiss.bs.toast"),s.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},e._getConfig=function(t){return t=l({},dt,s.default(this._element).data(),"object"==typeof t&&t?t:{}),c.typeCheckConfig("toast",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;s.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),s.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=c.getTransitionDurationFromElement(this._element);s.default(this._element).one(c.TRANSITION_END,e).emulateTransitionEnd(i)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var i=s.default(this),n=i.data("bs.toast");if(n||(n=new t(this,"object"==typeof e&&e),i.data("bs.toast",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method n
27amed "'+e+'"');n[e](this)}}))},r(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"DefaultType",get:function(){return ht}},{key:"Default",get:function(){return dt}}]),t}();s.default.fn.toast=ut._jQueryInterface,s.default.fn.toast.Constructor=ut,s.default.fn.toast.noConflict=function(){return s.default.fn.toast=ct,ut._jQueryInterface},t.Alert=u,t.Button=f,t.Carousel=b,t.Collapse=T,t.Dropdown=D,t.Modal=z,t.Popover=et,t.Scrollspy=at,t.Tab=lt,t.Toast=ut,t.Tooltip=U,t.Util=c,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,(function(){"use strict";var t,e;function i(){return t.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(o(t,e))return;return 1}function r(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){for(var i=[],n=0;n<t.length;++n)i.push(e(t[n],n));return i}function d(t,e){for(var i in e)o(e,i)&&(t[i]=e[i]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,i,n){return Ee(t,e,i,n,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function f(t){if(null==t._isValid){var i=p(t),n=e.call(i.parsedDateParts,(function(t){return null!=t})),s=!isNaN(t._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&n);if(t._strict&&(s=s&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return s;t._isValid=s}return t._isValid}function m(t){var e=u(NaN);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}e=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var g=i.momentProperties=[],v=!1;function _(t,e){var i,n,s;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=p(e)),r(e._locale)||(t._locale=e._locale),0<g.length)for(i=0;i<g.length;i++)r(s=e[n=g[i]])||(t[n]=s);return t}function y(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function b(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function w(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var n=!0;return d((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var s,a,r=[],l=0;l<arguments.length;l++){if(s="","object"==typeof arguments[l]){for(a in s+="\n["+l+"] ",arguments[0])o(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[l];r.push(s)}w(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var k,S={};function T(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),S[t]||(w(e),S[t]=!0)}function E(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t,e){var i,n=d({},t);for(i in e)o(e,i)&&(s(t[i])&&s(e[i])?(n[i]={},d(n[i],t[i]),d(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)o(t,i)&&!o(e,i)&&s(t[i])&&(n[i]=d({},n[i]));return n}function M(t){null!=t&&this.set(t)}function L(t,e,i){var n=""+Math.abs(t),s=e-n.length;return(0<=t?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,k=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)o(t,e)&&i.push(e);return i};var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 8,919 bytes, line 27
27|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},O={};function I(t,e,i,n){var s="string"==typeof n?function(){return this[n]()}:n;t&&(O[t]=s),e&&(O[e[0]]=function(){return L(s.apply(this,arguments),e[1],e[2])}),i&&(O[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function z(t,e){return t.isValid()?(e=N(e,t.localeData()),A[e]=A[e]||function(t){for(var e,i=t.match(P),n=0,s=i.length;n<s;n++)O[i[n]]?i[n]=O[i[n]]:i[n]=(e=i[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var n="",o=0;o<s;o++)n+=E(i[o])?i[o].call(e,t):i[o];return n}}(e),A[e](t)):t.localeData().invalidDate()}function N(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(D.lastIndex=0;0<=i&&D.test(t);)t=t.replace(D,n),D.lastIndex=0,--i;return t}var $={};function B(t,e){var i=t.toLowerCase();$[i]=$[i+"s"]=$[e]=t}function R(t){return"string"==typeof t?$[t]||$[t.toLowerCase()]:void 0}function H(t){var e,i,n={};for(i in t)o(t,i)&&(e=R(i))&&(n[e]=t[i]);return n}var j={};function F(t,e){j[t]=e}function W(t){return t%4==0&&t%100!=0||t%400==0}function Y(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Z(t){var e=+t,i=0;return 0!=e&&isFinite(e)&&(i=Y(e)),i}function V(t,e){return function(n){return null!=n?(U(this,t,n),i.updateOffset(this,e),this):q(this,t)}}function q(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function U(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&W(t.year())&&1===t.month()&&29===t.date()?(i=Z(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Mt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var G,X=/\d/,K=/\d\d/,Q=/\d{3}/,J=/\d{4}/,tt=/[+-]?\d{6}/,et=/\d\d?/,it=/\d\d\d\d?/,nt=/\d\d\d\d\d\d?/,st=/\d{1,3}/,ot=/\d{1,4}/,at=/[+-]?\d{1,6}/,rt=/\d+/,lt=/[+-]?\d+/,ct=/Z|[+-]\d\d:?\d\d/gi,ht=/Z|[+-]\d\d(?::?\d\d)?/gi,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ut(t,e,i){G[t]=E(e)?e:function(t,n){return t&&i?i:e}}function pt(t,e){return o(G,t)?G[t](e._strict,e._locale):new RegExp(ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,s){return e||i||n||s}))))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}G={};var mt={};function gt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),l(e)&&(n=function(t,i){i[e]=Z(t)}),i=0;i<t.length;i++)mt[t[i]]=n}function vt(t,e){gt(t,(function(t,i,n,s){n._w=n._w||{},e(t,n._w,n,s)}))}var _t,yt=0,bt=1,wt=2,xt=3,kt=4,St=5,Tt=6,Et=7,Ct=8;function Mt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1==i?W(t)?29:28:31-i%7%2}_t=Array.prototype.indexOf?Array.prototype.indexOf:function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),I("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),B("month","M"),F("month",8),ut("M",et),ut("MM",et,K),ut("MMM",(function(t,e){return e.monthsShortRegex(t)})),ut("MMMM",(function(t,e){return e.monthsRegex(t)})),gt(["M","MM"],(function(t,e){e[bt]=Z(t)-1})),gt(["MMM","MMMM"],(function(t,e,i,n){var s=i._locale.monthsParse(t,n,i._strict);null!=s?e[bt]=s:p(i).invalidMonth=t}));var Lt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Dt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At=dt,Ot=dt;function It(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=Z(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),Mt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function zt(t){return null!=t?(It(this,t),i.updateOffset(this,!0),this):q(this,"Month")}function Nt(){function t(t,e){return e.length-t.length}for(var e,i=[],n=[],s=[],o=0;o<12;o++)e=u([2e3,o]),i.push(this.monthsShort(e,"")),n.push(this.months(e,"")),s.push(this.months(e,"")),s.push(this.monthsShort(e,""));for(i.sort(t),n.sort(t),s.sort(t),o=0;o<12;o++)i[o]=ft(i[o]),n[o]=ft(n[o]);for(o=0;o<24;o++)s[o]=ft(s[o]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function $t(t){return W(t)?366:365}I("Y",0,0,(function(){var t=this.year();return t<=9999?L(t,4):"+"+t})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),B("year","y"),F("year",1),ut("Y",lt),ut("YY",et,K),ut("YYYY",ot,J),ut("YYYYY",at,tt),ut("YYYYYY",at,tt),gt(["YYYYY","YYYYYY"],yt),gt("YYYY",(function(t,e){e[yt]=2===t.length?i.parseTwoDigitYear(t):Z(t)})),gt("YY",(function(t,e){e[yt]=i.parseTwoDigitYear(t)})),gt("Y",(function(t,e){e[yt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return Z(t)+(68<Z(t)?1900:2e3)};var Bt=V("FullYear",!0);function Rt(t){var e,i;return t<100&&0<=t?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Ht(t,e,i){var n=7+e-i;return n-(7+Rt(t,0,n).getUTCDay()-e)%7-1}function jt(t,e,i,n,s){var o,a=1+7*(e-1)+(7+i-n)%7+Ht(t,n,s),r=a<=0?$t(o=t-1)+a:a>$t(t)?(o=t+1,a-$t(t)):(o=t,a);return{year:o,dayOfYear:r}}function Ft(t,e,i){var n,s,o=Ht(t.year(),e,i),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?n=a+Wt(s=t.year()-1,e,i):a>Wt(t.year(),e,i)?(n=a-Wt(t.year(),e,i),s=t.year()+1):(s=t.year(),n=a),{week:n,year:s}}function Wt(t,e,i){var n=Ht(t,e,i),s=Ht(t+1,e,i);return($t(t)-n+s)/7}function Yt(t,e){return t.slice(e,7).concat(t.slice(0,e))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),F("week",5),F("isoWeek",5),ut("w",et),ut("ww",et,K),ut("W",et),ut("WW",et,K),vt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=Z(t)})),I("d",0,"do","day"),I("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),I("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),I("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ut("d",et),ut("e",et),ut("E",et),ut("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ut("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ut("dddd",(function(t,e){return e.weekdaysRegex(t)})),vt(["dd","ddd","dddd"],(function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:p(i).invalidWeekday=t})),vt(["d","e","E"],(function(t,e,i,n){e[n]=Z(t)}));var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=dt,Gt=dt,Xt=dt;function Kt(){function t(t,e){return e.length-t.length}for(var e,i,n,s,o=[],a=[],r=[],l=[],c=0;c<7;c++)e=u([2e3,1]).day(c),i=ft(this.weekdaysMin(e,"")),n=ft(this.weekdaysShort(e,"")),s=ft(this.weekdays(e,"")),o.push(i),a.push(n),r.push(s),l.push(i),l.push(n),l.push(s);o.sort(t),a.sort(t),r.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Jt(t,e){I(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function te(t,e){return e._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Qt),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Qt.apply(this)+L(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Qt.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+L(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),B("hour","h"),F("hour",13),ut("a",te),ut("A",te),ut("H",et),ut("h",et),ut("k",et),ut("HH",et,K),ut("hh",et,K),ut("kk",et,K),ut("hmm",it),ut("hmmss",nt),ut("Hmm",it),ut("Hmmss",nt),gt(["H","HH"],xt),gt(["k","kk"],(function(t,e,i){var n=Z(t);e[xt]=24===n?0:n})),gt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),gt(["h","hh"],(function(t,e,i){e[xt]=Z(t),p(i).bigHour=!0})),gt("hmm",(function(t,e,i){var n=t.length-2;e[xt]=Z(t.substr(0,n)),e[kt]=Z(t.substr(n)),p(i).bigHour=!0})),gt("hmmss",(function(t,e,i){var n=t.length-4,s=t.length-2;e[xt]=Z(t.substr(0,n)),e[kt]=Z(t.substr(n,2)),e[St]=Z(t.substr(s)),p(i).bigHour=!0}
vendor: 4,810 bytes, line 27
27)),gt("Hmm",(function(t,e,i){var n=t.length-2;e[xt]=Z(t.substr(0,n)),e[kt]=Z(t.substr(n))})),gt("Hmmss",(function(t,e,i){var n=t.length-4,s=t.length-2;e[xt]=Z(t.substr(0,n)),e[kt]=Z(t.substr(n,2)),e[St]=Z(t.substr(s))}));var ee,ie=V("Hours",!0),ne={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Lt,monthsShort:Pt,week:{dow:0,doy:6},weekdays:Zt,weekdaysMin:qt,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},se={},oe={};function ae(t){return t?t.toLowerCase().replace("_","-"):t}function re(t){var e;if(void 0===se[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=ee._abbr,require("./locale/"+t),le(e)}catch(e){se[t]=null}return se[t]}function le(t,e){var i;return t&&((i=r(e)?he(t):ce(t,e))?ee=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ee._abbr}function ce(t,e){if(null===e)return delete se[t],null;var i,n=ne;if(e.abbr=t,null!=se[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=se[t]._config;else if(null!=e.parentLocale)if(null!=se[e.parentLocale])n=se[e.parentLocale]._config;else{if(null==(i=re(e.parentLocale)))return oe[e.parentLocale]||(oe[e.parentLocale]=[]),oe[e.parentLocale].push({name:t,config:e}),null;n=i._config}return se[t]=new M(C(n,e)),oe[t]&&oe[t].forEach((function(t){ce(t.name,t.config)})),le(t),se[t]}function he(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ee;if(!n(t)){if(e=re(t))return e;t=[t]}return function(t){for(var e,i,n,s,o=0;o<t.length;){for(e=(s=ae(t[o]).split("-")).length,i=(i=ae(t[o+1]))?i.split("-"):null;0<e;){if(n=re(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&function(t,e){for(var i=Math.min(t.length,e.length),n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}(s,i)>=e-1)break;e--}o++}return ee}(t)}function de(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[bt]<0||11<i[bt]?bt:i[wt]<1||i[wt]>Mt(i[yt],i[bt])?wt:i[xt]<0||24<i[xt]||24===i[xt]&&(0!==i[kt]||0!==i[St]||0!==i[Tt])?xt:i[kt]<0||59<i[kt]?kt:i[St]<0||59<i[St]?St:i[Tt]<0||999<i[Tt]?Tt:-1,p(t)._overflowDayOfYear&&(e<yt||wt<e)&&(e=wt),p(t)._overflowWeeks&&-1===e&&(e=Et),p(t)._overflowWeekday&&-1===e&&(e=Ct),p(t).overflow=e),t}var ue=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fe=/Z|[+-]\d\d(?::?\d\d)?/,me=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ge=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ve=/^\/?Date\((-?\d+)/i,_e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ye={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function be(t){var e,i,n,s,o,a,r=t._i,l=ue.exec(r)||pe.exec(r);if(l){for(p(t).iso=!0,e=0,i=me.length;e<i;e++)if(me[e][1].exec(l[1])){s=me[e][0],n=!1!==me[e][2];break}if(null==s)return void(t._isValid=!1);if(l[3]){for(e=0,i=ge.length;e<i;e++)if(ge[e][1].exec(l[3])){o=(l[2]||" ")+ge[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!fe.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=s+(o||"")+(a||""),Se(t)}else t._isValid=!1}function we(t){var e,i,n,s,o=_e.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));
27if(o){if(e=function(t,e,i,n,s,o){var a=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Pt.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(s,10)];return o&&a.push(parseInt(o,10)),a}(o[4],o[3],o[2],o[5],o[6],o[7]),n=e,s=t,(i=o[1])&&Vt.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()&&(p(s).weekdayMismatch=!0,!void(s._isValid=!1)))return;t._a=e,t._tzm=function(t,e,i){if(t)return ye[t];if(e)return 0;var n=parseInt(i,10),s=n%100;return(n-s)/100*60+s}(o[8],o[9],o[10]),t._d=Rt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function xe(t,e,i){return null!=t?t:null!=e?e:i}function ke(t){var e,n,s,o,a,r,l,c=[];if(!t._d){for(r=t,l=new Date(i.now()),s=r._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[wt]&&null==t._a[bt]&&function(t){var e,i,n,s,o,a,r,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,i=xe(e.GG,t._a[yt],Ft(Ce(),1,4).year),n=xe(e.W,1),((s=xe(e.E,1))<1||7<s)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,c=Ft(Ce(),o,a),i=xe(e.gg,t._a[yt],c.year),n=xe(e.w,c.week),null!=e.d?((s=e.d)<0||6<s)&&(l=!0):null!=e.e?(s=e.e+o,(e.e<0||6<e.e)&&(l=!0)):s=o),n<1||n>Wt(i,o,a)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(r=jt(i,n,s,o,a),t._a[yt]=r.year,t._dayOfYear=r.dayOfYear)}(t),null!=t._dayOfYear&&(a=xe(t._a[yt],s[yt]),(t._dayOfYear>$t(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=Rt(a,0,t._dayOfYear),t._a[bt]=n.getUTCMonth(),t._a[wt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=c[e]=s[e];for(;e<7;e++)t._a[e]=c[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[xt]&&0===t._a[kt]&&0===t._a[St]&&0===t._a[Tt]&&(t._nextDay=!0,t._a[xt]=0),t._d=(t._useUTC?Rt:function(t,e,i,n,s,o,a){var r;return t<100&&0<=t?(r=new Date(t+400,e,i,n,s,o,a),isFinite(r.getFullYear())&&r.setFullYear(t)):r=new Date(t,e,i,n,s,o,a),r}).apply(null,c),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}function Se(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],p(t).empty=!0;for(var e,n,s,a,r,l,c,h=""+t._i,d=h.length,u=0,f=N(t._f,t._locale).match(P)||[],m=0;m<f.length;m++)n=f[m],(e=(h.match(pt(n,t))||[])[0])&&(0<(s=h.substr(0,h.indexOf(e))).length&&p(t).unusedInput.push(s),h=h.slice(h.indexOf(e)+e.length),u+=e.length),O[n]?(e?p(t).empty=!1:p(t).unusedTokens.push(n),r=n,c=t,null!=(l=e)&&o(mt,r)&&mt[r](l,c._a,c,r)):t._strict&&!e&&p(t).unusedTokens.push(n);p(t).charsLeftOver=d-u,0<h.length&&p(t).unusedInput.push(h),t._a[xt]<=12&&!0===p(t).bigHour&&0<t._a[xt]&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[xt]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):(null!=t.isPM&&((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0)),e)}(t._locale,t._a[xt],t._meridiem),null!==(a=p(t).era)&&(t._a[yt]=t._locale.erasConvertYear(a,t._a[yt])),ke(t),de(t)}else we(t);else be(t)}function Te(t){var e,o,a=t._i,u=t._f;return t._locale=t._locale||he(t._l),null===a||void 0===u&&""===a?m({nullInput:!0}):("string"==typeof a&&(t._i=a=t._locale.preparse(a)),b(a)?new y(de(a)):(c(a)?t._d=a:n(u)?function(t){var e,i,n,s,o,a,r=!1;if(0===t._f.length)return p(t).invalidFormat=!0,t._d=new Date(NaN);for(s=0;s<t._f.length;s++)o=0,a=!1,e=_({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[s],Se(e),f(e)&&(a=!0),o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,r?o<n&&(n=o,i=e):(null==n||o<n||a)&&(n=o,i=e,a&&(r=!0));d(t,i||e)}(t):u?Se(t):r(o=(e=t)._i)?e._d=new Date(i.now()):c(o)?e._d=new Date(o.valueOf()):"string"==typeof o?function(t){var e=ve.exec(t._i);null===e?(be(t),!1===t._isValid&&(delete t._isValid,we(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(e):n(o)?(e._a=h(o.slice(0),(function(t){return parseInt(t,10)})),ke(e)):s(o)?function(t){var e,i;t._d||(i=void 0===(e=H(t._i)).day?e.date:e.day,t._a=h([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),ke(t))}(e):l(o)?e._d=new Date(o):i.createFromInputFallback(e),f(t)||(t._d=null),t))}function Ee(t,e,i,o,r){var l,c={};return!0!==e&&!1!==e||(o=e,e=void 0),!0!==i&&!1!==i||(o=i,i=void 0),(s(t)&&a(t)||n(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,
vendor: 4,407 bytes, line 27
27c._useUTC=c._isUTC=r,c._l=i,c._i=t,c._f=e,c._strict=o,(l=new y(de(Te(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function Ce(t,e,i,n){return Ee(t,e,i,n,!1)}i.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Me=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),Le=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ce.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()}));function Pe(t,e){var i,s;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Ce();for(i=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](i)||(i=e[s]);return i}var De=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ae(t){var e=H(t),i=e.year||0,n=e.quarter||0,s=e.month||0,a=e.week||e.isoWeek||0,r=e.day||0,l=e.hour||0,c=e.minute||0,h=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,n=!1;for(e in t)if(o(t,e)&&(-1===_t.call(De,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<De.length;++i)if(t[De[i]]){if(n)return!1;parseFloat(t[De[i]])!==Z(t[De[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*h+6e4*c+1e3*l*60*60,this._days=+r+7*a,this._months=+s+3*n+12*i,this._data={},this._locale=he(),this._bubble()}function Oe(t){return t instanceof Ae}function Ie(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ze(t,e){I(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+L(~~(t/60),2)+e+L(~~t%60,2)}))}ze("Z",":"),ze("ZZ",""),ut("Z",ht),ut("ZZ",ht),gt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=$e(ht,t)}));var Ne=/([\+\-]|\d\d)/gi;function $e(t,e){var i,n,s=(e||"").match(t);return null===s?null:0===(n=60*(i=((s[s.length-1]||[])+"").match(Ne)||["-",0,0])[1]+Z(i[2]))?0:"+"===i[0]?n:-n}function Be(t,e){var n,s;return e._isUTC?(n=e.clone(),s=(b(t)||c(t)?t.valueOf():Ce(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),i.updateOffset(n,!1),n):Ce(t).local()}function Re(t){return-Math.round(t._d.getTimezoneOffset())}function He(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var je=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Fe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function We(t,e){var i,n,s,a=t,r=null;return Oe(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(r=je.exec(t))?(i="-"===r[1]?-1:1,a={y:0,d:Z(r[wt])*i,h:Z(r[xt])*i,m:Z(r[kt])*i,s:Z(r[St])*i,ms:Z(Ie(1e3*r[Tt]))*i}):(r=Fe.exec(t))?(i="-"===r[1]?-1:1,a={y:Ye(r[2],i),M:Ye(r[3],i),w:Ye(r[4],i),d:Ye(r[5],i),h:Ye(r[6],i),m:Ye(r[7],i),s:Ye(r[8],i)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(s=function(t,e){var i;return t.isValid()&&e.isValid()?(e=Be(e,t),t.isBefore(e)?i=Ze(t,e):((i=Ze(e,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}(Ce(a.from),Ce(a.to)),(a={}).ms=s.milliseconds,a.M=s.months),n=new Ae(a),Oe(t)&&o(t,"_locale")&&(n._locale=t._locale),Oe(t)&&o(t,"_isValid")&&(n._isValid=t._isValid),n}function Ye(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Ze(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=e-t.clone().add(i.months,"M"),i}function Ve(t,e){return function(i,n){var s;return null===n||isNaN(+n)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=i,i=n,n=s),qe(this,We(i,n),t),this}}function qe(t,e,n,s){var o=e._milliseconds,a=Ie(e._days),r=Ie(e._months);t.isValid()&&(s=null==s||s,r&&It(t,q(t,"Month")+r*n),a&&U(t,"Date",q(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),s&&i.updateOffset(t,a||r))}
vendor: 5,000 bytes, line 27
27We.fn=Ae.prototype,We.invalid=function(){return We(NaN)};var Ue=Ve(1,"add"),Ge=Ve(-1,"subtract");function Xe(t){return"string"==typeof t||t instanceof String}function Ke(t,e){if(t.date()<e.date())return-Ke(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(1+i,"months")-n)))||0}function Qe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=he(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Je=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ti(){return this._locale}var ei=126227808e5;function ii(t,e){return(t%e+e)%e}function ni(t,e,i){return t<100&&0<=t?new Date(t+400,e,i)-ei:new Date(t,e,i).valueOf()}function si(t,e,i){return t<100&&0<=t?Date.UTC(t+400,e,i)-ei:Date.UTC(t,e,i)}function oi(t,e){return e.erasAbbrRegex(t)}function ai(){for(var t=[],e=[],i=[],n=[],s=this.eras(),o=0,a=s.length;o<a;++o)e.push(ft(s[o].name)),t.push(ft(s[o].abbr)),i.push(ft(s[o].narrow)),n.push(ft(s[o].name)),n.push(ft(s[o].abbr)),n.push(ft(s[o].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ri(t,e){I(0,[t,t.length],0,e)}function li(t,e,i,n,s){var o;return null==t?Ft(this,n,s).year:((o=Wt(t,n,s))<e&&(e=o),function(t,e,i,n,s){var o=jt(t,e,i,n,s),a=Rt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,i,n,s))}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),ut("N",oi),ut("NN",oi),ut("NNN",oi),ut("NNNN",(function(t,e){return e.erasNameRegex(t)})),ut("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),gt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var s=i._locale.erasParse(t,n,i._strict);s?p(i).era=s:p(i).invalidEra=t})),ut("y",rt),ut("yy",rt),ut("yyy",rt),ut("yyyy",rt),ut("yo",(function(t,e){return e._eraYearOrdinalRegex||rt})),gt(["y","yy","yyy","yyyy"],yt),gt(["yo"],(function(t,e,i,n){var s;i._locale._eraYearOrdinalRegex&&(s=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[yt]=i._locale.eraYearOrdinalParse(t,s):e[yt]=parseInt(t,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ri("gggg","weekYear"),ri("ggggg","weekYear"),ri("GGGG","isoWeekYear"),ri("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),ut("G",lt),ut("g",lt),ut("GG",et,K),ut("gg",et,K),ut("GGGG",ot,J),ut("gggg",ot,J),ut("GGGGG",at,tt),ut("ggggg",at,tt),vt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=Z(t)})),vt(["gg","GG"],(function(t,e,n,s){e[s]=i.parseTwoDigitYear(t)})),I("Q",0,"Qo","quarter"),B("quarter","Q"),F("quarter",7),ut("Q",X),gt("Q",(function(t,e){e[bt]=3*(Z(t)-1)})),I("D",["DD",2],"Do","date"),B("date","D"),F("date",9),ut("D",et),ut("DD",et,K),ut("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),gt(["D","DD"],wt),gt("Do",(function(t,e){e[wt]=Z(t.match(et)[0])}));var ci=V("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),F("dayOfYear",4),ut("DDD",st),ut("DDDD",Q),gt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=Z(t)})),I("m",["mm",2],0,"minute"),B("minute","m"),F("minute",14),ut("m",et),ut("mm",et,K),gt(["m","mm"],kt);var hi=V("Minutes",!1);I("s",["ss",2],0,"second"),B("second","s"),F("second",15),ut("s",et),ut("ss",et,K),gt(["s","ss"],St);var di,ui,pi=V("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),F("millisecond",16),ut("S",st,X),ut("SS",st,K),ut("SSS",st,Q),di="SSSS";di.length<=9;di+="S")ut(di,rt);function fi(t,e){e[Tt]=Z(1e3*("0."+t))}for(di="S";di.length<=9;di+="S")gt(di,fi);ui=V("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var mi=y.prototype;function gi(t){return t}mi.add=Ue,mi.calendar=function(t,e){1===arguments.length&&(arguments[0]?function(t){return b(t)||
vendor: 5,501 bytes, line 27
27c(t)||Xe(t)||l(t)||function(t){var e=n(t),i=!1;return e&&(i=0===t.filter((function(e){return!l(e)&&Xe(t)})).length),e&&i}(t)||function(t){var e,i=s(t)&&!a(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;e<r.length;e+=1)n=n||o(t,r[e]);return i&&n}(t)||null==t}(arguments[0])?(t=arguments[0],e=void 0):function(t){for(var e=s(t)&&!a(t),i=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<n.length;r+=1)i=i||o(t,n[r]);return e&&i}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var r=t||Ce(),h=Be(r,this).startOf("day"),d=i.calendarFormat(this,h)||"sameElse",u=e&&(E(e[d])?e[d].call(this,r):e[d]);return this.format(u||this.localeData().calendar(d,this,Ce(r)))},mi.clone=function(){return new y(this)},mi.diff=function(t,e,i){var n,s,o;if(!this.isValid())return NaN;if(!(n=Be(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=R(e)){case"year":o=Ke(this,n)/12;break;case"month":o=Ke(this,n);break;case"quarter":o=Ke(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return i?o:Y(o)},mi.endOf=function(t){var e,n;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?si:ni,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-ii(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-ii(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-ii(e,1e3)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},mi.format=function(t){var e=z(this,t=t||(this.isUtc()?i.defaultFormatUtc:i.defaultFormat));return this.localeData().postformat(e)},mi.from=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ce(t).isValid())?We({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},mi.fromNow=function(t){return this.from(Ce(),t)},mi.to=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ce(t).isValid())?We({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},mi.toNow=function(t){return this.to(Ce(),t)},mi.get=function(t){return E(this[t=R(t)])?this[t]():this},mi.invalidAt=function(){return p(this).overflow},mi.isAfter=function(t,e){var i=b(t)?t:Ce(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},mi.isBefore=function(t,e){var i=b(t)?t:Ce(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},mi.isBetween=function(t,e,i,n){var s=b(t)?t:Ce(t),o=b(e)?e:Ce(e);return!!(this.isValid()&&s.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(s,i):!this.isBefore(s,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},mi.isSame=function(t,e){var i,n=b(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},mi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},mi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},mi.isValid=function(){return f(this)},mi.lang=Je,mi.locale=Qe,mi.localeData=ti,mi.max=Le,mi.min=Me,mi.parsingFlags=function(){return d({},p(this))},mi.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e,i=[];for(e in t)o(t,e)&&i.push({unit:e,priority:j[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=H(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(E(this[t=R(t)]))return this[t](e);return this},mi.startOf=function(t){var e,n;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?si:ni,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ii(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=ii(e,6e4);break;case"second":e=this._d.valueOf(),e-=ii(e,1e3)}return this._d.setTime(e),i.updateOffset(this,!0),this},mi.subtract=Ge,mi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},mi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},mi.toDate=function(){return new Date(this.valueOf())},mi.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;
vendor: 6,179 bytes, line 27
27return i.year()<0||9999<i.year()?z(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(i,"Z")):z(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},mi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i,n="moment",s="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),t="["+n+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=s+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(mi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),mi.toJSON=function(){return this.isValid()?this.toISOString():null},mi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},mi.unix=function(){return Math.floor(this.valueOf()/1e3)},mi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},mi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},mi.eraName=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf("day").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].name;if(e[i].until<=t&&t<=e[i].since)return e[i].name}return""},mi.eraNarrow=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf("day").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].narrow;if(e[i].until<=t&&t<=e[i].since)return e[i].narrow}return""},mi.eraAbbr=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf("day").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].abbr;if(e[i].until<=t&&t<=e[i].since)return e[i].abbr}return""},mi.eraYear=function(){for(var t,e,n=this.localeData().eras(),s=0,o=n.length;s<o;++s)if(t=n[s].since<=n[s].until?1:-1,e=this.clone().startOf("day").valueOf(),n[s].since<=e&&e<=n[s].until||n[s].until<=e&&e<=n[s].since)return(this.year()-i(n[s].since).year())*t+n[s].offset;return this.year()},mi.year=Bt,mi.isLeapYear=function(){return W(this.year())},mi.weekYear=function(t){return li.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},mi.isoWeekYear=function(t){return li.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},mi.quarter=mi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},mi.month=zt,mi.daysInMonth=function(){return Mt(this.year(),this.month())},mi.week=mi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},mi.isoWeek=mi.isoWeeks=function(t){var e=Ft(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},mi.weeksInYear=function(){var t=this.localeData()._week;return Wt(this.year(),t.dow,t.doy)},mi.weeksInWeekYear=function(){var t=this.localeData()._week;return Wt(this.weekYear(),t.dow,t.doy)},mi.isoWeeksInYear=function(){return Wt(this.year(),1,4)},mi.isoWeeksInISOWeekYear=function(){return Wt(this.isoWeekYear(),1,4)},mi.date=ci,mi.day=mi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,i=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=i.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-n,"d")):n},mi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},mi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,i,n=(e=t,i=this.localeData(),"string"==typeof e?i.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?n:n-7)},mi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},mi.hour=mi.hours=ie,mi.minute=mi.minutes=hi,mi.second=mi.seconds=pi,mi.millisecond=mi.milliseconds=ui,mi.utcOffset=function(t,e,n){var s,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?o:Re(this);if("string"==typeof t){if(null===(t=$e(ht,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(s=Re(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),o!==t&&(!e||this._changeInProgress?qe(this,We(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this},mi.utc=function(t){return this.utcOffset(0,t)},mi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Re(this),"m")),this},mi.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=$e(ct,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},mi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ce(t).utcOffset():0,(this.utcOffset()-t)%60==0)},mi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mi.isLocal=function(){return!!this.isValid()&&!this._isUTC},mi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mi.isUtc=He,mi.isUTC=He,mi.zoneAbbr=function(){return this._isUTC?"UTC":""},mi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mi.dates=x("dates accessor is deprecated. Use date instead.",ci),mi.months=x("months accessor is deprecated. Use month instead",zt),mi.years=x("years accessor is deprecated. Use year instead",Bt),mi.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),mi.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=Te(e))._a?(t=(e._isUTC?u:Ce)(e._a),this._isDSTShifted=this.isValid()&&0<function(t,e,
vendor: 5,732 bytes, line 27
27i){for(var n=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),o=0,a=0;a<n;a++)Z(t[a])!==Z(e[a])&&o++;return o+s}(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted}));var vi=M.prototype;function _i(t,e,i,n){var s=he(),o=u().set(n,e);return s[i](o,t)}function yi(t,e,i){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return _i(t,e,i,"month");for(var n=[],s=0;s<12;s++)n[s]=_i(t,s,i,"month");return n}function bi(t,e,i,n){"boolean"==typeof t?l(e)&&(i=e,e=void 0):(e=t,t=!1,l(i=e)&&(i=e,e=void 0)),e=e||"";var s,o=he(),a=t?o._week.dow:0,r=[];if(null!=i)return _i(e,(i+a)%7,n,"day");for(s=0;s<7;s++)r[s]=_i(e,(s+a)%7,n,"day");return r}vi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return E(n)?n.call(e,i):n},vi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(P).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},vi.invalidDate=function(){return this._invalidDate},vi.ordinal=function(t){return this._ordinal.replace("%d",t)},vi.preparse=gi,vi.postformat=gi,vi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return E(s)?s(t,e,i,n):s.replace(/%d/i,t)},vi.pastFuture=function(t,e){var i=this._relativeTime[0<t?"future":"past"];return E(i)?i(e):i.replace(/%s/i,e)},vi.set=function(t){var e,i;for(i in t)o(t,i)&&(E(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vi.eras=function(t,e){for(var n,s=this._eras||he("en")._eras,o=0,a=s.length;o<a;++o){if("string"==typeof s[o].since)n=i(s[o].since).startOf("day"),s[o].since=n.valueOf();switch(typeof s[o].until){case"undefined":s[o].until=1/0;break;case"string":n=i(s[o].until).startOf("day").valueOf(),s[o].until=n.valueOf()}}return s},vi.erasParse=function(t,e,i){var n,s,o,a,r,l=this.eras();for(t=t.toUpperCase(),n=0,s=l.length;n<s;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),r=l[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[n];break;case"NNNN":if(o===t)return l[n];break;case"NNNNN":if(r===t)return l[n]}else if(0<=[o,a,r].indexOf(t))return l[n]},vi.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},vi.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||ai.call(this),t?this._erasAbbrRegex:this._erasRegex},vi.erasNameRegex=function(t){return o(this,"_erasNameRegex")||ai.call(this),t?this._erasNameRegex:this._erasRegex},vi.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||ai.call(this),t?this._erasNarrowRegex:this._erasRegex},vi.months=function(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Dt).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone},vi.monthsShort=function(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Dt.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vi.monthsParse=function(t,e,i){var n,s,o;if(this._monthsParseExact)return function(t,e,i){var n,s,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(s=_t.call(this._shortMonthsParse,a))?s:null:-1!==(s=_t.call(this._longMonthsParse,a))?s:null:"MMM"===e?-1!==(s=_t.call(this._shortMonthsParse,a))||-1!==(s=_t.call(this._longMonthsParse,a))?s:null:-1!==(s=_t.call(this._longMonthsParse,a))||-1!==(s=_t.call(this._shortMonthsParse,a))?s:null}.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=u([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},vi.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Nt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Ot),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},vi.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Nt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=At),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},vi.week=function(t){return Ft(t,this._week.dow,this._week.doy).week},vi.firstDayOfYear=function(){return this._week.doy},vi.firstDayOfWeek=function(){return this._week.dow},vi.weekdays=function(t,e){var i=n(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Yt(i,this._week.dow):t?i[t.day()]:i},vi.weekdaysMin=function(t){return!0===t?Yt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},vi.weekdaysShort=function(t){return!0===t?Yt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}
vendor: 5,833 bytes, line 27
27,vi.weekdaysParse=function(t,e,i){var n,s,o;if(this._weekdaysParseExact)return function(t,e,i){var n,s,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=_t.call(this._weekdaysParse,a))?s:null:"ddd"===e?-1!==(s=_t.call(this._shortWeekdaysParse,a))?s:null:-1!==(s=_t.call(this._minWeekdaysParse,a))?s:null:"dddd"===e?-1!==(s=_t.call(this._weekdaysParse,a))||-1!==(s=_t.call(this._shortWeekdaysParse,a))||-1!==(s=_t.call(this._minWeekdaysParse,a))?s:null:"ddd"===e?-1!==(s=_t.call(this._shortWeekdaysParse,a))||-1!==(s=_t.call(this._weekdaysParse,a))||-1!==(s=_t.call(this._minWeekdaysParse,a))?s:null:-1!==(s=_t.call(this._minWeekdaysParse,a))||-1!==(s=_t.call(this._weekdaysParse,a))||-1!==(s=_t.call(this._shortWeekdaysParse,a))?s:null}.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=u([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},vi.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},vi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Gt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},vi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},vi.meridiem=function(t,e,i){return 11<t?i?"pm":"PM":i?"am":"AM"},le("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===Z(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),i.lang=x("moment.lang is deprecated. Use moment.locale instead.",le),i.langData=x("moment.langData is deprecated. Use moment.localeData instead.",he);var wi=Math.abs;function xi(t,e,i,n){var s=We(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function ki(t){return t<0?Math.floor(t):Math.ceil(t)}function Si(t){return 4800*t/146097}function Ti(t){return 146097*t/4800}function Ei(t){return function(){return this.as(t)}}var Ci=Ei("ms"),Mi=Ei("s"),Li=Ei("m"),Pi=Ei("h"),Di=Ei("d"),Ai=Ei("w"),Oi=Ei("M"),Ii=Ei("Q"),zi=Ei("y");function Ni(t){return function(){return this.isValid()?this._data[t]:NaN}}var $i=Ni("milliseconds"),Bi=Ni("seconds"),Ri=Ni("minutes"),Hi=Ni("hours"),ji=Ni("days"),Fi=Ni("months"),Wi=Ni("years"),Yi=Math.round,Zi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var Vi=Math.abs;function qi(t){return(0<t)-(t<0)||+t}function Ui(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,s,o,a,r,l=Vi(this._milliseconds)/1e3,c=Vi(this._days),h=Vi(this._months),d=this.asSeconds();return d?(t=Y(l/60),e=Y(t/60),l%=60,t%=60,i=Y(h/12),h%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",s=d<0?"-":"",o=qi(this._months)!==qi(d)?"-":"",a=qi(this._days)!==qi(d)?"-":"",r=qi(this._milliseconds)!==qi(d)?"-":"",s+"P"+(i?o+i+"Y":"")+(h?o+h+"M":"")+(c?a+c+"D":"")+(e||t||l?"T":"")+(e?r+e+"H":"")+(t?r+t+"M":"")+(l?r+n+"S":"")):"P0D"}var Gi=Ae.prototype;return Gi.isValid=function(){return this._isValid},Gi.abs=function(){var t=this._data;return this._milliseconds=wi(this._milliseconds),this._days=wi(this._days),this._months=wi(this._months),t.milliseconds=wi(t.milliseconds),t.seconds=wi(t.seconds),t.minutes=wi(t.minutes),t.hours=wi(t.hours),t.months=wi(t.months),t.years=wi(t.years),this},Gi.add=function(t,e){return xi(this,t,e,1)},Gi.subtract=function(t,e){return xi(this,t,e,-1)},Gi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=R(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+Si(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(Ti(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Gi.asMilliseconds=Ci,Gi.asSeconds=Mi,Gi.asMinutes=Li,Gi.asHours=Pi,Gi.asDays=Di,Gi.asWeeks=A
27i,Gi.asMonths=Oi,Gi.asQuarters=Ii,Gi.asYears=zi,Gi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Z(this._months/12):NaN},Gi._bubble=function(){var t,e,i,n,s,o=this._milliseconds,a=this._days,r=this._months,l=this._data;return 0<=o&&0<=a&&0<=r||o<=0&&a<=0&&r<=0||(o+=864e5*ki(Ti(r)+a),r=a=0),l.milliseconds=o%1e3,t=Y(o/1e3),l.seconds=t%60,e=Y(t/60),l.minutes=e%60,i=Y(e/60),l.hours=i%24,a+=Y(i/24),r+=s=Y(Si(a)),a-=ki(Ti(s)),n=Y(r/12),r%=12,l.days=a,l.months=r,l.years=n,this},Gi.clone=function(){return We(this)},Gi.get=function(t){return t=R(t),this.isValid()?this[t+"s"]():NaN},Gi.milliseconds=$i,Gi.seconds=Bi,Gi.minutes=Ri,Gi.hours=Hi,Gi.days=ji,Gi.weeks=function(){return Y(this.days()/7)},Gi.months=Fi,Gi.years=Wi,Gi.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,s=!1,o=Zi;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(s=t),"object"==typeof e&&(o=Object.assign({},Zi,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),n=function(t,e,i,n){var s=We(t).abs(),o=Yi(s.as("s")),a=Yi(s.as("m")),r=Yi(s.as("h")),l=Yi(s.as("d")),c=Yi(s.as("M")),h=Yi(s.as("w")),d=Yi(s.as("y")),u=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||a<=1&&["m"]||a<i.m&&["mm",a]||r<=1&&["h"]||r<i.h&&["hh",r]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(u=u||h<=1&&["w"]||h<i.w&&["ww",h]),(u=u||c<=1&&["M"]||c<i.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=e,u[3]=0<+t,u[4]=n,function(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}.apply(null,u)}(this,!s,o,i=this.localeData()),s&&(n=i.pastFuture(+this,n)),i.postformat(n)},Gi.toISOString=Ui,Gi.toString=Ui,Gi.toJSON=Ui,Gi.locale=Qe,Gi.localeData=ti,Gi.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ui),Gi.lang=Je,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ut("x",lt),ut("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),gt("x",(function(t,e,i){i._d=new Date(Z(t))})),i.version="2.29.1",t=Ce,i.fn=mi,i.min=function(){return Pe("isBefore",[].slice.call(arguments,0))},i.max=function(){return Pe("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=u,i.unix=function(t){return Ce(1e3*t)},i.months=function(t,e){return yi(t,e,"months")},i.isDate=c,i.locale=le,i.invalid=m,i.duration=We,i.isMoment=b,i.weekdays=function(t,e,i){return bi(t,e,i,"weekdays")},i.parseZone=function(){return Ce.apply(null,arguments).parseZone()},i.localeData=he,i.isDuration=Oe,i.monthsShort=function(t,e){return yi(t,e,"monthsShort")},i.weekdaysMin=function(t,e,i){return bi(t,e,i,"weekdaysMin")},i.defineLocale=ce,i.updateLocale=function(t,e){var i,n,s;return null!=e?(s=ne,null!=se[t]&&null!=se[t].parentLocale?se[t].set(C(se[t]._config,e)):(null!=(n=re(t))&&(s=n._config),e=C(s,e),null==n&&(e.abbr=t),(i=new M(e)).parentLocale=se[t],se[t]=i),le(t)):null!=se[t]&&(null!=se[t].parentLocale?(se[t]=se[t].parentLocale,t===le()&&le(t)):null!=se[t]&&delete se[t]),se[t]},i.locales=function(){return k(se)},i.weekdaysShort=function(t,e,i){return bi(t,e,i,"weekdaysShort")},i.normalizeUnits=R,i.relativeTimeRounding=function(t){return void 0===t?Yi:"function"==typeof t&&(Yi=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==Zi[t]&&(void 0===e?Zi[t]:(Zi[t]=e,"s"===t&&(Zi.ss=e-1),!0))},i.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},i.prototype=mi,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i})),
28/**
29* @version: 3.1
30* @author: Dan Grossman http://www.dangrossman.info/
31* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
32* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
33* @website: http://www.daterangepicker.com/
34*/
35function(t,e){if("function"==typeof define&&define.amd)define(["moment","jquery"],(function(t,i){return i.fn||(i.fn={}),"function"!=typeof t&&t.hasOwnProperty("default")&&(t=t.default),e(t,i)}));else if("object"==typeof module&&module.exports){var i="undefined"!=typeof window?window.jQuery:void 0;
35i||(i=require("jquery")).fn||(i.fn={});var n="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=e(n,i)}else t.daterangepicker=e(t.moment,t.jQuery)}(this,(function(t,e){var i=function(i,n,s){if(this.parentEl="body",this.element=e(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof n&&null!==n||(n={}),"string"==typeof(n=e.extend(this.element.data(),n)).template||n.template instanceof e||(n.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=n.parentEl&&e(n.parentEl).length?e(n.parentEl):e(this.parentEl),this.container=e(n.template).appendTo(this.parentEl),"object"==typeof n.locale&&("string"==typeof n.locale.direction&&(this.locale.direction=n.locale.direction),"string"==typeof n.locale.format&&(this.locale.format=n.locale.format),"string"==typeof n.locale.separator&&(this.locale.separator=n.locale.separator),"object"==typeof n.locale.daysOfWeek&&(this.locale.daysOfWeek=n.locale.daysOfWeek.slice()),"object"==typeof n.locale.monthNames&&(this.locale.monthNames=n.locale.monthNames.slice()),"number"==typeof n.locale.firstDay&&(this.locale.firstDay=n.locale.firstDay),"string"==typeof n.locale.applyLabel&&(this.locale.applyLabel=n.locale.applyLabel),"string"==typeof n.locale.cancelLabel&&(this.locale.cancelLabel=n.locale.cancelLabel),"string"==typeof n.locale.weekLabel&&(this.locale.weekLabel=n.locale.weekLabel),"string"==typeof n.locale.customRangeLabel)){(p=document.createElement("textarea")).innerHTML=n.locale.customRangeLabel;var o=p.value;this.locale.customRangeLabel=o}if(this.container.addClass(this.locale.direction),"string"==typeof n.startDate&&(this.startDate=t(n.startDate,this.locale.format)),"string"==typeof n.endDate&&(this.endDate=t(n.endDate,this.locale.format)),"string"==typeof n.minDate&&(this.minDate=t(n.minDate,this.locale.format)),"string"==typeof n.maxDate&&(this.maxDate=t(n.maxDate,this.locale.format)),"object"==typeof n.startDate&&(this.startDate=t(n.startDate)),"object"==typeof n.endDate&&(this.endDate=t(n.endDate)),"object"==typeof n.minDate&&(this.minDate=t(n.minDate)),"object"==typeof n.maxDate&&(this.maxDate=t(n.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof n.applyButtonClasses&&(this.applyButtonClasses=n.applyButtonClasses),"string"==typeof n.applyClass&&(this.applyButtonClasses=n.applyClass),"string"==typeof n.cancelButtonClasses&&(this.cancelButtonClasses=n.cancelButtonClasse
35s),"string"==typeof n.cancelClass&&(this.cancelButtonClasses=n.cancelClass),"object"==typeof n.maxSpan&&(this.maxSpan=n.maxSpan),"object"==typeof n.dateLimit&&(this.maxSpan=n.dateLimit),"string"==typeof n.opens&&(this.opens=n.opens),"string"==typeof n.drops&&(this.drops=n.drops),"boolean"==typeof n.showWeekNumbers&&(this.showWeekNumbers=n.showWeekNumbers),"boolean"==typeof n.showISOWeekNumbers&&(this.showISOWeekNumbers=n.showISOWeekNumbers),"string"==typeof n.buttonClasses&&(this.buttonClasses=n.buttonClasses),"object"==typeof n.buttonClasses&&(this.buttonClasses=n.buttonClasses.join(" ")),"boolean"==typeof n.showDropdowns&&(this.showDropdowns=n.showDropdowns),"number"==typeof n.minYear&&(this.minYear=n.minYear),"number"==typeof n.maxYear&&(this.maxYear=n.maxYear),"boolean"==typeof n.showCustomRangeLabel&&(this.showCustomRangeLabel=n.showCustomRangeLabel),"boolean"==typeof n.singleDatePicker&&(this.singleDatePicker=n.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof n.timePicker&&(this.timePicker=n.timePicker),"boolean"==typeof n.timePickerSeconds&&(this.timePickerSeconds=n.timePickerSeconds),"number"==typeof n.timePickerIncrement&&(this.timePickerIncrement=n.timePickerIncrement),"boolean"==typeof n.timePicker24Hour&&(this.timePicker24Hour=n.timePicker24Hour),"boolean"==typeof n.autoApply&&(this.autoApply=n.autoApply),"boolean"==typeof n.autoUpdateInput&&(this.autoUpdateInput=n.autoUpdateInput),"boolean"==typeof n.linkedCalendars&&(this.linkedCalendars=n.linkedCalendars),"function"==typeof n.isInvalidDate&&(this.isInvalidDate=n.isInvalidDate),"function"==typeof n.isCustomDate&&(this.isCustomDate=n.isCustomDate),"boolean"==typeof n.alwaysShowCalendars&&(this.alwaysShowCalendars=n.alwaysShowCalendars),0!=this.locale.firstDay)for(var a=this.locale.firstDay;a>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),a--;var r,l,c;if(void 0===n.startDate&&void 0===n.endDate&&e(this.element).is(":text")){var h=e(this.element).val(),d=h.split(this.locale.separator);r=l=null,2==d.length?(r=t(d[0],this.locale.format),l=t(d[1],this.locale.format)):this.singleDatePicker&&""!==h&&(r=t(h,this.locale.format),l=t(h,this.locale.format)),null!==r&&null!==l&&(this.setStartDate(r),this.setEndDate(l))}if("object"==typeof n.ranges){for(c in n.ranges){r="string"==typeof n.ranges[c][0]?t(n.ranges[c][0],this.locale.format):t(n.ranges[c][0]),l="string"==typeof n.ranges[c][1]?t(n.ranges[c][1],this.locale.format):t(n.ranges[c][1]),this.minDate&&r.isBefore(this.minDate)&&(r=this.minDate.clone());var u=this.maxDate;if(this.maxSpan&&u&&r.clone().add(this.maxSpan).isAfter(u)&&(u=r.clone().add(this.maxSpan)),u&&l.isAfter(u)&&(l=u.clone()),!(this.minDate&&l.isBefore(this.minDate,this.timepicker?"minute":"day")||u&&r.isAfter(u,this.timepicker?"minute":"day"))){var p;(p=document.createElement("textarea")).innerHTML=c;o=p.value;this.ranges[o]=[r,l]}}var f="<ul>";for(c in this.ranges)f+='<li data-range-key="'+c+'">'+c+"</li>";this.showCustomRangeLabel&&(f+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),f+="</ul>",this.container.find(".ranges").prepend(f)}"function"==typeof s&&(this.callback=s),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof n.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===n.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasse
35s),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",e.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",e.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",e.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",e.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",e.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",e.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",e.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",e.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":e.proxy(this.show,this),"focus.daterangepicker":e.proxy(this.show,this),"keyup.daterangepicker":e.proxy(this.elementChanged,this),"keydown.daterangepicker":e.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",e.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",e.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(e){"string"==typeof e&&(this.startDate=t(e,this.locale.format)),"object"==typeof e&&(this.startDate=t(e)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(e){"string"==typeof e&&(this.endDate=t(e,this.locale.format)),"object"==typeof e&&(this.endDate=t(e)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var t,e,i,n;if(this.endDate){if(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".left .ampmselect").val())&&t<12&&(t+=12),"AM"===n&&12===t&&(t=0)}else if(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".right .ampmselect").val())&&t<12&&(t+=12),"AM"===n&&12===t&&(t=0);this.leftCalendar.month.hour(t).minute(e).second(i),this.rightCalendar.month.hour(t).minute(e).second(i)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(i){var n,s=(n="left"==i?this.leftCalendar:this.rightCalendar).month.month(),o=n.month.year(),a=n.month.hour(),r=n.month.minute(),l=n.month.second(),c=t([o,s]).daysInMonth(),h=t([o,s,1]),d=t([o,s,c]),u=t(h).subtract(1,"month").month(),p=t(h).subtract(1,"month").year(),f=t([p,u]).daysInMonth(),m=h.day();(n=[]).firstDay=h,n.lastDay=d;for(var g=0;g<6;g++)n[g]=[];var v=f-m+this.locale.firstDay+1;v>f&&(v-=7),m==this.locale.firstDay&&(v=f-6);for(var _=t([p,u,v,12,r,l]),y=(g=0,0),b=0;g<42;g++,y++,_=t(_).add(24,"hour"))g>0&&y%7==0&&(y=0,b++),n[b][y]=_.clone().hour(a).minute(r).second(l),_.hour(12),this.minDate&&n[b][y].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&n[b][y].isBefore(this.minDate)&&"left"==i&&(n[b][y]=this.minDate.clone()),this.maxDate&&n[b][y].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&n[b][y].isAfter(this.maxDate)&&"right"==i&&(n[b][y]=this.maxDate.clone());"left"==i?this.leftCalendar.calendar=n:this.rightCalendar.calendar=n;var w="left"==i?this.minDate:this.startDate,x=this.maxDate,k=("left"==i?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');k+="<thead>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+="<th></th>"),w&&!w.isBefore(n.firstDay)||this.linkedCalendars&&"left"!=i?k+="<th></th>":k+='<th class="prev available"><span></span></th>';var S=this.locale.monthNames[n[1][1].month()]+n[1][1].format(" YYYY");if(this.showDropdowns){for(var T=n[1][1].month(),E=n[1][1].year(),C=x&&x.year()||this.maxYear,M=w&&w.year()||this.minYear,L=E==M,P=E==C,D='<select class="monthselect">',A=0;A<12;A++)(!L||w&&A>=w.month())&&(!P||x&&A<=x.month())?D+="<option value='"+A+"'"+(A===T?" selected='selected'":"")+">"+this.locale.monthNames[A]+"</option>":D+="<option value='"+A+"'"+(A===T?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[A]+"</option>";D+="</select>";
35for(var O='<select class="yearselect">',I=M;I<=C;I++)O+='<option value="'+I+'"'+(I===E?' selected="selected"':"")+">"+I+"</option>";S=D+(O+="</select>")}if(k+='<th colspan="5" class="month">'+S+"</th>",x&&!x.isAfter(n.lastDay)||this.linkedCalendars&&"right"!=i&&!this.singleDatePicker?k+="<th></th>":k+='<th class="next available"><span></span></th>',k+="</tr>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+='<th class="week">'+this.locale.weekLabel+"</th>"),e.each(this.locale.daysOfWeek,(function(t,e){k+="<th>"+e+"</th>"})),k+="</tr>",k+="</thead>",k+="<tbody>",null==this.endDate&&this.maxSpan){var z=this.startDate.clone().add(this.maxSpan).endOf("day");x&&!z.isBefore(x)||(x=z)}for(b=0;b<6;b++){k+="<tr>",this.showWeekNumbers?k+='<td class="week">'+n[b][0].week()+"</td>":this.showISOWeekNumbers&&(k+='<td class="week">'+n[b][0].isoWeek()+"</td>");for(y=0;y<7;y++){var N=[];n[b][y].isSame(new Date,"day")&&N.push("today"),n[b][y].isoWeekday()>5&&N.push("weekend"),n[b][y].month()!=n[1][1].month()&&N.push("off","ends"),this.minDate&&n[b][y].isBefore(this.minDate,"day")&&N.push("off","disabled"),x&&n[b][y].isAfter(x,"day")&&N.push("off","disabled"),this.isInvalidDate(n[b][y])&&N.push("off","disabled"),n[b][y].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&N.push("active","start-date"),null!=this.endDate&&n[b][y].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&N.push("active","end-date"),null!=this.endDate&&n[b][y]>this.startDate&&n[b][y]<this.endDate&&N.push("in-range");var $=this.isCustomDate(n[b][y]);!1!==$&&("string"==typeof $?N.push($):Array.prototype.push.apply(N,$));var B="",R=!1;for(g=0;g<N.length;g++)B+=N[g]+" ","disabled"==N[g]&&(R=!0);R||(B+="available"),k+='<td class="'+B.replace(/^\s+|\s+$/g,"")+'" data-title="r'+b+"c"+y+'">'+n[b][y].date()+"</td>"}k+="</tr>"}k+="</tbody>",k+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(k)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,i,n,s=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(s=this.startDate.clone().add(this.maxSpan)),"left"==t)i=this.startDate.clone(),n=this.minDate;else if("right"==t){i=this.endDate.clone(),n=this.startDate;var o=this.container.find(".drp-calendar.right .calendar-time");if(""!=o.html()&&(i.hour(isNaN(i.hour())?o.find(".hourselect option:selected").val():i.hour()),i.minute(isNaN(i.minute())?o.find(".minuteselect option:selected").val():i.minute()),i.second(isNaN(i.second())?o.find(".secondselect option:selected").val():i.second()),!this.timePicker24Hour)){var a=o.find(".ampmselect option:selected").val();"PM"===a&&i.hour()<12&&i.hour(i.hour()+12),"AM"===a&&12===i.hour()&&i.hour(0)}i.isBefore(this.startDate)&&(i=this.startDate.clone()),s&&i.isAfter(s)&&(i=s.clone())}e='<select class="hourselect">';for(var r=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,c=r;c<=l;c++){var h=c;this.timePicker24Hour||(h=i.hour()>=12?12==c?12:c+12:12==c?0:c);var d=i.clone().hour(h),u=!1;n&&d.minute(59).isBefore(n)&&(u=!0),s&&d.minute(0).isAfter(s)&&(u=!0),h!=i.hour()||u?e+=u?'<option value="'+c+'" disabled="disabled" class="disabled">'+c+"</option>":'<option value="'+c+'">'+c+"</option>":e+='<option value="'+c+'" selected="selected">'+c+"</option>"}e+="</select> ",e+=': <select class="minuteselect">';for(c=0;c<60;c+=this.timePickerIncrement){var p=c<10?"0"+c:c;d=i.clone().minute(c),u=!1;n&&d.second(59).isBefore(n)&&(u=!0),s&&d.second(0).isAfter(s)&&(u=!0),i.minute()!=c||u?e+=u?'<option value="'+c+'" disabled="disabled" class="disabled">'+p+"</option>":'<option value="'+c+'">'+p+"</option>":e+='<option value="'+c+'" selected="selected">'+p+"</option>"}if(e+="</select> ",this.timePickerSeconds){e+=': <select class="secondselect">';for(c=0;c<60;c++){p=c<10?"0"+c:c,d=i.clone().second(c),u=!1;n&&d.isBefore(n)&&(u=!0),s&&d.isAfter(s)&&(u=!0),i.second()!=c||u?e+=u?'<option value="'+c+'" disabled="disabled" class="disabled">'+p+"</option>":'<option value="'+c+'">'+p+"</option>":e+='<option value="'+c+'" selected="selected">'+p+"</option>"}e+="</select> "}if(!this.timePicker24Hour){e+='<select class="ampmselect">';var f="",m="";n&&i.clone().hour(12).minute(0).second(0).isBefore(n)&&(f=' disabled="disabled" class="disabled"'),s&&i.clone().hour(0).minute(0).second(0).isAfter(s)&&(m=' disabled="disabled" class="disabled"'),i.hour()>=12?e+='<option value="AM"'+f+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>":e+='<option value="AM" selected="selected"'+f+'>AM</option><option value="PM"'+m+">PM</option>",e+="</select>"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var t,i={top:0,left:0},n=this.drops,s=e(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},s=this.parentEl[0].clientWidth+this.parentEl.offset().left),n){case"auto":(t=this.element.offset().top+this.element.outerHeight()-i.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(t=this.element.offset().top-this.container.outerHeight()-i.top,n="up");break;case"up":t=this.element.offset().top-this.container.outerHeight()-i.top;break;default:t=this.element.offset().top+this.element.outerHeight()-i.top}this.container.css({top:0,left:0,right:"auto"});var o=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==n),"left"==this.opens){var a=s-this.element.offset().left-this.element.outerWidth();o+a>e(window).width()?this.container.css({top:t,right:"auto",left:9}):this.container.css({top:t,right:a,left:"auto"})}else if("center"==this.opens){(r=this.element.offset().left-i.left+this.element.outerWidth()/2-o/2)<0?this.container.css({top:t,right:"auto",left:9}):r+o>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:r,right:"auto"})}else{var r;(r=this.element.offset().left-i.left)+o>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:r,right:"auto"})}},show:function(t){this.isShowing||(this._outsideClickProxy=e.proxy((function(t){this.outsideClick(t)}),this),e(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),e(window).on("resize.daterangepicker",e.proxy((function(t){this.move(t)}),this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),e(document).off(".daterangepicker"),e(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var i=e(t.target);"focusin"==t.type||i.closest(this.element).length||i.closest(this.container).length||i.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[e];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),n=i.substr(1,1),s=i.substr(3,1),o=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][s]:this.rightCalendar.calendar[n][s],a=this.leftCalendar,r=this.rightCalendar,l=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each((function(t,i){if(!e(i).hasClass("week")){var n=e(i).attr("data-title"),s=n.substr(1,1),c=n.substr(3,1),h=e(i).parents(".drp-calendar").hasClass("left")?a.calendar[s][c]:r.calendar[s][c];h.isAfter(l)&&h.isBefore(o)||h.isSame(o,"day")?e(i).addClass("in-range"):e(i).removeClass("in-range")}}))}},clickDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),n=i.substr(1,1),s=i.substr(3,1),o=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][s]:this.rightCalendar.calendar[n][s];if(this.endDate||o.isBefore(this.startDate,"day")){if(this.timePicker){var a=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(c=this.container.find(".left .ampmselect").val())&&a<12&&(a+=12),"AM"===c&&12===a&&(a=0);var r=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(r)&&(r=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var l=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;o=o.clone().hour(a).minute(r).second(l)}this.endDate=null,this.setStartDate(o.clone())}else if(!this.endDate&&o.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var c;a=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(c=this.container.find(".right .ampmselect").val())&&a<12&&(a+=12),"AM"===c&&12===a&&(a=0);r=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(r)&&(r=parseInt(this.container.find(".right .minuteselect option:last").val(),10));l=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;o=o.clone().hour(a).minute(r).second(l)}this.setEndDate(o.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var i in this.ranges){if(this.timePicker){var n=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(n)==this.ranges[i][0].format(n)&&this.endDate.format(n)==this.ranges[i][1].format(n)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[i][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[i][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var i=e(t.target).closest(".drp-calendar").hasClass("left"),n=i?"left":"right",s=this.container.find(".drp-calendar."+n),o=parseInt(s.find(".monthselect").val(),10),a=s.find(".yearselect").val();i||(a<this.startDate.year()||a==this.startDate.year()&&o<this.startDate.month())&&(o=this.startDate.month(),a=this.startDate.year()),this.minDate&&(
35a<this.minDate.year()||a==this.minDate.year()&&o<this.minDate.month())&&(o=this.minDate.month(),a=this.minDate.year()),this.maxDate&&(a>this.maxDate.year()||a==this.maxDate.year()&&o>this.maxDate.month())&&(o=this.maxDate.month(),a=this.maxDate.year()),i?(this.leftCalendar.month.month(o).year(a),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(o).year(a),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var i=e(t.target).closest(".drp-calendar"),n=i.hasClass("left"),s=parseInt(i.find(".hourselect").val(),10),o=parseInt(i.find(".minuteselect").val(),10);isNaN(o)&&(o=parseInt(i.find(".minuteselect option:last").val(),10));var a=this.timePickerSeconds?parseInt(i.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var r=i.find(".ampmselect").val();"PM"===r&&s<12&&(s+=12),"AM"===r&&12===s&&(s=0)}if(n){var l=this.startDate.clone();l.hour(s),l.minute(o),l.second(a),this.setStartDate(l),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==l.format("YYYY-MM-DD")&&this.endDate.isBefore(l)&&this.setEndDate(l.clone())}else if(this.endDate){var c=this.endDate.clone();c.hour(s),c.minute(o),c.second(a),this.setEndDate(c)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var e=this.element.val().split(this.locale.separator),i=null,n=null;2===e.length&&(i=t(e[0],this.locale.format),n=t(e[1],this.locale.format)),(this.singleDatePicker||null===i||null===n)&&(n=i=t(this.element.val(),this.locale.format)),i.isValid()&&n.isValid()&&(this.setStartDate(i),this.setEndDate(n),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},e.fn.daterangepicker=function(t,n){var s=e.extend(!0,{},e.fn.daterangepicker.defaultOptions,t);return this.each((function(){var t=e(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new i(t,s,n))})),this},i})),function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],n={"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},s=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function a(e,n){var a=e.nodeName.toLowerCase();if(-1!==t.inArray(a,n))return-1===t.inArray(a,i)||Boolean(e.nodeValue.match(s)||e.nodeValue.match(o));for(var r=t(n).filter((function(t,e){return e instanceof RegExp})),l=0,c=r.length;l<c;l++)if(a.match(r[l]))return!0;return!1}function r(t,e,i){if(i&&"function"==typeof i)return i(t);for(var n=Object.keys(e),s=0,o=t.length;s<o;s++)for(var r=t[s].querySelectorAll("*"),l=0,c=r.length;l<c;l++){var h=r[l],d=h.nodeName.toLowerCase();if(-1!==n.indexOf(d))for(var u=[].slice.call(h.attributes),p=[].concat(e["*"]||[],e[d]||[]),f=0,m=u.length;f<m;f++){var g=u[f];a(g,p)||h.removeAttribute(g.nodeName)}else h.parentNode.removeChild(h)}}"classList"in document.createElement("_")||function(e){if("Element"in e){var i="classList",n="prototype",s=e.Element[n],o=Object,a=function(){var e=t(this);return{add:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.addClass(t)},remove:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.removeClass(t)},toggle:function(t,i){return e.toggleClass(t,i)},contains:function(t){return e.hasClass(t)}}};if(o.defineProperty){var r={get:a,enumerable:!0,configurable:!0};try{o.defineProperty(s,i,r)}catch(t){void 0!==t.number&&-2146823252!==t.number||(r.enumerable=!1,o.defineProperty(s,i,r))}}else o[n].__defineGetter__&&s.__defineGetter__(i,a)}}(window);var l,c,h,d=document.createElement("_");if(d.classList.add("c1","c2"),!d.classList.contains("c2")){var u=DOMTokenList.prototype.add,p=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,u.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,p.bind(this))}}if(d.classList.toggle("c3",!1),d.classList.contains("c3")){var f=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:f.call(this,t)}}function m(t,e){var i,n=t.selectedOptions,s=[];if(e){for(var o=0,a=n.length;o<a;o++)(i=n[o]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||s.push(i);return s}return n}function g(t,e){for(var i,n=[],s=e||t.selectedOptions,o=0,a=s.length;o<a;o++)(i=s[o]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||n.push(i.value);return t.multiple?n:n.length?n[0]:null}d=null,String.prototype.startsWith||(l=function(){try{var t={},e=Object.defineProperty,i=e(t,t,t)&&e}catch(t){}return i}(),c={}.toString,h=function(t){if(null==this)throw new TypeError;var e=String(this);if(t&&"[object RegExp]"==c.call(t))throw new TypeError;var i=e.length,n=String(t),s=n.length,o=arguments.length>1?arguments[1]:void 0,a=o?Number(o):0;a!=a&&(a=0);var r=Math.min(Math.max(a,0),i);if(s+r>i)return!1;for(var l=-1;++l<s;)if(e.charCodeAt(r+l)!=n.charCodeAt(l))return!1;return!0},l?l(String.prototype,"startsWith",{value:h,configurable:!0,writable:!0}):String.prototype.startsWith=h),Object.keys||(Object.keys=function(t,e,
vendor: 11,639 bytes, line 35
35i){for(e in i=[],t)i.hasOwnProperty.call(t,e)&&i.push(e);return i}),HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});var v={useDefault:!1,_set:t.valHooks.select.set};t.valHooks.select.set=function(e,i){return i&&!v.useDefault&&t(e).data("selected",!0),v._set.apply(this,arguments)};var _=null,y=function(){try{return new Event("change"),!0}catch(t){return!1}}();function b(t,e,i,n){for(var s=["display","subtext","tokens"],o=!1,a=0;a<s.length;a++){var r=s[a],l=t[r];if(l&&(l=l.toString(),"display"===r&&(l=l.replace(/<[^>]+>/g,"")),n&&(l=E(l)),l=l.toUpperCase(),o="contains"===i?l.indexOf(e)>=0:l.startsWith(e)))break}return o}function w(t){return parseInt(t,10)||0}t.fn.triggerNative=function(t){var e,i=this[0];i.dispatchEvent?(y?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event")).initEvent(t,!0,!1),i.dispatchEvent(e)):i.fireEvent?((e=document.createEventObject()).eventType=t,i.fireEvent("on"+t,e)):this.trigger(t)};var x={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},k=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,S=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function T(t){return x[t]}function E(t){return(t=t.toString())&&t.replace(k,T).replace(S,"")}var C,M,L,P,D,A=(C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},M=function(t){return C[t]},L="(?:"+Object.keys(C).join("|")+")",P=RegExp(L),D=RegExp(L,"g"),function(t){return t=null==t?"":""+t,P.test(t)?t.replace(D,M):t}),O={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},I=27,z=13,N=32,$=9,B=38,R=40,H={success:!1,major:"3"};try{H.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),H.major=H.full[0],H.success=!0}catch(t){}var j=0,F=".bs.select",W={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},Y={MENU:"."+W.MENU},Z={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};Z.noResults=Z.li.cloneNode(!1),Z.noResults.className="no-results",Z.a.setAttribute("role","option"),Z.a.className="dropdown-item",Z.subtext.className="text-muted",Z.text=Z.span.cloneNode(!1),Z.text.className="text",Z.checkMark=Z.span.cloneNode(!1);var V=new RegExp(B+"|"+R),q=new RegExp("^"+$+"$|"+I),U={li:function(t,e,i){var n=Z.li.cloneNode(!1);return t&&(1===t.nodeType||11===t.nodeType?n.appendChild(t):n.innerHTML=t),void 0!==e&&""!==e&&(n.className=e),null!=i&&n.classList.add("optgroup-"+i),n},a:function(t,e,i){var n=Z.a.cloneNode(!0);return t&&(11===t.nodeType?n.appendChild(t):n.insertAdjacentHTML("beforeend",t)),void 0!==e&&""!==e&&n.classList.add.apply(n.classList,e.split(/\s+/)),i&&n.setAttribute("style",i),n},text:function(t,e){var i,n,s=Z.text.cloneNode(!1);if(t.content)s.innerHTML=t.content;else{if(s.textContent=t.text,t.icon){var o=Z.whitespace.cloneNode(!1);(n=(!0===e?Z.i:Z.span).cloneNode(!1)).className=this.options.iconBase+" "+t.icon,Z.fragment.appendChild(n),Z.fragment.appendChild(o)}t.subtext&&((i=Z.subtext.cloneNode(!1)).textContent=t.subtext,s.appendChild(i))}if(!0===e)for(;s.childNodes.length>0;)Z.fragment.appendChild(s.childNodes[0]);else Z.fragment.appendChild(s);return Z.fragment},label:function(t){var e,i,n=Z.text.cloneNode(!1);if(n.innerHTML=t.display,t.icon){var s=Z.whitespace.cloneNode(!1);(i=Z.span.cloneNode(!1)).className=this.options.iconBase+" "+t.icon,Z.fragment.appendChild(i),Z.fragment.appendChild(s)}return t.subtext&&((e=Z.subtext.cloneNode(!1)).textContent=t.subtext,n.appendChild(e)),Z.fragment.appendChild(n),Z.fragment}};function G(t,e){t.length||(Z.noResults.innerHTML=this.options.noneResultsText.replace("{0}",'"'+A(e)+'"'),this.$menuInner[0].firstChild.appendChild(Z.noResults))}var X=function(e,i){var n=this;v.useDefault||(t.valHooks.select.set=v._set,v.useDefault=!0),this.$element=t(e),this.$newElement=null,this.$button=null,this.$menu=null,this.options=i,this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout((function(){n.selectpicker.keydown.keyHistory=""}),800)}}}},this.sizeInfo={},null===this.options.title&&(this.options.title=this.$element.attr("title"));var s=this.options.windowPadding;"number"==typeof s&&(this.options.windowPadding=[s,s,s,s]),this.val=X.prototype.val,this.render=X.prototype.render,this.refresh=X.prototype.refresh,this.setStyle=X.prototype.setStyle,this.selectAll=X.prototype.selectAll,this.deselectAll=X.prototype.deselectAll,this.destroy=X.prototype.destroy,this.remove=X.prototype.remove,this.show=X.prototype.show,this.hide=X.prototype.hide,this.init()};function K(i){var n,s=arguments,o=i;if([].shift.apply(s),!H.success){try{H.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(t){X.BootstrapVersion?H.full=X.BootstrapVersion.split(" ")[0].split("."):(H.full=[H.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",t))}H.major=H.full[0],H.success=!0}if("4"===H.major){var a=[];X.DEFAULTS.style===W.BUTTONCLASS&&a.push({name:"style",className:"BUTTONCLASS"}),X.DEFAULTS.iconBase===W.ICONBASE&&a.push({name:"iconBase",className:"ICONBASE"}),X.DEFAULTS.tickIcon===W.TICKICON&&a.push({name:"tickIcon",className:"TICKICON"}),W.DIVIDER="dropdown-divider",W.SHOW="show",W.BUTTONCLASS="btn-light",W.POPOVERHEADER="popover-header",W.ICONBASE="",W.TICKICON="bs-ok-default";for(var r=0;r<a.length;r++){i=a[r];X.DEFAULTS[i.name]=W[i.className]}}var l=this.each((function(){var i=t(this);if(i.is("select")){var a=i.data("selectpicker"),r="object"==typeof o&&o;if(a){if(r)for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(a.options[l]=r[l])}else{var c=i.data();for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&-1!==t.inArray(h,e)&&delete c[h];var d=t.extend({},X.DEFAULTS,t.fn.selectpicker.defaults||{},c,r);d.template=t.extend({},X.DEFAULTS.template,t.fn.selectpicker.defaults?t.fn.selectpicker.defaults.template:{},c.template,r.template),i.data("selectpicker",a=new X(this,d))}"string"==typeof o&&(n=a[o]instanceof Function?a[o].apply(a,s):a.options[o])}}));return void 0!==n?n:l}X.VERSION="1.13.18",X.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:W.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:W.ICONBASE,tickIcon:W.TICKICON,showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:n},X.prototype={constructor:X,init:function(){var t=this,e=this.$element.attr("id"),i=this.$element[0],n=i.form;j++,this.selectId="bs-select-"+j,i.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),i.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),n&&null===i.form&&(n.id||(n.id="form-"+this.selectId),i.setAttribute("form",n.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(Y.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),i.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(W.MENURIGHT),void 0!==e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+F,(function(){if(t.isVirtual()){var e=t.$menuInner[0],i=e.firstChild.cloneNode(!1);e.replaceChild(i,e.firstChild),e.scrollTop=0}})),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$element.trigger("hide"+F,e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden"+F,e)},"show.bs.dropdown":function(e){t.$element.trigger("show"+F,e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown"+F,e)}}),i.hasAttribute("required")&&this.$element.on("invalid"+F,(function(){t.$button[0].classList.add("bs-invalid"),t.$element.on("shown"+F+".invali
35d",(function(){t.$element.val(t.$element.val()).off("shown"+F+".invalid")})).on("rendered"+F,(function(){this.validity.valid&&t.$button[0].classList.remove("bs-invalid"),t.$element.off("rendered"+F)})),t.$button.on("blur"+F,(function(){t.$element.trigger("focus").trigger("blur"),t.$button.off("blur"+F)}))})),setTimeout((function(){t.buildList(),t.$element.trigger("loaded"+F)}))},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",i=this.multiple?' aria-multiselectable="true"':"",n="",s=this.autofocus?" autofocus":"";H.major<4&&this.$element.parent().hasClass("input-group")&&(n=" input-group-btn");var o,a="",r="",l="",c="";return this.options.header&&(a='<div class="'+W.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>"),this.options.liveSearch&&(r='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+A(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"></div>'),this.multiple&&this.options.actionsBox&&(l='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+W.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+W.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>"),this.multiple&&this.options.doneButton&&(c='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+W.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>"),o='<div class="dropdown bootstrap-select'+e+n+'"><button type="button" tabindex="-1" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+s+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===H.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+W.MENU+" "+("4"===H.major?"":W.SHOW)+'">'+a+r+l+'<div class="inner '+W.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+i+'><ul class="'+W.MENU+" inner "+("4"===H.major?W.SHOW:"")+'" role="presentation"></ul></div>'+c+"</div></div>",t(o)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var t=0;t<this.selectpicker.current.data.length;t++){var e=this.selectpicker.current.data[t],i=!0;"divider"===e.type?(i=!1,e.height=this.sizeInfo.dividerHeight):"optgroup-label"===e.type?(i=!1,e.height=this.sizeInfo.dropdownHeaderHeight):e.height=this.sizeInfo.liHeight,e.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),i&&(this.selectpicker.view.size++,e.posinset=this.selectpicker.view.size,!1===this.selectpicker.view.firstHighlightIndex&&(this.selectpicker.view.firstHighlightIndex=t)),e.position=(0===t?0:this.selectpicker.current.data[t-1].position)+e.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(e,i,n){var s,o,a=this,l=0,c=[];if(this.selectpicker.isSearching=e,this.selectpicker.current=e?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),i)if(n)l=this.$menuInner[0].scrollTop;else if(!a.multiple){var h=a.$element[0],d=(h.options[h.selectedIndex]||{}).liIndex;if("number"==typeof d&&!1!==a.options.size){var u=a.selectpicker.main.data[d],p=u&&u.position;p&&(l=p-(a.sizeInfo.menuInnerHeight+a.sizeInfo.liHeight)/2)}}function f(t,i){var n,l,h,d,u,p,f,m,g,v,_=a.selectpicker.current.elements.length,y=[],b=!0,w=a.isVirtual();a.selectpicker.view.scrollTop=t,n=Math.ceil(a.sizeInfo.menuInnerHeight/a.sizeInfo.liHeight*1.5),l=Math.round(_/n)||1;for(var x=0;x<l;x++){var k=(x+1)*n;if(x===l-1&&(k=_),y[x]=[x*n+(x?1:0),k],!_)break;void 0===u&&t-1<=a.selectpicker.current.data[k-1].position-a.sizeInfo.menuInnerHeight&&(u=x)}if(void 0===u&&(u=0),p=[a.selectpicker.view.position0,a.selectpicker.view.position1],h=Math.max(0,u-1),d=Math.min(l-1,u+1),a.selectpicker.view.position0=!1===w?0:Math.max(0,y[h][0])||0,a.selectpicker.view.position1=!1===w?_:Math.min(_,y[d][1])||0,f=p[0]!==a.selectpicker.view.position0||p[1]!==a.selectpicker.view.position1,void 0!==a.activeIndex&&(o=a.selectpicker.main.elements[a.prevActiveIndex],c=a.selectpicker.main.elements[a.activeIndex],s=a.selectpicker.main.elements[a.selectedIndex],i&&(a.activeIndex!==a.selectedIndex&&a.defocusItem(c),a.activeIndex=void 0),a.activeIndex&&a.activeIndex!==a.selectedIndex&&a.defocusItem(s)),void 0!==a.prevActiveIndex&&a.prevActiveIndex!==a.activeIndex&&a.prevActiveIndex!==a.selectedIndex&&a.defocusItem(o),(i||f)&&(m=a.selectpicker.view.visibleElements?a.selectpicker.view.visibleElements.slice():[],a.selectpicker.view.visibleElements=!1===w?a.selectpicker.current.elements:a.selectpicker.current.elements.slice(a.selectpicker.view.position0,a.selectpicker.view.position1),a.setOptionStatus(),(e||!1===w&&i)&&(g=m,v=a.selectpicker.view.visibleElements,b=!(g.length===v.length&&g.every((function(t,e){return t===v[e]})))),(i||!0===w)&&b)){var S,T,E=a.$menuInner[0],C=document.createDocumentFragment(),M=E.firstChild.cloneNode(!1),L=a.selectpicker.view.visibleElements,P=[];E.replaceChild(M,E.firstChild);x=0;for(var D=L.length;x<D;x++){var A,O,I=L[x];a.options.sanitize&&(A=I.lastChild)&&(O=a.selectpicker.current.data[x+a.selectpicker.view.position0])&&O.content&&!O.sanitized&&(P.push(A),O.sanitized=!0),C.appendChild(I)}if(a.options.sanitize&&P.length&&r(P,a.options.whiteList,a.options.sanitizeFn),!0===w?(S=0===a.selectpicker.view.position0?0:a.selectpicker.current.data[a.selectpicker.view.position0-1].position,T=a.selectpicker.view.position1>_-1?0:a.selectpicker.current.data[_-1].position-a.selectpicker.current.data[a.selectpicker.view.position1-1].position,E.firstChild.style.marginTop=S+"px",
vendor: 20,812 bytes, line 35
35E.firstChild.style.marginBottom=T+"px"):(E.firstChild.style.marginTop=0,E.firstChild.style.marginBottom=0),E.firstChild.appendChild(C),!0===w&&a.sizeInfo.hasScrollBar){var z=E.firstChild.offsetWidth;if(i&&z<a.sizeInfo.menuInnerInnerWidth&&a.sizeInfo.totalMenuWidth>a.sizeInfo.selectWidth)E.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px";else if(z>a.sizeInfo.menuInnerInnerWidth){a.$menu[0].style.minWidth=0;var N=E.firstChild.offsetWidth;N>a.sizeInfo.menuInnerInnerWidth&&(a.sizeInfo.menuInnerInnerWidth=N,E.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px"),a.$menu[0].style.minWidth=""}}}if(a.prevActiveIndex=a.activeIndex,a.options.liveSearch){if(e&&i){var $,B=0;a.selectpicker.view.canHighlight[B]||(B=1+a.selectpicker.view.canHighlight.slice(1).indexOf(!0)),$=a.selectpicker.view.visibleElements[B],a.defocusItem(a.selectpicker.view.currentActive),a.activeIndex=(a.selectpicker.current.data[B]||{}).index,a.focusItem($)}}else a.$menuInner.trigger("focus")}f(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",(function(t,e){a.noScroll||f(this.scrollTop,e),a.noScroll=!1})),t(window).off("resize"+F+"."+this.selectId+".createView").on("resize"+F+"."+this.selectId+".createView",(function(){a.$newElement.hasClass(W.SHOW)&&f(a.$menuInner[0].scrollTop)}))},focusItem:function(t,e,i){if(t){e=e||this.selectpicker.main.data[this.activeIndex];var n=t.firstChild;n&&(n.setAttribute("aria-setsize",this.selectpicker.view.size),n.setAttribute("aria-posinset",e.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",n.id),t.classList.add("active"),n.classList.add("active")))}},defocusItem:function(t){t&&(t.classList.remove("active"),t.firstChild&&t.firstChild.classList.remove("active"))},setPlaceholder:function(){var t=this,e=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),e=!0;var i=this.$element[0],n=!1,s=!this.selectpicker.view.titleOption.parentNode,o=i.selectedIndex,a=i.options[o],r=window.performance&&window.performance.getEntriesByType("navigation"),l=r&&r.length?"back_forward"!==r[0].type:2!==window.performance.navigation.type;s&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",n=!a||0===o&&!1===a.defaultSelected&&void 0===this.$element.data("selected")),(s||0!==this.selectpicker.view.titleOption.index)&&i.insertBefore(this.selectpicker.view.titleOption,i.firstChild),n&&l?i.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",(function(){t.selectpicker.view.displayedValue!==i.value&&t.render()}))}return e},buildData:function(){var t=':not([hidden]):not([data-hidden="true"])',e=[],i=0,n=this.setPlaceholder()?1:0;this.options.hideDisabled&&(t+=":not(:disabled)");var s=this.$element[0].querySelectorAll("select > *"+t);function o(t){var i=e[e.length-1];i&&"divider"===i.type&&(i.optID||t.optID)||((t=t||{}).type="divider",e.push(t))}function a(t,i){if((i=i||{}).divider="true"===t.getAttribute("data-divider"),i.divider)o({optID:i.optID});else{var n=e.length,s=t.style.cssText,a=s?A(s):"",r=(t.className||"")+(i.optgroupClass||"");i.optID&&(r="opt "+r),i.optionClass=r.trim(),i.inlineStyle=a,i.text=t.textContent,i.content=t.getAttribute("data-content"),i.tokens=t.getAttribute("data-tokens"),i.subtext=t.getAttribute("data-subtext"),i.icon=t.getAttribute("data-icon"),t.liIndex=n,i.display=i.content||i.text,i.type="option",i.index=n,i.option=t,i.selected=!!t.selected,i.disabled=i.disabled||!!t.disabled,e.push(i)}}function r(s,r){var l=r[s],c=!(s-1<n)&&r[s-1],h=r[s+1],d=l.querySelectorAll("option"+t);if(d.length){var u,p,f={display:A(l.label),subtext:l.getAttribute("data-subtext"),icon:l.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(l.className||"")};i++,c&&o({optID:i}),f.optID=i,e.push(f);for(var m=0,g=d.length;m<g;m++){var v=d[m];0===m&&(p=(u=e.length-1)+g),a(v,{headerIndex:u,lastIndex:p,optID:f.optID,optgroupClass:f.optgroupClass,disabled:l.disabled})}h&&o({optID:i})}}for(var l=s.length,c=n;c<l;c++){var h=s[c];"OPTGROUP"!==h.tagName?a(h,{}):r(c,s)}this.selectpicker.main.data=this.selectpicker.current.data=e},buildList:function(){var t=this,e=this.selectpicker.main.data,i=[],n=0;function s(e){var s,o=0;switch(e.type){case"divider":s=U.li(!1,W.DIVIDER,e.optID?e.optID+"div":void 0);break;case"option":(s=U.li(U.a(U.text.call(t,e),e.optionClass,e.inlineStyle),"",e.optID)).firstChild&&(s.firstChild.id=t.selectId+"-"+e.index);break;case"optgroup-label":s=U.li(U.label.call(t,e),"dropdown-header"+e.optgroupClass,e.optID)}e.element=s,i.push(s),e.display&&(o+=e.display.length),e.subtext&&(o+=e.subtext.length),e.icon&&(o+=1),o>n&&(n=o,t.selectpicker.view.widestOption=i[i.length-1])}!t.options.showTick&&!t.multiple||Z.checkMark.parentNode||(Z.checkMark.className=this.options.iconBase+" "+t.options.tickIcon+" check-mark",Z.a.appendChild(Z.checkMark));for(var o=e.length,a=0;a<o;a++){s(e[a])}this.selectpicker.main.elements=this.selectpicker.current.elements=i},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var t,e,i=this,n=this.$element[0],s=this.setPlaceholder()&&0===n.selectedIndex,o=m(n,this.options.hideDisabled),a=o.length,l=this.$button[0],c=l.querySelector(".filter-option-inner-inner"),h=document.createTextNode(this.options.multipleSeparator),d=Z.fragment.cloneNode(!1),u=!1;if(l.classList.toggle("bs-placeholder",i.multiple?!a:!g(n,o)),i.multiple||1!==o.length||(i.selectpicker.view.displayedValue=g(n,o)),"static"===this.options.selectedTextFormat)d=U.text.call(this,{text:this.options.title},!0);else if((t=this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&a>1)&&(t=(e=this.options.selectedTextFormat.split(">")).length>1&&a>e[1]||1===e.length&&a>=2),!1===t){if(!s){for(var p=0;p<a&&p<50;p++){var f=o[p],v=this.selectpicker.main.data[f.liIndex],_={};this.multiple&&p>0&&d.appendChild(h.cloneNode(!1)),f.title?_.text=f.title:v&&(v.content&&i.options.showContent?(_.content=v.content.toString(),u=!0):(i.options.showIcon&&(_.icon=v.icon),i.options.showSubtext&&!i.multiple&&v.subtext&&(_.subtext=" "+v.subtext),_.text=f.textContent.trim())),d.appendChild(U.text.call(this,_,!0))}a>49&&d.appendChild(document.createTextNode("..."))}}else{var y=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(y+=":not(:disabled)");var b=this.$element[0].querySelectorAll("select > option"+y+", optgroup"+y+" option"+y).length,w="function"==typeof this.options.countSelectedText?this.options.countSelectedText(a,b):this.options.countSelectedText;d=U.text.call(this,{text:w.replace("{0}",a.toString()).replace("{1}",b.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),d.childNodes.length||(d=U.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),l.title=d.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&u&&r([d],i.options.whiteList,i.options.sanitizeFn),c.innerHTML="",c.appendChild(d),H.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var x=l.querySelector(".filter-expand"),k=c.cloneNode(!0);k.className="filter-expand",x?l.replaceChild(k,x):l.appendChild(k)}this.$element.trigger("rendered"+F)},setStyle:function(t,e){var i,n=this.$button[0],s=this.$newElement[0],o=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),H.major<4&&(s.classList.add("bs3"),s.parentNode.classList&&s.parentNode.classList.contains("input-group")&&(s.previousElementSibling||s.nextElementSibling)&&(s.previousElementSibling||s.nextElementSibling).classList.contains("input-group-addon")&&s.classList.add("bs3-has-addon")),i=t?t.trim():o,"add"==e?i&&n.classList.add.apply(n.classList,i.split(" ")):"remove"==e?i&&n.classList.remove.apply(n.classList,i.split(" ")):(o&&n.classList.remove.apply(n.classList,o.split(" ")),i&&n.classList.add.apply(n.classList,i.split(" ")))},liHeight:function(e){if(e||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var i,n=Z.div.cloneNode(!1),s=Z.div.cloneNode(!1),o=Z.div.cloneNode(!1),a=document.createElement("ul"),r=Z.li.cloneNode(!1),l=Z.li.cloneNode(!1),c=Z.a.cloneNode(!1),h=Z.span.cloneNode(!1),d=this.options.header&&this.$menu.find("."+W.POPOVERHEADER).length>0?this.$menu.find("."+W.POPOVERHEADER)[0].cloneNode(!0):null,u=this.options.liveSearch?Z.div.cloneNode(!1):null,p=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,f=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,m=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,h.className="text",c.className="dropdown-item "+(m?m.className:""),n.className=this.$menu[0].parentNode.className+" "+W.SHOW,n.style.width=0,"auto"===this.options.width&&(s.style.minWidth=0),s.className=W.MENU+" "+W.SHOW,o.className="inner "+W.SHOW,a.className=W.MENU+" inner "+("4"===H.major?W.SHOW:""),r.className=W.DIVIDER,l.className="dropdown-header",h.appendChild(document.createTextNode("​")),this.selectpicker.current.data.length)for(var g=0;g<this.selectpicker.current.data.length;g++){var v=this.selectpicker.current.data[g];if("option"===v.type){i=v.element;break}}else i=Z.li.cloneNode(!1),c.appendChild(h),i.appendChild(c);if(l.appendChild(h.cloneNode(!0)),this.selectpicker.view.widestOption&&a.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),a.appendChild(i),a.appendChild(r),a.appendChild(l),d&&s.appendChild(d),u){var _=document.createElement("input");u.className="bs-searchbox",_.className="form-control",u.appendChild(_),s.appendChild(u)}p&&s.appendChild(p),o.appendChild(a),s.appendChild(o),f&&s.appendChild(f),n.appendChild(s),document.body.appendChild(n);var y,b=i.offsetHeight,x=l?l.offsetHeight:0,k=d?d.offsetHeight:0,S=u?u.offsetHeight:0,T=p?p.offsetHeight:0,E=f?f.offsetHeight:0,C=t(r).outerHeight(!0),M=!!window.getComputedStyle&&window.getComputedStyle(s),L=s.offsetWidth,P=M?null:t(s),D={vert:w(M?M.paddingTop:P.css("paddingTop"))+w(M?M.paddingBottom:P.css("paddingBottom"))+w(M?M.borderTopWidth:P.css("borderTopWidth"))+w(M?M.borderBottomWidth:P.css("borderBottomWidth")),horiz:w(M?M.paddingLeft:P.css("paddingLeft"))+w(M?M.paddingRight:P.css("paddingRight"))+w(M?M.borderLeftWidth:P.css("borderLeftWidth"))+w(M?M.borderRightWidth:P.css("borderRightWidth"))},A={vert:D.vert+w(M?M.marginTop:P.css("marginTop"))+w(M?M.marginBottom:P.css("marginBottom"))+2,horiz:D.horiz+w(M?M.marginLeft:P.css("marginLeft"))+w(M?M.marginRight:P.css("marginRight"))+2};o.style.overflowY="scroll",y=s.offsetWidth-L,document.body.removeChild(n),this.sizeInfo.liHeight=b,this.sizeInfo.dropdownHeaderHeight=x,this.sizeInfo.headerHeight=k,this.sizeInfo.searchHeight=S,this.sizeInfo.actionsHeight=T,this.sizeInfo.doneButtonHeight=E,this.sizeInfo.dividerHeight=C,this.sizeInfo.menuPadding=D,this.sizeInfo.menuExtras=A,this.sizeInfo.menuWidth=L,this.sizeInfo.menuInnerInnerWidth=L-D.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=y,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var e,i=this,n=t(window),s=i.$newElement.offset(),o=t(i.options.container);i.options.container&&o.length&&!o.is("body")?((e=o.offset()).top+=parseInt(o.css("borderTopWidth")),e.left+=parseInt(o.css("borderLeftWidth"))):e={top:0,left:0};var a=i.options.windowPadding;this.sizeInfo.selectOffsetTop=s.top-e.top-n.scrollTop(),this.sizeInfo.selectOffsetBot=n.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-e.top-a[2],this.sizeInfo.selectOffsetLeft=s.left-e.left-n.scrollLeft(),this.sizeInfo.selectOffsetRight=n.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-e.left-a[1],this.sizeInfo.selectOffsetTop-=a[0],this.sizeInfo.selectOffsetLeft-=a[3]},setMenuSize:function(t){this.getSelectPosition();var e,i,n,s,o,a,r,l,c=this.sizeInfo.selectWidth,h=this.sizeInfo.liHeight,d=this.sizeInfo.headerHeight,u=this.sizeInfo.searchHeight,p=this.sizeInfo.actionsHeight,f=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,g=this.sizeInfo.menuPadding,v=0;if(this.options.dropupAuto&&(r=h*this.selectpicker.current.elements.length+g.vert,l=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&r+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(l=this.selectpicker.dropup),this.$newElement.toggleClass(W.DROPUP,l),this.selectpicker.dropup=l),"auto"===this.options.size)s=this.selectpicker.current.elements.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,i=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,n=s+d+u+p+f,a=Math.max(s-g.vert,0),this.$newElement.hasClass(W.DROPUP)&&(i=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),o=i,e=i-d-u-p-f-g.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var _=0;_<this.options.size;_++)"divider"===this.selectpicker.current.data[_].type&&v++;e=(i=h*this.options.size+v*m+g.vert)-g.vert,o=i+d+u+p+f,n=a=""}this.$menu.css({"max-height":o+"px",overflow:"hidden","min-height":n+"px"}),this.$menuInner.css({"max-height":e+"px","overflow-y":"auto","min-height":a+"px"}),this.sizeInfo.menuInnerHeight=Math.max(e,1),this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(W.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-c),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(e){if(this.liHeight(e),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var i=this,n=t(window);this.setMenuSize(),this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",(function(){return i.setMenuSize()})),"auto"===this.options.size?n.off("resize"+F+"."+this.selectId+".setMenuSize scroll"+F+"."+this.selectId+".setMenuSize").on("resize"+F+"."+this.selectId+".setMenuSize scroll"+F+"."+this.selectId+".setMenuSize",(function(){return i.setMenuSize()})):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&n.off("resize"+F+"."+this.selectId+".setMenuSize scroll"+F+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,e)},setWidth:function(){var t=this;"auto"===this.options.width?requestAnimationFrame((function(){t.$menu.css("min-width","0"),t.$element.on("loaded"+F,(function(){t.liHeight(),t.setMenuSize();var e=t.$newElement.clone().appendTo("body"),i=e.css("width","auto").children("button").outerWidth();e.remove(),t.sizeInfo.selectWidth=Math.max(t.sizeInfo.totalMenuWidth,i),t.$newElement.css("width",t.sizeInfo.selectWidth+"px")}))})):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=t('<div class="bs-container" />');var e,i,n,s=this,o=t(this.options.container),a=function(a){var r={},l=s.options.display||!!t.fn.dropdown.Constructor.Default&&t.fn.dropdown.Constructor.Default.display;s.$bsContainer.addClass(a.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(W.DROPUP,a.hasClass(W.DROPUP)),e=a.offset(),o.is("body")?i={top:0,left:0}:((i=o.offset()).top+=parseInt(o.css("borderTopWidth"))-o.scrollTop(),i.left+=parseInt(o.css("borderLeftWidth"))-o.scrollLeft()),n=a.hasClass(W.DROPUP)?0:a[0].offsetHeight,(H.major<4||"static"===l)&&(r.top=e.top-i.top+n,r.left=e.left-i.left),r.width=a[0].offsetWidth,s.$bsContainer.css(r)};this.$button.on("click.bs.dropdown.data-api",(function(){s.isDisabled()||(a(s.$newElement),s.$bsContainer.appendTo(s.options.container).toggleClass(W.SHOW,!s.$button.hasClass(W.SHOW)).append(s.$menu))})),t(window).off("resize"+F+"."+this.selectId+" scroll"+F+"."+this.selectId).on("resize"+F+"."+this.selectId+" scroll"+F+"."+this.selectId,(function(){s.$newElement.hasClass(W.SHOW)&&a(s.$newElement)})),this.$element.on("hide"+F,(function(){s.$menu.data("height",s.$menu.height()),s.$bsContainer.detach()}))},setOptionStatus:function(t){var e=this;if(e.noScroll=!1,e.selectpicker.view.visibleElements&&e.selectpicker.view.visibleElements.length)for(var i=0;i<e.selectpicker.view.visibleElements.length;i++){var n=e.selectpicker.current.data[i+e.selectpicker.view.position0],s=n.option;s&&(!0!==t&&e.setDisabled(n.index,n.disabled),e.setSelected(n.index,s.selected))}},setSelected:function(t,e){var i,n,s=this.selectpicker.main.elements[t],o=this.selectpicker.main.data[t],a=void 0!==this.activeIndex,r=this.activeIndex===t||e&&!this.multiple&&!a;o.selected=e,n=s.firstChild,e&&(this.selectedIndex=t),s.classList.toggle("selected",e),r?(this.focusItem(s,o),this.selectpicker.view.currentActive=s,this.activeIndex=t):this.defocusItem(s),n&&(n.classList.toggle("selected",e),e?n.setAttribute("aria-selected",!0):this.multiple?n.setAttribute("aria-selected",!1):n.removeAttribute("aria-selected")),r||a||!e||void 0===this.prevActiveIndex||(i=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(i))},setDisabled:function(t,e){var i,n=this.selectpicker.main.elements[t];this.selectpicker.main.data[t].disabled=e,i=n.firstChild,n.classList.toggle(W.DISABLED,e),i&&("4"===H.major&&i.classList.toggle(W.DISABLED,e),e?(i.setAttribute("aria-disabled",e),i.setAttribute("tabindex",-1)):(i.removeAttribute("aria-disabled"),i.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(W.DISABLED),this.$button.addClass(W.DISABLED).attr("aria-disabled",!0)):this.$button[0].classList.contains(W.DISABLED)&&(this.$newElement[0].classList.remove(W.DISABLED),this.$button.removeClass(W.DISABLED).attr("aria-disabled",!1))},clickListener:function(){var e=this,i=t(document);function n(){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$menuInner.trigger("focus")}function s(){e.dropdown&&e.dropdown._popper&&e.dropdown._popper.state.isCreated?n():requestAnimationFrame(s)}i.data("spaceSelect",!1),this.$button.on("keyup",(function(t){/(32)/.test(t.keyCode.toString(10))&&i.data("spaceSelect")&&(t.preventDefault(),i.data("spaceSelect",!1))})),this.$newElement.on("show.bs.dropdown",(function(){H.major>3&&!e.dropdown&&(e.dropdown=e.$button.data("bs.dropdown"),e.dropdown._menu=e.$menu[0])})),this.$button.on("click.bs.dropdown.data-api",(function(){e.$newElement.hasClass(W.SHOW)||e.setSize()})),this.$element.on("shown"+F,(function(){e.$menuInner[0].scrollTop!==e.selectpicker.view.scrollTop&&(e.$menuInner[0].scrollTop=e.selectpicker.view.scrollTop),H.major>3?requestAnimationFrame(s):n()})),this.$menuInner.on("mouseenter","li a",(function(t){var i=this.parentElement,n=e.isVirtual()?e.selectpicker.view.position0:0,s=Array.prototype.indexOf.call(i.parentElement.children,i),o=e.selectpicker.current.data[s+n];e.focusItem(i,o,!0)})),this.$menuInner.on("click","li a",(function(i,n){var s=t(this),o=e.$element[0],a=e.isVirtual()?e.selectpicker.view.position0:0,r=e.selectpicker.current.data[s.parent().index()+a],l=r.index,c=g(o),h=o.selectedIndex,d=o.options[h],u=!0;if(e.multiple&&1!==e.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!e.isDisabled()&&!s.parent().hasClass(W.DISABLED)){var p=r.option,f=t(p),v=p.selected,y=f.parent("optgroup"),b=y.find("option"),w=e.options.maxOptions,x=y.data("maxOptions")||!1;if(l===e.activeIndex&&(n=!0),n||(e.prevActiveIndex=e.activeIndex,e.activeIndex=void 0),e.multiple){if(p.selected=!v,e.setSelected(l,!v),e.focusedParent.focus(),!1!==w||!1!==x){var k=w<m(o).length,S=x<y.find("option:selected").length;if(w&&k||x&&S)if(w&&1==w)o.selectedIndex=-1,p.selected=!0,e.setOptionStatus(!0);else if(x&&1==x){for(var T=0;T<b.length;T++){var E=b[T];E.selected=!1,e.setSelected(E.liIndex,!1)}p.selected=!0,e.setSelected(l,!0)}
35else{var C="string"==typeof e.options.maxOptionsText?[e.options.maxOptionsText,e.options.maxOptionsText]:e.options.maxOptionsText,M="function"==typeof C?C(w,x):C,L=M[0].replace("{n}",w),P=M[1].replace("{n}",x),D=t('<div class="notify"></div>');M[2]&&(L=L.replace("{var}",M[2][w>1?0:1]),P=P.replace("{var}",M[2][x>1?0:1])),p.selected=!1,e.$menu.append(D),w&&k&&(D.append(t("<div>"+L+"</div>")),u=!1,e.$element.trigger("maxReached"+F)),x&&S&&(D.append(t("<div>"+P+"</div>")),u=!1,e.$element.trigger("maxReachedGrp"+F)),setTimeout((function(){e.setSelected(l,!1)}),10),D[0].classList.add("fadeOut"),setTimeout((function(){D.remove()}),1050)}}}else d&&(d.selected=!1),p.selected=!0,e.setSelected(l,!0);!e.multiple||e.multiple&&1===e.options.maxOptions?e.$button.trigger("focus"):e.options.liveSearch&&e.$searchbox.trigger("focus"),u&&(e.multiple||h!==o.selectedIndex)&&(_=[p.index,f.prop("selected"),c],e.$element.triggerNative("change"))}})),this.$menu.on("click","li."+W.DISABLED+" a, ."+W.POPOVERHEADER+", ."+W.POPOVERHEADER+" :not(.close)",(function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),e.options.liveSearch&&!t(i.target).hasClass("close")?e.$searchbox.trigger("focus"):e.$button.trigger("focus"))})),this.$menuInner.on("click",".divider, .dropdown-header",(function(t){t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus")})),this.$menu.on("click","."+W.POPOVERHEADER+" .close",(function(){e.$button.trigger("click")})),this.$searchbox.on("click",(function(t){t.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(i){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus"),i.preventDefault(),i.stopPropagation(),t(this).hasClass("bs-select-all")?e.selectAll():e.deselectAll()})),this.$button.on("focus"+F,(function(t){var i=e.$element[0].getAttribute("tabindex");void 0!==i&&t.originalEvent&&t.originalEvent.isTrusted&&(this.setAttribute("tabindex",i),e.$element[0].setAttribute("tabindex",-1),e.selectpicker.view.tabindex=i)})).on("blur"+F,(function(t){void 0!==e.selectpicker.view.tabindex&&t.originalEvent&&t.originalEvent.isTrusted&&(e.$element[0].setAttribute("tabindex",e.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),e.selectpicker.view.tabindex=void 0)})),this.$element.on("change"+F,(function(){e.render(),e.$element.trigger("changed"+F,_),_=null})).on("focus"+F,(function(){e.options.mobile||e.$button[0].focus()}))},liveSearchListener:function(){var t=this;this.$button.on("click.bs.dropdown.data-api",(function(){t.$searchbox.val()&&(t.$searchbox.val(""),t.selectpicker.search.previousValue=void 0)})),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",(function(t){t.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){var e=t.$searchbox[0].value;if(t.selectpicker.search.elements=[],t.selectpicker.search.data=[],e){var i=[],n=e.toUpperCase(),s={},o=[],a=t._searchStyle(),r=t.options.liveSearchNormalize;r&&(n=E(n));for(var l=0;l<t.selectpicker.main.data.length;l++){var c=t.selectpicker.main.data[l];s[l]||(s[l]=b(c,n,a,r)),s[l]&&void 0!==c.headerIndex&&-1===o.indexOf(c.headerIndex)&&(c.headerIndex>0&&(s[c.headerIndex-1]=!0,o.push(c.headerIndex-1)),s[c.headerIndex]=!0,o.push(c.headerIndex),s[c.lastIndex+1]=!0),s[l]&&"optgroup-label"!==c.type&&o.push(l)}l=0;for(var h=o.length;l<h;l++){var d=o[l],u=o[l-1],p=(c=t.selectpicker.main.data[d],t.selectpicker.main.data[u]);("divider"!==c.type||"divider"===c.type&&p&&"divider"!==p.type&&h-1!==l)&&(t.selectpicker.search.data.push(c),i.push(t.selectpicker.main.elements[d]))}t.activeIndex=void 0,t.noScroll=!0,t.$menuInner.scrollTop(0),t.selectpicker.search.elements=i,t.createView(!0),G.call(t,i,e)}else t.selectpicker.search.previousValue&&(t.$menuInner.scrollTop(0),t.createView(!1));t.selectpicker.search.previousValue=e}))},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(t){var e=this.$element[0];if(void 0!==t){var i=g(e);if(_=[null,null,i],this.$element.val(t).trigger("changed"+F,_),this.$newElement.hasClass(W.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var n=(e.options[e.selectedIndex]||{}).liIndex;"number"==typeof n&&(this.setSelected(this.selectedIndex,!1),this.setSelected(n,!0))}return this.render(),_=null,this.$element}return this.$element.val()},changeAll:function(t){if(this.multiple){void 0===t&&(t=!0);var e=this.$element[0],i=0,n=0,s=g(e);e.classList.add("bs-select-hidden");for(var o=0,a=this.selectpicker.current.data,r=a.length;o<r;o++){var l=a[o],c=l.option;c&&!l.disabled&&"divider"!==l.type&&(l.selected&&i++,c.selected=t,!0===t&&n++)}e.classList.remove("bs-select-hidden"),i!==n&&(this.setOptionStatus(),_=[null,null,s],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){(t=t||window.event)&&t.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(e){var i,n,s,o,a,r=t(this),l=r.hasClass("dropdown-toggle"),c=(l?r.closest(".dropdown"):r.closest(Y.MENU)).data("this"),h=c.findLis(),d=!1,u=e.which===$&&!l&&!c.options.selectOnTab,p=V.test(e.which)||u,f=c.$menuInner[0].scrollTop,m=!0===c.isVirtual()?c.selectpicker.view.position0:0;if(!(e.which>=112&&e.which<=123))if(!(n=c.$newElement.hasClass(W.SHOW))&&(p||e.which>=48&&e.which<=57||e.which>=96&&e.which<=105||e.which>=65&&e.which<=90)&&(c.$button.trigger("click.bs.dropdown.data-api"),c.options.liveSearch))c.$searchbox.trigger("focus");else{if(e.which===I&&n&&(e.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),p){if(!
vendor: 4,487 bytes, line 35
35h.length)return;-1!==(i=(s=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(s.parentElement.children,s):-1)&&c.defocusItem(s),e.which===B?(-1!==i&&i--,i+m<0&&(i+=h.length),c.selectpicker.view.canHighlight[i+m]||-1===(i=c.selectpicker.view.canHighlight.slice(0,i+m).lastIndexOf(!0)-m)&&(i=h.length-1)):(e.which===R||u)&&(++i+m>=c.selectpicker.view.canHighlight.length&&(i=c.selectpicker.view.firstHighlightIndex),c.selectpicker.view.canHighlight[i+m]||(i=i+1+c.selectpicker.view.canHighlight.slice(i+m+1).indexOf(!0))),e.preventDefault();var g=m+i;e.which===B?0===m&&i===h.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,g=c.selectpicker.current.elements.length-1):d=(a=(o=c.selectpicker.current.data[g]).position-o.height)<f:(e.which===R||u)&&(i===c.selectpicker.view.firstHighlightIndex?(c.$menuInner[0].scrollTop=0,g=c.selectpicker.view.firstHighlightIndex):d=(a=(o=c.selectpicker.current.data[g]).position-c.sizeInfo.menuInnerHeight)>f),s=c.selectpicker.current.elements[g],c.activeIndex=c.selectpicker.current.data[g].index,c.focusItem(s),c.selectpicker.view.currentActive=s,d&&(c.$menuInner[0].scrollTop=a),c.options.liveSearch?c.$searchbox.trigger("focus"):r.trigger("focus")}else if(!r.is("input")&&!q.test(e.which)||e.which===N&&c.selectpicker.keydown.keyHistory){var v,_,y=[];e.preventDefault(),c.selectpicker.keydown.keyHistory+=O[e.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),_=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(_)&&(_=_.charAt(0));for(var w=0;w<c.selectpicker.current.data.length;w++){var x=c.selectpicker.current.data[w];b(x,_,"startsWith",!0)&&c.selectpicker.view.canHighlight[w]&&y.push(x.index)}if(y.length){var k=0;h.removeClass("active").find("a").removeClass("active"),1===_.length&&(-1===(k=y.indexOf(c.activeIndex))||k===y.length-1?k=0:k++),v=y[k],f-(o=c.selectpicker.main.data[v]).position>0?(a=o.position-o.height,d=!0):(a=o.position-c.sizeInfo.menuInnerHeight,d=o.position>f+c.sizeInfo.menuInnerHeight),s=c.selectpicker.main.elements[v],c.activeIndex=y[k],c.focusItem(s),s&&s.firstChild.focus(),d&&(c.$menuInner[0].scrollTop=a),r.trigger("focus")}}n&&(e.which===N&&!c.selectpicker.keydown.keyHistory||e.which===z||e.which===$&&c.options.selectOnTab)&&(e.which!==N&&e.preventDefault(),c.options.liveSearch&&e.which===N||(c.$menuInner.find(".active a").trigger("click",!0),r.trigger("focus"),c.options.liveSearch||(e.preventDefault(),t(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var e=t.extend({},this.options,this.$element.data());this.options=e,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+F)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off(F).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),t(window).off(F+"."+this.selectId)}};var Q=t.fn.selectpicker;function J(){if(t.fn.dropdown)return(t.fn.dropdown.Constructor._dataApiKeydownHandler||t.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments)}t.fn.selectpicker=K,t.fn.selectpicker.Constructor=X,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=Q,this},t(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',J).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",J).on("keydown"+F,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',X.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',(function(t){t.stopPropagation()})),t(window).on("load"+F+".data-api",(function(){t(".selectpicker").each((function(){var e=t(this);
35K.call(e,e.data())}))}))}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(i,n){var s,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(i),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,s=t(i).data("slick")||{},o.options=t.extend({},o.defaults,n,s),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,void 0!==document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.instanceUid=e++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var s=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=s.slideCount)return!1;s.unload(),"number"==typeof i?0===i&&0===s.$slides.length?t(e).appendTo(s.$slideTrack):n?t(e).insertBefore(s.$slides.eq(i)):t(e).insertAfter(s.$slides.eq(i)):!0===n?t(e).prependTo(s.$slideTrack):t(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each((function(e,i){t(i).attr("data-slick-index",e)})),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,i):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,i):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),t({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(t){t=Math.ceil(t),!1===s.options.vertical?(n[s.animType]="translate("+t+"px, 0px)",s.$slideTrack.css(n)):(n[s.animType]="translate(0px,"+t+"px)",s.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?n[s.animType]="translate3d("+e+"px, 0px, 0px)":n[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(n),i&&setTimeout((function(){s.disableTransition(),i.call()}),s.options.speed))},e.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=t(e).not(this.$slider)),e},e.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)}))},e.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;
vendor: 5,080 bytes, line 35
35t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(!0===n.options.dots){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,s,o,a,r=this;if(n=document.createDocumentFragment(),o=r.$slider.children(),r.options.rows>1){for(a=r.options.slidesPerRow*r.options.rows,s=Math.ceil(o.length/a),t=0;t<s;t++){var l=document.createElement("div");for(e=0;e<r.options.rows;e++){var c=document.createElement("div");for(i=0;i<r.options.slidesPerRow;i++){var h=t*a+(e*r.options.slidesPerRow+i);o.get(h)&&c.appendChild(o.get(h))}l.appendChild(c)}n.appendChild(l)}r.$slider.empty().append(n),r.$slider.children().children().children().css({width:100/r.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,s,o,a=this,r=!1,l=a.$slider.width(),c=window.innerWidth||t(window).width();if("window"===a.respondTo?o=c:"slider"===a.respondTo?o=l:"min"===a.respondTo&&(o=Math.min(c,l)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){for(n in s=null,a.breakpoints)a.breakpoints.hasOwnProperty(n)&&(!1===a.originalSettings.mobileFirst?o<a.breakpoints[n]&&(s=a.breakpoints[n]):o>a.breakpoints[n]&&(s=a.breakpoints[n]));null!==s?null!==a.activeBreakpoint?(s!==a.activeBreakpoint||i)&&(a.activeBreakpoint=s,"unslick"===a.breakpointSettings[s]?a.unslick(s):(a.options=t.extend({},a.originalSettings,a.breakpointSettings[s]),!0===e&&(a.currentSlide=a.options.initialSlide),a.refresh(e)),r=s):(a.activeBreakpoint=s,"unslick"===a.breakpointSettings[s]?a.unslick(s):(a.options=t.extend({},a.originalSettings,a.breakpointSettings[s]),!0===e&&(a.currentSlide=a.options.initialSlide),a.refresh(e)),r=s):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,!0===e&&(a.currentSlide=a.options.initialSlide),a.refresh(e),r=s),e||!1===r||a.$slider.trigger("breakpoint",[a,r])}},e.prototype.changeSlide=function(e,i){var n,s,o=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),n=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,e.data.message){case"previous":s=0===n?o.options.slidesToScroll:o.options.slidesToShow-n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-s,!1,i);break;case"next":s=0===n?o.options.slidesToScroll:n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+s,!1,i);break;case"index":var r=0===e.data.index?0:e.data.index||a.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(r),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.
35slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout((function(){i.disableTransition(t),e.call()}),i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(i){i.stopImmediatePropagation();var n=t(this);setTimeout((function(){e.options.pauseOnFocus&&(e.focussed=n.is(":focus"),e.autoPlay())}),0)}))},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,s,o=this,a=0;return o.slideOffset=0,i=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,s=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?s=-1.5:1===o.options.slidesToShow&&(s=-2)),a=i*o.options.slidesToShow*s),o.slideCount%o.options.slidesToScroll!=0&&t+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(t>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(t-o.slideCount))*o.slideWidth*-1,a=(o.options.slidesToShow-(t-o.slideCount))*i*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,a=o.slideCount%o.options.slidesToScroll*i*-1))):t+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(t+o.options.slidesToShow-o.slideCount)*o.slideWidth,a=(t+o.options.slidesToShow-o.slideCount)*i),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,a=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),e=!1===o.options.vertical?t*o.slideWidth*-1+o.slideOffset:t*i*-1+a,!0===o.options.variableWidth&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===o.options.centerMode&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow+1),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(o.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,s=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)s.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each((function(s,o){if(o.offsetLeft-i+t(o).outerWidth()/2>-1*n.swipeLeft)return e=o,!1})),Math.abs(t(e).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:
35parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),n=e.getNavigableIndexes().filter((function(t){return t>=0&&t<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(i){var s=n.indexOf(i);t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),-1!==s&&t(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})})),e.$dots.attr("role","tablist").find("li").each((function(s){var o=n[s];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+o,"aria-label":s+1+" of "+i,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,o=s+e.options.slidesToShow;s<o;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
35,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each((function(){var e=t(this),i=t(this).attr("data-lazy"),n=t(this).attr("data-srcset"),s=t(this).attr("data-sizes")||o.$slider.attr("data-sizes"),a=document.createElement("img");a.onload=function(){e.animate({opacity:0}
vendor: 7,114 bytes, line 35
35,100,(function(){n&&(e.attr("srcset",n),s&&e.attr("sizes",s)),e.attr("src",i).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),o.$slider.trigger("lazyLoaded",[o,e,i])}))},a.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,i])},a.src=i}))}var i,n,s,o=this;if(!0===o.options.centerMode?!0===o.options.infinite?s=(n=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(n=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),s=o.options.slidesToShow/2+1+2+o.currentSlide):(n=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,s=Math.ceil(n+o.options.slidesToShow),!0===o.options.fade&&(n>0&&n--,s<=o.slideCount&&s++)),i=o.$slider.find(".slick-slide").slice(n,s),"anticipated"===o.options.lazyLoad)for(var a=n-1,r=s,l=o.$slider.find(".slick-slide"),c=0;c<o.options.slidesToScroll;c++)a<0&&(a=o.slideCount-1),i=(i=i.add(l.eq(a))).add(l.eq(r)),a--,r++;e(i),o.slideCount<=o.options.slidesToShow?e(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?e(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&e(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&t(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,s,o,a,r=this,l=t("img[data-lazy]",r.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),s=i.attr("data-srcset"),o=i.attr("data-sizes")||r.$slider.attr("data-sizes"),(a=document.createElement("img")).onload=function(){s&&(i.attr("srcset",s),o&&i.attr("sizes",o)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===r.options.adaptiveHeight&&r.setPosition(),r.$slider.trigger("lazyLoaded",[r,i,n]),r.progressiveLazyLoad()},a.onerror=function(){e<3?setTimeout((function(){r.progressiveLazyLoad(e+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,i,n]),r.progressiveLazyLoad())},a.src=n):r.$slider.trigger("allImagesLoaded",[r])},e.prototype.refresh=function(e){var i,n,s=this;n=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>n&&(s.currentSlide=n),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),i=s.currentSlide,s.destroy(!0),t.extend(s,s.initials,{currentSlide:i}),s.init(),e||s.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,s=this,o=s.options.responsive||null;if("array"===t.type(o)&&o.length){for(e in s.respondTo=s.options.respondTo||"window",o)if(n=s.breakpoints.length-1,o.hasOwnProperty(e)){for(i=o[e].breakpoint;n>=0;)s.breakpoints[n]&&s.breakpoints[n]===i&&s.breakpoints.splice(n,1),n--;s.breakpoints.push(i),s.breakpointSettings[i]=o[e].settings}s.breakpoints.sort((function(t,e){return s.options.mobileFirst?t-e:e-t}))}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},e.prototype.setCSS=function(t){var e,i,n=this,s={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",s[n.positionProp]=t,!1===n.transformsEnabled?n.$slideTrack.css(s):(s={},!1===n.cssTransitions?(s[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(s)):(s[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each((function(n,s){e=i.slideWidth*n*-1,!0===i.options.rtl?t(s).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}
35):t(s).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,s,o,a=this,r=!1;if("object"===t.type(arguments[0])?(n=arguments[0],r=arguments[1],o="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],s=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)a.options[n]=s;else if("multiple"===o)t.each(n,(function(t,e){a.options[t]=e}));else if("responsive"===o)for(i in s)if("array"!==t.type(a.options.responsive))a.options.responsive=[s[i]];else{for(e=a.options.responsive.length-1;e>=0;)a.options.responsive[e].breakpoint===s[i].breakpoint&&a.options.responsive.splice(e,1),e--;a.options.responsive.push(s[i])}r&&(a.unload(),a.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,i,n,s,o=this;if(i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode){var a=o.options.slidesToShow%2==0?1:0;e=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e+a,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=o.options.slidesToShow+t,i.slice(n-e+1+a,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(s=o.slideCount%o.options.slidesToShow,n=!0===o.options.infinite?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(n-(o.options.slidesToShow-s),n+s).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(i=null,s.slideCount>s.options.slidesToShow)){for(n=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-n;e-=1)i=e-1,t(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<n+s.slideCount;e+=1)i=e,t(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).attr("id","")}))}},e.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),s=parseInt(n.attr("data-slick-index"));s||(s=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(s,!1,!0):i.slideHandler(s)}
35,e.prototype.slideHandler=function(t,e,i){var n,s,o,a,r,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),n=t,l=c.getLeft(n),a=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?a:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(a,(function(){c.postSlide(n)})):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(a,(function(){c.postSlide(n)})):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),s=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,s]),o=c.currentSlide,c.currentSlide=s,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(r=(r=c.getNavTarget()).slick("getSlick")).slideCount<=r.options.slidesToShow&&r.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(o),c.fadeSlide(s,(function(){c.postSlide(s)}))):c.postSlide(s),void c.animateHeight();!0!==i?c.animateSlide(l,(function(){c.postSlide(s)})):c.postSlide(s)}},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,s=this;return t=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,i=Math.atan2(e,t),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?!1===s.options.rtl?"left":"right":n>=135&&n<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,s,o,a,r=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!r.dragging||r.scrolling||o&&1!==o.length)&&(e=r.getLeft(r.currentSlide),r.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,r.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curX-r.touchObject.startX,2))),a=Math.round(Math.sqrt(Math.pow(r.touchObject.curY-r.touchObject.startY,2))),!r.options.verticalSwiping&&!r.swiping&&a>4?(r.scrolling=!0,!1):(!0===r.options.verticalSwiping&&(r.touchObject.swipeLength=a),i=r.swipeDirection(),void 0!==t.originalEvent&&r.touchObject.swipeLength>4&&(r.swiping=!0,t.preventDefault()),s=(!1===r.options.rtl?1:-1)*(r.touchObject.curX>r.touchObject.startX?1:-1),!0===r.options.verticalSwiping&&(s=r.touchObject.curY>r.touchObject.startY?1:-1),n=r.touchObject.swipeLength,r.touchObject.edgeHit=!1,!1===r.options.infinite&&(0===r.currentSlide&&"right"===i||r.currentSlide>=r.getDotCount()&&"left"===i)&&(n=r.touchObject.swipeLength*r.options.edgeFriction,r.touchObject.edgeHit=!0),!1===r.options.vertical?r.swipeLeft=e+n*s:r.swipeLeft=e+n*(r.$list.height()/r.listWidth)*s,!0===r.options.verticalSwiping&&(r.swipeLeft=e+n*s),!0!==r.options.fade&&!1!==r.options.touchMove&&(!0===r.animating?(r.swipeLeft=null,!1):void r.setCSS(r.swipeLeft))))},e.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
35,e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,s=arguments[0],o=Array.prototype.slice.call(arguments,1),a=n.length;for(t=0;t<a;t++)if("object"==typeof s||void 0===s?n[t].slick=new e(n[t],s):i=n[t].slick[s].apply(n[t].slick,o),void 0!==i)return i;return n}})),function(t){var e={reCalcOnWindowResize:!0,throttleDuration:17},i=function(t){var e=t.find("img").attr("src");t.data("imageSrc",e),n(e,(function(e,i){t.data({imageW:i.width,imageH:i.height}),o(t)}))},n=function(e,i){t("<img />").one("load",(function(){i(null,{width:this.width,height:this.height})})).attr("src",e)},s=function(t,e,i,n,s){var o=Math.floor(e/2),a=(n+1)/2,r=Math.floor(i/t),l=Math.floor(a*r);s&&(l=r-l);var c=l-o,h=r-l,d=e-o;return d>h&&(c-=d-h),0>c&&(c=0),-100*c/e+"%"},o=function(t){var e=t.data("imageW"),n=t.data("imageH"),o=t.data("imageSrc");if(!e&&!n&&!o)return i(t);var a=t.width(),r=t.height(),l=parseFloat(t.data("focusX")),c=parseFloat(t.data("focusY")),h=t.find("img").first(),d=0,u=0;if(!(a>0&&r>0&&e>0&&n>0))return!1;var p=e/a,f=n/r;h.css({"max-width":"","max-height":""}),e>a&&n>r&&h.css(p>f?"max-height":"max-width","100%"),p>f?d=s(f,a,e,l):f>p&&(u=s(p,r,n,c,!0)),h.css({top:u,left:d})},a=t(window),r=function(t,e){var i=e.throttleDuration?function(t,e){var i=!1;return function(){var n=Array.prototype.slice.call(arguments,0);return!i&&(i=!0,void setTimeout((function(){i=!1,t.apply(null,n)}),e))}}((function(){o(t)}),e.throttleDuration):function(){o(t)},n=!1;return o(t),{adjustFocus:function(){return o(t)},windowOn:function(){return n?void 0:(a.on("resize",i),n=!0)},windowOff:function(){return n?(a.off("resize",i),n=!1,!0):void 0}}};t.fn.focusPoint=function(i){if("string"==typeof i)return this.each((function(){t(this).data("focusPoint")[i]()}));var n=t.extend({},e,i);return this.each((function(){var e=t(this),i=r(e,n);e.data("focusPoint")&&e.data("focusPoint").windowOff(),e.data("focusPoint",i),n.reCalcOnWindowResize&&i.windowOn()}))},t.fn.adjustFocus=function(){return this.each((function(){o(t(this))}))}}(jQuery),
36/*!
37	Colorbox 1.6.4
38	license: MIT
39	http://www.jacklmoore.com/colorbox
40*/
41function(t,e,i){function n(i,n,s){var o=e.createElement(i);return n&&(o.id=Q+n),s&&(o.style.cssText=s),t(o)}function s(){return i.innerHeight?i.innerHeight:t(i).height()}function o(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(void 0!==(n=t(this.el).attr("data-cbox-"+e))?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function a(t){var e=T.length,i=(F+t)%e;return 0>i?e+i:i}function r(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():s())/100:1)*parseInt(t,10))}function l(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function c(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function h(t){"contains"in _[0]&&!_[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),_.focus())}function d(t){d.str!==t&&(_.add(v).removeClass(d.str).addClass(t),d.str=t)}function u(i){t(e).trigger(i),at.triggerHandler(i)}function p(i){var s;if(!V){if(s=t(i).data(K),function(e){F=0,e&&!1!==e&&"nofollow"!==e?(T=t("."+J).filter((function(){return new o(this,t.data(this,K)).get("rel")===e})),-1===(F=T.index($.el))&&(T=T.add($.el),F=T.length-1)):T=t($.el)}(($=new o(i,s)).get("rel")),!Y){Y=Z=!0,d($.get("className")),_.css({visibility:"hidden",display:"block",opacity:""}),C=n(rt,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(C),B=w.height()+S.height()+b.outerHeight(!0)-b.height(),R=x.width()+k.width()+b.outerWidth(!0)-b.width(),H=C.outerHeight(!0),j=C.outerWidth(!0);var a=r($.get("initialWidth"),"x"),l=r($.get("initialHeight"),"y"),c=$.get("maxWidth"),p=$.get("maxHeight");$.w=Math.max((!1!==c?Math.min(a,r(c,"x")):a)-j-R,0),$.h=Math.max((!1!==p?Math.min(l,r(p,"y")):l)-H-B,0),C.css({width:"",height:$.h}),U.position(),u(tt),$.get("onOpen"),N.add(P).hide(),_.focus(),$.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",h,!0),at.one(st,(function(){e.removeEventListener("focus",h,!0)}))),$.get("returnFocus")&&at.one(st,(function(){t($.el).focus()}))}var f=parseFloat($.get("opacity"));
41v.css({opacity:f==f?f:"",cursor:$.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),$.get("closeButton")?z.html($.get("close")).appendTo(b):z.appendTo("<div/>"),g()}}function f(){_||(G=!1,E=t(i),_=n(rt).attr({id:K,class:!1===t.support.opacity?Q+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(rt,"Overlay").hide(),L=t([n(rt,"LoadingOverlay")[0],n(rt,"LoadingGraphic")[0]]),y=n(rt,"Wrapper"),b=n(rt,"Content").append(P=n(rt,"Title"),D=n(rt,"Current"),I=t('<button type="button"/>').attr({id:Q+"Previous"}),O=t('<button type="button"/>').attr({id:Q+"Next"}),A=t('<button type="button"/>').attr({id:Q+"Slideshow"}),L),z=t('<button type="button"/>').attr({id:Q+"Close"}),y.append(n(rt).append(n(rt,"TopLeft"),w=n(rt,"TopCenter"),n(rt,"TopRight")),n(rt,!1,"clear:left").append(x=n(rt,"MiddleLeft"),b,k=n(rt,"MiddleRight")),n(rt,!1,"clear:left").append(n(rt,"BottomLeft"),S=n(rt,"BottomCenter"),n(rt,"BottomRight"))).find("div div").css({float:"left"}),M=n(rt,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),N=O.add(I).add(D).add(A)),e.body&&!_.parent().length&&t(e.body).append(v,_.append(y,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),p(this))}return!!_&&(G||(G=!0,O.click((function(){U.next()})),I.click((function(){U.prev()})),z.click((function(){U.close()})),v.click((function(){$.get("overlayClose")&&U.close()})),t(e).bind("keydown."+Q,(function(t){var e=t.keyCode;Y&&$.get("escKey")&&27===e&&(t.preventDefault(),U.close()),Y&&$.get("arrowKey")&&T[1]&&!t.altKey&&(37===e?(t.preventDefault(),I.click()):39===e&&(t.preventDefault(),O.click()))})),t.isFunction(t.fn.on)?t(e).on("click."+Q,"."+J,i):t("."+J).live("click."+Q,i)),!0)}function g(){var e,s,o,a=U.prep,h=++lt;if(Z=!0,W=!1,u(ot),u(et),$.get("onLoad"),$.h=$.get("height")?r($.get("height"),"y")-H-B:$.get("innerHeight")&&r($.get("innerHeight"),"y"),$.w=$.get("width")?r($.get("width"),"x")-j-R:$.get("innerWidth")&&r($.get("innerWidth"),"x"),$.mw=$.w,$.mh=$.h,$.get("maxWidth")&&($.mw=r($.get("maxWidth"),"x")-j-R,$.mw=$.w&&$.w<$.mw?$.w:$.mw),$.get("maxHeight")&&($.mh=r($.get("maxHeight"),"y")-H-B,$.mh=$.h&&$.h<$.mh?$.h:$.mh),e=$.get("href"),q=setTimeout((function(){L.show()}),100),$.get("inline")){var d=t(e).eq(0);o=t("<div>").hide().insertBefore(d),at.one(ot,(function(){o.replaceWith(d)})),a(d)}else $.get("iframe")?a(" "):$.get("html")?a($.get("html")):l($,e)?(e=c($,e),W=$.get("createImg"),t(W).addClass(Q+"Photo").bind("error."+Q,(function(){a(n(rt,"Error").html($.get("imgError")))})).one("load",(function(){h===lt&&setTimeout((function(){var e;$.get("retinaImage")&&i.devicePixelRatio>1&&(W.height=W.height/i.devicePixelRatio,W.width=W.width/i.devicePixelRatio),$.get("scalePhotos")&&(s=function(){W.height-=W.height*e,W.width-=W.width*e},$.mw&&W.width>$.mw&&(e=(W.width-$.mw)/W.width,s()),$.mh&&W.height>$.mh&&(e=(W.height-$.mh)/W.height,s())),$.h&&(W.style.marginTop=Math.max($.mh-W.height,0)/2+"px"),T[1]&&($.get("loop")||T[F+1])&&(W.style.cursor="pointer",t(W).bind("click."+Q,(function(){U.next()}))),W.style.width=W.width+"px",W.style.height=W.height+"px",a(W)}),1)})),W.src=e):e&&M.load(e,$.get("data"),(function(e,i){h===lt&&a("error"===i?n(rt,"Error").html($.get("xhrError")):t(this).contents())}))}var v,_,y,b,w,x,k,S,T,E,C,M,L,P,D,A,O,I,z,N,$,B,R,H,j,F,W,Y,Z,V,q,U,G,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,(function(t,i){e[t]=i})),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,(function(t,e){i[t]=e})),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},K="colorbox",Q="cbox",J=Q+"Element",tt=Q+"_open",et=Q+"_load",it=Q+"_complete",nt=Q+"_cleanup",st=Q+"_closed",ot=Q+"_purge",at=t("<a/>"),rt="div",lt=0,ct={},ht=function(){function t(){clearTimeout(a)}function e(){($.get("loop")||T[F+1])&&(t(),a=setTimeout(U.next,$.get("slideshowSpeed")))}function i(){A.html($.get("slideshowStop")).unbind(l).one(l,n),at.bind(it,e).bind(et,t),_.removeClass(r+"off").addClass(r+"on")}function n(){t(),at.unbind(it,e).unbind(et,t),A.html($.get("slideshowStart")).unbind(l).one(l,(function(){U.next(),i()})),_.removeClass(r+"on").addClass(r+"off")}function s(){o=!1,A.hide(),t(),at.unbind(it,e).unbind(et,t),_.removeClass(r+"off "+r+"on")}var o,a,r=Q+"Slideshow_",l="click."+Q;return function(){o?$.get("slideshow")||(at.unbind(nt,s),s()):$.get("slideshow")&&T[1]&&(o=!0,at.one(nt,s),$.get("slideshowAuto")?i():n(),A.show())}}();t[K]||(t(f),U=t.fn[K]=t[K]=function(e,i){var n=this;return e=e||{},t.isFunction(n)&&(n=t("<a/>"),e.open=!0),n[0]?(f(),m()&&(i&&(e.onComplete=i),n.each((function(){var i=t.data(this,K)||{};t.data(this,K,t.extend(i,e))})).addClass(J),new o(n[0],e).get("open")&&p(n[0])),n):n},U.position=function(e,i){function n(){w[0].style.width=S[0].style.width=b[0].style.width=parseInt(_[0].style.width,10)-R+"px",b[0].style.height=x[0].style.height=k[0].style.height=parseInt(_[0].style.height,10)-B+"px"}var o,a,l,c=0,h=0,d=_.offset();if(E.unbind("resize."+Q),_.css({top:-9e4,left:-9e4}),a=E.scrollTop(),l=E.scrollLeft(),$.get("fixed")?(d.top-=a,d.left-=l,_.css({position:"fixed"})):(c=a,h=l,_.css({position:"absolute"})),h+=!1!==$.get("right")?Math.max(E.width()-$.w-j-R-r($.get("right"),"x"),0):!1!==$.get("left")?r($.get("left"),"x"):Math.round(Math.max(E.width()-$.w-j-R,0)/2),c+=!1!==$.get("bottom")?Math.max(s()-$.h-H-B-r($.get("bottom"),"y"),0):!1!==$.get("top")?r($.get("top"),"y"):Math.round(Math.max(s()-$.h-H-B,0)/2),_.css({top:d.top,left
41:d.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",o={width:$.w+j+R,height:$.h+H+B,top:c,left:h},e){var u=0;t.each(o,(function(t){return o[t]!==ct[t]?void(u=e):void 0})),e=u}ct=o,e||_.css(o),_.dequeue().animate(o,{duration:e||0,complete:function(){n(),Z=!1,y[0].style.width=$.w+j+R+"px",y[0].style.height=$.h+H+B+"px",$.get("reposition")&&setTimeout((function(){E.bind("resize."+Q,U.position)}),1),t.isFunction(i)&&i()},step:n})},U.resize=function(t){var e;Y&&((t=t||{}).width&&($.w=r(t.width,"x")-j-R),t.innerWidth&&($.w=r(t.innerWidth,"x")),C.css({width:$.w}),t.height&&($.h=r(t.height,"y")-H-B),t.innerHeight&&($.h=r(t.innerHeight,"y")),t.innerHeight||t.height||(e=C.scrollTop(),C.css({height:"auto"}),$.h=C.height()),C.css({height:$.h}),e&&C.scrollTop(e),U.position("none"===$.get("transition")?0:$.get("speed")))},U.prep=function(i){if(Y){var s,r="none"===$.get("transition")?0:$.get("speed");C.remove(),(C=n(rt,"LoadedContent").append(i)).hide().appendTo(M.show()).css({width:($.w=$.w||C.width(),$.w=$.mw&&$.mw<$.w?$.mw:$.w,$.w),overflow:$.get("scrolling")?"auto":"hidden"}).css({height:($.h=$.h||C.height(),$.h=$.mh&&$.mh<$.h?$.mh:$.h,$.h)}).prependTo(b),M.hide(),t(W).css({float:"none"}),d($.get("className")),s=function(){function i(){!1===t.support.opacity&&_[0].style.removeAttribute("filter")}var n,s,h=T.length;Y&&(s=function(){clearTimeout(q),L.hide(),u(it),$.get("onComplete")},P.html($.get("title")).show(),C.show(),h>1?("string"==typeof $.get("current")&&D.html($.get("current").replace("{current}",F+1).replace("{total}",h)).show(),O[$.get("loop")||h-1>F?"show":"hide"]().html($.get("next")),I[$.get("loop")||F?"show":"hide"]().html($.get("previous")),ht(),$.get("preloading")&&t.each([a(-1),a(1)],(function(){var i=T[this],n=new o(i,t.data(i,K)),s=n.get("href");s&&l(n,s)&&(s=c(n,s),e.createElement("img").src=s)}))):N.hide(),$.get("iframe")?(n=$.get("createIframe"),$.get("scrolling")||(n.scrolling="no"),t(n).attr({src:$.get("href"),class:Q+"Iframe"}).one("load",s).appendTo(C),at.one(ot,(function(){n.src="//about:blank"})),$.get("fastIframe")&&t(n).trigger("load")):s(),"fade"===$.get("transition")?_.fadeTo(r,1,i):i())},"fade"===$.get("transition")?_.fadeTo(r,0,(function(){U.position(0,s)})):U.position(r,s)}},U.next=function(){!Z&&T[1]&&($.get("loop")||T[F+1])&&(F=a(1),p(T[F]
41))},U.prev=function(){!Z&&T[1]&&($.get("loop")||F)&&(F=a(-1),p(T[F]))},U.close=function(){Y&&!V&&(V=!0,Y=!1,u(nt),$.get("onCleanup"),E.unbind("."+Q),v.fadeTo($.get("fadeOut")||0,0),_.stop().fadeTo($.get("fadeOut")||0,0,(function(){_.hide(),v.hide(),u(ot),C.remove(),setTimeout((function(){V=!1,u(st),$.get("onClosed")}),1)})))},U.remove=function(){_&&(_.stop(),t[K].close(),_.stop(!1,!0).remove(),v.remove(),V=!1,_=null,t("."+J).removeData(K).removeClass(J),t(e).unbind("click."+Q).unbind("keydown."+Q))},U.element=function(){return t($.el)},U.settings=X)}(jQuery,document,window),jQuery.extend(jQuery.colorbox.settings,{current:"Bild {current} von {total}",previous:"Zurück",next:"Vor",close:"Schließen",xhrError:"Dieser Inhalt konnte nicht geladen werden.",imgError:"Dieses Bild konnte nicht geladen werden.",slideshowStart:"Slideshow starten",slideshowStop:"Slideshow anhalten"}),function(){"use strict";const t=new class{constructor(){this.events={}}on(t,e){this.events[t]||(this.events[t]=[]),this.events[t].push(e)}off(t,e){this.events[t]&&(this.events[t]=this.events[t].filter((t=>t!==e)))}emit(t,...e){this.events[t]&&setTimeout((()=>{this.events[t].forEach((t=>{t(...e)}))}),0)}};function e(t){console.log("entered"),t.stopPropagation(),t.preventDefault(),this.classList.add("open")}function i(t){this.classList.toggle("force-open"),t.stopPropagation(),t.preventDefault()}function n(t){t.stopPropagation(),t.preventDefault(),this.classList.remove("open")}const s=function(){document.querySelectorAll(".shapehub-view [data-copyright]").forEach((function(t){if(t.initialized)return;let s=t.dataset.copyright;if(t.initialized=!0,!s)return;s=function(t,e){const i=(new DOMParser).parseFromString(t,"text/html"),n=i.getElementsByTagName("a");for(const t of n)t.setAttribute("tabindex",e);return n.length>0&&i.body?i.body.innerHTML:n.length>0&&i.documentElement?(new XMLSerializer).serializeToString(i.documentElement):t}(s,"-1");let o=t.querySelector("div.shapehub-copyright-button");if(!o){const e=document.createElement("P");e.innerHTML=s,o=document.createElement("DIV"),o.className="shapehub-copyright-button",o.append(e),t.append(o)}o.addEventListener("mouseenter",e),o.addEventListener("click",i),o.addEventListener("mouseleave",n)}))};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",s):s(),t.on("glide.mounted",s);var a,r={exports:{}},l=(a||(a=1,function(t){var e="1.9.4";function i(t){var e,i,n,s;for(i=1,n=arguments.length;i<n;i++)for(e in s=arguments[i])t[e]=s[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function s(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var o=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function r(t,e,i){var n,s,o,a;return a=function(){n=!1,s&&(o.apply(i,s),s=!1)},o=function(){n?s=arguments:(t.apply(i,arguments),setTimeout(a,e),n=!0)},o}function l(t,e,i){var n=e[1],s=e[0],o=n-s;return t===n&&i?t:((t-s)%o+o)%o+s}function c(){return!1}function h(t,e){if(!1===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return d(t).split(/\s+/)}function p(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function f(t,e,i){var n=[];for(var s in t)n.push(encodeURIComponent(i?s.toUpperCase():s)+"="+encodeURIComponent(t[s]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function _(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function x(t){var e=+new Date,i=Math.max(0,16-(e-w));return w=e+i,window.setTimeout(t,i)}var k=window.requestAnimationFrame||b("RequestAnimationFrame")||x,S=window.cancelAnimationFrame||b("C
41ancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function T(t,e,i){if(!i||k!==x)return k.call(window,s(t,e));t.call(e)}function E(t){t&&S.call(window,t)}var C={__proto__:null,extend:i,create:n,bind:s,get lastId(){return o},stamp:a,throttle:r,wrapNum:l,falseFn:c,formatNum:h,trim:d,splitWords:u,setOptions:p,getParamString:f,template:g,isArray:v,indexOf:_,emptyImageUrl:y,requestFn:k,cancelFn:S,requestAnimFrame:T,cancelAnimFrame:E};function M(){}function P(t){if(!(typeof L>"u")&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}M.extend=function(t){var e=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},s=e.__super__=this.prototype,o=n(s);for(var a in o.constructor=e,e.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&i(e,t.statics),t.includes&&(P(t.includes),i.apply(null,[o].concat(t.includes))),i(o,t),delete o.statics,delete o.includes,o.options&&(o.options=s.options?n(s.options):{},i(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){s.callInitHooks&&s.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},e},M.include=function(t){var e=this.prototype.options;return i(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},M.mergeOptions=function(t){return i(this.prototype.options,t),this},M.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var D={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var s=0,o=(t=u(t)).length;s<o;s++)this._on(t[s],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=u(t);for(var s=1===arguments.length,o=0,a=t.length;o<a;o++)s?this._off(t[o]):this._off(t[o],e,i)}else delete this._events;return this},_on:function(t,e,i,n){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var s={fn:e,ctx:i};n&&(s.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(s)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var n,s,o;if(this._events&&(n=this._events[t])){if(1===arguments.length){if(this._firingCount)for(s=0,o=n.length;s<o;s++)n[s].fn=c;return void delete this._events[t]}if("function"!=typeof e)return void console.warn("wrong listener type: "+typeof e);var a=this._listens(t,e,i);if(!1!==a){var r=n[a];this._firingCount&&(r.fn=c,this._events[t]=n=n.slice()),n.splice(a,1)}}},fire:function(t,e,n){if(!this.listens(t,n))return this;var s=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,r=o.length;a<r;a++){var l=o[a],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,s)}this._firingCount--}}return n&&this._propagateEvent(s),this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var s=e;"function"!=typeof e&&(n=!!e,s=void 0,i=void 0);var o=this._events&&this._events[t];if(o&&o.length&&!1!==this._listens(t,s,i))return!0;if(n)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,i,n))return!0;return!1},_listens:function(t,e,i){if(!this._events)return!1;var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var s=0,o=n.length;s<o;s++)if(n[s].fn===e&&n[s].ctx===i)return s;return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var s=0,o=(t=u(t)).length;s<o;s++)this._on(t[s],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};D.addEventListener=D.on,D.removeEventListener=D.clearAllEventListeners=D.off,D.addOneTimeEventListener=D.once,D.fireEvent=D.fire,D.hasEventListeners=D.listens;var A=M.extend(D);function O(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var I=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function z(t,e,i){return t instanceof O?t:v(t)?new O(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new O(t.x,t.y):new O(t,e,i)}function N(t,e){if(t)for(var i=e?[t,e]:t,n=0,s=i.length;n<s;n++)this.extend(i[n])}function $(t,e){return!t||t instanceof N?t:new N(t,e)}function B(t,e){if(t)for(var i=e?[t,e]:t,n=0,s=i.length;n<s;n++)this.extend(i[n])}function R(t,e){return t instanceof B?t:new B(t,e)}
vendor: 4,322 bytes, line 41
41function H(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function j(t,e,i){return t instanceof H?t:v(t)&&"object"!=typeof t[0]?3===t.length?new H(t[0],t[1],t[2]):2===t.length?new H(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new H(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new H(t,e,i)}O.prototype={clone:function(){return new O(this.x,this.y)},add:function(t){return this.clone()._add(z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(z(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new O(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new O(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=I(this.x),this.y=I(this.y),this},distanceTo:function(t){var e=(t=z(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=z(t)).x===this.x&&t.y===this.y},contains:function(t){return t=z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}},N.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof O||"number"==typeof t[0]||"x"in t)e=i=z(t);else if(e=(t=$(t)).min,i=t.max,!e||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone()),this},getCenter:function(t){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof O?z(t):$(t))instanceof N?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=$(t);var e=this.min,i=this.max,n=t.min,s=t.max,o=s.x>=e.x&&n.x<=i.x,a=s.y>=e.y&&n.y<=i.y;return o&&a},overlaps:function(t){t=$(t);var e=this.min,i=this.max,n=t.min,s=t.max,o=s.x>e.x&&n.x<i.x,a=s.y>e.y&&n.y<i.y;return o&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,s=Math.abs(e.y-i.y)*t;return $(z(e.x-n,e.y-s),z(i.x+n,i.y+s))},equals:function(t){return!!t&&(t=$(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},B.prototype={extend:function(t){var e,i,n=this._southWest,s=this._northEast;if(t instanceof H)e=t,i=t;else{if(!(t instanceof B))return t?this.extend(j(t)||R(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||s?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),s.lat=Math.max(i.lat,s.lat),s.lng=Math.max(i.lng,s.lng)):(this._southWest=new H(e.lat,e.lng),this._northEast=new H(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,s=Math.abs(e.lng-i.lng)*t;return new B(new H(e.lat-n,e.lng-s),new H(i.lat+n,i.lng+s))},getCenter:function(){return new H((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,435 bytes, line 41
41,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof H||"lat"in t?j(t):R(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof B?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=s.lat&&e.lng>=n.lng&&i.lng<=s.lng},intersects:function(t){t=R(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),o=s.lat>=e.lat&&n.lat<=i.lat,a=s.lng>=e.lng&&n.lng<=i.lng;return o&&a},overlaps:function(t){t=R(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),o=s.lat>e.lat&&n.lat<i.lat,a=s.lng>e.lng&&n.lng<i.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=R(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},H.prototype={equals:function(t,e){return!!t&&(t=j(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+h(this.lat,t)+", "+h(this.lng,t)+")"},distanceTo:function(t){return Y.distance(this,j(t))},wrap:function(){return Y.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return R([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new H(this.lat,this.lng,this.alt)}};var F,W={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new N(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new H(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,s=e.lng-i.lng;if(0===n&&0===s)return t;
vendor: 98,778 bytes, line 41
41var o=t.getSouthWest(),a=t.getNorthEast();return new B(new H(o.lat-n,o.lng-s),new H(a.lat-n,a.lng-s))}},Y=i({},W,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,s=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),r=o*o+Math.cos(n)*Math.cos(s)*a*a,l=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r));return this.R*l}}),Z=6378137,V={R:Z,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=Math.sin(n*e);return new O(this.R*t.lng*e,this.R*Math.log((1+s)/(1-s))/2)},unproject:function(t){var e=180/Math.PI;return new H((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(F=Z*Math.PI,new N([-F,-F],[F,F]))};function q(t,e,i,n){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function U(t,e,i,n){return new q(t,e,i,n)}q.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new O((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var G=i({},Y,{code:"EPSG:3857",projection:V,transformation:function(){var t=.5/(Math.PI*V.R);return U(t,.5,-t,.5)}()}),X=i({},G,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Q(t,e){var i,n,s,o,a,r,l="";for(i=0,s=t.length;i<s;i++){for(n=0,o=(a=t[i]).length;n<o;n++)l+=(n?"L":"M")+(r=a[n]).x+" "+r.y;l+=e?$t.svg?"z":"x":""}return l||"M0 0"}var J=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),nt=Nt("webkit"),st=Nt("android"),ot=Nt("android 2")||Nt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),rt=st&&Nt("Google")&&at<537&&!("AudioNode"in window),lt=!!window.opera,ct=!it&&Nt("chrome"),ht=Nt("gecko")&&!nt&&!lt&&!tt,dt=!ct&&Nt("safari"),ut=Nt("phantom"),pt="OTransition"in J,ft=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in J,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,vt="MozPerspective"in J,_t=!window.L_DISABLE_3D&&(mt||gt||vt)&&!pt&&!ut,yt=typeof orientation<"u"||Nt("mobile"),bt=yt&&nt,wt=yt&&gt,xt=!window.PointerEvent&&window.MSPointerEvent,kt=!(!window.PointerEvent&&!xt),St="ontouchstart"in window||!!window.TouchEvent,Tt=!window.L_NO_TOUCH&&(St||kt),Et=yt&&lt,Ct=yt&&ht,Mt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Lt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch{}return t}(),Pt=!!document.createElement("canvas").getContext,Dt=!(!document.createElementNS||!K("svg").createSVGRect),At=!!Dt&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(t.firstChild&&t.firstChild.namespaceURI)}(),Ot=!Dt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch{return!1}}(),It=0===navigator.platform.indexOf("Mac"),zt=0===navigator.platform.indexOf("Linux");function Nt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var $t={ie:tt,ielt9:et,edge:it,webkit:nt,android:st,android23:ot,androidStock:rt,opera:lt,chrome:ct,gecko:ht,safari:dt,phantom:ut,opera12:pt,win:ft,ie3d:mt,webkit3d:gt,gecko3d:vt,any3d:_t,mobile:yt,mobileWebkit:bt,mobileWebkit3d:wt,msPointer:xt,pointer:kt,touch:Tt,touchNative:St,mobileOpera:Et,mobileGecko:Ct,retina:Mt,passiveEvents:Lt,canvas:Pt,svg:Dt,vml:Ot,inlineSvg:At,mac:It,linux:zt},Bt=$t.msPointer?"MSPointerDown":"pointerdown",Rt=$t.msPointer?"MSPointerMove":"pointermove",Ht=$t.msPointer?"MSPointerUp":"pointerup",jt=$t.msPointer?"MSPointerCancel":"pointercancel",Ft={touchstart:Bt,touchmove:Rt,touchend:Ht,touchcancel:jt},Wt={touchstart:Jt,touchmove:Qt,touchend:Qt,touchcancel:Qt},Yt={},Zt=!1;function Vt(t,e,i){return"touchstart"===e&&Kt(),Wt[e]?(i=Wt[e].bind(this,i),t.addEventListener(Ft[e],i,!1),i):(console.warn("wrong event specified:",e),c)}function qt(t,e,i){Ft[e]?t.removeEventListener(Ft[e],i,!1):console.warn("wrong event specified:",e)}function Ut(t){Yt[t.pointerId]=t}function Gt(t){Yt[t.pointerId]&&(Yt[t.pointerId]=t)}function Xt(t){delete Yt[t.pointerId]}function Kt(){Zt||(document.addEventListener(Bt,Ut,!0),document.addEventListener(Rt,Gt,!0),document.addEventListener(Ht,Xt,!0),document.addEventListener(jt,Xt,!0),Zt=!0)}function Qt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Yt)e.touches.push(Yt[i]);e.changedTouches=[e],t(e)}}function Jt(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ue(e),Qt(t,e)}function te(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var ee=200;function ie(t,e){t.addEventListener("dblclick",e);var i,n=0;function s(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var s=Xe(t);if(!s.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||s.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var o=Date.now();o-n<=ee?2==++i&&e(te(t)):i=1,n=o}}}else i=t.detail}return t.addEventListener("click",s),{dblclick:e,simDblclick:s}}function ne(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var se,oe,ae,re,le,ce=Ee(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),he=Ee(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===he||"OTransition"===he?he+"End":"transitionend";function ue(t){return"string"==typeof t?document.getElementById(t):t}function pe(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function fe(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function me(t){var e=t.parentNode;e&&e.removeChild(t)}function ge(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ve(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function _e(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ye(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=ke(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function be(t,e){if(void 0!==t.classList)for(var i=u(e),n=0,s=i.length;n<s;n++)t.classList.add(i[n]);else if(!ye(t,e)){var o=ke(t);xe(t,(o?o+" ":"")+e)}}function we(t,e){void 0!==t.classList?t.classList.remove(e):xe(t,d((" "+ke(t)+" ").replace(" "+e+" "," ")))}function xe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ke(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Se(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Te(t,e)}function Te(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch{if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function Ee(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function Ce(t,e,i){var n=e||new O(0,0);t.style[ce]=($t.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function Me(t,e){t._leaflet_pos=e,$t.any3d?Ce(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Le(t){return t._leaflet_pos||new O(0,0)}if("onselectstart"in document)se=function(){Be(window,"selectstart",Ue)},oe=function(){He(window,"selectstart",Ue)};else{var Pe=Ee(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);se=function(){if(Pe){var t=document.documentElement.style;ae=t[Pe],t[Pe]="none"}},oe=function(){Pe&&(document.documentElement.style[Pe]=ae,ae=void 0)}}function De(){Be(window,"dragstart",Ue)}function Ae(){He(window,"dragstart",Ue)}function Oe(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Ie(),re=t,le=t.style.outlineStyle,t.style.outlineStyle="none",Be(window,"keydown",Ie))}function Ie(){re&&(re.style.outlineStyle=le,re=void 0,le=void 0,He(window,"keydown",Ie))}function ze(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Ne(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var $e={__proto__:null,TRANSFORM:ce,TRANSITION:he,TRANSITION_END:de,get:ue,getStyle:pe,create:fe,remove:me,empty:ge,toFront:ve,toBack:_e,hasClass:ye,addClass:be,removeClass:we,setClass:xe,getClass:ke,setOpacity:Se,testProp:Ee,setTransform:Ce,setPosition:Me,getPosition:Le,get disableTextSelection(){return se},get enableTextSelection(){return oe},disableImageDrag:De,enableImageDrag:Ae,preventOutline:Oe,restoreOutline:Ie,getSizedParentNode:ze,getScale:Ne};function Be(t,e,i,n){if(e&&"object"==typeof e)for(var s in e)We(t,s,e[s],i);else for(var o=0,a=(e=u(e)).length;o<a;o++)We(t,e[o],i,n);return this}var Re="_leaflet_events";function He(t,e,i,n){if(1===arguments.length)je(t),delete t[Re];else if(e&&"object"==typeof e)for(var s in e)Ye(t,s,e[s],i);else if(e=u(e),2===arguments.length)je(t,(function(t){return-1!==_(e,t)}));else for(var o=0,a=e.length;o<a;o++)Ye(t,e[o],i,n);return this}function je(t,e){for(var i in t[Re]){var n=i.split(/\d/)[0];(!e||e(n))&&Ye(t,n,null,null,i)}}var Fe={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function We(t,e,i,n){var s=e+a(i)+(n?"_"+a(n):"");if(t[Re]&&t[Re][s])return this;var o=function(e){return i.call(n||t,e||window.event)},r=o;!$t.touchNative&&$t.pointer&&0===e.indexOf("touch")?o=Vt(t,e,o):$t.touch&&"dblclick"===e?o=ie(t,o):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Fe[e]||e,o,!!$t.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,ti(t,e)&&r(e)},t.addEventListener(Fe[e],o,!1)):t.addEventListener(e,r,!1):t.attachEvent("on"+e,o),t[Re]=t[Re]||{},t[Re][s]=o}function Ye(t,e,i,n,s){s=s||e+a(i)+(n?"_"+a(n):"");var o=t[Re]&&t[Re][s];if(!o)return this;!$t.touchNative&&$t.pointer&&0===e.indexOf("touch")?qt(t,e,o):$t.touch&&"dblclick"===e?ne(t,o):"removeEventListener"in t?t.removeEventListener(Fe[e]||e,o,!1):t.detachEvent("on"+e,o),t[Re][s]=null}function Ze(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ve(t){return We(t,"wheel",Ze),this}function qe(t){return Be(t,"mousedown touchstart dblclick contextmenu",Ze),t._leaflet_disable_click=!0,this}function Ue(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ge(t){return Ue(t),Ze(t),this}function Xe(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Ke(t,e){if(!e)return new O(t.clientX,t.clientY);var i=Ne(e),n=i.boundingClientRect;return new O((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Qe=$t.linux&&$t.chrome?window.devicePixelRatio:$t.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Je(t){return $t.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Qe:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function ti(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}var ei={__proto__:null,on:Be,off:He,stopPropagation:Ze,disableScrollPropagation:Ve,disableClickPropagation:qe,preventDefault:Ue,stop:Ge,getPropagationPath:Xe,getMousePosition:Ke,getWheelDelta:Je,isExternalTarget:ti,addListener:Be,removeListener:He},ii=A.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Le(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=T(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),Me(this._el,i),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),ni=A.extend({options:{crs:G,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(j(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=he&&$t.any3d&&!$t.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Be(this._proxy,de,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(j(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,n.pan&&n.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||($t.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||($t.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2),o=(t instanceof O?t:this.latLngToContainerPoint(t)).subtract(s).multiplyBy(1-1/n),a=this.containerPointToLatLng(s.add(o));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():R(t);var i=z(e.paddingTopLeft||e.padding||[0,0]),n=z(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,i.add(n));if((s="number"==typeof e.maxZoom?Math.min(e.maxZoom,s):s)===1/0)return{center:t.getCenter(),zoom:s};var o=n.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),s),r=this.project(t.getNorthEast(),s);return{center:this.unproject(a.add(r).divideBy(2).add(o),s),zoom:s}},fitBounds:function(t,e){if(!(t=R(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=z(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ii,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){be(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!$t.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),s=this.project(t),o=this.getSize(),a=this._zoom;t=j(t),e=void 0===e?a:e;var r=Math.max(o.x,o.y),l=r*this.getZoomScale(a,e),c=s.distanceTo(n)||1,h=1.42,d=h*h;function u(t){var e=(l*l-r*r+(t?-1:1)*d*d*c*c)/(2*(t?l:r)*d*c),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return p(t)/f(t)}var g=u(0);function v(t){return r*(f(g)/f(g+h*t))}function _(t){return r*(f(g)*m(g+h*t)-p(g))/d}function y(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),w=(u(1)-g)/h,x=i.duration?1e3*i.duration:1e3*w*.8;function k(){var i=(Date.now()-b)/x,o=y(i)*w;i<=1?(this._flyToFrame=T(k,this),this._move(this.unproject(n.add(s.subtract(n).multiplyBy(_(o)/c)),a),this.getScaleZoom(r/v(o),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),k.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=R(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,R(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=z((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=z(e.paddingBottomRight||e.padding||[0,0]),s=this.project(this.getCenter()),o=this.project(t),a=this.getPixelBounds(),r=$([a.min.add(i),a.max.subtract(n)]),l=r.getSize();if(!r.contains(o)){this._enforcingBounds=!0;var c=o.subtract(r.getCenter()),h=r.extend(o).getSize().subtract(l);s.x+=c.x<0?-h.x:h.x,s.y+=c.y<0?-h.y:h.y,this.panTo(this.unproject(s),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),a=n.divideBy(2).round(),r=o.subtract(a);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=s(this._handleGeolocationResponse,this),n=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new H(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var s=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(s,n.maxZoom):s)}var o={latlng:e,bounds:i,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),me(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)me(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=fe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new B(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=R(t),i=z(i||[0,0]);var n=this.getZoom()||0,s=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),r=t.getSouthEast(),l=this.getSize().subtract(i),c=$(this.project(r,n),this.project(a,n)).getSize(),h=$t.any3d?this.options.zoomSnap:1,d=l.x/c.x,u=l.y/c.y,p=e?Math.max(d,u):Math.min(d,u);return n=this.getScaleZoom(p,n),h&&(n=Math.round(n/(h/100))*(h/100),n=e?Math.ceil(n/h)*h:Math.floor(n/h)*h),Math.max(s,Math.min(o,n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new N(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(j(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(z(t),e)},layerPointToLatLng:function(t){var e=z(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(j(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(j(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(R(t))},distance:function(t,e){return this.options.crs.distance(j(t),j(e))},containerPointToLayerPoint:function(t){return z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(z(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(t)))},mouseEventToContainerPoint:function(t){return Ke(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ue(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Be(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&$t.any3d,be(t,"leaflet-container"+($t.touch?" leaflet-touch":"")+($t.retina?" leaflet-retina":"")+($t.ielt9?" leaflet-oldie":"")+($t.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=pe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Me(this._mapPane,new O(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(be(t.markerPane,"leaflet-zoom-hide"),be(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){Me(this._mapPane,new O(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var s=this._zoom!==e;this._moveStart(s,i)._move(t,e)._moveEnd(s),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var s=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((s||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Me(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?He:Be;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),$t.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],s="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,r=!1;o;){if((i=this._targets[a(o)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){r=!0;break}if(i&&i.listens(e,!0)&&(s&&!ti(o,t)||(n.push(i),s))||o===this._container)break;o=o.parentNode}return!n.length&&!r&&!s&&this.listens(e,!0)&&(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&Oe(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var s=i({},t);s.type="preclick",this._fireDOMEvent(s,s.type,n)}var o=this._findEventTargets(t,e);if(n){for(var a=[],r=0;r<n.length;r++)n[r].listens(e,!0)&&a.push(n[r]);o=a.concat(o)}if(o.length){"contextmenu"===e&&Ue(t);var l=o[0],c={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var h=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=h?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=h?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(r=0;r<o.length;r++)if(o[r].fire(e,c,!0),c.originalEvent._stopped||!1===o[r].options.bubblingMouseEvents&&-1!==_(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Le(this._mapPane)||new O(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return $([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),s=this.getSize().divideBy(2),o=new N(n.subtract(s),n.add(s)),a=this._getBoundsOffset(o,i,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(n.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new N(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=$(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),s=n.min.subtract(t.min),o=n.max.subtract(t.max);return new O(this._rebound(s.x,-o.x),this._rebound(s.y,-o.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=$t.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){we(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=fe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ce,i=this._proxy.style[e];Ce(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){me(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Ce(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),s=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(s)||(T((function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,be(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&we(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function si(t,e){return new ni(t,e)}var oi=M.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return be(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(me(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ai=function(t){return new oi(t)};ni.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=fe("div",e+"control-container",this._container);function n(n,s){var o=e+n+" "+e+s;t[n+s]=fe("div",o,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)me(this._controlCorners[t]);me(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ri=oi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in p(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return oi.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){be(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(be(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):we(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return we(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=fe("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),qe(e),Ve(e);var n=this._section=fe("section",t+"-list");i&&(this._map.on("click",this.collapse,this),Be(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var s=this._layersLink=fe("a",t+"-toggle",e);s.href="#",s.title="Layers",s.setAttribute("role","button"),Be(s,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ue(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=fe("div",t+"-base",n),this._separator=fe("div",t+"-separator",n),this._overlaysList=fe("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(s((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ge(this._baseLayersList),ge(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,s=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,s+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&s>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+a(this),n),this._layerControlInputs.push(e),e.layerId=a(t.layer),Be(e,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var o=document.createElement("span");return i.appendChild(o),o.appendChild(e),o.appendChild(s),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],s=[];this._handlingClick=!0;for(var o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||s.push(e);for(o=0;o<s.length;o++)this._map.hasLayer(s[o])&&this._map.removeLayer(s[o]);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])||this._map.addLayer(n[o]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),s=i.length-1;s>=0;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Be(t,"click",Ue),this.expand();var e=this;setTimeout((function(){He(t,"click",Ue),e._preventClick=!1}))}}),li=function(t,e,i){return new ri(t,e,i)},ci=oi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=fe("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,s){var o=fe("a",i,n);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),qe(o),Be(o,"click",Ge),Be(o,"click",s,this),Be(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";we(this._zoomInButton,e),we(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(be(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(be(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});ni.mergeOptions({zoomControl:!0}),ni.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new ci,this.addControl(this.zoomControl))}));var hi=function(t){return new ci(t)},di=oi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=fe("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=fe("div",e,i)),t.imperial&&(this._iScale=fe("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,s=3.2808399*t;s>5280?(e=s/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(s),this._updateScale(this._iScale,n+" ft",n/s))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),ui=function(t){return new di(t)},pi='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',fi=oi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+($t.inlineSvg?pi+" ":"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=fe("div","leaflet-control-attribution"),qe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});ni.mergeOptions({attributionControl:!0}),ni.addInitHook((function(){this.options.attributionControl&&(new fi).addTo(this)}));var mi=function(t){return new fi(t)};oi.Layers=ri,oi.Zoom=ci,oi.Scale=di,oi.Attribution=fi,ai.layers=li,ai.zoom=hi,ai.scale=ui,ai.attribution=mi;var gi=M.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});gi.addTo=function(t,e){return t.addHandler(e,this),this};var vi={Events:D},_i=$t.touch?"touchstart mousedown":"mousedown",yi=A.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){p(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Be(this._dragStartTarget,_i,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(yi._dragging===this&&this.finishDrag(!0),He(this._dragStartTarget,_i,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ye(this._element,"leaflet-zoom-anim"))){if(t.touches&&1!==t.touches.length)return void(yi._dragging===this&&this.finishDrag());if(!(yi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(yi._dragging=this,this._preventOutline&&Oe(this._element),De(),se(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=ze(this._element);this._startPoint=new O(e.clientX,e.clientY),this._startPos=Le(this._element),this._parentScale=Ne(i);var n="mousedown"===t.type;Be(document,n?"mousemove":"touchmove",this._onMove,this),Be(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1)return void(this._moved=!0);var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new O(e.clientX,e.clientY)._subtract(this._startPoint);!i.x&&!i.y||Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,Ue(t),this._moved||(this.fire("dragstart"),this._moved=!0,be(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),be(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Me(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){we(document.body,"leaflet-dragging"),this._lastTarget&&(we(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),He(document,"mousemove touchmove",this._onMove,this),He(document,"mouseup touchend touchcancel",this._onUp,this),Ae(),oe();var e=this._moved&&this._moving;this._moving=!1,yi._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function bi(t,e,i){var n,s,o,a,r,l,c,h,d,u=[1,4,2,8];for(s=0,c=t.length;s<c;s++)t[s]._code=Oi(t[s],e);for(a=0;a<4;a++){for(h=u[a],n=[],s=0,o=(c=t.length)-1;s<c;o=s++)r=t[s],l=t[o],r._code&h?l._code&h||((d=Ai(l,r,h,e,i))._code=Oi(d,e),n.push(d)):(l._code&h&&((d=Ai(l,r,h,e,i))._code=Oi(d,e),n.push(d)),n.push(r));t=n}return t}function wi(t,e){var i,n,s,o,a,r,l,c,h;if(!t||0===t.length)throw new Error("latlngs not passed");Ni(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=j([0,0]),u=R(t);u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(d=xi(t));var p=t.length,f=[];for(i=0;i<p;i++){var m=j(t[i]);f.push(e.project(j([m.lat-d.lat,m.lng-d.lng])))}for(r=l=c=0,i=0,n=p-1;i<p;n=i++)s=f[i],o=f[n],a=s.y*o.x-o.y*s.x,l+=(s.x+o.x)*a,c+=(s.y+o.y)*a,r+=3*a;h=0===r?f[0]:[l/r,c/r];var g=e.unproject(z(h));return j([g.lat+d.lat,g.lng+d.lng])}function xi(t){for(var e=0,i=0,n=0,s=0;s<t.length;s++){var o=j(t[s]);e+=o.lat,i+=o.lng,n++}return j([e/n,i/n])}var ki,Si={__proto__:null,clipPolygon:bi,polygonCenter:wi,centroid:xi};function Ti(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=Mi(t=Pi(t,i),i)}function Ei(t,e,i){return Math.sqrt(zi(t,e,i,!0))}function Ci(t,e,i){return zi(t,e,i)}function Mi(t,e){var i=t.length,n=new(typeof Uint8Array<"u"?Uint8Array:Array)(i);n[0]=n[i-1]=1,Li(t,n,e,0,i-1);var s,o=[];for(s=0;s<i;s++)n[s]&&o.push(t[s]);return o}function Li(t,e,i,n,s){var o,a,r,l=0;for(a=n+1;a<=s-1;a++)(r=zi(t[a],t[n],t[s],!0))>l&&(o=a,l=r);l>i&&(e[o]=1,Li(t,e,i,n,o),Li(t,e,i,o,s))}function Pi(t,e){for(var i=[t[0]],n=1,s=0,o=t.length;n<o;n++)Ii(t[n],t[s])>e&&(i.push(t[n]),s=n);return s<o-1&&i.push(t[o-1]),i}function Di(t,e,i,n,s){var o,a,r,l=n?ki:Oi(t,i),c=Oi(e,i);for(ki=c;;){if(!(l|c))return[t,e];if(l&c)return!1;r=Oi(a=Ai(t,e,o=l||c,i,s),i),o===l?(t=a,l=r):(e=a,c=r)}}function Ai(t,e,i,n,s){var o,a,r=e.x-t.x,l=e.y-t.y,c=n.min,h=n.max;return 8&i?(o=t.x+r*(h.y-t.y)/l,a=h.y):4&i?(o=t.x+r*(c.y-t.y)/l,a=c.y):2&i?(o=h.x,a=t.y+l*(h.x-t.x)/r):1&i&&(o=c.x,a=t.y+l*(c.x-t.x)/r),new O(o,a,s)}function Oi(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function Ii(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function zi(t,e,i,n){var s,o=e.x,a=e.y,r=i.x-o,l=i.y-a,c=r*r+l*l;return c>0&&((s=((t.x-o)*r+(t.y-a)*l)/c)>1?(o=i.x,a=i.y):s>0&&(o+=r*s,a+=l*s)),r=t.x-o,l=t.y-a,n?r*r+l*l:new O(o,a)}function Ni(t){return!v(t[0])||"object"!=typeof t[0][0]&&typeof t[0][0]<"u"}function $i(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ni(t)}function Bi(t,e){var i,n,s,o,a,r,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");Ni(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=j([0,0]),d=R(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(h=xi(t));var u=t.length,p=[];for(i=0;i<u;i++){var f=j(t[i]);p.push(e.project(j([f.lat-h.lat,f.lng-h.lng])))}for(i=0,n=0;i<u-1;i++)n+=p[i].distanceTo(p[i+1])/2;if(0===n)c=p[0];else for(i=0,o=0;i<u-1;i++)if(a=p[i],r=p[i+1],(o+=s=a.distanceTo(r))>n){l=(o-n)/s,c=[r.x-l*(r.x-a.x),r.y-l*(r.y-a.y)];break}var m=e.unproject(z(c));return j([m.lat+h.lat,m.lng+h.lng])}var Ri={__proto__:null,simplify:Ti,pointToSegmentDistance:Ei,closestPointOnSegment:Ci,clipSegment:Di,_getEdgeIntersection:Ai,_getBitCode:Oi,_sqClosestPointOnSegment:zi,isFlat:Ni,_flat:$i,polylineCenter:Bi},Hi={project:function(t){return new O(t.lng,t.lat)},unproject:function(t){return new H(t.y,t.x)},bounds:new N([-180,-90],[180,90])},ji={R:6378137,R_MINOR:6356752.314245179,bounds:new N([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,s=this.R_MINOR/i,o=Math.sqrt(1-s*s),a=o*Math.sin(n),r=Math.tan(Math.PI/4-n/2)/Math.pow((1-a)/(1+a),o/2);return n=-i*Math.log(Math.max(r,1e-10)),new O(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,s=this.R_MINOR/n,o=Math.sqrt(1-s*s),a=Math.exp(-t.y/n),r=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=o*Math.sin(r),e=Math.pow((1-e)/(1+e),o/2),r+=c=Math.PI/2-2*Math.atan(a*e)-r;return new H(r*i,t.x*i/n)}},Fi={__proto__:null,LonLat:Hi,Mercator:ji,SphericalMercator:V},Wi=i({},Y,{code:"EPSG:3395",projection:ji,transformation:function(){var t=.5/(Math.PI*ji.R);return U(t,.5,-t,.5)}()}),Yi=i({},Y,{code:"EPSG:4326",projection:Hi,transformation:U(1/180,1,-1/180,.5)}),Zi=i({},W,{projection:Hi,transformation:U(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});W.Earth=Y,W.EPSG3395=Wi,W.EPSG3857=G,W.EPSG900913=X,W.EPSG4326=Yi,W.Simple=Zi;var Vi=A.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});ni.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return a(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?v(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var s=this._zoomBoundLayers[n].options;t=void 0===s.minZoom?t:Math.min(t,s.minZoom),e=void 0===s.maxZoom?e:Math.max(e,s.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var qi=Vi.extend({initialize:function(t,e){var i,n;if(p(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}}),Ui=function(t,e){return new qi(t,e)},Gi=qi.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),qi.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),qi.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new B;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Xi=function(t,e){return new Gi(t,e)},Ki=M.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var s=z(n),o=z("shadow"===e&&i.shadowAnchor||i.iconAnchor||s&&s.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return $t.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Qi(t){return new Ki(t)}var Ji=Ki.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Ji.imagePath&&(Ji.imagePath=this._detectIconPath()),(this.options.imagePath||Ji.imagePath)+Ki.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=fe("div","leaflet-default-icon-path",document.body),e=pe(t,"background-image")||pe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}}),tn=gi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new yi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),be(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&we(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,o=Le(e._icon),a=i.getPixelBounds(),r=i.getPixelOrigin(),l=$(a.min._subtract(r).add(s),a.max._subtract(r).subtract(s));if(!l.contains(o)){var c=z((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(n);i.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Me(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=T(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=T(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=Le(e._icon),s=e._map.layerPointToLatLng(n);i&&Me(i,n),e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),en=Vi.extend({options:{icon:new Ji,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=j(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=j(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),be(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Be(i,"focus",this._panOnFocus,this);var s=t.icon.createShadow(this._shadow),o=!1;s!==this._shadow&&(this._removeShadow(),o=!0),s&&(be(s,e),s.alt=""),this._shadow=s,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),s&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&He(this._icon,"focus",this._panOnFocus,this),me(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&me(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Me(this._icon,t),this._shadow&&Me(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(be(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),tn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new tn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Se(this._icon,t),this._shadow&&Se(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?z(e.iconSize):z(0,0),n=e.iconAnchor?z(e.iconAnchor):z(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function nn(t,e){return new en(t,e)}var sn=Vi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),on=sn.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=j(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=j(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return sn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new N(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function an(t,e){return new on(t,e)}var rn=on.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),p(this,e),this._latlng=j(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new B(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:sn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===Y.distance){var s=Math.PI/180,o=this._mRadius/Y.R/s,a=i.project([e+o,t]),r=i.project([e-o,t]),l=a.add(r).divideBy(2),c=i.unproject(l).lat,h=Math.acos((Math.cos(o*s)-Math.sin(e*s)*Math.sin(c*s))/(Math.cos(e*s)*Math.cos(c*s)))/s;(isNaN(h)||0===h)&&(h=o/Math.cos(Math.PI/180*e)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(h)?0:l.x-i.project([c,t-h]).x,this._radiusY=l.y-a.y}else{var d=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(d).x}this._updateBounds()}});function ln(t,e,i){return new rn(t,e,i)}var cn=sn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,s=null,o=zi,a=0,r=this._parts.length;a<r;a++)for(var l=this._parts[a],c=1,h=l.length;c<h;c++){var d=o(t,e=l[c-1],i=l[c],!0);d<n&&(n=d,s=o(t,e,i))}return s&&(s.distance=Math.sqrt(n)),s},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Bi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=j(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new B,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Ni(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=Ni(t),n=0,s=t.length;n<s;n++)i?(e[n]=j(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new N;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new O(t,t);this._rawPxBounds&&(this._pxBounds=new N([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var n,s,o=t[0]instanceof H,a=t.length;if(o){for(s=[],n=0;n<a;n++)s[n]=this._map.latLngToLayerPoint(t[n]),i.extend(s[n]);e.push(s)}else for(n=0;n<a;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);var e,i,n,s,o,a,r,l=this._parts;for(e=0,n=0,s=this._rings.length;e<s;e++)for(i=0,o=(r=this._rings[e]).length;i<o-1;i++)(a=Di(r[i],r[i+1],t,i,!0))&&(l[n]=l[n]||[],l[n].push(a[0]),(a[1]!==r[i+1]||i===o-2)&&(l[n].push(a[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Ti(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,s,o,a,r,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,o=this._parts.length;i<o;i++)for(n=0,s=(a=(r=this._parts[i]).length)-1;n<a;s=n++)if((e||0!==n)&&Ei(t,r[s],r[n])<=l)return!0;return!1}});function hn(t,e){return new cn(t,e)}cn._flat=$i;var dn=cn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=cn.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof H&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){cn.prototype._setLatLngs.call(this,t),Ni(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ni(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new O(e,e);if(t=new N(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);for(var n,s=0,o=this._rings.length;s<o;s++)(n=bi(this._rings[s],t,!0)).length&&this._parts.push(n)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,s,o,a,r,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(s=0,r=this._parts.length;s<r;s++)for(o=0,a=(l=(e=this._parts[s]).length)-1;o<l;a=o++)i=e[o],n=e[a],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(c=!c);return c||cn.prototype._containsPoint.call(this,t,!0)}});function un(t,e){return new dn(t,e)}var pn=Gi.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,s=v(t)?t:t.features;if(s){for(e=0,i=s.length;e<i;e++)((n=s[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=fn(t,o);return a?(a.feature=wn(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function fn(t,e){var i,n,s,o,a="Feature"===t.type?t.geometry:t,r=a?a.coordinates:null,l=[],c=e&&e.pointToLayer,h=e&&e.coordsToLatLng||gn;if(!r&&!a)return null;switch(a.type){case"Point":return mn(c,t,i=h(r),e);case"MultiPoint":for(s=0,o=r.length;s<o;s++)i=h(r[s]),l.push(mn(c,t,i,e));return new Gi(l);case"LineString":case"MultiLineString":return n=vn(r,"LineString"===a.type?0:1,h),new cn(n,e);case"Polygon":case"MultiPolygon":return n=vn(r,"Polygon"===a.type?1:2,h),new dn(n,e);case"GeometryCollection":for(s=0,o=a.geometries.length;s<o;s++){var d=fn({geometry:a.geometries[s],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new Gi(l);case"FeatureCollection":for(s=0,o=a.features.length;s<o;s++){var u=fn(a.features[s],e);u&&l.push(u)}return new Gi(l);default:throw new Error("Invalid GeoJSON object.")}}function mn(t,e,i,n){return t?t(e,i):new en(i,n&&n.markersInheritOptions&&n)}function gn(t){return new H(t[1],t[0],t[2])}function vn(t,e,i){for(var n,s=[],o=0,a=t.length;o<a;o++)n=e?vn(t[o],e-1,i):(i||gn)(t[o]),s.push(n);return s}function _n(t,e){return void 0!==(t=j(t)).alt?[h(t.lng,e),h(t.lat,e),h(t.alt,e)]:[h(t.lng,e),h(t.lat,e)]}function yn(t,e,i,n){for(var s=[],o=0,a=t.length;o<a;o++)s.push(e?yn(t[o],Ni(t[o])?0:e-1,i,n):_n(t[o],n));return!e&&i&&s.length>0&&s.push(s[0].slice()),s}function bn(t,e){return t.feature?i({},t.feature,{geometry:e}):wn(e)}function wn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var xn={toGeoJSON:function(t){return bn(this,{type:"Point",coordinates:_n(this.getLatLng(),t)})}};function kn(t,e){return new pn(t,e)}en.include(xn),rn.include(xn),on.include(xn),cn.include({toGeoJSON:function(t){var e=!Ni(this._latlngs);return bn(this,{type:(e?"Multi":"")+"LineString",coordinates:yn(this._latlngs,e?1:0,!1,t)})}}),dn.include({toGeoJSON:function(t){var e=!Ni(this._latlngs),i=e&&!Ni(this._latlngs[0]),n=yn(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),bn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),qi.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),bn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var s=e.toGeoJSON(t);if(i)n.push(s.geometry);else{var o=wn(s);"FeatureCollection"===o.type?n.push.apply(n,o.features):n.push(o)}}})),i?bn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Sn=kn,Tn=Vi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=R(e),p(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(be(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){me(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ve(this._image),this},bringToBack:function(){return this._map&&_e(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=R(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:fe("img");be(e,"leaflet-image-layer"),this._zoomAnimated&&be(e,"leaflet-zoom-animated"),this.options.className&&be(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=s(this.fire,this,"load"),e.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Ce(this._image,i,e)},_reset:function(){var t=this._image,e=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();Me(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){Se(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),En=function(t,e,i){return new Tn(t,e,i)},Cn=Tn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:fe("video");if(be(e,"leaflet-image-layer"),this._zoomAnimated&&be(e,"leaflet-zoom-animated"),this.options.className&&be(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=s(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=i.length>0?n:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var r=fe("source");r.src=this._url[a],e.appendChild(r)}}}});function Mn(t,e,i){return new Cn(t,e,i)}var Ln=Tn.extend({_initImage:function(){var t=this._image=this._url;be(t,"leaflet-image-layer"),this._zoomAnimated&&be(t,"leaflet-zoom-animated"),this.options.className&&be(t,this.options.className),t.onselectstart=c,t.onmousemove=c}});function Pn(t,e,i){return new Ln(t,e,i)}var Dn=Vi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof H||v(t))?(this._latlng=j(t),p(this,e)):(p(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Se(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Se(this._container,1),this.bringToFront(),this.options.interactive&&(be(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Se(this._container,0),this._removeTimeout=setTimeout(s(me,void 0,this._container),200)):me(this._container),this.options.interactive&&(we(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=j(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ve(this._container),this},bringToBack:function(){return this._map&&_e(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Gi){e=null;var i=this._source._layers;for(var n in i)if(i[n]._map){e=i[n];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=z(this.options.offset),i=this._getAnchor();this._zoomAnimated?Me(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,s=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=s+"px"}},_getAnchor:function(){return[0,0]}});ni.include({_initOverlay:function(t,e,i,n){var s=e;return s instanceof t||(s=new t(n).setContent(e)),i&&s.setLatLng(i),s}}),Vi.include({_initOverlay:function(t,e,i,n){var s=i;return s instanceof t?(p(s,n),s._source=this):(s=e&&!n?e:new t(n,this)).setContent(i),s}});var An=Dn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Dn.prototype.openOn.call(this,t)},onAdd:function(t){Dn.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof sn||this._source.on("preclick",Ze))},onRemove:function(t){Dn.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof sn||this._source.off("preclick",Ze))},getEvents:function(){var t=Dn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=fe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=fe("div",t+"-content-wrapper",e);if(this._contentNode=fe("div",t+"-content",i),qe(e),Ve(this._contentNode),Be(e,"contextmenu",Ze),this._tipContainer=fe("div",t+"-tip-container",e),this._tip=fe("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=fe("a",t+"-close-button",e);n.setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">&#215;</span>',Be(n,"click",(function(t){Ue(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,s=this.options.maxHeight,o="leaflet-popup-scrolled";s&&n>s?(e.height=s+"px",be(t,o)):we(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();Me(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var t=this._map,e=parseInt(pe(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,s=new O(this._containerLeft,-i-this._containerBottom);s._add(Le(this._container));var o=t.layerPointToContainerPoint(s),a=z(this.options.autoPanPadding),r=z(this.options.autoPanPaddingTopLeft||a),l=z(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),h=0,d=0;o.x+n+l.x>c.x&&(h=o.x+n-c.x+l.x),o.x-h-r.x<0&&(h=o.x-r.x),o.y+i+l.y>c.y&&(d=o.y+i-c.y+l.y),o.y-d-r.y<0&&(d=o.y-r.y),(h||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([h,d]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),On=function(t,e){return new An(t,e)};ni.mergeOptions({closePopupOnClick:!0}),ni.include({openPopup:function(t,e,i){return this._initOverlay(An,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Vi.include({bindPopup:function(t,e){return this._popup=this._initOverlay(An,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Gi||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ge(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof sn))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng));this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var In=Dn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Dn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Dn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Dn.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=fe("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,s=this._container,o=n.latLngToContainerPoint(n.getCenter()),a=n.layerPointToContainerPoint(t),r=this.options.direction,l=s.offsetWidth,c=s.offsetHeight,h=z(this.options.offset),d=this._getAnchor();"top"===r?(e=l/2,i=c):"bottom"===r?(e=l/2,i=0):"center"===r?(e=l/2,i=c/2):"right"===r?(e=0,i=c/2):"left"===r?(e=l,i=c/2):a.x<o.x?(r="right",e=0,i=c/2):(r="left",e=l+2*(h.x+d.x),i=c/2),t=t.subtract(z(e,i,!0)).add(h).add(d),we(s,"leaflet-tooltip-right"),we(s,"leaflet-tooltip-left"),we(s,"leaflet-tooltip-top"),we(s,"leaflet-tooltip-bottom"),be(s,"leaflet-tooltip-"+r),Me(s,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Se(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),zn=function(t,e){return new In(t,e)};ni.include({openTooltip:function(t,e,i){return this._initOverlay(In,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Vi.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(In,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Gi||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Be(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),Be(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;return void this._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var Nn=Ki.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(ge(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=z(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function $n(t){return new Nn(t)}Ki.Default=Ji;var Bn=Vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:$t.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),me(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ve(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_e(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=r(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof O?t:new O(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),s=0,o=i.length;s<o;s++)e=i[s].style.zIndex,i[s]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!$t.ielt9){Se(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var s=this._tiles[n];if(s.current&&s.loaded){var o=Math.min(1,(t-s.loaded)/200);Se(s.el,o),o<1?e=!0:(s.active?i=!0:this._onOpaqueTile(s),s.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(E(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=fe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(me(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],s=this._map;return n||((n=this._levels[t]={}).el=fe("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=s.project(s.unproject(s.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,s.getCenter(),s.getZoom()),c(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)return void this._removeAllTiles();for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)me(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}
vendor: 4,968 bytes, line 41
41,_retainParent:function(t,e,i,n){var s=Math.floor(t/2),o=Math.floor(e/2),a=i-1,r=new O(+s,+o);r.z=+a;var l=this._tileCoordsToKey(r),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),a>n&&this._retainParent(s,o,a,n))},_retainChildren:function(t,e,i,n){for(var s=2*t;s<2*t+2;s++)for(var o=2*e;o<2*e+2;o++){var a=new O(s,o);a.z=i+1;var r=this._tileCoordsToKey(a),l=this._tiles[r];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<n&&this._retainChildren(s,o,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var s=Math.round(e);s=void 0!==this.options.maxZoom&&s>this.options.maxZoom||void 0!==this.options.minZoom&&s<this.options.minZoom?void 0:this._clampZoom(s);var o=this.options.updateWhenZooming&&s!==this._tileZoom;(!n||o)&&(this._tileZoom=s,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==s&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),s=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();$t.any3d?Ce(t.el,s,n):Me(t.el,s)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,s=this._map.getPixelWorldBounds(this._tileZoom);s&&(this._globalTileRange=this._pxBoundsToTileRange(s)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),s=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*n);return new N(s.subtract(o),s.add(o))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),s=this._pxBoundsToTileRange(n),o=s.getCenter(),a=[],r=this.options.keepBuffer,l=new N(s.getBottomLeft().subtract([r,-r]),s.getTopRight().add([r,-r]));if(!(isFinite(s.min.x)&&isFinite(s.min.y)&&isFinite(s.max.x)&&isFinite(s.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var h=this._tiles[c].coords;(h.z!==this._tileZoom||!l.contains(new O(h.x,h.y)))&&(this._tiles[c].current=!1)}if(Math.abs(i-this._tileZoom)>1)return void this._setView(t,i);for(var d=s.min.y;d<=s.max.y;d++)for(var u=s.min.x;u<=s.max.x;u++){var p=new O(u,d);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:a.push(p)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(u=0;u<a.length;u++)this._addTile(a[u],m);this._level.el.appendChild(m)}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return R(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),s=n.add(i);return[e.unproject(n,t.z),e.unproject(s,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new B(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new O(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(me(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){be(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,$t.ielt9&&this.options.opacity<1&&Se(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&T(s(this._tileReady,this,t,null,o)),Me(o,i),this._tiles[n]={el:o,c
vendor: 6,108 bytes, line 41
41oords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(Se(i.el,0),E(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(be(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),$t.ielt9||!this._map._fadeAnimated?T(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new O(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Rn(t){return new Bn(t)}var Hn=Bn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&$t.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Be(i,"load",s(this._tileOnLoad,this,e,i)),Be(i,"error",s(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:$t.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return g(this._url,i(e,this.options))},_tileOnLoad:function(t,e){$t.ielt9?setTimeout(s(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,!e.complete)){e.src=y;var i=this._tiles[t].coords;me(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),Bn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return Bn.prototype._tileReady.call(this,t,e,i)}});function jn(t,e){return new Hn(t,e)}var Fn=Hn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var s in e)s in this.options||(n[s]=e[s]);var o=(e=p(this,e)).detectRetina&&$t.retina?2:1,a=this.getTileSize();n.width=a.x*o,n.height=a.y*o,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Hn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=$(i.project(e[0]),i.project(e[1])),s=n.min,o=n.max,a=(this._wmsVersion>=1.3&&this._crs===Yi?[s.y,s.x,o.y,o.x]:[s.x,s.y,o.x,o.y]).join(","),r=Hn.prototype.getTileUrl.call(this,t);return r+f(this.wmsParams,r,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function Wn(t,e){return new Fn(t,e)}Hn.WMS=Fn,jn.wms=Wn;var Yn=Vi.extend({options:{padding:.1},initialize:function(t){p(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),be(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),o=n.multiplyBy(-i).add(s).subtract(this._map._getNewPixelOrigin(t,e));$t.any3d?Ce(this._container,o,i):Me(this._container,o)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).roun
vendor: 5,441 bytes, line 41
41d();this._bounds=new N(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Zn=Yn.extend({options:{tolerance:0},getEvents:function(){var t=Yn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Yn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Be(t,"mousemove",this._onMouseMove,this),Be(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Be(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,me(this._container),He(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Yn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=$t.retina?2:1;Me(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",$t.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Yn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),s=[];for(i=0;i<n.length;i++){if(e=Number(n[i]),isNaN(e))return;s.push(e)}t.options._dashArray=s}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||T(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new N,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,s,o,a=t._parts,r=a.length,l=this._ctx;if(r){for(l.beginPath(),i=0;i<r;i++){for(n=0,s=a[i].length;n<s;n++)o=a[i][n],l[n?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),s=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==s&&(i.save(),i.scale(1,s)),i.beginPath(),i.arc(e.x,e.y/s,n,0,2*Math.PI,!1),1!==s&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),s=this._drawFirst;s;s=s.next)(e=s.layer).options.interactive&&e._containsPoint(n)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(i=e);this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(we(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(be(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(s((function(){this._mouseHoverThrottled=!1}),this),32)}}
vendor: 5,368 bytes, line 41
41,_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;if(!i)return;i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t)}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;if(!n)return;n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function Vn(t){return $t.canvas?new Zn(t):null}var qn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Un={_initContainer:function(){this._container=fe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Yn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=qn("shape");be(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=qn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;me(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,s=t._container;s.stroked=!!n.stroke,s.filled=!!n.fill,n.stroke?(e||(e=t._stroke=qn("stroke")),s.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=v(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(s.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=qn("fill")),s.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(s.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ve(t._container)},_bringToBack:function(t){_e(t._container)}},Gn=$t.vml?qn:K,Xn=Yn.extend({_initContainer:function(){this._container=Gn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Gn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){me(this._container),He(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Yn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),Me(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Gn("path");t.options.className&&be(e,t.options.className),t.options.interactive&&be(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){me(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Q(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ve(t._path)},_bringToBack:function(t){_e(t._path)}});function Kn(t){return $t.svg||$t.vml?new Xn(t):null}$t.vml&&Xn.include(Un),ni.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Vn(t)||Kn(t)}});var Qn=dn.extend({initialize:function(t,e){dn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))}
vendor: 12,311 bytes, line 41
41,_boundsToLatLngs:function(t){return[(t=R(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Jn(t,e){return new Qn(t,e)}Xn.create=Gn,Xn.pointsToPath=Q,pn.geometryToLayer=fn,pn.coordsToLatLng=gn,pn.coordsToLatLngs=vn,pn.latLngToCoords=_n,pn.latLngsToCoords=yn,pn.getFeature=bn,pn.asFeature=wn,ni.mergeOptions({boxZoom:!0});var ts=gi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Be(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){He(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){me(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),se(),De(),this._startPoint=this._map.mouseEventToContainerPoint(t),Be(document,{contextmenu:Ge,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=fe("div","leaflet-zoom-box",this._container),be(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),i=e.getSize();Me(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(me(this._box),we(this._container,"leaflet-crosshair")),oe(),Ae(),He(document,{contextmenu:Ge,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var e=new B(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ni.addInitHook("addHandler","boxZoom",ts),ni.mergeOptions({doubleClickZoom:!0});var es=gi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,s=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(s):e.setZoomAround(t.containerPoint,s)}});ni.addInitHook("addHandler","doubleClickZoom",es),ni.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var is=gi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new yi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}be(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){we(this._map._container,"leaflet-grab"),we(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=R(this._map.options.maxBounds);this._offsetLimit=$(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,s=(n-e+i)%t+e-i,o=(n+e+i)%t-e-i,a=Math.abs(s+i)<Math.abs(o+i)?s:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var s=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,r=s.multiplyBy(a/o),l=r.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,l),h=r.multiplyBy(c/l),d=c/(i.inertiaDeceleration*a),u=h.multiplyBy(-d/2).round();u.x||u.y?(u=e._limitOffset(u,e.options.maxBounds),T((function(){e.panBy(u,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});ni.addInitHook("addHandler","dragging",is),ni.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ns=gi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Be(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),He(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},s=this.keyCodes;for(e=0,i=s.left.length;e<i;e++)n[s.left[e]]=[-1*t,0];for(e=0,i=s.right.length;e<i;e++)n[s.right[e]]=[t,0];for(e=0,i=s.down.length;e<i;e++)n[s.down[e]]=[0,t];for(e=0,i=s.up.length;e<i;e++)n[s.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},s=this.keyCodes;for(e=0,i=s.zoomIn.length;e<i;e++)n[s.zoomIn[e]]=t;for(e=0,i=s.zoomOut.length;e<i;e++)n[s.zoomOut[e]]=-t},_addHooks:function(){Be(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){He(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=z(e).multiplyBy(3)),n.options.maxBounds&&(e=n._limitOffset(z(e),n.options.maxBounds)),n.options.worldCopyJump){var s=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(e)));n.panTo(s)}else n.panBy(e)}else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Ge(t)}}});ni.addInitHook("addHandler","keyboard",ns),ni.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ss=gi.extend({addHooks:function(){Be(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){He(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Je(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),n),Ge(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),s=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,o=i?Math.ceil(s/i)*i:s,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});ni.addInitHook("addHandler","scrollWheelZoom",ss);var os=600;ni.mergeOptions({tapHold:$t.touchNative&&$t.safari&&$t.mobile,tapTolerance:15});var as=gi.extend({addHooks:function(){Be(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){He(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new O(e.clientX,e.clientY),this._holdTimeout=setTimeout(s((function(){this._cancel(),this._isTapValid()&&(Be(document,"touchend",Ue),Be(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),os),Be(document,"touchend touchcancel contextmenu",this._cancel,this),Be(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){He(document,"touchend",Ue),He(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),He(document,"touchend touchcancel contextmenu",this._cancel,this),He(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new O(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});ni.addInitHook("addHandler","tapHold",as),ni.mergeOptions({touchZoom:$t.touch,bounceAtZoomLimits:!0});var rs=gi.extend({addHooks:function(){be(this._map._container,"leaflet-touch-zoom"),Be(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){we(this._map._container,"leaflet-touch-zoom"),He(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Be(document,"touchmove",this._onTouchMove,this),Be(document,"touchend touchcancel",this._onTouchEnd,this),Ue(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMin
41Zoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var r=s(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=T(r,this,!0),Ue(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),He(document,"touchmove",this._onTouchMove,this),He(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});ni.addInitHook("addHandler","touchZoom",rs),ni.BoxZoom=ts,ni.DoubleClickZoom=es,ni.Drag=is,ni.Keyboard=ns,ni.ScrollWheelZoom=ss,ni.TapHold=as,ni.TouchZoom=rs,t.Bounds=N,t.Browser=$t,t.CRS=W,t.Canvas=Zn,t.Circle=rn,t.CircleMarker=on,t.Class=M,t.Control=oi,t.DivIcon=Nn,t.DivOverlay=Dn,t.DomEvent=ei,t.DomUtil=$e,t.Draggable=yi,t.Evented=A,t.FeatureGroup=Gi,t.GeoJSON=pn,t.GridLayer=Bn,t.Handler=gi,t.Icon=Ki,t.ImageOverlay=Tn,t.LatLng=H,t.LatLngBounds=B,t.Layer=Vi,t.LayerGroup=qi,t.LineUtil=Ri,t.Map=ni,t.Marker=en,t.Mixin=vi,t.Path=sn,t.Point=O,t.PolyUtil=Si,t.Polygon=dn,t.Polyline=cn,t.Popup=An,t.PosAnimation=ii,t.Projection=Fi,t.Rectangle=Qn,t.Renderer=Yn,t.SVG=Xn,t.SVGOverlay=Ln,t.TileLayer=Hn,t.Tooltip=In,t.Transformation=q,t.Util=C,t.VideoOverlay=Cn,t.bind=s,t.bounds=$,t.canvas=Vn,t.circle=ln,t.circleMarker=an,t.control=ai,t.divIcon=$n,t.extend=i,t.featureGroup=Xi,t.geoJSON=kn,t.geoJson=Sn,t.gridLayer=Rn,t.icon=Qi,t.imageOverlay=En,t.latLng=j,t.latLngBounds=R,t.layerGroup=Ui,t.map=si,t.marker=nn,t.point=z,t.polygon=un,t.polyline=hn,t.popup=On,t.rectangle=Jn,t.setOptions=p,t.stamp=a,t.svg=Kn,t.svgOverlay=Pn,t.tileLayer=jn,t.tooltip=zn,t.transformation=U,t.version=e,t.videoOverlay=Mn;var ls=window.L;t.noConflict=function(){return window.L=ls,this},window.L=t}(r.exports)),r.exports);
42/* @preserve
43 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
44 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
45 */const c=o(l);
46/*!
47 * @kurkle/color v0.3.4
48 * https://github.com/kurkle/color#readme
49 * (c) 2024 Jukka Kurkela
50 * Released under the MIT License
51 */function h(t){return t+.5|0}const d=(t,e,i)=>Math.max(Math.min(t,i),e);function u(t){return d(h(2.55*t),0,255)}function p(t){return d(h(255*t),0,255)}function f(t){return d(h(t/2.55)/100,0,1)}function m(t){return d(h(100*t),0,100)}const g={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},v=[..."0123456789ABCDEF"],_=t=>v[15&t],y=t=>v[(240&t)>>4]+v[15&t],b=t=>(240&t)>>4==(15&t);function w(t){var e=(t=>b(t.r)&&b(t.g)&&b(t.b)&&b(t.a))(t)?_:y;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const x=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function k(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function S(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function T(t,e,i){const n=k(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function E(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),a=(s+o)/2;let r,l,c;return s!==o&&(c=s-o,l=a>.5?c/(2-s-o):c/(s+o),r=function(t,e,i,n,s){return t===s?(e-i)/n+(e<i?6:0):e===s?(i-t)/n+2:(t-e)/n+4}(e,i,n,c,s),r=60*r+.5),[0|r,l||0,a]}function C(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(p)}function M(t,e,i){return C(k,t,e,i)}function P(t){return(t%360+360)%360}function D(t){const e=x.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?u(+e[5]):p(+e[5]));const s=P(+e[2]),o=+e[3]/100,a=+e[4]/100;
vendor: 3,154 bytes, line 51
51return i="hwb"===e[1]?function(t,e,i){return C(T,t,e,i)}(s,o,a):"hsv"===e[1]?function(t,e,i){return C(S,t,e,i)}(s,o,a):M(s,o,a),{r:i[0],g:i[1],b:i[2],a:n}}const A={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"},O={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",KocTate:"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 I;function z(t){I||(I=function(){const t={},e=Object.keys(O),i=Object.keys(A);let n,s,o,a,r;for(n=0;n<e.length;n++){for(a=r=e[n],s=0;s<i.length;s++)o=i[s],r=r.replace(o,A[o]);o=parseInt(O[a],16),t[r]=[o>>16&255,o>>8&255,255&o]}return t}(),I.transparent=[0,0,0,0]);const e=I[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const N=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,B=t=>
vendor: 5,494 bytes, lines 51-57
51t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,R=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function H(t,e,i){if(t){let n=E(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=M(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function j(t,e){return t&&Object.assign(e||{},t)}function F(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=p(t[3]))):(e=j(t,{r:0,g:0,b:0,a:1})).a=p(e.a),e}function W(t){return"r"===t.charAt(0)?function(t){const e=N.exec(t);let i,n,s,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?u(t):d(255*t,0,255)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?u(i):d(i,0,255)),n=255&(e[4]?u(n):d(n,0,255)),s=255&(e[6]?u(s):d(s,0,255)),{r:i,g:n,b:s,a:o}}}(t):D(t)}class Y{constructor(t){if(t instanceof Y)return t;const e=typeof t;let i;"object"===e?i=F(t):"string"===e&&(i=function(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*g[t[1]],g:255&17*g[t[2]],b:255&17*g[t[3]],a:5===i?17*g[t[4]]:255}:(7===i||9===i)&&(e={r:g[t[1]]<<4|g[t[2]],g:g[t[3]]<<4|g[t[4]],b:g[t[5]]<<4|g[t[6]],a:9===i?g[t[7]]<<4|g[t[8]]:255})),e}(t)||z(t)||W(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=j(this._rgb);return t&&(t.a=f(t.a)),t}set rgb(t){this._rgb=F(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${f(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?w(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=E(t),i=e[0],n=m(e[1]),s=m(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${f(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let s;const o=e===s?.5:e,a=2*o-1,r=i.a-n.a,l=((a*r==-1?a:(a+r)/(1+a*r))+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=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=R(f(t.r)),s=R(f(t.g)),o=R(f(t.b));return{r:p(B(n+i*(R(f(e.r))-n))),g:p(B(s+i*(R(f(e.g))-s))),b:p(B(o+i*(R(f(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Y(this.rgb)}alpha(t){return this._rgb.a=p(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=h(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return H(this._rgb,2,t),this}darken(t){return H(this._rgb,2,-t),this}saturate(t){return H(this._rgb,1,t),this}desaturate(t){return H(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=E(t);i[0]=P(i[0]+e),i=M(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this
52/*!
53 * Chart.js v4.5.1
54 * https://www.chartjs.org
55 * (c) 2025 Chart.js Contributors
56 * Released under the MIT License
57 */}}function Z(){}const V=(()=>{let t=0;return()=>t++})();function q(t){return null==t}function U(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function G(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function X(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function K(t,e){return X(t)?t:e}function Q(t,e){return typeof t>"u"?e:t}const J=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function tt(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function et(t,e,i,n){let s,o,a;if(U(t))for(o=t.length,s=0;s<o;s++)e.call(i,t[s],s);else if(G(t))for(a=Object.keys(t),o=a.length,s=0;s<o;s++)e.call(i,t[a[s]],a[s])}function it(t,e){let i,n,s,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(s=t[i],o=e[i],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function nt(t){if(U(t))return t.map(nt);if(G(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let s=0;for(;s<n;++s)e[i[s]]=nt(t[i[s]]);return e}return t}function st(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ot(t,e,i,n){if(!st(t))return;const s=e[t],o=i[t];G(s)&&G(o)?at(s,o,n):e[t]=nt(o)}function at(t,e,i){const n=U(e)?e:[e],s=n.length;if(!G(t))return t;const o=(i=i||{}).merger||ot;let a;for(let e=0;e<s;++e){if(a=n[e],!G(a))continue;const s=Object.keys(a);for(let e=0,n=s.length;e<n;++e)o(s[e],t,a,i)}return t}function rt(t,e){return at(t,e,{merger:lt})}function lt(t,e,i){if(!st(t))return;const n=e[t],s=i[t];G(n)&&G(s)?rt(n,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=nt(s))}const ct={"":t=>t,x:t=>t.x,y:t=>t.y};function ht(t,e){return(ct[e]||(ct[e]=function(t){const e=function(t){const e=t.split("."),i=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e)))(t)}function dt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ut=t=>typeof t<"u",pt=t=>"function"==typeof t,ft=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},mt=Math.PI,gt=2*mt,vt=gt+mt,_t=Number.POSITIVE_INFINITY,yt=mt/180,bt=mt/2,wt=mt/4,xt=2*mt/3,kt=Math.log10,St=Math.sign;function Tt(t,e,i){return Math.abs(t-e)<i}function Et(t){const e=Math.round(t);t=Tt(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(kt(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function Ct(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}
vendor: 10,519 bytes, line 57
57function Mt(t,e,i){let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function Lt(t){return t*(mt/180)}function Pt(t){return t*(180/mt)}function Dt(t){if(!X(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function At(t,e){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*mt&&(o+=gt),{angle:o,distance:s}}function Ot(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function It(t,e){return(t-e+vt)%gt-mt}function zt(t){return(t%gt+gt)%gt}function Nt(t,e,i,n){const s=zt(t),o=zt(e),a=zt(i),r=zt(o-s),l=zt(a-s),c=zt(s-o),h=zt(s-a);return s===o||s===a||n&&o===a||r>l&&c<h}function $t(t,e,i){return Math.max(e,Math.min(i,t))}function Bt(t,e,i,n=1e-6){return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function Rt(t,e,i){i=i||(i=>t[i]<e);let n,s=t.length-1,o=0;for(;s-o>1;)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const Ht=(t,e,i,n)=>Rt(t,i,n?n=>{const s=t[n][e];return s<i||s===i&&t[n+1][e]===i}:n=>t[n][e]<i),jt=(t,e,i)=>Rt(t,i,(n=>t[n][e]>=i)),Ft=["push","pop","shift","splice","unshift"];function Wt(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),!(n.length>0)&&(Ft.forEach((e=>{delete t[e]})),delete t._chartjs)}function Yt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Zt=typeof window>"u"?function(t){return t()}:window.requestAnimationFrame;function Vt(t,e){let i=[],n=!1;return function(...s){i=s,n||(n=!0,Zt.call(window,(()=>{n=!1,t.apply(e,i)})))}}const qt=t=>"start"===t?"left":"end"===t?"right":"center",Ut=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function Gt(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:a,vScale:r,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,h=a.axis,{min:d,max:u,minDefined:p,maxDefined:f}=a.getUserBounds();if(p){if(s=Math.min(Ht(l,h,d).lo,i?n:Ht(e,h,a.getPixelForValue(d)).lo),c){const t=l.slice(0,s+1).reverse().findIndex((t=>!q(t[r.axis])));s-=Math.max(0,t)}s=$t(s,0,n-1)}if(f){let t=Math.max(Ht(l,a.axis,u,!0).hi+1,i?0:Ht(e,h,a.getPixelForValue(u),!0).hi+1);if(c){const e=l.slice(t-1).findIndex((t=>!q(t[r.axis])));t+=Math.max(0,e)}o=$t(t,s,n)-s}else o=n-s}return{start:s,count:o}}function Xt(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}const Kt=t=>0===t||1===t,Qt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*gt/i),Jt=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*gt/i)+1,te={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*bt),easeOutSine:t=>Math.sin(t*bt),easeInOutSine:t=>-.5*(Math.cos(mt*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Kt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Kt(t)?t:Qt(t,.075,.3),easeOutElastic:t=>Kt(t)?t:Jt(t,.075,.3),easeInOutElastic:t=>Kt(t)?t:t<.5?.5*Qt(2*t,.1125,.45):.5+.5*Jt(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-te.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*te.easeInBounce(2*t):.5*te.easeOutBounce(2*t-1)+.5};function ee(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function ie(t){return ee(t)?t:new Y(t)}function ne(t){return ee(t)?t:new Y(t).saturate(.5).darken(.1).hexString()}const se=["x","y","borderWidth","radius","tension"],oe=["color","borderColor","backgroundColor"],ae=new Map;function re(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=ae.get(i);return n||(n=new Intl.NumberFormat(t,e),ae.set(i,n)),n}(e,i).format(t)}const le={values:t=>U(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const a=kt(Math.abs(o)),r=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:s,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),re(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=i[e].significand||t/Math.pow(10,Math.floor(kt(t)));return[1,2,3,5,10,15].includes(n)||e>.8*i.length?le.numeric.call(this,t,e,i):""}};var ce={formatters:le};const he=Object.create(null),de=Object.create(null);function ue(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;e<n;++e){const n=i[e];t=t[n]||(t[n]=Object.create(null))}return t}function pe(t,e,i){return"string"==typeof e?at(ue(t,e),i):at(ue(t,""),e)}var fe=new class{constructor(t,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=t=>t.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=(t,e)=>ne(e.backgroundColor),this.hoverBorderColor=(t,e)=>ne(e.borderColor),this.hoverColor=(t,e)=>ne(e.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={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return pe(this,t,e)}get(t){return ue(this,t)}describe(t,e){return pe(de,t,e)}override(t,e){return pe(he,t,e)}route(t,e,i,n){const s=ue(this,t),o=ue(this,i),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[n];return G(t)?Object.assign({},e,t):Q(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:oe},numbers:{type:"number",properties:se}}),t.describe("animations",{_fallback:"animation"}),t.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:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width: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:ce.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function me(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function ge(t,e,i,n){let s=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let a=0;const r=i.length;let l,c,h,d,u;for(l=0;l<r;l++)if(d=i[l],null==d||U(d)){if(U(d))for(c=0,h=d.length;c<h;c++)u=d[c],null!=u&&!U(u)&&(a=me(t,s,o,a,u))}else a=me(t,s,o,a,d);t.restore();const p=o.length/2;if(p>i.length){for(l=0;l<p;l++)delete s[o[l]];o.splice(0,p)}return a}function ve(t,e,i){const n=t.currentDevicePixelRatio,s=0!==i?Math.max(i/2,.5):0;return Math.round((e-s)*n)/n+s}function _e(t,e){!e&&!t||((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ye(t,e,i,n){be(t,e,i,n,null)}function be(t,e,i,n,s){let o,a,r,l,c,h,d,u;const p=e.pointStyle,f=e.rotation,m=e.radius;let g=(f||0)*yt;if(p&&"object"==typeof p&&(o=p.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,n),t.rotate(g),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(m)||m<=0)){switch(t.beginPath(),p){default:s?t.ellipse(i,n,s/2,m,0,0,gt):t.arc(i,n,m,0,gt),t.closePath();break;case"triangle":h=s?s/2:m,t.moveTo(i+Math.sin(g)*h,n-Math.cos(g)*m),g+=xt,t.lineTo(i+Math.sin(g)*h,n-Math.cos(g)*m),g+=xt,t.lineTo(i+Math.sin(g)*h,n-Math.cos(g)*m),t.closePath();break;
vendor: 4,639 bytes, line 57
57case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+wt)*l,d=Math.cos(g+wt)*(s?s/2-c:l),r=Math.sin(g+wt)*l,u=Math.sin(g+wt)*(s?s/2-c:l),t.arc(i-d,n-r,c,g-mt,g-bt),t.arc(i+u,n-a,c,g-bt,g),t.arc(i+d,n+r,c,g,g+bt),t.arc(i-u,n+a,c,g+bt,g+mt),t.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,h=s?s/2:l,t.rect(i-h,n-l,2*h,2*l);break}g+=wt;case"rectRot":d=Math.cos(g)*(s?s/2:m),a=Math.cos(g)*m,r=Math.sin(g)*m,u=Math.sin(g)*(s?s/2:m),t.moveTo(i-d,n-r),t.lineTo(i+u,n-a),t.lineTo(i+d,n+r),t.lineTo(i-u,n+a),t.closePath();break;case"crossRot":g+=wt;case"cross":d=Math.cos(g)*(s?s/2:m),a=Math.cos(g)*m,r=Math.sin(g)*m,u=Math.sin(g)*(s?s/2:m),t.moveTo(i-d,n-r),t.lineTo(i+d,n+r),t.moveTo(i+u,n-a),t.lineTo(i-u,n+a);break;case"star":d=Math.cos(g)*(s?s/2:m),a=Math.cos(g)*m,r=Math.sin(g)*m,u=Math.sin(g)*(s?s/2:m),t.moveTo(i-d,n-r),t.lineTo(i+d,n+r),t.moveTo(i+u,n-a),t.lineTo(i-u,n+a),g+=wt,d=Math.cos(g)*(s?s/2:m),a=Math.cos(g)*m,r=Math.sin(g)*m,u=Math.sin(g)*(s?s/2:m),t.moveTo(i-d,n-r),t.lineTo(i+d,n+r),t.moveTo(i+u,n-a),t.lineTo(i-u,n+a);break;case"line":a=s?s/2:Math.cos(g)*m,r=Math.sin(g)*m,t.moveTo(i-a,n-r),t.lineTo(i+a,n+r);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(g)*(s?s/2:m),n+Math.sin(g)*m);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function we(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function xe(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ke(t){t.restore()}function Se(t,e,i,n,s){if(!e)return t.lineTo(i.x,i.y);if("middle"===s){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===s!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Te(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function Ee(t,e,i,n,s){if(s.strikethrough||s.underline){const o=t.measureText(n),a=e-o.actualBoundingBoxLeft,r=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,c=i+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(a,h),t.lineTo(r,h),t.stroke()}}function Ce(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Me(t,e,i,n,s,o={}){const a=U(e)?e:[e],r=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),q(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&Ce(t,o.backdrop),r&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),q(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,i,n,o.maxWidth)),t.fillText(c,i,n,o.maxWidth),Ee(t,i,n,c,o),n+=Number(s.lineHeight);t.restore()}function Le(t,e){const{x:i,y:n,w:s,h:o,radius:a}=e;t.arc(i+a.topLeft,n+a.topLeft,a.topLeft,1.5*mt,mt,!0),t.lineTo(i,n+o-a.bottomLeft),t.arc(i+a.bottomLeft,n+o-a.bottomLeft,a.bottomLeft,mt,bt,!0),t.lineTo(i+s-a.bottomRight,n+o),t.arc(i+s-a.bottomRight,n+o-a.bottomRight,a.bottomRight,bt,0,!0),t.lineTo(i+s,n+a.topRight),t.arc(i+s-a.topRight,n+a.topRight,a.topRight,0,-bt,!0),t.lineTo(i+a.topLeft,n)}const Pe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,De=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ae(t,e){const i=(""+t).match(Pe);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const Oe=t=>+t||0;function Ie(t,e){const i={},n=G(e),s=n?Object.keys(e):e,o=G(t)?n?i=>Q(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of s)i[t]=Oe(o(t));return i}function ze(t){return Ie(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ne(t){return Ie(t,["topLeft","topRight","bottomLeft","bottomRight"])}function $e(t){const e=ze(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Be(t,e){t=t||{},e=e||fe.font;let i=Q(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=Q(t.style,e.style);n&&!(""+n).match(De)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:Q(t.family,e.family),lineHeight:Ae(Q(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:Q(t.weight,e.weight),string:""};return s.string=function(t){return!t||q(t.size)||q(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function Re(t,e,i,n){let s,o,a;for(s=0,o=t.length;s<o;++s)if(a=t[s],void 0!==a&&void 0!==a)return a}function He(t,e){return Object.assign(Object.create(t),e)}function je(t,e=[""],i,n,s=(()=>
vendor: 8,138 bytes, line 57
57t[0])){const o=i||t;typeof n>"u"&&(n=Qe("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:s,override:i=>je([i,...t],e,o,n)};return new Proxy(a,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>Ve(i,n,(()=>function(t,e,i,n){let s;for(const o of e)if(s=Qe(Ye(o,t),i),typeof s<"u")return Ze(t,s)?Xe(i,n,t,s):s}(n,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Je(t).includes(e),ownKeys:t=>Je(t),set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function Fe(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:We(t,n),setContext:e=>Fe(t,e,i,n),override:s=>Fe(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ve(t,e,(()=>function(t,e,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:a}=t;let r=n[e];return pt(r)&&a.isScriptable(e)&&(r=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t);let l=e(o,a||n);return r.delete(t),Ze(t,l)&&(l=Xe(s._scopes,s,t,l)),l}(e,r,t,i)),U(r)&&r.length&&(r=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:a,_descriptors:r}=i;if(typeof o.index<"u"&&n(t))return e[o.index%e.length];if(G(e[0])){const i=e,n=s._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=Xe(n,s,t,l);e.push(Fe(i,o,a&&a[t],r))}}return e}(e,r,t,a.isIndexable)),Ze(e,r)&&(r=Fe(r,s,o&&o[e],a)),r}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function We(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:pt(i)?i:()=>i,isIndexable:pt(n)?n:()=>n}}const Ye=(t,e)=>t?t+dt(e):e,Ze=(t,e)=>G(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ve(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const n=i();return t[e]=n,n}function qe(t,e,i){return pt(t)?t(e,i):t}const Ue=(t,e)=>!0===t?e:"string"==typeof t?ht(e,t):void 0;function Ge(t,e,i,n,s){for(const o of e){const e=Ue(i,o);if(e){t.add(e);const o=qe(e._fallback,i,s);if(typeof o<"u"&&o!==i&&o!==n)return o}else if(!1===e&&typeof n<"u"&&i!==n)return null}return!1}function Xe(t,e,i,n){const s=e._rootScopes,o=qe(e._fallback,i,n),a=[...t,...s],r=new Set;r.add(n);let l=Ke(r,a,i,o||i,n);return!(null===l||typeof o<"u"&&o!==i&&(l=Ke(r,a,o,l,n),null===l))&&je(Array.from(r),[""],s,o,(()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];return U(s)&&G(i)?i:s||{}}(e,i,n)))}function Ke(t,e,i,n,s){for(;i;)i=Ge(t,e,i,n,s);return i}function Qe(t,e){for(const i of e){if(!i)continue;const e=i[t];if(typeof e<"u")return e}}function Je(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function ti(t,e,i,n){const{iScale:s}=t,{key:o="r"}=this._parsing,a=new Array(n);let r,l,c,h;for(r=0,l=n;r<l;++r)c=r+i,h=e[c],a[r]={r:s.parse(ht(h,o),c)};return a}const ei=Number.EPSILON||1e-14,ii=(t,e)=>e<t.length&&!t[e].skip&&t[e],ni=t=>"x"===t?"y":"x";function si(t,e,i,n){const s=t.skip?e:t,o=e,a=i.skip?e:i,r=Ot(o,s),l=Ot(a,o);let c=r/(r+l),h=l/(r+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=n*c,u=n*h;return{previous:{x:o.x-d*(a.x-s.x),y:o.y-d*(a.y-s.y)},next:{x:o.x+u*(a.x-s.x),y:o.y+u*(a.y-s.y)}}}function oi(t,e="x"){const i=ni(e),n=t.length,s=Array(n).fill(0),o=Array(n);let a,r,l,c=ii(t,0);for(a=0;a<n;++a)if(r=l,l=c,c=ii(t,a+1),l){if(c){const t=c[e]-l[e];s[a]=0!==t?(c[i]-l[i])/t:0}o[a]=r?c?St(s[a-1])!==St(s[a])?0:(s[a-1]+s[a])/2:s[a-1]:s[a]}(function(t,e,i){const n=t.length;let s,o,a,r,l,c=ii(t,0);for(let h=0;h<n-1;++h)if(l=c,c=ii(t,h+1),l&&c){if(Tt(e[h],0,ei)){i[h]=i[h+1]=0;continue}s=i[h]/e[h],o=i[h+1]/e[h],r=Math.pow(s,2)+Math.pow(o,2),!(r<=9)&&(a=3/Math.sqrt(r),i[h]=s*a*e[h],i[h+1]=o*a*e[h])}})(t,s,o),function(t,e,i="x"){const n=ni(i),s=t.length;let o,a,r,l=ii(t,0);for(let c=0;c<s;++c){if(a=r,r=l,l=ii(t,c+1),!r)continue;const s=r[i],h=r[n];a&&(o=(s-a[i])/3,r[`cp1${i}`]=s-o,r[`cp1${n}`]=h-o*e[c]),l&&(o=(l[i]-s)/3,r[`cp2${i}`]=s+o,r[`cp2${n}`]=h+o*e[c])}}(t,o,e)}function ai(t,e,i){return Math.max(Math.min(t,i),e)}function ri(t,e,i,n,s){let o,a,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)oi(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)r=t[o],l=si(i,r,t[Math.min(o+1,a-(n?0:1))%a],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}e.capBezierPoints&&function(t,e){let i,n,s,o,a,r=we(t[0],e);for(i=0,n=t.length;i<n;++i)a=o,o=r,r=i<n-1&&we(t[i+1],e),o&&(s=t[i],a&&(s.cp1x=ai(s.cp1x,e.left,e.right),s.cp1y=ai(s.cp1y,e.top,e.bottom)),r&&(s.cp2x=ai(s.cp2x,e.left,e.right),s.cp2y=ai(s.cp2y,e.top,e.bottom)))}(t,i)}function li(){return typeof window<"u"&&typeof document<"u"}function ci(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function hi(t,e,i){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}const di=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),ui=["top","right","bottom","left"];function pi(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=ui[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const fi=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function mi(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=di(i),o="border-box"===s.boxSizing,a=pi(s,"padding"),r=pi(s,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:o}=n;let a,r,l=!1;if(fi(s,o,t.target))a=s,r=o;else{const t=e.getBoundingClientRect();a=n.clientX-t.left,r=n.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(h&&r.left),u=a.top+(h&&r.top);let{width:p,height:f}=e;return o&&(p-=a.width+r.width,f-=a.height+r.height),{x:Math.round((l-d)/p*i.width/n),y:Math.round((c-u)/f*i.height/n)}}const gi=t=>Math.round(10*t)/10;function vi(t,e,i,n){const s=di(t),o=pi(s,"margin"),a=hi(s.maxWidth,t,"clientWidth")||_t,r=hi(s.maxHeight,t,"clientHeight")||_t,l=function(t,e,i){let n,s;if(void 0===e||void 0===i){const o=t&&ci(t);if(o){const t=o.getBoundingClientRect(),a=di(o),r=pi(a,"border","width"),l=pi(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,n=hi(a.maxWidth,o,"clientWidth"),s=hi(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||_t,maxHeight:s||_t}}(t,e,i);let{width:c,height:h}=l;if("content-box"===s.boxSizing){const t=pi(s,"border","width"),e=pi(s,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-o.width),h=Math.max(0,n?c/n:h-o.height),c=gi(Math.min(c,a,l.maxWidth)),h=gi(Math.min(h,r,l.maxHeight)),c&&!h&&(h=gi(c/2)),(void 0!==e||void 0!==i)&&n&&l.height&&h>l.height&&(h=l.height,c=gi(Math.floor(h*n))),{width:c,height:h}}function _i(t,e,i){const n=e||1,s=gi(t.height*n),o=gi(t.width*n);t.height=gi(t.height),t.width=gi(t.width);const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||a.height!==s||a.width!==o)&&(t.currentDevicePixelRatio=n,a.height=s,a.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const yi=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};li()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function bi(t,e){const i=function(t,e){return di(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}
vendor: 4,090 bytes, lines 57-63
57function wi(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function xi(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function ki(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=wi(t,s,i),r=wi(s,o,i),l=wi(o,e,i),c=wi(a,r,i),h=wi(r,l,i);return wi(c,h,i)}function Si(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Ti(t,e){let i,n;("ltr"===e||"rtl"===e)&&(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Ei(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Ci(t){return"angle"===t?{between:Nt,compare:It,normalize:zt}:{between:Bt,compare:(t,e)=>t-e,normalize:t=>t}}function Mi({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:s}}function Li(t,e,i){if(!i)return[t];const{property:n,start:s,end:o}=i,a=e.length,{compare:r,between:l,normalize:c}=Ci(n),{start:h,end:d,loop:u,style:p}=function(t,e,i){const{property:n,start:s,end:o}=i,{between:a,normalize:r}=Ci(n),l=e.length;let c,h,{start:d,end:u,loop:p}=t;if(p){for(d+=l,u+=l,c=0,h=l;c<h&&a(r(e[d%l][n]),s,o);++c)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:p,style:t.style}}(t,e,i),f=[];let m,g,v,_=!1,y=null;const b=()=>_||l(s,v,m)&&0!==r(s,v),w=()=>!_||0===r(o,m)||l(o,v,m);for(let t=h,i=h;t<=d;++t)g=e[t%a],!g.skip&&(m=c(g[n]),m!==v&&(_=l(m,s,o),null===y&&b()&&(y=0===r(m,s)?t:i),null!==y&&w()&&(f.push(Mi({start:y,end:t,loop:u,count:a,style:p})),y=null),i=t,v=m));return null!==y&&f.push(Mi({start:y,end:d,loop:u,count:a,style:p})),f}function Pi(t,e){const i=[],n=t.segments;for(let s=0;s<n.length;s++){const o=Li(n[s],t.points,e);o.length&&i.push(...o)}return i}function Di(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const s=t._chart.getContext(),o=Ai(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=i.length,c=[];let h=o,d=e[0].start,u=d;function p(t,e,n,s){const o=r?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:n,style:s}),h=s,d=e%l)}}for(const t of e){d=r?d:t.start;let e,o=i[d%l];for(u=d+1;u<=t.end;u++){const r=i[u%l];e=Ai(n.setContext(He(s,{type:"segment",p0:o,p1:r,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),Oi(e,h)&&p(d,u-1,t.loop,h),o=r,h=e}d<u-1&&p(d,u-1,t.loop,h)}return c}(t,e,i,n):e}function Ai(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Oi(t,e){if(!e)return!1;const i=[],n=function(t,e){return ee(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}function Ii(t,e,i){return t.options.clip?t[i]:e[i]}function zi(t,e){const i=e._clip;if(i.disabled)return!1;const n=function(t,e){const{xScale:i,yScale:n}=t;return i&&n?{left:Ii(i,e,"left"),right:Ii(i,e,"right"),top:Ii(n,e,"top"),bottom:Ii(n,e,"bottom")}:e}(e,t.chartArea);return{left:!1===i.left?0:n.left-(!0===i.left?0:i.left),right:!1===i.right?t.width:n.right+(!0===i.right?0:i.right),top:!1===i.top?0:n.top-(!0===i.top?0:i.top),bottom:!1===i.bottom?t.height:n.bottom+(!0===i.bottom?0:i.bottom)}}
58/*!
59 * Chart.js v4.5.1
60 * https://www.chartjs.org
61 * (c) 2025 Chart.js Contributors
62 * Released under the MIT License
63 */var Ni=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const s=e.listeners[n],o=e.duration;s.forEach((n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=Zt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;
vendor: 4,405 bytes, line 63
63this._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,a=s.length-1,r=!1;for(;a>=0;--a)o=s[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(s[a]=s[s.length-1],s.pop());r&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const $i="transparent",Bi={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=ie(t||$i),s=n.valid&&ie(e||$i);return s&&s.valid?s.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class Ri{constructor(t,e,i,n){const s=e[i];n=Re([t.to,n,s,t.from]);const o=Re([t.from,s,n]);this._active=!0,this._fn=t.fn||Bi[t.type||typeof o],this._easing=te[t.easing]||te.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Re([t.to,e,n,t.from]),this._from=Re([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,a=this._to;let r;if(this._active=s!==a&&(o||e<i),!this._active)return this._target[n]=a,void this._notify(!0);e<0?this._target[n]=s:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[n]=this._fn(s,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class Hi{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!G(t))return;const e=Object.keys(fe.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const s=t[n];if(!G(s))return;const o={};for(const t of e)o[t]=s[t];(U(s.properties)&&s.properties||[n]).forEach((t=>{(t===n||!i.has(t))&&i.set(t,o)}))}))}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const s=t[n[e]];s&&s.active()&&i.push(s.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let r;for(r=o.length-1;r>=0;--r){const l=o[r];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let h=s[l];const d=i.get(l);if(h){if(d&&h.active()){h.update(d,c,a);continue}h.cancel()}d&&d.duration?(s[l]=h=new Ri(d,t,l,c),n.push(h)):t[l]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(Ni.add(this._chart,i),!0):void 0}}function ji(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:s,end:n?s:o}}function Fi(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=n.length;s<o;++s)i.push(n[s].index);return i}function Wi(t,e,i,n={}){const s=t.keys,o="single"===n.mode;let a,r,l,c;if(null===e)return;let h=!1;for(a=0,r=s.length;a<r;
vendor: 10,182 bytes, line 63
63++a){if(l=+s[a],l===i){if(h=!0,n.all)continue;break}c=t.values[l],X(c)&&(o||0===e||St(e)===St(c))&&(e+=c)}return h||n.all?e:0}function Yi(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Zi(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function Vi(t,e,i,n){for(const s of e.getMatchingVisibleMetas(n).reverse()){const e=t[s.index];if(i&&e>0||!i&&e<0)return s.index}return null}function qi(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=n,l=o.axis,c=a.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,n),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[l]:o,[c]:d}=i;u=(i._stacks||(i._stacks={}))[c]=Zi(s,h,o),u[r]=d,u._top=Vi(u,a,!0,n.type),u._bottom=Vi(u,a,!1,n.type),(u._visualValues||(u._visualValues={}))[r]=d}}function Ui(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Gi(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[i]&&delete e[n]._visualValues[i]}}}const Xi=t=>"reset"===t||"none"===t,Ki=(t,e)=>e?t:Object.assign({},t);class Qi{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Yi(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Gi(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,s=e.xAxisID=Q(i.xAxisID,Ui(t,"x")),o=e.yAxisID=Q(i.yAxisID,Ui(t,"y")),a=e.rAxisID=Q(i.rAxisID,Ui(t,"r")),r=e.indexAxis,l=e.iAxisID=n(r,s,o,a),c=e.vAxisID=n(r,o,s,a);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Wt(this._data,this),t._stacked&&Gi(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(G(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:i,vScale:n}=e,s="x"===i.axis?"x":"y",o="x"===n.axis?"x":"y",a=Object.keys(t),r=new Array(a.length);let l,c,h;for(l=0,c=a.length;l<c;++l)h=a[l],r[l]={[s]:h,[o]:t[h]};return r}(e,t)}else if(i!==e){if(i){Wt(i,this);const t=this._cachedMeta;Gi(t),t._parsed=[]}e&&Object.isExtensible(e)&&function(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Ft.forEach((e=>{const i="_onData"+dt(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const s=n.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),s}})})))}(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=Yi(e.vScale,e),e.stack!==i.stack&&(n=!0,Gi(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&(qi(this,e._parsed),e._stacked=Yi(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:s,_stacked:o}=i,a=s.axis;let r,l,c,h=0===t&&e===n.length||i._sorted,d=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,c=n;else{c=U(n[t])?this.parseArrayData(i,n,t,e):G(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===l[a]||d&&l[a]<d[a];for(r=0;r<e;++r)i._parsed[r+t]=l=c[r],h&&(s()&&(h=!1),d=l);i._sorted=h}o&&qi(this,c)}parsePrimitiveData(t,e,i,n){const{iScale:s,vScale:o}=t,a=s.axis,r=o.axis,l=s.getLabels(),c=s===o,h=new Array(n);let d,u,p;for(d=0,u=n;d<u;++d)p=d+i,h[d]={[a]:c||s.parse(l[p],p),[r]:o.parse(e[p],p)};return h}parseArrayData(t,e,i,n){const{xScale:s,yScale:o}=t,a=new Array(n);let r,l,c,h;for(r=0,l=n;r<l;++r)c=r+i,h=e[c],a[r]={x:s.parse(h[0],c),y:o.parse(h[1],c)};return a}parseObjectData(t,e,i,n){const{xScale:s,yScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l=new Array(n);let c,h,d,u;for(c=0,h=n;c<h;++c)d=c+i,u=e[d],l[c]={x:s.parse(ht(u,a),d),y:o.parse(ht(u,r),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,s=this._cachedMeta,o=e[t.axis];return Wi({keys:Fi(n,!0),values:e._stacks[t.axis]._visualValues},o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const s=i[e.axis];let o=null===s?NaN:s;const a=n&&i._stacks[e.axis];n&&a&&(n.values=a,o=Wi(n,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,n=i._parsed,s=i._sorted&&t===i.iScale,o=n.length,a=this._getOtherScale(t),r=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Fi(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=function(t){const{min:e,max:i,minDefined:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(a);let d,u;function p(){u=n[d];const e=u[a.axis];return!X(u[t.axis])||c>e||h<e}for(d=0;d<o&&(p()||(this.updateRangeFromParsed(l,t,u,r),!s));++d);if(s)for(d=o-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,u,r);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n][t.axis],X(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:n?""+n.getLabelForValue(s[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,n,s;return G(t)?(e=t.top,i=t.right,n=t.bottom,s=t.left):e=i=n=s=t,{top:e,right:i,bottom:n,left:s,disabled:!1===t}}(Q(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=ji(t,i),s=ji(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,n=i.data||[],s=e.chartArea,o=[],a=this._drawStart||0,r=this._drawCount||n.length-a,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(t,s,a,r),c=a;c<a+r;++c){const e=n[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,s))}for(c=0;c<o.length;++c)o[c].draw(t,s)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const n=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];s=e.$context||(e.$context=function(t,e,i){return He(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=n.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function(t,e){return He(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=n,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const n="active"===e,s=this._cachedDataOpts,o=t+"-"+e,a=s[o],r=this.enableOptionSharing&&ut(i);if(a)return Ki(a,r);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),h=n?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),u=Object.keys(fe.elements[t]),p=l.resolveNamedOptions(d,u,(()=>this.getContext(i,n,e)),h);return p.$shared&&(p.$shared=r,s[o]=Object.freeze(Ki(p,r))),p}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,a=s[o];if(a)return a;let r;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);r=n.createResolver(o,this.getContext(t,i,e))}const l=new Hi(n,r&&r.animations);return r&&r._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Xi(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,n){Xi(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Xi(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);
vendor: 4,579 bytes, line 63
63this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s<n&&this._removeElements(s,n-s)}_insertElements(t,e,i=!0){const n=this._cachedMeta,s=n.data,o=t+e;let a;const r=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(s),a=t;a<o;++a)s[a]=new this.dataElementType;this._parsing&&r(n._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,n){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,e);i._stacked&&Gi(i,n)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,n]=t;this[e](i,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Ji(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,s=i.length;e<s;e++)n=n.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=Yt(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,s,o,a,r=e._length;const l=()=>{32767===o||-32768===o||(ut(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(n=0,s=i.length;n<s;++n)o=e.getPixelForValue(i[n]),l();for(a=void 0,n=0,s=e.ticks.length;n<s;++n)o=e.getPixelForTick(n),l();return r}function tn(t,e,i,n){return U(t)?function(t,e,i,n){const s=i.parse(t[0],n),o=i.parse(t[1],n),a=Math.min(s,o),r=Math.max(s,o);let l=a,c=r;Math.abs(a)>Math.abs(r)&&(l=r,c=a),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:o,min:a,max:r}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function en(t,e,i,n){const s=t.iScale,o=t.vScale,a=s.getLabels(),r=s===o,l=[];let c,h,d,u;for(c=i,h=i+n;c<h;++c)u=e[c],d={},d[s.axis]=r||s.parse(a[c],c),l.push(tn(u,d,o,c));return l}function nn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function sn(t,e,i,n){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);if(!0===s)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:r,reverse:l,top:c,bottom:h}=function(t){let e,i,n,s,o;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(s="end",o="start"):(s="start",o="end"),{start:i,end:n,reverse:e,top:s,bottom:o}}(t);"middle"===s&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?s=c:(i._bottom||0)===n?s=h:(o[on(h,a,r,l)]=!0,s=c)),o[on(s,a,r,l)]=!0,t.borderSkipped=o}function on(t,e,i,n){return n?(t=function(t,e,i){return t===e?i:t===i?e:t}(t,e,i),t=an(t,i,e)):t=an(t,e,i),t}function an(t,e,i){return"start"===t?e:"end"===t?i:t}function rn(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class ln extends Qi{static id="doughnut";static 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"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:i,textAlign:n,color:s,useBorderRadius:o,borderRadius:a}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map(((e,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:l.backgroundColor,fontColor:s,hidden:!t.getDataVisibility(r),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:n,pointStyle:i,borderRadius:o&&(a||l.borderRadius),index:r}})):[]}}
vendor: 32,134 bytes, line 63
63,onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,o,a=t=>+i[t];if(G(i[t])){const{key:t="value"}=this._parsing;a=e=>+ht(i[e],t)}for(s=t,o=t+e;s<o;++s)n._parsed[s]=a(s)}}_getRotation(){return Lt(this.options.rotation-90)}_getCircumference(){return Lt(this.options.circumference)}_getRotationExtents(){let t=gt,e=-gt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),o=n._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,n=this._cachedMeta,s=n.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),r=Math.min(((t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e)(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:c,rotation:h}=this._getRotationExtents(),{ratioX:d,ratioY:u,offsetX:p,offsetY:f}=function(t,e,i){let n=1,s=1,o=0,a=0;if(e<gt){const r=t,l=r+e,c=Math.cos(r),h=Math.sin(r),d=Math.cos(l),u=Math.sin(l),p=(t,e,n)=>Nt(t,r,l,!0)?1:Math.max(e,e*i,n,n*i),f=(t,e,n)=>Nt(t,r,l,!0)?-1:Math.min(e,e*i,n,n*i),m=p(0,c,d),g=p(bt,h,u),v=f(mt,c,d),_=f(mt+bt,h,u);n=(m-v)/2,s=(g-_)/2,o=-(m+v)/2,a=-(g+_)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:a}}(h,c,r),m=(i.width-o)/d,g=(i.height-o)/u,v=Math.max(Math.min(m,g)/2,0),_=J(this.options.radius,v),y=(_-Math.max(_*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*_,this.offsetY=f*_,n.total=this.calculateTotal(),this.outerRadius=_-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*l,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/gt)}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,a=o.chartArea,r=o.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,h=s&&r.animateScale,d=h?0:this.innerRadius,u=h?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,n);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,s);for(m=e;m<e+i;++m){const e=this._circumference(m,s),i=t[m],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:u,innerRadius:d};f&&(o.options=p||this.resolveDataElementOptions(m,i.active?"active":n)),g+=e,this.updateElement(i,m,o,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const s=t._parsed[i];null!==s&&!isNaN(s)&&this.chart.getDataVisibility(i)&&!e[i].hidden&&(n+=Math.abs(s))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?gt*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=re(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,a,r;if(!t)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){o=i.getDatasetMeta(n),t=o.data,a=o.controller;break}if(!t)return 0;for(n=0,s=t.length;n<s;++n)r=a.resolveDataElementOptions(n),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(Q(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class cn extends Qi{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:n}}=t.legend.options;return e.labels.map(((e,s)=>{const o=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=re(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return ti.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(n<e.min&&(e.min=n),n>e.max&&(e.max=n))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,a=o.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,c=r.yCenter,h=r.getIndexAngle(0)-.5*mt;let d,u=h;const p=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,n,p);for(d=e;d<e+i;d++){const e=t[d];let i=u,f=u+this._computeAngle(d,n,p),m=o.getDataVisibility(d)?r.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=f,s&&(a.animateScale&&(m=0),a.animateRotate&&(i=f=h));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:i,endAngle:f,options:this.resolveDataElementOptions(d,e.active?"active":n)};this.updateElement(e,d,g,n)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Lt(this.resolveDataElementOptions(t,e).angle||i):0}}var hn=Object.freeze({__proto__:null,BarController:class extends Qi{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,n){return en(t,e,i,n)}parseArrayData(t,e,i,n){return en(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:s,vScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l="x"===s.axis?a:r,c="x"===o.axis?a:r,h=[];let d,u,p,f;for(d=i,u=i+n;d<u;++d)f=e[d],p={},p[s.axis]=s.parse(ht(f,l),d),h.push(tn(ht(f,c),p,o,d));return h}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,s=this.getParsed(t),o=s._custom,a=nn(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,n){const s="reset"===n,{index:o,_cachedMeta:{vScale:a}}=this,r=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,n);for(let u=e;u<e+i;u++){const e=this.getParsed(u),i=s||q(e[a.axis])?{base:r,head:r}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[a.axis],m={horizontal:l,base:i.base,enableBorderRadius:!f||nn(e._custom)||o===f._top||o===f._bottom,x:l?i.head:p.center,y:l?p.center:i.head,height:l?p.size:Math.abs(i.size),width:l?Math.abs(i.size):p.size};d&&(m.options=h||this.resolveDataElementOptions(u,t[u].active?"active":n));const g=m.options||t[u].options;sn(m,g,f,o),rn(m,g,c.ratio),this.updateElement(t[u],u,m,n)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,n=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),s=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(e),r=a&&a[i.axis],l=t=>{const e=t._parsed.find((t=>t[i.axis]===r)),n=e&&e[t.vScale.axis];if(q(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!l(i))&&((!1===s||-1===o.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter((i=>t[i].axis===e)).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)t[Q("x"===this.chart.options.indexAxis?i.xAxisID:i.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s<o;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const a=t.barThickness;return{min:a||Ji(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:n},options:{base:s,minBarLength:o}}=this,a=s||0,r=this.getParsed(t),l=r._custom,c=nn(l);let h,d,u=r[e.axis],p=0,f=i?this.applyStack(e,r,i):u;f!==u&&(p=f-u,f=u),c&&(u=l.barStart,f=l.barEnd-l.barStart,0!==u&&St(u)!==St(l.barEnd)&&(p=0),p+=u);const m=q(s)||c?p:s;let g=e.getPixelForValue(m);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):g,d=h-g,Math.abs(d)<o){d=function(t,e,i){return 0!==t?St(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,a)*o,u===a&&(g-=d/2);const t=e.getPixelForDecimal(0),s=e.getPixelForDecimal(1),l=Math.min(t,s),p=Math.max(t,s);g=Math.max(Math.min(g,p),l),h=g+d,i&&!c&&(r._stacks[e.axis]._visualValues[n]=e.getValueForPixel(h)-e.getValueForPixel(g))}if(g===e.getPixelForValue(a)){const t=St(d)*e.getLineWidthForValue(a)/2;g+=t,d-=t}return{size:d,base:g,head:h,center:h+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,o=Q(n.maxBarThickness,1/0);let a,r;const l=this._getAxisCount();if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,c="flex"===n.barThickness?function(t,e,i,n){const s=e.pixels,o=s[t];let a=t>0?s[t-1]:null,r=t<s.length-1?s[t+1]:null;const l=i.categoryPercentage;null===a&&(a=o-(null===r?e.end-e.start:r-o)),null===r&&(r=o+o-a);const c=o-(o-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/n,ratio:i.barPercentage,start:c}}(t,e,n,i*l):function(t,e,i,n){const s=i.barThickness;let o,a;return q(s)?(o=e.min*i.categoryPercentage,a=i.barPercentage):(o=s*n,a=1),{chunk:o/n,ratio:a,start:e.pixels[t]-o/2}}(t,e,n,i*l),h="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(Q(h,this.getFirstScaleIdForIndexAxis())),u=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0)+d;a=c.start+c.chunk*u+c.chunk/2,r=Math.min(o,c.chunk*c.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),r=Math.min(o,e.min*e.ratio);return{base:a-r/2,head:a+r/2,center:a,size:r}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let s=0;for(;s<n;++s)null!==this.getParsed(s)[e.axis]&&!i[s].hidden&&i[s].draw(this._ctx)}},BubbleController:class extends Qi{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,n){const s=super.parsePrimitiveData(t,e,i,n);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+i).radius;return s}parseArrayData(t,e,i,n){const s=super.parseArrayData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=Q(n[2],this.resolveDataElementOptions(t+i).radius)}return s}parseObjectData(t,e,i,n){const s=super.parseObjectData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=Q(n&&n.r&&+n.r,this.resolveDataElementOptions(t+i).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;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}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),a=n.getLabelForValue(o.x),r=s.getLabelForValue(o.y),l=o._custom;return{label:i[t]||"",value:"("+a+", "+r+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,n),c=o.axis,h=a.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!s&&this.getParsed(d),u={},p=u[c]=s?o.getPixelForDecimal(.5):o.getPixelForValue(i[c]),f=u[h]=s?a.getBasePixel():a.getPixelForValue(i[h]);u.skip=isNaN(p)||isNaN(f),l&&(u.options=r||this.resolveDataElementOptions(d,e.active?"active":n),s&&(u.options.radius=0)),this.updateElement(e,d,u,n)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const s=n.radius;return"active"!==e&&(n.radius=0),n.radius+=Q(i&&i._custom,s),n}},DoughnutController:ln,LineController:class extends Qi{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:a,count:r}=Gt(e,n,o);this._drawStart=a,this._drawCount=r,Xt(e)&&(a=0,r=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(n,a,r,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:a,_stacked:r,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(e,n),d=o.axis,u=a.axis,{spanGaps:p,segment:f}=this.options,m=Ct(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||s||"none"===n,v=e+i,_=t.length;let y=e>0&&this.getParsed(e-1);for(let i=0;i<_;++i){const p=t[i],_=g?p:{};if(i<e||i>=v){_.skip=!0;continue}const b=this.getParsed(i),w=q(b[u]),x=_[d]=o.getPixelForValue(b[d],i),k=_[u]=s||w?a.getBasePixel():a.getPixelForValue(r?this.applyStack(a,b,r):b[u],i);_.skip=isNaN(x)||isNaN(k)||w,_.stop=i>0&&Math.abs(b[d]-y[d])>m,f&&(_.parsed=b,_.raw=l.data[i]),h&&(_.options=c||this.resolveDataElementOptions(i,p.active?"active":n)),g||this.updateElement(p,i,_,n),y=b}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends ln{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:cn,RadarController:class extends Qi{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return ti.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this._cachedMeta.rScale,o="reset"===n;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":n),r=s.getPointPositionForValue(a,this.getParsed(a).r),l=o?s.xCenter:r.x,c=o?s.yCenter:r.y,h={x:l,y:c,angle:r.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(e,a,h,n)}}},ScatterController:class extends Qi{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),a=n.getLabelForValue(o.x),r=s.getLabelForValue(o.y);return{label:i[t]||"",value:"("+a+", "+r+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,n=this.chart._animationsDisabled;let{start:s,count:o}=Gt(e,i,n);if(this._drawStart=s,this._drawCount=o,Xt(e)&&(s=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:s,_dataset:o}=e;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(s,void 0,{animated:!n,options:a},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,s,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:a,_stacked:r,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),h=this.getSharedOptions(c),d=this.includeOptions(n,h),u=o.axis,p=a.axis,{spanGaps:f,segment:m}=this.options,g=Ct(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||s||"none"===n;let _=e>0&&this.getParsed(e-1);for(let c=e;c<e+i;++c){const e=t[c],i=this.getParsed(c),f=v?e:{},y=q(i[p]),b=f[u]=o.getPixelForValue(i[u],c),w=f[p]=s||y?a.getBasePixel():a.getPixelForValue(r?this.applyStack(a,i,r):i[p],c);f.skip=isNaN(b)||isNaN(w)||y,f.stop=c>0&&Math.abs(i[u]-_[u])>g,m&&(f.parsed=i,f.raw=l.data[c]),d&&(f.options=h||this.resolveDataElementOptions(c,e.active?"active":n)),v||this.updateElement(e,c,f,n),_=i}this.updateSharedOptions(h,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){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}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,s,o)/2}}});function dn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class un{static override(t){Object.assign(un.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return dn()}parse(){return dn()}format(){return dn()}add(){return dn()}diff(){return dn()}startOf(){return dn()}endOf(){return dn()}}var pn=un;function fn(t,e,i,n){const{controller:s,data:o,_sorted:a}=t,r=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(r&&e===r.axis&&"r"!==e&&a&&o.length){const a=r._reversePixels?jt:Ht;if(!n){const n=a(o,e,i);if(l){const{vScale:e}=s._cachedMeta,{_parsed:i}=t,o=i.slice(0,n.lo+1).reverse().findIndex((t=>!q(t[e.axis])));n.lo-=Math.max(0,o);const a=i.slice(n.hi).findIndex((t=>!q(t[e.axis])));n.hi+=Math.max(0,a)}return n}if(s._sharedOptions){const t=o[0],n="function"==typeof t.getRange&&t.getRange(e);if(n){const t=a(o,e,i-n),s=a(o,e,i+n);return{lo:t.lo,hi:s.hi}}}}return{lo:0,hi:o.length-1}}function mn(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:r}=o[t],{lo:l,hi:c}=fn(o[t],e,a,s);for(let t=l;t<=c;++t){const e=r[t];e.skip||n(e,i,t)}}}function gn(t,e,i,n,s){const o=[];return!s&&!t.isPointInArea(e)||mn(t,i,e,(function(i,a,r){!s&&!we(i,t.chartArea,0)||i.inRange(e.x,e.y,n)&&o.push({element:i,datasetIndex:a,index:r})}),!0),o}function vn(t,e,i,n,s,o){let a=[];const r=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const s=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return mn(t,i,e,(function(i,c,h){const d=i.inRange(e.x,e.y,s);if(n&&!d)return;const u=i.getCenterPoint(s);if(!o&&!t.isPointInArea(u)&&!d)return;const p=r(e,u);p<l?(a=[{element:i,datasetIndex:c,index:h}],l=p):p===l&&a.push({element:i,datasetIndex:c,index:h})})),a}function _n(t,e,i,n,s,o){return o||t.isPointInArea(e)?"r"!==i||n?vn(t,e,i,n,s,o):function(t,e,i,n){let s=[];return mn(t,i,e,(function(t,i,o){const{startAngle:a,endAngle:r}=t.getProps(["startAngle","endAngle"],n),{angle:l}=At(t,{x:e.x,y:e.y});Nt(l,a,r)&&s.push({element:t,datasetIndex:i,index:o})})),s}(t,e,i,s):[]}function yn(t,e,i,n,s){const o=[],a="x"===i?"inXRange":"inYRange";let r=!1;return mn(t,i,e,((t,n,l)=>{t[a]&&t[a](e[i],s)&&(o.push({element:t,datasetIndex:n,index:l}),r=r||t.inRange(e.x,e.y,s))})),n&&!r?[]:o}var bn={modes:{index(t,e,i,n){const s=mi(e,t),o=i.axis||"x",a=i.includeInvisible||!1,r=i.intersect?gn(t,s,o,n,a):_n(t,s,o,!1,n,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,n){const s=mi(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;let r=i.intersect?gn(t,s,o,n,a):_n(t,s,o,!1,n,a);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,n)=>gn(t,mi(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const s=mi(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;return _n(t,s,o,i.intersect,n,a)},x:(t,e,i,n)=>yn(t,mi(e,t),"x",i.intersect,n),y:(t,e,i,n)=>yn(t,mi(e,t),"y",i.intersect,n)}};const wn=["left","top","right","bottom"];function xn(t,e){return t.filter((t=>t.pos===e))}function kn(t,e){return t.filter((t=>-1===wn.indexOf(t.pos)&&t.box.axis===e))}function Sn(t,e){return t.sort(((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight}))}function Tn(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!wn.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let o,a,r;for(o=0,a=t.length;o<a;++o){r=t[o];const{fullSize:a}=r.box,l=i[r.stack],c=l&&r.stackWeight/l.weight;r.horizontal?(r.width=c?c*n:a&&e.availableWidth,r.height=s):(r.width=n,r.height=c?c*s:a&&e.availableHeight)}return i}function En(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function Cn(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Mn(t,e,i,n){const{pos:s,box:o}=i,a=t.maxPadding;if(!G(s)){i.size&&(t[s]-=i.size);const e=n[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[s]+=i.size}o.getPadding&&Cn(a,o.getPadding());const r=Math.max(0,e.outerWidth-En(a,t,"left","right")),l=Math.max(0,e.outerHeight-En(a,t,"top","bottom")),c=r!==t.w,h=l!==t.h;return t.w=r,t.h=l,i.horizontal?{same:c,other:h}:{same:h,other:c}}function Ln(t,e){const i=e.maxPadding;return function(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],i[t])})),n}(t?["left","right"]:["top","bottom"])}function Pn(t,e,i,n){const s=[];let o,a,r,l,c,h;for(o=0,a=t.length,c=0;o<a;++o){r=t[o],l=r.box,l.update(r.width||e.w,r.height||e.h,Ln(r.horizontal,e));const{same:a,other:d}=Mn(e,i,r,n);c|=a&&s.length,h=h||d,l.fullSize||s.push(r)}return c&&Pn(s,e,i,n)||h}function Dn(t,e,i,n,s){t.top=i,t.left=e,t.right=e+n,t.bottom=i+s,t.width=n,t.height=s}function An(t,e,i,n){const s=i.padding;let{x:o,y:a}=e;for(const r of t){const t=r.box,l=n[r.stack]||{placed:0,weight:1},c=r.stackWeight/l.weight||1;if(r.horizontal){const n=e.w*c,o=l.size||t.height;ut(l.start)&&(a=l.start),t.fullSize?Dn(t,s.left,a,i.outerWidth-s.right-s.left,o):Dn(t,e.left+l.placed,a,n,o),l.start=a,l.placed+=n,a=t.bottom}else{const n=e.h*c,a=l.size||t.width;ut(l.start)&&(o=l.start),t.fullSize?Dn(t,o,s.top,a,i.outerHeight-s.bottom-s.top):Dn(t,o,e.top+l.placed,a,n),l.start=o,l.placed+=n,o=t.right}}e.x=o,e.y=a}var On={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,n){if(!t)return;const s=$e(t.options.layout.padding),o=Math.max(e-s.width,0),a=Math.max(i-s.height,0),r=function(t){const e=function(t){const e=[];let i,n,s,o,a,r;for(i=0,n=(t||[]).length;i<n;++i)s=t[i],({position:o,options:{stack:a,stackWeight:r=1}}=s),e.push({index:i,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:a&&o+a,stackWeight:r});return e}(t),i=Sn(e.filter((t=>t.box.fullSize)),!0),n=Sn(xn(e,"left"),!0),s=Sn(xn(e,"right")),o=Sn(xn(e,"top"),!0),a=Sn(xn(e,"bottom")),r=kn(e,"x"),l=kn(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(a).concat(r),chartArea:xn(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(a).concat(r)}}(t.boxes),l=r.vertical,c=r.horizontal;et(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const h=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/h,hBoxMaxHeight:a/2}),u=Object.assign({},s);Cn(u,$e(n));const p=Object.assign({maxPadding:u,w:o,h:a,x:s.left,y:s.top},s),f=Tn(l.concat(c),d);Pn(r.fullSize,p,d,f),Pn(l,p,d,f),Pn(c,p,d,f)&&Pn(l,p,d,f),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),An(r.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,An(r.rightAndBottom,p,d,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},et(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class In{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class zn extends In{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Nn="$chartjs",$n={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Bn=t=>null===t||""===t,Rn=!!yi&&{passive:!0};function Hn(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,Rn)}function jn(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Fn(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||jn(i.addedNodes,n),e=e&&!jn(i.removedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}function Wn(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||jn(i.removedNodes,n),e=e&&!jn(i.addedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}const Yn=new Map;let Zn=0;function Vn(){const t=window.devicePixelRatio;t!==Zn&&(Zn=t,Yn.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function qn(t,e,i){const n=t.canvas,s=n&&ci(n);if(!s)return;const o=Vt(((t,e)=>{const n=s.clientWidth;i(t,e),n<s.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||o(i,n)}));return a.observe(s),function(t,e){Yn.size||window.addEventListener("resize",Vn),Yn.set(t,e)}(t,o),a}function Un(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Yn.delete(t),Yn.size||window.removeEventListener("resize",Vn)}(t)}function Gn(t,e,i){const n=t.canvas,s=Vt((e=>{null!==t.ctx&&i(function(t,e){const i=$n[t.type]||t.type,{x:n,y:s}=mi(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))}),t);return function(t,e,i){t&&t.addEventListener(e,i,Rn)}(n,e,s),s}class Xn extends In{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[Nn]={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",Bn(s)){const e=bi(t,"width");void 0!==e&&(t.width=e)}if(Bn(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=bi(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Nn])return!1;const i=e[Nn].initial;["height","width"].forEach((t=>{const n=i[t];q(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[Nn],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:Fn,detach:Wn,resize:qn}[e]||Gn;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];n&&(({attach:Un,detach:Un,resize:Un}[e]||Hn)(t,e,n),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return vi(t,e,i,n)}isAttached(t){const e=t&&ci(t);return!(!e||!e.isConnected)}}let Kn=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Ct(this.x)&&Ct(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach((t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),n}};function Qn(t,e){const i=t.options.ticks,n=function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}(t),s=Math.min(i.maxTicksLimit||n,n),o=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],a=o.length,r=o[0],l=o[a-1],c=[];if(a>s)return function(t,e,i,n){let s,o=0,a=i[0];for(n=Math.ceil(n),s=0;s<t.length;s++)s===a&&(e.push(t[s]),o++,a=i[o*n])}(e,c,o,a/s),c;
vendor: 1,577 bytes, line 63
63const h=function(t,e,i){const n=function(t){const e=t.length;let i,n;if(e<2)return!1;for(n=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==n)return!1;return n}(t),s=e.length/i;if(!n)return Math.max(s,1);const o=function(t){const e=[],i=Math.sqrt(t);let n;for(n=1;n<i;n++)t%n==0&&(e.push(n),e.push(t/n));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(n);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>s)return e}return Math.max(s,1)}(o,e,s);if(a>0){let t,i;const n=a>1?Math.round((l-r)/(a-1)):null;for(Jn(e,c,h,q(n)?0:r-n,r),t=0,i=a-1;t<i;t++)Jn(e,c,h,o[t],o[t+1]);return Jn(e,c,h,l,q(n)?e.length:l+n),c}return Jn(e,c,h),c}function Jn(t,e,i,n,s){const o=Q(n,0),a=Math.min(Q(s,t.length),t.length);let r,l,c,h=0;for(i=Math.ceil(i),s&&(r=s-n,i=r/Math.floor(r/i)),c=o;c<0;)h++,c=Math.round(o+h*i);for(l=Math.max(o,0);l<a;l++)l===c&&(e.push(t[l]),h++,c=Math.round(o+h*i))}const ts=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,es=(t,e)=>Math.min(e||t,t);function is(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;o<s;o+=n)i.push(t[Math.floor(o)]);return i}function ns(t,e,i){const n=t.ticks.length,s=Math.min(e,n-1),o=t._startPixel,a=t._endPixel,r=1e-6;let l,c=t.getPixelForTick(s);if(!(i&&(l=1===n?Math.max(c-o,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(s-1))/2,c+=s<e?l:-l,c<o-r||c>a+r)))return c}function ss(t){return t.drawTicks?t.tickLength:0}function os(t,e){if(!t.display)return 0;const i=Be(t.font,e),n=$e(t.padding);return(U(t.text)?t.text.length:1)*i.lineHeight+n.height}function as(t,e,i){let n=qt(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>
vendor: 7,114 bytes, line 63
63"left"===t?"right":"right"===t?"left":t)(n)),n}class rs extends Kn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.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(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=K(t,Number.POSITIVE_INFINITY),e=K(e,Number.NEGATIVE_INFINITY),i=K(i,Number.POSITIVE_INFINITY),n=K(n,Number.NEGATIVE_INFINITY),{min:K(t,i),max:K(e,n),minDefined:X(t),maxDefined:X(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:i,max:n};const a=this.getMatchingVisibleMetas();for(let r=0,l=a.length;r<l;++r)e=a[r].controller.getMinMax(this,t),s||(i=Math.min(i,e.min)),o||(n=Math.max(n,e.max));return i=o&&i>n?n:i,n=s&&i>n?i:n,{min:K(i,K(n,i)),max:K(n,K(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 t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){tt(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,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=function(t,e,i){const{min:n,max:s}=t,o=J(e,(s-n)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(n,-Math.abs(o)),max:a(s,o)}}(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=a<this.ticks.length;this._convertTicksToLabels(r?is(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=Qn(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){tt(this.options.afterUpdate,[this])}beforeSetDimensions(){tt(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(){tt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),tt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){tt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,n,s;for(i=0,n=t.length;i<n;i++)s=t[i],s.label=tt(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){tt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){tt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=es(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,s=e.maxRotation;let o,a,r,l=n;if(!this._isVisible()||!e.display||n>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),h=c.widest.width,d=c.highest.height,u=$t(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),h+6>o&&(o=u/(i-(t.offset?.5:1)),a=this.maxHeight-ss(t.grid)-e.padding-os(t.title,this.chart.options.font),r=Math.sqrt(h*h+d*d),l=Pt(Math.min(Math.asin($t((c.highest.height+6)/o,-1,1)),Math.asin($t(a/r,-1,1))-Math.asin($t(d/r,-1,1)))),l=Math.max(n,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){tt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){tt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=os(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=ss(s)+o):(t.height=this.maxHeight,t.width=ss(s)+o),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:o}=this._getLabelSizes(),r=2*i.padding,l=Lt(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(a){const e=i.mirror?0:h*s.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:c*s.width+h*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,n,h,c)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:s,padding:o},position:a}=this.options,r=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;r?l?(h=n*t.width,d=i*e.height):(h=i*t.height,d=n*e.width):"start"===s?d=e.width:"end"===s?h=t.width:"inner"!==s&&(h=t.width/2,d=e.width/2),this.paddingLeft=Math.max((h-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}
vendor: 2,828 bytes, line 63
63else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_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(){tt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)q(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=is(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:n,_longestTextCache:s}=this,o=[],a=[],r=Math.floor(e/es(e,i));let l,c,h,d,u,p,f,m,g,v,_,y=0,b=0;for(l=0;l<e;l+=r){if(d=t[l].label,u=this._resolveTickFontOptions(l),n.font=p=u.string,f=s[p]=s[p]||{data:{},gc:[]},m=u.lineHeight,g=v=0,q(d)||U(d)){if(U(d))for(c=0,h=d.length;c<h;++c)_=d[c],!q(_)&&!U(_)&&(g=me(n,f.data,f.gc,g,_),v+=m)}else g=me(n,f.data,f.gc,g,d),v=m;o.push(g),a.push(v),y=Math.max(g,y),b=Math.max(v,b)}!function(t,e){et(t,(t=>{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s<n;++s)delete t.data[i[s]];i.splice(0,n)}}))}(s,e);const w=o.indexOf(y),x=a.indexOf(b),k=t=>({width:o[t]||0,height:a[t]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(x),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return $t(this._alignToPixels?ve(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return He(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=function(t,e){return He(t,{scale:e,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=Lt(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,a=s?s.widest.width+o:0,r=s?s.highe
vendor: 14,485 bytes, line 63
63st.height+o:0;return this.isHorizontal()?r*i>a*n?a/i:r/n:r*n<a*i?r/i:a/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:o,border:a}=n,r=s.offset,l=this.isHorizontal(),c=this.ticks.length+(r?1:0),h=ss(s),d=[],u=a.setContext(this.getContext()),p=u.display?u.width:0,f=p/2,m=function(t){return ve(i,t,p)};let g,v,_,y,b,w,x,k,S,T,E,C;if("top"===o)g=m(this.bottom),w=this.bottom-h,k=g-f,T=m(t.top)+f,C=t.bottom;else if("bottom"===o)g=m(this.top),T=t.top,C=m(t.bottom)-f,w=g+f,k=this.top+h;else if("left"===o)g=m(this.right),b=this.right-h,x=g-f,S=m(t.left)+f,E=t.right;else if("right"===o)g=m(this.left),S=t.left,E=m(t.right)-f,b=g+f,x=this.left+h;else if("x"===e){if("center"===o)g=m((t.top+t.bottom)/2+.5);else if(G(o)){const t=Object.keys(o)[0],e=o[t];g=m(this.chart.scales[t].getPixelForValue(e))}T=t.top,C=t.bottom,w=g+f,k=w+h}else if("y"===e){if("center"===o)g=m((t.left+t.right)/2);else if(G(o)){const t=Object.keys(o)[0],e=o[t];g=m(this.chart.scales[t].getPixelForValue(e))}b=g-f,x=b-h,S=t.left,E=t.right}const M=Q(n.ticks.maxTicksLimit,c),L=Math.max(1,Math.ceil(c/M));for(v=0;v<c;v+=L){const t=this.getContext(v),e=s.setContext(t),n=a.setContext(t),o=e.lineWidth,c=e.color,h=n.dash||[],u=n.dashOffset,p=e.tickWidth,f=e.tickColor,m=e.tickBorderDash||[],g=e.tickBorderDashOffset;_=ns(this,v,r),void 0!==_&&(y=ve(i,_,o),l?b=x=S=E=y:w=k=T=C=y,d.push({tx1:b,ty1:w,tx2:x,ty2:k,x1:S,y1:T,x2:E,y2:C,width:o,color:c,borderDash:h,borderDashOffset:u,tickWidth:p,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(t){const e=this.axis,i=this.options,{position:n,ticks:s}=i,o=this.isHorizontal(),a=this.ticks,{align:r,crossAlign:l,padding:c,mirror:h}=s,d=ss(i.grid),u=d+c,p=h?-c:u,f=-Lt(this.labelRotation),m=[];let g,v,_,y,b,w,x,k,S,T,E,C,M="middle";if("top"===n)w=this.bottom-p,x=this._getXAxisLabelAlignment();else if("bottom"===n)w=this.top+p,x=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,b=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,b=t.x}else if("x"===e){if("center"===n)w=(t.top+t.bottom)/2+u;else if(G(n)){const t=Object.keys(n)[0],e=n[t];w=this.chart.scales[t].getPixelForValue(e)+u}x=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)b=(t.left+t.right)/2-u;else if(G(n)){const t=Object.keys(n)[0],e=n[t];b=this.chart.scales[t].getPixelForValue(e)}x=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===r?M="top":"end"===r&&(M="bottom"));const L=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){_=a[g],y=_.label;const t=s.setContext(this.getContext(g));k=this.getPixelForTick(g)+s.labelOffset,S=this._resolveTickFontOptions(g),T=S.lineHeight,E=U(y)?y.length:1;const e=E/2,i=t.color,r=t.textStrokeColor,c=t.textStrokeWidth;let d,u=x;if(o?(b=k,"inner"===x&&(u=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),C="top"===n?"near"===l||0!==f?-E*T+T/2:"center"===l?-L.highest.height/2-e*T+T:-L.highest.height+T/2:"near"===l||0!==f?T/2:"center"===l?L.highest.height/2-e*T:L.highest.height-E*T,h&&(C*=-1),0!==f&&!t.showLabelBackdrop&&(b+=T/2*Math.sin(f))):(w=k,C=(1-E)*T/2),t.showLabelBackdrop){const e=$e(t.backdropPadding),i=L.heights[g],n=L.widths[g];let s=C-e.top,o=0-e.left;switch(M){case"middle":s-=i/2;break;case"bottom":s-=i}switch(x){case"center":o-=n/2;break;case"right":o-=n;break;case"inner":g===v-1?o-=n:g>0&&(o-=n/2)}d={left:o,top:s,width:n+e.width,height:i+e.height,color:t.backdropColor}}m.push({label:y,font:S,textOffset:C,options:{rotation:f,color:i,strokeColor:r,strokeWidth:c,textAlign:u,textBaseline:M,translation:[b,w],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Lt(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,o=t+s,a=this._getLabelSizes().widest.width;let r,l;return"left"===e?n?(l=this.right+s,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l+=a)):(l=this.right-o,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l=this.left)):"right"===e?n?(l=this.left+s,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l-=a)):(l=this.left+o,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:n,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const a=(t,e,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(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s<o;++s){const t=n[s];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:n}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;const a=n.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let l,c,h,d;this.isHorizontal()?(l=ve(t,this.left,o)-o/2,c=ve(t,this.right,a)+a/2,h=d=r):(h=ve(t,this.top,o)-o/2,d=ve(t,this.bottom,a)+a/2,l=c=r),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(l,h),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&xe(e,i);const n=this.getLabelItems(t);for(const t of n){const i=t.options,n=t.font;Me(e,t.label,0,t.textOffset,n,i)}i&&ke(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;const s=Be(i.font),o=$e(i.padding),a=i.align;let r=s.lineHeight/2;"bottom"===e||"center"===e||G(e)?(r+=o.bottom,U(i.text)&&(r+=s.lineHeight*(i.text.length-1))):r+=o.top;const{titleX:l,titleY:c,maxWidth:h,rotation:d}=function(t,e,i,n){const{top:s,left:o,bottom:a,right:r,chart:l}=t,{chartArea:c,scales:h}=l;let d,u,p,f=0;const m=a-s,g=r-o;if(t.isHorizontal()){if(u=Ut(n,o,r),G(i)){const t=Object.keys(i)[0],n=i[t];p=h[t].getPixelForValue(n)+m-e}else p="center"===i?(c.bottom+c.top)/2+m-e:ts(t,i,e);d=r-o}else{if(G(i)){const t=Object.keys(i)[0],n=i[t];u=h[t].getPixelForValue(n)-g+e}else u="center"===i?(c.left+c.right)/2-g+e:ts(t,i,e);p=Ut(n,a,s),f="left"===i?-bt:bt}return{titleX:u,titleY:p,maxWidth:d,rotation:f}}(this,r,e,a);Me(t,i.text,0,0,s,{color:i.color,maxWidth:h,rotation:d,textAlign:as(a,e,n),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=Q(t.grid&&t.grid.z,-1),n=Q(t.border&&t.border.z,0);return this._isVisible()&&this.draw===rs.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[i]===this.id&&(!t||o.type===t)&&n.push(o)}return n}_resolveTickFontOptions(t){return Be(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class ls{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;var n;"id"in(n=e)&&"defaults"in n&&(i=this.register(e));const s=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,function(t,e,i){const n=at(Object.create(null),[i?fe.get(i):{},fe.get(e),t.defaults]);fe.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const n=i.split("."),s=n.pop(),o=[t].concat(n).join("."),a=e[i].split("."),r=a.pop(),l=a.join(".");fe.route(o,s,l,r)}))}(e,t.defaultRoutes),t.descriptors&&fe.describe(e,t.descriptors)}(t,a,i),this.override&&fe.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in fe[n]&&(delete fe[n][i],this.override&&delete he[i])}}var cs=new class{constructor(){this.controllers=new ls(Qi,"datasets",!0),this.elements=new ls(Kn,"elements"),this.plugins=new ls(Object,"plugins"),this.scales=new ls(rs,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):et(e,(e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,i){const n=dt(t);tt(i["before"+n],[],i),e[t](i),tt(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+i+".");return n}};class hs{constructor(){this._init=void 0}notify(t,e,i,n){if("beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),void 0===this._init)return;const s=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(s,t,e,i);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),o}_notify(t,e,i,n){n=n||{};for(const s of t){const t=s.plugin;if(!1===tt(t[i],[e,n,s.options],t)&&n.cancelable)return!1}return!0}invalidate(){q(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,n=Q(i.options&&i.options.plugins,{}),s=function(t){const e={},i=[],n=Object.keys(cs.plugins.items);for(let t=0;t<n.length;t++)i.push(cs.getPlugin(n[t]));const s=t.plugins||[];for(let t=0;t<s.length;t++){const n=s[t];-1===i.indexOf(n)&&(i.push(n),e[n.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==n||e?function(t,{plugins:e,localIds:i},n,s){const o=[],a=t.getContext();for(const r of e){const e=r.id,l=ds(n[e],s);null!==l&&o.push({plugin:r,options:us(t.config,{plugin:r,local:i[e]},l,a)})}return o}(t,s,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function ds(t,e){return e||!1!==t?!0===t?{}:t:null}function us(t,{plugin:e,local:i},n,s){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(n,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ps(t,e){const i=fe.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function fs(t){if("x"===t||"y"===t||"r"===t)return t}function ms(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function gs(t,...e){if(fs(t))return t;for(const i of e){const e=i.axis||ms(i.position)||t.length>1&&fs(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function vs(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function _s(t,e){const i=he[t.type]||{scales:{}},n=e.scales||{},s=ps(t.type,e),o=Object.create(null);return Object.keys(n).forEach((e=>{const a=n[e];if(!G(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const r=gs(e,a,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(i.length)return vs(t,"x",i[0])||vs(t,"y",i[0])}return{}}(e,t),fe.scales[a.type]),l=function(t,e){return t===e?"_index_":"_value_"}(r,s),c=i.scales||{};o[e]=rt(Object.create(null),[{axis:r},a,c[r],c[l]])})),t.data.datasets.forEach((i=>{const s=i.type||t.type,a=i.indexAxis||ps(s,e),r=(he[s]||{}).scales||{};Object.keys(r).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,a),s=i[e+"AxisID"]||e;o[s]=o[s]||Object.create(null),rt(o[s],[{axis:e},n[s],r[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];rt(e,[fe.scales[e.type],fe.scale])})),o}function ys(t){const e=t.options||(t.options={});e.plugins=Q(e.plugins,{}),e.scales=_s(t,e)}function bs(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ws=new Map,xs=new Set;function ks(t,e){let i=ws.get(t);
vendor: 6,556 bytes, line 63
63return i||(i=e(),ws.set(t,i),xs.add(i)),i}const Ss=(t,e,i)=>{const n=ht(e,i);void 0!==n&&t.add(n)};class Ts{constructor(t){var e;this._config=((e=(e=t)||{}).data=bs(e.data),ys(e),e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=bs(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ys(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ks(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return ks(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return ks(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return ks(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return(!n||e)&&(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:s}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>Ss(r,t,e)))),e.forEach((t=>Ss(r,n,t))),e.forEach((t=>Ss(r,he[s]||{},t))),e.forEach((t=>Ss(r,fe,t))),e.forEach((t=>Ss(r,de,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),xs.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,he[e]||{},fe.datasets[e]||{},{type:e},fe,de]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=Es(this._resolverCache,t,n);let r=o;(function(t,e){const{isScriptable:i,isIndexable:n}=We(t);for(const s of e){const e=i(s),o=n(s),a=(o||e)&&t[s];if(e&&(pt(a)||Cs(a))||o&&U(a))return!0}return!1})(o,e)&&(s.$shared=!1,r=Fe(o,i=pt(i)?i():i,this.createResolver(t,i,a)));for(const t of e)s[t]=r[t];return s}createResolver(t,e,i=[""],n){const{resolver:s}=Es(this._resolverCache,t,i);return G(e)?Fe(s,e,void 0,n):s}}function Es(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let o=n.get(s);return o||(o={resolver:je(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(s,o)),o}const Cs=t=>G(t)&&Object.getOwnPropertyNames(t).some((e=>pt(t[e]))),Ms=["top","bottom","left","right","chartArea"];function Ls(t,e){return"top"===t||"bottom"===t||-1===Ms.indexOf(t)&&"x"===e}function Ps(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function Ds(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),tt(i&&i.onComplete,[t],e)}function As(t){const e=t.chart,i=e.options.animation;tt(i&&i.onProgress,[t],e)}function Os(t){return li()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Is={},zs=t=>{const e=Os(t);return Object.values(Is).filter((t=>t.canvas===e)).pop()};function Ns(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;if(n>=e){const o=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=o)}}}class $s{static defaults=fe;static instances=Is;static overrides=he;static registry=cs;static version="4.5.1";static getChart=zs;static register(...t){cs.add(...t),Bs()}static unregister(...t){cs.remove(...t),Bs()}constructor(t,e){const i=this.config=new Ts(e),n=Os(t),s=zs(n);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());var a;this.platform=new(i.platform||(a=n,!li()||typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas?zn:Xn)),this.platform.updateConfig(i);const r=this.platform.acquireContext(n,o.aspectRatio),l=r&&r.canvas,c=l&&l.height,h=l&&l.width;this.id=V(),this.ctx=r,this.canvas=l,this.width=h,this.height=c,this._options=o,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 hs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],Is[this.id]=this,r&&l?(Ni.listen(this,"complete",Ds),Ni.listen(this,"progress",As),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:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:s}=this;return q(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return cs}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():_i(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return _e(this.canvas,this.ctx),this}stop(){return Ni.stop(this),this}resize(t,e){Ni.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,s),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,_i(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),tt(i.onResize,[this,o],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){et(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const i=e[t],n=gs(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),et(s,(e=>{const s=e.options,o=s.id,a=gs(o,s),r=Q(s.type,e.dtype);(void 0===s.position||Ls(s.position,a)!==Ls(e.dposition))&&(s.position=e.dposition),n[o]=!0;let l=null;o in i&&i[o].type===r?l=i[o]:(l=new(cs.getScale(r))({id:o,type:r,ctx:this.ctx,
vendor: 5,961 bytes, line 63
63chart:this}),i[l.id]=l),l.init(s,t)})),et(n,((t,e)=>{t||delete i[e]})),et(i,(t=>{On.configure(this,t,t.options),On.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(Ps("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i<n;i++){const n=e[i];let s=this.getDatasetMeta(i);const o=n.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=o,s.indexAxis=n.indexAxis||ps(o,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 e=cs.getController(o),{datasetElementType:n,dataElementType:a}=fe.datasets[o];Object.assign(e,{dataElementType:cs.getElement(a),datasetElementType:n&&cs.getElement(n)}),s.controller=new e(this,i),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){et(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!n&&-1===s.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),n||et(s,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ps("z","_idx"));const{_active:a,_lastEvent:r}=this;r?this._eventHandler(r,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){et(this.scales,(t=>{On.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!ft(e,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of e)Ns(t,n,"_removeElements"===i?-s:s)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let t=1;t<e;t++)if(!ft(n,i(t)))return;return Array.from(n).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;On.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],et(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,pt(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),n={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ni.has(this)?this.attached&&!Ni.running(this)&&Ni.start(this):(this.draw(),Ds({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];(!t||s.visible)&&i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i={meta:t,index:t.index,cancelable:!0},n=zi(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(n&&xe(e,n),t.controller.draw(),n&&ke(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return we(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=bn.modes[e];return"function"==typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter((t=>t&&t._dataset===e)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=He(null,{chart:this,type:"chart"}))}
vendor: 10,163 bytes, line 63
63getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,n);ut(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Ni.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),_e(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Is[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};et(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{n("attach",a),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){et(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},et(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,a,r;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),a=0,r=t.length;a<r;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[n+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!it(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),a=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:s}=this,o=e,a=this._getActiveElements(t,n,i,o),r="mouseup"===(c=t).type||"click"===c.type||"contextmenu"===c.type,l=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,r);var c;i&&(this._lastEvent=null,tt(s.onHover,[t,a,this],this),r&&tt(s.onClick,[t,a,this],this));const h=!it(a,n);return(h||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,n)}}function Bs(){return et($s.instances,(t=>t._plugins.invalidate()))}function Rs(t,e,i,n){const s=function(t){return Ie(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),o=(i-e)/2,a=Math.min(o,n*e/2),r=t=>{const e=(i-Math.min(o,t))*n/2;return $t(t,0,Math.min(o,e))};return{outerStart:r(s.outerStart),outerEnd:r(s.outerEnd),innerStart:$t(s.innerStart,0,a),innerEnd:$t(s.innerEnd,0,a)}}function Hs(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function js(t,e,i,n,s,o){const{x:a,y:r,startAngle:l,pixelMargin:c,innerRadius:h}=e,d=Math.max(e.outerRadius+n+i-c,0),u=h>0?h+n+i+c:0;let p=0;const f=s-l;if(n){const t=((h>0?h-n:0)+(d>0?d-n:0))/2;p=(f-(0!==t?f*t/(t+n):f))/2}const m=(f-Math.max(.001,f*d-i/mt)/d)/2,g=l+m+p,v=s-m-p,{outerStart:_,outerEnd:y,innerStart:b,innerEnd:w}=Rs(e,u,d,v-g),x=d-_,k=d-y,S=g+_/x,T=v-y/k,E=u+b,C=u+w,M=g+b/E,L=v-w/C;if(t.beginPath(),o){const e=(S+T)/2;if(t.arc(a,r,d,S,e),t.arc(a,r,d,e,T),y>0){const e=Hs(k,T,a,r);t.arc(e.x,e.y,y,T,v+bt)}const i=Hs(C,v,a,r);if(t.lineTo(i.x,i.y),w>0){const e=Hs(C,L,a,r);t.arc(e.x,e.y,w,v+bt,L+Math.PI)}const n=(v-w/u+(g+b/u))/2;if(t.arc(a,r,u,v-w/u,n,!0),t.arc(a,r,u,n,g+b/u,!0),b>0){const e=Hs(E,M,a,r);t.arc(e.x,e.y,b,M+Math.PI,g-bt)}const s=Hs(x,g,a,r);if(t.lineTo(s.x,s.y),_>0){const e=Hs(x,S,a,r);t.arc(e.x,e.y,_,g-bt,S)}}else{t.moveTo(a,r);const e=Math.cos(S)*d+a,i=Math.sin(S)*d+r;t.lineTo(e,i);const n=Math.cos(T)*d+a,s=Math.sin(T)*d+r;t.lineTo(n,s)}t.closePath()}function Fs(t,e,i,n,s){const{fullCircles:o,startAngle:a,circumference:r,options:l}=e,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:u,borderRadius:p}=l,f="inner"===l.borderAlign;if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=u,f?(t.lineWidth=2*c,t.lineJoin=h||"round"):(t.lineWidth=c,t.lineJoin=h||"bevel");let m=e.endAngle;if(o){js(t,e,i,n,m,s);for(let e=0;e<o;++e)t.stroke();isNaN(r)||(m=a+(r%gt||gt))}f&&function(t,e,i){const{startAngle:n,pixelMargin:s,x:o,y:a,outerRadius:r,innerRadius:l}=e;let c=s/r;t.beginPath(),t.arc(o,a,r,n-c,i+c),l>s?(c=s/l,t.arc(o,a,l,i+c,n-c,!0)):t.arc(o,a,s,i+bt,n-bt),t.closePath(),t.clip()}(t,e,m),l.selfJoin&&m-a>=mt&&0===p&&"miter"!==h&&function(t,e,i){const{startAngle:n,x:s,y:o,outerRadius:a,innerRadius:r,options:l}=e,{borderWidth:c,borderJoinStyle:h}=l,d=Math.min(c/a,zt(n-i));if(t.beginPath(),t.arc(s,o,a-c/2,n+d/2,i-d/2),r>0){const e=Math.min(c/r,zt(n-i));t.arc(s,o,r+c/2,i-e/2,n+e/2,!0)}else{const e=Math.min(c/2,a*zt(n-i));if("round"===h)t.arc(s,o,e,i-mt/2,n+mt/2,!0);else if("bevel"===h){const a=2*e*e,r=-a*Math.cos(i+mt/2)+s,l=-a*Math.sin(i+mt/2)+o,c=a*Math.cos(n+mt/2)+s,h=a*Math.sin(n+mt/2)+o;t.lineTo(r,l),t.lineTo(c,h)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,m),o||(js(t,e,i,n,m,s),t.stroke())}function Ws(t,e,i=e){t.lineCap=Q(i.borderCapStyle,e.borderCapStyle),t.setLineDash(Q(i.borderDash,e.borderDash)),t.lineDashOffset=Q(i.borderDashOffset,e.borderDashOffset),t.lineJoin=Q(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Q(i.borderWidth,e.borderWidth),t.strokeStyle=Q(i.borderColor,e.borderColor)}function Ys(t,e,i){t.lineTo(i.x,i.y)}function Zs(t,e,i={}){const n=t.length,{start:s=0,end:o=n-1}=i,{start:a,end:r}=e,l=Math.max(s,a),c=Math.min(o,r),h=s<a&&o<a||s>r&&o>r;return{count:n,start:l,loop:e.loop,ilen:c<l&&!h?n+c-l:c-l}}function Vs(t,e,i,n){const{points:s,options:o}=e,{count:a,start:r,loop:l,ilen:c}=Zs(s,i,n),h=function(t){return t.stepped?Se:t.tension||"monotone"===t.cubicInterpolationMode?Te:Ys}(o);let d,u,p,{move:f=!0,reverse:m}=n||{};for(d=0;d<=c;++d)u=s[(r+(m?c-d:d))%a],!u.skip&&(f?(t.moveTo(u.x,u.y),f=!1):h(t,p,u,m,o.stepped),p=u);return l&&(u=s[(r+(m?c:0))%a],h(t,p,u,m,o.stepped)),!!l}function qs(t,e,i,n){const s=e.points,{count:o,start:a,ilen:r}=Zs(s,i,n),{move:l=!0,reverse:c}=n||{};let h,d,u,p,f,m,g=0,v=0;const _=t=>(a+(c?r-t:t))%o,y=()=>{p!==f&&(t.lineTo(g,f),t.lineTo(g,p),t.lineTo(g,m))};for(l&&(d=s[_(0)],t.moveTo(d.x,d.y)),h=0;h<=r;++h){if(d=s[_(h)],d.skip)continue;const e=d.x,i=d.y,n=0|e;n===u?(i<p?p=i:i>f&&(f=i),g=(v*g+e)/++v):(y(),t.lineTo(e,i),u=n,v=0,p=f=i),m=i}y()}function Us(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?Vs:qs}const Gs="function"==typeof Path2D;function Xs(t,e,i,n){Gs&&!e.options.segment?function(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),Ws(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:o}=e,a=Us(e);for(const r of s)Ws(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class Ks extends Kn{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){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,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;ri(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:a,end:r}
vendor: 5,069 bytes, line 63
63=function(t,e,i,n){let s=0,o=e-1;if(i&&!n)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,i&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(i,s,o,n);return Di(t,!0===n?[{start:a,end:r,loop:o}]:function(t,e,i,n){const s=t.length,o=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%s];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%s,end:(a-1)%s,loop:n}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&o.push({start:e%s,end:r%s,loop:n}),o}(i,a,r<a?r+s:r,!!t._fullLoop&&0===a&&r===s-1),i,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],s=this.points,o=Pi(this,{property:e,start:n,end:n});if(!o.length)return;const a=[],r=(l=i).stepped?xi:l.tension||"monotone"===l.cubicInterpolationMode?ki:wi;var l;let c,h;for(c=0,h=o.length;c<h;++c){const{start:l,end:h}=o[c],d=s[l],u=s[h];if(d===u){a.push(d);continue}const p=r(d,u,Math.abs((n-d[e])/(u[e]-d[e])),i.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return Us(this)(t,this,e,i)}path(t,e,i){const n=this.segments,s=Us(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of n)o&=s(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,n){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),Xs(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Qs(t,e,i,n){const s=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<s.radius+s.hitRadius}function Js(t,e){const{x:i,y:n,base:s,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let r,l,c,h,d;return t.horizontal?(d=a/2,r=Math.min(i,s),l=Math.max(i,s),c=n-d,h=n+d):(d=o/2,r=i-d,l=i+d,c=Math.min(n,s),h=Math.max(n,s)),{left:r,top:c,right:l,bottom:h}}function to(t,e,i,n){return t?0:$t(e,i,n)}function eo(t){const e=Js(t),i=e.right-e.left,n=e.bottom-e.top,s=function(t,e,i){const n=t.options.borderWidth,s=t.borderSkipped,o=ze(n);return{t:to(s.top,o.top,0,i),r:to(s.right,o.right,0,e),b:to(s.bottom,o.bottom,0,i),l:to(s.left,o.left,0,e)}}(t,i/2,n/2),o=function(t,e,i){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,o=Ne(s),a=Math.min(e,i),r=t.borderSkipped,l=n||G(s);return{topLeft:to(!l||r.top||r.left,o.topLeft,0,a),topRight:to(!l||r.top||r.right,o.topRight,0,a),bottomLeft:to(!l||r.bottom||r.left,o.bottomLeft,0,a),bottomRight:to(!l||r.bottom||r.right,o.bottomRight,0,a)}}(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n,radius:o},inner:{x:e.left+s.l,y:e.top+s.t,w:i-s.l-s.r,h:n-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function io(t,e,i,n){const s=null===e,o=null===i,a=t&&!(s&&o)&&Js(t,n);return a&&(s||Bt(e,a.left,a.right))&&(o||Bt(i,a.top,a.bottom))}function no(t,e){t.rect(e.x,e.y,e.w,e.h)}function so(t,e,i={}){const n=t.x!==i.x?-e:0,s=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-n,a=(t.y+t.h!==i.y+i.h?e:0)-s;return{x:t.x+n,y:t.y+s,w:t.w+o,h:t.h+a,radius:t.radius}}var oo=Object.freeze({__proto__:null,ArcElement:class extends Kn{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){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,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:s,distance:o}=At(n,{x:t,y:e}),{startAngle:a,endAngle:r,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,u=Q(h,r-a),p=Nt(s,a,r)&&a!==r,f=u>=gt||p,m=Bt(o,l+d,c+d);return f&&m}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:r,spacing:l}=this.options,c=(n+s)/2,h=(o+a+l+r)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/4,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>gt?Math.floor(i/gt):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*n,Math.sin(a)*n);const r=n*(1-Math.sin(Math.min(mt,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,
vendor: 14,538 bytes, line 63
63i,n,s){const{fullCircles:o,startAngle:a,circumference:r}=e;let l=e.endAngle;if(o){js(t,e,i,n,l,s);for(let e=0;e<o;++e)t.fill();isNaN(r)||(l=a+(r%gt||gt))}js(t,e,i,n,l,s),t.fill()}(t,this,r,s,o),Fs(t,this,r,s,o),t.restore()}},BarElement:class extends Kn{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){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,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:n}}=this,{inner:s,outer:o}=eo(this),a=(r=o.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?Le:no;var r;t.save(),(o.w!==s.w||o.h!==s.h)&&(t.beginPath(),a(t,so(o,e,s)),t.clip(),a(t,so(s,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,so(s,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return io(this,t,e,i)}inXRange(t,e){return io(this,t,null,e)}inYRange(t,e){return io(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+n)/2:e,y:s?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},LineElement:Ks,PointElement:class extends Kn{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Qs(this,t,"x",e)}inYRange(t,e){return Qs(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!we(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,ye(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}});const ao=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],ro=ao.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function lo(t){return ao[t%ao.length]}function co(t){return ro[t%ro.length]}function ho(t){let e=0;return(i,n)=>{const s=t.getDatasetMeta(n).controller;s instanceof ln?e=function(t,e){return t.backgroundColor=t.data.map((()=>lo(e++))),e}(i,e):s instanceof cn?e=function(t,e){return t.backgroundColor=t.data.map((()=>co(e++))),e}(i,e):s&&(e=function(t,e){return t.borderColor=lo(e),t.backgroundColor=co(e),++e}(i,e))}}function uo(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var po={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:n},options:s}=t.config,{elements:o}=s,a=uo(n)||function(t){return t&&(t.borderColor||t.backgroundColor)}(s)||o&&uo(o)||"rgba(0,0,0,0.1)"!==fe.borderColor||"rgba(0,0,0,0.1)"!==fe.backgroundColor;if(!i.forceOverride&&a)return;const r=ho(t);n.forEach(r)}};function fo(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function mo(t){t.data.datasets.forEach((t=>{fo(t)}))}var go={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void mo(t);const n=t.width;t.data.datasets.forEach(((e,s)=>{const{_data:o,indexAxis:a}=e,r=t.getDatasetMeta(s),l=o||e.data;if("y"===Re([a,t.options.indexAxis])||!r.controller.supportsDecimation)return;const c=t.scales[r.xAxisID];if("linear"!==c.type&&"time"!==c.type||t.options.parsing)return;let h,{start:d,count:u}=function(t,e){const i=e.length;let n,s=0;const{iScale:o}=t,{min:a,max:r,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=$t(Ht(e,o.axis,a).lo,0,i-1)),n=c?$t(Ht(e,o.axis,r).hi+1,s,i)-s:i-s,{start:s,count:n}}(r,l);if(u<=(i.threshold||4*n))fo(e);else{switch(q(o)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":h=function(t,e,i,n,s){const o=s.samples||n;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let l=0;const c=e+i-1;let h,d,u,p,f,m=e;for(a[l++]=t[m],h=0;h<o-2;h++){let n,s=0,o=0;const c=Math.floor((h+1)*r)+1+e,g=Math.min(Math.floor((h+2)*r)+1,i)+e,v=g-c;for(n=c;n<g;n++)s+=t[n].x,o+=t[n].y;s/=v,o/=v;const _=Math.floor(h*r)+1+e,y=Math.min(Math.floor((h+1)*r)+1,i)+e,{x:b,y:w}=t[m];for(u=p=-1,n=_;n<y;n++)p=.5*Math.abs((b-s)*(t[n].y-w)-(b-t[n].x)*(o-w)),p>u&&(u=p,d=t[n],f=n);a[l++]=d,m=f}return a[l++]=t[c],a}(l,d,u,n,i);break;case"min-max":h=function(t,e,i,n){let s,o,a,r,l,c,h,d,u,p,f=0,m=0;const g=[],v=e+i-1,_=t[e].x,y=t[v].x-_;for(s=e;s<e+i;++s){o=t[s],a=(o.x-_)/y*n,r=o.y;const e=0|a;if(e===l)r<u?(u=r,c=s):r>p&&(p=r,h=s),f=(m*f+o.x)/++m;else{const i=s-1;if(!q(c)&&!q(h)){const e=Math.min(c,h),n=Math.max(c,h);e!==d&&e!==i&&g.push({...t[e],x:f}),n!==d&&n!==i&&g.push({...t[n],x:f})}s>0&&i!==d&&g.push(t[i]),g.push(o),l=e,m=0,u=p=r,c=h=d=s}}return g}(l,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=h}}))},destroy(t){mo(t)}};function vo(t,e,i,n){if(n)return;let s=e[t],o=i[t];return"angle"===t&&(s=zt(s),o=zt(o)),{property:t,start:s,end:o}}function _o(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function yo(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function bo(t,e){let i=[],n=!1;return U(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},s=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=_o(t,e,s);const a=s[t],r=s[e];null!==n?(o.push({x:a.x,y:n}),o.push({x:r.x,y:n})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new Ks({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function wo(t){return t&&!1!==t.fill}function xo(t,e,i){let n=t[e].fill;const s=[e];let o;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!X(n))return n;if(o=t[n],!o)return!1;if(o.visible)return n;s.push(n),n=o.fill}return!1}function ko(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=Q(i&&i.target,i);return void 0===n&&(n=!!e.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(G(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return X(s)&&Math.floor(s)===s?function(t,e,i,n){return("-"===t||"+"===t)&&(i=e+i),!(i===e||i<0||i>=n)&&i}(n[0],e,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function So(t,e,i){const n=[];for(let s=0;s<i.length;s++){const o=i[s],{first:a,last:r,point:l}=To(o,e,"x");if(!(!l||a&&r))if(a)n.unshift(l);else if(t.push(l),!r)break}t.push(...n)}function To(t,e,i){const n=t.interpolate(e,i);if(!n)return{};const s=n[i],o=t.segments,a=t.points;let r=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],n=a[e.start][i],c=a[e.end][i];if(Bt(s,n,c)){r=s===n,l=s===c;break}}return{first:r,last:l,point:n}}class Eo{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:s,radius:o}=this;return e=e||{start:0,end:gt},t.arc(n,s,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,s=t.angle;return{x:e+Math.cos(s)*n,y:i+Math.sin(s)*n,angle:s}}}function Co(t){const{chart:e,fill:i,line:n}=t;if(X(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:n}=t,s=[],o=n.segments,a=n.points,r=function(t,e){const i=[],n=t.getMatchingVisibleMetas("line");for(let t=0;t<n.length;t++){const s=n[t];if(s.index===e)break;s.hidden||i.unshift(s.dataset)}return i}(e,i);r.push(bo({x:null,y:e.bottom},n));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)So(s,a[t],r)}return new Ks({points:s,options:{}})}(t);if("shape"===i)return!0;const s=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,n=e.options,s=e.getLabels().length,o=n.reverse?e.max:e.min,a=function(t,e,i){let n;return n="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:G(t)?t.value:e.getBaseValue(),n}(i,e,o),r=[];if(n.grid.circular){const t=e.getPointPositionForValue(0,o);return new Eo({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<s;++t)r.push(e.getPointPositionForValue(t,a));return r}(t):function(t){const{scale:e={},fill:i}=t,n=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:G(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(X(n)){const t=e.isHorizontal();return{x:t?n:null,y:t?null:n}}return null}(t)}(t);return s instanceof Eo?s:bo(s,n)}function Mo(t,e,i){const n=Co(e),{chart:s,index:o,line:a,scale:r,axis:l}=e,c=a.options,h=c.fill,d=c.backgroundColor,{above:u=d,below:p=d}=h||{},f=s.getDatasetMeta(o),m=zi(s,f);n&&a.points.length&&(xe(t,i),function(t,e){const{line:i,target:n,above:s,below:o,area:a,scale:r,clip:l}=e,c=i._loop?"angle":e.axis;t.save();let h=o;o!==s&&("x"===c?(Lo(t,n,a.top),Do(t,{line:i,target:n,color:s,scale:r,property:c,clip:l}),t.restore(),t.save(),Lo(t,n,a.bottom)):"y"===c&&(Po(t,n,a.left),Do(t,{line:i,target:n,color:o,scale:r,property:c,clip:l}),t.restore(),t.save(),Po(t,n,a.right),h=s)),Do(t,{line:i,target:n,color:h,scale:r,property:c,clip:l}),t.restore()}(t,{line:a,target:n,above:u,below:p,area:i,scale:r,axis:l,clip:m}),ke(t))}function Lo(t,e,i){const{segments:n,points:s}=e;let o=!0,a=!1;t.beginPath();for(const r of n){const{start:n,end:l}=r,c=s[n],h=s[_o(n,l,s)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(c.x,i),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(h.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Po(t,e,i){const{segments:n,points:s}=e;let o=!0,a=!1;t.beginPath();for(const r of n){const{start:n,end:l}=r,c=s[n],h=s[_o(n,l,s)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(i,c.y),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(i,h.y)}t.lineTo(i,e.first().y),t.closePath(),t.clip()}function Do(t,e){const{line:i,target:n,property:s,color:o,scale:a,clip:r}=e,l=function(t,e,i){const n=t.segments,s=t.points,o=e.points,a=[];for(const t of n){let{start:n,end:r}=t;r=_o(n,r,s);const l=vo(i,s[n],s[r],t.loop);if(!e.segments){a.push({source:t,target:l,start:s[n],end:s[r]});continue}const c=Pi(e,l);for(const e of c){const n=vo(i,o[e.start],o[e.end],e.loop),r=Li(t,s,n);for(const t of r)a.push({source:t,target:e,start:{[i]:yo(l,n,"start",Math.max)},end:{[i]:yo(l,n,"end",Math.min)}})}}return a}(i,n,s);for(const{source:e,target:c,start:h,end:d}of l){const{style:{backgroundColor:l=o}={}}=e,u=!0!==n;t.save(),t.fillStyle=l,Ao(t,a,r,u&&vo(s,h,d)),t.beginPath();const p=!!i.pathSegment(t,e);let f;if(u){p?t.closePath():Oo(t,n,d,s);const e=!!n.pathSegment(t,c,{move:p,reverse:!0});f=p&&e,f||Oo(t,n,h,s)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function Ao(t,e,i,n){const s=e.chart.chartArea,{property:o,start:a,end:r}=n||{};if("x"===o||"y"===o){let e,n,l,c;"x"===o?(e=a,n=s.top,l=r,c=s.bottom):(e=s.left,n=a,l=s.right,c=r),t.beginPath(),i&&(e=Math.max(e,i.left),l=Math.min(l,i.right),n=Math.max(n,i.top),c=Math.min(c,i.bottom)),t.rect(e,n,l-e,c-n),t.clip()}}function Oo(t,e,i,n){const s=e.interpolate(i,n);s&&t.lineTo(s.x,s.y)}var Io={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,s=[];let o,a,r,l;for(a=0;a<n;++a)o=t.getDatasetMeta(a),r=o.dataset,l=null,r&&r.options&&r instanceof Ks&&(l={visible:t.isDatasetVisible(a),index:a,fill:ko(r,a,n),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=l,s.push(l);for(a=0;a<n;++a)l=s[a],l&&!1!==l.fill&&(l.fill=xo(s,a,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,s=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),n&&i.fill&&Mo(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;wo(i)&&Mo(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;!wo(n)||"beforeDatasetDraw"!==i.drawTime||Mo(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const zo=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class No extends Kn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e,i){this.maxWidth=t,this.maxHeight=e,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 t=this.options.labels||{};let e=tt(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=Be(i.font),s=n.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:r}=zo(i,s);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,s,a,r)+10):(c=this.maxHeight,l=this._fitCols(o,n,a,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+a;let h=t;s.textAlign="left",s.textBaseline="middle";let d=-1,u=-c;
vendor: 5,684 bytes, line 63
63return this.legendItems.forEach(((t,p)=>{const f=i+e/2+s.measureText(t.text).width;(0===p||l[l.length-1]+f+2*a>o)&&(h+=c,l[l.length-(p>0?0:1)]=0,u+=c,d++),r[p]={left:0,top:u,row:d,width:f,height:n},l[l.length-1]+=f+a})),h}_fitCols(t,e,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let h=a,d=0,u=0,p=0,f=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:m,itemHeight:g}=function(t,e,i,n,s){const o=function(t,e,i,n){let s=t.text;return s&&"string"!=typeof s&&(s=s.reduce(((t,e)=>t.length>e.length?t:e))),e+i.size/2+n.measureText(s).width}(n,t,e,i),a=function(t,e,i){let n=t;return"string"!=typeof e.text&&(n=$o(e,i)),n}(s,n,e.lineHeight);return{itemWidth:o,itemHeight:a}}(i,e,s,t,n);o>0&&u+g+2*a>c&&(h+=d+a,l.push({width:d,height:u}),p+=d+a,f++,d=u=0),r[o]={left:p,top:u,col:f,width:m,height:g},d=Math.max(d,m),u+=g+a})),h+=d,l.push({width:d,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,o=Si(s,this.left,this.width);if(this.isHorizontal()){let s=0,a=Ut(i,this.left+n,this.right-this.lineWidths[s]);for(const r of e)s!==r.row&&(s=r.row,a=Ut(i,this.left+n,this.right-this.lineWidths[s])),r.top+=this.top+t+n,r.left=o.leftForLtr(o.x(a),r.width),a+=r.width+n}else{let s=0,a=Ut(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const r of e)r.col!==s&&(s=r.col,a=Ut(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),r.top=a,r.left+=this.left+n,r.left=o.leftForLtr(o.x(r.left),r.width),a+=r.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;xe(t,this),this._draw(),ke(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:o}=t,a=fe.color,r=Si(t.rtl,this.left,this.width),l=Be(o.font),{padding:c}=o,h=l.size,d=h/2;let u;this.drawTitle(),n.textAlign=r.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:p,boxHeight:f,itemHeight:m}=zo(o,h),g=this.isHorizontal(),v=this._computeTitleHeight();u=g?{x:Ut(s,this.left+c,this.right-i[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:Ut(s,this.top+v+c,this.bottom-e[0].height),line:0},Ti(this.ctx,t.textDirection);const _=m+c;this.legendItems.forEach(((y,b)=>{n.strokeStyle=y.fontColor,n.fillStyle=y.fontColor;const w=n.measureText(y.text).width,x=r.textAlign(y.textAlign||(y.textAlign=o.textAlign)),k=p+d+w;let S=u.x,T=u.y;if(r.setWidth(this.width),g?b>0&&S+k+c>this.right&&(T=u.y+=_,u.line++,S=u.x=Ut(s,this.left+c,this.right-i[u.line])):b>0&&T+_>this.bottom&&(S=u.x=S+e[u.line].width+c,u.line++,T=u.y=Ut(s,this.top+v+c,this.bottom-e[u.line].height)),function(t,e,i){if(isNaN(p)||p<=0||isNaN(f)||f<0)return;n.save();const s=Q(i.lineWidth,1);if(n.fillStyle=Q(i.fillStyle,a),n.lineCap=Q(i.lineCap,"butt"),n.lineDashOffset=Q(i.lineDashOffset,0),n.lineJoin=Q(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=Q(i.strokeStyle,a),n.setLineDash(Q(i.lineDash,[])),o.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},l=r.xPlus(t,p/2);be(n,a,l,e+d,o.pointStyleWidth&&p)}else{const o=e+Math.max((h-f)/2,0),a=r.leftForLtr(t,p),l=Ne(i.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?Le(n,{x:a,y:o,w:p,h:f,radius:l}):n.rect(a,o,p,f),n.fill(),0!==s&&n.stroke()}n.restore()}(r.x(S),T,y),S=((t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e)(x,S+p+d,g?S+k:this.right,t.rtl),function(t,e,i){Me(n,i.text,t,e+m/2,l,{strikethrough:i.hidden,textAlign:r.textAlign(i.textAlign)})}(r.x(S),T,y),g)u.x+=k+c;else if("string"!=typeof y.text){const t=l.lineHeight;u.y+=$o(y,t)+c}else u.y+=_})),Ei(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Be(e.font),n=$e(e.padding);if(!e.display)return;const s=Si(t.rtl,this.left,this.width),o=this.ctx,a=e.position,r=i.size/2,l=n.top+r;let c,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,h=Ut(t.align,h,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+Ut(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=Ut(a,h,h+d);o.textAlign=s.textAlign(qt(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Me(o,e.text,u,c,i)}_computeTitleHeight(){const t=this.options.title,e=Be(t.font),i=$e(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if(Bt(t,this.left,this.right)&&Bt(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(n=s[i],Bt(t,n.left,n.left+n.width)&&Bt(e,n.top,n.top+n.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!(("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)&&(!e.onClick||"click"!==t&&"mouseup"!==t))}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const n=this._hoveredItem,s=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(n,i);n&&!s&&tt(e.onLeave,[t,n,this],this),this._hoveredItem=i,i&&!s&&tt(e.onHover,[t,i,this],this)}else i&&tt(e.onClick,[t,i,this],this)}}function $o(t,e){return e*(t.text?t.text.length:0)}var Bo={id:"legend",_element:No,start(t,e,i){const n=t.legend=new No({ctx:t.ctx,options:i,chart:t});On.configure(t,n,i),On.addBox(t,n)},stop(t){On.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;On.configure(t,n,i),n.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)}
vendor: 5,172 bytes, line 63
63,defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const n=e.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),e.hidden=!0):(s.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:o,useBorderRadius:a,borderRadius:r}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(i?0:void 0),c=$e(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:s||l.textAlign,borderRadius:a&&(r||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Ro extends Kn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e){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=t,this.height=this.bottom=e;const n=U(i.text)?i.text.length:1;this._padding=$e(i.padding);const s=n*Be(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:o}=this,a=o.align;let r,l,c,h=0;return this.isHorizontal()?(l=Ut(a,i,s),c=e+t,r=s-i):("left"===o.position?(l=i+t,c=Ut(a,n,e),h=-.5*mt):(l=s-t,c=Ut(a,e,n),h=.5*mt),r=n-e),{titleX:l,titleY:c,maxWidth:r,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Be(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:a,rotation:r}=this._drawArgs(n);Me(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:r,textAlign:qt(e.align),textBaseline:"middle",translation:[s,o]})}}var Ho={id:"title",_element:Ro,start(t,e,i){!function(t,e){const i=new Ro({ctx:t.ctx,options:e,chart:t});On.configure(t,i,e),On.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;On.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;On.configure(t,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 jo=new WeakMap;var Fo={id:"subtitle",start(t,e,i){const n=new Ro({ctx:t.ctx,options:i,chart:t});On.configure(t,n,i),On.addBox(t,n),jo.set(t,n)},stop(t){On.removeBox(t,jo.get(t)),jo.delete(t)},beforeUpdate(t,e,i){const n=jo.get(t);On.configure(t,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 Wo={average(t){if(!t.length)return!1;let e,i,n=new Set,s=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n.add(t.x),s+=t.y,++o}}return 0!==o&&0!==n.size&&{x:[...n].reduce(((t,e)=>t+e))/n.size,y:s/o}},nearest(t,e){if(!t.length)return!1;let i,n,s,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){const n=t[i].element;if(n&&n.hasValue()){const t=Ot(e,n.getCenterPoint());t<r&&(r=t,s=n)}}if(s){const t=s.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function Yo(t,e){return e&&(U(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Zo(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Vo(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:a,value:r}=o.getLabelAndValue(s);return{chart:t,label:a,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:r,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function qo(t,e){const i=t.chart.ctx,{body:n,footer:s,title:o}=t,{boxWidth:a,boxHeight:r}=e,l=Be(e.bodyFont),c=Be(e.titleFont),h=Be(e.footerFont),d=o.length,u=s.length,p=n.length,f=$e(e.padding);let m=f.height,g=0,v=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);v+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v&&(m+=p*(e.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(v-p)*l.lineHeight+(v-1)*e.bodySpacing),u&&(m+=e.footerMarginTop+u*h.lineHeight+(u-1)*e.footerSpacing);let _=0;const y=function(t){g=Math.max(g,i.measureText(t).width+_)};return i.save(),i.font=c.string,et(t.title,y),i.font=l.string,et(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?a+2+e.boxPadding:0,et(n,(t=>{et(t.before,y),et(t.lines,y),et(t.after,y)}
vendor: 13,495 bytes, line 63
63)),_=0,i.font=h.string,et(t.footer,y),i.restore(),g+=f.width,{width:g,height:m}}function Uo(t,e,i,n){const{x:s,width:o}=i,{width:a,chartArea:{left:r,right:l}}=t;let c="center";return"center"===n?c=s<=(r+l)/2?"left":"right":s<=o/2?c="left":s>=a-o/2&&(c="right"),function(t,e,i,n){const{x:s,width:o}=n,a=i.caretSize+i.caretPadding;if("left"===t&&s+o+a>e.width||"right"===t&&s-o-a<0)return!0}(c,t,e,i)&&(c="center"),c}function Go(t,e,i){const n=i.yAlign||e.yAlign||function(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Uo(t,e,i,n),yAlign:n}}function Xo(t,e,i,n){const{caretSize:s,caretPadding:o,cornerRadius:a}=t,{xAlign:r,yAlign:l}=i,c=s+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:p}=Ne(a);let f=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,r);const m=function(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}(e,l,c);return"center"===l?"left"===r?f+=c:"right"===r&&(f-=c):"left"===r?f-=Math.max(h,u)+s:"right"===r&&(f+=Math.max(d,p)+s),{x:$t(f,0,n.width-e.width),y:$t(m,0,n.height-e.height)}}function Ko(t,e,i){const n=$e(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function Qo(t){return Yo([],Zo(t))}function Jo(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const ta={beforeTitle:Z,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:Z,beforeBody:Z,beforeLabel:Z,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return q(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Z,afterBody:Z,beforeFooter:Z,footer:Z,afterFooter:Z};function ea(t,e,i,n){const s=t[e].call(i,n);return typeof s>"u"?ta[e].call(i,n):s}class ia extends Kn{static positioners=Wo;constructor(t){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=t.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,s=new Hi(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,He(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,n=ea(i,"beforeTitle",this,t),s=ea(i,"title",this,t),o=ea(i,"afterTitle",this,t);let a=[];return a=Yo(a,Zo(n)),a=Yo(a,Zo(s)),a=Yo(a,Zo(o)),a}getBeforeBody(t,e){return Qo(ea(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,n=[];return et(t,(t=>{const e={before:[],lines:[],after:[]},s=Jo(i,t);Yo(e.before,Zo(ea(s,"beforeLabel",this,t))),Yo(e.lines,ea(s,"label",this,t)),Yo(e.after,Zo(ea(s,"afterLabel",this,t))),n.push(e)})),n}getAfterBody(t,e){return Qo(ea(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,n=ea(i,"beforeFooter",this,t),s=ea(i,"footer",this,t),o=ea(i,"afterFooter",this,t);let a=[];return a=Yo(a,Zo(n)),a=Yo(a,Zo(s)),a=Yo(a,Zo(o)),a}_createItems(t){const e=this._active,i=this.chart.data,n=[],s=[],o=[];let a,r,l=[];for(a=0,r=e.length;a<r;++a)l.push(Vo(this.chart,e[a]));return t.filter&&(l=l.filter(((e,n,s)=>t.filter(e,n,s,i)))),t.itemSort&&(l=l.sort(((e,n)=>t.itemSort(e,n,i)))),et(l,(e=>{const i=Jo(t.callbacks,e);n.push(ea(i,"labelColor",this,e)),s.push(ea(i,"labelPointStyle",this,e)),o.push(ea(i,"labelTextColor",this,e))})),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=Wo[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=qo(this,i),a=Object.assign({},t,e),r=Go(this.chart,i,a),l=Xo(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:r,topRight:l,bottomLeft:c,bottomRight:h}=Ne(a),{x:d,y:u}=t,{width:p,height:f}=e;let m,g,v,_,y,b;return"center"===s?(y=u+f/2,"left"===n?(m=d,g=m-o,_=y+o,b=y-o):(m=d+p,g=m+o,_=y-o,b=y+o),v=m):(g="left"===n?d+Math.max(r,c)+o:"right"===n?d+p-Math.max(l,h)-o:this.caretX,"top"===s?(_=u,y=_-o,m=g-o,v=g+o):(_=u+f,y=_+o,m=g+o,v=g-o),b=_),{x1:m,x2:g,x3:v,y1:_,y2:y,y3:b}}drawTitle(t,e,i){const n=this.title,s=n.length;let o,a,r;if(s){const l=Si(i.rtl,this.x,this.width);for(t.x=Ko(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=Be(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,r=0;r<s;++r)e.fillText(n[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,r+1===s&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,n,s){const o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:r,boxWidth:l}=s,c=Be(s.bodyFont),h=Ko(this,"left",s),d=n.x(h),u=r<c.lineHeight?(c.lineHeight-r)/2:0,p=e.y+u;if(s.usePointStyle){const e={radius:Math.min(l,r)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=n.leftForLtr(d,l)+l/2,c=p+r/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,ye(t,e,i,c),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,ye(t,e,i,c)}else{t.lineWidth=G(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=n.leftForLtr(d,l),i=n.leftForLtr(n.xPlus(d,1),l-2),a=Ne(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Le(t,{x:e,y:p,w:l,h:r,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Le(t,{x:i,y:p+1,w:l-2,h:r-2,radius:a}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,p,l,r),t.strokeRect(e,p,l,r),t.fillStyle=o.backgroundColor,t.fillRect(i,p+1,l-2,r-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:r,boxWidth:l,boxPadding:c}=i,h=Be(i.bodyFont);let d=h.lineHeight,u=0;const p=Si(i.rtl,this.x,this.width),f=function(i){e.fillText(i,p.x(t.x+u),t.y+d/2),t.y+=d+s},m=p.textAlign(o);let g,v,_,y,b,w,x;for(e.textAlign=o,e.textBaseline="middle",e.font=h.string,t.x=Ko(this,m,i),e.fillStyle=i.bodyColor,et(this.beforeBody,f),u=a&&"right"!==m?"center"===o?l/2+c:l+2+c:0,y=0,w=n.length;y<w;++y){for(g=n[y],v=this.labelTextColors[y],e.fillStyle=v,et(g.before,f),_=g.lines,a&&_.length&&(this._drawColorBox(e,t,y,p,i),d=Math.max(h.lineHeight,r)),b=0,x=_.length;b<x;++b)f(_[b]),d=h.lineHeight;et(g.after,f)}u=0,d=h.lineHeight,et(this.afterBody,f),t.y-=s}drawFooter(t,e,i){const n=this.footer,s=n.length;let o,a;if(s){const r=Si(i.rtl,this.x,this.width);for(t.x=Ko(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline="middle",o=Be(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<s;++a)e.fillText(n[a],r.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:s,yAlign:o}=this,{x:a,y:r}=t,{width:l,height:c}=i,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:p}=Ne(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(a+h,r),"top"===o&&this.drawCaret(t,e,i,n),e.lineTo(a+l-d,r),e.quadraticCurveTo(a+l,r,a+l,r+d),"center"===o&&"right"===s&&this.drawCaret(t,e,i,n),e.lineTo(a+l,r+c-p),e.quadraticCurveTo(a+l,r+c,a+l-p,r+c),"bottom"===o&&this.drawCaret(t,e,i,n),e.lineTo(a+u,r+c),e.quadraticCurveTo(a,r+c,a,r+c-u),"center"===o&&"left"===s&&this.drawCaret(t,e,i,n),e.lineTo(a,r+h),e.quadraticCurveTo(a,r,a+h,r),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=Wo[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=qo(this,t),a=Object.assign({},i,this._size),r=Go(e,t,a),l=Xo(t,a,r,e);(n._to!==l.x||s._to!==l.y)&&(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=$e(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),Ti(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),Ei(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),s=!it(i,n),o=this._positionChanged(n,e);(s||o)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,i),a=this._positionChanged(o,t),r=e||!it(o,s)||a;return r&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=Wo[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}var na={id:"tooltip",_element:ia,positioners:Wo,afterInit(t,e,i){i&&(t.tooltip=new ia({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:ta},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},sa=Object.freeze({__proto__:null,Colors:po,Decimation:go,Filler:Io,Legend:Bo,SubTitle:Fo,Title:Ho,Tooltip:na});function oa(t,e,i,n){const s=t.indexOf(e);return-1===s?((t,e,i,n)=>
vendor: 8,539 bytes, line 63
63("string"==typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n):s!==t.lastIndexOf(e)?i:s}function aa(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function ra(t,e){const i=[],{bounds:n,step:s,min:o,max:a,precision:r,count:l,maxTicks:c,maxDigits:h,includeBounds:d}=t,u=s||1,p=c-1,{min:f,max:m}=e,g=!q(o),v=!q(a),_=!q(l),y=(m-f)/(h+1);let b,w,x,k,S=Et((m-f)/p/u)*u;if(S<1e-14&&!g&&!v)return[{value:f},{value:m}];k=Math.ceil(m/S)-Math.floor(f/S),k>p&&(S=Et(k*S/p/u)*u),q(r)||(b=Math.pow(10,r),S=Math.ceil(S*b)/b),"ticks"===n?(w=Math.floor(f/S)*S,x=Math.ceil(m/S)*S):(w=f,x=m),g&&v&&s&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((a-o)/s,S/1e3)?(k=Math.round(Math.min((a-o)/S,c)),S=(a-o)/k,w=o,x=a):_?(w=g?o:w,x=v?a:x,k=l-1,S=(x-w)/k):(k=(x-w)/S,k=Tt(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const T=Math.max(Dt(S),Dt(w));b=Math.pow(10,q(r)?T:r),w=Math.round(w*b)/b,x=Math.round(x*b)/b;let E=0;for(g&&(d&&w!==o?(i.push({value:o}),w<o&&E++,Tt(Math.round((w+E*S)*b)/b,o,la(o,y,t))&&E++):w<o&&E++);E<k;++E){const t=Math.round((w+E*S)*b)/b;if(v&&t>a)break;i.push({value:t})}return v&&d&&x!==a?i.length&&Tt(i[i.length-1].value,a,la(a,y,t))?i[i.length-1].value=a:i.push({value:a}):(!v||x===a)&&i.push({value:x}),i}function la(t,e,{horizontal:i,minRotation:n}){const s=Lt(n),o=(i?Math.sin(s):Math.cos(s))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}class ca extends rs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return q(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const o=t=>n=e?n:t,a=t=>s=i?s:t;if(t){const t=St(n),e=St(s);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(n===s){let e=0===s?1:Math.abs(.05*s);a(s+e),t||o(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=ra({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Mt(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return re(t,this.chart.options.locale,this.options.ticks.format)}}class ha extends ca{static id="linear";static defaults={ticks:{callback:ce.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=X(t)?t:0,this.max=X(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=Lt(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const da=t=>Math.floor(kt(t)),ua=(t,e)=>Math.pow(10,da(t)+e);function pa(t){return t/Math.pow(10,da(t))==1}function fa(t,e,i){const n=Math.pow(10,i),s=Math.floor(t/n);return Math.ceil(e/n)-s}function ma(t,{min:e,max:i}){e=K(t.min,e);const n=[],s=da(e);let o=function(t,e){let i=da(e-t);for(;fa(t,e,i)>10;)i++;for(;fa(t,e,i)<10;)i--;return Math.min(i,da(t))}(e,i),a=o<0?Math.pow(10,Math.abs(o)):1;const r=Math.pow(10,o),l=s>o?Math.pow(10,s):0,c=Math.round((e-l)*a)/a,h=Math.floor((e-l)/r/10)*r*10;let d=Math.floor((c-h)/Math.pow(10,o)),u=K(t.min,Math.round((l+h+d*Math.pow(10,o))*a)/a);for(;u<i;)n.push({value:u,major:pa(u),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,a=o>=0?1:a),u=Math.round((l+h+d*Math.pow(10,o))*a)/a;const p=K(t.max,u);return n.push({value:p,major:pa(p),significand:d}),n}class ga extends rs{static id="logarithmic";static defaults={ticks:{callback:ce.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=ca.prototype.parse.apply(this,[t,e]);if(0!==i)return X(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=X(t)?Math.max(0,t):null,this.max=X(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!X(this._userMin)&&(this.min=t===ua(this.min,0)?ua(this.min,-1):ua(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,o=t=>n=e?n:t;i===n&&(i<=0?(s(1),o(10)):(s(ua(i,-1)),o(ua(n,1)))),i<=0&&s(ua(n,-1)),n<=0&&o(ua(i,1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=ma({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Mt(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":re(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=kt(t),this._valueRange=kt(this.max)-kt(t)}getPixelForValue(t){return(void 0===t||0===t)&&(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(kt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function va(t){const e=t.ticks;if(e.display&&t.display){const t=$e(e.backdropPadding);return Q(e.font&&e.font.size,fe.font.size)+t.height}return 0}function _a(t,e,i){return i=U(i)?i:[i],{w:ge(t,e.string,i),h:i.length*e.lineHeight}}function ya(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:t<n||t>s?{start:e-i,end:e}:{start:e,end:e+i}}function ba(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],s=[],o=t._pointLabels.length,a=t.options.pointLabels,r=a.centerPointLabels?mt/o:0;for(let l=0;l<o;l++){const o=a.setContext(t.getPointLabelContext(l));s[l]=o.padding;const c=t.getPointPosition(l,t.drawingArea+s[l],r),h=Be(o.font),d=_a(t.ctx,h,t._pointLabels[l]);n[l]=d;const u=zt(t.getIndexAngle(l)+r),p=Math.round(Pt(u));wa(i,e,u,ya(p,c.x,d.w,0,180),ya(p,c.y,d.h,90,270))}t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const n=[],s=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:r}=o.pointLabels,l={extra:va(o)/2,additionalAngle:a?mt/s:0};let c;for(let o=0;o<s;o++){l.padding=i[o],l.size=e[o];const s=xa(t,o,l);n.push(s),"auto"===r&&(s.visible=ka(s,c),s.visible&&(c=s))}return n}(t,n,s)}function wa(t,e,i,n,s){const o=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let r=0,l=0;n.start<e.l?(r=(e.l-n.start)/o,t.l=Math.min(t.l,e.l-r)):n.end>e.r&&(r=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),s.start<e.t?(l=(e.t-s.start)/a,t.t=Math.min(t.t,e.t-l)):s.end>e.b&&(l=(s.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function xa(t,e,i){const n=t.drawingArea,{extra:s,additionalAngle:o,padding:a,size:r}=i,l=t.getPointPosition(e,n+s+a,o),c=Math.round(Pt(zt(l.angle+bt))),h=function(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}(l.y,r.h,c),d=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(c),u=function(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}(l.x,r.w,d);return{visible:!0,x:l.x,y:h,textAlign:d,left:u,top:h,right:u+r.w,bottom:h+r.h}}function ka(t,e){if(!e)return!0;const{left:i,top:n,right:s,bottom:o}=t;return!(we({x:i,y:n},e)||we({x:i,y:o},e)||we({x:s,y:n},e)||we({x:s,y:o},e))}function Sa(t,e,i){const{left:n,top:s,right:o,bottom:a}=i,{backdropColor:r}=e;if(!q(r)){const i=Ne(e.borderRadius),l=$e(e.backdropPadding);t.fillStyle=r;const c=n-l.left,h=s-l.top,d=o-n+l.width,u=a-s+l.height;
vendor: 14,421 bytes, line 63
63Object.values(i).some((t=>0!==t))?(t.beginPath(),Le(t,{x:c,y:h,w:d,h:u,radius:i}),t.fill()):t.fillRect(c,h,d,u)}}function Ta(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,gt);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;o<n;o++)i=t.getPointPosition(o,e),s.lineTo(i.x,i.y)}}class Ea extends ca{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ce.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=$e(va(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=X(t)&&!isNaN(t)?t:0,this.max=X(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/va(this.options))}generateTickLabels(t){ca.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=tt(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?ba(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){return zt(t*(gt/(this._pointLabels.length||1))+Lt(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(q(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(q(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return He(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const n=this.getIndexAngle(t)-bt+i;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:n,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Ta(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:n,border:s}=e,o=this._pointLabels.length;let a,r,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:n}}=t;for(let s=e-1;s>=0;s--){const e=t._pointLabelItems[s];if(!e.visible)continue;const o=n.setContext(t.getPointLabelContext(s));Sa(i,o,e);const a=Be(o.font),{x:r,y:l,textAlign:c}=e;Me(i,t._pointLabels[s],r,l+a.lineHeight/2,a,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){r=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),a=n.setContext(i),l=s.setContext(i);!function(t,e,i,n,s){const o=t.ctx,a=e.circular,{color:r,lineWidth:l}=e;!a&&!n||!r||!l||i<0||(o.save(),o.strokeStyle=r,o.lineWidth=l,o.setLineDash(s.dash||[]),o.lineDashOffset=s.dashOffset,o.beginPath(),Ta(t,i,a,n),o.closePath(),o.stroke(),o.restore())}(this,a,r,o,l)}})),i.display){for(t.save(),a=o-1;a>=0;a--){const n=i.setContext(this.getPointLabelContext(a)),{color:s,lineWidth:o}=n;!o||!s||(t.lineWidth=o,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,r=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,a)=>{if(0===a&&this.min>=0&&!e.reverse)return;const r=i.setContext(this.getContext(a)),l=Be(r.font);if(s=this.getDistanceFromCenterForValue(this.ticks[a].value),r.showLabelBackdrop){t.font=l.string,o=t.measureText(n.label).width,t.fillStyle=r.backdropColor;const e=$e(r.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}Me(t,n.label,0,-s,l,{color:r.color,strokeColor:r.textStrokeColor,strokeWidth:r.textStrokeWidth})})),t.restore()}drawTitle(){}}const Ca={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}},Ma=Object.keys(Ca);function La(t,e){return t-e}function Pa(t,e){if(q(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:o}=t._parseOpts;let a=e;return"function"==typeof n&&(a=n(a)),X(a)||(a="string"==typeof n?i.parse(a,n):i.parse(a)),null===a?null:(s&&(a="week"!==s||!Ct(o)&&!0!==o?i.startOf(a,s):i.startOf(a,"isoWeek",o)),+a)}function Da(t,e,i,n){const s=Ma.length;for(let o=Ma.indexOf(t);o<s-1;++o){const t=Ca[Ma[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(s*t.size))<=n)return Ma[o]}return Ma[s-1]}function Aa(t,e,i){if(i){if(i.length){const{lo:n,hi:s}=Rt(i,e);t[i[n]>=e?i[n]:i[s]]=!0}}else t[e]=!0}function Oa(t,e,i){const n=[],s={},o=e.length;let a,r;for(a=0;a<o;++a)r=e[a],s[r]=a,n.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,n){const s=t._adapter,o=+s.startOf(e[0].value,n),a=e[e.length-1].value;let r,l;for(r=o;r<=a;r=+s.add(r,1,n))l=i[r],l>=0&&(e[l].major=!0);return e}(t,n,s,i):n}class Ia extends rs{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),n=this._adapter=new pn(t.adapters.date);n.init(e),rt(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Pa(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();function r(t){!o&&!isNaN(t.min)&&(n=Math.min(n,t.min)),!a&&!isNaN(t.max)&&(s=Math.max(s,t.max))}(!o||!a)&&(r(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&r(this.getMinMax(!1))),n=X(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=X(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,o=function(t,e,i){let n=0,s=t.length;for(;n<s&&t[n]<e;)n++;for(;s>n&&t[s-1]>i;)s--;return n>0||s<t.length?t.slice(n,s):t}(n,s,this.max);return this._unit=e.unit||(i.autoSkip?Da(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,i,n,s){for(let o=Ma.length-1;o>=Ma.indexOf(i);o--){const i=Ma[o];if(Ca[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return Ma[i?Ma.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Ma.indexOf(t)+1,i=Ma.length;e<i;++e)if(Ca[Ma[e]].common)return Ma[e]}(this._unit):void 0,this.initOffsets(n),t.reverse&&o.reverse(),Oa(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=$t(n,0,o),s=$t(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,o=s.unit||Da(s.minUnit,e,i,this._getLabelCapacity(e)),a=Q(n.ticks.stepSize,1),r="week"===o&&s.isoWeekday,l=Ct(r)||!0===r,c={};let h,d,u=e;if(l&&(u=+t.startOf(u,"isoWeek",r)),u=+t.startOf(u,l?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);const p="data"===n.ticks.source&&this.getDataTimestamps();for(h=u,d=0;h<i;h=+t.add(h,a,o),d++)Aa(c,h,p);return(h===i||"ticks"===n.bounds||1===d)&&Aa(c,h,p),Object.keys(c).sort(La).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,n=this._unit,s=e||i[n];return this._adapter.format(t,s)}_tickFormatFunction(t,e,i,n){const s=this.options,o=s.ticks.callback;if(o)return tt(o,[t,e,i],this);const a=s.time.displayFormats,r=this._unit,l=this._majorUnit,c=r&&a[r],h=l&&a[l],d=i[e],u=l&&h&&d&&d.major;return this._adapter.format(t,n||(u?h:c))}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,n=Lt(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(n),o=Math.sin(n),a=this._resolveTickFontOptions(0).size;return{w:i*s+a*o,h:i*o+a*s}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,Oa(this,[t],this._majorUnit),n),o=this._getLabelSize(s),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,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(t=0,e=n.length;t<e;++t)i=i.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(Pa(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Yt(t.sort(La))}}function za(t,e,i){let n,s,o,a,r=0,l=t.length-1;i?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=Ht(t,"pos",e)),({pos:n,time:o}=t[r]),({pos:s,time:a}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=Ht(t,"time",e)),({time:n,pos:o}=t[r]),({time:s,pos:a}=t[l]));const c=s-n;return c?o+(a-o)*(e-n)/c:o}const Na=[hn,oo,sa,Object.freeze({__proto__:null,CategoryScale:class extends rs{static id="category";static defaults={ticks:{callback:aa}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(q(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:$t(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:oa(i,t,Q(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){return aa.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:ha,LogarithmicScale:ga,RadialLinearScale:Ea,TimeScale:Ia,TimeSeriesScale:class extends Ia{static id="timeseries";static defaults=Ia.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=za(e,this.min),this._tableRange=za(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,a,r,l,c;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=n.length;o<a;
63++o)c=n[o+1],r=n[o-1],l=n[o],Math.round((c+r)/2)!==l&&s.push({time:l,pos:o/(a-1)});return s}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(e)||1===i.length)&&i.push(e),i.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(za(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return za(this._table,i*this._tableRange+this._minPos,!0)}}})];$s.register(...Na);const $a="https://map.shapefruit.de/styles/klokantech-basic/{z}/{x}/{y}.png";function Ba(t){document.querySelectorAll("[data-shapehub-marker-map]").forEach((t=>function(t){const e=parseFloat(t.dataset.latitude),i=parseFloat(t.dataset.longitude),n=parseInt(t.dataset.zoom)||13,s=(t.dataset.geometry||"").split(/\s/),o=t.dataset.label,a=t.dataset.icon,r=t.dataset.color||"red",l=JSON.parse(t.dataset.pois);if(e&&i){let d=function(t,e,i,n){var s=t,o=new c.LatLng(e,i);console.log(n);var a=new c.Marker(o,{icon:c.divIcon({html:n,iconSize:[26,34],iconAnchor:[13,34]})});h.addLayer(a),a.bindPopup(s)};var h=c.map(t,{gestureHandling:!0,center:[e,i],zoom:n});if(c.tileLayer($a,{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',maxZoom:16}).addTo(h),d(o,e,i,a),l.length)for(let t=0;t<l.length;t++){let e=l[t];d(e.name,e.latitude,e.longitude,a)}if(s.length>1){const t=s.map((function(t){let e=t.split(/,/);return[parseFloat(e[1]),parseFloat(e[0])]}));c.polyline(t,{color:"white",weight:10}).addTo(h),c.polyline(t,{color:r,weight:5}).addTo(h)}}}(t)));const e=document.getElementById("contenthub-elevation-profile");e&&function(t){const e=(t.dataset.geometry||"").split(/\s/),i=t.dataset.color||"red";let n=e.shift().split(/,/);if(n.length<3)return void t.remove();let s,o=0,a=[[o,n[2]]];function r(t,e){var i=l(t[1]),n=l(t[0]),s=l(e[1]),o=l(e[0]),a=o-n,r=s-i,c=Math.pow(Math.sin(a/2),2)+Math.cos(n)*Math.cos(o)*Math.pow(Math.sin(r/2),2);return 2*Math.asin(Math.sqrt(c))*6371*1e3}function l(t){return t*Math.PI/180}e.forEach((function(t){t=t.split(/,/),o+=r(n,t)/1e3,a.push([o,t[2]]),n=t})),s=o<=15?1:o<=75?5:o<=150?10:o<=375?25:o<=750?50:100,new $s(t,{maintainAspectRatio:!0,responsive:!0,type:"line",data:{labels:a.map((t=>t[0])),datasets:[{data:a.map((t=>t[1])),fill:!0,pointStyle:!1,borderColor:i,backgroundColor:i+"40"}]},options:{plugins:{legend:{display:!1}},scales:{y:{title:{display:!0,text:"hm"},grace:"15%"},x:{type:"linear",title:{display:!0,text:"km"},min:0,max:o,precision:0,ticks:{stepSize:s}}}}})}(e)}function Ra(){document.querySelectorAll(".shapehub-accordion").forEach((function(t){const e=t.querySelectorAll(".shapehub-accordion-item");e.forEach((function(t){t.addEventListener("click",(function(i){let n=t.classList.contains("open");e.forEach((t=>t.classList.remove("open"))),n||t.classList.add("open")}))}))}))}function Ha(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function ja(t={},e={}){const i=["__proto__","constructor","prototype"];Object.keys(e).filter((t=>i.indexOf(t)<0)).forEach((i=>{typeof t[i]>"u"?t[i]=e[i]:Ha(e[i])&&Ha(t[i])&&Object.keys(e[i]).length>0&&ja(t[i],e[i])}))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Ba):Ba(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Ra):Ra();const Fa={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 Wa(){const t=typeof document<"u"?document:{};return ja(t,Fa),t}const Ya={document:Fa,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(){}
63,clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>typeof setTimeout>"u"?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Za(){const t=typeof window<"u"?window:{};return ja(t,Ya),t}function Va(t=""){return t.trim().split(" ").filter((t=>!!t.trim()))}function qa(t,e=0){return setTimeout(t,e)}function Ua(){return Date.now()}function Ga(t,e="x"){const i=Za();let n,s,o;const a=function(t){const e=Za();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}(t);return i.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((t=>t.replace(",","."))).join(", ")),o=new i.WebKitCSSMatrix("none"===s?"":s)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===e&&(s=i.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(s=i.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),s||0}function Xa(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function Ka(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function Qa(...t){const e=Object(t[0]),i=["__proto__","constructor","prototype"];for(let n=1;n<t.length;n+=1){const s=t[n];if(null!=s&&!Ka(s)){const t=Object.keys(Object(s)).filter((t=>i.indexOf(t)<0));for(let i=0,n=t.length;i<n;i+=1){const n=t[i],o=Object.getOwnPropertyDescriptor(s,n);void 0!==o&&o.enumerable&&(Xa(e[n])&&Xa(s[n])?s[n].__swiper__?e[n]=s[n]:Qa(e[n],s[n]):!Xa(e[n])&&Xa(s[n])?(e[n]={},s[n].__swiper__?e[n]=s[n]:Qa(e[n],s[n])):e[n]=s[n])}}}return e}function Ja(t,e,i){t.style.setProperty(e,i)}function tr({swiper:t,targetPosition:e,side:i}){const n=Za(),s=-t.translate;let o,a=null;const r=t.params.speed;t.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(t.cssModeFrameID);const l=e>s?"next":"prev",c=(t,e)=>"next"===l&&t>=e||"prev"===l&&t<=e,h=()=>{o=(new Date).getTime(),null===a&&(a=o);const l=Math.max(Math.min((o-a)/r,1),0),d=.5-Math.cos(l*Math.PI)/2;let u=s+d*(e-s);if(c(u,e)&&(u=e),t.wrapperEl.scrollTo({[i]:u}),c(u,e))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:u})})),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(h)};h()}function er(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function ir(t,e=""){const i=Za(),n=[...t.children];return i.HTMLSlotElement&&t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter((t=>t.matches(e))):n}function nr(t){try{return void console.warn(t)}catch{}}function sr(t,e=[]){const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Va(e)),i}function or(t){const e=Za(),i=Wa(),n=t.getBoundingClientRect(),s=i.body,o=t.clientTop||s.clientTop||0,a=t.clientLeft||s.clientLeft||0,r=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:n.top+r-o,left:n.left+l-a}}function ar(t,e){return Za().getComputedStyle(t,null).getPropertyValue(e)}function rr(t){let e,i=t;if(i){for(e=0;null!==(i=i.previousSibling);)1===i.nodeType&&(e+=1);return e}}function lr(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function cr(t,e){e&&t.addEventListener("transitionend",(function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}))}function hr(t,e,i){const n=Za();return t["width"===e?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-left":"margin-bottom"))}function dr(t){return(Array.isArray(t)?t:[t]).filter((t=>!!t))}function ur(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90==0?e+.001:e}function pr(t,e=""){typeof trustedTypes<"u"?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:t=>t}).createHTML(e):t.innerHTML=e}let fr,mr,gr;function vr(){return fr||(fr=function(){const t=Za(),e=Wa();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}()),fr}function _r(t={}){return mr||(mr=function({userAgent:t}={}){const e=vr(),i=Za(),n=i.navigator.platform,s=t||i.navigator.userAgent,o={ios:!1,android:!1},a=i.screen.width,r=i.screen.height,l=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const h=s.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u="Win32"===n;let p="MacIntel"===n;return!c&&p&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${r}`)>
vendor: 8,098 bytes, line 63
63=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!u&&(o.os="android",o.android=!0),(c||d||h)&&(o.os="ios",o.ios=!0),o}(t)),mr}function yr(){return gr||(gr=function(){const t=Za(),e=_r();let i=!1;function n(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}if(n()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,n]=e.split("Version/")[1].split(" ")[0].split(".").map((t=>Number(t)));i=t<16||16===t&&n<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=n();return{isSafari:i||o,needPerspectiveFix:i,need3dFix:o||s&&e.ios,isWebView:s}}()),gr}const br=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)},wr=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)},xr=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=e.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(i){let e=i.querySelector(`.${t.params.lazyPreloaderClass}`);!e&&t.isElement&&(i.shadowRoot?e=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{i.shadowRoot&&(e=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),e&&e.remove())}))),e&&e.remove()}},kr=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Sr=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const i=s,o=[i-e];return o.push(...Array.from({length:e}).map(((t,e)=>i+n+e))),void t.slides.forEach(((e,i)=>{o.includes(e.column)&&kr(t,i)}))}const o=s+n-1;if(t.params.rewind||t.params.loop)for(let n=s-e;n<=o+e;n+=1){const e=(n%i+i)%i;(e<s||e>o)&&kr(t,e)}else for(let n=Math.max(s-e,0);n<=Math.min(o+e,i-1);n+=1)n!==s&&(n>o||n<s)&&kr(t,n)};function Tr({swiper:t,runCallbacks:e,direction:i,step:n}){const{activeIndex:s,previousIndex:o}=t;let a=i;a||(a=s>o?"next":s<o?"prev":"reset"),t.emit(`transition${n}`),e&&"reset"===a?t.emit(`slideResetTransition${n}`):e&&s!==o&&(t.emit(`slideChangeTransition${n}`),"next"===a?t.emit(`slideNextTransition${n}`):t.emit(`slidePrevTransition${n}`))}function Er(t,e,i){const n=Za(),{params:s}=t,o=s.edgeSwipeDetection,a=s.edgeSwipeThreshold;return!o||!(i<=a||i>=n.innerWidth-a)||"prevent"===o&&(e.preventDefault(),!0)}function Cr(t){const e=this,i=Wa();let n=t;n.originalEvent&&(n=n.originalEvent);const s=e.touchEventsData;if("pointerdown"===n.type){if(null!==s.pointerId&&s.pointerId!==n.pointerId)return;s.pointerId=n.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(s.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void Er(e,n,n.targetTouches[0].pageX);const{params:o,touches:a,enabled:r}=e;if(!r||!o.simulateTouch&&"mouse"===n.pointerType||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let l=n.target;if("wrapper"===o.touchEventsTarget&&!function(t,e){const i=Za();let n=e.contains(t);return!n&&i.HTMLSlotElement&&e instanceof HTMLSlotElement&&(n=[...e.assignedElements()].includes(t),n||(n=function(t,e){const i=[e];for(;i.length>0;){const e=i.shift();if(t===e)return!0;i.push(...e.children,...e.shadowRoot?e.shadowRoot.children:[],...e.assignedElements?e.assignedElements():[])}}(t,e))),n}(l,e.wrapperEl)||"which"in n&&3===n.which||"button"in n&&n.button>0||s.isTouched&&s.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,h=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&h&&(l=h[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,u=!(!n.target||!n.target.shadowRoot);if(o.noSwiping&&(u?function(t,e=this){return function e(i){if(!i||i===Wa()||i===Za())return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(t);return n||i.getRootNode?n||e(i.getRootNode().host):null}(e)}(d,l):l.closest(d)))return void(e.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;const p=a.currentX,f=a.currentY;if(!Er(e,n,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=f,s.touchStartTime=Ua(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1);let m=!0;l.matches(s.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==l&&("mouse"===n.pointerType||"mouse"!==n.pointerType&&!l.matches(s.focusableElements))&&i.activeElement.blur();const g=m&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||g)&&!l.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function Mr(t){const e=Wa(),i=this,n=i.touchEventsData,{params:s,touches:o,rtlTranslate:a,enabled:r}=i;if(!r||!s.simulateTouch&&"mouse"===t.pointerType)return;let l,c=t;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type&&(null!==n.touchId||c.pointerId!==n.pointerId))return;if("touchmove"===c.type){if(l=[...c.changedTouches].find((t=>t.identifier===n.touchId)),!l||l.identifier!==n.touchId)return}else l=c;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",c));const h=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return o.startX=h,void(o.startY=d);if(!i.allowTouchMove)return c.target.matches(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(o,{startX:h,startY:d,currentX:h,currentY:d}),n.touchStartTime=Ua()));if(s.touchReleaseOnEdges&&!s.loop)if(i.isVertical()){if(d<o.startY&&i.translate<=i.maxTranslate()||d>o.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(a&&(h>o.startX&&-i.translate<=i.maxTranslate()||h<o.startX&&-i.translate>=i.minTranslate()))return;if(!a&&(h<o.startX&&i.translate<=i.maxTranslate()||h>o.startX&&i.translate>=i.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==c.target&&"mouse"!==c.pointerType&&e.activeElement.blur(),e.activeElement&&c.target===e.activeElement&&c.target.matches(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);n.allowTouchCallbacks&&i.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=h,o.currentY=d;const u=o.currentX-o.startX,p=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(u**2+p**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let t;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:u*u+p*p>=25&&(t=180*Math.atan2(Math.abs(p),Math.abs(u))/Math.PI,n.isScrolling=i.isHorizontal()?t>s.touchAngle:90-t>s.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",c),typeof n.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(n.startMoving=!0),n.isScrolling||"touchmove"===c.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation();let f=i.isHorizontal()?u:p,m=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;s.oneWayMovement&&(f=Math.abs(f)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),o.diff=f,f*=s.touchRatio,a&&(f=-f,m=-m);const g=i.touchesDirection;i.swipeDirection=f>0?"prev":"next",i.touchesDirection=m>0?"prev":"next";const v=i.params.loop&&!s.cssMode,_="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!n.isMoved){if(v&&_&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 2,165 bytes, line 63
63i.wrapperEl.dispatchEvent(t)}n.allowMomentumBounce=!1,s.grabCursor&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==s._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&g!==i.touchesDirection&&v&&_&&Math.abs(f)>=1)return Object.assign(o,{startX:h,startY:d,currentX:h,currentY:d,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);i.emit("sliderMove",c),n.isMoved=!0,n.currentTranslate=f+n.startTranslate;let y=!0,b=s.resistanceRatio;if(s.touchReleaseOnEdges&&(b=0),f>0?(v&&_&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==s.slidesPerView&&i.slides.length-s.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(y=!1,s.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+f)**b))):f<0&&(v&&_&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==s.slidesPerView&&i.slides.length-s.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===s.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(y=!1,s.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-f)**b))),y&&(c.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),s.threshold>0){if(!(Math.abs(f)>s.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);
vendor: 4,770 bytes, line 63
63if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function Lr(t){const e=this,i=e.touchEventsData;let n,s=t;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(n=[...s.changedTouches].find((t=>t.identifier===i.touchId)),!n||n.identifier!==i.touchId)return}else{if(null!==i.touchId||s.pointerId!==i.pointerId)return;n=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&(!["pointercancel","contextmenu"].includes(s.type)||!e.browser.isSafari&&!e.browser.isWebView))return;i.pointerId=null,i.touchId=null;const{params:o,touches:a,rtlTranslate:r,slidesGrid:l,enabled:c}=e;if(!c||!o.simulateTouch&&"mouse"===s.pointerType)return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&o.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);o.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const h=Ua(),d=h-i.touchStartTime;if(e.allowClick){const t=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(t&&t[0]||s.target,t),e.emit("tap click",s),d<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=Ua(),qa((()=>{e.destroyed||(e.allowClick=!0)})),!i.isTouched||!i.isMoved||!e.swipeDirection||0===a.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let u;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=o.followFinger?r?e.translate:-e.translate:-i.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:u});const p=u>=-e.maxTranslate()&&!e.params.loop;let f=0,m=e.slidesSizesGrid[0];for(let t=0;t<l.length;t+=t<o.slidesPerGroupSkip?1:o.slidesPerGroup){const e=t<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;typeof l[t+e]<"u"?(p||u>=l[t]&&u<l[t+e])&&(f=t,m=l[t+e]-l[t]):(p||u>=l[t])&&(f=t,m=l[l.length-1]-l[l.length-2])}let g=null,v=null;o.rewind&&(e.isBeginning?v=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(g=0));const _=(u-l[f])/m,y=f<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(_>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?g:f+y):e.slideTo(f)),"prev"===e.swipeDirection&&(_>1-o.longSwipesRatio?e.slideTo(f+y):null!==v&&_<0&&Math.abs(_)>o.longSwipesRatio?e.slideTo(v):e.slideTo(f))}else{if(!o.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||s.target!==e.navigation.nextEl&&s.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(null!==g?g:f+y),"prev"===e.swipeDirection&&e.slideTo(null!==v?v:f)):s.target===e.navigation.nextEl?e.slideTo(f+y):e.slideTo(f)}}function Pr(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:o}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const r=a&&e.loop;!("auto"===e.slidesPerView||e.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||r?t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout((()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()}),500)),t.allowSlidePrev=s,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function Dr(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ar(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;let s;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const o=t.maxTranslate()-t.minTranslate();s=0===o?0:(t.translate-t.minTranslate())/o,s!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Or(t){const e=this;
63xr(e,t.target),!e.params.cssMode&&("auto"===e.params.slidesPerView||e.params.autoHeight)&&e.update()}function Ir(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const zr=(t,e)=>{const i=Wa(),{params:n,el:s,wrapperEl:o,device:a}=t,r=!!n.nested,l="on"===e?"addEventListener":"removeEventListener",c=e;!s||"string"==typeof s||(i[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:r}),s[l]("touchstart",t.onTouchStart,{passive:!1}),s[l]("pointerdown",t.onTouchStart,{passive:!1}),i[l]("touchmove",t.onTouchMove,{passive:!1,capture:r}),i[l]("pointermove",t.onTouchMove,{passive:!1,capture:r}),i[l]("touchend",t.onTouchEnd,{passive:!0}),i[l]("pointerup",t.onTouchEnd,{passive:!0}),i[l]("pointercancel",t.onTouchEnd,{passive:!0}),i[l]("touchcancel",t.onTouchEnd,{passive:!0}),i[l]("pointerout",t.onTouchEnd,{passive:!0}),i[l]("pointerleave",t.onTouchEnd,{passive:!0}),i[l]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[l]("click",t.onClick,!0),n.cssMode&&o[l]("scroll",t.onScroll),n.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Pr,!0):t[c]("observerUpdate",Pr,!0),s[l]("load",t.onLoad,{capture:!0}))},Nr=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var $r={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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",spaceBetween: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:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!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-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Br(t,e){return function(i={}){const n=Object.keys(i)[0],s=i[n];"object"==typeof s&&null!==s?(!0===t[n]&&(t[n]={enabled:!0}),"navigation"===n&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),n in t&&"enabled"in s?("object"==typeof t[n]&&!("enabled"in t[n])&&(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),Qa(e,i)):Qa(e,i)):Qa(e,i)}}const Rr={eventsEmitter:{on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof e)return n;const s=i?"unshift":"push";return t.split(" ").forEach((t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][s](e)})),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof e)return n;function s(...i){n.off(t,s),s.__emitterProxy&&delete s.__emitterProxy,e.apply(n,i)}return s.__emitterProxy=e,n.on(t,s,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof t)return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach((t=>{typeof e>"u"?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach(((n,s)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[t].splice(s,1)}))})),i},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let i,n,s;return"string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],n=t.slice(1,t.length),s=e):(i=t[0].events,n=t[0].data,s=t[0].context||e),n.unshift(s),(Array.isArray(i)?i:i.split(" ")).forEac
vendor: 4,393 bytes, line 63
63h((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(s,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((t=>{t.apply(s,n)}))})),e}},update:{updateSize:function(){const t=this;let e,i;const n=t.el;e=typeof t.params.width<"u"&&null!==t.params.width?t.params.width:n.clientWidth,i=typeof t.params.height<"u"&&null!==t.params.height?t.params.height:n.clientHeight,!(0===e&&t.isHorizontal()||0===i&&t.isVertical())&&(e=e-parseInt(ar(n,"padding-left")||0,10)-parseInt(ar(n,"padding-right")||0,10),i=i-parseInt(ar(n,"padding-top")||0,10)-parseInt(ar(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const t=this;function e(e,i){return parseFloat(e.getPropertyValue(t.getDirectionLabel(i))||0)}const i=t.params,{wrapperEl:n,slidesEl:s,rtlTranslate:o,wrongRTL:a}=t,r=t.virtual&&i.virtual.enabled,l=r?t.virtual.slides.length:t.slides.length,c=ir(s,`.${t.params.slideClass}, swiper-slide`),h=r?t.virtual.slides.length:c.length;let d=[];const u=[],p=[];let f=i.slidesOffsetBefore;"function"==typeof f&&(f=i.slidesOffsetBefore.call(t));let m=i.slidesOffsetAfter;"function"==typeof m&&(m=i.slidesOffsetAfter.call(t));const g=t.snapGrid.length,v=t.slidesGrid.length,_=t.size-f-m;let y=i.spaceBetween,b=-f,w=0,x=0;if(typeof _>"u")return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*_:"string"==typeof y&&(y=parseFloat(y)),t.virtualSize=-y-f-m,c.forEach((t=>{o?t.style.marginLeft="":t.style.marginRight="",t.style.marginBottom="",t.style.marginTop=""})),i.centeredSlides&&i.cssMode&&(Ja(n,"--swiper-centered-offset-before",""),Ja(n,"--swiper-centered-offset-after",""));const k=i.grid&&i.grid.rows>1&&t.grid;let S;k?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();const T="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((t=>typeof i.breakpoints[t].slidesPerView<"u")).length>0;for(let n=0;n<h;n+=1){S=0;const s=c[n];if(!s||(k&&t.grid.updateSlide(n,s,c),"none"!==ar(s,"display"))){if(r&&"auto"===i.slidesPerView)i.virtual.slidesPerViewAutoSlideSize&&(S=i.virtual.slidesPerViewAutoSlideSize),S&&s&&(i.roundLengths&&(S=Math.floor(S)),s.style[t.getDirectionLabel("width")]=`${S}px`);else if("auto"===i.slidesPerView){T&&(s.style[t.getDirectionLabel("width")]="");const n=getComputedStyle(s),o=s.style.transform,a=s.style.webkitTransform;if(o&&(s.style.transform="none"),a&&(s.style.webkitTransform="none"),i.roundLengths)S=t.isHorizontal()?hr(s,"width"):hr(s,"height");else{const t=e(n,"width"),i=e(n,"padding-left"),o=e(n,"padding-right"),a=e(n,"margin-left"),r=e(n,"margin-right"),l=n.getPropertyValue("box-sizing");if(l&&"border-box"===l)S=t+a+r;else{const{clientWidth:e,offsetWidth:n}=s;S=t+i+o+a+r+(n-e)}}o&&(s.style.transform=o),a&&(s.style.webkitTransform=a),i.roundLengths&&(S=Math.floor(S))}else S=(_-(i.slidesPerView-1)*y)/i.slidesPerView,i.roundLengths&&(S=Math.floor(S)),s&&(s.style[t.getDirectionLabel("width")]=`${S}px`);s&&(s.swiperSlideSize=S),p.push(S),i.centeredSlides?(b=b+S/2+w/2+y,0===w&&0!==n&&(b=b-_/2-y),0===n&&(b=b-_/2-y),Math.abs(b)<.001&&(b=0),i.roundLengths&&(b=Math.floor(b)),x%i.slidesPerGroup==0&&d.push(b),u.push(b)):(i.roundLengths&&(b=Math.floor(b)),(x-Math.min(t.params.slidesPerGroupSkip,x))%t.params.slidesPerGroup==0&&d.push(b),u.push(b),b=b+S+y),t.virtualSize+=S+y,w=S,x+=1}}if(t.virtualSize=Math.max(t.virtualSize,_)+m,o&&a&&("slide"===i.effect||"coverflow"===i.effect)&&(n.style.width=`${t.virtualSize+y}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+y}px`),k&&t.grid.updateWrapperSize(S,d),!i.centeredSlides){const e=[];for(let n=0;n<d.length;n+=1){let s=d[n];i.roundLengths&&(s=Math.floor(s)),d[n]<=t.virtualSize-_&&e.push(s)}d=e,Math.floor(t.virtualSize-_)-Math.floor(d[d.length-1])>1&&d.push(t.virtualSize-_)}if(r&&i.loop){const e=p[0]+y;if(i.slidesPerGroup>1){const n=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),s=e*i.slidesPerGroup;for(let t=0;t<n;t+=1)d.push(d[d.length-1]+s)}for(let n=0;n<t.virtual.slidesBefore+t.virtual.slidesAfter;n+=1)1===i.slidesPerGroup&&d.push(d[d.length-1]+e),u.push(u[u.length-1]+e),t.virtualSize+=e}if(0===d.length&&(d=[0]),0!==y){const e=t.isHorizontal()&&o?"marginLeft":t.getDirectionLabel("marginRight");c.filter(((t,e)=>
vendor: 38,069 bytes, line 63
63!(i.cssMode&&!i.loop)||e!==c.length-1)).forEach((t=>{t.style[e]=`${y}px`}))}if(i.centeredSlides&&i.centeredSlidesBounds){let t=0;p.forEach((e=>{t+=e+(y||0)})),t-=y;const e=t>_?t-_:0;d=d.map((t=>t<=0?-f:t>e?e+m:t))}if(i.centerInsufficientSlides){let t=0;p.forEach((e=>{t+=e+(y||0)})),t-=y;const e=(f||0)+(m||0);if(t+e<_){const i=(_-t-e)/2;d.forEach(((t,e)=>{d[e]=t-i})),u.forEach(((t,e)=>{u[e]=t+i}))}}if(Object.assign(t,{slides:c,snapGrid:d,slidesGrid:u,slidesSizesGrid:p}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Ja(n,"--swiper-centered-offset-before",-d[0]+"px"),Ja(n,"--swiper-centered-offset-after",t.size/2-p[p.length-1]/2+"px");const e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+e)),t.slidesGrid=t.slidesGrid.map((t=>t+i))}if(h!==l&&t.emit("slidesLengthChange"),d.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),u.length!==v&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!(r||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const e=`${i.containerModifierClass}backface-hidden`,n=t.el.classList.contains(e);h<=i.maxBackfaceHiddenSlides?n||t.el.classList.add(e):n&&t.el.classList.remove(e)}},updateAutoHeight:function(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let s,o=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const a=t=>n?e.slides[e.getSlideIndexByData(t)]:e.slides[t];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach((t=>{i.push(t)}));else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const t=e.activeIndex+s;if(t>e.slides.length&&!n)break;i.push(a(t))}else i.push(a(e.activeIndex));for(s=0;s<i.length;s+=1)if(typeof i[s]<"u"){const t=i[s].offsetHeight;o=t>o?t:o}(o||0===o)&&(e.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,i=e.params,{slides:n,rtlTranslate:s,snapGrid:o}=e;if(0===n.length)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;s&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let r=i.spaceBetween;"string"==typeof r&&r.indexOf("%")>=0?r=parseFloat(r.replace("%",""))/100*e.size:"string"==typeof r&&(r=parseFloat(r));for(let t=0;t<n.length;t+=1){const l=n[t];let c=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=n[0].swiperSlideOffset);const h=(a+(i.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+r),d=(a-o[0]+(i.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+r),u=-(a-c),p=u+e.slidesSizesGrid[t],f=u>=0&&u<=e.size-e.slidesSizesGrid[t],m=u>=0&&u<e.size-1||p>1&&p<=e.size||u<=0&&p>=e.size;m&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(t)),br(l,m,i.slideVisibleClass),br(l,f,i.slideFullyVisibleClass),l.progress=s?-h:h,l.originalProgress=s?-d:d}},updateProgress:function(t){const e=this;if(typeof t>"u"){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:o,isEnd:a,progressLoop:r}=e;const l=o,c=a;if(0===n)s=0,o=!0,a=!0;else{s=(t-e.minTranslate())/n;const i=Math.abs(t-e.minTranslate())<1,r=Math.abs(t-e.maxTranslate())<1;o=i||s<=0,a=r||s>=1,i&&(s=0),r&&(s=1)}if(i.loop){const i=e.getSlideIndexByData(0),n=e.getSlideIndexByData(e.slides.length-1),s=e.slidesGrid[i],o=e.slidesGrid[n],a=e.slidesGrid[e.slidesGrid.length-1],l=Math.abs(t);r=l>=s?(l-s)/a:(l+a-o)/a,r>1&&(r-=1)}Object.assign(e,{progress:s,progressLoop:r,isBeginning:o,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),o&&!l&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(l&&!o||c&&!a)&&e.emit("fromEdge"),e.emit("progress",s)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:s}=t,o=t.virtual&&i.virtual.enabled,a=t.grid&&i.grid&&i.grid.rows>1,r=t=>ir(n,`.${i.slideClass}${t}, swiper-slide${t}`)[0];let l,c,h;if(o)if(i.loop){let e=s-t.virtual.slidesBefore;e<0&&(e=t.virtual.slides.length+e),e>=t.virtual.slides.length&&(e-=t.virtual.slides.length),l=r(`[data-swiper-slide-index="${e}"]`)}else l=r(`[data-swiper-slide-index="${s}"]`);else a?(l=e.find((t=>t.column===s)),h=e.find((t=>t.column===s+1)),c=e.find((t=>t.column===s-1))):l=e[s];l&&(a||(h=function(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!h&&(h=e[0]),c=function(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=e[e.length-1]))),e.forEach((t=>{wr(t,t===l,i.slideActiveClass),wr(t,t===h,i.slideNextClass),wr(t,t===c,i.slidePrevClass)})),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:s,activeIndex:o,realIndex:a,snapIndex:r}=e;let l,c=t;const h=t=>{let i=t-e.virtual.slidesBefore;return i<0&&(i=e.virtual.slides.length+i),i>=e.virtual.slides.length&&(i-=e.virtual.slides.length),i};if(typeof c>"u"&&(c=function(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let s;for(let t=0;t<e.length;t+=1)typeof e[t+1]<"u"?n>=e[t]&&n<e[t+1]-(e[t+1]-e[t])/2?s=t:n>=e[t]&&n<e[t+1]&&(s=t+1):n>=e[t]&&(s=t);return i.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}(e)),n.indexOf(i)>=0)l=n.indexOf(i);else{const t=Math.min(s.slidesPerGroupSkip,c);l=t+Math.floor((c-t)/s.slidesPerGroup)}if(l>=n.length&&(l=n.length-1),c===o&&!e.params.loop)return void(l!==r&&(e.snapIndex=l,e.emit("snapIndexChange")));if(c===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled)return void(e.realIndex=h(c));const d=e.grid&&s.grid&&s.grid.rows>1;let u;if(e.virtual&&s.virtual.enabled&&s.loop)u=h(c);else if(d){const t=e.slides.find((t=>t.column===c));let i=parseInt(t.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(e.slides.indexOf(t),0)),u=Math.floor(i/s.grid.rows)}else if(e.slides[c]){const t=e.slides[c].getAttribute("data-swiper-slide-index");u=t?parseInt(t,10):c}else u=c;Object.assign(e,{previousSnapIndex:r,snapIndex:l,previousRealIndex:a,realIndex:u,previousIndex:o,activeIndex:c}),e.initialized&&Sr(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==u&&e.emit("realIndexChange"),e.emit("slideChange"))},updateClickedSlide:function(t,e){const i=this,n=i.params;let s=t.closest(`.${n.slideClass}, swiper-slide`);!s&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach((t=>{!s&&t.matches&&t.matches(`.${n.slideClass}, swiper-slide`)&&(s=t)}));let o,a=!1;if(s)for(let t=0;t<i.slides.length;t+=1)if(i.slides[t]===s){a=!0,o=t;break}if(!s||!a)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=o,n.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},translate:{getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:i,translate:n,wrapperEl:s}=this;if(e.virtualTranslate)return i?-n:n;if(e.cssMode)return n;let o=Ga(s,t);return o+=this.cssOverflowAdjustment(),i&&(o=-o),o||0},setTranslate:function(t,e){const i=this,{rtlTranslate:n,params:s,wrapperEl:o,progress:a}=i;let r,l=0,c=0;i.isHorizontal()?l=n?-t:t:c=t,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,s.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:s.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():c-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const h=i.maxTranslate()-i.minTranslate();r=0===h?0:(t-i.minTranslate())/h,r!==a&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,i=!0,n=!0,s){const o=this,{params:a,wrapperEl:r}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let h;if(h=n&&t>l?l:n&&t<c?c:t,o.updateProgress(h),a.cssMode){const t=o.isHorizontal();if(0===e)r[t?"scrollLeft":"scrollTop"]=-h;else{if(!o.support.smoothScroll)return tr({swiper:o,targetPosition:-h,side:t?"left":"top"}),!0;r.scrollTo({[t?"left":"top"]:-h,behavior:"smooth"})}return!0}return 0===e?(o.setTransition(0),o.setTranslate(h),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(h),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){!o||o.destroyed||t.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=0===t?"0ms":""),i.emit("setTransition",t,e)},transitionStart:function(t=!0,e){const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),Tr({swiper:i,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t=!0,e){const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),Tr({swiper:i,runCallbacks:t,direction:e,step:"End"}))}},slide:{slideTo:function(t=0,e,i=!0,n,s){"string"==typeof t&&(t=parseInt(t,10));const o=this;let a=t;a<0&&(a=0);const{params:r,snapGrid:l,slidesGrid:c,previousIndex:h,activeIndex:d,rtlTranslate:u,wrapperEl:p,enabled:f}=o;if(!f&&!n&&!s||o.destroyed||o.animating&&r.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,a);let g=m+Math.floor((a-m)/o.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(r.normalizeSlideIndex)for(let t=0;t<c.length;t+=1){const e=-Math.floor(100*v),i=Math.floor(100*c[t]),n=Math.floor(100*c[t+1]);typeof c[t+1]<"u"?e>=i&&e<n-(n-i)/2?a=t:e>=i&&e<n&&(a=t+1):e>=i&&(a=t)}if(o.initialized&&a!==d&&(!o.allowSlideNext&&(u?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate())||!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(d||0)!==a))return!1;let _;a!==(h||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(v),_=a>d?"next":a<d?"prev":"reset";const y=o.virtual&&o.params.virtual.enabled;if((!y||!s)&&(u&&-v===o.translate||!u&&v===o.translate))return o.updateActiveIndex(a),r.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==r.effect&&o.setTranslate(v),"reset"!==_&&(o.transitionStart(i,_),o.transitionEnd(i,_)),!1;if(r.cssMode){const t=o.isHorizontal(),i=u?v:-v;if(0===e)y&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),y&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{p[t?"scrollLeft":"scrollTop"]=i}))):p[t?"scrollLeft":"scrollTop"]=i,y&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}));else{if(!o.support.smoothScroll)return tr({swiper:o,targetPosition:i,side:t?"left":"top"}),!0;p.scrollTo({[t?"left":"top"]:i,behavior:"smooth"})}return!0}const b=yr().isSafari;return y&&!s&&b&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(e),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(i,_),0===e?o.transitionEnd(i,_):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(t){!o||o.destroyed||t.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,_))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t=0,e,i=!0,n){"string"==typeof t&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const o=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)a+=s.virtual.slidesBefore;else{let t;if(o){const e=a*s.params.grid.rows;t=s.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else t=s.getSlideIndexByData(a);const e=o?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:i,slidesOffsetBefore:r,slidesOffsetAfter:l}=s.params,c=i||!!r||!!l;let h=s.params.slidesPerView;"auto"===h?h=s.slidesPerViewDynamic():(h=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&h%2==0&&(h+=1));let d=e-t<h;if(c&&(d=d||t<Math.ceil(h/2)),n&&c&&"auto"!==s.params.slidesPerView&&!o&&(d=!1),d){const i=c?t<s.activeIndex?"prev":"next":t-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?t+1:t-e+1,slideRealIndex:"next"===i?s.realIndex:void 0})}if(o){const t=a*s.params.grid.rows;a=s.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else a=s.getSlideIndexByData(a)}return requestAnimationFrame((()=>{s.slideTo(a,e,i,n)})),s},slideNext:function(t,e=!0,i){const n=this,{enabled:s,params:o,animating:a}=n;if(!s||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let r=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(r=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<o.slidesPerGroupSkip?1:r,c=n.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&o.cssMode)return requestAnimationFrame((()=>{n.slideTo(n.activeIndex+l,t,e,i)})),!0}return o.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+l,t,e,i)},slidePrev:function(t,e=!0,i){const n=this,{params:s,snapGrid:o,slidesGrid:a,rtlTranslate:r,enabled:l,animating:c}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const h=n.virtual&&s.virtual.enabled;if(s.loop){if(c&&!h&&s.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function d(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const u=d(r?n.translate:-n.translate),p=o.map((t=>d(t))),f=s.freeMode&&s.freeMode.enabled;let m=o[p.indexOf(u)-1];if(typeof m>"u"&&(s.cssMode||f)){let t;o.forEach(((e,i)=>{u>=e&&(t=i)})),typeof t<"u"&&(m=f?o[t]:o[t>0?t-1:t])}let g=0;if(typeof m<"u"&&(g=a.indexOf(m),g<0&&(g=n.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-n.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,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,t,e,i)}return s.loop&&0===n.activeIndex&&s.cssMode?(requestAnimationFrame((()=>{n.slideTo(g,t,e,i)})),!0):n.slideTo(g,t,e,i)},slideReset:function(t,e=!0,i){const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)},slideToClosest:function(t,e=!0,i,n=.5){const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let o=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,o),r=a+Math.floor((o-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[r]){const t=s.snapGrid[r];l-t>(s.snapGrid[r+1]-t)*n&&(o+=s.params.slidesPerGroup)}else{const t=s.snapGrid[r-1];l-t<=(s.snapGrid[r]-t)*n&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,t,e,i)},slideToClickedSlide:function(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let s,o=t.getSlideIndexWhenGrid(t.clickedIndex);const a=t.isElement?"swiper-slide":`.${e.slideClass}`,r=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(s):o>(r?(t.slides.length-n)/2-(t.params.grid.rows-1):t.slides.length-n)?(t.loopFix(),o=t.getSlideIndex(ir(i,`${a}[data-swiper-slide-index="${s}"]`)[0]),qa((()=>{t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}},loop:{loopCreate:function(t,e){const i=this,{params:n,slidesEl:s}=i;if(!n.loop||i.virtual&&i.params.virtual.enabled)return;const o=()=>{ir(s,`.${n.slideClass}, swiper-slide`).forEach(((t,e)=>{t.setAttribute("data-swiper-slide-index",e)}))},a=i.grid&&n.grid&&n.grid.rows>1;n.loopAddBlankSlides&&(n.slidesPerGroup>1||a)&&(()=>{const t=ir(s,`.${n.slideBlankClass}`);t.forEach((t=>{t.remove()})),t.length>0&&(i.recalcSlides(),i.updateSlides())})();const r=n.slidesPerGroup*(a?n.grid.rows:1),l=i.slides.length%r!=0,c=a&&i.slides.length%n.grid.rows!=0,h=t=>{for(let e=0;e<t;e+=1){const t=i.isElement?sr("swiper-slide",[n.slideBlankClass]):sr("div",[n.slideClass,n.slideBlankClass]);i.slidesEl.append(t)}};l?(n.loopAddBlankSlides?(h(r-i.slides.length%r),i.recalcSlides(),i.updateSlides()):nr("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):c?(n.loopAddBlankSlides?(h(n.grid.rows-i.slides.length%n.grid.rows),i.recalcSlides(),i.updateSlides()):nr("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):o();const d=n.centeredSlides||!!n.slidesOffsetBefore||!!n.slidesOffsetAfter;i.loopFix({slideRealIndex:t,direction:d?void 0:"next",initial:e})},loopFix:function({slideRealIndex:t,slideTo:e=!0,direction:i,setTranslate:n,activeSlideIndex:s,initial:o,byController:a,byMousewheel:r}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:h,allowSlideNext:d,slidesEl:u,params:p}=l,{centeredSlides:f,slidesOffsetBefore:m,slidesOffsetAfter:g,initialSlide:v}=p,_=f||!!m||!!g;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled)return e&&(_||0!==l.snapIndex?_&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=h,l.allowSlideNext=d,void l.emit("loopFix");let y=p.slidesPerView;"auto"===y?y=l.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),_&&y%2==0&&(y+=1));const b=p.slidesPerGroupAuto?y:p.slidesPerGroup;let w=_?Math.max(b,Math.ceil(y/2)):b;w%b!=0&&(w+=b-w%b),w+=p.loopAdditionalSlides,l.loopedSlides=w;const x=l.grid&&p.grid&&p.grid.rows>1;c.length<y+w||"cards"===l.params.effect&&c.length<y+2*w?nr("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):x&&"row"===p.grid.fill&&nr("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const k=[],S=[],T=x?Math.ceil(c.length/p.grid.rows):c.length,E=o&&T-v<y&&!_;let C=E?v:l.activeIndex;typeof s>"u"?s=l.getSlideIndex(c.find((t=>t.classList.contains(p.slideActiveClass)))):C=s;const M="next"===i||!i,L="prev"===i||!i;let P=0,D=0;const A=(x?c[s].column:s)+(_&&typeof n>"u"?-y/2+.5:0);if(A<w){P=Math.max(w-A,b);for(let t=0;t<w-A;t+=1){const e=t-Math.floor(t/T)*T;if(x){const t=T-e-1;for(let e=c.length-1;e>=0;e-=1)c[e].column===t&&k.push(e)}else k.push(T-e-1)}}else if(A+y>T-w){D=Math.max(A-(T-2*w),b),E&&(D=Math.max(D,y-T+v+1));for(let t=0;t<D;t+=1){const e=t-Math.floor(t/T)*T;x?c.forEach(((t,i)=>{t.column===e&&S.push(i)})):S.push(e)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),"cards"===l.params.effect&&c.length<y+2*w&&(S.includes(s)&&S.splice(S.indexOf(s),1),k.includes(s)&&k.splice(k.indexOf(s),1)),L&&k.forEach((t=>{c[t].swiperLoopMoveDOM=!0,u.prepend(c[t]),c[t].swiperLoopMoveDOM=!1})),M&&S.forEach((t=>{c[t].swiperLoopMoveDOM=!0,u.append(c[t]),c[t].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():x&&(k.length>0&&L||S.length>0&&M)&&l.slides.forEach(((t,e)=>{l.grid.updateSlide(e,t,l.slides)})),p.watchSlidesProgress&&l.updateSlidesOffset(),e)if(k.length>0&&L){if(typeof t>"u"){const t=l.slidesGrid[C],e=l.slidesGrid[C+P]-t;r?l.setTranslate(l.translate-e):(l.slideTo(C+Math.ceil(P),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-e,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-e))}else if(n){const t=x?k.length/p.grid.rows:k.length;l.slideTo(l.activeIndex+t,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(S.length>0&&M)if(typeof t>"u"){const t=l.slidesGrid[C],e=l.slidesGrid[C-D]-t;r?l.setTranslate(l.translate-e):(l.slideTo(C-D,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-e,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-e))}else{const t=x?S.length/p.grid.rows:S.length;l.slideTo(l.activeIndex-t,0,!1,!0)}if(l.allowSlidePrev=h,l.allowSlideNext=d,l.controller&&l.controller.control&&!a){const o={slideRealIndex:t,direction:i,setTranslate:n,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...o,slideTo:t.params.slidesPerView===p.slidesPerView&&e})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...o,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&e})}l.emit("loopFix")},loopDestroy:function(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||!i||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach((t=>{const e=typeof t.swiperSlideIndex>"u"?1*t.getAttribute("data-swiper-slide-index"):t.swiperSlideIndex;n[e]=t})),t.slides.forEach((t=>{t.removeAttribute("data-swiper-slide-index")})),n.forEach((t=>{i.append(t)})),t.recalcSlides(),t.slideTo(t.realIndex,0)}},grabCursor:{setGrabCursor:function(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1}))},unsetGrabCursor:function(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1})))}},events:{attachEvents:function(){const t=this,{params:e}=t;t.onTouchStart=Cr.bind(t),t.onTouchMove=Mr.bind(t),t.onTouchEnd=Lr.bind(t),t.onDocumentTouchStart=Ir.bind(t),e.cssMode&&(t.onScroll=Ar.bind(t)),t.onClick=Dr.bind(t),t.onLoad=Or.bind(t),zr(t,"on")},detachEvents:function(){zr(this,"off")}},breakpoints:{setBreakpoint:function(){const t=this,{realIndex:e,initialized:i,params:n,el:s}=t,o=n.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=Wa(),r="window"!==n.breakpointsBase&&n.breakpointsBase?"container":n.breakpointsBase,l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?t.el:a.querySelector(n.breakpointsBase),c=t.getBreakpoint(o,r,l);if(!c||t.currentBreakpoint===c)return;const h=(c in o?o[c]:void 0)||t.originalParams,d=Nr(t,n),u=Nr(t,h),p=t.params.grabCursor,f=h.grabCursor,m=n.enabled;d&&!u?(s.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!d&&u&&(s.classList.add(`${n.containerModifierClass}grid`),(h.grid.fill&&"column"===h.grid.fill||!h.grid.fill&&"column"===n.grid.fill)&&s.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!f?t.unsetGrabCursor():!p&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((e=>{if(typeof h[e]>"u")return;const i=n[e]&&n[e].enabled,s=h[e]&&h[e].enabled;i&&!s&&t[e].disable(),!i&&s&&t[e].enable()}));const g=h.direction&&h.direction!==n.direction,v=n.loop&&(h.slidesPerView!==n.slidesPerView||g),_=n.loop;g&&i&&t.changeDirection(),Qa(t.params,h);const y=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!y?t.disable():!m&&y&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",h),i&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!_&&b?(t.loopCreate(e),t.updateSlides()):_&&!b&&t.loopDestroy()),t.emit("breakpoint",h)},getBreakpoint:function(t,e="window",i){if(!t||"container"===e&&!i)return;let n=!1;const s=Za(),o="window"===e?s.innerHeight:i.clientHeight,a=Object.keys(t).map((t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:o*e,point:t}}return{value:t,point:t}}));a.sort(((t,e)=>parseInt(t.value,10)-parseInt(e.value,10)));for(let t=0;t<a.length;t+=1){const{point:o,value:r}=a[t];"window"===e?s.matchMedia(`(min-width: ${r}px)`).matches&&(n=o):r<=i.clientWidth&&(n=o)}return n||"max"}},checkOverflow:{checkOverflow:function(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const e=t.slides.length-1,i=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*n;t.isLocked=t.size>i}else t.isLocked=1===t.snapGrid.length;!0===i.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===i.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const t=this,{classNames:e,params:i,rtl:n,el:s,device:o}=t,a=function(t,e){const i=[];return t.forEach((t=>{"object"==typeof t?Object.keys(t).forEach((n=>{t[n]&&i.push(e+n)})):"string"==typeof t&&i.push(e+t)})),i}(["initialized",i.direction,{"free-mode":t.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:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...a),s.classList.add(...e),t.emitContainerClasses()},removeClasses:function(){const{el:t,classNames:e}=this;!t||"string"==typeof t||(t.classList.remove(...e),this.emitContainerClasses())}}},Hr={};class jr{constructor(...t){let e,i;1===t.length&&t[0].constructor&&"Object"===Object.prototype.toString.call(t[0]).slice(8,-1)?i=t[0]:[e,i]=t,i||(i={}),i=Qa({},i),e&&!i.el&&(i.el=e);const n=Wa();if(i.el&&"string"==typeof i.el&&n.querySelectorAll(i.el).length>1){const t=[];return n.querySelectorAll(i.el).forEach((e=>{const n=Qa({},i,{el:e});t.push(new jr(n))})),t}const s=this;s.__swiper__=!0,s.support=vr(),s.device=_r({userAgent:i.userAgent}),s.browser=yr(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],i.modules&&Array.isArray(i.modules)&&s.modules.push(...i.modules);const o={};s.modules.forEach((t=>{t({params:i,swiper:s,extendParams:Br(i,o),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})}));const a=Qa({},$r,o);return s.params=Qa({},a,Hr,i),s.originalParams=Qa({},s.params),s.passedParams=Qa({},i),s.params&&s.params.on&&Object.keys(s.params.on).forEach((t=>{s.on(t,s.params.on[t])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,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:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(t){return this.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]}getSlideIndex(t){const{slidesEl:e,params:i}=this,n=rr(ir(e,`.${i.slideClass}, swiper-slide`)[0]);return rr(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?t=Math.floor(t/this.params.grid.rows):"row"===this.params.grid.fill&&(t%=Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const{slidesEl:t,params:e}=this;this.slides=ir(t,`.${e.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const i=this;t=Math.min(Math.max(t,0),1);const n=i.minTranslate(),s=(i.maxTranslate()-n)*t+n;i.translateTo(s,typeof e>"u"?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter((e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.forEach((i=>{const n=t.getSlideClasses(i);e.push({slideEl:i,classNames:n}),t.emit("_slideClass",i,n)})),t.emit("_slideClasses",e)}slidesPerViewDynamic(t="current",e=!1){const{params:i,slides:n,slidesGrid:s,slidesSizesGrid:o,size:a,activeIndex:r}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let t,e=n[r]?Math.ceil(n[r].swiperSlideSize):0;for(let i=r+1;i<n.length;i+=1)n[i]&&!t&&(e+=Math.ceil(n[i].swiperSlideSize),l+=1,e>a&&(t=!0));for(let i=r-1;i>=0;i-=1)n[i]&&!t&&(e+=n[i].swiperSlideSize,l+=1,e>a&&(t=!0))}else if("current"===t)for(let t=r+1;t<n.length;t+=1)(e?s[t]+o[t]-s[r]<a:s[t]-s[r]<a)&&(l+=1);else for(let t=r-1;t>=0;t-=1)s[r]-s[t]<a&&(l+=1);return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:i}=t;function n(){const e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(i.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach((e=>{e.complete&&xr(t,e)})),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)n(),i.autoHeight&&t.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&t.isEnd&&!i.centeredSlides){const e=t.virtual&&i.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(e.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||n()}i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const i=this,n=i.params.direction;return t||(t="horizontal"===n?"vertical":"horizontal"),t===n||"horizontal"!==t&&"vertical"!==t||(i.el.classList.remove(`${i.params.containerModifierClass}${n}`),i.el.classList.add(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.forEach((e=>{"vertical"===t?e.style.width="":e.style.height=""})),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.el.classList.add(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.el.classList.remove(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;let i=t||e.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=e,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===e.params.swiperElementNodeName.toUpperCase()&&(e.isElement=!0);const n=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(n()):ir(i,n())[0];return!s&&e.params.createElements&&(s=sr("div",e.params.wrapperClass),i.append(s),ir(i,`.${e.params.slideClass}`).forEach((t=>{s.append(t)}))),Object.assign(e,{el:i,wrapperEl:s,slidesEl:e.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:s,hostEl:e.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===ar(i,"direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===ar(i,"direction")),wrongRTL:"-webkit-box"===ar(s,"display")}),!0}init(t){const e=this;if(e.initialized||!1===e.mount(t))return e;e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.loop&&e.virtual&&e.params.virtual.enabled?e.slideTo(e.params.initialSlide+e.virtual.slidesBefore,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(void 0,!0),e.attachEvents();const i=[...e.el.querySelectorAll('[loading="lazy"]')];return e.isElement&&i.push(...e.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach((t=>{t.complete?xr(e,t):t.addEventListener("load",(t=>{xr(e,t.target)}))})),Sr(e),e.initialized=!0,Sr(e),e.emit("init"),e.emit("afterInit"),e}destroy(t=!0,e=!0){const i=this,{params:n,el:s,wrapperEl:o,slides:a}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),e&&(i.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach((t=>{t.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),t.removeAttribute("style"),t.removeAttribute("data-swiper-slide-index")}))),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((t=>{i.off(t)})),!1!==t&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),function(t){const e=t;Object.keys(e).forEach((t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}}))}(i)),i.destroyed=!0),null}static extendDefaults(t){Qa(Hr,t)}static get extendedDefaults(){return Hr}static get defaults(){return $r}static installModule(t){jr.prototype.__modules__||(jr.prototype.__modules__=[]);const e=jr.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>jr.installModule(t))),jr):(jr.installModule(t),jr)}}function Fr(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach((s=>{if(!i[s]&&!0===i.auto){let o=ir(t.el,`.${n[s]}`)[0];o||(o=sr("div",n[s]),o.className=n[s],t.el.append(o)),i[s]=o,e[s]=o}})),i}Object.keys(Rr).forEach((t=>{Object.keys(Rr[t]).forEach((e=>{jr.prototype[e]=Rr[t][e]}))})),jr.use([function({swiper:t,on:e,emit:i}){const n=Za();let s=null,o=null;const a=()=>{!t||t.destroyed||!t.initialized||(i("beforeResize"),i("resize"))},r=()=>{!t||t.destroyed||!t.initialized||i("orientationchange")};e("init",(()=>{t.params.resizeObserver&&typeof n.ResizeObserver<"u"?!t||t.destroyed||!t.initialized||(s=new ResizeObserver((e=>{o=n.requestAnimationFrame((()=>{const{width:i,height:n}=t;let s=i,o=n;e.forEach((({contentBoxSize:e,contentRect:i,target:n})=>{n&&n!==t.el||(s=i?i.width:(e[0]||e).inlineSize,o=i?i.height:(e[0]||e).blockSize)})),(s!==i||o!==n)&&a()}))})),s.observe(t.el)):(n.addEventListener("resize",a),n.addEventListener("orientationchange",r))})),e("destroy",(()=>{o&&n.cancelAnimationFrame(o),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",r)}))},function({swiper:t,extendParams:e,on:i,emit:n}){const s=[],o=Za(),a=(e,i={})=>{const a=new(o.MutationObserver||o.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void n("observerUpdate",e[0]);const i=function(){n("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0)}));a.observe(e,{attributes:typeof i.attributes>"u"||i.attributes,childList:t.isElement||(typeof i.childList>"u"||i).childList,characterData:typeof i.characterData>"u"||i.characterData}),s.push(a)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=lr(t.hostEl);for(let t=0;t<e.length;t+=1)a(e[t])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}})),i("destroy",(()=>
vendor: 2,622 bytes, line 63
63{s.forEach((t=>{t.disconnect()})),s.splice(0,s.length)}))}]);const Wr='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Yr(t=""){return`.${t.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function Zr(t){const e=this,{params:i,slidesEl:n}=e;i.loop&&e.loopDestroy();const s=t=>{if("string"==typeof t){const e=document.createElement("div");pr(e,t),n.append(e.children[0]),pr(e,"")}else n.append(t)};if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&s(t[e]);else s(t);e.recalcSlides(),i.loop&&e.loopCreate(),(!i.observer||e.isElement)&&e.update()}function Vr(t){const e=this,{params:i,activeIndex:n,slidesEl:s}=e;i.loop&&e.loopDestroy();let o=n+1;const a=t=>{if("string"==typeof t){const e=document.createElement("div");pr(e,t),s.prepend(e.children[0]),pr(e,"")}else s.prepend(t)};if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a(t[e]);o=n+t.length}else a(t);e.recalcSlides(),i.loop&&e.loopCreate(),(!i.observer||e.isElement)&&e.update(),e.slideTo(o,0,!1)}function qr(t,e){const i=this,{params:n,activeIndex:s,slidesEl:o}=i;let a=s;n.loop&&(a-=i.loopedSlides,i.loopDestroy(),i.recalcSlides());const r=i.slides.length;if(t<=0)return void i.prependSlide(e);if(t>=r)return void i.appendSlide(e);let l=a>t?a+1:a;const c=[];for(let e=r-1;e>=t;e-=1){const t=i.slides[e];t.remove(),c.unshift(t)}if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&o.append(e[t]);l=a>t?a+e.length:a}else o.append(e);for(let t=0;t<c.length;t+=1)o.append(c[t]);i.recalcSlides(),n.loop&&i.loopCreate(),(!n.observer||i.isElement)&&i.update(),n.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function Ur(t){const e=this,{params:i,activeIndex:n}=e;let s=n;i.loop&&(s-=e.loopedSlides,e.loopDestroy());let o,a=s;if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)o=t[i],e.slides[o]&&e.slides[o].remove(),o<a&&(a-=1);a=Math.max(a,0)}else o=t,e.slides[o]&&e.slides[o].remove(),o<a&&(a-=1),a=Math.max(a,0);e.recalcSlides(),i.loop&&e.loopCreate(),(!i.observer||e.isElement)&&e.update(),i.loop?e.slideTo(a+e.loopedSlides,0,!1):e.slideTo(a,0,!1)}function Gr(){const t=this,e=[];for(let i=0;i<t.slides.length;
63i+=1)e.push(i);t.removeSlide(e)}function Xr(t){const{effect:e,swiper:i,on:n,setTranslate:s,setTransition:o,overwriteParams:a,perspective:r,recreateShadows:l,getEffectParams:c}=t;let h;n("beforeInit",(()=>{if(i.params.effect!==e)return;i.classNames.push(`${i.params.containerModifierClass}${e}`),r&&r()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const t=a?a():{};Object.assign(i.params,t),Object.assign(i.originalParams,t)})),n("setTranslate _virtualUpdated",(()=>{i.params.effect===e&&s()})),n("setTransition",((t,n)=>{i.params.effect===e&&o(n)})),n("transitionEnd",(()=>{if(i.params.effect===e&&l){if(!c||!c().slideShadows)return;i.slides.forEach((t=>{t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>t.remove()))})),l()}})),n("virtualUpdate",(()=>{i.params.effect===e&&(i.slides.length||(h=!0),requestAnimationFrame((()=>{h&&i.slides&&i.slides.length&&(s(),h=!1)})))}))}function Kr(t,e){const i=er(e);return i!==e&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function Qr({swiper:t,duration:e,transformElements:i,allSlides:n}){const{activeIndex:s}=t;if(t.params.virtualTranslate&&0!==e){let e,o=!1;e=n?i:i.filter((e=>{const i=e.classList.contains("swiper-slide-transform")?(e=>e.parentElement?e.parentElement:t.slides.find((t=>t.shadowRoot&&t.shadowRoot===e.parentNode)))(e):e;return t.getSlideIndex(i)===s})),e.forEach((e=>{cr(e,(()=>{if(o||!t||t.destroyed)return;o=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function Jr(t,e,i){const n=`swiper-slide-shadow${i?`-${i}`:""}${t?` swiper-slide-shadow-${t}`:""}`,s=er(e);let o=s.querySelector(`.${n.split(" ").join(".")}`);return o||(o=sr("div",n.split(" ")),s.append(o)),o}const tl=[function({swiper:t,extendParams:e,on:i,emit:n}){let s;e({virtual:{enabled:!1,slides:[],cache:!0,slidesPerViewAutoSlideSize:320,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const o=Wa();t.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const a=o.createElement("div");function r(e,i){const n=t.params.virtual;if(n.cache&&t.virtual.cache[i])return t.virtual.cache[i];let s;return n.renderSlide?(s=n.renderSlide.call(t,e,i),"string"==typeof s&&(pr(a,s),s=a.children[0])):s=t.isElement?sr("swiper-slide"):sr("div",t.params.slideClass),s.setAttribute("data-swiper-slide-index",i),n.renderSlide||pr(s,e),n.cache&&(t.virtual.cache[i]=s),s}function l(e,i,s){const{slidesPerGroup:o,centeredSlides:a,slidesPerView:l,loop:c,initialSlide:h}=t.params;if(i&&!c&&h>0)return;const{addSlidesBefore:d,addSlidesAfter:u,slidesPerViewAutoSlideSize:p}=t.params.virtual,{from:f,to:m,slides:g,slidesGrid:v,offset:_}=t.virtual;t.params.cssMode||t.updateActiveIndex();const y=typeof s>"u"?t.activeIndex||0:s;let b,w,x,k;if(b=t.rtlTranslate?"right":t.isHorizontal()?"left":"top","auto"===l)if(p){let e=t.size;e||(e=t.isHorizontal()?t.el.getBoundingClientRect().width:t.el.getBoundingClientRect().height),w=Math.max(1,Math.ceil(e/p))}else w=1;else w=l;a?(x=Math.floor(w/2)+o+u,k=Math.floor(w/2)+o+d):(x=w+(o-1)+u,k=(c?w:o)+d);let S=y-k,T=y+x;c||(S=Math.max(S,0),T=Math.min(T,g.length-1));let E=(t.slidesGrid[S]||0)-(t.slidesGrid[0]||0);function C(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),n("virtualUpdate")}if(c&&y>=k?(S-=k,a||(E+=t.slidesGrid[0])):c&&y<k&&(S=-k,a&&(E+=t.slidesGrid[0])),Object.assign(t.virtual,{from:S,to:T,offset:E,slidesGrid:t.slidesGrid,slidesBefore:k,slidesAfter:x}),f===S&&m===T&&!e)return t.slidesGrid!==v&&E!==_&&t.slides.forEach((e=>{e.style[b]=E-Math.abs(t.cssOverflowAdjustment())+"px"})),t.updateProgress(),void n("virtualUpdate");if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:E,from:S,to:T,slides:function(){const t=[];for(let e=S;e<=T;e+=1)t.push(g[e]);return t}()}),void(t.params.virtual.renderExternalUpdate?C():n("virtualUpdate"));const M=[],L=[],P=t=>{let e=t;return t<0?e=g.length+t:e>=g.length&&(e-=g.length),e};
vendor: 6,201 bytes, line 63
63if(e)t.slides.filter((e=>e.matches(`.${t.params.slideClass}, swiper-slide`))).forEach((t=>{t.remove()}));else for(let e=f;e<=m;e+=1)if(e<S||e>T){const i=P(e);t.slides.filter((e=>e.matches(`.${t.params.slideClass}[data-swiper-slide-index="${i}"], swiper-slide[data-swiper-slide-index="${i}"]`))).forEach((t=>{t.remove()}))}const D=c?-g.length:0,A=c?2*g.length:g.length;for(let t=D;t<A;t+=1)if(t>=S&&t<=T){const i=P(t);typeof m>"u"||e?L.push(i):(t>m&&L.push(i),t<f&&M.push(i))}if(L.forEach((e=>{t.slidesEl.append(r(g[e],e))})),c)for(let e=M.length-1;e>=0;e-=1){const i=M[e];t.slidesEl.prepend(r(g[i],i))}else M.sort(((t,e)=>e-t)),M.forEach((e=>{t.slidesEl.prepend(r(g[e],e))}));ir(t.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[b]=E-Math.abs(t.cssOverflowAdjustment())+"px"})),C()}i("beforeInit",(()=>{if(!t.params.virtual.enabled)return;let e;if(typeof t.passedParams.virtual.slides>"u"){const i=[...t.slidesEl.children].filter((e=>e.matches(`.${t.params.slideClass}, swiper-slide`)));i&&i.length&&(t.virtual.slides=[...i],e=!0,i.forEach(((e,i)=>{e.setAttribute("data-swiper-slide-index",i),t.virtual.cache[i]=e,e.remove()})))}e||(t.virtual.slides=t.params.virtual.slides),t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,l(!1,!0)})),i("setTranslate",(()=>{t.params.virtual.enabled&&(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(s),s=setTimeout((()=>{l()}),100)):l())})),i("init update resize",(()=>{t.params.virtual.enabled&&t.params.cssMode&&Ja(t.wrapperEl,"--swiper-virtual-size",`${t.virtualSize}px`)})),Object.assign(t.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.push(e[i]);else t.virtual.slides.push(e);l(!0)},prependSlide:function(e){const i=t.activeIndex;let n=i+1,s=1;if(Array.isArray(e)){for(let i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.unshift(e[i]);n=i+e.length,s=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const e=t.virtual.cache,i={};Object.keys(e).forEach((t=>{const n=e[t],o=n.getAttribute("data-swiper-slide-index");o&&n.setAttribute("data-swiper-slide-index",parseInt(o,10)+s),i[parseInt(t,10)+s]=n})),t.virtual.cache=i}l(!0),t.slideTo(n,0)},removeSlide:function(e){if(typeof e>"u"||null===e)return;let i=t.activeIndex;if(Array.isArray(e))for(let n=e.length-1;n>=0;n-=1)t.params.virtual.cache&&(delete t.virtual.cache[e[n]],Object.keys(t.virtual.cache).forEach((i=>{i>e&&(t.virtual.cache[i-1]=t.virtual.cache[i],t.virtual.cache[i-1].setAttribute("data-swiper-slide-index",i-1),delete t.virtual.cache[i])}))),t.virtual.slides.splice(e[n],1),e[n]<i&&(i-=1),i=Math.max(i,0);else t.params.virtual.cache&&(delete t.virtual.cache[e],Object.keys(t.virtual.cache).forEach((i=>{i>e&&(t.virtual.cache[i-1]=t.virtual.cache[i],t.virtual.cache[i-1].setAttribute("data-swiper-slide-index",i-1),delete t.virtual.cache[i])}))),t.virtual.slides.splice(e,1),e<i&&(i-=1),i=Math.max(i,0);l(!0),t.slideTo(i,0)},removeAllSlides:function(){t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),l(!0),t.slideTo(0,0)},update:l})},function({swiper:t,extendParams:e,on:i,emit:n}){const s=Wa(),o=Za();function a(e){if(!t.enabled)return;const{rtlTranslate:i}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const r=a.keyCode||a.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===r,h=l&&34===r,d=37===r,u=39===r,p=38===r,f=40===r;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&f||h)||!t.allowSlidePrev&&(t.isHorizontal()&&d||t.isVertical()&&p||c))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||s.activeElement&&(s.activeElement.isContentEditable||s.activeElement.nodeName&&("input"===s.activeElement.nodeName.toLowerCase()||"textarea"===s.activeElement.nodeName.toLowerCase())))){if(t.params.keyboard.onlyInViewport&&(c||h||d||u||p||f)){let e=!1;if(lr(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===lr(t.el,`.${t.params.slideActiveClass}`).length)return;const n=t.el,s=n.clientWidth,a=n.clientHeight,r=o.innerWidth,l=o.innerHeight,c=or(n);i&&(c.left-=n.scrollLeft);const h=[[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<h.length;t+=1){const i=h[t];if(i[0]>=0&&i[0]<=r&&i[1]>=0&&i[1]<=l){if(0===i[0]&&0===i[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||h||d||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((h||u)&&!i||(c||d)&&i)&&t.slideNext(),((c||d)&&!i||(h||u)&&i)&&t.slidePrev()):((c||h||p||f)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(h||f)&&t.slideNext(),(c||p)&&t.slidePrev()),n("keyPress",r)}}function r(){t.keyboard.enabled||(s.addEventListener("keydown",a),t.keyboard.enabled=!0)}function l(){t.keyboard.enabled&&(s.removeEventListener("keydown",a),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},e({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&r()})),i("destroy",(()=>{t.keyboard.enabled&&l()})),Object.assign(t.keyboard,{enable:r,disable:l})},function({swiper:t,extendParams:e,on:i,emit:n}){const s=Za();e({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let o,a,r=Ua();const l=[];function c(){t.enabled&&(t.mouseEntered=!0)}function h(){t.enabled&&(t.mouseEntered=!1)}function d(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&Ua()-r<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&Ua()-r<60||(e.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),n("scroll",e.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),n("scroll",e.raw)),r=(new s.Date).getTime(),!1))}function u(e){let i=e,s=!0;if(!t.enabled||e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const r=t.params.mousewheel;t.params.cssMode&&i.preventDefault();let c=t.el;"container"!==t.params.mousewheel.eventsTarget&&(c=document.querySelector(t.params.mousewheel.eventsTarget));const h=c&&c.contains(i.target);if(!t.mouseEntered&&!h&&!r.releaseOnEdges)return!0;
vendor: 3,974 bytes, line 63
63i.originalEvent&&(i=i.originalEvent);let u=0;const p=t.rtlTranslate?-1:1,f=function(t){let e=0,i=0,n=0,s=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),n=10*e,s=10*i,"deltaY"in t&&(s=t.deltaY),"deltaX"in t&&(n=t.deltaX),t.shiftKey&&!n&&(n=s,s=0),(n||s)&&t.deltaMode&&(1===t.deltaMode?(n*=40,s*=40):(n*=800,s*=800)),n&&!e&&(e=n<1?-1:1),s&&!i&&(i=s<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:s}}(i);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;u=-f.pixelX*p}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;u=-f.pixelY}else u=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*p:-f.pixelY;if(0===u)return!0;r.invert&&(u=-u);let m=t.getTranslate()+u*r.sensitivity;if(m>=t.minTranslate()&&(m=t.minTranslate()),m<=t.maxTranslate()&&(m=t.maxTranslate()),s=!!t.params.loop||!(m===t.minTranslate()||m===t.maxTranslate()),s&&t.params.nested&&i.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:Ua(),delta:Math.abs(u),direction:Math.sign(u)},s=a&&e.time<a.time+500&&e.delta<=a.delta&&e.direction===a.direction;if(!s){a=void 0;let c=t.getTranslate()+u*r.sensitivity;const h=t.isBeginning,d=t.isEnd;if(c>=t.minTranslate()&&(c=t.minTranslate()),c<=t.maxTranslate()&&(c=t.maxTranslate()),t.setTransition(0),t.setTranslate(c),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!h&&t.isBeginning||!d&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(o),o=void 0,l.length>=15&&l.shift();const i=l.length?l[l.length-1]:void 0,n=l[0];if(l.push(e),i&&(e.delta>i.delta||e.direction!==i.direction))l.splice(0);else if(l.length>=15&&e.time-n.time<500&&n.delta-e.delta>=1&&e.delta<=6){const i=u>0?.8:.2;a=e,l.splice(0),o=qa((()=>{t.destroyed||!t.params||t.slideToClosest(t.params.speed,!0,void 0,i)}),0)}o||(o=qa((()=>{!t.destroyed&&t.params&&(a=e,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5))}),500))}if(s||n("scroll",i),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),r.releaseOnEdges&&(c===t.minTranslate()||c===t.maxTranslate()))return!0}}else{const i={time:Ua(),delta:Math.abs(u),direction:Math.sign(u),raw:e};l.length>=2&&l.shift();const n=l.length?l[l.length-1]:void 0;if(l.push(i),n?(i.direction!==n.direction||i.delta>n.delta||i.time>n.time+150)&&d(i):d(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 p(e){let i=t.el;"container"!==t.params.mousewheel.eventsTarget&&(i=document.querySelector(t.params.mousewheel.eventsTarget)),i[e]("mouseenter",c),i[e]("mouseleave",h),i[e]("wheel",u)}function f(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",u),!0):!t.mousewheel.enabled&&(p("addEventListener"),t.mousewheel.enabled=!0,!0)}function m(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,u),!0):!!t.mousewheel.enabled&&(p("removeEventListener"),t.mousewheel.enabled=!1,!0)}i("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&m(),t.params.mousewheel.enabled&&f()})),i("destroy",(()=>{t.params.cssMode&&f(),t.mousewheel.enabled&&m()})),Object.assign(t.mousewheel,{enable:f,disable:m})},function({swiper:t,extendParams:e,on:i,emit:n}){function s(e){let i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e)||t.hostEl.querySelector(e),i)?i:(e&&("string"==typeof e&&(i=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&i&&i.length>1&&1===t.el.querySelectorAll(e).length?i=t.el.querySelector(e):i&&1===i.length&&(i=i[0])),e&&!i?e:i)}function o(e,i){const n=t.params.navigation;
vendor: 1,492 bytes, line 63
63(e=dr(e)).forEach((e=>{e&&(e.classList[i?"add":"remove"](...n.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass))}))}function a(){const{nextEl:e,prevEl:i}=t.navigation;if(t.params.loop)return o(i,!1),void o(e,!1);o(i,t.isBeginning&&!t.params.rewind),o(e,t.isEnd&&!t.params.rewind)}function r(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),n("navigationPrev"))}function l(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),n("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=Fr(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let i=s(e.nextEl),n=s(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:n}),i=dr(i),n=dr(n);const o=(i,n)=>{if(i){if(e.addIcons&&i.matches(".swiper-button-next,.swiper-button-prev")&&!i.querySelector("svg")){const t=document.createElement("div");pr(t,Wr),i.appendChild(t.querySelector("svg")),t.remove()}i.addEventListener("click","next"===n?l:r)}!t.enabled&&i&&i.classList.add(...e.lockClass.split(" "))};i.forEach((t=>o(t,"next"))),n.forEach((t=>o(t,"prev")))}function h(){let{nextEl:e,prevEl:i}=t.navigation;e=dr(e),i=dr(i);const n=(e,i)=>{e.removeEventListener("click","next"===i?l:r),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((t=>
vendor: 4,134 bytes, line 63
63n(t,"next"))),i.forEach((t=>n(t,"prev")))}e({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null,arrowSvg:Wr},i("init",(()=>{!1===t.params.navigation.enabled?d():(c(),a())})),i("toEdge fromEdge lock unlock",(()=>{a()})),i("destroy",(()=>{h()})),i("enable disable",(()=>{let{nextEl:e,prevEl:i}=t.navigation;e=dr(e),i=dr(i),t.enabled?a():[...e,...i].filter((t=>!!t)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),i("click",((e,i)=>{let{nextEl:s,prevEl:o}=t.navigation;s=dr(s),o=dr(o);const a=i.target;let r=o.includes(a)||s.includes(a);if(t.isElement&&!r){const t=i.path||i.composedPath&&i.composedPath();t&&(r=t.find((t=>s.includes(t)||o.includes(t))))}if(t.params.navigation.hideOnClick&&!r){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;s.length?e=s[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),[...s,...o].filter((t=>!!t)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const d=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),a()},disable:d,update:a,init:c,destroy:h})},function({swiper:t,extendParams:e,on:i,emit:n}){const s="swiper-pagination";e({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:t=>t,formatFractionTotal:t=>t,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let o,a=0;function r(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function l(e,i){const{bulletActiveClass:n}=t.params.pagination;e&&(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${n}-${i}`),(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&e.classList.add(`${n}-${i}-${i}`))}function c(e){const i=e.target.closest(Yr(t.params.pagination.bulletClass));if(!i)return;e.preventDefault();const n=rr(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===n)return;const e=function(t,e,i){return(e%=i)==1+(t%=i)?"next":e===t-1?"previous":void 0}(t.realIndex,n,t.slides.length);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(n)}else t.slideTo(n)}function h(){const e=t.rtl,i=t.params.pagination;if(r())return;let s,c,h=t.pagination.el;h=dr(h);const d=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,u=t.params.loop?Math.ceil(d/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(c=t.previousRealIndex||0,s=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(s=t.snapIndex,c=t.previousSnapIndex):(c=t.previousIndex||0,s=t.activeIndex||0),"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let r,d,u;if(i.dynamicBullets&&(o=hr(n[0],t.isHorizontal()?"width":"height"),h.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=o*(i.dynamicMainBullets+4)+"px"})),i.dynamicMainBullets>1&&void 0!==c&&(a+=s-(c||0),a>i.dynamicMainBullets-1?a=i.dynamicMainBullets-1:a<0&&(a=0)),r=Math.max(s-a,0),d=r+(Math.min(n.length,i.dynamicMainBullets)-1),u=(d+r)/2),n.forEac
vendor: 9,808 bytes, line 63
63h((t=>{const e=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${i.bulletActiveClass}${t}`))].map((t=>"string"==typeof t&&t.includes(" ")?t.split(" "):t)).flat();t.classList.remove(...e)})),h.length>1)n.forEach((e=>{const n=rr(e);n===s?e.classList.add(...i.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),i.dynamicBullets&&(n>=r&&n<=d&&e.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),n===r&&l(e,"prev"),n===d&&l(e,"next"))}));else{const e=n[s];if(e&&e.classList.add(...i.bulletActiveClass.split(" ")),t.isElement&&n.forEach(((t,e)=>{t.setAttribute("part",e===s?"bullet-active":"bullet")})),i.dynamicBullets){const t=n[r],e=n[d];for(let t=r;t<=d;t+=1)n[t]&&n[t].classList.add(...`${i.bulletActiveClass}-main`.split(" "));l(t,"prev"),l(e,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),a=(o*s-o)/2-u*o,r=e?"right":"left";n.forEach((e=>{e.style[t.isHorizontal()?r:"top"]=`${a}px`}))}}h.forEach(((e,o)=>{if("fraction"===i.type&&(e.querySelectorAll(Yr(i.currentClass)).forEach((t=>{t.textContent=i.formatFractionCurrent(s+1)})),e.querySelectorAll(Yr(i.totalClass)).forEach((t=>{t.textContent=i.formatFractionTotal(u)}))),"progressbar"===i.type){let n;n=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const o=(s+1)/u;let a=1,r=1;"horizontal"===n?a=o:r=o,e.querySelectorAll(Yr(i.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${r})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===i.type&&i.renderCustom?(pr(e,i.renderCustom(t,s+1,u)),0===o&&n("paginationRender",e)):(0===o&&n("paginationRender",e),n("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass)}))}function d(){const e=t.params.pagination;if(r())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let s=t.pagination.el;s=dr(s);let o="";if("bullets"===e.type){let n=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&n>i&&(n=i);for(let i=0;i<n;i+=1)e.renderBullet?o+=e.renderBullet.call(t,i,e.bulletClass):o+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],s.forEach((i=>{"custom"!==e.type&&pr(i,o||""),"bullets"===e.type&&t.pagination.bullets.push(...i.querySelectorAll(Yr(e.bulletClass)))})),"custom"!==e.type&&n("paginationRender",s[0])}function u(){t.params.pagination=Fr(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i;"string"==typeof e.el&&t.isElement&&(i=t.el.querySelector(e.el)),!i&&"string"==typeof e.el&&(i=[...document.querySelectorAll(e.el)]),i||(i=e.el),i&&0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(i)&&i.length>1&&(i=[...t.el.querySelectorAll(e.el)],i.length>1&&(i=i.find((e=>lr(e,".swiper")[0]===t.el)))),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(t.pagination,{el:i}),i=dr(i),i.forEach((i=>{"bullets"===e.type&&e.clickable&&i.classList.add(...(e.clickableClass||"").split(" ")),i.classList.add(e.modifierClass+e.type),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.classList.add(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.classList.add(e.progressbarOppositeClass),e.clickable&&i.addEventListener("click",c),t.enabled||i.classList.add(e.lockClass)})))}function p(){const e=t.params.pagination;if(r())return;let i=t.pagination.el;i&&(i=dr(i),i.forEach((i=>{i.classList.remove(e.hiddenClass),i.classList.remove(e.modifierClass+e.type),i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(i.classList.remove(...(e.clickableClass||"").split(" ")),i.removeEventListener("click",c))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}i("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:i}=t.pagination;i=dr(i),i.forEach((i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.pagination.enabled?f():(u(),d(),h())})),i("activeIndexChange",(()=>{typeof t.snapIndex>"u"&&h()})),i("snapIndexChange",(()=>{h()})),i("snapGridLengthChange",(()=>{d(),h()})),i("destroy",(()=>{p()})),i("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=dr(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),i("lock unlock",(()=>{h()})),i("click",((e,i)=>{const s=i.target,o=dr(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!s.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&s===t.navigation.nextEl||t.navigation.prevEl&&s===t.navigation.prevEl))return;const e=o[0].classList.contains(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),o.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const f=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=dr(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),p()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=dr(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),u(),d(),h()},disable:f,render:d,update:h,init:u,destroy:p})},function({swiper:t,extendParams:e,on:i,emit:n}){const s=Wa();let o,a,r,l,c=!1,h=null,d=null;function u(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i}=t,{dragEl:n,el:s}=e,o=t.params.scrollbar,l=t.params.loop?t.progressLoop:t.progress;let c=a,d=(r-a)*l;i?(d=-d,d>0?(c=a-d,d=0):-d+a>r&&(c=r+d)):d<0?(c=a+d,d=0):d+a>r&&(c=r-d),t.isHorizontal()?(n.style.transform=`translate3d(${d}px, 0, 0)`,n.style.width=`${c}px`):(n.style.transform=`translate3d(0px, ${d}px, 0)`,n.style.height=`${c}px`),o.hide&&(clearTimeout(h),s.style.opacity=1,h=setTimeout((()=>{s.style.opacity=0,s.style.transitionDuration="400ms"}),1e3))}function p(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:i,el:n}=e;i.style.width="",i.style.height="",r=t.isHorizontal()?n.offsetWidth:n.offsetHeight,l=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),a="auto"===t.params.scrollbar.dragSize?r*l:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i.style.width=`${a}px`:i.style.height=`${a}px`,n.style.display=l>=1?"none":"",t.params.scrollbar.hide&&(n.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function f(e){return t.isHorizontal()?e.clientX:e.clientY}function m(e){const{scrollbar:i,rtlTranslate:n}=t,{el:s}=i;let l;l=(f(e)-or(s)[t.isHorizontal()?"left":"top"]-(null!==o?o:a/2))/(r-a),l=Math.max(Math.min(l,1),0),n&&(l=1-l);const c=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*l;t.updateProgress(c),t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}function g(e){const i=t.params.scrollbar,{scrollbar:s,wrapperEl:a}=t,{el:r,dragEl:l}=s;c=!0,o=e.target===l?f(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),a.style.transitionDuration="100ms",l.style.transitionDuration="100ms",m(e),clearTimeout(d),r.style.transitionDuration="0ms",i.hide&&(r.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),n("scrollbarDragStart",e)}function v(e){const{scrollbar:i,wrapperEl:s}=t,{el:o,dragEl:a}=i;c&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,m(e),s.style.transitionDuration="0ms",o.style.transitionDuration="0ms",a.style.transitionDuration="0ms",n("scrollbarDragMove",e))}function _(e){const i=t.params.scrollbar,{scrollbar:s,wrapperEl:o}=t,{el:a}=s;c&&(c=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",o.style.transitionDuration=""),i.hide&&(clearTimeout(d),d=qa((()=>{a.style.opacity=0,a.style.transitionDuration="400ms"}),1e3)),n("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())}function y(e){const{scrollbar:i,params:n}=t,o=i.el;if(!o)return;const a=o,r=!!n.passiveListeners&&{passive:!1,capture:!1},l=!!n.passiveListeners&&{passive:!0,capture:!1};if(!a)return;const c="on"===e?"addEventListener":"removeEventListener";a[c]("pointerdown",g,r),s[c]("pointermove",v,r),s[c]("pointerup",_,l)}function b(){const{scrollbar:e,el:i}=t;t.params.scrollbar=Fr(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const n=t.params.scrollbar;if(!n.el)return;let o,a;if("string"==typeof n.el&&t.isElement&&(o=t.el.querySelector(n.el)),o||"string"!=typeof n.el)o||(o=n.el);else if(o=s.querySelectorAll(n.el),!o.length)return;t.params.uniqueNavElements&&"string"==typeof n.el&&o.length>1&&1===i.querySelectorAll(n.el).length&&(o=i.querySelector(n.el)),o.length>0&&(o=o[0]),o.classList.add(t.isHorizontal()?n.horizontalClass:n.verticalClass),o&&(a=o.querySelector(Yr(t.params.scrollbar.dragClass)),a||(a=sr
63("div",t.params.scrollbar.dragClass),o.append(a))),Object.assign(e,{el:o,dragEl:a}),n.draggable&&(!t.params.scrollbar.el||!t.scrollbar.el||y("on")),o&&o.classList[t.enabled?"remove":"add"](...Va(t.params.scrollbar.lockClass))}function w(){const e=t.params.scrollbar,i=t.scrollbar.el;i&&i.classList.remove(...Va(t.isHorizontal()?e.horizontalClass:e.verticalClass)),!t.params.scrollbar.el||!t.scrollbar.el||y("off")}e({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},i("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:i}=t.scrollbar;i=dr(i),i.forEach((i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.scrollbar.enabled?x():(b(),p(),u())})),i("update resize observerUpdate lock unlock changeDirection",(()=>{p()})),i("setTranslate",(()=>{u()})),i("setTransition",((e,i)=>{!function(e){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(i)})),i("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...Va(t.params.scrollbar.lockClass))})),i("destroy",(()=>{w()}));const x=()=>{t.el.classList.add(...Va(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...Va(t.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...Va(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...Va(t.params.scrollbar.scrollbarDisabledClass)),b(),p(),u()},disable:x,updateSize:p,setTranslate:u,init:b,destroy:w})},function({swiper:t,extendParams:e,on:i}){e({parallax:{enabled:!1}});const n="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(e,i)=>{const{rtl:n}=t,s=n?-1:1,o=e.getAttribute("data-swiper-parallax")||"0";let a=e.getAttribute("data-swiper-parallax-x"),r=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),c=e.getAttribute("data-swiper-parallax-opacity"),h=e.getAttribute("data-swiper-parallax-rotate");if(a||r?(a=a||"0",r=r||"0"):t.isHorizontal()?(a=o,r="0"):(r=o,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*i*s+"%":a*i*s+"px",r=r.indexOf("%")>=0?parseInt(r,10)*i+"%":r*i+"px",typeof c<"u"&&null!==c){const t=c-(c-1)*(1-Math.abs(i));e.style.opacity=t}let d=`translate3d(${a}, ${r}, 0px)`;typeof l<"u"&&null!==l&&(d+=` scale(${l-(l-1)*(1-Math.abs(i))})`),h&&typeof h<"u"&&null!==h&&(d+=` rotate(${h*i*-1}deg)`),e.style.transform=d},o=()=>{const{el:e,slides:i,progress:o,snapGrid:a,isElement:r}=t,l=ir(e,n);t.isElement&&l.push(...ir(t.hostEl,n)),l.forEach((t=>{s(t,o)})),i.forEach(((e,i)=>{let r=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(r+=Math.ceil(i/2)-o*(a.length-1)),r=Math.min(Math.max(r,-1),1),e.querySelectorAll(`${n}, [data-swiper-parallax-rotate]`).forEach((t=>{s(t,r)}))}))};i("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),i("init",(()=>{t.params.parallax.enabled&&o()})),i("setTranslate",(()=>{t.params.parallax.enabled&&o()})),i("setTransition",((e,i)=>{t.params.parallax.enabled&&((e=t.params.speed)=>{const{el:i,hostEl:s}=t,o=[...i.querySelectorAll(n)];t.isElement&&o.push(...s.querySelectorAll(n)),o.forEach((t=>{let i=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),t.style.transitionDuration=`${i}ms`}))})(i)}))},function({swiper:t,extendParams:e,on:i,emit:n}){const s=Za();e({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let o=1,a=!1,r=!1,l={x:0,y:0};const c=-3;let h,d;const u=[],p={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},f={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 g,v=1;function _(){if(u.length<2)return 1;
63const t=u[0].pageX,e=u[0].pageY,i=u[1].pageX,n=u[1].pageY;return Math.sqrt((i-t)**2+(n-e)**2)}function y(){const e=t.params.zoom,i=p.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&p.imageEl&&p.imageEl.naturalWidth){const t=p.imageEl.naturalWidth/p.imageEl.offsetWidth;return Math.min(t,i)}return i}function b(e){const i=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!(e.target.matches(i)||t.slides.filter((t=>t.contains(e.target))).length>0)}function w(e){const i=`.${t.params.zoom.containerClass}`;return!!(e.target.matches(i)||[...t.hostEl.querySelectorAll(i)].filter((t=>t.contains(e.target))).length>0)}function x(e){if("mouse"===e.pointerType&&u.splice(0,u.length),!b(e))return;const i=t.params.zoom;if(h=!1,d=!1,u.push(e),!(u.length<2)){if(h=!0,p.scaleStart=_(),!p.slideEl){p.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),p.slideEl||(p.slideEl=t.slides[t.activeIndex]);let n=p.slideEl.querySelector(`.${i.containerClass}`);if(n&&(n=n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),p.imageEl=n,p.imageWrapEl=n?lr(p.imageEl,`.${i.containerClass}`)[0]:void 0,!p.imageWrapEl)return void(p.imageEl=void 0);p.maxRatio=y()}if(p.imageEl){const[t,e]=function(){if(u.length<2)return{x:null,y:null};const t=p.imageEl.getBoundingClientRect();return[(u[0].pageX+(u[1].pageX-u[0].pageX)/2-t.x-s.scrollX)/o,(u[0].pageY+(u[1].pageY-u[0].pageY)/2-t.y-s.scrollY)/o]}();p.originX=t,p.originY=e,p.imageEl.style.transitionDuration="0ms"}a=!0}}function k(e){if(!b(e))return;const i=t.params.zoom,n=t.zoom,s=u.findIndex((t=>t.pointerId===e.pointerId));s>=0&&(u[s]=e),!(u.length<2)&&(d=!0,p.scaleMove=_(),p.imageEl&&(n.scale=p.scaleMove/p.scaleStart*o,n.scale>p.maxRatio&&(n.scale=p.maxRatio-1+(n.scale-p.maxRatio+1)**.5),n.scale<i.minRatio&&(n.scale=i.minRatio+1-(i.minRatio-n.scale+1)**.5),p.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`))}function S(e){if(!b(e)||"mouse"===e.pointerType&&"pointerout"===e.type)return;const i=t.params.zoom,n=t.zoom,s=u.findIndex((t=>t.pointerId===e.pointerId));s>=0&&u.splice(s,1),h&&d&&(h=!1,d=!1,p.imageEl&&(n.scale=Math.max(Math.min(n.scale,p.maxRatio),i.minRatio),p.imageEl.style.transitionDuration=`${t.params.speed}ms`,p.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`,o=n.scale,a=!1,n.scale>1&&p.slideEl?p.slideEl.classList.add(`${i.zoomedSlideClass}`):n.scale<=1&&p.slideEl&&p.slideEl.classList.remove(`${i.zoomedSlideClass}`),1===n.scale&&(p.originX=0,p.originY=0,p.slideEl=void 0)))}function T(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function E(e){const i="mouse"===e.pointerType&&t.params.zoom.panOnMouseMove;if(!b(e)||!w(e))return;const n=t.zoom;if(!p.imageEl)return;if(!f.isTouched||!p.slideEl)return void(i&&M(e));if(i)return void M(e);f.isMoved||(f.width=p.imageEl.offsetWidth||p.imageEl.clientWidth,f.height=p.imageEl.offsetHeight||p.imageEl.clientHeight,f.startX=Ga(p.imageWrapEl,"x")||0,f.startY=Ga(p.imageWrapEl,"y")||0,p.slideWidth=p.slideEl.offsetWidth,p.slideHeight=p.slideEl.offsetHeight,p.imageWrapEl.style.transitionDuration="0ms");const s=f.width*n.scale,r=f.height*n.scale;if(f.minX=Math.min(p.slideWidth/2-s/2,0),f.maxX=-f.minX,f.minY=Math.min(p.slideHeight/2-r/2,0),f.maxY=-f.minY,f.touchesCurrent.x=u.length>0?u[0].pageX:e.pageX,f.touchesCurrent.y=u.length>0?u[0].pageY:e.pageY,Math.max(Math.abs(f.touchesCurrent.x-f.touchesStart.x),Math.abs(f.touchesCurrent.y-f.touchesStart.y))>5&&(t.allowClick=!1),!f.isMoved&&!a){if(t.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x))return f.isTouched=!1,void T();if(!t.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y))return f.isTouched=!1,void T()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(g),t.touchEventsData.preventTouchMoveFromPointerMove=!0,g=setTimeout((()=>{t.destroyed||T()})),f.isMoved=!0;const l=(n.scale-o)/(p.maxRatio-t.params.zoom.minRatio),{originX:c,originY:h}=p;f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX+l*(f.width-2*c),f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY+l*(f.height-2*h),f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),m.prevPositionX||(m.prevPositionX=f.touchesCurrent.x),m.prevPositionY||(m.prevPositionY=f.touchesCurrent.y),m.prevTime||(m.prevTime=Date.now()),m.x=(f.touchesCurrent.x-m.prevPositionX)/(Date.now()-m.prevTime)/2,m.y=(f.touchesCurrent.y-m.prevPositionY)/(Date.now()-m.prevTime)/2,Math.abs(f.touchesCurrent.x-m.prevPositionX)<2&&(m.x=0),Math.abs(f.touchesCurrent.y-m.prevPositionY)<2&&(m.y=0),m.prevPositionX=f.touchesCurrent.x,m.prevPositionY=f.touchesCurrent.y,m.prevTime=Date.now(),p.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}function C(){const e=t.zoom;p.slideEl&&t.activeIndex!==t.slides.indexOf(p.slideEl)&&(p.imageEl&&(p.imageEl.style.transform="translate3d(0,
630,0) scale(1)"),p.imageWrapEl&&(p.imageWrapEl.style.transform="translate3d(0,0,0)"),p.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,o=1,p.slideEl=void 0,p.imageEl=void 0,p.imageWrapEl=void 0,p.originX=0,p.originY=0)}function M(t){if(o<=1||!p.imageWrapEl||!b(t)||!w(t))return;const e=s.getComputedStyle(p.imageWrapEl).transform,i=new s.DOMMatrix(e);if(!r)return r=!0,l.x=t.clientX,l.y=t.clientY,f.startX=i.e,f.startY=i.f,f.width=p.imageEl.offsetWidth||p.imageEl.clientWidth,f.height=p.imageEl.offsetHeight||p.imageEl.clientHeight,p.slideWidth=p.slideEl.offsetWidth,void(p.slideHeight=p.slideEl.offsetHeight);const n=(t.clientX-l.x)*c,a=(t.clientY-l.y)*c,h=f.width*o,d=f.height*o,u=p.slideWidth,m=p.slideHeight,g=Math.min(u/2-h/2,0),v=-g,_=Math.min(m/2-d/2,0),y=-_,x=Math.max(Math.min(f.startX+n,v),g),k=Math.max(Math.min(f.startY+a,y),_);p.imageWrapEl.style.transitionDuration="0ms",p.imageWrapEl.style.transform=`translate3d(${x}px, ${k}px, 0)`,l.x=t.clientX,l.y=t.clientY,f.startX=x,f.startY=k,f.currentX=x,f.currentY=k}function L(e){const i=t.zoom,n=t.params.zoom;if(!p.slideEl){e&&e.target&&(p.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),p.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?p.slideEl=ir(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:p.slideEl=t.slides[t.activeIndex]);let i=p.slideEl.querySelector(`.${n.containerClass}`);i&&(i=i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),p.imageEl=i,p.imageWrapEl=i?lr(p.imageEl,`.${n.containerClass}`)[0]:void 0}if(!p.imageEl||!p.imageWrapEl)return;let a,r,l,c,h,d,u,m,g,v,_,b,w,x,k,S,T,E;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),p.slideEl.classList.add(`${n.zoomedSlideClass}`),typeof f.touchesStart.x>"u"&&e?(a=e.pageX,r=e.pageY):(a=f.touchesStart.x,r=f.touchesStart.y);const C=o,M="number"==typeof e?e:null;1===o&&M&&(a=void 0,r=void 0,f.touchesStart.x=void 0,f.touchesStart.y=void 0);const L=y();i.scale=M||L,o=M||L,!e||1===o&&M?(u=0,m=0):(T=p.slideEl.offsetWidth,E=p.slideEl.offsetHeight,l=or(p.slideEl).left+s.scrollX,c=or(p.slideEl).top+s.scrollY,h=l+T/2-a,d=c+E/2-r,g=p.imageEl.offsetWidth||p.imageEl.clientWidth,v=p.imageEl.offsetHeight||p.imageEl.clientHeight,_=g*i.scale,b=v*i.scale,w=Math.min(T/2-_/2,0),x=Math.min(E/2-b/2,0),k=-w,S=-x,C>0&&M&&"number"==typeof f.currentX&&"number"==typeof f.currentY?(u=f.currentX*i.scale/C,m=f.currentY*i.scale/C):(u=h*i.scale,m=d*i.scale),u<w&&(u=w),u>k&&(u=k),m<x&&(m=x),m>S&&(m=S)),M&&1===i.scale&&(p.originX=0,p.originY=0),f.currentX=u,f.currentY=m,p.imageWrapEl.style.transitionDuration="300ms",p.imageWrapEl.style.transform=`translate3d(${u}px, ${m}px,0)`,p.imageEl.style.transitionDuration="300ms",p.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`}function P(){const e=t.zoom,i=t.params.zoom;if(!p.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?p.slideEl=ir(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:p.slideEl=t.slides[t.activeIndex];let e=p.slideEl.querySelector(`.${i.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),p.imageEl=e,p.imageWrapEl=e?lr(p.imageEl,`.${i.containerClass}`)[0]:void 0}!p.imageEl||!p.imageWrapEl||(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,o=1,f.currentX=void 0,f.currentY=void 0,f.touchesStart.x=void 0,f.touchesStart.y=void 0,p.imageWrapEl.style.transitionDuration="300ms",p.imageWrapEl.style.transform="translate3d(0,0,0)",p.imageEl.style.transitionDuration="300ms",p.imageEl.style.transform="translate3d(0,0,0) scale(1)",p.slideEl.classList.remove(`${i.zoomedSlideClass}`),p.slideEl=void 0,p.originX=0,p.originY=0,t.params.zoom.panOnMouseMove&&(l={x:0,y:0},r&&(r=!1,f.startX=0,f.startY=0)))}function D(e){const i=t.zoom;i.scale&&1!==i.scale?P():L(e)}function A(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function O(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:i,activeListenerWithCapture:n}=A();t.wrapperEl.addEventListener("pointerdown",x,i),t.wrapperEl.addEventListener("pointermove",k,n),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,S,i)})),t.wrapperEl.addEventListener("pointermove",E,n)}function I(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:i,activeListenerWithCapture:n}=A();t.wrapperEl.removeEventListener("pointerdown",x,i),t.wrapperEl.removeEventListener("pointermove",k,n),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,S,i)})),t.wrapperEl.removeEventListener("pointermove",E,n)}Object.defineProperty(t.zoom,"scale",{get:()=>v,set(t){if(v!==t){const e=p.imageEl,i=p.slideEl;n("zoomChange",t,e,i)}v=t}}),i("init",(()=>{t.params.zoom.enabled&&O()})),i("destroy",(()=>{I()})),i("touchStart",((e,i)=>{t.zoom.enabled&&function(e){const i=t.device;if(!p.imageEl||f.isTouched)return;i.android&&e.cancelable&&e.preventDefault(),f.isTouched=!0;const n=u.length>0?u[0]:e;f.touchesStart.x=n.pageX,f.touchesStart.y=n.pageY}(i)})),i("touchEnd",((e,i)=>{t.zoom.enabled&&function(){const e=t.zoom;if(u.length=0,!p.imageEl)return;
63if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let i=300,n=300;const s=m.x*i,o=f.currentX+s,a=m.y*n,r=f.currentY+a;0!==m.x&&(i=Math.abs((o-f.currentX)/m.x)),0!==m.y&&(n=Math.abs((r-f.currentY)/m.y));const l=Math.max(i,n);f.currentX=o,f.currentY=r;const c=f.width*e.scale,h=f.height*e.scale;f.minX=Math.min(p.slideWidth/2-c/2,0),f.maxX=-f.minX,f.minY=Math.min(p.slideHeight/2-h/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),p.imageWrapEl.style.transitionDuration=`${l}ms`,p.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}()})),i("doubleTap",((e,i)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&D(i)})),i("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&C()})),i("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&C()})),Object.assign(t.zoom,{enable:O,disable:I,in:L,out:P,toggle:D})},function({swiper:t,extendParams:e,on:i}){function n(t,e){const i=function(){let t,e,i;return(n,s)=>{for(e=-1,t=n.length;t-e>1;)i=t+e>>1,n[i]<=s?e=i:t=i;return t}}();let n,s;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(s=i(this.x,t),n=s-1,(t-this.x[n])*(this.y[s]-this.y[n])/(this.x[s]-this.x[n])+this.y[n]):0},this}function s(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}e({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},i("beforeInit",(()=>{typeof window<"u"&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)?("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const i=`${t.params.eventsPrefix}init`,n=s=>{t.controller.control.push(s.detail[0]),t.update(),e.removeEventListener(i,n)};e.addEventListener(i,n)}})):t.controller.control=t.params.controller.control})),i("update",(()=>{s()})),i("resize",(()=>{s()})),i("observerUpdate",(()=>{s()})),i("setTranslate",((e,i,n)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTranslate(i,n)})),i("setTransition",((e,i,n)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTransition(i,n)})),Object.assign(t.controller,{setTranslate:function(e,i){const s=t.controller.control;let o,a;const r=t.constructor;function l(e){if(e.destroyed)return;const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline=t.params.loop?new n(t.slidesGrid,e.slidesGrid):new n(t.snapGrid,e.snapGrid)}(e),a=-t.controller.spline.interpolate(-i)),(!a||"container"===t.params.controller.by)&&(o=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),(Number.isNaN(o)||!Number.isFinite(o))&&(o=1),a=(i-t.minTranslate())*o+e.minTranslate()),t.params.controller.inverse&&(a=e.maxTranslate()-a),e.updateProgress(a),e.setTranslate(a,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(let t=0;t<s.length;t+=1)s[t]!==i&&s[t]instanceof r&&l(s[t]);else s instanceof r&&i!==s&&l(s)},setTransition:function(e,i){const n=t.constructor,s=t.controller.control;let o;function a(i){i.destroyed||(i.setTransition(e,t),0!==e&&(i.transitionStart(),i.params.autoHeight&&qa((()=>{i.updateAutoHeight()})),cr(i.wrapperEl,(()=>{s&&i.transitionEnd()}))))}if(Array.isArray(s))for(o=0;o<s.length;o+=1)s[o]!==i&&s[o]instanceof n&&a(s[o]);else s instanceof n&&i!==s&&a(s)}})},function({swiper:t,extendParams:e,on:i}){e({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,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,
63scrollOnFocus:!0,wrapperLiveRegion:!0}}),t.a11y={clicked:!1};let n,s,o=null,a=(new Date).getTime();function r(t){const e=o;0!==e.length&&pr(e,t)}function l(t){(t=dr(t)).forEach((t=>{t.setAttribute("tabIndex","0")}))}function c(t){(t=dr(t)).forEach((t=>{t.setAttribute("tabIndex","-1")}))}function h(t,e){(t=dr(t)).forEach((t=>{t.setAttribute("role",e)}))}function d(t,e){(t=dr(t)).forEach((t=>{t.setAttribute("aria-roledescription",e)}))}function u(t,e){(t=dr(t)).forEach((t=>{t.setAttribute("aria-label",e)}))}function p(t){(t=dr(t)).forEach((t=>{t.setAttribute("aria-disabled",!0)}))}function f(t){(t=dr(t)).forEach((t=>{t.setAttribute("aria-disabled",!1)}))}function m(e){if(13!==e.keyCode&&32!==e.keyCode)return;const i=t.params.a11y,n=e.target;if(!t.pagination||!t.pagination.el||n!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(Yr(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=dr(t.navigation.prevEl);dr(t.navigation.nextEl).includes(n)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?r(i.lastSlideMessage):r(i.nextSlideMessage)),e.includes(n)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?r(i.firstSlideMessage):r(i.prevSlideMessage))}t.pagination&&n.matches(Yr(t.params.pagination.bulletClass))&&n.click()}}function g(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function v(){return g()&&t.params.pagination.clickable}const _=(t,e,i)=>{l(t),"BUTTON"!==t.tagName&&(h(t,"button"),t.addEventListener("keydown",m)),u(t,i),function(t,e){(t=dr(t)).forEach((t=>{t.setAttribute("aria-controls",e)}))}(t,e)},y=e=>{s&&s!==e.target&&!s.contains(e.target)&&(n=!0),t.a11y.clicked=!0},b=()=>{n=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},w=t=>{a=(new Date).getTime()},x=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus||(new Date).getTime()-a<100)return;const i=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!i||!t.slides.includes(i))return;s=i;const o=t.slides.indexOf(i)===t.activeIndex,r=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);o||r||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{n||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(i.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(i)),0),n=!1)})))},k=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&d(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&h(t.slides,e.slideRole);const i=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((n,s)=>{const o=t.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):s;u(n,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,i))}))},S=()=>{const e=t.params.a11y;t.el.append(o);const i=t.el;e.containerRoleDescriptionMessage&&d(i,e.containerRoleDescriptionMessage),e.containerMessage&&u(i,e.containerMessage),e.containerRole&&h(i,e.containerRole);const n=t.wrapperEl,s=e.id||n.getAttribute("id")||`swiper-wrapper-${function(t=16){return"x".repeat(t).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}(16)}`;(function(t,e){(t=dr(t)).forEach((t=>{t.setAttribute("id",e)}))})(n,s),e.wrapperLiveRegion&&function(t,e){(t=dr(t)).forEach((t=>{t.setAttribute("aria-live",e)}))}(n,t.params.autoplay&&t.params.autoplay.enabled?"off":"polite"),k();let{nextEl:a,prevEl:r}=t.navigation?t.navigation:{};a=dr(a),r=dr(r),a&&a.forEach((t=>_(t,s,e.nextSlideMessage))),r&&r.forEach((t=>_(t,s,e.prevSlideMessage))),v()&&dr(t.pagination.el).forEach((t=>{t.addEventListener("keydown",m)})),Wa().addEventListener("visibilitychange",w),t.el.addEventListener("focus",x,!0),t.el.addEventListener("focus",x,!0),t.el.addEventListener("pointerdown",y,!0),t.el.addEventListener("pointerup",b,!0)};i("beforeInit",(()=>{o=sr("span",t.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")})),i("afterInit",(()=>{t.params.a11y.enabled&&S()})),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&k()})),i("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&&(t.isBeginning?(p(i),c(i)):(f(i),l(i))),e&&(t.isEnd?(p(e),c(e)):(f(e),l(e)))}()})),i("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;
vendor: 4,851 bytes, line 63
63g()&&t.pagination.bullets.forEach((i=>{t.params.pagination.clickable&&(l(i),t.params.pagination.renderBullet||(h(i,"button"),u(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,rr(i)+1)))),i.matches(Yr(t.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")}))}()})),i("destroy",(()=>{t.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:e,prevEl:i}=t.navigation?t.navigation:{};e=dr(e),i=dr(i),e&&e.forEach((t=>t.removeEventListener("keydown",m))),i&&i.forEach((t=>t.removeEventListener("keydown",m))),v()&&dr(t.pagination.el).forEach((t=>{t.removeEventListener("keydown",m)})),Wa().removeEventListener("visibilitychange",w),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",x,!0),t.el.removeEventListener("pointerdown",y,!0),t.el.removeEventListener("pointerup",b,!0))}()}))},function({swiper:t,extendParams:e,on:i}){e({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let n=!1,s={};const o=t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=t=>{const e=Za();let i;i=t?new URL(t):e.location;const n=i.pathname.slice(1).split("/").filter((t=>""!==t)),s=n.length;return{key:n[s-2],value:n[s-1]}},r=(e,i)=>{const s=Za();if(!n||!t.params.history.enabled)return;let a;a=t.params.url?new URL(t.params.url):s.location;const r=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${i}"]`):t.slides[i];let l=o(r.getAttribute("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)),l=`${i}/${e?`${e}/`:""}${l}`}else a.pathname.includes(e)||(l=`${e?`${e}/`:""}${l}`);t.params.history.keepQuery&&(l+=a.search);const c=s.history.state;c&&c.value===l||(t.params.history.replaceState?s.history.replaceState({value:l},null,l):s.history.pushState({value:l},null,l))},l=(e,i,n)=>{if(i)for(let s=0,a=t.slides.length;s<a;s+=1){const a=t.slides[s];if(o(a.getAttribute("data-history"))===i){const i=t.getSlideIndex(a);t.slideTo(i,e,n)}}else t.slideTo(0,e,n)},c=()=>{s=a(t.params.url),l(t.params.speed,s.value,!1)};i("init",(()=>{t.params.history.enabled&&(()=>{const e=Za();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);if(n=!0,s=a(t.params.url),!s.key&&!s.value)return void(t.params.history.replaceState||e.addEventListener("popstate",c));l(0,s.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",c)}})()})),i("destroy",(()=>{t.params.history.enabled&&(()=>{const e=Za();t.params.history.replaceState||e.removeEventListener("popstate",c)})()})),i("transitionEnd _freeModeNoMomentumRelease",(()=>{n&&r(t.params.history.key,t.activeIndex)})),i("slideChange",(()=>{n&&t.params.cssMode&&r(t.params.history.key,t.activeIndex)}))},function({swiper:t,extendParams:e,emit:i,on:n}){let s=!1;const o=Wa(),a=Za();e({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,i){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.find((t=>t.getAttribute("data-hash")===i));return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(ir(t.slidesEl,`.${t.params.slideClass}[data-hash="${i}"], swiper-slide[data-hash="${i}"]`)[0])}}});const r=()=>{i("hashChange");const e=o.location.hash.replace("#",""),n=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(n?n.getAttribute("data-hash"):"")){const i=t.params.hashNavigation.getSlideIndex(t,e);if(typeof i>"u"||Number.isNaN(i))return;t.slideTo(i)}},l=()=>{if(!s||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],n=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&a.history&&a.history.replaceState?(a.history.replaceState(null,null,`#${n}`||""),i("hashSet")):(o.location.hash=n||"",i("hashSet"))};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;s=!0;const e=o.location.hash.replace("#","");if(e){const i=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(i||0,0,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&a.addEventListener("hashchange",r)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&a.removeEventListener("hashchange",r)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{s&&l()})),n("slideChange",(()=>{s&&t.params.cssMode&&l()}))},function({swiper:t,extendParams:e,on:i,emit:n,params:s}){t.autoplay={running:!1,paused:!1,timeLeft:0}
63,e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,r,l,c,h,d,u,p,f,m=s&&s.autoplay?s.autoplay.delay:3e3,g=s&&s.autoplay?s.autoplay.delay:3e3,v=(new Date).getTime();function _(e){!t||t.destroyed||!t.wrapperEl||e.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",_),!(f||e.detail&&e.detail.bySwiperTouchMove)&&S())}const y=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?l=!0:l&&(g=r,l=!1);const e=t.autoplay.paused?r:v+g-(new Date).getTime();t.autoplay.timeLeft=e,n("autoplayTimeLeft",e,e/m),a=requestAnimationFrame((()=>{y()}))},b=e=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),y();let i=typeof e>"u"?t.params.autoplay.delay:e;m=t.params.autoplay.delay,g=t.params.autoplay.delay;const s=(()=>{let e;return e=t.virtual&&t.params.virtual.enabled?t.slides.find((t=>t.classList.contains("swiper-slide-active"))):t.slides[t.activeIndex],e?parseInt(e.getAttribute("data-swiper-autoplay"),10):void 0})();!Number.isNaN(s)&&s>0&&typeof e>"u"&&(i=s,m=s,g=s),r=i;const l=t.params.speed,c=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(l,!0,!0),n("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,l,!0,!0),n("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(l,!0,!0),n("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,l,!0,!0),n("autoplay")),t.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame((()=>{b()}))))};return i>0?(clearTimeout(o),o=setTimeout((()=>{c()}),i)):requestAnimationFrame((()=>{c()})),i},w=()=>{v=(new Date).getTime(),t.autoplay.running=!0,b(),n("autoplayStart")},x=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),n("autoplayStop")},k=(e,i)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),e||(p=!0);const s=()=>{n("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",_):S()};if(t.autoplay.paused=!0,i)return u&&(r=t.params.autoplay.delay),u=!1,void s();r=(r||t.params.autoplay.delay)-((new Date).getTime()-v),(!(t.isEnd&&r<0)||t.params.loop)&&(r<0&&(r=0),s())},S=()=>{t.isEnd&&r<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(v=(new Date).getTime(),p?(p=!1,b(r)):b(),t.autoplay.paused=!1,n("autoplayResume"))},T=()=>{if(t.destroyed||!t.autoplay.running)return;const e=Wa();"hidden"===e.visibilityState&&(p=!0,k(!0)),"visible"===e.visibilityState&&S()},E=e=>{"mouse"===e.pointerType&&(p=!0,f=!0,!t.animating&&!t.autoplay.paused&&k(!0))},C=e=>{"mouse"===e.pointerType&&(f=!1,t.autoplay.paused&&S())};i("init",(()=>{t.params.autoplay.enabled&&(t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",E),t.el.addEventListener("pointerleave",C)),Wa().addEventListener("visibilitychange",T),w())})),i("destroy",(()=>{t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("pointerenter",E),t.el.removeEventListener("pointerleave",C)),Wa().removeEventListener("visibilitychange",T),t.autoplay.running&&x()})),i("_freeModeStaticRelease",(()=>{(h||p)&&S()})),i("_freeModeNoMomentumRelease",(()=>{t.params.autoplay.disableOnInteraction?x():k(!0,!0)})),i("beforeTransitionStart",((e,i,n)=>{t.destroyed||!t.autoplay.running||(n||!t.params.autoplay.disableOnInteraction?k(!0,!0):x())})),i("sliderFirstMove",(()=>{if(!t.destroyed&&t.autoplay.running){if(t.params.autoplay.disableOnInteraction)return void x();c=!0,h=!1,p=!1,d=setTimeout((()=>{p=!0,h=!0,k(!0)}),200)}})),i("touchEnd",(()=>{if(!t.destroyed&&t.autoplay.running&&c){if(clearTimeout(d),clearTimeout(o),t.params.autoplay.disableOnInteraction)return h=!1,void(c=!1);h&&t.params.cssMode&&S(),h=!1,c=!1}})),i("slideChange",(()=>{t.destroyed||!t.autoplay.running||(u=!0)})),Object.assign(t.autoplay,{start:w,stop:x,pause:k,resume:S})},function({swiper:t,extendParams:e,on:i}){e({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let n=!1,s=!1;function o(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const i=e.clickedIndex,n=e.clickedSlide;if(n&&n.classList.contains(t.params.thumbs.slideThumbActiveClass)||typeof i>"u"||null===i)return;let s;s=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,t.params.loop?t.slideToLoop(s):t.slideTo(s)}function a(){const{thumbs:e}=t.params;if(n)return!1;n=!0;const i=t.constructor;if(e.swiper instanceof i){if(e.swiper.destroyed)return n=!1,!1;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}
vendor: 16,740 bytes, line 63
63),t.thumbs.swiper.update()}else if(Xa(e.swiper)){const n=Object.assign({},e.swiper);Object.assign(n,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new i(n),s=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",o),!0}function r(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 o=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.forEach((t=>t.classList.remove(o))),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e<s;e+=1)ir(i.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((t=>{t.classList.add(o)}));else for(let e=0;e<s;e+=1)i.slides[t.realIndex+e]&&i.slides[t.realIndex+e].classList.add(o);const a=t.params.thumbs.autoScrollOffset,r=a&&!i.params.loop;if(t.realIndex!==i.realIndex||r){const s=i.activeIndex;let o,l;if(i.params.loop){const e=i.slides.find((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`));o=i.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else o=t.realIndex,l=o>t.previousIndex?"next":"prev";r&&(o+="next"===l?a:-1*a),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(o)<0&&(i.params.centeredSlides?o=o>s?o-Math.floor(n/2)+1:o+Math.floor(n/2)-1:o>s&&i.params.slidesPerGroup,i.slideTo(o,e?0:void 0))}}t.thumbs={swiper:null},i("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const i=Wa(),n=()=>{const n="string"==typeof e.swiper?i.querySelector(e.swiper):e.swiper;if(n&&n.swiper)e.swiper=n.swiper,a(),r(!0);else if(n){const i=`${t.params.eventsPrefix}init`,s=o=>{e.swiper=o.detail[0],n.removeEventListener(i,s),a(),r(!0),e.swiper.update(),t.update()};n.addEventListener(i,s)}return n},s=()=>{t.destroyed||n()||requestAnimationFrame(s)};requestAnimationFrame(s)}else a(),r(!0)})),i("slideChange update resize observerUpdate",(()=>{r()})),i("setTransition",((e,i)=>{const n=t.thumbs.swiper;!n||n.destroyed||n.setTransition(i)})),i("beforeDestroy",(()=>{const e=t.thumbs.swiper;!e||e.destroyed||s&&e.destroy()})),Object.assign(t.thumbs,{init:a,update:r})},function({swiper:t,extendParams:e,emit:i,once:n}){e({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;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(){if(t.params.cssMode)return;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:Ua()})},onTouchEnd:function({currentPos:e}){if(t.params.cssMode)return;const{params:s,wrapperEl:o,rtlTranslate:a,snapGrid:r,touchEventsData:l}=t,c=Ua()-l.touchStartTime;if(e<-t.minTranslate())t.slideTo(t.activeIndex);else if(e>-t.maxTranslate())t.slides.length<r.length?t.slideTo(r.length-1):t.slideTo(t.slides.length-1);else{if(s.freeMode.momentum){if(l.velocities.length>1){const e=l.velocities.pop(),i=l.velocities.pop(),n=e.position-i.position,o=e.time-i.time;t.velocity=n/o,t.velocity/=2,Math.abs(t.velocity)<s.freeMode.minimumVelocity&&(t.velocity=0),(o>150||Ua()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freeMode.momentumVelocityRatio,l.velocities.length=0;let e=1e3*s.freeMode.momentumRatio;const c=t.velocity*e;let h=t.translate+c;a&&(h=-h);let d,u=!1;const p=20*Math.abs(t.velocity)*s.freeMode.momentumBounceRatio;let f;if(h<t.maxTranslate())s.freeMode.momentumBounce?(h+t.maxTranslate()<-p&&(h=t.maxTranslate()-p),d=t.maxTranslate(),u=!0,l.allowMomentumBounce=!0):h=t.maxTranslate(),s.loop&&s.centeredSlides&&(f=!0);else if(h>t.minTranslate())s.freeMode.momentumBounce?(h-t.minTranslate()>p&&(h=t.minTranslate()+p),d=t.minTranslate(),u=!0,l.allowMomentumBounce=!0):h=t.minTranslate(),s.loop&&s.centeredSlides&&(f=!0);else if(s.freeMode.sticky){let e;for(let t=0;t<r.length;t+=1)if(r[t]>-h){e=t;break}h=Math.abs(r[e]-h)<Math.abs(r[e-1]-h)||"next"===t.swipeDirection?r[e]:r[e-1],h=-h}if(f&&n("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=a?Math.abs((-h-t.translate)/t.velocity):Math.abs((h-t.translate)/t.velocity),s.freeMode.sticky){const i=Math.abs((a?-h:h)-t.translate),n=t.slidesSizesGrid[t.activeIndex];e=i<n?s.speed:i<2*n?1.5*s.speed:2.5*s.speed}}else if(s.freeMode.sticky)return void t.slideToClosest();s.freeMode.momentumBounce&&u?(t.updateProgress(d),t.setTransition(e),t.setTranslate(h),t.transitionStart(!0,t.swipeDirection),t.animating=!0,cr(o,(()=>{!t||t.destroyed||!l.allowMomentumBounce||(i("momentumBounce"),t.setTransition(s.speed),setTimeout((()=>{t.setTranslate(d),cr(o,(()=>{!t||t.destroyed||t.transitionEnd()}))}),0))}))):t.velocity?(i("_freeModeNoMomentumRelease"),t.updateProgress(h),t.setTransition(e),t.setTranslate(h),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,cr(o,(()=>{!t||t.destroyed||t.transitionEnd()})))):t.updateProgress(h),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(s.freeMode.sticky)return void t.slideToClosest();s.freeMode&&i("_freeModeNoMomentumRelease")}(!s.freeMode.momentum||c>=s.longSwipesMs)&&(i("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function({swiper:t,extendParams:e,on:i}){let n,s,o,a;e({grid:{rows:1,fill:"column"}});const r=()=>{let e=t.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*t.size:"string"==typeof e&&(e=parseFloat(e)),e};i("init",(()=>{a=t.params.grid&&t.params.grid.rows>1})),i("update",(()=>{const{params:e,el:i}=t,n=e.grid&&e.grid.rows>1;a&&!n?(i.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),o=1,t.emitContainerClasses()):!a&&n&&(i.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&i.classList.add(`${e.containerModifierClass}grid-column`),t.emitContainerClasses()),a=n})),t.grid={initSlides:e=>{const{slidesPerView:i}=t.params,{rows:a,fill:r}=t.params.grid,l=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:e.length;o=Math.floor(l/a),n=Math.floor(l/a)===l/a?l:Math.ceil(l/a)*a,"auto"!==i&&"row"===r&&(n=Math.max(n,i*a)),s=n/a},unsetSlides:()=>{t.slides&&t.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[t.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,i,a)=>{const{slidesPerGroup:l}=t.params,c=r(),{rows:h,fill:d}=t.params.grid,u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:a.length;let p,f,m;if("row"===d&&l>1){const t=Math.floor(e/(l*h)),s=e-h*l*t,o=0===t?l:Math.min(Math.ceil((u-t*h*l)/h),l);m=Math.floor(s/o),f=s-m*o+t*l,p=f+m*n/h,i.style.order=p}else"column"===d?(f=Math.floor(e/h),m=e-f*h,(f>o||f===o&&m===h-1)&&(m+=1,m>=h&&(m=0,f+=1))):(m=Math.floor(e/s),f=e-m*s);i.row=m,i.column=f,i.style.height=`calc((100% - ${(h-1)*c}px) / ${h})`,i.style[t.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(e,i)=>{const{centeredSlides:s,roundLengths:o}=t.params,a=r(),{rows:l}=t.params.grid;if(t.virtualSize=(e+a)*n,t.virtualSize=Math.ceil(t.virtualSize/l)-a,t.params.cssMode||(t.wrapperEl.style[t.getDirectionLabel("width")]=`${t.virtualSize+a}px`),s){const e=[];for(let n=0;n<i.length;n+=1){let s=i[n];o&&(s=Math.floor(s)),i[n]<t.virtualSize+i[0]&&e.push(s)}i.splice(0,i.length),i.push(...e)}}}},function({swiper:t}){Object.assign(t,{appendSlide:Zr.bind(t),prependSlide:Vr.bind(t),addSlide:qr.bind(t),removeSlide:Ur.bind(t),removeAllSlides:Gr.bind(t)})},function({swiper:t,extendParams:e,on:i}){e({fadeEffect:{crossFade:!1}}),Xr({effect:"fade",swiper:t,on:i,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let i=0;i<e.length;i+=1){const e=t.slides[i];let n=-e.swiperSlideOffset;t.params.virtualTranslate||(n-=t.translate);let s=0;t.isHorizontal()||(s=n,n=0);const o=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),a=Kr(0,e);a.style.opacity=o,a.style.transform=`translate3d(${n}px, ${s}px, 0px)`}},setTransition:e=>{const i=t.slides.map((t=>er(t)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`})),Qr({swiper:t,duration:e,transformElements:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:i}){e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const n=(t,e,i)=>{let n=i?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),s=i?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");n||(n=sr("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"left":"top")).split(" ")),t.append(n)),s||(s=sr("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"right":"bottom")).split(" ")),t.append(s)),n&&(n.style.opacity=Math.max(-e,0)),s&&(s.style.opacity=Math.max(e,0))};Xr({effect:"cube",swiper:t,on:i,setTranslate:()=>{const{el:e,wrapperEl:i,slides:s,width:o,height:a,rtlTranslate:r,size:l,browser:c}=t,h=ur(t),d=t.params.cubeEffect,u=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled;let f,m=0;d.shadow&&(u?(f=t.wrapperEl.querySelector(".swiper-cube-shadow"),f||(f=sr("div","swiper-cube-shadow"),t.wrapperEl.append(f)),f.style.height=`${o}px`):(f=e.querySelector(".swiper-cube-shadow"),f||(f=sr("div","swiper-cube-shadow"),e.append(f))));for(let t=0;t<s.length;t+=1){const e=s[t];let i=t;p&&(i=parseInt(e.getAttribute("data-swiper-slide-index"),10));let o=90*i,a=Math.floor(o/360);r&&(o=-o,a=Math.floor(-o/360));const c=Math.max(Math.min(e.progress,1),-1);let f=0,g=0,v=0;i%4==0?(f=4*-a*l,v=0):(i-1)%4==0?(f=0,v=4*-a*l):(i-2)%4==0?(f=l+4*a*l,v=l):(i-3)%4==0&&(f=-l,v=3*l+4*l*a),r&&(f=-f),u||(g=f,f=0);const _=`rotateX(${h(u?0:-o)}deg) rotateY(${h(u?o:0)}deg) translate3d(${f}px, ${g}px, ${v}px)`;c<=1&&c>-1&&(m=90*i+90*c,r&&(m=90*-i-90*c)),e.style.transform=_,d.slideShadows&&n(e,c,u)}if(i.style.transformOrigin=`50% 50% -${l/2}px`,i.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,d.shadow)if(u)f.style.transform=`translate3d(0px, ${o/2+d.shadowOffset}px, ${-o/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${d.shadowScale})`;else{const t=Math.abs(m)-90*Math.floor(Math.abs(m)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),i=d.shadowScale,n=d.shadowScale/e,s=d.shadowOffset;f.style.transform=`scale3d(${i}, 1, ${n}) translate3d(0px, ${a/2+s}px, ${-a/2/n}px) rotateX(-89.99deg)`}const g=(c.isSafari||c.isWebView)&&c.needPerspectiveFix?-l/2:0;i.style.transform=`translate3d(0px,0,${g}px) rotateX(${h(t.isHorizontal()?0:m)}deg) rotateY(${h(t.isHorizontal()?-m:0)}deg)`,i.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:i,slides:n}=t;if(n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=i.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const i=Math.max(Math.min(t.progress,1),-1);n(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({swiper:t,extendParams:e,on:i}){e({flipEffect:{slideShadows:!0,limitRotation:!0}});const n=(e,i)=>{let n=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),s=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");n||(n=Jr("flip",e,t.isHorizontal()?"left":"top")),s||(s=Jr("flip",e,t.isHorizontal()?"right":"bottom")),n&&(n.style.opacity=Math.max(-i,0)),s&&(s.style.opacity=Math.max(i,0))};Xr({effect:"flip",swiper:t,on:i,setTranslate:()=>{const{slides:e,rtlTranslate:i}=t,s=t.params.flipEffect,o=ur(t);for(let a=0;a<e.length;a+=1){const r=e[a];let l=r.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(r.progress,1),-1));const c=r.swiperSlideOffset;let h=-180*l,d=0,u=t.params.cssMode?-c-t.translate:-c,p=0;t.isHorizontal()?i&&(h=-h):(p=u,u=0,d=-h,h=0),r.style.zIndex=-Math.abs(Math.round(l))+e.length,s.slideShadows&&n(r,l);const f=`translate3d(${u}px, ${p}px, 0px) rotateX(${o(d)}deg) rotateY(${o(h)}deg)`;Kr(0,r).style.transform=f}},setTransition:e=>{const i=t.slides.map((t=>er(t)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Qr({swiper:t,duration:e,transformElements:i})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let i=e.progress;t.params.flipEffect.limitRotation&&(i=Math.max(Math.min(e.progress,1),-1)),n(e,i)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:i}){e({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Xr({effect:"coverflow",swiper:t,on:i,setTranslate:()=>{const{width:e,height:i,slides:n,slidesSizesGrid:s}=t,o=t.params.coverflowEffect,a=t.isHorizontal(),r=t.translate,l=a?e/2-r:i/2-r,c=a?o.rotate:-o.rotate,h=o.depth,d=ur(t);for(let t=0,e=n.length;t<e;t+=1){const e=n[t],i=s[t],r=(l-e.swiperSlideOffset-i/2)/i,u="function"==typeof o.modifier?o.modifier(r):r*o.modifier;let p=a?c*u:0,f=a?0:c*u,m=-h*Math.abs(u),g=o.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(o.stretch)/100*i);let v=a?0:g*u,_=a?g*u:0,y=1-(1-o.scale)*Math.abs(u);Math.abs(_)<.001&&(_=0),Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(p)<.001&&(p=0),Math.abs(f)<.001&&(f=0),Math.abs(y)<.001&&(y=0);const b=`translate3d(${_}px,${v}px,${m}px)  rotateX(${d(f)}deg) rotateY(${d(p)}deg) scale(${y})`;if(Kr(0,e).style.transform=b,e.style.zIndex=1-Math.abs(Math.round(u)),o.slideShadows){let t=a?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=a?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");t||(t=Jr("coverflow",e,a?"left":"top")),i||(i=Jr("coverflow",e,a?"right":"bottom")),t&&(t.style.opacity=u>0?u:0),i&&(i.style.opacity=-u>0?-u:0)}}},setTransition:e=>{t.slides.map((t=>er(t))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function({swiper:t,extendParams:e,on:i}){e({creativeEffect:{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 n=t=>"string"==typeof t?t:`${t}px`;Xr({effect:"creative",swiper:t,on:i,setTranslate:()=>{const{slides:e,wrapperEl:i,slidesSizesGrid:s}=t,o=t.params.creativeEffect,{progressMultiplier:a}=o,r=t.params.centeredSlides,l=ur(t);if(r){const e=s[0]/2-t.params.slidesOffsetBefore||0;i.style.transform=`translateX(calc(50% - ${e}px))`}for(let i=0;i<e.length;i+=1){const s=e[i],c=s.progress,h=Math.min(Math.max(s.progress,-o.limitProgress),o.limitProgress);let d=h;r||(d=Math.min(Math.max(s.originalProgress,-o.limitProgress),o.limitProgress));const u=s.swiperSlideOffset,p=[t.params.cssMode?-u-t.translate:-u,0,0],f=[0,0,0];let m=!1;t.isHorizontal()||(p[1]=p[0],p[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};h<0?(g=o.next,m=!0):h>0&&(g=o.prev,m=!0),p.forEach(((t,e)=>{p[e]=`calc(${t}px + (${n(g.translate[e])} * ${Math.abs(h*a)}))`})),f.forEach(((t,e)=>{let i=g.rotate[e]*Math.abs(h*a);f[e]=i})),s.style.zIndex=-Math.abs(Math.round(c))+e.length;const v=p.join(", "),_=`rotateX(${l(f[0])}deg) rotateY(${l(f[1])}deg) rotateZ(${l(f[2])}deg)`,y=d<0?`scale(${1+(1-g.scale)*d*a})`:`scale(${1-(1-g.scale)*d*a}
63)`,b=d<0?1+(1-g.opacity)*d*a:1-(1-g.opacity)*d*a,w=`translate3d(${v}) ${_} ${y}`;if(m&&g.shadow||!m){let t=s.querySelector(".swiper-slide-shadow");if(!t&&g.shadow&&(t=Jr("creative",s)),t){const e=o.shadowPerProgress?h*(1/o.limitProgress):h;t.style.opacity=Math.min(Math.max(Math.abs(e),0),1)}}const x=Kr(0,s);x.style.transform=w,x.style.opacity=b,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:e=>{const i=t.slides.map((t=>er(t)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Qr({swiper:t,duration:e,transformElements:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:i}){e({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),Xr({effect:"cards",swiper:t,on:i,setTranslate:()=>{const{slides:e,activeIndex:i,rtlTranslate:n}=t,s=t.params.cardsEffect,{startTranslate:o,isTouched:a}=t.touchEventsData,r=n?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const c=e[l],h=c.progress,d=Math.min(Math.max(h,-4),4);let u=c.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(u-=e[0].swiperSlideOffset);let p=t.params.cssMode?-u-t.translate:-u,f=0;const m=-100*Math.abs(d);let g=1,v=-s.perSlideRotate*d,_=s.perSlideOffset-.75*Math.abs(d);const y=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,b=(y===i||y===i-1)&&d>0&&d<1&&(a||t.params.cssMode)&&r<o,w=(y===i||y===i+1)&&d<0&&d>-1&&(a||t.params.cssMode)&&r>o;if(b||w){const e=(1-Math.abs((Math.abs(d)-.5)/.5))**.5;v+=-28*d*e,g+=-.5*e,_+=96*e,f=(s.rotate||t.isHorizontal()?-25:0)*e*Math.abs(d)+"%"}if(p=d<0?`calc(${p}px ${n?"-":"+"} (${_*Math.abs(d)}%))`:d>0?`calc(${p}px ${n?"-":"+"} (-${_*Math.abs(d)}%))`:`${p}px`,!t.isHorizontal()){const t=f;f=p,p=t}const x=d<0?""+(1+(1-g)*d):""+(1-(1-g)*d),k=`\n        translate3d(${p}, ${f}, ${m}px)\n        rotateZ(${s.rotate?n?-v:v:0}deg)\n        scale(${x})\n      `;if(s.slideShadows){let t=c.querySelector(".swiper-slide-shadow");t||(t=Jr("cards",c)),t&&(t.style.opacity=Math.min(Math.max((Math.abs(d)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(h))+e.length,Kr(0,c).style.transform=k}},setTransition:e=>{const i=t.slides.map((t=>er(t)));i.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Qr({swiper:t,duration:e,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}];function el(){let t=[];document.querySelectorAll(".shapehub-image-slider").forEach((function(e){const i=e.querySelectorAll("slide").length;t.push(new jr(e,{slidesPerView:1,spaceBetween:10,centerSlides:!0,centerInsufficientSlides:!0,loop:i>1,pagination:{el:`.swiper-pagination[data-id=${e.dataset.id}]`,clickable:!0},navigation:{nextEl:`.swiper-button-next[data-id=${e.dataset.id}]`,prevEl:`.swiper-button-prev[data-id=${e.dataset.id}]`},breakpoints:{776:{slidesPerView:3,loop:i>3},992:{slidesPerView:4,loop:i>4}}}))})),document.querySelectorAll(".shapehub-related-slider").forEach((function(e){const i=e.querySelectorAll("slide").length;t.push(new jr(e,{slidesPerView:1,spaceBetween:10,centerSlides:!0,centerInsufficientSlides:!0,loop:i>1,pagination:{el:`.swiper-pagination[data-id=${e.dataset.id}]`,clickable:!0},navigation:{nextEl:`.swiper-button-next[data-id=${e.dataset.id}]`,prevEl:`.swiper-button-prev[data-id=${e.dataset.id}]`},breakpoints:{776:{slidesPerView:3,loop:i>3},992:{slidesPerView:4,loop:i>4}}}))})),document.querySelectorAll(".shapehub-mobile-header-imageslider").forEach((function(e){const i=e.querySelectorAll("slide").length;t.push(new jr(e,{slidesPerView:1,loop:i>1,pagination:{el:`.swiper-pagination[data-id=${e.dataset.id}]`,clickable:!0}}))}))}function il(){document.querySelectorAll(".shapehub-desktop-header-gallery").forEach((t=>{for(let e=1;e<=4;e++)t.querySelectorAll(".image").forEach((t=>{t.addEventListener("click",(function(){if(!this.classList.contains("image0")){let t=document.querySelector(".image0");t.classList.remove("image0"),this.className="image0 image shapehub-copyrighted";let e=t.querySelector(".shapehub-card-image-badge");e&&this.prepend(e)}}))}))}))}jr.use(tl),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",el):el(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",il):il();var nl,sl={exports:{}},ol=(nl||(nl=1,sl.exports=function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,n(s.key),s)}}
vendor: 55,705 bytes, line 63
63function i(t,i,n){return i&&e(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=Date.now();function a(){var t={},e=!0,i=0,n=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],i++);for(var s=function(i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e&&"[object Object]"===Object.prototype.toString.call(i[n])?t[n]=a(!0,t[n],i[n]):t[n]=i[n])};i<n;i++)s(arguments[i]);return t}function r(t,e){if((E(t)||t===window||t===document)&&(t=[t]),M(t)||L(t)||(t=[t]),0!=A(t))if(M(t)&&!L(t))for(var i=t.length,n=0;n<i&&!1!==e.call(t[n],t[n],n,t);n++);else if(L(t))for(var s in t)if(D(t,s)&&!1===e.call(t[s],t[s],s,t))break}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=t[o]=t[o]||[],s={all:n,evt:null,found:null};return e&&i&&A(n)>0&&r(n,(function(t,n){if(t.eventName==e&&t.fn.toString()==i.toString())return s.found=!0,s.evt=n,!1})),s}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.onElement,n=e.withCallback,s=e.avoidDuplicate,o=void 0===s||s,a=e.once,c=void 0!==a&&a,h=e.useCapture,d=void 0!==h&&h,u=arguments.length>2?arguments[2]:void 0,p=i||[];function f(t){S(n)&&n.call(u,t,this),c&&f.destroy()}return T(p)&&(p=document.querySelectorAll(p)),f.destroy=function(){r(p,(function(e){var i=l(e,t,f);i.found&&i.all.splice(i.evt,1),e.removeEventListener&&e.removeEventListener(t,f,d)}))},r(p,(function(e){var i=l(e,t,f);(e.addEventListener&&o&&!i.found||!o)&&(e.addEventListener(t,f,d),i.all.push({eventName:t,fn:f}))})),f}function h(t,e){r(e.split(" "),(function(e){return t.classList.add(e)}))}function d(t,e){r(e.split(" "),(function(e){return t.classList.remove(e)}))}function u(t,e){return t.classList.contains(e)}function p(t,e){for(;t!==document.body;){if(!(t=t.parentElement))return!1;if("function"==typeof t.matches?t.matches(e):t.msMatchesSelector(e))return t}}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||""===e)return!1;if("none"===e)return S(i)&&i(),!1;var n=b(),s=e.split(" ");r(s,(function(e){h(t,"g"+e)})),c(n,{onElement:t,avoidDuplicate:!1,once:!0,withCallback:function(t,e){r(s,(function(t){d(e,"g"+t)})),S(i)&&i()}})}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return t.style.webkitTransform="",t.style.MozTransform="",t.style.msTransform="",t.style.OTransform="",t.style.transform="",!1;t.style.webkitTransform=e,t.style.MozTransform=e,t.style.msTransform=e,t.style.OTransform=e,t.style.transform=e}function g(t){t.style.display="block"}function v(t){t.style.display="none"}function _(t){var e=document.createDocumentFragment(),i=document.createElement("div");for(i.innerHTML=t;i.firstChild;)e.appendChild(i.firstChild);return e}function y(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}function b(){var t,e=document.createElement("fakeelement"),i={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(t in i)if(void 0!==e.style[t])return i[t]}function w(t,e,i,n){if(t())e();else{var s;i||(i=100);var o=setInterval((function(){t()&&(clearInterval(o),s&&clearTimeout(s),e())}),i)}}function x(t,e,i){if(P(t))console.error("Inject assets error");else if(S(e)&&(i=e,e=!1),T(e)&&e in window)S(i)&&i();else{var n;if(-1!==t.indexOf(".css")){if((n=document.querySelectorAll('link[href="'+t+'"]'))&&n.length>0)return void(S(i)&&i());var s=document.getElementsByTagName("head")[0],o=s.querySelectorAll('link[rel="stylesheet"]'),a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",a.href=t,a.media="all",o?s.insertBefore(a,o[0]):s.appendChild(a),void(S(i)&&i())}if((n=document.querySelectorAll('script[src="'+t+'"]'))&&n.length>0){if(S(i)){if(T(e))return w((function(){return void 0!==window[e]}),(function(){i()})),!1;i()}}else{var r=document.createElement("script");r.type="text/javascript",r.src=t,r.onload=function(){if(S(i)){if(T(e))return w((function(){return void 0!==window[e]}),(function(){i()})),!1;i()}},document.body.appendChild(r)}}}function k(){return"navigator"in window&&window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i)}function S(t){return"function"==typeof t}function T(t){return"string"==typeof t}function E(t){return!(!t||!t.nodeType||1!=t.nodeType)}function C(t){return Array.isArray(t)}function M(t){return t&&t.length&&isFinite(t.length)}function L(t){return"object"===s(t)&&null!=t&&!S(t)&&!C(t)}function P(t){return null==t}function D(t,e){return null!==t&&hasOwnProperty.call(t,e)}function A(t){if(L(t)){if(t.keys)return t.keys().length;var e=0;for(var i in t)D(t,i)&&e++;return e}return t.length}function O(t){return!isNaN(parseFloat(t))&&isFinite(t)}function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,e=document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");if(!e.length)return!1;if(1==e.length)return e[0];"string"==typeof t&&(t=parseInt(t));var i=[];r(e,(function(t){i.push(t.getAttribute("data-taborder"))}));var n=Math.max.apply(Math,i.map((function(t){return parseInt(t)}))),s=t<0?1:t+1;s>n&&(s="1");var o=i.filter((function(t){return t>=parseInt(s)})).sort()[0];return document.querySelector('.gbtn[data-taborder="'.concat(o,'"]'))}function z(t){if(t.events.hasOwnProperty("keyboard"))return!1;t.events.keyboard=c("keydown",{onElement:window,withCallback:function(e,i){var n=(e=e||window.event).keyCode;if(9==n){var s=document.querySelector(".gbtn.focused");if(!s){var o=!(!document.activeElement||!document.activeElement.nodeName)&&document.activeElement.nodeName.toLocaleLowerCase();if("input"==o||"textarea"==o||"button"==o)return}e.preventDefault();var a=document.querySelectorAll(".gbtn[data-taborder]");if(!a||a.length<=0)return;if(!s){var r=I();return void(r&&(r.focus(),h(r,"focused")))}var l=I(s.getAttribute("data-taborder"));d(s,"focused"),l&&(l.focus(),h(l,"focused"))}39==n&&t.nextSlide(),37==n&&t.prevSlide(),27==n&&t.close()}})}var N=i((function e(i,n){var s=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t(this,e),this.img=i,this.slide=n,this.onclose=o,this.img.setZoomEvents)return!1;this.active=!1,this.zoomedIn=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.img.addEventListener("mousedown",(function(t){return s.dragStart(t)}),!1),this.img.addEventListener("mouseup",(function(t){return s.dragEnd(t)}),!1),this.img.addEventListener("mousemove",(function(t){return s.drag(t)}),!1),this.img.addEventListener("click",(function(t){return s.slide.classList.contains("dragging-nav")?(s.zoomOut(),!1):s.zoomedIn?void(s.zoomedIn&&!s.dragging&&s.zoomOut()):s.zoomIn()}),!1),this.img.setZoomEvents=!0}),[{key:"zoomIn",value:function(){var t=this.widowWidth();if(!(this.zoomedIn||t<=768)){var e=this.img;if(e.setAttribute("data-style",e.getAttribute("style")),e.style.maxWidth=e.naturalWidth+"px",e.style.maxHeight=e.naturalHeight+"px",e.naturalWidth>t){var i=t/2-e.naturalWidth/2;this.setTranslate(this.img.parentNode,i,0)}this.slide.classList.add("zoomed"),this.zoomedIn=!0}}},{key:"zoomOut",value:function(){this.img.parentNode.setAttribute("style",""),this.img.setAttribute("style",this.img.getAttribute("data-style")),this.slide.classList.remove("zoomed"),this.zoomedIn=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.onclose&&"function"==typeof this.onclose&&this.onclose()}},{key:"dragStart",value:function(t){t.preventDefault(),this.zoomedIn?("touchstart"===t.type?(this.initialX=t.touches[0].clientX-this.xOffset,this.initialY=t.touches[0].clientY-this.yOffset):(this.initialX=t.clientX-this.xOffset,this.initialY=t.clientY-this.yOffset),t.target===this.img&&(this.active=!0,this.img.classList.add("dragging"))):this.active=!1}},{key:"dragEnd",value:function(t){var e=this;t.preventDefault(),this.initialX=this.currentX,this.initialY=this.currentY,this.active=!1,setTimeout((function(){e.dragging=!1,e.img.isDragging=!1,e.img.classList.remove("dragging")}),100)}},{key:"drag",value:function(t){this.active&&(t.preventDefault(),"touchmove"===t.type?(this.currentX=t.touches[0].clientX-this.initialX,this.currentY=t.touches[0].clientY-this.initialY):(this.currentX=t.clientX-this.initialX,this.currentY=t.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.img.isDragging=!0,this.dragging=!0,this.setTranslate(this.img,this.currentX,this.currentY))}},{key:"onMove",value:function(t){if(this.zoomedIn){var e=t.clientX-this.img.naturalWidth/2,i=t.clientY-this.img.naturalHeight/2;this.setTranslate(this.img,e,i)}}},{key:"setTranslate",value:function(t,e,i){t.style.transform="translate3d("+e+"px, "+i+"px, 0)"}},{key:"widowWidth",value:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}}]),$=i((function e(){var i=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,e);var s=n.dragEl,o=n.toleranceX,a=void 0===o?40:o,r=n.toleranceY,l=void 0===r?65:r,c=n.slide,h=void 0===c?null:c,d=n.instance,u=void 0===d?null:d;this.el=s,this.active=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.direction=null,this.lastDirection=null,this.toleranceX=a,this.toleranceY=l,this.toleranceReached=!1,this.dragContainer=this.el,this.slide=h,this.instance=u,this.el.addEventListener("mousedown",(function(t){return i.dragStart(t)}),!1),this.el.addEventListener("mouseup",(function(t){return i.dragEnd(t)}),!1),this.el.addEventListener("mousemove",(function(t){return i.drag(t)}),!1)}),[{key:"dragStart",value:function(t){if(this.slide.classList.contains("zoomed"))this.active=!1;else{"touchstart"===t.type?(this.initialX=t.touches[0].clientX-this.xOffset,this.initialY=t.touches[0].clientY-this.yOffset):(this.initialX=t.clientX-this.xOffset,this.initialY=t.clientY-this.yOffset);var e=t.target.nodeName.toLowerCase();t.target.classList.contains("nodrag")||p(t.target,".nodrag")||-1!==["input","select","textarea","button","a"].indexOf(e)?this.active=!1:(t.preventDefault(),(t.target===this.el||"img"!==e&&p(t.target,".gslide-inline"))&&(this.active=!0,this.el.classList.add("dragging"),this.dragContainer=p(t.target,".ginner-container")))}}},{key:"dragEnd",value:function(t){var e=this;t&&t.preventDefault(),this.initialX=0,this.initialY=0,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.active=!1,this.doSlideChange&&(this.instance.preventOutsideClick=!0,"right"==this.doSlideChange&&this.instance.prevSlide(),"left"==this.doSlideChange&&this.instance.nextSlide()),this.doSlideClose&&this.instance.close(),this.toleranceReached||this.setTranslate(this.dragContainer,0,0,!0),setTimeout((function(){e.instance.preventOutsideClick=!1,e.toleranceReached=!1,e.lastDirection=null,e.dragging=!1,e.el.isDragging=!1,e.el.classList.remove("dragging"),e.slide.classList.remove("dragging-nav"),e.dragContainer.style.transform="",e.dragContainer.style.transition=""}),100)}},{key:"drag",value:function(t){if(this.active){t.preventDefault(),this.slide.classList.add("dragging-nav"),"touchmove"===t.type?(this.currentX=t.touches[0].clientX-this.initialX,this.currentY=t.touches[0].clientY-this.initialY):(this.currentX=t.clientX-this.initialX,this.currentY=t.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.el.isDragging=!0,this.dragging=!0,this.doSlideChange=!1,this.doSlideClose=!1;var e=Math.abs(this.currentX),i=Math.abs(this.currentY);if(e>0&&e>=Math.abs(this.currentY)&&(!this.lastDirection||"x"==this.lastDirection)){this.yOffset=0,this.lastDirection="x",this.setTranslate(this.dragContainer,this.currentX,0);var n=this.shouldChange();if(!this.instance.settings.dragAutoSnap&&n&&(this.doSlideChange=n),this.instance.settings.dragAutoSnap&&n)return this.instance.preventOutsideClick=!0,this.toleranceReached=!0,this.active=!1,this.instance.preventOutsideClick=!0,this.dragEnd(null),"right"==n&&this.instance.prevSlide(),void("left"==n&&this.instance.nextSlide())}if(this.toleranceY>0&&i>0&&i>=e&&(!this.lastDirection||"y"==this.lastDirection)){this.xOffset=0,this.lastDirection="y",this.setTranslate(this.dragContainer,0,this.currentY);var s=this.shouldClose();return!this.instance.settings.dragAutoSnap&&s&&(this.doSlideClose=!0),void(this.instance.settings.dragAutoSnap&&s&&this.instance.close())}}}},{key:"shouldChange",value:function(){var t=!1;if(Math.abs(this.currentX)>=this.toleranceX){var e=this.currentX>0?"right":"left";("left"==e&&this.slide!==this.slide.parentNode.lastChild||"right"==e&&this.slide!==this.slide.parentNode.firstChild)&&(t=e)}return t}},{key:"shouldClose",value:function(){var t=!1;return Math.abs(this.currentY)>=this.toleranceY&&(t=!0),t}},{key:"setTranslate",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.style.transition=n?"all .2s ease":"",t.style.transform="translate3d(".concat(e,"px, ").concat(i,"px, 0)")}}]);function B(t,e,i,n){var s=t.querySelector(".gslide-media"),o=new Image,a="gSlideTitle_"+i,r="gSlideDesc_"+i;o.addEventListener("load",(function(){S(n)&&n()}),!1),o.src=e.href,""!=e.sizes&&""!=e.srcset&&(o.sizes=e.sizes,o.srcset=e.srcset),o.alt="",P(e.alt)||""===e.alt||(o.alt=e.alt),""!==e.title&&o.setAttribute("aria-labelledby",a),""!==e.description&&o.setAttribute("aria-describedby",r),e.hasOwnProperty("_hasCustomWidth")&&e._hasCustomWidth&&(o.style.width=e.width),e.hasOwnProperty("_hasCustomHeight")&&e._hasCustomHeight&&(o.style.height=e.height),s.insertBefore(o,s.firstChild)}function R(t,e,i,n){var s=this,o=t.querySelector(".ginner-container"),a="gvideo"+i,r=t.querySelector(".gslide-media"),l=this.getAllPlayers();h(o,"gvideo-container"),r.insertBefore(_('<div class="gvideo-wrapper"></div>'),r.firstChild);var c=t.querySelector(".gvideo-wrapper");x(this.settings.plyr.css,"Plyr");var d=e.href,u=e?.videoProvider,p=!1;r.style.maxWidth=e.width,x(this.settings.plyr.js,"Plyr",(function(){if(!u&&d.match(/vimeo\.com\/([0-9]*)/)&&(u="vimeo"),!u&&(d.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||d.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||d.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||d.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/))&&(u="youtube"),"local"===u||!u){u="local";var o='<video id="'+a+'" ';o+='style="background:#000; max-width: '.concat(e.width,';" '),o+='preload="metadata" ',o+='x-webkit-airplay="allow" ',o+="playsinline ",o+="controls ",o+='class="gvideo-local">',o+='<source src="'.concat(d,'">'),p=_(o+="</video>")}var r=p||_('<div id="'.concat(a,'" data-plyr-provider="').concat(u,'" data-plyr-embed-id="').concat(d,'"></div>'));h(c,"".concat(u,"-video gvideo")),c.appendChild(r),c.setAttribute("data-id",a),c.setAttribute("data-index",i);var f=D(s.settings.plyr,"config")?s.settings.plyr.config:{},m=new Plyr("#"+a,f);m.on("ready",(function(t){l[a]=t.detail.plyr,S(n)&&n()})),w((function(){return t.querySelector("iframe")&&"true"==t.querySelector("iframe").dataset.ready}),(function(){s.resize(t)})),m.on("enterfullscreen",H),m.on("exitfullscreen",H)}))}function H(t){var e=p(t.target,".gslide-media");"enterfullscreen"===t.type&&h(e,"fullscreen"),"exitfullscreen"===t.type&&d(e,"fullscreen")}function j(t,e,i,n){var s,o=this,a=t.querySelector(".gslide-media"),r=!(!D(e,"href")||!e.href)&&e.href.split("#").pop().trim(),l=!(!D(e,"content")||!e.content)&&e.content;if(l&&(T(l)&&(s=_('<div class="ginlined-content">'.concat(l,"</div>"))),E(l))){"none"==l.style.display&&(l.style.display="block");var d=document.createElement("div");d.className="ginlined-content",d.appendChild(l),s=d}if(r){var u=document.getElementById(r);if(!u)return!1;var p=u.cloneNode(!0);p.style.height=e.height,p.style.maxWidth=e.width,h(p,"ginlined-content"),s=p}if(!s)return console.error("Unable to append inline slide content",e),!1;a.style.height=e.height,a.style.width=e.width,a.appendChild(s),this.events["inlineclose"+r]=c("click",{onElement:a.querySelectorAll(".gtrigger-close"),withCallback:function(t){t.preventDefault(),o.close()}}),S(n)&&n()}function F(t,e,i,n){var s,o,a,r,l,c,d=t.querySelector(".gslide-media"),u=(s={url:e.href,callback:n},o=s.url,a=s.allow,r=s.callback,l=s.appendTo,(c=document.createElement("iframe")).className="vimeo-video gvideo",c.src=o,c.style.width="100%",c.style.height="100%",a&&c.setAttribute("allow",a),c.onload=function(){c.onload=null,h(c,"node-ready"),S(r)&&r()},l&&l.appendChild(c),c);d.parentNode.style.maxWidth=e.width,d.parentNode.style.height=e.height,d.appendChild(u)}var W=i((function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,e),this.defaults={href:"",sizes:"",srcset:"",title:"",type:"",videoProvider:"",description:"",alt:"",descPosition:"bottom",effect:"",width:"",height:"",content:!1,zoomable:!0,draggable:!0},L(i)&&(this.defaults=a(this.defaults,i))}),[{key:"sourceType",value:function(t){var e=t;return null!==(t=t.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/)?"image":t.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||t.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||t.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||t.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/)||t.match(/vimeo\.com\/([0-9]*)/)||null!==t.match(/\.(mp4|ogg|webm|mov)/)?"video":null!==t.match(/\.(mp3|wav|wma|aac|ogg)/)?"audio":t.indexOf("#")>-1&&""!==e.split("#").pop().trim()?"inline":t.indexOf("goajax=true")>-1?"ajax":"external"}},{key:"parseConfig",value:function(t,e){var i=this,n=a({descPosition:e.descPosition},this.defaults);if(L(t)&&!E(t)){D(t,"type")||(D(t,"content")&&t.content?t.type="inline":D(t,"href")&&(t.type=this.sourceType(t.href)));var s=a(n,t);return this.setSize(s,e),s}var o="",l=t.getAttribute("data-glightbox"),c=t.nodeName.toLowerCase();if("a"===c&&(o=t.href),"img"===c&&(o=t.src,n.alt=t.alt),n.href=o,r(n,(function(s,o){D(e,o)&&"width"!==o&&(n[o]=e[o]);var a=t.dataset[o];P(a)||(n[o]=i.sanitizeValue(a))})),n.content&&(n.type="inline"),!n.type&&o&&(n.type=this.sourceType(o)),P(l)){if(!n.title&&"a"==c){var h=t.title;P(h)||""===h||(n.title=h)}if(!n.title&&"img"==c){var d=t.alt;P(d)||""===d||(n.title=d)}}else{var u=[];r(n,(function(t,e){u.push(";\\s?"+e)})),u=u.join("\\s?:|"),""!==l.trim()&&r(n,(function(t,e){var s=l,o=new RegExp("s?"+e+"s?:s?(.*?)("+u+"s?:|$)"),a=s.match(o);if(a&&a.length&&a[1]){var r=a[1].trim().replace(/;\s*$/,"");n[e]=i.sanitizeValue(r)}}))}if(n.description&&"."===n.description.substring(0,1)){var p;try{p=document.querySelector(n.description).innerHTML}catch(t){if(!(t instanceof DOMException))throw t}p&&(n.description=p)}if(!n.description){var f=t.querySelector(".glightbox-desc");f&&(n.description=f.innerHTML)}return this.setSize(n,e,t),this.slideConfig=n,n}},{key:"setSize",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="video"==t.type?this.checkSize(e.videosWidth):this.checkSize(e.width),s=this.checkSize(e.height);return t.width=D(t,"width")&&""!==t.width?this.checkSize(t.width):n,t.height=D(t,"height")&&""!==t.height?this.checkSize(t.height):s,i&&"image"==t.type&&(t._hasCustomWidth=!!i.dataset.width,t._hasCustomHeight=!!i.dataset.height),t}},{key:"checkSize",value:function(t){return O(t)?"".concat(t,"px"):t}},{key:"sanitizeValue",value:function(t){return"true"!==t&&"false"!==t?t:"true"===t}}]),Y=i((function e(i,n,s){t(this,e),this.element=i,this.instance=n,this.index=s}),[{key:"setContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(u(e,"loaded"))return!1;var n=this.instance.settings,s=this.slideConfig,o=k();S(n.beforeSlideLoad)&&n.beforeSlideLoad({index:this.index,slide:e,player:!1});var a=s.type,r=s.descPosition,l=e.querySelector(".gslide-media"),c=e.querySelector(".gslide-title"),d=e.querySelector(".gslide-desc"),p=e.querySelector(".gdesc-inner"),f=i,m="gSlideTitle_"+this.index,g="gSlideDesc_"+this.index;if(S(n.afterSlideLoad)&&(f=function(){S(i)&&i(),n.afterSlideLoad({index:t.index,slide:e,player:t.instance.getSlidePlayerInstance(t.index)})}),""==s.title&&""==s.description?p&&p.parentNode.parentNode.removeChild(p.parentNode):(c&&""!==s.title?(c.id=m,c.innerHTML=s.title):c.parentNode.removeChild(c),d&&""!==s.description?(d.id=g,o&&n.moreLength>0?(s.smallDescription=this.slideShortDesc(s.description,n.moreLength,n.moreText),d.innerHTML=s.smallDescription,this.descriptionEvents(d,s)):d.innerHTML=s.description):d.parentNode.removeChild(d),h(l.parentNode,"desc-".concat(r)),h(p.parentNode,"description-".concat(r))),h(l,"gslide-".concat(a)),h(e,"loaded"),"video"!==a){if("external"!==a)return"inline"===a?(j.apply(this.instance,[e,s,this.index,f]),void(s.draggable&&new $({dragEl:e.querySelector(".gslide-inline"),toleranceX:n.dragToleranceX,toleranceY:n.dragToleranceY,slide:e,instance:this.instance}))):void("image"!==a?S(f)&&f():B(e,s,this.index,(function(){var i=e.querySelector("img");s.draggable&&new $({dragEl:i,toleranceX:n.dragToleranceX,toleranceY:n.dragToleranceY,slide:e,instance:t.instance}),s.zoomable&&i.naturalWidth>i.offsetWidth&&(h(i,"zoomable"),new N(i,e,(function(){t.instance.resize()}))),S(f)&&f()})));F.apply(this,[e,s,this.index,f])}else R.apply(this.instance,[e,s,this.index,f])}},{key:"slideShortDesc",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");n.innerHTML=t;var s=i;if((t=n.innerText.trim()).length<=e)return t;var o=t.substr(0,e-1);return s?(n=null,o+'... <a href="#" class="desc-more">'+i+"</a>"):o}},{key:"descriptionEvents",value:function(t,e){var i=this,n=t.querySelector(".desc-more");if(!n)return!1;c("click",{onElement:n,withCallback:function(t,n){t.preventDefault();var s=document.body,o=p(n,".gslide-desc");if(!o)return!1;o.innerHTML=e.description,h(s,"gdesc-open");var a=c("click",{onElement:[s,p(o,".gslide-description")],withCallback:function(t,n){"a"!==t.target.nodeName.toLowerCase()&&(d(s,"gdesc-open"),h(s,"gdesc-closed"),o.innerHTML=e.smallDescription,i.descriptionEvents(o,e),setTimeout((function(){d(s,"gdesc-closed")}),400),a.destroy())}})}})}},{key:"create",value:function(){return _(this.instance.settings.slideHTML)}},{key:"getConfig",value:function(){E(this.element)||this.element.hasOwnProperty("draggable")||(this.element.draggable=this.instance.settings.draggable);var t=new W(this.instance.settings.slideExtraAttributes);return this.slideConfig=t.parseConfig(this.element,this.instance.settings),this.slideConfig}}]);function Z(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function V(t,e){var i,n,s=function(t,e){var i=Z(t)*Z(e);if(0===i)return 0;var n,s,o=(s=e,((n=t).x*s.x+n.y*s.y)/i);return o>1&&(o=1),Math.acos(o)}(t,e);return n=e,(i=t).x*n.y-n.x*i.y>0&&(s*=-1),180*s/Math.PI}var q=i((function e(i){t(this,e),this.handlers=[],this.el=i}),[{key:"add",value:function(t){this.handlers.push(t)}},{key:"del",value:function(t){t||(this.handlers=[]);for(var e=this.handlers.length;e>=0;e--)this.handlers[e]===t&&this.handlers.splice(e,1)}},{key:"dispatch",value:function(){for(var t=0,e=this.handlers.length;t<e;t++){var i=this.handlers[t];"function"==typeof i&&i.apply(this.el,arguments)}}}]);function U(t,e){var i=new q(t);return i.add(e),i}var G=i((function e(i,n){t(this,e),this.element="string"==typeof i?document.querySelector(i):i,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this),this.cancel=this.cancel.bind(this),this.element.addEventListener("touchstart",this.start,!1),this.element.addEventListener("touchmove",this.move,!1),this.element.addEventListener("touchend",this.end,!1),this.element.addEventListener("touchcancel",this.cancel,!1),this.preV={x:null,y:null},this.pinchStartLen=null,this.zoom=1,this.isDoubleTap=!1;var s=function(){};this.rotate=U(this.element,n.rotate||s),this.touchStart=U(this.element,n.touchStart||s),this.multipointStart=U(this.element,n.multipointStart||s),this.multipointEnd=U(this.element,n.multipointEnd||s),this.pinch=U(this.element,n.pinch||s),this.swipe=U(this.element,n.swipe||s),this.tap=U(this.element,n.tap||s),this.doubleTap=U(this.element,n.doubleTap||s),this.longTap=U(this.element,n.longTap||s),this.singleTap=U(this.element,n.singleTap||s),this.pressMove=U(this.element,n.pressMove||s),this.twoFingerPressMove=U(this.element,n.twoFingerPressMove||s),this.touchMove=U(this.element,n.touchMove||s),this.touchEnd=U(this.element,n.touchEnd||s),this.touchCancel=U(this.element,n.touchCancel||s),this.translateContainer=this.element,this._cancelAllHandler=this.cancelAll.bind(this),window.addEventListener("scroll",this._cancelAllHandler),this.delta=null,this.last=null,this.now=null,this.tapTimeout=null,this.singleTapTimeout=null,this.longTapTimeout=null,this.swipeTimeout=null,this.x1=this.x2=this.y1=this.y2=null,this.preTapPosition={x:null,y:null}}),[{key:"start",value:function(t){if(t.touches)if(t.target&&t.target.nodeName&&["a","button","input"].indexOf(t.target.nodeName.toLowerCase())>=0)console.log("ignore drag for this touched element",t.target.nodeName.toLowerCase());else{this.now=Date.now(),this.x1=t.touches[0].pageX,this.y1=t.touches[0].pageY,this.delta=this.now-(this.last||this.now),this.touchStart.dispatch(t,this.element),null!==this.preTapPosition.x&&(this.isDoubleTap=this.delta>0&&this.delta<=250&&Math.abs(this.preTapPosition.x-this.x1)<30&&Math.abs(this.preTapPosition.y-this.y1)<30,this.isDoubleTap&&clearTimeout(this.singleTapTimeout)),this.preTapPosition.x=this.x1,this.preTapPosition.y=this.y1,this.last=this.now;var e=this.preV;if(t.touches.length>1){this._cancelLongTap(),this._cancelSingleTap();var i={x:t.touches[1].pageX-this.x1,y:t.touches[1].pageY-this.y1};e.x=i.x,e.y=i.y,this.pinchStartLen=Z(e),this.multipointStart.dispatch(t,this.element)}this._preventTap=!1,this.longTapTimeout=setTimeout(function(){this.longTap.dispatch(t,this.element),this._preventTap=!0}.bind(this),750)}}},{key:"move",value:function(t){if(t.touches){var e=this.preV,i=t.touches.length,n=t.touches[0].pageX,s=t.touches[0].pageY;if(this.isDoubleTap=!1,i>1){var o=t.touches[1].pageX,a=t.touches[1].pageY,r={x:t.touches[1].pageX-n,y:t.touches[1].pageY-s};null!==e.x&&(this.pinchStartLen>0&&(t.zoom=Z(r)/this.pinchStartLen,this.pinch.dispatch(t,this.element)),t.angle=V(r,e),this.rotate.dispatch(t,this.element)),e.x=r.x,e.y=r.y,null!==this.x2&&null!==this.sx2?(t.deltaX=(n-this.x2+o-this.sx2)/2,t.deltaY=(s-this.y2+a-this.sy2)/2):(t.deltaX=0,t.deltaY=0),this.twoFingerPressMove.dispatch(t,this.element),this.sx2=o,this.sy2=a}else{if(null!==this.x2){t.deltaX=n-this.x2,t.deltaY=s-this.y2;var l=Math.abs(this.x1-this.x2),c=Math.abs(this.y1-this.y2);(l>10||c>10)&&(this._preventTap=!0)}else t.deltaX=0,t.deltaY=0;this.pressMove.dispatch(t,this.element)}this.touchMove.dispatch(t,this.element),this._cancelLongTap(),this.x2=n,this.y2=s,i>1&&t.preventDefault()}}},{key:"end",value:function(t){if(t.changedTouches){this._cancelLongTap();var e=this;t.touches.length<2&&(this.multipointEnd.dispatch(t,this.element),this.sx2=this.sy2=null),this.x2&&Math.abs(this.x1-this.x2)>30||this.y2&&Math.abs(this.y1-this.y2)>30?(t.direction=this._swipeDirection(this.x1,this.x2,this.y1,this.y2),this.swipeTimeout=setTimeout((function(){e.swipe.dispatch(t,e.element)}),0)):(this.tapTimeout=setTimeout((function(){e._preventTap||e.tap.dispatch(t,e.element),e.isDoubleTap&&(e.doubleTap.dispatch(t,e.element),e.isDoubleTap=!1)}),0),e.isDoubleTap||(e.singleTapTimeout=setTimeout((function(){e.singleTap.dispatch(t,e.element)}),250))),this.touchEnd.dispatch(t,this.element),this.preV.x=0,this.preV.y=0,this.zoom=1,this.pinchStartLen=null,this.x1=this.x2=this.y1=this.y2=null}}},{key:"cancelAll",value:function(){this._preventTap=!0,clearTimeout(this.singleTapTimeout),clearTimeout(this.tapTimeout),clearTimeout(this.longTapTimeout),clearTimeout(this.swipeTimeout)}},{key:"cancel",value:function(t){this.cancelAll(),this.touchCancel.dispatch(t,this.element)}},{key:"_cancelLongTap",value:function(){clearTimeout(this.longTapTimeout)}},{key:"_cancelSingleTap",value:function(){clearTimeout(this.singleTapTimeout)}},{key:"_swipeDirection",value:function(t,e,i,n){return Math.abs(t-e)>=Math.abs(i-n)?t-e>0?"Left":"Right":i-n>0?"Up":"Down"}},{key:"on",value:function(t,e){this[t]&&this[t].add(e)}},{key:"off",value:function(t,e){this[t]&&this[t].del(e)}},{key:"destroy",value:function(){return this.singleTapTimeout&&clearTimeout(this.singleTapTimeout),this.tapTimeout&&clearTimeout(this.tapTimeout),this.longTapTimeout&&clearTimeout(this.longTapTimeout),this.swipeTimeout&&clearTimeout(this.swipeTimeout),this.element.removeEventListener("touchstart",this.start),this.element.removeEventListener("touchmove",this.move),this.element.removeEventListener("touchend",this.end),this.element.removeEventListener("touchcancel",this.cancel),this.rotate.del(),this.touchStart.del(),this.multipointStart.del(),this.multipointEnd.del(),this.pinch.del(),this.swipe.del(),this.tap.del(),this.doubleTap.del(),this.longTap.del(),this.singleTap.del(),this.pressMove.del(),this.twoFingerPressMove.del(),this.touchMove.del(),this.touchEnd.del(),this.touchCancel.del(),this.preV=this.pinchStartLen=this.zoom=this.isDoubleTap=this.delta=this.last=this.now=this.tapTimeout=this.singleTapTimeout=this.longTapTimeout=this.swipeTimeout=this.x1=this.x2=this.y1=this.y2=this.preTapPosition=this.rotate=this.touchStart=this.multipointStart=this.multipointEnd=this.pinch=this.swipe=this.tap=this.doubleTap=this.longTap=this.singleTap=this.pressMove=this.touchMove=this.touchEnd=this.touchCancel=this.twoFingerPressMove=null,window.removeEventListener("scroll",this._cancelAllHandler),null}}]);function X(t){var e=function(){var t,e=document.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(void 0!==e.style[t])return i[t]}(),i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=u(t,"gslide-media")?t:t.querySelector(".gslide-media"),s=p(n,".ginner-container"),o=t.querySelector(".gslide-description");i>769&&(n=s),h(n,"greset"),m(n,"translate3d(0, 0, 0)"),c(e,{onElement:n,once:!0,withCallback:function(t,e){d(n,"greset")}}),n.style.opacity="",o&&(o.style.opacity="")}function K(t){if(t.events.hasOwnProperty("touch"))return!1;var e,i,n,s=y(),o=s.width,a=s.height,r=!1,l=null,c=null,f=null,g=!1,v=1,_=1,b=!1,w=!1,x=null,k=null,S=null,T=null,E=0,C=0,M=!1,L=!1,P={},D={},A=0,O=0,I=document.getElementById("glightbox-slider"),z=document.querySelector(".goverlay"),N=new G(I,{touchStart:function(e){if(r=!0,(u(e.targetTouches[0].target,"ginner-container")||p(e.targetTouches[0].target,".gslide-desc")||"a"==e.targetTouches[0].target.nodeName.toLowerCase())&&(r=!1),p(e.targetTouches[0].target,".gslide-inline")&&!u(e.targetTouches[0].target.parentNode,"gslide-inline")&&(r=!1),r){if(D=e.targetTouches[0],P.pageX=e.targetTouches[0].pageX,P.pageY=e.targetTouches[0].pageY,A=e.targetTouches[0].clientX,O=e.targetTouches[0].clientY,l=t.activeSlide,c=l.querySelector(".gslide-media"),n=l.querySelector(".gslide-inline"),f=null,u(c,"gslide-image")&&(f=c.querySelector("img")),(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>769&&(c=l.querySelector(".ginner-container")),d(z,"greset"),e.pageX>20&&e.pageX<window.innerWidth-20)return;e.preventDefault()}},touchMove:function(s){if(r&&(D=s.targetTouches[0],!b&&!w)){if(n&&n.offsetHeight>a){var l=P.pageX-D.pageX;if(Math.abs(l)<=13)return!1}g=!0;var h,d=s.targetTouches[0].clientX,u=s.targetTouches[0].clientY,p=A-d,v=O-u;if(Math.abs(p)>Math.abs(v)?(M=!1,L=!0):(L=!1,M=!0),e=D.pageX-P.pageX,E=100*e/o,i=D.pageY-P.pageY,C=100*i/a,M&&f&&(h=1-Math.abs(i)/a,z.style.opacity=h,t.settings.touchFollowAxis&&(E=0)),L&&(h=1-Math.abs(e)/o,c.style.opacity=h,t.settings.touchFollowAxis&&(C=0)),!f)return m(c,"translate3d(".concat(E,"%, 0, 0)"));m(c,"translate3d(".concat(E,"%, ").concat(C,"%, 0)"))}},touchEnd:function(){if(r){if(g=!1,w||b)return S=x,void(T=k);var e=Math.abs(parseInt(C)),i=Math.abs(parseInt(E));if(!(e>29&&f))return e<29&&i<25?(h(z,"greset"),z.style.opacity=1,X(c)):void 0;t.close()}},multipointEnd:function(){setTimeout((function(){b=!1}),50)},multipointStart:function(){b=!0,v=_||1},pinch:function(t){if(!f||g)return!1;b=!0,f.scaleX=f.scaleY=v*t.zoom;var e=v*t.zoom;if(w=!0,e<=1)return w=!1,e=1,T=null,S=null,x=null,k=null,void f.setAttribute("style","");e>4.5&&(e=4.5),f.style.transform="scale3d(".concat(e,", ").concat(e,", 1)"),_=e},pressMove:function(t){if(w&&!b){var e=D.pageX-P.pageX,i=D.pageY-P.pageY;S&&(e+=S),T&&(i+=T),x=e,k=i;var n="translate3d(".concat(e,"px, ").concat(i,"px, 0)");_&&(n+=" scale3d(".concat(_,", ").concat(_,", 1)")),m(f,n)}},swipe:function(e){if(!w)if(b)b=!1;else{if("Left"==e.direction){if(t.index==t.elements.length-1)return X(c);t.nextSlide()}if("Right"==e.direction){if(0==t.index)return X(c);t.prevSlide()}}}});t.events.touch=N}var Q=k(),J=null!==k()||void 0!==document.createTouch||"ontouchstart"in window||"onmsgesturechange"in window||navigator.msMaxTouchPoints,tt=document.getElementsByTagName("html")[0],et={selector:".glightbox",elements:null,skin:"clean",theme:"clean",closeButton:!0,startAt:null,autoplayVideos:!0,autofocusVideos:!0,descPosition:"bottom",width:"900px",height:"506px",videosWidth:"960px",beforeSlideChange:null,afterSlideChange:null,beforeSlideLoad:null,afterSlideLoad:null,slideInserted:null,slideRemoved:null,slideExtraAttributes:null,onOpen:null,onClose:null,loop:!1,zoomable:!0,draggable:!0,dragAutoSnap:!1,dragToleranceX:40,dragToleranceY:65,preload:!0,oneSlidePerOpen:!1,touchNavigation:!0,touchFollowAxis:!0,keyboardNavigation:!0,closeOnOutsideClick:!0,plugins:!1,plyr:{css:"https://cdn.plyr.io/3.6.12/plyr.css",js:"https://cdn.plyr.io/3.6.12/plyr.js",config:{ratio:"16:9",fullscreen:{enabled:!0,iosNative:!0},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}},openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",moreText:"See more",moreLength:60,cssEfects:{fade:{in:"fadeIn",out:"fadeOut"},zoom:{in:"zoomIn",out:"zoomOut"},slide:{in:"slideInRight",out:"slideOutLeft"},slideBack:{in:"slideInLeft",out:"slideOutRight"},none:{in:"none",out:"none"}},svg:{close:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>',prev:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>'},slideHTML:'<div class="gslide">\n    <div class="gslide-inner-content">\n        <div class="ginner-container">\n            <div class="gslide-media">\n            </div>\n            <div class="gslide-description">\n                <div class="gdesc-inner">\n                    <h4 class="gslide-title"></h4>\n                    <div class="gslide-desc"></div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>',lightboxHTML:'<div id="glightbox-body" class="glightbox-container" tabindex="-1" role="dialog" aria-hidden="false">\n    <div class="gloader visible"></div>\n    <div class="goverlay"></div>\n    <div class="gcontainer">\n    <div id="glightbox-slider" class="gslider"></div>\n    <button class="gclose gbtn" aria-label="Close" data-taborder="3">{closeSVG}</button>\n    <button class="gprev gbtn" aria-label="Previous" data-taborder="2">{prevSVG}</button>\n    <button class="gnext gbtn" aria-label="Next" data-taborder="1">{nextSVG}</button>\n</div>\n</div>'},it=i((function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,e),this.customOptions=i,this.settings=a(et,i),this.effectsClasses=this.getAnimationClasses(),this.videoPlayers={},this.apiEvents=[],this.fullElementsList=!1}),[{key:"init",value:function(){var t=this,e=this.getSelector();e&&(this.baseEvents=c("click",{onElement:e,withCallback:function(e,i){e.preventDefault(),t.open(i)}})),this.elements=this.getElements()}},{key:"open",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(0===this.elements.length)return!1;this.activeSlide=null,this.prevActiveSlideIndex=null,this.prevActiveSlide=null;var i=O(e)?e:this.settings.startAt;if(E(t)){var n=t.getAttribute("data-gallery");n&&(this.fullElementsList=this.elements,this.elements=this.getGalleryElements(this.elements,n)),P(i)&&(i=this.getElementIndex(t))<0&&(i=0)}O(i)||(i=0),this.build(),f(this.overlay,"none"===this.settings.openEffect?"none":this.settings.cssEfects.fade.in);var s=document.body,o=window.innerWidth-document.documentElement.clientWidth;if(o>0){var a=document.createElement("style");a.type="text/css",a.className="gcss-styles",a.innerText=".gscrollbar-fixer {margin-right: ".concat(o,"px}"),document.head.appendChild(a),h(s,"gscrollbar-fixer")}h(s,"glightbox-open"),h(tt,"glightbox-open"),Q&&(h(document.body,"glightbox-mobile"),this.settings.slideEffect="slide"),this.showSlide(i,!0),1===this.elements.length?(h(this.prevButton,"glightbox-button-hidden"),h(this.nextButton,"glightbox-button-hidden")):(d(this.prevButton,"glightbox-button-hidden"),d(this.nextButton,"glightbox-button-hidden")),this.lightboxOpen=!0,this.trigger("open"),S(this.settings.onOpen)&&this.settings.onOpen(),J&&this.settings.touchNavigation&&K(this),this.settings.keyboardNavigation&&z(this)}},{key:"openAt",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.open(null,t)}},{key:"showSlide",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this.loader),this.index=parseInt(e);var n=this.slidesContainer.querySelector(".current");n&&d(n,"current"),this.slideAnimateOut();var s=this.slidesContainer.querySelectorAll(".gslide")[e];if(u(s,"loaded"))this.slideAnimateIn(s,i),v(this.loader);else{g(this.loader);var o=this.elements[e],a={index:this.index,slide:s,slideNode:s,slideConfig:o.slideConfig,slideIndex:this.index,trigger:o.node,player:null};this.trigger("slide_before_load",a),o.instance.setContent(s,(function(){v(t.loader),t.resize(),t.slideAnimateIn(s,i),t.trigger("slide_after_load",a)}))}this.slideDescription=s.querySelector(".gslide-description"),this.slideDescriptionContained=this.slideDescription&&u(this.slideDescription.parentNode,"gslide-media"),this.settings.preload&&(this.preloadSlide(e+1),this.preloadSlide(e-1)),this.updateNavigationClasses(),this.activeSlide=s}},{key:"preloadSlide",value:function(t){var e=this;if(t<0||t>this.elements.length-1||P(this.elements[t]))return!1;var i=this.slidesContainer.querySelectorAll(".gslide")[t];if(u(i,"loaded"))return!1;var n=this.elements[t],s=n.type,o={index:t,slide:i,slideNode:i,slideConfig:n.slideConfig,slideIndex:t,trigger:n.node,player:null};this.trigger("slide_before_load",o),"video"===s||"external"===s?setTimeout((function(){n.instance.setContent(i,(function(){e.trigger("slide_after_load",o)}))}),200):n.instance.setContent(i,(function(){e.trigger("slide_after_load",o)}))}},{key:"prevSlide",value:function(){this.goToSlide(this.index-1)}},{key:"nextSlide",value:function(){this.goToSlide(this.index+1)}},{key:"goToSlide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.prevActiveSlide=this.activeSlide,this.prevActiveSlideIndex=this.index,!this.loop()&&(t<0||t>this.elements.length-1))return!1;t<0?t=this.elements.length-1:t>=this.elements.length&&(t=0),this.showSlide(t)}},{key:"insertSlide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;e<0&&(e=this.elements.length);var i=new Y(t,this,e),n=i.getConfig(),s=a({},n),o=i.create(),r=this.elements.length-1;s.index=e,s.node=!1,s.instance=i,s.slideConfig=n,this.elements.splice(e,0,s);var l=null,c=null;if(this.slidesContainer){if(e>r)this.slidesContainer.appendChild(o);else{var h=this.slidesContainer.querySelectorAll(".gslide")[e];this.slidesContainer.insertBefore(o,h)}(this.settings.preload&&0==this.index&&0==e||this.index-1==e||this.index+1==e)&&this.preloadSlide(e),0===this.index&&0===e&&(this.index=1),this.updateNavigationClasses(),l=this.slidesContainer.querySelectorAll(".gslide")[e],c=this.getSlidePlayerInstance(e),s.slideNode=l}this.trigger("slide_inserted",{index:e,slide:l,slideNode:l,slideConfig:n,slideIndex:e,trigger:null,player:c}),S(this.settings.slideInserted)&&this.settings.slideInserted({index:e,slide:l,player:c})}},{key:"removeSlide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(t<0||t>this.elements.length-1)return!1;var e=this.slidesContainer&&this.slidesContainer.querySelectorAll(".gslide")[t];e&&(this.getActiveSlideIndex()==t&&(t==this.elements.length-1?this.prevSlide():this.nextSlide()),e.parentNode.removeChild(e)),this.elements.splice(t,1),this.trigger("slide_removed",t),S(this.settings.slideRemoved)&&this.settings.slideRemoved(t)}},{key:"slideAnimateIn",value:function(t,e){var i=this,n=t.querySelector(".gslide-media"),s=t.querySelector(".gslide-description"),o={index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlide,slideConfig:P(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:P(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},a={index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideConfig:this.elements[this.index].slideConfig,slideIndex:this.index,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)};if(n.offsetWidth>0&&s&&(v(s),s.style.display=""),d(t,this.effectsClasses),e)f(t,this.settings.cssEfects[this.settings.openEffect].in,(function(){i.settings.autoplayVideos&&i.slidePlayerPlay(t),i.trigger("slide_changed",{prev:o,current:a}),S(i.settings.afterSlideChange)&&i.settings.afterSlideChange.apply(i,[o,a])}));else{var r=this.settings.slideEffect,l="none"!==r?this.settings.cssEfects[r].in:r;this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(l=this.settings.cssEfects.slideBack.in),f(t,l,(function(){i.settings.autoplayVideos&&i.slidePlayerPlay(t),i.trigger("slide_changed",{prev:o,current:a}),S(i.settings.afterSlideChange)&&i.settings.afterSlideChange.apply(i,[o,a])}))}setTimeout((function(){i.resize(t)}),100),h(t,"current")}},{key:"slideAnimateOut",value:function(){if(!this.prevActiveSlide)return!1;var t=this.prevActiveSlide;d(t,this.effectsClasses),h(t,"prev");var e=this.settings.slideEffect,i="none"!==e?this.settings.cssEfects[e].out:e;this.slidePlayerPause(t),this.trigger("slide_before_change",{prev:{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlideIndex,slideConfig:P(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:P(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},current:{index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideIndex:this.index,slideConfig:this.elements[this.index].slideConfig,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)}}),S(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},{index:this.index,slide:this.activeSlide,player:this.getSlidePlayerInstance(this.index)}]),this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(i=this.settings.cssEfects.slideBack.out),f(t,i,(function(){var e=t.querySelector(".ginner-container"),i=t.querySelector(".gslide-media"),n=t.querySelector(".gslide-description");e.style.transform="",i.style.transform="",d(i,"greset"),i.style.opacity="",n&&(n.style.opacity=""),d(t,"prev")}))}},{key:"getAllPlayers",value:function(){return this.videoPlayers}},{key:"getSlidePlayerInstance",value:function(t){var e="gvideo"+t,i=this.getAllPlayers();return!(!D(i,e)||!i[e])&&i[e]}},{key:"stopSlideVideo",value:function(t){if(E(t)){var e=t.querySelector(".gvideo-wrapper");e&&(t=e.getAttribute("data-index"))}console.log("stopSlideVideo is deprecated, use slidePlayerPause");var i=this.getSlidePlayerInstance(t);i&&i.playing&&i.pause()}},{key:"slidePlayerPause",value:function(t){if(E(t)){var e=t.querySelector(".gvideo-wrapper");e&&(t=e.getAttribute("data-index"))}var i=this.getSlidePlayerInstance(t);i&&i.playing&&i.pause()}},{key:"playSlideVideo",value:function(t){if(E(t)){var e=t.querySelector(".gvideo-wrapper");e&&(t=e.getAttribute("data-index"))}console.log("playSlideVideo is deprecated, use slidePlayerPlay");var i=this.getSlidePlayerInstance(t);i&&!i.playing&&i.play()}},{key:"slidePlayerPlay",value:function(t){var e;if(!Q||null!==(e=this.settings.plyr.config)&&void 0!==e&&e.muted){if(E(t)){var i=t.querySelector(".gvideo-wrapper");i&&(t=i.getAttribute("data-index"))}var n=this.getSlidePlayerInstance(t);n&&!n.playing&&(n.play(),this.settings.autofocusVideos&&n.elements.container.focus())}}},{key:"setElements",value:function(t){var e=this;this.settings.elements=!1;var i=[];t&&t.length&&r(t,(function(t,n){var s=new Y(t,e,n),o=s.getConfig(),r=a({},o);r.slideConfig=o,r.instance=s,r.index=n,i.push(r)})),this.elements=i,this.lightboxOpen&&(this.slidesContainer.innerHTML="",this.elements.length&&(r(this.elements,(function(){var t=_(e.settings.slideHTML);e.slidesContainer.appendChild(t)})),this.showSlide(0,!0)))}},{key:"getElementIndex",value:function(t){var e=!1;return r(this.elements,(function(i,n){if(D(i,"node")&&i.node==t)return e=n,!0})),e}},{key:"getElements",value:function(){var t=this,e=[];this.elements=this.elements?this.elements:[],!P(this.settings.elements)&&C(this.settings.elements)&&this.settings.elements.length&&r(this.settings.elements,(function(i,n){var s=new Y(i,t,n),o=s.getConfig(),r=a({},o);r.node=!1,r.index=n,r.instance=s,r.slideConfig=o,e.push(r)}));var i=!1;return this.getSelector()&&(i=document.querySelectorAll(this.getSelector())),i&&r(i,(function(i,n){var s=new Y(i,t,n),o=s.getConfig(),r=a({},o);r.node=i,r.index=n,r.instance=s,r.slideConfig=o,r.gallery=i.getAttribute("data-gallery"),e.push(r)})),e}},{key:"getGalleryElements",value:function(t,e){return t.filter((function(t){return t.gallery==e}))}},{key:"getSelector",value:function(){return!this.settings.elements&&(this.settings.selector&&"data-"==this.settings.selector.substring(0,5)?"*[".concat(this.settings.selector,"]"):this.settings.selector)}},{key:"getActiveSlide",value:function(){return this.slidesContainer.querySelectorAll(".gslide")[this.index]}},{key:"getActiveSlideIndex",value:function(){return this.index}},{key:"getAnimationClasses",value:function(){var t=[];for(var e in this.settings.cssEfects)if(this.settings.cssEfects.hasOwnProperty(e)){var i=this.settings.cssEfects[e];t.push("g".concat(i.in)),t.push("g".concat(i.out))}return t.join(" ")}},{key:"build",value:function(){var t=this;if(this.built)return!1;var e=document.body.childNodes,i=[];r(e,(function(t){t.parentNode==document.body&&"#"!==t.nodeName.charAt(0)&&t.hasAttribute&&!t.hasAttribute("aria-hidden")&&(i.push(t),t.setAttribute("aria-hidden","true"))}));var n=D(this.settings.svg,"next")?this.settings.svg.next:"",s=D(this.settings.svg,"prev")?this.settings.svg.prev:"",o=D(this.settings.svg,"close")?this.settings.svg.close:"",a=this.settings.lightboxHTML;a=_(a=(a=(a=a.replace(/{nextSVG}/g,n)).replace(/{prevSVG}/g,s)).replace(/{closeSVG}/g,o)),document.body.appendChild(a);var l=document.getElementById("glightbox-body");this.modal=l;var d=l.querySelector(".gclose");this.prevButton=l.querySelector(".gprev"),this.nextButton=l.querySelector(".gnext"),this.overlay=l.querySelector(".goverlay"),this.loader=l.querySelector(".gloader"),this.slidesContainer=document.getElementById("glightbox-slider"),this.bodyHiddenChildElms=i,this.events={},h(this.modal,"glightbox-"+this.settings.skin),this.settings.closeButton&&d&&(this.events.close=c("click",{onElement:d,withCallback:function(e,i){e.preventDefault(),t.close()}})),d&&!this.settings.closeButton&&d.parentNode.removeChild(d),this.nextButton&&(this.events.next=c("click",{onElement:this.nextButton,withCallback:function(e,i){e.preventDefault(),t.nextSlide()}})),this.prevButton&&(this.events.prev=c("click",{onElement:this.prevButton,withCallback:function(e,i){e.preventDefault(),t.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=c("click",{onElement:l,withCallback:function(e,i){t.preventOutsideClick||u(document.body,"glightbox-mobile")||p(e.target,".ginner-container")||p(e.target,".gbtn")||u(e.target,"gnext")||u(e.target,"gprev")||t.close()}})),r(this.elements,(function(e,i){t.slidesContainer.appendChild(e.instance.create()),e.slideNode=t.slidesContainer.querySelectorAll(".gslide")[i]})),J&&h(document.body,"glightbox-touch"),this.events.resize=c("resize",{onElement:window,withCallback:function(){t.resize()}}),this.built=!0}},{key:"resize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if((t=t||this.activeSlide)&&!u(t,"zoomed")){var e=y(),i=t.querySelector(".gvideo-wrapper"),n=t.querySelector(".gslide-image"),s=this.slideDescription,o=e.width,a=e.height;if(o<=768?h(document.body,"glightbox-mobile"):d(document.body,"glightbox-mobile"),i||n){var r=!1;if(s&&(u(s,"description-bottom")||u(s,"description-top"))&&!u(s,"gabsolute")&&(r=!0),n)if(o<=768)n.querySelector("img");else if(r){var l,c,p=s.offsetHeight,f=n.querySelector("img"),m=null===(l=this.elements[this.index])||void 0===l?void 0:l.node,g="100vh";m&&(g=null!==(c=m.getAttribute("data-height"))&&void 0!==c?c:g),f.setAttribute("style","max-height: calc(".concat(g," - ").concat(p,"px)")),s.setAttribute("style","max-width: ".concat(f.offsetWidth,"px;"))}if(i){var v=D(this.settings.plyr.config,"ratio")?this.settings.plyr.config.ratio:"";if(!v){var _=i.clientWidth,b=i.clientHeight,w=_/b;v="".concat(_/w,":").concat(b/w)}var x=v.split(":"),k=this.settings.videosWidth,S=this.settings.videosWidth,T=(S=O(k)||-1!==k.indexOf("px")?parseInt(k):-1!==k.indexOf("vw")?o*parseInt(k)/100:-1!==k.indexOf("vh")?a*parseInt(k)/100:-1!==k.indexOf("%")?o*parseInt(k)/100:parseInt(i.clientWidth))/(parseInt(x[0])/parseInt(x[1]));if(T=Math.floor(T),r&&(a-=s.offsetHeight),S>o||T>a||a<T&&o>S){var E=i.offsetWidth,C=i.offsetHeight,M=a/C,L={width:E*M,height:C*M};i.parentNode.setAttribute("style","max-width: ".concat(L.width,"px")),r&&s.setAttribute("style","max-width: ".concat(L.width,"px;"))}else i.parentNode.style.maxWidth="".concat(k),r&&s.setAttribute("style","max-width: ".concat(k,";"))}}}}},{key:"reload",value:function(){this.init()}},{key:"updateNavigationClasses",value:function(){var t=this.loop();d(this.nextButton,"disabled"),d(this.prevButton,"disabled"),0==this.index&&this.elements.length-1==0?(h(this.prevButton,"disabled"),h(this.nextButton,"disabled")):0!==this.index||t?this.index!==this.elements.length-1||t||h(this.nextButton,"disabled"):h(this.prevButton,"disabled")}},{key:"loop",value:function(){var t=D(this.settings,"loopAtEnd")?this.settings.loopAtEnd:null;return t=D(this.settings,"loop")?this.settings.loop:t}},{key:"close",value:function(){var t=this;if(!this.lightboxOpen){if(this.events){for(var e in this.events)this.events.hasOwnProperty(e)&&this.events[e].destroy();this.events=null}return!1}if(this.closing)return!1;this.closing=!0,this.slidePlayerPause(this.activeSlide),this.fullElementsList&&(this.elements=this.fullElementsList),this.bodyHiddenChildElms.length&&r(this.bodyHiddenChildElms,(function(t){t.removeAttribute("aria-hidden")})),h(this.modal,"glightbox-closing"),f(this.overlay,"none"==this.settings.openEffect?"none":this.settings.cssEfects.fade.out),f(this.activeSlide,this.settings.cssEfects[this.settings.closeEffect].out,(function(){if(t.activeSlide=null,t.prevActiveSlideIndex=null,t.prevActiveSlide=null,t.built=!1,t.events){for(var e in t.events)t.events.hasOwnProperty(e)&&t.events[e].destroy();t.events=null}var i=document.body;d(tt,"glightbox-open"),d(i,"glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"),t.modal.parentNode.removeChild(t.modal),t.trigger("close"),S(t.settings.onClose)&&t.settings.onClose();var n=document.querySelector(".gcss-styles");n&&n.parentNode.removeChild(n),t.lightboxOpen=!1,t.closing=null}))}},{key:"destroy",value:function(){this.close(),this.clearAllEvents(),this.baseEvents&&this.baseEvents.destroy()}},{key:"on",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||!S(e))throw new TypeError("Event name and callback must be defined");this.apiEvents.push({evt:t,once:i,callback:e})}},{key:"once",value:function(t,e){this.on(t,e,!0)}},{key:"trigger",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[];r(this.apiEvents,(function(e,s){var o=e.evt,a=e.once,r=e.callback;o==t&&(r(i),a&&n.push(s))})),n.length&&r(n,(function(t){return e.apiEvents.splice(t,1)}))}},{key:"clearAllEvents",value:function(){this.apiEvents.splice(0,this.apiEvents.length)}},{key:"version",value:function(){return"3.3.1"}}]);return function(){var t=new it(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return t.init(),t}}
63()),sl.exports);const al=o(ol),rl=()=>{al({selector:"[data-glightbox]"})};function ll(){document.querySelectorAll(".shapehub-read-more").forEach((t=>{var e=t.offsetHeight+50,i=t.dataset.readMoreHeight||100,n='<button class="shapehub-button shapehub-button-secondary shapehub-read-more-button"><strong>'+t.dataset.readMoreLabel+"</strong></button>",s='<button class="shapehub-button shapehub-button-secondary shapehub-read-more-button"><strong>'+t.dataset.readLessLabel+"</strong></button>";e>i&&(t.parentElement.insertAdjacentHTML("beforeend",n),t.style.overflow="hidden",t.style.height=i+"px",t.style.transition="height 0.15s ease-out",t.parentNode.querySelector("button").addEventListener("click",(function o(){t.classList.contains("expanded")?(t.classList.remove("expanded"),t.style.overflow="hidden",t.style.height=i+"px",this.remove(),t.parentElement.insertAdjacentHTML("beforeend",n),t.parentNode.querySelector("button").addEventListener("click",o)):(t.classList.add("expanded"),t.style.height=e+"px",this.remove(),t.parentElement.insertAdjacentHTML("beforeend",s),t.parentNode.querySelector("button").addEventListener("click",o))})))}))}function cl(){document.querySelectorAll(".shapehub-dates-container").forEach((t=>{let e=t.querySelector(".shapehub-dates"),i=t.querySelector("[data-date-toggle]"),n=e.scrollHeight;e.classList.contains("shapehub-active")||(e.style.height="0"),e.style.overflow="hidden",e.style.transition="height 0.3s ease-in-out",i&&i.addEventListener("click",(()=>{e.classList.toggle("shapehub-active"),"0px"===e.style.height?e.style.height=n+"px":e.style.height="0"}))}))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",rl):rl(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ll):ll(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",cl):cl(),L.Icon.Glyph=L.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41],className:"",prefix:"",glyph:"home",glyphColor:"white",glyphSize:"11px",glyphAnchor:[0,-7]},createIcon:function(){var t=document.createElement("div"),e=this.options;return e.glyph&&t.appendChild(this._createGlyph()),this._setIconStyles(t,e.className),t},_createGlyph:function(){var t,e,i=this.options;i.prefix?t="fab"===i.prefix||"fal"===i.prefix||"far"===i.prefix||"fas"===i.prefix?"fa-"+i.glyph:i.glyph.slice(0,i.prefix.length+1)===i.prefix+"-"?i.glyph:i.prefix+"-"+i.glyph:(t="",e=i.glyph);var n=L.DomUtil.create("span",i.prefix+" "+t);return n.style.fontSize=i.glyphSize,n.style.color=i.glyphColor,n.style.width=i.iconSize[0]+"px",n.style.lineHeight=i.iconSize[1]+"px",n.style.textAlign="center",n.style.marginLeft=i.glyphAnchor[0]+"px",n.style.marginTop=i.glyphAnchor[1]+"px",n.style.pointerEvents="none",n.style.display="inline-block",e&&(n.innerHTML=e),n},_setIconStyles:function(t,e){if("shadow"===e)return L.Icon.prototype._setIconStyles.call(this,t,e);var i=this.options,n=L.point(i.iconSize),s=L.point(i.iconAnchor);!s&&n&&(s=n.divideBy(2,!0)),t.className="leaflet-marker-icon leaflet-glyph-icon "+e;var o=this._getIconUrl("icon");o&&(t.style.backgroundImage="url('"+o+"')"),i.bgPos&&(t.style.backgroundPosition=-i.bgPos.x+"px "+-i.bgPos.y+"px"),i.bgSize&&(t.style.backgroundSize=i.bgSize.x+"px "+i.bgSize.y+"px"),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")}}),L.icon.glyph=function(t){return new L.Icon.Glyph(t)},L.Icon.Glyph.prototype.options.iconUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAUlSURBVFjDrZdLiBxVFIb/e289uqt6kkx6zIiIoKgLRReKuMhCcaOIAUEIiCCE4CIPggZ8kBjooPgM0TiYEUUjqBGchZqAQlyYRTA+kJiJQiJGMjN5zYzT3dP1rrr3HBeTjDGTSfc8Dvyruud89Z9z6kIJdBj31763MivsJXKuZYF6dak5++2mh7NOcsXVHq6sHbhOK/24kOJJMO4AE1vKygwZhxlKSHGKiD+RSu09vOXB43OCrHz96y6T2lsh+OmKXzFdlbLne2UopSAupBhjECcZgjDMgiiSxPhcK/nCr1sfOtcWcm/tq9uEsL4rl0vdK67pKVu2jUwTMk0wBBAzpBCQAnAtiZIlwWQwPlHPglZQAFj1Y23VwVkh92zbd59U+Kanp+p2L12mooKQ5AbcpuclS6LiKoRhxOfHzhXMcs3PtVV7Z0DufXH/LSzpSG9vr1/p6kIz0dDUrvx/IYXAsrJCkWc4e/Z0Zpgf+KX26A/TkNtrXziesY9Xq8tvWNZdVfVYg7hzwKVv3O3ZiKMWj46OTrq5fdOh1x5pSADwjdzo2nbv0u6qqkca2jCIMGcZAuqRhu8vEX7ZK2V2WgMAcXdtvyeKbPS662+osCohzMycHVwe
63niNREoShoZO5KYobpciSh23bFq7rIUgNiLFghRkBlg2v7GlpiccsCHrcryzxUk3zmsNskeYGvt/lxVH4hMWEu9xSWaQFYQ7L1B6iGZ5bBoy+zWKiHiltFHpqeIsVhWaosg1iqlgg4wAAEYEXsV3EmNppJmExMFYUxfVSuIs6E0sI5FkBBhLJzH9laQxLSjBj0WQJgSJPweDTkknvS4JGbCuxKOt7UY4lEQfNnAu9TzLxN2nUdAQTLAEw8YIlAVgAkmDCSBL75eCutSeY+GTUqqNkqUVxUbIl4qgJo4vWzecrhyQAMJldYf1MXLLl1EIsYBZgoGwpRI2zMTPtGBhYbSQAlJF9lieRzNMIriVBzPOWawvoIkYaNC0u9IcAIAHgp75NLQl8ENbPZJ6jgAU48RyFqHEuZyE+Pda/vjENAQBD5s209Y+kPJlyM4+r3lUS0AWSyVEhpHnjYu1pyO+7N4ywwPvhxHDiuwo8j1b5rkQwMZIziYHBXetPzIAAgIV8exZOSMoieI6aU5vKtgR0jqw1JtiYbZfW/R/kSN+mcWbxdtwYjn1XTd9B7cQAfNdCWB/OhBR7jvWv/3tWCAAoO3ktjyZZJ0HHbsq2AooERVQXzPKly2vOgPz29jNNBr+e1IcSz5YAM4hmFzPDtyWS+lDK4N2DfU+dbgsBAFHyd+oszE3agt/GjWcrUBEjj5sQBb96pXpXhAzueDJi4u1p41TsuQpCiFln4bkKeXMoJeadg++tG+sYAgBBXOo3RRrruAnfkWDmGfIdCeQhiiQgQbxjtlqzQk59vCZlNluL5lDiORLyMjcA4DsKeXM4AfDKxa97ThAAqPaMfaR1Nq6jOiqOAhOm5TsKJg1QZGGRedY7V6tzVcjBWk1D0JZ8cigt2RJSimkXnqOgW8MxQLUTb6wN5g0BgGPV0c9BekTH41xx5YXrQ8FkTRgdpxU7ea9djbYQ1GokmJ43wUhWtgRcS04tQjAcw9CWw29tThYOAXD03XVfMps/TTTOy30blDZgiqxFK6p7OsnvCDJ1UD9LyUjORoPDkUQyPfdHbXW+qJCjfRsOwOAoNY4z6Xz01rHq3k5zO4ZMHTabYSIhJD87MLB64f8Ys8WdG/tfBljMJedfwY+s/2P4Pv8AAAAASUVORK5CYII=";var hl,dl={exports:{}};hl||(hl=1,function(t){var e
vendor: 13,084 bytes, line 63
63={ar:{touch:"استخدم إصبعين لتحريك الخريطة",scroll:"‏استخدم ctrl + scroll لتصغير/تكبير الخريطة",scrollMac:"يمكنك استخدام ⌘ + التمرير لتكبير/تصغير الخريطة"},bg:{touch:"Използвайте два пръста, за да преместите картата",scroll:"Задръжте бутона Ctrl натиснат, докато превъртате, за да промените мащаба на картата",scrollMac:"Задръжте бутона ⌘ натиснат, докато превъртате, за да промените мащаба на картата"},bn:{touch:"মানচিত্রটিকে সরাতে দুটি আঙ্গুল ব্যবহার করুন",scroll:"ম্যাপ জুম করতে ctrl + scroll ব্যবহার করুন",scrollMac:"ম্যাপে জুম করতে ⌘ বোতাম টিপে স্ক্রল করুন"},ca:{touch:"Fes servir dos dits per moure el mapa",scroll:"Prem la tecla Control mentre et desplaces per apropar i allunyar el mapa",scrollMac:"Prem la tecla ⌘ mentre et desplaces per apropar i allunyar el mapa"},cs:{touch:"K posunutí mapy použijte dva prsty",scroll:"Velikost zobrazení mapy změňte podržením klávesy Ctrl a posouváním kolečka myši",scrollMac:"Velikost zobrazení mapy změníte podržením klávesy ⌘ a posunutím kolečka myši / touchpadu"},da:{touch:"Brug to fingre til at flytte kortet",scroll:"Brug ctrl + rullefunktionen til at zoome ind og ud på kortet",scrollMac:"Brug ⌘ + rullefunktionen til at zoome ind og ud på kortet"},de:{touch:"Verschieben der Karte mit zwei Fingern",scroll:"Verwende Strg+Scrollen zum Zoomen der Karte",scrollMac:"⌘"},el:{touch:"Χρησιμοποιήστε δύο δάχτυλα για μετακίνηση στον χάρτη",scroll:"Χρησιμοποιήστε το πλήκτρο Ctrl και κύλιση, για να μεγεθύνετε τον χάρτη",scrollMac:"Χρησιμοποιήστε το πλήκτρο ⌘ + κύλιση για εστίαση στον χάρτη"},en:{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-AU":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-GB":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},es:{touch:"Para mover el mapa, utiliza dos dedos",scroll:"Mantén pulsada la tecla Ctrl mientras te desplazas para acercar o alejar el mapa",scrollMac:"Mantén pulsada la tecla ⌘ mientras te desplazas para acercar o alejar el mapa"},eu:{touch:"Erabili bi hatz mapa mugitzeko",scroll:"Mapan zooma aplikatzeko, sakatu Ktrl eta egin gora edo behera",scrollMac:"Eduki sakatuta ⌘ eta egin gora eta behera mapa handitu eta txikitzeko"},fa:{touch:"برای حرکت دادن نقشه از دو انگشت استفاده کنید.",scroll:"‏برای بزرگ‌نمایی نقشه از ctrl + scroll استفاده کنید",scrollMac:"برای بزرگ‌نمایی نقشه، از ⌘ + پیمایش استفاده کنید."},fi:{touch:"Siirrä karttaa kahdella sormella.",scroll:"Zoomaa karttaa painamalla Ctrl-painiketta ja vierittämällä.",scrollMac:"Zoomaa karttaa pitämällä painike ⌘ painettuna ja vierittämällä."},fil:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},fr:{touch:"Utilisez deux doigts pour déplacer la carte",scroll:"Vous pouvez zoomer sur la carte à l'aide de CTRL+Molette de défilement",scrollMac:"Vous pouvez zoomer sur la carte à l'aide de ⌘+Molette de défilement"},gl:{touch:"Utiliza dous dedos para mover o mapa",scroll:"Preme Ctrl mentres te desprazas para ampliar o mapa",scrollMac:"Preme ⌘ e desprázate para ampliar o mapa"},gu:{touch:"નકશો ખસેડવા બે આંગળીઓનો ઉપયોગ કરો",scroll:"નકશાને ઝૂમ કરવા માટે ctrl + સ્ક્રોલનો ઉપયોગ કરો",scrollMac:"નકશાને ઝૂમ કરવા ⌘ + સ્ક્રોલનો ઉપયોગ કરો"},hi:{touch:"मैप एक जगह से दूसरी जगह ले जाने के लिए दो उंगलियों का इस्तेमाल करें",scroll:"मैप को ज़ूम करने के लिए ctrl + स्क्रोल का उपयोग करें",scrollMac:"मैप को ज़ूम करने के लिए ⌘ + स्क्रोल का उपयोग करें"},hr:{touch:"Pomičite kartu pomoću dva prsta",scroll:"Upotrijebite Ctrl i klizač miša da biste zumirali kartu",scrollMac:"Upotrijebite gumb ⌘ dok se pomičete za zumiranje karte"},hu:{touch:"Két ujjal mozgassa a térképet",scroll:"A térkép a ctrl + görgetés használatával nagyítható",scrollMac:"A térkép a ⌘ + görgetés használatával nagyítható"},id:{touch:"Gunakan dua jari untuk menggerakkan peta",scroll:"Gunakan ctrl + scroll untuk memperbesar atau memperkecil peta",scrollMac:"Gunakan ⌘ + scroll untuk memperbesar atau memperkecil peta"},it:{touch:"Utilizza due dita per spostare la mappa",scroll:"Utilizza CTRL + scorrimento per eseguire lo zoom della mappa",scrollMac:"Utilizza ⌘ + scorrimento per eseguire lo zoom della mappa"},iw:{touch:"הזז את המפה באמצעות שתי אצבעות",scroll:"‏אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ctrl וגלילה",scrollMac:"אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ⌘ וגלילה"},ja:{touch:"地図を移動させるには指 2 本で操作します",scroll:"地図をズームするには、Ctrl キーを押しながらスクロールしてください",scrollMac:"地図をズームするには、⌘ キーを押しながらスクロールしてください"},kn:{touch:"Use two fingers to move the map",scroll:"Use Ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},ko:{touch:"지도를 움직이려면 두 손가락을 사용하세요.",scroll:"지도를 확대/축소하려면 Ctrl을 누른 채 스크롤하세요.",scrollMac:"지도를 확대하려면 ⌘ + 스크롤 사용"},lt:{touch:"Perkelkite žemėlapį dviem pirštais",scroll:"Slinkite nuspaudę klavišą „Ctrl“, kad pakeistumėte žemėlapio mastelį",scrollMac:"Paspauskite klavišą ⌘ ir slinkite, kad priartintumėte žemėlapį"},lv:{touch:"Lai pārvietotu karti, bīdiet to ar diviem pirkstiem",scroll:"Kartes tālummaiņai izmantojiet ctrl + ritināšanu",scrollMac:"Lai veiktu kartes tālummaiņu, izmantojiet ⌘ + ritināšanu"},ml:{touch:"മാപ്പ് നീക്കാൻ രണ്ട് വിരലുകൾ ഉപയോഗിക്കുക",scroll:"കൺട്രോൾ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക",scrollMac:"⌘ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക"},mr:{touch:"नकाशा हलविण्यासाठी दोन बोटे वापरा",scroll:"नकाशा झूम करण्यासाठी ctrl + scroll वापरा",scrollMac:"नकाशावर झूम करण्यासाठी ⌘ + स्क्रोल वापरा"},nl:{touch:"Gebruik twee vingers om de kaart te verplaatsen",scroll:"Gebruik Ctrl + scrollen om in- en uit te zoomen op de kaart",scrollMac:"Gebruik ⌘ + scrollen om in en uit te zoomen op de kaart"},no:{touch:"Bruk to fingre for å flytte kartet",scroll:"Hold ctrl-tasten inne og rull for å zoome på kartet",scrollMac:"Hold inne ⌘-tasten og rull for å zoome på kartet"},pl:{touch:"Przesuń mapę dwoma palcami",scroll:"Naciśnij CTRL i przewiń, by przybliżyć mapę",scrollMac:"Naciśnij ⌘ i przewiń, by przybliżyć mapę"},pt:{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-BR":{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-PT":{touch:"Utilize dois dedos para mover o mapa",scroll:"Utilizar ctrl + deslocar para aumentar/diminuir zoom do mapa",scrollMac:"Utilize ⌘ + deslocar para aumentar/diminuir o zoom do mapa"},ro:{touch:"Folosiți două degete pentru a deplasa harta",scroll:"Apăsați tasta ctrl și derulați simultan pentru a mări harta",scrollMac:"Folosiți ⌘ și derulați pentru a mări/micșora harta"},ru:{touch:"Чтобы переместить карту, проведите по ней двумя пальцами",scroll:"Чтобы изменить масштаб, прокручивайте карту, удерживая клавишу Ctrl.",scrollMac:"Чтобы изменить масштаб, нажмите ⌘ + прокрутка"},sk:{touch:"Mapu môžete posunúť dvoma prstami",scroll:"Ak chcete priblížiť mapu, stlačte kláves ctrl a posúvajte",scrollMac:"Ak chcete priblížiť mapu, stlačte kláves ⌘ a posúvajte kolieskom myši"},sl:{touch:"Premaknite zemljevid z dvema prstoma",scroll:"Zemljevid povečate tako, da držite tipko Ctrl in vrtite kolesce na miški",scrollMac:"Uporabite ⌘ + funkcijo pomika, da povečate ali pomanjšate zemljevid"},sr:{touch:"Мапу померајте помоћу два прста",scroll:"Притисните ctrl тастер док померате да бисте зумирали мапу",scrollMac:"Притисните тастер ⌘ док померате да бисте зумирали мапу"},sv:{touch:"Använd två fingrar för att flytta kartan",scroll:"Använd ctrl + rulla för att zooma kartan",scrollMac:"Använd ⌘ + rulla för att zooma på kartan"},ta:{touch:"மேப்பை நகர்த்த இரண்டு விரல்களைப் பயன்படுத்தவும்",scroll:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ctrl பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்",scrollMac:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ⌘ பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்"},te:{touch:"మ్యాప్‌ని తరలించడం కోసం రెండు వేళ్లను ఉపయోగించండి",scroll:"మ్యాప్‌ని జూమ్ చేయడానికి ctrl బటన్‌ను నొక్కి ఉంచి, స్క్రోల్ చేయండి",scrollMac:"మ్యాప్ జూమ్ చేయాలంటే ⌘ + స్క్రోల్ ఉపయోగించండి"},th:{touch:"ใช้ 2 นิ้วเพื่อเลื่อนแผนที่",scroll:"กด Ctrl ค้างไว้ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่",scrollMac:"กด ⌘ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่"},tl:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},tr:{touch:"Haritada gezinmek için iki parmağınızı kullanın",scroll:"Haritayı yakınlaştırmak için ctrl + kaydırma kombinasyonunu kullanın",scrollMac:"Haritayı yakınlaştırmak için ⌘ tuşuna basıp ekranı kaydırın"},uk:{touch:"Переміщуйте карту двома пальцями",scroll:"Щоб змінювати масштаб карти, прокручуйте коліщатко миші, утримуючи клавішу Ctrl",scrollMac:"Щоб змінити масштаб карти, використовуйте ⌘ + прокручування"},vi:{touch:"Sử dụng hai ngón tay để di chuyển bản đồ",scroll:"Sử dụng ctrl + cuộn để thu phóng bản đồ",scrollMac:"Sử dụng ⌘ + cuộn để thu phóng bản đồ"},"zh-CN":{touch:"使用双指移动地图",scroll:"按住 Ctrl 并滚动鼠标滚轮才可缩放地图",scrollMac:"按住 ⌘ 并滚动鼠标滚轮才可缩放地图"},"zh-TW":{touch:"同時以兩指移動地圖",scroll:"按住 ctrl 鍵加上捲動滑鼠可以縮放地圖",scrollMac:"按 ⌘ 加上滾動捲軸可以縮放地圖"}};
vendor: 4,322 bytes, line 63
63L.Map.mergeOptions({gestureHandlingOptions:{text:{},duration:1e3}});var i=!1,n=L.Handler.extend({addHooks:function(){this._handleTouch=this._handleTouch.bind(this),this._setupPluginOptions(),this._setLanguageContent(),this._disableInteractions(),this._map._container.addEventListener("touchstart",this._handleTouch),this._map._container.addEventListener("touchmove",this._handleTouch),this._map._container.addEventListener("touchend",this._handleTouch),this._map._container.addEventListener("touchcancel",this._handleTouch),this._map._container.addEventListener("click",this._handleTouch),L.DomEvent.on(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.on(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.on(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.on(this._map,"movestart",this._handleDragging,this),L.DomEvent.on(this._map,"move",this._handleDragging,this),L.DomEvent.on(this._map,"moveend",this._handleDragging,this)},removeHooks:function(){this._enableInteractions(),this._map._container.removeEventListener("touchstart",this._handleTouch),this._map._container.removeEventListener("touchmove",this._handleTouch),this._map._container.removeEventListener("touchend",this._handleTouch),this._map._container.removeEventListener("touchcancel",this._handleTouch),this._map._container.removeEventListener("click",this._handleTouch),L.DomEvent.off(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.off(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.off(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.off(this._map,"movestart",this._handleDragging,this),L.DomEvent.off(this._map,"move",this._handleDragging,this),L.DomEvent.off(this._map,"moveend",this._handleDragging,this)},_handleDragging:function(t){"movestart"==t.type||"move"==t.type?i=!0:"moveend"==t.type&&(i=!1)},_disableInteractions:function(){this._map.dragging.disable(),this._map.scrollWheelZoom.disable(),this._map.tap&&this._map.tap.disable()},_enableInteractions:function(){this._map.dragging.enable(),this._map.scrollWheelZoom.enable(),this._map.tap&&this._map.tap.enable()},_setupPluginOptions:function(){this._map.options.gestureHandlingText&&(this._map.options.gestureHandlingOptions.text=this._map.options.gestureHandlingText)},_setLanguageContent:function(){var t;if(this._map.options.gestureHandlingOptions&&this._map.options.gestureHandlingOptions.text&&this._map.options.gestureHandlingOptions.text.touch&&this._map.options.gestureHandlingOptions.text.scroll&&this._map.options.gestureHandlingOptions.text.scrollMac)t=this._map.options.gestureHandlingOptions.text;else{var i=this._getUserLanguage();i||(i="en"),e[i]&&(t=e[i]),t||-1===i.indexOf("-")||(i=i.split("-")[0],t=e[i]),t||(t=e[i="en"])}var n=!1;0<=navigator.platform.toUpperCase().indexOf("MAC")&&(n=!0);var s=t.scroll;n&&(s=t.scrollMac),this._map._container.setAttribute("data-gesture-handling-touch-content",t.touch),this._map._container.setAttribute("data-gesture-handling-scroll-content",s)},_getUserLanguage:function(){return navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage},_handleTouch:function(t){for(var e=["leaflet-control-minimap","leaflet-interactive","leaflet-popup-content","leaflet-popup-content-wrapper","leaflet-popup-close-button","leaflet-control-zoom-in","leaflet-control-zoom-out"],i=!1,n=0;n<e.length;n++)L.DomUtil.hasClass(t.target,e[n])&&(i=!0);i?L.DomUtil.hasClass(t.target,"leaflet-interactive")&&"touchmove"===t.type&&1===t.touches.length?(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-touch-warning"),this._disableInteractions()):L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning"):"touchmove"===t.type||"touchstart"===t.type?1===t.touches.length?(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-touch-warning"),this._disableInteractions()):(t.preventDefault(),this._enableInteractions(),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning")):L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning")},_isScrolling:!1,_handleScroll:function(t){t.metaKey||t.ctrlKey?(t.preventDefault(),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-scroll-warning"),this._map.scrollWheelZoom.enable()):(L.Dom
63Util.addClass(this._map._container,"leaflet-gesture-handling-scroll-warning"),this._map.scrollWheelZoom.disable(),clearTimeout(this._isScrolling),this._isScrolling=setTimeout((function(){for(var t=document.getElementsByClassName("leaflet-gesture-handling-scroll-warning"),e=0;e<t.length;e++)L.DomUtil.removeClass(t[e],"leaflet-gesture-handling-scroll-warning")}),this._map.options.gestureHandlingOptions.duration))},_handleMouseOver:function(t){this._enableInteractions()},_handleMouseOut:function(t){i||this._disableInteractions()}});L.Map.addInitHook("addHandler","gestureHandling",n),t.GestureHandling=n,t.default=n,Object.defineProperty(t,"__esModule",{value:!0})}(dl.exports)),c.Control.Closer=c.Control.extend({onAdd:function(t){return this.options.el},onRemove:function(t){}}),c.control.closer=function(t){return new c.Control.Closer(t)};const ul="https://map.shapefruit.de/styles/klokantech-basic/{z}/{x}/{y}.png";document.addEventListener("DOMContentLoaded",(function(){const t=document.body;document.querySelectorAll("[rel=shapehub-filter-control]").forEach((function(e){e.style.pointer="cursor";const i=document.querySelector(e.dataset.for);i?function(i){const n=i.querySelector("[rel=shapehub-filter-closer]");n&&n.addEventListener("click",(function(){t.classList.remove("shapehub-filter-visible"),i.classList.remove("active")})),e.addEventListener("click",(function(){t.classList.add("shapehub-filter-visible"),i.classList.add("active")}));const s=i.querySelector(".handicap-filter"),o=i.querySelector(".handicap-filter-input");if(s&&o){const t=s.querySelectorAll("[rel=accessibility-certificate]"),e={};t.forEach((function(t){t.value.split(",").map((function(i){e[i]=t}))})),o.value.split(",").map((function(t){e[t]&&(e[t].checked="checked")})),t.forEach((function(t){t.addEventListener("click",(function(){let t=[];s.querySelectorAll("[rel=accessibility-certificate]:checked").forEach((function(e){t.push(e.value)})),o.value=t.join(",")}))}))}$(window).width()>768&&"1"===i.dataset.openState&&e.click()}(i):e.style.display="none"})),document.querySelectorAll("[rel=shapehub-map-control]").forEach((function(e){const i=document.querySelector(e.dataset.for);let n=!1;const s=i.querySelector("[rel=shapehub-map-closer]");s&&s.addEventListener("click",(function(){t.classList.remove("shapehub-map-visible"),i.classList.remove("active")})),e.addEventListener("click",(function(){t.classList.add("shapehub-map-visible"),i.classList.add("active"),n||function(e,i){const o=e.querySelector(e.dataset.for);var a=c.map(o,{gestureHandling:!0});c.tileLayer(ul,{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',maxZoom:16}).addTo(a),s&&c.control.closer({position:"topright",el:s}).addTo(a),a.setView([50,7],10);for(var r=[],l=o.dataset.pin,h=0;h<i.length;h++){var d=i[h];if(d.longitude&&d.latitude){var u=d.longitude,p=d.latitude,f=d.title,m=new c.LatLng(p,u),g={prefix:"",cssClass:"sans-serif",glyph:d.number};l&&(g.iconUrl=l);var v=new c.Marker(m,{icon:c.icon.glyph(g)});v.addEventListener("click",(function(t){document.getElementById("shapehub-item-"+t.target.options.icon.options.glyph).scrollIntoView({behavior:"smooth"})})),a.addLayer(v),v.bindPopup(f).on("click",(function(){window.matchMedia("(max-width: 575px)").matches&&(t.classList.remove("shapehub-map-visible"),e.classList.remove("active"))})),r.push(m)}}var _=new c.LatLngBounds(r);a.fitBounds(_,{padding:[50,50]}),n=!0}(i,window[i.dataset.items])})),"1"===i.dataset.openState&&e.click()}))})),document.addEventListener("DOMContentLoaded",(function(t){const e=document.getElementById("shapehub-single-map");if(e){const t=parseFloat(e.dataset.latitude),a=parseFloat(e.dataset.longitude),r=parseInt(e.dataset.zoom)||13,l=(e.dataset.geometry||"").split(/\s/),h=e.dataset.label,d=e.dataset.icon,u=e.dataset.color||"red";if(t&&a){var i=c.map("shapehub-single-map",{gestureHandling:!0,center:[t,a],zoom:r});c.tileLayer(ul,{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',maxZoom:16}).addTo(i);var n=h,s=new c.LatLng(t,a),o=new c.Marker(s,{icon:c.icon({iconUrl:d,iconSize:[26,34],iconAnchor:[13,34]})});if(i.addLayer(o),o.bindPopup(n),l.length>1){const t=l.map((function(t){let e=t.split(/,/);return[parseFloat(e[1]),parseFloat(e[0])]}));c.polyline(t,{color:"white",weight:10}).addTo(i),c.polyline(t,{color:u,weight:5}).addTo(i)}}}}));var pl=Object.defineProperty,fl=(t,e,i)=>((t,e,i)=>e in t?pl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i)(t,"symbol"!=typeof e?e+"":e,i),ml=typeof window<"u"&&void 0!==window.multipleSelect?window.multipleSelect:{locales:{}},gl={formatSelectAll:()=>"[Select all]",formatAllSelected:()=>"All selected",formatCountSelected:(t,e)=>`${t} of ${e} selected`,formatNoMatchesFound:()=>"No matches found",formatOkButton:()=>"OK",formatLazyLoading:()=>"Loading..."};ml.locales["en-US"]=gl;var vl=ml.locales,_l=()=>!1,yl={name:"",placeholder:"",classes:"",classPrefix:"",data:void 0,locale:void 0,selectAll:!0,single:void 0,singleRadio:!1,multiple:!1,hideOptgroupCheckboxes:!1,multipleWidth:80,width:void 0,dropWidth:void 0,maxHeight:250,maxHeightUnit:"px",position:"bottom",displayValues:!1,displayTitle:!1,displayDelimiter:", ",minimumCountSelected:3,ellipsis:!1,isOpen:!1,keepOpen:!1,openOnHover:!1,container:null,filter:!1,filterGroup:!1,filterPlaceholder:"",filterAcceptO
63nEnter:!1,filterByDataLength:void 0,customFilter(t){let{text:e,label:i,search:n}=t;return(i||e||"").includes(n)},showClear:!1,autoAdjustDropHeight:!1,autoAdjustDropPosition:!1,autoAdjustDropWidthByTextSize:!1,adjustedHeightPadding:10,useSelectOptionLabel:!1,useSelectOptionLabelToHtml:!1,navigationHighlight:!0,infiniteScroll:!1,virtualScroll:!0,cssStyler:()=>null,textTemplate:t=>t.innerHTML.trim(),labelTemplate:t=>t.label,onBeforeOpen:_l,onChange:_l,onOpen:_l,onClose:_l,onCheckAll:_l,onUncheckAll:_l,onFocus:_l,onBlur:_l,onOptgroupClick:_l,onBeforeClick:()=>!0,onClick:_l,onFilter:_l,onFilterClear:_l,onClear:_l,onAfterCreate:_l,onDestroy:_l,onAfterDestroy:_l,onDestroyed:_l};Object.assign(yl,vl["en-US"]);var bl={BLOCK_ROWS:50,CLUSTER_BLOCKS:4,DEFAULTS:yl,METHODS:["init","getOptions","refreshOptions","getSelects","setSelects","enable","disable","open","close","check","uncheck","checkAll","uncheckAll","checkInvert","focus","blur","refresh","destroy"]},wl=class{constructor(t){fl(this,"_distinctEvent"),fl(this,"_boundedEvents",[]),this._distinctEvent=t?.distinctEvent??!1}get boundedEvents(){return this._boundedEvents}dispose(){this.unbindAll(),this._boundedEvents=[]}bind(t,e,i,n,s=""){let o=Array.isArray(e)?e:[e];"function"==typeof t?.forEach?t.forEach((t=>this.bindElementEvents(t,o,i,n,s))):this.bindElementEvents(t,o,i,n,s)}hasBinding(t,e){return this._boundedEvents.some((i=>i.element===t&&(!e||i.eventName===e)))}unbind(t,e,i){if(t){let n=Array.isArray(t)?t:[t],s=Array.isArray(e)?e:[e||""];for(let t of n){i||(i=this._boundedEvents.find((i=>{if(i.element===t&&(!e||i.eventName===e))return i.listener})));for(let e of s)t?.removeEventListener?.(e,i)}}}unbindAll(t){if(t){let e=Array.isArray(t)?t:[t];for(let t=this._boundedEvents.length-1;t>=0;--t){let i=this._boundedEvents[t];if(e.some((t=>t===i.groupName))){let{element:e,eventName:n,listener:s}=i;this.unbind(e,n,s),this._boundedEvents.splice(t,1)}}}else for(;this._boundedEvents.length>0;){let{element:t,eventName:e,listener:i}=this._boundedEvents.pop();this.unbind(t,e,i)}}bindElementEvents(t,e,i,n,s=""){for(let o of e)(!this._distinctEvent||this._distinctEvent&&!this.hasBinding(t,o))&&(t.addEventListener(o,i,n),this._boundedEvents.push({element:t,eventName:o,listener:i,groupName:s}))}};function xl(t){return"object"!=typeof t||null===t?t:Array.isArray(t)?t.map(xl):"function"==typeof t?t:Object.fromEntries(Object.entries(t).map((([t,e])=>[t,xl(e)])))}function kl(t){return null!=t&&""!==t}function Sl(t,e,i){if(Array.isArray(t))for(let n of t){if(n[e]===i||n[e]===""+ +n[e]&&+n[e]===i)return n;if("optgroup"===n.type)for(let t of n.children)if(t&&(t[e]===i||t[e]===""+ +t[e]&&+t[e]===i))return t}}function Tl(t){return Object.keys(t).forEach((e=>kl(t[e])?"":delete t[e])),t}function El(t,e){if("string"!=typeof t)return t;if("function"==typeof e)return e(t);if("function"==typeof t.normalize)return t.normalize("NFD").replace(/[\u0300-\u036F]/g,"");throw new Error("[Multiple-Select-Vanilla] `normalize()` function is not defined, you can optionally provide a custom parser via the `diacriticParser` option.")}function Cl(t){let{innerHeight:e=0,innerWidth:i=0}=window,{top:n,left:s}={left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0},{top:o=0,left:a=0}=Ol(t)||{};return{top:o-n,bottom:e-(o-n),left:a-s,right:i-(a-s)}}function Ml(t=""){return t.split(" ").filter((t=>t))}function Ll(t,e,i){let n=document.createElement(t);return e&&Object.keys(e).forEach((t=>{let i=e[t];"object"==typeof i?Object.assign(n[t],i):n[t]=e[t]})),i?.appendChild(n),n}function Pl(t,e,i){let n=t.props?.innerHTML?function(t,e){let{[e]:i,...n}=t;return n}(t.props,"innerHTML"):t.props,s=Ll(t.tagName,function(t,e){return"object"==typeof t?Object.fromEntries(e?Object.entries(t).filter((([t,i])=>!kl(i)&&!e.includes(t)||kl(i))):Object.entries(t).filter((([t,e])=>kl(e)))):t}(n,["className","title","style"]),e);if(t.props.innerHTML&&(s.innerHTML=t.props.innerHTML),t.attrs)for(let e of Object.keys(t.attrs))s.setAttribute(e,t.attrs[e]);if(t.children)for(let e of t.children)Pl(e,s);return e?.appendChild(s),s}function Dl(t){return t.hasOwnProperty("tagName")?Pl(t):document.createElement("li")}function Al(t){for(;t?.firstChild;)t.lastChild&&t.removeChild(t.lastChild);return t}function Ol(t){if(t){let{top:e,left:i,bottom:n,right:s}=t.getBoundingClientRect();return{top:e+window.pageYOffset,left:i+window.pageXOffset,bottom:n,right:s}}}function Il(t,e,i){if(!t)return 0;let n=Number.parseFloat(t.style[i]);if(!n||Number.isNaN(n)){let s="height"===i?"Height":"Width";switch(e){case"outer":n=t[`offset${s}`];break;case"scroll":n=t[`scroll${s}`];break;default:n=t[`client${s}`]}n=t.getBoundingClientRect()[i]}if(!n||Number.isNaN(n)){let e=t.style.display,s=t.style.position;t.style.display="block",t.style.position="absolute",n=zl(t,i),t.style.display=e,t.style.position=s}return n||0}function zl(t,e){let i=window.getComputedStyle(t)[e],n=Number.parseFloat(i);return Number.isNaN(n)&&(n=0),n}function Nl(t,e){let i=null,n=t?.parentElement;for(;n;){let[t,s,o,a]=e.match(/^([a-z]*)([#.]{1})([a-z-]+)$/i)||[];if(o&&a)for(let t of a.replace(o,"").split(" "))n.classList.contains(t)&&(s?n?.tagName.toLowerCase()===s&&(i=n):i=n);n=n.parentElement}return i}function $l(t,e){t?.style&&(t.style.display="none"===t.style.display&&!1!==e||!0===e?"block":"none")}
63var Bl=class{constructor(t){fl(this,"clusterRows"),fl(this,"cache"),fl(this,"scrollEl"),fl(this,"blockHeight"),fl(this,"clusterHeight"),fl(this,"contentEl"),fl(this,"parentEl"),fl(this,"itemHeight"),fl(this,"lastCluster"),fl(this,"scrollTop"),fl(this,"dataStart"),fl(this,"dataEnd"),fl(this,"rows"),fl(this,"destroy"),fl(this,"callback"),fl(this,"sanitizer"),this.rows=t.rows,this.scrollEl=t.scrollEl,this.contentEl=t.contentEl,this.parentEl=t.contentEl?.parentElement,this.callback=t.callback,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;let e=()=>{this.lastCluster!==(this.lastCluster=this.getNum())&&(this.initDOM(this.rows),this.callback())};this.scrollEl.addEventListener("scroll",e,!1),this.destroy=()=>{this.scrollEl.removeEventListener("scroll",e,!1),Al(this.contentEl)}}reset(t){this.lastCluster=0,this.cache={},Al(this.contentEl),this.initDOM(t)}initDOM(t){if(typeof this.clusterHeight>"u"){this.cache.scrollTop=this.scrollEl.scrollTop;let e=Dl(t[0]);this.contentEl.appendChild(e),this.contentEl.appendChild(e),this.contentEl.appendChild(e),this.cache.data=[t[0]],this.getRowsHeight()}let e=this.initData(t,this.getNum()),i=this.checkChanges("data",e.rows),n=this.checkChanges("top",e.topOffset),s=this.checkChanges("bottom",e.bottomOffset);Al(this.contentEl),i&&n?(e.topOffset&&this.contentEl.appendChild(this.getExtra("top",e.topOffset)),e.rows.forEach((t=>this.contentEl.appendChild(Dl(t)))),e.bottomOffset&&this.contentEl.appendChild(this.getExtra("bottom",e.bottomOffset))):s&&this.contentEl.lastChild&&(this.contentEl.lastChild.style.height=`${e.bottomOffset}px`)}getRowsHeight(){if(typeof this.itemHeight>"u"){let t=this.parentEl?.style.display||"";this.parentEl&&(""===t||"none"===t)&&(this.parentEl.style.display="block");let e=this.contentEl.children,i=e[Math.floor(e.length/2)];this.itemHeight=i.offsetHeight,this.parentEl&&(this.parentEl.style.display=t)}this.blockHeight=this.itemHeight*bl.BLOCK_ROWS,this.clusterRows=bl.BLOCK_ROWS*bl.CLUSTER_BLOCKS,this.clusterHeight=this.blockHeight*bl.CLUSTER_BLOCKS}getNum(){this.scrollTop=this.scrollEl.scrollTop;let t=(this.clusterHeight||0)-(this.blockHeight||0);return t&&Math.floor(this.scrollTop/t)||0}initData(t,e){if(t.length<bl.BLOCK_ROWS)return{topOffset:0,bottomOffset:0,rowsAbove:0,rows:t};let i=Math.max((this.clusterRows-bl.BLOCK_ROWS)*e,0),n=i+this.clusterRows,s=Math.max(i*this.itemHeight,0),o=Math.max((t.length-n)*this.itemHeight,0),a=[],r=i;s<1&&r++;for(let e=i;e<n;e++)t[e]&&a.push(t[e]);return this.dataStart=i,this.dataEnd=n,{topOffset:s,bottomOffset:o,rowsAbove:r,rows:a}}checkChanges(t,e){let i=e!==this.cache[t];return this.cache[t]=e,i}getExtra(t,e){let i=Ll("li",{className:`virtual-scroll-${t}`});return e&&(i.style.height=`${e}px`),i}},Rl=".ms-select-all, ul li[data-key]",Hl=class{constructor(t,e){this.elm=t,fl(this,"_bindEventService"),fl(this,"isAllSelected",!1),fl(this,"isPartiallyAllSelected",!1),fl(this,"fromHtml",!1),fl(this,"choiceElm"),fl(this,"selectClearElm"),fl(this,"closeElm"),fl(this,"clearSearchIconElm"),fl(this,"filterText",""),fl(this,"updateData",[]),fl(this,"data",[]),fl(this,"dataTotal"),fl(this,"dropElm"),fl(this,"okButtonElm"),fl(this,"filterParentElm"),fl(this,"lastFocusedItemKey",""),fl(this,"lastMouseOverPosition",""),fl(this,"ulElm"),fl(this,"parentElm"),fl(this,"labelElm"),fl(this,"selectAllParentElm"),fl(this,"selectAllElm"),fl(this,"searchInputElm"),fl(this,"selectGroupElms"),fl(this,"selectCheckboxElms"),fl(this,"noResultsElm"),fl(this,"options"),fl(this,"selectAllName",""),fl(this,"selectGroupName",""),fl(this,"selectItemName",""),fl(this,"scrolledByMouse",!1),fl(this,"openDelayTimer"),fl(this,"updateDataStart"),fl(this,"updateDataEnd"),fl(this,"virtualScroll"),fl(this,"_currentHighlightIndex",-1),fl(this,"_currentSelectedElm"),fl(this,"_isLazyLoaded",!1),fl(this,"isMoveUpRecalcRequired",!1),fl(this,"locales",{}),this.options=Object.assign({},bl.DEFAULTS,this.elm.dataset,e),this._bindEventService=new wl({distinctEvent:!0})}get isRenderAsHtml(){return this.options.renderOptionLabelAsHtml||this.options.useSelectOptionLabelToHtml}init(){this.initLocale(),this.initContainer(),this.initData(),this.initSelected(!0),this.initFilter(),this.initDrop(),this.initView(),this.options.onAfterCreate()}destroy(t=!0){this.elm&&this.parentElm&&(this.options.onDestroy({hardDestroy:t}),t&&this.options.onHardDestroy(),this.elm.parentElement&&this.parentElm.parentElement&&this.elm.parentElement.insertBefore(this.elm,this.parentElm.parentElement.firstChild),this.elm.classList.remove("ms-offscreen"),this._bindEventService.unbindAll(),this.virtualScroll?.destroy(),this.dropElm?.remove(),this.dropElm=void 0,this.parentElm.parentNode?.removeChild(this.parentElm),this.fromHtml&&(delete this.options.data,this.fromHtml=!1),this.options.onAfterDestroy({hardDestroy:t}),t&&(this.options.onAfterHardDestroy?.(),Object.keys(this.options).forEac
63h((t=>delete this[t]))))}initLocale(){if(this.options.locale){if("object"==typeof this.options.locale)return void Object.assign(this.options,this.options.locale);let t=window.multipleSelect.locales,e=this.options.locale.split(/-|_/);if(e[0]=e[0].toLowerCase(),e[1]&&(e[1]=e[1].toUpperCase()),t[this.options.locale])Object.assign(this.options,t[this.options.locale]);else if(t[e.join("-")])Object.assign(this.options,t[e.join("-")]);else{if(!t[e[0]])throw new Error(`[multiple-select-vanilla] invalid locales "${this.options.locale}", make sure to import it before using it`);Object.assign(this.options,t[e[0]])}}}initContainer(){let t=this.elm.getAttribute("name")||this.options.name||"";this.options.classes&&this.elm.classList.add(this.options.classes),this.options.classPrefix&&(this.elm.classList.add(this.options.classPrefix),this.options.size&&this.elm.classList.add(`${this.options.classPrefix}-${this.options.size}`)),this.elm.style.display="none",this.labelElm=this.elm.closest("label"),!this.labelElm&&this.elm.id&&(this.labelElm=Ll("label",{htmlFor:this.elm.id})),this.labelElm?.querySelector("input")&&(this.labelElm=null),void 0===this.options.single&&(this.options.single=!this.elm.multiple),this.parentElm=Ll("div",{className:Ml(`ms-parent ${this.elm.className||""} ${this.options.classes}`).join(" "),dataset:{test:"sel"}}),this.options.darkMode&&this.parentElm.classList.add("ms-dark-mode");let e=this.elm.getAttribute("title")||"";e&&(this.parentElm.title=e),this.options.placeholder=this.options.placeholder||this.elm.getAttribute("placeholder")||"",this.choiceElm=Ll("button",{className:"ms-choice",type:"button"},this.parentElm),this.options.labelId&&(this.choiceElm.id=this.options.labelId,this.choiceElm.setAttribute("aria-labelledby",this.options.labelId)),this.choiceElm.appendChild(Ll("span",{className:"ms-placeholder",textContent:this.options.placeholder})),this.options.showClear&&(this.selectClearElm=Ll("div",{className:"ms-icon ms-icon-close"}),this.selectClearElm.style.display="none",this.choiceElm.appendChild(this.selectClearElm)),this.choiceElm.appendChild(Ll("div",{className:"ms-icon ms-icon-caret"})),this.dropElm=Ll("div",{className:`ms-drop ${this.options.position}`,ariaExpanded:"false"},this.parentElm),this.options.darkMode&&this.dropElm.classList.add("ms-dark-mode"),t&&(this.dropElm.dataset.name=t);let i=this.elm.getAttribute("data-test")||this.options.dataTest;i&&(this.parentElm.dataset.test=i,this.dropElm.dataset.test=i),this.closeElm=this.choiceElm.querySelector(".ms-icon-close");let n=["minWidth","maxWidth","width","dropWidth"];for(let t of n)if(this.options[t]){let e="dropWidth"===t?"width":t;this.dropElm.style[e]="string"==typeof this.options[t]?this.options[t]:`${this.options[t]}px`}(function(t,e){t.parentNode?.insertBefore(e,t.nextSibling)})(this.elm,this.parentElm),this.elm.disabled&&(this.choiceElm.classList.add("disabled"),this.choiceElm.disabled=!0),this.selectAllName=`selectAll${t}`,this.selectGroupName=`selectGroup${t}`,this.selectItemName=`selectItem${t}`,this.options.keepOpen||(this._bindEventService.unbindAll("body-click"),this._bindEventService.bind(document.body,"click",(t=>{this.getEventTarget(t)===this.choiceElm||Nl(this.getEventTarget(t),".ms-choice")===this.choiceElm||(this.getEventTarget(t)===this.dropElm||Nl(this.getEventTarget(t),".ms-drop")!==this.dropElm&&this.getEventTarget(t)!==this.elm)&&this.options.isOpen&&this.close("body.click")}),void 0,"body-click"))}initData(){let t=[];if(this.options.data){if(Array.isArray(this.options.data))this.data=this.options.data.map((t=>"string"==typeof t||"number"==typeof t?{text:t,value:t}:t));else if("object"==typeof this.options.data){for(let[e,i]of Object.entries(this.options.data))t.push({value:e,text:`${i}`});this.data=t}}else this.elm.childNodes.forEach((e=>{let i=this.initRow(e);i&&t.push(i)})),this.options.data=t,this.data=t,this.fromHtml=!0;this.data&&this.options.preFilter&&(this.data=this.data.filter(this.options.preFilter)),this.data&&this.options.preSort&&(this.data=this.data.sort(this.options.preSort)),this.dataTotal=function(t){let e=0;return t.forEach(((t,i)=>{"optgroup"===t.type?(t._key=`group_${i}`,t.visible=typeof t.visible>
63"u"||t.visible,t.children.forEach(((t,n)=>{t&&(t.visible=typeof t?.visible>"u"||t.visible,t.divider||(t._key=`option_${i}_${n}`,e+=1))}))):(t.visible=typeof t.visible>"u"||t.visible,t.divider||(t._key=`option_${i}`,e+=1))})),e}(this.data||[])}initRow(t,e){let i={};return"option"===t.tagName?.toLowerCase()?(i.type="option",i.text=this.options.textTemplate(t),i.value=t.value,i.visible=!0,i.selected=!!t.selected,i.disabled=e||t.disabled,i.classes=t.getAttribute("class")||"",i.title=t.getAttribute("title")||"",t.dataset.value&&(i._value=t.dataset.value),Object.keys(t.dataset).length&&(i._data=t.dataset,i._data.divider&&(i.divider=i._data.divider)),i):"optgroup"===t.tagName?.toLowerCase()?(i.type="optgroup",i.label=this.options.labelTemplate(t),i.visible=!0,i.selected=!!t.selected,i.disabled=t.disabled,i.children=[],Object.keys(t.dataset).length&&(i._data=t.dataset),t.childNodes.forEach((t=>{i.children.push(this.initRow(t,i.disabled))})),i):null}initDrop(){this.initList(!this.options.lazyData),this.update(!0),this.options.isOpen&&this.open(0),this.options.openOnHover&&this.parentElm&&(this._bindEventService.bind(this.parentElm,"mouseover",(()=>this.open(null))),this._bindEventService.bind(this.parentElm,"mouseout",(()=>this.close("hover.mouseout"))))}initFilter(){if(this.filterText="",this.options.filter||!this.options.filterByDataLength)return;let t=0;for(let e of this.data||[])"optgroup"===e.type?t+=e.children.length:t+=1;this.options.filter=t>this.options.filterByDataLength}initList(t=!0){if(t&&(this.options.filter&&(this.filterParentElm=Ll("div",{className:"ms-search"},this.dropElm),this.filterParentElm.appendChild(Ll("input",{autocomplete:"off",autocapitalize:"off",spellcheck:!1,type:"text",placeholder:this.options.filterPlaceholder||"🔎︎"})),this.options.showSearchClear&&this.filterParentElm.appendChild(Ll("span",{className:"ms-icon ms-icon-close"}))),this.options.selectAll&&!this.options.single)){let t=this.elm.getAttribute("name")||this.options.name||"";this.selectAllParentElm=Ll("div",{className:"ms-select-all",dataset:{key:"select_all"}});let e=document.createElement("label"),i="ms-icon "+(this.isAllSelected?"ms-icon-check":this.isPartiallyAllSelected?"ms-icon-minus":"ms-icon-uncheck"),n=Ll("div",{className:"icon-checkbox-container"},e);Ll("input",{type:"checkbox",ariaChecked:String(this.isAllSelected),checked:this.isAllSelected,dataset:{name:`selectAll${t}`}},n),Ll("div",{className:i},n),e.appendChild(Ll("span",{textContent:this.formatSelectAll()})),this.selectAllParentElm.appendChild(e),this.dropElm?.appendChild(this.selectAllParentElm)}this.ulElm=Ll("ul",{className:"ms-list",role:"listbox",ariaExpanded:"false",ariaMultiSelectable:String(!this.options.single)}),this.dropElm?.appendChild(this.ulElm),t&&this.options.showOkButton&&!this.options.single&&(this.okButtonElm=Ll("button",{className:"ms-ok-button",type:"button",textContent:this.formatOkButton()},this.dropElm)),this.initListItems()}initListItems(){let t=0,e=this.getListRows();if(this.options.selectAll&&!this.options.single&&(t=-1),e.length>bl.BLOCK_ROWS*bl.CLUSTER_BLOCKS){let i=this.dropElm&&"none"!==this.dropElm?.style.display;!i&&this.dropElm&&(this.dropElm.style.left="-10000",this.dropElm.style.display="block",this.dropElm.ariaExpanded="true");let n=()=>{if(this.virtualScroll){this._currentHighlightIndex=0,this.updateDataStart=this.virtualScroll.dataStart+t,this.updateDataEnd=this.virtualScroll.dataEnd+t,this.updateDataStart<0&&(this.updateDataStart=0,this._currentHighlightIndex=0);let e=this.getDataLength();this.updateDataEnd>e&&(this.updateDataEnd=e),this.ulElm&&(this.isMoveUpRecalcRequired?this.recalculateArrowMove("up"):this.virtualScroll.dataStart>this.updateDataStart&&this.recalculateArrowMove("down"))}};this.ulElm&&(this.virtualScroll?this.virtualScroll.reset(e):this.virtualScroll=new Bl({rows:e,scrollEl:this.ulElm,contentEl:this.ulElm,sanitizer:this.options.sanitizer,callback:()=>{n(),this.events()}})),n(),!i&&this.dropElm&&(this.dropElm.style.left="0",this.dropElm.style.display="none",this.dropElm.ariaExpanded="false")}else this.ulElm&&(Al(this.ulElm),e.forEach((t=>this.ulElm.appendChild(Dl(t))))),this.updateDataStart=0,this.updateDataEnd=this.updateData.length;return this.events(),e}getEventTarget(t){try{return t.composedPath?.()[0]||t.path?.[0]||t.target}catch{return t.target}}getListRows(){let t=[];return this.updateData=[],this.data?.forEach((e=>
63t.push(...this.initListItem(e)))),this.options.infiniteScroll&&t.push({tagName:"li",props:{className:"ms-infinite-option",role:"option"}}),t.push({tagName:"li",props:{className:"ms-no-results",textContent:this.formatNoMatchesFound()}}),t}initListItem(t,e=0){let i=t?.title||"",n=this.options.multiple?"multiple":"",s=this.options.single?"radio":"checkbox",o=!!t?.selected,a=this.options.single&&!this.options.singleRadio,r="";if(!t?.visible)return[];if(this.updateData.push(t),a&&(r="hide-radio "),t.selected&&(r+="selected "),"optgroup"===t.type){let e,i=[];if(this.options.hideOptgroupCheckboxes||this.options.single)e={tagName:"span",props:{dataset:{name:this.selectGroupName,key:t._key}}};else{let i={tagName:"input",props:{type:"checkbox",dataset:{name:this.selectGroupName,key:t._key},checked:o,disabled:t.disabled}};e=a?i:{tagName:"div",props:{className:"icon-checkbox-container"+("radio"===s?" radio":"")},children:[i,{tagName:"div",props:{className:"ms-icon "+(o?"radio"===s?"ms-icon-radio":"ms-icon-check":"ms-icon-uncheck")}}]}}!r.includes("hide-radio")&&(this.options.hideOptgroupCheckboxes||this.options.single)&&(r+="hide-radio ");let n={tagName:"span",props:{}};this.applyAsTextOrHtmlWhenEnabled(n.props,t.label);let l={tagName:"li",props:{className:Ml(`group${this.options.single||t.disabled?" disabled":""} ${r}`).join(" "),role:"option",ariaSelected:String(o),dataset:{key:t._key}},children:[{tagName:"label",props:{className:Ml("optgroup"+(this.options.single||t.disabled?" disabled":"")).join(" ")},children:[e,n]}]},c=this.options.cssStyler(t);return c&&(l.props.style=c),i.push(l),t.children.forEach((t=>i.push(...this.initListItem(t,1)))),i}if(r+=t.classes||"",e&&this.options.single&&(r+=`option-level-${e} `),t.divider)return[{tagName:"li",props:{className:"option-divider"}}];let l=n||r?(n+r).trim():"";t.disabled&&(l+=" disabled");let c=t.disabled?"disabled":"",h={tagName:"span",props:{}};this.applyAsTextOrHtmlWhenEnabled(h.props,t.text);let d={tagName:"input",props:{type:s,value:encodeURI(t.value),dataset:{key:t._key,name:this.selectItemName},checked:o,disabled:!!t.disabled}};t.selected&&(d.attrs={checked:"checked"});let u={tagName:"div",props:{className:"icon-checkbox-container"+("radio"===s?" radio":"")},children:[d,{tagName:"div",props:{className:"ms-icon "+(d.props.checked?"radio"===s?"ms-icon-radio":"ms-icon-check":"ms-icon-uncheck")}}]},p={tagName:"li",props:{role:"option",title:i,ariaSelected:String(o),dataset:{key:t._key}},children:[{tagName:"label",props:{className:c},children:[a?d:u,h]}]};l&&(p.props.className=l);let f=this.options.cssStyler(t);return f&&(p.props.style=f),[p]}initSelected(t=!1){let e=0;for(let t of this.data||[])if("optgroup"===t.type){let i=t.children.filter((t=>t?.selected&&!t.disabled&&t.visible)).length;t.children.length&&(t.selected=!this.options.single&&i&&i===t.children.filter((t=>t&&!t.disabled&&t.visible&&!t.divider)).length),e+=i}else e+=t.selected&&!t.disabled&&t.visible?1:0;if(this.isAllSelected=this.data?.filter((t=>t.selected&&!t.disabled&&t.visible)).length===this.data?.filter((t=>!t.disabled&&t.visible&&!t.divider)).length,this.isPartiallyAllSelected=!this.isAllSelected&&e>0,!t){let t="";this.isAllSelected?t="onCheckAll":0===e&&(t="onUncheckAll"),t&&(this.options[t](),this.handleOnChange(t))}}initView(){let t;window.getComputedStyle?(t=window.getComputedStyle(this.elm).width,"auto"===t&&(t=Il(this.dropElm,"outer","width")+20)):t=Il(this.elm,"outer","width")+20,this.parentElm.style.width=`${this.options.width||t}px`,this.elm.classList.add("ms-offscreen")}events(){this._bindEventService.unbindAll(["ok-button","search-input","select-all-checkbox","input-checkbox-list","group-checkbox-list","hover-highlight","arrow-highlight","option-list-scroll"]),this.clearSearchIconElm=this.filterParentElm?.querySelector(".ms-icon-close"),this.searchInputElm=this.dropElm?.querySelector(".ms-search input"),this.selectAllElm=this.dropElm?.querySelector(`input[data-name="${this.selectAllName}"]`),this.selectGroupElms=this.dropElm?.querySelectorAll(`input[data-name="${this.selectGroupName}"],span[data-name="${this.selectGroupName}"]`),this.selectCheckboxElms=this.dropElm?.querySelectorAll(`input[data-name="${this.selectItemName}"]:enabled`),this.noResultsElm=this.dropElm?.querySelector(".ms-no-results");let t=t=>{t.preventDefault(),!this.getEventTarget(t).classList.contains("ms-icon-close")&&(this.options.isOpen?this.close("toggle.close"):this.open())};this.labelElm&&this._bindEventService.bind(this.labelElm,"click",(e=>{"label"===this.getEventTarget(e).nodeName.toLowerCase()&&(t(e),(!this.options.filter||!this.options.isOpen)&&this.focus(),e.stopPropagation())})),this._bindEventService.bind(this.choiceElm,"click",t),this.options.onFocus&&this._bindEventService.bind(this.choiceElm,"focus",this.options.onFocus),this.options.onBlur&&this._bindEventService.bind(this.choiceElm,"blur",this.options.onBlur),this._bindEventService.bind(this.parentElm,"keydown",(t=>{"Escape"===t.code&&this.handleEscapeKey()})),this.closeElm&&this._bindEventService.bind(this.closeElm,"click",(t=>{t.preventDefault(),this._checkAll(!1,!0),this.initSelected(!1),this.updateSelected(),this.update(),this.options.onClear()}
63)),this.clearSearchIconElm&&this._bindEventService.bind(this.clearSearchIconElm,"click",(t=>{t.preventDefault(),this.searchInputElm&&(this.searchInputElm.value="",this.searchInputElm.focus()),this._currentHighlightIndex=-1,this.moveHighlightDown(),this.filter(),this.options.onFilterClear()})),this.searchInputElm&&(this._bindEventService.bind(this.searchInputElm,"keydown",(t=>{"Tab"===t.code&&t.shiftKey&&this.close("key.shift+tab")}),void 0,"search-input"),this._bindEventService.bind(this.searchInputElm,"keyup",(t=>{if(this.options.filterAcceptOnEnter&&["Enter","Space"].includes(t.code)&&this.searchInputElm?.value){if(this.options.single){let t=[];this.selectCheckboxElms?.forEach((e=>{"none"!==e.closest("li")?.style.display&&t.push(e)})),t.length&&t[0].hasAttribute("data-name")&&this.setSelects([t[0].value])}else this.selectAllElm?.click();return this.close(`key.${t.code.toLowerCase()}`),void this.focus()}this.filter()}),void 0,"search-input")),this.selectAllElm&&this._bindEventService.bind(this.selectAllElm,"click",(t=>this._checkAll(t.currentTarget?.checked)),void 0,"select-all-checkbox"),this.okButtonElm&&this._bindEventService.bind(this.okButtonElm,"click",(e=>{t(e),e.stopPropagation()}),void 0,"ok-button"),this.selectGroupElms&&this._bindEventService.bind(this.selectGroupElms,"click",(t=>{let e=t.currentTarget,i=e.checked,n=Sl(this.data,"_key",e.dataset.key);this._checkGroup(n,i),this.options.onOptgroupClick(Tl({label:n.label,selected:!!n.selected,data:n._data,children:n.children.filter((t=>t)).map((t=>Tl({label:t.text,value:t.value,selected:t.selected,disabled:t.disabled,data:t._data})))})),this.handleOnChange("onOptgroupClick",{label:n.label,selected:!!n.selected,type:n.type})}),void 0,"group-checkbox-list"),this.selectCheckboxElms&&this._bindEventService.bind(this.selectCheckboxElms,"click",(t=>{let e=t.currentTarget,i=e.checked,n=Sl(this.data,"_key",e.dataset.key),s=()=>{this.options.single&&this.options.isOpen&&!this.options.keepOpen&&this.close("selection")};!1!==this.options.onBeforeClick(n)?(this._check(n,i),this.options.onClick(Tl({label:n.text,value:n.value,selected:n.selected,data:n._data})),this.handleOnChange("onClick",{label:n.text,value:n.value,selected:n.selected,type:n.type}),s()):s()}),void 0,"input-checkbox-list"),this.lastFocusedItemKey&&this.dropElm&&this.dropElm.querySelector(`li[data-key=${this.lastFocusedItemKey}]`)?.focus(),this.options.navigationHighlight&&this.dropElm&&(this._bindEventService.bind(this.dropElm,"mouseover",(t=>{let e=this.getEventTarget(t).closest(".ms-select-all")||this.getEventTarget(t).closest("li");if(this.dropElm?.contains(e)&&this.lastMouseOverPosition!==`${t.clientX}:${t.clientY}`){let t=this.dropElm?.querySelectorAll(Rl)||[],i=Array.from(t).findIndex((t=>t.dataset.key===e.dataset.key));this._currentHighlightIndex!==i&&!e.classList.contains("disabled")&&(this._currentSelectedElm=e,this._currentHighlightIndex=i,this.changeCurrentOptionHighlight(e))}this.lastMouseOverPosition=`${t.clientX}:${t.clientY}`}),void 0,"hover-highlight"),this._bindEventService.bind(this.dropElm,"keydown",(t=>{switch(t.key){case"ArrowUp":t.preventDefault(),this.moveHighlightUp();break;case"ArrowDown":t.preventDefault(),this.moveHighlightDown();break;case"Escape":this.handleEscapeKey();break;case"Enter":case" ":if(document.activeElement!==this.okButtonElm){let e=this.getEventTarget(t).closest(".ms-select-all")||this.getEventTarget(t).closest("li");if(" "===t.key&&this.options.filter||this.options.filterAcceptOnEnter&&!e)return;t.preventDefault(),this._currentSelectedElm?.querySelector("input")?.click(),this.options.single&&(this.choiceElm.focus(),this.lastFocusedItemKey=this.choiceElm?.dataset.key||"")}break;case"Tab":{t.preventDefault();let e=!this.options.single&&this.options.showOkButton;e&&t.shiftKey&&document.activeElement===this.okButtonElm?(this.focusSelectAllOrList(),this.highlightCurrentOption(),this.filterParentElm?.querySelector("input")?.focus()):e&&!t.shiftKey&&document.activeElement!==this.okButtonElm?(this.changeCurrentOptionHighlight(),this.okButtonElm?.focus()):(this.options.onBlur(t),this.options.isOpen&&this.options.closeOnTab&&this.close("blur"));break}}}),void 0,"arrow-highlight")),this.ulElm&&this.options.infiniteScroll&&this._bindEventService.bind(this.ulElm,"scroll",this.infiniteScrollHandler.bind(this),void 0,"option-list-scroll")}handleOnChange(t,e){this.options.onChange({eventName:t,item:e,selection:{labels:this.getSelects("text"),values:this.getSelects("value")}})}handleEscapeKey(){this.options.keepOpen||(this.close("key.escape"),this.choiceElm.focus())}infiniteScrollHandler(t,e,i){let n=!1;t&&this.getEventTarget(t)&&this.ulElm&&this.scrolledByMouse?this.getEventTarget(t).scrollTop+this.getEventTarget(t).clientHeight===this.ulElm.scrollHeight&&(n=!0):void 0!==e&&e+1===i&&(n=!0),n&&this.ulElm&&(this.virtualScroll?this.initListItems():this.ulElm.scrollTop=0,this._currentHighlightIndex=0,this.highlightCurrentOption())}open(t=0){return new Promise((e=>{null!==t&&t>=0?(window.clearTimeout(this.openDelayTimer),this.openDelayTimer=window.setTimeout((()=>{this.openDrop(),e()}),t)):(this.openDrop(),e())}))}openDrop(){if(!this.dropElm||this.choiceElm?.classList.contains("disabled"))return;this.options.onBeforeOpen();let t=!1;if(this.options.lazyData&&!this._isLazyLoaded&&(t=!0,this.dropElm?.querySelector("ul.ms-list")?.remove(),this.options.lazyData().then((t=>{this.options.data=t,this._isLazyLoaded=!0,this.dropElm?.querySelector(".ms-loading")?.remove(),this.initData(),this.initList(!0),this.update(),this.adjustDropSizeAndPosition()}))),this.options.isOpen=!0,this.parentElm.classList.add("ms-parent-open"),this.choiceElm?.querySelector("div.ms-icon-caret")?.classList.add("open"),this.dropElm.style.display="block",this.dropElm.ariaExpanded="true",this.selectAllElm?.parentElement&&(this.selectAllElm.parentElement.style.display="inline-flex"),this.noResultsElm&&(this.noResultsElm.style.display="none"),!this.getDataLength())if(this.selectAllElm?.parentElement&&(this.selectAllElm.parentElement.style.display="none"),!t||this._isLazyLoaded||this.dropElm.querySelector(".ms-loading"))this.noResultsElm&&(this.noResultsElm.style.display="block");else{let t=Ll("div",{className:"ms-loading"});t.appendChild(Ll("div",{className:"ms-icon ms-icon-loading ms-spin"})),t.appendChild(Ll("span",{textContent:this.formatLazyLoading()})),this.dropElm.appendChild(t)}this.adjustDropSizeAndPosition(),(!t||this._isLazyLoaded)&&(this.getDataLength()&&this.options.filter?(this.searchInputElm&&(this.searchInputElm.value="",this.searchInputElm.focus()),this.filter(!0)):this.focusSelectAllOrList()),this._currentHighlightIndex<0?this.moveHighlightDown():this.highlightCurrentOption(),this.options.onOpen()}adjustDropSizeAndPosition(){if(this.dropElm){if(this.options.container){let t;this.options.container instanceof Node?t=this.options.container:"string"==typeof this.options.container&&(t="body"===this.options.container?document.body:document.querySelector(this.options.container)),t.appendChild(this.dropElm);let{top:e=0,left:i=0}=Ol(this.parentElm)||{};this.dropElm.style.top=`${e+this.parentElm.offsetHeight}px`,this.dropElm.style.left=`${i}px`,this.dropElm.style.width=`${this.parentElm.offsetWidth}px`,this.dropElm.style.minWidth="auto"}let t=this.options.minHeight,e=this.options.maxHeight;"row"===this.options.maxHeightUnit&&(e=Il(this.dropElm.querySelector("ul>li"),"outer","height")*this.options.maxHeight),this.ulElm??=this.dropElm.querySelector("ul"),this.ulElm&&(t&&(!this.options.lazyData||this._isLazyLoaded)&&(this.ulElm.style.minHeight=`${t}px`),this.ulElm.style.maxHeight=`${e}px`),this.dropElm.querySelectorAll(".multiple").forEach((t=>{t.style.width=`${this.options.multipleWidth}px`})),this.options.autoAdjustDropWidthByTextSize&&this.adjustDropWidthByText();let i=this.options.position;if(this.options.autoAdjustDropHeight){if(this.options.autoAdjustDropPosition){let{bottom:t,to
63p:e}=Cl(this.dropElm);i=t<this.dropElm.getBoundingClientRect().height&&e>t?"top":"bottom"}this.adjustDropHeight(i)}this.options.autoAdjustDropPosition&&this.adjustDropPosition(!0)}}focusSelectAllOrList(){this.selectAllElm?this.selectAllElm.focus():this.ulElm&&(this.ulElm.tabIndex=0,this.ulElm.focus())}highlightCurrentOption(){let t=this.dropElm?.querySelectorAll(Rl)||[];if(this._currentHighlightIndex<=t.length){let e=t[this._currentHighlightIndex];e&&(this.lastFocusedItemKey=e.dataset.key||"",this._currentSelectedElm=e,this.scrolledByMouse=!1,e.scrollIntoView({block:"nearest"}),this.changeCurrentOptionHighlight(e),window.setTimeout((()=>this.scrolledByMouse=!0),10))}}changeCurrentOptionHighlight(t){t?.classList.add("highlighted"),(this.dropElm?.querySelectorAll(".ms-select-all.highlighted, ul li[data-key].highlighted")||[]).forEach((e=>{e!==t&&e.classList.remove("highlighted")}))}moveHighlightDown(){let t=this.dropElm?.querySelectorAll(Rl)||[],e=t.length;this._currentHighlightIndex<e-1?(this._currentHighlightIndex++,t[this._currentHighlightIndex]?.classList.contains("disabled")&&this.moveHighlightDown()):this.options.infiniteScroll&&this.infiniteScrollHandler(null,this._currentHighlightIndex,e),this.highlightCurrentOption()}moveHighlightUp(){let t=this.dropElm?.querySelectorAll(Rl)||[],e=this.options.single?0:1;if(this.virtualScroll&&this._currentHighlightIndex<=e&&this.updateDataStart>0&&this.ulElm){let e=t[this._currentHighlightIndex+(this.options.single?0:1)],i=e?.dataset.key;return this.lastFocusedItemKey=i,this.ulElm.scrollTop=this.ulElm.scrollTop-e?.getBoundingClientRect().height||10,void(this.isMoveUpRecalcRequired=!0)}this._currentHighlightIndex>0&&(this._currentHighlightIndex--,t[this._currentHighlightIndex]?.classList.contains("disabled")&&this.moveHighlightUp()),this.highlightCurrentOption()}recalculateArrowMove(t){let e=this.dropElm?.querySelectorAll(Rl)||[],i=Array.from(e).findIndex((t=>t.dataset.key===this.lastFocusedItemKey));this._currentHighlightIndex=i-1,"down"===t?this.moveHighlightDown():"up"===t&&(this.moveHighlightUp(),this.isMoveUpRecalcRequired=!1)}close(t){this.options.isOpen=!1,this.parentElm.classList.remove("ms-parent-open"),this.choiceElm?.querySelector("div.ms-icon-caret")?.classList.remove("open"),this.dropElm&&(this.dropElm.style.display="none",this.dropElm.ariaExpanded="false",this.options.container&&(this.parentElm.appendChild(this.dropElm),this.dropElm.style.top="auto",this.dropElm.style.left="auto")),this.options.onClose(t)}applyAsTextOrHtmlWhenEnabled(t,e){t||(t={}),this.isRenderAsHtml?t.innerHTML="function"==typeof this.options.sanitizer?this.options.sanitizer(e):e:t.textContent=function(t){if(kl(t)){let e=document.createElement("textarea");return e.innerHTML=t.toString().replace(/&#(\d+);/g,((t,e)=>String.fromCharCode(e))),e.value}return""}(e)}update(t=!1){let e=this.getSelects(),i=this.getSelects("text");this.options.displayValues&&(i=e);let n=this.choiceElm?.querySelector("span"),s=e.length,o=null,a=()=>{if(this.options.useSelectOptionLabel||this.options.useSelectOptionLabelToHtml){let t=e.join(this.options.displayDelimiter);return this.options.useSelectOptionLabelToHtml?function(t){return t.replace(/(\b)(on[a-z]+)(\s*)=([^>]*)|javascript:([^>]*)[^>]*|(<\s*)(\/*)script([<>]*).*(<\s*)(\/*)script(>*)|(&lt;|&#60;)(\/*)(script|script defer)(.*)(&#62;|&gt;|&gt;">)/gi,"")}(t):t}return i.join(this.options.displayDelimiter)};if(n){if(0===s){let t=this.options.placeholder||"";n.classList.add("ms-placeholder"),this.applyAsTextOrHtmlWhenEnabled(n,t)}else o=s<this.options.minimumCountSelected?a():this.formatAllSelected()&&s===this.dataTotal?this.formatAllSelected():this.options.ellipsis&&s>this.options.minimumCountSelected?`${i.slice(0,this.options.minimumCountSelected).join(this.options.displayDelimiter)}...`:this.formatCountSelected(s,this.dataTotal)&&s>this.options.minimumCountSelected?this.formatCountSelected(s,this.dataTotal):a();if(null!==o&&(n?.classList.remove("ms-placeholder"),this.applyAsTextOrHtmlWhenEnabled(n,o)),this.options.showClear&&this.selectClearElm){let t=o?"block":"none";this.selectClearElm.style.display=t}if(this.options.displayTitle){let t=this.options.useSelectOptionLabel||this.options.useSelectOptionLabelToHtml?"value":"text";n.title=this.getSelects(t).join(this.options.displayDelimiter)}}let r=this.getSelects();this.options.single?this.elm.value=r.length?r[0]:"":Array.from(this.elm.options).forEac
63h((t=>{t.selected=r.some((e=>e===t.value))})),t||this.elm.dispatchEvent(new Event("change"))}updateSelected(t){for(let t=this.updateDataStart;t<this.updateDataEnd;t++){let e=this.updateData[t],i=this.dropElm?.querySelector(`input[data-key=${e._key}]`);if(i){i.checked=e.selected;let t=i.closest("li"),n=t?.querySelector(".icon-checkbox-container div");t&&(e.selected&&!t.classList.contains("selected")?(t.classList.add("selected"),t.ariaSelected="true",n&&(n.className="ms-icon ms-icon-"+("radio"===i.type?"radio":"check"))):e.selected||(t.classList.remove("selected"),t.ariaSelected="false",n&&(n.className="ms-icon ms-icon-uncheck")))}}let e=!this.data?.some((t=>t.visible));if(this.selectAllElm){this.selectAllElm.ariaChecked=String(this.isAllSelected);let t=this.dropElm?.querySelector(".ms-select-all .icon-checkbox-container div");if(t){let e="";e=this.isAllSelected?"ms-icon-check":this.isPartiallyAllSelected?"ms-icon-minus":"ms-icon-uncheck",t.className=`ms-icon ${e}`}this.selectAllElm.checked=this.isAllSelected,$l(this.selectAllElm.closest("li"),!e)}$l(this.noResultsElm,e),this.virtualScroll&&(this.virtualScroll.rows=t??this.getListRows())}getData(){return this.options.data}getDataLength(){return this.data?.length??0}getOptions(t=!0){let e=Object.assign({},this.options);return delete e.data,t?xl(e):this.options}refreshOptions(t){(function(t,e,i=!1){let n=Object.keys(t),s=Object.keys(e);if(i&&n.length!==s.length)return!1;for(let i of n)if(s.includes(i)&&t[i]!==e[i])return!1;return!0})(this.options,t,!0)||(this.options=Object.assign(this.options,t),this.destroy(!1),this.init())}getDropElement(){return this.dropElm}getParentElement(){return this.parentElm}getSelects(t="value"){let e=[];for(let i of this.data||[])if("optgroup"===i.type){let n=i.children.filter((t=>t?.selected));if(!n.length)continue;if("value"===t||this.options.single)e.push(...n.map((e=>"value"===t&&e._value||e[t])));else{let s=[];s.push("["),s.push(i.label),s.push(`: ${n.map((e=>e[t])).join(", ")}`),s.push("]"),e.push(s.join(""))}}else i.selected&&e.push("value"===t&&i._value||i[t]);return e}setSelects(t,e="value",i=!1){let n=!1,s=i=>{for(let s of i){let i=!1;if("text"===e){let e=document.createElement("div");this.applyAsTextOrHtmlWhenEnabled(e,s.text),i=t.includes(e.textContent?.trim()??"")}else i=t.includes(s._value||s.value),!i&&s.value===""+ +s.value&&(i=t.includes(+s.value));s.selected!==i&&(n=!0),s.selected=i}};for(let t of this.data||[])"optgroup"===t.type?s(t.children):s([t]);n&&(this.initSelected(i),this.updateSelected(),this.update(i))}enable(){this.choiceElm&&(this.choiceElm.classList.remove("disabled"),this.choiceElm.disabled=!1)}disable(){this.choiceElm&&(this.choiceElm?.classList.add("disabled"),this.choiceElm.disabled=!0)}check(t){let e=Sl(this.data,"value",t);e&&this._check(e,!0)}uncheck(t){let e=Sl(this.data,"value",t);e&&this._check(e,!1)}_check(t,e){this.options.single&&this._checkAll(!1,!0),t.selected=e,this.initSelected(),this.updateSelected(),this.update()}checkAll(){this._checkAll(!0)}uncheckAll(){this._checkAll(!1)}_checkAll(t,e){for(let i of this.data||[])"optgroup"===i.type?this._checkGroup(i,t,!0):!i.disabled&&!i.divider&&(e||i.visible)&&(i.selected=t);e||(this.initSelected(),this.updateSelected(),this.update())}_checkGroup(t,e,i){t.selected=e,t.children.forEach((t=>{t&&!t.disabled&&!t.divider&&(i||t.visible)&&(t.selected=e)})),i||(this.initSelected(),this.updateSelected(),this.update())}checkInvert(){if(!this.options.single){for(let t of this.data||[])if("optgroup"===t.type)for(let e of t.children)e&&(e.divider||(e.selected=!e.selected));else t&&!t.divider&&(t.selected=!t.selected);this.initSelected(),this.updateSelected(),this.update()}}focus(){this.choiceElm?.focus(),this.options.onFocus()}blur(){this.choiceElm?.blur(),this.options.onBlur()}refresh(){this.destroy(!1),this.init()}filter(t){let e=this.searchInputElm?.value.trim()??"",i=e.toLowerCase();if(this.filterText===i)return;this.filterText=i;for(let t of this.data||[])if("optgroup"===t.type)if(this.options.filterGroup){let n=`${t?.label??""}`;if(null!=t){let s=this.options.customFilter({label:El(n.toString().toLowerCase(),this.options.diacriticParser),search:El(i,this.options.diacriticParser),originalLabel:n,originalSearch:e,row:t});t.visible=s;for(let e of t.children)e&&(e.visible=s)}}else{for(let n of t.children)if(null!=n){let s=`${n?.text??""}`;n.visible=this.options.customFilter({text:El(s.toString().toLowerCase(),this.options.diacriticParser),search:El(i,this.options.diacriticParser),originalText:s,originalSearch:e,row:n,parent:t})}t.visible=t.children.some((t=>t?.visible))}else{let n=`${t?.text??""}`;t.visible=this.options.customFilter({text:El(n.toString().toLowerCase(),this.options.diacriticParser),search:El(i,this.options.diacriticParser),originalText:n,originalSearch:e,row:t})}let n=this.initListItems();this.initSelected(t),this.updateSelected(n),t||this.options.onFilter(e)}adjustDropHeight(t){let e="top"!==t,i=(this.filterParentElm?.getBoundingClientRect().height??0)+(this.okButtonElm?.getBoundingClientRect().height??0)+(this.options.single?0:this.selectAllParentElm?.getBoundingClientRect().height??0)+5,{bottom:n,top:s}=Cl(this.parentElm),o=this.options.maxHeight;if(o=e?n-i-this.options.adjustedHeightPadding:s-i-this.options.adjustedHeightPadding,!this.options.maxHeight||this.options.maxHeight&&o<this.options.maxHeight){let t=this.dropElm?.querySelector("ul");return t&&(t.style.maxHeight=`${o}px`),!0}return!1}
63adjustDropPosition(t){let e="bottom";if(this.dropElm&&this.parentElm){let{bottom:i,top:n}=Cl(this.dropElm),{top:s,left:o}=Ol(this.parentElm),a=this.dropElm.getBoundingClientRect().height,r=this.dropElm.getBoundingClientRect().width,l=document.body.offsetWidth||window.innerWidth,c=this.parentElm.getBoundingClientRect().width;if(i>a)e="bottom";else if(a>i&&n>i){if(this.options.container){let i=s-a;i<0&&(i=0),(i>0||t)&&(e="top",this.dropElm.style.top=`${i<0?0:i}px`)}else e="top",this.dropElm.classList.add(e);this.dropElm.classList.remove("bottom")}l-r<o&&(this.dropElm.style.left=o-(r-c)+"px")}return e}adjustDropWidthByText(){if(this.dropElm){let t=this.parentElm.scrollWidth;(this.options.dropWidth||this.options.width)&&(t=this.options.dropWidth||this.options.width||0);let e=this.dropElm.querySelector(".ms-select-all span"),i=this.dropElm.querySelector("ul");if(i){let n=0,s=0,o=(e?.clientWidth??0)+s,a=i.scrollHeight>i.clientHeight?this.getScrollbarWidth():0;s+=2*zl(i,"paddingLeft");let r=!1;for(let t of Array.from(i.querySelectorAll("li"))){let e=t.querySelector("label"),i=t.querySelector(".icon-checkbox-container"),o=t.querySelector("span");e&&o?.textContent&&(r||(s+=2*zl(t,"paddingLeft"),s+=2*zl(e,"paddingLeft"),s+=zl(o,"paddingLeft"),s+=i?.offsetWidth??0,r=!0),o.offsetWidth>n&&(n=o.offsetWidth))}n+=s+a,n<o&&(n=o),this.options.maxWidth&&n>this.options.maxWidth&&(n=this.options.maxWidth),this.options.minWidth&&n<this.options.minWidth&&(n=this.options.minWidth),("100%"===t||+t<n)&&(this.dropElm.style.minWidth="auto",this.dropElm.style.width=`${n}px`)}}}getScrollbarWidth(){let t=Ll("div",{style:{visibility:"hidden",width:"100px"}});document.body.appendChild(t);let e=t.offsetWidth;t.style.overflow="scroll";let i=Ll("div",{style:{width:"100%"}});t.appendChild(i);let n=i.offsetWidth;return t.parentNode?.removeChild(t),e-n}formatAllSelected(){return this.options.allSelectedText||this.options.formatAllSelected()}formatCountSelected(t,e){return this.options.countSelectedText?this.options.countSelectedText.replace("#",`${t}`).replace("%",`${e}`):this.options.formatCountSelected(t,e)}formatNoMatchesFound(){return this.options.noMatchesFoundText||this.options.formatNoMatchesFound()}formatOkButton(){return this.options.okButtonText||this.options.formatOkButton()}formatLazyLoading(){return this.options.lazyLoadingText||this.options.formatLazyLoading()}formatSelectAll(){return this.options.selectAllText||this.options.formatSelectAll()}},jl=(t,e)=>"string"==typeof t?Fl(document.querySelectorAll(t),e):t instanceof Node?Fl([t],e):Fl(t,e);function Fl(t,e){let i=Array.from(t),n=[];for(let t=0;t<i.length;t++){let s=i[t];try{void 0!==s._multipleSelect&&(s._multipleSelect.destroy(),delete s._multipleSelect),s._multipleSelect=new Hl(s,e||{}),s._multipleSelect.init();let i=s._multipleSelect.getOptions(!1);i.onHardDestroy=()=>delete s._multipleSelect,i.onAfterHardDestroy=()=>n[t]=null,n.push(s._multipleSelect)}catch(t){console.error(t)}}return 1===n.length?n[0]:n}jl.defaults=bl.DEFAULTS,jl.locales={...vl},jl.methods=bl.METHODS,void 0!==window&&(window.multipleSelect=jl),window.addEventListener("load",(t=>{const e=document.querySelectorAll("[rel~=shapehub-multiselect]");let i=document.querySelector("html").lang;const n={formatSelectAll:()=>"en"===i?"[select all]":"[Alles auswählen]",formatAllSelected:()=>"en"===i?"[all selected]":"Alles ausgewählt",formatCountSelected:(t,e)=>"en"===i?`${t} of ${e} selected`:`${t} von ${e} ausgewählt`,formatNoMatchesFound:()=>"en"===i?"no matches found":"Keine Ergebnisse",formatOkButton:()=>"en"===i?"close":"Schließen"};e.forEach((function(t){jl(t,{labelId:t.name,renderOptionLabelAsHtml:!0,filter:!0,placeholder:t.ariaLabel,locale:n})}))}));var Wl,Yl={exports:{}},Zl=(Wl||(Wl=1,window,Yl.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
vendor: 41,362 bytes, line 63
63),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=4)}([function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(e,i,n){void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n="en-US"),this.dateInstance="object"==typeof i&&null!==i?i.parse(e instanceof t?e.clone().toJSDate():e):"string"==typeof i?t.parseDateTime(e,i,n):e?t.parseDateTime(e):t.parseDateTime(new Date),this.lang=n}return t.parseDateTime=function(e,i,n){if(void 0===i&&(i="YYYY-MM-DD"),void 0===n&&(n="en-US"),!e)return new Date(NaN);if(e instanceof Date)return new Date(e);if(e instanceof t)return e.clone().toJSDate();if(/^-?\d{10,}$/.test(e))return t.getDateZeroTime(new Date(Number(e)));if("string"==typeof e){for(var s=[],o=null;null!=(o=t.regex.exec(i));)"\\"!==o[1]&&s.push(o);if(s.length){var a={year:null,month:null,shortMonth:null,longMonth:null,day:null,value:""};s[0].index>0&&(a.value+=".*?");for(var r=0,l=Object.entries(s);r<l.length;r++){var c=l[r],h=c[0],d=c[1],u=Number(h),p=t.formatPatterns(d[0],n),f=p.group,m=p.pattern;a[f]=u+1,a.value+=m,a.value+=".*?"}var g=new RegExp("^"+a.value+"$");if(g.test(e)){var v=g.exec(e),_=Number(v[a.year]),y=null;a.month?y=Number(v[a.month])-1:a.shortMonth?y=t.shortMonths(n).indexOf(v[a.shortMonth]):a.longMonth&&(y=t.longMonths(n).indexOf(v[a.longMonth]));var b=Number(v[a.day])||1;return new Date(_,y,b,0,0,0,0)}}}return t.getDateZeroTime(new Date(e))},t.convertArray=function(e,i){return e.map((function(e){return e instanceof Array?e.map((function(e){return new t(e,i)})):new t(e,i)}))},t.getDateZeroTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},t.shortMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"short"})}))},t.longMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"long"})}))},t.formatPatterns=function(e,i){switch(e){case"YY":case"YYYY":return{group:"year",pattern:"(\\d{"+e.length+"})"};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:"("+t.shortMonths(i).join("|")+")"};case"MMMM":return{group:"longMonth",pattern:"("+t.longMonths(i).join("|")+")"};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"}}},t.prototype.toJSDate=function(){return this.dateInstance},t.prototype.toLocaleString=function(t,e){return this.dateInstance.toLocaleString(t,e)},t.prototype.toDateString=function(){return this.dateInstance.toDateString()},t.prototype.getSeconds=function(){return this.dateInstance.getSeconds()},t.prototype.getDay=function(){return this.dateInstance.getDay()},t.prototype.getTime=function(){return this.dateInstance.getTime()},t.prototype.getDate=function(){return this.dateInstance.getDate()},t.prototype.getMonth=function(){return this.dateInstance.getMonth()},t.prototype.getFullYear=function(){return this.dateInstance.getFullYear()},t.prototype.setMonth=function(t){return this.dateInstance.setMonth(t)},t.prototype.setHours=function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.dateInstance.setHours(t,e,i,n)},t.prototype.setSeconds=function(t){return this.dateInstance.setSeconds(t)},t.prototype.setDate=function(t){return this.dateInstance.setDate(t)},t.prototype.setFullYear=function(t){return this.dateInstance.setFullYear(t)},t.prototype.getWeek=function(t){var e=new Date(this.timestamp()),i=(this.getDay()+(7-t))%7;e.setDate(e.getDate()-i);var n=e.getTime();return e.setMonth(0,1),e.getDay()!==t&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((n-e.getTime())/6048e5)},t.prototype.clone=function(){return new t(this.toJSDate())},t.prototype.isBetween=function(t,e,i){switch(void 0===i&&(i="()"),i){default:case"()":return this.timestamp()>t.getTime()&&this.timestamp()<e.getTime();case"[)":return this.timestamp()>=t.getTime()&&this.timestamp()<e.getTime();case"(]":return this.timestamp()>t.getTime()&&this.timestamp()<=e.getTime();case"[]":return this.timestamp()>=t.getTime()&&this.timestamp()<=e.getTime()}},t.prototype.isBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return t.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")},t.prototype.isSameOrBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>=this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")},t.prototype.isAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(t.getFullYear(),t.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>t.getFullYear()}throw new Error("isAfter: Invalid unit!")},t.prototype.isSameOrAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>=t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")},t.prototype.isSame=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()===t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")},t.prototype.add=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()+t);break;case"day":case"days":this.setDate(this.getDate()+t);break;case"month":case"months":this.setMonth(this.getMonth()+t)}return this},t.prototype.subtract=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()-t);break;case"day":case"days":this.setDate(this.getDate()-t);break;case"month":case"months":this.setMonth(this.getMonth()-t)}return this},t.prototype.diff=function(t,e){switch(void 0===e&&(e="seconds"),e){default:case"second":case"seconds":return this.getTime()-t.getTime();case"day":case"days":return Math.round((this.timestamp()-t.getTime())/864e5);case"month":case"months":}},t.prototype.format=function(e,i){if(void 0===i&&(i="en-US"),"object"==typeof e)return e.output(this.clone().toJSDate());for(var n="",s=[],o=null;null!=(o=t.regex.exec(e));)"\\"!==o[1]&&s.push(o);if(s.length){s[0].index>0&&(n+=e.substring(0,s[0].index));for(var a=0,r=Object.entries(s);a<r.length;a++){var l=r[a],c=l[0],h=l[1],d=Number(c);n+=this.formatTokens(h[0],i),s[d+1]&&(n+=e.substring(h.index+h[0].length,s[d+1].index)),d===s.length-1&&(n+=e.substring(h.index+h[0].length))}}return n.replace(/\\/g,"")},t.prototype.timestamp=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()},t.prototype.formatTokens=function(e,i){switch(e){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return("0"+(this.getMonth()+1)).slice(-2);case"MMM":return t.shortMonths(i)[this.getMonth()];case"MMMM":return t.longMonths(i)[this.getMonth()];case"D":return String(this.getDate());case"DD":return("0"+this.getDate()).slice(-2);default:return""}},t.regex=/(\\)?(Y{2,4}|M{1,4}|D{1,2}|d{1,4})/g,t.MONTH_JS=[0,1,2,3,4,5,6,7,8,9,10,11],t}();e.DateTime=n},function(t,e,i){var n,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),s=0;for(e=0;e<i;e++)for(var o=arguments[e],a=0,r=o.length;a<r;a++,s++)n[s]=o[a];return n};Object.defineProperty(e,"__esModule",{value:!0});var a=i(5),r=i(0),l=i(3),c=i(2),h=function(t){function e(e){var i=t.call(this,e)||this;return i.preventClick=!1,i.bindEvents(),i}return s(e,t),e.prototype.scrollToDate=function(t){if(this.options.scrollToDate){var e=this.options.startDate instanceof r.DateTime?this.options.startDate.clone():null,i=this.options.endDate instanceof r.DateTime?this.options.endDate.clone():null;!this.options.startDate||t&&t!==this.options.element?t&&this.options.endDate&&t===this.options.elementEnd&&(i.setDate(1),this.options.numberOfMonths>1&&i.isAfter(e)&&i.setMonth(i.getMonth()-(this.options.numberOfMonths-1)),this.calendars[0]=i.clone()):(e.setDate(1),this.calendars[0]=e.clone())}},e.prototype.bindEvents=function(){document.addEventListener("click",this.onClick.bind(this),!0),this.ui=document.createElement("div"),this.ui.className=l.litepicker,this.ui.style.display="none",this.ui.addEventListener("mouseenter",this.onMouseEnter.bind(this),!0),this.ui.addEventListener("mouseleave",this.onMouseLeave.bind(this),!1),this.options.autoRefresh?(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("keyup",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("keyup",this.onInput.bind(this),!0)):(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("change",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("change",this.onInput.bind(this),!0)),this.options.parentEl?this.options.parentEl instanceof HTMLElement?this.options.parentEl.appendChild(this.ui):document.querySelector(this.options.parentEl).appendChild(this.ui):this.options.inlineMode?this.options.element instanceof HTMLInputElement?this.options.element.parentNode.appendChild(this.ui):this.options.element.appendChild(this.ui):document.body.appendChild(this.ui),this.updateInput(),this.init(),"function"==typeof this.options.setup&&this.options.setup.call(this,this),this.render(),this.options.inlineMode&&this.show()},e.prototype.updateInput=function(){if(this.options.element instanceof HTMLInputElement){var t=this.options.startDate,e=this.options.endDate;if(this.options.singleMode&&t)this.options.element.value=t.format(this.options.format,this.options.lang);else if(!this.options.singleMode&&t&&e){var i=t.format(this.options.format,this.options.lang),n=e.format(this.options.format,this.options.lang);this.options.elementEnd instanceof HTMLInputElement?(this.options.element.value=i,this.options.elementEnd.value=n):this.options.element.value=""+i+this.options.delimiter+n}t||e||(this.options.element.value="",this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.value=""))}},e.prototype.isSamePicker=function(t){return t.closest("."+l.litepicker)===this.ui},e.prototype.shouldShown=function(t){return!t.disabled&&(t===this.options.element||this.options.elementEnd&&t===this.options.elementEnd)},e.prototype.shouldResetDatePicked=function(){return this.options.singleMode||2===this.datePicked.length},e.prototype.shouldSwapDatePicked=function(){return 2===this.datePicked.length&&this.datePicked[0].getTime()>this.datePicked[1].getTime()},e.prototype.shouldCheckLockDays=function(){return this.options.disallowLockDaysInRange&&2===this.datePicked.length},e.prototype.onClick=function(t){var e=t.target;if(t.target.shadowRoot&&(e=t.composedPath()[0]),e&&this.ui)if(this.shouldShown(e))this.show(e);else if(e.closest("."+l.litepicker)||!this.isShowning()){if(this.isSamePicker(e))if(this.emit("before:click",e),this.preventClick)this.preventClick=!1;else{if(e.classList.contains(l.dayItem)){if(t.preventDefault(),e.classList.contains(l.isLocked))return;if(this.shouldResetDatePicked()&&(this.datePicked.length=0),this.datePicked[this.datePicked.length]=new r.DateTime(e.dataset.time),this.shouldSwapDatePicked()){var i=this.datePicked[1].clone();this.datePicked[1]=this.datePicked[0].clone(),this.datePicked[0]=i.clone()}return this.shouldCheckLockDays()&&c.rangeIsLocked(this.datePicked,this.options)&&(this.emit("error:range",this.datePicked),this.datePicked.length=0),this.render(),this.emit.apply(this,o(["preselect"],o(this.datePicked).map((function(t){return t.clone()})))),void(this.options.autoApply&&(this.options.singleMode&&this.datePicked.length?(this.setDate(this.datePicked[0]),this.hide()):this.options.singleMode||2!==this.datePicked.length||(this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide())))}if(e.classList.contains(l.buttonPreviousMonth)){t.preventDefault();var n=0,s=this.options.switchingMonths||this.options.numberOfMonths;if(this.options.splitView){var a=e.closest("."+l.monthItem);n=c.findNestedMonthItem(a),s=1}return this.calendars[n].setMonth(this.calendars[n].getMonth()-s),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n)}if(e.classList.contains(l.buttonNextMonth))return t.preventDefault(),n=0,s=this.options.switchingMonths||this.options.numberOfMonths,this.options.splitView&&(a=e.closest("."+l.monthItem),n=c.findNestedMonthItem(a),s=1),this.calendars[n].setMonth(this.calendars[n].getMonth()+s),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n);e.classList.contains(l.buttonCancel)&&(t.preventDefault(),this.hide(),this.emit("button:cancel")),e.classList.contains(l.buttonApply)&&(t.preventDefault(),this.options.singleMode&&this.datePicked.length?this.setDate(this.datePicked[0]):this.options.singleMode||2!==this.datePicked.length||this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide(),this.emit("button:apply",this.options.startDate,this.options.endDate))}}else this.hide()},e.prototype.showTooltip=function(t,e){var i=this.ui.querySelector("."+l.containerTooltip);i.style.visibility="visible",i.innerHTML=e;var n=this.ui.getBoundingClientRect(),s=i.getBoundingClientRect(),o=t.getBoundingClientRect(),a=o.top,r=o.left;if(this.options.inlineMode&&this.options.parentEl){var c=this.ui.parentNode.getBoundingClientRect();a-=c.top,r-=c.left}else a-=n.top,r-=n.left;a-=s.height,r-=s.width/2,r+=o.width/2,i.style.top=a+"px",i.style.left=r+"px",this.emit("tooltip",i,t)},e.prototype.hideTooltip=function(){this.ui.querySelector("."+l.containerTooltip).style.visibility="hidden"},e.prototype.shouldAllowMouseEnter=function(t){return!this.options.singleMode&&!t.classList.contains(l.isLocked)},e.prototype.shouldAllowRepick=function(){return this.options.elementEnd&&this.options.allowRepick&&this.options.startDate&&this.options.endDate},e.prototype.isDayItem=function(t){return t.classList.contains(l.dayItem)},e.prototype.onMouseEnter=function(t){var e=this,i=t.target;if(this.isDayItem(i)&&this.shouldAllowMouseEnter(i)){if(this.shouldAllowRepick()&&(this.triggerElement===this.options.element?this.datePicked[0]=this.options.endDate.clone():this.triggerElement===this.options.elementEnd&&(this.datePicked[0]=this.options.startDate.clone())),1!==this.datePicked.length)return;var n=this.ui.querySelector("."+l.dayItem+'[data-time="'+this.datePicked[0].getTime()+'"]'),s=this.datePicked[0].clone(),o=new r.DateTime(i.dataset.time),a=!1;if(s.getTime()>o.getTime()){var c=s.clone();s=o.clone(),o=c.clone(),a=!0}if(Array.prototype.slice.call(this.ui.querySelectorAll("."+l.dayItem)).forEach((function(t){var i=new r.DateTime(t.dataset.time),n=e.renderDay(i);i.isBetween(s,o)&&n.classList.add(l.isInRange),t.className=n.className})),i.classList.add(l.isEndDate),a?(n&&n.classList.add(l.isFlipped),i.classList.add(l.isFlipped)):(n&&n.classList.remove(l.isFlipped),i.classList.remove(l.isFlipped)),this.options.showTooltip){var h=o.diff(s,"day")+1;if("function"==typeof this.options.tooltipNumber&&(h=this.options.tooltipNumber.call(this,h)),h>0){var d=this.pluralSelector(h),u=h+" "+(this.options.tooltipText[d]?this.options.tooltipText[d]:"["+d+"]");this.showTooltip(i,u);var p=window.navigator.userAgent,f=/(iphone|ipad)/i.test(p),m=/OS 1([0-2])/i.test(p);f&&m&&i.dispatchEvent(new Event("click"))}else this.hideTooltip()}}},e.prototype.onMouseLeave=function(t){t.target,this.options.allowRepick&&(!this.options.allowRepick||this.options.startDate||this.options.endDate)&&(this.datePicked.length=0,this.render())},e.prototype.onInput=function(t){var e=this.parseInput(),i=e[0],n=e[1],s=this.options.format;if(this.options.elementEnd?i instanceof r.DateTime&&n instanceof r.DateTime&&i.format(s)===this.options.element.value&&n.format(s)===this.options.elementEnd.value:this.options.singleMode?i instanceof r.DateTime&&i.format(s)===this.options.element.value:i instanceof r.DateTime&&n instanceof r.DateTime&&""+i.format(s)+this.options.delimiter+n.format(s)===this.options.element.value){if(n&&i.getTime()>n.getTime()){var o=i.clone();i=n.clone(),n=o.clone()}this.options.startDate=new r.DateTime(i,this.options.format,this.options.lang),n&&(this.options.endDate=new r.DateTime(n,this.options.format,this.options.lang)),this.updateInput(),this.render();var a=i.clone(),l=0;(this.options.elementEnd?i.format(s)===t.target.value:t.target.value.startsWith(i.format(s)))||(a=n.clone(),l=this.options.numberOfMonths-1),this.emit("selected",this.getStartDate(),this.getEndDate()),this.gotoDate(a,l)}},e}(a.Calendar);e.Litepicker=h},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.findNestedMonthItem=function(t){for(var e=t.parentNode.childNodes,i=0;i<e.length;i+=1)if(e.item(i)===t)return i;return 0},e.dateIsLocked=function(t,e,i){var n=!1;return e.lockDays.length&&(n=e.lockDays.filter((function(i){return i instanceof Array?t.isBetween(i[0],i[1],e.lockDaysInclusivity):i.isSame(t,"day")})).length),n||"function"!=typeof e.lockDaysFilter||(n=e.lockDaysFilter.call(this,t.clone(),null,i)),n},e.rangeIsLocked=function(t,e){var i=!1;return e.lockDays.length&&(i=e.lockDays.filter((function(i){if(i instanceof Array){var n=t[0].toDateString()===i[0].toDateString()&&t[1].toDateString()===i[1].toDateString();return i[0].isBetween(t[0],t[1],e.lockDaysInclusivity)||i[1].isBetween(t[0],t[1],e.lockDaysInclusivity)||n}return i.isBetween(t[0],t[1],e.lockDaysInclusivity)})).length),i||"function"!=typeof e.lockDaysFilter||(i=e.lockDaysFilter.call(this,t[0].clone(),t[1].clone(),t)),i}},function(t,e,i){var n=i(8);"string"==typeof n&&(n=[[t.i,n,""]]);var s={insert:function(t){var e=document.querySelector("head"),i=window._lastElementInsertedByStyleLoader;window.disableLitepickerStyles||(i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.insertBefore(t,e.firstChild),window._lastElementInsertedByStyleLoader=t)},singleton:!1};i(10)(n,s),n.locals&&(t.exports=n.locals)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(1);e.Litepicker=n.Litepicker,i(11),window.Litepicker=n.Litepicker,e.default=n.Litepicker},function(t,e,i){var n,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(6),a=i(0),r=i(3),l=i(2),c=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.render=function(){var t=this;this.emit("before:render",this.ui);var e=document.createElement("div");e.className=r.containerMain;var i=document.createElement("div");i.className=r.containerMonths,r["columns"+this.options.numberOfColumns]&&(i.classList.remove(r.columns2,r.columns3,r.columns4),i.classList.add(r["columns"+this.options.numberOfColumns])),this.options.splitView&&i.classList.add(r.splitView),this.options.showWeekNumbers&&i.classList.add(r.showWeekNumbers);for(var n=this.calendars[0].clone(),s=n.getMonth(),o=n.getMonth()+this.options.numberOfMonths,a=0,l=s;l<o;l+=1){var c=n.clone();c.setDate(1),c.setHours(0,0,0,0),this.options.splitView?c=this.calendars[a].clone():c.setMonth(l),i.appendChild(this.renderMonth(c,a)),a+=1}if(this.ui.innerHTML="",e.appendChild(i),this.options.resetButton){var h=void 0;"function"==typeof this.options.resetButton?h=this.options.resetButton.call(this):((h=document.createElement("button")).type="button",h.className=r.resetButton,h.innerHTML=this.options.buttonText.reset),h.addEventListener("click",(function(e){e.preventDefault(),t.clearSelection()})),e.querySelector("."+r.monthItem+":last-child").querySelector("."+r.monthItemHeader).appendChild(h)}this.ui.appendChild(e),this.options.autoApply&&!this.options.footerHTML||this.ui.appendChild(this.renderFooter()),this.options.showTooltip&&this.ui.appendChild(this.renderTooltip()),this.ui.dataset.plugins=(this.options.plugins||[]).join("|"),this.emit("render",this.ui)},e.prototype.renderMonth=function(t,e){var i=this,n=t.clone(),s=32-new Date(n.getFullYear(),n.getMonth(),32).getDate(),o=document.createElement("div");o.className=r.monthItem;var c=document.createElement("div");c.className=r.monthItemHeader;var h=document.createElement("div");if(this.options.dropdowns.months){var d=document.createElement("select");d.className=r.monthItemName;for(var u=0;u<12;u+=1){var p=document.createElement("option"),f=new a.DateTime(new Date(t.getFullYear(),u,2,0,0,0)),m=new a.DateTime(new Date(t.getFullYear(),u,1,0,0,0));p.value=String(u),p.text=f.toLocaleString(this.options.lang,{month:"long"}),p.disabled=this.options.minDate&&m.isBefore(new a.DateTime(this.options.minDate),"month")||this.options.maxDate&&m.isAfter(new a.DateTime(this.options.maxDate),"month"),p.selected=m.getMonth()===t.getMonth(),d.appendChild(p)}d.addEventListener("change",(function(t){var e=t.target,n=0;if(i.options.splitView){var s=e.closest("."+r.monthItem);n=l.findNestedMonthItem(s)}i.calendars[n].setMonth(Number(e.value)),i.render(),i.emit("change:month",i.calendars[n],n,t)})),h.appendChild(d)}else(f=document.createElement("strong")).className=r.monthItemName,f.innerHTML=t.toLocaleString(this.options.lang,{month:"long"}),h.appendChild(f);if(this.options.dropdowns.years){var g=document.createElement("select");g.className=r.monthItemYear;var v=this.options.dropdowns.minYear,_=this.options.dropdowns.maxYear?this.options.dropdowns.maxYear:(new Date).getFullYear();for(t.getFullYear()>_&&((p=document.createElement("option")).value=String(t.getFullYear()),p.text=String(t.getFullYear()),p.selected=!0,p.disabled=!0,g.appendChild(p)),u=_;u>=v;u-=1){p=document.createElement("option");var y=new a.DateTime(new Date(u,0,1,0,0,0));p.value=String(u),p.text=String(u),p.disabled=this.options.minDate&&y.isBefore(new a.DateTime(this.options.minDate),"year")||this.options.maxDate&&y.isAfter(new a.DateTime(this.options.maxDate),"year"),p.selected=t.getFullYear()===u,g.appendChild(p)}if(t.getFullYear()<v&&((p=document.createElement("option")).value=String(t.getFullYear()),p.text=String(t.getFullYear()),p.selected=!0,p.disabled=!0,g.appendChild(p)),"asc"===this.options.dropdowns.years){var b=Array.prototype.slice.call(g.childNodes).reverse();g.innerHTML="",b.forEach((function(t){t.innerHTML=t.value,g.appendChild(t)}))}g.addEventListener("change",(function(t){var e=t.target,n=0;if(i.options.splitView){var s=e.closest("."+r.monthItem);n=l.findNestedMonthItem(s)}i.calendars[n].setFullYear(Number(e.value)),i.render(),i.emit("change:year",i.calendars[n],n,t)})),h.appendChild(g)}else{var w=document.createElement("span");w.className=r.monthItemYear,w.innerHTML=String(t.getFullYear()),h.appendChild(w)}var x=document.createElement("button");x.type="button",x.className=r.buttonPreviousMonth,x.innerHTML=this.options.buttonText.previousMonth;var k=document.createElement("button");k.type="button",k.className=r.buttonNextMonth,k.innerHTML=this.options.buttonText.nextMonth,c.appendChild(x),c.appendChild(h),c.appendChild(k),this.options.minDate&&n.isSameOrBefore(new a.DateTime(this.options.minDate),"month")&&o.classList.add(r.noPreviousMonth),this.options.maxDate&&n.isSameOrAfter(new a.DateTime(this.options.maxDate),"month")&&o.classList.add(r.noNextMonth);var S=document.createElement("div");S.className=r.monthItemWeekdaysRow,this.options.showWeekNumbers&&(S.innerHTML="<div>W</div>");for(var T=1;T<=7;T+=1){var E=3+this.options.firstDay+T,C=document.createElement("div");C.innerHTML=this.weekdayName(E),C.title=this.weekdayName(E,"long"),S.appendChild(C)}var M=document.createElement("div");M.className=r.containerDays;var L=this.calcSkipDays(n);this.options.showWeekNumbers&&L&&M.appendChild(this.renderWeekNumber(n));for(var P=0;P<L;P+=1){var D=document.createElement("div");M.appendChild(D)}for(P=1;P<=s;P+=1)n.setDate(P),this.options.showWeekNumbers&&n.getDay()===this.options.firstDay&&M.appendChild(this.renderWeekNumber(n)),M.appendChild(this.renderDay(n));return o.appendChild(c),o.appendChild(S),o.appendChild(M),this.emit("render:month",o,t),o},e.prototype.renderDay=function(t){t.setHours();var e=document.createElement("div");if(e.className=r.dayItem,e.innerHTML=String(t.getDate()),e.dataset.time=String(t.getTime()),t.toDateString()===(new Date).toDateString()&&e.classList.add(r.isToday),this.datePicked.length)this.datePicked[0].toDateString()===t.toDateString()&&(e.classList.add(r.isStartDate),this.options.singleMode&&e.classList.add(r.isEndDate)),2===this.datePicked.length&&this.datePicked[1].toDateString()===t.toDateString()&&e.classList.add(r.isEndDate),2===this.datePicked.length&&t.isBetween(this.datePicked[0],this.datePicked[1])&&e.classList.add(r.isInRange);else if(this.options.startDate){var i=this.options.startDate,n=this.options.endDate;i.toDateString()===t.toDateString()&&(e.classList.add(r.isStartDate),this.options.singleMode&&e.classList.add(r.isEndDate)),n&&n.toDateString()===t.toDateString()&&e.classList.add(r.isEndDate),i&&n&&t.isBetween(i,n)&&e.classList.add(r.isInRange)}if(this.options.minDate&&t.isBefore(new a.DateTime(this.options.minDate))&&e.classList.add(r.isLocked),this.options.maxDate&&t.isAfter(new a.DateTime(this.options.maxDate))&&e.classList.add(r.isLocked),this.options.minDays>1&&1===this.datePicked.length){var s=this.options.minDays-1,o=this.datePicked[0].clone().subtract(s,"day"),c=this.datePicked[0].clone().add(s,"day");t.isBetween(o,this.datePicked[0],"(]")&&e.classList.add(r.isLocked),t.isBetween(this.datePicked[0],c,"[)")&&e.classList.add(r.isLocked)}if(this.options.maxDays&&1===this.datePicked.length){var h=this.options.maxDays;o=this.datePicked[0].clone().subtract(h,"day"),c=this.datePicked[0].clone().add(h,"day"),t.isSameOrBefore(o)&&e.classList.add(r.isLocked),t.isSameOrAfter(c)&&e.classList.add(r.isLocked)}return this.options.selectForward&&1===this.datePicked.length&&t.isBefore(this.datePicked[0])&&e.classList.add(r.isLocked),this.options.selectBackward&&1===this.datePicked.length&&t.isAfter(this.datePicked[0])&&e.classList.add(r.isLocked),l.dateIsLocked(t,this.options,this.datePicked)&&e.classList.add(r.isLocked),this.options.highlightedDays.length&&this.options.highlightedDays.filter((function(e){return e instanceof Array?t.isBetween(e[0],e[1],"[]"):e.isSame(t,"day")})).length&&e.classList.add(r.isHighlighted),e.tabIndex=e.classList.contains("is-locked")?-1:0,this.emit("render:day",e,t),e},e.prototype.renderFooter=function(){var t=document.createElement("div");if(t.className=r.containerFooter,this.options.footerHTML?t.innerHTML=this.options.footerHTML:t.innerHTML='\n      <span class="'+r.previewDateRange+'"></span>\n      <button type="button" class="'+r.buttonCancel+'">'+this.options.buttonText.cancel+'</button>\n      <button type="button" class="'+r.buttonApply+'">'+this.options.buttonText.apply+"</button>\n      ",this.options.singleMode){if(1===this.datePicked.length){var e=this.datePicked[0].format(this.options.format,this.options.lang);t.querySelector("."+r.previewDateRange).innerHTML=e}}else if(1===this.datePicked.length&&t.querySelector("."+r.buttonApply).setAttribute("disabled",""),2===this.datePicked.length){e=this.datePicked[0].format(this.options.format,this.options.lang);var i=this.datePicked[1].format(this.options.format,this.options.lang);t.querySelector("."+r.previewDateRange).innerHTML=""+e+this.options.delimiter+i}return this.emit("render:footer",t),t},e.prototype.renderWeekNumber=function(t){var e=document.createElement("div"),i=t.getWeek(this.options.firstDay);return e.className=r.weekNumber,e.innerHTML=53===i&&0===t.getMonth()?"53 / 1":i,e},e.prototype.renderTooltip=function(){var t=document.createElement("div");return t.className=r.containerTooltip,t},e.prototype.weekdayName=function(t,e){return void 0===e&&(e="short"),new Date(1970,0,t,12,0,0,0).toLocaleString(this.options.lang,{weekday:e})},e.prototype.calcSkipDays=function(t){var e=t.getDay()-this.options.firstDay;return e<0&&(e+=7),e},e}(o.LPCore);e.Calendar=c},function(t,e,i){var n,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=i(7),r=i(0),l=i(1),c=function(t){function e(e){var i=t.call(this)||this;i.datePicked=[],i.calendars=[],i.options={element:null,elementEnd:null,parentEl:null,firstDay:1,format:"YYYY-MM-DD",lang:"en-US",delimiter:" - ",numberOfMonths:1,numberOfColumns:1,startDate:null,endDate:null,zIndex:9999,position:"auto",selectForward:!1,selectBackward:!1,splitView:!1,inlineMode:!1,singleMode:!0,autoApply:!0,allowRepick:!1,showWeekNumbers:!1,showTooltip:!0,scrollToDate:!0,mobileFriendly:!0,resetButton:!1,autoRefresh:!1,lockDaysFormat:"YYYY-MM-DD",lockDays:[],disallowLockDaysInRange:!1,lockDaysInclusivity:"[]",highlightedDaysFormat:"YYYY-MM-DD",highlightedDays:[],dropdowns:{minYear:1990,maxYear:null,months:!1,years:!1},buttonText:{apply:"Apply",cancel:"Cancel",previousMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',nextMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',reset:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">\n        <path d="M0 0h24v24H0z" fill="none"/>\n        <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>\n      </svg>'},tooltipText:{one:"day",other:"days"}},i.options=o(o({},i.options),e.element.dataset),Object.keys(i.options).forEach((function(t){"true"!==i.options[t]&&"false"!==i.options[t]||(i.options[t]="true"===i.options[t])}));var n=o(o({},i.options.dropdowns),e.dropdowns),s=o(o({},i.options.buttonText),e.buttonText),a=o(o({},i.options.tooltipText),e.tooltipText);i.options=o(o({},i.options),e),i.options.dropdowns=o({},n),i.options.buttonText=o({},s),i.options.tooltipText=o({},a),i.options.elementEnd||(i.options.allowRepick=!1),i.options.lockDays.length&&(i.options.lockDays=r.DateTime.convertArray(i.options.lockDays,i.options.lockDaysFormat)),i.options.highlightedDays.length&&(i.options.highlightedDays=r.DateTime.convertArray(i.options.highlightedDays,i.options.highlightedDaysFormat));var l=i.parseInput(),c=l[0],h=l[1];i.options.startDate&&(i.options.singleMode||i.options.endDate)&&(c=new r.DateTime(i.options.startDate,i.options.format,i.options.lang)),c&&i.options.endDate&&(h=new r.DateTime(i.options.endDate,i.options.format,i.options.lang)),c instanceof r.DateTime&&!isNaN(c.getTime())&&(i.options.startDate=c),i.options.startDate&&h instanceof r.DateTime&&!isNaN(h.getTime())&&(i.options.endDate=h),!i.options.singleMode||i.options.startDate instanceof r.DateTime||(i.options.startDate=null),i.options.singleMode||i.options.startDate instanceof r.DateTime&&i.options.endDate instanceof r.DateTime||(i.options.startDate=null,i.options.endDate=null);for(var d=0;d<i.options.numberOfMonths;d+=1){var u=i.options.startDate instanceof r.DateTime?i.options.startDate.clone():new r.DateTime;if(!i.options.startDate&&(0===d||i.options.splitView)){var p=i.options.maxDate?new r.DateTime(i.options.maxDate):null,f=i.options.minDate?new r.DateTime(i.options.minDate):null,m=i.options.numberOfMonths-1;f&&p&&u.isAfter(p)?(u=f.clone()).setDate(1):!f&&p&&u.isAfter(p)&&((u=p.clone()).setDate(1),u.setMonth(u.getMonth()-m))}u.setDate(1),u.setMonth(u.getMonth()+d),i.calendars[d]=u}if(i.options.showTooltip)if(i.options.tooltipPluralSelector)i.pluralSelector=i.options.tooltipPluralSelector;else try{var g=new Intl.PluralRules(i.options.lang);i.pluralSelector=g.select.bind(g)}catch{i.pluralSelector=function(t){return 0===Math.abs(t)?"one":"other"}}return i}return s(e,t),e.add=function(t,e){l.Litepicker.prototype[t]=e},e.prototype.DateTime=function(t,e){return t?new r.DateTime(t,e):new r.DateTime},e.prototype.init=function(){var t=this;this.options.plugins&&this.options.plugins.length&&this.options.plugins.forEach((function(e){l.Litepicker.prototype.hasOwnProperty(e)?l.Litepicker.prototype[e].init.call(t,t):console.warn("Litepicker: plugin «"+e+"» not found.")}))},e.prototype.parseInput=function(){var t=this.options.delimiter,e=new RegExp(""+t),i=this.options.element instanceof HTMLInputElement?this.options.element.value.split(t):[];if(this.options.elementEnd){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length)return[new r.DateTime(this.options.element.value,this.options.format),new r.DateTime(this.options.elementEnd.value,this.options.format)]}else if(this.options.singleMode){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length)return[new r.DateTime(this.options.element.value,this.options.format)]}else if(this.options.element instanceof HTMLInputElement&&e.test(this.options.element.value)&&i.length&&i.length%2==0){var n=i.slice(0,i.length/2).join(t),s=i.slice(i.length/2).join(t);return[new r.DateTime(n,this.options.format),new r.DateTime(s,this.options.format)]}return[]},e.prototype.isShowning=function(){return this.ui&&"none"!==this.ui.style.display},e.prototype.findPosition=function(t){var e=t.getBoundingClientRect(),i=this.ui.getBoundingClientRect(),n=this.options.position.split(" "),s=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset,a=0,r=0;if("auto"!==n[0]&&/top|bottom/.test(n[0]))a=e[n[0]]+o,"top"===n[0]&&(a-=i.height);else{a=e.bottom+o;var l=e.bottom+i.height>window.innerHeight,c=e.top+o-i.height>=i.height;l&&c&&(a=e.top+o-i.height)}if(/left|right/.test(n[0])||n[1]&&"auto"!==n[1]&&/left|right/.test(n[1]))r=/left|right/.test(n[0])?e[n[0]]+s:e[n[1]]+s,"right"!==n[0]&&"right"!==n[1]||(r-=i.width);else{r=e.left+s,l=e.left+i.width>window.innerWidth;var h=e.right+s-i.width>=0;l&&h&&(r=e.right+s-i.width)}return{left:r,top:a}},e}(a.EventEmitter);e.LPCore=c},function(t,e,i){var n,s="object"==typeof Reflect?Reflect:null,o=s&&"function"==typeof s.apply?s.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};n=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function r(){r.init.call(this)}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var l=10;function c(t){return void 0===t._maxListeners?r.defaultMaxListeners:t._maxListeners}function h(t,e,i,n){var s,o,a,r;if("function"!=typeof i)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i);if(void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),o=t._events),a=o[e]),void 0===a)a=o[e]=i,++t._eventsCount;else if("function"==typeof a?a=o[e]=n?[i,a]:[a,i]:n?a.unshift(i):a.push(i),(s=c(t))>0&&a.length>s&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,r=l,console&&console.warn&&console.warn(r)}return t}function d(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,o(this.listener,this.target,t))}function u(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},s=d.bind(n);return s.listener=i,n.wrapFn=s,s}function p(t,e,i){var n=t._events;if(void 0===n)return[];var s=n[e];return void 0===s?[]:"function"==typeof s?i?[s.listener||s]:[s]:i?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(s):m(s,s.length)}function f(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function m(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");l=t}}),r.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},r.prototype.getMaxListeners=function(){return c(this)},r.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var n="error"===t,s=this._events;if(void 0!==s)n=n&&void 0===s.error;else if(!n)return!1;if(n){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var r=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw r.context=a,r}var l=s[t];if(void 0===l)return!1;if("function"==typeof l)o(l,this,e);else{var c=l.length,h=m(l,c);for(i=0;i<c;++i)o(h[i],this,e)}return!0},r.prototype.addListener=function(t,e){return h(this,t,e,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(t,e){return h(this,t,e,!0)},r.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.on(t,u(this,t,e)),this},r.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.prependListener(t,u(this,t,e)),this},r.prototype.removeListener=function(t,e){var i,n,s,o,a;if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);if(void 0===(n=this._events))return this;if(void 0===(i=n[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit
vendor: 1,312 bytes, line 63
63("removeListener",t,i.listener||e));else if("function"!=typeof i){for(s=-1,o=i.length-1;o>=0;o--)if(i[o]===e||i[o].listener===e){a=i[o].listener,s=o;break}if(s<0)return this;0===s?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,s),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(t){var e,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var s,o=Object.keys(i);for(n=0;n<o.length;++n)"removeListener"!==(s=o[n])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},r.prototype.listeners=function(t){return p(this,t,!0)},r.prototype.rawListeners=function(t){return p(this,t,!1)},r.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},r.prototype.listenerCount=f,r
vendor: 12,009 bytes, line 63
63.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(t,e,i){(e=i(9)(!1)).push([t.i,':root{--litepicker-container-months-color-bg: #fff;--litepicker-container-months-box-shadow-color: #ddd;--litepicker-footer-color-bg: #fafafa;--litepicker-footer-box-shadow-color: #ddd;--litepicker-tooltip-color-bg: #fff;--litepicker-month-header-color: #333;--litepicker-button-prev-month-color: #9e9e9e;--litepicker-button-next-month-color: #9e9e9e;--litepicker-button-prev-month-color-hover: #2196f3;--litepicker-button-next-month-color-hover: #2196f3;--litepicker-month-width: calc(var(--litepicker-day-width) * 7);--litepicker-month-weekday-color: #9e9e9e;--litepicker-month-week-number-color: #9e9e9e;--litepicker-day-width: 38px;--litepicker-day-color: #333;--litepicker-day-color-hover: #2196f3;--litepicker-is-today-color: #f44336;--litepicker-is-in-range-color: #bbdefb;--litepicker-is-locked-color: #9e9e9e;--litepicker-is-start-color: #fff;--litepicker-is-start-color-bg: #2196f3;--litepicker-is-end-color: #fff;--litepicker-is-end-color-bg: #2196f3;--litepicker-button-cancel-color: #fff;--litepicker-button-cancel-color-bg: #9e9e9e;--litepicker-button-apply-color: #fff;--litepicker-button-apply-color-bg: #2196f3;--litepicker-button-reset-color: #909090;--litepicker-button-reset-color-hover: #2196f3;--litepicker-highlighted-day-color: #333;--litepicker-highlighted-day-color-bg: #ffeb3b}.show-week-numbers{--litepicker-month-width: calc(var(--litepicker-day-width) * 8)}.litepicker{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:0.8em;display:none}.litepicker button{border:none;background:none}.litepicker .container__main{display:-webkit-box;display:-ms-flexbox;display:flex}.litepicker .container__months{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;background-color:var(--litepicker-container-months-color-bg);border-radius:5px;-webkit-box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);width:calc(var(--litepicker-month-width) + 10px);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months.columns-2{width:calc((var(--litepicker-month-width) * 2) + 20px)}.litepicker .container__months.columns-3{width:calc((var(--litepicker-month-width) * 3) + 30px)}.litepicker .container__months.columns-4{width:calc((var(--litepicker-month-width) * 4) + 40px)}.litepicker .container__months.split-view .month-item-header .button-previous-month,.litepicker .container__months.split-view .month-item-header .button-next-month{visibility:visible}.litepicker .container__months .month-item{padding:5px;width:var(--litepicker-month-width);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months .month-item-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-weight:500;padding:10px 5px;text-align:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--litepicker-month-header-color)}.litepicker .container__months .month-item-header div{-webkit-box-flex:1;-ms-flex:1;flex:1}.litepicker .container__months .month-item-header div>.month-item-name{margin-right:5px}.litepicker .container__months .month-item-header div>.month-item-year{padding:0}.litepicker .container__months .month-item-header .reset-button{color:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button>svg{fill:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button *{pointer-events:none}.litepicker .container__months .month-item-header .reset-button:hover{color:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .reset-button:hover>svg{fill:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .button-previous-month,.litepicker .container__months .month-item-header .button-next-month{visibility:hidden;text-decoration:none;padding:3px 5px;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__months .month-item-header .button-previous-month *,.litepicker .container__months .month-item-header .button-next-month *{pointer-events:none}.litepicker .container__months .month-item-header .button-previous-month{color:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month>svg,.litepicker .container__months .month-item-header .button-previous-month>img{fill:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month:hover{color:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-previous-month:hover>svg{fill:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month{color:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month>svg,.litepicker .container__months .month-item-header .button-next-month>img{fill:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month:hover{color:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month:hover>svg{fill:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-weekdays-row{display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;color:var(--litepicker-month-weekday-color)}.litepicker .container__months .month-item-weekdays-row>div{padding:5px 0;font-size:85%;-webkit-box-flex:1;-ms-flex:1;flex:1;width:var(--litepicker-day-width);text-align:center}.litepicker .container__months .month-item:first-child .button-previous-month{visibility:visible}.litepicker .container__months .month-item:last-child .button-next-month{visibility:visible}.litepicker .container__months .month-item.no-previous-month .button-previous-month{visibility:hidden}.litepicker .container__months .month-item.no-next-month .button-next-month{visibility:hidden}.litepicker .container__days{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:center;-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__days>div,.litepicker .container__days>a{padding:5px 0;width:var(--litepicker-day-width)}.litepicker .container__days .day-item{color:var(--litepicker-day-color);text-align:center;text-decoration:none;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__days .day-item:hover{color:var(--litepicker-day-color-hover);-webkit-box-shadow:inset 0 0 0 1px var(--litepicker-day-color-hover);box-shadow:inset 0 0 0 1px var(--litepicker-day-color-hover)}.litepicker .container__days .day-item.is-today{color:var(--litepicker-is-today-color)}.litepicker .container__days .day-item.is-locked{color:var(--litepicker-is-locked-color)}.litepicker .container__days .day-item.is-locked:hover{color:var(--litepicker-is-locked-color);-webkit-box-shadow:none;box-shadow:none;cursor:default}.litepicker .container__days .day-item.is-in-range{background-color:var(--litepicker-is-in-range-color);border-radius:0}.litepicker .container__days .day-item.is-start-date{color:var(--litepicker-is-start-color);background-color:var(--litepicker-is-start-color-bg);border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-flipped{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date{color:var(--litepicker-is-end-color);background-color:var(--litepicker-is-end-color-bg);border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date.is-flipped{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-end-date{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-highlighted{color:var(--litepicker-highlighted-day-color);background-color:var(--litepicker-highlighted-day-color-bg)}.litepicker .container__days .week-number{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:var(--litepicker-month-week-number-color);font-size:85%}.litepicker .container__footer{text-align:right;padding:10px 5px;margin:0 5px;background-color:var(--litepicker-footer-color-bg);-webkit-box-shadow:inset 0px 3px 3px 0px var(--litepicker-footer-box-shadow-color);box-shadow:inset 0px 3px 3px 0px var(--litepicker-footer-box-shadow-color);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.litepicker .container__footer .preview-date-range{margin-right:10px;font-size:90%}.litepicker .container__footer .button-cancel{background-color:var(--litepicker-button-cancel-color-bg);color:var(--litepicker-button-cancel-color);border:0;padding:3px 7px 4px;border-radius:3px}.litepicker .container__footer .button-cancel *{pointer-events:none}.litepicker .container__footer .button-apply{background-color:var(--litepicker-button-apply-color-bg);color:var(--litepicker-button-apply-color);border:0;padding:3px 7px 4px;border-radius:3px;margin-left:10px;margin-right:10px}.litepicker .container__footer .button-apply:disabled{opacity:0.7}.litepicker .container__footer .button-apply *{pointer-events:none}.litepicker .container__tooltip{position:absolute;margin-top:-4px;padding:4px 8px;border-radius:4px;background-color:var(--litepicker-tooltip-color-bg);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);box-shadow:0 1px 3px rgba(0,0,0,0.25);white-space:nowrap;font-size:11px;pointer-events:none;visibility:hidden}.litepicker .container__tooltip:before{position:absolute;bottom:-5px;left:calc(50% - 5px);border-top:5px solid rgba(0,0,0,0.12);border-right:5px solid transparent;border-left:5px solid transparent;content:""}.litepicker .container__tooltip:after{position:absolute;bottom:-4px;left:calc(50% - 4px);border-top:4px solid var(--litepicker-tooltip-color-bg);border-right:4px solid transparent;border-left:4px solid transparent;content:""}\n',""]),e.locals={showWeekNumbers:"show-week-numbers",litepicker:"litepicker",containerMain:"container__main",containerMonths:"container__months",columns2:"columns-2",columns3:"columns-3",columns4:"columns-4",splitView:"split-view",monthItemHeader:"month-item-header",buttonPreviousMonth:"button-previous-month",buttonNextMonth:"button-next-month",monthItem:"month-item",monthItemName:"month-item-name",monthItemYear:"month-item-year",resetButton:"reset-button",monthItemWeekdaysRow:"month-item-weekdays-row",noPreviousMonth:"no-previous-month",noNextMonth:"no-next-month",containerDays:"container__days",dayItem:"day-item",isToday:"is-today",isLocked:"is-locked",isInRange:"is-in-range",isStartDate:"is-start-date",isFlipped:"is-flipped",isEndDate:"is-end-date",isHighlighted:"is-highlighted",weekNumber:"week-number",containerFooter:"container__footer",previewDateRange:"preview-date-range",buttonCancel:"button-cancel",buttonApply:"button-apply",containerTooltip:"container__tooltip"},t.exports=e},function(t,e,i){
63t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i,n,s,o=t[1]||"",a=t[3];if(!a)return o;if(e&&"function"==typeof btoa){var r=(i=a,n=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(s," */")),l=a.sources.map((function(t){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(t," */")}));return[o].concat(l).concat([r]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var s={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(s[a]=!0)}for(var r=0;r<t.length;r++){var l=[].concat(t[r]);n&&s[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),e.push(l))}},e}},function(t,e,i){var n,s,o={},a=function(){return void 0===n&&(n=!(!(window&&document&&document.all)||window.atob)),n},r=(s={},function(t){if(void 0===s[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch{e=null}s[t]=e}return s[t]});function l(t,e){for(var i=[],n={},s=0;s<t.length;
vendor: 4,536 bytes, line 63
63s++){var o=t[s],a=e.base?o[0]+e.base:o[0],r={css:o[1],media:o[2],sourceMap:o[3]};n[a]?n[a].parts.push(r):i.push(n[a]={id:a,parts:[r]})}return i}function c(t,e){for(var i=0;i<t.length;i++){var n=t[i],s=o[n.id],a=0;if(s){for(s.refs++;a<s.parts.length;a++)s.parts[a](n.parts[a]);for(;a<n.parts.length;a++)s.parts.push(v(n.parts[a],e))}else{for(var r=[];a<n.parts.length;a++)r.push(v(n.parts[a],e));o[n.id]={id:n.id,refs:1,parts:r}}}}function h(t){var e=document.createElement("style");if(void 0===t.attributes.nonce){var n=i.nc;n&&(t.attributes.nonce=n)}if(Object.keys(t.attributes).forEach((function(i){e.setAttribute(i,t.attributes[i])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var d,u=(d=[],function(t,e){return d[t]=e,d.filter(Boolean).join("\n")});function p(t,e,i,n){var s=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=u(e,s);else{var o=document.createTextNode(s),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function f(t,e,i){var n=i.css,s=i.media,o=i.sourceMap;if(s&&t.setAttribute("media",s),o&&btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var m=null,g=0;function v(t,e){var i,n,s;if(e.singleton){var o=g++;i=m||(m=h(e)),n=p.bind(null,i,o,!1),s=p.bind(null,i,o,!0)}else i=h(e),n=f.bind(null,i,e),s=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else s()}}t.exports=function(t,e){(e=e||{}).attributes="object"==typeof e.attributes?e.attributes:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a());var i=l(t,e);return c(i,e),function(t){for(var n=[],s=0;s<i.length;s++){var a=i[s],r=o[a.id];r&&(r.refs--,n.push(r))}t&&c(l(t,e),e);for(var h=0;h<n.length;h++){var d=n[h];if(0===d.refs){for(var u=0;u<d.parts.length;u++)d.parts[u]();delete o[d.id]}}}}},function(t,e,i){var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),o=i(1),a=i(2);o.Litepicker.prototype.show=function(t){void 0===t&&(t=null),this.emit("before:show",t);var e=t||this.options.element;if(this.triggerElement=e,!this.isShowning()){if(this.options.inlineMode)return this.ui.style.position="relative",this.ui.style.display="inline-block",this.ui.style.top=null,this.ui.style.left=null,this.ui.style.bottom=null,void(this.ui.style.right=null);this.scrollToDate(t),this.render(),this.ui.style.position="absolute",this.ui.style.display="block",this.ui.style.zIndex=this.options.zIndex;var i=this.findPosition(e);this.ui.style.top=i.top+"px",this.ui.style.left=i.left+"px",this.ui.style.right=null,this.ui.style.bottom=null,this.emit("show",t)}},o.Litepicker.prototype.hide=function(){this.isShowning()&&(this.datePicked.length=0,this.updateInput(),this.options.inlineMode?this.render():(this.ui.style.display="none",this.emit("hide")))},o.Litepicker.prototype.getDate=function(){return this.getStartDate()},o.Litepicker.prototype.getStartDate=function(){return this.options.startDate?this.options.startDate.clone():null},o.Litepicker.prototype.getEndDate=function(){return this.options.endDate?this.options.endDate.clone():null},o.Litepicker.prototype.setDate=function(t,e){void 0===e&&(e=!1);var i=new s.DateTime(t,this.options.format,this.options.lang);a.dateIsLocked(i,this.options,[i])&&!e?this.emit("error:date",i):(this.setStartDate(t),this.options.inlineMode&&this.render(),this.emit("selected",this.getDate()))},o.Litepicker.prototype.setStartDate=function(t){t&&(this.options.startDate=new s.DateTime(t,this.options.format,this.options.lang),this.updateInput())},o.Litepicker.prototype.setEndDate=function(t){t&&(this.options.endDate=new s.DateTime(t,this.options.format,this.options.lang),this.options.startDate.getTime()>this.options.endDate.getTime()&&(this.options.endDate=this.options.startDate.clone(),this.options.startDate=new s.DateTime(t,this.options.format,this.options.lang)),this.updateInput())}
63,o.Litepicker.prototype.setDateRange=function(t,e,i){void 0===i&&(i=!1),this.triggerElement=void 0;var n=new s.DateTime(t,this.options.format,this.options.lang),o=new s.DateTime(e,this.options.format,this.options.lang);(this.options.disallowLockDaysInRange?a.rangeIsLocked([n,o],this.options):a.dateIsLocked(n,this.options,[n,o])||a.dateIsLocked(o,this.options,[n,o]))&&!i?this.emit("error:range",[n,o]):(this.setStartDate(n),this.setEndDate(o),this.options.inlineMode&&this.render(),this.updateInput(),this.emit("selected",this.getStartDate(),this.getEndDate()))},o.Litepicker.prototype.gotoDate=function(t,e){void 0===e&&(e=0);var i=new s.DateTime(t);i.setDate(1),this.calendars[e]=i.clone(),this.render()},o.Litepicker.prototype.setLockDays=function(t){this.options.lockDays=s.DateTime.convertArray(t,this.options.lockDaysFormat),this.render()},o.Litepicker.prototype.setHighlightedDays=function(t){this.options.highlightedDays=s.DateTime.convertArray(t,this.options.highlightedDaysFormat),this.render()},o.Litepicker.prototype.setOptions=function(t){delete t.element,delete t.elementEnd,delete t.parentEl,t.startDate&&(t.startDate=new s.DateTime(t.startDate,this.options.format,this.options.lang)),t.endDate&&(t.endDate=new s.DateTime(t.endDate,this.options.format,this.options.lang));var e=n(n({},this.options.dropdowns),t.dropdowns),i=n(n({},this.options.buttonText),t.buttonText),o=n(n({},this.options.tooltipText),t.tooltipText);this.options=n(n({},this.options),t),this.options.dropdowns=n({},e),this.options.buttonText=n({},i),this.options.tooltipText=n({},o),!this.options.singleMode||this.options.startDate instanceof s.DateTime||(this.options.startDate=null,this.options.endDate=null),this.options.singleMode||this.options.startDate instanceof s.DateTime&&this.options.endDate instanceof s.DateTime||(this.options.startDate=null,this.options.endDate=null);for(var a=0;a<this.options.numberOfMonths;a+=1){var r=this.options.startDate?this.options.startDate.clone():new s.DateTime;r.setDate(1),r.setMonth(r.getMonth()+a),this.calendars[a]=r}this.options.lockDays.length&&(this.options.lockDays=s.DateTime.convertArray(this.options.lockDays,this.options.lockDaysFormat)),this.options.highlightedDays.length&&(this.options.highlightedDays=s.DateTime.convertArray(this.options.highlightedDays,this.options.highlightedDaysFormat)),this.render(),this.options.inlineMode&&this.show(),this.updateInput()},o.Litepicker.prototype.clearSelection=function(){this.options.startDate=null,this.options.endDate=null,this.datePicked.length=0,this.updateInput(),this.isShowning()&&this.render(),this.emit("clear:selection")},o.Litepicker.prototype.destroy=function(){this.ui&&this.ui.parentNode&&(this.ui.parentNode.removeChild(this.ui),this.ui=null),this.emit("destroy")}}])),Yl.exports);
64/*!
65 * 
66 * litepicker.umd.js
67 * Litepicker v2.0.12 (https://github.com/wakirin/Litepicker)
68 * Package: litepicker (https://www.npmjs.com/package/litepicker)
69 * License: MIT (https://github.com/wakirin/Litepicker/blob/master/LICENCE.md)
70 * Copyright 2019-2021 Rinat G.
71 *     
72 * Hash: 504eef9c08cb42543660
73 * 
74 */window.addEventListener("load",(t=>{const e=document.querySelector("html").lang||"de",i={de:"de-DE",en:"en-UK"};document.querySelectorAll("[rel=shapehub-daterange-picker]").forEach((function(t){let n={element:t,singleMode:!1,format:"DD.MM.YYYY",lang:i[e]||"de-DE",resetButton:!0};if(t.dataset.single&&(n.singleMode=!0),t.dataset.weekdays){let e=t.dataset.weekdays.split(/,/).map((t=>(parseInt(t)+1)%7));console.log(e),n.lockDaysFilter=function(t){const i=t.getDay();return!e.includes(i)}}t.dataset.mindate&&(n.minDate=new Date(t.dataset.mindate)),t.dataset.maxdate&&(n.maxDate=new Date(t.dataset.maxdate));const s=new Zl.Litepicker(n);t.litepicker=s}))}
74))}(),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery")):t(jQuery)}((function(t){"use strict";var e={escapeRegExChars:function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},i=t.noop;function n(e,i){this.element=e,this.el=t(e),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.timeoutId=null,this.cachedResponse={},this.onChangeTimeout=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.noSuggestionsContainer=null,this.options=t.extend(!0,{},n.defaults,i),this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},this.hint=null,this.hintValue="",this.selection=null,this.initialize(),this.setOptions(i)}n.utils=e,t.Autocomplete=n,n.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,onHint:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(t,i){if(!i)return t.value;var n="("+e.escapeRegExChars(i)+")";return t.value.replace(new RegExp(n,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},formatGroup:function(t,e){return'<div class="autocomplete-group">'+e+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:i,onSearchComplete:i,onSearchError:i,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,i){return-1!==t.value.toLowerCase().indexOf(i)},paramName:"query",transformResult:function(e){return"string"==typeof e?t.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},n.prototype={initialize:function(){var e,i=this,s="."+i.classes.suggestion,o=i.classes.selected,a=i.options;i.element.setAttribute("autocomplete","off"),i.noSuggestionsContainer=t('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),i.suggestionsContainer=n.utils.createNode(a.containerClass),(e=t(i.suggestionsContainer)).appendTo(a.appendTo||"body"),"auto"!==a.width&&e.css("width",a.width),e.on("mouseover.autocomplete",s,(function(){i.activate(t(this).data("index"))})),e.on("mouseout.autocomplete",(function(){i.selectedIndex=-1,e.children("."+o).removeClass(o)})),e.on("click.autocomplete",s,(function(){i.select(t(this).data("index"))})),e.on("click.autocomplete",(function(){clearTimeout(i.blurTimeoutId)})),i.fixPositionCapture=function(){i.visible&&i.fixPosition()},t(window).on("resize.autocomplete",i.fixPositionCapture),i.el.on("keydown.autocomplete",(function(t){i.onKeyPress(t)})),i.el.on("keyup.autocomplete",(function(t){i.onKeyUp(t)})),i.el.on("blur.autocomplete",(function(){i.onBlur()})),i.el.on("focus.autocomplete",(function(){i.onFocus()})),i.el.on("change.autocomplete",(function(t){i.onKeyUp(t)})),i.el.on("input.autocomplete",(function(t){i.onKeyUp(t)}))},onFocus:function(){this.disabled||(this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange())},onBlur:function(){var e=this,i=e.options,n=e.el.val(),s=e.getQuery(n);e.blurTimeoutId=setTimeout((function(){e.hide(),e.selection&&e.currentValue!==s&&(i.onInvalidateSelection||t.noop).call(e.element)}),200)},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(e){var i=t.extend({},this.options,e);this.isLocal=Array.isArray(i.lookup),this.isLocal&&(i.lookup=this.verifySuggestionsFormat(i.lookup)),i.orientation=this.validateOrientation(i.orientation,"bottom"),t(this.suggestionsContainer).css({"max-height":i.maxHeight+"px",width:i.width+"px","z-index":i.zIndex}),this.options=i},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=t(this.suggestionsContainer),i=e.parent().get(0);if(i===document.body||this.options.forceFixPosition){var n=this.options.orientation,s=e.outerHeight(),o=this.el.outerHeight(),a=this.el.offset(),r={top:a.top,left
74:a.left};if("auto"===n){var l=t(window).height(),c=t(window).scrollTop(),h=-c+a.top-s,d=c+l-(a.top+o+s);n=Math.max(h,d)===h?"top":"bottom"}if(r.top+="top"===n?-s:o,i!==document.body){var u,p=e.css("opacity");this.visible||e.css("opacity",0).show(),u=e.offsetParent().offset(),r.top-=u.top,r.top+=i.scrollTop,r.left-=u.left,this.visible||e.css("opacity",p).hide()}"auto"===this.options.width&&(r.width=this.el.outerWidth()+"px"),e.css(r)}},isCursorAtEnd:function(){var t,e=this.el.val().length,i=this.element.selectionStart;return"number"==typeof i?i===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(t){if(this.disabled||this.visible||40!==t.which||!this.currentValue){if(!this.disabled&&this.visible){switch(t.which){case 27:this.el.val(this.currentValue),this.hide();break;case 39:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case 9:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case 13:if(-1===this.selectedIndex)return void this.hide();this.select(this.selectedIndex);break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else this.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case 38:case 40:return}clearTimeout(e.onChangeTimeout),e.currentValue!==e.el.val()&&(e.findBestHint(),e.options.deferRequestBy>0?e.onChangeTimeout=setTimeout((function(){e.onValueChange()}),e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=!1;else{var e=this.options,i=this.el.val(),n=this.getQuery(i);this.selection&&this.currentValue!==n&&(this.selection=null,(e.onInvalidateSelection||t.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=i,this.selectedIndex=-1,e.triggerSelectOnValidInput&&this.isExactMatch(n)?this.select(0):n.length<e.minChars?this.hide():this.getSuggestions(n)}},isExactMatch:function(t){var e=this.suggestions;return 1===e.length&&e[0].value.toLowerCase()===t.toLowerCase()},getQuery:function(e){var i,n=this.options.delimiter;return n?(i=e.split(n),t.trim(i[i.length-1])):e},getSuggestionsLocal:function(e){var i,n=this.options,s=e.toLowerCase(),o=n.lookupFilter,a=parseInt(n.lookupLimit,10);return i={suggestions:t.grep(n.lookup,(function(t){return o(t,e,s)}))},a&&i.suggestions.length>a&&(i.suggestions=i.suggestions.slice(0,a)),i},getSuggestions:function(e){var i,n,s,o,a=this,r=a.options,l=r.serviceUrl;r.params[r.paramName]=e,!1!==r.onSearchStart.call(a.element,r.params)&&(n=r.ignoreParams?null:r.params,t.isFunction(r.lookup)?r.lookup(e,(function(t){a.suggestions=t.suggestions,a.suggest(),r.onSearchComplete.call(a.element,e,t.suggestions)})):(a.isLocal?i=a.getSuggestionsLocal(e):(t.isFunction(l)&&(l=l.call(a.element,e)),s=l+"?"+t.param(n||{}),i=a.cachedResponse[s]),i&&Array.isArray(i.suggestions)?(a.suggestions=i.suggestions,a.suggest(),r.onSearchComplete.call(a.element,e,i.suggestions)):a.isBadQuery(e)?r.onSearchComplete.call(a.element,e,[]):(a.abortAjax(),o={url:l,data:n,type:r.type,dataType:r.dataType},t.extend(o,r.ajaxSettings),a.currentRequest=t.ajax(o).done((function(t){var i;a.currentRequest=null,i=r.transformResult(t,e),a.processResponse(i,e,s),r.onSearchComplete.call(a.element,e,i.suggestions)})).fail((function(t,i,n){r.onSearchError.call(a.element,e,t,i,n)})))))},isBadQuery:function(t){if(!this.options.preventBadQueries)return!1;for(var e=this.badQueries,i=e.length;i--;)if(0===t.indexOf(e[i]))return!0;return!1},hide:function(){var e=t(this.suggestionsContainer);t.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,e),this.visible=!1,this.selectedIndex=-1,clearTimeout(this.onChangeTimeout),t(this.suggestionsContainer).hide(),this.onHint(null)},suggest:function(){if(this.suggestions.length){var e,i=this.options,n=i.groupBy,s=i.formatResult,o=this.getQuery(this.currentValue),a=this.classes.suggestion,r=this.classes.selected,l=t(this.suggestionsContainer),c=t(this.noSuggestionsContainer),h=i.beforeRender,d="";i.triggerSelectOnValidInput&&this.isExactMatch(o)?this.select(0):(t.each(this.suggestions,(function(t,r){n&&(d+=function(t,s){var o=t.data[n];return e===o?"":(e=o,i.formatGroup(t,e))}(r)),d+='<div class="'+a+'" data-index="'+t+'">'+s(r,o,t)+"</div>"})),this.adjustContainerWidth(),c.detach(),l.html(d),t.isFunction(h)&&h.call(this.element,l,this.suggestions),this.fixPosition(),l.show(),i.autoSelectFirst&&(this.selectedIndex=0,l.scrollTop(0),l.children("."+a).first().addClass(r)),this.visible=!0,this.findBestHint())}else this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var e=this.options.beforeRender,i=t(this.suggestionsContainer),n=t(this.noSuggestionsContainer);this.adjustContainerWidth(),n.detach(),i.empty(),i.append(n),t.isFunction(e)&&e.call(this.element,i,this.suggestions),this.fixPosition(),i.show(),this.visible=!0},adjustContainerWidth:function(){var e,i=this.options,n=t(this.suggestionsContainer);"auto"===i.width?(e=this.el.outerWidth(),n.css("width",e>0?e:300)):"flex"===i.width&&n.css("width","")},findBestHint:function(){var e=this.el.val().toLowerCase(),i=null;e&&(t.each(this.suggestions,(function(t,n){var s=0===n.value.toLowerCase().indexOf(e);return s&&(i=n),!s})),this.onHint(i))},onHint:function(e){var i=this.options.onHint,n="";e&&(n=this.currentValue+e.value.substr(this.currentValue.length)),this.hintValue!==n&&(this.hintValue=n,this.hint=e,t.isFunction(i)&&i.call(this.element,n))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?t.map(e,(function(t){return{value:t,data:null}})):e},validateOrientation:function(e,i){return e=t.trim(e||"").toLowerCase(),-1===t.inArray(e,["auto","bottom","top"])&&(e=i),e}
74,processResponse:function(t,e,i){var n=this.options;t.suggestions=this.verifySuggestionsFormat(t.suggestions),n.noCache||(this.cachedResponse[i]=t,n.preventBadQueries&&!t.suggestions.length&&this.badQueries.push(e)),e===this.getQuery(this.currentValue)&&(this.suggestions=t.suggestions,this.suggest())},activate:function(e){var i,n=this.classes.selected,s=t(this.suggestionsContainer),o=s.find("."+this.classes.suggestion);return s.find("."+n).removeClass(n),this.selectedIndex=e,-1!==this.selectedIndex&&o.length>this.selectedIndex?(i=o.get(this.selectedIndex),t(i).addClass(n),i):null},selectHint:function(){var e=t.inArray(this.hint,this.suggestions);this.select(e)},select:function(t){this.hide(),this.onSelect(t)},moveUp:function(){if(-1!==this.selectedIndex)return 0===this.selectedIndex?(t(this.suggestionsContainer).children("."+this.classes.suggestion).first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),void this.findBestHint()):void this.adjustScroll(this.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var i=this.activate(e);if(i){var n,s,o,a=t(i).outerHeight();n=i.offsetTop,o=(s=t(this.suggestionsContainer).scrollTop())+this.options.maxHeight-a,n<s?t(this.suggestionsContainer).scrollTop(n):n>o&&t(this.suggestionsContainer).scrollTop(n-this.options.maxHeight+a),this.options.preserveInput||(this.ignoreValueChange=!0,this.el.val(this.getValue(this.suggestions[e].value))),this.onHint(null)}},onSelect:function(e){var i=this.options.onSelect,n=this.suggestions[e];this.currentValue=this.getValue(n.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),this.onHint(null),this.suggestions=[],this.selection=n,t.isFunction(i)&&i.call(this.element,n)},getValue:function(t){var e,i,n=this.options.delimiter;return n?1===(i=(e=this.currentValue).split(n)).length?t:e.substr(0,e.length-i[i.length-1].length)+t:t},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),t(window).off("resize.autocomplete",this.fixPositionCapture),t(this.suggestionsContainer).remove()}},t.fn.devbridgeAutocomplete=function(e,i){return arguments.length?this.each((function(){var s=t(this),o=s.data("autocomplete");"string"==typeof e?o&&"function"==typeof o[e]&&o[e](i):(o&&o.dispose&&o.dispose(),o=new n(this,e),s.data("autocomplete",o))})):this.first().data("autocomplete")},t.fn.autocomplete||(t.fn.autocomplete=t.fn.devbridgeAutocomplete)})),jQuery(document).ready((function(){var t=new SuggestController;t.init(),jQuery("body").on("tx_solr_updated",(function(){t.init()}))})),function(t){t((function(){var e=window.setInterval((function(){t("script").each((function(){if(this.src.match("gtag.js")){window.clearInterval(e);var t=this.src.split(/\?/);if(t.length<2)return;var i=new URLSearchParams(t[1]),n=i.get("id");if(!n)return;var s=i.has("l")?i.get("l"):"dataLayer";window[s]=window[s]||[],window.gtag=function(){return window[s].push(arguments)},gtag("js",new Date),gtag("config",n)}}))}),1e3)}))}(jQuery),window.tx_sfdeskline_tosc=window.tx_sfdeskline_tosc||{},tx_sfdeskline_tosc.sendEvent=function(t,e){(e=e||{}).event="site_event",e.event_action=t,window.dataLayer&&dataLayer.push(e),console.log(e)},tx_sfdeskline_tosc.toscPageLoadEventHandler=function(t){switch(t.pageType){case 100:tx_sfdeskline_tosc.sendEvent("page_view",{page_title:"TOSC5 Unterkünfte",page_location:tx_sfdeskline_tosc.getToscPageLocation("unterkunftssuche")});break;case 101:tx_sfdeskline_tosc.sendEvent("page_view",{page_title:"TOSC5 Unterkunft"+t.spName,page_location:tx_sfdeskline_tosc.getToscPageLocation("unterkunft/"+t.spId)});break;case 102:tx_sfdeskline_tosc.sendEvent("page_view",{page_title:"TOSC5 Zusatzleistungen",page_location:tx_sfdeskline_tosc.getToscPageLocation("zusatzleistungssuche")});break;case 103:tx_sfdeskline_tosc.sendEvent("page_view",{page_title:"TOSC5 Zusatzleistung"+t.srvName,page_location:tx_sfdeskline_tosc.getToscPageLocation("zusatzleistung/"+t.srvId)});break;case 9900:tx_sfdeskline_tosc.sendEvent("begin_checkout");break;case 9901:for(var e,i=[],n=0;n<t.bookingConfirmation.items.accommodations.length;n++)e=t.bookingConfirmation.items.accommodations[n],i.push({item_id:e.productId,item_name:e.product.name,price:e.price,item_category:"Accommodation"});for(n=0;n<t.bookingConfirmation.items.additionalServices.length;n++)e=t.bookingConfirmation.items.additionalServices[n],i.push({item_id:e.productId,item_name:e.product.name,price:e.price,item_category:"AdditionalService"});tx_sfdeskline_tosc.sendEvent("purchase",{currency:"EUR",transaction_id:t.bookingConfirmation.transactionId||"",value:t.bookingConfirmation.totalAmount||-1,items:i});break;default:console.log(t)}},tx_sfdeskline_tosc.toscUserActionEventHandler=function(t){var e={0:["Unterkunft","unterkunft"],1:["Erlebnis/Zusatzleistung","erlebnis-zusatzleistung"],2:["Veranstaltung","veranstaltung"],3:["Infrastruktur/POI","poi"],4:["Package/Specialangebot","package"]};switch(t.type){case 0:tx_sfdeskline_tosc.sendEvent("phone_number_click");break;case 1:tx_sfdeskline_tosc.sendEvent("generate_lead",{event_type:{0:"Anfrage an Anfragepool über Negativresultat nach der Prüfung auf Verfügbarkeiten in Listenansicht",1:"Anfrage für persönliche Beratung über Negativresultat nach der Prüfung auf Verfügbarkeiten in Listenansicht",2:"Simple Direktanfrage an Vermieter über Klick auf Vermietermail in der Detailansicht",3:"Detaillierte Direktanfrage an Vermieter über Klick auf Vermietermail in der Detailansicht",4:"Anfrage über Negativresultat nach der Prüfung auf Verfügbarkeiten in Detailansicht"}[t.requestType],page_title:t.name});break;case 2:case 3:break;case 4:tx_sfdeskline_tosc.sendEvent("link_click",{page_title:t.parentName});break;case 6:tx_sfdeskline_tosc.sendEvent("search",{event_type:{0:"Erlebnissuche",1:"Unterkuntssuche"}[t.searchObjectType],has_filter:t.hasFilter});break;case 8:break;case 9:tx_sfdeskline_tosc.sendEvent("page_view",{page_title:"TOSC5 "+e[t.itemType][0]+" "+t.itemName,page_location:tx_sfdeskline_tosc.getToscPageLocation(e[t.itemType][1]+"/"+t.itemName)});break;case 10:tx_sfdeskline_tosc.sendEvent("add_to_cart",{currency:"EUR",value:t.item.price.totalPrice,items:[{item_id:t.item.id,item_name:t.item.product.name}]});default:console.log(t)}},tx_sfdeskline_tosc.getToscPageLocation=function(t){return tx_sfdeskline_tosc.getHost()+"/tosc5-"+t},tx_sfdeskline_tosc.getHost=function(){return window.location.protocol+"//"+window.location.hostname},function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})}(this,(function(t){"use strict";function e(t){for(var e,i,n=1,s=arguments.length;n<s;n++)for(e in i=arguments[n])t[e]=i[e];return t}var i=Object.create||function(t){return n.prototype=t,new n};function n(){}function s(t,e){var i,n=Array.prototype.slice;
vendor: 6,876 bytes, line 74
74return t.bind?t.bind.apply(t,n.call(arguments,1)):(i=n.call(arguments,2),function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)})}var o=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function r(t,e,i){var n,s,o=function(){n=!1,s&&(a.apply(i,s),s=!1)},a=function(){n?s=arguments:(t.apply(i,arguments),setTimeout(o,e),n=!0)};return a}function l(t,e,i){var n=e[1],s=n-(e=e[0]);return t===n&&i?t:((t-e)%s+s)%s+e}function c(){return!1}function h(t,e){return!1===e?t:(e=Math.pow(10,void 0===e?6:e),Math.round(t*e)/e)}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return d(t).split(/\s+/)}function p(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function f(t,e,i){var n,s=[];for(n in t)s.push(encodeURIComponent(i?n.toUpperCase():n)+"="+encodeURIComponent(t[n]));return(e&&-1!==e.indexOf("?")?"&":"?")+s.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,i){if(void 0===(i=e[i]))throw new Error("No value provided for variable "+t);return"function"==typeof i?i(e):i}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function _(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function x(t){var e=+new Date,i=Math.max(0,16-(e-w));return w=e+i,window.setTimeout(t,i)}var k=window.requestAnimationFrame||b("RequestAnimationFrame")||x,S=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function T(t,e,i){if(!i||k!==x)return k.call(window,s(t,e));t.call(e)}function E(t){t&&S.call(window,t)}var C={__proto__:null,extend:e,create:i,bind:s,get lastId(){return o},stamp:a,throttle:r,wrapNum:l,falseFn:c,formatNum:h,trim:d,splitWords:u,setOptions:p,getParamString:f,template:g,isArray:v,indexOf:_,emptyImageUrl:y,requestFn:k,cancelFn:S,requestAnimFrame:T,cancelAnimFrame:E};function M(){}M.extend=function(t){function n(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var s,o=n.__super__=this.prototype,a=i(o);for(s in(a.constructor=n).prototype=a,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(n[s]=this[s]);if(t.statics&&e(n,t.statics),t.includes){var r=t.includes;if("undefined"!=typeof L&&L&&L.Mixin){r=v(r)?r:[r];for(var l=0;l<r.length;l++)r[l]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}e.apply(null,[a].concat(t.includes))}return e(a,t),delete a.statics,delete a.includes,a.options&&(a.options=o.options?i(o.options):{},e(a.options,t.options)),a._initHooks=[],a.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=a._initHooks.length;t<e;t++)a._initHooks[t].call(this)}},n},M.include=function(t){var i=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},M.mergeOptions=function(t){return e(this.prototype.options,t),this},M.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var P={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var s=0,o=(t=u(t)).length;s<o;s++)this._on(t[s],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=u(t);for(var s=1===arguments.length,o=0,a=t.length;o<a;o++)s?this._off(t[o]):this._off(t[o],e,i)}else delete this._events;return this},_on:function(t,e,i,n){"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1===this._listens(t,e,i)&&(e={fn:e,ctx:i=i===this?void 0:i},n&&(e.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e))},_off:function(t,e,i){var n,s,o;if(this._events&&(n=this._events[t]))if(1===arguments.length){if(this._firingCount)for(s=0,o=n.length;s<o;s++)n[s].fn=c;delete this._events[t]}else"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1!==(e=this._listens(t,e,i))&&(i=n[e],this._firingCount&&(i.fn=c,this._events[t]=n=n.slice()),n.splice(e,1))},fire:function(t,i,n){if(this.listens(t,n)){var s=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,r=o.length;a<r;a++){var l=o[a],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,s)}this._firingCount--}}n&&this._propagateEvent(s)}return this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var s=e,o=("function"!=typeof e&&(n=!!e,i=s=void 0),this._events&&this._events[t]);if(o&&o.length&&!1!==this._listens(t,s,i))return!0;if(n)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,i,n))return!0;return!1},_listens:function(t,e,i){if(this._events){var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var s=0,o=n.length;s<o;s++)if(n[s].fn===e&&n[s].ctx===i)return s}return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var s=0,o=(t=u(t)).length;s<o;s++)this._on(t[s],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}},D=(P.addEventListener=P.on,P.removeEventListener=P.clearAllEventListeners=P.off,P.addOneTimeEventListener=P.once,P.fireEvent=P.fire,P.hasEventListeners=P.listens,M.extend(P));function A(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var O=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function I(t,e,i){return t instanceof A?t:v(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,i)}function z(t,e){if(t)for(var i=e?[t,e]:t,n=0,s=i.length;n<s;n++)this.extend(i[n])}function N(t,e){return!t||t instanceof z?t:new z(t,e)}function $(t,e){if(t)for(var i=e?[t,e]:t,n=0,s=i.length;n<s;n++)this.extend(i[n])}function B(t,e){return t instanceof $?t:new $(t,e)}function R(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}
vendor: 4,160 bytes, line 74
74function H(t,e,i){return t instanceof R?t:v(t)&&"object"!=typeof t[0]?3===t.length?new R(t[0],t[1],t[2]):2===t.length?new R(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new R(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new R(t,e,i)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(I(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(I(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=O(this.x),this.y=O(this.y),this},distanceTo:function(t){var e=(t=I(t)).x-this.x;t=t.y-this.y;return Math.sqrt(e*e+t*t)},equals:function(t){return(t=I(t)).x===this.x&&t.y===this.y},contains:function(t){return t=I(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}},z.prototype={extend:function(t){var e,i;if(t){if(t instanceof A||"number"==typeof t[0]||"x"in t)e=i=I(t);else if(e=(t=N(t)).min,i=t.max,!e||!i)return this;this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone())}return this},getCenter:function(t){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t=("number"==typeof t[0]||t instanceof A?I:N)(t))instanceof z?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,s=(t=t.max).x>=e.x&&n.x<=i.x;t=t.y>=e.y&&n.y<=i.y;return s&&t},overlaps:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,s=(t=t.max).x>e.x&&n.x<i.x;t=t.y>e.y&&n.y<i.y;return s&&t},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t;t=Math.abs(e.y-i.y)*t;return N(I(e.x-n,e.y-t),I(i.x+n,i.y+t))},equals:function(t){return!!t&&(t=N(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},$.prototype={extend:function(t){var e,i,n=this._southWest,s=this._northEast;if(t instanceof R)i=e=t;else{if(!(t instanceof $))return t?this.extend(H(t)||B(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||s?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),s.lat=Math.max(i.lat,s.lat),s.lng=Math.max(i.lng,s.lng)):(this._southWest=new R(e.lat,e.lng),this._northEast=new R(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t;t=Math.abs(e.lng-i.lng)*t;return new $(new R(e.lat-n,e.lng-t),new R(i.lat+n,i.lng+t))},getCenter:function(){return new R((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,393 bytes, line 74
74,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof R||"lat"in t?H:B)(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof $?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=s.lat&&e.lng>=n.lng&&i.lng<=s.lng},intersects:function(t){t=B(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=(t=t.getNorthEast()).lat>=e.lat&&n.lat<=i.lat;t=t.lng>=e.lng&&n.lng<=i.lng;return s&&t},overlaps:function(t){t=B(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=(t=t.getNorthEast()).lat>e.lat&&n.lat<i.lat;t=t.lng>e.lng&&n.lng<i.lng;return s&&t},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=B(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var j={latLngToPoint:function(t,e){return t=this.projection.project(t),e=this.scale(e),this.transformation._transform(t,e)},pointToLatLng:function(t,e){return e=this.scale(e),t=this.transformation.untransform(t,e),this.projection.unproject(t)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){var e;return this.infinite?null:(e=this.projection.bounds,t=this.scale(t),new z(this.transformation.transform(e.min,t),this.transformation.transform(e.max,t)))},infinite:!(R.prototype={equals:function(t,e){return!!t&&(t=H(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+h(this.lat,t)+", "+h(this.lng,t)+")"},distanceTo:function(t){return F.distance(this,H(t))},wrap:function(){return F.wrapLatLng(this)},toBounds:function(t){var e=(t=180*t/40075017)/Math.cos(Math.PI/180*this.lat);return B([this.lat-t,this.lng-e],[this.lat+t,this.lng+e])},clone:function(){return new R(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new R(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat;e=e.lng-i.lng;
vendor: 3,838 bytes, line 74
74return 0==n&&0==e?t:(i=t.getSouthWest(),t=t.getNorthEast(),new $(new R(i.lat-n,i.lng-e),new R(t.lat-n,t.lng-e)))}},F=e({},j,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,s=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2);e=Math.sin((e.lng-t.lng)*i/2),t=o*o+Math.cos(n)*Math.cos(s)*e*e,i=2*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));return this.R*i}}),W={R:W=6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE;i=Math.max(Math.min(i,t.lat),-i),i=Math.sin(i*e);return new A(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(t){var e=180/Math.PI;return new R((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:new z([-(W*=Math.PI),-W],[W,W])};function Y(t,e,i,n){v(t)?(this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3]):(this._a=t,this._b=e,this._c=i,this._d=n)}function Z(t,e,i,n){return new Y(t,e,i,n)}Y.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return t.x=(e=e||1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return new A((t.x/(e=e||1)-this._b)/this._a,(t.y/e-this._d)/this._c)}};var V=e({},F,{code:"EPSG:3857",projection:W,transformation:Z(V=.5/(Math.PI*W.R),.5,-V,.5)}),q=e({},V,{code:"EPSG:900913"});function U(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function G(t,e){for(var i,n,s,o,a="",r=0,l=t.length;r<l;r++){for(i=0,n=(s=t[r]).length;i<n;i++)a+=(i?"L":"M")+(o=s[i]).x+" "+o.y;a+=e?Mt.svg?"z":"x":""}return a||"M0 0"}var X=document.documentElement.style,K="ActiveXObject"in window,Q=K&&!document.addEventListener,J="msLaunchUri"in navigator&&!("documentMode"in document),tt=Ct("webkit"),et=Ct("android"),it=Ct("android 2")||Ct("android 3"),nt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=(nt=et&&Ct("Google")&&nt<537&&!("AudioNode"in window),!!window.opera),ot=!J&&Ct("chrome"),at=Ct("gecko")&&!tt&&!st&&!K,rt=!ot&&Ct("safari"),lt=Ct("phantom"),ct="OTransition"in X,ht=0===navigator.platform.indexOf("Win"),dt=K&&"transition"in X,ut="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!it,pt=(X="MozPerspective"in X,!window.L_DISABLE_3D&&(dt||ut||X)&&!ct&&!lt),ft=(qi="undefined"!=typeof orientation||Ct("mobile"))&&tt,mt=qi&&ut,gt=!window.PointerEvent&&window.MSPointerEvent,vt=!(!window.PointerEvent&&!gt),_t="ontouchstart"in window||!!window.TouchEvent,yt=!window.L_NO_TOUCH&&(_t||vt),bt=qi&&st,wt=qi&&at,xt=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),kt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Tt=!(!document.createElementNS||!U("svg").createSVGRect),Et=!!Tt&&((Et=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Et.firstChild&&Et.firstChild.namespaceURI));function Ct(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Mt={ie:K,ielt9:Q,edge:J,webkit:tt,android:et,android23:it,androidStock:nt,opera:st,chrome:ot,gecko:at,safari:rt,phantom:lt,opera12:ct,win:ht,ie3d:dt,webkit3d:ut,gecko3d:X,any3d:pt,mobile:qi,mobileWebkit:ft,mobileWebkit3d:mt,msPointer:gt,pointer:vt,touch:yt,touchNative:_t,mobileOpera:bt,mobileGecko:wt,retina:xt,passiveEvents:kt,canvas:St,svg:Tt,vml:!Tt&&function(){try{var t=document.createElement("div"),e=(t.innerHTML='<v:shape adj="1"/>',t.firstChild);return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),inlineSvg:Et,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Lt=Mt.msPointer?"MSPointerDown":"pointerdown",Pt=Mt.msPointer?"MSPointerMove":"pointermove",Dt=
vendor: 4,640 bytes, line 74
74Mt.msPointer?"MSPointerUp":"pointerup",At=Mt.msPointer?"MSPointerCancel":"pointercancel",Ot={touchstart:Lt,touchmove:Pt,touchend:Dt,touchcancel:At},It={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Pe(e),Ht(t,e)},touchmove:Ht,touchend:Ht,touchcancel:Ht},zt={},Nt=!1;function $t(t){zt[t.pointerId]=t}function Bt(t){zt[t.pointerId]&&(zt[t.pointerId]=t)}function Rt(t){delete zt[t.pointerId]}function Ht(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],zt)e.touches.push(zt[i]);e.changedTouches=[e],t(e)}}var jt=200;var Ft,Wt,Yt,Zt,Vt,qt,Ut=he(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Gt=he(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Xt="webkitTransition"===Gt||"OTransition"===Gt?Gt+"End":"transitionend";function Kt(t){return"string"==typeof t?document.getElementById(t):t}function Qt(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];return"auto"===(i=i&&"auto"!==i||!document.defaultView?i:(t=document.defaultView.getComputedStyle(t,null))?t[e]:null)?null:i}function Jt(t,e,i){return(t=document.createElement(t)).className=e||"",i&&i.appendChild(t),t}function te(t){var e=t.parentNode;e&&e.removeChild(t)}function ee(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ie(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ne(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function se(t,e){return void 0!==t.classList?t.classList.contains(e):0<(t=le(t)).length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t)}function oe(t,e){var i;if(void 0!==t.classList)for(var n=u(e),s=0,o=n.length;s<o;s++)t.classList.add(n[s]);else se(t,e)||re(t,((i=le(t))?i+" ":"")+e)}function ae(t,e){void 0!==t.classList?t.classList.remove(e):re(t,d((" "+le(t)+" ").replace(" "+e+" "," ")))}function re(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function le(t){return void 0===(t=t.correspondingElement?t.correspondingElement:t).className.baseVal?t.className:t.className.baseVal}function ce(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function he(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function de(t,e,i){e=e||new A(0,0),t.style[Ut]=(Mt.ie3d?"translate("+e.x+"px,"+e.y+"px)":"translate3d("+e.x+"px,"+e.y+"px,0)")+(i?" scale("+i+")":"")}function ue(t,e){t._leaflet_pos=e,Mt.any3d?de(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function pe(t){return t._leaflet_pos||new A(0,0)}function fe(){be(window,"dragstart",Pe)}function me(){xe(window,"dragstart",Pe)}function ge(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(ve(),qt=(Vt=t).style.outlineStyle,t.style.outlineStyle="none",be(window,"keydown",ve))}function ve(){Vt&&(Vt.style.outlineStyle=qt,qt=Vt=void 0,xe(window,"keydown",ve))}function _e(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function ye(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}function be(t,e,i,n){if(e&&"object"==typeof e)for(var s in e)Te(t,s,e[s],i);else for(var o=0,a=(e=u(e)).length;o<a;o++)Te(t,e[o],i,n);return this}Zt="onselectstart"in document?(Yt=function(){be(window,"selectstart",Pe)},function(){xe(window,"selectstart",Pe)}):(Wt=he(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Yt=function(){var t;Wt&&(t=document.documentElement.style,Ft=t[Wt],t[Wt]="none")},function(){Wt&&(document.documentElement.style[Wt]=Ft,Ft=void 0)}),K={__proto__:null,TRANSFORM:Ut,TRANSITION:Gt,TRANSITION_END:Xt,get:Kt,getStyle:Qt,create:Jt,remove:te,empty:ee,toFront:ie,toBack:ne,hasClass:se,addClass:oe,removeClass:ae,setClass:re,getClass:le,setOpacity:ce,testProp:he,setTransform:de,setPosition:ue,getPosition:pe,get disableTextSelection(){return Yt},get enableTextSelection(){return Zt},disableImageDrag:fe,enableImageDrag:me,preventOutline:ge,restoreOutline:ve,getSizedParentNode:_e,getScale:ye};var we="_leaflet_events";function xe(t,e,i,n){if(1===arguments.length)ke(t),delete t[we];else if(e&&"object"==typeof e)for(var s in e)Ee(t,s,e[s],i);else if(e=u(e),2===arguments.length)ke(t,(function(t){return-1!==_(e,t)}));else for(var o=0,a=e.length;o<a;o++)Ee(t,e[o],i,n);return this}function ke(t,e){for(var i in t[we]){var n=i.split(/\d/)[0];e&&!e(n)||Ee(t,n,null,null,i)}}
vendor: 5,235 bytes, line 74
74var Se={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Te(t,e,i,n){var s,o,r=e+a(i)+(n?"_"+a(n):"");t[we]&&t[we][r]||(o=s=function(e){return i.call(n||t,e||window.event)},!Mt.touchNative&&Mt.pointer&&0===e.indexOf("touch")?s=function(t,e,i){return"touchstart"!==e||Nt||(document.addEventListener(Lt,$t,!0),document.addEventListener(Pt,Bt,!0),document.addEventListener(Dt,Rt,!0),document.addEventListener(At,Rt,!0),Nt=!0),It[e]?(i=It[e].bind(this,i),t.addEventListener(Ot[e],i,!1),i):(console.warn("wrong event specified:",e),c)}(t,e,s):Mt.touch&&"dblclick"===e?s=function(t,e){t.addEventListener("dblclick",e);var i,n=0;function s(t){var s;1!==t.detail?i=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||(s=Ae(t)).some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))&&!s.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))||((s=Date.now())-n<=jt?2==++i&&e(function(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return(t=n).type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}(t)):i=1,n=s)}return t.addEventListener("click",s),{dblclick:e,simDblclick:s}}(t,s):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Se[e]||e,s,!!Mt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?t.addEventListener(Se[e],s=function(e){e=e||window.event,Ne(t,e)&&o(e)},!1):t.addEventListener(e,o,!1):t.attachEvent("on"+e,s),t[we]=t[we]||{},t[we][r]=s)}function Ee(t,e,i,n,s){var o,r;s=s||e+a(i)+(n?"_"+a(n):""),(i=t[we]&&t[we][s])&&(!Mt.touchNative&&Mt.pointer&&0===e.indexOf("touch")?(n=t,r=i,Ot[o=e]?n.removeEventListener(Ot[o],r,!1):console.warn("wrong event specified:",o)):Mt.touch&&"dblclick"===e?(n=i,(r=t).removeEventListener("dblclick",n.dblclick),r.removeEventListener("click",n.simDblclick)):"removeEventListener"in t?t.removeEventListener(Se[e]||e,i,!1):t.detachEvent("on"+e,i),t[we][s]=null)}function Ce(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Me(t){return Te(t,"wheel",Ce),this}function Le(t){return be(t,"mousedown touchstart dblclick contextmenu",Ce),t._leaflet_disable_click=!0,this}function Pe(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function De(t){return Pe(t),Ce(t),this}function Ae(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Oe(t,e){var i,n;return e?(n=(i=ye(e)).boundingClientRect,new A((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)):new A(t.clientX,t.clientY)}var Ie=Mt.linux&&Mt.chrome?window.devicePixelRatio:Mt.mac?3*window.devicePixelRatio:0<window.devicePixelRatio?2*window.devicePixelRatio:1;function ze(t){return Mt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ie:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Ne(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}Q={__proto__:null,on:be,off:xe,stopPropagation:Ce,disableScrollPropagation:Me,disableClickPropagation:Le,preventDefault:Pe,stop:De,getPropagationPath:Ae,getMousePosition:Oe,getWheelDelta:ze,isExternalTarget:Ne,addListener:be,removeListener:xe};var $e=D.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=pe(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=T(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){t=this._startPos.add(this._offset.multiplyBy(t)),e&&t._round(),ue(this._el,t),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Be=D.extend({options:{crs:V,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(H(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Gt&&Mt.any3d&&!Mt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),be(this._proxy,Xt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 16,406 bytes, line 74
74,setView:function(t,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(H(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i,n.pan&&n.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Mt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Mt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2);t=(t instanceof A?t:this.latLngToContainerPoint(t)).subtract(s).multiplyBy(1-1/n),n=this.containerPointToLatLng(s.add(t));return this.setView(n,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():B(t);var i=I(e.paddingTopLeft||e.padding||[0,0]),n=I(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,i.add(n));return(s="number"==typeof e.maxZoom?Math.min(e.maxZoom,s):s)===1/0?{center:t.getCenter(),zoom:s}:(e=n.subtract(i).divideBy(2),n=this.project(t.getSouthWest(),s),i=this.project(t.getNorthEast(),s),{center:this.unproject(n.add(i).divideBy(2).add(e),s),zoom:s})},fitBounds:function(t,e){if((t=B(t)).isValid())return t=this._getBoundsCenterZoom(t,e),this.setView(t.center,t.zoom,e);throw new Error("Bounds are not valid.")},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){var i;return e=e||{},(t=I(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new $e,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(oe(this._mapPane,"leaflet-pan-anim"),i=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend")},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!Mt.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),s=this.project(t),o=this.getSize(),a=this._zoom,r=(t=H(t),e=void 0===e?a:e,Math.max(o.x,o.y)),l=r*this.getZoomScale(a,e),c=s.distanceTo(n)||1,h=1.42,d=h*h;function u(t){return t=(l*l-r*r+(t?-1:1)*d*d*c*c)/(2*(t?l:r)*d*c),(t=Math.sqrt(t*t+1)-t)<1e-9?-18:Math.log(t)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}var m=u(0);var g=Date.now(),v=(u(1)-m)/h,_=i.duration?1e3*i.duration:1e3*v*.8;return this._moveStart(!0,i.noMoveStart),function i(){var o=(Date.now()-g)/_,l=(1-Math.pow(1-o,1.5))*v;o<=1?(this._flyToFrame=T(i,this),this._move(this.unproject(n.add(s.subtract(n).multiplyBy(function(t){return r*(f(m)*(p(t=m+h*t)/f(t))-p(m))/d}(l)/c)),a),this.getScaleZoom(r/(o=l,r*(f(m)/f(m+h*o))),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){return t=this._getBoundsCenterZoom(t,e),this.flyTo(t.center,t.zoom,e)},setMaxBounds:function(t){return t=B(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter();t=this._limitCenter(i,this._zoom,B(t));return i.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=I(e.paddingBottomRight||e.padding||[0,0]),s=this.project(this.getCenter()),o=(t=this.project(t),(i=N([(o=this.getPixelBounds()).min.add(i),o.max.subtract(n)])).getSize());return i.contains(t)||(this._enforcingBounds=!0,n=t.subtract(i.getCenter()),i=i.extend(t).getSize().subtract(o),s.x+=n.x<0?-i.x:i.x,s.y+=n.y<0?-i.y:i.y,this.panTo(this.unproject(s),e),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize(),n=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),o=i.divideBy(2).round(),a=n.divideBy(2).round();return(o=o.subtract(a)).x||o.y?(t.animate&&t.pan?this.panBy(o):(t.pan&&this._rawPanBy(o),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){var i,n;return t=this._locateOptions=e({timeout:1e4,watch:!1},t),"geolocation"in navigator?(i=s(this._handleGeolocationResponse,this),n=s(this._handleGeolocationError,this),t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,n,t):navigator.geolocation.getCurrentPosition(i,n,t)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e;this._container._leaflet_id&&(e=t.code,t=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e,i,n=new R(t.coords.latitude,t.coords.longitude),s=n.toBounds(2*t.coords.accuracy),o=this._locateOptions,a=(o.setView&&(e=this.getBoundsZoom(s),this.setView(n,o.maxZoom?Math.min(e,o.maxZoom):e)),{latlng:n,bounds:s,timestamp:t.timestamp});for(i in t.coords)"number"==typeof t.coords[i]&&(a[i]=t.coords[i]);this.fire("locationfound",a)}},addHandler:function(t,e){return e&&(e=this[t]=new e(this),this._handlers.push(e),this.options[t]&&e.enable()),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),te(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)te(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){return e=Jt("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane),t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new $(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=B(t),i=I(i||[0,0]);var n=this.getZoom()||0,s=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),r=(t=t.getSouthEast(),i=this.getSize().subtract(i),t=N(this.project(t,n),this.project(a,n)).getSize(),a=Mt.any3d?this.options.zoomSnap:1,i.x/t.x);i=i.y/t.y,t=e?Math.max(r,i):Math.min(r,i),n=this.getScaleZoom(t,n);return a&&(n=Math.round(n/(a/100))*(a/100),n=e?Math.ceil(n/a)*a:Math.floor(n/a)*a),Math.max(s,Math.min(o,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){return new z(t=this._getTopLeftPoint(t,e),t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e,t=i.zoom(t*i.scale(e));return isNaN(t)?1/0:t},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(I(t),e)},layerPointToLatLng:function(t){return t=I(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint:function(t){return this.project(H(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){return t=this.containerPointToLayerPoint(I(t)),this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return Oe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){if(!(t=this._container=Kt(t)))throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");be(t,"scroll",this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation&&Mt.any3d,oe(t,"leaflet-container"+(Mt.touch?" leaflet-touch":"")+(Mt.retina?" leaflet-retina":"")+(Mt.ielt9?" leaflet-oldie":"")+(Mt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),Qt(t,"position"));"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ue(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(oe(t.markerPane,"leaflet-zoom-hide"),oe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){ue(this._mapPane,new A(0,0));var n=!this._loaded,s=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(s,i)._move(t,e)._moveEnd(s),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var s=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((s||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ue(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var e=t?xe:be;e((this._targets[a(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Mt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],s="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,r=!1;o;){if((i=this._targets[a(o)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){r=!0;break}if(i&&i.listens(e,!0)){if(s&&!Ne(o,t))break;if(n.push(i),s)break}if(o===this._container)break;o=o.parentNode}return n.length||r||s||!this.listens(e,!0)?n:[this]},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e,i=t.target||t.srcElement;!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(i)||("mousedown"===(e=t.type)&&ge(i),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){"click"===t.type&&((l=e({},t)).type="preclick",this._fireDOMEvent(l,l.type,n));var s=this._findEventTargets(t,i);if(n){for(var o=[],a=0;a<n.length;a++)n[a].listens(i,!0)&&o.push(n[a]);s=o.concat(s)}if(s.length){"contextmenu"===i&&Pe(t);var r,l=s[0],c={originalEvent:t};for("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(r=l.getLatLng&&(!l._radius||l._radius<=10),c.containerPoint=r?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=r?l.getLatLng():this.layerPointToLatLng(c.layerPoint)),a=0;a<s.length;a++)if(s[a].fire(i,c,!0),c.originalEvent._stopped||!1===s[a].options.bubblingMouseEvents&&-1!==_(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return pe(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){return i=this._getNewPixelOrigin(i,e),this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,i){return i=this._getNewPixelOrigin(i,e),N([this.project(t.getSouthWest
vendor: 4,534 bytes, line 74
74(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){var n,s;return!i||(n=this.project(t,e),s=this.getSize().divideBy(2),s=new z(n.subtract(s),n.add(s)),s=this._getBoundsOffset(s,i,e),Math.abs(s.x)<=1&&Math.abs(s.y)<=1)?t:this.unproject(n.add(s),e)},_limitOffset:function(t,e){var i;return e?(i=new z((i=this.getPixelBounds()).min.add(t),i.max.add(t)),t.add(this._getBoundsOffset(i,e))):t},_getBoundsOffset:function(t,e,i){return i=(e=N(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i))).min.subtract(t.min),e=e.max.subtract(t.max),new A(this._rebound(i.x,-e.x),this._rebound(i.y,-e.y))},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Mt.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ae(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){return t=this._getCenterOffset(t)._trunc(),!(!0!==(e&&e.animate)&&!this.getSize().contains(t)||(this.panBy(t,e),0))},_createAnimProxy:function(){var t=this._proxy=Jt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=Ut,i=this._proxy.style[e];de(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){te(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();de(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(!this._animatingZoom){if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e);n=this._getCenterOffset(t)._divideBy(1-1/n);if(!0!==i.animate&&!this.getSize().contains(n))return!1;T((function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)}),this)}return!0},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,oe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ae(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Re(t){return new He(t)}var He=M.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition();t=t._controlCorners[i];return oe(e,"leaflet-control"),-1!==i.indexOf("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(te(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}}),je=(Be.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this}
vendor: 6,810 bytes, line 74
74,_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=Jt("div",e+"control-container",this._container);function n(n,s){t[n+s]=Jt("div",e+n+" "+e+s,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)te(this._controlCorners[t]);te(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),He.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in p(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return He.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){return t.off("add remove",this._onLayerChange,this),(t=this._getLayer(a(t)))&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){oe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(oe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ae(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ae(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=Jt("div",t),i=this.options.collapsed,n=(e.setAttribute("aria-haspopup",!0),Le(e),Me(e),this._section=Jt("section",t+"-list")),s=(i&&(this._map.on("click",this.collapse,this),be(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)),this._layersLink=Jt("a",t+"-toggle",e));s.href="#",s.title="Layers",s.setAttribute("role","button"),be(s,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Pe(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=Jt("div",t+"-base",n),this._separator=Jt("div",t+"-separator",n),this._overlaysList=Jt("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(s((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(this._container){ee(this._baseLayersList),ee(this._overlaysList),this._layerControlInputs=[];for(var t,e,i,n=0,s=0;s<this._layers.length;s++)i=this._layers[s],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,n+=i.overlay?0:1;this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&1<n)?"":"none"),this._separator.style.display=e&&t?"":"none"}return this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target));(t=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null)&&this._map.fire(t,e)},_createRadioElement:function(t,e){return t='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",(e=document.createElement("div")).innerHTML=t,e.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer),s=((n=(t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+a(this),n),this._layerControlInputs.push(e),e.layerId=a(t.layer),be(e,"click",this._onInputClick,this),document.createElement("span"))).innerHTML=" "+t.name,document.createElement("span"));return i.appendChild(s),s.appendChild(e),s.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],s=[];this._handlingClick=!0;for(var o=i.length-1;0<=o;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||s.push(e);for(o=0;o<s.length;o++)this._map.hasLayer(s[o])&&this._map.removeLayer(s[o]);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])||this._map.addLayer(n[o]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),s=i.length-1;0<=s;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section,e=(this._preventClick=!0,be(t,"click",Pe),this.expand(),this);setTimeout((function(){xe(t,"click",Pe),e._preventClick=!1}))}})),Fe=He.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=Jt("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}
vendor: 4,603 bytes, line 74
74,_createButton:function(t,e,i,n,s){return(i=Jt("a",i,n)).innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),Le(i),be(i,"click",De),be(i,"click",s,this),be(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ae(this._zoomInButton,e),ae(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(oe(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(oe(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}}),We=(Be.mergeOptions({zoomControl:!0}),Be.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Fe,this.addControl(this.zoomControl))})),He.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=Jt("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=Jt("div",e,i)),t.imperial&&(this._iScale=Jt("div",e,i))},_update:function(){var t=(e=this._map).getSize().y/2,e=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial:function(t){var e,i;5280<(t=3.2808399*t)?(i=this._getRoundNum(e=t/5280),this._updateScale(this._iScale,i+" mi",i/e)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+" ft",i/t))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1);return e*(10<=(t=t/e)?10:5<=t?5:3<=t?3:2<=t?2:1)}})),Ye=He.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Mt.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=Jt("div","leaflet-control-attribution"),Le(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,e=[];for(t in this._attributions)this._attributions[t]&&e.push(t);var i=[];this.options.prefix&&i.push(this.options.prefix),e.length&&i.push(e.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}}),Ze=(J=(Be.mergeOptions({attributionControl:!0}),Be.addInitHook((function(){this.options.attributionControl&&(new Ye).addTo(this)})),He.Layers=je,He.Zoom=Fe,He.Scale=We,He.Attribution=Ye,Re.layers=function(t,e,i){return new je(t,e,i)},Re.zoom=function(t){return new Fe(t)},Re.scale=function(t){return new We(t)},Re.attribution=function(t){return new Ye(t)},M.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})),tt=(J.addTo=function(t,e){return t.addHandler(e,this),this},{Events:P}),Mt.touch?"touchstart mousedown":"mousedown"),Ve=D.extend({options:{clickTolerance:3}
vendor: 2,909 bytes, line 74
74,initialize:function(t,e,i,n){p(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(be(this._dragStartTarget,Ze,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ve._dragging===this&&this.finishDrag(!0),xe(this._dragStartTarget,Ze,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,i;this._enabled&&(this._moved=!1,se(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?Ve._dragging===this&&this.finishDrag():Ve._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((Ve._dragging=this)._preventOutline&&ge(this._element),fe(),Yt(),this._moving||(this.fire("down"),i=t.touches?t.touches[0]:t,e=_e(this._element),this._startPoint=new A(i.clientX,i.clientY),this._startPos=pe(this._element),this._parentScale=ye(e),i="mousedown"===t.type,be(document,i?"mousemove":"touchmove",this._onMove,this),be(document,i?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(t){var e;this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:!(e=new A((e=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,e.clientY)._subtract(this._startPoint)).x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,Pe(t),this._moved||(this.fire("dragstart"),this._moved=!0,oe(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),oe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ue(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){ae(document.body,"leaflet-dragging"),this._lastTarget&&(ae(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),xe(document,"mousemove touchmove",this._onMove,this),xe(document,"mouseup touchend touchcancel",this._onUp,this),me(),Zt();var e=this._moved&&this._moving;this._moving=!1,Ve._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function qe(t,e,i){for(var n,s,o,a,r,l,c,h=[1,4,2,8],d=0,u=t.length;d<u;d++)t[d]._code=ei(t[d],e);for(o=0;o<4;o++){for(l=h[o],n=[],d=0,s=(u=t.length)-1;d<u;s=d++)a=t[d],r=t[s],a._code&l?r._code&l||((c=ti(r,a,l,e,i))._code=ei(c,e),n.push(c)):(r._code&l&&((c=ti(r,a,l,e,i))._code=ei(c,e),n.push(c)),n.push(a));t=n}return t}function Ue(t,e){var i,n,s,o,a,r,l;if(!t||0===t.length)throw new Error("latlngs not passed");ni(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);for(var c=H([0,0]),h=B(t),d=(h.getNorthWest().distanceTo(h.getSouthWest
74())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(c=Ge(t)),t.length),u=[],p=0;p<d;p++){var f=H(t[p]);u.push(e.project(H([f.lat-c.lat,f.lng-c.lng])))}for(p=a=r=l=0,i=d-1;p<d;i=p++)n=u[p],s=u[i],o=n.y*s.x-s.y*n.x,r+=(n.x+s.x)*o,l+=(n.y+s.y)*o,a+=3*o;return h=0===a?u[0]:[r/a,l/a],H([(h=e.unproject(I(h))).lat+c.lat,h.lng+c.lng])}function Ge(t){for(var e=0,i=0,n=0,s=0;s<t.length;s++){var o=H(t[s]);e+=o.lat,i+=o.lng,n++}return H([e/n,i/n])}var Xe;et={__proto__:null,clipPolygon:qe,polygonCenter:Ue,centroid:Ge};function Ke(t,e){if(e&&t.length){var i=t=function(t,e){for(var i=[t[0]],n=1,s=0,o=t.length;n<o;n++)(function(t,e){var i=e.x-t.x;return i*i+(e=e.y-t.y)*e})(t[n],t[s])>e&&(i.push(t[n]),s=n);return s<o-1&&i.push(t[o-1]),i}(t,e*=e),n=i.length,s=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);s[0]=s[n-1]=1,function t(e,i,n,s,o){var a,r,l,c=0;for(r=s+1;r<=o-1;r++)c<(l=ii(e[r],e[s],e[o],!0))&&(a=r,c=l);n<c&&(i[a]=1,t(e,i,n,s,a),t(e,i,n,a,o))}(i,s,e,0,n-1);var o,a=[];for(o=0;o<n;o++)s[o]&&a.push(i[o]);return a}return t.slice()}function Qe(t,e,i){return Math.sqrt(ii(t,e,i,!0))}function Je(t,e,i,n,s){var o,a,r,l=n?Xe:ei(t,i),c=ei(e,i);for(Xe=c;;){if(!(l|c))return[t,e];if(l&c)return!1;r=ei(a=ti(t,e,o=l||c,i,s),i),o===l?(t=a,l=r):(e=a,c=r)}}function ti(t,e,i,n,s){var o,a,r=e.x-t.x,l=(e=e.y-t.y,n.min);n=n.max;return 8&i?(o=t.x+r*(n.y-t.y)/e,a=n.y):4&i?(o=t.x+r*(l.y-t.y)/e,a=l.y):2&i?(o=n.x,a=t.y+e*(n.x-t.x)/r):1&i&&(o=l.x,a=t.y+e*(l.x-t.x)/r),new A(o,a,s)}function ei(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function ii(t,e,i,n){var s=e.x,o=(e=e.y,i.x-s),a=i.y-e,r=o*o+a*a;return 0<r&&(1<(r=((t.x-s)*o+(t.y-e)*a)/r)?(s=i.x,e=i.y):0<r&&(s+=o*r,e+=a*r)),o=t.x-s,a=t.y-e,n?o*o+a*a:new A(s,e)}function ni(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function si(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),ni(t)}function oi(t,e){var i,n,s,o,a,r;if(!t||0===t.length)throw new Error("latlngs not passed");ni(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);for(var l=H([0,0]),c=B(t),h=(c.getNorthWest().distanceTo(c.getSouthWest
vendor: 3,657 bytes, line 74
74())*c.getNorthEast().distanceTo(c.getNorthWest())<1700&&(l=Ge(t)),t.length),d=[],u=0;u<h;u++){var p=H(t[u]);d.push(e.project(H([p.lat-l.lat,p.lng-l.lng])))}for(i=u=0;u<h-1;u++)i+=d[u].distanceTo(d[u+1])/2;if(0===i)r=d[0];else for(n=u=0;u<h-1;u++)if(s=d[u],o=d[u+1],i<(n+=a=s.distanceTo(o))){r=[o.x-(a=(n-i)/a)*(o.x-s.x),o.y-a*(o.y-s.y)];break}return H([(c=e.unproject(I(r))).lat+l.lat,c.lng+l.lng])}it={__proto__:null,simplify:Ke,pointToSegmentDistance:Qe,closestPointOnSegment:function(t,e,i){return ii(t,e,i)},clipSegment:Je,_getEdgeIntersection:ti,_getBitCode:ei,_sqClosestPointOnSegment:ii,isFlat:ni,_flat:si,polylineCenter:oi},nt={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new z([-180,-90],[180,90])},st={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,s=this.R_MINOR/i,o=(s=Math.sqrt(1-s*s))*Math.sin(n);o=Math.tan(Math.PI/4-n/2)/Math.pow((1-o)/(1+o),s/2),n=-i*Math.log(Math.max(o,1e-10));return new A(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,s=this.R_MINOR/n,o=Math.sqrt(1-s*s),a=Math.exp(-t.y/n),r=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&1e-7<Math.abs(c);l++)e=o*Math.sin(r),e=Math.pow((1-e)/(1+e),o/2),r+=c=Math.PI/2-2*Math.atan(a*e)-r;return new R(r*i,t.x*i/n)}},ot={__proto__:null,LonLat:nt,Mercator:st,SphericalMercator:W},rt=e({},F,{code:"EPSG:3395",projection:st,transformation:Z(at=.5/(Math.PI*st.R),.5,-at,.5)});var ai=e({},F,{code:"EPSG:4326",projection:nt,transformation:Z(1/180,1,-1/180,.5)}),ri=(lt=e({},j,{projection:nt,transformation:Z(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng;e=e.lat-t.lat;return Math.sqrt(i*i+e*e)},infinite:!0}),ct=(j.Earth=F,j.EPSG3395=rt,j.EPSG3857=V,j.EPSG900913=q,j.EPSG4326=ai,j.Simple=lt,D.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e,i=t.target;i.hasLayer(this)&&(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents&&(e=this.getEvents(),i.on(e,this),this.once("remove",(function(){i.off(e,this)}),this)),this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this}))}})),Be.include({addLayer:function(t){var e;if(t._layerAdd)return e=a(t),this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this;throw new Error("The provided object is not a Layer.")},removeLayer:function(t){var e=a(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return a(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?v(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){t=a(t),this._zoomBoundLayers[t]&&(
vendor: 8,549 bytes, line 74
74delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var t,e=1/0,i=-1/0,n=this._getZoomSpan();for(t in this._zoomBoundLayers){var s=this._zoomBoundLayers[t].options;e=void 0===s.minZoom?e:Math.min(e,s.minZoom),i=void 0===s.maxZoom?i:Math.max(i,s.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}}),ct.extend({initialize:function(t,e){var i,n;if(p(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){return t=t in this._layers?t:this.getLayerId(t),this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:a})),li=ri.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),ri.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),ri.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t,e=new $;for(t in this._layers){var i=this._layers[t];e.extend(i.getBounds?i.getBounds():i.getLatLng())}return e}}),ci=M.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(i)return i=this._createImg(i,e&&"IMG"===e.tagName?e:null),this._setIconStyles(i,t),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i;if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles:function(t,e){var i=this.options,n=I(n="number"==typeof(n=i[e+"Size"])?[n,n]:n),s=I("shadow"===e&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Mt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),hi=ci.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof hi.imagePath&&(hi.imagePath=this._detectIconPath()),(this.options.imagePath||hi.imagePath)+ci.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){function e(t,e,i){return(e=e.exec(t))&&e[i]}return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Jt("div","leaflet-default-icon-path",document.body),e=Qt(t,"background-image")||Qt(t,"backgroundImage");return document.body.removeChild(t),(e=this._stripUrl(e))?e:(t=document.querySelector('link[href$="leaflet.css"]'))?t.href.substring(0,t.href.length-11-1):""}}),di=J.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Ve(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),oe(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ae(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,o=pe(e._icon),a=i.getPixelBounds(),r=i.getPixelOrigin();(r=N(a.min._subtract(r).add(s),a.max._subtract(r).subtract(s))).contains(o)||(s=I((Math.max(r.max.x,o.x)-r.max.x)/(a.max.x-r.max.x)-(Math.min(r.min.x,o.x)-r.min.x)/(a.min.x-r.min.x),(Math.max(r.max.y,o.y)-r.max.y)/(a.max.y-r.max.y)-(Math.min(r.min.y,o.y)-r.min.y)/(a.min.y-r.min.y)).multiplyBy(n),i.panBy(s,{animate:!1}),this._draggable._newPos._add(s),this._draggable._startPos._add(s),ue(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=T(this._adjustPan.bind(this,t)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=T(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=pe(e._icon),s=e._map.layerPointToLatLng(n);i&&ue(i,n),e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ui=ct.extend({options:{icon:new hi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=H(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=H(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t,e=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=!1,s=!1;(t=((t=e.icon.createIcon(this._icon))!==this._icon&&(this._icon&&this._removeIcon(),n=!0,e.title&&(t.title=e.title),"IMG"===t.tagName&&(t.alt=e.alt||"")),oe(t,i),e.keyboard&&(t.tabIndex="0",t.setAttribute("role","button")),this._icon=t,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&be(t,"focus",this._panOnFocus,this),e.icon.createShadow(this._shadow)))!==this._shadow&&(this._removeShadow(),s=!0),t&&(oe(t,i),t.alt=""),this._shadow=t,e.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),t&&s&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 5,567 bytes, line 74
74),this.options.autoPanOnFocus&&xe(this._icon,"focus",this._panOnFocus,this),te(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&te(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ue(this._icon,t),this._shadow&&ue(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round(),this._setPos(t)},_initInteraction:function(){var t;this.options.interactive&&(oe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),di&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new di(this),t&&this.dragging.enable()))},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ce(this._icon,t),this._shadow&&ce(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t,e,i=this._map;i&&(t=(e=this.options.icon.options).iconSize?I(e.iconSize):I(0,0),e=e.iconAnchor?I(e.iconAnchor):I(0,0),i.panInside(this._latlng,{paddingTopLeft:e,paddingBottomRight:t.subtract(e)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),pi=ct.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),fi=pi.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=H(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=H(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return pi.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance();t=[t+i,e+i];this._pxBounds=new z(this._point.subtract(t),this._point.add(t))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),mi=fi.extend({initialize:function(t,i,n){if(p(this,i="number"==typeof i?e({},n,{radius:i}):i),this._latlng=H(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new $(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:pi.prototype.setStyle,_project:function(){var t,e,i,n,s,o=this._latlng.lng,a=this._latlng.lat,r=this._map,l=r.options.crs;l.distance===F.distance?(n=Math.PI/180,s=this._mRadius/F.R/n,t=r.project([a+s,o]),e=r.project([a-s,o]),e=t.add(e).divideBy(2),i=r.unproject(e).lat,n=Math.acos((Math.cos(s*n)-Math.sin(a*n)*Math.sin(i*n))/(Math.cos(a*n)*Math.cos(i*n)))/n,!isNaN(n)&&0!==n||(n=s/Math.cos(Math.PI/180*a)),this._point=e.subtract(r.getPixelOrigin()),this._radius=isNaN(n)?0:e.x-r.project([i,o-n]).x,this._radiusY=e.y-t.y):(s=l.unproject(l.project(this._latlng).subtract([this._mRadius,0])),this._point=r.latLngToLayerPoint(this._latlng),this._radius=this._point.x-r.latLngToLayerPoint(s).x),this._updateBounds()}}),gi=pi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e=1/0,i=null,n=ii,s=0,o=this._parts.length;s<o;s++)for(var a=this._parts[s],r=1,l=a.length;r<l;r++){var c,h,d=n(t,c=a[r-1],h=a[r],!0);d<e&&(e=d,i=n(t,c,h))}return i&&(i.distance=Math.sqrt(e)),i},getCenter:function(){if(this._map)return oi(this._defaultShape(),this._map.options.crs);
vendor: 6,919 bytes, line 74
74throw new Error("Must add layer to map before using getCenter()")},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=H(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new $,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return ni(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=ni(t),n=0,s=t.length;n<s;n++)i?(e[n]=H(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=new A(t=this._clickTolerance(),t);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(t,e,i){var n,s,o=t[0]instanceof R,a=t.length;if(o){for(s=[],n=0;n<a;n++)s[n]=this._map.latLngToLayerPoint(t[n]),i.extend(s[n]);e.push(s)}else for(n=0;n<a;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var e,i,n,s,o=this._parts,a=0,r=0,l=this._rings.length;a<l;a++)for(e=0,i=(s=this._rings[a]).length;e<i-1;e++)(n=Je(s[e],s[e+1],t,e,!0))&&(o[r]=o[r]||[],o[r].push(n[0]),n[1]===s[e+1]&&e!==i-2||(o[r].push(n[1]),r++))},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Ke(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,s,o,a,r,l=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(t))for(i=0,o=this._parts.length;i<o;i++)for(n=0,s=(a=(r=this._parts[i]).length)-1;n<a;s=n++)if((e||0!==n)&&Qe(t,r[s],r[n])<=l)return!0;return!1}});gi._flat=si;var vi=gi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(this._map)return Ue(this._defaultShape(),this._map.options.crs);throw new Error("Must add layer to map before using getCenter()")},_convertLatLngs:function(t){var e=(t=gi.prototype._convertLatLngs.call(this,t)).length;return 2<=e&&t[0]instanceof R&&t[0].equals(t[e-1])&&t.pop(),t},_setLatLngs:function(t){gi.prototype._setLatLngs.call(this,t),ni(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(ni(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var t=this._renderer._bounds,e=new A(e=this.options.weight,e);t=new z(t.min.subtract(e),t.max.add(e));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,n=0,s=this._rings.length;n<s;n++)(i=qe(this._rings[n],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,s,o,a,r,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(s=0,r=this._parts.length;s<r;s++)for(o=0,a=(l=(e=this._parts[s]).length)-1;o<l;a=o++)i=e[o],n=e[a],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(c=!c);return c||gi.prototype._containsPoint.call(this,t,!0)}}),_i=li.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,s=v(t)?t:t.features;if(s){for(e=0,i=s.length;e<i;e++)((n=s[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o,a=this.options;return a.filter&&!a.filter(t)||!(o=yi(t,a))?this:(o.feature=Ei(t),o.defaultOptions=o.options,this.resetStyle(o),a.onEachFeature&&a.onEachFeature(t,o),this.addLayer(o))},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function yi(t,e){var i,n,s,o,a="Feature"===t.type?t.geometry:t,r=a?a.coordinates:null,l=[],c=e&&e.pointToLayer,h=e&&e.coordsToLatLng||wi;if(!r&&!a)return null;switch(a.type){case"Point":return bi(c,t,i=h(r),e);case"MultiPoint":for(s=0,o=r.length;s<o;s++)i=h(r[s]),l.push(bi(c,t,i,e));return new li(l);case"LineString":case"MultiLineString":return n=xi(r,"LineString"===a.type?0:1,h),new gi(n,e);case"Polygon":case"MultiPolygon":return n=xi(r,"Polygon"===a.type?1:2,h),new vi(n,e);case"GeometryCollection":for(s=0,o=a.geometries.length;s<o;s++){var d=yi({geometry:a.geometries[s],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new li(l);case"FeatureCollection":for(s=0,o=a.features.length;s<o;s++){var u=yi(a.features[s],e);u&&l.push(u)}return new li(l);default:throw new Error("Invalid GeoJSON object.")}}function bi(t,e,i,n){return t?t(e,i):new ui(i,n&&n.markersInheritOptions&&n)}function wi(t){return new R(t[1],t[0],t[2])}function xi(t,e,i){for(var n,s=[],o=0,a=t.length;o<a;o++)n=e?xi(t[o],e-1,i):(i||wi)(t[o]),s.push(n);return s}function ki(t,e){return void 0!==(t=H(t)).alt?[h(t.lng,e),h(t.lat,e),h(t.alt,e)]:[h(t.lng,e),h(t.lat,e)]}function Si(t,e,i,n){for(var s=[],o=0,a=t.length;o<a;o++)s.push(e?Si(t[o],ni(t[o])?0:e-1,i,n):ki(t[o],n));return!e&&i&&0<s.length&&s.push(s[0].slice()),s}function Ti(t,i){return t.feature?e({},t.feature,{geometry:i}):Ei(i)}function Ei(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function Ci(t,e){return new _i(t,e)}ht={toGeoJSON:function(t){return Ti(this,{type:"Point",coordinates:ki(this.getLatLng(),t)})}},ui.include(ht),mi.include(ht),fi.include(ht),gi.include({toGeoJSON:function(t){var e=!ni(this._latlngs);return Ti(this,{type:(e?"Multi":"")+"LineString",coordinates:Si(this._latlngs,e?1:0,!1,t)})}}),vi.include({toGeoJSON:function(t){var e=!ni(this._latlngs),i=e&&!ni(this._latlngs[0]);t=Si(this._latlngs,i?2:e?1:0,!0,t);return Ti(this,{type:(i?"Multi":"")+"Polygon",coordinates:t=e?t:[t]})}}),ri.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),Ti(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e,i,n=this.feature&&this.feature.geometry&&this.feature.geometry.type;return"MultiPoint"===n?this.toMultiPoint(t):(e="GeometryCollection"===n,i=[],this.eachLayer((function(n){n.toGeoJSON&&(n=n.toGeoJSON(t),e?i.push(n.geometry):"FeatureCollection"===(n=Ei(n)).type?i.push.apply(i,n.features):i.push(n))})),e?Ti(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i})}});dt=Ci;var Mi=ct.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""}
vendor: 11,741 bytes, line 74
74,initialize:function(t,e,i){this._url=t,this._bounds=B(e),p(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(oe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){te(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ie(this._image),this},bringToBack:function(){return this._map&&ne(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=B(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:Jt("img");oe(e,"leaflet-image-layer"),this._zoomAnimated&&oe(e,"leaflet-zoom-animated"),this.options.className&&oe(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=s(this.fire,this,"load"),e.onerror=s(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom);t=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;de(this._image,t,e)},_reset:function(){var t=this._image,e=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ue(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){ce(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Li=Mi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:Jt("video");if(oe(e,"leaflet-image-layer"),this._zoomAnimated&&oe(e,"leaflet-zoom-animated"),this.options.className&&oe(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=s(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=0<i.length?n:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var r=Jt("source");r.src=this._url[a],e.appendChild(r)}}}}),Pi=Mi.extend({_initImage:function(){var t=this._image=this._url;oe(t,"leaflet-image-layer"),this._zoomAnimated&&oe(t,"leaflet-zoom-animated"),this.options.className&&oe(t,this.options.className),t.onselectstart=c,t.onmousemove=c}}),Di=ct.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof R||v(t))?(this._latlng=H(t),p(this,e)):(p(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ce(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ce(this._container,1),this.bringToFront(),this.options.interactive&&(oe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ce(this._container,0),this._removeTimeout=setTimeout(s(te,void 0,this._container),200)):te(this._container),this.options.interactive&&(ae(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=H(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ie(this._container),this},bringToBack:function(){return this._map&&ne(this._container),this},_prepareOpen:function(t){if(!(i=this._source)._map)return!1;if(i instanceof li){var e,i=null,n=this._source._layers;for(e in n)if(n[e]._map){i=n[e];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else{if(!i.getBounds)throw new Error("Unable to get source layer LatLng.");t=i.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){var t,e,i;this._map&&(e=this._map.latLngToLayerPoint(this._latlng),t=I(this.options.offset),i=this._getAnchor(),this._zoomAnimated?ue(this._container,e.add(i)):t=t.add(e).add(i),e=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x,this._container.style.bottom=e+"px",this._container.style.left=i+"px")},_getAnchor:function(){return[0,0]}}),Ai=(Be.include({_initOverlay:function(t,e,i,n){var s=e;return s instanceof t||(s=new t(n).setContent(e)),i&&s.setLatLng(i),s}}),ct.include({_initOverlay:function(t,e,i,n){var s=i;return s instanceof t?(p(s,n),s._source=this):(s=e&&!n?e:new t(n,this)).setContent(i),s}}),Di.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Di.prototype.openOn.call(this,t)},onAdd:function(t){Di.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof pi||this._source.on("preclick",Ce))},onRemove:function(t){Di.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof pi||this._source.off("preclick",Ce))},getEvents:function(){var t=Di.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=Jt("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=Jt("div",t+"-content-wrapper",e);this._contentNode=Jt("div",t+"-content",i),Le(e),Me(this._contentNode),be(e,"contextmenu",Ce),this._tipContainer=Jt("div",t+"-tip-container",e),this._tip=Jt("div",t+"-tip",this._tipContainer),this.options.closeButton&&((i=this._closeButton=Jt("a",t+"-close-button",e)).setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">&#215;</span>',be(i,"click",(function(t){Pe(t),this.close()}),this))},_updateLayout:function(){var t=this._contentNode,e=t.style,i=(e.width="",e.whiteSpace="nowrap",t.offsetWidth),n=(i=Math.min(i,this.options.maxWidth),i=(i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="",t.offsetHeight),this.options.maxHeight);(n&&n<i?(e.height=n+"px",oe):ae)(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);var e=this._getAnchor();ue(this._container,t.add(e))},_adjustPan:function(){var t,e,i,n,s,o,a,r;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning?this._autopanning=!1:(t=this._map,e=parseInt(Qt(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+e,r=this._containerWidth,(i=new A(this._containerLeft,-e-this._containerBottom))._add(pe(this._container)),i=t.layerPointToContainerPoint(i),s=I(this.options.autoPanPadding),n=I(this.options.autoPanPaddingTopLeft||s),s=I(this.options.autoPanPaddingBottomRight||s),o=t.getSize(),a=0,i.x+r+s.x>o.x&&(a=i.x+r-o.x+s.x),i.x-a-n.x<(r=0)&&(a=i.x-n.x),i.y+e+s.y>o.y&&(r=i.y+e-o.y+s.y),i.y-r-n.y<0&&(r=i.y-n.y),(a||r)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([a,r]))))},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Oi=(Be.mergeOptions({closePopupOnClick:!0}),Be.include({openPopup:function(t,e,i){return this._initOverlay(Ai,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),ct.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ai,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof li||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e;this._popup&&this._map&&(De(t),e=t.layer||t.target,this._popup._source!==e||e instanceof pi?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)}
vendor: 9,470 bytes, line 74
74,_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),Di.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Di.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Di.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Di.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Jt("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i=this._map,n=this._container,s=i.latLngToContainerPoint(i.getCenter()),o=(i=i.layerPointToContainerPoint(t),this.options.direction),a=n.offsetWidth,r=n.offsetHeight,l=I(this.options.offset),c=this._getAnchor();i="top"===o?(e=a/2,r):"bottom"===o?(e=a/2,0):(e="center"===o?a/2:"right"===o?0:"left"===o?a:i.x<s.x?(o="right",0):(o="left",a+2*(l.x+c.x)),r/2);t=t.subtract(I(e,i,!0)).add(l).add(c),ae(n,"leaflet-tooltip-right"),ae(n,"leaflet-tooltip-left"),ae(n,"leaflet-tooltip-top"),ae(n,"leaflet-tooltip-bottom"),oe(n,"leaflet-tooltip-"+o),ue(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ce(this._container,t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),this._setPosition(t)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),Ii=(Be.include({openTooltip:function(t,e,i){return this._initOverlay(Oi,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),ct.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Oi,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){var e,i;!t&&this._tooltipHandlersAdded||(e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t)},openTooltip:function(t){return this._tooltip&&(this instanceof li||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(be(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),be(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){(t="function"==typeof t.getElement&&t.getElement())&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){var e;this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag?(this._openOnceFlag=!0,(e=this)._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))):(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)))},_moveTooltip:function(t){var e=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(t=this._map.mouseEventToContainerPoint(t.originalEvent),t=this._map.containerPointToLayerPoint(t),e=this._map.layerPointToLatLng(t)),this._tooltip.setLatLng(e)}}),ci.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){t=t&&"DIV"===t.tagName?t:document.createElement("div");var e=this.options;return e.html instanceof Element?(ee(t),t.appendChild(e.html)):t.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=I(e.bgPos),t.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(t,"icon"),t},createShadow:function(){return null}}));ci.Default=hi;var zi=ct.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Mt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),te(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ie(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ne(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=r(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),s=0,o=i.length;s<o;s++)e=i[s].style.zIndex,i[s]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Mt.ielt9){ce(this._container,this.options.opacity);var t,e=+new Date,i=!1,n=!1;for(t in this._tiles){var s,o=this._tiles[t];o.current&&o.loaded&&(s=Math.min(1,(e-o.loaded)/200),ce(o.el,s),s<1?i=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0))}n&&!this._noPrune&&this._pruneTiles(),i&&(E(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=Jt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(te(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],s=this._map;return n||((n=this._levels[t]={}).el=Jt("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=s.project(s.unproject(s.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,s.getCenter(),s.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)(i=this._tiles[t]).current&&!i.active&&(e=i.coords,this._retainParent(e.x,e.y,e.z,e.z-5)||this._retainChildren(e.x,e.y,e.z,e.z+2));for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)te(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}
vendor: 13,648 bytes, line 74
74,_retainParent:function(t,e,i,n){i-=1;var s=((s=new A(+(t=Math.floor(t/2)),+(e=Math.floor(e/2)))).z=i,this._tileCoordsToKey(s));return(s=this._tiles[s])&&s.active?s.retain=!0:(s&&s.loaded&&(s.retain=!0),n<i&&this._retainParent(t,e,i,n))},_retainChildren:function(t,e,i,n){for(var s=2*t;s<2*t+2;s++)for(var o=2*e;o<2*e+2;o++){var a=((a=new A(s,o)).z=i+1,this._tileCoordsToKey(a));(a=this._tiles[a])&&a.active?a.retain=!0:(a&&a.loaded&&(a.retain=!0),i+1<n&&this._retainChildren(s,o,i+1,n))}},_resetView:function(t){t=t&&(t.pinch||t.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var s=Math.round(e),o=(s=void 0!==this.options.maxZoom&&s>this.options.maxZoom||void 0!==this.options.minZoom&&s<this.options.minZoom?void 0:this._clampZoom(s),this.options.updateWhenZooming&&s!==this._tileZoom);n&&!o||(this._tileZoom=s,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==s&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom);e=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();Mt.any3d?de(t.el,e,n):ue(t.el,e)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,s=this._map.getPixelWorldBounds(this._tileZoom);s&&(this._globalTileRange=this._pxBoundsToTileRange(s)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=(i=this._map)._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),i=(e=i.getZoomScale(e,this._tileZoom),t=i.project(t,this._tileZoom).floor(),i.getSize().divideBy(2*e));return new z(t.subtract(i),t.add(i))},_update:function(t){if(n=this._map){var e=this._clampZoom(n.getZoom());if(void 0===t&&(t=n.getCenter()),void 0!==this._tileZoom){var i,n=this._getTiledPixelBounds(t),s=this._pxBoundsToTileRange(n),o=s.getCenter(),a=[],r=(n=this.options.keepBuffer,new z(s.getBottomLeft().subtract([n,-n]),s.getTopRight().add([n,-n])));if(!(isFinite(s.min.x)&&isFinite(s.min.y)&&isFinite(s.max.x)&&isFinite(s.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(i in this._tiles){var l=this._tiles[i].coords;l.z===this._tileZoom&&r.contains(new A(l.x,l.y))||(this._tiles[i].current=!1)}if(1<Math.abs(e-this._tileZoom))this._setView(t,e);else{for(var c=s.min.y;c<=s.max.y;c++)for(var h=s.min.x;h<=s.max.x;h++){var d,u=new A(h,c);u.z=this._tileZoom,this._isValidTile(u)&&((d=this._tiles[this._tileCoordsToKey(u)])?d.current=!0:a.push(u))}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var p=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],p);this._level.el.appendChild(p)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}return!this.options.bounds||(e=this._tileCoordsToBounds(t),B(this.options.bounds).overlaps(e))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i);i=n.add(i);return[e.unproject(n,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){return t=new $((t=this._tileCoordsToNwSe(t))[0],t[1]),this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=new A(+(t=t.split(":"))[0],+t[1]);return e.z=+t[2],e},_removeTile:function(t){var e=this._tiles[t];e&&(te(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){oe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,Mt.ielt9&&this.options.opacity<1&&ce(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&T(s(this._tileReady,this,t,null,o)),ue(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(ce(i.el,0),E(this._fadeFrame),this._fadeFrame=T(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(oe(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Mt.ielt9||!this._map._fadeAnimated?T(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new z(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),Ni=zi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Mt.retina&&0<e.maxZoom?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return be(i,"load",s(this._tileOnLoad,this,e,i)),be(i,"error",s(this._tileOnError,this,e,i)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var i={r:Mt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(i.y=t),i["-y"]=t),g(this._url,e(i,this.options))},_tileOnLoad:function(t,e){Mt.ielt9?setTimeout(s(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return(t=this.options.zoomReverse?e-t:t)+this.options.zoomOffset},_getSubdomain:function(t){return t=Math.abs(t.x+t.y)%this.options.subdomains.length,this.options.subdomains[t]},_abortLoading:function(){var t,e,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=c,i.onerror=c,i.complete||(i.src=y,e=this._tiles[t].coords,te(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:e})))},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),zi.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return zi.prototype._tileReady.call(this,t,e,i)}});function $i(t,e){return new Ni(t,e)}var Bi=Ni.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n,s=e({},this.defaultWmsParams);for(n in i)n in this.options||(s[n]=i[n]);t=(i=p(this,i)).detectRetina&&Mt.retina?2:1;var o=this.getTileSize();s.width=o.x*t,s.height=o.y*t,this.wmsParams=s},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,Ni.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=(e=(i=N((i=this._crs).project(e[0]),i.project(e[1]))).min,i.max);e=(1.3<=this._wmsVersion&&this._crs===ai?[e.y,e.x,i.y,i.x]:[e.x,e.y,i.x,i.y]).join(",");return(i=Ni.prototype.getTileUrl.call(this,t))+f(this.wmsParams,i,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+e},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});Ni.WMS=Bi,$i.wms=function(t,e){return new Bi(t,e)};var Ri=ct.extend({options:{padding:.1},initialize:function(t){p(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),oe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e);n=n.multiplyBy(-i).add(s).subtract(this._map._getNewPixelOrigin(t,e));Mt.any3d?de(this._container,n,i):ue(this._container,n)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new z(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Hi=Ri.extend({options:{tolerance:0},getEvents:function(){var t=Ri.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ri.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");be(t,"mousemove",this._onMouseMove,this),be(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),be(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,te(this._container),xe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,e,i,n;this._map._animatingZoom&&this._bounds||(Ri.prototype._update.call(this),t=this._bounds,e=this._container,i=t.getSize(),n=Mt.retina?2:1,ue(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Mt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){Ri.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),t=(this._layers[a(t)]=t)._order={layer:t,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=(i=t._order).next,i=i.prev;e?e.prev=i:this._drawLast=i,i?i.next=e:this._drawFirst=e,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){for(var e,i=t.options.dashArray.split(/[, ]+/),n=[],s=0;s<i.length;s++){if(e=Number(i[s]),isNaN(e))return;n.push(e)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||T(this._redraw,this))},_extendRedrawBounds:function(t){var e;t._pxBounds&&(e=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))
vendor: 8,081 bytes, line 74
74)},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var t,e,i=this._redrawBounds;this._ctx.save(),i&&(e=i.getSize(),this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,s,o,a=t._parts,r=a.length,l=this._ctx;if(r){for(l.beginPath(),i=0;i<r;i++){for(n=0,s=a[i].length;n<s;n++)o=a[i][n],l[n?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){var e,i,n,s;this._drawing&&!t._empty()&&(e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(s=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(i.save(),i.scale(1,s)),i.beginPath(),i.arc(e.x,e.y/s,n,0,2*Math.PI,!1),1!=s&&i.restore(),this._fillStroke(i,t))},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),s=this._drawFirst;s;s=s.next)(e=s.layer).options.interactive&&e._containsPoint(n)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(e)||(i=e));this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,e))},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(ae(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(oe(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(s((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e,i,n=t._order;n&&(e=n.next,i=n.prev,e&&((e.prev=i)?i.next=e:e&&(this._drawFirst=e),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t)))},_bringToBack:function(t){var e,i,n=t._order;n&&(e=n.next,(i=n.prev)&&((i.next=e)?e.prev=i:i&&(this._drawLast=i),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)))}});function ji(t){return Mt.canvas?new Hi(t):null}var Fi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Wi=(ut={_initContainer:function(){this._container=Jt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ri.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Fi("shape");oe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Fi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;te(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,s=t._container;s.stroked=!!n.stroke,s.filled=!!n.fill,n.stroke?(e=e||(t._stroke=Fi("stroke")),s.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=v(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(s.removeChild(e),t._stroke=null),n.fill?(i=i||(t._fill=Fi("fill")),s.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(s.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ie(t._container)},_bringToBack:function(t){ne(t._container)}},Mt.vml?Fi:U),Yi=Ri.extend({_initContainer:function(){this._container=Wi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){te(this._container),xe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,e,i;this._map._animatingZoom&&this._bounds||(Ri.prototype._update.call(this),e=(t=this._bounds).getSize(),i=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),ue(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=Wi("path");t.options.className&&oe(e,t.options.className),t.options.interactive&&oe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){te(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path;t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,G(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ";e=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,e)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ie(t._path)},_bringToBack:function(t){ne(t._path)}});function Zi(t){return Mt.svg||Mt.vml?new Yi(t):null}Mt.vml&&Yi.include(ut),Be.include({getRenderer:function(t){return t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){var e;return"overlayPane"!==t&&void 0!==t&&(void 0===(e=this._paneRenderers[t])&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e)},_createRenderer:function(t){return this.options.preferCanvas&&ji(t)||Zi(t)}});var Vi=vi.extend({initialize:function(t,e){vi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))}
vendor: 6,130 bytes, line 74
74,_boundsToLatLngs:function(t){return[(t=B(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Yi.create=Wi,Yi.pointsToPath=G,_i.geometryToLayer=yi,_i.coordsToLatLng=wi,_i.coordsToLatLngs=xi,_i.latLngToCoords=ki,_i.latLngsToCoords=Si,_i.getFeature=Ti,_i.asFeature=Ei,Be.mergeOptions({boxZoom:!0});X=J.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){be(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){xe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){te(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Yt(),fe(),this._startPoint=this._map.mouseEventToContainerPoint(t),be(document,{contextmenu:De,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Jt("div","leaflet-zoom-box",this._container),oe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=(t=new z(this._point,this._startPoint)).getSize();ue(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(te(this._box),ae(this._container,"leaflet-crosshair")),Zt(),me(),xe(document,{contextmenu:De,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0),t=new $(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Be.addInitHook("addHandler","boxZoom",X),Be.mergeOptions({doubleClickZoom:!0}),pt=J.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta;i=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});var qi=(Be.addInitHook("addHandler","doubleClickZoom",pt),Be.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),J.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new Ve(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),oe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ae(this._map._container,"leaflet-grab"),ae(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=B(this._map.options.maxBounds),this._offsetLimit=N(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,i;this._map.options.inertia&&(e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(i),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){var t,e;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit,t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=((s=this._draggable._newPos.x)-e+i)%t+e-i,s=(s+e+i)%t-e-i;t=Math.abs(n+i)<Math.abs(s+i)?n:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd:function(t){var e,i,n,s,o=this._map,a=o.options,r=!a.inertia||t.noInertia||this._times.length<2;o.fire("dragend",t),!r&&(this._prunePositions(+new Date),t=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,e=a.easeLinearity,r=(t=t.multiplyBy(e/r)).distanceTo([0,0]),i=Math.min(a.inertiaMaxSpeed,r),t=t.multiplyBy(i/r),n=i/(a.inertiaDeceleration*e),(s=t.multiplyBy(-n/2).round()).x||s.y)?(s=o._limitOffset(s,o.options.maxBounds),T((function(){o.panBy(s,{duration:n,easeLinearity:e,noMoveStart:!0,animate:!0})}
vendor: 4,147 bytes, line 74
74))):o.fire("moveend")}})),Ui=(ft=(Be.addInitHook("addHandler","dragging",qi),Be.mergeOptions({keyboard:!0,keyboardPanDelta:80}),J.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),be(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),xe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var t,e,i;this._focused||(i=document.body,t=document.documentElement,e=i.scrollTop||t.scrollTop,i=i.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(i,e))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var e=this._panKeys={},i=this.keyCodes,n=0,s=i.left.length;n<s;n++)e[i.left[n]]=[-1*t,0];for(n=0,s=i.right.length;n<s;n++)e[i.right[n]]=[t,0];for(n=0,s=i.down.length;n<s;n++)e[i.down[n]]=[0,t];for(n=0,s=i.up.length;n<s;n++)e[i.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var e=this._zoomKeys={},i=this.keyCodes,n=0,s=i.zoomIn.length;n<s;n++)e[i.zoomIn[n]]=t;for(n=0,s=i.zoomOut.length;n<s;n++)e[i.zoomOut[n]]=-t},_addHooks:function(){be(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){xe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i,n=t.keyCode,s=this._map;if(n in this._panKeys)s._panAnim&&s._panAnim._inProgress||(i=this._panKeys[n],t.shiftKey&&(i=I(i).multiplyBy(3)),s.options.maxBounds&&(i=s._limitOffset(I(i),s.options.maxBounds)),s.options.worldCopyJump?(e=s.wrapLatLng(s.unproject(s.project(s.getCenter()).add(i))),s.panTo(e)):s.panBy(i));else if(n in this._zoomKeys)s.setZoom(s.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!s._popup||!s._popup.options.closeOnEscapeKey)return;s.closePopup()}De(t)}}})),mt=(Be.addInitHook("addHandler","keyboard",ft),Be.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),J.extend({addHooks:function(){be(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){xe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=ze(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),e=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),e),De(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0,n=(t._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel));n=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,i=i?Math.ceil(n/i)*i:n,n=t._limitZoom(e+(0<this._delta?i:-i))-e;this._delta=0,this._startTime=null,n&&("center"===t.options.scrollWheelZoom?t.setZoom(e+n):t.setZoomAround(this._lastMousePos,e+n))}})),gt=(Be.addInitHook("addHandler","scrollWheelZoom",mt),Be.mergeOptions({tapHold:Mt.touchNative&&Mt.safari&&Mt.mobile,tapTolerance:15}),J.extend({addHooks:function(){be(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){xe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){var e;clearTimeout(this._holdTimeout),1===t.touches.length&&(e=t.touches[0],this._startPos=this._newPos=new A(e.clientX,e.clientY),this._holdTimeout=setTimeout(s((function(){this._cancel(),this._isTapValid()&&(be(document,"touchend",Pe),be(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),600),be(document,"touchend touchcancel contextmenu",this._cancel,this),be(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function t(){xe(document,"touchend",Pe),xe(d
vendor: 4,343 bytes, line 74
74ocument,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),xe(document,"touchend touchcancel contextmenu",this._cancel,this),xe(document,"touchmove",this._onMove,this)},_onMove:function(t){t=t.touches[0],this._newPos=new A(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){(t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY}))._simulated=!0,e.target.dispatchEvent(t)}})),vt=(Be.addInitHook("addHandler","tapHold",gt),Be.mergeOptions({touchZoom:Mt.touch,bounceAtZoomLimits:!0}),J.extend({addHooks:function(){oe(this._map._container,"leaflet-touch-zoom"),be(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ae(this._map._container,"leaflet-touch-zoom"),xe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e,i,n=this._map;!t.touches||2!==t.touches.length||n._animatingZoom||this._zooming||(e=n.mouseEventToContainerPoint(t.touches[0]),i=n.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(e.add(i)._divideBy(2))),this._startDist=e.distanceTo(i),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),be(document,"touchmove",this._onTouchMove,this),be(document,"touchend touchcancel",this._onTouchEnd,this),Pe(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&1<o)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{if(i=i._add(n)._divideBy(2)._subtract(this._centerPoint),1==o&&0===i.x&&0===i.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(i),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest),n=s(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=T(n,this,!0),Pe(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),xe(document,"touchmove",this._onTouchMove,this),xe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}})),Be.addInitHook("addHandler","touchZoom",vt),Be.BoxZoom=X,Be.DoubleClickZoom=pt,Be.Drag=qi,Be.Keyboard=ft,Be.ScrollWheelZoom=mt,Be.TapHold=gt,Be.TouchZoom=vt,t.Bounds=z,t.Browser=Mt,t.CRS=j,t.Canvas=Hi,t.Circle=mi,t.CircleMarker=fi,t.Class=M,t.Control=He,t.DivIcon=Ii,t.DivOverlay=Di,t.DomEvent=Q,t.DomUtil=K,t.Draggable=Ve,t.Evented=D,t.FeatureGroup=li,t.GeoJSON=_i,t.GridLayer=zi,t.Handler=J,t.Icon=ci,t.ImageOverlay=Mi,t.LatLng=R,t.LatLngBounds=$,t.Layer=ct,t.LayerGroup=ri,t.LineUtil=it,t.Map=Be,t.Marker=ui,t.Mixin=tt,t.Path=pi,t.Point=A,t.PolyUtil=et,t.Polygon=vi,t.Polyline=gi,t.Popup=Ai,t.PosAnimation=$e,t.Projection=ot,t.Rectangle=Vi,t.Renderer=Ri,t.SVG=Yi,t.SVGOverlay=Pi,t.TileLayer=Ni,t.Tooltip=Oi,t.Transformation=Y,t.Util=C,t.VideoOverlay=Li,t.bind=s,t.bounds=N,t.canvas=ji,t.circle=function(t,e,i){return new mi(t,e,i)},t.circleMarker=function(t,e){return new fi(t,e)},t.control=Re,t.divIcon=function(t){return new Ii(t)},t.extend=e,t.featureGroup=function(t,e){return new li(t,e)},t.geoJSON=Ci,t.geoJson=dt,t.gridLayer=function(t){return new zi(t)},t.icon=function(t){return new ci(t)},t.imageOverlay=function(t,e,i){return new Mi(t,e,i)},t.latLng=H,t.latLngBounds=B,t.layerGroup=function(t,e){return new ri(t,e)},t.map=function(t,e){return new Be(t,e)},t.marker=function(t,e){return new ui(t,e)},t.point=I,t.polygon=function(t,e){return new vi(t,e)},t.polyline=function(t,e){return new gi(t,e)},t.popup=function(t,e){return new Ai(t,e)},t.rectangle=function(t,e){return new Vi(t,e)}
74,t.setOptions=p,t.stamp=a,t.svg=Zi,t.svgOverlay=function(t,e,i){return new Pi(t,e,i)},t.tileLayer=$i,t.tooltip=function(t,e){return new Oi(t,e)},t.transformation=Z,t.version="1.9.4",t.videoOverlay=function(t,e,i){return new Li(t,e,i)},window.L);t.noConflict=function(){return window.L=Ui,this},window.L=t})),L.Icon.Glyph=L.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41],className:"",prefix:"",glyph:"home",glyphColor:"white",glyphSize:"11px",glyphAnchor:[0,-7]},createIcon:function(){var t=document.createElement("div"),e=this.options;return e.glyph&&t.appendChild(this._createGlyph()),this._setIconStyles(t,e.className),t},_createGlyph:function(){var t,e,i=this.options;i.prefix?t="fab"===i.prefix||"fal"===i.prefix||"far"===i.prefix||"fas"===i.prefix?"fa-"+i.glyph:i.glyph.slice(0,i.prefix.length+1)===i.prefix+"-"?i.glyph:i.prefix+"-"+i.glyph:(t="",e=i.glyph);var n=L.DomUtil.create("span",i.prefix+" "+t);return n.style.fontSize=i.glyphSize,n.style.color=i.glyphColor,n.style.width=i.iconSize[0]+"px",n.style.lineHeight=i.iconSize[1]+"px",n.style.textAlign="center",n.style.marginLeft=i.glyphAnchor[0]+"px",n.style.marginTop=i.glyphAnchor[1]+"px",n.style.pointerEvents="none",n.style.display="inline-block",e&&(n.innerHTML=e),n},_setIconStyles:function(t,e){if("shadow"===e)return L.Icon.prototype._setIconStyles.call(this,t,e);var i=this.options,n=L.point(i.iconSize),s=L.point(i.iconAnchor);!s&&n&&(s=n.divideBy(2,!0)),t.className="leaflet-marker-icon leaflet-glyph-icon "+e;var o=this._getIconUrl("icon");o&&(t.style.backgroundImage="url('"+o+"')"),i.bgPos&&(t.style.backgroundPosition=-i.bgPos.x+"px "+-i.bgPos.y+"px"),i.bgSize&&(t.style.backgroundSize=i.bgSize.x+"px "+i.bgSize.y+"px"),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")}}),L.icon.glyph=function(t){return new L.Icon.Glyph(t)},L.Icon.Glyph.prototype.options.iconUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAUlSURBVFjDrZdLiBxVFIb/e289uqt6kkx6zIiIoKgLRReKuMhCcaOIAUEIiCCE4CIPggZ8kBjooPgM0TiYEUUjqBGchZqAQlyYRTA+kJiJQiJGMjN5zYzT3dP1rrr3HBeTjDGTSfc8Dvyruud89Z9z6kIJdBj31763MivsJXKuZYF6dak5++2mh7NOcsXVHq6sHbhOK/24kOJJMO4AE1vKygwZhxlKSHGKiD+RSu09vOXB43OCrHz96y6T2lsh+OmKXzFdlbLne2UopSAupBhjECcZgjDMgiiSxPhcK/nCr1sfOtcWcm/tq9uEsL4rl0vdK67pKVu2jUwTMk0wBBAzpBCQAnAtiZIlwWQwPlHPglZQAFj1Y23VwVkh92zbd59U+Kanp+p2L12mooKQ5AbcpuclS6LiKoRhxOfHzhXMcs3PtVV7Z0DufXH/LSzpSG9vr1/p6kIz0dDUrvx/IYXAsrJCkWc4e/Z0Zpgf+KX26A/TkNtrXziesY9Xq8tvWNZdVfVYg7hzwKVv3O3ZiKMWj46OTrq5fdOh1x5pSADwjdzo2nbv0u6qqkca2jCIMGcZAuqRhu8vEX7ZK2V2WgMAcXdtvyeKbPS662+osCohzMycHVweniNREoShoZO5KYobpciSh23bFq7rIUgNiLFghRkBlg2v7GlpiccsCHrcryzxUk3zmsNskeYGvt/lxVH4hMWEu9xSWaQFYQ7L1B6iGZ5bBoy+zWKiHiltFHpqeIsVhWaosg1iqlgg4wAAEYEXsV3EmNppJmExMFYUxfVSuIs6E0sI5FkBBhLJzH9laQxLSjBj0WQJgSJPweDTkknvS4JGbCuxKOt7UY4lEQfNnAu9TzLxN2nUdAQTLAEw8YIlAVgAkmDCSBL75eCutSeY+GTUqqNkqUVxUbIl4qgJo4vWzecrhyQAMJldYf1MXLLl1EIsYBZgoGwpRI2zMTPtGBhYbSQAlJF9lieRzNMIriVBzPOWawvoIkYaNC0u9IcAIAHgp75NLQl8ENbPZJ6jgAU48RyFqHEuZyE+Pda/vjENAQBD5s209Y+kPJlyM4+r3lUS0AWSyVEhpHnjYu1pyO+7N4ywwPvhxHDiuwo8j1b5rkQwMZIziYHBXetPzIAAgIV8exZOSMoieI6aU5vKtgR0jqw1JtiYbZfW/R/kSN+mcWbxdtwYjn1XTd9B7cQAfNdCWB/OhBR7jvWv/3tWCAAoO3ktjyZZJ0HHbsq2AooERVQXzPKly2vOgPz29jNNBr+e1IcSz5YAM4hmFzPDtyWS+lDK4N2DfU+dbgsBAFHyd+oszE3agt/GjWcrUBEjj5sQBb96pXpXhAzueDJi4u1p41TsuQpCiFln4bkKeXMoJeadg++tG+sYAgBBXOo3RRrruAnfkWDmGfIdCeQhiiQgQbxjtlqzQk59vCZlNluL5lDiORLyMjcA4DsKeXM4AfDKxa97ThAAqPaMfaR1Nq6jOiqOAhOm5TsKJg1QZGGRedY7V6tzVcjBWk1D0JZ8cigt2RJSimkXnqOgW8MxQLUTb6wN5g0BgGPV0c9BekTH41xx5YXrQ8FkTRgdpxU7ea9djbYQ1GokmJ43wUhWtgRcS04tQjAcw9CWw29tThYOAXD03XVfMps/TTTOy30blDZgiqxFK6p7OsnvCDJ1UD9LyUjORoPDkUQyPfdHbXW+qJCjfRsOwOAoNY4z6Xz01rHq3k5zO4ZMHTabYSIhJD87MLB64f8Ys8WdG/tfBljMJedfwY+s/2P4Pv8AAAAASUVORK5CYII=",function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define("leafletGestureHandling",["exports"],e):e(t.leafletGestureHandling={})}(this,(function(t){"use strict";var e={ar:{touch:"استخدم إصبعين لتحريك الخريطة",scroll:"‏استخدم ctrl + scroll لتصغير/تكبير الخريطة",scrollMac:"يمكنك استخدام ⌘ + التمرير لتكبير/تصغير الخريطة"},bg:{touch:"Използвайте два пръста, за да преместите картата",scroll:"Задръжте бутона Ctrl натиснат, доÐ
74ºÐ°Ñ‚о превъртате, за да промените мащаба на картата",scrollMac:"Задръжте бутона ⌘ натиснат, докато превъртате, за да промените мащаба на картата"},bn:{touch:"মানচিত্রটিকে সরাতে দুটি আঙ্গুল ব্যবহার করুন",scroll:"ম্যাপ জুম করতে ctrl + scroll ব্যবহার করুন",scrollMac:"ম্যাপে জুম করতে ⌘ বোতাম টিপে স্ক্রল করুন"},ca:{touch:"Fes servir dos dits per moure el mapa",scroll:"Prem la tecla Control mentre et desplaces per apropar i allunyar el mapa",scrollMac:"Prem la tecla ⌘ mentre et desplaces per apropar i allunyar el mapa"},cs:{touch:"K posunutí mapy použijte dva prsty",scroll:"Velikost zobrazení mapy změňte podržením klávesy Ctrl a posouváním kolečka myÅ¡i",scrollMac:"Velikost zobrazení mapy změníte podržením klávesy ⌘ a posunutím kolečka myÅ¡i / touchpadu"},da:{touch:"Brug to fingre til at flytte kortet",scroll:"Brug ctrl + rullefunktionen til at zoome ind og ud pÃ¥ kortet",scrollMac:"Brug ⌘ + rullefunktionen til at zoome ind og ud pÃ¥ kortet"},de:{touch:"Verschieben der Karte mit zwei Fingern",scroll:"Verwende Strg+Scrollen zum Zoomen der Karte",scrollMac:"⌘"},el:{touch:"Χρησιμοποιήστε δύο δάχτυλα για μετακίνηση στον χάρτη",scroll:"Χρησιμοποιήστε το πλήκτρο Ctrl και κύλιση, για να μεγεθύνετε τον χάρτη",scrollMac:"Χρησιμοποιήστε το πλήκτρο ⌘ + κύλιση για εστίαση στον χάρτη"},en:{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-AU":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},"en-GB":{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},es:{touch:"Para mover el mapa, utiliza dos dedos",scroll:"Mantén pulsada la tecla Ctrl mientras te desplazas para acercar o alejar el mapa",scrollMac:"Mantén pulsada la tecla ⌘ mientras te desplazas para acercar o alejar el mapa"},eu:{touch:"Erabili bi hatz mapa mugitzeko",scroll:"Mapan zooma aplikatzeko, sakatu Ktrl eta egin gora edo behera",scrollMac:"Eduki sakatuta ⌘ eta egin gora eta behera mapa handitu eta txikitzeko"},fa:{touch:"برای حرکت دادن نقشه از دو انگشت استفاده کنید.",scroll:"‏برای بزرگ‌نمایی نقشه از ctrl + scroll استفاده کنید",scrollMac:"برای بزرگ‌نمایی نقشه، از ⌘ + پیمایش استفاده کنید."},fi:{touch:"Siirrä karttaa kahdella sormella.",scroll:"Zoomaa karttaa painamalla Ctrl-painiketta ja vierittämällä.",scrollMac:"Zoomaa karttaa pitämällä painike ⌘ painettuna ja vierittämällä."},fil:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},fr:{touch:"Utilisez deux doigts pour déplacer la carte",scroll:"Vous pouvez zoomer sur la carte à l'aide de CTRL+Molette de défilement",scrollMac:"Vous pouvez zoomer sur la carte à l'aide de ⌘+Molette de défilement"},gl:{touch:"Utiliza dous dedos para mover o mapa",scroll:"Preme Ctrl mentres te desprazas para ampliar o mapa",scrollMac:"Preme ⌘ e desprázate para ampliar o mapa"},gu:{touch:"નકશો ખસેડવા બે આંગળીઓનો ઉપયોગ કરો",scroll:"નકશાને ઝૂમ કરવા માટે ctrl + સ્ક્રોલનો ઉપયોગ કરો",scrollMac:"નકશાને ઝૂમ કરવા ⌘ + સ્ક્રોલનો ઉપયોગ કરો"},hi:{touch:"मैप एक जगह से दूसरी जगह ले जाने के लिए दो उंगलियों का इस्तेमाल करें",scroll:"मैप à
74¤•ो ज़ूम करने के लिए ctrl + स्क्रोल का उपयोग करें",scrollMac:"मैप को ज़ूम करने के लिए ⌘ + स्क्रोल का उपयोग करें"},hr:{touch:"Pomičite kartu pomoću dva prsta",scroll:"Upotrijebite Ctrl i klizač miÅ¡a da biste zumirali kartu",scrollMac:"Upotrijebite gumb ⌘ dok se pomičete za zumiranje karte"},hu:{touch:"Két ujjal mozgassa a térképet",scroll:"A térkép a ctrl + görgetés használatával nagyítható",scrollMac:"A térkép a ⌘ + görgetés használatával nagyítható"},id:{touch:"Gunakan dua jari untuk menggerakkan peta",scroll:"Gunakan ctrl + scroll untuk memperbesar atau memperkecil peta",scrollMac:"Gunakan ⌘ + scroll untuk memperbesar atau memperkecil peta"},it:{touch:"Utilizza due dita per spostare la mappa",scroll:"Utilizza CTRL + scorrimento per eseguire lo zoom della mappa",scrollMac:"Utilizza ⌘ + scorrimento per eseguire lo zoom della mappa"},iw:{touch:"הזז את המפה באמצעות שתי אצבעות",scroll:"‏אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ctrl וגלילה",scrollMac:"אפשר לשנות את מרחק התצוגה במפה באמצעות מקש ⌘ וגלילה"},ja:{touch:"地図を移動させるには指 2 本で操作します",scroll:"地図をズームするには、Ctrl キーを押しながらスクロールしてください",scrollMac:"地図をズームするには、⌘ キーを押しながらスクロールしてください"},kn:{touch:"Use two fingers to move the map",scroll:"Use Ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"},ko:{touch:"지도를 움직이려면 두 손가락을 사용하세요.",scroll:"지도를 확대/축소하려면 Ctrl을 누른 채 스크롤하세요.",scrollMac:"지도를 확대하려면 ⌘ + 스크롤 사용"},lt:{touch:"Perkelkite žemėlapį dviem pirÅ¡tais",scroll:"Slinkite nuspaudę klavišą „Ctrl“, kad pakeistumėte žemėlapio mastelį",scrollMac:"Paspauskite klavišą ⌘ ir slinkite, kad priartintumėte žemėlapį"},lv:{touch:"Lai pārvietotu karti, bÄ«diet to ar diviem pirkstiem",scroll:"Kartes tālummaiņai izmantojiet ctrl + ritināšanu",scrollMac:"Lai veiktu kartes tālummaiņu, izmantojiet ⌘ + ritināšanu"},ml:{touch:"മാപ്പ് നീക്കാൻ രണ്ട് വിരലുകൾ ഉപയോഗിക്കുക",scroll:"കൺട്രോൾ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക",scrollMac:"⌘ + സ്‌ക്രോൾ ഉപയോഗിച്ച് ‌മാപ്പ് ‌സൂം ചെയ്യുക"},mr:{touch:"नकाशा हलविण्यासाठी दोन बोटे वापरा",scroll:"नकाशा झूम करण्यासाठी ctrl + scroll वापरा",scrollMac:"नकाशावर झूम करण्यासाठी ⌘ + स्क्रोल वापरा"},nl:{touch:"Gebruik twee vingers om de kaart te verplaatsen",scroll:"Gebruik Ctrl + scrollen om in- en uit te zoomen op de kaart",scrollMac:"Gebruik ⌘ + scrollen om in en uit te zoomen op de kaart"},no:{touch:"Bruk to fingre for Ã¥ flytte kartet",scroll:"Hold ctrl-tasten inne og rull for Ã¥ zoome pÃ¥ kartet",scrollMac:"Hold inne ⌘-tasten og rull for Ã¥ zoome pÃ¥ kartet"},pl:{touch:"Przesuń mapę dwoma palcami",scroll:"Naciśnij CTRL i przewiń, by przybliżyć mapę",scrollMac:"Naciśnij ⌘ i przewiń, by przybliżyć mapę"},pt:{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-BR":{touch:"Use dois dedos para mover o mapa",scroll:"Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",scrollMac:"Use ⌘ e role a tela simultaneamente para aplicar zoom no mapa"},"pt-PT":{touch:"Utilize dois dedos para mover o mapa",scroll:"Utilizar ctrl + deslocar para aumentar/diminuir zoom do mapa",scrollMac:"Utilize ⌘ + deslocar para aumentar/diminuir o zoom do mapa"},ro:{touch:"Folosiți două degete pentru a deplasa harta",scroll:"Apăsați tasta ctrl și derulați simultan pentru a mări harta",scrollMac:"Folosiți ⌘ și derulați pentru a mări/micșora harta"},ru:{touch:"Чтобы переместить карту, проведите по ней двумя пальцами",scroll:"Чтобы изменить масштаб, прокручивайте карту, удерживая клавишу Ctrl.",scrollMac:"Чтобы изменить масштаб, нажмите ⌘ + прокрутка"},sk:{touch:"Mapu môžete posunúť dvoma prstami",scroll:"Ak chcete priblížiÅ¥ mapu, stlačte kláves ctrl a posúvajte",scrollMac:"Ak chcete priblížiÅ¥ mapu, stlačte kláves ⌘ a posúvajte kolieskom myÅ¡i"},sl:{touch:"Premaknite zemljevid z dvema prstoma",scroll:"Zemljevid povečate tako, da držite tipko Ctrl in vrtite 
74kolesce na miški",scrollMac:"Uporabite ⌘ + funkcijo pomika, da povečate ali pomanjšate zemljevid"},sr:{touch:"Мапу померајте помоћу два прста",scroll:"Притисните ctrl тастер док померате да бисте зумирали мапу",scrollMac:"Притисните тастер ⌘ док померате да бисте зумирали мапу"},sv:{touch:"Använd två fingrar för att flytta kartan",scroll:"Använd ctrl + rulla för att zooma kartan",scrollMac:"Använd ⌘ + rulla för att zooma på kartan"},ta:{touch:"மேப்பை நகர்த்த இரண்டு விரல்களைப் பயன்படுத்தவும்",scroll:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ctrl பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்",scrollMac:"மேப்பை பெரிதாக்கி/சிறிதாக்கிப் பார்க்க, ⌘ பட்டனைப் பிடித்தபடி, மேலே/கீழே ஸ்க்ரால் செய்யவும்"},te:{touch:"మ్యాప్‌ని తరలించడం కోసం రెండు వేళ్లను ఉపయోగించండి",scroll:"మ్యాప్‌ని జూమ్ చేయడానికి ctrl బటన్‌ను నొక్కి ఉంచి, స్క్రోల్ చేయండి",scrollMac:"మ్యాప్ జూమ్ చేయాలంటే ⌘ + స్క్రోల్ ఉపయోగించండి"},th:{touch:"ใช้ 2 นิ้วเพื่อเลื่อนแผนที่",scroll:"กด Ctrl ค้างไว้ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่",scrollMac:"กด ⌘ แล้วเลื่อนหน้าจอเพื่อซูมแผนที่"},tl:{touch:"Gumamit ng dalawang daliri upang iusog ang mapa",scroll:"Gamitin ang ctrl + scroll upang i-zoom ang mapa",scrollMac:"Gamitin ang ⌘ + scroll upang i-zoom ang mapa"},tr:{touch:"Haritada gezinmek için iki parmağınızı kullanın",scroll:"Haritayı yakınlaştırmak için ctrl + kaydırma kombinasyonunu kullanın",scrollMac:"Haritayı yakınlaştırmak için ⌘ tuşuna basıp ekranı kaydırın"},uk:{touch:"Переміщуйте карту двома пальцями",scroll:"Щоб змінювати масштаб карти, прокручуйте коліщатко миші, утримуючи клавішу Ctrl",scrollMac:"Щоб змінити масштаб карти, використовуйте ⌘ + прокручування"},vi:{touch:"Sử dụng hai ngón tay để di chuyển bản đồ",scroll:"Sử dụng ctrl + cuộn để thu phóng bản đồ",scrollMac:"Sử dụng ⌘ + cuộn để thu phóng bản đồ"},"zh-CN":{touch:"使用双指移动地图",scroll:"按住 Ctrl 并滚动鼠标滚轮才可缩放地图",scrollMac:"按住 ⌘ 并滚动鼠标滚轮才可缩放地图"},"zh-TW":{touch:"同時以兩指移動地圖",scroll:"按住 ctrl 鍵加上捲動滑鼠可以縮放地圖",scrollMac:"按 ⌘ 加上滾動捲軸可以縮放地圖"}};L.Map.mergeOptions({gestureHandlingOptions:{text:{},duration:1e3}});var i=!1,n=L.Handler.extend({addHooks:function(){this._handleTouch=this._handleTouch.bind(this),this._setupPluginOptions(),this._setLanguageContent(),this._disableInteractions(),this._map._container.addEventListener("touchstart",this._handleTouch),this._map._container.addEventListener("touchmove",this._handleTouch),this._map._container.addEventListener("touchend",this._handleTouch),this._map._container.addEventListener("touchcancel",this._handleTouch),this._map._container.addEventListener("click",this._handleTouch),L.DomEvent.on(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.on(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.on(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.on(this._map,"movestart",this._handleDragging,this),L.DomEvent.on(this._map,"move",this._handleDragging,this),L.DomEvent.on(this._map,"moveend",this._handleDragging,this)},removeHooks:function(){this._enableInteractions(),this._map._container.removeEventListener("touchstart",this._handleTouch),this._map._container.removeEventListener("touchmove",this._handleTouch),this._map._container.removeEventListener("touchend",this._handleTouch),this._map._container.removeEventListener("touchcancel",this._handleTouch),this._map._container.removeEventListener("click",this._handleTouch),L.DomEvent.off(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.off(this._map,"mouseover",this._handleMouseOver,this),L.DomEvent.off(this._map,"mouseout",this._handleMouseOut,this),L.DomEvent.off(this._map,"movestart",this._handleDragging,this),L.DomEvent.off(this._map,"move",this._handleDragging,this),L.DomEvent.off(this._map,"moveend",this._handleDragging,this)},_handleDragging:function(t){"movestart"==t.type||"move"==t.type?i=!0:"moveend"==t.type&&(i=!1)},_disableInteractions:function(){this._map.dragging.disable(),this._map.scrollWheelZoom.disable(),this._map.tap&&this._map.tap.disable()},_enableInteractions:function(){this._map.dragging.enable(),this._map.scrollWheelZoom.enable(),this._map.tap&&this._map.tap.enable()},_setupPluginOptions:function(){this._map.options.gestureHandlingText&&(this._map.options.gestureHandlingOptions.text=this._map.options.gestureHandlingText)},_setLanguageContent:function(){var t;if(this._map.options.gestureHandlingOptions&&this._map.options.gestureHandlingOptions.text&&this._map.options.gestureHandlingOptions.text.touch&&this._map.options.gestureHandlingOptions.text.scroll&&this._map.options.gestureHandlingOptions.text.scrollMac)t=this._map.options.gestureHandlingOptions.text;else{var i=this._getUserLanguage();i||(i="en"),e[i]&&(t=e[i]),t||-1===i.indexOf("-")||(i=i.split("-")[0],t=e[i]),t||(t=e[i="en"])}var n=!1;0<=navigator.platform.toUpperCase().indexOf("MAC")&&(n=!0);var s=t.scroll;n&&(s=t.scrollMac),this._map._container.setAttribute("data-gesture-handling-touch-content",t.touch),this._map._container.setAttribute("data-gesture-handling-scroll-content",s)},_getUserLanguage:function(){return navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage},_handleTouch:function(t){for(var e=["leaflet-control-minimap","leaflet-interactive","leaflet-popup-content","leaflet-popup-content-wrapper","leaflet-popup-close-button","leaflet-control-zoom-in","leaflet-control-zoom-out"],i=!1,n=0;n<e.length;n++)L.DomUtil.hasClass(t.target,e[n])&&(i=!0);i?L.DomUtil.hasClass(t.target,"leaflet-interactive")&&"touchmove"===t.type&&1===t.touches.length?(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-touch-warning"),this._disableInteractions()):L.Dom
74Util.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning"):"touchmove"===t.type||"touchstart"===t.type?1===t.touches.length?(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-touch-warning"),this._disableInteractions()):(t.preventDefault(),this._enableInteractions(),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning")):L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-touch-warning")},_isScrolling:!1,_handleScroll:function(t){t.metaKey||t.ctrlKey?(t.preventDefault(),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-scroll-warning"),this._map.scrollWheelZoom.enable()):(L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-scroll-warning"),this._map.scrollWheelZoom.disable(),clearTimeout(this._isScrolling),this._isScrolling=setTimeout((function(){for(var t=document.getElementsByClassName("leaflet-gesture-handling-scroll-warning"),e=0;e<t.length;e++)L.DomUtil.removeClass(t[e],"leaflet-gesture-handling-scroll-warning")}),this._map.options.gestureHandlingOptions.duration))},_handleMouseOver:function(t){this._enableInteractions()},_handleMouseOut:function(t){i||this._disableInteractions()}});L.Map.addInitHook("addHandler","gestureHandling",n),t.GestureHandling=n,t.default=n,Object.defineProperty(t,"__esModule",{value:!0})})),function(t){t((function(){function e(t,e){var i=t+"="+e+";path=/";document.cookie=i}t("a[rel=accessibility]").on("click",(function(i){var n=!1,s=t(this).data(),o=function(t){for(var e=t+"=",i=decodeURIComponent(document.cookie).split(";"),n=0;n<i.length;n++){for(var s=i[n];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(e))return s.substring(e.length,s.length)}return""}("colormode");void 0!==s.colormode&&("contrast"!==o?(e("colormode",s.colormode),n=!0):(e("colormode",""),n=!0)),void 0!==s.fontsize&&(e("fontsize",s.fontsize),n=!0),i.preventDefault(),n&&window.location.reload()}))}))}(jQuery),$((function(){$(".copyrighted").each((function(){var t=$(this),e=t.data("copyright");if(e){var i=$("<p/>").html(e),n=$('<div class="copyright-button"></div>');n.append(i),t.append(n),n.hover((function(){n.addClass("open"),n.css({height:"calc("+i.height()+"px + .5rem)"})}),(function(){n.removeClass("open"),n.css({height:"1.65rem"})}))}}))})),$((function(){$(".leiste-number").each((function(){$(this).prop("Counter",0).animate({Counter:$(this).text()},{duration:5e3,easing:"swing",step:function(t){$(this).text(Math.ceil(t))}})}))})),$((function(){var t={format:"DD.MM.YYYY",separator:" - ",applyLabel:"Anwenden",cancelLabel:"Abbruch",fromLabel:"Von",toLabel:"Bis",customRangeLabel:"Custom",weekLabel:"W",daysOfWeek:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],firstDay:1};$(".datepicker").daterangepicker({singleDatePicker:!0,locale:t}),$(".daterange-picker").daterangepicker({locale:t,autoUpdateInput:!1},(function(t,e,i){})),$(".daterange-picker").on("apply.daterangepicker",(function(t,e){$(this).val(e.startDate.format("DD.MM.YYYY")+" - "+e.endDate.format("DD.MM.YYYY"))})),$(".daterange-picker").on("cancel.daterangepicker",(function(t,e){$(this).val("")}
74)),$("#powermail_field_datumderanreise").on("apply.daterangepicker",(function(t,e){var i=e.startDate.format("DD.MM.YYYY");$("#powermail_field_datumderabreise").data("daterangepicker").startDate.format("DD.MM.YYYY")<i&&$("#powermail_field_datumderabreise").val(i)}))})),$((function(){var t=function(t){var e=t.match(/(\d+)/g);return new Date(e[2],e[1]-1,e[0])};$(".deskline-quickfinder.toggable").each((function(){var t=$("h3",this),e=$(".booking",this);$(this).hasClass("is--collapsed")&&e.hide(),t.on("click",(function(){e.slideToggle()}))})),$(".accommodation-search--button").each((function(){var t=0,e=$(".accommodation-search--form");$(this).on("click",(function(i){$(this).parent().toggleClass("active"),$(".weather-block").fadeOut(),$("body").removeClass("p-fixed"),$(".header-main--weather-search").removeClass("active"),i.preventDefault(),i.stopPropagation(),0===t?(e.fadeIn(),$("body, html").addClass("noscroll"),t=1):(e.fadeOut(),$("body, html").removeClass("noscroll"),t=0)})),$(".accommodation-search-closer").on("click",(function(){e.fadeOut(),$("body, html").removeClass("noscroll"),$(".header-main--accommodation-search").removeClass("active"),t=0})),e.on("click",(function(t){t.stopPropagation()}))})),$(".booking").each((function(){var e=this,i=$(".control-children",$(e)),n='<select name="children[]" class="form-control children-age"><option value="" selected="selected">bitte wählen...</option><option value="0">unter einem Jahr</option><option value="1">1 Jahr</option><option value="2">2 Jahre</option><option value="3">3 Jahre</option><option value="4">4 Jahre</option><option value="5">5 Jahre</option><option value="6">6 Jahre</option><option value="7">7 Jahre</option><option value="8">8 Jahre</option><option value="9">9 Jahre</option><option value="10">10 Jahre</option><option value="11">11 Jahre</option><option value="12">12 Jahre</option><option value="13">13 Jahre</option><option value="14">14 Jahre</option><option value="15">15 Jahre</option><option value="16">16 Jahre</option><option value="17">17 Jahre</option></select>',s=$(".children-age-container",$(e)),o=$(".datepicker[name=selArrivalDate]",$(this)),a=$(".datepicker[name=selDepartureDate]",$(this)),r=$(".children-panel",$(e)),l=$('select[name="selAdultsSearchLine1"]',$(e)),c=$(e).parent();if(console.log(c),$(".input-group-addon.arrival",$(this)).css("cursor","pointer").on("click",(function(t){t.preventDefault(),o.focus()})),$(".input-group-addon.departure",$(this)).css("cursor","pointer").on("click",(function(t){t.preventDefault(),a.focus()})),0!=i.val()){s.empty(),r.show();for(var h=0;h<i.val();h++)s.append(n)}i.on("change",(function(){s.empty(),0==i.val()?r.hide():r.show();for(var t=0;t<i.val();t++)s.append(n)})),window.tx_sfdeskline_tosc&&window.tx_sfdeskline_tosc.tosc5?c.on("submit",(function(t){console.log("tosc 5"),t.preventDefault();var e=$("[name=daterange]",c).val().split(" - ");if(e.length<2){var i=new Date;i.setDate(i.getDate()+1);var n=new Date;n.setDate(n.getDate()+8),e=[i.getFullYear()+"-"+i.getMonth()+"-"+i.getDate(),n.getFullYear()+"-"+n.getMonth()+"-"+n.getDate()]}else e[0]=e[0].split(/\./).reverse().join("-"),e[1]=e[1].split(/\./).reverse().join("-");var s=e[0],o=e[1],a=$("[name=selAdultsSearchLine1]",c).val(),r=$(".children-age",c).get().map((function(t){return $(t).val()}));return dw.accommodationQuickFind(tx_sfdeskline_tosc.linkkey,{dateFrom:new Date(s),dateTo:new Date(o),occupancy1:{units:1,adults:a,children:r}},(function(){window.location.href=tx_sfdeskline_tosc.targetLink})),!1})):c.on("submit",(function(e){console.log("tosc4"),e.preventDefault();var i=this,n=[],s=!1;if($(".error",$(i)).remove(),$(".children-age",$(i)).each((function(){$(this).val()||(e.preventDefault(),n.push('<span class="error">Bitte wählen Sie das Alter Ihres/r Kindes/r aus.</span>'),s=!0)})),t(o.val())>t(a.val())&&(e.preventDefault(),n.push('<span class="error">Das Anreisedatum muss vor dem Abreisedatum liegen.</span>'),s=!0),l.val()<1&&(e.preventDefault(),n.push('<span class="error">Bitte geben Sie wenigstens einen Erwachsenen an.</span>'),s=!0),s)for(var r=0;r<n.length;r++)$(i).append(n[r])}))}))})),$((function(){$(".faq-item-button").on("click",(function(){var t=$(this),e=t.parent(),i=e.find(".faq-item-content").outerHeight(),n=t.height();e.height()===n?(e.css("height",n+i),t.find("span").removeClass("icon-plus"),t.find("span").addClass("icon-minus")):(e.css("height",n),t.find("span").removeClass("icon-minus"),t.find("span").addClass("icon-plus"))}))})),$((function(){window.setTimeout((function(){$(".focuspoint").focusPoint(),$(window).on("resize",(function(){$(".focuspoint").each((function(){$(this).data("focusPoint").adjustFocus()}))}))}),0)})),$((function(){var t=$(".header-main-search"),e=$(".quickfinder-mobil-wrap");$(".sidebar-icon").hover((function(){$(this).addClass("sidebar-open").css("width",$(".sidebar-text",this).width()+80+"px")}),(function(){$(this).removeClass("sidebar-open").css("width","80px")})),$(".icon-search").on("click",(function(){t.slideDown(),$("body").addClass("no-scroll")})),$(".search-icon-wrap-desktop .icon-search").unbind("click"),$(".search-icon-wrap-desktop .search-open, .search-icon-wrap-mobile .search-open").on("click",(function(){var t=$(this).siblings(".header-main-search-new");t.is(":hidden")?($(this).removeClass("icon-search"),$(this).addClass("icon-cross"),t.show()):($("body").removeClass("no-scroll"),$(this).addClass("icon-search"),$(this).removeClass("icon-cross"),t.hide())})),$(".accessibility-icon-wrap").on("click",(function(){var t=$(".accessibility-icons",$(this));t.hasClass("open")?($(this).find(".icon-cross").addClass("icon-eye"),$(this).find(".icon-cross").removeClass("icon-cross"),t.removeClass("open")):($(this).find(".icon-eye").addClass("icon-cross"),$(this).find(".icon-eye").removeClass("icon-eye"),t.addClass("open"))})),$(".search-mask-close .icon-cross").on("click",(function(){t.slideUp(),$("body").removeClass("no-scroll")})),$(".icon-buchen").on("click",(function(){e.slideDown(),$("body").addClass("no-scroll")})),$(".quickfinder-close .icon-cross").on("click",(function(){e.slideUp(),$("body").removeClass("no-scroll")}))})),$((function(){var t=new URLSearchParams(window.location.search);$("#powermail_field_jobuid")&&t.has("joboffer_job")&&$("#powermail_field_jobuid").val(t.get("joboffer_job")),$("#powermail_field_job")&&t.has("joboffer_titel")&&$("#powermail_field_job").val(t.get("joboffer_titel"))})),$(document).ready((function(){lightbox.init()})),$((function(){if(document.getElementById("contenthub-map")){var t=L.map("contenthub-map",{gestureHandling:!0});L.tileLayer("http://topo-vector.joboland.de/styles/klokantech-basic/{z}/{x}/{y}@2x.png",{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',maxZoom:16}).addTo(t),t.setView([50,7],13);for(var e=[],i=0;i<leafletItems.length;i++){var n=document.getElementById("contenthub-map").dataset.pin,s=leafletItems[i],o=s.longitude,a=s.latitude,r=s.title,l=new L.LatLng(a,o),c={prefix:"",cssClass:"sans-serif",glyph:s.number};
74n&&(c.iconUrl=n);var h=new L.Marker(l,{icon:L.icon.glyph(c)});h.addEventListener("click",(function(t){document.getElementById("contenthub-item-"+t.target.options.icon.options.glyph).scrollIntoView({behavior:"smooth"})})),t.addLayer(h),h.bindPopup(r),e.push(l)}var d=new L.LatLngBounds(e);t.fitBounds(d,{padding:[50,50]})}})),$((function(){var t;$(".nav-item.nav-link.level-0").hover((function(){t&&clearTimeout(t);var e=$(this),i=$(this).data("mega-nav-uid"),n=$(".mega-nav-block[data-mega-nav-block-uid="+i+"]"),s=$(".desktop-nav-main"),o=$(".header-logo-wrap"),a=$(".headbar");t=setTimeout((function(){n.is(":visible")||n.is(":hidden")&&($(".mega-nav-block").is(":visible")&&(s.removeClass("menu-active"),a.removeClass("head-active"),$(".mega-nav-block").removeClass("sub-active"),$(".item-active").removeClass("item-active"),$(".mega-nav-block").slideUp(),o.fadeOut()),s.addClass("menu-active"),a.addClass("head-active"),n.addClass("sub-active"),e.addClass("item-active"),n.slideDown(),o.fadeIn())}),500)})),$(".header-nav").mouseleave((function(){var t=$(".mega-nav-block"),e=$(".desktop-nav-main"),i=$(".header-logo-wrap"),n=$(".headbar");e.removeClass("menu-active"),$("body").removeClass("no-scroll"),n.removeClass("head-active"),t.removeClass("sub-
74active"),$(".item-active").removeClass("item-active"),t.slideUp(),i.fadeOut()})),$(".mega-nav-close").on("click",(function(){var t=$(this).parents(".sub-active").data("mega-nav-block-uid"),e=$(".mega-nav-block[data-mega-nav-block-uid="+t+"]"),i=$(".desktop-nav-main"),n=$(".header-logo-wrap"),s=$(".headbar");i.removeClass("menu-active"),$("body").removeClass("no-scroll"),s.removeClass("head-active"),e.removeClass("sub-active"),$(".item-active").removeClass("item-active"),e.slideUp(),n.fadeOut()})),$(".headbar .icon-menu").on("click",(function(){var t=$(".headbar"),e=$(".header-logo-wrap"),i=$(".menu-wrap");$("body").addClass("no-scroll"),i.addClass("open-menu"),t.addClass("head-active"),e.fadeIn()})),$(".mobil-menu-icons .icon-cross").on("click",(function(){var t=$(".headbar"),e=$(".header-logo-wrap"),i=$(".menu-wrap");$("body").removeClass("no-scroll"),i.removeClass("open-menu"),t.removeClass("head-active"),e.fadeOut()})),$(".nav-item .icon-pfeil_links").on("click",(function(){$(".menu-level-0").css("left","100%"),$(this).parent().siblings(".menu-level-1").css("display","block")})),$(".menu-level-1 .back").on("click",(function(){$(".menu-level-0").css("left","0"),$(this).parent(".menu-level-1").css("display","none")})),$(".firstlevel .icon-arrow").on("click",(function(){var t=$(this).siblings(".deepmenuwrap").find("ul"),e=$(this).parent();t.is(":hidden")?(e.addClass("nav-open"),t.slideDown()):(e.removeClass("nav-open"),t.slideUp())})),$(".booking-icon-wrap").on("click",(function(){var t=$(".new-headbar"),e=$(".booking-menu-wrap");$("body");t.hasClass("head-active")&&(t.removeClass("head-active"),$(".new-menu").removeClass("open-menu")),e.hasClass("open-menu")?(e.removeClass("open-menu"),t.removeClass("booking-active")):(e.addClass("open-menu"),t.addClass("booking-active"))})),$(".menu-icon-wrap").on("click",(function(){var t=$(".new-headbar"),e=$(".new-menu");t.hasClass("booking-active")&&(t.removeClass("booking-active"),$(".booking-menu-wrap").removeClass("open-menu")),e.hasClass("open-menu")?(e.removeClass("open-menu"),t.removeClass("head-active")):(e.addClass("open-menu"),t.addClass("head-active"))})),$(".menu-close .icon-cross").on("click",(function(){var t=$(".open-menu"),e=$(".new-headbar");t.removeClass("open-menu"),e.removeClass("head-active"),e.removeClass("booking-active")}))})),$((function(){var t=window.matchMedia("(max-width: 576px)").matches;
74$("select[multiple]").each((function(){var e=$(this),i=e.data("placeholder-text")||"Keine ausgewählt";e.selectpicker({enableFiltering:!0,enableCaseInsensitiveFiltering:!0,selectAllText:"Alles auswählen",allSelectedText:"Alles ausgewählt",countSelected:"# von % ausgewählt",noMatchesFound:"Nichts gefunden",nonSelectedText:i,nSelectedText:"ausgewählt",size:t?5:"auto"})}))}));var qs=function(t){t=t.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");var e=location.search.match(new RegExp("[?&]"+t+"=([^&]+)(&|$)"));return e&&decodeURIComponent(e[1].replace(/\+/g," "))};$("#powermail_field_email").each((function(){qs("email")&&$(this).val(qs("email"))})),$(".pauschalform-header, #powermail_field_pauschalen_titel").each((function(){if(qs("pauschalenname"))$(this).html(qs("pauschalenname").slice(1,-1)),$(this).val(qs("pauschalenname").slice(1,-1)),$(this).attr("readonly",!0);else{var t=this;$(".powermail_all_marker_pauschalen_titel").each((function(){$(t).html($(this).text()),$(this).attr("readonly",!0)}))}})),$("#powermail_field_gruppenname").each((function(){qs("gruppenname")&&$('option[value="'+qs("gruppenname",this).slice(1,-1)+'"]').attr("selected",!0)})),$("#powermail_field_weinprobenname").each((function(){qs("weinprobenname")&&$('option[value="'+qs("weinprobenname",this).slice(1,-1)+'"]').attr("selected",!0)})),$((function(){if(sessionStorage.getItem("powermail_submit_scroll")){var t=$(".picfond").first();t.length&&$("html, body").animate({scrollTop:t.offset().top-20},500),sessionStorage.removeItem("powermail_submit_scroll")}$(document).on("click",'input[type="submit"]',(function(){sessionStorage.setItem("powermail_submit_scroll","true")})),$(document).on("click","button[data-powermail-morestep-show]",(function(){var t=$(".tx-powermail");t.length&&$("html, body").animate({scrollTop:t.offset().top-50},500)})),$(".powermail-gap").on("change",(function(){var t=$(this),e=$('[name*="tx_powermail_pi1[field]['+t.data("name")+']"]');e&&e.val(t.val())})),document.querySelectorAll(".powermail_form").forEach((function(t){t.powermailFormValidation.addValidator("answer",(function(t){var e=t.closest(".powermail_fieldwrap");if(!e)return!1;if(t.hasAttribute("data-powermail-answer")){var i=t.getAttribute("data-powermail-answer");if("checkbox"===t.type)var n=e.querySelectorAll("input:checked"),s=Array.from(n).map((function(t){return t.value})).join(",");else s=t.value;return s!=i}return!1}))}))})),function(t){t((function(){var e=function(t){var e=t.match(/(\d+)/g);return new Date(e[2],e[1]-1,e[0])};t(".deskline-quickfinder").each((function(){var i=t(this).parent(),n=t(".datepicker[name=selArrivalDate]",t(this)),s=t(".datepicker[name=selDepartureDate]",t(this));t(".input-group-addon.arrival",t(this)).css("cursor","pointer").on("click",(function(t){t.preventDefault(),n.focus()})),t(".input-group-addon.departure",t(this)).css("cursor","pointer").on("click",(function(t){t.preventDefault(),s.focus()})),window.tx_sfdeskline_tosc&&window.tx_sfdeskline_tosc.tosc5?i.on("submit",(function(e){console.log("tosc 5"),e.preventDefault();var n=t("[name=daterange]").val().split(" - ");if(n.length<2){var s=new Date;s.setDate(s.getDate()+1);var o=new Date;o.setDate(o.getDate()+8),n=[s.getFullYear()+"-"+s.getMonth()+"-"+s.getDate(),o.getFullYear()+"-"+o.getMonth()+"-"+o.getDate()]}else n[0]=n[0].split(/\./).reverse().join("-"),n[1]=n[1].split(/\./).reverse().join("-");var a=n[0],r=n[1],l=t("[name=selAdultsSearchLine1]",i).val(),c=t(".children-age",i).get().map((function(e){return t(e).val()}));return dw.accommodationQuickFind(tx_sfdeskline_tosc.linkkey,{dateFrom:new Date(a),dateTo:new Date(r),occupancy1:{units:1,adults:l,children:c}},(function(){window.location.href=tx_sfdeskline_tosc.targetLink})),!1})):i.on("submit",(function(i){console.log("tosc4"),i.preventDefault();var o=[],a=!1;if(t(".error",t(this)).remove(),e(n.val())>e(s.val())&&(i.preventDefault(),o.push('<span class="error">Das Anreisedatum muss vor dem Abreisedatum liegen.</span>'),a=!0),a)for(var r=0;r<o.length;r++)t(this).append(o[r])}))}))}))}(jQuery),document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("[data-shapehub-expandable-text]").forEach((t=>{const e=200;t.style.maxHeight="none";const i=t.scrollHeight;if(t.style.maxHeight="200px",i>e){const e=document.createElement("a");e.href="#",e.textContent=__("more ..."),e.classList.add("ch-read-more-btn"),e.classList.add("m-auto"),e.classList.add("mt-4"),t.parentNode.insertBefore(e,t.nextSibling),t.style.maxHeight="200px",e.addEventListener("click",(function(n){n.preventDefault(),t.classList.contains("expanded")?(t.style.maxHeight="200px",t.classList.remove("expanded"),e.textContent=__("more ...")):(t.style.maxHeight=`${i}px`,t.classList.add("expanded"),e.textContent=__("less ..."))}))}else t.style.maxHeight="none"}))})),$((function(){function t(){contenthubDetailMap.key&&!e&&($.getScript("https://maps.googleapis.com/ma
74ps/api/js?key="+contenthubDetailMap.key,(function(){window[contenthubDetailMap.callback]()})),e=!0)}if(window.contenthubDetailMap){var e=!1;contenthubDetailMap.immediate?t():$(".showMapbtn").on("click",(function(){$("#gmap_canvas").length||($append='<div id="gmap_canvas" style="display: none"></div>',$(this).parents(".mapcontainer").append($append),$("#gmap_canvas").slideDown(),t())}))}})),$(document).ready((function(){var t=$(".shapehub-property-container"),e=t.find(".shapehub-property-list");if(e.length>3){e.slice(3).hide();var i=$("<button>",{text:"Zeig mehr",class:"shapehub-button shapehub-button-primary mt-3 justify-content-center toggle-properties-btn",style:"margin-top: 10px; cursor: pointer; width: 100%; padding: 10px;"});t.append(i),i.on("click",(function(t){t.preventDefault(),e.slice(3).slideToggle(300,(function(){$(this).is(":visible")?i.text("Zeig weniger"):i.text("Zeig mehr")}))}))}})),document.addEventListener("DOMContentLoaded",(function(t){document.querySelectorAll("[data-contenthub-single-map]").forEach((function(t){const e=parseFloat(t.dataset.latitude),i=parseFloat(t.dataset.longitude),n=parseInt(t.dataset.zoom)||13,s=(t.dataset.geometry||"").split(/\s/),o=t.dataset.label,a=t.dataset.icon,r=t.dataset.color||"red";if(e&&i){var l=L.map(t,{gestureHandling:!0,center:[e,i],zoom:n});L.tileLayer("https://map.shapefruit.de/styles/klokantech-basic/{z}/{x}/{y}.png",{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',maxZoom:16}).addTo(l);var c=new L.LatLng(e,i),h=new L.Marker(c,{icon:L.icon({iconUrl:a,iconSize:[34,34],iconAnchor:[17,34]})});if(l.addLayer(h),o){var d=o;h.bindPopup(d)}if(s.length>1){const t=s.map((function(t){let e=t.split(/,/);return[parseFloat(e[1]),parseFloat(e[0])]}));L.polyline(t,{color:"white",weight:10}).addTo(l),L.polyline(t,{color:r,weight:5}).addTo(l)}}}))})),$((function(){function t(){$(".contenthub-content-imageslider").each((function(){var t=$(this).children().length;console.log(t),$(this).slick({infinite:!0,dots:!1,slidesToScroll:1,variableWidth:!1,adaptiveHeight:!1,centerMode:t>3,accessibility:!1,arrows:!1,nextArrow:"<span class='icons icon-arrowcircle next'></span>",prevArrow:"<span class='icons icon-arrowcircle prev'></span>",mobileFirst:!0,responsive:[{breakpoint:576,settings:{arrows:!0,slidesToShow:2}},{breakpoint:992,settings:{arrows:!0,slidesToShow:3}},{breakpoint:1200,settings:{arrows:!0,slidesToShow:3}}]})}))}function e(){$(".contenthub-mobile-header-imageslider").slick({infinite:!0,dots:!0,slidesToScroll:1,variableWidth:!1,adaptiveHeight:!1,centerMode:!1,accessibility:!1,arrows:!1,mobileFirst:!0,responsive:[{breakpoint:768,settings:"unslick"}]})}$(".slider").each((function(){var t=$(this);t.parents(".layout-block").length&&t.addClass("slick-margin"),t.slick({lazyLoad:"ondemand",infinite:!0,dots:!1,slidesToShow:4,nextArrow:"<span class='icons icon-arrowcircle next'></span>",prevArrow:"<span class='icons icon-arrowcircle prev'></span>",responsive:[{breakpoint:.25,settings:{slidesToShow:3}},{breakpoint:998,settings:{slidesToShow:2}},{breakpoint:767,settings:{slidesToShow:2,arrows:!1,dots:!0,centerMode:!0}},{breakpoint:656,settings:{slidesToShow:1,arrows:!1,dots:!0,centerMode:!0}}]})})),$(".header-imageslider").each((function(){$(this).slick({infinite:!0,dots:!1,slidesToShow:1,nextArrow:"<span class='icons icon-arrowcircle next'></span>",prevArrow:"<span class='icons icon-arrowcircle prev'></span>"})})),$(".imageslider").each((function(){var t=$(this);t.parents(".layout-block").length&&t.addClass("slick-margin"),t.slick({infinite:!0,dots:!1,arrows:!1,slidesToShow:5,responsive:[{breakpoint:1500,settings:{slidesToShow:2}},{breakpoint:767,settings:{dots:!0,slidesToShow:1}}]})})),$(".imagesliderbig").each((function(){var t=$(this);t.parents(".layout-block").length&&t.addClass("slick-margin"),t.slick({infinite:!0,dots:!1,arrows:!0,prevArrow:'<span class="icons icon-arrowcircle prev"></span>',nextArrow:'<span class="icons icon-arrowcircle next"></span>',slidesToShow:1,variableWidth:!0,centerMode:!0,responsive:[{breakpoint:767,settings:{dots:!0}}]})})),$(".teaser-slider").each((function(){var t=$(this);t.parents(".layout-block").length&&t.addClass("slick-margin"),t.slick({infinite:!0,dots:!1,slidesToShow:4,prevArrow:"<span class='icons icon icon-arrowcircle prev'></span>",nextArrow:"<span class='icons icon icon-arrowcircle next'></span>",responsive:[{breakpoint:1560,settings:{slidesToShow:3}},{breakpoint:992,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:2,arrows:!1,dots:!0,centerMode:!0,centerPadding:"5rem"}},{breakpoint:656,settings:{slidesToShow:1,arrows:!1,dots:!0,centerMode:!0,centerPadding:"5rem"}},{breakpoint:565,settings:{slidesToShow:1,arrows:!1,dots:!0,centerMode:!0}}]})})),$(".slider-testimonials").each((function(){var t=$(this);t.parents(".layout-block").length&&t.addClass("slick-margin"),t.slick({mobileFirst:!0,infinite:!0,dots:!0,arrows:!1,slidesToShow:1,slidesToScroll:1,nextArrow:"<span class='icons icon-arrowcircle next'></span>",prevArrow:"<span class='icons icon-arrowcircle prev'></span>",responsive:[{breakpoint:656,settings:{slidesToShow:2,slidesToScroll:1,dots:!0,arrows:!1}
74},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:1,dots:!0,arrows:!1}},{breakpoint:993,settings:{slidesToShow:3,slidesToScroll:1,dots:!1,arrows:!0}},{breakpoint:1560,settings:{slidesToShow:4,slidesToScroll:1,dots:!1,arrows:!0}}]})})),$(".gallery").each((function(){jQuery('.slide:not(".slick-cloned") .gallery-item',this).colorbox({opacity:.5,scalePhotos:!0,width:1280,height:720,maxHeight:"100%",maxWidth:"100%",transition:"fade",scrolling:!1,current:"Bild {current} von {total}",title:function(){var t=$(this).parent().data("copyright");return $(this).find("img").attr("title")+(t?`<br>(Copyright: ${t})`:"")}})})),$(window).resize((function(){$teaserMixed=$(".teaser-mixed-slider"),$(window).outerWidth()<992&&!$teaserMixed.hasClass("slick-initialized")&&$teaserMixed.slick({lazyLoad:"ondemand",infinite:!0,dots:!1,slidesToShow:2,nextArrow:"<span class='icons icon-arrowcircle next'></span>",prevArrow:"<span class='icons icon-arrowcircle prev'></span>",responsive:[{breakpoint:767,settings:{slidesToShow:1,arrows:!1,dots:!0,centerMode:!0,centerPadding:"3rem"}}]}),$(window).outerWidth()>992&&$teaserMixed.hasClass("slick-initialized")&&$teaserMixed.slick("unslick")})),$(window).resize((function(){console.log("resizing"),$(".contenthub-mobile-imageslider").slick("unslick"),t(),e()})),t(),e(),$(".contenthub-desktop-header-gallery").each((function(){$gallery=$(this);for(let t=1;t<=4;t++)$(".copyrighted").on("click",(function(){if(!$(this).hasClass("image0")){let t=document.querySelector(".image0"),e=t.className;t.className=this.className,this.className=e}}))}))})),function(t){t((function(){t("#search-bar")[0]&&t("html, body").animate({scrollTop:t("#search-bar").offset().top},2e3)}))}(jQuery),$((function(){var t;$(".header").each((function(){var t=$(this);t.width()<767&&(t.addClass("sticky"),$.when($(".logo").hide()).done((function(){$(".sub-logo").show()})))}));var e=0,i=$(".headbar").outerHeight(),n=$(".new-headbar").outerHeight();$(window).scroll((function(e){t=!0})),setInterval((function(){t&&(!function(){var t=$(this).scrollTop();if(Math.abs(e-t)<=5)return;t>e&&t>i?($(".headbar").removeClass("nav-down").addClass("nav-up"),$(".mega-nav-close").click()):t+$(window).height()<$(document).height()&&($(".headbar").removeClass("nav-up").addClass("nav-down"),$(".mega-nav-close").click());t>e&&t>n?($(".open-menu").removeClass("open-menu"),$(".new-headbar").removeClass(["head-active","booking-active","nav-down"]).addClass("nav-up")):t+$(window).height()<$(document).height()&&($(".new-headbar").removeClass(["head-active","booking-active","nav-up"]).addClass("nav-down"),$(".open-menu").removeClass("open-menu"),$(".nav-down").offset().top>$(".nav-down").height()?$(".new-headbar").addClass("fixed-nav"):$(".new-headbar").removeClass("fixed-nav"));e=t}(),t=!1)}),250)})),$((function(){var t=0;
74$(".ahrtal-tabs .tab-container").each((function(){var e=$(this),i=$("<div/>").addClass("container"),n=$("<div/>").addClass("row border-btm");i.append(n),e.prepend(i);var s=$('<div class="tab-contents container"/>');e.append(s);var o="ahrtal-tabgroup"+ ++t,a=$(".tab",e),r=!1;a.each((function(){var t=$(this);n.append(t);var e=t.children(".tab-header");r=r||e;var i=t.children(".content");i.addClass(o).hide(),s.append(i),$(".ahrtal-tabs .tab-container .active").show(),t.on("click",(function(){$(n.children(".opened")).removeClass("opened"),t.addClass("opened"),$("."+o).hide(),i.show()}))})),$(".ahrtal-tabs .tab-container .active").click()}))})),$((function(){$('[data-toggle="tooltip"]').tooltip()}));var mapTour=window.mapTour||{geometry:"",latitude:"50",longitude:"7",uid:0},mapPoi=window.mapPoi||{latitude:0,longitude:0,name:""};function initTourMap(){console.log("tour");var t=document.getElementById("gmap_canvas"),e=mapTour.geometry.split(/ /),i=e[0].split(/,/),n=mapTour.lineColor;if(t){var s=new L.LatLng(i[1],i[0]);console.log(s);var o=L.map(t,{gestureHandling:!0});if(o.setView(s,16),L.tileLayer("https://map.shapefruit.de/styles/klokantech-basic/{z}/{x}/{y}@2x.png",{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',maxZoom:16}).addTo(o),e.length>1){var a=180,r=-180,l=-90,c=90,h=e.map((function(t){var e=t.split(/,/);return a=Math.min(a,parseFloat(e[0])),r=Math.max(r,parseFloat(e[0])),c=Math.min(c,parseFloat(e[1])),l=Math.max(l,parseFloat(e[1])),[parseFloat(e[1]),parseFloat(e[0])]}));L.polyline(h,{color:"white",weight:10}).addTo(o),L.polyline(h,{color:n,weight:5}).addTo(o),o.fitBounds([[c,a],[l,r]])}var d=h[0],u=h[h.length-1];new L.Marker(d,{icon:L.icon.glyph({iconUrl:"/static/images/icons/tours/marker.svg",iconSize:[38,50]})}).addTo(o),new L.Marker(u,{icon:L.icon.glyph({iconUrl:"/static/images/icons/tours/marker.svg",iconSize:[38,50]})}).addTo(o);o.fitBounds(bounds)}}function initPoiMap(){var t=document.getElementById("gmap_canvas");if(t){var e=new L.LatLng(mapPoi.latitude,mapPoi.longitude),i=L.map(t,{gestureHandling:!0});i.setView(e,16),L.tileLayer("https://map.shapefruit.de/styles/klokantech-basic/{z}/{x}/{y}@2x.png",{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',maxZoom:16}).addTo(i),new L.Marker(e,{icon:L.icon.glyph({iconUrl:t.dataset.pin,prefix:"",cssClass:"sans-serif",glyph:""})}).addTo(i),i.attributionControl.addAttribution('Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Application: <a href="https://www.shapefruit.de">shapefruit AG</a>')}}$((function(){console.log("new");var t=document.getElementById("gmap_canvas");if(t)if("tour"===t.dataset.mode)initTourMap();else initPoiMap()})),$((function(){$(".preview").on("click",(function(){$(this).hide();var t=$(this).next(".responsive-video").find("iframe"),e=t.data("src");t.attr("src",e),$(this).next(".responsive-video").fadeIn()})),$(".responsive-video.autoplay").prev(".preview").click()})),$((function(){function t(t){var e=$('<div class="dropdown mb-2 mr-2">').data("facet",t),o=$('<button data-toggle="dropdown" id="'+t.name+'-dropdown" aria-haspopup="true" aria-expanded="false">').addClass("btn btn-sm w-100 text-left dropdown-toggle facet facet-type facet-type-options").addClass(t.isUsed?"btn-primary":"btn-outline-primary").text(t.label),a=$('<div class="dropdown-menu p-2" aria-labelledby="'+t.name+'-dropdown"/>');e.append(o,a);var r=$('<button class="btn btn-secondary btn-sm"/>').text(__("reset")).on("click",(function(){o.removeClass("btn-primary").addClass("btn-outline-primary"),$(".badge",o).remove(),u.each((function(){var t=$(this);t.data("option").selected=!1,t.removeClass("selected")}))})),l=$('<button class="btn btn-primary btn-sm"/>').text(__("Search")).on("click",i),c=$('<div class="dropdown-item d-flex"/>');c.append([r,l]);var h=$('<div class="options">'),d=t.options.filter((function(t){return t.selected})).length;d&&o.append($('<div class="ml-2 badge badge-light"/>').text(d));var u=function(t,e){var i=[];for(option of t.options){var o=$('<div class="dropdown-item border-bottom ">');option.selected&&(o.addClass("selected"),!0),o.data("option",option),o.on("click",(function(t){t.preventDefault(),t.stopPropagation();
74var e=$(this);e.data("option").selected=!$(this).data("option").selected,e.toggleClass("selected",$(this).data("option").selected),s()}));var a=$('<a href="#">').html(n(t.name,option)),r=$('<span class="facet-result-count badge">').text("("+option.count+")");a.append(r),o.append($('<div><svg version="1.1" class="active-mark" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><g id="XMLID_1_"><polygon id="XMLID_3_" points="432,56 192,296 80,184 0,264 192,456 512,136"/></g></svg></div>').css({width:"1rem",height:"1rem",marginRight:".5rem"}).addClass("checkmark"),a),e.append(o),i.push(o)}return $(i)}(t,h);return t.options.length>15&&a.append(function(t){var e=!1,i=$('<input type="text" class="form-control">');return i.on("keyup",(function(){e&&window.clearTimeout(e),e=window.setTimeout((function(){var e=i.val();if(e){var n=new RegExp(e,"i");t.each((function(){var t=$(this);t.text().match(n)?t.show():t.hide()}))}else t.show()}),100)})),i}(u)),a.append(h,c),e}function e(t,e){var i=$('<button class="mb-2 mr-2 btn btn-sm '+e+'">').text(t.label);return i.data("option",t),i}function i(){const t=new URLSearchParams(window.location.search),e=new URLSearchParams(window.location.search);for(const[i,n]of t.entries())i.match(/tx_solr\[filter\]\[/)&&e.delete(i);for(g of m)g.data("option").selected&&e.append("tx_solr[filter][]","type:"+g.data("option").value);for(const t of a)if("type"!==t.name)for(const i of t.options)i.selected&&e.append("tx_solr[filter][]",t.name+":"+i.value);e.size?window.location.href=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+e.toString()+"#search-results":window.location.href=window.location.protocol+"//"+window.location.host+window.location.pathname+"#search-results"}function n(t,e){switch(t){case"trustyou_stars":return[__("none"),__("weak"),__("fair"),__("good"),__("very Good"),__("excellent")][e.label];case"contenthubTourDifficulty":return[__("none"),__("difficulty1"),__("difficulty2"),__("difficulty3")][e.label];case"contenthubTourLength":return[__("none"),__("short"),__("medium"),__("long")][e.label];case"stars":return e.label>0?'<span class="icons icon icon-dehoga-star">'.repeat(e.label):"&mdash;";default:return e.label}}function s(){for(facet of(_.hide(),a))for(option of facet.options)option.selected&&_.show()}var o=$("#tx-solr-faceting-desktop"),a=o.data("json");if(o[0]&&(o[0].dataset.json=""),a&&0!=a.length){var r=$('<div class="buttons"></div>'),l=$('<div class="solr-desktop-facets solr-desktop-facet-facets mb-4"><p class="mb-0"><strong>'+__("type of content")+"</strong></p></div>");l.append(r);var c=$('<div class="dropdowns d-flex flex-wrap"></div>'),h=$('<div class="dropdowns d-none flex-wrap"></div>'),d=$('<div class="solr-desktop-facets solr-desktop-type-facets mb-4"><p class="mb-0"><strong>'+__("Filter")+"</strong></p></div>");d.append(c),d.append(h);var u=$('<div class="solr-desktop-modal p-4">').hide();o.append(l,d,u);var p=!1,f=!0;for(facet of a)if("type"===facet.name){var m=[];for(option of facet.options)if(option.label){var g=e(option,option.selected?"btn-primary":"btn-outline-primary");g.on("click",(function(t){var e=$(this);e.data("option").selected=!e.data("option").selected,t.stopPropagation(),t.preventDefault(),i()})),m.push(g)}r.append(m)}else f=!1,$dropdown=t(facet),facet.isMain=!0,facet.isMain||facet.isUsed?c.append($dropdown):(p=!0,h.append($dropdown));var v=$('<button class="btn btn-sm btn-outline-secondary">'+__("reset all")+"</button>"),_=$('<div class="mb-2 mr-2"/>');if(_.append(v),c.append(_),s(),v.on("click",(function(){for(facet of a)for(option of facet.options)option.selected&&(option.selected=!1);i()})),p){var y=$('<button class="mb-2 mr-2 btn btn-sm btn-outline-primary">').text(__("more filter")),b=$('<button class="mb-2 mr-2 btn btn-sm btn-outline-primary">').text(__("less filter")).hide();y.on("click",(function(t){h.toggleClass(["d-none","d-flex"]),b.show(),y.hide()})),b.on("click",(function(){h.toggleClass(["d-none","d-flex"]),y.show(),b.hide()})),c.append(y,b)}f&&d.hide();
74var w=$("#solr-next-page"),x=$(".solr-next-page a"),k=$(".spinner").hide();w.append([x,k]),x.on("click",(function(t){t.preventDefault(),k.show(),$teaserlist=$("#tx-solr-search .teaser-list .list-unstyled");var e=$("<div/>").hide();$teaserlist.after(e),x.hide(),e.load(this.href+" #tx-solr-search .teaser-list-and-next-page",(function(t){$newLink=$(".solr-next-page a",e),$teaser=$(".teaser-list .list-unstyled > li",e);var i=$(".teaser-list",e).data("counter");$("span.results-to").text(i),x.attr("href",$newLink.attr("href")),$newLink.remove(),$teaserlist.append($teaser),e.remove(),$newLink.length&&x.show(),k.hide()}))})),$(".dropdown-toggle").dropdown();var S=$(".dropdown"),T=!1;S.on("hide.bs.dropdown",(function(){T&&clearTimeout(T),T=window.setTimeout(i,50)})),S.on("show.bs.dropdown",(function(){T&&clearTimeout(T)}));var E=new URLSearchParams(window.location.search).getAll("tx_solr[filter][]");E.includes("type:D3EVENT")||($('[data-sort-by="date desc"]').hide(),$('[data-sort-by="date asc"]').hide()),E.includes("type:tx_news_domain_model_news")||($('[data-sort-by="newsdate desc"]').hide(),$('[data-sort-by="newsdate asc"]').hide())}})),$((function(){function t(t){var e=$('<button class="mb-2 mr-2 btn btn-sm">').text(t.label).addClass(t.isUsed?"btn-primary":"btn-outline-primary").data("facet",t),i=t.options.filter((function(t){return t.selected})).length;return i&&e.append($('<div class="ml-2 badge badge-light"/>').text(i)),e}function e(t,e){var i=$('<button class="mb-2 mr-2 btn btn-sm '+e+'">').text(t.label);return i.data("option",t),i}function i(){const t=new URLSearchParams(window.location.search),e=new URLSearchParams(window.location.search);for(const[i,n]of t.entries())i.match(/tx_solr\[filter\]\[/)&&e.delete(i);for(w of y)w.data("option").selected&&e.append("tx_solr[filter][]","type:"+w.data("option").value);for(const t of c)if("type"!==t.name)for(const i of t.options)i.selected&&e.append("tx_solr[filter][]",t.name+":"+i.value);e.size?window.location.href=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+e.toString()+"#search-results":window.location.href=window.location.protocol+"//"+window.location.host+window.location.pathname+"#search-results"}function n(t,e,s,l){for(option of($modalContent=$("<div class='d-flex justify-content-between flex-column  h-100'></div>"),$title=$('<div class="title"><p>Filter</p></div>'),$headline=$('<h3 class="d-flex justify-content-start align-items-center"><span>'+t.label+"</span></h3>"),$back=$('<span class="icon icon-pfeil_links" style="transform: translate(-10px,0)"></span>'),l?$back.on("click",e):$back.on("click",(function(){r(),g&&i()})),$headline.prepend($back),$content=$('<div class="flex-grow-1">').css({overflow:"auto"}),$innerContent=$("<div>"),$content.append($innerContent),t.options)){var c=a(t.name,option),h=$('<div class="facet-option border-bottom d-flex justify-content-between py-1">');option.selected&&h.addClass("selected");var d=$('<div><svg version="1.1" class="active-mark" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><g id="XMLID_1_"><polygon id="XMLID_3_" points="432,56 192,296 80,184 0,264 192,456 512,136"/></g></svg></div>
74').css({width:"1rem",height:"1rem",marginRight:".5rem"}).addClass("checkmark");h.append(d),$label=$('<span class="text-right">').html(c).css({textWrap:"balance"}),$label.append($("<span>").text(" ("+option.count+")")),h.append($label),$innerContent.append(h),h.data("option",option),h.on("click",(function(){var t=$(this);t.data("option").selected=!$(this).data("option").selected,t.toggleClass("selected",$(this).data("option").selected),g=!0}))}var u=$('<button class="btn btn-outline-secondary btn-sm mb-0"></button>').text(__("reset"));u.on("click",(function(){for(option of t.options)option.selected=!1;o(n(t,e,s,l))}));var p=$('<button class="btn btn-primary btn-sm mb-0"></button>').text(s),f=$('<div class="d-flex justify-content-between"/>');return f.append([u,p]),p.on("click",e),$modalContent.append($title,$headline,$content,f),$modalContent}function s(t){for(facet of($modalContent=$("<div class='d-flex justify-content-between flex-column  h-100'></div>"),$title=$('<div class="title d-flex justify-content-between"><p class="small">'+__("Filter")+"</p></div>"),$closer=$('<span class="text-primary">'+__("reset all")+"</span>"),$closer.on("click",(function(){for(facet of c){if("type"!==facet.name)for(option of facet.options)option.selected=!1;o(s(t))}})),$title.append($closer),$headline=$('<h3 class="d-flex justify-content-start align-items-center border-bottom"><span>Alle Filter</span></h3>'),$back=$('<span class="icon icon-pfeil_links" style="transform: translate(-10px,0)"></span>'),$back.on("click",(function(){r(),g&&i()})),$headline.prepend($back),$content=$('<div class="flex-grow-1">').css({overflow:"auto"}),$innerContent=$("<div>"),$content.append($innerContent),c))if("type"!==facet.name){var e=$('<div class="d-flex justify-content-between align-items-center border-bottom py-2">'),l=$('<span class="icon icon-pfeil_rechts icon-2x text-primary" style="transform: translate(10px,0)">'),h=$('<div class="">').css({cursor:"pointer"});e.append(h,l).data("facet",facet);var d=[];for(option of facet.options)option.selected&&d.push(a(facet.name,option)+" ("+option.count+")");h.append($("<h5>").text(facet.label)),d.length&&(d=d.join(", "),h.append($('<p class="mb-0 small">').html(d))),e.on("click",(function(){o(n($(this).data("facet"),(function(){o(s(t))}),__("save"),!0))})),$innerContent.append(e)}var u=$('<button class="btn btn-primary btn-sm mb-0">'+__("show results")+"</button>"),p=$('<div class="text-right mt-2"/>');return p.append(u),u.on("click",t),$modalContent.append($title,$headline,$content,p),$modalContent}function o(t){v.html(""),v.append(t),$("body").css({position:"fixed"}),v.css({height:window.innerHeight+"px"}),v.show()}function a(t,e){switch(t){case"trustyou_stars":return[__("none"),__("weak"),__("fair"),__("good"),__("very Good"),__("excellent")][e.label];case"contenthubTourDifficulty":return[__("none"),__("difficulty1"),__("difficulty2"),__("difficulty3")][e.label];case"contenthubTourLength":return[__("none"),__("short"),__("medium"),__("long")][e.label];case"stars":return e.label>0?'<span class="icons icon icon-dehoga-star">'.repeat(e.label):"&mdash;";default:return e.label}}function r(){v.hide(),$("body").css({position:"relative"})}var l=$("#tx-solr-faceting-mobile"),c=l.data("json");if(l[0]&&(l[0].dataset.json=""),c&&0!=c.length){var h=$('<div class="buttons"></div>'),d=$('<div class="solr-mobile-facets solr-mobile-facet-facets mb-4"><p class="mb-0"><strong>'+__("type of content")+"</strong></p></div>");d.append(h);var u=$('<div class="buttons"></div>'),p=$('<div class="solr-mobile-facets solr-mobile-type-facets mb-4"><p class="mb-0"><strong>'+__("Filter")+"</strong></p></div>");p.append(u);var f=$('<button class="btn btn-sm btn-outline-secondary">'+__("reset all")+"</button>");f.on("click",(function(){for(facet of c)for(option of facet.options)option.selected&&(option.selected=!1);i()}));var m=$('<div class="mb-2 mr-2"/>');m.append(f),p.append(m),function(){m.hide();for(const t of c)for(const e of t.options)e.selected&&m.show()}();var g=!1,v=$('<div class="solr-mobile-modal p-4">').hide();l.append(d,p,v);var _=[],y=[],b=!1;for(facet of c)if("type"===facet.name){for(option of facet.options)if(option.label){var w=e(option,option.selected?"btn-primary":"btn-outline-primary");
74w.on("click",(function(t){var e=$(this);e.data("option").selected=!e.data("option").selected,t.stopPropagation(),t.preventDefault(),i()})),y.push(w)}}else{if(facet.isMain=!0,facet.isMain||facet.isUsed)var x=t(facet);else b=!0;x.on("click",(function(t){o(n($(this).data("facet"),i,__("show results")))})),_.push(x)}if(b){var k=$('<button class="mb-2 mr-2 btn btn-sm btn-outline-primary">').text(__("more filter"));k.on("click",(function(t){o(s(i))})),_.push(k)}u.append(_),h.append(y),_.length||p.hide();var S=new URLSearchParams(window.location.search).getAll("tx_solr[filter][]");S.includes("type:D3EVENT")||($('[data-sort-by="date desc"]').hide(),$('[data-sort-by="date asc"]').hide()),S.includes("type:tx_news_domain_model_news")||($('[data-sort-by="newsdate desc"]').hide(),$('[data-sort-by="newsdate asc"]').hide())}}));var sf_CopyrightTimeout=!1;$((function(){function t(){}var e={showFilter:__("showFilter"),showSearch:__("showSearch"),showList:__("showList"),showMap:__("showMap"),confirm:__("confirm"),categories:__("categories"),category:__("category"),moreText:__("moreText"),showOnMap:__("showOnMap"),listTooLong:__("listTooLong")};function i(e,i){function n(t){return(t.data.street?t.data.street+"<br>":"")+(t.data.zip?t.data.zip+" ":"")+(t.data.city?t.data.city+"<br>":"")}return{getTitle:function(t){return'<p class="h5"><a href="'+t.data.link+'">'+t.data.title+"</a></p>"},getContent:function(t){this.getAccessible(t);if("sf_contenthub"===t.data.type)switch(t.data.plugin){case"contenthub_tour":return console.log(t.data.length),'<div class="maplib-tour-content"><div class="col-7 p-0 pr-2 border-right"><p class="m-0"><img src="/static/images/icons/tours/map/tour-length.svg" class="tour-map-icon"></img>'+(Math.round(t.data.distance/100)/10+"").replace(".",",")+' km<br><img src="/static/images/icons/tours/map/tour-ascent.svg" class="tour-map-icon">'+t.data.ascent+' hm<br><img src="/static/images/icons/tours/map/tour-descent.svg" class="tour-map-icon">'+t.data.descent+' hm<br><img src="/static/images/icons/tours/map/tour-difficulty.svg" class="tour-map-icon">'+__("difficulty"+t.data.difficulty)+'</p></div><div class="col-sm-5 col-12 p-0 pl-2"><img src="/static/images/icons/tours/map/tour-clock.svg" class="tour-map-icon">'+Math.floor(t.data.duration/60)+(t.data.duration%60?":"+t.data.duration%60:"")+" h</div>";case"contenthub_accommodation":return e.uiManager.factory.makeStars(t.data.stars).getElement().outerHTML+'<div class="maplib-deskline-content"><p class="m-0">'+n(t)+"</p></div>";case"contenthub_event":return'<div class="maplib-deskline-content"><p class="m-0">'+(t.data.description?(i=200,!(s=t.data.description.description)||s.length<=i?s:s.substring(0,i)+"&nbsp;&hellip;"):"")+"</p></div>";case"contenthub_place":case"contenthub_construction_site":return'<div class="maplib-deskline-content"><div class="col-sm-7 col-12 p-0 pr-2 maplib-content-info"><p class="m-0">'+n(t)+'</p></div><div class="col-sm-5 col-12 p-0 pl-sm-2"></div></div>'}var i,s,o=this.getOpened(t);return'<div class="maplib-default-content"><p>'+(t.data.homepage?t.data.homepage+"<br>":"")+(t.data.email?t.data.email+"<br><br>":"")+(t.data.street?t.data.street+t.data.housenumber+"<br>":"")+(t.data.zipcode?t.data.zipcode+" ":"")+(t.data.city?t.data.city+"<br>":"")+(o?o+"<br>":"")+"</p></div>"},getImage:function(e){return e.data.image?e.data.copyright?(console.log("test"),sf_CopyrightTimeout||(sf_CopyrightTimeout=window.setTimeout(t,1)),'<div class="copyrighted" data-copyright-recalculate="1" data-copyright="'+e.data.copyright+'"><img src="'+e.data.image+'" loading="lazy"></div>'):'<img src="'+e.data.image+'" loading="lazy">':e.channel.icon.embedSVG?'<span class="placeholder-image">'+e.channel.icon.src+"</span>":'<span class="placeholder-image"><img src="'+e.channel.icon.src+'"></span>'},getOpened:function(t){if(!t.data.is_open)return"";if("closed"==t.data.is_open.status)return'<p class="map-is-opened"><span class="closed">geschlossen</span></p>';if("undefined"==t.data.is_open.status)return"";var e=Math.floor(t.data.is_open.until/3600),i=Math.floor((t.data.is_open.until-3600*e)/60);return i<10&&(i="0"+i),'<p class="map-is-opened"><span class="open">geöffnet</span><br>schließt um '+e+":"+i+"</p>"},getIcon:function(t){return"icon"}
74,getBubble:function(t){var e=i?i.channels[t.channel.id].title:"";return'<p class="popup-image">'+this.getImage(t)+'</p><p class="small">'+e+"</p><p>"+this.getTitle(t)+"</p>"},getAccessible:function(t){var e=[];if(!("isAccessibilityPartner"in t.data))return!1;if(!("accessibleDetails"in t.data))return!1;for(var i in t.data.accessibleDetails)t.data.accessibleDetails.hasOwnProperty(i)&&e.push("<img class='maplib-accessible-icon' src='/static/gastlandschaften/images/barrierefrei/icons/"+i+".png'>");return e.length?(e.unshift("<img class='maplib-accessible-icon' src='/static/gastlandschaften/images/barrierefrei/icons/barrierefreigeprueft.png'>"),e.join("")):""}}}function n(){var t;return(t=document.getElementById("map-intro-text"))?'<div class="m-5">'+t.innerHTML+"</div>":'<div class="m-5"><p>Die Karte startet mit einer leeren Auswahl, um den Datenverkehr Ihres Endgeräts zu reduzieren.</p><p>Wählen Sie gewünschte Kategorien aus, deren Einträge Sie gerne auf der Karte sehen möchen und bestätigen Sie Ihre Auswahl durch [übernehmen].</p><p>In der Liste tauchen die Einträge auf, die in der Karte sichtbar sind. Beim Verschieben der Karten aktualisiert sich die Liste automatisch.</p></div>'}function s(){var t;return(t=document.getElementById("map-abbinder-text"))?'<div class="m-5">'+t.innerHTML+"</div>":"--test--"}var o="/static/images/ahrtallogo.png",a="/typo3conf/ext/sfmap/Resources/Public/Script/topo-vector.json";window.maplib&&(o=window.maplib.logo||o,a=window.maplib.style||a);var r={styleJson:a,oaOptions:{oamaps:!1,enabled:!1,baseMap:"oac",style:"oa_map",network:"hiking"}};window.sfmapMaplibPaths&&function a(){if(window.sfmapMaplibPaths.length){var l=window.sfmapMaplibPaths.shift();$.getScript(l,a).done()}else!function(){$(".maplib-app-pois, .maplib-app-tags").each((function(){var n=$(this),s=n.data("map-uid"),o=shapeways.createApp(this,{clustered:!0,rendererType:shapeways.renderer.RendererType.LEAFLET,zoom:9,latitude:sfmap_default_center.latitude,longitude:sfmap_default_center.longitude,latitude2:sfmap_default_center.latitude2,longitude2:sfmap_default_center.longitude2,tilingLevel:3,hullOptions:{fill:!0,fillColor:"#ffffff",fillOpacity:.4,stroke:!0,color:"#3366ff",weight:5,opacity:.5},uiOptions:{footerOptions:{show:!1},headerOptions:{show:!1,logo:""},labels:e,introText:function(){return""},abbinderText:function(){return""}},leaflet:r});o.setInfoTemplates(i(o));var a=o.addChannel(window["mapEndpoint"+s]());o.activateChannel(a),o.eventBus.register(shapeways.AppEvents.fetchComplete,(function(){n.show();var t=o.getChannel(a).getCoveredBounds();t.southwest.equals(t.northeast)?0!==t.southwest.latitude?o.setCenter(t.southwest.latitude,t.southwest.longitude):n.hide():o.fitBounds(t)})),o.eventBus.register(shapeways.AppEvents.markerClicked,(function(){setTimeout(t,0)}))})),$(".maplib-app-channels").each((function(){var n=$(this).data("map-uid"),s=shapeways.createApp(this,{clustered:!0,rendererType:shapeways.renderer.RendererType.LEAFLET,storetype:shapeways.store.StoreTypeId.TILED,zoom:9,latitude:sfmap_default_center.latitude,longitude:sfmap_default_center.longitude,latitude2:sfmap_default_center.latitude2,longitude2:sfmap_default_center.longitude2,tilingLevel:7,hullOptions:{fill:!0,fillColor:"#ffffff",fillOpacity:.4,stroke:!0,color:"#3366ff",weight:5,opacity:.5},uiOptions:{footerOptions:{show:!1},headerOptions:{show:!1,logo:""},labels:e,introText:function(){return""},abbinderText:function(){return""}},leaflet:r});s.setInfoTemplates(i(s));for(var o=window["mapEndpoints"+n](),a=0;a<o.channels.length;a++)s.activateChannel(s.addChannel(o.channels[a]));s.eventBus.register(shapeways.AppEvents.markerClicked,(function(){setTimeout(t,0)}))})),$(".maplib-app-interactive").each((function(){var a=$(this),l=a.data("map-uid"),c=a.data("filter").split(","),h=window["mapInteractive"+l](),d=[{type:"categories",name:"category",class:"category",text:"Kategorie",categories:h.categories,handler:function(t,e){return!0}},{type:"switch",name:"opened",class:"select",text:"Geöffnet nach der Flut",placeholder:"Geöffnet nach der Flut",handler:function(t,e){return!e||t.data.opened||!1},canFilter:function(t){return"opened"in t.data}}];if(c.length)var u=d.filter((function(t){return c.includes(t.name)}));else u=d;
74var p=shapeways.createApp(this,{clustered:!0,rendererType:shapeways.renderer.RendererType.LEAFLET,storetype:shapeways.store.StoreTypeId.TILED,zoom:9,latitude:sfmap_default_center.latitude,longitude:sfmap_default_center.longitude,latitude2:sfmap_default_center.latitude2,longitude2:sfmap_default_center.longitude2,tilingLevel:8,hullOptions:{fill:!0,fillColor:"#ffffff",fillOpacity:.4,stroke:!0,color:"#3366ff",weight:5,opacity:.5},uiOptions:{footerOptions:{show:!1},headerOptions:{show:!0,logo:o,closeHandler:function(){history.back()}},filters:u,searches:[{type:"text",name:"query",class:"query",icon:"magnifier",handler:function(t,e){var i=new RegExp(e,"i");return""===e||!!t.data.title&&t.data.title.match(i)}}],labels:e,introText:n,abbinderText:s,mobileStartView:"map"},leaflet:r,debug:!1});p.setInfoTemplates(i(p,h));for(var f=!1,m=0;m<h.channels.length;m++){var g=h.channels[m];g.bounds=shapeways.projection.createBounds(shapeways.projection.createLatLng(sfmap_default_center.latitude,sfmap_default_center.longitude),shapeways.projection.createLatLng(sfmap_default_center.latitude2,sfmap_default_center.longitude2)),g.activeTrackOptions=[{stroke:!0,fill:!1,weight:10,color:"#FFFFFF"},{stroke:!0,fill:!1,weight:5,color:"#d01741"}],"poi"===g.dataType?(g.channelId=p.addChannel(g,!0),p.activateChannel(g.channelId),f=!0):g.channelId=p.addChannel(g,!1)}f&&$(".maplib-info-text").hide(),p.addChannel({endpoint:"/static/gastlandschaften/data/regions.json",notTileable:!0,trackOptions:[{stroke:!0,color:"#ffffff",weight:5,opacity:.5,fill:!1},{stroke:!0,color:"#b71e3f",weight:3,opacity:1,fill:!1}]}),p.eventBus.register(shapeways.AppEvents.markerClicked,(function(){setTimeout(t,0)}))})),$(".maplib-app-markermap").each((function(){var n=$(this).data("map-uid"),s=sfmap_markermap_markers[n],o=s[0],a=shapeways.createApp(this,{rendererType:shapeways.renderer.RendererType.LEAFLET,zoom:15,latitude:o.latitude,longitude:o.longitude,tilingLevel:3,uiOptions:{footerOptions:{show:!1},headerOptions:{show:!1,logo:""},labels:e,introText:function(){return""},abbinderText:function(){return""}},leaflet:r});a.setInfoTemplates(i(a));var l=a.addChannel({endpoint:s,icon:shapeways.renderer.createIcon({registration:{x:16,y:42},src:"/static/gastlandschaften/images/map/marker-active.svg"})});a.activateChannel(l),a.eventBus.register(shapeways.AppEvents.markerClicked,(function(){setTimeout(t,0)}))}));var a=window.sfmap_multimarkermap_markers||[];for(mapid in a)a.hasOwnProperty(mapid)&&$("#sfmultimarkermap"+mapid).each((function(){var t=shapeways.createApp(this,{rendererType:shapeways.renderer.RendererType.LEAFLET,zoom:sfmap_default_center.zoom-0,latitude:a[mapid][0].latitude||sfmap_default_center.latitude,longitude:a[mapid][0].longitude||sfmap_default_center.longitude,tilingLevel:9,clustered:!0,uiOptions:{footerOptions:{show:!1},headerOptions:{show:!1,logo:""},labels:e,introText:function(){return""},abbinderText:function(){return""},infoOptions:{mode:"channelselect"}},leaflet:r});if(t.setInfoTemplates(i(t)),a[mapid][0]&&a[mapid][0].marker.icon)var n=shapeways.renderer.createIcon({registration:{x:16,y:42},src:a[mapid][0].marker.icon});else n=shapeways.renderer.createIcon({registration:{x:16,y:42},src:"/static/images/map/tour-ende-marker_02.png"});window.setTimeout((function(){var e=t.addChannel({endpoint:a[mapid],icon:n});t.activateChannel(e)}),100)}))}()}()})),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.lightbox=e(t.jQuery)}(this,(function(t){function e(e){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=t.extend({},this.constructor.defaults),this.option(e)}return e.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},e.prototype.option=function(e){t.extend(this.options,e)},e.prototype.imageCountLabel=function(t,e){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,e)},e.prototype.init=function(){var e=this;t(document).ready((function(){e.enable(),e.build()}))},e.prototype.enable=function(){var e=this;t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",(function(i){return e.start(t(i.currentTarget)),!1}))},e.prototype.build=function(){if(!(t("#lightbox").length>0)){var e=this;t('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev" role="button" tabindex="0" aria-label="Previous image" href="" ></a><a class="lb-next" role="button" tabindex="0" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a class="lb-cancel" role="button" tabindex="0"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close" role="button" tabindex="0"></a></div></div></div></div>').appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",(function(){return e.end(),!1})),this.$lightbox.hide().on("click",(function(i){"lightbox"===t(i.target).attr("id")&&e.end()})),this.$outerContainer.on("click",(function(i){return"lightbox"===t(i.target).attr("id")&&e.end(),!1})),this.$lightbox.find(".lb-prev").on("click",(function(){return 0===e.currentImageIndex?e.changeImage(e.album.length-1):e.changeImage(e.currentImageIndex-1),!1})),this.$lightbox.find(".lb-next").on("click",(function(){return e.currentImageIndex===e.album.length-1?e.changeImage(0):e.changeImage(e.currentImageIndex+1),!1})),this.$nav.on("mousedown",(function(t){3===t.which&&(e.$nav.css("pointer-events","none"),e.$lightbox.one("contextmenu",(function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(e),0)}
74)))})),this.$lightbox.find(".lb-loader, .lb-close").on("click keyup",(function(t){if("click"===t.type||"keyup"===t.type&&(13===t.which||32===t.which))return e.end(),!1}))}},e.prototype.start=function(e){function i(t){n.album.push({alt:t.attr("data-alt"),link:t.attr("href"),title:t.attr("data-title")||t.attr("title")})}var n=this,s=t(window);s.on("resize",t.proxy(this.sizeOverlay,this)),this.sizeOverlay(),this.album=[];var o,a=0,r=e.attr("data-lightbox");if(r){o=t(e.prop("tagName")+'[data-lightbox="'+r+'"]');for(var l=0;l<o.length;l=++l)i(t(o[l])),o[l]===e[0]&&(a=l)}else if("lightbox"===e.attr("rel"))i(e);else{o=t(e.prop("tagName")+'[rel="'+e.attr("rel")+'"]');for(var c=0;c<o.length;c=++c)i(t(o[c])),o[c]===e[0]&&(a=c)}var h=s.scrollTop()+this.options.positionFromTop,d=s.scrollLeft();this.$lightbox.css({top:h+"px",left:d+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&t("body").addClass("lb-disable-scrolling"),this.changeImage(a)},e.prototype.changeImage=function(e){var i=this,n=this.album[e].link,s=n.split(".").slice(-1)[0],o=this.$lightbox.find(".lb-image");this.disableKeyboardNav(),this.$overlay.fadeIn(this.options.fadeDuration),t(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var a=new Image;a.onload=function(){var r,l,c,h,d,u;o.attr({alt:i.album[e].alt,src:n}),t(a),o.width(a.width),o.height(a.height);var p=a.width/a.height;u=t(window).width(),d=t(window).height(),h=u-i.containerPadding.left-i.containerPadding.right-i.imageBorderWidth.left-i.imageBorderWidth.right-20,c=d-i.containerPadding.top-i.containerPadding.bottom-i.imageBorderWidth.top-i.imageBorderWidth.bottom-i.options.positionFromTop-70,"svg"===s?(p>=1?(l=h,r=parseInt(h/p,10)):(l=parseInt(c/p,10),r=c),o.width(l),o.height(r)):(i.options.fitImagesInViewport?(i.options.maxWidth&&i.options.maxWidth<h&&(h=i.options.maxWidth),i.options.maxHeight&&i.options.maxHeight<c&&(c=i.options.maxHeight)):(h=i.options.maxWidth||a.width||h,c=i.options.maxHeight||a.height||c),(a.width>h||a.height>c)&&(a.width/h>a.height/c?(l=h,r=parseInt(a.height/(a.width/l),10),o.width(l),o.height(r)):(r=c,l=parseInt(a.width/(a.height/r),10),o.width(l),o.height(r)))),i.sizeContainer(o.width(),o.height())},a.src=this.album[e].link,this.currentImageIndex=e},e.prototype.sizeOverlay=function(){var e=this;setTimeout((function(){e.$overlay.width(t(document).width()).height(t(document).height())}),0)},e.prototype.sizeContainer=function(t,e){function i(){n.$lightbox.find(".lb-dataContainer").width(a),n.$lightbox.find(".lb-prevLink").height(r),n.$lightbox.find(".lb-nextLink").height(r),n.$overlay.trigger("focus"),n.showImage()}var n=this,s=this.$outerContainer.outerWidth(),o=this.$outerContainer.outerHeight(),a=t+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,r=e+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;s!==a||o!==r?this.$outerContainer.animate({width:a,height:r},this.options.resizeDuration,"swing",(function(){i()})):i()},e.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},e.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(t&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),t&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),t&&this.$lightbox.find(".lb-next").css("opacity","1"))))},e.prototype.updateDetails=function(){var t=this;if(void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var e=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?e.text(this.album[this.currentImageIndex].title):e.html(this.album[this.currentImageIndex].title),e.fadeIn("fast")}if(this.album.length>1&&this.options.showImageNumberLabel){var i=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(i).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,(function(){return t.sizeOverlay()}))},e.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link),this.currentImageIndex>0&&((new Image).src=this.album[this.currentImageIndex-1].link)},e.prototype.enableKeyboardNav=function(){this.$lightbox.on("keyup.keyboard",t.proxy(this.keyboardAction,this)),this.$overlay.on("keyup.keyboard",t.proxy(this.keyboardAction,this))},e.prototype.disableKeyboardNav=function(){this.$lightbox.off(".keyboard"),this.$overlay.off(".keyboard")},e.prototype.keyboardAction=function(t){var e=t.keyCode;27===e?(t.stopPropagation(),this.end()):37===e?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):39===e&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},e.prototype.end=function(){this.disableKeyboardNav(),t(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),this.options.disableScrolling&&t("body").removeClass("lb-disable-scrolling")},new 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.